2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for OpenJPEG 1.5.0.
5 # Report bugs to <openjpeg@googlegroups.com>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 *v*x* | *x*v* ) as_opts=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir=.
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
248 if test "x$CONFIG_SHELL" != x; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 *v*x* | *x*v* ) as_opts=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278 $0: openjpeg@googlegroups.com about your system, including
279 $0: any error possibly output before this message. Then
280 $0: install a modern shell, or manually run the script
281 $0: under such a shell if you do have one."
287 SHELL=${CONFIG_SHELL-/bin/sh}
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
298 # Portably unset VAR.
301 { eval $1=; unset $1;}
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
325 # Create "$as_dir" as a directory, including parents if necessary.
330 -*) as_dir=./$as_dir;;
332 test -d "$as_dir" || eval $as_mkdir_p || {
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
363 test -d "$as_dir" && break
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
409 as_val=`expr "$@" || test $? -eq 1`
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
421 as_status=$1; test $as_status -eq 0 && as_status=1
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
507 # Exit status is that of the last command.
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
529 mkdir conf$$.dir 2>/dev/null
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 elif ln conf$$.file conf$$ 2>/dev/null; then
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
554 test -d ./-p && rmdir ./-p
559 as_executable_p=as_fn_executable_p
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567 SHELL=${CONFIG_SHELL-/bin/sh}
570 test -n "$DJDIR" || exec 7<&0 </dev/null
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581 ac_default_prefix=/usr/local
583 ac_config_libobj_dir=.
590 # Identity of this package.
591 PACKAGE_NAME='OpenJPEG'
592 PACKAGE_TARNAME='openjpeg'
593 PACKAGE_VERSION='1.5.0'
594 PACKAGE_STRING='OpenJPEG 1.5.0'
595 PACKAGE_BUGREPORT='openjpeg@googlegroups.com'
596 PACKAGE_URL='http://www.openjpeg.org'
598 ac_unique_file="configure.ac"
599 # Factoring default headers for most tests.
600 ac_includes_default="\
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
612 # ifdef HAVE_STDLIB_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
635 ac_subst_vars='am__EXEEXT_FALSE
645 WANT_JPIP_SERVER_FALSE
646 WANT_JPIP_SERVER_TRUE
674 pkgconfig_requires_private
743 INSTALL_STRIP_PROGRAM
798 program_transform_name
811 enable_option_checking
818 enable_dependency_tracking
834 ac_precious_vars='build_alias
865 # Initialize some variables set by options.
867 ac_init_version=false
868 ac_unrecognized_opts=
870 # The variables have the same names as the options, with
871 # dashes changed to underlines.
879 program_transform_name=s,x,x,
887 # Installation directory options.
888 # These are left unexpanded so users can "make install exec_prefix=/foo"
889 # and all the variables that are supposed to be based on exec_prefix
890 # by default will actually change.
891 # Use braces instead of parens because sh, perl, etc. also accept them.
892 # (The list follows the same order as the GNU Coding Standards.)
893 bindir='${exec_prefix}/bin'
894 sbindir='${exec_prefix}/sbin'
895 libexecdir='${exec_prefix}/libexec'
896 datarootdir='${prefix}/share'
897 datadir='${datarootdir}'
898 sysconfdir='${prefix}/etc'
899 sharedstatedir='${prefix}/com'
900 localstatedir='${prefix}/var'
901 runstatedir='${localstatedir}/run'
902 includedir='${prefix}/include'
903 oldincludedir='/usr/include'
904 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
905 infodir='${datarootdir}/info'
910 libdir='${exec_prefix}/lib'
911 localedir='${datarootdir}/locale'
912 mandir='${datarootdir}/man'
918 # If the previous option needs an argument, assign it.
919 if test -n "$ac_prev"; then
920 eval $ac_prev=\$ac_option
926 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
931 # Accept the important Cygnus configure options, so we can diagnose typos.
933 case $ac_dashdash$ac_option in
937 -bindir | --bindir | --bindi | --bind | --bin | --bi)
939 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
942 -build | --build | --buil | --bui | --bu)
943 ac_prev=build_alias ;;
944 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
945 build_alias=$ac_optarg ;;
947 -cache-file | --cache-file | --cache-fil | --cache-fi \
948 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
949 ac_prev=cache_file ;;
950 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
951 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
952 cache_file=$ac_optarg ;;
955 cache_file=config.cache ;;
957 -datadir | --datadir | --datadi | --datad)
959 -datadir=* | --datadir=* | --datadi=* | --datad=*)
960 datadir=$ac_optarg ;;
962 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
963 | --dataroo | --dataro | --datar)
964 ac_prev=datarootdir ;;
965 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
966 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
967 datarootdir=$ac_optarg ;;
969 -disable-* | --disable-*)
970 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
971 # Reject names that are not valid shell variable names.
972 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
973 as_fn_error $? "invalid feature name: $ac_useropt"
974 ac_useropt_orig=$ac_useropt
975 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
976 case $ac_user_opts in
980 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
981 ac_unrecognized_sep=', ';;
983 eval enable_$ac_useropt=no ;;
985 -docdir | --docdir | --docdi | --doc | --do)
987 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
990 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
992 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
995 -enable-* | --enable-*)
996 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
997 # Reject names that are not valid shell variable names.
998 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
999 as_fn_error $? "invalid feature name: $ac_useropt"
1000 ac_useropt_orig=$ac_useropt
1001 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1002 case $ac_user_opts in
1004 "enable_$ac_useropt"
1006 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1007 ac_unrecognized_sep=', ';;
1009 eval enable_$ac_useropt=\$ac_optarg ;;
1011 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1012 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1013 | --exec | --exe | --ex)
1014 ac_prev=exec_prefix ;;
1015 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1016 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1017 | --exec=* | --exe=* | --ex=*)
1018 exec_prefix=$ac_optarg ;;
1020 -gas | --gas | --ga | --g)
1021 # Obsolete; use --with-gas.
1024 -help | --help | --hel | --he | -h)
1025 ac_init_help=long ;;
1026 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1027 ac_init_help=recursive ;;
1028 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1029 ac_init_help=short ;;
1031 -host | --host | --hos | --ho)
1032 ac_prev=host_alias ;;
1033 -host=* | --host=* | --hos=* | --ho=*)
1034 host_alias=$ac_optarg ;;
1036 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1038 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1040 htmldir=$ac_optarg ;;
1042 -includedir | --includedir | --includedi | --included | --include \
1043 | --includ | --inclu | --incl | --inc)
1044 ac_prev=includedir ;;
1045 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1046 | --includ=* | --inclu=* | --incl=* | --inc=*)
1047 includedir=$ac_optarg ;;
1049 -infodir | --infodir | --infodi | --infod | --info | --inf)
1051 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1052 infodir=$ac_optarg ;;
1054 -libdir | --libdir | --libdi | --libd)
1056 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1057 libdir=$ac_optarg ;;
1059 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1060 | --libexe | --libex | --libe)
1061 ac_prev=libexecdir ;;
1062 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1063 | --libexe=* | --libex=* | --libe=*)
1064 libexecdir=$ac_optarg ;;
1066 -localedir | --localedir | --localedi | --localed | --locale)
1067 ac_prev=localedir ;;
1068 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1069 localedir=$ac_optarg ;;
1071 -localstatedir | --localstatedir | --localstatedi | --localstated \
1072 | --localstate | --localstat | --localsta | --localst | --locals)
1073 ac_prev=localstatedir ;;
1074 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1075 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1076 localstatedir=$ac_optarg ;;
1078 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1080 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1081 mandir=$ac_optarg ;;
1083 -nfp | --nfp | --nf)
1084 # Obsolete; use --without-fp.
1087 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1088 | --no-cr | --no-c | -n)
1091 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1092 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1095 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1096 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1097 | --oldin | --oldi | --old | --ol | --o)
1098 ac_prev=oldincludedir ;;
1099 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1100 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1101 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1102 oldincludedir=$ac_optarg ;;
1104 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1106 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1107 prefix=$ac_optarg ;;
1109 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1110 | --program-pre | --program-pr | --program-p)
1111 ac_prev=program_prefix ;;
1112 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1113 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1114 program_prefix=$ac_optarg ;;
1116 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1117 | --program-suf | --program-su | --program-s)
1118 ac_prev=program_suffix ;;
1119 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1120 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1121 program_suffix=$ac_optarg ;;
1123 -program-transform-name | --program-transform-name \
1124 | --program-transform-nam | --program-transform-na \
1125 | --program-transform-n | --program-transform- \
1126 | --program-transform | --program-transfor \
1127 | --program-transfo | --program-transf \
1128 | --program-trans | --program-tran \
1129 | --progr-tra | --program-tr | --program-t)
1130 ac_prev=program_transform_name ;;
1131 -program-transform-name=* | --program-transform-name=* \
1132 | --program-transform-nam=* | --program-transform-na=* \
1133 | --program-transform-n=* | --program-transform-=* \
1134 | --program-transform=* | --program-transfor=* \
1135 | --program-transfo=* | --program-transf=* \
1136 | --program-trans=* | --program-tran=* \
1137 | --progr-tra=* | --program-tr=* | --program-t=*)
1138 program_transform_name=$ac_optarg ;;
1140 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1142 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1143 pdfdir=$ac_optarg ;;
1145 -psdir | --psdir | --psdi | --psd | --ps)
1147 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1150 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1151 | -silent | --silent | --silen | --sile | --sil)
1154 -runstatedir | --runstatedir | --runstatedi | --runstated \
1155 | --runstate | --runstat | --runsta | --runst | --runs \
1156 | --run | --ru | --r)
1157 ac_prev=runstatedir ;;
1158 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1159 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1160 | --run=* | --ru=* | --r=*)
1161 runstatedir=$ac_optarg ;;
1163 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1165 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1167 sbindir=$ac_optarg ;;
1169 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171 | --sharedst | --shareds | --shared | --share | --shar \
1173 ac_prev=sharedstatedir ;;
1174 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1178 sharedstatedir=$ac_optarg ;;
1180 -site | --site | --sit)
1182 -site=* | --site=* | --sit=*)
1185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1188 srcdir=$ac_optarg ;;
1190 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191 | --syscon | --sysco | --sysc | --sys | --sy)
1192 ac_prev=sysconfdir ;;
1193 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1195 sysconfdir=$ac_optarg ;;
1197 -target | --target | --targe | --targ | --tar | --ta | --t)
1198 ac_prev=target_alias ;;
1199 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1200 target_alias=$ac_optarg ;;
1202 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1205 -version | --version | --versio | --versi | --vers | -V)
1206 ac_init_version=: ;;
1209 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid package name: $ac_useropt"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1222 eval with_$ac_useropt=\$ac_optarg ;;
1224 -without-* | --without-*)
1225 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1226 # Reject names that are not valid shell variable names.
1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1228 as_fn_error $? "invalid package name: $ac_useropt"
1229 ac_useropt_orig=$ac_useropt
1230 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1231 case $ac_user_opts in
1235 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1236 ac_unrecognized_sep=', ';;
1238 eval with_$ac_useropt=no ;;
1241 # Obsolete; use --with-x.
1244 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1245 | --x-incl | --x-inc | --x-in | --x-i)
1246 ac_prev=x_includes ;;
1247 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1248 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1249 x_includes=$ac_optarg ;;
1251 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1252 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1253 ac_prev=x_libraries ;;
1254 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1255 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1256 x_libraries=$ac_optarg ;;
1258 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1259 Try \`$0 --help' for more information"
1263 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1264 # Reject names that are not valid shell variable names.
1265 case $ac_envvar in #(
1266 '' | [0-9]* | *[!_$as_cr_alnum]* )
1267 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1269 eval $ac_envvar=\$ac_optarg
1270 export $ac_envvar ;;
1273 # FIXME: should be removed in autoconf 3.0.
1274 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1275 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1276 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1277 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1283 if test -n "$ac_prev"; then
1284 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1285 as_fn_error $? "missing argument to $ac_option"
1288 if test -n "$ac_unrecognized_opts"; then
1289 case $enable_option_checking in
1291 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1292 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1296 # Check all directory arguments for consistency.
1297 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1298 datadir sysconfdir sharedstatedir localstatedir includedir \
1299 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1300 libdir localedir mandir runstatedir
1302 eval ac_val=\$$ac_var
1303 # Remove trailing slashes.
1306 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1307 eval $ac_var=\$ac_val;;
1309 # Be sure to have absolute directory names.
1311 [\\/$]* | ?:[\\/]* ) continue;;
1312 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1314 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1317 # There might be people who depend on the old broken behavior: `$host'
1318 # used to hold the argument of --host etc.
1319 # FIXME: To remove some day.
1322 target=$target_alias
1324 # FIXME: To remove some day.
1325 if test "x$host_alias" != x; then
1326 if test "x$build_alias" = x; then
1327 cross_compiling=maybe
1328 elif test "x$build_alias" != "x$host_alias"; then
1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336 test "$silent" = yes && exec 6>/dev/null
1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di=`ls -di .` &&
1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342 as_fn_error $? "working directory cannot be determined"
1343 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344 as_fn_error $? "pwd does not report name of working directory"
1347 # Find the source files, if location was not specified.
1348 if test -z "$srcdir"; then
1349 ac_srcdir_defaulted=yes
1350 # Try the directory containing this script, then the parent directory.
1351 ac_confdir=`$as_dirname -- "$as_myself" ||
1352 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353 X"$as_myself" : 'X\(//\)[^/]' \| \
1354 X"$as_myself" : 'X\(//\)$' \| \
1355 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356 $as_echo X"$as_myself" |
1357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375 if test ! -r "$srcdir/$ac_unique_file"; then
1379 ac_srcdir_defaulted=no
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1385 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1389 # When building in place, set srcdir=.
1390 if test "$ac_abs_confdir" = "$ac_pwd"; then
1393 # Remove unnecessary trailing slashes from srcdir.
1394 # Double slashes in file names in object file debugging info
1395 # mess up M-x gdb in Emacs.
1397 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399 for ac_var in $ac_precious_vars; do
1400 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401 eval ac_env_${ac_var}_value=\$${ac_var}
1402 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407 # Report the --help message.
1409 if test "$ac_init_help" = "long"; then
1410 # Omit some internal or obsolete options to make the list less imposing.
1411 # This message is too long to be a string in the A/UX 3.1 sh.
1413 \`configure' configures OpenJPEG 1.5.0 to adapt to many kinds of systems.
1415 Usage: $0 [OPTION]... [VAR=VALUE]...
1417 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418 VAR=VALUE. See below for descriptions of some of the useful variables.
1420 Defaults for the options are specified in brackets.
1423 -h, --help display this help and exit
1424 --help=short display options specific to this package
1425 --help=recursive display the short help of all the included packages
1426 -V, --version display version information and exit
1427 -q, --quiet, --silent do not print \`checking ...' messages
1428 --cache-file=FILE cache test results in FILE [disabled]
1429 -C, --config-cache alias for \`--cache-file=config.cache'
1430 -n, --no-create do not create output files
1431 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1433 Installation directories:
1434 --prefix=PREFIX install architecture-independent files in PREFIX
1435 [$ac_default_prefix]
1436 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439 By default, \`make install' will install all the files in
1440 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442 for instance \`--prefix=\$HOME'.
1444 For better control, use the options below.
1446 Fine tuning of the installation directories:
1447 --bindir=DIR user executables [EPREFIX/bin]
1448 --sbindir=DIR system admin executables [EPREFIX/sbin]
1449 --libexecdir=DIR program executables [EPREFIX/libexec]
1450 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1454 --libdir=DIR object code libraries [EPREFIX/lib]
1455 --includedir=DIR C header files [PREFIX/include]
1456 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1457 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1458 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1459 --infodir=DIR info documentation [DATAROOTDIR/info]
1460 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1461 --mandir=DIR man documentation [DATAROOTDIR/man]
1462 --docdir=DIR documentation root [DATAROOTDIR/doc/openjpeg]
1463 --htmldir=DIR html documentation [DOCDIR]
1464 --dvidir=DIR dvi documentation [DOCDIR]
1465 --pdfdir=DIR pdf documentation [DOCDIR]
1466 --psdir=DIR ps documentation [DOCDIR]
1472 --program-prefix=PREFIX prepend PREFIX to installed program names
1473 --program-suffix=SUFFIX append SUFFIX to installed program names
1474 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1477 --build=BUILD configure for building on BUILD [guessed]
1478 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1479 --target=TARGET configure for building compilers for TARGET [HOST]
1483 if test -n "$ac_init_help"; then
1484 case $ac_init_help in
1485 short | recursive ) echo "Configuration of OpenJPEG 1.5.0:";;
1490 --disable-option-checking ignore unrecognized --enable/--with options
1491 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1492 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1493 --enable-silent-rules less verbose build output (undo: "make V=1")
1494 --disable-silent-rules verbose build output (undo: "make V=0")
1495 --enable-shared[=PKGS] build shared libraries [default=yes]
1496 --enable-static[=PKGS] build static libraries [default=yes]
1497 --enable-fast-install[=PKGS]
1498 optimize for fast installation [default=yes]
1499 --enable-dependency-tracking
1500 do not reject slow dependency extractors
1501 --disable-dependency-tracking
1502 speeds up one-time build
1503 --disable-libtool-lock avoid locking (might break parallel builds)
1504 --enable-debug build with debug symbols [default=disabled]
1505 --enable-mj2 build mj2 binaries [default=disabled]
1506 --enable-jpwl build JPWL library [default=disabled]
1507 --enable-jpip build jpip library [default=disabled]
1508 --enable-jpip-server build jpip server [default=disabled]
1509 --disable-doc Disable documentation build [default=enabled]
1510 --disable-png disable PNG support [default=enabled]
1511 --disable-tiff disable TIFF support [default=enabled]
1512 --disable-lcms2 disable LCMS-2 support [default=enabled]
1513 --disable-lcms1 disable LCMS-1 support [default=enabled]
1516 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1517 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1518 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1520 --with-aix-soname=aix|svr4|both
1521 shared library versioning (aka "SONAME") variant to
1522 provide on AIX, [default=aix].
1523 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1524 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1525 compiler's sysroot if not specified).
1526 --with-doxygen=FILE doxygen program to use [default=doxygen]
1528 Some influential environment variables:
1529 CC C compiler command
1530 CFLAGS C compiler flags
1531 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1532 nonstandard directory <lib dir>
1533 LIBS libraries to pass to the linker, e.g. -l<library>
1534 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1535 you have headers in a nonstandard directory <include dir>
1537 User-defined run-time library search path.
1539 PKG_CONFIG path to pkg-config utility
1541 directories to add to pkg-config's search path
1543 path overriding pkg-config's built-in search path
1544 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config
1545 PNG_LIBS linker flags for PNG, overriding pkg-config
1546 Z_CFLAGS preprocessor flags for libz
1547 Z_LIBS linker flags for libz
1548 TIFF_CFLAGS preprocessor flags for libtiff
1549 TIFF_LIBS linker flags for libtiff
1551 C compiler flags for LCMS2, overriding pkg-config
1552 LCMS2_LIBS linker flags for LCMS2, overriding pkg-config
1554 C compiler flags for LCMS1, overriding pkg-config
1555 LCMS1_LIBS linker flags for LCMS1, overriding pkg-config
1557 compiler flag for the thread library
1558 THREAD_LIBS linker flags for thread library
1559 FCGI_CFLAGS preprocessor flags for libfcgi
1560 FCGI_LIBS linker flags for libfcgi
1562 C compiler flags for LIBCURL, overriding pkg-config
1564 linker flags for LIBCURL, overriding pkg-config
1566 Use these variables to override the choices made by `configure' or to help
1567 it to find libraries and programs with nonstandard names/locations.
1569 Report bugs to <openjpeg@googlegroups.com>.
1570 OpenJPEG home page: <http://www.openjpeg.org>.
1575 if test "$ac_init_help" = "recursive"; then
1576 # If there are subdirs, report their specific --help.
1577 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1578 test -d "$ac_dir" ||
1579 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1584 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1587 # A ".." for each directory in $ac_dir_suffix.
1588 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1589 case $ac_top_builddir_sub in
1590 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1591 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1594 ac_abs_top_builddir=$ac_pwd
1595 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1596 # for backward compatibility:
1597 ac_top_builddir=$ac_top_build_prefix
1600 .) # We are building in place.
1602 ac_top_srcdir=$ac_top_builddir_sub
1603 ac_abs_top_srcdir=$ac_pwd ;;
1604 [\\/]* | ?:[\\/]* ) # Absolute name.
1605 ac_srcdir=$srcdir$ac_dir_suffix;
1606 ac_top_srcdir=$srcdir
1607 ac_abs_top_srcdir=$srcdir ;;
1609 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1610 ac_top_srcdir=$ac_top_build_prefix$srcdir
1611 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1613 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1615 cd "$ac_dir" || { ac_status=$?; continue; }
1616 # Check for guested configure.
1617 if test -f "$ac_srcdir/configure.gnu"; then
1619 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1620 elif test -f "$ac_srcdir/configure"; then
1622 $SHELL "$ac_srcdir/configure" --help=recursive
1624 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1626 cd "$ac_pwd" || { ac_status=$?; break; }
1630 test -n "$ac_init_help" && exit $ac_status
1631 if $ac_init_version; then
1633 OpenJPEG configure 1.5.0
1634 generated by GNU Autoconf 2.69
1636 Copyright (C) 2012 Free Software Foundation, Inc.
1637 This configure script is free software; the Free Software Foundation
1638 gives unlimited permission to copy, distribute and modify it.
1643 ## ------------------------ ##
1644 ## Autoconf initialization. ##
1645 ## ------------------------ ##
1647 # ac_fn_c_try_compile LINENO
1648 # --------------------------
1649 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1650 ac_fn_c_try_compile ()
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1653 rm -f conftest.$ac_objext
1654 if { { ac_try="$ac_compile"
1656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1657 *) ac_try_echo=$ac_try;;
1659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1660 $as_echo "$ac_try_echo"; } >&5
1661 (eval "$ac_compile") 2>conftest.err
1663 if test -s conftest.err; then
1664 grep -v '^ *+' conftest.err >conftest.er1
1665 cat conftest.er1 >&5
1666 mv -f conftest.er1 conftest.err
1668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1669 test $ac_status = 0; } && {
1670 test -z "$ac_c_werror_flag" ||
1671 test ! -s conftest.err
1672 } && test -s conftest.$ac_objext; then :
1675 $as_echo "$as_me: failed program was:" >&5
1676 sed 's/^/| /' conftest.$ac_ext >&5
1680 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1681 as_fn_set_status $ac_retval
1683 } # ac_fn_c_try_compile
1685 # ac_fn_c_try_link LINENO
1686 # -----------------------
1687 # Try to link conftest.$ac_ext, and return whether this succeeded.
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 rm -f conftest.$ac_objext conftest$ac_exeext
1692 if { { ac_try="$ac_link"
1694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_link") 2>conftest.err
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && {
1708 test -z "$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 } && test -s conftest$ac_exeext && {
1711 test "$cross_compiling" = yes ||
1712 test -x conftest$ac_exeext
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1721 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1722 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1723 # interfere with the next link command; also delete a directory that is
1724 # left behind by Apple's compiler. We do this before executing the actions.
1725 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1729 } # ac_fn_c_try_link
1731 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1732 # -------------------------------------------------------
1733 # Tests whether HEADER exists and can be compiled using the include files in
1734 # INCLUDES, setting the cache variable VAR accordingly.
1735 ac_fn_c_check_header_compile ()
1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if eval \${$3+:} false; then :
1741 $as_echo_n "(cached) " >&6
1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1744 /* end confdefs.h. */
1748 if ac_fn_c_try_compile "$LINENO"; then :
1753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1757 $as_echo "$ac_res" >&6; }
1758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 } # ac_fn_c_check_header_compile
1762 # ac_fn_c_try_cpp LINENO
1763 # ----------------------
1764 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 if { { ac_try="$ac_cpp conftest.$ac_ext"
1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774 $as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1777 if test -s conftest.err; then
1778 grep -v '^ *+' conftest.err >conftest.er1
1779 cat conftest.er1 >&5
1780 mv -f conftest.er1 conftest.err
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1783 test $ac_status = 0; } > conftest.i && {
1784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1785 test ! -s conftest.err
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1795 as_fn_set_status $ac_retval
1799 # ac_fn_c_try_run LINENO
1800 # ----------------------
1801 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1802 # that executables *can* be run.
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 if { { ac_try="$ac_link"
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_link") 2>&5
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1817 { { case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_try") 2>&5
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; }; }; then :
1829 $as_echo "$as_me: program exited with status $ac_status" >&5
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1833 ac_retval=$ac_status
1835 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
1841 # ac_fn_c_check_func LINENO FUNC VAR
1842 # ----------------------------------
1843 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1844 ac_fn_c_check_func ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1854 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1856 #define $2 innocuous_$2
1858 /* System header to define __stub macros and hopefully few prototypes,
1859 which can conflict with char $2 (); below.
1860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1861 <limits.h> exists even on freestanding compilers. */
1864 # include <limits.h>
1866 # include <assert.h>
1871 /* Override any GCC internal prototype to avoid an error.
1872 Use char because int might match the return type of a GCC
1873 builtin and then its argument prototype would still apply. */
1878 /* The GNU C library defines this for functions which it implements
1879 to always fail with ENOSYS. Some functions are actually named
1880 something starting with __ and the normal name is an alias. */
1881 #if defined __stub_$2 || defined __stub___$2
1893 if ac_fn_c_try_link "$LINENO"; then :
1898 rm -f core conftest.err conftest.$ac_objext \
1899 conftest$ac_exeext conftest.$ac_ext
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 } # ac_fn_c_check_func
1907 cat >config.log <<_ACEOF
1908 This file contains any messages produced by compilers while
1909 running configure, to aid debugging if configure makes a mistake.
1911 It was created by OpenJPEG $as_me 1.5.0, which was
1912 generated by GNU Autoconf 2.69. Invocation command line was
1924 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1925 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1926 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1927 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1928 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1930 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1931 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1933 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1934 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1935 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1936 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1937 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1938 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1939 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 test -z "$as_dir" && as_dir=.
1948 $as_echo "PATH: $as_dir"
1964 # Keep a trace of the command line.
1965 # Strip out --no-create and --no-recursion so they do not pile up.
1966 # Strip out --silent because we don't want to record it for future runs.
1967 # Also quote any args containing shell meta-characters.
1968 # Make two passes to allow for proper duplicate-argument suppression.
1972 ac_must_keep_next=false
1978 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1980 | -silent | --silent | --silen | --sile | --sil)
1983 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1986 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1988 as_fn_append ac_configure_args1 " '$ac_arg'"
1989 if test $ac_must_keep_next = true; then
1990 ac_must_keep_next=false # Got value, back to normal.
1993 *=* | --config-cache | -C | -disable-* | --disable-* \
1994 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1995 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1996 | -with-* | --with-* | -without-* | --without-* | --x)
1997 case "$ac_configure_args0 " in
1998 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2001 -* ) ac_must_keep_next=true ;;
2004 as_fn_append ac_configure_args " '$ac_arg'"
2009 { ac_configure_args0=; unset ac_configure_args0;}
2010 { ac_configure_args1=; unset ac_configure_args1;}
2012 # When interrupted or exit'd, cleanup temporary files, and complete
2013 # config.log. We remove comments because anyway the quotes in there
2014 # would cause problems or look ugly.
2015 # WARNING: Use '\'' to represent an apostrophe within the trap.
2016 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2017 trap 'exit_status=$?
2018 # Save into config.log some information that might help in debugging.
2022 $as_echo "## ---------------- ##
2023 ## Cache variables. ##
2024 ## ---------------- ##"
2026 # The following way of writing the cache mishandles newlines in values,
2028 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2029 eval ac_val=\$$ac_var
2033 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2034 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2037 _ | IFS | as_nl) ;; #(
2038 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2039 *) { eval $ac_var=; unset $ac_var;} ;;
2044 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2045 *${as_nl}ac_space=\ *)
2047 "s/'\''/'\''\\\\'\'''\''/g;
2048 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2051 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2058 $as_echo "## ----------------- ##
2059 ## Output variables. ##
2060 ## ----------------- ##"
2062 for ac_var in $ac_subst_vars
2064 eval ac_val=\$$ac_var
2066 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2068 $as_echo "$ac_var='\''$ac_val'\''"
2072 if test -n "$ac_subst_files"; then
2073 $as_echo "## ------------------- ##
2074 ## File substitutions. ##
2075 ## ------------------- ##"
2077 for ac_var in $ac_subst_files
2079 eval ac_val=\$$ac_var
2081 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2083 $as_echo "$ac_var='\''$ac_val'\''"
2088 if test -s confdefs.h; then
2089 $as_echo "## ----------- ##
2096 test "$ac_signal" != 0 &&
2097 $as_echo "$as_me: caught signal $ac_signal"
2098 $as_echo "$as_me: exit $exit_status"
2100 rm -f core *.core core.conftest.* &&
2101 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2104 for ac_signal in 1 2 13 15; do
2105 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2109 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2110 rm -f -r conftest* confdefs.h
2112 $as_echo "/* confdefs.h */" > confdefs.h
2114 # Predefined preprocessor variables.
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_NAME "$PACKAGE_NAME"
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_STRING "$PACKAGE_STRING"
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_URL "$PACKAGE_URL"
2141 # Let the site file select an alternate cache file if it wants to.
2142 # Prefer an explicitly selected file to automatically selected ones.
2145 if test -n "$CONFIG_SITE"; then
2146 # We do not want a PATH search for config.site.
2147 case $CONFIG_SITE in #((
2148 -*) ac_site_file1=./$CONFIG_SITE;;
2149 */*) ac_site_file1=$CONFIG_SITE;;
2150 *) ac_site_file1=./$CONFIG_SITE;;
2152 elif test "x$prefix" != xNONE; then
2153 ac_site_file1=$prefix/share/config.site
2154 ac_site_file2=$prefix/etc/config.site
2156 ac_site_file1=$ac_default_prefix/share/config.site
2157 ac_site_file2=$ac_default_prefix/etc/config.site
2159 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2161 test "x$ac_site_file" = xNONE && continue
2162 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2164 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2165 sed 's/^/| /' "$ac_site_file" >&5
2167 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2169 as_fn_error $? "failed to load site script $ac_site_file
2170 See \`config.log' for more details" "$LINENO" 5; }
2174 if test -r "$cache_file"; then
2175 # Some versions of bash will fail to source /dev/null (special files
2176 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2177 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2179 $as_echo "$as_me: loading cache $cache_file" >&6;}
2181 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2182 *) . "./$cache_file";;
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2187 $as_echo "$as_me: creating cache $cache_file" >&6;}
2191 # Check that the precious variables saved in the cache have kept the same
2193 ac_cache_corrupted=false
2194 for ac_var in $ac_precious_vars; do
2195 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2196 eval ac_new_set=\$ac_env_${ac_var}_set
2197 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2198 eval ac_new_val=\$ac_env_${ac_var}_value
2199 case $ac_old_set,$ac_new_set in
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2202 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2203 ac_cache_corrupted=: ;;
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2206 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2207 ac_cache_corrupted=: ;;
2210 if test "x$ac_old_val" != "x$ac_new_val"; then
2211 # differences in whitespace do not lead to failure.
2212 ac_old_val_w=`echo x $ac_old_val`
2213 ac_new_val_w=`echo x $ac_new_val`
2214 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2216 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2217 ac_cache_corrupted=:
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2220 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2221 eval $ac_var=\$ac_old_val
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2224 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2226 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2229 # Pass precious variables to config.status.
2230 if test "$ac_new_set" = set; then
2232 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2233 *) ac_arg=$ac_var=$ac_new_val ;;
2235 case " $ac_configure_args " in
2236 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2237 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2241 if $ac_cache_corrupted; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2245 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2246 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2248 ## -------------------- ##
2249 ## Main body of script. ##
2250 ## -------------------- ##
2253 ac_cpp='$CPP $CPPFLAGS'
2254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2261 ac_config_headers="$ac_config_headers opj_config.h"
2265 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2266 if test -f "$ac_dir/install-sh"; then
2268 ac_install_sh="$ac_aux_dir/install-sh -c"
2270 elif test -f "$ac_dir/install.sh"; then
2272 ac_install_sh="$ac_aux_dir/install.sh -c"
2274 elif test -f "$ac_dir/shtool"; then
2276 ac_install_sh="$ac_aux_dir/shtool install -c"
2280 if test -z "$ac_aux_dir"; then
2281 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2284 # These three variables are undocumented and unsupported,
2285 # and are intended to be withdrawn in a future Autoconf release.
2286 # They can cause serious problems if a builder's source tree is in a directory
2287 # whose full name contains unusual characters.
2288 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2289 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2290 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2293 # Make sure we can run config.sub.
2294 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2295 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2298 $as_echo_n "checking build system type... " >&6; }
2299 if ${ac_cv_build+:} false; then :
2300 $as_echo_n "(cached) " >&6
2302 ac_build_alias=$build_alias
2303 test "x$ac_build_alias" = x &&
2304 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2305 test "x$ac_build_alias" = x &&
2306 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2307 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2308 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2312 $as_echo "$ac_cv_build" >&6; }
2313 case $ac_cv_build in
2315 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2318 ac_save_IFS=$IFS; IFS='-'
2324 # Remember, the first character of IFS is used to create $*,
2325 # except with old shells:
2328 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2332 $as_echo_n "checking host system type... " >&6; }
2333 if ${ac_cv_host+:} false; then :
2334 $as_echo_n "(cached) " >&6
2336 if test "x$host_alias" = x; then
2337 ac_cv_host=$ac_cv_build
2339 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2340 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2345 $as_echo "$ac_cv_host" >&6; }
2348 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2351 ac_save_IFS=$IFS; IFS='-'
2357 # Remember, the first character of IFS is used to create $*,
2358 # except with old shells:
2361 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2365 $as_echo_n "checking target system type... " >&6; }
2366 if ${ac_cv_target+:} false; then :
2367 $as_echo_n "(cached) " >&6
2369 if test "x$target_alias" = x; then
2370 ac_cv_target=$ac_cv_host
2372 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2373 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2378 $as_echo "$ac_cv_target" >&6; }
2379 case $ac_cv_target in
2381 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2383 target=$ac_cv_target
2384 ac_save_IFS=$IFS; IFS='-'
2390 # Remember, the first character of IFS is used to create $*,
2391 # except with old shells:
2394 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2397 # The aliases save the names the user supplied, while $host etc.
2398 # will get canonicalized.
2399 test -n "$target_alias" &&
2400 test "$program_prefix$program_suffix$program_transform_name" = \
2402 program_prefix=${target_alias}-
2406 am__api_version='1.15'
2408 # Find a good install program. We prefer a C program (faster),
2409 # so one script is as good as another. But avoid the broken or
2410 # incompatible versions:
2411 # SysV /etc/install, /usr/sbin/install
2412 # SunOS /usr/etc/install
2413 # IRIX /sbin/install
2415 # AmigaOS /C/install, which installs bootblocks on floppy discs
2416 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2417 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2418 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2419 # OS/2's system install, which has a completely different semantic
2420 # ./install, which can be erroneously created by make from ./install.sh.
2421 # Reject install programs that cannot install multiple files.
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2423 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2424 if test -z "$INSTALL"; then
2425 if ${ac_cv_path_install+:} false; then :
2426 $as_echo_n "(cached) " >&6
2428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432 test -z "$as_dir" && as_dir=.
2433 # Account for people who put trailing slashes in PATH elements.
2434 case $as_dir/ in #((
2435 ./ | .// | /[cC]/* | \
2436 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2437 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2440 # OSF1 and SCO ODT 3.0 have their own names for install.
2441 # Don't use installbsd from OSF since it installs stuff as root
2443 for ac_prog in ginstall scoinst install; do
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2446 if test $ac_prog = install &&
2447 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2448 # AIX install. It has an incompatible calling convention.
2450 elif test $ac_prog = install &&
2451 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2452 # program-specific install script used by HP pwplus--don't use.
2455 rm -rf conftest.one conftest.two conftest.dir
2456 echo one > conftest.one
2457 echo two > conftest.two
2459 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2460 test -s conftest.one && test -s conftest.two &&
2461 test -s conftest.dir/conftest.one &&
2462 test -s conftest.dir/conftest.two
2464 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2477 rm -rf conftest.one conftest.two conftest.dir
2480 if test "${ac_cv_path_install+set}" = set; then
2481 INSTALL=$ac_cv_path_install
2483 # As a last resort, use the slow shell script. Don't cache a
2484 # value for INSTALL within a source directory, because that will
2485 # break other packages using the cache if that directory is
2486 # removed, or if the value is a relative name.
2487 INSTALL=$ac_install_sh
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2491 $as_echo "$INSTALL" >&6; }
2493 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2494 # It thinks the first close brace ends the variable substitution.
2495 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2497 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2499 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2502 $as_echo_n "checking whether build environment is sane... " >&6; }
2503 # Reject unsafe characters in $srcdir or the absolute working directory
2504 # name. Accept space and tab only in the latter.
2508 *[\\\"\#\$\&\'\`$am_lf]*)
2509 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2512 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2513 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2516 # Do 'set' in a subshell so we don't clobber the current shell's
2517 # arguments. Must try -L first in case configure is actually a
2518 # symlink; some systems play weird games with the mod time of symlinks
2519 # (eg FreeBSD returns the mod time of the symlink's containing
2523 for am_try in 1 2; do
2524 echo "timestamp, slept: $am_has_slept" > conftest.file
2525 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2526 if test "$*" = "X"; then
2528 set X `ls -t "$srcdir/configure" conftest.file`
2530 if test "$*" != "X $srcdir/configure conftest.file" \
2531 && test "$*" != "X conftest.file $srcdir/configure"; then
2533 # If neither matched, then we have a broken ls. This can happen
2534 # if, for instance, CONFIG_SHELL is bash and it inherits a
2535 # broken ls alias from the environment. This has actually
2536 # happened. Such a system could not be considered "sane".
2537 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2538 alias in your environment" "$LINENO" 5
2540 if test "$2" = conftest.file || test $am_try -eq 2; then
2547 test "$2" = conftest.file
2553 as_fn_error $? "newly created file is older than distributed files!
2554 Check your system clock" "$LINENO" 5
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2557 $as_echo "yes" >&6; }
2558 # If we didn't sleep, we still need to ensure time stamps of config.status and
2559 # generated files are strictly newer.
2561 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2568 test "$program_prefix" != NONE &&
2569 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2570 # Use a double $ so make ignores it.
2571 test "$program_suffix" != NONE &&
2572 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2573 # Double any \ or $.
2574 # By default was `s,x,x', remove it if useless.
2575 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2576 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2578 # Expand $ac_aux_dir to an absolute path.
2579 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2581 if test x"${MISSING+set}" != xset; then
2584 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2586 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2589 # Use eval to expand $SHELL
2590 if eval "$MISSING --is-lightweight"; then
2591 am_missing_run="$MISSING "
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2595 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2598 if test x"${install_sh+set}" != xset; then
2601 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2603 install_sh="\${SHELL} $am_aux_dir/install-sh"
2607 # Installed binaries are usually stripped using 'strip' when the user
2608 # run "make install-strip". However 'strip' might not be the right
2609 # tool to use in cross-compilation environments, therefore Automake
2610 # will honor the 'STRIP' environment variable to overrule this program.
2611 if test "$cross_compiling" != no; then
2612 if test -n "$ac_tool_prefix"; then
2613 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2614 set dummy ${ac_tool_prefix}strip; ac_word=$2
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2616 $as_echo_n "checking for $ac_word... " >&6; }
2617 if ${ac_cv_prog_STRIP+:} false; then :
2618 $as_echo_n "(cached) " >&6
2620 if test -n "$STRIP"; then
2621 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2630 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2640 STRIP=$ac_cv_prog_STRIP
2641 if test -n "$STRIP"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2643 $as_echo "$STRIP" >&6; }
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2646 $as_echo "no" >&6; }
2651 if test -z "$ac_cv_prog_STRIP"; then
2653 # Extract the first word of "strip", so it can be a program name with args.
2654 set dummy strip; ac_word=$2
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2656 $as_echo_n "checking for $ac_word... " >&6; }
2657 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2658 $as_echo_n "(cached) " >&6
2660 if test -n "$ac_ct_STRIP"; then
2661 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2667 test -z "$as_dir" && as_dir=.
2668 for ac_exec_ext in '' $ac_executable_extensions; do
2669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2670 ac_cv_prog_ac_ct_STRIP="strip"
2671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2680 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2681 if test -n "$ac_ct_STRIP"; then
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2683 $as_echo "$ac_ct_STRIP" >&6; }
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2686 $as_echo "no" >&6; }
2689 if test "x$ac_ct_STRIP" = x; then
2692 case $cross_compiling:$ac_tool_warned in
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2696 ac_tool_warned=yes ;;
2701 STRIP="$ac_cv_prog_STRIP"
2705 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2708 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2709 if test -z "$MKDIR_P"; then
2710 if ${ac_cv_path_mkdir+:} false; then :
2711 $as_echo_n "(cached) " >&6
2713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2714 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2717 test -z "$as_dir" && as_dir=.
2718 for ac_prog in mkdir gmkdir; do
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2721 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2722 'mkdir (GNU coreutils) '* | \
2723 'mkdir (coreutils) '* | \
2724 'mkdir (fileutils) '4.1*)
2725 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2735 test -d ./--version && rmdir ./--version
2736 if test "${ac_cv_path_mkdir+set}" = set; then
2737 MKDIR_P="$ac_cv_path_mkdir -p"
2739 # As a last resort, use the slow shell script. Don't cache a
2740 # value for MKDIR_P within a source directory, because that will
2741 # break other packages using the cache if that directory is
2742 # removed, or if the value is a relative name.
2743 MKDIR_P="$ac_install_sh -d"
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2747 $as_echo "$MKDIR_P" >&6; }
2749 for ac_prog in gawk mawk nawk awk
2751 # Extract the first word of "$ac_prog", so it can be a program name with args.
2752 set dummy $ac_prog; ac_word=$2
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2754 $as_echo_n "checking for $ac_word... " >&6; }
2755 if ${ac_cv_prog_AWK+:} false; then :
2756 $as_echo_n "(cached) " >&6
2758 if test -n "$AWK"; then
2759 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2765 test -z "$as_dir" && as_dir=.
2766 for ac_exec_ext in '' $ac_executable_extensions; do
2767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2768 ac_cv_prog_AWK="$ac_prog"
2769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2779 if test -n "$AWK"; then
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2781 $as_echo "$AWK" >&6; }
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784 $as_echo "no" >&6; }
2788 test -n "$AWK" && break
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2792 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2794 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2795 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2796 $as_echo_n "(cached) " >&6
2798 cat >conftest.make <<\_ACEOF
2801 @echo '@@@%%%=$(MAKE)=@@@%%%'
2803 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2804 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2806 eval ac_cv_prog_make_${ac_make}_set=yes;;
2808 eval ac_cv_prog_make_${ac_make}_set=no;;
2812 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2814 $as_echo "yes" >&6; }
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2818 $as_echo "no" >&6; }
2819 SET_MAKE="MAKE=${MAKE-make}"
2822 rm -rf .tst 2>/dev/null
2823 mkdir .tst 2>/dev/null
2824 if test -d .tst; then
2829 rmdir .tst 2>/dev/null
2831 # Check whether --enable-silent-rules was given.
2832 if test "${enable_silent_rules+set}" = set; then :
2833 enableval=$enable_silent_rules;
2836 case $enable_silent_rules in # (((
2837 yes) AM_DEFAULT_VERBOSITY=0;;
2838 no) AM_DEFAULT_VERBOSITY=1;;
2839 *) AM_DEFAULT_VERBOSITY=1;;
2841 am_make=${MAKE-make}
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2843 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2844 if ${am_cv_make_support_nested_variables+:} false; then :
2845 $as_echo_n "(cached) " >&6
2847 if $as_echo 'TRUE=$(BAR$(V))
2853 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2854 am_cv_make_support_nested_variables=yes
2856 am_cv_make_support_nested_variables=no
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2860 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2861 if test $am_cv_make_support_nested_variables = yes; then
2863 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2865 AM_V=$AM_DEFAULT_VERBOSITY
2866 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2870 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2871 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2872 # is not polluted with repeated "-I."
2873 am__isrc=' -I$(srcdir)'
2874 # test to see if srcdir already configured
2875 if test -f $srcdir/config.status; then
2876 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2880 # test whether we have cygpath
2881 if test -z "$CYGPATH_W"; then
2882 if (cygpath --version) >/dev/null 2>/dev/null; then
2883 CYGPATH_W='cygpath -w'
2890 # Define the identity of the package.
2895 cat >>confdefs.h <<_ACEOF
2896 #define PACKAGE "$PACKAGE"
2900 cat >>confdefs.h <<_ACEOF
2901 #define VERSION "$VERSION"
2904 # Some tools Automake needs.
2906 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2909 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2912 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2915 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2918 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2920 # For better backward compatibility. To be removed once Automake 1.9.x
2921 # dies out for good. For more background, see:
2922 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2923 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2924 mkdir_p='$(MKDIR_P)'
2926 # We need awk for the "check" target (and possibly the TAP driver). The
2927 # system "awk" is bad on some platforms.
2928 # Always define AMTAR for backward compatibility. Yes, it's still used
2929 # in the wild :-( We should find a proper way to deprecate it ...
2933 # We'll loop over all known methods to create a tar archive until one works.
2934 _am_tools='gnutar pax cpio none'
2936 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2943 # POSIX will say in a future version that running "rm -f" with no argument
2944 # is OK; and we want to be able to make that assumption in our Makefile
2945 # recipes. So use an aggressive probe to check that the usage we want is
2946 # actually supported "in the wild" to an acceptable degree.
2947 # See automake bug#10828.
2948 # To make any issue more visible, cause the running configure to be aborted
2949 # by default if the 'rm' program in use doesn't match our expectations; the
2950 # user can still override this though.
2951 if rm -f && rm -fr && rm -rf; then : OK; else
2955 Your 'rm' program seems unable to run without file operands specified
2956 on the command line, even when the '-f' option is present. This is contrary
2957 to the behaviour of most rm programs out there, and not conforming with
2958 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2960 Please tell bug-automake@gnu.org about your system, including the value
2961 of your $PATH and any error possibly output before this message. This
2962 can help us improve future automake versions.
2965 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2966 echo 'Configuration will proceed anyway, since you have set the' >&2
2967 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2971 Aborting the configuration process, to ensure you take notice of the issue.
2973 You can download and install GNU coreutils to get an 'rm' implementation
2974 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2976 If you want to complete the configuration process using your problematic
2977 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2978 to "yes", and re-run configure.
2981 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2985 # Check whether --enable-silent-rules was given.
2986 if test "${enable_silent_rules+set}" = set; then :
2987 enableval=$enable_silent_rules;
2990 case $enable_silent_rules in # (((
2991 yes) AM_DEFAULT_VERBOSITY=0;;
2992 no) AM_DEFAULT_VERBOSITY=1;;
2993 *) AM_DEFAULT_VERBOSITY=0;;
2995 am_make=${MAKE-make}
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2997 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2998 if ${am_cv_make_support_nested_variables+:} false; then :
2999 $as_echo_n "(cached) " >&6
3001 if $as_echo 'TRUE=$(BAR$(V))
3007 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3008 am_cv_make_support_nested_variables=yes
3010 am_cv_make_support_nested_variables=no
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3014 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3015 if test $am_cv_make_support_nested_variables = yes; then
3017 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3019 AM_V=$AM_DEFAULT_VERBOSITY
3020 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3036 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3041 macro_version='2.4.6'
3042 macro_revision='2.4.6'
3056 ltmain=$ac_aux_dir/ltmain.sh
3058 # Backslashify metacharacters that are still active within
3059 # double-quoted strings.
3060 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3062 # Same as above, but do not quote variable references.
3063 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3065 # Sed substitution to delay expansion of an escaped shell variable in a
3066 # double_quote_subst'ed string.
3067 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3069 # Sed substitution to delay expansion of an escaped single quote.
3070 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3072 # Sed substitution to avoid accidental globbing in evaled expressions
3073 no_glob_subst='s/\*/\\\*/g'
3075 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3076 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3077 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3080 $as_echo_n "checking how to print strings... " >&6; }
3081 # Test print first, because it will be a builtin if present.
3082 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3083 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3085 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3088 # Use this function as a fallback that always works.
3089 func_fallback_echo ()
3091 eval 'cat <<_LTECHO_EOF
3095 ECHO='func_fallback_echo'
3098 # func_echo_all arg...
3099 # Invoke $ECHO with all args, space-separated.
3106 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3107 $as_echo "printf" >&6; } ;;
3108 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3109 $as_echo "print -r" >&6; } ;;
3110 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3111 $as_echo "cat" >&6; } ;;
3127 DEPDIR="${am__leading_dot}deps"
3129 ac_config_commands="$ac_config_commands depfiles"
3132 am_make=${MAKE-make}
3133 cat > confinc << 'END'
3135 @echo this is the am__doit target
3138 # If we don't find an include directive, just comment out the code.
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3140 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3144 # First try GNU make style include.
3145 echo "include confinc" > confmf
3146 # Ignore all kinds of additional output from 'make'.
3147 case `$am_make -s -f confmf 2> /dev/null` in #(
3148 *the\ am__doit\ target*)
3154 # Now try BSD make style include.
3155 if test "$am__include" = "#"; then
3156 echo '.include "confinc"' > confmf
3157 case `$am_make -s -f confmf 2> /dev/null` in #(
3158 *the\ am__doit\ target*)
3159 am__include=.include
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3168 $as_echo "$_am_result" >&6; }
3169 rm -f confinc confmf
3171 # Check whether --enable-dependency-tracking was given.
3172 if test "${enable_dependency_tracking+set}" = set; then :
3173 enableval=$enable_dependency_tracking;
3176 if test "x$enable_dependency_tracking" != xno; then
3177 am_depcomp="$ac_aux_dir/depcomp"
3181 if test "x$enable_dependency_tracking" != xno; then
3191 ac_cpp='$CPP $CPPFLAGS'
3192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3195 if test -n "$ac_tool_prefix"; then
3196 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3197 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3199 $as_echo_n "checking for $ac_word... " >&6; }
3200 if ${ac_cv_prog_CC+:} false; then :
3201 $as_echo_n "(cached) " >&6
3203 if test -n "$CC"; then
3204 ac_cv_prog_CC="$CC" # Let the user override the test.
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 if test -n "$CC"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3226 $as_echo "$CC" >&6; }
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3234 if test -z "$ac_cv_prog_CC"; then
3236 # Extract the first word of "gcc", so it can be a program name with args.
3237 set dummy gcc; ac_word=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3241 $as_echo_n "(cached) " >&6
3243 if test -n "$ac_ct_CC"; then
3244 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253 ac_cv_prog_ac_ct_CC="gcc"
3254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3263 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3264 if test -n "$ac_ct_CC"; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3266 $as_echo "$ac_ct_CC" >&6; }
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3272 if test "x$ac_ct_CC" = x; then
3275 case $cross_compiling:$ac_tool_warned in
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3279 ac_tool_warned=yes ;;
3287 if test -z "$CC"; then
3288 if test -n "$ac_tool_prefix"; then
3289 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3290 set dummy ${ac_tool_prefix}cc; ac_word=$2
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3292 $as_echo_n "checking for $ac_word... " >&6; }
3293 if ${ac_cv_prog_CC+:} false; then :
3294 $as_echo_n "(cached) " >&6
3296 if test -n "$CC"; then
3297 ac_cv_prog_CC="$CC" # Let the user override the test.
3299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 test -z "$as_dir" && as_dir=.
3304 for ac_exec_ext in '' $ac_executable_extensions; do
3305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3306 ac_cv_prog_CC="${ac_tool_prefix}cc"
3307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3317 if test -n "$CC"; then
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3319 $as_echo "$CC" >&6; }
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322 $as_echo "no" >&6; }
3328 if test -z "$CC"; then
3329 # Extract the first word of "cc", so it can be a program name with args.
3330 set dummy cc; ac_word=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if ${ac_cv_prog_CC+:} false; then :
3334 $as_echo_n "(cached) " >&6
3336 if test -n "$CC"; then
3337 ac_cv_prog_CC="$CC" # Let the user override the test.
3340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3344 test -z "$as_dir" && as_dir=.
3345 for ac_exec_ext in '' $ac_executable_extensions; do
3346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3347 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3348 ac_prog_rejected=yes
3352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3359 if test $ac_prog_rejected = yes; then
3360 # We found a bogon in the path, so make sure we never use it.
3361 set dummy $ac_cv_prog_CC
3363 if test $# != 0; then
3364 # We chose a different compiler from the bogus one.
3365 # However, it has the same basename, so the bogon will be chosen
3366 # first if we set CC to just the basename; use the full file name.
3368 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3374 if test -n "$CC"; then
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3376 $as_echo "$CC" >&6; }
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379 $as_echo "no" >&6; }
3384 if test -z "$CC"; then
3385 if test -n "$ac_tool_prefix"; then
3386 for ac_prog in cl.exe
3388 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3389 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3391 $as_echo_n "checking for $ac_word... " >&6; }
3392 if ${ac_cv_prog_CC+:} false; then :
3393 $as_echo_n "(cached) " >&6
3395 if test -n "$CC"; then
3396 ac_cv_prog_CC="$CC" # Let the user override the test.
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3405 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 if test -n "$CC"; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3418 $as_echo "$CC" >&6; }
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3421 $as_echo "no" >&6; }
3425 test -n "$CC" && break
3428 if test -z "$CC"; then
3430 for ac_prog in cl.exe
3432 # Extract the first word of "$ac_prog", so it can be a program name with args.
3433 set dummy $ac_prog; ac_word=$2
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 $as_echo_n "checking for $ac_word... " >&6; }
3436 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3437 $as_echo_n "(cached) " >&6
3439 if test -n "$ac_ct_CC"; then
3440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 test -z "$as_dir" && as_dir=.
3447 for ac_exec_ext in '' $ac_executable_extensions; do
3448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3449 ac_cv_prog_ac_ct_CC="$ac_prog"
3450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3459 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3460 if test -n "$ac_ct_CC"; then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3462 $as_echo "$ac_ct_CC" >&6; }
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 $as_echo "no" >&6; }
3469 test -n "$ac_ct_CC" && break
3472 if test "x$ac_ct_CC" = x; then
3475 case $cross_compiling:$ac_tool_warned in
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3479 ac_tool_warned=yes ;;
3488 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3489 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3490 as_fn_error $? "no acceptable C compiler found in \$PATH
3491 See \`config.log' for more details" "$LINENO" 5; }
3493 # Provide some information about the compiler.
3494 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3497 for ac_option in --version -v -V -qversion; do
3498 { { ac_try="$ac_compiler $ac_option >&5"
3500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3501 *) ac_try_echo=$ac_try;;
3503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3504 $as_echo "$ac_try_echo"; } >&5
3505 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3507 if test -s conftest.err; then
3509 ... rest of stderr output deleted ...
3510 10q' conftest.err >conftest.er1
3511 cat conftest.er1 >&5
3513 rm -f conftest.er1 conftest.err
3514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3515 test $ac_status = 0; }
3518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3519 /* end confdefs.h. */
3529 ac_clean_files_save=$ac_clean_files
3530 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3531 # Try to create an executable without -o first, disregard a.out.
3532 # It will help us diagnose broken compilers, and finding out an intuition
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3535 $as_echo_n "checking whether the C compiler works... " >&6; }
3536 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3538 # The possible output files:
3539 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3542 for ac_file in $ac_files
3545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3546 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3551 if { { ac_try="$ac_link_default"
3553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3554 *) ac_try_echo=$ac_try;;
3556 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3557 $as_echo "$ac_try_echo"; } >&5
3558 (eval "$ac_link_default") 2>&5
3560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3561 test $ac_status = 0; }; then :
3562 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3563 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3564 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3565 # so that the user can short-circuit this test for compilers unknown to
3567 for ac_file in $ac_files ''
3569 test -f "$ac_file" || continue
3571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3574 # We found the default executable, but exeext='' is most
3578 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3580 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3582 # We set ac_cv_exeext here because the later test for it is not
3583 # safe: cross compilers may not add the suffix if given an `-o'
3584 # argument, so we may need to know it at that point already.
3585 # Even if this section looks crufty: it has the advantage of
3592 test "$ac_cv_exeext" = no && ac_cv_exeext=
3597 if test -z "$ac_file"; then :
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 $as_echo "no" >&6; }
3600 $as_echo "$as_me: failed program was:" >&5
3601 sed 's/^/| /' conftest.$ac_ext >&5
3603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3605 as_fn_error 77 "C compiler cannot create executables
3606 See \`config.log' for more details" "$LINENO" 5; }
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3609 $as_echo "yes" >&6; }
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3612 $as_echo_n "checking for C compiler default output file name... " >&6; }
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3614 $as_echo "$ac_file" >&6; }
3615 ac_exeext=$ac_cv_exeext
3617 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3618 ac_clean_files=$ac_clean_files_save
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3620 $as_echo_n "checking for suffix of executables... " >&6; }
3621 if { { ac_try="$ac_link"
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3626 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3627 $as_echo "$ac_try_echo"; } >&5
3628 (eval "$ac_link") 2>&5
3630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3631 test $ac_status = 0; }; then :
3632 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3633 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3634 # work properly (i.e., refer to `conftest.exe'), while it won't with
3636 for ac_file in conftest.exe conftest conftest.*; do
3637 test -f "$ac_file" || continue
3639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3640 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3648 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3649 See \`config.log' for more details" "$LINENO" 5; }
3651 rm -f conftest conftest$ac_cv_exeext
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3653 $as_echo "$ac_cv_exeext" >&6; }
3655 rm -f conftest.$ac_ext
3656 EXEEXT=$ac_cv_exeext
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3664 FILE *f = fopen ("conftest.out", "w");
3665 return ferror (f) || fclose (f) != 0;
3671 ac_clean_files="$ac_clean_files conftest.out"
3672 # Check that the compiler produces executables we can run. If not, either
3673 # the compiler is broken, or we cross compile.
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3675 $as_echo_n "checking whether we are cross compiling... " >&6; }
3676 if test "$cross_compiling" != yes; then
3677 { { ac_try="$ac_link"
3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3683 $as_echo "$ac_try_echo"; } >&5
3684 (eval "$ac_link") 2>&5
3686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3687 test $ac_status = 0; }
3688 if { ac_try='./conftest$ac_cv_exeext'
3689 { { case "(($ac_try" in
3690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3691 *) ac_try_echo=$ac_try;;
3693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3694 $as_echo "$ac_try_echo"; } >&5
3695 (eval "$ac_try") 2>&5
3697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3698 test $ac_status = 0; }; }; then
3701 if test "$cross_compiling" = maybe; then
3704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3706 as_fn_error $? "cannot run C compiled programs.
3707 If you meant to cross compile, use \`--host'.
3708 See \`config.log' for more details" "$LINENO" 5; }
3712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3713 $as_echo "$cross_compiling" >&6; }
3715 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3716 ac_clean_files=$ac_clean_files_save
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3718 $as_echo_n "checking for suffix of object files... " >&6; }
3719 if ${ac_cv_objext+:} false; then :
3720 $as_echo_n "(cached) " >&6
3722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3723 /* end confdefs.h. */
3733 rm -f conftest.o conftest.obj
3734 if { { ac_try="$ac_compile"
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3740 $as_echo "$ac_try_echo"; } >&5
3741 (eval "$ac_compile") 2>&5
3743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3744 test $ac_status = 0; }; then :
3745 for ac_file in conftest.o conftest.obj conftest.*; do
3746 test -f "$ac_file" || continue;
3748 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3749 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3754 $as_echo "$as_me: failed program was:" >&5
3755 sed 's/^/| /' conftest.$ac_ext >&5
3757 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3758 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3759 as_fn_error $? "cannot compute suffix of object files: cannot compile
3760 See \`config.log' for more details" "$LINENO" 5; }
3762 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3765 $as_echo "$ac_cv_objext" >&6; }
3766 OBJEXT=$ac_cv_objext
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3769 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3770 if ${ac_cv_c_compiler_gnu+:} false; then :
3771 $as_echo_n "(cached) " >&6
3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3774 /* end confdefs.h. */
3787 if ac_fn_c_try_compile "$LINENO"; then :
3792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3793 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3797 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3798 if test $ac_compiler_gnu = yes; then
3803 ac_test_CFLAGS=${CFLAGS+set}
3804 ac_save_CFLAGS=$CFLAGS
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3806 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3807 if ${ac_cv_prog_cc_g+:} false; then :
3808 $as_echo_n "(cached) " >&6
3810 ac_save_c_werror_flag=$ac_c_werror_flag
3811 ac_c_werror_flag=yes
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h. */
3825 if ac_fn_c_try_compile "$LINENO"; then :
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3840 if ac_fn_c_try_compile "$LINENO"; then :
3843 ac_c_werror_flag=$ac_save_c_werror_flag
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h. */
3856 if ac_fn_c_try_compile "$LINENO"; then :
3859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3864 ac_c_werror_flag=$ac_save_c_werror_flag
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3867 $as_echo "$ac_cv_prog_cc_g" >&6; }
3868 if test "$ac_test_CFLAGS" = set; then
3869 CFLAGS=$ac_save_CFLAGS
3870 elif test $ac_cv_prog_cc_g = yes; then
3871 if test "$GCC" = yes; then
3877 if test "$GCC" = yes; then
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3884 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3885 if ${ac_cv_prog_cc_c89+:} false; then :
3886 $as_echo_n "(cached) " >&6
3888 ac_cv_prog_cc_c89=no
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3895 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3896 struct buf { int x; };
3897 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3898 static char *e (p, i)
3904 static char *f (char * (*g) (char **, int), char **p, ...)
3909 s = g (p, va_arg (v,int));
3914 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3915 function prototypes and stuff, but not '\xHH' hex character constants.
3916 These don't provoke an error unfortunately, instead are silently treated
3917 as 'x'. The following induces an error, until -std is added to get
3918 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3919 array size at least. It's necessary to write '\x00'==0 to get something
3920 that's true only with -std. */
3921 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3923 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3924 inside strings and character constants. */
3926 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3928 int test (int i, double x);
3929 struct s1 {int (*f) (int a);};
3930 struct s2 {int (*f) (double a);};
3931 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3937 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3942 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3943 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3945 CC="$ac_save_CC $ac_arg"
3946 if ac_fn_c_try_compile "$LINENO"; then :
3947 ac_cv_prog_cc_c89=$ac_arg
3949 rm -f core conftest.err conftest.$ac_objext
3950 test "x$ac_cv_prog_cc_c89" != "xno" && break
3952 rm -f conftest.$ac_ext
3957 case "x$ac_cv_prog_cc_c89" in
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3960 $as_echo "none needed" >&6; } ;;
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3963 $as_echo "unsupported" >&6; } ;;
3965 CC="$CC $ac_cv_prog_cc_c89"
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3967 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3969 if test "x$ac_cv_prog_cc_c89" != xno; then :
3974 ac_cpp='$CPP $CPPFLAGS'
3975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3980 ac_cpp='$CPP $CPPFLAGS'
3981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3985 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3986 if ${am_cv_prog_cc_c_o+:} false; then :
3987 $as_echo_n "(cached) " >&6
3989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3990 /* end confdefs.h. */
4000 # Make sure it works both with $CC and with simple cc.
4001 # Following AC_PROG_CC_C_O, we do the test twice because some
4002 # compilers refuse to overwrite an existing .o file with -o,
4003 # though they will create one.
4004 am_cv_prog_cc_c_o=yes
4006 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4007 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } \
4011 && test -f conftest2.$ac_objext; then
4014 am_cv_prog_cc_c_o=no
4018 rm -f core conftest*
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4022 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4023 if test "$am_cv_prog_cc_c_o" != yes; then
4024 # Losing compiler, so override with the script.
4025 # FIXME: It is wrong to rewrite CC.
4026 # But if we don't then we get into trouble of one sort or another.
4027 # A longer-term fix would be to have automake use am__CC in this case,
4028 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4029 CC="$am_aux_dir/compile $CC"
4032 ac_cpp='$CPP $CPPFLAGS'
4033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038 depcc="$CC" am_compiler_list=
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4041 $as_echo_n "checking dependency style of $depcc... " >&6; }
4042 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4043 $as_echo_n "(cached) " >&6
4045 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4046 # We make a subdir and do the tests there. Otherwise we can end up
4047 # making bogus files that we don't know about and never remove. For
4048 # instance it was reported that on HP-UX the gcc test will end up
4049 # making a dummy file named 'D' -- because '-MD' means "put the output
4053 # Copy depcomp to subdir because otherwise we won't find it if we're
4054 # using a relative directory.
4055 cp "$am_depcomp" conftest.dir
4057 # We will build objects and dependencies in a subdirectory because
4058 # it helps to detect inapplicable dependency modes. For instance
4059 # both Tru64's cc and ICC support -MD to output dependencies as a
4060 # side effect of compilation, but ICC will put the dependencies in
4061 # the current directory while Tru64 will put them in the object
4065 am_cv_CC_dependencies_compiler_type=none
4066 if test "$am_compiler_list" = ""; then
4067 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4070 case " $depcc " in #(
4071 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4074 for depmode in $am_compiler_list; do
4075 # Setup a source with many dependencies, because some compilers
4076 # like to wrap large dependency lists on column 80 (with \), and
4077 # we should not choose a depcomp mode which is confused by this.
4079 # We need to recreate these files for each test, as the compiler may
4080 # overwrite some of them when testing with obscure command lines.
4081 # This happens at least with the AIX C compiler.
4083 for i in 1 2 3 4 5 6; do
4084 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4085 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4086 # Solaris 10 /bin/sh.
4087 echo '/* dummy */' > sub/conftst$i.h
4089 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4091 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4092 # mode. It turns out that the SunPro C++ compiler does not properly
4093 # handle '-M -o', and we need to detect this. Also, some Intel
4094 # versions had trouble with output in subdirs.
4095 am__obj=sub/conftest.${OBJEXT-o}
4096 am__minus_obj="-o $am__obj"
4099 # This depmode causes a compiler race in universal mode.
4100 test "$am__universal" = false || continue
4103 # After this tag, mechanisms are not by side-effect, so they'll
4104 # only be used when explicitly requested.
4105 if test "x$enable_dependency_tracking" = xyes; then
4111 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4112 # This compiler won't grok '-c -o', but also, the minuso test has
4113 # not run yet. These depmodes are late enough in the game, and
4114 # so weak that their functioning should not be impacted.
4115 am__obj=conftest.${OBJEXT-o}
4120 if depmode=$depmode \
4121 source=sub/conftest.c object=$am__obj \
4122 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4123 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4124 >/dev/null 2>conftest.err &&
4125 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4126 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4127 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4128 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4129 # icc doesn't choke on unknown options, it will just issue warnings
4130 # or remarks (even with -Werror). So we grep stderr for any message
4131 # that says an option was ignored or not supported.
4132 # When given -MP, icc 7.0 and 7.1 complain thusly:
4133 # icc: Command line warning: ignoring option '-M'; no argument required
4134 # The diagnosis changed in icc 8.0:
4135 # icc: Command line remark: option '-MP' not supported
4136 if (grep 'ignoring option' conftest.err ||
4137 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4138 am_cv_CC_dependencies_compiler_type=$depmode
4147 am_cv_CC_dependencies_compiler_type=none
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4152 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4153 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4156 test "x$enable_dependency_tracking" != xno \
4157 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4159 am__fastdepCC_FALSE='#'
4161 am__fastdepCC_TRUE='#'
4162 am__fastdepCC_FALSE=
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4167 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4168 if ${ac_cv_path_SED+:} false; then :
4169 $as_echo_n "(cached) " >&6
4171 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4172 for ac_i in 1 2 3 4 5 6 7; do
4173 ac_script="$ac_script$as_nl$ac_script"
4175 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4176 { ac_script=; unset ac_script;}
4177 if test -z "$SED"; then
4178 ac_path_SED_found=false
4179 # Loop through the user's path and test for each of PROGNAME-LIST
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 test -z "$as_dir" && as_dir=.
4185 for ac_prog in sed gsed; do
4186 for ac_exec_ext in '' $ac_executable_extensions; do
4187 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4188 as_fn_executable_p "$ac_path_SED" || continue
4189 # Check for GNU ac_path_SED and select it if it is found.
4190 # Check for GNU $ac_path_SED
4191 case `"$ac_path_SED" --version 2>&1` in
4193 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4196 $as_echo_n 0123456789 >"conftest.in"
4199 cat "conftest.in" "conftest.in" >"conftest.tmp"
4200 mv "conftest.tmp" "conftest.in"
4201 cp "conftest.in" "conftest.nl"
4202 $as_echo '' >> "conftest.nl"
4203 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4204 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4205 as_fn_arith $ac_count + 1 && ac_count=$as_val
4206 if test $ac_count -gt ${ac_path_SED_max-0}; then
4207 # Best one so far, save it but keep looking for a better one
4208 ac_cv_path_SED="$ac_path_SED"
4209 ac_path_SED_max=$ac_count
4211 # 10*(2^10) chars as input seems more than enough
4212 test $ac_count -gt 10 && break
4214 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4217 $ac_path_SED_found && break 3
4222 if test -z "$ac_cv_path_SED"; then
4223 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4231 $as_echo "$ac_cv_path_SED" >&6; }
4232 SED="$ac_cv_path_SED"
4235 test -z "$SED" && SED=sed
4236 Xsed="$SED -e 1s/^X//"
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4249 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4250 if ${ac_cv_path_GREP+:} false; then :
4251 $as_echo_n "(cached) " >&6
4253 if test -z "$GREP"; then
4254 ac_path_GREP_found=false
4255 # Loop through the user's path and test for each of PROGNAME-LIST
4256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4257 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4260 test -z "$as_dir" && as_dir=.
4261 for ac_prog in grep ggrep; do
4262 for ac_exec_ext in '' $ac_executable_extensions; do
4263 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4264 as_fn_executable_p "$ac_path_GREP" || continue
4265 # Check for GNU ac_path_GREP and select it if it is found.
4266 # Check for GNU $ac_path_GREP
4267 case `"$ac_path_GREP" --version 2>&1` in
4269 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4272 $as_echo_n 0123456789 >"conftest.in"
4275 cat "conftest.in" "conftest.in" >"conftest.tmp"
4276 mv "conftest.tmp" "conftest.in"
4277 cp "conftest.in" "conftest.nl"
4278 $as_echo 'GREP' >> "conftest.nl"
4279 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4280 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4281 as_fn_arith $ac_count + 1 && ac_count=$as_val
4282 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4283 # Best one so far, save it but keep looking for a better one
4284 ac_cv_path_GREP="$ac_path_GREP"
4285 ac_path_GREP_max=$ac_count
4287 # 10*(2^10) chars as input seems more than enough
4288 test $ac_count -gt 10 && break
4290 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4293 $ac_path_GREP_found && break 3
4298 if test -z "$ac_cv_path_GREP"; then
4299 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4302 ac_cv_path_GREP=$GREP
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4307 $as_echo "$ac_cv_path_GREP" >&6; }
4308 GREP="$ac_cv_path_GREP"
4311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4312 $as_echo_n "checking for egrep... " >&6; }
4313 if ${ac_cv_path_EGREP+:} false; then :
4314 $as_echo_n "(cached) " >&6
4316 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4317 then ac_cv_path_EGREP="$GREP -E"
4319 if test -z "$EGREP"; then
4320 ac_path_EGREP_found=false
4321 # Loop through the user's path and test for each of PROGNAME-LIST
4322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4323 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4326 test -z "$as_dir" && as_dir=.
4327 for ac_prog in egrep; do
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4330 as_fn_executable_p "$ac_path_EGREP" || continue
4331 # Check for GNU ac_path_EGREP and select it if it is found.
4332 # Check for GNU $ac_path_EGREP
4333 case `"$ac_path_EGREP" --version 2>&1` in
4335 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4338 $as_echo_n 0123456789 >"conftest.in"
4341 cat "conftest.in" "conftest.in" >"conftest.tmp"
4342 mv "conftest.tmp" "conftest.in"
4343 cp "conftest.in" "conftest.nl"
4344 $as_echo 'EGREP' >> "conftest.nl"
4345 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4346 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4347 as_fn_arith $ac_count + 1 && ac_count=$as_val
4348 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4349 # Best one so far, save it but keep looking for a better one
4350 ac_cv_path_EGREP="$ac_path_EGREP"
4351 ac_path_EGREP_max=$ac_count
4353 # 10*(2^10) chars as input seems more than enough
4354 test $ac_count -gt 10 && break
4356 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4359 $ac_path_EGREP_found && break 3
4364 if test -z "$ac_cv_path_EGREP"; then
4365 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4368 ac_cv_path_EGREP=$EGREP
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4374 $as_echo "$ac_cv_path_EGREP" >&6; }
4375 EGREP="$ac_cv_path_EGREP"
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4379 $as_echo_n "checking for fgrep... " >&6; }
4380 if ${ac_cv_path_FGREP+:} false; then :
4381 $as_echo_n "(cached) " >&6
4383 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4384 then ac_cv_path_FGREP="$GREP -F"
4386 if test -z "$FGREP"; then
4387 ac_path_FGREP_found=false
4388 # Loop through the user's path and test for each of PROGNAME-LIST
4389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4390 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4393 test -z "$as_dir" && as_dir=.
4394 for ac_prog in fgrep; do
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4397 as_fn_executable_p "$ac_path_FGREP" || continue
4398 # Check for GNU ac_path_FGREP and select it if it is found.
4399 # Check for GNU $ac_path_FGREP
4400 case `"$ac_path_FGREP" --version 2>&1` in
4402 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4405 $as_echo_n 0123456789 >"conftest.in"
4408 cat "conftest.in" "conftest.in" >"conftest.tmp"
4409 mv "conftest.tmp" "conftest.in"
4410 cp "conftest.in" "conftest.nl"
4411 $as_echo 'FGREP' >> "conftest.nl"
4412 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4413 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4414 as_fn_arith $ac_count + 1 && ac_count=$as_val
4415 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4416 # Best one so far, save it but keep looking for a better one
4417 ac_cv_path_FGREP="$ac_path_FGREP"
4418 ac_path_FGREP_max=$ac_count
4420 # 10*(2^10) chars as input seems more than enough
4421 test $ac_count -gt 10 && break
4423 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4426 $ac_path_FGREP_found && break 3
4431 if test -z "$ac_cv_path_FGREP"; then
4432 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4435 ac_cv_path_FGREP=$FGREP
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4441 $as_echo "$ac_cv_path_FGREP" >&6; }
4442 FGREP="$ac_cv_path_FGREP"
4445 test -z "$GREP" && GREP=grep
4465 # Check whether --with-gnu-ld was given.
4466 if test "${with_gnu_ld+set}" = set; then :
4467 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4473 if test yes = "$GCC"; then
4474 # Check if gcc -print-prog-name=ld gives a path.
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4476 $as_echo_n "checking for ld used by $CC... " >&6; }
4479 # gcc leaves a trailing carriage return, which upsets mingw
4480 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4482 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4485 # Accept absolute paths.
4487 re_direlt='/[^/][^/]*/\.\./'
4488 # Canonicalize the pathname of ld
4489 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4490 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4491 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4493 test -z "$LD" && LD=$ac_prog
4496 # If it fails, then pretend we aren't using GCC.
4500 # If it is relative, then search for the first ld in PATH.
4504 elif test yes = "$with_gnu_ld"; then
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4506 $as_echo_n "checking for GNU ld... " >&6; }
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4509 $as_echo_n "checking for non-GNU ld... " >&6; }
4511 if ${lt_cv_path_LD+:} false; then :
4512 $as_echo_n "(cached) " >&6
4514 if test -z "$LD"; then
4515 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4516 for ac_dir in $PATH; do
4518 test -z "$ac_dir" && ac_dir=.
4519 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4520 lt_cv_path_LD=$ac_dir/$ac_prog
4521 # Check to see if the program is GNU ld. I'd rather use --version,
4522 # but apparently some variants of GNU ld only accept -v.
4523 # Break only if it was the GNU/non-GNU ld that we prefer.
4524 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4525 *GNU* | *'with BFD'*)
4526 test no != "$with_gnu_ld" && break
4529 test yes != "$with_gnu_ld" && break
4536 lt_cv_path_LD=$LD # Let the user override the test with a path.
4541 if test -n "$LD"; then
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4543 $as_echo "$LD" >&6; }
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546 $as_echo "no" >&6; }
4548 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4550 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4551 if ${lt_cv_prog_gnu_ld+:} false; then :
4552 $as_echo_n "(cached) " >&6
4554 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4555 case `$LD -v 2>&1 </dev/null` in
4556 *GNU* | *'with BFD'*)
4557 lt_cv_prog_gnu_ld=yes
4560 lt_cv_prog_gnu_ld=no
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4565 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4566 with_gnu_ld=$lt_cv_prog_gnu_ld
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4577 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4578 if ${lt_cv_path_NM+:} false; then :
4579 $as_echo_n "(cached) " >&6
4581 if test -n "$NM"; then
4582 # Let the user override the test.
4585 lt_nm_to_check=${ac_tool_prefix}nm
4586 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4587 lt_nm_to_check="$lt_nm_to_check nm"
4589 for lt_tmp_nm in $lt_nm_to_check; do
4590 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4591 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4593 test -z "$ac_dir" && ac_dir=.
4594 tmp_nm=$ac_dir/$lt_tmp_nm
4595 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4596 # Check to see if the nm accepts a BSD-compat flag.
4597 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4598 # nm: unknown option "B" ignored
4599 # Tru64's nm complains that /dev/null is an invalid object file
4600 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4602 mingw*) lt_bad_file=conftest.nm/nofile ;;
4603 *) lt_bad_file=/dev/null ;;
4605 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4606 *$lt_bad_file* | *'Invalid file or object type'*)
4607 lt_cv_path_NM="$tmp_nm -B"
4611 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4613 lt_cv_path_NM="$tmp_nm -p"
4617 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4618 continue # so that we can try to find one that supports BSD flags
4627 : ${lt_cv_path_NM=no}
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4631 $as_echo "$lt_cv_path_NM" >&6; }
4632 if test no != "$lt_cv_path_NM"; then
4635 # Didn't find any BSD compatible name lister, look for dumpbin.
4636 if test -n "$DUMPBIN"; then :
4637 # Let the user override the test.
4639 if test -n "$ac_tool_prefix"; then
4640 for ac_prog in dumpbin "link -dump"
4642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4643 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if ${ac_cv_prog_DUMPBIN+:} false; then :
4647 $as_echo_n "(cached) " >&6
4649 if test -n "$DUMPBIN"; then
4650 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4659 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 DUMPBIN=$ac_cv_prog_DUMPBIN
4670 if test -n "$DUMPBIN"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4672 $as_echo "$DUMPBIN" >&6; }
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4679 test -n "$DUMPBIN" && break
4682 if test -z "$DUMPBIN"; then
4683 ac_ct_DUMPBIN=$DUMPBIN
4684 for ac_prog in dumpbin "link -dump"
4686 # Extract the first word of "$ac_prog", so it can be a program name with args.
4687 set dummy $ac_prog; ac_word=$2
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4689 $as_echo_n "checking for $ac_word... " >&6; }
4690 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4691 $as_echo_n "(cached) " >&6
4693 if test -n "$ac_ct_DUMPBIN"; then
4694 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4700 test -z "$as_dir" && as_dir=.
4701 for ac_exec_ext in '' $ac_executable_extensions; do
4702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4703 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4713 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4714 if test -n "$ac_ct_DUMPBIN"; then
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4716 $as_echo "$ac_ct_DUMPBIN" >&6; }
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4719 $as_echo "no" >&6; }
4723 test -n "$ac_ct_DUMPBIN" && break
4726 if test "x$ac_ct_DUMPBIN" = x; then
4729 case $cross_compiling:$ac_tool_warned in
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4733 ac_tool_warned=yes ;;
4735 DUMPBIN=$ac_ct_DUMPBIN
4739 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4741 DUMPBIN="$DUMPBIN -symbols -headers"
4749 if test : != "$DUMPBIN"; then
4753 test -z "$NM" && NM=nm
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4761 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4762 if ${lt_cv_nm_interface+:} false; then :
4763 $as_echo_n "(cached) " >&6
4765 lt_cv_nm_interface="BSD nm"
4766 echo "int some_variable = 0;" > conftest.$ac_ext
4767 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4768 (eval "$ac_compile" 2>conftest.err)
4769 cat conftest.err >&5
4770 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4771 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4772 cat conftest.err >&5
4773 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4774 cat conftest.out >&5
4775 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4776 lt_cv_nm_interface="MS dumpbin"
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4781 $as_echo "$lt_cv_nm_interface" >&6; }
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4784 $as_echo_n "checking whether ln -s works... " >&6; }
4786 if test "$LN_S" = "ln -s"; then
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4788 $as_echo "yes" >&6; }
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4791 $as_echo "no, using $LN_S" >&6; }
4794 # find the maximum length of command line arguments
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4796 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4797 if ${lt_cv_sys_max_cmd_len+:} false; then :
4798 $as_echo_n "(cached) " >&6
4805 # On DJGPP, this test can blow up pretty badly due to problems in libc
4806 # (any single argument exceeding 2000 bytes causes a buffer overrun
4807 # during glob expansion). Even if it were fixed, the result of this
4808 # check would be larger than it should be.
4809 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4813 # Under GNU Hurd, this test is not required because there is
4814 # no limit to the length of command line arguments.
4815 # Libtool will interpret -1 as no limit whatsoever
4816 lt_cv_sys_max_cmd_len=-1;
4819 cygwin* | mingw* | cegcc*)
4820 # On Win9x/ME, this test blows up -- it succeeds, but takes
4821 # about 5 minutes as the teststring grows exponentially.
4822 # Worse, since 9x/ME are not pre-emptively multitasking,
4823 # you end up with a "frozen" computer, even though with patience
4824 # the test eventually succeeds (with a max line length of 256k).
4825 # Instead, let's just punt: use the minimum linelength reported by
4826 # all of the supported platforms: 8192 (on NT/2K/XP).
4827 lt_cv_sys_max_cmd_len=8192;
4831 # On MiNT this can take a long time and run out of memory.
4832 lt_cv_sys_max_cmd_len=8192;
4836 # On AmigaOS with pdksh, this test takes hours, literally.
4837 # So we just punt and use a minimum line length of 8192.
4838 lt_cv_sys_max_cmd_len=8192;
4841 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
4842 # This has been around since 386BSD, at least. Likely further.
4843 if test -x /sbin/sysctl; then
4844 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4845 elif test -x /usr/sbin/sysctl; then
4846 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4848 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4850 # And add a safety zone
4851 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4852 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4856 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4857 lt_cv_sys_max_cmd_len=196608
4861 # The test takes a long time on OS/2.
4862 lt_cv_sys_max_cmd_len=8192
4866 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4867 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4868 # nice to cause kernel panics so lets avoid the loop below.
4869 # First set a reasonable default.
4870 lt_cv_sys_max_cmd_len=16384
4872 if test -x /sbin/sysconfig; then
4873 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4874 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4879 lt_cv_sys_max_cmd_len=102400
4881 sysv5* | sco5v6* | sysv4.2uw2*)
4882 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4883 if test -n "$kargmax"; then
4884 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4886 lt_cv_sys_max_cmd_len=32768
4890 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4891 if test -n "$lt_cv_sys_max_cmd_len" && \
4892 test undefined != "$lt_cv_sys_max_cmd_len"; then
4893 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4894 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4896 # Make teststring a little bigger before we do anything with it.
4897 # a 1K string should be a reasonable start.
4898 for i in 1 2 3 4 5 6 7 8; do
4899 teststring=$teststring$teststring
4901 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4902 # If test is not a shell built-in, we'll probably end up computing a
4903 # maximum length that is only half of the actual maximum length, but
4905 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
4906 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4907 test 17 != "$i" # 1/2 MB should be enough
4910 teststring=$teststring$teststring
4912 # Only check the string length outside the loop.
4913 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4915 # Add a significant safety factor because C++ compilers can tack on
4916 # massive amounts of additional arguments before passing them to the
4917 # linker. It appears as though 1/2 is a usable value.
4918 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4925 if test -n "$lt_cv_sys_max_cmd_len"; then
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4927 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4930 $as_echo "none" >&6; }
4932 max_cmd_len=$lt_cv_sys_max_cmd_len
4943 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4953 # test EBCDIC or ASCII
4954 case `echo X|tr X '\101'` in
4955 A) # ASCII based system
4956 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4957 lt_SP2NL='tr \040 \012'
4958 lt_NL2SP='tr \015\012 \040\040'
4960 *) # EBCDIC based system
4961 lt_SP2NL='tr \100 \n'
4962 lt_NL2SP='tr \r\n \100\100'
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4975 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4976 if ${lt_cv_to_host_file_cmd+:} false; then :
4977 $as_echo_n "(cached) " >&6
4982 *-*-mingw* ) # actually msys
4983 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4986 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4988 * ) # otherwise, assume *nix
4989 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4995 *-*-mingw* ) # actually msys
4996 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4999 lt_cv_to_host_file_cmd=func_convert_file_noop
5001 * ) # otherwise, assume *nix
5002 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5006 * ) # unhandled hosts (and "normal" native builds)
5007 lt_cv_to_host_file_cmd=func_convert_file_noop
5013 to_host_file_cmd=$lt_cv_to_host_file_cmd
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5015 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5022 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5023 if ${lt_cv_to_tool_file_cmd+:} false; then :
5024 $as_echo_n "(cached) " >&6
5026 #assume ordinary cross tools, or native build.
5027 lt_cv_to_tool_file_cmd=func_convert_file_noop
5031 *-*-mingw* ) # actually msys
5032 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5040 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5042 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5049 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5050 if ${lt_cv_ld_reload_flag+:} false; then :
5051 $as_echo_n "(cached) " >&6
5053 lt_cv_ld_reload_flag='-r'
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5056 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5057 reload_flag=$lt_cv_ld_reload_flag
5058 case $reload_flag in
5060 *) reload_flag=" $reload_flag" ;;
5062 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5064 cygwin* | mingw* | pw32* | cegcc*)
5065 if test yes != "$GCC"; then
5070 if test yes = "$GCC"; then
5071 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5073 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5086 if test -n "$ac_tool_prefix"; then
5087 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5088 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 $as_echo_n "checking for $ac_word... " >&6; }
5091 if ${ac_cv_prog_OBJDUMP+:} false; then :
5092 $as_echo_n "(cached) " >&6
5094 if test -n "$OBJDUMP"; then
5095 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5101 test -z "$as_dir" && as_dir=.
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5104 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5114 OBJDUMP=$ac_cv_prog_OBJDUMP
5115 if test -n "$OBJDUMP"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5117 $as_echo "$OBJDUMP" >&6; }
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 $as_echo "no" >&6; }
5125 if test -z "$ac_cv_prog_OBJDUMP"; then
5126 ac_ct_OBJDUMP=$OBJDUMP
5127 # Extract the first word of "objdump", so it can be a program name with args.
5128 set dummy objdump; ac_word=$2
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130 $as_echo_n "checking for $ac_word... " >&6; }
5131 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5132 $as_echo_n "(cached) " >&6
5134 if test -n "$ac_ct_OBJDUMP"; then
5135 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5155 if test -n "$ac_ct_OBJDUMP"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5157 $as_echo "$ac_ct_OBJDUMP" >&6; }
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5163 if test "x$ac_ct_OBJDUMP" = x; then
5166 case $cross_compiling:$ac_tool_warned in
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5170 ac_tool_warned=yes ;;
5172 OBJDUMP=$ac_ct_OBJDUMP
5175 OBJDUMP="$ac_cv_prog_OBJDUMP"
5178 test -z "$OBJDUMP" && OBJDUMP=objdump
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5186 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5187 if ${lt_cv_deplibs_check_method+:} false; then :
5188 $as_echo_n "(cached) " >&6
5190 lt_cv_file_magic_cmd='$MAGIC_CMD'
5191 lt_cv_file_magic_test_file=
5192 lt_cv_deplibs_check_method='unknown'
5193 # Need to set the preceding variable on all platforms that support
5194 # interlibrary dependencies.
5195 # 'none' -- dependencies not supported.
5196 # 'unknown' -- same as none, but documents that we really don't know.
5197 # 'pass_all' -- all dependencies passed with no checks.
5198 # 'test_compile' -- check by making test program.
5199 # 'file_magic [[regex]]' -- check by looking for files in library path
5200 # that responds to the $file_magic_cmd with a given extended regex.
5201 # If you have 'file' or equivalent on your system and you're not sure
5202 # whether 'pass_all' will *always* work, you probably want this one.
5206 lt_cv_deplibs_check_method=pass_all
5210 lt_cv_deplibs_check_method=pass_all
5214 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5215 lt_cv_file_magic_cmd='/usr/bin/file -L'
5216 lt_cv_file_magic_test_file=/shlib/libc.so
5220 # func_win32_libid is a shell function defined in ltmain.sh
5221 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5222 lt_cv_file_magic_cmd='func_win32_libid'
5226 # Base MSYS/MinGW do not provide the 'file' command needed by
5227 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5228 # unless we find 'file', for example because we are cross-compiling.
5229 if ( file / ) >/dev/null 2>&1; then
5230 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5231 lt_cv_file_magic_cmd='func_win32_libid'
5233 # Keep this pattern in sync with the one in func_win32_libid.
5234 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5235 lt_cv_file_magic_cmd='$OBJDUMP -f'
5240 # use the weaker test based on 'objdump'. See mingw*.
5241 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5242 lt_cv_file_magic_cmd='$OBJDUMP -f'
5245 darwin* | rhapsody*)
5246 lt_cv_deplibs_check_method=pass_all
5249 freebsd* | dragonfly*)
5250 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5253 # Not sure whether the presence of OpenBSD here was a mistake.
5254 # Let's accept both of them until this is cleared up.
5255 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5256 lt_cv_file_magic_cmd=/usr/bin/file
5257 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5261 lt_cv_deplibs_check_method=pass_all
5266 lt_cv_deplibs_check_method=pass_all
5269 hpux10.20* | hpux11*)
5270 lt_cv_file_magic_cmd=/usr/bin/file
5273 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5274 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5277 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]'
5278 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5281 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5282 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5288 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5292 irix5* | irix6* | nonstopux*)
5294 *-32|*"-32 ") libmagic=32-bit;;
5295 *-n32|*"-n32 ") libmagic=N32;;
5296 *-64|*"-64 ") libmagic=64-bit;;
5297 *) libmagic=never-match;;
5299 lt_cv_deplibs_check_method=pass_all
5302 # This must be glibc/ELF.
5303 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5304 lt_cv_deplibs_check_method=pass_all
5307 netbsd* | netbsdelf*-gnu)
5308 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5309 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5311 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5316 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5317 lt_cv_file_magic_cmd=/usr/bin/file
5318 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5322 lt_cv_deplibs_check_method=pass_all
5326 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5327 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5329 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5333 osf3* | osf4* | osf5*)
5334 lt_cv_deplibs_check_method=pass_all
5338 lt_cv_deplibs_check_method=pass_all
5342 lt_cv_deplibs_check_method=pass_all
5345 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5346 lt_cv_deplibs_check_method=pass_all
5350 case $host_vendor in
5352 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]'
5353 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5356 lt_cv_deplibs_check_method=pass_all
5359 lt_cv_file_magic_cmd='/bin/file'
5360 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5363 lt_cv_file_magic_cmd='/bin/file'
5364 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5365 lt_cv_file_magic_test_file=/lib/libc.so
5368 lt_cv_deplibs_check_method=pass_all
5371 lt_cv_deplibs_check_method=pass_all
5377 lt_cv_deplibs_check_method=pass_all
5380 lt_cv_deplibs_check_method=pass_all
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5386 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5390 if test "$build" = "$host"; then
5393 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5396 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5402 file_magic_cmd=$lt_cv_file_magic_cmd
5403 deplibs_check_method=$lt_cv_deplibs_check_method
5404 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5427 if test -n "$ac_tool_prefix"; then
5428 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5429 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5431 $as_echo_n "checking for $ac_word... " >&6; }
5432 if ${ac_cv_prog_DLLTOOL+:} false; then :
5433 $as_echo_n "(cached) " >&6
5435 if test -n "$DLLTOOL"; then
5436 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442 test -z "$as_dir" && as_dir=.
5443 for ac_exec_ext in '' $ac_executable_extensions; do
5444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5445 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5455 DLLTOOL=$ac_cv_prog_DLLTOOL
5456 if test -n "$DLLTOOL"; then
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5458 $as_echo "$DLLTOOL" >&6; }
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5461 $as_echo "no" >&6; }
5466 if test -z "$ac_cv_prog_DLLTOOL"; then
5467 ac_ct_DLLTOOL=$DLLTOOL
5468 # Extract the first word of "dlltool", so it can be a program name with args.
5469 set dummy dlltool; ac_word=$2
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5471 $as_echo_n "checking for $ac_word... " >&6; }
5472 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5473 $as_echo_n "(cached) " >&6
5475 if test -n "$ac_ct_DLLTOOL"; then
5476 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5482 test -z "$as_dir" && as_dir=.
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5495 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5496 if test -n "$ac_ct_DLLTOOL"; then
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5498 $as_echo "$ac_ct_DLLTOOL" >&6; }
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501 $as_echo "no" >&6; }
5504 if test "x$ac_ct_DLLTOOL" = x; then
5507 case $cross_compiling:$ac_tool_warned in
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5511 ac_tool_warned=yes ;;
5513 DLLTOOL=$ac_ct_DLLTOOL
5516 DLLTOOL="$ac_cv_prog_DLLTOOL"
5519 test -z "$DLLTOOL" && DLLTOOL=dlltool
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5528 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5529 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5530 $as_echo_n "(cached) " >&6
5532 lt_cv_sharedlib_from_linklib_cmd='unknown'
5535 cygwin* | mingw* | pw32* | cegcc*)
5536 # two different shell functions defined in ltmain.sh;
5537 # decide which one to use based on capabilities of $DLLTOOL
5538 case `$DLLTOOL --help 2>&1` in
5539 *--identify-strict*)
5540 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5543 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5548 # fallback: assume linklib IS sharedlib
5549 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5555 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5556 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5557 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5566 if test -n "$ac_tool_prefix"; then
5569 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5570 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5572 $as_echo_n "checking for $ac_word... " >&6; }
5573 if ${ac_cv_prog_AR+:} false; then :
5574 $as_echo_n "(cached) " >&6
5576 if test -n "$AR"; then
5577 ac_cv_prog_AR="$AR" # Let the user override the test.
5579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 test -z "$as_dir" && as_dir=.
5584 for ac_exec_ext in '' $ac_executable_extensions; do
5585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5586 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5597 if test -n "$AR"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5599 $as_echo "$AR" >&6; }
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5602 $as_echo "no" >&6; }
5606 test -n "$AR" && break
5609 if test -z "$AR"; then
5613 # Extract the first word of "$ac_prog", so it can be a program name with args.
5614 set dummy $ac_prog; ac_word=$2
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616 $as_echo_n "checking for $ac_word... " >&6; }
5617 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5618 $as_echo_n "(cached) " >&6
5620 if test -n "$ac_ct_AR"; then
5621 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5627 test -z "$as_dir" && as_dir=.
5628 for ac_exec_ext in '' $ac_executable_extensions; do
5629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5630 ac_cv_prog_ac_ct_AR="$ac_prog"
5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5640 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5641 if test -n "$ac_ct_AR"; then
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5643 $as_echo "$ac_ct_AR" >&6; }
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646 $as_echo "no" >&6; }
5650 test -n "$ac_ct_AR" && break
5653 if test "x$ac_ct_AR" = x; then
5656 case $cross_compiling:$ac_tool_warned in
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5660 ac_tool_warned=yes ;;
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5680 $as_echo_n "checking for archiver @FILE support... " >&6; }
5681 if ${lt_cv_ar_at_file+:} false; then :
5682 $as_echo_n "(cached) " >&6
5685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5686 /* end confdefs.h. */
5696 if ac_fn_c_try_compile "$LINENO"; then :
5697 echo conftest.$ac_objext > conftest.lst
5698 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5700 (eval $lt_ar_try) 2>&5
5702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5703 test $ac_status = 0; }
5704 if test 0 -eq "$ac_status"; then
5705 # Ensure the archiver fails upon bogus file names.
5706 rm -f conftest.$ac_objext libconftest.a
5707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5708 (eval $lt_ar_try) 2>&5
5710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5711 test $ac_status = 0; }
5712 if test 0 -ne "$ac_status"; then
5716 rm -f conftest.* libconftest.a
5719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5723 $as_echo "$lt_cv_ar_at_file" >&6; }
5725 if test no = "$lt_cv_ar_at_file"; then
5728 archiver_list_spec=$lt_cv_ar_at_file
5737 if test -n "$ac_tool_prefix"; then
5738 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5739 set dummy ${ac_tool_prefix}strip; ac_word=$2
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5741 $as_echo_n "checking for $ac_word... " >&6; }
5742 if ${ac_cv_prog_STRIP+:} false; then :
5743 $as_echo_n "(cached) " >&6
5745 if test -n "$STRIP"; then
5746 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5765 STRIP=$ac_cv_prog_STRIP
5766 if test -n "$STRIP"; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5768 $as_echo "$STRIP" >&6; }
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5771 $as_echo "no" >&6; }
5776 if test -z "$ac_cv_prog_STRIP"; then
5778 # Extract the first word of "strip", so it can be a program name with args.
5779 set dummy strip; ac_word=$2
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5781 $as_echo_n "checking for $ac_word... " >&6; }
5782 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5783 $as_echo_n "(cached) " >&6
5785 if test -n "$ac_ct_STRIP"; then
5786 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792 test -z "$as_dir" && as_dir=.
5793 for ac_exec_ext in '' $ac_executable_extensions; do
5794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5795 ac_cv_prog_ac_ct_STRIP="strip"
5796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5805 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5806 if test -n "$ac_ct_STRIP"; then
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5808 $as_echo "$ac_ct_STRIP" >&6; }
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5811 $as_echo "no" >&6; }
5814 if test "x$ac_ct_STRIP" = x; then
5817 case $cross_compiling:$ac_tool_warned in
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5821 ac_tool_warned=yes ;;
5826 STRIP="$ac_cv_prog_STRIP"
5829 test -z "$STRIP" && STRIP=:
5836 if test -n "$ac_tool_prefix"; then
5837 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5838 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if ${ac_cv_prog_RANLIB+:} false; then :
5842 $as_echo_n "(cached) " >&6
5844 if test -n "$RANLIB"; then
5845 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5854 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5864 RANLIB=$ac_cv_prog_RANLIB
5865 if test -n "$RANLIB"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5867 $as_echo "$RANLIB" >&6; }
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5875 if test -z "$ac_cv_prog_RANLIB"; then
5876 ac_ct_RANLIB=$RANLIB
5877 # Extract the first word of "ranlib", so it can be a program name with args.
5878 set dummy ranlib; ac_word=$2
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880 $as_echo_n "checking for $ac_word... " >&6; }
5881 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5882 $as_echo_n "(cached) " >&6
5884 if test -n "$ac_ct_RANLIB"; then
5885 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894 ac_cv_prog_ac_ct_RANLIB="ranlib"
5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5904 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5905 if test -n "$ac_ct_RANLIB"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5907 $as_echo "$ac_ct_RANLIB" >&6; }
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5913 if test "x$ac_ct_RANLIB" = x; then
5916 case $cross_compiling:$ac_tool_warned in
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5920 ac_tool_warned=yes ;;
5922 RANLIB=$ac_ct_RANLIB
5925 RANLIB="$ac_cv_prog_RANLIB"
5928 test -z "$RANLIB" && RANLIB=:
5935 # Determine commands to create old-style static archives.
5936 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5937 old_postinstall_cmds='chmod 644 $oldlib'
5938 old_postuninstall_cmds=
5940 if test -n "$RANLIB"; then
5943 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5946 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5949 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5954 lock_old_archive_extraction=yes ;;
5956 lock_old_archive_extraction=no ;;
5997 # If no C compiler was specified, use CC.
6000 # If no C compiler flags were specified, use CFLAGS.
6001 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6003 # Allow CC to be a program name with arguments.
6007 # Check for command to grab the raw symbol name followed by C symbol from nm.
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6009 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6010 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6011 $as_echo_n "(cached) " >&6
6014 # These are sane defaults that work on at least a few old systems.
6015 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6017 # Character class describing NM global symbol codes.
6018 symcode='[BCDEGRST]'
6020 # Regexp to match symbols that can be accessed directly from C.
6021 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6023 # Define system-specific variables.
6028 cygwin* | mingw* | pw32* | cegcc*)
6029 symcode='[ABCDGISTW]'
6032 if test ia64 = "$host_cpu"; then
6033 symcode='[ABCDEGRST]'
6037 symcode='[BCDEGRST]'
6040 symcode='[BCDEGQRST]'
6051 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6059 # If we're using GNU nm, then use its standard symbol codes.
6060 case `$NM -V 2>&1` in
6061 *GNU* | *'with BFD'*)
6062 symcode='[ABCDGIRSTW]' ;;
6065 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6066 # Gets list of data symbols to import.
6067 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6068 # Adjust the below global symbol transforms to fixup imported variables.
6069 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6070 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6071 lt_c_name_lib_hook="\
6072 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6073 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6075 # Disable hooks by default.
6076 lt_cv_sys_global_symbol_to_import=
6082 # Transform an extracted symbol line into a proper C declaration.
6083 # Some systems (esp. on ia64) link data and code symbols differently,
6084 # so use this general approach.
6085 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6087 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6088 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6090 # Transform an extracted symbol line into symbol name and symbol address
6091 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6093 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6094 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6096 # Transform an extracted symbol line into symbol name with lib prefix and
6098 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6099 $lt_c_name_lib_hook\
6100 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6101 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6102 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6104 # Handle CRLF in mingw tool chain
6108 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6112 # Try without a prefix underscore, then with it.
6113 for ac_symprfx in "" "_"; do
6115 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6116 symxfrm="\\1 $ac_symprfx\\2 \\2"
6118 # Write the raw and C identifiers.
6119 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6120 # Fake it for dumpbin and say T for any non-static function,
6121 # D for any global variable and I for any imported variable.
6122 # Also find C++ and __fastcall symbols from MSVC++,
6123 # which start with @ or ?.
6124 lt_cv_sys_global_symbol_pipe="$AWK '"\
6125 " {last_section=section; section=\$ 3};"\
6126 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6127 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6128 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6129 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6130 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6131 " \$ 0!~/External *\|/{next};"\
6132 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6133 " {if(hide[section]) next};"\
6134 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6135 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6136 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6137 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6138 " ' prfx=^$ac_symprfx"
6140 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6142 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6144 # Check to see that the pipe works correctly.
6148 cat > conftest.$ac_ext <<_LT_EOF
6153 void nm_test_func(void);
6154 void nm_test_func(void){}
6158 int main(){nm_test_var='a';nm_test_func();return(0);}
6161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6162 (eval $ac_compile) 2>&5
6164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6165 test $ac_status = 0; }; then
6166 # Now try to grab the symbols.
6168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6169 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6172 test $ac_status = 0; } && test -s "$nlist"; then
6173 # Try sorting and uniquifying the output.
6174 if sort "$nlist" | uniq > "$nlist"T; then
6175 mv -f "$nlist"T "$nlist"
6180 # Make sure that we snagged all the symbols we need.
6181 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6182 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6183 cat <<_LT_EOF > conftest.$ac_ext
6184 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6185 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6186 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6187 relocations are performed -- see ld's documentation on pseudo-relocs. */
6188 # define LT_DLSYM_CONST
6189 #elif defined __osf__
6190 /* This system does not cope well with relocations in const data. */
6191 # define LT_DLSYM_CONST
6193 # define LT_DLSYM_CONST const
6201 # Now generate the symbol file.
6202 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6204 cat <<_LT_EOF >> conftest.$ac_ext
6206 /* The mapping between symbol names and symbols. */
6207 LT_DLSYM_CONST struct {
6211 lt__PROGRAM__LTX_preloaded_symbols[] =
6213 { "@PROGRAM@", (void *) 0 },
6215 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6216 cat <<\_LT_EOF >> conftest.$ac_ext
6220 /* This works around a problem in FreeBSD linker */
6221 #ifdef FREEBSD_WORKAROUND
6222 static const void *lt_preloaded_setup() {
6223 return lt__PROGRAM__LTX_preloaded_symbols;
6231 # Now try linking the two files.
6232 mv conftest.$ac_objext conftstm.$ac_objext
6233 lt_globsym_save_LIBS=$LIBS
6234 lt_globsym_save_CFLAGS=$CFLAGS
6235 LIBS=conftstm.$ac_objext
6236 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6238 (eval $ac_link) 2>&5
6240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6241 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6244 LIBS=$lt_globsym_save_LIBS
6245 CFLAGS=$lt_globsym_save_CFLAGS
6247 echo "cannot find nm_test_func in $nlist" >&5
6250 echo "cannot find nm_test_var in $nlist" >&5
6253 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6256 echo "$progname: failed program was:" >&5
6257 cat conftest.$ac_ext >&5
6259 rm -rf conftest* conftst*
6261 # Do not use the global_symbol_pipe unless it works.
6262 if test yes = "$pipe_works"; then
6265 lt_cv_sys_global_symbol_pipe=
6271 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6272 lt_cv_sys_global_symbol_to_cdecl=
6274 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6276 $as_echo "failed" >&6; }
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6279 $as_echo "ok" >&6; }
6282 # Response file support.
6283 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6284 nm_file_list_spec='@'
6285 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6286 nm_file_list_spec='@'
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6326 $as_echo_n "checking for sysroot... " >&6; }
6328 # Check whether --with-sysroot was given.
6329 if test "${with_sysroot+set}" = set; then :
6330 withval=$with_sysroot;
6337 case $with_sysroot in #(
6339 if test yes = "$GCC"; then
6340 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6344 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
6350 $as_echo "$with_sysroot" >&6; }
6351 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6356 $as_echo "${lt_sysroot:-no}" >&6; }
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
6363 $as_echo_n "checking for a working dd... " >&6; }
6364 if ${ac_cv_path_lt_DD+:} false; then :
6365 $as_echo_n "(cached) " >&6
6367 printf 0123456789abcdef0123456789abcdef >conftest.i
6368 cat conftest.i conftest.i >conftest2.i
6370 if test -z "$lt_DD"; then
6371 ac_path_lt_DD_found=false
6372 # Loop through the user's path and test for each of PROGNAME-LIST
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 test -z "$as_dir" && as_dir=.
6378 for ac_prog in dd; do
6379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6381 as_fn_executable_p "$ac_path_lt_DD" || continue
6382 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6383 cmp -s conftest.i conftest.out \
6384 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6386 $ac_path_lt_DD_found && break 3
6391 if test -z "$ac_cv_path_lt_DD"; then
6395 ac_cv_path_lt_DD=$lt_DD
6398 rm -f conftest.i conftest2.i conftest.out
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
6401 $as_echo "$ac_cv_path_lt_DD" >&6; }
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
6405 $as_echo_n "checking how to truncate binary pipes... " >&6; }
6406 if ${lt_cv_truncate_bin+:} false; then :
6407 $as_echo_n "(cached) " >&6
6409 printf 0123456789abcdef0123456789abcdef >conftest.i
6410 cat conftest.i conftest.i >conftest2.i
6412 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6413 cmp -s conftest.i conftest.out \
6414 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
6416 rm -f conftest.i conftest2.i conftest.out
6417 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
6420 $as_echo "$lt_cv_truncate_bin" >&6; }
6428 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6431 for cc_temp in $*""; do
6433 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6434 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6439 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
6442 # Check whether --enable-libtool-lock was given.
6443 if test "${enable_libtool_lock+set}" = set; then :
6444 enableval=$enable_libtool_lock;
6447 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6449 # Some flags need to be propagated to the compiler or linker for good
6453 # Find out what ABI is being produced by ac_compile, and set mode
6454 # options accordingly.
6455 echo 'int i;' > conftest.$ac_ext
6456 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6457 (eval $ac_compile) 2>&5
6459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6460 test $ac_status = 0; }; then
6461 case `/usr/bin/file conftest.$ac_objext` in
6473 # Find out what ABI is being produced by ac_compile, and set linker
6474 # options accordingly.
6475 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6477 (eval $ac_compile) 2>&5
6479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6480 test $ac_status = 0; }; then
6481 if test yes = "$lt_cv_prog_gnu_ld"; then
6482 case `/usr/bin/file conftest.$ac_objext` in
6484 LD="${LD-ld} -melf32bsmip"
6487 LD="${LD-ld} -melf32bmipn32"
6490 LD="${LD-ld} -melf64bmip"
6494 case `/usr/bin/file conftest.$ac_objext` in
6511 # Find out what ABI is being produced by ac_compile, and set linker
6512 # options accordingly.
6513 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6515 (eval $ac_compile) 2>&5
6517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6518 test $ac_status = 0; }; then
6520 case `/usr/bin/file conftest.$ac_objext` in
6528 case `/usr/bin/file conftest.$ac_objext` in
6530 emul="${emul}btsmip"
6533 emul="${emul}ltsmip"
6536 case `/usr/bin/file conftest.$ac_objext` in
6541 LD="${LD-ld} -m $emul"
6546 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6547 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6548 # Find out what ABI is being produced by ac_compile, and set linker
6549 # options accordingly. Note that the listed cases only cover the
6550 # situations where additional linker options are needed (such as when
6551 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6552 # vice versa); the common cases where no linker options are needed do
6553 # not appear in the list.
6554 echo 'int i;' > conftest.$ac_ext
6555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6556 (eval $ac_compile) 2>&5
6558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6559 test $ac_status = 0; }; then
6560 case `/usr/bin/file conftest.o` in
6563 x86_64-*kfreebsd*-gnu)
6564 LD="${LD-ld} -m elf_i386_fbsd"
6567 case `/usr/bin/file conftest.o` in
6569 LD="${LD-ld} -m elf32_x86_64"
6572 LD="${LD-ld} -m elf_i386"
6576 powerpc64le-*linux*)
6577 LD="${LD-ld} -m elf32lppclinux"
6580 LD="${LD-ld} -m elf32ppclinux"
6583 LD="${LD-ld} -m elf_s390"
6586 LD="${LD-ld} -m elf32_sparc"
6592 x86_64-*kfreebsd*-gnu)
6593 LD="${LD-ld} -m elf_x86_64_fbsd"
6596 LD="${LD-ld} -m elf_x86_64"
6599 LD="${LD-ld} -m elf64lppc"
6602 LD="${LD-ld} -m elf64ppc"
6604 s390*-*linux*|s390*-*tpf*)
6605 LD="${LD-ld} -m elf64_s390"
6608 LD="${LD-ld} -m elf64_sparc"
6618 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6620 CFLAGS="$CFLAGS -belf"
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6622 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6623 if ${lt_cv_cc_needs_belf+:} false; then :
6624 $as_echo_n "(cached) " >&6
6627 ac_cpp='$CPP $CPPFLAGS'
6628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633 /* end confdefs.h. */
6643 if ac_fn_c_try_link "$LINENO"; then :
6644 lt_cv_cc_needs_belf=yes
6646 lt_cv_cc_needs_belf=no
6648 rm -f core conftest.err conftest.$ac_objext \
6649 conftest$ac_exeext conftest.$ac_ext
6651 ac_cpp='$CPP $CPPFLAGS'
6652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6658 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6659 if test yes != "$lt_cv_cc_needs_belf"; then
6660 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6665 # Find out what ABI is being produced by ac_compile, and set linker
6666 # options accordingly.
6667 echo 'int i;' > conftest.$ac_ext
6668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6669 (eval $ac_compile) 2>&5
6671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6672 test $ac_status = 0; }; then
6673 case `/usr/bin/file conftest.o` in
6675 case $lt_cv_prog_gnu_ld in
6678 i?86-*-solaris*|x86_64-*-solaris*)
6679 LD="${LD-ld} -m elf_x86_64"
6682 LD="${LD-ld} -m elf64_sparc"
6685 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6686 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6691 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6703 need_locks=$enable_libtool_lock
6705 if test -n "$ac_tool_prefix"; then
6706 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6707 set dummy ${ac_tool_prefix}mt; ac_word=$2
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6709 $as_echo_n "checking for $ac_word... " >&6; }
6710 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6711 $as_echo_n "(cached) " >&6
6713 if test -n "$MANIFEST_TOOL"; then
6714 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6720 test -z "$as_dir" && as_dir=.
6721 for ac_exec_ext in '' $ac_executable_extensions; do
6722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6723 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6734 if test -n "$MANIFEST_TOOL"; then
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6736 $as_echo "$MANIFEST_TOOL" >&6; }
6738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6739 $as_echo "no" >&6; }
6744 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6745 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6746 # Extract the first word of "mt", so it can be a program name with args.
6747 set dummy mt; ac_word=$2
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749 $as_echo_n "checking for $ac_word... " >&6; }
6750 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6751 $as_echo_n "(cached) " >&6
6753 if test -n "$ac_ct_MANIFEST_TOOL"; then
6754 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760 test -z "$as_dir" && as_dir=.
6761 for ac_exec_ext in '' $ac_executable_extensions; do
6762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6763 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6774 if test -n "$ac_ct_MANIFEST_TOOL"; then
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6776 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779 $as_echo "no" >&6; }
6782 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6785 case $cross_compiling:$ac_tool_warned in
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6789 ac_tool_warned=yes ;;
6791 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6794 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6797 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6799 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6800 if ${lt_cv_path_mainfest_tool+:} false; then :
6801 $as_echo_n "(cached) " >&6
6803 lt_cv_path_mainfest_tool=no
6804 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6805 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6806 cat conftest.err >&5
6807 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6808 lt_cv_path_mainfest_tool=yes
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6813 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6814 if test yes != "$lt_cv_path_mainfest_tool"; then
6824 rhapsody* | darwin*)
6825 if test -n "$ac_tool_prefix"; then
6826 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6827 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6829 $as_echo_n "checking for $ac_word... " >&6; }
6830 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6831 $as_echo_n "(cached) " >&6
6833 if test -n "$DSYMUTIL"; then
6834 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6840 test -z "$as_dir" && as_dir=.
6841 for ac_exec_ext in '' $ac_executable_extensions; do
6842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6843 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6853 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6854 if test -n "$DSYMUTIL"; then
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6856 $as_echo "$DSYMUTIL" >&6; }
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6859 $as_echo "no" >&6; }
6864 if test -z "$ac_cv_prog_DSYMUTIL"; then
6865 ac_ct_DSYMUTIL=$DSYMUTIL
6866 # Extract the first word of "dsymutil", so it can be a program name with args.
6867 set dummy dsymutil; ac_word=$2
6868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869 $as_echo_n "checking for $ac_word... " >&6; }
6870 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6871 $as_echo_n "(cached) " >&6
6873 if test -n "$ac_ct_DSYMUTIL"; then
6874 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6880 test -z "$as_dir" && as_dir=.
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6883 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6893 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6894 if test -n "$ac_ct_DSYMUTIL"; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6896 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 $as_echo "no" >&6; }
6902 if test "x$ac_ct_DSYMUTIL" = x; then
6905 case $cross_compiling:$ac_tool_warned in
6907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6909 ac_tool_warned=yes ;;
6911 DSYMUTIL=$ac_ct_DSYMUTIL
6914 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6917 if test -n "$ac_tool_prefix"; then
6918 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6919 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6921 $as_echo_n "checking for $ac_word... " >&6; }
6922 if ${ac_cv_prog_NMEDIT+:} false; then :
6923 $as_echo_n "(cached) " >&6
6925 if test -n "$NMEDIT"; then
6926 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6932 test -z "$as_dir" && as_dir=.
6933 for ac_exec_ext in '' $ac_executable_extensions; do
6934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6935 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6945 NMEDIT=$ac_cv_prog_NMEDIT
6946 if test -n "$NMEDIT"; then
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6948 $as_echo "$NMEDIT" >&6; }
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6951 $as_echo "no" >&6; }
6956 if test -z "$ac_cv_prog_NMEDIT"; then
6957 ac_ct_NMEDIT=$NMEDIT
6958 # Extract the first word of "nmedit", so it can be a program name with args.
6959 set dummy nmedit; ac_word=$2
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6961 $as_echo_n "checking for $ac_word... " >&6; }
6962 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6963 $as_echo_n "(cached) " >&6
6965 if test -n "$ac_ct_NMEDIT"; then
6966 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972 test -z "$as_dir" && as_dir=.
6973 for ac_exec_ext in '' $ac_executable_extensions; do
6974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6975 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6985 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6986 if test -n "$ac_ct_NMEDIT"; then
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6988 $as_echo "$ac_ct_NMEDIT" >&6; }
6990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6991 $as_echo "no" >&6; }
6994 if test "x$ac_ct_NMEDIT" = x; then
6997 case $cross_compiling:$ac_tool_warned in
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7001 ac_tool_warned=yes ;;
7003 NMEDIT=$ac_ct_NMEDIT
7006 NMEDIT="$ac_cv_prog_NMEDIT"
7009 if test -n "$ac_tool_prefix"; then
7010 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7011 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013 $as_echo_n "checking for $ac_word... " >&6; }
7014 if ${ac_cv_prog_LIPO+:} false; then :
7015 $as_echo_n "(cached) " >&6
7017 if test -n "$LIPO"; then
7018 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7024 test -z "$as_dir" && as_dir=.
7025 for ac_exec_ext in '' $ac_executable_extensions; do
7026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7027 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037 LIPO=$ac_cv_prog_LIPO
7038 if test -n "$LIPO"; then
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7040 $as_echo "$LIPO" >&6; }
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7048 if test -z "$ac_cv_prog_LIPO"; then
7050 # Extract the first word of "lipo", so it can be a program name with args.
7051 set dummy lipo; ac_word=$2
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7053 $as_echo_n "checking for $ac_word... " >&6; }
7054 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7055 $as_echo_n "(cached) " >&6
7057 if test -n "$ac_ct_LIPO"; then
7058 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7064 test -z "$as_dir" && as_dir=.
7065 for ac_exec_ext in '' $ac_executable_extensions; do
7066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7067 ac_cv_prog_ac_ct_LIPO="lipo"
7068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7078 if test -n "$ac_ct_LIPO"; then
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7080 $as_echo "$ac_ct_LIPO" >&6; }
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083 $as_echo "no" >&6; }
7086 if test "x$ac_ct_LIPO" = x; then
7089 case $cross_compiling:$ac_tool_warned in
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7093 ac_tool_warned=yes ;;
7098 LIPO="$ac_cv_prog_LIPO"
7101 if test -n "$ac_tool_prefix"; then
7102 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7103 set dummy ${ac_tool_prefix}otool; ac_word=$2
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7105 $as_echo_n "checking for $ac_word... " >&6; }
7106 if ${ac_cv_prog_OTOOL+:} false; then :
7107 $as_echo_n "(cached) " >&6
7109 if test -n "$OTOOL"; then
7110 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 test -z "$as_dir" && as_dir=.
7117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7119 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 OTOOL=$ac_cv_prog_OTOOL
7130 if test -n "$OTOOL"; then
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7132 $as_echo "$OTOOL" >&6; }
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7135 $as_echo "no" >&6; }
7140 if test -z "$ac_cv_prog_OTOOL"; then
7142 # Extract the first word of "otool", so it can be a program name with args.
7143 set dummy otool; ac_word=$2
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7145 $as_echo_n "checking for $ac_word... " >&6; }
7146 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7147 $as_echo_n "(cached) " >&6
7149 if test -n "$ac_ct_OTOOL"; then
7150 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 test -z "$as_dir" && as_dir=.
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7159 ac_cv_prog_ac_ct_OTOOL="otool"
7160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7170 if test -n "$ac_ct_OTOOL"; then
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7172 $as_echo "$ac_ct_OTOOL" >&6; }
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7175 $as_echo "no" >&6; }
7178 if test "x$ac_ct_OTOOL" = x; then
7181 case $cross_compiling:$ac_tool_warned in
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7184 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7185 ac_tool_warned=yes ;;
7190 OTOOL="$ac_cv_prog_OTOOL"
7193 if test -n "$ac_tool_prefix"; then
7194 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7195 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7197 $as_echo_n "checking for $ac_word... " >&6; }
7198 if ${ac_cv_prog_OTOOL64+:} false; then :
7199 $as_echo_n "(cached) " >&6
7201 if test -n "$OTOOL64"; then
7202 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7211 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 OTOOL64=$ac_cv_prog_OTOOL64
7222 if test -n "$OTOOL64"; then
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7224 $as_echo "$OTOOL64" >&6; }
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227 $as_echo "no" >&6; }
7232 if test -z "$ac_cv_prog_OTOOL64"; then
7233 ac_ct_OTOOL64=$OTOOL64
7234 # Extract the first word of "otool64", so it can be a program name with args.
7235 set dummy otool64; ac_word=$2
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237 $as_echo_n "checking for $ac_word... " >&6; }
7238 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7239 $as_echo_n "(cached) " >&6
7241 if test -n "$ac_ct_OTOOL64"; then
7242 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7251 ac_cv_prog_ac_ct_OTOOL64="otool64"
7252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7262 if test -n "$ac_ct_OTOOL64"; then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7264 $as_echo "$ac_ct_OTOOL64" >&6; }
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267 $as_echo "no" >&6; }
7270 if test "x$ac_ct_OTOOL64" = x; then
7273 case $cross_compiling:$ac_tool_warned in
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7276 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7277 ac_tool_warned=yes ;;
7279 OTOOL64=$ac_ct_OTOOL64
7282 OTOOL64="$ac_cv_prog_OTOOL64"
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7312 $as_echo_n "checking for -single_module linker flag... " >&6; }
7313 if ${lt_cv_apple_cc_single_mod+:} false; then :
7314 $as_echo_n "(cached) " >&6
7316 lt_cv_apple_cc_single_mod=no
7317 if test -z "$LT_MULTI_MODULE"; then
7318 # By default we will add the -single_module flag. You can override
7319 # by either setting the environment variable LT_MULTI_MODULE
7320 # non-empty at configure time, or by adding -multi_module to the
7322 rm -rf libconftest.dylib*
7323 echo "int foo(void){return 1;}" > conftest.c
7324 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7325 -dynamiclib -Wl,-single_module conftest.c" >&5
7326 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7327 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7329 # If there is a non-empty error log, and "single_module"
7330 # appears in it, assume the flag caused a linker warning
7331 if test -s conftest.err && $GREP single_module conftest.err; then
7332 cat conftest.err >&5
7333 # Otherwise, if the output was created with a 0 exit code from
7334 # the compiler, it worked.
7335 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7336 lt_cv_apple_cc_single_mod=yes
7338 cat conftest.err >&5
7340 rm -rf libconftest.dylib*
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7345 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7348 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7349 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7350 $as_echo_n "(cached) " >&6
7352 lt_cv_ld_exported_symbols_list=no
7353 save_LDFLAGS=$LDFLAGS
7354 echo "_main" > conftest.sym
7355 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7357 /* end confdefs.h. */
7367 if ac_fn_c_try_link "$LINENO"; then :
7368 lt_cv_ld_exported_symbols_list=yes
7370 lt_cv_ld_exported_symbols_list=no
7372 rm -f core conftest.err conftest.$ac_objext \
7373 conftest$ac_exeext conftest.$ac_ext
7374 LDFLAGS=$save_LDFLAGS
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7378 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7381 $as_echo_n "checking for -force_load linker flag... " >&6; }
7382 if ${lt_cv_ld_force_load+:} false; then :
7383 $as_echo_n "(cached) " >&6
7385 lt_cv_ld_force_load=no
7386 cat > conftest.c << _LT_EOF
7387 int forced_loaded() { return 2;}
7389 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7390 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7391 echo "$AR cru libconftest.a conftest.o" >&5
7392 $AR cru libconftest.a conftest.o 2>&5
7393 echo "$RANLIB libconftest.a" >&5
7394 $RANLIB libconftest.a 2>&5
7395 cat > conftest.c << _LT_EOF
7396 int main() { return 0;}
7398 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7399 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7401 if test -s conftest.err && $GREP force_load conftest.err; then
7402 cat conftest.err >&5
7403 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7404 lt_cv_ld_force_load=yes
7406 cat conftest.err >&5
7408 rm -f conftest.err libconftest.a conftest conftest.c
7409 rm -rf conftest.dSYM
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7413 $as_echo "$lt_cv_ld_force_load" >&6; }
7415 rhapsody* | darwin1.[012])
7416 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7418 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7419 darwin*) # darwin 5.x on
7420 # if running on 10.5 or later, the deployment target defaults
7421 # to the OS version, if on x86, and 10.4, the deployment
7422 # target defaults to 10.4. Don't you love it?
7423 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7424 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7425 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7427 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7429 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7433 if test yes = "$lt_cv_apple_cc_single_mod"; then
7434 _lt_dar_single_mod='$single_module'
7436 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7437 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7439 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7441 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7442 _lt_dsymutil='~$DSYMUTIL $lib || :'
7449 # func_munge_path_list VARIABLE PATH
7450 # -----------------------------------
7451 # VARIABLE is name of variable containing _space_ separated list of
7452 # directories to be munged by the contents of PATH, which is string
7455 # string "DIR[ DIR]" will be prepended to VARIABLE
7457 # string "DIR[ DIR]" will be appended to VARIABLE
7458 # "DIRP[:DIRP]::[DIRA:]DIRA"
7459 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
7460 # "DIRA[ DIRA]" will be appended to VARIABLE
7462 # VARIABLE will be replaced by "DIR[ DIR]"
7463 func_munge_path_list ()
7469 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7472 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7475 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7476 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7479 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7485 ac_cpp='$CPP $CPPFLAGS'
7486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7490 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7491 # On Suns, sometimes $CPP names a directory.
7492 if test -n "$CPP" && test -d "$CPP"; then
7495 if test -z "$CPP"; then
7496 if ${ac_cv_prog_CPP+:} false; then :
7497 $as_echo_n "(cached) " >&6
7499 # Double quotes because CPP needs to be expanded
7500 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7503 for ac_c_preproc_warn_flag in '' yes
7505 # Use a header file that comes with gcc, so configuring glibc
7506 # with a fresh cross-compiler works.
7507 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7508 # <limits.h> exists even on freestanding compilers.
7509 # On the NeXT, cc -E runs the code through the compiler's parser,
7510 # not just through cpp. "Syntax error" is here to catch this case.
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7512 /* end confdefs.h. */
7514 # include <limits.h>
7516 # include <assert.h>
7520 if ac_fn_c_try_cpp "$LINENO"; then :
7523 # Broken: fails on valid input.
7526 rm -f conftest.err conftest.i conftest.$ac_ext
7528 # OK, works on sane cases. Now check whether nonexistent headers
7529 # can be detected and how.
7530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7531 /* end confdefs.h. */
7532 #include <ac_nonexistent.h>
7534 if ac_fn_c_try_cpp "$LINENO"; then :
7535 # Broken: success on invalid input.
7538 # Passes both tests.
7542 rm -f conftest.err conftest.i conftest.$ac_ext
7545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7546 rm -f conftest.i conftest.err conftest.$ac_ext
7547 if $ac_preproc_ok; then :
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7560 $as_echo "$CPP" >&6; }
7562 for ac_c_preproc_warn_flag in '' yes
7564 # Use a header file that comes with gcc, so configuring glibc
7565 # with a fresh cross-compiler works.
7566 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7567 # <limits.h> exists even on freestanding compilers.
7568 # On the NeXT, cc -E runs the code through the compiler's parser,
7569 # not just through cpp. "Syntax error" is here to catch this case.
7570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7571 /* end confdefs.h. */
7573 # include <limits.h>
7575 # include <assert.h>
7579 if ac_fn_c_try_cpp "$LINENO"; then :
7582 # Broken: fails on valid input.
7585 rm -f conftest.err conftest.i conftest.$ac_ext
7587 # OK, works on sane cases. Now check whether nonexistent headers
7588 # can be detected and how.
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7591 #include <ac_nonexistent.h>
7593 if ac_fn_c_try_cpp "$LINENO"; then :
7594 # Broken: success on invalid input.
7597 # Passes both tests.
7601 rm -f conftest.err conftest.i conftest.$ac_ext
7604 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7605 rm -f conftest.i conftest.err conftest.$ac_ext
7606 if $ac_preproc_ok; then :
7609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7611 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7612 See \`config.log' for more details" "$LINENO" 5; }
7616 ac_cpp='$CPP $CPPFLAGS'
7617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7623 $as_echo_n "checking for ANSI C header files... " >&6; }
7624 if ${ac_cv_header_stdc+:} false; then :
7625 $as_echo_n "(cached) " >&6
7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628 /* end confdefs.h. */
7642 if ac_fn_c_try_compile "$LINENO"; then :
7643 ac_cv_header_stdc=yes
7645 ac_cv_header_stdc=no
7647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7649 if test $ac_cv_header_stdc = yes; then
7650 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7652 /* end confdefs.h. */
7656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7657 $EGREP "memchr" >/dev/null 2>&1; then :
7660 ac_cv_header_stdc=no
7666 if test $ac_cv_header_stdc = yes; then
7667 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7669 /* end confdefs.h. */
7673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7674 $EGREP "free" >/dev/null 2>&1; then :
7677 ac_cv_header_stdc=no
7683 if test $ac_cv_header_stdc = yes; then
7684 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7685 if test "$cross_compiling" = yes; then :
7688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7689 /* end confdefs.h. */
7692 #if ((' ' & 0x0FF) == 0x020)
7693 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7694 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7696 # define ISLOWER(c) \
7697 (('a' <= (c) && (c) <= 'i') \
7698 || ('j' <= (c) && (c) <= 'r') \
7699 || ('s' <= (c) && (c) <= 'z'))
7700 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7703 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7708 for (i = 0; i < 256; i++)
7709 if (XOR (islower (i), ISLOWER (i))
7710 || toupper (i) != TOUPPER (i))
7715 if ac_fn_c_try_run "$LINENO"; then :
7718 ac_cv_header_stdc=no
7720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7721 conftest.$ac_objext conftest.beam conftest.$ac_ext
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7727 $as_echo "$ac_cv_header_stdc" >&6; }
7728 if test $ac_cv_header_stdc = yes; then
7730 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7734 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7735 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7736 inttypes.h stdint.h unistd.h
7738 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7739 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7741 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7742 cat >>confdefs.h <<_ACEOF
7743 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7751 for ac_header in dlfcn.h
7753 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7755 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7756 cat >>confdefs.h <<_ACEOF
7757 #define HAVE_DLFCN_H 1
7769 enable_win32_dll=yes
7772 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7773 if test -n "$ac_tool_prefix"; then
7774 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7775 set dummy ${ac_tool_prefix}as; ac_word=$2
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7777 $as_echo_n "checking for $ac_word... " >&6; }
7778 if ${ac_cv_prog_AS+:} false; then :
7779 $as_echo_n "(cached) " >&6
7781 if test -n "$AS"; then
7782 ac_cv_prog_AS="$AS" # Let the user override the test.
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 test -z "$as_dir" && as_dir=.
7789 for ac_exec_ext in '' $ac_executable_extensions; do
7790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7791 ac_cv_prog_AS="${ac_tool_prefix}as"
7792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7802 if test -n "$AS"; then
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7804 $as_echo "$AS" >&6; }
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7807 $as_echo "no" >&6; }
7812 if test -z "$ac_cv_prog_AS"; then
7814 # Extract the first word of "as", so it can be a program name with args.
7815 set dummy as; ac_word=$2
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7817 $as_echo_n "checking for $ac_word... " >&6; }
7818 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7819 $as_echo_n "(cached) " >&6
7821 if test -n "$ac_ct_AS"; then
7822 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7828 test -z "$as_dir" && as_dir=.
7829 for ac_exec_ext in '' $ac_executable_extensions; do
7830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7831 ac_cv_prog_ac_ct_AS="as"
7832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7841 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7842 if test -n "$ac_ct_AS"; then
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7844 $as_echo "$ac_ct_AS" >&6; }
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7850 if test "x$ac_ct_AS" = x; then
7853 case $cross_compiling:$ac_tool_warned in
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7857 ac_tool_warned=yes ;;
7865 if test -n "$ac_tool_prefix"; then
7866 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7867 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7869 $as_echo_n "checking for $ac_word... " >&6; }
7870 if ${ac_cv_prog_DLLTOOL+:} false; then :
7871 $as_echo_n "(cached) " >&6
7873 if test -n "$DLLTOOL"; then
7874 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7880 test -z "$as_dir" && as_dir=.
7881 for ac_exec_ext in '' $ac_executable_extensions; do
7882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7883 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7893 DLLTOOL=$ac_cv_prog_DLLTOOL
7894 if test -n "$DLLTOOL"; then
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7896 $as_echo "$DLLTOOL" >&6; }
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 $as_echo "no" >&6; }
7904 if test -z "$ac_cv_prog_DLLTOOL"; then
7905 ac_ct_DLLTOOL=$DLLTOOL
7906 # Extract the first word of "dlltool", so it can be a program name with args.
7907 set dummy dlltool; ac_word=$2
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 $as_echo_n "checking for $ac_word... " >&6; }
7910 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7911 $as_echo_n "(cached) " >&6
7913 if test -n "$ac_ct_DLLTOOL"; then
7914 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7920 test -z "$as_dir" && as_dir=.
7921 for ac_exec_ext in '' $ac_executable_extensions; do
7922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7923 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7924 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7933 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7934 if test -n "$ac_ct_DLLTOOL"; then
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7936 $as_echo "$ac_ct_DLLTOOL" >&6; }
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7939 $as_echo "no" >&6; }
7942 if test "x$ac_ct_DLLTOOL" = x; then
7945 case $cross_compiling:$ac_tool_warned in
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7948 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7949 ac_tool_warned=yes ;;
7951 DLLTOOL=$ac_ct_DLLTOOL
7954 DLLTOOL="$ac_cv_prog_DLLTOOL"
7957 if test -n "$ac_tool_prefix"; then
7958 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7959 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961 $as_echo_n "checking for $ac_word... " >&6; }
7962 if ${ac_cv_prog_OBJDUMP+:} false; then :
7963 $as_echo_n "(cached) " >&6
7965 if test -n "$OBJDUMP"; then
7966 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7975 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7985 OBJDUMP=$ac_cv_prog_OBJDUMP
7986 if test -n "$OBJDUMP"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7988 $as_echo "$OBJDUMP" >&6; }
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7996 if test -z "$ac_cv_prog_OBJDUMP"; then
7997 ac_ct_OBJDUMP=$OBJDUMP
7998 # Extract the first word of "objdump", so it can be a program name with args.
7999 set dummy objdump; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8003 $as_echo_n "(cached) " >&6
8005 if test -n "$ac_ct_OBJDUMP"; then
8006 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 test -z "$as_dir" && as_dir=.
8013 for ac_exec_ext in '' $ac_executable_extensions; do
8014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8015 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8025 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8026 if test -n "$ac_ct_OBJDUMP"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8028 $as_echo "$ac_ct_OBJDUMP" >&6; }
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8034 if test "x$ac_ct_OBJDUMP" = x; then
8037 case $cross_compiling:$ac_tool_warned in
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8041 ac_tool_warned=yes ;;
8043 OBJDUMP=$ac_ct_OBJDUMP
8046 OBJDUMP="$ac_cv_prog_OBJDUMP"
8052 test -z "$AS" && AS=as
8058 test -z "$DLLTOOL" && DLLTOOL=dlltool
8064 test -z "$OBJDUMP" && OBJDUMP=objdump
8076 # Check whether --enable-shared was given.
8077 if test "${enable_shared+set}" = set; then :
8078 enableval=$enable_shared; p=${PACKAGE-default}
8080 yes) enable_shared=yes ;;
8081 no) enable_shared=no ;;
8084 # Look at the argument we got. We use all the common list separators.
8085 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8086 for pkg in $enableval; do
8088 if test "X$pkg" = "X$p"; then
8107 # Check whether --enable-static was given.
8108 if test "${enable_static+set}" = set; then :
8109 enableval=$enable_static; p=${PACKAGE-default}
8111 yes) enable_static=yes ;;
8112 no) enable_static=no ;;
8115 # Look at the argument we got. We use all the common list separators.
8116 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8117 for pkg in $enableval; do
8119 if test "X$pkg" = "X$p"; then
8139 # Check whether --with-pic was given.
8140 if test "${with_pic+set}" = set; then :
8141 withval=$with_pic; lt_p=${PACKAGE-default}
8143 yes|no) pic_mode=$withval ;;
8146 # Look at the argument we got. We use all the common list separators.
8147 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8148 for lt_pkg in $withval; do
8150 if test "X$lt_pkg" = "X$lt_p"; then
8168 # Check whether --enable-fast-install was given.
8169 if test "${enable_fast_install+set}" = set; then :
8170 enableval=$enable_fast_install; p=${PACKAGE-default}
8172 yes) enable_fast_install=yes ;;
8173 no) enable_fast_install=no ;;
8175 enable_fast_install=no
8176 # Look at the argument we got. We use all the common list separators.
8177 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8178 for pkg in $enableval; do
8180 if test "X$pkg" = "X$p"; then
8181 enable_fast_install=yes
8188 enable_fast_install=yes
8198 shared_archive_member_spec=
8199 case $host,$enable_shared in
8200 power*-*-aix[5-9]*,yes)
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8202 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8204 # Check whether --with-aix-soname was given.
8205 if test "${with_aix_soname+set}" = set; then :
8206 withval=$with_aix_soname; case $withval in
8210 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8213 lt_cv_with_aix_soname=$with_aix_soname
8215 if ${lt_cv_with_aix_soname+:} false; then :
8216 $as_echo_n "(cached) " >&6
8218 lt_cv_with_aix_soname=aix
8221 with_aix_soname=$lt_cv_with_aix_soname
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8225 $as_echo "$with_aix_soname" >&6; }
8226 if test aix != "$with_aix_soname"; then
8227 # For the AIX way of multilib, we name the shared archive member
8228 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8229 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8230 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8231 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8232 if test 64 = "${OBJECT_MODE-32}"; then
8233 shared_archive_member_spec=shr_64
8235 shared_archive_member_spec=shr
8253 # This can be used to rebuild libtool when needed
8254 LIBTOOL_DEPS=$ltmain
8256 # Always use our own libtool.
8257 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8288 test -z "$LN_S" && LN_S="ln -s"
8303 if test -n "${ZSH_VERSION+set}"; then
8304 setopt NO_GLOB_SUBST
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8308 $as_echo_n "checking for objdir... " >&6; }
8309 if ${lt_cv_objdir+:} false; then :
8310 $as_echo_n "(cached) " >&6
8312 rm -f .libs 2>/dev/null
8313 mkdir .libs 2>/dev/null
8314 if test -d .libs; then
8317 # MS-DOS does not allow filenames that begin with a dot.
8320 rmdir .libs 2>/dev/null
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8323 $as_echo "$lt_cv_objdir" >&6; }
8324 objdir=$lt_cv_objdir
8330 cat >>confdefs.h <<_ACEOF
8331 #define LT_OBJDIR "$lt_cv_objdir/"
8339 # AIX sometimes has problems with the GCC collect2 program. For some
8340 # reason, if we set the COLLECT_NAMES environment variable, the problems
8341 # vanish in a puff of smoke.
8342 if test set != "${COLLECT_NAMES+set}"; then
8344 export COLLECT_NAMES
8351 can_build_shared=yes
8353 # All known linkers require a '.a' archive for static linking (except MSVC,
8354 # which needs '.lib').
8357 with_gnu_ld=$lt_cv_prog_gnu_ld
8362 # Set sane defaults for various variables
8363 test -z "$CC" && CC=cc
8364 test -z "$LTCC" && LTCC=$CC
8365 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8366 test -z "$LD" && LD=ld
8367 test -z "$ac_objext" && ac_objext=o
8369 func_cc_basename $compiler
8370 cc_basename=$func_cc_basename_result
8373 # Only perform the check for file, if the check method requires it
8374 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8375 case $deplibs_check_method in
8377 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8379 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8380 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8381 $as_echo_n "(cached) " >&6
8385 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8388 lt_save_MAGIC_CMD=$MAGIC_CMD
8389 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8390 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8391 for ac_dir in $ac_dummy; do
8393 test -z "$ac_dir" && ac_dir=.
8394 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8395 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8396 if test -n "$file_magic_test_file"; then
8397 case $deplibs_check_method in
8399 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8400 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8401 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8402 $EGREP "$file_magic_regex" > /dev/null; then
8407 *** Warning: the command libtool uses to detect shared libraries,
8408 *** $file_magic_cmd, produces output that libtool cannot recognize.
8409 *** The result is that libtool may fail to recognize shared libraries
8410 *** as such. This will affect the creation of libtool libraries that
8411 *** depend on shared libraries, but programs linked with such libtool
8412 *** libraries will work regardless of this problem. Nevertheless, you
8413 *** may want to report the problem to your system manager and/or to
8414 *** bug-libtool@gnu.org
8424 MAGIC_CMD=$lt_save_MAGIC_CMD
8429 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8430 if test -n "$MAGIC_CMD"; then
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8432 $as_echo "$MAGIC_CMD" >&6; }
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 $as_echo "no" >&6; }
8442 if test -z "$lt_cv_path_MAGIC_CMD"; then
8443 if test -n "$ac_tool_prefix"; then
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8445 $as_echo_n "checking for file... " >&6; }
8446 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8447 $as_echo_n "(cached) " >&6
8451 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8454 lt_save_MAGIC_CMD=$MAGIC_CMD
8455 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8456 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8457 for ac_dir in $ac_dummy; do
8459 test -z "$ac_dir" && ac_dir=.
8460 if test -f "$ac_dir/file"; then
8461 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8462 if test -n "$file_magic_test_file"; then
8463 case $deplibs_check_method in
8465 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8466 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8467 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8468 $EGREP "$file_magic_regex" > /dev/null; then
8473 *** Warning: the command libtool uses to detect shared libraries,
8474 *** $file_magic_cmd, produces output that libtool cannot recognize.
8475 *** The result is that libtool may fail to recognize shared libraries
8476 *** as such. This will affect the creation of libtool libraries that
8477 *** depend on shared libraries, but programs linked with such libtool
8478 *** libraries will work regardless of this problem. Nevertheless, you
8479 *** may want to report the problem to your system manager and/or to
8480 *** bug-libtool@gnu.org
8490 MAGIC_CMD=$lt_save_MAGIC_CMD
8495 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8496 if test -n "$MAGIC_CMD"; then
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8498 $as_echo "$MAGIC_CMD" >&6; }
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8501 $as_echo "no" >&6; }
8514 # Use C for the default configuration in the libtool script
8518 ac_cpp='$CPP $CPPFLAGS'
8519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8524 # Source file extension for C test sources.
8527 # Object file extension for compiled C test sources.
8531 # Code to be used in simple compile tests
8532 lt_simple_compile_test_code="int some_variable = 0;"
8534 # Code to be used in simple link tests
8535 lt_simple_link_test_code='int main(){return(0);}'
8543 # If no C compiler was specified, use CC.
8546 # If no C compiler flags were specified, use CFLAGS.
8547 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8549 # Allow CC to be a program name with arguments.
8552 # Save the default compiler, since it gets overwritten when the other
8553 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8554 compiler_DEFAULT=$CC
8556 # save warnings/boilerplate of simple test code
8557 ac_outfile=conftest.$ac_objext
8558 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8559 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8560 _lt_compiler_boilerplate=`cat conftest.err`
8563 ac_outfile=conftest.$ac_objext
8564 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8565 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8566 _lt_linker_boilerplate=`cat conftest.err`
8571 ## There is no encapsulation within the following macros, do not change
8572 ## the running order or otherwise move them around unless you know exactly
8573 ## what you are doing...
8574 if test -n "$compiler"; then
8576 lt_prog_compiler_no_builtin_flag=
8578 if test yes = "$GCC"; then
8579 case $cc_basename in
8581 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8583 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8587 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8588 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8589 $as_echo_n "(cached) " >&6
8591 lt_cv_prog_compiler_rtti_exceptions=no
8592 ac_outfile=conftest.$ac_objext
8593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8594 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8595 # Insert the option either (1) after the last *FLAGS variable, or
8596 # (2) before a word containing "conftest.", or (3) at the end.
8597 # Note that $ac_compile itself does not contain backslashes and begins
8598 # with a dollar sign (not a hyphen), so the echo should work correctly.
8599 # The option is referenced via a variable to avoid confusing sed.
8600 lt_compile=`echo "$ac_compile" | $SED \
8601 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8602 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8603 -e 's:$: $lt_compiler_flag:'`
8604 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8605 (eval "$lt_compile" 2>conftest.err)
8607 cat conftest.err >&5
8608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8609 if (exit $ac_status) && test -s "$ac_outfile"; then
8610 # The compiler can only warn and ignore the option if not recognized
8611 # So say no if there are warnings other than the usual output.
8612 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8613 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8614 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8615 lt_cv_prog_compiler_rtti_exceptions=yes
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8622 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8624 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8625 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8637 lt_prog_compiler_wl=
8638 lt_prog_compiler_pic=
8639 lt_prog_compiler_static=
8642 if test yes = "$GCC"; then
8643 lt_prog_compiler_wl='-Wl,'
8644 lt_prog_compiler_static='-static'
8648 # All AIX code is PIC.
8649 if test ia64 = "$host_cpu"; then
8650 # AIX 5 now supports IA64 processor
8651 lt_prog_compiler_static='-Bstatic'
8653 lt_prog_compiler_pic='-fPIC'
8659 # see comment about AmigaOS4 .so support
8660 lt_prog_compiler_pic='-fPIC'
8663 # FIXME: we need at least 68020 code to build shared libraries, but
8664 # adding the '-m68020' flag to GCC prevents building anything better,
8666 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8671 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8672 # PIC is the default for these OSes.
8675 mingw* | cygwin* | pw32* | os2* | cegcc*)
8676 # This hack is so that the source file can tell whether it is being
8677 # built for inclusion in a dll (and should export symbols for example).
8678 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8679 # (--disable-auto-import) libraries
8680 lt_prog_compiler_pic='-DDLL_EXPORT'
8683 lt_prog_compiler_static='$wl-static'
8688 darwin* | rhapsody*)
8689 # PIC is the default on this platform
8690 # Common symbols not allowed in MH_DYLIB files
8691 lt_prog_compiler_pic='-fno-common'
8695 # PIC is the default for Haiku.
8696 # The "-static" flag exists, but is broken.
8697 lt_prog_compiler_static=
8701 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8702 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8703 # sets the default TLS model and affects inlining.
8709 lt_prog_compiler_pic='-fPIC'
8715 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8716 # Instead, we relocate shared libraries at runtime.
8720 # Just because we use GCC doesn't mean we suddenly get shared libraries
8721 # on systems that don't support them.
8722 lt_prog_compiler_can_build_shared=no
8727 # QNX uses GNU C++, but need to define -shared option too, otherwise
8729 lt_prog_compiler_pic='-fPIC -shared'
8733 if test -d /usr/nec; then
8734 lt_prog_compiler_pic=-Kconform_pic
8739 lt_prog_compiler_pic='-fPIC'
8743 case $cc_basename in
8744 nvcc*) # Cuda Compiler Driver 2.2
8745 lt_prog_compiler_wl='-Xlinker '
8746 if test -n "$lt_prog_compiler_pic"; then
8747 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8752 # PORTME Check for flag to pass linker flags through the system compiler.
8755 lt_prog_compiler_wl='-Wl,'
8756 if test ia64 = "$host_cpu"; then
8757 # AIX 5 now supports IA64 processor
8758 lt_prog_compiler_static='-Bstatic'
8760 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8764 darwin* | rhapsody*)
8765 # PIC is the default on this platform
8766 # Common symbols not allowed in MH_DYLIB files
8767 lt_prog_compiler_pic='-fno-common'
8768 case $cc_basename in
8770 # NAG Fortran compiler
8771 lt_prog_compiler_wl='-Wl,-Wl,,'
8772 lt_prog_compiler_pic='-PIC'
8773 lt_prog_compiler_static='-Bstatic'
8778 mingw* | cygwin* | pw32* | os2* | cegcc*)
8779 # This hack is so that the source file can tell whether it is being
8780 # built for inclusion in a dll (and should export symbols for example).
8781 lt_prog_compiler_pic='-DDLL_EXPORT'
8784 lt_prog_compiler_static='$wl-static'
8789 hpux9* | hpux10* | hpux11*)
8790 lt_prog_compiler_wl='-Wl,'
8791 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8798 lt_prog_compiler_pic='+Z'
8801 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8802 lt_prog_compiler_static='$wl-a ${wl}archive'
8805 irix5* | irix6* | nonstopux*)
8806 lt_prog_compiler_wl='-Wl,'
8807 # PIC (with -KPIC) is the default.
8808 lt_prog_compiler_static='-non_shared'
8811 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8812 case $cc_basename in
8813 # old Intel for x86_64, which still supported -KPIC.
8815 lt_prog_compiler_wl='-Wl,'
8816 lt_prog_compiler_pic='-KPIC'
8817 lt_prog_compiler_static='-static'
8819 # icc used to be incompatible with GCC.
8820 # ICC 10 doesn't accept -KPIC any more.
8822 lt_prog_compiler_wl='-Wl,'
8823 lt_prog_compiler_pic='-fPIC'
8824 lt_prog_compiler_static='-static'
8826 # Lahey Fortran 8.1.
8828 lt_prog_compiler_wl='-Wl,'
8829 lt_prog_compiler_pic='--shared'
8830 lt_prog_compiler_static='--static'
8833 # NAG Fortran compiler
8834 lt_prog_compiler_wl='-Wl,-Wl,,'
8835 lt_prog_compiler_pic='-PIC'
8836 lt_prog_compiler_static='-Bstatic'
8839 # Fabrice Bellard et al's Tiny C Compiler
8840 lt_prog_compiler_wl='-Wl,'
8841 lt_prog_compiler_pic='-fPIC'
8842 lt_prog_compiler_static='-static'
8844 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8845 # Portland Group compilers (*not* the Pentium gcc compiler,
8846 # which looks to be a dead project)
8847 lt_prog_compiler_wl='-Wl,'
8848 lt_prog_compiler_pic='-fpic'
8849 lt_prog_compiler_static='-Bstatic'
8852 lt_prog_compiler_wl='-Wl,'
8853 # All Alpha code is PIC.
8854 lt_prog_compiler_static='-non_shared'
8856 xl* | bgxl* | bgf* | mpixl*)
8857 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8858 lt_prog_compiler_wl='-Wl,'
8859 lt_prog_compiler_pic='-qpic'
8860 lt_prog_compiler_static='-qstaticlink'
8863 case `$CC -V 2>&1 | sed 5q` in
8864 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8865 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8866 lt_prog_compiler_pic='-KPIC'
8867 lt_prog_compiler_static='-Bstatic'
8868 lt_prog_compiler_wl=''
8870 *Sun\ F* | *Sun*Fortran*)
8871 lt_prog_compiler_pic='-KPIC'
8872 lt_prog_compiler_static='-Bstatic'
8873 lt_prog_compiler_wl='-Qoption ld '
8877 lt_prog_compiler_pic='-KPIC'
8878 lt_prog_compiler_static='-Bstatic'
8879 lt_prog_compiler_wl='-Wl,'
8881 *Intel*\ [CF]*Compiler*)
8882 lt_prog_compiler_wl='-Wl,'
8883 lt_prog_compiler_pic='-fPIC'
8884 lt_prog_compiler_static='-static'
8887 lt_prog_compiler_wl='-Wl,'
8888 lt_prog_compiler_pic='-fpic'
8889 lt_prog_compiler_static='-Bstatic'
8897 lt_prog_compiler_pic='-KPIC'
8898 lt_prog_compiler_static='-Bstatic'
8902 # QNX uses GNU C++, but need to define -shared option too, otherwise
8904 lt_prog_compiler_pic='-fPIC -shared'
8907 osf3* | osf4* | osf5*)
8908 lt_prog_compiler_wl='-Wl,'
8909 # All OSF/1 code is PIC.
8910 lt_prog_compiler_static='-non_shared'
8914 lt_prog_compiler_static='-non_shared'
8918 lt_prog_compiler_pic='-KPIC'
8919 lt_prog_compiler_static='-Bstatic'
8920 case $cc_basename in
8921 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8922 lt_prog_compiler_wl='-Qoption ld ';;
8924 lt_prog_compiler_wl='-Wl,';;
8929 lt_prog_compiler_wl='-Qoption ld '
8930 lt_prog_compiler_pic='-PIC'
8931 lt_prog_compiler_static='-Bstatic'
8934 sysv4 | sysv4.2uw2* | sysv4.3*)
8935 lt_prog_compiler_wl='-Wl,'
8936 lt_prog_compiler_pic='-KPIC'
8937 lt_prog_compiler_static='-Bstatic'
8941 if test -d /usr/nec; then
8942 lt_prog_compiler_pic='-Kconform_pic'
8943 lt_prog_compiler_static='-Bstatic'
8947 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8948 lt_prog_compiler_wl='-Wl,'
8949 lt_prog_compiler_pic='-KPIC'
8950 lt_prog_compiler_static='-Bstatic'
8954 lt_prog_compiler_wl='-Wl,'
8955 lt_prog_compiler_can_build_shared=no
8959 lt_prog_compiler_pic='-pic'
8960 lt_prog_compiler_static='-Bstatic'
8964 lt_prog_compiler_can_build_shared=no
8970 # For platforms that do not support PIC, -DPIC is meaningless:
8972 lt_prog_compiler_pic=
8975 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8980 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8981 if ${lt_cv_prog_compiler_pic+:} false; then :
8982 $as_echo_n "(cached) " >&6
8984 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8987 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8988 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8991 # Check to make sure the PIC flag actually works.
8993 if test -n "$lt_prog_compiler_pic"; then
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8995 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8996 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8997 $as_echo_n "(cached) " >&6
8999 lt_cv_prog_compiler_pic_works=no
9000 ac_outfile=conftest.$ac_objext
9001 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9002 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9003 # Insert the option either (1) after the last *FLAGS variable, or
9004 # (2) before a word containing "conftest.", or (3) at the end.
9005 # Note that $ac_compile itself does not contain backslashes and begins
9006 # with a dollar sign (not a hyphen), so the echo should work correctly.
9007 # The option is referenced via a variable to avoid confusing sed.
9008 lt_compile=`echo "$ac_compile" | $SED \
9009 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9010 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9011 -e 's:$: $lt_compiler_flag:'`
9012 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9013 (eval "$lt_compile" 2>conftest.err)
9015 cat conftest.err >&5
9016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9017 if (exit $ac_status) && test -s "$ac_outfile"; then
9018 # The compiler can only warn and ignore the option if not recognized
9019 # So say no if there are warnings other than the usual output.
9020 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9021 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9022 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9023 lt_cv_prog_compiler_pic_works=yes
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9030 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9032 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9033 case $lt_prog_compiler_pic in
9035 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9038 lt_prog_compiler_pic=
9039 lt_prog_compiler_can_build_shared=no
9055 # Check to make sure the static flag actually works.
9057 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9059 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9060 if ${lt_cv_prog_compiler_static_works+:} false; then :
9061 $as_echo_n "(cached) " >&6
9063 lt_cv_prog_compiler_static_works=no
9064 save_LDFLAGS=$LDFLAGS
9065 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9066 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9067 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9068 # The linker can only warn and ignore the option if not recognized
9069 # So say no if there are warnings
9070 if test -s conftest.err; then
9071 # Append any errors to the config.log.
9072 cat conftest.err 1>&5
9073 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9074 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9075 if diff conftest.exp conftest.er2 >/dev/null; then
9076 lt_cv_prog_compiler_static_works=yes
9079 lt_cv_prog_compiler_static_works=yes
9083 LDFLAGS=$save_LDFLAGS
9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9087 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9089 if test yes = "$lt_cv_prog_compiler_static_works"; then
9092 lt_prog_compiler_static=
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9102 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9103 if ${lt_cv_prog_compiler_c_o+:} false; then :
9104 $as_echo_n "(cached) " >&6
9106 lt_cv_prog_compiler_c_o=no
9107 $RM -r conftest 2>/dev/null
9111 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9113 lt_compiler_flag="-o out/conftest2.$ac_objext"
9114 # Insert the option either (1) after the last *FLAGS variable, or
9115 # (2) before a word containing "conftest.", or (3) at the end.
9116 # Note that $ac_compile itself does not contain backslashes and begins
9117 # with a dollar sign (not a hyphen), so the echo should work correctly.
9118 lt_compile=`echo "$ac_compile" | $SED \
9119 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9120 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9121 -e 's:$: $lt_compiler_flag:'`
9122 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9123 (eval "$lt_compile" 2>out/conftest.err)
9125 cat out/conftest.err >&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9129 # The compiler can only warn and ignore the option if not recognized
9130 # So say no if there are warnings
9131 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9132 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9133 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9134 lt_cv_prog_compiler_c_o=yes
9139 # SGI C++ compiler will create directory out/ii_files/ for
9140 # template instantiation
9141 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9142 $RM out/* && rmdir out
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9149 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9157 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9158 if ${lt_cv_prog_compiler_c_o+:} false; then :
9159 $as_echo_n "(cached) " >&6
9161 lt_cv_prog_compiler_c_o=no
9162 $RM -r conftest 2>/dev/null
9166 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9168 lt_compiler_flag="-o out/conftest2.$ac_objext"
9169 # Insert the option either (1) after the last *FLAGS variable, or
9170 # (2) before a word containing "conftest.", or (3) at the end.
9171 # Note that $ac_compile itself does not contain backslashes and begins
9172 # with a dollar sign (not a hyphen), so the echo should work correctly.
9173 lt_compile=`echo "$ac_compile" | $SED \
9174 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9175 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9176 -e 's:$: $lt_compiler_flag:'`
9177 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9178 (eval "$lt_compile" 2>out/conftest.err)
9180 cat out/conftest.err >&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9184 # The compiler can only warn and ignore the option if not recognized
9185 # So say no if there are warnings
9186 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9187 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9188 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9189 lt_cv_prog_compiler_c_o=yes
9194 # SGI C++ compiler will create directory out/ii_files/ for
9195 # template instantiation
9196 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9197 $RM out/* && rmdir out
9203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9204 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9209 hard_links=nottested
9210 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9211 # do not overwrite the value of need_locks provided by the user
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9213 $as_echo_n "checking if we can lock with hard links... " >&6; }
9216 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9218 ln conftest.a conftest.b 2>&5 || hard_links=no
9219 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9221 $as_echo "$hard_links" >&6; }
9222 if test no = "$hard_links"; then
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9224 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9237 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9240 allow_undefined_flag=
9241 always_export_symbols=no
9243 archive_expsym_cmds=
9244 compiler_needs_object=no
9245 enable_shared_with_static_runtimes=no
9246 export_dynamic_flag_spec=
9247 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9248 hardcode_automatic=no
9250 hardcode_direct_absolute=no
9251 hardcode_libdir_flag_spec=
9252 hardcode_libdir_separator=
9254 hardcode_shlibpath_var=unsupported
9256 link_all_deplibs=unknown
9259 old_archive_from_new_cmds=
9260 old_archive_from_expsyms_cmds=
9261 thread_safe_flag_spec=
9262 whole_archive_flag_spec=
9263 # include_expsyms should be a list of space-separated symbols to be *always*
9264 # included in the symbol list
9266 # exclude_expsyms can be an extended regexp of symbols to exclude
9267 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9268 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9269 # as well as any symbol that contains 'd'.
9270 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9271 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9272 # platforms (ab)use it in PIC code, but their linkers get confused if
9273 # the symbol is explicitly referenced. Since portable code cannot
9274 # rely on this symbol name, it's probably fine to never include it in
9275 # preloaded symbol tables.
9276 # Exclude shared library initialization/finalization symbols.
9277 extract_expsyms_cmds=
9280 cygwin* | mingw* | pw32* | cegcc*)
9281 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9282 # When not using gcc, we currently assume that we are using
9283 # Microsoft Visual C++.
9284 if test yes != "$GCC"; then
9289 # we just hope/assume this is gcc and not c89 (= MSVC++)
9295 linux* | k*bsd*-gnu | gnu*)
9302 # On some targets, GNU ld is compatible enough with the native linker
9303 # that we're better off using the native interface for both.
9304 lt_use_gnu_ld_interface=no
9305 if test yes = "$with_gnu_ld"; then
9308 # The AIX port of GNU ld has always aspired to compatibility
9309 # with the native linker. However, as the warning in the GNU ld
9310 # block says, versions before 2.19.5* couldn't really create working
9311 # shared libraries, regardless of the interface used.
9312 case `$LD -v 2>&1` in
9313 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9314 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9315 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9317 lt_use_gnu_ld_interface=yes
9322 lt_use_gnu_ld_interface=yes
9327 if test yes = "$lt_use_gnu_ld_interface"; then
9328 # If archive_cmds runs LD, not CC, wlarc should be empty
9331 # Set some defaults for GNU ld with shared library support. These
9332 # are reset later if shared libraries are not supported. Putting them
9333 # here allows them to be overridden if necessary.
9334 runpath_var=LD_RUN_PATH
9335 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9336 export_dynamic_flag_spec='$wl--export-dynamic'
9337 # ancient GNU ld didn't support --whole-archive et. al.
9338 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9339 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9341 whole_archive_flag_spec=
9343 supports_anon_versioning=no
9344 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9345 *GNU\ gold*) supports_anon_versioning=yes ;;
9346 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9347 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9348 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9349 *\ 2.11.*) ;; # other 2.11 versions
9350 *) supports_anon_versioning=yes ;;
9353 # See if GNU ld supports shared libraries.
9356 # On AIX/PPC, the GNU linker is very broken
9357 if test ia64 != "$host_cpu"; then
9361 *** Warning: the GNU linker, at least up to release 2.19, is reported
9362 *** to be unable to reliably create shared libraries on AIX.
9363 *** Therefore, libtool is disabling shared libraries support. If you
9364 *** really care for shared libraries, you may want to install binutils
9365 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9366 *** You will then need to restart the configuration process.
9375 # see comment about AmigaOS4 .so support
9376 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9377 archive_expsym_cmds=''
9380 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)'
9381 hardcode_libdir_flag_spec='-L$libdir'
9382 hardcode_minus_L=yes
9388 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9389 allow_undefined_flag=unsupported
9390 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9391 # support --undefined. This deserves some investigation. FIXME
9392 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9398 cygwin* | mingw* | pw32* | cegcc*)
9399 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9400 # as there is no search path for DLLs.
9401 hardcode_libdir_flag_spec='-L$libdir'
9402 export_dynamic_flag_spec='$wl--export-all-symbols'
9403 allow_undefined_flag=unsupported
9404 always_export_symbols=no
9405 enable_shared_with_static_runtimes=yes
9406 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9407 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9409 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9410 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9411 # If the export-symbols file already is a .def file, use it as
9412 # is; otherwise, prepend EXPORTS...
9413 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9414 cp $export_symbols $output_objdir/$soname.def;
9416 echo EXPORTS > $output_objdir/$soname.def;
9417 cat $export_symbols >> $output_objdir/$soname.def;
9419 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9426 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9427 link_all_deplibs=yes
9431 hardcode_libdir_flag_spec='-L$libdir'
9432 hardcode_minus_L=yes
9433 allow_undefined_flag=unsupported
9435 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9436 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9437 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9438 $ECHO EXPORTS >> $output_objdir/$libname.def~
9439 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9440 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9441 emximp -o $lib $output_objdir/$libname.def'
9442 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9443 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9444 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9445 $ECHO EXPORTS >> $output_objdir/$libname.def~
9447 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9448 prefix_cmds="$prefix_cmds -e 1d";
9450 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9451 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9452 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9453 emximp -o $lib $output_objdir/$libname.def'
9454 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9455 enable_shared_with_static_runtimes=yes
9460 hardcode_shlibpath_var=no
9461 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9462 export_dynamic_flag_spec='$wl-E'
9463 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9464 # Instead, shared libraries are loaded at an image base (0x10000000 by
9465 # default) and relocated if they conflict, which is a slow very memory
9466 # consuming and fragmenting process. To avoid this, we pick a random,
9467 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9468 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9469 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9470 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'
9473 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9475 if test linux-dietlibc = "$host_os"; then
9476 case $cc_basename in
9477 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9480 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9481 && test no = "$tmp_diet"
9483 tmp_addflag=' $pic_flag'
9484 tmp_sharedflag='-shared'
9485 case $cc_basename,$host_cpu in
9486 pgcc*) # Portland Group C compiler
9487 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'
9488 tmp_addflag=' $pic_flag'
9490 pgf77* | pgf90* | pgf95* | pgfortran*)
9491 # Portland Group f77 and f90 compilers
9492 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'
9493 tmp_addflag=' $pic_flag -Mnomain' ;;
9494 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9495 tmp_addflag=' -i_dynamic' ;;
9496 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9497 tmp_addflag=' -i_dynamic -nofor_main' ;;
9498 ifc* | ifort*) # Intel Fortran compiler
9499 tmp_addflag=' -nofor_main' ;;
9500 lf95*) # Lahey Fortran 8.1
9501 whole_archive_flag_spec=
9502 tmp_sharedflag='--shared' ;;
9503 nagfor*) # NAGFOR 5.3
9504 tmp_sharedflag='-Wl,-shared' ;;
9505 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9506 tmp_sharedflag='-qmkshrobj'
9508 nvcc*) # Cuda Compiler Driver 2.2
9509 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'
9510 compiler_needs_object=yes
9513 case `$CC -V 2>&1 | sed 5q` in
9514 *Sun\ C*) # Sun C 5.9
9515 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'
9516 compiler_needs_object=yes
9517 tmp_sharedflag='-G' ;;
9518 *Sun\ F*) # Sun Fortran 8.3
9519 tmp_sharedflag='-G' ;;
9521 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9523 if test yes = "$supports_anon_versioning"; then
9524 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9525 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9526 echo "local: *; };" >> $output_objdir/$libname.ver~
9527 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9530 case $cc_basename in
9532 export_dynamic_flag_spec='-rdynamic'
9534 xlf* | bgf* | bgxlf* | mpixlf*)
9535 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9536 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9537 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9538 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9539 if test yes = "$supports_anon_versioning"; then
9540 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9541 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9542 echo "local: *; };" >> $output_objdir/$libname.ver~
9543 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9552 netbsd* | netbsdelf*-gnu)
9553 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9554 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9557 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9558 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9563 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9567 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9568 *** create shared libraries on Solaris systems. Therefore, libtool
9569 *** is disabling shared libraries support. We urge you to upgrade GNU
9570 *** binutils to release 2.9.1 or newer. Another option is to modify
9571 *** your PATH or compiler configuration so that the native linker is
9572 *** used, and then restart.
9575 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9576 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9577 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9583 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9584 case `$LD -v 2>&1` in
9585 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9589 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9590 *** reliably create shared libraries on SCO systems. Therefore, libtool
9591 *** is disabling shared libraries support. We urge you to upgrade GNU
9592 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9593 *** your PATH or compiler configuration so that the native linker is
9594 *** used, and then restart.
9599 # For security reasons, it is highly recommended that you always
9600 # use absolute paths for naming shared libraries, and exclude the
9601 # DT_RUNPATH tag from executables and libraries. But doing so
9602 # requires that you compile everything twice, which is a pain.
9603 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9604 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9605 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9606 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9615 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9618 hardcode_shlibpath_var=no
9622 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9623 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9624 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9631 if test no = "$ld_shlibs"; then
9633 hardcode_libdir_flag_spec=
9634 export_dynamic_flag_spec=
9635 whole_archive_flag_spec=
9638 # PORTME fill in a description of your system's linker (not GNU ld)
9641 allow_undefined_flag=unsupported
9642 always_export_symbols=yes
9643 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'
9644 # Note: this linker hardcodes the directories in LIBPATH if there
9645 # are no directories specified by -L.
9646 hardcode_minus_L=yes
9647 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9648 # Neither direct hardcoding nor static linking is supported with a
9650 hardcode_direct=unsupported
9655 if test ia64 = "$host_cpu"; then
9656 # On IA64, the linker does run time linking by default, so we don't
9657 # have to do anything special.
9658 aix_use_runtimelinking=no
9659 exp_sym_flag='-Bexport'
9662 # If we're using GNU nm, then we don't want the "-C" option.
9663 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9664 # Without the "-l" option, or with the "-B" option, AIX nm treats
9665 # weak defined symbols like other global defined symbols, whereas
9666 # GNU nm marks them as "W".
9667 # While the 'weak' keyword is ignored in the Export File, we need
9668 # it in the Import File for the 'aix-soname' feature, so we have
9669 # to replace the "-B" option with "-P" for AIX nm.
9670 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9671 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9673 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9675 aix_use_runtimelinking=no
9677 # Test if we are trying to use run time linking or normal
9678 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9679 # have runtime linking enabled, and use it for executables.
9680 # For shared libraries, we enable/disable runtime linking
9681 # depending on the kind of the shared library created -
9682 # when "with_aix_soname,aix_use_runtimelinking" is:
9683 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9684 # "aix,yes" lib.so shared, rtl:yes, for executables
9685 # lib.a static archive
9686 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9687 # lib.a(lib.so.V) shared, rtl:no, for executables
9688 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9689 # lib.a(lib.so.V) shared, rtl:no
9690 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9691 # lib.a static archive
9692 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9693 for ld_flag in $LDFLAGS; do
9694 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
9695 aix_use_runtimelinking=yes
9699 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
9700 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9701 # so we don't have lib.a shared libs to link our executables.
9702 # We have to force runtime linking in this case.
9703 aix_use_runtimelinking=yes
9704 LDFLAGS="$LDFLAGS -Wl,-brtl"
9709 exp_sym_flag='-bexport'
9710 no_entry_flag='-bnoentry'
9713 # When large executables or shared objects are built, AIX ld can
9714 # have problems creating the table of contents. If linking a library
9715 # or program results in "error TOC overflow" add -mminimal-toc to
9716 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9717 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9721 hardcode_direct_absolute=yes
9722 hardcode_libdir_separator=':'
9723 link_all_deplibs=yes
9724 file_list_spec='$wl-f,'
9725 case $with_aix_soname,$aix_use_runtimelinking in
9726 aix,*) ;; # traditional, no import file
9727 svr4,* | *,yes) # use import file
9728 # The Import File defines what to hardcode.
9730 hardcode_direct_absolute=no
9734 if test yes = "$GCC"; then
9735 case $host_os in aix4.[012]|aix4.[012].*)
9736 # We only want to do this on AIX 4.2 and lower, the check
9737 # below for broken collect2 doesn't work under 4.3+
9738 collect2name=`$CC -print-prog-name=collect2`
9739 if test -f "$collect2name" &&
9740 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9742 # We have reworked collect2
9745 # We have old collect2
9746 hardcode_direct=unsupported
9747 # It fails to find uninstalled libraries when the uninstalled
9748 # path is not listed in the libpath. Setting hardcode_minus_L
9749 # to unsupported forces relinking
9750 hardcode_minus_L=yes
9751 hardcode_libdir_flag_spec='-L$libdir'
9752 hardcode_libdir_separator=
9756 shared_flag='-shared'
9757 if test yes = "$aix_use_runtimelinking"; then
9758 shared_flag="$shared_flag "'$wl-G'
9760 # Need to ensure runtime linking is disabled for the traditional
9761 # shared library, or the linker may eventually find shared libraries
9762 # /with/ Import File - we do not want to mix them.
9763 shared_flag_aix='-shared'
9764 shared_flag_svr4='-shared $wl-G'
9767 if test ia64 = "$host_cpu"; then
9768 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9769 # chokes on -Wl,-G. The following line is correct:
9772 if test yes = "$aix_use_runtimelinking"; then
9775 shared_flag='$wl-bM:SRE'
9777 shared_flag_aix='$wl-bM:SRE'
9778 shared_flag_svr4='$wl-G'
9782 export_dynamic_flag_spec='$wl-bexpall'
9783 # It seems that -bexpall does not export symbols beginning with
9784 # underscore (_), so it is better to generate a list of symbols to export.
9785 always_export_symbols=yes
9786 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9787 # Warning - without using the other runtime loading flags (-brtl),
9788 # -berok will link without error, but may produce a broken library.
9789 allow_undefined_flag='-berok'
9790 # Determine the default libpath from the value encoded in an
9792 if test set = "${lt_cv_aix_libpath+set}"; then
9793 aix_libpath=$lt_cv_aix_libpath
9795 if ${lt_cv_aix_libpath_+:} false; then :
9796 $as_echo_n "(cached) " >&6
9798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9799 /* end confdefs.h. */
9809 if ac_fn_c_try_link "$LINENO"; then :
9811 lt_aix_libpath_sed='
9812 /Import File Strings/,/^$/ {
9814 s/^0 *\([^ ]*\) *$/\1/
9818 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9819 # Check for a 64-bit object if we didn't find anything.
9820 if test -z "$lt_cv_aix_libpath_"; then
9821 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9824 rm -f core conftest.err conftest.$ac_objext \
9825 conftest$ac_exeext conftest.$ac_ext
9826 if test -z "$lt_cv_aix_libpath_"; then
9827 lt_cv_aix_libpath_=/usr/lib:/lib
9832 aix_libpath=$lt_cv_aix_libpath_
9835 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9836 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
9838 if test ia64 = "$host_cpu"; then
9839 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
9840 allow_undefined_flag="-z nodefs"
9841 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"
9843 # Determine the default libpath from the value encoded in an
9845 if test set = "${lt_cv_aix_libpath+set}"; then
9846 aix_libpath=$lt_cv_aix_libpath
9848 if ${lt_cv_aix_libpath_+:} false; then :
9849 $as_echo_n "(cached) " >&6
9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852 /* end confdefs.h. */
9862 if ac_fn_c_try_link "$LINENO"; then :
9864 lt_aix_libpath_sed='
9865 /Import File Strings/,/^$/ {
9867 s/^0 *\([^ ]*\) *$/\1/
9871 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9872 # Check for a 64-bit object if we didn't find anything.
9873 if test -z "$lt_cv_aix_libpath_"; then
9874 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9877 rm -f core conftest.err conftest.$ac_objext \
9878 conftest$ac_exeext conftest.$ac_ext
9879 if test -z "$lt_cv_aix_libpath_"; then
9880 lt_cv_aix_libpath_=/usr/lib:/lib
9885 aix_libpath=$lt_cv_aix_libpath_
9888 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
9889 # Warning - without using the other run time loading flags,
9890 # -berok will link without error, but may produce a broken library.
9891 no_undefined_flag=' $wl-bernotok'
9892 allow_undefined_flag=' $wl-berok'
9893 if test yes = "$with_gnu_ld"; then
9894 # We only use this code for GNU lds that support --whole-archive.
9895 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
9897 # Exported symbols can be pulled into shared objects from archives
9898 whole_archive_flag_spec='$convenience'
9900 archive_cmds_need_lc=yes
9901 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9902 # -brtl affects multiple linker settings, -berok does not and is overridden later
9903 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9904 if test svr4 != "$with_aix_soname"; then
9905 # This is similar to how AIX traditionally builds its shared libraries.
9906 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9908 if test aix != "$with_aix_soname"; then
9909 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9911 # used by -dlpreopen to get the symbols
9912 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9914 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9922 # see comment about AmigaOS4 .so support
9923 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9924 archive_expsym_cmds=''
9927 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)'
9928 hardcode_libdir_flag_spec='-L$libdir'
9929 hardcode_minus_L=yes
9935 export_dynamic_flag_spec=-rdynamic
9938 cygwin* | mingw* | pw32* | cegcc*)
9939 # When not using gcc, we currently assume that we are using
9940 # Microsoft Visual C++.
9941 # hardcode_libdir_flag_spec is actually meaningless, as there is
9942 # no search path for DLLs.
9943 case $cc_basename in
9946 hardcode_libdir_flag_spec=' '
9947 allow_undefined_flag=unsupported
9948 always_export_symbols=yes
9950 # Tell ltmain to make .lib files, not .a files.
9952 # Tell ltmain to make .dll files, not .so files.
9954 # FIXME: Setting linknames here is a bad hack.
9955 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9956 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9957 cp "$export_symbols" "$output_objdir/$soname.def";
9958 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9960 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9962 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9964 # The linker will not automatically build a static lib if we build a DLL.
9965 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9966 enable_shared_with_static_runtimes=yes
9967 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9968 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9970 old_postinstall_cmds='chmod 644 $oldlib'
9971 postlink_cmds='lt_outputfile="@OUTPUT@"~
9972 lt_tool_outputfile="@TOOL_OUTPUT@"~
9973 case $lt_outputfile in
9976 lt_outputfile=$lt_outputfile.exe
9977 lt_tool_outputfile=$lt_tool_outputfile.exe
9980 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9981 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9982 $RM "$lt_outputfile.manifest";
9986 # Assume MSVC wrapper
9987 hardcode_libdir_flag_spec=' '
9988 allow_undefined_flag=unsupported
9989 # Tell ltmain to make .lib files, not .a files.
9991 # Tell ltmain to make .dll files, not .so files.
9993 # FIXME: Setting linknames here is a bad hack.
9994 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9995 # The linker will automatically build a .lib file if we build a DLL.
9996 old_archive_from_new_cmds='true'
9997 # FIXME: Should let the user specify the lib program.
9998 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9999 enable_shared_with_static_runtimes=yes
10004 darwin* | rhapsody*)
10007 archive_cmds_need_lc=no
10009 hardcode_automatic=yes
10010 hardcode_shlibpath_var=unsupported
10011 if test yes = "$lt_cv_ld_force_load"; then
10012 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\"`'
10015 whole_archive_flag_spec=''
10017 link_all_deplibs=yes
10018 allow_undefined_flag=$_lt_dar_allow_undefined
10019 case $cc_basename in
10020 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10021 *) _lt_dar_can_shared=$GCC ;;
10023 if test yes = "$_lt_dar_can_shared"; then
10024 output_verbose_link_cmd=func_echo_all
10025 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10026 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10027 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"
10028 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"
10037 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10038 hardcode_libdir_flag_spec='-L$libdir'
10039 hardcode_shlibpath_var=no
10042 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10043 # support. Future versions do this automatically, but an explicit c++rt0.o
10044 # does not break anything, and helps significantly (at the cost of a little
10047 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10048 hardcode_libdir_flag_spec='-R$libdir'
10049 hardcode_direct=yes
10050 hardcode_shlibpath_var=no
10053 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10055 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10056 hardcode_direct=yes
10057 hardcode_minus_L=yes
10058 hardcode_shlibpath_var=no
10061 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10062 freebsd* | dragonfly*)
10063 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10064 hardcode_libdir_flag_spec='-R$libdir'
10065 hardcode_direct=yes
10066 hardcode_shlibpath_var=no
10070 if test yes = "$GCC"; then
10071 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10073 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10075 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10076 hardcode_libdir_separator=:
10077 hardcode_direct=yes
10079 # hardcode_minus_L: Not really in the search PATH,
10080 # but as the default location of the library.
10081 hardcode_minus_L=yes
10082 export_dynamic_flag_spec='$wl-E'
10086 if test yes,no = "$GCC,$with_gnu_ld"; then
10087 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10089 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10091 if test no = "$with_gnu_ld"; then
10092 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10093 hardcode_libdir_separator=:
10094 hardcode_direct=yes
10095 hardcode_direct_absolute=yes
10096 export_dynamic_flag_spec='$wl-E'
10097 # hardcode_minus_L: Not really in the search PATH,
10098 # but as the default location of the library.
10099 hardcode_minus_L=yes
10104 if test yes,no = "$GCC,$with_gnu_ld"; then
10107 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10110 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10113 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10119 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10122 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10126 # Older versions of the 11.00 compiler do not understand -b yet
10127 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10129 $as_echo_n "checking if $CC understands -b... " >&6; }
10130 if ${lt_cv_prog_compiler__b+:} false; then :
10131 $as_echo_n "(cached) " >&6
10133 lt_cv_prog_compiler__b=no
10134 save_LDFLAGS=$LDFLAGS
10135 LDFLAGS="$LDFLAGS -b"
10136 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10137 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10138 # The linker can only warn and ignore the option if not recognized
10139 # So say no if there are warnings
10140 if test -s conftest.err; then
10141 # Append any errors to the config.log.
10142 cat conftest.err 1>&5
10143 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10144 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10145 if diff conftest.exp conftest.er2 >/dev/null; then
10146 lt_cv_prog_compiler__b=yes
10149 lt_cv_prog_compiler__b=yes
10153 LDFLAGS=$save_LDFLAGS
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10157 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10159 if test yes = "$lt_cv_prog_compiler__b"; then
10160 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10162 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10168 if test no = "$with_gnu_ld"; then
10169 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10170 hardcode_libdir_separator=:
10175 hardcode_shlibpath_var=no
10178 hardcode_direct=yes
10179 hardcode_direct_absolute=yes
10180 export_dynamic_flag_spec='$wl-E'
10182 # hardcode_minus_L: Not really in the search PATH,
10183 # but as the default location of the library.
10184 hardcode_minus_L=yes
10190 irix5* | irix6* | nonstopux*)
10191 if test yes = "$GCC"; then
10192 archive_cmds='$CC -shared $pic_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'
10193 # Try to use the -exported_symbol ld option, if it does not
10194 # work, assume that -exports_file does not work either and
10195 # implicitly export all symbols.
10196 # This should be the same for all languages, so no per-tag cache variable.
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10198 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10199 if ${lt_cv_irix_exported_symbol+:} false; then :
10200 $as_echo_n "(cached) " >&6
10202 save_LDFLAGS=$LDFLAGS
10203 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10205 /* end confdefs.h. */
10206 int foo (void) { return 0; }
10208 if ac_fn_c_try_link "$LINENO"; then :
10209 lt_cv_irix_exported_symbol=yes
10211 lt_cv_irix_exported_symbol=no
10213 rm -f core conftest.err conftest.$ac_objext \
10214 conftest$ac_exeext conftest.$ac_ext
10215 LDFLAGS=$save_LDFLAGS
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10218 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10219 if test yes = "$lt_cv_irix_exported_symbol"; then
10220 archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib'
10222 link_all_deplibs=no
10224 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'
10225 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'
10227 archive_cmds_need_lc='no'
10228 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10229 hardcode_libdir_separator=:
10231 link_all_deplibs=yes
10235 case $cc_basename in
10237 # Fabrice Bellard et al's Tiny C Compiler
10239 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10244 netbsd* | netbsdelf*-gnu)
10245 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10246 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10248 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10250 hardcode_libdir_flag_spec='-R$libdir'
10251 hardcode_direct=yes
10252 hardcode_shlibpath_var=no
10256 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10257 hardcode_direct=yes
10258 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10259 hardcode_libdir_separator=:
10260 hardcode_shlibpath_var=no
10266 openbsd* | bitrig*)
10267 if test -f /usr/libexec/ld.so; then
10268 hardcode_direct=yes
10269 hardcode_shlibpath_var=no
10270 hardcode_direct_absolute=yes
10271 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10272 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10273 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10274 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10275 export_dynamic_flag_spec='$wl-E'
10277 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10278 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10286 hardcode_libdir_flag_spec='-L$libdir'
10287 hardcode_minus_L=yes
10288 allow_undefined_flag=unsupported
10290 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10291 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10292 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10293 $ECHO EXPORTS >> $output_objdir/$libname.def~
10294 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10295 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10296 emximp -o $lib $output_objdir/$libname.def'
10297 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10298 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10299 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10300 $ECHO EXPORTS >> $output_objdir/$libname.def~
10301 prefix_cmds="$SED"~
10302 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10303 prefix_cmds="$prefix_cmds -e 1d";
10305 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10306 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10307 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10308 emximp -o $lib $output_objdir/$libname.def'
10309 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10310 enable_shared_with_static_runtimes=yes
10314 if test yes = "$GCC"; then
10315 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10316 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'
10318 allow_undefined_flag=' -expect_unresolved \*'
10319 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'
10321 archive_cmds_need_lc='no'
10322 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10323 hardcode_libdir_separator=:
10326 osf4* | osf5*) # as osf3* with the addition of -msym flag
10327 if test yes = "$GCC"; then
10328 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10329 archive_cmds='$CC -shared$allow_undefined_flag $pic_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'
10330 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10332 allow_undefined_flag=' -expect_unresolved \*'
10333 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'
10334 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~
10335 $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'
10337 # Both c and cxx compiler support -rpath directly
10338 hardcode_libdir_flag_spec='-rpath $libdir'
10340 archive_cmds_need_lc='no'
10341 hardcode_libdir_separator=:
10345 no_undefined_flag=' -z defs'
10346 if test yes = "$GCC"; then
10348 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10349 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10350 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10352 case `$CC -V 2>&1` in
10355 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10356 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10357 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10361 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10362 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10363 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10367 hardcode_libdir_flag_spec='-R$libdir'
10368 hardcode_shlibpath_var=no
10370 solaris2.[0-5] | solaris2.[0-5].*) ;;
10372 # The compiler driver will combine and reorder linker options,
10373 # but understands '-z linker_flag'. GCC discards it without '$wl',
10374 # but is careful enough not to reorder.
10375 # Supported since Solaris 2.6 (maybe 2.5.1?)
10376 if test yes = "$GCC"; then
10377 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10379 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10383 link_all_deplibs=yes
10387 if test sequent = "$host_vendor"; then
10388 # Use $CC to link under sequent, because it throws in some extra .o
10389 # files that make .init and .fini sections work.
10390 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10392 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10394 hardcode_libdir_flag_spec='-L$libdir'
10395 hardcode_direct=yes
10396 hardcode_minus_L=yes
10397 hardcode_shlibpath_var=no
10401 case $host_vendor in
10403 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10404 hardcode_direct=yes # is this really true???
10407 ## LD is ld it makes a PLAMLIB
10408 ## CC just makes a GrossModule.
10409 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10410 reload_cmds='$CC -r -o $output$reload_objs'
10414 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10415 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10418 runpath_var='LD_RUN_PATH'
10419 hardcode_shlibpath_var=no
10423 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10424 hardcode_shlibpath_var=no
10425 export_dynamic_flag_spec='-Bexport'
10429 if test -d /usr/nec; then
10430 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10431 hardcode_shlibpath_var=no
10432 runpath_var=LD_RUN_PATH
10433 hardcode_runpath_var=yes
10438 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10439 no_undefined_flag='$wl-z,text'
10440 archive_cmds_need_lc=no
10441 hardcode_shlibpath_var=no
10442 runpath_var='LD_RUN_PATH'
10444 if test yes = "$GCC"; then
10445 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10446 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10448 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10449 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10453 sysv5* | sco3.2v5* | sco5v6*)
10454 # Note: We CANNOT use -z defs as we might desire, because we do not
10455 # link with -lc, and that would cause any symbols used from libc to
10456 # always be unresolved, which means just about no library would
10457 # ever link correctly. If we're not using GNU ld we use -z text
10458 # though, which does catch some bad symbols but isn't as heavy-handed
10460 no_undefined_flag='$wl-z,text'
10461 allow_undefined_flag='$wl-z,nodefs'
10462 archive_cmds_need_lc=no
10463 hardcode_shlibpath_var=no
10464 hardcode_libdir_flag_spec='$wl-R,$libdir'
10465 hardcode_libdir_separator=':'
10466 link_all_deplibs=yes
10467 export_dynamic_flag_spec='$wl-Bexport'
10468 runpath_var='LD_RUN_PATH'
10470 if test yes = "$GCC"; then
10471 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10472 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10474 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10475 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10480 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10481 hardcode_libdir_flag_spec='-L$libdir'
10482 hardcode_shlibpath_var=no
10490 if test sni = "$host_vendor"; then
10492 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10493 export_dynamic_flag_spec='$wl-Blargedynsym'
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10500 $as_echo "$ld_shlibs" >&6; }
10501 test no = "$ld_shlibs" && can_build_shared=no
10503 with_gnu_ld=$with_gnu_ld
10520 # Do we need to explicitly link libc?
10522 case "x$archive_cmds_need_lc" in
10524 # Assume -lc should be added
10525 archive_cmds_need_lc=yes
10527 if test yes,yes = "$GCC,$enable_shared"; then
10528 case $archive_cmds in
10530 # FIXME: we may have to deal with multi-command sequences.
10533 # Test whether the compiler implicitly links with -lc since on some
10534 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10535 # to ld, don't add -lc before -lgcc.
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10537 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10538 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10539 $as_echo_n "(cached) " >&6
10542 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10545 (eval $ac_compile) 2>&5
10547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10548 test $ac_status = 0; } 2>conftest.err; then
10551 libobjs=conftest.$ac_objext
10553 wl=$lt_prog_compiler_wl
10554 pic_flag=$lt_prog_compiler_pic
10560 lt_save_allow_undefined_flag=$allow_undefined_flag
10561 allow_undefined_flag=
10562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10563 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10566 test $ac_status = 0; }
10568 lt_cv_archive_cmds_need_lc=no
10570 lt_cv_archive_cmds_need_lc=yes
10572 allow_undefined_flag=$lt_save_allow_undefined_flag
10574 cat conftest.err 1>&5
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10580 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10581 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10740 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10742 if test yes = "$GCC"; then
10744 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
10745 *) lt_awk_arg='/^libraries:/' ;;
10748 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
10749 *) lt_sed_strip_eq='s|=/|/|g' ;;
10751 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10752 case $lt_search_path_spec in
10754 # if the path contains ";" then we assume it to be the separator
10755 # otherwise default to the standard path separator (i.e. ":") - it is
10756 # assumed that no part of a normal pathname contains ";" but that should
10757 # okay in the real world where ";" in dirpaths is itself problematic.
10758 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10761 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10764 # Ok, now we have the path, separated by spaces, we can step through it
10765 # and add multilib dir if necessary...
10766 lt_tmp_lt_search_path_spec=
10767 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10768 # ...but if some path component already ends with the multilib dir we assume
10769 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10770 case "$lt_multi_os_dir; $lt_search_path_spec " in
10771 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
10775 for lt_sys_path in $lt_search_path_spec; do
10776 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10777 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10778 elif test -n "$lt_multi_os_dir"; then
10779 test -d "$lt_sys_path" && \
10780 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10783 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10784 BEGIN {RS = " "; FS = "/|\n";} {
10787 for (lt_i = NF; lt_i > 0; lt_i--) {
10788 if ($lt_i != "" && $lt_i != ".") {
10789 if ($lt_i == "..") {
10792 if (lt_count == 0) {
10793 lt_foo = "/" $lt_i lt_foo;
10800 if (lt_foo != "") { lt_freq[lt_foo]++; }
10801 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10803 # AWK program above erroneously prepends '/' to C:/dos/paths
10806 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10807 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10809 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10811 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10813 library_names_spec=
10814 libname_spec='lib$name'
10818 postuninstall_cmds=
10822 shlibpath_overrides_runpath=unknown
10824 dynamic_linker="$host_os ld.so"
10825 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10826 need_lib_prefix=unknown
10827 hardcode_into_libs=no
10829 # when you set need_version to no, make sure it does not cause -set_version
10830 # flags to be left without arguments
10831 need_version=unknown
10837 version_type=linux # correct to gnu/linux during the next big refactor
10838 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
10839 shlibpath_var=LIBPATH
10841 # AIX 3 has no versioning support, so we append a major version to the name.
10842 soname_spec='$libname$release$shared_ext$major'
10846 version_type=linux # correct to gnu/linux during the next big refactor
10849 hardcode_into_libs=yes
10850 if test ia64 = "$host_cpu"; then
10851 # AIX 5 supports IA64
10852 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10853 shlibpath_var=LD_LIBRARY_PATH
10855 # With GCC up to 2.95.x, collect2 would create an import file
10856 # for dependence libraries. The import file would start with
10857 # the line '#! .'. This would cause the generated library to
10858 # depend on '.', always an invalid library. This was fixed in
10859 # development snapshots of GCC prior to 3.0.
10861 aix4 | aix4.[01] | aix4.[01].*)
10862 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10864 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
10867 can_build_shared=no
10871 # Using Import Files as archive members, it is possible to support
10872 # filename-based versioning of shared library archives on AIX. While
10873 # this would work for both with and without runtime linking, it will
10874 # prevent static linking of such archives. So we do filename-based
10875 # shared library versioning with .so extension only, which is used
10876 # when both runtime linking and shared linking is enabled.
10877 # Unfortunately, runtime linking may impact performance, so we do
10878 # not want this to be the default eventually. Also, we use the
10879 # versioned .so libs for executables only if there is the -brtl
10880 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10881 # To allow for filename-based versioning support, we need to create
10882 # libNAME.so.V as an archive file, containing:
10883 # *) an Import File, referring to the versioned filename of the
10884 # archive as well as the shared archive member, telling the
10885 # bitwidth (32 or 64) of that shared object, and providing the
10886 # list of exported symbols of that shared object, eventually
10887 # decorated with the 'weak' keyword
10888 # *) the shared object with the F_LOADONLY flag set, to really avoid
10889 # it being seen by the linker.
10890 # At run time we better use the real file rather than another symlink,
10891 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10893 case $with_aix_soname,$aix_use_runtimelinking in
10894 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10895 # soname into executable. Probably we can add versioning support to
10896 # collect2, so additional links can be useful in future.
10897 aix,yes) # traditional libtool
10898 dynamic_linker='AIX unversionable lib.so'
10899 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10900 # instead of lib<name>.a to let people know that these are not
10901 # typical AIX shared libraries.
10902 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10904 aix,no) # traditional AIX only
10905 dynamic_linker='AIX lib.a(lib.so.V)'
10906 # We preserve .a as extension for shared libraries through AIX4.2
10907 # and later when we are not doing run time linking.
10908 library_names_spec='$libname$release.a $libname.a'
10909 soname_spec='$libname$release$shared_ext$major'
10911 svr4,*) # full svr4 only
10912 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
10913 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10914 # We do not specify a path in Import Files, so LIBPATH fires.
10915 shlibpath_overrides_runpath=yes
10917 *,yes) # both, prefer svr4
10918 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10919 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
10920 # unpreferred sharedlib libNAME.a needs extra handling
10921 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10922 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10923 # We do not specify a path in Import Files, so LIBPATH fires.
10924 shlibpath_overrides_runpath=yes
10926 *,no) # both, prefer aix
10927 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10928 library_names_spec='$libname$release.a $libname.a'
10929 soname_spec='$libname$release$shared_ext$major'
10930 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10931 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10932 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10935 shlibpath_var=LIBPATH
10942 # Since July 2007 AmigaOS4 officially supports .so libraries.
10943 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10944 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10947 library_names_spec='$libname.ixlibrary $libname.a'
10948 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10949 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10955 library_names_spec='$libname$shared_ext'
10956 dynamic_linker="$host_os ld.so"
10957 shlibpath_var=LIBRARY_PATH
10961 version_type=linux # correct to gnu/linux during the next big refactor
10963 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10964 soname_spec='$libname$release$shared_ext$major'
10965 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10966 shlibpath_var=LD_LIBRARY_PATH
10967 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10968 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10969 # the default ld.so.conf also contains /usr/contrib/lib and
10970 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10971 # libtool to hard-code these into programs
10974 cygwin* | mingw* | pw32* | cegcc*)
10975 version_type=windows
10980 case $GCC,$cc_basename in
10983 library_names_spec='$libname.dll.a'
10984 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10985 postinstall_cmds='base_file=`basename \$file`~
10986 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10987 dldir=$destdir/`dirname \$dlpath`~
10988 test -d \$dldir || mkdir -p \$dldir~
10989 $install_prog $dir/$dlname \$dldir/$dlname~
10990 chmod a+x \$dldir/$dlname~
10991 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10992 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10994 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10995 dlpath=$dir/\$dldll~
10997 shlibpath_overrides_runpath=yes
11001 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11002 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11004 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11007 # MinGW DLLs use traditional 'lib' prefix
11008 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11011 # pw32 DLLs use 'pw' prefix rather than 'lib'
11012 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11015 dynamic_linker='Win32 ld.exe'
11020 libname_spec='$name'
11021 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11022 library_names_spec='$libname.dll.lib'
11026 sys_lib_search_path_spec=
11029 for lt_path in $LIB
11032 # Let DOS variable expansion print the short 8.3 style file name.
11033 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11034 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11037 # Convert to MSYS style.
11038 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11041 # Convert to unix form, then to dos form, then back to unix form
11042 # but this time dos style (no spaces!) so that the unix form looks
11043 # like /cygdrive/c/PROGRA~1:/cygdr...
11044 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11045 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11046 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11049 sys_lib_search_path_spec=$LIB
11050 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11051 # It is most probably a Windows format PATH.
11052 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11054 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11056 # FIXME: find the short name or the path components, as spaces are
11057 # common. (e.g. "Program Files" -> "PROGRA~1")
11061 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11062 postinstall_cmds='base_file=`basename \$file`~
11063 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11064 dldir=$destdir/`dirname \$dlpath`~
11065 test -d \$dldir || mkdir -p \$dldir~
11066 $install_prog $dir/$dlname \$dldir/$dlname'
11067 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11068 dlpath=$dir/\$dldll~
11070 shlibpath_overrides_runpath=yes
11071 dynamic_linker='Win32 link.exe'
11075 # Assume MSVC wrapper
11076 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11077 dynamic_linker='Win32 ld.exe'
11080 # FIXME: first we should search . and the directory the executable is in
11084 darwin* | rhapsody*)
11085 dynamic_linker="$host_os dyld"
11086 version_type=darwin
11089 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11090 soname_spec='$libname$release$major$shared_ext'
11091 shlibpath_overrides_runpath=yes
11092 shlibpath_var=DYLD_LIBRARY_PATH
11093 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11095 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11096 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11100 version_type=linux # correct to gnu/linux during the next big refactor
11103 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11104 soname_spec='$libname$release$shared_ext$major'
11105 shlibpath_var=LD_LIBRARY_PATH
11108 freebsd* | dragonfly*)
11109 # DragonFly does not have aout. When/if they implement a new
11110 # versioning mechanism, adjust this.
11111 if test -x /usr/bin/objformat; then
11112 objformat=`/usr/bin/objformat`
11115 freebsd[23].*) objformat=aout ;;
11116 *) objformat=elf ;;
11119 version_type=freebsd-$objformat
11120 case $version_type in
11122 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11123 soname_spec='$libname$release$shared_ext$major'
11128 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11132 shlibpath_var=LD_LIBRARY_PATH
11135 shlibpath_overrides_runpath=yes
11137 freebsd3.[01]* | freebsdelf3.[01]*)
11138 shlibpath_overrides_runpath=yes
11139 hardcode_into_libs=yes
11141 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11142 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11143 shlibpath_overrides_runpath=no
11144 hardcode_into_libs=yes
11146 *) # from 4.6 on, and DragonFly
11147 shlibpath_overrides_runpath=yes
11148 hardcode_into_libs=yes
11154 version_type=linux # correct to gnu/linux during the next big refactor
11157 dynamic_linker="$host_os runtime_loader"
11158 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11159 soname_spec='$libname$release$shared_ext$major'
11160 shlibpath_var=LIBRARY_PATH
11161 shlibpath_overrides_runpath=no
11162 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11163 hardcode_into_libs=yes
11166 hpux9* | hpux10* | hpux11*)
11167 # Give a soname corresponding to the major version so that dld.sl refuses to
11168 # link against other versions.
11175 hardcode_into_libs=yes
11176 dynamic_linker="$host_os dld.so"
11177 shlibpath_var=LD_LIBRARY_PATH
11178 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11179 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11180 soname_spec='$libname$release$shared_ext$major'
11181 if test 32 = "$HPUX_IA64_MODE"; then
11182 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11183 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11185 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11186 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11191 hardcode_into_libs=yes
11192 dynamic_linker="$host_os dld.sl"
11193 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11194 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11195 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11196 soname_spec='$libname$release$shared_ext$major'
11197 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11198 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11202 dynamic_linker="$host_os dld.sl"
11203 shlibpath_var=SHLIB_PATH
11204 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11205 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11206 soname_spec='$libname$release$shared_ext$major'
11209 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11210 postinstall_cmds='chmod 555 $lib'
11211 # or fails outright, so override atomically:
11212 install_override_mode=555
11216 version_type=linux # correct to gnu/linux during the next big refactor
11219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11220 soname_spec='$libname$release$shared_ext$major'
11221 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11222 shlibpath_var=LD_LIBRARY_PATH
11223 shlibpath_overrides_runpath=no
11224 hardcode_into_libs=yes
11227 irix5* | irix6* | nonstopux*)
11229 nonstopux*) version_type=nonstopux ;;
11231 if test yes = "$lt_cv_prog_gnu_ld"; then
11232 version_type=linux # correct to gnu/linux during the next big refactor
11239 soname_spec='$libname$release$shared_ext$major'
11240 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11242 irix5* | nonstopux*)
11243 libsuff= shlibsuff=
11246 case $LD in # libtool.m4 will add one of these switches to LD
11247 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11248 libsuff= shlibsuff= libmagic=32-bit;;
11249 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11250 libsuff=32 shlibsuff=N32 libmagic=N32;;
11251 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11252 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11253 *) libsuff= shlibsuff= libmagic=never-match;;
11257 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11258 shlibpath_overrides_runpath=no
11259 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11260 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11261 hardcode_into_libs=yes
11264 # No shared lib support for Linux oldld, aout, or coff.
11265 linux*oldld* | linux*aout* | linux*coff*)
11270 version_type=none # Android doesn't support versioned libraries.
11273 library_names_spec='$libname$release$shared_ext'
11274 soname_spec='$libname$release$shared_ext'
11276 shlibpath_var=LD_LIBRARY_PATH
11277 shlibpath_overrides_runpath=yes
11279 # This implies no fast_install, which is unacceptable.
11280 # Some rework will be needed to allow for fast_install
11281 # before this can be enabled.
11282 hardcode_into_libs=yes
11284 dynamic_linker='Android linker'
11285 # Don't embed -rpath directories since the linker doesn't support them.
11286 hardcode_libdir_flag_spec='-L$libdir'
11289 # This must be glibc/ELF.
11290 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11291 version_type=linux # correct to gnu/linux during the next big refactor
11294 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11295 soname_spec='$libname$release$shared_ext$major'
11296 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11297 shlibpath_var=LD_LIBRARY_PATH
11298 shlibpath_overrides_runpath=no
11300 # Some binutils ld are patched to set DT_RUNPATH
11301 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11302 $as_echo_n "(cached) " >&6
11304 lt_cv_shlibpath_overrides_runpath=no
11305 save_LDFLAGS=$LDFLAGS
11306 save_libdir=$libdir
11307 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11308 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11310 /* end confdefs.h. */
11320 if ac_fn_c_try_link "$LINENO"; then :
11321 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11322 lt_cv_shlibpath_overrides_runpath=yes
11325 rm -f core conftest.err conftest.$ac_objext \
11326 conftest$ac_exeext conftest.$ac_ext
11327 LDFLAGS=$save_LDFLAGS
11328 libdir=$save_libdir
11332 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11334 # This implies no fast_install, which is unacceptable.
11335 # Some rework will be needed to allow for fast_install
11336 # before this can be enabled.
11337 hardcode_into_libs=yes
11339 # Ideally, we could use ldconfig to report *all* directores which are
11340 # searched for libraries, however this is still not possible. Aside from not
11341 # being certain /sbin/ldconfig is available, command
11342 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11343 # even though it is searched at run-time. Try to do the best guess by
11344 # appending ld.so.conf contents (and includes) to the search path.
11345 if test -f /etc/ld.so.conf; then
11346 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' ' '`
11347 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11350 # We used to test for /lib/ld.so.1 and disable shared libraries on
11351 # powerpc, because MkLinux only supported shared libraries with the
11352 # GNU dynamic linker. Since this was broken with cross compilers,
11353 # most powerpc-linux boxes support dynamic linking these days and
11354 # people can always --disable-shared, the test was removed, and we
11355 # assume the GNU/Linux dynamic linker is in use.
11356 dynamic_linker='GNU/Linux ld.so'
11363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11364 soname_spec='${libname}${release}${shared_ext}$major'
11365 shlibpath_var=LD_LIBRARY_PATH
11366 shlibpath_overrides_runpath=no
11367 hardcode_into_libs=yes
11368 dynamic_linker='NetBSD ld.elf_so'
11375 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11376 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11378 dynamic_linker='NetBSD (a.out) ld.so'
11380 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11381 soname_spec='$libname$release$shared_ext$major'
11382 dynamic_linker='NetBSD ld.elf_so'
11384 shlibpath_var=LD_LIBRARY_PATH
11385 shlibpath_overrides_runpath=yes
11386 hardcode_into_libs=yes
11390 version_type=linux # correct to gnu/linux during the next big refactor
11391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11392 shlibpath_var=LD_LIBRARY_PATH
11393 shlibpath_overrides_runpath=yes
11400 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11401 soname_spec='$libname$release$shared_ext$major'
11402 shlibpath_var=LD_LIBRARY_PATH
11403 shlibpath_overrides_runpath=no
11404 hardcode_into_libs=yes
11405 dynamic_linker='ldqnx.so'
11408 openbsd* | bitrig*)
11410 sys_lib_dlsearch_path_spec=/usr/lib
11412 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11417 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11419 shlibpath_var=LD_LIBRARY_PATH
11420 shlibpath_overrides_runpath=yes
11424 libname_spec='$name'
11425 version_type=windows
11429 # OS/2 can only load a DLL with a base name of 8 characters or less.
11430 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11431 v=$($ECHO $release$versuffix | tr -d .-);
11432 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11433 $ECHO $n$v`$shared_ext'
11434 library_names_spec='${libname}_dll.$libext'
11435 dynamic_linker='OS/2 ld.exe'
11436 shlibpath_var=BEGINLIBPATH
11437 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11438 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11439 postinstall_cmds='base_file=`basename \$file`~
11440 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11441 dldir=$destdir/`dirname \$dlpath`~
11442 test -d \$dldir || mkdir -p \$dldir~
11443 $install_prog $dir/$dlname \$dldir/$dlname~
11444 chmod a+x \$dldir/$dlname~
11445 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11446 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11448 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11449 dlpath=$dir/\$dldll~
11453 osf3* | osf4* | osf5*)
11457 soname_spec='$libname$release$shared_ext$major'
11458 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11459 shlibpath_var=LD_LIBRARY_PATH
11460 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11461 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11469 version_type=linux # correct to gnu/linux during the next big refactor
11472 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11473 soname_spec='$libname$release$shared_ext$major'
11474 shlibpath_var=LD_LIBRARY_PATH
11475 shlibpath_overrides_runpath=yes
11476 hardcode_into_libs=yes
11477 # ldd complains unless libraries are executable
11478 postinstall_cmds='chmod +x $lib'
11483 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11484 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11485 shlibpath_var=LD_LIBRARY_PATH
11486 shlibpath_overrides_runpath=yes
11487 if test yes = "$with_gnu_ld"; then
11494 version_type=linux # correct to gnu/linux during the next big refactor
11495 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11496 soname_spec='$libname$release$shared_ext$major'
11497 shlibpath_var=LD_LIBRARY_PATH
11498 case $host_vendor in
11500 shlibpath_overrides_runpath=no
11502 runpath_var=LD_RUN_PATH
11510 shlibpath_overrides_runpath=no
11511 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11517 if test -d /usr/nec; then
11518 version_type=linux # correct to gnu/linux during the next big refactor
11519 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11520 soname_spec='$libname$shared_ext.$major'
11521 shlibpath_var=LD_LIBRARY_PATH
11525 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11529 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11530 soname_spec='$libname$release$shared_ext$major'
11531 shlibpath_var=LD_LIBRARY_PATH
11532 shlibpath_overrides_runpath=yes
11533 hardcode_into_libs=yes
11534 if test yes = "$with_gnu_ld"; then
11535 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11537 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11540 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11544 sys_lib_dlsearch_path_spec='/usr/lib'
11548 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11549 version_type=linux # correct to gnu/linux during the next big refactor
11552 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11553 shlibpath_var=LD_LIBRARY_PATH
11554 shlibpath_overrides_runpath=no
11555 hardcode_into_libs=yes
11559 version_type=linux # correct to gnu/linux during the next big refactor
11560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11561 soname_spec='$libname$release$shared_ext$major'
11562 shlibpath_var=LD_LIBRARY_PATH
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11570 $as_echo "$dynamic_linker" >&6; }
11571 test no = "$dynamic_linker" && can_build_shared=no
11573 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11574 if test yes = "$GCC"; then
11575 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11578 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11579 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
11582 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11583 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
11586 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11587 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
11589 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11590 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
11592 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11593 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11692 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11694 if test -n "$hardcode_libdir_flag_spec" ||
11695 test -n "$runpath_var" ||
11696 test yes = "$hardcode_automatic"; then
11698 # We can hardcode non-existent directories.
11699 if test no != "$hardcode_direct" &&
11700 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11701 # have to relink, otherwise we might link with an installed library
11702 # when we should be linking with a yet-to-be-installed one
11703 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11704 test no != "$hardcode_minus_L"; then
11705 # Linking always hardcodes the temporary library directory.
11706 hardcode_action=relink
11708 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11709 hardcode_action=immediate
11712 # We cannot hardcode anything, or else we can only hardcode existing
11714 hardcode_action=unsupported
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11717 $as_echo "$hardcode_action" >&6; }
11719 if test relink = "$hardcode_action" ||
11720 test yes = "$inherit_rpath"; then
11721 # Fast installation is not supported
11722 enable_fast_install=no
11723 elif test yes = "$shlibpath_overrides_runpath" ||
11724 test no = "$enable_shared"; then
11725 # Fast installation is not necessary
11726 enable_fast_install=needless
11734 if test yes != "$enable_dlopen"; then
11735 enable_dlopen=unknown
11736 enable_dlopen_self=unknown
11737 enable_dlopen_self_static=unknown
11744 lt_cv_dlopen=load_add_on
11746 lt_cv_dlopen_self=yes
11749 mingw* | pw32* | cegcc*)
11750 lt_cv_dlopen=LoadLibrary
11755 lt_cv_dlopen=dlopen
11760 # if libdl is installed we need to link against it
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11762 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11763 if ${ac_cv_lib_dl_dlopen+:} false; then :
11764 $as_echo_n "(cached) " >&6
11766 ac_check_lib_save_LIBS=$LIBS
11768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11769 /* end confdefs.h. */
11771 /* Override any GCC internal prototype to avoid an error.
11772 Use char because int might match the return type of a GCC
11773 builtin and then its argument prototype would still apply. */
11786 if ac_fn_c_try_link "$LINENO"; then :
11787 ac_cv_lib_dl_dlopen=yes
11789 ac_cv_lib_dl_dlopen=no
11791 rm -f core conftest.err conftest.$ac_objext \
11792 conftest$ac_exeext conftest.$ac_ext
11793 LIBS=$ac_check_lib_save_LIBS
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11796 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11797 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11798 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11803 lt_cv_dlopen_self=yes
11810 # Don't try to run any link tests for TPF. We know it's impossible
11811 # because TPF is a cross-compiler, and we know how we open DSOs.
11812 lt_cv_dlopen=dlopen
11814 lt_cv_dlopen_self=no
11818 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11819 if test "x$ac_cv_func_shl_load" = xyes; then :
11820 lt_cv_dlopen=shl_load
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11823 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11824 if ${ac_cv_lib_dld_shl_load+:} false; then :
11825 $as_echo_n "(cached) " >&6
11827 ac_check_lib_save_LIBS=$LIBS
11829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11830 /* end confdefs.h. */
11832 /* Override any GCC internal prototype to avoid an error.
11833 Use char because int might match the return type of a GCC
11834 builtin and then its argument prototype would still apply. */
11842 return shl_load ();
11847 if ac_fn_c_try_link "$LINENO"; then :
11848 ac_cv_lib_dld_shl_load=yes
11850 ac_cv_lib_dld_shl_load=no
11852 rm -f core conftest.err conftest.$ac_objext \
11853 conftest$ac_exeext conftest.$ac_ext
11854 LIBS=$ac_check_lib_save_LIBS
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11857 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11858 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11859 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
11861 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11862 if test "x$ac_cv_func_dlopen" = xyes; then :
11863 lt_cv_dlopen=dlopen
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11866 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11867 if ${ac_cv_lib_dl_dlopen+:} false; then :
11868 $as_echo_n "(cached) " >&6
11870 ac_check_lib_save_LIBS=$LIBS
11872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11873 /* end confdefs.h. */
11875 /* Override any GCC internal prototype to avoid an error.
11876 Use char because int might match the return type of a GCC
11877 builtin and then its argument prototype would still apply. */
11890 if ac_fn_c_try_link "$LINENO"; then :
11891 ac_cv_lib_dl_dlopen=yes
11893 ac_cv_lib_dl_dlopen=no
11895 rm -f core conftest.err conftest.$ac_objext \
11896 conftest$ac_exeext conftest.$ac_ext
11897 LIBS=$ac_check_lib_save_LIBS
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11900 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11901 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11902 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11905 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11906 if ${ac_cv_lib_svld_dlopen+:} false; then :
11907 $as_echo_n "(cached) " >&6
11909 ac_check_lib_save_LIBS=$LIBS
11910 LIBS="-lsvld $LIBS"
11911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11912 /* end confdefs.h. */
11914 /* Override any GCC internal prototype to avoid an error.
11915 Use char because int might match the return type of a GCC
11916 builtin and then its argument prototype would still apply. */
11929 if ac_fn_c_try_link "$LINENO"; then :
11930 ac_cv_lib_svld_dlopen=yes
11932 ac_cv_lib_svld_dlopen=no
11934 rm -f core conftest.err conftest.$ac_objext \
11935 conftest$ac_exeext conftest.$ac_ext
11936 LIBS=$ac_check_lib_save_LIBS
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11939 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11940 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11941 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11944 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11945 if ${ac_cv_lib_dld_dld_link+:} false; then :
11946 $as_echo_n "(cached) " >&6
11948 ac_check_lib_save_LIBS=$LIBS
11950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11951 /* end confdefs.h. */
11953 /* Override any GCC internal prototype to avoid an error.
11954 Use char because int might match the return type of a GCC
11955 builtin and then its argument prototype would still apply. */
11963 return dld_link ();
11968 if ac_fn_c_try_link "$LINENO"; then :
11969 ac_cv_lib_dld_dld_link=yes
11971 ac_cv_lib_dld_dld_link=no
11973 rm -f core conftest.err conftest.$ac_objext \
11974 conftest$ac_exeext conftest.$ac_ext
11975 LIBS=$ac_check_lib_save_LIBS
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11978 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11979 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11980 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12001 if test no = "$lt_cv_dlopen"; then
12007 case $lt_cv_dlopen in
12009 save_CPPFLAGS=$CPPFLAGS
12010 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12012 save_LDFLAGS=$LDFLAGS
12013 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12016 LIBS="$lt_cv_dlopen_libs $LIBS"
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12019 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12020 if ${lt_cv_dlopen_self+:} false; then :
12021 $as_echo_n "(cached) " >&6
12023 if test yes = "$cross_compiling"; then :
12024 lt_cv_dlopen_self=cross
12026 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12027 lt_status=$lt_dlunknown
12028 cat > conftest.$ac_ext <<_LT_EOF
12029 #line $LINENO "configure"
12030 #include "confdefs.h"
12039 # define LT_DLGLOBAL RTLD_GLOBAL
12042 # define LT_DLGLOBAL DL_GLOBAL
12044 # define LT_DLGLOBAL 0
12048 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12049 find out it does not work in some platform. */
12050 #ifndef LT_DLLAZY_OR_NOW
12052 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12055 # define LT_DLLAZY_OR_NOW DL_LAZY
12058 # define LT_DLLAZY_OR_NOW RTLD_NOW
12061 # define LT_DLLAZY_OR_NOW DL_NOW
12063 # define LT_DLLAZY_OR_NOW 0
12070 /* When -fvisibility=hidden is used, assume the code has been annotated
12071 correspondingly for the symbols needed. */
12072 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12073 int fnord () __attribute__((visibility("default")));
12076 int fnord () { return 42; }
12079 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12080 int status = $lt_dlunknown;
12084 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12087 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12088 else puts (dlerror ());
12090 /* dlclose (self); */
12098 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12099 (eval $ac_link) 2>&5
12101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12102 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12103 (./conftest; exit; ) >&5 2>/dev/null
12105 case x$lt_status in
12106 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12107 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12108 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12111 # compilation failed
12112 lt_cv_dlopen_self=no
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12120 $as_echo "$lt_cv_dlopen_self" >&6; }
12122 if test yes = "$lt_cv_dlopen_self"; then
12123 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12125 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12126 if ${lt_cv_dlopen_self_static+:} false; then :
12127 $as_echo_n "(cached) " >&6
12129 if test yes = "$cross_compiling"; then :
12130 lt_cv_dlopen_self_static=cross
12132 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12133 lt_status=$lt_dlunknown
12134 cat > conftest.$ac_ext <<_LT_EOF
12135 #line $LINENO "configure"
12136 #include "confdefs.h"
12145 # define LT_DLGLOBAL RTLD_GLOBAL
12148 # define LT_DLGLOBAL DL_GLOBAL
12150 # define LT_DLGLOBAL 0
12154 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12155 find out it does not work in some platform. */
12156 #ifndef LT_DLLAZY_OR_NOW
12158 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12161 # define LT_DLLAZY_OR_NOW DL_LAZY
12164 # define LT_DLLAZY_OR_NOW RTLD_NOW
12167 # define LT_DLLAZY_OR_NOW DL_NOW
12169 # define LT_DLLAZY_OR_NOW 0
12176 /* When -fvisibility=hidden is used, assume the code has been annotated
12177 correspondingly for the symbols needed. */
12178 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12179 int fnord () __attribute__((visibility("default")));
12182 int fnord () { return 42; }
12185 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12186 int status = $lt_dlunknown;
12190 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12193 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12194 else puts (dlerror ());
12196 /* dlclose (self); */
12204 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12205 (eval $ac_link) 2>&5
12207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12208 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12209 (./conftest; exit; ) >&5 2>/dev/null
12211 case x$lt_status in
12212 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12213 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12214 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12217 # compilation failed
12218 lt_cv_dlopen_self_static=no
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12226 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12229 CPPFLAGS=$save_CPPFLAGS
12230 LDFLAGS=$save_LDFLAGS
12235 case $lt_cv_dlopen_self in
12236 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12237 *) enable_dlopen_self=unknown ;;
12240 case $lt_cv_dlopen_self_static in
12241 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12242 *) enable_dlopen_self_static=unknown ;;
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12265 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12266 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12267 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12268 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12270 $as_echo "yes" >&6; }
12272 # FIXME - insert some real tests, host_os isn't really good enough
12275 if test -n "$STRIP"; then
12276 striplib="$STRIP -x"
12277 old_striplib="$STRIP -S"
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12279 $as_echo "yes" >&6; }
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12282 $as_echo "no" >&6; }
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12287 $as_echo "no" >&6; }
12303 # Report what library types will actually be built
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12305 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12307 $as_echo "$can_build_shared" >&6; }
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12310 $as_echo_n "checking whether to build shared libraries... " >&6; }
12311 test no = "$can_build_shared" && enable_shared=no
12313 # On AIX, shared libraries and static libraries use the same namespace, and
12314 # are all built from PIC.
12317 test yes = "$enable_shared" && enable_static=no
12318 if test -n "$RANLIB"; then
12319 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12320 postinstall_cmds='$RANLIB $lib'
12325 if test ia64 != "$host_cpu"; then
12326 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12327 yes,aix,yes) ;; # shared object as lib.so file only
12328 yes,svr4,*) ;; # shared object as lib.so archive member only
12329 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12335 $as_echo "$enable_shared" >&6; }
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12338 $as_echo_n "checking whether to build static libraries... " >&6; }
12339 # Make sure either enable_shared or enable_static is yes.
12340 test yes = "$enable_shared" || enable_static=yes
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12342 $as_echo "$enable_static" >&6; }
12349 ac_cpp='$CPP $CPPFLAGS'
12350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12370 ac_config_commands="$ac_config_commands libtool"
12375 # Only expand once:
12383 ### Needed information
12396 if test "x${have_win32}" = "xyes"; then
12398 HAVE_WIN32_FALSE='#'
12400 HAVE_WIN32_TRUE='#'
12404 if test "x${have_darwin}" = "xyes"; then
12406 HAVE_DARWIN_FALSE='#'
12408 HAVE_DARWIN_TRUE='#'
12414 ### Additional options to configure
12418 # Check whether --enable-debug was given.
12419 if test "${enable_debug+set}" = set; then :
12420 enableval=$enable_debug;
12421 if test "x${enableval}" = "xyes" ; then
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build in debug mode" >&5
12433 $as_echo_n "checking whether to build in debug mode... " >&6; }
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_debug}" >&5
12435 $as_echo "${want_debug}" >&6; }
12439 # Check whether --enable-mj2 was given.
12440 if test "${enable_mj2+set}" = set; then :
12441 enableval=$enable_mj2;
12442 if test "x${enableval}" = "xyes" ; then
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the MJ2 binaries" >&5
12454 $as_echo_n "checking whether to build the MJ2 binaries... " >&6; }
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_mj2}" >&5
12456 $as_echo "${want_mj2}" >&6; }
12458 if test "x${want_mj2}" = "xyes" ; then
12460 $as_echo "#define USE_MJ2 1" >>confdefs.h
12464 if test "x${want_mj2}" = "xyes"; then
12475 # Check whether --enable-jpwl was given.
12476 if test "${enable_jpwl+set}" = set; then :
12477 enableval=$enable_jpwl;
12478 if test "x${enableval}" = "xyes" ; then
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the JPWL library" >&5
12490 $as_echo_n "checking whether to build the JPWL library... " >&6; }
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_jpwl}" >&5
12492 $as_echo "${want_jpwl}" >&6; }
12494 if test "x${want_jpwl}" = "xyes"; then
12496 WANT_JPWL_FALSE='#'
12505 # Check whether --enable-jpip was given.
12506 if test "${enable_jpip+set}" = set; then :
12507 enableval=$enable_jpip;
12508 if test "x${enableval}" = "xyes" ; then
12519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the JPIP library" >&5
12520 $as_echo_n "checking whether to build the JPIP library... " >&6; }
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_jpip}" >&5
12522 $as_echo "${want_jpip}" >&6; }
12524 # Check whether --enable-jpip-server was given.
12525 if test "${enable_jpip_server+set}" = set; then :
12526 enableval=$enable_jpip_server;
12527 if test "x${enableval}" = "xyes" ; then
12528 want_jpip_server="yes"
12530 want_jpip_server="no"
12534 want_jpip_server="no"
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the JPIP server" >&5
12539 $as_echo_n "checking whether to build the JPIP server... " >&6; }
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_jpip_server}" >&5
12541 $as_echo "${want_jpip_server}" >&6; }
12544 ### Checks for programs
12547 ac_cpp='$CPP $CPPFLAGS'
12548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12551 if test -n "$ac_tool_prefix"; then
12552 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12553 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12555 $as_echo_n "checking for $ac_word... " >&6; }
12556 if ${ac_cv_prog_CC+:} false; then :
12557 $as_echo_n "(cached) " >&6
12559 if test -n "$CC"; then
12560 ac_cv_prog_CC="$CC" # Let the user override the test.
12562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563 for as_dir in $PATH
12566 test -z "$as_dir" && as_dir=.
12567 for ac_exec_ext in '' $ac_executable_extensions; do
12568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12569 ac_cv_prog_CC="${ac_tool_prefix}gcc"
12570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12580 if test -n "$CC"; then
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12582 $as_echo "$CC" >&6; }
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585 $as_echo "no" >&6; }
12590 if test -z "$ac_cv_prog_CC"; then
12592 # Extract the first word of "gcc", so it can be a program name with args.
12593 set dummy gcc; ac_word=$2
12594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12595 $as_echo_n "checking for $ac_word... " >&6; }
12596 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12597 $as_echo_n "(cached) " >&6
12599 if test -n "$ac_ct_CC"; then
12600 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12603 for as_dir in $PATH
12606 test -z "$as_dir" && as_dir=.
12607 for ac_exec_ext in '' $ac_executable_extensions; do
12608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12609 ac_cv_prog_ac_ct_CC="gcc"
12610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12619 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12620 if test -n "$ac_ct_CC"; then
12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12622 $as_echo "$ac_ct_CC" >&6; }
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12625 $as_echo "no" >&6; }
12628 if test "x$ac_ct_CC" = x; then
12631 case $cross_compiling:$ac_tool_warned in
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12635 ac_tool_warned=yes ;;
12640 CC="$ac_cv_prog_CC"
12643 if test -z "$CC"; then
12644 if test -n "$ac_tool_prefix"; then
12645 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12646 set dummy ${ac_tool_prefix}cc; ac_word=$2
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12648 $as_echo_n "checking for $ac_word... " >&6; }
12649 if ${ac_cv_prog_CC+:} false; then :
12650 $as_echo_n "(cached) " >&6
12652 if test -n "$CC"; then
12653 ac_cv_prog_CC="$CC" # Let the user override the test.
12655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12656 for as_dir in $PATH
12659 test -z "$as_dir" && as_dir=.
12660 for ac_exec_ext in '' $ac_executable_extensions; do
12661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12662 ac_cv_prog_CC="${ac_tool_prefix}cc"
12663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12673 if test -n "$CC"; then
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12675 $as_echo "$CC" >&6; }
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12678 $as_echo "no" >&6; }
12684 if test -z "$CC"; then
12685 # Extract the first word of "cc", so it can be a program name with args.
12686 set dummy cc; ac_word=$2
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688 $as_echo_n "checking for $ac_word... " >&6; }
12689 if ${ac_cv_prog_CC+:} false; then :
12690 $as_echo_n "(cached) " >&6
12692 if test -n "$CC"; then
12693 ac_cv_prog_CC="$CC" # Let the user override the test.
12695 ac_prog_rejected=no
12696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12697 for as_dir in $PATH
12700 test -z "$as_dir" && as_dir=.
12701 for ac_exec_ext in '' $ac_executable_extensions; do
12702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12703 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12704 ac_prog_rejected=yes
12708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12715 if test $ac_prog_rejected = yes; then
12716 # We found a bogon in the path, so make sure we never use it.
12717 set dummy $ac_cv_prog_CC
12719 if test $# != 0; then
12720 # We chose a different compiler from the bogus one.
12721 # However, it has the same basename, so the bogon will be chosen
12722 # first if we set CC to just the basename; use the full file name.
12724 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12730 if test -n "$CC"; then
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12732 $as_echo "$CC" >&6; }
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12735 $as_echo "no" >&6; }
12740 if test -z "$CC"; then
12741 if test -n "$ac_tool_prefix"; then
12742 for ac_prog in cl.exe
12744 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12745 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12747 $as_echo_n "checking for $ac_word... " >&6; }
12748 if ${ac_cv_prog_CC+:} false; then :
12749 $as_echo_n "(cached) " >&6
12751 if test -n "$CC"; then
12752 ac_cv_prog_CC="$CC" # Let the user override the test.
12754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12755 for as_dir in $PATH
12758 test -z "$as_dir" && as_dir=.
12759 for ac_exec_ext in '' $ac_executable_extensions; do
12760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12761 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12772 if test -n "$CC"; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12774 $as_echo "$CC" >&6; }
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12777 $as_echo "no" >&6; }
12781 test -n "$CC" && break
12784 if test -z "$CC"; then
12786 for ac_prog in cl.exe
12788 # Extract the first word of "$ac_prog", so it can be a program name with args.
12789 set dummy $ac_prog; ac_word=$2
12790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12791 $as_echo_n "checking for $ac_word... " >&6; }
12792 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12793 $as_echo_n "(cached) " >&6
12795 if test -n "$ac_ct_CC"; then
12796 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12799 for as_dir in $PATH
12802 test -z "$as_dir" && as_dir=.
12803 for ac_exec_ext in '' $ac_executable_extensions; do
12804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12805 ac_cv_prog_ac_ct_CC="$ac_prog"
12806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12815 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12816 if test -n "$ac_ct_CC"; then
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12818 $as_echo "$ac_ct_CC" >&6; }
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12821 $as_echo "no" >&6; }
12825 test -n "$ac_ct_CC" && break
12828 if test "x$ac_ct_CC" = x; then
12831 case $cross_compiling:$ac_tool_warned in
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12835 ac_tool_warned=yes ;;
12844 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12845 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12846 as_fn_error $? "no acceptable C compiler found in \$PATH
12847 See \`config.log' for more details" "$LINENO" 5; }
12849 # Provide some information about the compiler.
12850 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12853 for ac_option in --version -v -V -qversion; do
12854 { { ac_try="$ac_compiler $ac_option >&5"
12855 case "(($ac_try" in
12856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12857 *) ac_try_echo=$ac_try;;
12859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12860 $as_echo "$ac_try_echo"; } >&5
12861 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12863 if test -s conftest.err; then
12865 ... rest of stderr output deleted ...
12866 10q' conftest.err >conftest.er1
12867 cat conftest.er1 >&5
12869 rm -f conftest.er1 conftest.err
12870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12871 test $ac_status = 0; }
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12875 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12876 if ${ac_cv_c_compiler_gnu+:} false; then :
12877 $as_echo_n "(cached) " >&6
12879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12880 /* end confdefs.h. */
12893 if ac_fn_c_try_compile "$LINENO"; then :
12894 ac_compiler_gnu=yes
12898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12899 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12903 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12904 if test $ac_compiler_gnu = yes; then
12909 ac_test_CFLAGS=${CFLAGS+set}
12910 ac_save_CFLAGS=$CFLAGS
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12912 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12913 if ${ac_cv_prog_cc_g+:} false; then :
12914 $as_echo_n "(cached) " >&6
12916 ac_save_c_werror_flag=$ac_c_werror_flag
12917 ac_c_werror_flag=yes
12920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12921 /* end confdefs.h. */
12931 if ac_fn_c_try_compile "$LINENO"; then :
12932 ac_cv_prog_cc_g=yes
12935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12936 /* end confdefs.h. */
12946 if ac_fn_c_try_compile "$LINENO"; then :
12949 ac_c_werror_flag=$ac_save_c_werror_flag
12951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12952 /* end confdefs.h. */
12962 if ac_fn_c_try_compile "$LINENO"; then :
12963 ac_cv_prog_cc_g=yes
12965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12970 ac_c_werror_flag=$ac_save_c_werror_flag
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12973 $as_echo "$ac_cv_prog_cc_g" >&6; }
12974 if test "$ac_test_CFLAGS" = set; then
12975 CFLAGS=$ac_save_CFLAGS
12976 elif test $ac_cv_prog_cc_g = yes; then
12977 if test "$GCC" = yes; then
12983 if test "$GCC" = yes; then
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12990 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12991 if ${ac_cv_prog_cc_c89+:} false; then :
12992 $as_echo_n "(cached) " >&6
12994 ac_cv_prog_cc_c89=no
12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
12998 #include <stdarg.h>
13001 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
13002 struct buf { int x; };
13003 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13004 static char *e (p, i)
13010 static char *f (char * (*g) (char **, int), char **p, ...)
13015 s = g (p, va_arg (v,int));
13020 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
13021 function prototypes and stuff, but not '\xHH' hex character constants.
13022 These don't provoke an error unfortunately, instead are silently treated
13023 as 'x'. The following induces an error, until -std is added to get
13024 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
13025 array size at least. It's necessary to write '\x00'==0 to get something
13026 that's true only with -std. */
13027 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13029 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13030 inside strings and character constants. */
13032 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13034 int test (int i, double x);
13035 struct s1 {int (*f) (int a);};
13036 struct s2 {int (*f) (double a);};
13037 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13043 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
13048 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13049 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13051 CC="$ac_save_CC $ac_arg"
13052 if ac_fn_c_try_compile "$LINENO"; then :
13053 ac_cv_prog_cc_c89=$ac_arg
13055 rm -f core conftest.err conftest.$ac_objext
13056 test "x$ac_cv_prog_cc_c89" != "xno" && break
13058 rm -f conftest.$ac_ext
13063 case "x$ac_cv_prog_cc_c89" in
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
13066 $as_echo "none needed" >&6; } ;;
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
13069 $as_echo "unsupported" >&6; } ;;
13071 CC="$CC $ac_cv_prog_cc_c89"
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
13073 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
13075 if test "x$ac_cv_prog_cc_c89" != xno; then :
13080 ac_cpp='$CPP $CPPFLAGS'
13081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13086 ac_cpp='$CPP $CPPFLAGS'
13087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
13091 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
13092 if ${am_cv_prog_cc_c_o+:} false; then :
13093 $as_echo_n "(cached) " >&6
13095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096 /* end confdefs.h. */
13106 # Make sure it works both with $CC and with simple cc.
13107 # Following AC_PROG_CC_C_O, we do the test twice because some
13108 # compilers refuse to overwrite an existing .o file with -o,
13109 # though they will create one.
13110 am_cv_prog_cc_c_o=yes
13111 for am_i in 1 2; do
13112 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
13113 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
13115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13116 (exit $ac_status); } \
13117 && test -f conftest2.$ac_objext; then
13120 am_cv_prog_cc_c_o=no
13124 rm -f core conftest*
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
13128 $as_echo "$am_cv_prog_cc_c_o" >&6; }
13129 if test "$am_cv_prog_cc_c_o" != yes; then
13130 # Losing compiler, so override with the script.
13131 # FIXME: It is wrong to rewrite CC.
13132 # But if we don't then we get into trouble of one sort or another.
13133 # A longer-term fix would be to have automake use am__CC in this case,
13134 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
13135 CC="$am_aux_dir/compile $CC"
13138 ac_cpp='$CPP $CPPFLAGS'
13139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13144 depcc="$CC" am_compiler_list=
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13147 $as_echo_n "checking dependency style of $depcc... " >&6; }
13148 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13149 $as_echo_n "(cached) " >&6
13151 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13152 # We make a subdir and do the tests there. Otherwise we can end up
13153 # making bogus files that we don't know about and never remove. For
13154 # instance it was reported that on HP-UX the gcc test will end up
13155 # making a dummy file named 'D' -- because '-MD' means "put the output
13157 rm -rf conftest.dir
13159 # Copy depcomp to subdir because otherwise we won't find it if we're
13160 # using a relative directory.
13161 cp "$am_depcomp" conftest.dir
13163 # We will build objects and dependencies in a subdirectory because
13164 # it helps to detect inapplicable dependency modes. For instance
13165 # both Tru64's cc and ICC support -MD to output dependencies as a
13166 # side effect of compilation, but ICC will put the dependencies in
13167 # the current directory while Tru64 will put them in the object
13171 am_cv_CC_dependencies_compiler_type=none
13172 if test "$am_compiler_list" = ""; then
13173 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13175 am__universal=false
13176 case " $depcc " in #(
13177 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13180 for depmode in $am_compiler_list; do
13181 # Setup a source with many dependencies, because some compilers
13182 # like to wrap large dependency lists on column 80 (with \), and
13183 # we should not choose a depcomp mode which is confused by this.
13185 # We need to recreate these files for each test, as the compiler may
13186 # overwrite some of them when testing with obscure command lines.
13187 # This happens at least with the AIX C compiler.
13189 for i in 1 2 3 4 5 6; do
13190 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13191 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13192 # Solaris 10 /bin/sh.
13193 echo '/* dummy */' > sub/conftst$i.h
13195 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13197 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13198 # mode. It turns out that the SunPro C++ compiler does not properly
13199 # handle '-M -o', and we need to detect this. Also, some Intel
13200 # versions had trouble with output in subdirs.
13201 am__obj=sub/conftest.${OBJEXT-o}
13202 am__minus_obj="-o $am__obj"
13205 # This depmode causes a compiler race in universal mode.
13206 test "$am__universal" = false || continue
13209 # After this tag, mechanisms are not by side-effect, so they'll
13210 # only be used when explicitly requested.
13211 if test "x$enable_dependency_tracking" = xyes; then
13217 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13218 # This compiler won't grok '-c -o', but also, the minuso test has
13219 # not run yet. These depmodes are late enough in the game, and
13220 # so weak that their functioning should not be impacted.
13221 am__obj=conftest.${OBJEXT-o}
13226 if depmode=$depmode \
13227 source=sub/conftest.c object=$am__obj \
13228 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13229 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13230 >/dev/null 2>conftest.err &&
13231 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13232 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13233 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13234 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13235 # icc doesn't choke on unknown options, it will just issue warnings
13236 # or remarks (even with -Werror). So we grep stderr for any message
13237 # that says an option was ignored or not supported.
13238 # When given -MP, icc 7.0 and 7.1 complain thusly:
13239 # icc: Command line warning: ignoring option '-M'; no argument required
13240 # The diagnosis changed in icc 8.0:
13241 # icc: Command line remark: option '-MP' not supported
13242 if (grep 'ignoring option' conftest.err ||
13243 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13244 am_cv_CC_dependencies_compiler_type=$depmode
13251 rm -rf conftest.dir
13253 am_cv_CC_dependencies_compiler_type=none
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13258 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13259 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13262 test "x$enable_dependency_tracking" != xno \
13263 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13264 am__fastdepCC_TRUE=
13265 am__fastdepCC_FALSE='#'
13267 am__fastdepCC_TRUE='#'
13268 am__fastdepCC_FALSE=
13281 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13282 if test -n "$ac_tool_prefix"; then
13283 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13284 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13286 $as_echo_n "checking for $ac_word... " >&6; }
13287 if ${ac_cv_path_PKG_CONFIG+:} false; then :
13288 $as_echo_n "(cached) " >&6
13290 case $PKG_CONFIG in
13292 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296 for as_dir in $PATH
13299 test -z "$as_dir" && as_dir=.
13300 for ac_exec_ext in '' $ac_executable_extensions; do
13301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13302 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13313 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13314 if test -n "$PKG_CONFIG"; then
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13316 $as_echo "$PKG_CONFIG" >&6; }
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13319 $as_echo "no" >&6; }
13324 if test -z "$ac_cv_path_PKG_CONFIG"; then
13325 ac_pt_PKG_CONFIG=$PKG_CONFIG
13326 # Extract the first word of "pkg-config", so it can be a program name with args.
13327 set dummy pkg-config; ac_word=$2
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13329 $as_echo_n "checking for $ac_word... " >&6; }
13330 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
13331 $as_echo_n "(cached) " >&6
13333 case $ac_pt_PKG_CONFIG in
13335 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13339 for as_dir in $PATH
13342 test -z "$as_dir" && as_dir=.
13343 for ac_exec_ext in '' $ac_executable_extensions; do
13344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13345 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13356 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13357 if test -n "$ac_pt_PKG_CONFIG"; then
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13359 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13362 $as_echo "no" >&6; }
13365 if test "x$ac_pt_PKG_CONFIG" = x; then
13368 case $cross_compiling:$ac_tool_warned in
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13372 ac_tool_warned=yes ;;
13374 PKG_CONFIG=$ac_pt_PKG_CONFIG
13377 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13381 if test -n "$PKG_CONFIG"; then
13382 _pkg_min_version=0.9.0
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13384 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13385 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13387 $as_echo "yes" >&6; }
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13390 $as_echo "no" >&6; }
13395 # Check whether pkg-config supports Requires.private
13396 if $PKG_CONFIG --atleast-pkgconfig-version 0.22 ; then
13397 pkgconfig_requires_private="Requires.private"
13399 pkgconfig_requires_private="Requires"
13408 # Check whether --enable-doc was given.
13409 if test "${enable_doc+set}" = set; then :
13410 enableval=$enable_doc;
13411 if test "x${enableval}" = "xyes" ; then
13412 opj_enable_doc="yes"
13414 opj_enable_doc="no"
13418 opj_enable_doc="yes"
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
13423 $as_echo_n "checking whether to build documentation... " >&6; }
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${opj_enable_doc}" >&5
13425 $as_echo "${opj_enable_doc}" >&6; }
13427 if test "x${opj_enable_doc}" = "xyes" ; then
13430 opj_doxygen="doxygen"
13433 # Check whether --with-doxygen was given.
13434 if test "${with_doxygen+set}" = set; then :
13435 withval=$with_doxygen;
13436 opj_doxygen=${withval}
13437 # Extract the first word of "${opj_doxygen}", so it can be a program name with args.
13438 set dummy ${opj_doxygen}; ac_word=$2
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13440 $as_echo_n "checking for $ac_word... " >&6; }
13441 if ${ac_cv_prog_opj_have_doxygen+:} false; then :
13442 $as_echo_n "(cached) " >&6
13444 if test -n "$opj_have_doxygen"; then
13445 ac_cv_prog_opj_have_doxygen="$opj_have_doxygen" # Let the user override the test.
13447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13448 for as_dir in $PATH
13451 test -z "$as_dir" && as_dir=.
13452 for ac_exec_ext in '' $ac_executable_extensions; do
13453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13454 ac_cv_prog_opj_have_doxygen="yes"
13455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13462 test -z "$ac_cv_prog_opj_have_doxygen" && ac_cv_prog_opj_have_doxygen="no"
13465 opj_have_doxygen=$ac_cv_prog_opj_have_doxygen
13466 if test -n "$opj_have_doxygen"; then
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opj_have_doxygen" >&5
13468 $as_echo "$opj_have_doxygen" >&6; }
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13471 $as_echo "no" >&6; }
13475 if test "x${opj_have_doxygen}" = "xno" ; then
13477 echo "The doxygen program you specified:"
13478 echo "${opj_doxygen}"
13479 echo "was not found. Please check the path and make sure "
13480 echo "the program exists and is executable."
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5
13482 $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;}
13486 # Extract the first word of "${opj_doxygen}", so it can be a program name with args.
13487 set dummy ${opj_doxygen}; ac_word=$2
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13489 $as_echo_n "checking for $ac_word... " >&6; }
13490 if ${ac_cv_prog_opj_have_doxygen+:} false; then :
13491 $as_echo_n "(cached) " >&6
13493 if test -n "$opj_have_doxygen"; then
13494 ac_cv_prog_opj_have_doxygen="$opj_have_doxygen" # Let the user override the test.
13496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13497 for as_dir in $PATH
13500 test -z "$as_dir" && as_dir=.
13501 for ac_exec_ext in '' $ac_executable_extensions; do
13502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13503 ac_cv_prog_opj_have_doxygen="yes"
13504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13511 test -z "$ac_cv_prog_opj_have_doxygen" && ac_cv_prog_opj_have_doxygen="no"
13514 opj_have_doxygen=$ac_cv_prog_opj_have_doxygen
13515 if test -n "$opj_have_doxygen"; then
13516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $opj_have_doxygen" >&5
13517 $as_echo "$opj_have_doxygen" >&6; }
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13520 $as_echo "no" >&6; }
13524 if test "x${opj_have_doxygen}" = "xno" ; then
13526 echo "The doxygen program was not found in your execute path."
13527 echo "You may have doxygen installed somewhere not covered by your path."
13529 echo "If this is the case make sure you have the packages installed, AND"
13530 echo "that the doxygen program is in your execute path (see your"
13531 echo "shell manual page on setting the \$PATH environment variable), OR"
13532 echo "alternatively, specify the program to use with --with-doxygen."
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no doxygen detected. Documentation will not be built" >&5
13534 $as_echo "$as_me: WARNING: no doxygen detected. Documentation will not be built" >&2;}
13540 opj_have_doxygen="no"
13545 if ! test "x${opj_have_doxygen}" = "xyes" ; then
13546 opj_enable_doc="no"
13549 if test "x${opj_have_doxygen}" = "xyes"; then
13550 OPJ_BUILD_DOC_TRUE=
13551 OPJ_BUILD_DOC_FALSE='#'
13553 OPJ_BUILD_DOC_TRUE='#'
13554 OPJ_BUILD_DOC_FALSE=
13558 if test "x${opj_have_doxygen}" = "xyes"; then :
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
13566 $as_echo_n "checking whether ln -s works... " >&6; }
13568 if test "$LN_S" = "ln -s"; then
13569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13570 $as_echo "yes" >&6; }
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
13573 $as_echo "no, using $LN_S" >&6; }
13578 ### Checks for libraries
13584 # Check whether --enable-png was given.
13585 if test "${enable_png+set}" = set; then :
13586 enableval=$enable_png;
13587 if test "x${enableval}" = "xyes" ; then
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PNG support" >&5
13599 $as_echo_n "checking whether to build with PNG support... " >&6; }
13600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_png}" >&5
13601 $as_echo "${want_png}" >&6; }
13603 if test "x${want_png}" = "xyes" ; then
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
13608 $as_echo_n "checking for PNG... " >&6; }
13610 if test -n "$PNG_CFLAGS"; then
13611 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
13612 elif test -n "$PKG_CONFIG"; then
13613 if test -n "$PKG_CONFIG" && \
13614 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng15 zlib\""; } >&5
13615 ($PKG_CONFIG --exists --print-errors "libpng15 zlib") 2>&5
13617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13618 test $ac_status = 0; }; then
13619 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng15 zlib" 2>/dev/null`
13626 if test -n "$PNG_LIBS"; then
13627 pkg_cv_PNG_LIBS="$PNG_LIBS"
13628 elif test -n "$PKG_CONFIG"; then
13629 if test -n "$PKG_CONFIG" && \
13630 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng15 zlib\""; } >&5
13631 ($PKG_CONFIG --exists --print-errors "libpng15 zlib") 2>&5
13633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13634 test $ac_status = 0; }; then
13635 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng15 zlib" 2>/dev/null`
13645 if test $pkg_failed = yes; then
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647 $as_echo "no" >&6; }
13649 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13650 _pkg_short_errors_supported=yes
13652 _pkg_short_errors_supported=no
13654 if test $_pkg_short_errors_supported = yes; then
13655 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng15 zlib" 2>&1`
13657 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng15 zlib" 2>&1`
13659 # Put the nasty error message in config.log where it belongs
13660 echo "$PNG_PKG_ERRORS" >&5
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
13666 $as_echo_n "checking for PNG... " >&6; }
13668 if test -n "$PNG_CFLAGS"; then
13669 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
13670 elif test -n "$PKG_CONFIG"; then
13671 if test -n "$PKG_CONFIG" && \
13672 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng14 zlib\""; } >&5
13673 ($PKG_CONFIG --exists --print-errors "libpng14 zlib") 2>&5
13675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13676 test $ac_status = 0; }; then
13677 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng14 zlib" 2>/dev/null`
13684 if test -n "$PNG_LIBS"; then
13685 pkg_cv_PNG_LIBS="$PNG_LIBS"
13686 elif test -n "$PKG_CONFIG"; then
13687 if test -n "$PKG_CONFIG" && \
13688 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng14 zlib\""; } >&5
13689 ($PKG_CONFIG --exists --print-errors "libpng14 zlib") 2>&5
13691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13692 test $ac_status = 0; }; then
13693 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng14 zlib" 2>/dev/null`
13703 if test $pkg_failed = yes; then
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13705 $as_echo "no" >&6; }
13707 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13708 _pkg_short_errors_supported=yes
13710 _pkg_short_errors_supported=no
13712 if test $_pkg_short_errors_supported = yes; then
13713 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng14 zlib" 2>&1`
13715 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng14 zlib" 2>&1`
13717 # Put the nasty error message in config.log where it belongs
13718 echo "$PNG_PKG_ERRORS" >&5
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
13724 $as_echo_n "checking for PNG... " >&6; }
13726 if test -n "$PNG_CFLAGS"; then
13727 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
13728 elif test -n "$PKG_CONFIG"; then
13729 if test -n "$PKG_CONFIG" && \
13730 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
13731 ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
13733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13734 test $ac_status = 0; }; then
13735 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng12 zlib" 2>/dev/null`
13742 if test -n "$PNG_LIBS"; then
13743 pkg_cv_PNG_LIBS="$PNG_LIBS"
13744 elif test -n "$PKG_CONFIG"; then
13745 if test -n "$PKG_CONFIG" && \
13746 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
13747 ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
13749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13750 test $ac_status = 0; }; then
13751 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng12 zlib" 2>/dev/null`
13761 if test $pkg_failed = yes; then
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13763 $as_echo "no" >&6; }
13765 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13766 _pkg_short_errors_supported=yes
13768 _pkg_short_errors_supported=no
13770 if test $_pkg_short_errors_supported = yes; then
13771 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng12 zlib" 2>&1`
13773 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng12 zlib" 2>&1`
13775 # Put the nasty error message in config.log where it belongs
13776 echo "$PNG_PKG_ERRORS" >&5
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
13782 $as_echo_n "checking for PNG... " >&6; }
13784 if test -n "$PNG_CFLAGS"; then
13785 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
13786 elif test -n "$PKG_CONFIG"; then
13787 if test -n "$PKG_CONFIG" && \
13788 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
13789 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
13791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13792 test $ac_status = 0; }; then
13793 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
13800 if test -n "$PNG_LIBS"; then
13801 pkg_cv_PNG_LIBS="$PNG_LIBS"
13802 elif test -n "$PKG_CONFIG"; then
13803 if test -n "$PKG_CONFIG" && \
13804 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
13805 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
13807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13808 test $ac_status = 0; }; then
13809 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
13819 if test $pkg_failed = yes; then
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13821 $as_echo "no" >&6; }
13823 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13824 _pkg_short_errors_supported=yes
13826 _pkg_short_errors_supported=no
13828 if test $_pkg_short_errors_supported = yes; then
13829 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
13831 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
13833 # Put the nasty error message in config.log where it belongs
13834 echo "$PNG_PKG_ERRORS" >&5
13837 elif test $pkg_failed = untried; then
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13839 $as_echo "no" >&6; }
13842 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
13843 PNG_LIBS=$pkg_cv_PNG_LIBS
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13845 $as_echo "yes" >&6; }
13849 elif test $pkg_failed = untried; then
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13851 $as_echo "no" >&6; }
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
13856 $as_echo_n "checking for PNG... " >&6; }
13858 if test -n "$PNG_CFLAGS"; then
13859 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
13860 elif test -n "$PKG_CONFIG"; then
13861 if test -n "$PKG_CONFIG" && \
13862 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
13863 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
13865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13866 test $ac_status = 0; }; then
13867 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
13874 if test -n "$PNG_LIBS"; then
13875 pkg_cv_PNG_LIBS="$PNG_LIBS"
13876 elif test -n "$PKG_CONFIG"; then
13877 if test -n "$PKG_CONFIG" && \
13878 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
13879 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
13881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13882 test $ac_status = 0; }; then
13883 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
13893 if test $pkg_failed = yes; then
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13895 $as_echo "no" >&6; }
13897 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13898 _pkg_short_errors_supported=yes
13900 _pkg_short_errors_supported=no
13902 if test $_pkg_short_errors_supported = yes; then
13903 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
13905 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
13907 # Put the nasty error message in config.log where it belongs
13908 echo "$PNG_PKG_ERRORS" >&5
13911 elif test $pkg_failed = untried; then
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13913 $as_echo "no" >&6; }
13916 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
13917 PNG_LIBS=$pkg_cv_PNG_LIBS
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13919 $as_echo "yes" >&6; }
13924 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
13925 PNG_LIBS=$pkg_cv_PNG_LIBS
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13927 $as_echo "yes" >&6; }
13931 elif test $pkg_failed = untried; then
13932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13933 $as_echo "no" >&6; }
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
13938 $as_echo_n "checking for PNG... " >&6; }
13940 if test -n "$PNG_CFLAGS"; then
13941 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
13942 elif test -n "$PKG_CONFIG"; then
13943 if test -n "$PKG_CONFIG" && \
13944 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
13945 ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
13947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13948 test $ac_status = 0; }; then
13949 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng12 zlib" 2>/dev/null`
13956 if test -n "$PNG_LIBS"; then
13957 pkg_cv_PNG_LIBS="$PNG_LIBS"
13958 elif test -n "$PKG_CONFIG"; then
13959 if test -n "$PKG_CONFIG" && \
13960 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
13961 ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
13963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13964 test $ac_status = 0; }; then
13965 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng12 zlib" 2>/dev/null`
13975 if test $pkg_failed = yes; then
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13977 $as_echo "no" >&6; }
13979 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13980 _pkg_short_errors_supported=yes
13982 _pkg_short_errors_supported=no
13984 if test $_pkg_short_errors_supported = yes; then
13985 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng12 zlib" 2>&1`
13987 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng12 zlib" 2>&1`
13989 # Put the nasty error message in config.log where it belongs
13990 echo "$PNG_PKG_ERRORS" >&5
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
13996 $as_echo_n "checking for PNG... " >&6; }
13998 if test -n "$PNG_CFLAGS"; then
13999 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
14000 elif test -n "$PKG_CONFIG"; then
14001 if test -n "$PKG_CONFIG" && \
14002 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
14003 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
14005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14006 test $ac_status = 0; }; then
14007 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
14014 if test -n "$PNG_LIBS"; then
14015 pkg_cv_PNG_LIBS="$PNG_LIBS"
14016 elif test -n "$PKG_CONFIG"; then
14017 if test -n "$PKG_CONFIG" && \
14018 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
14019 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
14021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14022 test $ac_status = 0; }; then
14023 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
14033 if test $pkg_failed = yes; then
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14035 $as_echo "no" >&6; }
14037 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14038 _pkg_short_errors_supported=yes
14040 _pkg_short_errors_supported=no
14042 if test $_pkg_short_errors_supported = yes; then
14043 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
14045 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
14047 # Put the nasty error message in config.log where it belongs
14048 echo "$PNG_PKG_ERRORS" >&5
14051 elif test $pkg_failed = untried; then
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14053 $as_echo "no" >&6; }
14056 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
14057 PNG_LIBS=$pkg_cv_PNG_LIBS
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14059 $as_echo "yes" >&6; }
14063 elif test $pkg_failed = untried; then
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14065 $as_echo "no" >&6; }
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
14070 $as_echo_n "checking for PNG... " >&6; }
14072 if test -n "$PNG_CFLAGS"; then
14073 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
14074 elif test -n "$PKG_CONFIG"; then
14075 if test -n "$PKG_CONFIG" && \
14076 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
14077 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
14079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14080 test $ac_status = 0; }; then
14081 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
14088 if test -n "$PNG_LIBS"; then
14089 pkg_cv_PNG_LIBS="$PNG_LIBS"
14090 elif test -n "$PKG_CONFIG"; then
14091 if test -n "$PKG_CONFIG" && \
14092 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
14093 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
14095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14096 test $ac_status = 0; }; then
14097 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
14107 if test $pkg_failed = yes; then
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14109 $as_echo "no" >&6; }
14111 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14112 _pkg_short_errors_supported=yes
14114 _pkg_short_errors_supported=no
14116 if test $_pkg_short_errors_supported = yes; then
14117 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
14119 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
14121 # Put the nasty error message in config.log where it belongs
14122 echo "$PNG_PKG_ERRORS" >&5
14125 elif test $pkg_failed = untried; then
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14127 $as_echo "no" >&6; }
14130 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
14131 PNG_LIBS=$pkg_cv_PNG_LIBS
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14133 $as_echo "yes" >&6; }
14138 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
14139 PNG_LIBS=$pkg_cv_PNG_LIBS
14140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14141 $as_echo "yes" >&6; }
14146 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
14147 PNG_LIBS=$pkg_cv_PNG_LIBS
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14149 $as_echo "yes" >&6; }
14153 elif test $pkg_failed = untried; then
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14155 $as_echo "no" >&6; }
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
14160 $as_echo_n "checking for PNG... " >&6; }
14162 if test -n "$PNG_CFLAGS"; then
14163 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
14164 elif test -n "$PKG_CONFIG"; then
14165 if test -n "$PKG_CONFIG" && \
14166 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng14 zlib\""; } >&5
14167 ($PKG_CONFIG --exists --print-errors "libpng14 zlib") 2>&5
14169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14170 test $ac_status = 0; }; then
14171 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng14 zlib" 2>/dev/null`
14178 if test -n "$PNG_LIBS"; then
14179 pkg_cv_PNG_LIBS="$PNG_LIBS"
14180 elif test -n "$PKG_CONFIG"; then
14181 if test -n "$PKG_CONFIG" && \
14182 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng14 zlib\""; } >&5
14183 ($PKG_CONFIG --exists --print-errors "libpng14 zlib") 2>&5
14185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14186 test $ac_status = 0; }; then
14187 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng14 zlib" 2>/dev/null`
14197 if test $pkg_failed = yes; then
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14199 $as_echo "no" >&6; }
14201 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14202 _pkg_short_errors_supported=yes
14204 _pkg_short_errors_supported=no
14206 if test $_pkg_short_errors_supported = yes; then
14207 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng14 zlib" 2>&1`
14209 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng14 zlib" 2>&1`
14211 # Put the nasty error message in config.log where it belongs
14212 echo "$PNG_PKG_ERRORS" >&5
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
14218 $as_echo_n "checking for PNG... " >&6; }
14220 if test -n "$PNG_CFLAGS"; then
14221 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
14222 elif test -n "$PKG_CONFIG"; then
14223 if test -n "$PKG_CONFIG" && \
14224 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
14225 ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
14227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14228 test $ac_status = 0; }; then
14229 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng12 zlib" 2>/dev/null`
14236 if test -n "$PNG_LIBS"; then
14237 pkg_cv_PNG_LIBS="$PNG_LIBS"
14238 elif test -n "$PKG_CONFIG"; then
14239 if test -n "$PKG_CONFIG" && \
14240 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
14241 ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
14243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14244 test $ac_status = 0; }; then
14245 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng12 zlib" 2>/dev/null`
14255 if test $pkg_failed = yes; then
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14257 $as_echo "no" >&6; }
14259 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14260 _pkg_short_errors_supported=yes
14262 _pkg_short_errors_supported=no
14264 if test $_pkg_short_errors_supported = yes; then
14265 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng12 zlib" 2>&1`
14267 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng12 zlib" 2>&1`
14269 # Put the nasty error message in config.log where it belongs
14270 echo "$PNG_PKG_ERRORS" >&5
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
14276 $as_echo_n "checking for PNG... " >&6; }
14278 if test -n "$PNG_CFLAGS"; then
14279 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
14280 elif test -n "$PKG_CONFIG"; then
14281 if test -n "$PKG_CONFIG" && \
14282 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
14283 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
14285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14286 test $ac_status = 0; }; then
14287 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
14294 if test -n "$PNG_LIBS"; then
14295 pkg_cv_PNG_LIBS="$PNG_LIBS"
14296 elif test -n "$PKG_CONFIG"; then
14297 if test -n "$PKG_CONFIG" && \
14298 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
14299 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
14301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14302 test $ac_status = 0; }; then
14303 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
14313 if test $pkg_failed = yes; then
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14315 $as_echo "no" >&6; }
14317 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14318 _pkg_short_errors_supported=yes
14320 _pkg_short_errors_supported=no
14322 if test $_pkg_short_errors_supported = yes; then
14323 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
14325 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
14327 # Put the nasty error message in config.log where it belongs
14328 echo "$PNG_PKG_ERRORS" >&5
14331 elif test $pkg_failed = untried; then
14332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14333 $as_echo "no" >&6; }
14336 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
14337 PNG_LIBS=$pkg_cv_PNG_LIBS
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14339 $as_echo "yes" >&6; }
14343 elif test $pkg_failed = untried; then
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14345 $as_echo "no" >&6; }
14349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
14350 $as_echo_n "checking for PNG... " >&6; }
14352 if test -n "$PNG_CFLAGS"; then
14353 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
14354 elif test -n "$PKG_CONFIG"; then
14355 if test -n "$PKG_CONFIG" && \
14356 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
14357 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
14359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14360 test $ac_status = 0; }; then
14361 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
14368 if test -n "$PNG_LIBS"; then
14369 pkg_cv_PNG_LIBS="$PNG_LIBS"
14370 elif test -n "$PKG_CONFIG"; then
14371 if test -n "$PKG_CONFIG" && \
14372 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
14373 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
14375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14376 test $ac_status = 0; }; then
14377 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
14387 if test $pkg_failed = yes; then
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14389 $as_echo "no" >&6; }
14391 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14392 _pkg_short_errors_supported=yes
14394 _pkg_short_errors_supported=no
14396 if test $_pkg_short_errors_supported = yes; then
14397 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
14399 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
14401 # Put the nasty error message in config.log where it belongs
14402 echo "$PNG_PKG_ERRORS" >&5
14405 elif test $pkg_failed = untried; then
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14407 $as_echo "no" >&6; }
14410 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
14411 PNG_LIBS=$pkg_cv_PNG_LIBS
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14413 $as_echo "yes" >&6; }
14418 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
14419 PNG_LIBS=$pkg_cv_PNG_LIBS
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14421 $as_echo "yes" >&6; }
14425 elif test $pkg_failed = untried; then
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14427 $as_echo "no" >&6; }
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
14432 $as_echo_n "checking for PNG... " >&6; }
14434 if test -n "$PNG_CFLAGS"; then
14435 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
14436 elif test -n "$PKG_CONFIG"; then
14437 if test -n "$PKG_CONFIG" && \
14438 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
14439 ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
14441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14442 test $ac_status = 0; }; then
14443 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng12 zlib" 2>/dev/null`
14450 if test -n "$PNG_LIBS"; then
14451 pkg_cv_PNG_LIBS="$PNG_LIBS"
14452 elif test -n "$PKG_CONFIG"; then
14453 if test -n "$PKG_CONFIG" && \
14454 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng12 zlib\""; } >&5
14455 ($PKG_CONFIG --exists --print-errors "libpng12 zlib") 2>&5
14457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14458 test $ac_status = 0; }; then
14459 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng12 zlib" 2>/dev/null`
14469 if test $pkg_failed = yes; then
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14471 $as_echo "no" >&6; }
14473 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14474 _pkg_short_errors_supported=yes
14476 _pkg_short_errors_supported=no
14478 if test $_pkg_short_errors_supported = yes; then
14479 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng12 zlib" 2>&1`
14481 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng12 zlib" 2>&1`
14483 # Put the nasty error message in config.log where it belongs
14484 echo "$PNG_PKG_ERRORS" >&5
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
14490 $as_echo_n "checking for PNG... " >&6; }
14492 if test -n "$PNG_CFLAGS"; then
14493 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
14494 elif test -n "$PKG_CONFIG"; then
14495 if test -n "$PKG_CONFIG" && \
14496 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
14497 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
14499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14500 test $ac_status = 0; }; then
14501 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
14508 if test -n "$PNG_LIBS"; then
14509 pkg_cv_PNG_LIBS="$PNG_LIBS"
14510 elif test -n "$PKG_CONFIG"; then
14511 if test -n "$PKG_CONFIG" && \
14512 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
14513 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
14515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14516 test $ac_status = 0; }; then
14517 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
14527 if test $pkg_failed = yes; then
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14529 $as_echo "no" >&6; }
14531 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14532 _pkg_short_errors_supported=yes
14534 _pkg_short_errors_supported=no
14536 if test $_pkg_short_errors_supported = yes; then
14537 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
14539 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
14541 # Put the nasty error message in config.log where it belongs
14542 echo "$PNG_PKG_ERRORS" >&5
14545 elif test $pkg_failed = untried; then
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14547 $as_echo "no" >&6; }
14550 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
14551 PNG_LIBS=$pkg_cv_PNG_LIBS
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14553 $as_echo "yes" >&6; }
14557 elif test $pkg_failed = untried; then
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14559 $as_echo "no" >&6; }
14563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
14564 $as_echo_n "checking for PNG... " >&6; }
14566 if test -n "$PNG_CFLAGS"; then
14567 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS"
14568 elif test -n "$PKG_CONFIG"; then
14569 if test -n "$PKG_CONFIG" && \
14570 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
14571 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
14573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14574 test $ac_status = 0; }; then
14575 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng zlib" 2>/dev/null`
14582 if test -n "$PNG_LIBS"; then
14583 pkg_cv_PNG_LIBS="$PNG_LIBS"
14584 elif test -n "$PKG_CONFIG"; then
14585 if test -n "$PKG_CONFIG" && \
14586 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng zlib\""; } >&5
14587 ($PKG_CONFIG --exists --print-errors "libpng zlib") 2>&5
14589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14590 test $ac_status = 0; }; then
14591 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng zlib" 2>/dev/null`
14601 if test $pkg_failed = yes; then
14602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14603 $as_echo "no" >&6; }
14605 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14606 _pkg_short_errors_supported=yes
14608 _pkg_short_errors_supported=no
14610 if test $_pkg_short_errors_supported = yes; then
14611 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng zlib" 2>&1`
14613 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng zlib" 2>&1`
14615 # Put the nasty error message in config.log where it belongs
14616 echo "$PNG_PKG_ERRORS" >&5
14619 elif test $pkg_failed = untried; then
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14621 $as_echo "no" >&6; }
14624 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
14625 PNG_LIBS=$pkg_cv_PNG_LIBS
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14627 $as_echo "yes" >&6; }
14632 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
14633 PNG_LIBS=$pkg_cv_PNG_LIBS
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14635 $as_echo "yes" >&6; }
14640 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
14641 PNG_LIBS=$pkg_cv_PNG_LIBS
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14643 $as_echo "yes" >&6; }
14648 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS
14649 PNG_LIBS=$pkg_cv_PNG_LIBS
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14651 $as_echo "yes" >&6; }
14655 if ! test "x${have_libpng}" = "xyes" ; then
14661 __opj_have_dep="no"
14669 __opj_header=zlib.h
14671 __opj_func=zlibVersion
14672 __opj_have_dep="no"
14674 save_CPPFLAGS=${CPPFLAGS}
14675 save_LDFLAGS=${LDFLAGS}
14678 if test "x${__opj_prefix}" = "x" ; then
14679 CPPFLAGS="${CPPFLAGS} $Z_CFLAGS"
14680 LDFLAGS="${LDFLAGS} $Z_LIBS"
14682 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
14683 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
14684 LIBS="${LIBS} -l${__opj_lib}"
14687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14688 /* end confdefs.h. */
14690 #include <${__opj_header}>
14702 if ac_fn_c_try_link "$LINENO"; then :
14703 __opj_have_dep="yes"
14705 __opj_have_dep="no"
14707 rm -f core conftest.err conftest.$ac_objext \
14708 conftest$ac_exeext conftest.$ac_ext
14710 CPPFLAGS=${save_CPPFLAGS}
14711 LDFLAGS=${save_LDFLAGS}
14714 if test "x${__opj_prefix}" = "x" ; then
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in standard or predefined directories" >&5
14716 $as_echo_n "checking whether Z library is available in standard or predefined directories... " >&6; }
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in ${__opj_prefix}" >&5
14719 $as_echo_n "checking whether Z library is available in ${__opj_prefix}... " >&6; }
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
14722 $as_echo "${__opj_have_dep}" >&6; }
14724 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
14725 if test "x${Z_CFLAGS}" = "x" ; then
14726 Z_CFLAGS="-I${__opj_prefix}/include"
14728 if test "x${Z_LIBS}" = "x" ; then
14729 Z_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
14733 if test "x${__opj_have_dep}" = "xyes"; then :
14734 __opj_have_dep="yes"
14736 __opj_have_dep="no"
14744 if ! test "x${__opj_have_dep}" = "xyes" ; then
14751 __opj_header=zlib.h
14753 __opj_func=zlibVersion
14754 __opj_have_dep="no"
14756 save_CPPFLAGS=${CPPFLAGS}
14757 save_LDFLAGS=${LDFLAGS}
14760 if test "x${__opj_prefix}" = "x" ; then
14761 CPPFLAGS="${CPPFLAGS} $Z_CFLAGS"
14762 LDFLAGS="${LDFLAGS} $Z_LIBS"
14764 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
14765 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
14766 LIBS="${LIBS} -l${__opj_lib}"
14769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14770 /* end confdefs.h. */
14772 #include <${__opj_header}>
14784 if ac_fn_c_try_link "$LINENO"; then :
14785 __opj_have_dep="yes"
14787 __opj_have_dep="no"
14789 rm -f core conftest.err conftest.$ac_objext \
14790 conftest$ac_exeext conftest.$ac_ext
14792 CPPFLAGS=${save_CPPFLAGS}
14793 LDFLAGS=${save_LDFLAGS}
14796 if test "x${__opj_prefix}" = "x" ; then
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in standard or predefined directories" >&5
14798 $as_echo_n "checking whether Z library is available in standard or predefined directories... " >&6; }
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in ${__opj_prefix}" >&5
14801 $as_echo_n "checking whether Z library is available in ${__opj_prefix}... " >&6; }
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
14804 $as_echo "${__opj_have_dep}" >&6; }
14806 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
14807 if test "x${Z_CFLAGS}" = "x" ; then
14808 Z_CFLAGS="-I${__opj_prefix}/include"
14810 if test "x${Z_LIBS}" = "x" ; then
14811 Z_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
14815 if test "x${__opj_have_dep}" = "xyes"; then :
14816 __opj_have_dep="yes"
14818 __opj_have_dep="no"
14827 if ! test "x${__opj_have_dep}" = "xyes" ; then
14833 __opj_prefix=/usr/local
14834 __opj_header=zlib.h
14836 __opj_func=zlibVersion
14837 __opj_have_dep="no"
14839 save_CPPFLAGS=${CPPFLAGS}
14840 save_LDFLAGS=${LDFLAGS}
14843 if test "x${__opj_prefix}" = "x" ; then
14844 CPPFLAGS="${CPPFLAGS} $Z_CFLAGS"
14845 LDFLAGS="${LDFLAGS} $Z_LIBS"
14847 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
14848 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
14849 LIBS="${LIBS} -l${__opj_lib}"
14852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14853 /* end confdefs.h. */
14855 #include <${__opj_header}>
14867 if ac_fn_c_try_link "$LINENO"; then :
14868 __opj_have_dep="yes"
14870 __opj_have_dep="no"
14872 rm -f core conftest.err conftest.$ac_objext \
14873 conftest$ac_exeext conftest.$ac_ext
14875 CPPFLAGS=${save_CPPFLAGS}
14876 LDFLAGS=${save_LDFLAGS}
14879 if test "x${__opj_prefix}" = "x" ; then
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in standard or predefined directories" >&5
14881 $as_echo_n "checking whether Z library is available in standard or predefined directories... " >&6; }
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in ${__opj_prefix}" >&5
14884 $as_echo_n "checking whether Z library is available in ${__opj_prefix}... " >&6; }
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
14887 $as_echo "${__opj_have_dep}" >&6; }
14889 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
14890 if test "x${Z_CFLAGS}" = "x" ; then
14891 Z_CFLAGS="-I${__opj_prefix}/include"
14893 if test "x${Z_LIBS}" = "x" ; then
14894 Z_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
14898 if test "x${__opj_have_dep}" = "xyes"; then :
14899 __opj_have_dep="yes"
14901 __opj_have_dep="no"
14910 if ! test "x${__opj_have_dep}" = "xyes" ; then
14916 __opj_prefix=/opt/local
14917 __opj_header=zlib.h
14919 __opj_func=zlibVersion
14920 __opj_have_dep="no"
14922 save_CPPFLAGS=${CPPFLAGS}
14923 save_LDFLAGS=${LDFLAGS}
14926 if test "x${__opj_prefix}" = "x" ; then
14927 CPPFLAGS="${CPPFLAGS} $Z_CFLAGS"
14928 LDFLAGS="${LDFLAGS} $Z_LIBS"
14930 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
14931 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
14932 LIBS="${LIBS} -l${__opj_lib}"
14935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14936 /* end confdefs.h. */
14938 #include <${__opj_header}>
14950 if ac_fn_c_try_link "$LINENO"; then :
14951 __opj_have_dep="yes"
14953 __opj_have_dep="no"
14955 rm -f core conftest.err conftest.$ac_objext \
14956 conftest$ac_exeext conftest.$ac_ext
14958 CPPFLAGS=${save_CPPFLAGS}
14959 LDFLAGS=${save_LDFLAGS}
14962 if test "x${__opj_prefix}" = "x" ; then
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in standard or predefined directories" >&5
14964 $as_echo_n "checking whether Z library is available in standard or predefined directories... " >&6; }
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Z library is available in ${__opj_prefix}" >&5
14967 $as_echo_n "checking whether Z library is available in ${__opj_prefix}... " >&6; }
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
14970 $as_echo "${__opj_have_dep}" >&6; }
14972 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
14973 if test "x${Z_CFLAGS}" = "x" ; then
14974 Z_CFLAGS="-I${__opj_prefix}/include"
14976 if test "x${Z_LIBS}" = "x" ; then
14977 Z_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
14981 if test "x${__opj_have_dep}" = "xyes"; then :
14982 __opj_have_dep="yes"
14984 __opj_have_dep="no"
14998 if test "x${__opj_have_dep}" = "xyes"; then :
15004 __opj_have_dep="no"
15014 __opj_func=png_access_version_number
15015 __opj_have_dep="no"
15017 save_CPPFLAGS=${CPPFLAGS}
15018 save_LDFLAGS=${LDFLAGS}
15021 if test "x${__opj_prefix}" = "x" ; then
15022 CPPFLAGS="${CPPFLAGS} $PNG_CFLAGS"
15023 LDFLAGS="${LDFLAGS} $PNG_LIBS"
15025 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
15026 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
15027 LIBS="${LIBS} -l${__opj_lib}"
15030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15031 /* end confdefs.h. */
15033 #include <${__opj_header}>
15045 if ac_fn_c_try_link "$LINENO"; then :
15046 __opj_have_dep="yes"
15048 __opj_have_dep="no"
15050 rm -f core conftest.err conftest.$ac_objext \
15051 conftest$ac_exeext conftest.$ac_ext
15053 CPPFLAGS=${save_CPPFLAGS}
15054 LDFLAGS=${save_LDFLAGS}
15057 if test "x${__opj_prefix}" = "x" ; then
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in standard or predefined directories" >&5
15059 $as_echo_n "checking whether PNG library is available in standard or predefined directories... " >&6; }
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in ${__opj_prefix}" >&5
15062 $as_echo_n "checking whether PNG library is available in ${__opj_prefix}... " >&6; }
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
15065 $as_echo "${__opj_have_dep}" >&6; }
15067 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
15068 if test "x${PNG_CFLAGS}" = "x" ; then
15069 PNG_CFLAGS="-I${__opj_prefix}/include"
15071 if test "x${PNG_LIBS}" = "x" ; then
15072 PNG_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
15076 if test "x${__opj_have_dep}" = "xyes"; then :
15077 __opj_have_dep="yes"
15079 __opj_have_dep="no"
15087 if ! test "x${__opj_have_dep}" = "xyes" ; then
15096 __opj_func=png_access_version_number
15097 __opj_have_dep="no"
15099 save_CPPFLAGS=${CPPFLAGS}
15100 save_LDFLAGS=${LDFLAGS}
15103 if test "x${__opj_prefix}" = "x" ; then
15104 CPPFLAGS="${CPPFLAGS} $PNG_CFLAGS"
15105 LDFLAGS="${LDFLAGS} $PNG_LIBS"
15107 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
15108 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
15109 LIBS="${LIBS} -l${__opj_lib}"
15112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15113 /* end confdefs.h. */
15115 #include <${__opj_header}>
15127 if ac_fn_c_try_link "$LINENO"; then :
15128 __opj_have_dep="yes"
15130 __opj_have_dep="no"
15132 rm -f core conftest.err conftest.$ac_objext \
15133 conftest$ac_exeext conftest.$ac_ext
15135 CPPFLAGS=${save_CPPFLAGS}
15136 LDFLAGS=${save_LDFLAGS}
15139 if test "x${__opj_prefix}" = "x" ; then
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in standard or predefined directories" >&5
15141 $as_echo_n "checking whether PNG library is available in standard or predefined directories... " >&6; }
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in ${__opj_prefix}" >&5
15144 $as_echo_n "checking whether PNG library is available in ${__opj_prefix}... " >&6; }
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
15147 $as_echo "${__opj_have_dep}" >&6; }
15149 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
15150 if test "x${PNG_CFLAGS}" = "x" ; then
15151 PNG_CFLAGS="-I${__opj_prefix}/include"
15153 if test "x${PNG_LIBS}" = "x" ; then
15154 PNG_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
15158 if test "x${__opj_have_dep}" = "xyes"; then :
15159 __opj_have_dep="yes"
15161 __opj_have_dep="no"
15170 if ! test "x${__opj_have_dep}" = "xyes" ; then
15176 __opj_prefix=/usr/local
15179 __opj_func=png_access_version_number
15180 __opj_have_dep="no"
15182 save_CPPFLAGS=${CPPFLAGS}
15183 save_LDFLAGS=${LDFLAGS}
15186 if test "x${__opj_prefix}" = "x" ; then
15187 CPPFLAGS="${CPPFLAGS} $PNG_CFLAGS"
15188 LDFLAGS="${LDFLAGS} $PNG_LIBS"
15190 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
15191 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
15192 LIBS="${LIBS} -l${__opj_lib}"
15195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15196 /* end confdefs.h. */
15198 #include <${__opj_header}>
15210 if ac_fn_c_try_link "$LINENO"; then :
15211 __opj_have_dep="yes"
15213 __opj_have_dep="no"
15215 rm -f core conftest.err conftest.$ac_objext \
15216 conftest$ac_exeext conftest.$ac_ext
15218 CPPFLAGS=${save_CPPFLAGS}
15219 LDFLAGS=${save_LDFLAGS}
15222 if test "x${__opj_prefix}" = "x" ; then
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in standard or predefined directories" >&5
15224 $as_echo_n "checking whether PNG library is available in standard or predefined directories... " >&6; }
15226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in ${__opj_prefix}" >&5
15227 $as_echo_n "checking whether PNG library is available in ${__opj_prefix}... " >&6; }
15229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
15230 $as_echo "${__opj_have_dep}" >&6; }
15232 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
15233 if test "x${PNG_CFLAGS}" = "x" ; then
15234 PNG_CFLAGS="-I${__opj_prefix}/include"
15236 if test "x${PNG_LIBS}" = "x" ; then
15237 PNG_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
15241 if test "x${__opj_have_dep}" = "xyes"; then :
15242 __opj_have_dep="yes"
15244 __opj_have_dep="no"
15253 if ! test "x${__opj_have_dep}" = "xyes" ; then
15259 __opj_prefix=/opt/local
15262 __opj_func=png_access_version_number
15263 __opj_have_dep="no"
15265 save_CPPFLAGS=${CPPFLAGS}
15266 save_LDFLAGS=${LDFLAGS}
15269 if test "x${__opj_prefix}" = "x" ; then
15270 CPPFLAGS="${CPPFLAGS} $PNG_CFLAGS"
15271 LDFLAGS="${LDFLAGS} $PNG_LIBS"
15273 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
15274 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
15275 LIBS="${LIBS} -l${__opj_lib}"
15278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15279 /* end confdefs.h. */
15281 #include <${__opj_header}>
15293 if ac_fn_c_try_link "$LINENO"; then :
15294 __opj_have_dep="yes"
15296 __opj_have_dep="no"
15298 rm -f core conftest.err conftest.$ac_objext \
15299 conftest$ac_exeext conftest.$ac_ext
15301 CPPFLAGS=${save_CPPFLAGS}
15302 LDFLAGS=${save_LDFLAGS}
15305 if test "x${__opj_prefix}" = "x" ; then
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in standard or predefined directories" >&5
15307 $as_echo_n "checking whether PNG library is available in standard or predefined directories... " >&6; }
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG library is available in ${__opj_prefix}" >&5
15310 $as_echo_n "checking whether PNG library is available in ${__opj_prefix}... " >&6; }
15312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
15313 $as_echo "${__opj_have_dep}" >&6; }
15315 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
15316 if test "x${PNG_CFLAGS}" = "x" ; then
15317 PNG_CFLAGS="-I${__opj_prefix}/include"
15319 if test "x${PNG_LIBS}" = "x" ; then
15320 PNG_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
15324 if test "x${__opj_have_dep}" = "xyes"; then :
15325 __opj_have_dep="yes"
15327 __opj_have_dep="no"
15341 if test "x${__opj_have_dep}" = "xyes"; then :
15344 PNG_CFLAGS="${PNG_CFLAGS} ${Z_CFLAGS}"
15345 PNG_LIBS="${PNG_LIBS} ${Z_LIBS}"
15365 if test "x${have_libpng}" = "xno" ; then
15366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find a usuable PNG library. Make sure that CPPFLAGS and LDFLAGS are correctly set." >&5
15367 $as_echo "$as_me: WARNING: Can not find a usuable PNG library. Make sure that CPPFLAGS and LDFLAGS are correctly set." >&2;}
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether PNG is available" >&5
15373 $as_echo_n "checking whether PNG is available... " >&6; }
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_libpng}" >&5
15375 $as_echo "${have_libpng}" >&6; }
15377 if test "x${have_libpng}" = "xyes" ; then
15379 $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
15383 if test x${have_libpng} = "xyes"; then
15385 with_libpng_FALSE='#'
15387 with_libpng_TRUE='#'
15396 # Check whether --enable-tiff was given.
15397 if test "${enable_tiff+set}" = set; then :
15398 enableval=$enable_tiff;
15399 if test "x${enableval}" = "xyes" ; then
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with TIFF support" >&5
15411 $as_echo_n "checking whether to build with TIFF support... " >&6; }
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_tiff}" >&5
15413 $as_echo "${want_tiff}" >&6; }
15415 if test "x${want_tiff}" = "xyes" ; then
15421 __opj_have_dep="no"
15429 __opj_header=tiff.h
15431 __opj_func=TIFFOpen
15432 __opj_have_dep="no"
15434 save_CPPFLAGS=${CPPFLAGS}
15435 save_LDFLAGS=${LDFLAGS}
15438 if test "x${__opj_prefix}" = "x" ; then
15439 CPPFLAGS="${CPPFLAGS} $TIFF_CFLAGS"
15440 LDFLAGS="${LDFLAGS} $TIFF_LIBS"
15442 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
15443 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
15444 LIBS="${LIBS} -l${__opj_lib}"
15447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15448 /* end confdefs.h. */
15450 #include <${__opj_header}>
15462 if ac_fn_c_try_link "$LINENO"; then :
15463 __opj_have_dep="yes"
15465 __opj_have_dep="no"
15467 rm -f core conftest.err conftest.$ac_objext \
15468 conftest$ac_exeext conftest.$ac_ext
15470 CPPFLAGS=${save_CPPFLAGS}
15471 LDFLAGS=${save_LDFLAGS}
15474 if test "x${__opj_prefix}" = "x" ; then
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in standard or predefined directories" >&5
15476 $as_echo_n "checking whether TIFF library is available in standard or predefined directories... " >&6; }
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in ${__opj_prefix}" >&5
15479 $as_echo_n "checking whether TIFF library is available in ${__opj_prefix}... " >&6; }
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
15482 $as_echo "${__opj_have_dep}" >&6; }
15484 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
15485 if test "x${TIFF_CFLAGS}" = "x" ; then
15486 TIFF_CFLAGS="-I${__opj_prefix}/include"
15488 if test "x${TIFF_LIBS}" = "x" ; then
15489 TIFF_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
15493 if test "x${__opj_have_dep}" = "xyes"; then :
15494 __opj_have_dep="yes"
15496 __opj_have_dep="no"
15504 if ! test "x${__opj_have_dep}" = "xyes" ; then
15511 __opj_header=tiff.h
15513 __opj_func=TIFFOpen
15514 __opj_have_dep="no"
15516 save_CPPFLAGS=${CPPFLAGS}
15517 save_LDFLAGS=${LDFLAGS}
15520 if test "x${__opj_prefix}" = "x" ; then
15521 CPPFLAGS="${CPPFLAGS} $TIFF_CFLAGS"
15522 LDFLAGS="${LDFLAGS} $TIFF_LIBS"
15524 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
15525 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
15526 LIBS="${LIBS} -l${__opj_lib}"
15529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15530 /* end confdefs.h. */
15532 #include <${__opj_header}>
15544 if ac_fn_c_try_link "$LINENO"; then :
15545 __opj_have_dep="yes"
15547 __opj_have_dep="no"
15549 rm -f core conftest.err conftest.$ac_objext \
15550 conftest$ac_exeext conftest.$ac_ext
15552 CPPFLAGS=${save_CPPFLAGS}
15553 LDFLAGS=${save_LDFLAGS}
15556 if test "x${__opj_prefix}" = "x" ; then
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in standard or predefined directories" >&5
15558 $as_echo_n "checking whether TIFF library is available in standard or predefined directories... " >&6; }
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in ${__opj_prefix}" >&5
15561 $as_echo_n "checking whether TIFF library is available in ${__opj_prefix}... " >&6; }
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
15564 $as_echo "${__opj_have_dep}" >&6; }
15566 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
15567 if test "x${TIFF_CFLAGS}" = "x" ; then
15568 TIFF_CFLAGS="-I${__opj_prefix}/include"
15570 if test "x${TIFF_LIBS}" = "x" ; then
15571 TIFF_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
15575 if test "x${__opj_have_dep}" = "xyes"; then :
15576 __opj_have_dep="yes"
15578 __opj_have_dep="no"
15587 if ! test "x${__opj_have_dep}" = "xyes" ; then
15593 __opj_prefix=/usr/local
15594 __opj_header=tiff.h
15596 __opj_func=TIFFOpen
15597 __opj_have_dep="no"
15599 save_CPPFLAGS=${CPPFLAGS}
15600 save_LDFLAGS=${LDFLAGS}
15603 if test "x${__opj_prefix}" = "x" ; then
15604 CPPFLAGS="${CPPFLAGS} $TIFF_CFLAGS"
15605 LDFLAGS="${LDFLAGS} $TIFF_LIBS"
15607 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
15608 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
15609 LIBS="${LIBS} -l${__opj_lib}"
15612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15613 /* end confdefs.h. */
15615 #include <${__opj_header}>
15627 if ac_fn_c_try_link "$LINENO"; then :
15628 __opj_have_dep="yes"
15630 __opj_have_dep="no"
15632 rm -f core conftest.err conftest.$ac_objext \
15633 conftest$ac_exeext conftest.$ac_ext
15635 CPPFLAGS=${save_CPPFLAGS}
15636 LDFLAGS=${save_LDFLAGS}
15639 if test "x${__opj_prefix}" = "x" ; then
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in standard or predefined directories" >&5
15641 $as_echo_n "checking whether TIFF library is available in standard or predefined directories... " >&6; }
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in ${__opj_prefix}" >&5
15644 $as_echo_n "checking whether TIFF library is available in ${__opj_prefix}... " >&6; }
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
15647 $as_echo "${__opj_have_dep}" >&6; }
15649 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
15650 if test "x${TIFF_CFLAGS}" = "x" ; then
15651 TIFF_CFLAGS="-I${__opj_prefix}/include"
15653 if test "x${TIFF_LIBS}" = "x" ; then
15654 TIFF_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
15658 if test "x${__opj_have_dep}" = "xyes"; then :
15659 __opj_have_dep="yes"
15661 __opj_have_dep="no"
15670 if ! test "x${__opj_have_dep}" = "xyes" ; then
15676 __opj_prefix=/opt/local
15677 __opj_header=tiff.h
15679 __opj_func=TIFFOpen
15680 __opj_have_dep="no"
15682 save_CPPFLAGS=${CPPFLAGS}
15683 save_LDFLAGS=${LDFLAGS}
15686 if test "x${__opj_prefix}" = "x" ; then
15687 CPPFLAGS="${CPPFLAGS} $TIFF_CFLAGS"
15688 LDFLAGS="${LDFLAGS} $TIFF_LIBS"
15690 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
15691 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
15692 LIBS="${LIBS} -l${__opj_lib}"
15695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15696 /* end confdefs.h. */
15698 #include <${__opj_header}>
15710 if ac_fn_c_try_link "$LINENO"; then :
15711 __opj_have_dep="yes"
15713 __opj_have_dep="no"
15715 rm -f core conftest.err conftest.$ac_objext \
15716 conftest$ac_exeext conftest.$ac_ext
15718 CPPFLAGS=${save_CPPFLAGS}
15719 LDFLAGS=${save_LDFLAGS}
15722 if test "x${__opj_prefix}" = "x" ; then
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in standard or predefined directories" >&5
15724 $as_echo_n "checking whether TIFF library is available in standard or predefined directories... " >&6; }
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF library is available in ${__opj_prefix}" >&5
15727 $as_echo_n "checking whether TIFF library is available in ${__opj_prefix}... " >&6; }
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
15730 $as_echo "${__opj_have_dep}" >&6; }
15732 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
15733 if test "x${TIFF_CFLAGS}" = "x" ; then
15734 TIFF_CFLAGS="-I${__opj_prefix}/include"
15736 if test "x${TIFF_LIBS}" = "x" ; then
15737 TIFF_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
15741 if test "x${__opj_have_dep}" = "xyes"; then :
15742 __opj_have_dep="yes"
15744 __opj_have_dep="no"
15758 if test "x${__opj_have_dep}" = "xyes"; then :
15768 if test "x${have_libtiff}" = "xno" ; then
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find a usuable TIFF library. Make sure that CPPFLAGS and LDFLAGS are correctly set." >&5
15770 $as_echo "$as_me: WARNING: Can not find a usuable TIFF library. Make sure that CPPFLAGS and LDFLAGS are correctly set." >&2;}
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether TIFF is available" >&5
15775 $as_echo_n "checking whether TIFF is available... " >&6; }
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_libtiff}" >&5
15777 $as_echo "${have_libtiff}" >&6; }
15779 if test "x${have_libtiff}" = "xyes" ; then
15781 $as_echo "#define HAVE_LIBTIFF 1" >>confdefs.h
15785 if test "x${have_libtiff}" = "xyes"; then
15787 with_libtiff_FALSE='#'
15789 with_libtiff_TRUE='#'
15790 with_libtiff_FALSE=
15799 # Check whether --enable-lcms2 was given.
15800 if test "${enable_lcms2+set}" = set; then :
15801 enableval=$enable_lcms2;
15802 if test "x${enableval}" = "xyes" ; then
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LCMS-2 support" >&5
15814 $as_echo_n "checking whether to build with LCMS-2 support... " >&6; }
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_lcms2}" >&5
15816 $as_echo "${want_lcms2}" >&6; }
15818 if test "x${want_lcms2}" = "xyes" ; then
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS2" >&5
15822 $as_echo_n "checking for LCMS2... " >&6; }
15824 if test -n "$LCMS2_CFLAGS"; then
15825 pkg_cv_LCMS2_CFLAGS="$LCMS2_CFLAGS"
15826 elif test -n "$PKG_CONFIG"; then
15827 if test -n "$PKG_CONFIG" && \
15828 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5
15829 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5
15831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15832 test $ac_status = 0; }; then
15833 pkg_cv_LCMS2_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null`
15840 if test -n "$LCMS2_LIBS"; then
15841 pkg_cv_LCMS2_LIBS="$LCMS2_LIBS"
15842 elif test -n "$PKG_CONFIG"; then
15843 if test -n "$PKG_CONFIG" && \
15844 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5
15845 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5
15847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15848 test $ac_status = 0; }; then
15849 pkg_cv_LCMS2_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null`
15859 if test $pkg_failed = yes; then
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15861 $as_echo "no" >&6; }
15863 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15864 _pkg_short_errors_supported=yes
15866 _pkg_short_errors_supported=no
15868 if test $_pkg_short_errors_supported = yes; then
15869 LCMS2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1`
15871 LCMS2_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1`
15873 # Put the nasty error message in config.log where it belongs
15874 echo "$LCMS2_PKG_ERRORS" >&5
15877 elif test $pkg_failed = untried; then
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15879 $as_echo "no" >&6; }
15882 LCMS2_CFLAGS=$pkg_cv_LCMS2_CFLAGS
15883 LCMS2_LIBS=$pkg_cv_LCMS2_LIBS
15884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15885 $as_echo "yes" >&6; }
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LCMS-2 is available" >&5
15891 $as_echo_n "checking whether LCMS-2 is available... " >&6; }
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_lcms2}" >&5
15893 $as_echo "${have_lcms2}" >&6; }
15895 if test "x${have_lcms2}" = "xyes" ; then
15897 $as_echo "#define HAVE_LIBLCMS2 1" >>confdefs.h
15899 lcms_output="lcms version 2.x"
15904 # Check whether --enable-lcms1 was given.
15905 if test "${enable_lcms1+set}" = set; then :
15906 enableval=$enable_lcms1;
15907 if test "x${enableval}" = "xyes" ; then
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with LCMS-1 support" >&5
15919 $as_echo_n "checking whether to build with LCMS-1 support... " >&6; }
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${want_lcms1}" >&5
15921 $as_echo "${want_lcms1}" >&6; }
15923 if test "x${have_lcms2}" = "xno" ; then
15925 if test "x${want_lcms1}" = "xyes" ; then
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS1" >&5
15929 $as_echo_n "checking for LCMS1... " >&6; }
15931 if test -n "$LCMS1_CFLAGS"; then
15932 pkg_cv_LCMS1_CFLAGS="$LCMS1_CFLAGS"
15933 elif test -n "$PKG_CONFIG"; then
15934 if test -n "$PKG_CONFIG" && \
15935 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms1\""; } >&5
15936 ($PKG_CONFIG --exists --print-errors "lcms1") 2>&5
15938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15939 test $ac_status = 0; }; then
15940 pkg_cv_LCMS1_CFLAGS=`$PKG_CONFIG --cflags "lcms1" 2>/dev/null`
15947 if test -n "$LCMS1_LIBS"; then
15948 pkg_cv_LCMS1_LIBS="$LCMS1_LIBS"
15949 elif test -n "$PKG_CONFIG"; then
15950 if test -n "$PKG_CONFIG" && \
15951 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms1\""; } >&5
15952 ($PKG_CONFIG --exists --print-errors "lcms1") 2>&5
15954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15955 test $ac_status = 0; }; then
15956 pkg_cv_LCMS1_LIBS=`$PKG_CONFIG --libs "lcms1" 2>/dev/null`
15966 if test $pkg_failed = yes; then
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15968 $as_echo "no" >&6; }
15970 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15971 _pkg_short_errors_supported=yes
15973 _pkg_short_errors_supported=no
15975 if test $_pkg_short_errors_supported = yes; then
15976 LCMS1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms1" 2>&1`
15978 LCMS1_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms1" 2>&1`
15980 # Put the nasty error message in config.log where it belongs
15981 echo "$LCMS1_PKG_ERRORS" >&5
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS1" >&5
15986 $as_echo_n "checking for LCMS1... " >&6; }
15988 if test -n "$LCMS1_CFLAGS"; then
15989 pkg_cv_LCMS1_CFLAGS="$LCMS1_CFLAGS"
15990 elif test -n "$PKG_CONFIG"; then
15991 if test -n "$PKG_CONFIG" && \
15992 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
15993 ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
15995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15996 test $ac_status = 0; }; then
15997 pkg_cv_LCMS1_CFLAGS=`$PKG_CONFIG --cflags "lcms" 2>/dev/null`
16004 if test -n "$LCMS1_LIBS"; then
16005 pkg_cv_LCMS1_LIBS="$LCMS1_LIBS"
16006 elif test -n "$PKG_CONFIG"; then
16007 if test -n "$PKG_CONFIG" && \
16008 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
16009 ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
16011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16012 test $ac_status = 0; }; then
16013 pkg_cv_LCMS1_LIBS=`$PKG_CONFIG --libs "lcms" 2>/dev/null`
16023 if test $pkg_failed = yes; then
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16025 $as_echo "no" >&6; }
16027 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16028 _pkg_short_errors_supported=yes
16030 _pkg_short_errors_supported=no
16032 if test $_pkg_short_errors_supported = yes; then
16033 LCMS1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms" 2>&1`
16035 LCMS1_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms" 2>&1`
16037 # Put the nasty error message in config.log where it belongs
16038 echo "$LCMS1_PKG_ERRORS" >&5
16041 elif test $pkg_failed = untried; then
16042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16043 $as_echo "no" >&6; }
16046 LCMS1_CFLAGS=$pkg_cv_LCMS1_CFLAGS
16047 LCMS1_LIBS=$pkg_cv_LCMS1_LIBS
16048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16049 $as_echo "yes" >&6; }
16052 elif test $pkg_failed = untried; then
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16054 $as_echo "no" >&6; }
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS1" >&5
16058 $as_echo_n "checking for LCMS1... " >&6; }
16060 if test -n "$LCMS1_CFLAGS"; then
16061 pkg_cv_LCMS1_CFLAGS="$LCMS1_CFLAGS"
16062 elif test -n "$PKG_CONFIG"; then
16063 if test -n "$PKG_CONFIG" && \
16064 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
16065 ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
16067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16068 test $ac_status = 0; }; then
16069 pkg_cv_LCMS1_CFLAGS=`$PKG_CONFIG --cflags "lcms" 2>/dev/null`
16076 if test -n "$LCMS1_LIBS"; then
16077 pkg_cv_LCMS1_LIBS="$LCMS1_LIBS"
16078 elif test -n "$PKG_CONFIG"; then
16079 if test -n "$PKG_CONFIG" && \
16080 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms\""; } >&5
16081 ($PKG_CONFIG --exists --print-errors "lcms") 2>&5
16083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16084 test $ac_status = 0; }; then
16085 pkg_cv_LCMS1_LIBS=`$PKG_CONFIG --libs "lcms" 2>/dev/null`
16095 if test $pkg_failed = yes; then
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16097 $as_echo "no" >&6; }
16099 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16100 _pkg_short_errors_supported=yes
16102 _pkg_short_errors_supported=no
16104 if test $_pkg_short_errors_supported = yes; then
16105 LCMS1_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms" 2>&1`
16107 LCMS1_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms" 2>&1`
16109 # Put the nasty error message in config.log where it belongs
16110 echo "$LCMS1_PKG_ERRORS" >&5
16113 elif test $pkg_failed = untried; then
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16115 $as_echo "no" >&6; }
16118 LCMS1_CFLAGS=$pkg_cv_LCMS1_CFLAGS
16119 LCMS1_LIBS=$pkg_cv_LCMS1_LIBS
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16121 $as_echo "yes" >&6; }
16125 LCMS1_CFLAGS=$pkg_cv_LCMS1_CFLAGS
16126 LCMS1_LIBS=$pkg_cv_LCMS1_LIBS
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16128 $as_echo "yes" >&6; }
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether LCMS-1 is available" >&5
16134 $as_echo_n "checking whether LCMS-1 is available... " >&6; }
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_lcms1}" >&5
16136 $as_echo "${have_lcms1}" >&6; }
16138 if test "x${have_lcms1}" = "xyes" ; then
16140 $as_echo "#define HAVE_LIBLCMS1 1" >>confdefs.h
16142 lcms_output="lcms version 1.x"
16149 if test "x${want_jpip_server}" = "xyes" ; then
16151 if test "x${have_win32}" = "xno" ; then
16153 SAVE_CFLAGS=${CFLAGS}
16154 CFLAGS="${CFLAGS} -pthread"
16156 LIBS="${LIBS} -pthread"
16157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16158 /* end confdefs.h. */
16160 #include <pthread.h>
16167 id = pthread_self();
16173 if ac_fn_c_try_link "$LINENO"; then :
16178 rm -f core conftest.err conftest.$ac_objext \
16179 conftest$ac_exeext conftest.$ac_ext
16180 CFLAGS=${SAVE_CFLAGS}
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Pthread library is available" >&5
16184 $as_echo_n "checking whether Pthread library is available... " >&6; }
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_pthread}" >&5
16186 $as_echo "${have_pthread}" >&6; }
16188 if ! test "x${have_pthread}" = "xyes" ; then
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Pthread library not found. OpenJPIP server will not be compiled." >&5
16190 $as_echo "$as_me: WARNING: Pthread library not found. OpenJPIP server will not be compiled." >&2;}
16191 want_jpip_server="no"
16193 THREAD_CFLAGS="-pthread"
16194 THREAD_LIBS="-pthread"
16198 THREAD_LIBS="-lws2_32"
16210 if test "x${want_jpip_server}" = "xyes" ; then
16217 __opj_have_dep="no"
16225 __opj_header=fcgi_stdio.h
16227 __opj_func=FCGI_Accept
16228 __opj_have_dep="no"
16230 save_CPPFLAGS=${CPPFLAGS}
16231 save_LDFLAGS=${LDFLAGS}
16234 if test "x${__opj_prefix}" = "x" ; then
16235 CPPFLAGS="${CPPFLAGS} $FCGI_CFLAGS"
16236 LDFLAGS="${LDFLAGS} $FCGI_LIBS"
16238 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
16239 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
16240 LIBS="${LIBS} -l${__opj_lib}"
16243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16244 /* end confdefs.h. */
16246 #include <${__opj_header}>
16258 if ac_fn_c_try_link "$LINENO"; then :
16259 __opj_have_dep="yes"
16261 __opj_have_dep="no"
16263 rm -f core conftest.err conftest.$ac_objext \
16264 conftest$ac_exeext conftest.$ac_ext
16266 CPPFLAGS=${save_CPPFLAGS}
16267 LDFLAGS=${save_LDFLAGS}
16270 if test "x${__opj_prefix}" = "x" ; then
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in standard or predefined directories" >&5
16272 $as_echo_n "checking whether FCGI library is available in standard or predefined directories... " >&6; }
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in ${__opj_prefix}" >&5
16275 $as_echo_n "checking whether FCGI library is available in ${__opj_prefix}... " >&6; }
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
16278 $as_echo "${__opj_have_dep}" >&6; }
16280 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
16281 if test "x${FCGI_CFLAGS}" = "x" ; then
16282 FCGI_CFLAGS="-I${__opj_prefix}/include"
16284 if test "x${FCGI_LIBS}" = "x" ; then
16285 FCGI_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
16289 if test "x${__opj_have_dep}" = "xyes"; then :
16290 __opj_have_dep="yes"
16292 __opj_have_dep="no"
16300 if ! test "x${__opj_have_dep}" = "xyes" ; then
16307 __opj_header=fcgi_stdio.h
16309 __opj_func=FCGI_Accept
16310 __opj_have_dep="no"
16312 save_CPPFLAGS=${CPPFLAGS}
16313 save_LDFLAGS=${LDFLAGS}
16316 if test "x${__opj_prefix}" = "x" ; then
16317 CPPFLAGS="${CPPFLAGS} $FCGI_CFLAGS"
16318 LDFLAGS="${LDFLAGS} $FCGI_LIBS"
16320 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
16321 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
16322 LIBS="${LIBS} -l${__opj_lib}"
16325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16326 /* end confdefs.h. */
16328 #include <${__opj_header}>
16340 if ac_fn_c_try_link "$LINENO"; then :
16341 __opj_have_dep="yes"
16343 __opj_have_dep="no"
16345 rm -f core conftest.err conftest.$ac_objext \
16346 conftest$ac_exeext conftest.$ac_ext
16348 CPPFLAGS=${save_CPPFLAGS}
16349 LDFLAGS=${save_LDFLAGS}
16352 if test "x${__opj_prefix}" = "x" ; then
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in standard or predefined directories" >&5
16354 $as_echo_n "checking whether FCGI library is available in standard or predefined directories... " >&6; }
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in ${__opj_prefix}" >&5
16357 $as_echo_n "checking whether FCGI library is available in ${__opj_prefix}... " >&6; }
16359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
16360 $as_echo "${__opj_have_dep}" >&6; }
16362 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
16363 if test "x${FCGI_CFLAGS}" = "x" ; then
16364 FCGI_CFLAGS="-I${__opj_prefix}/include"
16366 if test "x${FCGI_LIBS}" = "x" ; then
16367 FCGI_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
16371 if test "x${__opj_have_dep}" = "xyes"; then :
16372 __opj_have_dep="yes"
16374 __opj_have_dep="no"
16383 if ! test "x${__opj_have_dep}" = "xyes" ; then
16389 __opj_prefix=/usr/local
16390 __opj_header=fcgi_stdio.h
16392 __opj_func=FCGI_Accept
16393 __opj_have_dep="no"
16395 save_CPPFLAGS=${CPPFLAGS}
16396 save_LDFLAGS=${LDFLAGS}
16399 if test "x${__opj_prefix}" = "x" ; then
16400 CPPFLAGS="${CPPFLAGS} $FCGI_CFLAGS"
16401 LDFLAGS="${LDFLAGS} $FCGI_LIBS"
16403 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
16404 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
16405 LIBS="${LIBS} -l${__opj_lib}"
16408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16409 /* end confdefs.h. */
16411 #include <${__opj_header}>
16423 if ac_fn_c_try_link "$LINENO"; then :
16424 __opj_have_dep="yes"
16426 __opj_have_dep="no"
16428 rm -f core conftest.err conftest.$ac_objext \
16429 conftest$ac_exeext conftest.$ac_ext
16431 CPPFLAGS=${save_CPPFLAGS}
16432 LDFLAGS=${save_LDFLAGS}
16435 if test "x${__opj_prefix}" = "x" ; then
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in standard or predefined directories" >&5
16437 $as_echo_n "checking whether FCGI library is available in standard or predefined directories... " >&6; }
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in ${__opj_prefix}" >&5
16440 $as_echo_n "checking whether FCGI library is available in ${__opj_prefix}... " >&6; }
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
16443 $as_echo "${__opj_have_dep}" >&6; }
16445 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
16446 if test "x${FCGI_CFLAGS}" = "x" ; then
16447 FCGI_CFLAGS="-I${__opj_prefix}/include"
16449 if test "x${FCGI_LIBS}" = "x" ; then
16450 FCGI_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
16454 if test "x${__opj_have_dep}" = "xyes"; then :
16455 __opj_have_dep="yes"
16457 __opj_have_dep="no"
16466 if ! test "x${__opj_have_dep}" = "xyes" ; then
16472 __opj_prefix=/opt/local
16473 __opj_header=fcgi_stdio.h
16475 __opj_func=FCGI_Accept
16476 __opj_have_dep="no"
16478 save_CPPFLAGS=${CPPFLAGS}
16479 save_LDFLAGS=${LDFLAGS}
16482 if test "x${__opj_prefix}" = "x" ; then
16483 CPPFLAGS="${CPPFLAGS} $FCGI_CFLAGS"
16484 LDFLAGS="${LDFLAGS} $FCGI_LIBS"
16486 CPPFLAGS="${CPPFLAGS} -I${__opj_prefix}/include"
16487 LDFLAGS="${LDFLAGS} -L${__opj_prefix}/lib"
16488 LIBS="${LIBS} -l${__opj_lib}"
16491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16492 /* end confdefs.h. */
16494 #include <${__opj_header}>
16506 if ac_fn_c_try_link "$LINENO"; then :
16507 __opj_have_dep="yes"
16509 __opj_have_dep="no"
16511 rm -f core conftest.err conftest.$ac_objext \
16512 conftest$ac_exeext conftest.$ac_ext
16514 CPPFLAGS=${save_CPPFLAGS}
16515 LDFLAGS=${save_LDFLAGS}
16518 if test "x${__opj_prefix}" = "x" ; then
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in standard or predefined directories" >&5
16520 $as_echo_n "checking whether FCGI library is available in standard or predefined directories... " >&6; }
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether FCGI library is available in ${__opj_prefix}" >&5
16523 $as_echo_n "checking whether FCGI library is available in ${__opj_prefix}... " >&6; }
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${__opj_have_dep}" >&5
16526 $as_echo "${__opj_have_dep}" >&6; }
16528 if test "x${__opj_have_dep}" = "xyes" && ! test "x${__opj_prefix}" = "x"; then
16529 if test "x${FCGI_CFLAGS}" = "x" ; then
16530 FCGI_CFLAGS="-I${__opj_prefix}/include"
16532 if test "x${FCGI_LIBS}" = "x" ; then
16533 FCGI_LIBS="-L${__opj_prefix}/lib -l${__opj_lib}"
16537 if test "x${__opj_have_dep}" = "xyes"; then :
16538 __opj_have_dep="yes"
16540 __opj_have_dep="no"
16554 if test "x${__opj_have_dep}" = "xyes"; then :
16564 if ! test "x${have_fcgi}" = "xyes" ; then
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: FastCGI library not found. OpenJPIP server will not be compiled." >&5
16566 $as_echo "$as_me: WARNING: FastCGI library not found. OpenJPIP server will not be compiled." >&2;}
16567 want_jpip_server="no"
16574 if test "x${want_jpip_server}" = "xyes" ; then
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBCURL" >&5
16579 $as_echo_n "checking for LIBCURL... " >&6; }
16581 if test -n "$LIBCURL_CFLAGS"; then
16582 pkg_cv_LIBCURL_CFLAGS="$LIBCURL_CFLAGS"
16583 elif test -n "$PKG_CONFIG"; then
16584 if test -n "$PKG_CONFIG" && \
16585 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
16586 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
16588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16589 test $ac_status = 0; }; then
16590 pkg_cv_LIBCURL_CFLAGS=`$PKG_CONFIG --cflags "libcurl" 2>/dev/null`
16597 if test -n "$LIBCURL_LIBS"; then
16598 pkg_cv_LIBCURL_LIBS="$LIBCURL_LIBS"
16599 elif test -n "$PKG_CONFIG"; then
16600 if test -n "$PKG_CONFIG" && \
16601 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcurl\""; } >&5
16602 ($PKG_CONFIG --exists --print-errors "libcurl") 2>&5
16604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16605 test $ac_status = 0; }; then
16606 pkg_cv_LIBCURL_LIBS=`$PKG_CONFIG --libs "libcurl" 2>/dev/null`
16616 if test $pkg_failed = yes; then
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16618 $as_echo "no" >&6; }
16620 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16621 _pkg_short_errors_supported=yes
16623 _pkg_short_errors_supported=no
16625 if test $_pkg_short_errors_supported = yes; then
16626 LIBCURL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libcurl" 2>&1`
16628 LIBCURL_PKG_ERRORS=`$PKG_CONFIG --print-errors "libcurl" 2>&1`
16630 # Put the nasty error message in config.log where it belongs
16631 echo "$LIBCURL_PKG_ERRORS" >&5
16634 elif test $pkg_failed = untried; then
16635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16636 $as_echo "no" >&6; }
16639 LIBCURL_CFLAGS=$pkg_cv_LIBCURL_CFLAGS
16640 LIBCURL_LIBS=$pkg_cv_LIBCURL_LIBS
16641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16642 $as_echo "yes" >&6; }
16646 if ! test "x${have_libcurl}" = "xyes" ; then
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libcurl library not found. OpenJPIP server will not be compiled." >&5
16648 $as_echo "$as_me: WARNING: libcurl library not found. OpenJPIP server will not be compiled." >&2;}
16649 want_jpip_server="no"
16654 if test "x${want_jpip}" = "xyes" ; then
16656 $as_echo "#define USE_JPIP 1" >>confdefs.h
16660 if test "x${want_jpip}" = "xyes"; then
16662 WANT_JPIP_FALSE='#'
16669 if test "x${want_jpip_server}" = "xyes" ; then
16671 $as_echo "#define USE_JPIP_SERVER 1" >>confdefs.h
16675 if test "x${want_jpip_server}" = "xyes"; then
16676 WANT_JPIP_SERVER_TRUE=
16677 WANT_JPIP_SERVER_FALSE='#'
16679 WANT_JPIP_SERVER_TRUE='#'
16680 WANT_JPIP_SERVER_FALSE=
16684 if test "x${want_jpip}" = "xyes" || test "x${want_jpip_server}" = "xyes"; then
16685 WANT_JPIP_CODE_TRUE=
16686 WANT_JPIP_CODE_FALSE='#'
16688 WANT_JPIP_CODE_TRUE='#'
16689 WANT_JPIP_CODE_FALSE=
16693 ### Checks for header files
16695 ## FIXME: declarations must be fixed in source code. See autoconf manual
16696 ac_header_dirent=no
16697 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
16698 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
16700 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
16701 if eval \${$as_ac_Header+:} false; then :
16702 $as_echo_n "(cached) " >&6
16704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16705 /* end confdefs.h. */
16706 #include <sys/types.h>
16718 if ac_fn_c_try_compile "$LINENO"; then :
16719 eval "$as_ac_Header=yes"
16721 eval "$as_ac_Header=no"
16723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16725 eval ac_res=\$$as_ac_Header
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
16727 $as_echo "$ac_res" >&6; }
16728 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16729 cat >>confdefs.h <<_ACEOF
16730 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
16733 ac_header_dirent=$ac_hdr; break
16737 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
16738 if test $ac_header_dirent = dirent.h; then
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16740 $as_echo_n "checking for library containing opendir... " >&6; }
16741 if ${ac_cv_search_opendir+:} false; then :
16742 $as_echo_n "(cached) " >&6
16744 ac_func_search_save_LIBS=$LIBS
16745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16746 /* end confdefs.h. */
16748 /* Override any GCC internal prototype to avoid an error.
16749 Use char because int might match the return type of a GCC
16750 builtin and then its argument prototype would still apply. */
16763 for ac_lib in '' dir; do
16764 if test -z "$ac_lib"; then
16765 ac_res="none required"
16768 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16770 if ac_fn_c_try_link "$LINENO"; then :
16771 ac_cv_search_opendir=$ac_res
16773 rm -f core conftest.err conftest.$ac_objext \
16775 if ${ac_cv_search_opendir+:} false; then :
16779 if ${ac_cv_search_opendir+:} false; then :
16782 ac_cv_search_opendir=no
16784 rm conftest.$ac_ext
16785 LIBS=$ac_func_search_save_LIBS
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16788 $as_echo "$ac_cv_search_opendir" >&6; }
16789 ac_res=$ac_cv_search_opendir
16790 if test "$ac_res" != no; then :
16791 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
16797 $as_echo_n "checking for library containing opendir... " >&6; }
16798 if ${ac_cv_search_opendir+:} false; then :
16799 $as_echo_n "(cached) " >&6
16801 ac_func_search_save_LIBS=$LIBS
16802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16803 /* end confdefs.h. */
16805 /* Override any GCC internal prototype to avoid an error.
16806 Use char because int might match the return type of a GCC
16807 builtin and then its argument prototype would still apply. */
16820 for ac_lib in '' x; do
16821 if test -z "$ac_lib"; then
16822 ac_res="none required"
16825 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16827 if ac_fn_c_try_link "$LINENO"; then :
16828 ac_cv_search_opendir=$ac_res
16830 rm -f core conftest.err conftest.$ac_objext \
16832 if ${ac_cv_search_opendir+:} false; then :
16836 if ${ac_cv_search_opendir+:} false; then :
16839 ac_cv_search_opendir=no
16841 rm conftest.$ac_ext
16842 LIBS=$ac_func_search_save_LIBS
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
16845 $as_echo "$ac_cv_search_opendir" >&6; }
16846 ac_res=$ac_cv_search_opendir
16847 if test "$ac_res" != no; then :
16848 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16856 ### Checks for types
16859 ### Checks for structures
16862 ### Checks for compiler characteristics
16865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16866 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16867 if ${ac_cv_c_bigendian+:} false; then :
16868 $as_echo_n "(cached) " >&6
16870 ac_cv_c_bigendian=unknown
16871 # See if we're dealing with a universal compiler.
16872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16873 /* end confdefs.h. */
16874 #ifndef __APPLE_CC__
16875 not a universal capable compiler
16880 if ac_fn_c_try_compile "$LINENO"; then :
16882 # Check for potential -arch flags. It is not universal unless
16883 # there are at least two -arch flags with different values.
16886 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16887 if test -n "$ac_prev"; then
16889 i?86 | x86_64 | ppc | ppc64)
16890 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16893 ac_cv_c_bigendian=universal
16899 elif test "x$ac_word" = "x-arch"; then
16904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16905 if test $ac_cv_c_bigendian = unknown; then
16906 # See if sys/param.h defines the BYTE_ORDER macro.
16907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16908 /* end confdefs.h. */
16909 #include <sys/types.h>
16910 #include <sys/param.h>
16915 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16916 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16918 bogus endian macros
16925 if ac_fn_c_try_compile "$LINENO"; then :
16926 # It does; now see whether it defined to BIG_ENDIAN or not.
16927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16928 /* end confdefs.h. */
16929 #include <sys/types.h>
16930 #include <sys/param.h>
16935 #if BYTE_ORDER != BIG_ENDIAN
16943 if ac_fn_c_try_compile "$LINENO"; then :
16944 ac_cv_c_bigendian=yes
16946 ac_cv_c_bigendian=no
16948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16952 if test $ac_cv_c_bigendian = unknown; then
16953 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16955 /* end confdefs.h. */
16956 #include <limits.h>
16961 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16962 bogus endian macros
16969 if ac_fn_c_try_compile "$LINENO"; then :
16970 # It does; now see whether it defined to _BIG_ENDIAN or not.
16971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16972 /* end confdefs.h. */
16973 #include <limits.h>
16978 #ifndef _BIG_ENDIAN
16986 if ac_fn_c_try_compile "$LINENO"; then :
16987 ac_cv_c_bigendian=yes
16989 ac_cv_c_bigendian=no
16991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16995 if test $ac_cv_c_bigendian = unknown; then
16996 # Compile a test program.
16997 if test "$cross_compiling" = yes; then :
16998 # Try to guess by grepping values from an object file.
16999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17000 /* end confdefs.h. */
17001 short int ascii_mm[] =
17002 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
17003 short int ascii_ii[] =
17004 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
17005 int use_ascii (int i) {
17006 return ascii_mm[i] + ascii_ii[i];
17008 short int ebcdic_ii[] =
17009 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
17010 short int ebcdic_mm[] =
17011 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
17012 int use_ebcdic (int i) {
17013 return ebcdic_mm[i] + ebcdic_ii[i];
17020 return use_ascii (foo) == use_ebcdic (foo);
17025 if ac_fn_c_try_compile "$LINENO"; then :
17026 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
17027 ac_cv_c_bigendian=yes
17029 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
17030 if test "$ac_cv_c_bigendian" = unknown; then
17031 ac_cv_c_bigendian=no
17033 # finding both strings is unlikely to happen, but who knows?
17034 ac_cv_c_bigendian=unknown
17038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17041 /* end confdefs.h. */
17042 $ac_includes_default
17047 /* Are we little or big endian? From Harbison&Steele. */
17051 char c[sizeof (long int)];
17054 return u.c[sizeof (long int) - 1] == 1;
17060 if ac_fn_c_try_run "$LINENO"; then :
17061 ac_cv_c_bigendian=no
17063 ac_cv_c_bigendian=yes
17065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17066 conftest.$ac_objext conftest.beam conftest.$ac_ext
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
17072 $as_echo "$ac_cv_c_bigendian" >&6; }
17073 case $ac_cv_c_bigendian in #(
17075 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
17081 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
17085 as_fn_error $? "unknown endianness
17086 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
17090 #OPJ_COMPILER_FLAG([-Wall])
17091 #OPJ_COMPILER_FLAG([-Wextra])
17092 #OPJ_COMPILER_FLAG([-Wshadow])
17093 #OPJ_COMPILER_FLAG([-Wpointer-arith])
17096 CFLAGS_save="${CFLAGS}"
17097 CFLAGS="${CFLAGS} -Wno-unused-result"
17100 ac_cpp='$CPP $CPPFLAGS'
17101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-unused-result" >&5
17106 $as_echo_n "checking whether the compiler supports -Wno-unused-result... " >&6; }
17108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17109 /* end confdefs.h. */
17119 if ac_fn_c_try_compile "$LINENO"; then :
17124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5
17126 $as_echo "${have_flag}" >&6; }
17128 if test "x${have_flag}" = "xno" ; then
17129 CFLAGS="${CFLAGS_save}"
17132 ac_cpp='$CPP $CPPFLAGS'
17133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17140 if test "x${want_debug}" = "xyes" ; then
17143 CFLAGS_save="${CFLAGS}"
17144 CFLAGS="${CFLAGS} -g"
17147 ac_cpp='$CPP $CPPFLAGS'
17148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -g" >&5
17153 $as_echo_n "checking whether the compiler supports -g... " >&6; }
17155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17156 /* end confdefs.h. */
17166 if ac_fn_c_try_compile "$LINENO"; then :
17171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5
17173 $as_echo "${have_flag}" >&6; }
17175 if test "x${have_flag}" = "xno" ; then
17176 CFLAGS="${CFLAGS_save}"
17179 ac_cpp='$CPP $CPPFLAGS'
17180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17188 CFLAGS_save="${CFLAGS}"
17189 CFLAGS="${CFLAGS} -O0"
17192 ac_cpp='$CPP $CPPFLAGS'
17193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -O0" >&5
17198 $as_echo_n "checking whether the compiler supports -O0... " >&6; }
17200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17201 /* end confdefs.h. */
17211 if ac_fn_c_try_compile "$LINENO"; then :
17216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5
17218 $as_echo "${have_flag}" >&6; }
17220 if test "x${have_flag}" = "xno" ; then
17221 CFLAGS="${CFLAGS_save}"
17224 ac_cpp='$CPP $CPPFLAGS'
17225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17234 CFLAGS_save="${CFLAGS}"
17235 CFLAGS="${CFLAGS} -O3"
17238 ac_cpp='$CPP $CPPFLAGS'
17239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -O3" >&5
17244 $as_echo_n "checking whether the compiler supports -O3... " >&6; }
17246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17247 /* end confdefs.h. */
17257 if ac_fn_c_try_compile "$LINENO"; then :
17262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${have_flag}" >&5
17264 $as_echo "${have_flag}" >&6; }
17266 if test "x${have_flag}" = "xno" ; then
17267 CFLAGS="${CFLAGS_save}"
17270 ac_cpp='$CPP $CPPFLAGS'
17271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17280 ### Checks for linker characteristics
17283 ### Checks for library functions
17286 ### Post configuration
17288 if test "x${enable_shared}" = "xyes"; then
17290 BUILD_SHARED_FALSE='#'
17292 BUILD_SHARED_TRUE='#'
17293 BUILD_SHARED_FALSE=
17296 if test "x${enable_static}" = "xyes"; then
17298 BUILD_STATIC_FALSE='#'
17300 BUILD_STATIC_TRUE='#'
17301 BUILD_STATIC_FALSE=
17306 ac_config_files="$ac_config_files Makefile libopenjpeg1.pc libopenjpeg-jpwl.pc libopenjpeg/Makefile libopenjpeg/jpwl/Makefile applications/Makefile applications/codec/Makefile applications/mj2/Makefile applications/jpip/Makefile applications/jpip/libopenjpip/Makefile applications/jpip/util/Makefile doc/Makefile"
17309 cat >confcache <<\_ACEOF
17310 # This file is a shell script that caches the results of configure
17311 # tests run on this system so they can be shared between configure
17312 # scripts and configure runs, see configure's option --config-cache.
17313 # It is not useful on other systems. If it contains results you don't
17314 # want to keep, you may remove or edit it.
17316 # config.status only pays attention to the cache file if you give it
17317 # the --recheck option to rerun configure.
17319 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17320 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17321 # following values.
17325 # The following way of writing the cache mishandles newlines in values,
17326 # but we know of no workaround that is simple, portable, and efficient.
17327 # So, we kill variables containing newlines.
17328 # Ultrix sh set writes to stderr and can't be redirected directly,
17329 # and sets the high bit in the cache file unless we assign to the vars.
17331 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17332 eval ac_val=\$$ac_var
17336 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17337 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17340 _ | IFS | as_nl) ;; #(
17341 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17342 *) { eval $ac_var=; unset $ac_var;} ;;
17348 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17349 *${as_nl}ac_space=\ *)
17350 # `set' does not quote correctly, so add quotes: double-quote
17351 # substitution turns \\\\ into \\, and sed turns \\ into \.
17354 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17357 # `set' quotes correctly as required by POSIX, so do not add quotes.
17358 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17367 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17369 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17371 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17372 if test -w "$cache_file"; then
17373 if test "x$cache_file" != "x/dev/null"; then
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17375 $as_echo "$as_me: updating cache $cache_file" >&6;}
17376 if test ! -f "$cache_file" || test -h "$cache_file"; then
17377 cat confcache >"$cache_file"
17379 case $cache_file in #(
17381 mv -f confcache "$cache_file"$$ &&
17382 mv -f "$cache_file"$$ "$cache_file" ;; #(
17384 mv -f confcache "$cache_file" ;;
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17390 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17395 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17396 # Let make expand exec_prefix.
17397 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17399 DEFS=-DHAVE_CONFIG_H
17404 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17405 # 1. Remove the extension, and $U if already installed.
17406 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17407 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17408 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17409 # will be set to the directory where LIBOBJS objects are built.
17410 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17411 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17413 LIBOBJS=$ac_libobjs
17415 LTLIBOBJS=$ac_ltlibobjs
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17419 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17420 if test -n "$am_sleep_pid"; then
17421 # Hide warnings about reused PIDs.
17422 wait $am_sleep_pid 2>/dev/null
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17425 $as_echo "done" >&6; }
17426 if test -n "$EXEEXT"; then
17428 am__EXEEXT_FALSE='#'
17430 am__EXEEXT_TRUE='#'
17434 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17435 as_fn_error $? "conditional \"AMDEP\" was never defined.
17436 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17438 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17439 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17440 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17442 if test -z "${HAVE_WIN32_TRUE}" && test -z "${HAVE_WIN32_FALSE}"; then
17443 as_fn_error $? "conditional \"HAVE_WIN32\" was never defined.
17444 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17446 if test -z "${HAVE_DARWIN_TRUE}" && test -z "${HAVE_DARWIN_FALSE}"; then
17447 as_fn_error $? "conditional \"HAVE_DARWIN\" was never defined.
17448 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17450 if test -z "${WANT_MJ2_TRUE}" && test -z "${WANT_MJ2_FALSE}"; then
17451 as_fn_error $? "conditional \"WANT_MJ2\" was never defined.
17452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17454 if test -z "${WANT_JPWL_TRUE}" && test -z "${WANT_JPWL_FALSE}"; then
17455 as_fn_error $? "conditional \"WANT_JPWL\" was never defined.
17456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17458 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17459 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17462 if test -z "${OPJ_BUILD_DOC_TRUE}" && test -z "${OPJ_BUILD_DOC_FALSE}"; then
17463 as_fn_error $? "conditional \"OPJ_BUILD_DOC\" was never defined.
17464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17466 if test -z "${with_libpng_TRUE}" && test -z "${with_libpng_FALSE}"; then
17467 as_fn_error $? "conditional \"with_libpng\" was never defined.
17468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17470 if test -z "${with_libtiff_TRUE}" && test -z "${with_libtiff_FALSE}"; then
17471 as_fn_error $? "conditional \"with_libtiff\" was never defined.
17472 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17474 if test -z "${WANT_JPIP_TRUE}" && test -z "${WANT_JPIP_FALSE}"; then
17475 as_fn_error $? "conditional \"WANT_JPIP\" was never defined.
17476 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17478 if test -z "${WANT_JPIP_SERVER_TRUE}" && test -z "${WANT_JPIP_SERVER_FALSE}"; then
17479 as_fn_error $? "conditional \"WANT_JPIP_SERVER\" was never defined.
17480 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17482 if test -z "${WANT_JPIP_CODE_TRUE}" && test -z "${WANT_JPIP_CODE_FALSE}"; then
17483 as_fn_error $? "conditional \"WANT_JPIP_CODE\" was never defined.
17484 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17487 if test -z "${BUILD_SHARED_TRUE}" && test -z "${BUILD_SHARED_FALSE}"; then
17488 as_fn_error $? "conditional \"BUILD_SHARED\" was never defined.
17489 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17491 if test -z "${BUILD_STATIC_TRUE}" && test -z "${BUILD_STATIC_FALSE}"; then
17492 as_fn_error $? "conditional \"BUILD_STATIC\" was never defined.
17493 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17496 : "${CONFIG_STATUS=./config.status}"
17498 ac_clean_files_save=$ac_clean_files
17499 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17501 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17503 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17505 # Generated by $as_me.
17506 # Run this file to recreate the current configuration.
17507 # Compiler output produced by configure, useful for debugging
17508 # configure, is in config.log if it exists.
17511 ac_cs_recheck=false
17514 SHELL=\${CONFIG_SHELL-$SHELL}
17517 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17518 ## -------------------- ##
17519 ## M4sh Initialization. ##
17520 ## -------------------- ##
17522 # Be more Bourne compatible
17523 DUALCASE=1; export DUALCASE # for MKS sh
17524 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17527 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17528 # is contrary to our usage. Disable this feature.
17529 alias -g '${1+"$@"}'='"$@"'
17530 setopt NO_GLOB_SUBST
17532 case `(set -o) 2>/dev/null` in #(
17544 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17545 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17546 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17547 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17548 # Prefer a ksh shell builtin over an external printf program on Solaris,
17549 # but without wasting forks for bash or zsh.
17550 if test -z "$BASH_VERSION$ZSH_VERSION" \
17551 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17552 as_echo='print -r --'
17553 as_echo_n='print -rn --'
17554 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17555 as_echo='printf %s\n'
17556 as_echo_n='printf %s'
17558 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17559 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17560 as_echo_n='/usr/ucb/echo -n'
17562 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17563 as_echo_n_body='eval
17567 expr "X$arg" : "X\\(.*\\)$as_nl";
17568 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17570 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17572 export as_echo_n_body
17573 as_echo_n='sh -c $as_echo_n_body as_echo'
17575 export as_echo_body
17576 as_echo='sh -c $as_echo_body as_echo'
17579 # The user is always right.
17580 if test "${PATH_SEPARATOR+set}" != set; then
17582 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17583 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17590 # We need space, tab and new line, in precisely that order. Quoting is
17591 # there to prevent editors from complaining about space-tab.
17592 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17593 # splitting by setting IFS to empty value.)
17596 # Find who we are. Look in the path if we contain no directory separator.
17599 *[\\/]* ) as_myself=$0 ;;
17600 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17601 for as_dir in $PATH
17604 test -z "$as_dir" && as_dir=.
17605 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17611 # We did not find ourselves, most probably we were run as `sh COMMAND'
17612 # in which case we are not to be found in the path.
17613 if test "x$as_myself" = x; then
17616 if test ! -f "$as_myself"; then
17617 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17621 # Unset variables that we do not need and which cause bugs (e.g. in
17622 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17623 # suppresses any "Segmentation fault" message there. '((' could
17624 # trigger a bug in pdksh 5.2.14.
17625 for as_var in BASH_ENV ENV MAIL MAILPATH
17626 do eval test x\${$as_var+set} = xset \
17627 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17640 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17643 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17644 # ----------------------------------------
17645 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17646 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17647 # script with STATUS, using 1 if that was 0.
17650 as_status=$1; test $as_status -eq 0 && as_status=1
17652 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17653 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17655 $as_echo "$as_me: error: $2" >&2
17656 as_fn_exit $as_status
17660 # as_fn_set_status STATUS
17661 # -----------------------
17662 # Set $? to STATUS, without forking.
17663 as_fn_set_status ()
17666 } # as_fn_set_status
17668 # as_fn_exit STATUS
17669 # -----------------
17670 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17674 as_fn_set_status $1
17680 # Portably unset VAR.
17683 { eval $1=; unset $1;}
17685 as_unset=as_fn_unset
17686 # as_fn_append VAR VALUE
17687 # ----------------------
17688 # Append the text in VALUE to the end of the definition contained in VAR. Take
17689 # advantage of any shell optimizations that allow amortized linear growth over
17690 # repeated appends, instead of the typical quadratic growth present in naive
17692 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17693 eval 'as_fn_append ()
17704 # as_fn_arith ARG...
17705 # ------------------
17706 # Perform arithmetic evaluation on the ARGs, and store the result in the
17707 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17708 # must be portable across $(()) and expr.
17709 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17710 eval 'as_fn_arith ()
17717 as_val=`expr "$@" || test $? -eq 1`
17722 if expr a : '\(a\)' >/dev/null 2>&1 &&
17723 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17729 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17730 as_basename=basename
17735 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17741 as_me=`$as_basename -- "$0" ||
17742 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17743 X"$0" : 'X\(//\)$' \| \
17744 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17746 sed '/^.*\/\([^/][^/]*\)\/*$/{
17760 # Avoid depending upon Character Ranges.
17761 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17762 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17763 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17764 as_cr_digits='0123456789'
17765 as_cr_alnum=$as_cr_Letters$as_cr_digits
17767 ECHO_C= ECHO_N= ECHO_T=
17768 case `echo -n x` in #(((((
17770 case `echo 'xy\c'` in
17771 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17773 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17780 rm -f conf$$ conf$$.exe conf$$.file
17781 if test -d conf$$.dir; then
17782 rm -f conf$$.dir/conf$$.file
17785 mkdir conf$$.dir 2>/dev/null
17787 if (echo >conf$$.file) 2>/dev/null; then
17788 if ln -s conf$$.file conf$$ 2>/dev/null; then
17790 # ... but there are two gotchas:
17791 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17792 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17793 # In both cases, we have to default to `cp -pR'.
17794 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17796 elif ln conf$$.file conf$$ 2>/dev/null; then
17804 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17805 rmdir conf$$.dir 2>/dev/null
17810 # Create "$as_dir" as a directory, including parents if necessary.
17815 -*) as_dir=./$as_dir;;
17817 test -d "$as_dir" || eval $as_mkdir_p || {
17821 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17822 *) as_qdir=$as_dir;;
17824 as_dirs="'$as_qdir' $as_dirs"
17825 as_dir=`$as_dirname -- "$as_dir" ||
17826 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17827 X"$as_dir" : 'X\(//\)[^/]' \| \
17828 X"$as_dir" : 'X\(//\)$' \| \
17829 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17830 $as_echo X"$as_dir" |
17831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17835 /^X\(\/\/\)[^/].*/{
17848 test -d "$as_dir" && break
17850 test -z "$as_dirs" || eval "mkdir $as_dirs"
17851 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17855 if mkdir -p . 2>/dev/null; then
17856 as_mkdir_p='mkdir -p "$as_dir"'
17858 test -d ./-p && rmdir ./-p
17863 # as_fn_executable_p FILE
17864 # -----------------------
17865 # Test if FILE is an executable regular file.
17866 as_fn_executable_p ()
17868 test -f "$1" && test -x "$1"
17869 } # as_fn_executable_p
17870 as_test_x='test -x'
17871 as_executable_p=as_fn_executable_p
17873 # Sed expression to map a string onto a valid CPP name.
17874 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17876 # Sed expression to map a string onto a valid variable name.
17877 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17881 ## ----------------------------------- ##
17882 ## Main body of $CONFIG_STATUS script. ##
17883 ## ----------------------------------- ##
17885 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17888 # Save the log message, to keep $0 and so on meaningful, and to
17889 # report actual input values of CONFIG_FILES etc. instead of their
17890 # values after options handling.
17892 This file was extended by OpenJPEG $as_me 1.5.0, which was
17893 generated by GNU Autoconf 2.69. Invocation command line was
17895 CONFIG_FILES = $CONFIG_FILES
17896 CONFIG_HEADERS = $CONFIG_HEADERS
17897 CONFIG_LINKS = $CONFIG_LINKS
17898 CONFIG_COMMANDS = $CONFIG_COMMANDS
17901 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17906 case $ac_config_files in *"
17907 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17910 case $ac_config_headers in *"
17911 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17916 # Files that config.status was made for.
17917 config_files="$ac_config_files"
17918 config_headers="$ac_config_headers"
17919 config_commands="$ac_config_commands"
17923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17925 \`$as_me' instantiates files and other configuration actions
17926 from templates according to the current configuration. Unless the files
17927 and actions are specified as TAGs, all are instantiated by default.
17929 Usage: $0 [OPTION]... [TAG]...
17931 -h, --help print this help, then exit
17932 -V, --version print version number and configuration settings, then exit
17933 --config print configuration, then exit
17934 -q, --quiet, --silent
17935 do not print progress messages
17936 -d, --debug don't remove temporary files
17937 --recheck update $as_me by reconfiguring in the same conditions
17938 --file=FILE[:TEMPLATE]
17939 instantiate the configuration file FILE
17940 --header=FILE[:TEMPLATE]
17941 instantiate the configuration header FILE
17943 Configuration files:
17946 Configuration headers:
17949 Configuration commands:
17952 Report bugs to <openjpeg@googlegroups.com>.
17953 OpenJPEG home page: <http://www.openjpeg.org>."
17956 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17957 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17959 OpenJPEG config.status 1.5.0
17960 configured by $0, generated by GNU Autoconf 2.69,
17961 with options \\"\$ac_cs_config\\"
17963 Copyright (C) 2012 Free Software Foundation, Inc.
17964 This config.status script is free software; the Free Software Foundation
17965 gives unlimited permission to copy, distribute and modify it."
17972 test -n "\$AWK" || AWK=awk
17975 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17976 # The default lists apply if the user does not specify any file.
17982 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17983 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17987 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17999 # Handling of the options.
18000 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18002 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18003 $as_echo "$ac_cs_version"; exit ;;
18004 --config | --confi | --conf | --con | --co | --c )
18005 $as_echo "$ac_cs_config"; exit ;;
18006 --debug | --debu | --deb | --de | --d | -d )
18008 --file | --fil | --fi | --f )
18011 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18012 '') as_fn_error $? "missing file argument" ;;
18014 as_fn_append CONFIG_FILES " '$ac_optarg'"
18015 ac_need_defaults=false;;
18016 --header | --heade | --head | --hea )
18019 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18021 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18022 ac_need_defaults=false;;
18024 # Conflict between --help and --header
18025 as_fn_error $? "ambiguous option: \`$1'
18026 Try \`$0 --help' for more information.";;
18027 --help | --hel | -h )
18028 $as_echo "$ac_cs_usage"; exit ;;
18029 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18030 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18033 # This is an error.
18034 -*) as_fn_error $? "unrecognized option: \`$1'
18035 Try \`$0 --help' for more information." ;;
18037 *) as_fn_append ac_config_targets " $1"
18038 ac_need_defaults=false ;;
18044 ac_configure_extra_args=
18046 if $ac_cs_silent; then
18048 ac_configure_extra_args="$ac_configure_extra_args --silent"
18052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18053 if \$ac_cs_recheck; then
18054 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18056 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18057 CONFIG_SHELL='$SHELL'
18058 export CONFIG_SHELL
18063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18067 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18068 ## Running $as_me. ##
18074 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18078 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18081 # The HP-UX ksh and POSIX shell print the target directory to stdout
18082 # if CDPATH is set.
18083 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18085 sed_quote_subst='$sed_quote_subst'
18086 double_quote_subst='$double_quote_subst'
18087 delay_variable_subst='$delay_variable_subst'
18088 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18089 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18090 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
18091 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18092 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18093 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18094 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18095 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18096 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18097 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
18098 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18099 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18100 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18101 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18102 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18103 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18104 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18105 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18106 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18107 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18108 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18109 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18110 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18111 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18112 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18113 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18114 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18115 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18116 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18117 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18118 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18119 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18120 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18121 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18122 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18123 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18124 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18125 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18126 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18127 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18128 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18129 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18130 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18131 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18132 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18133 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18134 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18135 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18136 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18137 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18138 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18139 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18140 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18141 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18142 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18143 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18144 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18145 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
18146 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18147 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"`'
18148 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
18149 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18150 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18151 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
18152 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18153 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18154 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18155 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18156 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18157 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18158 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18159 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18160 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18161 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18162 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18163 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18164 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18165 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18166 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18167 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18168 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18169 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18170 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18171 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18172 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18173 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18174 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18175 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18176 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18177 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18178 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18179 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18180 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18181 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18182 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18183 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18184 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18185 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18186 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18187 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18188 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18189 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18190 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18191 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18192 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18193 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18194 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18195 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18196 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18197 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18198 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18199 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18200 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18201 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18202 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18203 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18204 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18205 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18206 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18207 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18208 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18209 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18210 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18211 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18212 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18213 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18214 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18215 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18216 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
18217 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
18218 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18219 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18220 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18221 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18222 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18223 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18226 LTCFLAGS='$LTCFLAGS'
18227 compiler='$compiler_DEFAULT'
18229 # A function that is used when there is no print builtin or printf.
18230 func_fallback_echo ()
18232 eval 'cat <<_LTECHO_EOF
18237 # Quote evaled strings.
18254 deplibs_check_method \
18258 sharedlib_from_linklib_cmd \
18261 archiver_list_spec \
18267 lt_cv_sys_global_symbol_pipe \
18268 lt_cv_sys_global_symbol_to_cdecl \
18269 lt_cv_sys_global_symbol_to_import \
18270 lt_cv_sys_global_symbol_to_c_name_address \
18271 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18272 lt_cv_nm_interface \
18273 nm_file_list_spec \
18274 lt_cv_truncate_bin \
18275 lt_prog_compiler_no_builtin_flag \
18276 lt_prog_compiler_pic \
18277 lt_prog_compiler_wl \
18278 lt_prog_compiler_static \
18279 lt_cv_prog_compiler_c_o \
18288 export_dynamic_flag_spec \
18289 whole_archive_flag_spec \
18290 compiler_needs_object \
18292 allow_undefined_flag \
18293 no_undefined_flag \
18294 hardcode_libdir_flag_spec \
18295 hardcode_libdir_separator \
18299 variables_saved_for_relink \
18301 library_names_spec \
18303 install_override_mode \
18307 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18308 *[\\\\\\\`\\"\\\$]*)
18309 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18312 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18317 # Double-quote double-evaled strings.
18318 for var in reload_cmds \
18319 old_postinstall_cmds \
18320 old_postuninstall_cmds \
18322 extract_expsyms_cmds \
18323 old_archive_from_new_cmds \
18324 old_archive_from_expsyms_cmds \
18326 archive_expsym_cmds \
18328 module_expsym_cmds \
18329 export_symbols_cmds \
18333 postuninstall_cmds \
18335 sys_lib_search_path_spec \
18336 configure_time_dlsearch_path \
18337 configure_time_lt_sys_library_path; do
18338 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18339 *[\\\\\\\`\\"\\\$]*)
18340 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
18343 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18348 ac_aux_dir='$ac_aux_dir'
18350 # See if we are running on zsh, and set the options that allow our
18351 # commands through without removal of \ escapes INIT.
18352 if test -n "\${ZSH_VERSION+set}"; then
18353 setopt NO_GLOB_SUBST
18367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18369 # Handling of arguments.
18370 for ac_config_target in $ac_config_targets
18372 case $ac_config_target in
18373 "opj_config.h") CONFIG_HEADERS="$CONFIG_HEADERS opj_config.h" ;;
18374 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18375 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18376 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18377 "libopenjpeg1.pc") CONFIG_FILES="$CONFIG_FILES libopenjpeg1.pc" ;;
18378 "libopenjpeg-jpwl.pc") CONFIG_FILES="$CONFIG_FILES libopenjpeg-jpwl.pc" ;;
18379 "libopenjpeg/Makefile") CONFIG_FILES="$CONFIG_FILES libopenjpeg/Makefile" ;;
18380 "libopenjpeg/jpwl/Makefile") CONFIG_FILES="$CONFIG_FILES libopenjpeg/jpwl/Makefile" ;;
18381 "applications/Makefile") CONFIG_FILES="$CONFIG_FILES applications/Makefile" ;;
18382 "applications/codec/Makefile") CONFIG_FILES="$CONFIG_FILES applications/codec/Makefile" ;;
18383 "applications/mj2/Makefile") CONFIG_FILES="$CONFIG_FILES applications/mj2/Makefile" ;;
18384 "applications/jpip/Makefile") CONFIG_FILES="$CONFIG_FILES applications/jpip/Makefile" ;;
18385 "applications/jpip/libopenjpip/Makefile") CONFIG_FILES="$CONFIG_FILES applications/jpip/libopenjpip/Makefile" ;;
18386 "applications/jpip/util/Makefile") CONFIG_FILES="$CONFIG_FILES applications/jpip/util/Makefile" ;;
18387 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18389 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18394 # If the user did not use the arguments to specify the items to instantiate,
18395 # then the envvar interface is used. Set only those that are not.
18396 # We use the long form for the default assignment because of an extremely
18397 # bizarre bug on SunOS 4.1.3.
18398 if $ac_need_defaults; then
18399 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18400 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18401 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18404 # Have a temporary directory for convenience. Make it in the build tree
18405 # simply because there is no reason against having it here, and in addition,
18406 # creating and moving files from /tmp can sometimes cause problems.
18407 # Hook for its removal unless debugging.
18408 # Note that there is a small window in which the directory will not be cleaned:
18409 # after its creation but before its name has been assigned to `$tmp'.
18413 trap 'exit_status=$?
18414 : "${ac_tmp:=$tmp}"
18415 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18417 trap 'as_fn_exit 1' 1 2 13 15
18419 # Create a (secure) tmp directory for tmp files.
18422 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18426 tmp=./conf$$-$RANDOM
18427 (umask 077 && mkdir "$tmp")
18428 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18431 # Set up the scripts for CONFIG_FILES section.
18432 # No need to generate them if there are no CONFIG_FILES.
18433 # This happens for instance with `./config.status config.h'.
18434 if test -n "$CONFIG_FILES"; then
18437 ac_cr=`echo X | tr X '\015'`
18438 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18439 # But we know of no other shell where ac_cr would be empty at this
18440 # point, so we can use a bashism as a fallback.
18441 if test "x$ac_cr" = x; then
18442 eval ac_cr=\$\'\\r\'
18444 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18445 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18448 ac_cs_awk_cr=$ac_cr
18451 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18456 echo "cat >conf$$subs.awk <<_ACEOF" &&
18457 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18459 } >conf$$subs.sh ||
18460 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18461 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18463 for ac_last_try in false false false false false :; do
18464 . ./conf$$subs.sh ||
18465 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18467 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18468 if test $ac_delim_n = $ac_delim_num; then
18470 elif $ac_last_try; then
18471 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18473 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18476 rm -f conf$$subs.sh
18478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18479 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18483 s/^/S["/; s/!.*/"]=/
18493 s/\(.\{148\}\)..*/\1/
18495 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18500 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18507 s/\(.\{148\}\)..*/\1/
18509 s/["\\]/\\&/g; s/^/"/; s/$/"/
18513 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18518 ' <conf$$subs.awk | sed '
18523 ' >>$CONFIG_STATUS || ac_write_fail=1
18524 rm -f conf$$subs.awk
18525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18527 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18528 for (key in S) S_is_set[key] = 1
18534 nfields = split(line, field, "@")
18536 len = length(field[1])
18537 for (i = 2; i < nfields; i++) {
18539 keylen = length(key)
18540 if (S_is_set[key]) {
18542 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18543 len += length(value) + length(field[++i])
18554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18555 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18556 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18559 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18560 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18563 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18564 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18565 # trailing colons and then remove the whole line if VPATH becomes empty
18566 # (actually we leave an empty line to preserve line numbers).
18567 if test "x$srcdir" = x.; then
18568 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18587 fi # test -n "$CONFIG_FILES"
18589 # Set up the scripts for CONFIG_HEADERS section.
18590 # No need to generate them if there are no CONFIG_HEADERS.
18591 # This happens for instance with `./config.status Makefile'.
18592 if test -n "$CONFIG_HEADERS"; then
18593 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18597 # Transform confdefs.h into an awk script `defines.awk', embedded as
18598 # here-document in config.status, that substitutes the proper values into
18599 # config.h.in to produce config.h.
18601 # Create a delimiter string that does not exist in confdefs.h, to ease
18602 # handling of long lines.
18604 for ac_last_try in false false :; do
18605 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18606 if test -z "$ac_tt"; then
18608 elif $ac_last_try; then
18609 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18611 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18615 # For the awk script, D is an array of macro values keyed by name,
18616 # likewise P contains macro parameters if any. Preserve backslash
18617 # newline sequences.
18619 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18621 s/.\{148\}/&'"$ac_delim"'/g
18624 s/^[ ]*#[ ]*define[ ][ ]*/ /
18631 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18633 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18637 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18638 D["\1"]=" \3\\\\\\n"\\/p
18640 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18645 s/.\{148\}/&'"$ac_delim"'/g
18650 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18653 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18655 ' <confdefs.h | sed '
18656 s/'"$ac_delim"'/"\\\
18657 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18660 for (key in D) D_is_set[key] = 1
18663 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18665 split(line, arg, " ")
18666 if (arg[1] == "#") {
18670 defundef = substr(arg[1], 2)
18673 split(mac1, mac2, "(") #)
18675 prefix = substr(line, 1, index(line, defundef) - 1)
18676 if (D_is_set[macro]) {
18677 # Preserve the white space surrounding the "#".
18678 print prefix "define", macro P[macro] D[macro]
18681 # Replace #undef with comments. This is necessary, for example,
18682 # in the case of _POSIX_SOURCE, which is predefined and required
18683 # on some systems where configure will not decide to define it.
18684 if (defundef == "undef") {
18685 print "/*", prefix defundef, macro, "*/"
18693 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18694 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18695 fi # test -n "$CONFIG_HEADERS"
18698 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18703 :[FHLC]) ac_mode=$ac_tag; continue;;
18705 case $ac_mode$ac_tag in
18707 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18708 :[FH]-) ac_tag=-:-;;
18709 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18726 -) ac_f="$ac_tmp/stdin";;
18727 *) # Look for the file first in the build tree, then in the source tree
18728 # (if the path is not absolute). The absolute path cannot be DOS-style,
18729 # because $ac_f cannot contain `:'.
18733 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18735 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18737 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18738 as_fn_append ac_file_inputs " '$ac_f'"
18741 # Let's still pretend it is `configure' which instantiates (i.e., don't
18742 # use $as_me), people would be surprised to read:
18743 # /* config.h. Generated by config.status. */
18744 configure_input='Generated from '`
18745 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18747 if test x"$ac_file" != x-; then
18748 configure_input="$ac_file. $configure_input"
18749 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18750 $as_echo "$as_me: creating $ac_file" >&6;}
18752 # Neutralize special characters interpreted by sed in replacement strings.
18753 case $configure_input in #(
18754 *\&* | *\|* | *\\* )
18755 ac_sed_conf_input=`$as_echo "$configure_input" |
18756 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18757 *) ac_sed_conf_input=$configure_input;;
18761 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18762 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18767 ac_dir=`$as_dirname -- "$ac_file" ||
18768 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18769 X"$ac_file" : 'X\(//\)[^/]' \| \
18770 X"$ac_file" : 'X\(//\)$' \| \
18771 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18772 $as_echo X"$ac_file" |
18773 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18777 /^X\(\/\/\)[^/].*/{
18790 as_dir="$ac_dir"; as_fn_mkdir_p
18794 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18796 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18797 # A ".." for each directory in $ac_dir_suffix.
18798 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18799 case $ac_top_builddir_sub in
18800 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18801 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18804 ac_abs_top_builddir=$ac_pwd
18805 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18806 # for backward compatibility:
18807 ac_top_builddir=$ac_top_build_prefix
18810 .) # We are building in place.
18812 ac_top_srcdir=$ac_top_builddir_sub
18813 ac_abs_top_srcdir=$ac_pwd ;;
18814 [\\/]* | ?:[\\/]* ) # Absolute name.
18815 ac_srcdir=$srcdir$ac_dir_suffix;
18816 ac_top_srcdir=$srcdir
18817 ac_abs_top_srcdir=$srcdir ;;
18818 *) # Relative name.
18819 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18820 ac_top_srcdir=$ac_top_build_prefix$srcdir
18821 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18823 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18833 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18834 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18836 ac_MKDIR_P=$MKDIR_P
18838 [\\/$]* | ?:[\\/]* ) ;;
18839 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18843 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18844 # If the template does not know about datarootdir, expand it.
18845 # FIXME: This hack should be removed a few years after 2.60.
18846 ac_datarootdir_hack=; ac_datarootdir_seen=
18857 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18858 *datarootdir*) ac_datarootdir_seen=yes;;
18859 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18861 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18864 ac_datarootdir_hack='
18865 s&@datadir@&$datadir&g
18866 s&@docdir@&$docdir&g
18867 s&@infodir@&$infodir&g
18868 s&@localedir@&$localedir&g
18869 s&@mandir@&$mandir&g
18870 s&\\\${datarootdir}&$datarootdir&g' ;;
18874 # Neutralize VPATH when `$srcdir' = `.'.
18875 # Shell code in configure.ac might set extrasub.
18876 # FIXME: do we really want to maintain this feature?
18877 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18878 ac_sed_extra="$ac_vpsub
18881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18883 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18884 s|@configure_input@|$ac_sed_conf_input|;t t
18885 s&@top_builddir@&$ac_top_builddir_sub&;t t
18886 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18887 s&@srcdir@&$ac_srcdir&;t t
18888 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18889 s&@top_srcdir@&$ac_top_srcdir&;t t
18890 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18891 s&@builddir@&$ac_builddir&;t t
18892 s&@abs_builddir@&$ac_abs_builddir&;t t
18893 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18894 s&@INSTALL@&$ac_INSTALL&;t t
18895 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18896 $ac_datarootdir_hack
18898 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18899 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18901 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18902 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18903 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18904 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18906 which seems to be undefined. Please make sure it is defined" >&5
18907 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18908 which seems to be undefined. Please make sure it is defined" >&2;}
18910 rm -f "$ac_tmp/stdin"
18912 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18913 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18915 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18921 if test x"$ac_file" != x-; then
18923 $as_echo "/* $configure_input */" \
18924 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18925 } >"$ac_tmp/config.h" \
18926 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18927 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18929 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18932 mv "$ac_tmp/config.h" "$ac_file" \
18933 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18936 $as_echo "/* $configure_input */" \
18937 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18938 || as_fn_error $? "could not create -" "$LINENO" 5
18940 # Compute "$ac_file"'s index in $config_headers.
18943 for _am_header in $config_headers :; do
18944 case $_am_header in
18945 $_am_arg | $_am_arg:* )
18948 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18951 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18952 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18953 X"$_am_arg" : 'X\(//\)[^/]' \| \
18954 X"$_am_arg" : 'X\(//\)$' \| \
18955 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18956 $as_echo X"$_am_arg" |
18957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18961 /^X\(\/\/\)[^/].*/{
18973 s/.*/./; q'`/stamp-h$_am_stamp_count
18976 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18977 $as_echo "$as_me: executing $ac_file commands" >&6;}
18982 case $ac_file$ac_mode in
18983 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18984 # Older Autoconf quotes --file arguments for eval, but not when files
18985 # are listed without --file. Let's play safe and only enable the eval
18986 # if we detect the quoting.
18987 case $CONFIG_FILES in
18988 *\'*) eval set x "$CONFIG_FILES" ;;
18989 *) set x $CONFIG_FILES ;;
18994 # Strip MF so we end up with the name of the file.
18995 mf=`echo "$mf" | sed -e 's/:.*$//'`
18996 # Check whether this is an Automake generated Makefile or not.
18997 # We used to match only the files named 'Makefile.in', but
18998 # some people rename them; so instead we look at the file content.
18999 # Grep'ing the first line is not enough: some people post-process
19000 # each Makefile.in and add a new line on top of each file to say so.
19001 # Grep'ing the whole file is not good either: AIX grep has a line
19002 # limit of 2048, but all sed's we know have understand at least 4000.
19003 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19004 dirpart=`$as_dirname -- "$mf" ||
19005 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19006 X"$mf" : 'X\(//\)[^/]' \| \
19007 X"$mf" : 'X\(//\)$' \| \
19008 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19014 /^X\(\/\/\)[^/].*/{
19030 # Extract the definition of DEPDIR, am__include, and am__quote
19031 # from the Makefile without running 'make'.
19032 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19033 test -z "$DEPDIR" && continue
19034 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19035 test -z "$am__include" && continue
19036 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19037 # Find all dependency output files, they are included files with
19038 # $(DEPDIR) in their names. We invoke sed twice because it is the
19039 # simplest approach to changing $(DEPDIR) to its actual value in the
19041 for file in `sed -n "
19042 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19043 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19044 # Make sure the directory exists.
19045 test -f "$dirpart/$file" && continue
19046 fdir=`$as_dirname -- "$file" ||
19047 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19048 X"$file" : 'X\(//\)[^/]' \| \
19049 X"$file" : 'X\(//\)$' \| \
19050 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19051 $as_echo X"$file" |
19052 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19056 /^X\(\/\/\)[^/].*/{
19069 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19070 # echo "creating $dirpart/$file"
19071 echo '# dummy' > "$dirpart/$file"
19078 # See if we are running on zsh, and set the options that allow our
19079 # commands through without removal of \ escapes.
19080 if test -n "${ZSH_VERSION+set}"; then
19081 setopt NO_GLOB_SUBST
19085 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19088 cat <<_LT_EOF >> "$cfgfile"
19090 # Generated automatically by $as_me ($PACKAGE) $VERSION
19091 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19093 # Provide generalized library-building support services.
19094 # Written by Gordon Matzigkeit, 1996
19096 # Copyright (C) 2014 Free Software Foundation, Inc.
19097 # This is free software; see the source for copying conditions. There is NO
19098 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
19100 # GNU Libtool is free software; you can redistribute it and/or modify
19101 # it under the terms of the GNU General Public License as published by
19102 # the Free Software Foundation; either version 2 of of the License, or
19103 # (at your option) any later version.
19105 # As a special exception to the GNU General Public License, if you
19106 # distribute this file as part of a program or library that is built
19107 # using GNU Libtool, you may include this file under the same
19108 # distribution terms that you use for the rest of that program.
19110 # GNU Libtool is distributed in the hope that it will be useful, but
19111 # WITHOUT ANY WARRANTY; without even the implied warranty of
19112 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19113 # GNU General Public License for more details.
19115 # You should have received a copy of the GNU General Public License
19116 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19119 # The names of the tagged configurations supported by this script.
19122 # Configured defaults for sys_lib_dlsearch_path munging.
19123 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
19125 # ### BEGIN LIBTOOL CONFIG
19127 # Which release of libtool.m4 was used?
19128 macro_version=$macro_version
19129 macro_revision=$macro_revision
19131 # Assembler program.
19134 # DLL creation program.
19135 DLLTOOL=$lt_DLLTOOL
19137 # Object dumper program.
19138 OBJDUMP=$lt_OBJDUMP
19140 # Whether or not to build shared libraries.
19141 build_libtool_libs=$enable_shared
19143 # Whether or not to build static libraries.
19144 build_old_libs=$enable_static
19146 # What type of objects to build.
19149 # Whether or not to optimize for fast installation.
19150 fast_install=$enable_fast_install
19152 # Shared archive member basename,for filename based shared library versioning on AIX.
19153 shared_archive_member_spec=$shared_archive_member_spec
19155 # Shell to use when invoking shell scripts.
19158 # An echo program that protects backslashes.
19161 # The PATH separator for the build system.
19162 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19165 host_alias=$host_alias
19169 # The build system.
19170 build_alias=$build_alias
19174 # A sed program that does not truncate output.
19177 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19178 Xsed="\$SED -e 1s/^X//"
19180 # A grep program that handles long lines.
19186 # A literal string matcher.
19189 # A BSD- or MS-compatible name lister.
19192 # Whether we need soft or hard links.
19195 # What is the maximum length of a command?
19196 max_cmd_len=$max_cmd_len
19198 # Object file suffix (normally "o").
19201 # Executable file suffix (normally "").
19204 # whether the shell understands "unset".
19207 # turn spaces into newlines.
19210 # turn newlines into spaces.
19213 # convert \$build file names to \$host format.
19214 to_host_file_cmd=$lt_cv_to_host_file_cmd
19216 # convert \$build files to toolchain format.
19217 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19219 # Method to check whether dependent libraries are shared objects.
19220 deplibs_check_method=$lt_deplibs_check_method
19222 # Command to use when deplibs_check_method = "file_magic".
19223 file_magic_cmd=$lt_file_magic_cmd
19225 # How to find potential files when deplibs_check_method = "file_magic".
19226 file_magic_glob=$lt_file_magic_glob
19228 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19229 want_nocaseglob=$lt_want_nocaseglob
19231 # Command to associate shared and link libraries.
19232 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19237 # Flags to create an archive.
19238 AR_FLAGS=$lt_AR_FLAGS
19240 # How to feed a file listing to the archiver.
19241 archiver_list_spec=$lt_archiver_list_spec
19243 # A symbol stripping program.
19246 # Commands used to install an old-style archive.
19248 old_postinstall_cmds=$lt_old_postinstall_cmds
19249 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19251 # Whether to use a lock for old archive extraction.
19252 lock_old_archive_extraction=$lock_old_archive_extraction
19257 # LTCC compiler flags.
19258 LTCFLAGS=$lt_CFLAGS
19260 # Take the output of nm and produce a listing of raw symbols and C names.
19261 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19263 # Transform the output of nm in a proper C declaration.
19264 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19266 # Transform the output of nm into a list of symbols to manually relocate.
19267 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
19269 # Transform the output of nm in a C name address pair.
19270 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19272 # Transform the output of nm in a C name address pair when lib prefix is needed.
19273 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19275 # The name lister interface.
19276 nm_interface=$lt_lt_cv_nm_interface
19278 # Specify filename containing input files for \$NM.
19279 nm_file_list_spec=$lt_nm_file_list_spec
19281 # The root where to search for dependent libraries,and where our libraries should be installed.
19282 lt_sysroot=$lt_sysroot
19284 # Command to truncate a binary pipe.
19285 lt_truncate_bin=$lt_lt_cv_truncate_bin
19287 # The name of the directory that contains temporary libtool files.
19290 # Used to examine libraries when file_magic_cmd begins with "file".
19291 MAGIC_CMD=$MAGIC_CMD
19293 # Must we lock files when doing compilation?
19294 need_locks=$lt_need_locks
19297 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19299 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19300 DSYMUTIL=$lt_DSYMUTIL
19302 # Tool to change global to local symbols on Mac OS X.
19305 # Tool to manipulate fat objects and archives on Mac OS X.
19308 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19311 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19312 OTOOL64=$lt_OTOOL64
19314 # Old archive suffix (normally "a").
19317 # Shared library suffix (normally ".so").
19318 shrext_cmds=$lt_shrext_cmds
19320 # The commands to extract the exported symbol list from a shared archive.
19321 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19323 # Variables whose values should be saved in libtool wrapper scripts and
19324 # restored at link time.
19325 variables_saved_for_relink=$lt_variables_saved_for_relink
19327 # Do we need the "lib" prefix for modules?
19328 need_lib_prefix=$need_lib_prefix
19330 # Do we need a version for libraries?
19331 need_version=$need_version
19333 # Library versioning type.
19334 version_type=$version_type
19336 # Shared library runtime path variable.
19337 runpath_var=$runpath_var
19339 # Shared library path variable.
19340 shlibpath_var=$shlibpath_var
19342 # Is shlibpath searched before the hard-coded library search path?
19343 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19345 # Format of library name prefix.
19346 libname_spec=$lt_libname_spec
19348 # List of archive names. First name is the real one, the rest are links.
19349 # The last name is the one that the linker finds with -lNAME
19350 library_names_spec=$lt_library_names_spec
19352 # The coded name of the library, if different from the real name.
19353 soname_spec=$lt_soname_spec
19355 # Permission mode override for installation of shared libraries.
19356 install_override_mode=$lt_install_override_mode
19358 # Command to use after installation of a shared archive.
19359 postinstall_cmds=$lt_postinstall_cmds
19361 # Command to use after uninstallation of a shared archive.
19362 postuninstall_cmds=$lt_postuninstall_cmds
19364 # Commands used to finish a libtool library installation in a directory.
19365 finish_cmds=$lt_finish_cmds
19367 # As "finish_cmds", except a single script fragment to be evaled but
19369 finish_eval=$lt_finish_eval
19371 # Whether we should hardcode library paths into libraries.
19372 hardcode_into_libs=$hardcode_into_libs
19374 # Compile-time system search path for libraries.
19375 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19377 # Detected run-time system search path for libraries.
19378 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19380 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19381 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19383 # Whether dlopen is supported.
19384 dlopen_support=$enable_dlopen
19386 # Whether dlopen of programs is supported.
19387 dlopen_self=$enable_dlopen_self
19389 # Whether dlopen of statically linked programs is supported.
19390 dlopen_self_static=$enable_dlopen_self_static
19392 # Commands to strip libraries.
19393 old_striplib=$lt_old_striplib
19394 striplib=$lt_striplib
19397 # The linker used to build libraries.
19400 # How to create reloadable object files.
19401 reload_flag=$lt_reload_flag
19402 reload_cmds=$lt_reload_cmds
19404 # Commands used to build an old-style archive.
19405 old_archive_cmds=$lt_old_archive_cmds
19407 # A language specific compiler.
19410 # Is the compiler the GNU compiler?
19413 # Compiler flag to turn off builtin functions.
19414 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19416 # Additional compiler flags for building library objects.
19417 pic_flag=$lt_lt_prog_compiler_pic
19419 # How to pass a linker flag through the compiler.
19420 wl=$lt_lt_prog_compiler_wl
19422 # Compiler flag to prevent dynamic linking.
19423 link_static_flag=$lt_lt_prog_compiler_static
19425 # Does compiler simultaneously support -c and -o options?
19426 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19428 # Whether or not to add -lc for building shared libraries.
19429 build_libtool_need_lc=$archive_cmds_need_lc
19431 # Whether or not to disallow shared libs when runtime libs are static.
19432 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19434 # Compiler flag to allow reflexive dlopens.
19435 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19437 # Compiler flag to generate shared objects directly from archives.
19438 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19440 # Whether the compiler copes with passing no objects directly.
19441 compiler_needs_object=$lt_compiler_needs_object
19443 # Create an old-style archive from a shared archive.
19444 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19446 # Create a temporary old-style archive to link instead of a shared archive.
19447 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19449 # Commands used to build a shared archive.
19450 archive_cmds=$lt_archive_cmds
19451 archive_expsym_cmds=$lt_archive_expsym_cmds
19453 # Commands used to build a loadable module if different from building
19454 # a shared archive.
19455 module_cmds=$lt_module_cmds
19456 module_expsym_cmds=$lt_module_expsym_cmds
19458 # Whether we are building with GNU ld or not.
19459 with_gnu_ld=$lt_with_gnu_ld
19461 # Flag that allows shared libraries with undefined symbols to be built.
19462 allow_undefined_flag=$lt_allow_undefined_flag
19464 # Flag that enforces no undefined symbols.
19465 no_undefined_flag=$lt_no_undefined_flag
19467 # Flag to hardcode \$libdir into a binary during linking.
19468 # This must work even if \$libdir does not exist
19469 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19471 # Whether we need a single "-rpath" flag with a separated argument.
19472 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19474 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19475 # DIR into the resulting binary.
19476 hardcode_direct=$hardcode_direct
19478 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19479 # DIR into the resulting binary and the resulting library dependency is
19480 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19481 # library is relocated.
19482 hardcode_direct_absolute=$hardcode_direct_absolute
19484 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19485 # into the resulting binary.
19486 hardcode_minus_L=$hardcode_minus_L
19488 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19489 # into the resulting binary.
19490 hardcode_shlibpath_var=$hardcode_shlibpath_var
19492 # Set to "yes" if building a shared library automatically hardcodes DIR
19493 # into the library and all subsequent libraries and executables linked
19495 hardcode_automatic=$hardcode_automatic
19497 # Set to yes if linker adds runtime paths of dependent libraries
19498 # to runtime path list.
19499 inherit_rpath=$inherit_rpath
19501 # Whether libtool must link a program against all its dependency libraries.
19502 link_all_deplibs=$link_all_deplibs
19504 # Set to "yes" if exported symbols are required.
19505 always_export_symbols=$always_export_symbols
19507 # The commands to list exported symbols.
19508 export_symbols_cmds=$lt_export_symbols_cmds
19510 # Symbols that should not be listed in the preloaded symbols.
19511 exclude_expsyms=$lt_exclude_expsyms
19513 # Symbols that must always be exported.
19514 include_expsyms=$lt_include_expsyms
19516 # Commands necessary for linking programs (against libraries) with templates.
19517 prelink_cmds=$lt_prelink_cmds
19519 # Commands necessary for finishing linking programs.
19520 postlink_cmds=$lt_postlink_cmds
19522 # Specify filename containing input files.
19523 file_list_spec=$lt_file_list_spec
19525 # How to hardcode a shared library path into an executable.
19526 hardcode_action=$hardcode_action
19528 # ### END LIBTOOL CONFIG
19532 cat <<'_LT_EOF' >> "$cfgfile"
19534 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19536 # func_munge_path_list VARIABLE PATH
19537 # -----------------------------------
19538 # VARIABLE is name of variable containing _space_ separated list of
19539 # directories to be munged by the contents of PATH, which is string
19542 # string "DIR[ DIR]" will be prepended to VARIABLE
19544 # string "DIR[ DIR]" will be appended to VARIABLE
19545 # "DIRP[:DIRP]::[DIRA:]DIRA"
19546 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19547 # "DIRA[ DIRA]" will be appended to VARIABLE
19549 # VARIABLE will be replaced by "DIR[ DIR]"
19550 func_munge_path_list ()
19556 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19559 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19562 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19563 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19566 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19572 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19573 func_cc_basename ()
19575 for cc_temp in $*""; do
19577 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19578 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19583 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19587 # ### END FUNCTIONS SHARED WITH CONFIGURE
19593 cat <<\_LT_EOF >> "$cfgfile"
19594 # AIX sometimes has problems with the GCC collect2 program. For some
19595 # reason, if we set the COLLECT_NAMES environment variable, the problems
19596 # vanish in a puff of smoke.
19597 if test set != "${COLLECT_NAMES+set}"; then
19599 export COLLECT_NAMES
19606 ltmain=$ac_aux_dir/ltmain.sh
19609 # We use sed instead of cat because bash on DJGPP gets confused if
19610 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19611 # text mode, it properly converts lines to CR/LF. This bash problem
19612 # is reportedly fixed, but why not run on old versions too?
19613 sed '$q' "$ltmain" >> "$cfgfile" \
19614 || (rm -f "$cfgfile"; exit 1)
19616 mv -f "$cfgfile" "$ofile" ||
19617 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19628 ac_clean_files=$ac_clean_files_save
19630 test $ac_write_fail = 0 ||
19631 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19634 # configure is writing to config.log, and then calls config.status.
19635 # config.status does its own redirection, appending to config.log.
19636 # Unfortunately, on DOS this fails, as config.log is still kept open
19637 # by configure, so config.status won't be able to write to it; its
19638 # output is simply discarded. So we exec the FD to /dev/null,
19639 # effectively closing config.log, so it can be properly (re)opened and
19640 # appended to by config.status. When coming back to configure, we
19641 # need to make the FD available again.
19642 if test "$no_create" != yes; then
19644 ac_config_status_args=
19645 test "$silent" = yes &&
19646 ac_config_status_args="$ac_config_status_args --quiet"
19648 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19650 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19651 # would make configure fail if this is the last instruction.
19652 $ac_cs_success || as_fn_exit 1
19654 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19656 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19665 echo "------------------------------------------------------------------------"
19666 echo "$PACKAGE $VERSION"
19667 echo "------------------------------------------------------------------------"
19670 echo "Configuration Options Summary:"
19672 echo " Debug...............: ${want_debug}"
19674 echo " Optional support:"
19675 echo " libpng............: ${have_libpng}"
19676 echo " libtiff...........: ${have_libtiff}"
19677 echo " libcms............: ${lcms_output}"
19679 echo " Documentation.......: ${opj_have_doxygen}"
19680 echo " Build.............: make doc"
19682 echo " mj2.................: ${want_mj2}"
19683 echo " jpwl................: ${want_jpwl}"
19684 echo " jpip................: ${want_jpip}"
19685 echo " jpip server.........: ${want_jpip_server}"