2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for ImageMagick 7.0.0.
5 # Report bugs to <http://www.imagemagick.org>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh -c $as_echo_n_body as_echo'
73 as_echo='sh -c $as_echo_body as_echo'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir=.
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
234 *v*x* | *x*v* ) as_opts=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org and
250 $0: http://www.imagemagick.org about your system, including
251 $0: any error possibly output before this message. Then
252 $0: install a modern shell, or manually run the script
253 $0: under such a shell if you do have one."
259 SHELL=${CONFIG_SHELL-/bin/sh}
261 # Unset more variables known to interfere with behavior of common tools.
262 CLICOLOR_FORCE= GREP_OPTIONS=
263 unset CLICOLOR_FORCE GREP_OPTIONS
265 ## --------------------- ##
266 ## M4sh Shell Functions. ##
267 ## --------------------- ##
270 # Portably unset VAR.
273 { eval $1=; unset $1;}
277 # as_fn_set_status STATUS
278 # -----------------------
279 # Set $? to STATUS, without forking.
287 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
297 # Create "$as_dir" as a directory, including parents if necessary.
302 -*) as_dir=./$as_dir;;
304 test -d "$as_dir" || eval $as_mkdir_p || {
308 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
311 as_dirs="'$as_qdir' $as_dirs"
312 as_dir=`$as_dirname -- "$as_dir" ||
313 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
314 X"$as_dir" : 'X\(//\)[^/]' \| \
315 X"$as_dir" : 'X\(//\)$' \| \
316 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
317 $as_echo X"$as_dir" |
318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
335 test -d "$as_dir" && break
337 test -z "$as_dirs" || eval "mkdir $as_dirs"
338 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342 # as_fn_append VAR VALUE
343 # ----------------------
344 # Append the text in VALUE to the end of the definition contained in VAR. Take
345 # advantage of any shell optimizations that allow amortized linear growth over
346 # repeated appends, instead of the typical quadratic growth present in naive
348 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
349 eval 'as_fn_append ()
362 # Perform arithmetic evaluation on the ARGs, and store the result in the
363 # global $as_val. Take advantage of shells that can avoid forks. The arguments
364 # must be portable across $(()) and expr.
365 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
373 as_val=`expr "$@" || test $? -eq 1`
378 # as_fn_error STATUS ERROR [LINENO LOG_FD]
379 # ----------------------------------------
380 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
381 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
382 # script with STATUS, using 1 if that was 0.
385 as_status=$1; test $as_status -eq 0 && as_status=1
387 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
388 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 $as_echo "$as_me: error: $2" >&2
391 as_fn_exit $as_status
394 if expr a : '\(a\)' >/dev/null 2>&1 &&
395 test "X`expr 00001 : '.*\(...\)'`" = X001; then
401 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
407 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
413 as_me=`$as_basename -- "$0" ||
414 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
415 X"$0" : 'X\(//\)$' \| \
416 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 sed '/^.*\/\([^/][^/]*\)\/*$/{
432 # Avoid depending upon Character Ranges.
433 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
434 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
435 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
436 as_cr_digits='0123456789'
437 as_cr_alnum=$as_cr_Letters$as_cr_digits
440 as_lineno_1=$LINENO as_lineno_1a=$LINENO
441 as_lineno_2=$LINENO as_lineno_2a=$LINENO
442 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
443 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
444 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
456 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
460 chmod +x "$as_me.lineno" ||
461 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463 # Don't try to exec as it changes $[0], causing all sort of problems
464 # (the dirname of $[0] is not the place where we might find the
465 # original and so on. Autoconf is especially sensitive to this).
467 # Exit status is that of the last command.
471 ECHO_C= ECHO_N= ECHO_T=
472 case `echo -n x` in #(((((
474 case `echo 'xy\c'` in
475 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
489 mkdir conf$$.dir 2>/dev/null
491 if (echo >conf$$.file) 2>/dev/null; then
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 elif ln conf$$.file conf$$ 2>/dev/null; then
508 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
509 rmdir conf$$.dir 2>/dev/null
511 if mkdir -p . 2>/dev/null; then
512 as_mkdir_p='mkdir -p "$as_dir"'
514 test -d ./-p && rmdir ./-p
518 if test -x / >/dev/null 2>&1; then
521 if ls -dL / >/dev/null 2>&1; then
528 if test -d "$1"; then
534 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
535 ???[sx]*):;;*)false;;esac;fi
539 as_executable_p=$as_test_x
541 # Sed expression to map a string onto a valid CPP name.
542 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544 # Sed expression to map a string onto a valid variable name.
545 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547 SHELL=${CONFIG_SHELL-/bin/sh}
551 lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
554 test -n "$DJDIR" || exec 7<&0 </dev/null
558 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
559 # so uname gets run too.
560 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
565 ac_default_prefix=/usr/local
567 ac_config_libobj_dir=.
574 # Identity of this package.
575 PACKAGE_NAME='ImageMagick'
576 PACKAGE_TARNAME='ImageMagick-7.0.0'
577 PACKAGE_VERSION='7.0.0'
578 PACKAGE_STRING='ImageMagick 7.0.0'
579 PACKAGE_BUGREPORT='http://www.imagemagick.org'
582 ac_unique_file="MagickCore/MagickCore.h"
583 ac_config_libobj_dir=ltdl
584 # Factoring default headers for most tests.
585 ac_includes_default="\
587 #ifdef HAVE_SYS_TYPES_H
588 # include <sys/types.h>
590 #ifdef HAVE_SYS_STAT_H
591 # include <sys/stat.h>
597 # ifdef HAVE_STDLIB_H
602 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
607 #ifdef HAVE_STRINGS_H
608 # include <strings.h>
610 #ifdef HAVE_INTTYPES_H
611 # include <inttypes.h>
621 ac_subst_vars='ltdl_LTLIBOBJS
639 PERL_SUPPORTS_DESTDIR
640 WITH_PERL_DYNAMIC_FALSE
641 WITH_PERL_DYNAMIC_TRUE
642 WITH_PERL_STATIC_FALSE
643 WITH_PERL_STATIC_TRUE
708 GnuplotDecodeDelegate
722 BlenderDecodeDelegate
723 AutotraceDecodeDelegate
756 OPENEXR_DELEGATE_FALSE
757 OPENEXR_DELEGATE_TRUE
787 FREETYPE_DELEGATE_FALSE
788 FREETYPE_DELEGATE_TRUE
790 FONTCONFIG_DELEGATE_FALSE
791 FONTCONFIG_DELEGATE_TRUE
806 AUTOTRACE_DELEGATE_FALSE
807 AUTOTRACE_DELEGATE_TRUE
832 WITH_MAGICK_PLUS_PLUS_FALSE
833 WITH_MAGICK_PLUS_PLUS_TRUE
854 LIBRARY_EXTRA_CPPFLAGS
855 MODULE_EXTRA_CPPFLAGS
860 MAINTAINER_MODE_FALSE
868 WITH_SHARED_LIBS_FALSE
869 WITH_SHARED_LIBS_TRUE
872 CONVENIENCE_LTDL_FALSE
873 CONVENIENCE_LTDL_TRUE
877 sys_symbol_underscore
919 WIN32_NATIVE_BUILD_FALSE
920 WIN32_NATIVE_BUILD_TRUE
921 WINGDI32_DELEGATE_FALSE
922 WINGDI32_DELEGATE_TRUE
955 MAGICK_FILTER_MODULE_PATH
956 MAGICK_CONFIGURE_BUILD_PATH
957 MAGICK_CONFIGURE_SRC_PATH
958 MAGICK_CODER_MODULE_PATH
974 CONFIG_STATUS_DEPENDENCIES
975 MAGICK_LIB_VERSION_NUMBER
976 MAGICK_LIB_VERSION_TEXT
988 INSTALL_STRIP_PROGRAM
1003 PACKAGE_VERSION_ADDENDUM
1004 PACKAGE_RELEASE_DATE
1005 PACKAGE_LIB_VERSION_NUMBER
1009 PACKAGE_PERL_VERSION
1011 MAGICK_LIBRARY_VERSION_INFO
1012 MAGICK_LIBRARY_CURRENT_MIN
1014 MAGICK_LIBRARY_REVISION
1015 MAGICK_LIBRARY_CURRENT
1017 MAGICK_TARGET_VENDOR
1032 DISTCHECK_CONFIG_FLAGS
1060 program_transform_name
1073 enable_option_checking
1075 enable_dependency_tracking
1078 enable_bounds_checking
1079 enable_osx_universal_binary
1095 enable_delegate_build
1102 enable_maintainer_mode
1112 with_magick_plus_plus
1123 with_dejavu_font_dir
1144 with_windows_font_dir
1148 ac_precious_vars='build_alias
1179 # Initialize some variables set by options.
1181 ac_init_version=false
1182 ac_unrecognized_opts=
1183 ac_unrecognized_sep=
1184 # The variables have the same names as the options, with
1185 # dashes changed to underlines.
1186 cache_file=/dev/null
1193 program_transform_name=s,x,x,
1201 # Installation directory options.
1202 # These are left unexpanded so users can "make install exec_prefix=/foo"
1203 # and all the variables that are supposed to be based on exec_prefix
1204 # by default will actually change.
1205 # Use braces instead of parens because sh, perl, etc. also accept them.
1206 # (The list follows the same order as the GNU Coding Standards.)
1207 bindir='${exec_prefix}/bin'
1208 sbindir='${exec_prefix}/sbin'
1209 libexecdir='${exec_prefix}/libexec'
1210 datarootdir='${prefix}/share'
1211 datadir='${datarootdir}'
1212 sysconfdir='${prefix}/etc'
1213 sharedstatedir='${prefix}/com'
1214 localstatedir='${prefix}/var'
1215 includedir='${prefix}/include'
1216 oldincludedir='/usr/include'
1217 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1218 infodir='${datarootdir}/info'
1223 libdir='${exec_prefix}/lib'
1224 localedir='${datarootdir}/locale'
1225 mandir='${datarootdir}/man'
1231 # If the previous option needs an argument, assign it.
1232 if test -n "$ac_prev"; then
1233 eval $ac_prev=\$ac_option
1239 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1244 # Accept the important Cygnus configure options, so we can diagnose typos.
1246 case $ac_dashdash$ac_option in
1250 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1252 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1253 bindir=$ac_optarg ;;
1255 -build | --build | --buil | --bui | --bu)
1256 ac_prev=build_alias ;;
1257 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1258 build_alias=$ac_optarg ;;
1260 -cache-file | --cache-file | --cache-fil | --cache-fi \
1261 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1262 ac_prev=cache_file ;;
1263 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1264 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1265 cache_file=$ac_optarg ;;
1267 --config-cache | -C)
1268 cache_file=config.cache ;;
1270 -datadir | --datadir | --datadi | --datad)
1272 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1273 datadir=$ac_optarg ;;
1275 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1276 | --dataroo | --dataro | --datar)
1277 ac_prev=datarootdir ;;
1278 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1279 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1280 datarootdir=$ac_optarg ;;
1282 -disable-* | --disable-*)
1283 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286 as_fn_error $? "invalid feature name: $ac_useropt"
1287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1291 "enable_$ac_useropt"
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1296 eval enable_$ac_useropt=no ;;
1298 -docdir | --docdir | --docdi | --doc | --do)
1300 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1301 docdir=$ac_optarg ;;
1303 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1305 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1306 dvidir=$ac_optarg ;;
1308 -enable-* | --enable-*)
1309 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1310 # Reject names that are not valid shell variable names.
1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1312 as_fn_error $? "invalid feature name: $ac_useropt"
1313 ac_useropt_orig=$ac_useropt
1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1315 case $ac_user_opts in
1317 "enable_$ac_useropt"
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1322 eval enable_$ac_useropt=\$ac_optarg ;;
1324 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1325 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1326 | --exec | --exe | --ex)
1327 ac_prev=exec_prefix ;;
1328 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1329 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1330 | --exec=* | --exe=* | --ex=*)
1331 exec_prefix=$ac_optarg ;;
1333 -gas | --gas | --ga | --g)
1334 # Obsolete; use --with-gas.
1337 -help | --help | --hel | --he | -h)
1338 ac_init_help=long ;;
1339 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1340 ac_init_help=recursive ;;
1341 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1342 ac_init_help=short ;;
1344 -host | --host | --hos | --ho)
1345 ac_prev=host_alias ;;
1346 -host=* | --host=* | --hos=* | --ho=*)
1347 host_alias=$ac_optarg ;;
1349 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1351 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1353 htmldir=$ac_optarg ;;
1355 -includedir | --includedir | --includedi | --included | --include \
1356 | --includ | --inclu | --incl | --inc)
1357 ac_prev=includedir ;;
1358 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1359 | --includ=* | --inclu=* | --incl=* | --inc=*)
1360 includedir=$ac_optarg ;;
1362 -infodir | --infodir | --infodi | --infod | --info | --inf)
1364 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1365 infodir=$ac_optarg ;;
1367 -libdir | --libdir | --libdi | --libd)
1369 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1370 libdir=$ac_optarg ;;
1372 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1373 | --libexe | --libex | --libe)
1374 ac_prev=libexecdir ;;
1375 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1376 | --libexe=* | --libex=* | --libe=*)
1377 libexecdir=$ac_optarg ;;
1379 -localedir | --localedir | --localedi | --localed | --locale)
1380 ac_prev=localedir ;;
1381 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1382 localedir=$ac_optarg ;;
1384 -localstatedir | --localstatedir | --localstatedi | --localstated \
1385 | --localstate | --localstat | --localsta | --localst | --locals)
1386 ac_prev=localstatedir ;;
1387 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1388 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1389 localstatedir=$ac_optarg ;;
1391 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1393 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1394 mandir=$ac_optarg ;;
1396 -nfp | --nfp | --nf)
1397 # Obsolete; use --without-fp.
1400 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1401 | --no-cr | --no-c | -n)
1404 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1405 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1408 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1409 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1410 | --oldin | --oldi | --old | --ol | --o)
1411 ac_prev=oldincludedir ;;
1412 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1413 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1414 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1415 oldincludedir=$ac_optarg ;;
1417 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1419 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1420 prefix=$ac_optarg ;;
1422 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1423 | --program-pre | --program-pr | --program-p)
1424 ac_prev=program_prefix ;;
1425 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1426 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1427 program_prefix=$ac_optarg ;;
1429 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1430 | --program-suf | --program-su | --program-s)
1431 ac_prev=program_suffix ;;
1432 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1433 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1434 program_suffix=$ac_optarg ;;
1436 -program-transform-name | --program-transform-name \
1437 | --program-transform-nam | --program-transform-na \
1438 | --program-transform-n | --program-transform- \
1439 | --program-transform | --program-transfor \
1440 | --program-transfo | --program-transf \
1441 | --program-trans | --program-tran \
1442 | --progr-tra | --program-tr | --program-t)
1443 ac_prev=program_transform_name ;;
1444 -program-transform-name=* | --program-transform-name=* \
1445 | --program-transform-nam=* | --program-transform-na=* \
1446 | --program-transform-n=* | --program-transform-=* \
1447 | --program-transform=* | --program-transfor=* \
1448 | --program-transfo=* | --program-transf=* \
1449 | --program-trans=* | --program-tran=* \
1450 | --progr-tra=* | --program-tr=* | --program-t=*)
1451 program_transform_name=$ac_optarg ;;
1453 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1455 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1456 pdfdir=$ac_optarg ;;
1458 -psdir | --psdir | --psdi | --psd | --ps)
1460 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1463 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1464 | -silent | --silent | --silen | --sile | --sil)
1467 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1469 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1471 sbindir=$ac_optarg ;;
1473 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1474 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1475 | --sharedst | --shareds | --shared | --share | --shar \
1477 ac_prev=sharedstatedir ;;
1478 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1479 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1480 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1482 sharedstatedir=$ac_optarg ;;
1484 -site | --site | --sit)
1486 -site=* | --site=* | --sit=*)
1489 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1491 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1492 srcdir=$ac_optarg ;;
1494 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1495 | --syscon | --sysco | --sysc | --sys | --sy)
1496 ac_prev=sysconfdir ;;
1497 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1498 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1499 sysconfdir=$ac_optarg ;;
1501 -target | --target | --targe | --targ | --tar | --ta | --t)
1502 ac_prev=target_alias ;;
1503 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1504 target_alias=$ac_optarg ;;
1506 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1509 -version | --version | --versio | --versi | --vers | -V)
1510 ac_init_version=: ;;
1513 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1514 # Reject names that are not valid shell variable names.
1515 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1516 as_fn_error $? "invalid package name: $ac_useropt"
1517 ac_useropt_orig=$ac_useropt
1518 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1519 case $ac_user_opts in
1523 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1524 ac_unrecognized_sep=', ';;
1526 eval with_$ac_useropt=\$ac_optarg ;;
1528 -without-* | --without-*)
1529 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1530 # Reject names that are not valid shell variable names.
1531 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1532 as_fn_error $? "invalid package name: $ac_useropt"
1533 ac_useropt_orig=$ac_useropt
1534 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1535 case $ac_user_opts in
1539 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1540 ac_unrecognized_sep=', ';;
1542 eval with_$ac_useropt=no ;;
1545 # Obsolete; use --with-x.
1548 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1549 | --x-incl | --x-inc | --x-in | --x-i)
1550 ac_prev=x_includes ;;
1551 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1552 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1553 x_includes=$ac_optarg ;;
1555 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1556 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1557 ac_prev=x_libraries ;;
1558 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1559 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1560 x_libraries=$ac_optarg ;;
1562 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1563 Try \`$0 --help' for more information"
1567 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1568 # Reject names that are not valid shell variable names.
1569 case $ac_envvar in #(
1570 '' | [0-9]* | *[!_$as_cr_alnum]* )
1571 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1573 eval $ac_envvar=\$ac_optarg
1574 export $ac_envvar ;;
1577 # FIXME: should be removed in autoconf 3.0.
1578 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1579 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1580 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1581 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1587 if test -n "$ac_prev"; then
1588 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1589 as_fn_error $? "missing argument to $ac_option"
1592 if test -n "$ac_unrecognized_opts"; then
1593 case $enable_option_checking in
1595 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1596 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1600 # Check all directory arguments for consistency.
1601 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1602 datadir sysconfdir sharedstatedir localstatedir includedir \
1603 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1604 libdir localedir mandir
1606 eval ac_val=\$$ac_var
1607 # Remove trailing slashes.
1610 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1611 eval $ac_var=\$ac_val;;
1613 # Be sure to have absolute directory names.
1615 [\\/$]* | ?:[\\/]* ) continue;;
1616 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1618 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1621 # There might be people who depend on the old broken behavior: `$host'
1622 # used to hold the argument of --host etc.
1623 # FIXME: To remove some day.
1626 target=$target_alias
1628 # FIXME: To remove some day.
1629 if test "x$host_alias" != x; then
1630 if test "x$build_alias" = x; then
1631 cross_compiling=maybe
1632 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1633 If a cross compiler is detected then cross compile mode will be used" >&2
1634 elif test "x$build_alias" != "x$host_alias"; then
1640 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1642 test "$silent" = yes && exec 6>/dev/null
1645 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1646 ac_ls_di=`ls -di .` &&
1647 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1648 as_fn_error $? "working directory cannot be determined"
1649 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1650 as_fn_error $? "pwd does not report name of working directory"
1653 # Find the source files, if location was not specified.
1654 if test -z "$srcdir"; then
1655 ac_srcdir_defaulted=yes
1656 # Try the directory containing this script, then the parent directory.
1657 ac_confdir=`$as_dirname -- "$as_myself" ||
1658 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1659 X"$as_myself" : 'X\(//\)[^/]' \| \
1660 X"$as_myself" : 'X\(//\)$' \| \
1661 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1662 $as_echo X"$as_myself" |
1663 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1681 if test ! -r "$srcdir/$ac_unique_file"; then
1685 ac_srcdir_defaulted=no
1687 if test ! -r "$srcdir/$ac_unique_file"; then
1688 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1689 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1691 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1693 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1695 # When building in place, set srcdir=.
1696 if test "$ac_abs_confdir" = "$ac_pwd"; then
1699 # Remove unnecessary trailing slashes from srcdir.
1700 # Double slashes in file names in object file debugging info
1701 # mess up M-x gdb in Emacs.
1703 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1705 for ac_var in $ac_precious_vars; do
1706 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1707 eval ac_env_${ac_var}_value=\$${ac_var}
1708 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1709 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1713 # Report the --help message.
1715 if test "$ac_init_help" = "long"; then
1716 # Omit some internal or obsolete options to make the list less imposing.
1717 # This message is too long to be a string in the A/UX 3.1 sh.
1719 \`configure' configures ImageMagick 7.0.0 to adapt to many kinds of systems.
1721 Usage: $0 [OPTION]... [VAR=VALUE]...
1723 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1724 VAR=VALUE. See below for descriptions of some of the useful variables.
1726 Defaults for the options are specified in brackets.
1729 -h, --help display this help and exit
1730 --help=short display options specific to this package
1731 --help=recursive display the short help of all the included packages
1732 -V, --version display version information and exit
1733 -q, --quiet, --silent do not print \`checking ...' messages
1734 --cache-file=FILE cache test results in FILE [disabled]
1735 -C, --config-cache alias for \`--cache-file=config.cache'
1736 -n, --no-create do not create output files
1737 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1739 Installation directories:
1740 --prefix=PREFIX install architecture-independent files in PREFIX
1741 [$ac_default_prefix]
1742 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1745 By default, \`make install' will install all the files in
1746 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1747 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1748 for instance \`--prefix=\$HOME'.
1750 For better control, use the options below.
1752 Fine tuning of the installation directories:
1753 --bindir=DIR user executables [EPREFIX/bin]
1754 --sbindir=DIR system admin executables [EPREFIX/sbin]
1755 --libexecdir=DIR program executables [EPREFIX/libexec]
1756 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1757 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1758 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1759 --libdir=DIR object code libraries [EPREFIX/lib]
1760 --includedir=DIR C header files [PREFIX/include]
1761 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1762 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1763 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1764 --infodir=DIR info documentation [DATAROOTDIR/info]
1765 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1766 --mandir=DIR man documentation [DATAROOTDIR/man]
1767 --docdir=DIR documentation root
1768 [DATAROOTDIR/doc/ImageMagick-7.0.0]
1769 --htmldir=DIR html documentation [DOCDIR]
1770 --dvidir=DIR dvi documentation [DOCDIR]
1771 --pdfdir=DIR pdf documentation [DOCDIR]
1772 --psdir=DIR ps documentation [DOCDIR]
1778 --program-prefix=PREFIX prepend PREFIX to installed program names
1779 --program-suffix=SUFFIX append SUFFIX to installed program names
1780 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1783 --x-includes=DIR X include files are in DIR
1784 --x-libraries=DIR X library files are in DIR
1787 --build=BUILD configure for building on BUILD [guessed]
1788 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1789 --target=TARGET configure for building compilers for TARGET [HOST]
1793 if test -n "$ac_init_help"; then
1794 case $ac_init_help in
1795 short | recursive ) echo "Configuration of ImageMagick 7.0.0:";;
1800 --disable-option-checking ignore unrecognized --enable/--with options
1801 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1802 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1803 --enable-silent-rules less verbose build output (undo: `make V=1')
1804 --disable-silent-rules verbose build output (undo: `make V=0')
1805 --disable-dependency-tracking speeds up one-time build
1806 --enable-dependency-tracking do not reject slow dependency extractors
1807 --bounds-checking enable run-time bounds-checking
1808 --enable-osx-universal-binary
1809 build universal binary on OS X [[default=no]]
1810 --disable-openmp do not use OpenMP
1811 --disable-opencl do not use OpenCL
1812 --disable-largefile omit support for large files
1813 --enable-shared[=PKGS] build shared libraries [default=yes]
1814 --enable-static[=PKGS] build static libraries [default=yes]
1815 --enable-fast-install[=PKGS]
1816 optimize for fast installation [default=yes]
1817 --disable-libtool-lock avoid locking (might break parallel builds)
1818 --enable-ltdl-install install libltdl
1819 --enable-delegate-build look for delegate libraries in build directory
1820 --disable-deprecated exclude deprecated methods in MagickCore and
1822 --disable-installed Formally install ImageMagick under PREFIX
1823 --disable-cipher disable enciphering and deciphering image pixels
1824 --enable-embeddable enable self-contained, embeddable,
1825 zero-configuration ImageMagick
1826 --enable-hdri accurately represent the wide range of intensity
1827 levels found in real scenes
1828 --disable-assert disable assert() statements in build
1829 --enable-maintainer-mode enable make rules and dependencies not useful
1830 (and sometimes confusing) to the casual installer
1831 --enable-ccmalloc enable 'ccmalloc' memory debug support
1832 --enable-efence enable 'efence' memory debug support
1833 --enable-prof enable 'prof' profiling support
1834 --enable-gprof enable 'gprof' profiling support
1835 --enable-gcov enable 'gcov' profiling support
1836 --disable-assert turn off assertions
1839 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1840 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1841 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1842 --with-dmalloc use dmalloc, as in
1843 http://www.dmalloc.com/dmalloc.tar.gz
1844 --without-threads disable threads support
1845 --with-pic try to use only PIC/non-PIC objects [default=use
1847 --with-sysroot=DIR Search for dependent libraries within DIR
1848 (or the compiler's sysroot if not specified).
1849 --with-included-ltdl use the GNU ltdl sources included here
1850 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1851 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1852 --with-modules enable building dynamically loadable modules
1853 --with-method-prefix=PREFIX
1854 prefix MagickCore API methods
1855 --with-quantum-depth=DEPTH
1856 number of bits in a pixel quantum (default 16)
1857 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1859 --with-frozenpaths freeze delegate paths
1860 --without-magick-plus-plus
1861 disable build/install of Magick++
1862 --with-perl enable build/install of PerlMagick
1863 --with-perl-options=OPTIONS
1864 options to pass on command-line when generating
1865 PerlMagick's build file
1866 --with-umem enable umem memory allocation library support
1867 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1868 --without-bzlib disable BZLIB support
1869 --with-x use the X Window System
1870 --without-zlib disable ZLIB support
1871 --with-autotrace enable autotrace support
1872 --without-dps disable Display Postscript support
1873 --without-djvu disable DjVu support
1874 --with-dejavu-font-dir=DIR
1875 DejaVu font directory
1876 --without-fftw disable FFTW support
1877 --without-fpx disable FlashPIX support
1878 --without-fontconfig disable fontconfig support
1879 --without-freetype disable Freetype support
1880 --without-gslib enable Ghostscript library support
1881 --with-fontpath=DIR prepend to default font search path
1882 --with-gs-font-dir=DIR Ghostscript font directory
1883 --without-gvc disable GVC support
1884 --without-jbig disable JBIG support
1885 --without-jpeg disable JPEG support
1886 --without-jp2 disable JPEG-2000 support
1887 --without-lcms disable lcms (v1.1X) support
1888 --without-lcms2 disable lcms (v2.X) support
1889 --without-lqr disable Liquid Rescale support
1890 --without-lzma disable LZMA support
1891 --without-openexr disable OpenEXR support
1892 --without-png disable PNG support
1893 --without-rsvg disable RSVG support
1894 --without-tiff disable TIFF support
1895 --without-webp disable WEBP support
1896 --with-windows-font-dir=DIR
1897 directory containing MS-Windows fonts
1898 --without-wmf disable WMF support
1899 --without-xml disable XML support
1901 Some influential environment variables:
1902 CC C compiler command
1903 CFLAGS C compiler flags
1904 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1905 nonstandard directory <lib dir>
1906 LIBS libraries to pass to the linker, e.g. -l<library>
1907 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1908 you have headers in a nonstandard directory <include dir>
1910 CXX C++ compiler command
1911 CXXFLAGS C++ compiler flags
1912 PKG_CONFIG path to pkg-config utility
1913 CXXCPP C++ preprocessor
1914 XMKMF Path to xmkmf, Makefile generator for X Window System
1916 C compiler flags for AUTOTRACE, overriding pkg-config
1918 linker flags for AUTOTRACE, overriding pkg-config
1920 C compiler flags for FONTCONFIG, overriding pkg-config
1922 linker flags for FONTCONFIG, overriding pkg-config
1923 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1924 GVC_LIBS linker flags for GVC, overriding pkg-config
1925 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1926 LQR_LIBS linker flags for LQR, overriding pkg-config
1928 C compiler flags for OPENEXR, overriding pkg-config
1930 linker flags for OPENEXR, overriding pkg-config
1931 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1932 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1934 C compiler flags for CAIRO_SVG, overriding pkg-config
1936 linker flags for CAIRO_SVG, overriding pkg-config
1938 Use these variables to override the choices made by `configure' or to help
1939 it to find libraries and programs with nonstandard names/locations.
1941 Report bugs to <http://www.imagemagick.org>.
1946 if test "$ac_init_help" = "recursive"; then
1947 # If there are subdirs, report their specific --help.
1948 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1949 test -d "$ac_dir" ||
1950 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1955 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1957 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1958 # A ".." for each directory in $ac_dir_suffix.
1959 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1960 case $ac_top_builddir_sub in
1961 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1962 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1965 ac_abs_top_builddir=$ac_pwd
1966 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1967 # for backward compatibility:
1968 ac_top_builddir=$ac_top_build_prefix
1971 .) # We are building in place.
1973 ac_top_srcdir=$ac_top_builddir_sub
1974 ac_abs_top_srcdir=$ac_pwd ;;
1975 [\\/]* | ?:[\\/]* ) # Absolute name.
1976 ac_srcdir=$srcdir$ac_dir_suffix;
1977 ac_top_srcdir=$srcdir
1978 ac_abs_top_srcdir=$srcdir ;;
1980 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1981 ac_top_srcdir=$ac_top_build_prefix$srcdir
1982 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1984 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1986 cd "$ac_dir" || { ac_status=$?; continue; }
1987 # Check for guested configure.
1988 if test -f "$ac_srcdir/configure.gnu"; then
1990 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1991 elif test -f "$ac_srcdir/configure"; then
1993 $SHELL "$ac_srcdir/configure" --help=recursive
1995 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1997 cd "$ac_pwd" || { ac_status=$?; break; }
2001 test -n "$ac_init_help" && exit $ac_status
2002 if $ac_init_version; then
2004 ImageMagick configure 7.0.0
2005 generated by GNU Autoconf 2.68
2007 Copyright (C) 2010 Free Software Foundation, Inc.
2008 This configure script is free software; the Free Software Foundation
2009 gives unlimited permission to copy, distribute and modify it.
2014 ## ------------------------ ##
2015 ## Autoconf initialization. ##
2016 ## ------------------------ ##
2018 # ac_fn_c_try_compile LINENO
2019 # --------------------------
2020 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2021 ac_fn_c_try_compile ()
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 rm -f conftest.$ac_objext
2025 if { { ac_try="$ac_compile"
2027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2028 *) ac_try_echo=$ac_try;;
2030 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2031 $as_echo "$ac_try_echo"; } >&5
2032 (eval "$ac_compile") 2>conftest.err
2034 if test -s conftest.err; then
2035 grep -v '^ *+' conftest.err >conftest.er1
2036 cat conftest.er1 >&5
2037 mv -f conftest.er1 conftest.err
2039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2040 test $ac_status = 0; } && {
2041 test -z "$ac_c_werror_flag" ||
2042 test ! -s conftest.err
2043 } && test -s conftest.$ac_objext; then :
2046 $as_echo "$as_me: failed program was:" >&5
2047 sed 's/^/| /' conftest.$ac_ext >&5
2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2052 as_fn_set_status $ac_retval
2054 } # ac_fn_c_try_compile
2056 # ac_fn_c_try_cpp LINENO
2057 # ----------------------
2058 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 if { { ac_try="$ac_cpp conftest.$ac_ext"
2064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065 *) ac_try_echo=$ac_try;;
2067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068 $as_echo "$ac_try_echo"; } >&5
2069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2071 if test -s conftest.err; then
2072 grep -v '^ *+' conftest.err >conftest.er1
2073 cat conftest.er1 >&5
2074 mv -f conftest.er1 conftest.err
2076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2077 test $ac_status = 0; } > conftest.i && {
2078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2079 test ! -s conftest.err
2083 $as_echo "$as_me: failed program was:" >&5
2084 sed 's/^/| /' conftest.$ac_ext >&5
2088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2089 as_fn_set_status $ac_retval
2093 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2094 # -------------------------------------------------------
2095 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2096 # the include files in INCLUDES and setting the cache variable VAR
2098 ac_fn_c_check_header_mongrel ()
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 if eval \${$3+:} false; then :
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2103 $as_echo_n "checking for $2... " >&6; }
2104 if eval \${$3+:} false; then :
2105 $as_echo_n "(cached) " >&6
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109 $as_echo "$ac_res" >&6; }
2111 # Is the header compilable?
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2113 $as_echo_n "checking $2 usability... " >&6; }
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120 ac_header_compiler=yes
2122 ac_header_compiler=no
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2126 $as_echo "$ac_header_compiler" >&6; }
2128 # Is the header present?
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2130 $as_echo_n "checking $2 presence... " >&6; }
2131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2132 /* end confdefs.h. */
2135 if ac_fn_c_try_cpp "$LINENO"; then :
2136 ac_header_preproc=yes
2138 ac_header_preproc=no
2140 rm -f conftest.err conftest.i conftest.$ac_ext
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2142 $as_echo "$ac_header_preproc" >&6; }
2144 # So? What about this header?
2145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2148 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2150 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2154 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2156 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2158 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2160 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2162 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2163 ( $as_echo "## ----------------------------------------- ##
2164 ## Report this to http://www.imagemagick.org ##
2165 ## ----------------------------------------- ##"
2166 ) | sed "s/^/$as_me: WARNING: /" >&2
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2170 $as_echo_n "checking for $2... " >&6; }
2171 if eval \${$3+:} false; then :
2172 $as_echo_n "(cached) " >&6
2174 eval "$3=\$ac_header_compiler"
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2178 $as_echo "$ac_res" >&6; }
2180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2182 } # ac_fn_c_check_header_mongrel
2184 # ac_fn_c_try_run LINENO
2185 # ----------------------
2186 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2187 # that executables *can* be run.
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 if { { ac_try="$ac_link"
2193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194 *) ac_try_echo=$ac_try;;
2196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2197 $as_echo "$ac_try_echo"; } >&5
2198 (eval "$ac_link") 2>&5
2200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2201 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2202 { { case "(($ac_try" in
2203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2204 *) ac_try_echo=$ac_try;;
2206 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2207 $as_echo "$ac_try_echo"; } >&5
2208 (eval "$ac_try") 2>&5
2210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2211 test $ac_status = 0; }; }; then :
2214 $as_echo "$as_me: program exited with status $ac_status" >&5
2215 $as_echo "$as_me: failed program was:" >&5
2216 sed 's/^/| /' conftest.$ac_ext >&5
2218 ac_retval=$ac_status
2220 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2221 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2222 as_fn_set_status $ac_retval
2226 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2227 # -------------------------------------------------------
2228 # Tests whether HEADER exists and can be compiled using the include files in
2229 # INCLUDES, setting the cache variable VAR accordingly.
2230 ac_fn_c_check_header_compile ()
2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2234 $as_echo_n "checking for $2... " >&6; }
2235 if eval \${$3+:} false; then :
2236 $as_echo_n "(cached) " >&6
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2243 if ac_fn_c_try_compile "$LINENO"; then :
2248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2252 $as_echo "$ac_res" >&6; }
2253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2255 } # ac_fn_c_check_header_compile
2257 # ac_fn_cxx_try_compile LINENO
2258 # ----------------------------
2259 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2260 ac_fn_cxx_try_compile ()
2262 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263 rm -f conftest.$ac_objext
2264 if { { ac_try="$ac_compile"
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270 $as_echo "$ac_try_echo"; } >&5
2271 (eval "$ac_compile") 2>conftest.err
2273 if test -s conftest.err; then
2274 grep -v '^ *+' conftest.err >conftest.er1
2275 cat conftest.er1 >&5
2276 mv -f conftest.er1 conftest.err
2278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279 test $ac_status = 0; } && {
2280 test -z "$ac_cxx_werror_flag" ||
2281 test ! -s conftest.err
2282 } && test -s conftest.$ac_objext; then :
2285 $as_echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2290 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291 as_fn_set_status $ac_retval
2293 } # ac_fn_cxx_try_compile
2295 # ac_fn_c_try_link LINENO
2296 # -----------------------
2297 # Try to link conftest.$ac_ext, and return whether this succeeded.
2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301 rm -f conftest.$ac_objext conftest$ac_exeext
2302 if { { ac_try="$ac_link"
2304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2305 *) ac_try_echo=$ac_try;;
2307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2308 $as_echo "$ac_try_echo"; } >&5
2309 (eval "$ac_link") 2>conftest.err
2311 if test -s conftest.err; then
2312 grep -v '^ *+' conftest.err >conftest.er1
2313 cat conftest.er1 >&5
2314 mv -f conftest.er1 conftest.err
2316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2317 test $ac_status = 0; } && {
2318 test -z "$ac_c_werror_flag" ||
2319 test ! -s conftest.err
2320 } && test -s conftest$ac_exeext && {
2321 test "$cross_compiling" = yes ||
2322 $as_test_x conftest$ac_exeext
2326 $as_echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2331 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2332 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2333 # interfere with the next link command; also delete a directory that is
2334 # left behind by Apple's compiler. We do this before executing the actions.
2335 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2336 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2337 as_fn_set_status $ac_retval
2339 } # ac_fn_c_try_link
2341 # ac_fn_c_check_func LINENO FUNC VAR
2342 # ----------------------------------
2343 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2344 ac_fn_c_check_func ()
2346 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2348 $as_echo_n "checking for $2... " >&6; }
2349 if eval \${$3+:} false; then :
2350 $as_echo_n "(cached) " >&6
2352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2353 /* end confdefs.h. */
2354 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2356 #define $2 innocuous_$2
2358 /* System header to define __stub macros and hopefully few prototypes,
2359 which can conflict with char $2 (); below.
2360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2361 <limits.h> exists even on freestanding compilers. */
2364 # include <limits.h>
2366 # include <assert.h>
2371 /* Override any GCC internal prototype to avoid an error.
2372 Use char because int might match the return type of a GCC
2373 builtin and then its argument prototype would still apply. */
2378 /* The GNU C library defines this for functions which it implements
2379 to always fail with ENOSYS. Some functions are actually named
2380 something starting with __ and the normal name is an alias. */
2381 #if defined __stub_$2 || defined __stub___$2
2393 if ac_fn_c_try_link "$LINENO"; then :
2398 rm -f core conftest.err conftest.$ac_objext \
2399 conftest$ac_exeext conftest.$ac_ext
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2403 $as_echo "$ac_res" >&6; }
2404 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2406 } # ac_fn_c_check_func
2408 # ac_fn_cxx_try_cpp LINENO
2409 # ------------------------
2410 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2411 ac_fn_cxx_try_cpp ()
2413 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2414 if { { ac_try="$ac_cpp conftest.$ac_ext"
2416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417 *) ac_try_echo=$ac_try;;
2419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2420 $as_echo "$ac_try_echo"; } >&5
2421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2423 if test -s conftest.err; then
2424 grep -v '^ *+' conftest.err >conftest.er1
2425 cat conftest.er1 >&5
2426 mv -f conftest.er1 conftest.err
2428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2429 test $ac_status = 0; } > conftest.i && {
2430 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2431 test ! -s conftest.err
2435 $as_echo "$as_me: failed program was:" >&5
2436 sed 's/^/| /' conftest.$ac_ext >&5
2440 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2441 as_fn_set_status $ac_retval
2443 } # ac_fn_cxx_try_cpp
2445 # ac_fn_cxx_try_link LINENO
2446 # -------------------------
2447 # Try to link conftest.$ac_ext, and return whether this succeeded.
2448 ac_fn_cxx_try_link ()
2450 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2451 rm -f conftest.$ac_objext conftest$ac_exeext
2452 if { { ac_try="$ac_link"
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2458 $as_echo "$ac_try_echo"; } >&5
2459 (eval "$ac_link") 2>conftest.err
2461 if test -s conftest.err; then
2462 grep -v '^ *+' conftest.err >conftest.er1
2463 cat conftest.er1 >&5
2464 mv -f conftest.er1 conftest.err
2466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2467 test $ac_status = 0; } && {
2468 test -z "$ac_cxx_werror_flag" ||
2469 test ! -s conftest.err
2470 } && test -s conftest$ac_exeext && {
2471 test "$cross_compiling" = yes ||
2472 $as_test_x conftest$ac_exeext
2476 $as_echo "$as_me: failed program was:" >&5
2477 sed 's/^/| /' conftest.$ac_ext >&5
2481 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2482 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2483 # interfere with the next link command; also delete a directory that is
2484 # left behind by Apple's compiler. We do this before executing the actions.
2485 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2486 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2487 as_fn_set_status $ac_retval
2489 } # ac_fn_cxx_try_link
2491 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2492 # ---------------------------------------------
2493 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2495 ac_fn_c_check_decl ()
2497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2498 as_decl_name=`echo $2|sed 's/ *(.*//'`
2499 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2501 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2502 if eval \${$3+:} false; then :
2503 $as_echo_n "(cached) " >&6
2505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2506 /* end confdefs.h. */
2511 #ifndef $as_decl_name
2513 (void) $as_decl_use;
2515 (void) $as_decl_name;
2523 if ac_fn_c_try_compile "$LINENO"; then :
2528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2532 $as_echo "$ac_res" >&6; }
2533 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2535 } # ac_fn_c_check_decl
2537 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2538 # -------------------------------------------
2539 # Tests whether TYPE exists after having included INCLUDES, setting cache
2540 # variable VAR accordingly.
2541 ac_fn_c_check_type ()
2543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2545 $as_echo_n "checking for $2... " >&6; }
2546 if eval \${$3+:} false; then :
2547 $as_echo_n "(cached) " >&6
2550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551 /* end confdefs.h. */
2562 if ac_fn_c_try_compile "$LINENO"; then :
2563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2564 /* end confdefs.h. */
2575 if ac_fn_c_try_compile "$LINENO"; then :
2580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2586 $as_echo "$ac_res" >&6; }
2587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2589 } # ac_fn_c_check_type
2591 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2592 # ----------------------------------------------------
2593 # Tries to find if the field MEMBER exists in type AGGR, after including
2594 # INCLUDES, setting cache variable VAR accordingly.
2595 ac_fn_c_check_member ()
2597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2599 $as_echo_n "checking for $2.$3... " >&6; }
2600 if eval \${$4+:} false; then :
2601 $as_echo_n "(cached) " >&6
2603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2604 /* end confdefs.h. */
2616 if ac_fn_c_try_compile "$LINENO"; then :
2619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2620 /* end confdefs.h. */
2626 if (sizeof ac_aggr.$3)
2632 if ac_fn_c_try_compile "$LINENO"; then :
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2643 $as_echo "$ac_res" >&6; }
2644 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2646 } # ac_fn_c_check_member
2648 # ac_fn_c_find_intX_t LINENO BITS VAR
2649 # -----------------------------------
2650 # Finds a signed integer type with width BITS, setting cache variable VAR
2652 ac_fn_c_find_intX_t ()
2654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2656 $as_echo_n "checking for int$2_t... " >&6; }
2657 if eval \${$3+:} false; then :
2658 $as_echo_n "(cached) " >&6
2661 # Order is important - never check a type that is potentially smaller
2662 # than half of the expected target width.
2663 for ac_type in int$2_t 'int' 'long int' \
2664 'long long int' 'short int' 'signed char'; do
2665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666 /* end confdefs.h. */
2667 $ac_includes_default
2668 enum { N = $2 / 2 - 1 };
2672 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2679 if ac_fn_c_try_compile "$LINENO"; then :
2680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2681 /* end confdefs.h. */
2682 $ac_includes_default
2683 enum { N = $2 / 2 - 1 };
2687 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2688 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2695 if ac_fn_c_try_compile "$LINENO"; then :
2702 eval "$3=\$ac_type" ;;
2705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2708 if eval test \"x\$"$3"\" = x"no"; then :
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2717 $as_echo "$ac_res" >&6; }
2718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2720 } # ac_fn_c_find_intX_t
2722 # ac_fn_c_find_uintX_t LINENO BITS VAR
2723 # ------------------------------------
2724 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2726 ac_fn_c_find_uintX_t ()
2728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2730 $as_echo_n "checking for uint$2_t... " >&6; }
2731 if eval \${$3+:} false; then :
2732 $as_echo_n "(cached) " >&6
2735 # Order is important - never check a type that is potentially smaller
2736 # than half of the expected target width.
2737 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2738 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2740 /* end confdefs.h. */
2741 $ac_includes_default
2745 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2752 if ac_fn_c_try_compile "$LINENO"; then :
2757 eval "$3=\$ac_type" ;;
2760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2761 if eval test \"x\$"$3"\" = x"no"; then :
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2770 $as_echo "$ac_res" >&6; }
2771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2773 } # ac_fn_c_find_uintX_t
2775 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2776 # --------------------------------------------
2777 # Tries to find the compile-time value of EXPR in a program that includes
2778 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2780 ac_fn_c_compute_int ()
2782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2783 if test "$cross_compiling" = yes; then
2784 # Depending upon the size, compute the lo and hi bounds.
2785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2786 /* end confdefs.h. */
2791 static int test_array [1 - 2 * !(($2) >= 0)];
2798 if ac_fn_c_try_compile "$LINENO"; then :
2801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2802 /* end confdefs.h. */
2807 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2814 if ac_fn_c_try_compile "$LINENO"; then :
2815 ac_hi=$ac_mid; break
2817 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2818 if test $ac_lo -le $ac_mid; then
2822 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2828 /* end confdefs.h. */
2833 static int test_array [1 - 2 * !(($2) < 0)];
2840 if ac_fn_c_try_compile "$LINENO"; then :
2843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2844 /* end confdefs.h. */
2849 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2856 if ac_fn_c_try_compile "$LINENO"; then :
2857 ac_lo=$ac_mid; break
2859 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2860 if test $ac_mid -le $ac_hi; then
2864 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2874 # Binary search between lo and hi bounds.
2875 while test "x$ac_lo" != "x$ac_hi"; do
2876 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2878 /* end confdefs.h. */
2883 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2890 if ac_fn_c_try_compile "$LINENO"; then :
2893 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2898 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2903 /* end confdefs.h. */
2905 static long int longval () { return $2; }
2906 static unsigned long int ulongval () { return $2; }
2913 FILE *f = fopen ("conftest.val", "w");
2918 long int i = longval ();
2921 fprintf (f, "%ld", i);
2925 unsigned long int i = ulongval ();
2928 fprintf (f, "%lu", i);
2930 /* Do not output a trailing newline, as this causes \r\n confusion
2931 on some platforms. */
2932 return ferror (f) || fclose (f) != 0;
2938 if ac_fn_c_try_run "$LINENO"; then :
2939 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2944 conftest.$ac_objext conftest.beam conftest.$ac_ext
2948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2949 as_fn_set_status $ac_retval
2951 } # ac_fn_c_compute_int
2953 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2954 # ---------------------------------------------------------
2955 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2956 # the include files in INCLUDES and setting the cache variable VAR
2958 ac_fn_cxx_check_header_mongrel ()
2960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2961 if eval \${$3+:} false; then :
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2963 $as_echo_n "checking for $2... " >&6; }
2964 if eval \${$3+:} false; then :
2965 $as_echo_n "(cached) " >&6
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2969 $as_echo "$ac_res" >&6; }
2971 # Is the header compilable?
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2973 $as_echo_n "checking $2 usability... " >&6; }
2974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2975 /* end confdefs.h. */
2979 if ac_fn_cxx_try_compile "$LINENO"; then :
2980 ac_header_compiler=yes
2982 ac_header_compiler=no
2984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2986 $as_echo "$ac_header_compiler" >&6; }
2988 # Is the header present?
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2990 $as_echo_n "checking $2 presence... " >&6; }
2991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2992 /* end confdefs.h. */
2995 if ac_fn_cxx_try_cpp "$LINENO"; then :
2996 ac_header_preproc=yes
2998 ac_header_preproc=no
3000 rm -f conftest.err conftest.i conftest.$ac_ext
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3002 $as_echo "$ac_header_preproc" >&6; }
3004 # So? What about this header?
3005 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3008 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3010 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3014 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3016 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3018 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3020 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3022 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3023 ( $as_echo "## ----------------------------------------- ##
3024 ## Report this to http://www.imagemagick.org ##
3025 ## ----------------------------------------- ##"
3026 ) | sed "s/^/$as_me: WARNING: /" >&2
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3030 $as_echo_n "checking for $2... " >&6; }
3031 if eval \${$3+:} false; then :
3032 $as_echo_n "(cached) " >&6
3034 eval "$3=\$ac_header_compiler"
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3038 $as_echo "$ac_res" >&6; }
3040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3042 } # ac_fn_cxx_check_header_mongrel
3043 cat >config.log <<_ACEOF
3044 This file contains any messages produced by compilers while
3045 running configure, to aid debugging if configure makes a mistake.
3047 It was created by ImageMagick $as_me 7.0.0, which was
3048 generated by GNU Autoconf 2.68. Invocation command line was
3060 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3061 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3062 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3063 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3064 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3066 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3067 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3069 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3070 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3071 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3072 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3073 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3074 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3075 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083 test -z "$as_dir" && as_dir=.
3084 $as_echo "PATH: $as_dir"
3100 # Keep a trace of the command line.
3101 # Strip out --no-create and --no-recursion so they do not pile up.
3102 # Strip out --silent because we don't want to record it for future runs.
3103 # Also quote any args containing shell meta-characters.
3104 # Make two passes to allow for proper duplicate-argument suppression.
3108 ac_must_keep_next=false
3114 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3116 | -silent | --silent | --silen | --sile | --sil)
3119 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3122 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3124 as_fn_append ac_configure_args1 " '$ac_arg'"
3125 if test $ac_must_keep_next = true; then
3126 ac_must_keep_next=false # Got value, back to normal.
3129 *=* | --config-cache | -C | -disable-* | --disable-* \
3130 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3131 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3132 | -with-* | --with-* | -without-* | --without-* | --x)
3133 case "$ac_configure_args0 " in
3134 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3137 -* ) ac_must_keep_next=true ;;
3140 as_fn_append ac_configure_args " '$ac_arg'"
3145 { ac_configure_args0=; unset ac_configure_args0;}
3146 { ac_configure_args1=; unset ac_configure_args1;}
3148 # When interrupted or exit'd, cleanup temporary files, and complete
3149 # config.log. We remove comments because anyway the quotes in there
3150 # would cause problems or look ugly.
3151 # WARNING: Use '\'' to represent an apostrophe within the trap.
3152 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3153 trap 'exit_status=$?
3154 # Save into config.log some information that might help in debugging.
3158 $as_echo "## ---------------- ##
3159 ## Cache variables. ##
3160 ## ---------------- ##"
3162 # The following way of writing the cache mishandles newlines in values,
3164 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3165 eval ac_val=\$$ac_var
3169 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3170 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3173 _ | IFS | as_nl) ;; #(
3174 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3175 *) { eval $ac_var=; unset $ac_var;} ;;
3180 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3181 *${as_nl}ac_space=\ *)
3183 "s/'\''/'\''\\\\'\'''\''/g;
3184 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3187 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3194 $as_echo "## ----------------- ##
3195 ## Output variables. ##
3196 ## ----------------- ##"
3198 for ac_var in $ac_subst_vars
3200 eval ac_val=\$$ac_var
3202 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3204 $as_echo "$ac_var='\''$ac_val'\''"
3208 if test -n "$ac_subst_files"; then
3209 $as_echo "## ------------------- ##
3210 ## File substitutions. ##
3211 ## ------------------- ##"
3213 for ac_var in $ac_subst_files
3215 eval ac_val=\$$ac_var
3217 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3219 $as_echo "$ac_var='\''$ac_val'\''"
3224 if test -s confdefs.h; then
3225 $as_echo "## ----------- ##
3232 test "$ac_signal" != 0 &&
3233 $as_echo "$as_me: caught signal $ac_signal"
3234 $as_echo "$as_me: exit $exit_status"
3236 rm -f core *.core core.conftest.* &&
3237 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3240 for ac_signal in 1 2 13 15; do
3241 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3245 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3246 rm -f -r conftest* confdefs.h
3248 $as_echo "/* confdefs.h */" > confdefs.h
3250 # Predefined preprocessor variables.
3252 cat >>confdefs.h <<_ACEOF
3253 #define PACKAGE_NAME "$PACKAGE_NAME"
3256 cat >>confdefs.h <<_ACEOF
3257 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3260 cat >>confdefs.h <<_ACEOF
3261 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3264 cat >>confdefs.h <<_ACEOF
3265 #define PACKAGE_STRING "$PACKAGE_STRING"
3268 cat >>confdefs.h <<_ACEOF
3269 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3272 cat >>confdefs.h <<_ACEOF
3273 #define PACKAGE_URL "$PACKAGE_URL"
3277 # Let the site file select an alternate cache file if it wants to.
3278 # Prefer an explicitly selected file to automatically selected ones.
3281 if test -n "$CONFIG_SITE"; then
3282 # We do not want a PATH search for config.site.
3283 case $CONFIG_SITE in #((
3284 -*) ac_site_file1=./$CONFIG_SITE;;
3285 */*) ac_site_file1=$CONFIG_SITE;;
3286 *) ac_site_file1=./$CONFIG_SITE;;
3288 elif test "x$prefix" != xNONE; then
3289 ac_site_file1=$prefix/share/config.site
3290 ac_site_file2=$prefix/etc/config.site
3292 ac_site_file1=$ac_default_prefix/share/config.site
3293 ac_site_file2=$ac_default_prefix/etc/config.site
3295 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3297 test "x$ac_site_file" = xNONE && continue
3298 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3300 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3301 sed 's/^/| /' "$ac_site_file" >&5
3303 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3305 as_fn_error $? "failed to load site script $ac_site_file
3306 See \`config.log' for more details" "$LINENO" 5; }
3310 if test -r "$cache_file"; then
3311 # Some versions of bash will fail to source /dev/null (special files
3312 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3313 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3315 $as_echo "$as_me: loading cache $cache_file" >&6;}
3317 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3318 *) . "./$cache_file";;
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3323 $as_echo "$as_me: creating cache $cache_file" >&6;}
3327 as_fn_append ac_header_list " stdlib.h"
3328 as_fn_append ac_header_list " unistd.h"
3329 as_fn_append ac_header_list " sys/param.h"
3330 # Check that the precious variables saved in the cache have kept the same
3332 ac_cache_corrupted=false
3333 for ac_var in $ac_precious_vars; do
3334 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3335 eval ac_new_set=\$ac_env_${ac_var}_set
3336 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3337 eval ac_new_val=\$ac_env_${ac_var}_value
3338 case $ac_old_set,$ac_new_set in
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3341 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3342 ac_cache_corrupted=: ;;
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3345 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3346 ac_cache_corrupted=: ;;
3349 if test "x$ac_old_val" != "x$ac_new_val"; then
3350 # differences in whitespace do not lead to failure.
3351 ac_old_val_w=`echo x $ac_old_val`
3352 ac_new_val_w=`echo x $ac_new_val`
3353 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3355 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3356 ac_cache_corrupted=:
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3359 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3360 eval $ac_var=\$ac_old_val
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3363 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3365 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3368 # Pass precious variables to config.status.
3369 if test "$ac_new_set" = set; then
3371 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3372 *) ac_arg=$ac_var=$ac_new_val ;;
3374 case " $ac_configure_args " in
3375 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3376 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3380 if $ac_cache_corrupted; then
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3384 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3385 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3387 ## -------------------- ##
3388 ## Main body of script. ##
3389 ## -------------------- ##
3392 ac_cpp='$CPP $CPPFLAGS'
3393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3400 for ac_dir in config "$srcdir"/config; do
3401 if test -f "$ac_dir/install-sh"; then
3403 ac_install_sh="$ac_aux_dir/install-sh -c"
3405 elif test -f "$ac_dir/install.sh"; then
3407 ac_install_sh="$ac_aux_dir/install.sh -c"
3409 elif test -f "$ac_dir/shtool"; then
3411 ac_install_sh="$ac_aux_dir/shtool install -c"
3415 if test -z "$ac_aux_dir"; then
3416 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3419 # These three variables are undocumented and unsupported,
3420 # and are intended to be withdrawn in a future Autoconf release.
3421 # They can cause serious problems if a builder's source tree is in a directory
3422 # whose full name contains unusual characters.
3423 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3424 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3425 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3430 ac_config_headers="$ac_config_headers config/config.h"
3433 ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
3435 ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
3439 # Save initial user-tunable values
3442 for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3443 eval isset=\${$var+set}
3444 if test "$isset" = 'set'; then
3445 eval val=$`echo $var`
3446 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3451 CONFIGURE_ARGS="$0 ${ac_configure_args}"
3454 # Source file containing package/library versioning information.
3455 . ${srcdir}/version.sh
3457 echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3458 # Make sure we can run config.sub.
3459 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3460 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3463 $as_echo_n "checking build system type... " >&6; }
3464 if ${ac_cv_build+:} false; then :
3465 $as_echo_n "(cached) " >&6
3467 ac_build_alias=$build_alias
3468 test "x$ac_build_alias" = x &&
3469 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3470 test "x$ac_build_alias" = x &&
3471 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3472 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3473 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3477 $as_echo "$ac_cv_build" >&6; }
3478 case $ac_cv_build in
3480 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3483 ac_save_IFS=$IFS; IFS='-'
3489 # Remember, the first character of IFS is used to create $*,
3490 # except with old shells:
3493 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3497 $as_echo_n "checking host system type... " >&6; }
3498 if ${ac_cv_host+:} false; then :
3499 $as_echo_n "(cached) " >&6
3501 if test "x$host_alias" = x; then
3502 ac_cv_host=$ac_cv_build
3504 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3505 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3510 $as_echo "$ac_cv_host" >&6; }
3513 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3516 ac_save_IFS=$IFS; IFS='-'
3522 # Remember, the first character of IFS is used to create $*,
3523 # except with old shells:
3526 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3530 $as_echo_n "checking target system type... " >&6; }
3531 if ${ac_cv_target+:} false; then :
3532 $as_echo_n "(cached) " >&6
3534 if test "x$target_alias" = x; then
3535 ac_cv_target=$ac_cv_host
3537 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3538 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3543 $as_echo "$ac_cv_target" >&6; }
3544 case $ac_cv_target in
3546 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3548 target=$ac_cv_target
3549 ac_save_IFS=$IFS; IFS='-'
3555 # Remember, the first character of IFS is used to create $*,
3556 # except with old shells:
3559 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3562 # The aliases save the names the user supplied, while $host etc.
3563 # will get canonicalized.
3564 test -n "$target_alias" &&
3565 test "$program_prefix$program_suffix$program_transform_name" = \
3567 program_prefix=${target_alias}-
3572 MAGICK_TARGET_CPU=$host_cpu
3575 MAGICK_TARGET_VENDOR=$host_vendor
3578 MAGICK_TARGET_OS=$host_os
3581 # Substitute library versioning
3582 MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3584 MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3586 MAGICK_SVN_REVISION=exported
3591 # Ensure that make can run correctly
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3593 $as_echo_n "checking whether build environment is sane... " >&6; }
3596 echo timestamp > conftest.file
3597 # Reject unsafe characters in $srcdir or the absolute working directory
3598 # name. Accept space and tab only in the latter.
3602 *[\\\"\#\$\&\'\`$am_lf]*)
3603 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3606 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3607 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3610 # Do `set' in a subshell so we don't clobber the current shell's
3611 # arguments. Must try -L first in case configure is actually a
3612 # symlink; some systems play weird games with the mod time of symlinks
3613 # (eg FreeBSD returns the mod time of the symlink's containing
3616 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3617 if test "$*" = "X"; then
3619 set X `ls -t "$srcdir/configure" conftest.file`
3622 if test "$*" != "X $srcdir/configure conftest.file" \
3623 && test "$*" != "X conftest.file $srcdir/configure"; then
3625 # If neither matched, then we have a broken ls. This can happen
3626 # if, for instance, CONFIG_SHELL is bash and it inherits a
3627 # broken ls alias from the environment. This has actually
3628 # happened. Such a system could not be considered "sane".
3629 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3630 alias in your environment" "$LINENO" 5
3633 test "$2" = conftest.file
3639 as_fn_error $? "newly created file is older than distributed files!
3640 Check your system clock" "$LINENO" 5
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3643 $as_echo "yes" >&6; }
3645 am__api_version='1.11'
3647 # Find a good install program. We prefer a C program (faster),
3648 # so one script is as good as another. But avoid the broken or
3649 # incompatible versions:
3650 # SysV /etc/install, /usr/sbin/install
3651 # SunOS /usr/etc/install
3652 # IRIX /sbin/install
3654 # AmigaOS /C/install, which installs bootblocks on floppy discs
3655 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3656 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3657 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3658 # OS/2's system install, which has a completely different semantic
3659 # ./install, which can be erroneously created by make from ./install.sh.
3660 # Reject install programs that cannot install multiple files.
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3662 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3663 if test -z "$INSTALL"; then
3664 if ${ac_cv_path_install+:} false; then :
3665 $as_echo_n "(cached) " >&6
3667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3671 test -z "$as_dir" && as_dir=.
3672 # Account for people who put trailing slashes in PATH elements.
3673 case $as_dir/ in #((
3674 ./ | .// | /[cC]/* | \
3675 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3676 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3679 # OSF1 and SCO ODT 3.0 have their own names for install.
3680 # Don't use installbsd from OSF since it installs stuff as root
3682 for ac_prog in ginstall scoinst install; do
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3685 if test $ac_prog = install &&
3686 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3687 # AIX install. It has an incompatible calling convention.
3689 elif test $ac_prog = install &&
3690 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3691 # program-specific install script used by HP pwplus--don't use.
3694 rm -rf conftest.one conftest.two conftest.dir
3695 echo one > conftest.one
3696 echo two > conftest.two
3698 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3699 test -s conftest.one && test -s conftest.two &&
3700 test -s conftest.dir/conftest.one &&
3701 test -s conftest.dir/conftest.two
3703 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3716 rm -rf conftest.one conftest.two conftest.dir
3719 if test "${ac_cv_path_install+set}" = set; then
3720 INSTALL=$ac_cv_path_install
3722 # As a last resort, use the slow shell script. Don't cache a
3723 # value for INSTALL within a source directory, because that will
3724 # break other packages using the cache if that directory is
3725 # removed, or if the value is a relative name.
3726 INSTALL=$ac_install_sh
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3730 $as_echo "$INSTALL" >&6; }
3732 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3733 # It thinks the first close brace ends the variable substitution.
3734 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3736 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3738 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3740 test "$program_prefix" != NONE &&
3741 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3742 # Use a double $ so make ignores it.
3743 test "$program_suffix" != NONE &&
3744 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3745 # Double any \ or $.
3746 # By default was `s,x,x', remove it if useless.
3747 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3748 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3750 # expand $ac_aux_dir to an absolute path
3751 am_aux_dir=`cd $ac_aux_dir && pwd`
3753 if test x"${MISSING+set}" != xset; then
3756 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3758 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3761 # Use eval to expand $SHELL
3762 if eval "$MISSING --run true"; then
3763 am_missing_run="$MISSING --run "
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3767 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3770 if test x"${install_sh}" != xset; then
3773 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3775 install_sh="\${SHELL} $am_aux_dir/install-sh"
3779 # Installed binaries are usually stripped using `strip' when the user
3780 # run `make install-strip'. However `strip' might not be the right
3781 # tool to use in cross-compilation environments, therefore Automake
3782 # will honor the `STRIP' environment variable to overrule this program.
3783 if test "$cross_compiling" != no; then
3784 if test -n "$ac_tool_prefix"; then
3785 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3786 set dummy ${ac_tool_prefix}strip; ac_word=$2
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788 $as_echo_n "checking for $ac_word... " >&6; }
3789 if ${ac_cv_prog_STRIP+:} false; then :
3790 $as_echo_n "(cached) " >&6
3792 if test -n "$STRIP"; then
3793 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3799 test -z "$as_dir" && as_dir=.
3800 for ac_exec_ext in '' $ac_executable_extensions; do
3801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3802 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3812 STRIP=$ac_cv_prog_STRIP
3813 if test -n "$STRIP"; then
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3815 $as_echo "$STRIP" >&6; }
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818 $as_echo "no" >&6; }
3823 if test -z "$ac_cv_prog_STRIP"; then
3825 # Extract the first word of "strip", so it can be a program name with args.
3826 set dummy strip; ac_word=$2
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828 $as_echo_n "checking for $ac_word... " >&6; }
3829 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3830 $as_echo_n "(cached) " >&6
3832 if test -n "$ac_ct_STRIP"; then
3833 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 test -z "$as_dir" && as_dir=.
3840 for ac_exec_ext in '' $ac_executable_extensions; do
3841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3842 ac_cv_prog_ac_ct_STRIP="strip"
3843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3852 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3853 if test -n "$ac_ct_STRIP"; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3855 $as_echo "$ac_ct_STRIP" >&6; }
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858 $as_echo "no" >&6; }
3861 if test "x$ac_ct_STRIP" = x; then
3864 case $cross_compiling:$ac_tool_warned in
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3868 ac_tool_warned=yes ;;
3873 STRIP="$ac_cv_prog_STRIP"
3877 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3880 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3881 if test -z "$MKDIR_P"; then
3882 if ${ac_cv_path_mkdir+:} false; then :
3883 $as_echo_n "(cached) " >&6
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3886 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3889 test -z "$as_dir" && as_dir=.
3890 for ac_prog in mkdir gmkdir; do
3891 for ac_exec_ext in '' $ac_executable_extensions; do
3892 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3893 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3894 'mkdir (GNU coreutils) '* | \
3895 'mkdir (coreutils) '* | \
3896 'mkdir (fileutils) '4.1*)
3897 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3907 test -d ./--version && rmdir ./--version
3908 if test "${ac_cv_path_mkdir+set}" = set; then
3909 MKDIR_P="$ac_cv_path_mkdir -p"
3911 # As a last resort, use the slow shell script. Don't cache a
3912 # value for MKDIR_P within a source directory, because that will
3913 # break other packages using the cache if that directory is
3914 # removed, or if the value is a relative name.
3915 MKDIR_P="$ac_install_sh -d"
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3919 $as_echo "$MKDIR_P" >&6; }
3923 [\\/$]* | ?:[\\/]*) ;;
3924 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3927 for ac_prog in gawk mawk nawk awk
3929 # Extract the first word of "$ac_prog", so it can be a program name with args.
3930 set dummy $ac_prog; ac_word=$2
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932 $as_echo_n "checking for $ac_word... " >&6; }
3933 if ${ac_cv_prog_AWK+:} false; then :
3934 $as_echo_n "(cached) " >&6
3936 if test -n "$AWK"; then
3937 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3943 test -z "$as_dir" && as_dir=.
3944 for ac_exec_ext in '' $ac_executable_extensions; do
3945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3946 ac_cv_prog_AWK="$ac_prog"
3947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3957 if test -n "$AWK"; then
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3959 $as_echo "$AWK" >&6; }
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3962 $as_echo "no" >&6; }
3966 test -n "$AWK" && break
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3970 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3972 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3973 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3974 $as_echo_n "(cached) " >&6
3976 cat >conftest.make <<\_ACEOF
3979 @echo '@@@%%%=$(MAKE)=@@@%%%'
3981 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3982 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3984 eval ac_cv_prog_make_${ac_make}_set=yes;;
3986 eval ac_cv_prog_make_${ac_make}_set=no;;
3990 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3992 $as_echo "yes" >&6; }
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3996 $as_echo "no" >&6; }
3997 SET_MAKE="MAKE=${MAKE-make}"
4000 rm -rf .tst 2>/dev/null
4001 mkdir .tst 2>/dev/null
4002 if test -d .tst; then
4007 rmdir .tst 2>/dev/null
4009 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4010 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4011 # is not polluted with repeated "-I."
4012 am__isrc=' -I$(srcdir)'
4013 # test to see if srcdir already configured
4014 if test -f $srcdir/config.status; then
4015 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4019 # test whether we have cygpath
4020 if test -z "$CYGPATH_W"; then
4021 if (cygpath --version) >/dev/null 2>/dev/null; then
4022 CYGPATH_W='cygpath -w'
4029 # Define the identity of the package.
4030 PACKAGE=$PACKAGE_NAME
4031 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4034 # Some tools Automake needs.
4036 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4039 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4042 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4045 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4048 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4050 # We need awk for the "check" target. The system "awk" is bad on
4052 # Always define AMTAR for backward compatibility.
4054 AMTAR=${AMTAR-"${am_missing_run}tar"}
4056 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4063 # Enable support for silent build rules
4064 # Check whether --enable-silent-rules was given.
4065 if test "${enable_silent_rules+set}" = set; then :
4066 enableval=$enable_silent_rules;
4069 case $enable_silent_rules in
4070 yes) AM_DEFAULT_VERBOSITY=0;;
4071 no) AM_DEFAULT_VERBOSITY=1;;
4072 *) AM_DEFAULT_VERBOSITY=0;;
4077 MAGICK_LIB_VERSION="0x"
4078 if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4079 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4081 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4082 if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4083 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4085 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4086 if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4087 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4089 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4092 # Definition used to define MagickLibVersionText in version.h
4093 MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4096 # Definition used to define MagickLibVersionNumber in version.h
4097 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4100 # Regenerate config.status if ChangeLog or version.sh is updated.
4101 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4107 MAGICK_CPPFLAGS=$CPPFLAGS_USER
4108 MAGICK_PCFLAGS=$CPPFLAGS_USER
4114 # Evaluate shell variable equivalents to Makefile directory variables
4116 if test "x$prefix" = xNONE; then
4117 prefix=$ac_default_prefix
4119 # Let make expand exec_prefix.
4120 if test "x$exec_prefix" = xNONE; then
4121 exec_prefix='${prefix}'
4125 eval "eval PREFIX_DIR=${prefix}"
4127 eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4129 eval "eval BIN_DIR=$bindir"
4131 eval "eval SBIN_DIR=$sbindir"
4133 eval "eval LIBEXEC_DIR=$libexecdir"
4135 eval "eval DATA_DIR=$datadir"
4137 eval "eval DOC_DIR=$docdir"
4139 eval "eval SYSCONF_DIR=$sysconfdir"
4141 eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4143 eval "eval LOCALSTATE_DIR=$localstatedir"
4145 eval "eval LIB_DIR=$libdir"
4147 eval "eval INCLUDE_DIR=$includedir"
4149 eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4151 eval "eval INFO_DIR=$infodir"
4153 eval "eval MAN_DIR=$mandir"
4156 # Get full paths to source and build directories
4157 srcdirfull="`cd $srcdir && pwd`"
4161 # Compute variables useful for running uninstalled software.
4163 MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4164 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4165 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4166 MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4168 case "${build_os}" in
4170 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4171 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4172 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4173 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4177 case "${host_os}" in
4190 # Enable OS features.
4192 DEPDIR="${am__leading_dot}deps"
4194 ac_config_commands="$ac_config_commands depfiles"
4197 am_make=${MAKE-make}
4198 cat > confinc << 'END'
4200 @echo this is the am__doit target
4203 # If we don't find an include directive, just comment out the code.
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4205 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4209 # First try GNU make style include.
4210 echo "include confinc" > confmf
4211 # Ignore all kinds of additional output from `make'.
4212 case `$am_make -s -f confmf 2> /dev/null` in #(
4213 *the\ am__doit\ target*)
4219 # Now try BSD make style include.
4220 if test "$am__include" = "#"; then
4221 echo '.include "confinc"' > confmf
4222 case `$am_make -s -f confmf 2> /dev/null` in #(
4223 *the\ am__doit\ target*)
4224 am__include=.include
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4233 $as_echo "$_am_result" >&6; }
4234 rm -f confinc confmf
4236 # Check whether --enable-dependency-tracking was given.
4237 if test "${enable_dependency_tracking+set}" = set; then :
4238 enableval=$enable_dependency_tracking;
4241 if test "x$enable_dependency_tracking" != xno; then
4242 am_depcomp="$ac_aux_dir/depcomp"
4245 if test "x$enable_dependency_tracking" != xno; then
4255 ac_cpp='$CPP $CPPFLAGS'
4256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4259 if test -n "$ac_tool_prefix"; then
4260 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4261 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263 $as_echo_n "checking for $ac_word... " >&6; }
4264 if ${ac_cv_prog_CC+:} false; then :
4265 $as_echo_n "(cached) " >&6
4267 if test -n "$CC"; then
4268 ac_cv_prog_CC="$CC" # Let the user override the test.
4270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4274 test -z "$as_dir" && as_dir=.
4275 for ac_exec_ext in '' $ac_executable_extensions; do
4276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4277 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4288 if test -n "$CC"; then
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4290 $as_echo "$CC" >&6; }
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4293 $as_echo "no" >&6; }
4298 if test -z "$ac_cv_prog_CC"; then
4300 # Extract the first word of "gcc", so it can be a program name with args.
4301 set dummy gcc; ac_word=$2
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4303 $as_echo_n "checking for $ac_word... " >&6; }
4304 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4305 $as_echo_n "(cached) " >&6
4307 if test -n "$ac_ct_CC"; then
4308 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4314 test -z "$as_dir" && as_dir=.
4315 for ac_exec_ext in '' $ac_executable_extensions; do
4316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4317 ac_cv_prog_ac_ct_CC="gcc"
4318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4327 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4328 if test -n "$ac_ct_CC"; then
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4330 $as_echo "$ac_ct_CC" >&6; }
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4333 $as_echo "no" >&6; }
4336 if test "x$ac_ct_CC" = x; then
4339 case $cross_compiling:$ac_tool_warned in
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4342 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4343 ac_tool_warned=yes ;;
4351 if test -z "$CC"; then
4352 if test -n "$ac_tool_prefix"; then
4353 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4354 set dummy ${ac_tool_prefix}cc; ac_word=$2
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4356 $as_echo_n "checking for $ac_word... " >&6; }
4357 if ${ac_cv_prog_CC+:} false; then :
4358 $as_echo_n "(cached) " >&6
4360 if test -n "$CC"; then
4361 ac_cv_prog_CC="$CC" # Let the user override the test.
4363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4367 test -z "$as_dir" && as_dir=.
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4370 ac_cv_prog_CC="${ac_tool_prefix}cc"
4371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4381 if test -n "$CC"; then
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4383 $as_echo "$CC" >&6; }
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4386 $as_echo "no" >&6; }
4392 if test -z "$CC"; then
4393 # Extract the first word of "cc", so it can be a program name with args.
4394 set dummy cc; ac_word=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if ${ac_cv_prog_CC+:} false; then :
4398 $as_echo_n "(cached) " >&6
4400 if test -n "$CC"; then
4401 ac_cv_prog_CC="$CC" # Let the user override the test.
4404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4408 test -z "$as_dir" && as_dir=.
4409 for ac_exec_ext in '' $ac_executable_extensions; do
4410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4411 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4412 ac_prog_rejected=yes
4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 if test $ac_prog_rejected = yes; then
4424 # We found a bogon in the path, so make sure we never use it.
4425 set dummy $ac_cv_prog_CC
4427 if test $# != 0; then
4428 # We chose a different compiler from the bogus one.
4429 # However, it has the same basename, so the bogon will be chosen
4430 # first if we set CC to just the basename; use the full file name.
4432 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4438 if test -n "$CC"; then
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4440 $as_echo "$CC" >&6; }
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4443 $as_echo "no" >&6; }
4448 if test -z "$CC"; then
4449 if test -n "$ac_tool_prefix"; then
4450 for ac_prog in cl.exe
4452 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4453 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455 $as_echo_n "checking for $ac_word... " >&6; }
4456 if ${ac_cv_prog_CC+:} false; then :
4457 $as_echo_n "(cached) " >&6
4459 if test -n "$CC"; then
4460 ac_cv_prog_CC="$CC" # Let the user override the test.
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 test -z "$as_dir" && as_dir=.
4467 for ac_exec_ext in '' $ac_executable_extensions; do
4468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4469 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4480 if test -n "$CC"; then
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4482 $as_echo "$CC" >&6; }
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4485 $as_echo "no" >&6; }
4489 test -n "$CC" && break
4492 if test -z "$CC"; then
4494 for ac_prog in cl.exe
4496 # Extract the first word of "$ac_prog", so it can be a program name with args.
4497 set dummy $ac_prog; ac_word=$2
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4499 $as_echo_n "checking for $ac_word... " >&6; }
4500 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4501 $as_echo_n "(cached) " >&6
4503 if test -n "$ac_ct_CC"; then
4504 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4513 ac_cv_prog_ac_ct_CC="$ac_prog"
4514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4523 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4524 if test -n "$ac_ct_CC"; then
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4526 $as_echo "$ac_ct_CC" >&6; }
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4529 $as_echo "no" >&6; }
4533 test -n "$ac_ct_CC" && break
4536 if test "x$ac_ct_CC" = x; then
4539 case $cross_compiling:$ac_tool_warned in
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4543 ac_tool_warned=yes ;;
4552 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4553 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4554 as_fn_error $? "no acceptable C compiler found in \$PATH
4555 See \`config.log' for more details" "$LINENO" 5; }
4557 # Provide some information about the compiler.
4558 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4561 for ac_option in --version -v -V -qversion; do
4562 { { ac_try="$ac_compiler $ac_option >&5"
4564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4565 *) ac_try_echo=$ac_try;;
4567 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4568 $as_echo "$ac_try_echo"; } >&5
4569 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4571 if test -s conftest.err; then
4573 ... rest of stderr output deleted ...
4574 10q' conftest.err >conftest.er1
4575 cat conftest.er1 >&5
4577 rm -f conftest.er1 conftest.err
4578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4579 test $ac_status = 0; }
4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4583 /* end confdefs.h. */
4593 ac_clean_files_save=$ac_clean_files
4594 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4595 # Try to create an executable without -o first, disregard a.out.
4596 # It will help us diagnose broken compilers, and finding out an intuition
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4599 $as_echo_n "checking whether the C compiler works... " >&6; }
4600 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4602 # The possible output files:
4603 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4606 for ac_file in $ac_files
4609 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4610 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4615 if { { ac_try="$ac_link_default"
4617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618 *) ac_try_echo=$ac_try;;
4620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4621 $as_echo "$ac_try_echo"; } >&5
4622 (eval "$ac_link_default") 2>&5
4624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4625 test $ac_status = 0; }; then :
4626 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4627 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4628 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4629 # so that the user can short-circuit this test for compilers unknown to
4631 for ac_file in $ac_files ''
4633 test -f "$ac_file" || continue
4635 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4638 # We found the default executable, but exeext='' is most
4642 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4644 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4646 # We set ac_cv_exeext here because the later test for it is not
4647 # safe: cross compilers may not add the suffix if given an `-o'
4648 # argument, so we may need to know it at that point already.
4649 # Even if this section looks crufty: it has the advantage of
4656 test "$ac_cv_exeext" = no && ac_cv_exeext=
4661 if test -z "$ac_file"; then :
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4663 $as_echo "no" >&6; }
4664 $as_echo "$as_me: failed program was:" >&5
4665 sed 's/^/| /' conftest.$ac_ext >&5
4667 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4668 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4669 as_fn_error 77 "C compiler cannot create executables
4670 See \`config.log' for more details" "$LINENO" 5; }
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4673 $as_echo "yes" >&6; }
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4676 $as_echo_n "checking for C compiler default output file name... " >&6; }
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4678 $as_echo "$ac_file" >&6; }
4679 ac_exeext=$ac_cv_exeext
4681 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4682 ac_clean_files=$ac_clean_files_save
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4684 $as_echo_n "checking for suffix of executables... " >&6; }
4685 if { { ac_try="$ac_link"
4687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4688 *) ac_try_echo=$ac_try;;
4690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4691 $as_echo "$ac_try_echo"; } >&5
4692 (eval "$ac_link") 2>&5
4694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4695 test $ac_status = 0; }; then :
4696 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4697 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4698 # work properly (i.e., refer to `conftest.exe'), while it won't with
4700 for ac_file in conftest.exe conftest conftest.*; do
4701 test -f "$ac_file" || continue
4703 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4704 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4712 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4713 See \`config.log' for more details" "$LINENO" 5; }
4715 rm -f conftest conftest$ac_cv_exeext
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4717 $as_echo "$ac_cv_exeext" >&6; }
4719 rm -f conftest.$ac_ext
4720 EXEEXT=$ac_cv_exeext
4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4723 /* end confdefs.h. */
4728 FILE *f = fopen ("conftest.out", "w");
4729 return ferror (f) || fclose (f) != 0;
4735 ac_clean_files="$ac_clean_files conftest.out"
4736 # Check that the compiler produces executables we can run. If not, either
4737 # the compiler is broken, or we cross compile.
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4739 $as_echo_n "checking whether we are cross compiling... " >&6; }
4740 if test "$cross_compiling" != yes; then
4741 { { ac_try="$ac_link"
4743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4744 *) ac_try_echo=$ac_try;;
4746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4747 $as_echo "$ac_try_echo"; } >&5
4748 (eval "$ac_link") 2>&5
4750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4751 test $ac_status = 0; }
4752 if { ac_try='./conftest$ac_cv_exeext'
4753 { { case "(($ac_try" in
4754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4755 *) ac_try_echo=$ac_try;;
4757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4758 $as_echo "$ac_try_echo"; } >&5
4759 (eval "$ac_try") 2>&5
4761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4762 test $ac_status = 0; }; }; then
4765 if test "$cross_compiling" = maybe; then
4768 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4769 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4770 as_fn_error $? "cannot run C compiled programs.
4771 If you meant to cross compile, use \`--host'.
4772 See \`config.log' for more details" "$LINENO" 5; }
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4777 $as_echo "$cross_compiling" >&6; }
4779 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4780 ac_clean_files=$ac_clean_files_save
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4782 $as_echo_n "checking for suffix of object files... " >&6; }
4783 if ${ac_cv_objext+:} false; then :
4784 $as_echo_n "(cached) " >&6
4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4787 /* end confdefs.h. */
4797 rm -f conftest.o conftest.obj
4798 if { { ac_try="$ac_compile"
4800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801 *) ac_try_echo=$ac_try;;
4803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4804 $as_echo "$ac_try_echo"; } >&5
4805 (eval "$ac_compile") 2>&5
4807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4808 test $ac_status = 0; }; then :
4809 for ac_file in conftest.o conftest.obj conftest.*; do
4810 test -f "$ac_file" || continue;
4812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4813 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4818 $as_echo "$as_me: failed program was:" >&5
4819 sed 's/^/| /' conftest.$ac_ext >&5
4821 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4822 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4823 as_fn_error $? "cannot compute suffix of object files: cannot compile
4824 See \`config.log' for more details" "$LINENO" 5; }
4826 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4829 $as_echo "$ac_cv_objext" >&6; }
4830 OBJEXT=$ac_cv_objext
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4833 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4834 if ${ac_cv_c_compiler_gnu+:} false; then :
4835 $as_echo_n "(cached) " >&6
4837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838 /* end confdefs.h. */
4851 if ac_fn_c_try_compile "$LINENO"; then :
4856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4857 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4861 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4862 if test $ac_compiler_gnu = yes; then
4867 ac_test_CFLAGS=${CFLAGS+set}
4868 ac_save_CFLAGS=$CFLAGS
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4870 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4871 if ${ac_cv_prog_cc_g+:} false; then :
4872 $as_echo_n "(cached) " >&6
4874 ac_save_c_werror_flag=$ac_c_werror_flag
4875 ac_c_werror_flag=yes
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4889 if ac_fn_c_try_compile "$LINENO"; then :
4893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4894 /* end confdefs.h. */
4904 if ac_fn_c_try_compile "$LINENO"; then :
4907 ac_c_werror_flag=$ac_save_c_werror_flag
4909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4910 /* end confdefs.h. */
4920 if ac_fn_c_try_compile "$LINENO"; then :
4923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4928 ac_c_werror_flag=$ac_save_c_werror_flag
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4931 $as_echo "$ac_cv_prog_cc_g" >&6; }
4932 if test "$ac_test_CFLAGS" = set; then
4933 CFLAGS=$ac_save_CFLAGS
4934 elif test $ac_cv_prog_cc_g = yes; then
4935 if test "$GCC" = yes; then
4941 if test "$GCC" = yes; then
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4948 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4949 if ${ac_cv_prog_cc_c89+:} false; then :
4950 $as_echo_n "(cached) " >&6
4952 ac_cv_prog_cc_c89=no
4954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4955 /* end confdefs.h. */
4958 #include <sys/types.h>
4959 #include <sys/stat.h>
4960 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4961 struct buf { int x; };
4962 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4963 static char *e (p, i)
4969 static char *f (char * (*g) (char **, int), char **p, ...)
4974 s = g (p, va_arg (v,int));
4979 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4980 function prototypes and stuff, but not '\xHH' hex character constants.
4981 These don't provoke an error unfortunately, instead are silently treated
4982 as 'x'. The following induces an error, until -std is added to get
4983 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4984 array size at least. It's necessary to write '\x00'==0 to get something
4985 that's true only with -std. */
4986 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4988 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4989 inside strings and character constants. */
4991 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4993 int test (int i, double x);
4994 struct s1 {int (*f) (int a);};
4995 struct s2 {int (*f) (double a);};
4996 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5002 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5007 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5008 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5010 CC="$ac_save_CC $ac_arg"
5011 if ac_fn_c_try_compile "$LINENO"; then :
5012 ac_cv_prog_cc_c89=$ac_arg
5014 rm -f core conftest.err conftest.$ac_objext
5015 test "x$ac_cv_prog_cc_c89" != "xno" && break
5017 rm -f conftest.$ac_ext
5022 case "x$ac_cv_prog_cc_c89" in
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5025 $as_echo "none needed" >&6; } ;;
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5028 $as_echo "unsupported" >&6; } ;;
5030 CC="$CC $ac_cv_prog_cc_c89"
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5032 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5034 if test "x$ac_cv_prog_cc_c89" != xno; then :
5039 ac_cpp='$CPP $CPPFLAGS'
5040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5044 depcc="$CC" am_compiler_list=
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5047 $as_echo_n "checking dependency style of $depcc... " >&6; }
5048 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5049 $as_echo_n "(cached) " >&6
5051 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5052 # We make a subdir and do the tests there. Otherwise we can end up
5053 # making bogus files that we don't know about and never remove. For
5054 # instance it was reported that on HP-UX the gcc test will end up
5055 # making a dummy file named `D' -- because `-MD' means `put the output
5058 # Copy depcomp to subdir because otherwise we won't find it if we're
5059 # using a relative directory.
5060 cp "$am_depcomp" conftest.dir
5062 # We will build objects and dependencies in a subdirectory because
5063 # it helps to detect inapplicable dependency modes. For instance
5064 # both Tru64's cc and ICC support -MD to output dependencies as a
5065 # side effect of compilation, but ICC will put the dependencies in
5066 # the current directory while Tru64 will put them in the object
5070 am_cv_CC_dependencies_compiler_type=none
5071 if test "$am_compiler_list" = ""; then
5072 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5075 case " $depcc " in #(
5076 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5079 for depmode in $am_compiler_list; do
5080 # Setup a source with many dependencies, because some compilers
5081 # like to wrap large dependency lists on column 80 (with \), and
5082 # we should not choose a depcomp mode which is confused by this.
5084 # We need to recreate these files for each test, as the compiler may
5085 # overwrite some of them when testing with obscure command lines.
5086 # This happens at least with the AIX C compiler.
5088 for i in 1 2 3 4 5 6; do
5089 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5090 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5091 # Solaris 8's {/usr,}/bin/sh.
5092 touch sub/conftst$i.h
5094 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5096 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5097 # mode. It turns out that the SunPro C++ compiler does not properly
5098 # handle `-M -o', and we need to detect this. Also, some Intel
5099 # versions had trouble with output in subdirs
5100 am__obj=sub/conftest.${OBJEXT-o}
5101 am__minus_obj="-o $am__obj"
5104 # This depmode causes a compiler race in universal mode.
5105 test "$am__universal" = false || continue
5108 # after this tag, mechanisms are not by side-effect, so they'll
5109 # only be used when explicitly requested
5110 if test "x$enable_dependency_tracking" = xyes; then
5116 msvisualcpp | msvcmsys)
5117 # This compiler won't grok `-c -o', but also, the minuso test has
5118 # not run yet. These depmodes are late enough in the game, and
5119 # so weak that their functioning should not be impacted.
5120 am__obj=conftest.${OBJEXT-o}
5125 if depmode=$depmode \
5126 source=sub/conftest.c object=$am__obj \
5127 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5128 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5129 >/dev/null 2>conftest.err &&
5130 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5131 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5132 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5133 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5134 # icc doesn't choke on unknown options, it will just issue warnings
5135 # or remarks (even with -Werror). So we grep stderr for any message
5136 # that says an option was ignored or not supported.
5137 # When given -MP, icc 7.0 and 7.1 complain thusly:
5138 # icc: Command line warning: ignoring option '-M'; no argument required
5139 # The diagnosis changed in icc 8.0:
5140 # icc: Command line remark: option '-MP' not supported
5141 if (grep 'ignoring option' conftest.err ||
5142 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5143 am_cv_CC_dependencies_compiler_type=$depmode
5152 am_cv_CC_dependencies_compiler_type=none
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5157 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5158 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5161 test "x$enable_dependency_tracking" != xno \
5162 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5164 am__fastdepCC_FALSE='#'
5166 am__fastdepCC_TRUE='#'
5167 am__fastdepCC_FALSE=
5173 ac_cpp='$CPP $CPPFLAGS'
5174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5178 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5179 # On Suns, sometimes $CPP names a directory.
5180 if test -n "$CPP" && test -d "$CPP"; then
5183 if test -z "$CPP"; then
5184 if ${ac_cv_prog_CPP+:} false; then :
5185 $as_echo_n "(cached) " >&6
5187 # Double quotes because CPP needs to be expanded
5188 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5191 for ac_c_preproc_warn_flag in '' yes
5193 # Use a header file that comes with gcc, so configuring glibc
5194 # with a fresh cross-compiler works.
5195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5196 # <limits.h> exists even on freestanding compilers.
5197 # On the NeXT, cc -E runs the code through the compiler's parser,
5198 # not just through cpp. "Syntax error" is here to catch this case.
5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200 /* end confdefs.h. */
5202 # include <limits.h>
5204 # include <assert.h>
5208 if ac_fn_c_try_cpp "$LINENO"; then :
5211 # Broken: fails on valid input.
5214 rm -f conftest.err conftest.i conftest.$ac_ext
5216 # OK, works on sane cases. Now check whether nonexistent headers
5217 # can be detected and how.
5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219 /* end confdefs.h. */
5220 #include <ac_nonexistent.h>
5222 if ac_fn_c_try_cpp "$LINENO"; then :
5223 # Broken: success on invalid input.
5226 # Passes both tests.
5230 rm -f conftest.err conftest.i conftest.$ac_ext
5233 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5234 rm -f conftest.i conftest.err conftest.$ac_ext
5235 if $ac_preproc_ok; then :
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5248 $as_echo "$CPP" >&6; }
5250 for ac_c_preproc_warn_flag in '' yes
5252 # Use a header file that comes with gcc, so configuring glibc
5253 # with a fresh cross-compiler works.
5254 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5255 # <limits.h> exists even on freestanding compilers.
5256 # On the NeXT, cc -E runs the code through the compiler's parser,
5257 # not just through cpp. "Syntax error" is here to catch this case.
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5261 # include <limits.h>
5263 # include <assert.h>
5267 if ac_fn_c_try_cpp "$LINENO"; then :
5270 # Broken: fails on valid input.
5273 rm -f conftest.err conftest.i conftest.$ac_ext
5275 # OK, works on sane cases. Now check whether nonexistent headers
5276 # can be detected and how.
5277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278 /* end confdefs.h. */
5279 #include <ac_nonexistent.h>
5281 if ac_fn_c_try_cpp "$LINENO"; then :
5282 # Broken: success on invalid input.
5285 # Passes both tests.
5289 rm -f conftest.err conftest.i conftest.$ac_ext
5292 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5293 rm -f conftest.i conftest.err conftest.$ac_ext
5294 if $ac_preproc_ok; then :
5297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5299 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5300 See \`config.log' for more details" "$LINENO" 5; }
5304 ac_cpp='$CPP $CPPFLAGS'
5305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5311 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5312 if ${ac_cv_path_GREP+:} false; then :
5313 $as_echo_n "(cached) " >&6
5315 if test -z "$GREP"; then
5316 ac_path_GREP_found=false
5317 # Loop through the user's path and test for each of PROGNAME-LIST
5318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5319 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5322 test -z "$as_dir" && as_dir=.
5323 for ac_prog in grep ggrep; do
5324 for ac_exec_ext in '' $ac_executable_extensions; do
5325 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5326 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5327 # Check for GNU ac_path_GREP and select it if it is found.
5328 # Check for GNU $ac_path_GREP
5329 case `"$ac_path_GREP" --version 2>&1` in
5331 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5334 $as_echo_n 0123456789 >"conftest.in"
5337 cat "conftest.in" "conftest.in" >"conftest.tmp"
5338 mv "conftest.tmp" "conftest.in"
5339 cp "conftest.in" "conftest.nl"
5340 $as_echo 'GREP' >> "conftest.nl"
5341 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5342 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5343 as_fn_arith $ac_count + 1 && ac_count=$as_val
5344 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5345 # Best one so far, save it but keep looking for a better one
5346 ac_cv_path_GREP="$ac_path_GREP"
5347 ac_path_GREP_max=$ac_count
5349 # 10*(2^10) chars as input seems more than enough
5350 test $ac_count -gt 10 && break
5352 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5355 $ac_path_GREP_found && break 3
5360 if test -z "$ac_cv_path_GREP"; then
5361 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5364 ac_cv_path_GREP=$GREP
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5369 $as_echo "$ac_cv_path_GREP" >&6; }
5370 GREP="$ac_cv_path_GREP"
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5374 $as_echo_n "checking for egrep... " >&6; }
5375 if ${ac_cv_path_EGREP+:} false; then :
5376 $as_echo_n "(cached) " >&6
5378 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5379 then ac_cv_path_EGREP="$GREP -E"
5381 if test -z "$EGREP"; then
5382 ac_path_EGREP_found=false
5383 # Loop through the user's path and test for each of PROGNAME-LIST
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5388 test -z "$as_dir" && as_dir=.
5389 for ac_prog in egrep; do
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5392 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5393 # Check for GNU ac_path_EGREP and select it if it is found.
5394 # Check for GNU $ac_path_EGREP
5395 case `"$ac_path_EGREP" --version 2>&1` in
5397 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5400 $as_echo_n 0123456789 >"conftest.in"
5403 cat "conftest.in" "conftest.in" >"conftest.tmp"
5404 mv "conftest.tmp" "conftest.in"
5405 cp "conftest.in" "conftest.nl"
5406 $as_echo 'EGREP' >> "conftest.nl"
5407 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5408 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5409 as_fn_arith $ac_count + 1 && ac_count=$as_val
5410 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5411 # Best one so far, save it but keep looking for a better one
5412 ac_cv_path_EGREP="$ac_path_EGREP"
5413 ac_path_EGREP_max=$ac_count
5415 # 10*(2^10) chars as input seems more than enough
5416 test $ac_count -gt 10 && break
5418 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5421 $ac_path_EGREP_found && break 3
5426 if test -z "$ac_cv_path_EGREP"; then
5427 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5430 ac_cv_path_EGREP=$EGREP
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5436 $as_echo "$ac_cv_path_EGREP" >&6; }
5437 EGREP="$ac_cv_path_EGREP"
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5441 $as_echo_n "checking for ANSI C header files... " >&6; }
5442 if ${ac_cv_header_stdc+:} false; then :
5443 $as_echo_n "(cached) " >&6
5445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5446 /* end confdefs.h. */
5460 if ac_fn_c_try_compile "$LINENO"; then :
5461 ac_cv_header_stdc=yes
5463 ac_cv_header_stdc=no
5465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5467 if test $ac_cv_header_stdc = yes; then
5468 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470 /* end confdefs.h. */
5474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5475 $EGREP "memchr" >/dev/null 2>&1; then :
5478 ac_cv_header_stdc=no
5484 if test $ac_cv_header_stdc = yes; then
5485 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487 /* end confdefs.h. */
5491 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5492 $EGREP "free" >/dev/null 2>&1; then :
5495 ac_cv_header_stdc=no
5501 if test $ac_cv_header_stdc = yes; then
5502 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5503 if test "$cross_compiling" = yes; then :
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5510 #if ((' ' & 0x0FF) == 0x020)
5511 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5512 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5514 # define ISLOWER(c) \
5515 (('a' <= (c) && (c) <= 'i') \
5516 || ('j' <= (c) && (c) <= 'r') \
5517 || ('s' <= (c) && (c) <= 'z'))
5518 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5521 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5526 for (i = 0; i < 256; i++)
5527 if (XOR (islower (i), ISLOWER (i))
5528 || toupper (i) != TOUPPER (i))
5533 if ac_fn_c_try_run "$LINENO"; then :
5536 ac_cv_header_stdc=no
5538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5539 conftest.$ac_objext conftest.beam conftest.$ac_ext
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5545 $as_echo "$ac_cv_header_stdc" >&6; }
5546 if test $ac_cv_header_stdc = yes; then
5548 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5552 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5553 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5554 inttypes.h stdint.h unistd.h
5556 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5557 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5559 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5560 cat >>confdefs.h <<_ACEOF
5561 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5570 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5571 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5578 if test "$MINIX" = yes; then
5580 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5583 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5586 $as_echo "#define _MINIX 1" >>confdefs.h
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5592 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5593 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5594 $as_echo_n "(cached) " >&6
5596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5597 /* end confdefs.h. */
5599 # define __EXTENSIONS__ 1
5600 $ac_includes_default
5609 if ac_fn_c_try_compile "$LINENO"; then :
5610 ac_cv_safe_to_define___extensions__=yes
5612 ac_cv_safe_to_define___extensions__=no
5614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5617 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5618 test $ac_cv_safe_to_define___extensions__ = yes &&
5619 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5621 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5623 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5625 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5627 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5631 # Check for programs
5633 ac_cpp='$CPP $CPPFLAGS'
5634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5637 if test -n "$ac_tool_prefix"; then
5638 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5639 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5641 $as_echo_n "checking for $ac_word... " >&6; }
5642 if ${ac_cv_prog_CC+:} false; then :
5643 $as_echo_n "(cached) " >&6
5645 if test -n "$CC"; then
5646 ac_cv_prog_CC="$CC" # Let the user override the test.
5648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5652 test -z "$as_dir" && as_dir=.
5653 for ac_exec_ext in '' $ac_executable_extensions; do
5654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5655 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 if test -n "$CC"; then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5668 $as_echo "$CC" >&6; }
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5671 $as_echo "no" >&6; }
5676 if test -z "$ac_cv_prog_CC"; then
5678 # Extract the first word of "gcc", so it can be a program name with args.
5679 set dummy gcc; ac_word=$2
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681 $as_echo_n "checking for $ac_word... " >&6; }
5682 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5683 $as_echo_n "(cached) " >&6
5685 if test -n "$ac_ct_CC"; then
5686 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 test -z "$as_dir" && as_dir=.
5693 for ac_exec_ext in '' $ac_executable_extensions; do
5694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5695 ac_cv_prog_ac_ct_CC="gcc"
5696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5705 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5706 if test -n "$ac_ct_CC"; then
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5708 $as_echo "$ac_ct_CC" >&6; }
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5711 $as_echo "no" >&6; }
5714 if test "x$ac_ct_CC" = x; then
5717 case $cross_compiling:$ac_tool_warned in
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5720 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5721 ac_tool_warned=yes ;;
5729 if test -z "$CC"; then
5730 if test -n "$ac_tool_prefix"; then
5731 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5732 set dummy ${ac_tool_prefix}cc; ac_word=$2
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5734 $as_echo_n "checking for $ac_word... " >&6; }
5735 if ${ac_cv_prog_CC+:} false; then :
5736 $as_echo_n "(cached) " >&6
5738 if test -n "$CC"; then
5739 ac_cv_prog_CC="$CC" # Let the user override the test.
5741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5745 test -z "$as_dir" && as_dir=.
5746 for ac_exec_ext in '' $ac_executable_extensions; do
5747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5748 ac_cv_prog_CC="${ac_tool_prefix}cc"
5749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5759 if test -n "$CC"; then
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5761 $as_echo "$CC" >&6; }
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5764 $as_echo "no" >&6; }
5770 if test -z "$CC"; then
5771 # Extract the first word of "cc", so it can be a program name with args.
5772 set dummy cc; ac_word=$2
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5774 $as_echo_n "checking for $ac_word... " >&6; }
5775 if ${ac_cv_prog_CC+:} false; then :
5776 $as_echo_n "(cached) " >&6
5778 if test -n "$CC"; then
5779 ac_cv_prog_CC="$CC" # Let the user override the test.
5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786 test -z "$as_dir" && as_dir=.
5787 for ac_exec_ext in '' $ac_executable_extensions; do
5788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5789 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5790 ac_prog_rejected=yes
5794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5801 if test $ac_prog_rejected = yes; then
5802 # We found a bogon in the path, so make sure we never use it.
5803 set dummy $ac_cv_prog_CC
5805 if test $# != 0; then
5806 # We chose a different compiler from the bogus one.
5807 # However, it has the same basename, so the bogon will be chosen
5808 # first if we set CC to just the basename; use the full file name.
5810 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5816 if test -n "$CC"; then
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5818 $as_echo "$CC" >&6; }
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5821 $as_echo "no" >&6; }
5826 if test -z "$CC"; then
5827 if test -n "$ac_tool_prefix"; then
5828 for ac_prog in cl.exe
5830 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5831 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5833 $as_echo_n "checking for $ac_word... " >&6; }
5834 if ${ac_cv_prog_CC+:} false; then :
5835 $as_echo_n "(cached) " >&6
5837 if test -n "$CC"; then
5838 ac_cv_prog_CC="$CC" # Let the user override the test.
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844 test -z "$as_dir" && as_dir=.
5845 for ac_exec_ext in '' $ac_executable_extensions; do
5846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5847 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5858 if test -n "$CC"; then
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5860 $as_echo "$CC" >&6; }
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5863 $as_echo "no" >&6; }
5867 test -n "$CC" && break
5870 if test -z "$CC"; then
5872 for ac_prog in cl.exe
5874 # Extract the first word of "$ac_prog", so it can be a program name with args.
5875 set dummy $ac_prog; ac_word=$2
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5877 $as_echo_n "checking for $ac_word... " >&6; }
5878 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5879 $as_echo_n "(cached) " >&6
5881 if test -n "$ac_ct_CC"; then
5882 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5891 ac_cv_prog_ac_ct_CC="$ac_prog"
5892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5901 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5902 if test -n "$ac_ct_CC"; then
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5904 $as_echo "$ac_ct_CC" >&6; }
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5907 $as_echo "no" >&6; }
5911 test -n "$ac_ct_CC" && break
5914 if test "x$ac_ct_CC" = x; then
5917 case $cross_compiling:$ac_tool_warned in
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5920 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5921 ac_tool_warned=yes ;;
5930 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5932 as_fn_error $? "no acceptable C compiler found in \$PATH
5933 See \`config.log' for more details" "$LINENO" 5; }
5935 # Provide some information about the compiler.
5936 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5939 for ac_option in --version -v -V -qversion; do
5940 { { ac_try="$ac_compiler $ac_option >&5"
5942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943 *) ac_try_echo=$ac_try;;
5945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5946 $as_echo "$ac_try_echo"; } >&5
5947 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5949 if test -s conftest.err; then
5951 ... rest of stderr output deleted ...
5952 10q' conftest.err >conftest.er1
5953 cat conftest.er1 >&5
5955 rm -f conftest.er1 conftest.err
5956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5957 test $ac_status = 0; }
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5961 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5962 if ${ac_cv_c_compiler_gnu+:} false; then :
5963 $as_echo_n "(cached) " >&6
5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966 /* end confdefs.h. */
5979 if ac_fn_c_try_compile "$LINENO"; then :
5984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5985 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5989 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5990 if test $ac_compiler_gnu = yes; then
5995 ac_test_CFLAGS=${CFLAGS+set}
5996 ac_save_CFLAGS=$CFLAGS
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5998 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5999 if ${ac_cv_prog_cc_g+:} false; then :
6000 $as_echo_n "(cached) " >&6
6002 ac_save_c_werror_flag=$ac_c_werror_flag
6003 ac_c_werror_flag=yes
6006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6007 /* end confdefs.h. */
6017 if ac_fn_c_try_compile "$LINENO"; then :
6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h. */
6032 if ac_fn_c_try_compile "$LINENO"; then :
6035 ac_c_werror_flag=$ac_save_c_werror_flag
6037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h. */
6048 if ac_fn_c_try_compile "$LINENO"; then :
6051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056 ac_c_werror_flag=$ac_save_c_werror_flag
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6059 $as_echo "$ac_cv_prog_cc_g" >&6; }
6060 if test "$ac_test_CFLAGS" = set; then
6061 CFLAGS=$ac_save_CFLAGS
6062 elif test $ac_cv_prog_cc_g = yes; then
6063 if test "$GCC" = yes; then
6069 if test "$GCC" = yes; then
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6076 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6077 if ${ac_cv_prog_cc_c89+:} false; then :
6078 $as_echo_n "(cached) " >&6
6080 ac_cv_prog_cc_c89=no
6082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6083 /* end confdefs.h. */
6086 #include <sys/types.h>
6087 #include <sys/stat.h>
6088 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6089 struct buf { int x; };
6090 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6091 static char *e (p, i)
6097 static char *f (char * (*g) (char **, int), char **p, ...)
6102 s = g (p, va_arg (v,int));
6107 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6108 function prototypes and stuff, but not '\xHH' hex character constants.
6109 These don't provoke an error unfortunately, instead are silently treated
6110 as 'x'. The following induces an error, until -std is added to get
6111 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6112 array size at least. It's necessary to write '\x00'==0 to get something
6113 that's true only with -std. */
6114 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6116 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6117 inside strings and character constants. */
6119 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6121 int test (int i, double x);
6122 struct s1 {int (*f) (int a);};
6123 struct s2 {int (*f) (double a);};
6124 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6130 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6135 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6136 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6138 CC="$ac_save_CC $ac_arg"
6139 if ac_fn_c_try_compile "$LINENO"; then :
6140 ac_cv_prog_cc_c89=$ac_arg
6142 rm -f core conftest.err conftest.$ac_objext
6143 test "x$ac_cv_prog_cc_c89" != "xno" && break
6145 rm -f conftest.$ac_ext
6150 case "x$ac_cv_prog_cc_c89" in
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6153 $as_echo "none needed" >&6; } ;;
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6156 $as_echo "unsupported" >&6; } ;;
6158 CC="$CC $ac_cv_prog_cc_c89"
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6160 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6162 if test "x$ac_cv_prog_cc_c89" != xno; then :
6167 ac_cpp='$CPP $CPPFLAGS'
6168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6172 depcc="$CC" am_compiler_list=
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6175 $as_echo_n "checking dependency style of $depcc... " >&6; }
6176 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6177 $as_echo_n "(cached) " >&6
6179 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6180 # We make a subdir and do the tests there. Otherwise we can end up
6181 # making bogus files that we don't know about and never remove. For
6182 # instance it was reported that on HP-UX the gcc test will end up
6183 # making a dummy file named `D' -- because `-MD' means `put the output
6186 # Copy depcomp to subdir because otherwise we won't find it if we're
6187 # using a relative directory.
6188 cp "$am_depcomp" conftest.dir
6190 # We will build objects and dependencies in a subdirectory because
6191 # it helps to detect inapplicable dependency modes. For instance
6192 # both Tru64's cc and ICC support -MD to output dependencies as a
6193 # side effect of compilation, but ICC will put the dependencies in
6194 # the current directory while Tru64 will put them in the object
6198 am_cv_CC_dependencies_compiler_type=none
6199 if test "$am_compiler_list" = ""; then
6200 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6203 case " $depcc " in #(
6204 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6207 for depmode in $am_compiler_list; do
6208 # Setup a source with many dependencies, because some compilers
6209 # like to wrap large dependency lists on column 80 (with \), and
6210 # we should not choose a depcomp mode which is confused by this.
6212 # We need to recreate these files for each test, as the compiler may
6213 # overwrite some of them when testing with obscure command lines.
6214 # This happens at least with the AIX C compiler.
6216 for i in 1 2 3 4 5 6; do
6217 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6218 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6219 # Solaris 8's {/usr,}/bin/sh.
6220 touch sub/conftst$i.h
6222 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6224 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6225 # mode. It turns out that the SunPro C++ compiler does not properly
6226 # handle `-M -o', and we need to detect this. Also, some Intel
6227 # versions had trouble with output in subdirs
6228 am__obj=sub/conftest.${OBJEXT-o}
6229 am__minus_obj="-o $am__obj"
6232 # This depmode causes a compiler race in universal mode.
6233 test "$am__universal" = false || continue
6236 # after this tag, mechanisms are not by side-effect, so they'll
6237 # only be used when explicitly requested
6238 if test "x$enable_dependency_tracking" = xyes; then
6244 msvisualcpp | msvcmsys)
6245 # This compiler won't grok `-c -o', but also, the minuso test has
6246 # not run yet. These depmodes are late enough in the game, and
6247 # so weak that their functioning should not be impacted.
6248 am__obj=conftest.${OBJEXT-o}
6253 if depmode=$depmode \
6254 source=sub/conftest.c object=$am__obj \
6255 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6256 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6257 >/dev/null 2>conftest.err &&
6258 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6259 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6260 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6261 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6262 # icc doesn't choke on unknown options, it will just issue warnings
6263 # or remarks (even with -Werror). So we grep stderr for any message
6264 # that says an option was ignored or not supported.
6265 # When given -MP, icc 7.0 and 7.1 complain thusly:
6266 # icc: Command line warning: ignoring option '-M'; no argument required
6267 # The diagnosis changed in icc 8.0:
6268 # icc: Command line remark: option '-MP' not supported
6269 if (grep 'ignoring option' conftest.err ||
6270 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6271 am_cv_CC_dependencies_compiler_type=$depmode
6280 am_cv_CC_dependencies_compiler_type=none
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6285 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6286 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6289 test "x$enable_dependency_tracking" != xno \
6290 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6292 am__fastdepCC_FALSE='#'
6294 am__fastdepCC_TRUE='#'
6295 am__fastdepCC_FALSE=
6300 ac_cpp='$CXXCPP $CPPFLAGS'
6301 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6302 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6303 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6304 if test -z "$CXX"; then
6305 if test -n "$CCC"; then
6308 if test -n "$ac_tool_prefix"; then
6309 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6311 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6312 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6314 $as_echo_n "checking for $ac_word... " >&6; }
6315 if ${ac_cv_prog_CXX+:} false; then :
6316 $as_echo_n "(cached) " >&6
6318 if test -n "$CXX"; then
6319 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 test -z "$as_dir" && as_dir=.
6326 for ac_exec_ext in '' $ac_executable_extensions; do
6327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6328 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 if test -n "$CXX"; then
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6341 $as_echo "$CXX" >&6; }
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344 $as_echo "no" >&6; }
6348 test -n "$CXX" && break
6351 if test -z "$CXX"; then
6353 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6355 # Extract the first word of "$ac_prog", so it can be a program name with args.
6356 set dummy $ac_prog; ac_word=$2
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6358 $as_echo_n "checking for $ac_word... " >&6; }
6359 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6360 $as_echo_n "(cached) " >&6
6362 if test -n "$ac_ct_CXX"; then
6363 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369 test -z "$as_dir" && as_dir=.
6370 for ac_exec_ext in '' $ac_executable_extensions; do
6371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6372 ac_cv_prog_ac_ct_CXX="$ac_prog"
6373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6382 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6383 if test -n "$ac_ct_CXX"; then
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6385 $as_echo "$ac_ct_CXX" >&6; }
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6388 $as_echo "no" >&6; }
6392 test -n "$ac_ct_CXX" && break
6395 if test "x$ac_ct_CXX" = x; then
6398 case $cross_compiling:$ac_tool_warned in
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6402 ac_tool_warned=yes ;;
6410 # Provide some information about the compiler.
6411 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6414 for ac_option in --version -v -V -qversion; do
6415 { { ac_try="$ac_compiler $ac_option >&5"
6417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6418 *) ac_try_echo=$ac_try;;
6420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6421 $as_echo "$ac_try_echo"; } >&5
6422 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6424 if test -s conftest.err; then
6426 ... rest of stderr output deleted ...
6427 10q' conftest.err >conftest.er1
6428 cat conftest.er1 >&5
6430 rm -f conftest.er1 conftest.err
6431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6432 test $ac_status = 0; }
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6436 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6437 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6438 $as_echo_n "(cached) " >&6
6440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6441 /* end confdefs.h. */
6454 if ac_fn_cxx_try_compile "$LINENO"; then :
6459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6460 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6464 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6465 if test $ac_compiler_gnu = yes; then
6470 ac_test_CXXFLAGS=${CXXFLAGS+set}
6471 ac_save_CXXFLAGS=$CXXFLAGS
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6473 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6474 if ${ac_cv_prog_cxx_g+:} false; then :
6475 $as_echo_n "(cached) " >&6
6477 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6478 ac_cxx_werror_flag=yes
6481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6482 /* end confdefs.h. */
6492 if ac_fn_cxx_try_compile "$LINENO"; then :
6493 ac_cv_prog_cxx_g=yes
6496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6497 /* end confdefs.h. */
6507 if ac_fn_cxx_try_compile "$LINENO"; then :
6510 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6513 /* end confdefs.h. */
6523 if ac_fn_cxx_try_compile "$LINENO"; then :
6524 ac_cv_prog_cxx_g=yes
6526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6534 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6535 if test "$ac_test_CXXFLAGS" = set; then
6536 CXXFLAGS=$ac_save_CXXFLAGS
6537 elif test $ac_cv_prog_cxx_g = yes; then
6538 if test "$GXX" = yes; then
6544 if test "$GXX" = yes; then
6551 ac_cpp='$CPP $CPPFLAGS'
6552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6556 depcc="$CXX" am_compiler_list=
6558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6559 $as_echo_n "checking dependency style of $depcc... " >&6; }
6560 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6561 $as_echo_n "(cached) " >&6
6563 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6564 # We make a subdir and do the tests there. Otherwise we can end up
6565 # making bogus files that we don't know about and never remove. For
6566 # instance it was reported that on HP-UX the gcc test will end up
6567 # making a dummy file named `D' -- because `-MD' means `put the output
6570 # Copy depcomp to subdir because otherwise we won't find it if we're
6571 # using a relative directory.
6572 cp "$am_depcomp" conftest.dir
6574 # We will build objects and dependencies in a subdirectory because
6575 # it helps to detect inapplicable dependency modes. For instance
6576 # both Tru64's cc and ICC support -MD to output dependencies as a
6577 # side effect of compilation, but ICC will put the dependencies in
6578 # the current directory while Tru64 will put them in the object
6582 am_cv_CXX_dependencies_compiler_type=none
6583 if test "$am_compiler_list" = ""; then
6584 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6587 case " $depcc " in #(
6588 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6591 for depmode in $am_compiler_list; do
6592 # Setup a source with many dependencies, because some compilers
6593 # like to wrap large dependency lists on column 80 (with \), and
6594 # we should not choose a depcomp mode which is confused by this.
6596 # We need to recreate these files for each test, as the compiler may
6597 # overwrite some of them when testing with obscure command lines.
6598 # This happens at least with the AIX C compiler.
6600 for i in 1 2 3 4 5 6; do
6601 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6602 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6603 # Solaris 8's {/usr,}/bin/sh.
6604 touch sub/conftst$i.h
6606 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6608 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6609 # mode. It turns out that the SunPro C++ compiler does not properly
6610 # handle `-M -o', and we need to detect this. Also, some Intel
6611 # versions had trouble with output in subdirs
6612 am__obj=sub/conftest.${OBJEXT-o}
6613 am__minus_obj="-o $am__obj"
6616 # This depmode causes a compiler race in universal mode.
6617 test "$am__universal" = false || continue
6620 # after this tag, mechanisms are not by side-effect, so they'll
6621 # only be used when explicitly requested
6622 if test "x$enable_dependency_tracking" = xyes; then
6628 msvisualcpp | msvcmsys)
6629 # This compiler won't grok `-c -o', but also, the minuso test has
6630 # not run yet. These depmodes are late enough in the game, and
6631 # so weak that their functioning should not be impacted.
6632 am__obj=conftest.${OBJEXT-o}
6637 if depmode=$depmode \
6638 source=sub/conftest.c object=$am__obj \
6639 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6640 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6641 >/dev/null 2>conftest.err &&
6642 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6643 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6644 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6645 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6646 # icc doesn't choke on unknown options, it will just issue warnings
6647 # or remarks (even with -Werror). So we grep stderr for any message
6648 # that says an option was ignored or not supported.
6649 # When given -MP, icc 7.0 and 7.1 complain thusly:
6650 # icc: Command line warning: ignoring option '-M'; no argument required
6651 # The diagnosis changed in icc 8.0:
6652 # icc: Command line remark: option '-MP' not supported
6653 if (grep 'ignoring option' conftest.err ||
6654 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6655 am_cv_CXX_dependencies_compiler_type=$depmode
6664 am_cv_CXX_dependencies_compiler_type=none
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6669 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6670 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6673 test "x$enable_dependency_tracking" != xno \
6674 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6675 am__fastdepCXX_TRUE=
6676 am__fastdepCXX_FALSE='#'
6678 am__fastdepCXX_TRUE='#'
6679 am__fastdepCXX_FALSE=
6683 case $ac_cv_prog_cc_stdc in #(
6685 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6688 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6689 if ${ac_cv_prog_cc_c99+:} false; then :
6690 $as_echo_n "(cached) " >&6
6692 ac_cv_prog_cc_c99=no
6694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6695 /* end confdefs.h. */
6697 #include <stdbool.h>
6702 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6703 #define debug(...) fprintf (stderr, __VA_ARGS__)
6704 #define showlist(...) puts (#__VA_ARGS__)
6705 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6707 test_varargs_macros (void)
6712 debug ("X = %d\n", x);
6713 showlist (The first, second, and third items.);
6714 report (x>y, "x is %d but y is %d", x, y);
6717 // Check long long types.
6718 #define BIG64 18446744073709551615ull
6719 #define BIG32 4294967295ul
6720 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6722 your preprocessor is broken;
6726 your preprocessor is broken;
6728 static long long int bignum = -9223372036854775807LL;
6729 static unsigned long long int ubignum = BIG64;
6731 struct incomplete_array
6739 const wchar_t *name;
6743 typedef const char *ccp;
6746 test_restrict (ccp restrict text)
6748 // See if C++-style comments work.
6749 // Iterate through items via the restricted pointer.
6750 // Also check for declarations in for loops.
6751 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6756 // Check varargs and va_copy.
6758 test_varargs (const char *format, ...)
6761 va_start (args, format);
6763 va_copy (args_copy, args);
6774 str = va_arg (args_copy, const char *);
6777 number = va_arg (args_copy, int);
6780 fnumber = va_arg (args_copy, double);
6795 _Bool success = false;
6798 if (test_restrict ("String literal") == 0)
6800 char *restrict newvar = "Another string";
6803 test_varargs ("s, d' f .", "string", 65, 34.234);
6804 test_varargs_macros ();
6806 // Check flexible array members.
6807 struct incomplete_array *ia =
6808 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6810 for (int i = 0; i < ia->datasize; ++i)
6811 ia->data[i] = i * 1.234;
6813 // Check named initializers.
6814 struct named_init ni = {
6816 .name = L"Test wide string",
6817 .average = 543.34343,
6822 int dynamic_array[ni.number];
6823 dynamic_array[ni.number - 1] = 543;
6825 // work around unused variable warnings
6826 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6827 || dynamic_array[ni.number - 1] != 543);
6833 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6835 CC="$ac_save_CC $ac_arg"
6836 if ac_fn_c_try_compile "$LINENO"; then :
6837 ac_cv_prog_cc_c99=$ac_arg
6839 rm -f core conftest.err conftest.$ac_objext
6840 test "x$ac_cv_prog_cc_c99" != "xno" && break
6842 rm -f conftest.$ac_ext
6847 case "x$ac_cv_prog_cc_c99" in
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6850 $as_echo "none needed" >&6; } ;;
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6853 $as_echo "unsupported" >&6; } ;;
6855 CC="$CC $ac_cv_prog_cc_c99"
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6857 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6859 if test "x$ac_cv_prog_cc_c99" != xno; then :
6860 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6863 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6864 if ${ac_cv_prog_cc_c89+:} false; then :
6865 $as_echo_n "(cached) " >&6
6867 ac_cv_prog_cc_c89=no
6869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870 /* end confdefs.h. */
6873 #include <sys/types.h>
6874 #include <sys/stat.h>
6875 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6876 struct buf { int x; };
6877 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6878 static char *e (p, i)
6884 static char *f (char * (*g) (char **, int), char **p, ...)
6889 s = g (p, va_arg (v,int));
6894 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6895 function prototypes and stuff, but not '\xHH' hex character constants.
6896 These don't provoke an error unfortunately, instead are silently treated
6897 as 'x'. The following induces an error, until -std is added to get
6898 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6899 array size at least. It's necessary to write '\x00'==0 to get something
6900 that's true only with -std. */
6901 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6903 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6904 inside strings and character constants. */
6906 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6908 int test (int i, double x);
6909 struct s1 {int (*f) (int a);};
6910 struct s2 {int (*f) (double a);};
6911 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6917 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6922 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6923 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6925 CC="$ac_save_CC $ac_arg"
6926 if ac_fn_c_try_compile "$LINENO"; then :
6927 ac_cv_prog_cc_c89=$ac_arg
6929 rm -f core conftest.err conftest.$ac_objext
6930 test "x$ac_cv_prog_cc_c89" != "xno" && break
6932 rm -f conftest.$ac_ext
6937 case "x$ac_cv_prog_cc_c89" in
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6940 $as_echo "none needed" >&6; } ;;
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6943 $as_echo "unsupported" >&6; } ;;
6945 CC="$CC $ac_cv_prog_cc_c89"
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6947 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6949 if test "x$ac_cv_prog_cc_c89" != xno; then :
6950 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6952 ac_cv_prog_cc_stdc=no
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6959 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6960 if ${ac_cv_prog_cc_stdc+:} false; then :
6961 $as_echo_n "(cached) " >&6
6964 case $ac_cv_prog_cc_stdc in #(
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6967 $as_echo "unsupported" >&6; } ;; #(
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6970 $as_echo "none needed" >&6; } ;; #(
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6973 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6977 ac_cpp='$CPP $CPPFLAGS'
6978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6982 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6983 # On Suns, sometimes $CPP names a directory.
6984 if test -n "$CPP" && test -d "$CPP"; then
6987 if test -z "$CPP"; then
6988 if ${ac_cv_prog_CPP+:} false; then :
6989 $as_echo_n "(cached) " >&6
6991 # Double quotes because CPP needs to be expanded
6992 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6995 for ac_c_preproc_warn_flag in '' yes
6997 # Use a header file that comes with gcc, so configuring glibc
6998 # with a fresh cross-compiler works.
6999 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7000 # <limits.h> exists even on freestanding compilers.
7001 # On the NeXT, cc -E runs the code through the compiler's parser,
7002 # not just through cpp. "Syntax error" is here to catch this case.
7003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7004 /* end confdefs.h. */
7006 # include <limits.h>
7008 # include <assert.h>
7012 if ac_fn_c_try_cpp "$LINENO"; then :
7015 # Broken: fails on valid input.
7018 rm -f conftest.err conftest.i conftest.$ac_ext
7020 # OK, works on sane cases. Now check whether nonexistent headers
7021 # can be detected and how.
7022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7023 /* end confdefs.h. */
7024 #include <ac_nonexistent.h>
7026 if ac_fn_c_try_cpp "$LINENO"; then :
7027 # Broken: success on invalid input.
7030 # Passes both tests.
7034 rm -f conftest.err conftest.i conftest.$ac_ext
7037 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7038 rm -f conftest.i conftest.err conftest.$ac_ext
7039 if $ac_preproc_ok; then :
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7052 $as_echo "$CPP" >&6; }
7054 for ac_c_preproc_warn_flag in '' yes
7056 # Use a header file that comes with gcc, so configuring glibc
7057 # with a fresh cross-compiler works.
7058 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7059 # <limits.h> exists even on freestanding compilers.
7060 # On the NeXT, cc -E runs the code through the compiler's parser,
7061 # not just through cpp. "Syntax error" is here to catch this case.
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7065 # include <limits.h>
7067 # include <assert.h>
7071 if ac_fn_c_try_cpp "$LINENO"; then :
7074 # Broken: fails on valid input.
7077 rm -f conftest.err conftest.i conftest.$ac_ext
7079 # OK, works on sane cases. Now check whether nonexistent headers
7080 # can be detected and how.
7081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7082 /* end confdefs.h. */
7083 #include <ac_nonexistent.h>
7085 if ac_fn_c_try_cpp "$LINENO"; then :
7086 # Broken: success on invalid input.
7089 # Passes both tests.
7093 rm -f conftest.err conftest.i conftest.$ac_ext
7096 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7097 rm -f conftest.i conftest.err conftest.$ac_ext
7098 if $ac_preproc_ok; then :
7101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7103 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7104 See \`config.log' for more details" "$LINENO" 5; }
7108 ac_cpp='$CPP $CPPFLAGS'
7109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7114 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7115 if ${ac_cv_path_SED+:} false; then :
7116 $as_echo_n "(cached) " >&6
7118 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7119 for ac_i in 1 2 3 4 5 6 7; do
7120 ac_script="$ac_script$as_nl$ac_script"
7122 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7123 { ac_script=; unset ac_script;}
7124 if test -z "$SED"; then
7125 ac_path_SED_found=false
7126 # Loop through the user's path and test for each of PROGNAME-LIST
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 test -z "$as_dir" && as_dir=.
7132 for ac_prog in sed gsed; do
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7135 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7136 # Check for GNU ac_path_SED and select it if it is found.
7137 # Check for GNU $ac_path_SED
7138 case `"$ac_path_SED" --version 2>&1` in
7140 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7143 $as_echo_n 0123456789 >"conftest.in"
7146 cat "conftest.in" "conftest.in" >"conftest.tmp"
7147 mv "conftest.tmp" "conftest.in"
7148 cp "conftest.in" "conftest.nl"
7149 $as_echo '' >> "conftest.nl"
7150 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7151 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7152 as_fn_arith $ac_count + 1 && ac_count=$as_val
7153 if test $ac_count -gt ${ac_path_SED_max-0}; then
7154 # Best one so far, save it but keep looking for a better one
7155 ac_cv_path_SED="$ac_path_SED"
7156 ac_path_SED_max=$ac_count
7158 # 10*(2^10) chars as input seems more than enough
7159 test $ac_count -gt 10 && break
7161 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7164 $ac_path_SED_found && break 3
7169 if test -z "$ac_cv_path_SED"; then
7170 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7178 $as_echo "$ac_cv_path_SED" >&6; }
7179 SED="$ac_cv_path_SED"
7182 test -z "$SED" && SED=sed
7183 Xsed="$SED -e 1s/^X//"
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7196 $as_echo_n "checking for fgrep... " >&6; }
7197 if ${ac_cv_path_FGREP+:} false; then :
7198 $as_echo_n "(cached) " >&6
7200 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7201 then ac_cv_path_FGREP="$GREP -F"
7203 if test -z "$FGREP"; then
7204 ac_path_FGREP_found=false
7205 # Loop through the user's path and test for each of PROGNAME-LIST
7206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7207 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7210 test -z "$as_dir" && as_dir=.
7211 for ac_prog in fgrep; do
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7214 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7215 # Check for GNU ac_path_FGREP and select it if it is found.
7216 # Check for GNU $ac_path_FGREP
7217 case `"$ac_path_FGREP" --version 2>&1` in
7219 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7222 $as_echo_n 0123456789 >"conftest.in"
7225 cat "conftest.in" "conftest.in" >"conftest.tmp"
7226 mv "conftest.tmp" "conftest.in"
7227 cp "conftest.in" "conftest.nl"
7228 $as_echo 'FGREP' >> "conftest.nl"
7229 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7230 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7231 as_fn_arith $ac_count + 1 && ac_count=$as_val
7232 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7233 # Best one so far, save it but keep looking for a better one
7234 ac_cv_path_FGREP="$ac_path_FGREP"
7235 ac_path_FGREP_max=$ac_count
7237 # 10*(2^10) chars as input seems more than enough
7238 test $ac_count -gt 10 && break
7240 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7243 $ac_path_FGREP_found && break 3
7248 if test -z "$ac_cv_path_FGREP"; then
7249 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7252 ac_cv_path_FGREP=$FGREP
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7258 $as_echo "$ac_cv_path_FGREP" >&6; }
7259 FGREP="$ac_cv_path_FGREP"
7262 test -z "$GREP" && GREP=grep
7280 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7281 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7282 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7285 $as_echo_n "checking how to print strings... " >&6; }
7286 # Test print first, because it will be a builtin if present.
7287 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7288 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7290 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7293 # Use this function as a fallback that always works.
7294 func_fallback_echo ()
7296 eval 'cat <<_LTECHO_EOF
7300 ECHO='func_fallback_echo'
7303 # func_echo_all arg...
7304 # Invoke $ECHO with all args, space-separated.
7311 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7312 $as_echo "printf" >&6; } ;;
7313 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7314 $as_echo "print -r" >&6; } ;;
7315 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7316 $as_echo "cat" >&6; } ;;
7334 # Check whether --with-gnu-ld was given.
7335 if test "${with_gnu_ld+set}" = set; then :
7336 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7342 if test "$GCC" = yes; then
7343 # Check if gcc -print-prog-name=ld gives a path.
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7345 $as_echo_n "checking for ld used by $CC... " >&6; }
7348 # gcc leaves a trailing carriage return which upsets mingw
7349 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7351 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7354 # Accept absolute paths.
7356 re_direlt='/[^/][^/]*/\.\./'
7357 # Canonicalize the pathname of ld
7358 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7359 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7360 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7362 test -z "$LD" && LD="$ac_prog"
7365 # If it fails, then pretend we aren't using GCC.
7369 # If it is relative, then search for the first ld in PATH.
7373 elif test "$with_gnu_ld" = yes; then
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7375 $as_echo_n "checking for GNU ld... " >&6; }
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7378 $as_echo_n "checking for non-GNU ld... " >&6; }
7380 if ${lt_cv_path_LD+:} false; then :
7381 $as_echo_n "(cached) " >&6
7383 if test -z "$LD"; then
7384 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7385 for ac_dir in $PATH; do
7387 test -z "$ac_dir" && ac_dir=.
7388 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7389 lt_cv_path_LD="$ac_dir/$ac_prog"
7390 # Check to see if the program is GNU ld. I'd rather use --version,
7391 # but apparently some variants of GNU ld only accept -v.
7392 # Break only if it was the GNU/non-GNU ld that we prefer.
7393 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7394 *GNU* | *'with BFD'*)
7395 test "$with_gnu_ld" != no && break
7398 test "$with_gnu_ld" != yes && break
7405 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7410 if test -n "$LD"; then
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7412 $as_echo "$LD" >&6; }
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415 $as_echo "no" >&6; }
7417 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7419 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7420 if ${lt_cv_prog_gnu_ld+:} false; then :
7421 $as_echo_n "(cached) " >&6
7423 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7424 case `$LD -v 2>&1 </dev/null` in
7425 *GNU* | *'with BFD'*)
7426 lt_cv_prog_gnu_ld=yes
7429 lt_cv_prog_gnu_ld=no
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7434 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7435 with_gnu_ld=$lt_cv_prog_gnu_ld
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7447 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7448 if ${ac_cv_prog_cc_c99+:} false; then :
7449 $as_echo_n "(cached) " >&6
7451 ac_cv_prog_cc_c99=no
7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454 /* end confdefs.h. */
7456 #include <stdbool.h>
7461 // Check varargs macros. These examples are taken from C99 6.10.3.5.
7462 #define debug(...) fprintf (stderr, __VA_ARGS__)
7463 #define showlist(...) puts (#__VA_ARGS__)
7464 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7466 test_varargs_macros (void)
7471 debug ("X = %d\n", x);
7472 showlist (The first, second, and third items.);
7473 report (x>y, "x is %d but y is %d", x, y);
7476 // Check long long types.
7477 #define BIG64 18446744073709551615ull
7478 #define BIG32 4294967295ul
7479 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7481 your preprocessor is broken;
7485 your preprocessor is broken;
7487 static long long int bignum = -9223372036854775807LL;
7488 static unsigned long long int ubignum = BIG64;
7490 struct incomplete_array
7498 const wchar_t *name;
7502 typedef const char *ccp;
7505 test_restrict (ccp restrict text)
7507 // See if C++-style comments work.
7508 // Iterate through items via the restricted pointer.
7509 // Also check for declarations in for loops.
7510 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7515 // Check varargs and va_copy.
7517 test_varargs (const char *format, ...)
7520 va_start (args, format);
7522 va_copy (args_copy, args);
7533 str = va_arg (args_copy, const char *);
7536 number = va_arg (args_copy, int);
7539 fnumber = va_arg (args_copy, double);
7554 _Bool success = false;
7557 if (test_restrict ("String literal") == 0)
7559 char *restrict newvar = "Another string";
7562 test_varargs ("s, d' f .", "string", 65, 34.234);
7563 test_varargs_macros ();
7565 // Check flexible array members.
7566 struct incomplete_array *ia =
7567 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7569 for (int i = 0; i < ia->datasize; ++i)
7570 ia->data[i] = i * 1.234;
7572 // Check named initializers.
7573 struct named_init ni = {
7575 .name = L"Test wide string",
7576 .average = 543.34343,
7581 int dynamic_array[ni.number];
7582 dynamic_array[ni.number - 1] = 543;
7584 // work around unused variable warnings
7585 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7586 || dynamic_array[ni.number - 1] != 543);
7592 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7594 CC="$ac_save_CC $ac_arg"
7595 if ac_fn_c_try_compile "$LINENO"; then :
7596 ac_cv_prog_cc_c99=$ac_arg
7598 rm -f core conftest.err conftest.$ac_objext
7599 test "x$ac_cv_prog_cc_c99" != "xno" && break
7601 rm -f conftest.$ac_ext
7606 case "x$ac_cv_prog_cc_c99" in
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7609 $as_echo "none needed" >&6; } ;;
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7612 $as_echo "unsupported" >&6; } ;;
7614 CC="$CC $ac_cv_prog_cc_c99"
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7616 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7618 if test "x$ac_cv_prog_cc_c99" != xno; then :
7623 if test "x$CC" != xcc; then
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7625 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7628 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7630 set dummy $CC; ac_cc=`$as_echo "$2" |
7631 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7632 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7633 $as_echo_n "(cached) " >&6
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h. */
7646 # Make sure it works both with $CC and with simple cc.
7647 # We do the test twice because some compilers refuse to overwrite an
7648 # existing .o file with -o, though they will create one.
7649 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7651 if { { case "(($ac_try" in
7652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7653 *) ac_try_echo=$ac_try;;
7655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7656 $as_echo "$ac_try_echo"; } >&5
7657 (eval "$ac_try") 2>&5
7659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7660 test $ac_status = 0; } &&
7661 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7663 *) ac_try_echo=$ac_try;;
7665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7666 $as_echo "$ac_try_echo"; } >&5
7667 (eval "$ac_try") 2>&5
7669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7670 test $ac_status = 0; };
7672 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7673 if test "x$CC" != xcc; then
7674 # Test first that cc exists at all.
7675 if { ac_try='cc -c conftest.$ac_ext >&5'
7676 { { case "(($ac_try" in
7677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7678 *) ac_try_echo=$ac_try;;
7680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7681 $as_echo "$ac_try_echo"; } >&5
7682 (eval "$ac_try") 2>&5
7684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7685 test $ac_status = 0; }; }; then
7686 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7688 if { { case "(($ac_try" in
7689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7690 *) ac_try_echo=$ac_try;;
7692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7693 $as_echo "$ac_try_echo"; } >&5
7694 (eval "$ac_try") 2>&5
7696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7697 test $ac_status = 0; } &&
7698 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7700 *) ac_try_echo=$ac_try;;
7702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7703 $as_echo "$ac_try_echo"; } >&5
7704 (eval "$ac_try") 2>&5
7706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7707 test $ac_status = 0; };
7712 # cc exists but doesn't like -o.
7713 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7718 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7720 rm -f core conftest*
7723 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7725 $as_echo "yes" >&6; }
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728 $as_echo "no" >&6; }
7730 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7734 # FIXME: we rely on the cache variable name because
7735 # there is no other way.
7737 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7738 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7739 if test "$am_t" != yes; then
7740 # Losing compiler, so override with the script.
7741 # FIXME: It is wrong to rewrite CC.
7742 # But if we don't then we get into trouble of one sort or another.
7743 # A longer-term fix would be to have automake use am__CC in this case,
7744 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7745 CC="$am_aux_dir/compile $CC"
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7750 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7751 if ${ac_cv_cflags_warn_all+:} false; then :
7752 $as_echo_n "(cached) " >&6
7754 ac_cv_cflags_warn_all="no, unknown"
7756 ac_cpp='$CPP $CPPFLAGS'
7757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7761 ac_save_CFLAGS="$CFLAGS"
7762 for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
7763 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7765 /* end confdefs.h. */
7775 if ac_fn_c_try_compile "$LINENO"; then :
7776 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7780 CFLAGS="$ac_save_CFLAGS"
7782 ac_cpp='$CPP $CPPFLAGS'
7783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7790 $as_echo "$ac_cv_cflags_warn_all" >&6; }
7791 case ".$ac_cv_cflags_warn_all" in
7796 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7797 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7798 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7801 test $ac_status = 0; }
7802 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7803 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7806 test $ac_status = 0; }
7807 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7814 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7816 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7817 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7818 $as_echo_n "(cached) " >&6
7820 cat >conftest.make <<\_ACEOF
7823 @echo '@@@%%%=$(MAKE)=@@@%%%'
7825 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7826 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7828 eval ac_cv_prog_make_${ac_make}_set=yes;;
7830 eval ac_cv_prog_make_${ac_make}_set=no;;
7834 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7836 $as_echo "yes" >&6; }
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840 $as_echo "no" >&6; }
7841 SET_MAKE="MAKE=${MAKE-make}"
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7845 $as_echo_n "checking whether ln -s works... " >&6; }
7847 if test "$LN_S" = "ln -s"; then
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7849 $as_echo "yes" >&6; }
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7852 $as_echo "no, using $LN_S" >&6; }
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7856 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
7858 # Check whether --with-dmalloc was given.
7859 if test "${with_dmalloc+set}" = set; then :
7860 withval=$with_dmalloc; if test "$withval" = yes; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7862 $as_echo "yes" >&6; }
7864 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7866 LIBS="$LIBS -ldmalloc"
7867 LDFLAGS="$LDFLAGS -g"
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7870 $as_echo "no" >&6; }
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874 $as_echo "no" >&6; }
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7880 $as_echo_n "checking for __attribute__... " >&6; }
7881 if ${ax_cv___attribute__+:} false; then :
7882 $as_echo_n "(cached) " >&6
7884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7885 /* end confdefs.h. */
7887 static void foo(void) __attribute__ ((unused));
7901 if ac_fn_c_try_compile "$LINENO"; then :
7902 ax_cv___attribute__=yes
7904 ax_cv___attribute__=no
7907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7911 $as_echo "$ax_cv___attribute__" >&6; }
7912 if test "$ax_cv___attribute__" = "yes"; then
7914 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7920 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7921 if test -n "$ac_tool_prefix"; then
7922 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7923 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925 $as_echo_n "checking for $ac_word... " >&6; }
7926 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7927 $as_echo_n "(cached) " >&6
7931 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7938 test -z "$as_dir" && as_dir=.
7939 for ac_exec_ext in '' $ac_executable_extensions; do
7940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7941 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7952 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7953 if test -n "$PKG_CONFIG"; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7955 $as_echo "$PKG_CONFIG" >&6; }
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958 $as_echo "no" >&6; }
7963 if test -z "$ac_cv_path_PKG_CONFIG"; then
7964 ac_pt_PKG_CONFIG=$PKG_CONFIG
7965 # Extract the first word of "pkg-config", so it can be a program name with args.
7966 set dummy pkg-config; ac_word=$2
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7968 $as_echo_n "checking for $ac_word... " >&6; }
7969 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7970 $as_echo_n "(cached) " >&6
7972 case $ac_pt_PKG_CONFIG in
7974 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 test -z "$as_dir" && as_dir=.
7982 for ac_exec_ext in '' $ac_executable_extensions; do
7983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7984 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7995 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7996 if test -n "$ac_pt_PKG_CONFIG"; then
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7998 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 $as_echo "no" >&6; }
8004 if test "x$ac_pt_PKG_CONFIG" = x; then
8007 case $cross_compiling:$ac_tool_warned in
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8011 ac_tool_warned=yes ;;
8013 PKG_CONFIG=$ac_pt_PKG_CONFIG
8016 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8020 if test -n "$PKG_CONFIG"; then
8021 _pkg_min_version=0.9.0
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8023 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8024 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8026 $as_echo "yes" >&6; }
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8029 $as_echo "no" >&6; }
8036 # Enable run-time checking.
8038 # Check whether --enable-bounds-checking was given.
8039 if test "${enable_bounds_checking+set}" = set; then :
8040 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8042 enable_bounds_checking='no'
8046 if test "$enable_bounds_checking" = yes; then
8048 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8058 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8059 if ${ax_cv_c_compiler_ms+:} false; then :
8060 $as_echo_n "(cached) " >&6
8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063 /* end confdefs.h. */
8076 if ac_fn_c_try_compile "$LINENO"; then :
8081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8082 ax_cv_c_compiler_ms=$ax_compiler_ms
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8086 $as_echo "$ax_cv_c_compiler_ms" >&6; }
8089 native_win32_build='no'
8091 case "${host_os}" in
8094 GDI32_LIBS='-lgdi32'
8097 native_win32_build='yes'
8098 GDI32_LIBS='-lgdi32'
8101 if test "${GDI32_LIBS}x" != 'x'; then
8103 $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
8107 if test "${GDI32_LIBS}x" != 'x' ; then
8108 WINGDI32_DELEGATE_TRUE=
8109 WINGDI32_DELEGATE_FALSE='#'
8111 WINGDI32_DELEGATE_TRUE='#'
8112 WINGDI32_DELEGATE_FALSE=
8115 if test "${native_win32_build}" = 'yes' ; then
8116 WIN32_NATIVE_BUILD_TRUE=
8117 WIN32_NATIVE_BUILD_FALSE='#'
8119 WIN32_NATIVE_BUILD_TRUE='#'
8120 WIN32_NATIVE_BUILD_FALSE=
8123 if test "${cygwin_build}" = 'yes' ; then
8125 CYGWIN_BUILD_FALSE='#'
8127 CYGWIN_BUILD_TRUE='#'
8131 if test "x${CC}" = 'xcl.exe' ; then
8140 WinPathScript="${srcdirfull}/winpath.sh"
8144 # Compiler flags tweaks
8146 if test "${GCC}" != "yes"; then
8149 # aCC: HP ANSI C++ B3910B A.03.34
8150 CFLAGS="${CFLAGS} -Wp,-H30000"
8151 if test -n "${CXXFLAGS}"; then
8154 CXXFLAGS="${CXXFLAGS} -AA"
8158 # Compaq alphaev68-dec-osf5.1 compiler
8159 if test -n "${CXXFLAGS}"; then
8160 CXXFLAGS='-std strict_ansi -noimplicit_include'
8162 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8167 # Check for lazy-loading.
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
8169 $as_echo_n "checking for linker lazyload option... " >&6; }
8170 if ${im_cv_ld_lazyload+:} false; then :
8171 $as_echo_n "(cached) " >&6
8174 im_cv_ld_lazyload='none'
8176 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8177 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8178 im_cv_ld_lazyload='-Wl,-zlazyload'
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
8185 $as_echo "$im_cv_ld_lazyload" >&6; }
8186 if test "${im_cv_ld_lazyload}" != 'none' ; then
8187 if test -z "${LDFLAGS}" ; then
8188 LDFLAGS="${im_cv_ld_lazyload}"
8190 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8195 *darwin* | *-macos10*)
8196 # Check whether --enable-osx-universal-binary was given.
8197 if test "${enable_osx_universal_binary+set}" = set; then :
8198 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8200 build_osxuniversal=no
8204 if test "${build_osxuniversal}" != no ; then
8205 if test "$enable_dependency_tracking" != no ; then
8206 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
8207 Please re-run configure with these options:
8208 --disable-dependency-tracking --enable-osx-universal-binary
8211 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8212 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8213 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8218 # Enable support for threads
8220 # Check whether --with-threads was given.
8221 if test "${with_threads+set}" = set; then :
8222 withval=$with_threads; with_threads=$withval
8229 if test "$with_threads" != 'no'; then
8234 ac_cpp='$CPP $CPPFLAGS'
8235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8241 # We used to check for pthread.h first, but this fails if pthread.h
8242 # requires special compiler flags (e.g. on True64 or Sequent).
8243 # It gets checked for in the link test anyway.
8245 # First of all, check if the user has set any of the PTHREAD_LIBS,
8246 # etcetera environment variables, and if threads linking works using
8248 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8249 save_CFLAGS="$CFLAGS"
8250 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8252 LIBS="$PTHREAD_LIBS $LIBS"
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8254 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8256 /* end confdefs.h. */
8258 /* Override any GCC internal prototype to avoid an error.
8259 Use char because int might match the return type of a GCC
8260 builtin and then its argument prototype would still apply. */
8264 char pthread_join ();
8268 return pthread_join ();
8273 if ac_fn_c_try_link "$LINENO"; then :
8276 rm -f core conftest.err conftest.$ac_objext \
8277 conftest$ac_exeext conftest.$ac_ext
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8279 $as_echo "$ax_pthread_ok" >&6; }
8280 if test x"$ax_pthread_ok" = xno; then
8285 CFLAGS="$save_CFLAGS"
8288 # We must check for the threads library under a number of different
8289 # names; the ordering is very important because some systems
8290 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8291 # libraries is broken (non-POSIX).
8293 # Create a list of thread flags to try. Items starting with a "-" are
8294 # C compiler flags, and other items are library names, except for "none"
8295 # which indicates that we try without any flags at all, and "pthread-config"
8296 # which is a program returning the flags for the Pth emulation library.
8298 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8300 # The ordering *is* (sometimes) important. Some notes on the
8301 # individual items follow:
8303 # pthreads: AIX (must check this before -lpthread)
8304 # none: in case threads are in libc; should be tried before -Kthread and
8305 # other compiler flags to prevent continual compiler warnings
8306 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8307 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8308 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8309 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8310 # -pthreads: Solaris/gcc
8311 # -mthreads: Mingw32/gcc, Lynx/gcc
8312 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8313 # doesn't hurt to check since this sometimes defines pthreads too;
8314 # also defines -D_REENTRANT)
8315 # ... -mt is also the pthreads flag for HP/aCC
8316 # pthread: Linux, etcetera
8317 # --thread-safe: KAI C++
8318 # pthread-config: use pthread-config program (for GNU Pth library)
8320 case "${host_cpu}-${host_os}" in
8323 # On Solaris (at least, for some versions), libc contains stubbed
8324 # (non-functional) versions of the pthreads routines, so link-based
8325 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8326 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8327 # a function called by this macro, so we could check for that, but
8328 # who knows whether they'll stub that too in a future libc.) So,
8329 # we'll just look for -pthreads and -lpthread first:
8331 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8335 ax_pthread_flags="-pthread $ax_pthread_flags"
8339 if test x"$ax_pthread_ok" = xno; then
8340 for flag in $ax_pthread_flags; do
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8345 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8350 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8351 PTHREAD_CFLAGS="$flag"
8355 # Extract the first word of "pthread-config", so it can be a program name with args.
8356 set dummy pthread-config; ac_word=$2
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358 $as_echo_n "checking for $ac_word... " >&6; }
8359 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8360 $as_echo_n "(cached) " >&6
8362 if test -n "$ax_pthread_config"; then
8363 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8369 test -z "$as_dir" && as_dir=.
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8372 ac_cv_prog_ax_pthread_config="yes"
8373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8380 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8383 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8384 if test -n "$ax_pthread_config"; then
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8386 $as_echo "$ax_pthread_config" >&6; }
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8389 $as_echo "no" >&6; }
8393 if test x"$ax_pthread_config" = xno; then continue; fi
8394 PTHREAD_CFLAGS="`pthread-config --cflags`"
8395 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8400 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8401 PTHREAD_LIBS="-l$flag"
8406 save_CFLAGS="$CFLAGS"
8407 LIBS="$PTHREAD_LIBS $LIBS"
8408 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8410 # Check for various functions. We must include pthread.h,
8411 # since some functions may be macros. (On the Sequent, we
8412 # need a special flag -Kthread to make this header compile.)
8413 # We check for pthread_join because it is in -lpthread on IRIX
8414 # while pthread_create is in libc. We check for pthread_attr_init
8415 # due to DEC craziness with -lpthreads. We check for
8416 # pthread_cleanup_push because it is one of the few pthread
8417 # functions on Solaris that doesn't have a non-functional libc stub.
8418 # We try pthread_create on general principles.
8419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8420 /* end confdefs.h. */
8421 #include <pthread.h>
8422 static void routine(void* a) {a=0;}
8423 static void* start_routine(void* a) {return a;}
8427 pthread_t th; pthread_attr_t attr;
8428 pthread_create(&th,0,start_routine,0);
8429 pthread_join(th, 0);
8430 pthread_attr_init(&attr);
8431 pthread_cleanup_push(routine, 0);
8432 pthread_cleanup_pop(0);
8437 if ac_fn_c_try_link "$LINENO"; then :
8440 rm -f core conftest.err conftest.$ac_objext \
8441 conftest$ac_exeext conftest.$ac_ext
8444 CFLAGS="$save_CFLAGS"
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8447 $as_echo "$ax_pthread_ok" >&6; }
8448 if test "x$ax_pthread_ok" = xyes; then
8457 # Various other checks:
8458 if test "x$ax_pthread_ok" = xyes; then
8460 LIBS="$PTHREAD_LIBS $LIBS"
8461 save_CFLAGS="$CFLAGS"
8462 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8464 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8466 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8468 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8470 /* end confdefs.h. */
8471 #include <pthread.h>
8475 int attr=$attr; return attr;
8480 if ac_fn_c_try_link "$LINENO"; then :
8481 attr_name=$attr; break
8483 rm -f core conftest.err conftest.$ac_objext \
8484 conftest$ac_exeext conftest.$ac_ext
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8487 $as_echo "$attr_name" >&6; }
8488 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8490 cat >>confdefs.h <<_ACEOF
8491 #define PTHREAD_CREATE_JOINABLE $attr_name
8496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8497 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8499 case "${host_cpu}-${host_os}" in
8500 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8501 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8504 $as_echo "${flag}" >&6; }
8505 if test "x$flag" != xno; then
8506 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8510 CFLAGS="$save_CFLAGS"
8512 # More AIX lossage: must compile with xlc_r or cc_r
8513 if test x"$GCC" != xyes; then
8514 for ac_prog in xlc_r cc_r
8516 # Extract the first word of "$ac_prog", so it can be a program name with args.
8517 set dummy $ac_prog; ac_word=$2
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8519 $as_echo_n "checking for $ac_word... " >&6; }
8520 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8521 $as_echo_n "(cached) " >&6
8523 if test -n "$PTHREAD_CC"; then
8524 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8530 test -z "$as_dir" && as_dir=.
8531 for ac_exec_ext in '' $ac_executable_extensions; do
8532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8533 ac_cv_prog_PTHREAD_CC="$ac_prog"
8534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8543 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8544 if test -n "$PTHREAD_CC"; then
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8546 $as_echo "$PTHREAD_CC" >&6; }
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8549 $as_echo "no" >&6; }
8553 test -n "$PTHREAD_CC" && break
8555 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8568 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8569 if test x"$ax_pthread_ok" = xyes; then
8571 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8579 ac_cpp='$CPP $CPPFLAGS'
8580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8585 if test "$ax_pthread_ok" = yes; then
8587 DEF_THREAD="$PTHREAD_CFLAGS"
8588 CFLAGS="$CFLAGS $DEF_THREAD"
8589 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8590 if test "$CC" != "$PTHREAD_CC"; then
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
8592 $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8596 $as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8601 # Enable support for OpenMP
8602 if test "$have_threads" != 'yes'; then
8603 ac_cv_prog_c_openmp=unsupported
8607 # Check whether --enable-openmp was given.
8608 if test "${enable_openmp+set}" = set; then :
8609 enableval=$enable_openmp;
8612 if test "$enable_openmp" != no; then
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
8614 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
8615 if ${ac_cv_prog_c_openmp+:} false; then :
8616 $as_echo_n "(cached) " >&6
8618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8619 /* end confdefs.h. */
8625 int main () { return omp_get_num_threads (); }
8628 if ac_fn_c_try_link "$LINENO"; then :
8629 ac_cv_prog_c_openmp='none needed'
8631 ac_cv_prog_c_openmp='unsupported'
8632 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8633 ac_save_CFLAGS=$CFLAGS
8634 CFLAGS="$CFLAGS $ac_option"
8635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636 /* end confdefs.h. */
8642 int main () { return omp_get_num_threads (); }
8645 if ac_fn_c_try_link "$LINENO"; then :
8646 ac_cv_prog_c_openmp=$ac_option
8648 rm -f core conftest.err conftest.$ac_objext \
8649 conftest$ac_exeext conftest.$ac_ext
8650 CFLAGS=$ac_save_CFLAGS
8651 if test "$ac_cv_prog_c_openmp" != unsupported; then
8656 rm -f core conftest.err conftest.$ac_objext \
8657 conftest$ac_exeext conftest.$ac_ext
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
8660 $as_echo "$ac_cv_prog_c_openmp" >&6; }
8661 case $ac_cv_prog_c_openmp in #(
8662 "none needed" | unsupported)
8665 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
8670 CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8671 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8673 if test "$enable_openmp" != no; then
8674 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8675 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8679 # Enable support for OpenCL
8684 ac_cpp='$CPP $CPPFLAGS'
8685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8691 # We used to check for pthread.h first, but this fails if pthread.h
8692 # requires special compiler flags (e.g. on True64 or Sequent).
8693 # It gets checked for in the link test anyway.
8695 # First of all, check if the user has set any of the PTHREAD_LIBS,
8696 # etcetera environment variables, and if threads linking works using
8698 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8699 save_CFLAGS="$CFLAGS"
8700 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8702 LIBS="$PTHREAD_LIBS $LIBS"
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8704 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8706 /* end confdefs.h. */
8708 /* Override any GCC internal prototype to avoid an error.
8709 Use char because int might match the return type of a GCC
8710 builtin and then its argument prototype would still apply. */
8714 char pthread_join ();
8718 return pthread_join ();
8723 if ac_fn_c_try_link "$LINENO"; then :
8726 rm -f core conftest.err conftest.$ac_objext \
8727 conftest$ac_exeext conftest.$ac_ext
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8729 $as_echo "$ax_pthread_ok" >&6; }
8730 if test x"$ax_pthread_ok" = xno; then
8735 CFLAGS="$save_CFLAGS"
8738 # We must check for the threads library under a number of different
8739 # names; the ordering is very important because some systems
8740 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8741 # libraries is broken (non-POSIX).
8743 # Create a list of thread flags to try. Items starting with a "-" are
8744 # C compiler flags, and other items are library names, except for "none"
8745 # which indicates that we try without any flags at all, and "pthread-config"
8746 # which is a program returning the flags for the Pth emulation library.
8748 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8750 # The ordering *is* (sometimes) important. Some notes on the
8751 # individual items follow:
8753 # pthreads: AIX (must check this before -lpthread)
8754 # none: in case threads are in libc; should be tried before -Kthread and
8755 # other compiler flags to prevent continual compiler warnings
8756 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8757 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8758 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8759 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8760 # -pthreads: Solaris/gcc
8761 # -mthreads: Mingw32/gcc, Lynx/gcc
8762 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8763 # doesn't hurt to check since this sometimes defines pthreads too;
8764 # also defines -D_REENTRANT)
8765 # ... -mt is also the pthreads flag for HP/aCC
8766 # pthread: Linux, etcetera
8767 # --thread-safe: KAI C++
8768 # pthread-config: use pthread-config program (for GNU Pth library)
8770 case "${host_cpu}-${host_os}" in
8773 # On Solaris (at least, for some versions), libc contains stubbed
8774 # (non-functional) versions of the pthreads routines, so link-based
8775 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8776 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8777 # a function called by this macro, so we could check for that, but
8778 # who knows whether they'll stub that too in a future libc.) So,
8779 # we'll just look for -pthreads and -lpthread first:
8781 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8785 ax_pthread_flags="-pthread $ax_pthread_flags"
8789 if test x"$ax_pthread_ok" = xno; then
8790 for flag in $ax_pthread_flags; do
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8795 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8800 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8801 PTHREAD_CFLAGS="$flag"
8805 # Extract the first word of "pthread-config", so it can be a program name with args.
8806 set dummy pthread-config; ac_word=$2
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8808 $as_echo_n "checking for $ac_word... " >&6; }
8809 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8810 $as_echo_n "(cached) " >&6
8812 if test -n "$ax_pthread_config"; then
8813 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8819 test -z "$as_dir" && as_dir=.
8820 for ac_exec_ext in '' $ac_executable_extensions; do
8821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8822 ac_cv_prog_ax_pthread_config="yes"
8823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8830 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8833 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8834 if test -n "$ax_pthread_config"; then
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8836 $as_echo "$ax_pthread_config" >&6; }
8838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8839 $as_echo "no" >&6; }
8843 if test x"$ax_pthread_config" = xno; then continue; fi
8844 PTHREAD_CFLAGS="`pthread-config --cflags`"
8845 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8850 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8851 PTHREAD_LIBS="-l$flag"
8856 save_CFLAGS="$CFLAGS"
8857 LIBS="$PTHREAD_LIBS $LIBS"
8858 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8860 # Check for various functions. We must include pthread.h,
8861 # since some functions may be macros. (On the Sequent, we
8862 # need a special flag -Kthread to make this header compile.)
8863 # We check for pthread_join because it is in -lpthread on IRIX
8864 # while pthread_create is in libc. We check for pthread_attr_init
8865 # due to DEC craziness with -lpthreads. We check for
8866 # pthread_cleanup_push because it is one of the few pthread
8867 # functions on Solaris that doesn't have a non-functional libc stub.
8868 # We try pthread_create on general principles.
8869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8870 /* end confdefs.h. */
8871 #include <pthread.h>
8872 static void routine(void* a) {a=0;}
8873 static void* start_routine(void* a) {return a;}
8877 pthread_t th; pthread_attr_t attr;
8878 pthread_create(&th,0,start_routine,0);
8879 pthread_join(th, 0);
8880 pthread_attr_init(&attr);
8881 pthread_cleanup_push(routine, 0);
8882 pthread_cleanup_pop(0);
8887 if ac_fn_c_try_link "$LINENO"; then :
8890 rm -f core conftest.err conftest.$ac_objext \
8891 conftest$ac_exeext conftest.$ac_ext
8894 CFLAGS="$save_CFLAGS"
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8897 $as_echo "$ax_pthread_ok" >&6; }
8898 if test "x$ax_pthread_ok" = xyes; then
8907 # Various other checks:
8908 if test "x$ax_pthread_ok" = xyes; then
8910 LIBS="$PTHREAD_LIBS $LIBS"
8911 save_CFLAGS="$CFLAGS"
8912 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8914 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8916 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8918 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8920 /* end confdefs.h. */
8921 #include <pthread.h>
8925 int attr=$attr; return attr;
8930 if ac_fn_c_try_link "$LINENO"; then :
8931 attr_name=$attr; break
8933 rm -f core conftest.err conftest.$ac_objext \
8934 conftest$ac_exeext conftest.$ac_ext
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8937 $as_echo "$attr_name" >&6; }
8938 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8940 cat >>confdefs.h <<_ACEOF
8941 #define PTHREAD_CREATE_JOINABLE $attr_name
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8947 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8949 case "${host_cpu}-${host_os}" in
8950 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8951 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8954 $as_echo "${flag}" >&6; }
8955 if test "x$flag" != xno; then
8956 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8960 CFLAGS="$save_CFLAGS"
8962 # More AIX lossage: must compile with xlc_r or cc_r
8963 if test x"$GCC" != xyes; then
8964 for ac_prog in xlc_r cc_r
8966 # Extract the first word of "$ac_prog", so it can be a program name with args.
8967 set dummy $ac_prog; ac_word=$2
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8969 $as_echo_n "checking for $ac_word... " >&6; }
8970 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8971 $as_echo_n "(cached) " >&6
8973 if test -n "$PTHREAD_CC"; then
8974 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8980 test -z "$as_dir" && as_dir=.
8981 for ac_exec_ext in '' $ac_executable_extensions; do
8982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8983 ac_cv_prog_PTHREAD_CC="$ac_prog"
8984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8993 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8994 if test -n "$PTHREAD_CC"; then
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8996 $as_echo "$PTHREAD_CC" >&6; }
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8999 $as_echo "no" >&6; }
9003 test -n "$PTHREAD_CC" && break
9005 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9018 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9019 if test x"$ax_pthread_ok" = xyes; then
9021 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9029 ac_cpp='$CPP $CPPFLAGS'
9030 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9031 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9032 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9036 # Check whether --enable-opencl was given.
9037 if test "${enable_opencl+set}" = set; then :
9038 enableval=$enable_opencl; disable_opencl=$enableval
9040 disable_opencl='yes'
9044 if test "$disable_opencl" = 'yes'; then
9046 ac_cpp='$CPP $CPPFLAGS'
9047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9052 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
9053 if ${ax_cv_c_compiler_ms+:} false; then :
9054 $as_echo_n "(cached) " >&6
9056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057 /* end confdefs.h. */
9070 if ac_fn_c_try_compile "$LINENO"; then :
9075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9076 ax_cv_c_compiler_ms=$ax_compiler_ms
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9080 $as_echo "$ax_cv_c_compiler_ms" >&6; }
9081 if test X$ax_compiler_ms = Xno; then :
9082 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9085 ax_save_CPPFLAGS=$CPPFLAGS
9086 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9087 for ac_header in CL/cl.h OpenCL/cl.h
9089 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9090 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9091 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9092 cat >>confdefs.h <<_ACEOF
9093 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9100 CPPFLAGS=$ax_save_CPPFLAGS
9102 for ac_header in windows.h
9104 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9105 if test "x$ac_cv_header_windows_h" = xyes; then :
9106 cat >>confdefs.h <<_ACEOF
9107 #define HAVE_WINDOWS_H 1
9117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9118 $as_echo_n "checking for OpenCL library... " >&6; }
9119 if ${ax_cv_check_cl_libcl+:} false; then :
9120 $as_echo_n "(cached) " >&6
9122 ax_cv_check_cl_libcl=no
9124 x86_64) ax_check_cl_libdir=lib64 ;;
9125 *) ax_check_cl_libdir=lib ;;
9127 ax_save_CPPFLAGS=$CPPFLAGS
9128 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9131 ax_check_libs="-lOpenCL -lCL -lclparser"
9132 for ax_lib in $ax_check_libs; do
9133 if test X$ax_compiler_ms = Xyes; then :
9134 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9138 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9140 /* end confdefs.h. */
9142 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9143 # include <windows.h>
9145 # ifdef HAVE_CL_CL_H
9147 # elif defined(HAVE_OPENCL_CL_H)
9148 # include <OpenCL/cl.h>
9155 clCreateContextFromType(0,0,0,0,0)
9160 if ac_fn_c_try_link "$LINENO"; then :
9161 ax_cv_check_cl_libcl=$ax_try_lib; break
9163 ax_check_cl_nvidia_flags="-L/usr/$ax_check_cl_libdir/nvidia" LIBS="$ax_try_lib $ax_check_cl_nvidia_flags $CL_LIBS $ax_save_LIBS"
9164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9165 /* end confdefs.h. */
9167 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9168 # include <windows.h>
9170 # ifdef HAVE_CL_CL_H
9172 # elif defined(HAVE_OPENCL_CL_H)
9173 # include <OpenCL/cl.h>
9180 clCreateContextFromType(0,0,0,0,0)
9185 if ac_fn_c_try_link "$LINENO"; then :
9186 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9188 ax_check_cl_dylib_flag='-Wl,-framework,OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
9189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h. */
9192 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9193 # include <windows.h>
9195 # ifdef HAVE_CL_CL_H
9197 # elif defined(HAVE_OPENCL_CL_H)
9198 # include <OpenCL/cl.h>
9205 clCreateContextFromType(0,0,0,0,0)
9210 if ac_fn_c_try_link "$LINENO"; then :
9211 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9213 rm -f core conftest.err conftest.$ac_objext \
9214 conftest$ac_exeext conftest.$ac_ext
9216 rm -f core conftest.err conftest.$ac_objext \
9217 conftest$ac_exeext conftest.$ac_ext
9219 rm -f core conftest.err conftest.$ac_objext \
9220 conftest$ac_exeext conftest.$ac_ext
9223 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
9224 LIBS='-Wl,-framework,OpenCL'
9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h. */
9228 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9229 # include <windows.h>
9231 # ifdef HAVE_CL_CL_H
9233 # elif defined(HAVE_OPENCL_CL_H)
9234 # include <OpenCL/cl.h>
9241 clCreateContextFromType(0,0,0,0,0)
9246 if ac_fn_c_try_link "$LINENO"; then :
9247 ax_cv_check_cl_libcl=$LIBS
9249 rm -f core conftest.err conftest.$ac_objext \
9250 conftest$ac_exeext conftest.$ac_ext
9254 CPPFLAGS=$ax_save_CPPFLAGS
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9257 $as_echo "$ax_cv_check_cl_libcl" >&6; }
9259 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9260 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9262 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9263 $as_echo "#define _OPENCL 1" >>confdefs.h
9267 ac_cpp='$CPP $CPPFLAGS'
9268 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9269 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9270 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9277 CFLAGS="$CL_CFLAGS $CFLAGS"
9278 LIBS="$CL_LIBS $LIBS"
9280 if test "$enable_opencl" != no; then
9281 if test "_OPENCL" = '1'; then
9282 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9288 # Check for large file support
9291 # Check whether --enable-largefile was given.
9292 if test "${enable_largefile+set}" = set; then :
9293 enableval=$enable_largefile;
9296 if test "$enable_largefile" != no; then
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9299 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9300 if ${ac_cv_sys_largefile_CC+:} false; then :
9301 $as_echo_n "(cached) " >&6
9303 ac_cv_sys_largefile_CC=no
9304 if test "$GCC" != yes; then
9307 # IRIX 6.2 and later do not support large files by default,
9308 # so use the C compiler's -n32 option if that helps.
9309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9310 /* end confdefs.h. */
9311 #include <sys/types.h>
9312 /* Check that off_t can represent 2**63 - 1 correctly.
9313 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9314 since some C++ compilers masquerading as C compilers
9315 incorrectly reject 9223372036854775807. */
9316 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9317 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9318 && LARGE_OFF_T % 2147483647 == 1)
9328 if ac_fn_c_try_compile "$LINENO"; then :
9331 rm -f core conftest.err conftest.$ac_objext
9333 if ac_fn_c_try_compile "$LINENO"; then :
9334 ac_cv_sys_largefile_CC=' -n32'; break
9336 rm -f core conftest.err conftest.$ac_objext
9340 rm -f conftest.$ac_ext
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9344 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
9345 if test "$ac_cv_sys_largefile_CC" != no; then
9346 CC=$CC$ac_cv_sys_largefile_CC
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9350 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9351 if ${ac_cv_sys_file_offset_bits+:} false; then :
9352 $as_echo_n "(cached) " >&6
9355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356 /* end confdefs.h. */
9357 #include <sys/types.h>
9358 /* Check that off_t can represent 2**63 - 1 correctly.
9359 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9360 since some C++ compilers masquerading as C compilers
9361 incorrectly reject 9223372036854775807. */
9362 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9363 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9364 && LARGE_OFF_T % 2147483647 == 1)
9374 if ac_fn_c_try_compile "$LINENO"; then :
9375 ac_cv_sys_file_offset_bits=no; break
9377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9379 /* end confdefs.h. */
9380 #define _FILE_OFFSET_BITS 64
9381 #include <sys/types.h>
9382 /* Check that off_t can represent 2**63 - 1 correctly.
9383 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9384 since some C++ compilers masquerading as C compilers
9385 incorrectly reject 9223372036854775807. */
9386 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9387 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9388 && LARGE_OFF_T % 2147483647 == 1)
9398 if ac_fn_c_try_compile "$LINENO"; then :
9399 ac_cv_sys_file_offset_bits=64; break
9401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9402 ac_cv_sys_file_offset_bits=unknown
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9407 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9408 case $ac_cv_sys_file_offset_bits in #(
9411 cat >>confdefs.h <<_ACEOF
9412 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9417 if test $ac_cv_sys_file_offset_bits = unknown; then
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9419 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9420 if ${ac_cv_sys_large_files+:} false; then :
9421 $as_echo_n "(cached) " >&6
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */
9426 #include <sys/types.h>
9427 /* Check that off_t can represent 2**63 - 1 correctly.
9428 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9429 since some C++ compilers masquerading as C compilers
9430 incorrectly reject 9223372036854775807. */
9431 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9432 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9433 && LARGE_OFF_T % 2147483647 == 1)
9443 if ac_fn_c_try_compile "$LINENO"; then :
9444 ac_cv_sys_large_files=no; break
9446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9448 /* end confdefs.h. */
9449 #define _LARGE_FILES 1
9450 #include <sys/types.h>
9451 /* Check that off_t can represent 2**63 - 1 correctly.
9452 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9453 since some C++ compilers masquerading as C compilers
9454 incorrectly reject 9223372036854775807. */
9455 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9456 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9457 && LARGE_OFF_T % 2147483647 == 1)
9467 if ac_fn_c_try_compile "$LINENO"; then :
9468 ac_cv_sys_large_files=1; break
9470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9471 ac_cv_sys_large_files=unknown
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9476 $as_echo "$ac_cv_sys_large_files" >&6; }
9477 case $ac_cv_sys_large_files in #(
9480 cat >>confdefs.h <<_ACEOF
9481 #define _LARGE_FILES $ac_cv_sys_large_files
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9490 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
9491 if ${ac_cv_sys_largefile_source+:} false; then :
9492 $as_echo_n "(cached) " >&6
9495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9496 /* end confdefs.h. */
9497 #include <sys/types.h> /* for off_t */
9502 int (*fp) (FILE *, off_t, int) = fseeko;
9503 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9508 if ac_fn_c_try_link "$LINENO"; then :
9509 ac_cv_sys_largefile_source=no; break
9511 rm -f core conftest.err conftest.$ac_objext \
9512 conftest$ac_exeext conftest.$ac_ext
9513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9514 /* end confdefs.h. */
9515 #define _LARGEFILE_SOURCE 1
9516 #include <sys/types.h> /* for off_t */
9521 int (*fp) (FILE *, off_t, int) = fseeko;
9522 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9527 if ac_fn_c_try_link "$LINENO"; then :
9528 ac_cv_sys_largefile_source=1; break
9530 rm -f core conftest.err conftest.$ac_objext \
9531 conftest$ac_exeext conftest.$ac_ext
9532 ac_cv_sys_largefile_source=unknown
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
9537 $as_echo "$ac_cv_sys_largefile_source" >&6; }
9538 case $ac_cv_sys_largefile_source in #(
9541 cat >>confdefs.h <<_ACEOF
9542 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9548 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9549 # in glibc 2.1.3, but that breaks too many other things.
9550 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9551 if test $ac_cv_sys_largefile_source != unknown; then
9553 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
9558 if test "$enable_largefile" != no; then
9559 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9560 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
9563 $as_echo_n "checking for native large file support... " >&6; }
9564 if test "$cross_compiling" = yes; then :
9565 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9567 as_fn_error $? "cannot run test program while cross compiling
9568 See \`config.log' for more details" "$LINENO" 5; }
9570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h. */
9574 exit(!(sizeof(off_t) == 8));
9584 if ac_fn_c_try_run "$LINENO"; then :
9585 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9588 $as_echo "yes" >&6; }
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9591 $as_echo "no" >&6; }
9593 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9594 conftest.$ac_objext conftest.beam conftest.$ac_ext
9598 if test "$ac_cv_sys_large_files" != 'no'; then
9599 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9601 if test "$ac_cv_sys_largefile_source" != 'no'; then
9602 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9608 # Configure libtool & libltdl
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9618 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9624 macro_revision='1.3293'
9638 ltmain="$ac_aux_dir/ltmain.sh"
9640 # Backslashify metacharacters that are still active within
9641 # double-quoted strings.
9642 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9644 # Same as above, but do not quote variable references.
9645 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9647 # Sed substitution to delay expansion of an escaped shell variable in a
9648 # double_quote_subst'ed string.
9649 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9651 # Sed substitution to delay expansion of an escaped single quote.
9652 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9654 # Sed substitution to avoid accidental globbing in evaled expressions
9655 no_glob_subst='s/\*/\\\*/g'
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9658 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9659 if ${lt_cv_path_NM+:} false; then :
9660 $as_echo_n "(cached) " >&6
9662 if test -n "$NM"; then
9663 # Let the user override the test.
9666 lt_nm_to_check="${ac_tool_prefix}nm"
9667 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9668 lt_nm_to_check="$lt_nm_to_check nm"
9670 for lt_tmp_nm in $lt_nm_to_check; do
9671 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9672 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9674 test -z "$ac_dir" && ac_dir=.
9675 tmp_nm="$ac_dir/$lt_tmp_nm"
9676 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9677 # Check to see if the nm accepts a BSD-compat flag.
9678 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9679 # nm: unknown option "B" ignored
9680 # Tru64's nm complains that /dev/null is an invalid object file
9681 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9682 */dev/null* | *'Invalid file or object type'*)
9683 lt_cv_path_NM="$tmp_nm -B"
9687 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9689 lt_cv_path_NM="$tmp_nm -p"
9693 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9694 continue # so that we can try to find one that supports BSD flags
9703 : ${lt_cv_path_NM=no}
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9707 $as_echo "$lt_cv_path_NM" >&6; }
9708 if test "$lt_cv_path_NM" != "no"; then
9711 # Didn't find any BSD compatible name lister, look for dumpbin.
9712 if test -n "$DUMPBIN"; then :
9713 # Let the user override the test.
9715 if test -n "$ac_tool_prefix"; then
9716 for ac_prog in dumpbin "link -dump"
9718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9719 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9721 $as_echo_n "checking for $ac_word... " >&6; }
9722 if ${ac_cv_prog_DUMPBIN+:} false; then :
9723 $as_echo_n "(cached) " >&6
9725 if test -n "$DUMPBIN"; then
9726 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732 test -z "$as_dir" && as_dir=.
9733 for ac_exec_ext in '' $ac_executable_extensions; do
9734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9735 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9745 DUMPBIN=$ac_cv_prog_DUMPBIN
9746 if test -n "$DUMPBIN"; then
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9748 $as_echo "$DUMPBIN" >&6; }
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9751 $as_echo "no" >&6; }
9755 test -n "$DUMPBIN" && break
9758 if test -z "$DUMPBIN"; then
9759 ac_ct_DUMPBIN=$DUMPBIN
9760 for ac_prog in dumpbin "link -dump"
9762 # Extract the first word of "$ac_prog", so it can be a program name with args.
9763 set dummy $ac_prog; ac_word=$2
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9765 $as_echo_n "checking for $ac_word... " >&6; }
9766 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
9767 $as_echo_n "(cached) " >&6
9769 if test -n "$ac_ct_DUMPBIN"; then
9770 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9776 test -z "$as_dir" && as_dir=.
9777 for ac_exec_ext in '' $ac_executable_extensions; do
9778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9779 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9789 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9790 if test -n "$ac_ct_DUMPBIN"; then
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9792 $as_echo "$ac_ct_DUMPBIN" >&6; }
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9795 $as_echo "no" >&6; }
9799 test -n "$ac_ct_DUMPBIN" && break
9802 if test "x$ac_ct_DUMPBIN" = x; then
9805 case $cross_compiling:$ac_tool_warned in
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9809 ac_tool_warned=yes ;;
9811 DUMPBIN=$ac_ct_DUMPBIN
9815 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9817 DUMPBIN="$DUMPBIN -symbols"
9825 if test "$DUMPBIN" != ":"; then
9829 test -z "$NM" && NM=nm
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9837 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9838 if ${lt_cv_nm_interface+:} false; then :
9839 $as_echo_n "(cached) " >&6
9841 lt_cv_nm_interface="BSD nm"
9842 echo "int some_variable = 0;" > conftest.$ac_ext
9843 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9844 (eval "$ac_compile" 2>conftest.err)
9845 cat conftest.err >&5
9846 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9847 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9848 cat conftest.err >&5
9849 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9850 cat conftest.out >&5
9851 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9852 lt_cv_nm_interface="MS dumpbin"
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9857 $as_echo "$lt_cv_nm_interface" >&6; }
9859 # find the maximum length of command line arguments
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9861 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9862 if ${lt_cv_sys_max_cmd_len+:} false; then :
9863 $as_echo_n "(cached) " >&6
9870 # On DJGPP, this test can blow up pretty badly due to problems in libc
9871 # (any single argument exceeding 2000 bytes causes a buffer overrun
9872 # during glob expansion). Even if it were fixed, the result of this
9873 # check would be larger than it should be.
9874 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9878 # Under GNU Hurd, this test is not required because there is
9879 # no limit to the length of command line arguments.
9880 # Libtool will interpret -1 as no limit whatsoever
9881 lt_cv_sys_max_cmd_len=-1;
9884 cygwin* | mingw* | cegcc*)
9885 # On Win9x/ME, this test blows up -- it succeeds, but takes
9886 # about 5 minutes as the teststring grows exponentially.
9887 # Worse, since 9x/ME are not pre-emptively multitasking,
9888 # you end up with a "frozen" computer, even though with patience
9889 # the test eventually succeeds (with a max line length of 256k).
9890 # Instead, let's just punt: use the minimum linelength reported by
9891 # all of the supported platforms: 8192 (on NT/2K/XP).
9892 lt_cv_sys_max_cmd_len=8192;
9896 # On MiNT this can take a long time and run out of memory.
9897 lt_cv_sys_max_cmd_len=8192;
9901 # On AmigaOS with pdksh, this test takes hours, literally.
9902 # So we just punt and use a minimum line length of 8192.
9903 lt_cv_sys_max_cmd_len=8192;
9906 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9907 # This has been around since 386BSD, at least. Likely further.
9908 if test -x /sbin/sysctl; then
9909 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9910 elif test -x /usr/sbin/sysctl; then
9911 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9913 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9915 # And add a safety zone
9916 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9917 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9921 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9922 lt_cv_sys_max_cmd_len=196608
9926 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9927 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9928 # nice to cause kernel panics so lets avoid the loop below.
9929 # First set a reasonable default.
9930 lt_cv_sys_max_cmd_len=16384
9932 if test -x /sbin/sysconfig; then
9933 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9934 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9939 lt_cv_sys_max_cmd_len=102400
9941 sysv5* | sco5v6* | sysv4.2uw2*)
9942 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9943 if test -n "$kargmax"; then
9944 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9946 lt_cv_sys_max_cmd_len=32768
9950 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9951 if test -n "$lt_cv_sys_max_cmd_len"; then
9952 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9953 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9955 # Make teststring a little bigger before we do anything with it.
9956 # a 1K string should be a reasonable start.
9957 for i in 1 2 3 4 5 6 7 8 ; do
9958 teststring=$teststring$teststring
9960 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9961 # If test is not a shell built-in, we'll probably end up computing a
9962 # maximum length that is only half of the actual maximum length, but
9964 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9965 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9966 test $i != 17 # 1/2 MB should be enough
9969 teststring=$teststring$teststring
9971 # Only check the string length outside the loop.
9972 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9974 # Add a significant safety factor because C++ compilers can tack on
9975 # massive amounts of additional arguments before passing them to the
9976 # linker. It appears as though 1/2 is a usable value.
9977 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9984 if test -n $lt_cv_sys_max_cmd_len ; then
9985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9986 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9989 $as_echo "none" >&6; }
9991 max_cmd_len=$lt_cv_sys_max_cmd_len
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10003 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10004 # Try some XSI features
10006 ( _lt_dummy="a/b/c"
10007 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10009 && eval 'test $(( 1 + 1 )) -eq 2 \
10010 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10013 $as_echo "$xsi_shell" >&6; }
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10017 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10019 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10021 && lt_shell_append=yes
10022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10023 $as_echo "$lt_shell_append" >&6; }
10026 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10036 # test EBCDIC or ASCII
10037 case `echo X|tr X '\101'` in
10038 A) # ASCII based system
10039 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10040 lt_SP2NL='tr \040 \012'
10041 lt_NL2SP='tr \015\012 \040\040'
10043 *) # EBCDIC based system
10044 lt_SP2NL='tr \100 \n'
10045 lt_NL2SP='tr \r\n \100\100'
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10058 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10059 if ${lt_cv_to_host_file_cmd+:} false; then :
10060 $as_echo_n "(cached) " >&6
10065 *-*-mingw* ) # actually msys
10066 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10069 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10071 * ) # otherwise, assume *nix
10072 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10078 *-*-mingw* ) # actually msys
10079 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10082 lt_cv_to_host_file_cmd=func_convert_file_noop
10084 * ) # otherwise, assume *nix
10085 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10089 * ) # unhandled hosts (and "normal" native builds)
10090 lt_cv_to_host_file_cmd=func_convert_file_noop
10096 to_host_file_cmd=$lt_cv_to_host_file_cmd
10097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10098 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10105 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10106 if ${lt_cv_to_tool_file_cmd+:} false; then :
10107 $as_echo_n "(cached) " >&6
10109 #assume ordinary cross tools, or native build.
10110 lt_cv_to_tool_file_cmd=func_convert_file_noop
10114 *-*-mingw* ) # actually msys
10115 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10123 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10125 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10132 $as_echo_n "checking for $LD option to reload object files... " >&6; }
10133 if ${lt_cv_ld_reload_flag+:} false; then :
10134 $as_echo_n "(cached) " >&6
10136 lt_cv_ld_reload_flag='-r'
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10139 $as_echo "$lt_cv_ld_reload_flag" >&6; }
10140 reload_flag=$lt_cv_ld_reload_flag
10141 case $reload_flag in
10143 *) reload_flag=" $reload_flag" ;;
10145 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10147 cygwin* | mingw* | pw32* | cegcc*)
10148 if test "$GCC" != yes; then
10153 if test "$GCC" = yes; then
10154 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10156 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10169 if test -n "$ac_tool_prefix"; then
10170 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10171 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10173 $as_echo_n "checking for $ac_word... " >&6; }
10174 if ${ac_cv_prog_OBJDUMP+:} false; then :
10175 $as_echo_n "(cached) " >&6
10177 if test -n "$OBJDUMP"; then
10178 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10181 for as_dir in $PATH
10184 test -z "$as_dir" && as_dir=.
10185 for ac_exec_ext in '' $ac_executable_extensions; do
10186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10187 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10197 OBJDUMP=$ac_cv_prog_OBJDUMP
10198 if test -n "$OBJDUMP"; then
10199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10200 $as_echo "$OBJDUMP" >&6; }
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10203 $as_echo "no" >&6; }
10208 if test -z "$ac_cv_prog_OBJDUMP"; then
10209 ac_ct_OBJDUMP=$OBJDUMP
10210 # Extract the first word of "objdump", so it can be a program name with args.
10211 set dummy objdump; ac_word=$2
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10213 $as_echo_n "checking for $ac_word... " >&6; }
10214 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10215 $as_echo_n "(cached) " >&6
10217 if test -n "$ac_ct_OBJDUMP"; then
10218 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10221 for as_dir in $PATH
10224 test -z "$as_dir" && as_dir=.
10225 for ac_exec_ext in '' $ac_executable_extensions; do
10226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10227 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10237 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10238 if test -n "$ac_ct_OBJDUMP"; then
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10240 $as_echo "$ac_ct_OBJDUMP" >&6; }
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10243 $as_echo "no" >&6; }
10246 if test "x$ac_ct_OBJDUMP" = x; then
10249 case $cross_compiling:$ac_tool_warned in
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10253 ac_tool_warned=yes ;;
10255 OBJDUMP=$ac_ct_OBJDUMP
10258 OBJDUMP="$ac_cv_prog_OBJDUMP"
10261 test -z "$OBJDUMP" && OBJDUMP=objdump
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10269 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10270 if ${lt_cv_deplibs_check_method+:} false; then :
10271 $as_echo_n "(cached) " >&6
10273 lt_cv_file_magic_cmd='$MAGIC_CMD'
10274 lt_cv_file_magic_test_file=
10275 lt_cv_deplibs_check_method='unknown'
10276 # Need to set the preceding variable on all platforms that support
10277 # interlibrary dependencies.
10278 # 'none' -- dependencies not supported.
10279 # `unknown' -- same as none, but documents that we really don't know.
10280 # 'pass_all' -- all dependencies passed with no checks.
10281 # 'test_compile' -- check by making test program.
10282 # 'file_magic [[regex]]' -- check by looking for files in library path
10283 # which responds to the $file_magic_cmd with a given extended regex.
10284 # If you have `file' or equivalent on your system and you're not sure
10285 # whether `pass_all' will *always* work, you probably want this one.
10289 lt_cv_deplibs_check_method=pass_all
10293 lt_cv_deplibs_check_method=pass_all
10297 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10298 lt_cv_file_magic_cmd='/usr/bin/file -L'
10299 lt_cv_file_magic_test_file=/shlib/libc.so
10303 # func_win32_libid is a shell function defined in ltmain.sh
10304 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10305 lt_cv_file_magic_cmd='func_win32_libid'
10309 # Base MSYS/MinGW do not provide the 'file' command needed by
10310 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10311 # unless we find 'file', for example because we are cross-compiling.
10312 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10313 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
10314 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10315 lt_cv_file_magic_cmd='func_win32_libid'
10317 # Keep this pattern in sync with the one in func_win32_libid.
10318 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10319 lt_cv_file_magic_cmd='$OBJDUMP -f'
10324 # use the weaker test based on 'objdump'. See mingw*.
10325 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10326 lt_cv_file_magic_cmd='$OBJDUMP -f'
10329 darwin* | rhapsody*)
10330 lt_cv_deplibs_check_method=pass_all
10333 freebsd* | dragonfly*)
10334 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10337 # Not sure whether the presence of OpenBSD here was a mistake.
10338 # Let's accept both of them until this is cleared up.
10339 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10340 lt_cv_file_magic_cmd=/usr/bin/file
10341 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10345 lt_cv_deplibs_check_method=pass_all
10350 lt_cv_deplibs_check_method=pass_all
10354 lt_cv_deplibs_check_method=pass_all
10357 hpux10.20* | hpux11*)
10358 lt_cv_file_magic_cmd=/usr/bin/file
10361 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10362 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10365 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]'
10366 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10369 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10370 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10376 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10377 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10380 irix5* | irix6* | nonstopux*)
10382 *-32|*"-32 ") libmagic=32-bit;;
10383 *-n32|*"-n32 ") libmagic=N32;;
10384 *-64|*"-64 ") libmagic=64-bit;;
10385 *) libmagic=never-match;;
10387 lt_cv_deplibs_check_method=pass_all
10390 # This must be Linux ELF.
10391 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10392 lt_cv_deplibs_check_method=pass_all
10396 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10397 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10399 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10404 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10405 lt_cv_file_magic_cmd=/usr/bin/file
10406 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10410 lt_cv_deplibs_check_method=pass_all
10414 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10415 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10417 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10421 osf3* | osf4* | osf5*)
10422 lt_cv_deplibs_check_method=pass_all
10426 lt_cv_deplibs_check_method=pass_all
10430 lt_cv_deplibs_check_method=pass_all
10433 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10434 lt_cv_deplibs_check_method=pass_all
10438 case $host_vendor in
10440 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]'
10441 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10444 lt_cv_deplibs_check_method=pass_all
10447 lt_cv_file_magic_cmd='/bin/file'
10448 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10451 lt_cv_file_magic_cmd='/bin/file'
10452 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10453 lt_cv_file_magic_test_file=/lib/libc.so
10456 lt_cv_deplibs_check_method=pass_all
10459 lt_cv_deplibs_check_method=pass_all
10465 lt_cv_deplibs_check_method=pass_all
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10471 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10475 if test "$build" = "$host"; then
10478 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10479 want_nocaseglob=yes
10481 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10487 file_magic_cmd=$lt_cv_file_magic_cmd
10488 deplibs_check_method=$lt_cv_deplibs_check_method
10489 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10512 if test -n "$ac_tool_prefix"; then
10513 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10514 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10516 $as_echo_n "checking for $ac_word... " >&6; }
10517 if ${ac_cv_prog_DLLTOOL+:} false; then :
10518 $as_echo_n "(cached) " >&6
10520 if test -n "$DLLTOOL"; then
10521 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10524 for as_dir in $PATH
10527 test -z "$as_dir" && as_dir=.
10528 for ac_exec_ext in '' $ac_executable_extensions; do
10529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10530 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10540 DLLTOOL=$ac_cv_prog_DLLTOOL
10541 if test -n "$DLLTOOL"; then
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10543 $as_echo "$DLLTOOL" >&6; }
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10546 $as_echo "no" >&6; }
10551 if test -z "$ac_cv_prog_DLLTOOL"; then
10552 ac_ct_DLLTOOL=$DLLTOOL
10553 # Extract the first word of "dlltool", so it can be a program name with args.
10554 set dummy dlltool; ac_word=$2
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10556 $as_echo_n "checking for $ac_word... " >&6; }
10557 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10558 $as_echo_n "(cached) " >&6
10560 if test -n "$ac_ct_DLLTOOL"; then
10561 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10564 for as_dir in $PATH
10567 test -z "$as_dir" && as_dir=.
10568 for ac_exec_ext in '' $ac_executable_extensions; do
10569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10570 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10580 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10581 if test -n "$ac_ct_DLLTOOL"; then
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10583 $as_echo "$ac_ct_DLLTOOL" >&6; }
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10586 $as_echo "no" >&6; }
10589 if test "x$ac_ct_DLLTOOL" = x; then
10592 case $cross_compiling:$ac_tool_warned in
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10595 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10596 ac_tool_warned=yes ;;
10598 DLLTOOL=$ac_ct_DLLTOOL
10601 DLLTOOL="$ac_cv_prog_DLLTOOL"
10604 test -z "$DLLTOOL" && DLLTOOL=dlltool
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10613 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10614 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10615 $as_echo_n "(cached) " >&6
10617 lt_cv_sharedlib_from_linklib_cmd='unknown'
10620 cygwin* | mingw* | pw32* | cegcc*)
10621 # two different shell functions defined in ltmain.sh
10622 # decide which to use based on capabilities of $DLLTOOL
10623 case `$DLLTOOL --help 2>&1` in
10624 *--identify-strict*)
10625 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10628 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10633 # fallback: assume linklib IS sharedlib
10634 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10640 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10641 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10642 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10650 if test -n "$ac_tool_prefix"; then
10653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10654 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10656 $as_echo_n "checking for $ac_word... " >&6; }
10657 if ${ac_cv_prog_AR+:} false; then :
10658 $as_echo_n "(cached) " >&6
10660 if test -n "$AR"; then
10661 ac_cv_prog_AR="$AR" # Let the user override the test.
10663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10664 for as_dir in $PATH
10667 test -z "$as_dir" && as_dir=.
10668 for ac_exec_ext in '' $ac_executable_extensions; do
10669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10670 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10681 if test -n "$AR"; then
10682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10683 $as_echo "$AR" >&6; }
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10686 $as_echo "no" >&6; }
10690 test -n "$AR" && break
10693 if test -z "$AR"; then
10697 # Extract the first word of "$ac_prog", so it can be a program name with args.
10698 set dummy $ac_prog; ac_word=$2
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10700 $as_echo_n "checking for $ac_word... " >&6; }
10701 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10702 $as_echo_n "(cached) " >&6
10704 if test -n "$ac_ct_AR"; then
10705 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10708 for as_dir in $PATH
10711 test -z "$as_dir" && as_dir=.
10712 for ac_exec_ext in '' $ac_executable_extensions; do
10713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10714 ac_cv_prog_ac_ct_AR="$ac_prog"
10715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10724 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10725 if test -n "$ac_ct_AR"; then
10726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10727 $as_echo "$ac_ct_AR" >&6; }
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10730 $as_echo "no" >&6; }
10734 test -n "$ac_ct_AR" && break
10737 if test "x$ac_ct_AR" = x; then
10740 case $cross_compiling:$ac_tool_warned in
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10743 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10744 ac_tool_warned=yes ;;
10763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10764 $as_echo_n "checking for archiver @FILE support... " >&6; }
10765 if ${lt_cv_ar_at_file+:} false; then :
10766 $as_echo_n "(cached) " >&6
10768 lt_cv_ar_at_file=no
10769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10770 /* end confdefs.h. */
10780 if ac_fn_c_try_compile "$LINENO"; then :
10781 echo conftest.$ac_objext > conftest.lst
10782 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10784 (eval $lt_ar_try) 2>&5
10786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10787 test $ac_status = 0; }
10788 if test "$ac_status" -eq 0; then
10789 # Ensure the archiver fails upon bogus file names.
10790 rm -f conftest.$ac_objext libconftest.a
10791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10792 (eval $lt_ar_try) 2>&5
10794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10795 test $ac_status = 0; }
10796 if test "$ac_status" -ne 0; then
10800 rm -f conftest.* libconftest.a
10803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10807 $as_echo "$lt_cv_ar_at_file" >&6; }
10809 if test "x$lt_cv_ar_at_file" = xno; then
10810 archiver_list_spec=
10812 archiver_list_spec=$lt_cv_ar_at_file
10821 if test -n "$ac_tool_prefix"; then
10822 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10823 set dummy ${ac_tool_prefix}strip; ac_word=$2
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10825 $as_echo_n "checking for $ac_word... " >&6; }
10826 if ${ac_cv_prog_STRIP+:} false; then :
10827 $as_echo_n "(cached) " >&6
10829 if test -n "$STRIP"; then
10830 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10833 for as_dir in $PATH
10836 test -z "$as_dir" && as_dir=.
10837 for ac_exec_ext in '' $ac_executable_extensions; do
10838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10839 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10849 STRIP=$ac_cv_prog_STRIP
10850 if test -n "$STRIP"; then
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10852 $as_echo "$STRIP" >&6; }
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10855 $as_echo "no" >&6; }
10860 if test -z "$ac_cv_prog_STRIP"; then
10862 # Extract the first word of "strip", so it can be a program name with args.
10863 set dummy strip; ac_word=$2
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10865 $as_echo_n "checking for $ac_word... " >&6; }
10866 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10867 $as_echo_n "(cached) " >&6
10869 if test -n "$ac_ct_STRIP"; then
10870 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10873 for as_dir in $PATH
10876 test -z "$as_dir" && as_dir=.
10877 for ac_exec_ext in '' $ac_executable_extensions; do
10878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10879 ac_cv_prog_ac_ct_STRIP="strip"
10880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10889 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10890 if test -n "$ac_ct_STRIP"; then
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10892 $as_echo "$ac_ct_STRIP" >&6; }
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10895 $as_echo "no" >&6; }
10898 if test "x$ac_ct_STRIP" = x; then
10901 case $cross_compiling:$ac_tool_warned in
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10905 ac_tool_warned=yes ;;
10910 STRIP="$ac_cv_prog_STRIP"
10913 test -z "$STRIP" && STRIP=:
10920 if test -n "$ac_tool_prefix"; then
10921 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10922 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10924 $as_echo_n "checking for $ac_word... " >&6; }
10925 if ${ac_cv_prog_RANLIB+:} false; then :
10926 $as_echo_n "(cached) " >&6
10928 if test -n "$RANLIB"; then
10929 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10932 for as_dir in $PATH
10935 test -z "$as_dir" && as_dir=.
10936 for ac_exec_ext in '' $ac_executable_extensions; do
10937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10938 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10948 RANLIB=$ac_cv_prog_RANLIB
10949 if test -n "$RANLIB"; then
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10951 $as_echo "$RANLIB" >&6; }
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10954 $as_echo "no" >&6; }
10959 if test -z "$ac_cv_prog_RANLIB"; then
10960 ac_ct_RANLIB=$RANLIB
10961 # Extract the first word of "ranlib", so it can be a program name with args.
10962 set dummy ranlib; ac_word=$2
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10964 $as_echo_n "checking for $ac_word... " >&6; }
10965 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10966 $as_echo_n "(cached) " >&6
10968 if test -n "$ac_ct_RANLIB"; then
10969 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10972 for as_dir in $PATH
10975 test -z "$as_dir" && as_dir=.
10976 for ac_exec_ext in '' $ac_executable_extensions; do
10977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10978 ac_cv_prog_ac_ct_RANLIB="ranlib"
10979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10988 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10989 if test -n "$ac_ct_RANLIB"; then
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10991 $as_echo "$ac_ct_RANLIB" >&6; }
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10994 $as_echo "no" >&6; }
10997 if test "x$ac_ct_RANLIB" = x; then
11000 case $cross_compiling:$ac_tool_warned in
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11004 ac_tool_warned=yes ;;
11006 RANLIB=$ac_ct_RANLIB
11009 RANLIB="$ac_cv_prog_RANLIB"
11012 test -z "$RANLIB" && RANLIB=:
11019 # Determine commands to create old-style static archives.
11020 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11021 old_postinstall_cmds='chmod 644 $oldlib'
11022 old_postuninstall_cmds=
11024 if test -n "$RANLIB"; then
11027 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11030 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11033 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11038 lock_old_archive_extraction=yes ;;
11040 lock_old_archive_extraction=no ;;
11081 # If no C compiler was specified, use CC.
11084 # If no C compiler flags were specified, use CFLAGS.
11085 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11087 # Allow CC to be a program name with arguments.
11091 # Check for command to grab the raw symbol name followed by C symbol from nm.
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11093 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
11094 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
11095 $as_echo_n "(cached) " >&6
11098 # These are sane defaults that work on at least a few old systems.
11099 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11101 # Character class describing NM global symbol codes.
11102 symcode='[BCDEGRST]'
11104 # Regexp to match symbols that can be accessed directly from C.
11105 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11107 # Define system-specific variables.
11112 cygwin* | mingw* | pw32* | cegcc*)
11113 symcode='[ABCDGISTW]'
11116 if test "$host_cpu" = ia64; then
11117 symcode='[ABCDEGRST]'
11120 irix* | nonstopux*)
11121 symcode='[BCDEGRST]'
11124 symcode='[BCDEGQRST]'
11135 sysv5* | sco5v6* | unixware* | OpenUNIX*)
11143 # If we're using GNU nm, then use its standard symbol codes.
11144 case `$NM -V 2>&1` in
11145 *GNU* | *'with BFD'*)
11146 symcode='[ABCDGIRSTW]' ;;
11149 # Transform an extracted symbol line into a proper C declaration.
11150 # Some systems (esp. on ia64) link data and code symbols differently,
11151 # so use this general approach.
11152 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11154 # Transform an extracted symbol line into symbol name and symbol address
11155 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11156 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
11158 # Handle CRLF in mingw tool chain
11162 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11166 # Try without a prefix underscore, then with it.
11167 for ac_symprfx in "" "_"; do
11169 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11170 symxfrm="\\1 $ac_symprfx\\2 \\2"
11172 # Write the raw and C identifiers.
11173 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11174 # Fake it for dumpbin and say T for any non-static function
11175 # and D for any global variable.
11176 # Also find C++ and __fastcall symbols from MSVC++,
11177 # which start with @ or ?.
11178 lt_cv_sys_global_symbol_pipe="$AWK '"\
11179 " {last_section=section; section=\$ 3};"\
11180 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11181 " \$ 0!~/External *\|/{next};"\
11182 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11183 " {if(hide[section]) next};"\
11184 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11185 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11186 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
11187 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11188 " ' prfx=^$ac_symprfx"
11190 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11192 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
11194 # Check to see that the pipe works correctly.
11198 cat > conftest.$ac_ext <<_LT_EOF
11203 void nm_test_func(void);
11204 void nm_test_func(void){}
11208 int main(){nm_test_var='a';nm_test_func();return(0);}
11211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11212 (eval $ac_compile) 2>&5
11214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11215 test $ac_status = 0; }; then
11216 # Now try to grab the symbols.
11218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11219 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
11221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11222 test $ac_status = 0; } && test -s "$nlist"; then
11223 # Try sorting and uniquifying the output.
11224 if sort "$nlist" | uniq > "$nlist"T; then
11225 mv -f "$nlist"T "$nlist"
11230 # Make sure that we snagged all the symbols we need.
11231 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11232 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11233 cat <<_LT_EOF > conftest.$ac_ext
11234 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11235 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11236 /* DATA imports from DLLs on WIN32 con't be const, because runtime
11237 relocations are performed -- see ld's documentation on pseudo-relocs. */
11238 # define LT_DLSYM_CONST
11239 #elif defined(__osf__)
11240 /* This system does not cope well with relocations in const data. */
11241 # define LT_DLSYM_CONST
11243 # define LT_DLSYM_CONST const
11251 # Now generate the symbol file.
11252 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11254 cat <<_LT_EOF >> conftest.$ac_ext
11256 /* The mapping between symbol names and symbols. */
11257 LT_DLSYM_CONST struct {
11261 lt__PROGRAM__LTX_preloaded_symbols[] =
11263 { "@PROGRAM@", (void *) 0 },
11265 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11266 cat <<\_LT_EOF >> conftest.$ac_ext
11270 /* This works around a problem in FreeBSD linker */
11271 #ifdef FREEBSD_WORKAROUND
11272 static const void *lt_preloaded_setup() {
11273 return lt__PROGRAM__LTX_preloaded_symbols;
11281 # Now try linking the two files.
11282 mv conftest.$ac_objext conftstm.$ac_objext
11283 lt_globsym_save_LIBS=$LIBS
11284 lt_globsym_save_CFLAGS=$CFLAGS
11285 LIBS="conftstm.$ac_objext"
11286 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11288 (eval $ac_link) 2>&5
11290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11291 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11294 LIBS=$lt_globsym_save_LIBS
11295 CFLAGS=$lt_globsym_save_CFLAGS
11297 echo "cannot find nm_test_func in $nlist" >&5
11300 echo "cannot find nm_test_var in $nlist" >&5
11303 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11306 echo "$progname: failed program was:" >&5
11307 cat conftest.$ac_ext >&5
11309 rm -rf conftest* conftst*
11311 # Do not use the global_symbol_pipe unless it works.
11312 if test "$pipe_works" = yes; then
11315 lt_cv_sys_global_symbol_pipe=
11321 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11322 lt_cv_sys_global_symbol_to_cdecl=
11324 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11326 $as_echo "failed" >&6; }
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11329 $as_echo "ok" >&6; }
11332 # Response file support.
11333 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11334 nm_file_list_spec='@'
11335 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11336 nm_file_list_spec='@'
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11366 $as_echo_n "checking for sysroot... " >&6; }
11368 # Check whether --with-sysroot was given.
11369 if test "${with_sysroot+set}" = set; then :
11370 withval=$with_sysroot;
11377 case ${with_sysroot} in #(
11379 if test "$GCC" = yes; then
11380 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11384 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11390 $as_echo "${with_sysroot}" >&6; }
11391 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11396 $as_echo "${lt_sysroot:-no}" >&6; }
11402 # Check whether --enable-libtool-lock was given.
11403 if test "${enable_libtool_lock+set}" = set; then :
11404 enableval=$enable_libtool_lock;
11407 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11409 # Some flags need to be propagated to the compiler or linker for good
11413 # Find out which ABI we are using.
11414 echo 'int i;' > conftest.$ac_ext
11415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11416 (eval $ac_compile) 2>&5
11418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11419 test $ac_status = 0; }; then
11420 case `/usr/bin/file conftest.$ac_objext` in
11422 HPUX_IA64_MODE="32"
11425 HPUX_IA64_MODE="64"
11432 # Find out which ABI we are using.
11433 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11435 (eval $ac_compile) 2>&5
11437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11438 test $ac_status = 0; }; then
11439 if test "$lt_cv_prog_gnu_ld" = yes; then
11440 case `/usr/bin/file conftest.$ac_objext` in
11442 LD="${LD-ld} -melf32bsmip"
11445 LD="${LD-ld} -melf32bmipn32"
11448 LD="${LD-ld} -melf64bmip"
11452 case `/usr/bin/file conftest.$ac_objext` in
11468 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11469 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11470 # Find out which ABI we are using.
11471 echo 'int i;' > conftest.$ac_ext
11472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11473 (eval $ac_compile) 2>&5
11475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11476 test $ac_status = 0; }; then
11477 case `/usr/bin/file conftest.o` in
11480 x86_64-*kfreebsd*-gnu)
11481 LD="${LD-ld} -m elf_i386_fbsd"
11484 LD="${LD-ld} -m elf_i386"
11486 ppc64-*linux*|powerpc64-*linux*)
11487 LD="${LD-ld} -m elf32ppclinux"
11490 LD="${LD-ld} -m elf_s390"
11493 LD="${LD-ld} -m elf32_sparc"
11499 x86_64-*kfreebsd*-gnu)
11500 LD="${LD-ld} -m elf_x86_64_fbsd"
11503 LD="${LD-ld} -m elf_x86_64"
11505 ppc*-*linux*|powerpc*-*linux*)
11506 LD="${LD-ld} -m elf64ppc"
11508 s390*-*linux*|s390*-*tpf*)
11509 LD="${LD-ld} -m elf64_s390"
11512 LD="${LD-ld} -m elf64_sparc"
11522 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11523 SAVE_CFLAGS="$CFLAGS"
11524 CFLAGS="$CFLAGS -belf"
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11526 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11527 if ${lt_cv_cc_needs_belf+:} false; then :
11528 $as_echo_n "(cached) " >&6
11531 ac_cpp='$CPP $CPPFLAGS'
11532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11537 /* end confdefs.h. */
11547 if ac_fn_c_try_link "$LINENO"; then :
11548 lt_cv_cc_needs_belf=yes
11550 lt_cv_cc_needs_belf=no
11552 rm -f core conftest.err conftest.$ac_objext \
11553 conftest$ac_exeext conftest.$ac_ext
11555 ac_cpp='$CPP $CPPFLAGS'
11556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11562 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11563 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11564 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11565 CFLAGS="$SAVE_CFLAGS"
11569 # Find out which ABI we are using.
11570 echo 'int i;' > conftest.$ac_ext
11571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11572 (eval $ac_compile) 2>&5
11574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11575 test $ac_status = 0; }; then
11576 case `/usr/bin/file conftest.o` in
11578 case $lt_cv_prog_gnu_ld in
11579 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11581 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11593 need_locks="$enable_libtool_lock"
11595 if test -n "$ac_tool_prefix"; then
11596 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11597 set dummy ${ac_tool_prefix}mt; ac_word=$2
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11599 $as_echo_n "checking for $ac_word... " >&6; }
11600 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11601 $as_echo_n "(cached) " >&6
11603 if test -n "$MANIFEST_TOOL"; then
11604 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607 for as_dir in $PATH
11610 test -z "$as_dir" && as_dir=.
11611 for ac_exec_ext in '' $ac_executable_extensions; do
11612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11613 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11623 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11624 if test -n "$MANIFEST_TOOL"; then
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11626 $as_echo "$MANIFEST_TOOL" >&6; }
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629 $as_echo "no" >&6; }
11634 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11635 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11636 # Extract the first word of "mt", so it can be a program name with args.
11637 set dummy mt; ac_word=$2
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11639 $as_echo_n "checking for $ac_word... " >&6; }
11640 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11641 $as_echo_n "(cached) " >&6
11643 if test -n "$ac_ct_MANIFEST_TOOL"; then
11644 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11647 for as_dir in $PATH
11650 test -z "$as_dir" && as_dir=.
11651 for ac_exec_ext in '' $ac_executable_extensions; do
11652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11653 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11663 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11664 if test -n "$ac_ct_MANIFEST_TOOL"; then
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11666 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11669 $as_echo "no" >&6; }
11672 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11675 case $cross_compiling:$ac_tool_warned in
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11679 ac_tool_warned=yes ;;
11681 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11684 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11687 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11689 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11690 if ${lt_cv_path_mainfest_tool+:} false; then :
11691 $as_echo_n "(cached) " >&6
11693 lt_cv_path_mainfest_tool=no
11694 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11695 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11696 cat conftest.err >&5
11697 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11698 lt_cv_path_mainfest_tool=yes
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11703 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
11704 if test "x$lt_cv_path_mainfest_tool" != xyes; then
11714 rhapsody* | darwin*)
11715 if test -n "$ac_tool_prefix"; then
11716 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11717 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11719 $as_echo_n "checking for $ac_word... " >&6; }
11720 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11721 $as_echo_n "(cached) " >&6
11723 if test -n "$DSYMUTIL"; then
11724 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727 for as_dir in $PATH
11730 test -z "$as_dir" && as_dir=.
11731 for ac_exec_ext in '' $ac_executable_extensions; do
11732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11733 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11743 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11744 if test -n "$DSYMUTIL"; then
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11746 $as_echo "$DSYMUTIL" >&6; }
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749 $as_echo "no" >&6; }
11754 if test -z "$ac_cv_prog_DSYMUTIL"; then
11755 ac_ct_DSYMUTIL=$DSYMUTIL
11756 # Extract the first word of "dsymutil", so it can be a program name with args.
11757 set dummy dsymutil; ac_word=$2
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11759 $as_echo_n "checking for $ac_word... " >&6; }
11760 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
11761 $as_echo_n "(cached) " >&6
11763 if test -n "$ac_ct_DSYMUTIL"; then
11764 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11767 for as_dir in $PATH
11770 test -z "$as_dir" && as_dir=.
11771 for ac_exec_ext in '' $ac_executable_extensions; do
11772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11773 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11783 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11784 if test -n "$ac_ct_DSYMUTIL"; then
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11786 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11789 $as_echo "no" >&6; }
11792 if test "x$ac_ct_DSYMUTIL" = x; then
11795 case $cross_compiling:$ac_tool_warned in
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11799 ac_tool_warned=yes ;;
11801 DSYMUTIL=$ac_ct_DSYMUTIL
11804 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11807 if test -n "$ac_tool_prefix"; then
11808 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11809 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11811 $as_echo_n "checking for $ac_word... " >&6; }
11812 if ${ac_cv_prog_NMEDIT+:} false; then :
11813 $as_echo_n "(cached) " >&6
11815 if test -n "$NMEDIT"; then
11816 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11819 for as_dir in $PATH
11822 test -z "$as_dir" && as_dir=.
11823 for ac_exec_ext in '' $ac_executable_extensions; do
11824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11825 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11835 NMEDIT=$ac_cv_prog_NMEDIT
11836 if test -n "$NMEDIT"; then
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11838 $as_echo "$NMEDIT" >&6; }
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841 $as_echo "no" >&6; }
11846 if test -z "$ac_cv_prog_NMEDIT"; then
11847 ac_ct_NMEDIT=$NMEDIT
11848 # Extract the first word of "nmedit", so it can be a program name with args.
11849 set dummy nmedit; ac_word=$2
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11851 $as_echo_n "checking for $ac_word... " >&6; }
11852 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
11853 $as_echo_n "(cached) " >&6
11855 if test -n "$ac_ct_NMEDIT"; then
11856 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11859 for as_dir in $PATH
11862 test -z "$as_dir" && as_dir=.
11863 for ac_exec_ext in '' $ac_executable_extensions; do
11864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11865 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11875 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11876 if test -n "$ac_ct_NMEDIT"; then
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11878 $as_echo "$ac_ct_NMEDIT" >&6; }
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11881 $as_echo "no" >&6; }
11884 if test "x$ac_ct_NMEDIT" = x; then
11887 case $cross_compiling:$ac_tool_warned in
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11890 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11891 ac_tool_warned=yes ;;
11893 NMEDIT=$ac_ct_NMEDIT
11896 NMEDIT="$ac_cv_prog_NMEDIT"
11899 if test -n "$ac_tool_prefix"; then
11900 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11901 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11903 $as_echo_n "checking for $ac_word... " >&6; }
11904 if ${ac_cv_prog_LIPO+:} false; then :
11905 $as_echo_n "(cached) " >&6
11907 if test -n "$LIPO"; then
11908 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911 for as_dir in $PATH
11914 test -z "$as_dir" && as_dir=.
11915 for ac_exec_ext in '' $ac_executable_extensions; do
11916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11917 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11927 LIPO=$ac_cv_prog_LIPO
11928 if test -n "$LIPO"; then
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11930 $as_echo "$LIPO" >&6; }
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933 $as_echo "no" >&6; }
11938 if test -z "$ac_cv_prog_LIPO"; then
11940 # Extract the first word of "lipo", so it can be a program name with args.
11941 set dummy lipo; ac_word=$2
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11943 $as_echo_n "checking for $ac_word... " >&6; }
11944 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11945 $as_echo_n "(cached) " >&6
11947 if test -n "$ac_ct_LIPO"; then
11948 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11951 for as_dir in $PATH
11954 test -z "$as_dir" && as_dir=.
11955 for ac_exec_ext in '' $ac_executable_extensions; do
11956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11957 ac_cv_prog_ac_ct_LIPO="lipo"
11958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11967 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11968 if test -n "$ac_ct_LIPO"; then
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11970 $as_echo "$ac_ct_LIPO" >&6; }
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11973 $as_echo "no" >&6; }
11976 if test "x$ac_ct_LIPO" = x; then
11979 case $cross_compiling:$ac_tool_warned in
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11983 ac_tool_warned=yes ;;
11988 LIPO="$ac_cv_prog_LIPO"
11991 if test -n "$ac_tool_prefix"; then
11992 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11993 set dummy ${ac_tool_prefix}otool; ac_word=$2
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11995 $as_echo_n "checking for $ac_word... " >&6; }
11996 if ${ac_cv_prog_OTOOL+:} false; then :
11997 $as_echo_n "(cached) " >&6
11999 if test -n "$OTOOL"; then
12000 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12003 for as_dir in $PATH
12006 test -z "$as_dir" && as_dir=.
12007 for ac_exec_ext in '' $ac_executable_extensions; do
12008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12009 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12019 OTOOL=$ac_cv_prog_OTOOL
12020 if test -n "$OTOOL"; then
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12022 $as_echo "$OTOOL" >&6; }
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12025 $as_echo "no" >&6; }
12030 if test -z "$ac_cv_prog_OTOOL"; then
12032 # Extract the first word of "otool", so it can be a program name with args.
12033 set dummy otool; ac_word=$2
12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12035 $as_echo_n "checking for $ac_word... " >&6; }
12036 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
12037 $as_echo_n "(cached) " >&6
12039 if test -n "$ac_ct_OTOOL"; then
12040 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043 for as_dir in $PATH
12046 test -z "$as_dir" && as_dir=.
12047 for ac_exec_ext in '' $ac_executable_extensions; do
12048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12049 ac_cv_prog_ac_ct_OTOOL="otool"
12050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12059 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12060 if test -n "$ac_ct_OTOOL"; then
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12062 $as_echo "$ac_ct_OTOOL" >&6; }
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12065 $as_echo "no" >&6; }
12068 if test "x$ac_ct_OTOOL" = x; then
12071 case $cross_compiling:$ac_tool_warned in
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12075 ac_tool_warned=yes ;;
12080 OTOOL="$ac_cv_prog_OTOOL"
12083 if test -n "$ac_tool_prefix"; then
12084 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12085 set dummy ${ac_tool_prefix}otool64; ac_word=$2
12086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12087 $as_echo_n "checking for $ac_word... " >&6; }
12088 if ${ac_cv_prog_OTOOL64+:} false; then :
12089 $as_echo_n "(cached) " >&6
12091 if test -n "$OTOOL64"; then
12092 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12095 for as_dir in $PATH
12098 test -z "$as_dir" && as_dir=.
12099 for ac_exec_ext in '' $ac_executable_extensions; do
12100 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12101 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12111 OTOOL64=$ac_cv_prog_OTOOL64
12112 if test -n "$OTOOL64"; then
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12114 $as_echo "$OTOOL64" >&6; }
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12117 $as_echo "no" >&6; }
12122 if test -z "$ac_cv_prog_OTOOL64"; then
12123 ac_ct_OTOOL64=$OTOOL64
12124 # Extract the first word of "otool64", so it can be a program name with args.
12125 set dummy otool64; ac_word=$2
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12127 $as_echo_n "checking for $ac_word... " >&6; }
12128 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
12129 $as_echo_n "(cached) " >&6
12131 if test -n "$ac_ct_OTOOL64"; then
12132 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135 for as_dir in $PATH
12138 test -z "$as_dir" && as_dir=.
12139 for ac_exec_ext in '' $ac_executable_extensions; do
12140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12141 ac_cv_prog_ac_ct_OTOOL64="otool64"
12142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12151 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12152 if test -n "$ac_ct_OTOOL64"; then
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12154 $as_echo "$ac_ct_OTOOL64" >&6; }
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12157 $as_echo "no" >&6; }
12160 if test "x$ac_ct_OTOOL64" = x; then
12163 case $cross_compiling:$ac_tool_warned in
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12166 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12167 ac_tool_warned=yes ;;
12169 OTOOL64=$ac_ct_OTOOL64
12172 OTOOL64="$ac_cv_prog_OTOOL64"
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12202 $as_echo_n "checking for -single_module linker flag... " >&6; }
12203 if ${lt_cv_apple_cc_single_mod+:} false; then :
12204 $as_echo_n "(cached) " >&6
12206 lt_cv_apple_cc_single_mod=no
12207 if test -z "${LT_MULTI_MODULE}"; then
12208 # By default we will add the -single_module flag. You can override
12209 # by either setting the environment variable LT_MULTI_MODULE
12210 # non-empty at configure time, or by adding -multi_module to the
12212 rm -rf libconftest.dylib*
12213 echo "int foo(void){return 1;}" > conftest.c
12214 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12215 -dynamiclib -Wl,-single_module conftest.c" >&5
12216 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12217 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12219 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12220 lt_cv_apple_cc_single_mod=yes
12222 cat conftest.err >&5
12224 rm -rf libconftest.dylib*
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12229 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12231 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12232 if ${lt_cv_ld_exported_symbols_list+:} false; then :
12233 $as_echo_n "(cached) " >&6
12235 lt_cv_ld_exported_symbols_list=no
12236 save_LDFLAGS=$LDFLAGS
12237 echo "_main" > conftest.sym
12238 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12250 if ac_fn_c_try_link "$LINENO"; then :
12251 lt_cv_ld_exported_symbols_list=yes
12253 lt_cv_ld_exported_symbols_list=no
12255 rm -f core conftest.err conftest.$ac_objext \
12256 conftest$ac_exeext conftest.$ac_ext
12257 LDFLAGS="$save_LDFLAGS"
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12261 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12263 $as_echo_n "checking for -force_load linker flag... " >&6; }
12264 if ${lt_cv_ld_force_load+:} false; then :
12265 $as_echo_n "(cached) " >&6
12267 lt_cv_ld_force_load=no
12268 cat > conftest.c << _LT_EOF
12269 int forced_loaded() { return 2;}
12271 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12272 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12273 echo "$AR cru libconftest.a conftest.o" >&5
12274 $AR cru libconftest.a conftest.o 2>&5
12275 echo "$RANLIB libconftest.a" >&5
12276 $RANLIB libconftest.a 2>&5
12277 cat > conftest.c << _LT_EOF
12278 int main() { return 0;}
12280 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12281 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12283 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12284 lt_cv_ld_force_load=yes
12286 cat conftest.err >&5
12288 rm -f conftest.err libconftest.a conftest conftest.c
12289 rm -rf conftest.dSYM
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12293 $as_echo "$lt_cv_ld_force_load" >&6; }
12295 rhapsody* | darwin1.[012])
12296 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12298 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12299 darwin*) # darwin 5.x on
12300 # if running on 10.5 or later, the deployment target defaults
12301 # to the OS version, if on x86, and 10.4, the deployment
12302 # target defaults to 10.4. Don't you love it?
12303 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12304 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12305 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12307 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12309 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12313 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12314 _lt_dar_single_mod='$single_module'
12316 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12317 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12319 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12321 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
12322 _lt_dsymutil='~$DSYMUTIL $lib || :'
12329 for ac_header in dlfcn.h
12331 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12333 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12334 cat >>confdefs.h <<_ACEOF
12335 #define HAVE_DLFCN_H 1
12345 func_stripname_cnf ()
12348 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12349 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12351 } # func_stripname_cnf
12358 enable_win32_dll=yes
12361 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12362 if test -n "$ac_tool_prefix"; then
12363 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12364 set dummy ${ac_tool_prefix}as; ac_word=$2
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12366 $as_echo_n "checking for $ac_word... " >&6; }
12367 if ${ac_cv_prog_AS+:} false; then :
12368 $as_echo_n "(cached) " >&6
12370 if test -n "$AS"; then
12371 ac_cv_prog_AS="$AS" # Let the user override the test.
12373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12374 for as_dir in $PATH
12377 test -z "$as_dir" && as_dir=.
12378 for ac_exec_ext in '' $ac_executable_extensions; do
12379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12380 ac_cv_prog_AS="${ac_tool_prefix}as"
12381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12391 if test -n "$AS"; then
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12393 $as_echo "$AS" >&6; }
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396 $as_echo "no" >&6; }
12401 if test -z "$ac_cv_prog_AS"; then
12403 # Extract the first word of "as", so it can be a program name with args.
12404 set dummy as; ac_word=$2
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12406 $as_echo_n "checking for $ac_word... " >&6; }
12407 if ${ac_cv_prog_ac_ct_AS+:} false; then :
12408 $as_echo_n "(cached) " >&6
12410 if test -n "$ac_ct_AS"; then
12411 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414 for as_dir in $PATH
12417 test -z "$as_dir" && as_dir=.
12418 for ac_exec_ext in '' $ac_executable_extensions; do
12419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12420 ac_cv_prog_ac_ct_AS="as"
12421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12430 ac_ct_AS=$ac_cv_prog_ac_ct_AS
12431 if test -n "$ac_ct_AS"; then
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12433 $as_echo "$ac_ct_AS" >&6; }
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436 $as_echo "no" >&6; }
12439 if test "x$ac_ct_AS" = x; then
12442 case $cross_compiling:$ac_tool_warned in
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12446 ac_tool_warned=yes ;;
12451 AS="$ac_cv_prog_AS"
12454 if test -n "$ac_tool_prefix"; then
12455 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12456 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12458 $as_echo_n "checking for $ac_word... " >&6; }
12459 if ${ac_cv_prog_DLLTOOL+:} false; then :
12460 $as_echo_n "(cached) " >&6
12462 if test -n "$DLLTOOL"; then
12463 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12466 for as_dir in $PATH
12469 test -z "$as_dir" && as_dir=.
12470 for ac_exec_ext in '' $ac_executable_extensions; do
12471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12472 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12482 DLLTOOL=$ac_cv_prog_DLLTOOL
12483 if test -n "$DLLTOOL"; then
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12485 $as_echo "$DLLTOOL" >&6; }
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488 $as_echo "no" >&6; }
12493 if test -z "$ac_cv_prog_DLLTOOL"; then
12494 ac_ct_DLLTOOL=$DLLTOOL
12495 # Extract the first word of "dlltool", so it can be a program name with args.
12496 set dummy dlltool; ac_word=$2
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12498 $as_echo_n "checking for $ac_word... " >&6; }
12499 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12500 $as_echo_n "(cached) " >&6
12502 if test -n "$ac_ct_DLLTOOL"; then
12503 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12506 for as_dir in $PATH
12509 test -z "$as_dir" && as_dir=.
12510 for ac_exec_ext in '' $ac_executable_extensions; do
12511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12512 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12522 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12523 if test -n "$ac_ct_DLLTOOL"; then
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12525 $as_echo "$ac_ct_DLLTOOL" >&6; }
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12528 $as_echo "no" >&6; }
12531 if test "x$ac_ct_DLLTOOL" = x; then
12534 case $cross_compiling:$ac_tool_warned in
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12538 ac_tool_warned=yes ;;
12540 DLLTOOL=$ac_ct_DLLTOOL
12543 DLLTOOL="$ac_cv_prog_DLLTOOL"
12546 if test -n "$ac_tool_prefix"; then
12547 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12548 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12550 $as_echo_n "checking for $ac_word... " >&6; }
12551 if ${ac_cv_prog_OBJDUMP+:} false; then :
12552 $as_echo_n "(cached) " >&6
12554 if test -n "$OBJDUMP"; then
12555 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12558 for as_dir in $PATH
12561 test -z "$as_dir" && as_dir=.
12562 for ac_exec_ext in '' $ac_executable_extensions; do
12563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12564 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12574 OBJDUMP=$ac_cv_prog_OBJDUMP
12575 if test -n "$OBJDUMP"; then
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12577 $as_echo "$OBJDUMP" >&6; }
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12580 $as_echo "no" >&6; }
12585 if test -z "$ac_cv_prog_OBJDUMP"; then
12586 ac_ct_OBJDUMP=$OBJDUMP
12587 # Extract the first word of "objdump", so it can be a program name with args.
12588 set dummy objdump; ac_word=$2
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12590 $as_echo_n "checking for $ac_word... " >&6; }
12591 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12592 $as_echo_n "(cached) " >&6
12594 if test -n "$ac_ct_OBJDUMP"; then
12595 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598 for as_dir in $PATH
12601 test -z "$as_dir" && as_dir=.
12602 for ac_exec_ext in '' $ac_executable_extensions; do
12603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12604 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12614 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12615 if test -n "$ac_ct_OBJDUMP"; then
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12617 $as_echo "$ac_ct_OBJDUMP" >&6; }
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12620 $as_echo "no" >&6; }
12623 if test "x$ac_ct_OBJDUMP" = x; then
12626 case $cross_compiling:$ac_tool_warned in
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12630 ac_tool_warned=yes ;;
12632 OBJDUMP=$ac_ct_OBJDUMP
12635 OBJDUMP="$ac_cv_prog_OBJDUMP"
12641 test -z "$AS" && AS=as
12647 test -z "$DLLTOOL" && DLLTOOL=dlltool
12653 test -z "$OBJDUMP" && OBJDUMP=objdump
12663 # Check whether --enable-shared was given.
12664 if test "${enable_shared+set}" = set; then :
12665 enableval=$enable_shared; p=${PACKAGE-default}
12667 yes) enable_shared=yes ;;
12668 no) enable_shared=no ;;
12671 # Look at the argument we got. We use all the common list separators.
12672 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12673 for pkg in $enableval; do
12675 if test "X$pkg" = "X$p"; then
12694 # Check whether --enable-static was given.
12695 if test "${enable_static+set}" = set; then :
12696 enableval=$enable_static; p=${PACKAGE-default}
12698 yes) enable_static=yes ;;
12699 no) enable_static=no ;;
12702 # Look at the argument we got. We use all the common list separators.
12703 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12704 for pkg in $enableval; do
12706 if test "X$pkg" = "X$p"; then
12726 # Check whether --with-pic was given.
12727 if test "${with_pic+set}" = set; then :
12728 withval=$with_pic; pic_mode="$withval"
12734 test -z "$pic_mode" && pic_mode=default
12742 # Check whether --enable-fast-install was given.
12743 if test "${enable_fast_install+set}" = set; then :
12744 enableval=$enable_fast_install; p=${PACKAGE-default}
12746 yes) enable_fast_install=yes ;;
12747 no) enable_fast_install=no ;;
12749 enable_fast_install=no
12750 # Look at the argument we got. We use all the common list separators.
12751 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12752 for pkg in $enableval; do
12754 if test "X$pkg" = "X$p"; then
12755 enable_fast_install=yes
12762 enable_fast_install=yes
12775 # This can be used to rebuild libtool when needed
12776 LIBTOOL_DEPS="$ltmain"
12778 # Always use our own libtool.
12779 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12806 test -z "$LN_S" && LN_S="ln -s"
12821 if test -n "${ZSH_VERSION+set}" ; then
12822 setopt NO_GLOB_SUBST
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12826 $as_echo_n "checking for objdir... " >&6; }
12827 if ${lt_cv_objdir+:} false; then :
12828 $as_echo_n "(cached) " >&6
12830 rm -f .libs 2>/dev/null
12831 mkdir .libs 2>/dev/null
12832 if test -d .libs; then
12835 # MS-DOS does not allow filenames that begin with a dot.
12838 rmdir .libs 2>/dev/null
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12841 $as_echo "$lt_cv_objdir" >&6; }
12842 objdir=$lt_cv_objdir
12848 cat >>confdefs.h <<_ACEOF
12849 #define LT_OBJDIR "$lt_cv_objdir/"
12857 # AIX sometimes has problems with the GCC collect2 program. For some
12858 # reason, if we set the COLLECT_NAMES environment variable, the problems
12859 # vanish in a puff of smoke.
12860 if test "X${COLLECT_NAMES+set}" != Xset; then
12862 export COLLECT_NAMES
12867 # Global variables:
12869 can_build_shared=yes
12871 # All known linkers require a `.a' archive for static linking (except MSVC,
12872 # which needs '.lib').
12875 with_gnu_ld="$lt_cv_prog_gnu_ld"
12878 old_CFLAGS="$CFLAGS"
12880 # Set sane defaults for various variables
12881 test -z "$CC" && CC=cc
12882 test -z "$LTCC" && LTCC=$CC
12883 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12884 test -z "$LD" && LD=ld
12885 test -z "$ac_objext" && ac_objext=o
12887 for cc_temp in $compiler""; do
12889 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12890 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12895 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12898 # Only perform the check for file, if the check method requires it
12899 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12900 case $deplibs_check_method in
12902 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12904 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12905 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12906 $as_echo_n "(cached) " >&6
12910 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12913 lt_save_MAGIC_CMD="$MAGIC_CMD"
12914 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12915 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12916 for ac_dir in $ac_dummy; do
12918 test -z "$ac_dir" && ac_dir=.
12919 if test -f $ac_dir/${ac_tool_prefix}file; then
12920 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12921 if test -n "$file_magic_test_file"; then
12922 case $deplibs_check_method in
12924 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12925 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12926 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12927 $EGREP "$file_magic_regex" > /dev/null; then
12932 *** Warning: the command libtool uses to detect shared libraries,
12933 *** $file_magic_cmd, produces output that libtool cannot recognize.
12934 *** The result is that libtool may fail to recognize shared libraries
12935 *** as such. This will affect the creation of libtool libraries that
12936 *** depend on shared libraries, but programs linked with such libtool
12937 *** libraries will work regardless of this problem. Nevertheless, you
12938 *** may want to report the problem to your system manager and/or to
12939 *** bug-libtool@gnu.org
12949 MAGIC_CMD="$lt_save_MAGIC_CMD"
12954 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12955 if test -n "$MAGIC_CMD"; then
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12957 $as_echo "$MAGIC_CMD" >&6; }
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12960 $as_echo "no" >&6; }
12967 if test -z "$lt_cv_path_MAGIC_CMD"; then
12968 if test -n "$ac_tool_prefix"; then
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12970 $as_echo_n "checking for file... " >&6; }
12971 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12972 $as_echo_n "(cached) " >&6
12976 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12979 lt_save_MAGIC_CMD="$MAGIC_CMD"
12980 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12981 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12982 for ac_dir in $ac_dummy; do
12984 test -z "$ac_dir" && ac_dir=.
12985 if test -f $ac_dir/file; then
12986 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12987 if test -n "$file_magic_test_file"; then
12988 case $deplibs_check_method in
12990 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12991 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12992 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12993 $EGREP "$file_magic_regex" > /dev/null; then
12998 *** Warning: the command libtool uses to detect shared libraries,
12999 *** $file_magic_cmd, produces output that libtool cannot recognize.
13000 *** The result is that libtool may fail to recognize shared libraries
13001 *** as such. This will affect the creation of libtool libraries that
13002 *** depend on shared libraries, but programs linked with such libtool
13003 *** libraries will work regardless of this problem. Nevertheless, you
13004 *** may want to report the problem to your system manager and/or to
13005 *** bug-libtool@gnu.org
13015 MAGIC_CMD="$lt_save_MAGIC_CMD"
13020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13021 if test -n "$MAGIC_CMD"; then
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13023 $as_echo "$MAGIC_CMD" >&6; }
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026 $as_echo "no" >&6; }
13039 # Use C for the default configuration in the libtool script
13043 ac_cpp='$CPP $CPPFLAGS'
13044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13049 # Source file extension for C test sources.
13052 # Object file extension for compiled C test sources.
13056 # Code to be used in simple compile tests
13057 lt_simple_compile_test_code="int some_variable = 0;"
13059 # Code to be used in simple link tests
13060 lt_simple_link_test_code='int main(){return(0);}'
13068 # If no C compiler was specified, use CC.
13071 # If no C compiler flags were specified, use CFLAGS.
13072 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13074 # Allow CC to be a program name with arguments.
13077 # Save the default compiler, since it gets overwritten when the other
13078 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13079 compiler_DEFAULT=$CC
13081 # save warnings/boilerplate of simple test code
13082 ac_outfile=conftest.$ac_objext
13083 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13084 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13085 _lt_compiler_boilerplate=`cat conftest.err`
13088 ac_outfile=conftest.$ac_objext
13089 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13090 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13091 _lt_linker_boilerplate=`cat conftest.err`
13096 ## There is no encapsulation within the following macros, do not change
13097 ## the running order or otherwise move them around unless you know exactly
13098 ## what you are doing...
13099 if test -n "$compiler"; then
13101 lt_prog_compiler_no_builtin_flag=
13103 if test "$GCC" = yes; then
13104 case $cc_basename in
13106 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13108 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13112 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13113 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
13114 $as_echo_n "(cached) " >&6
13116 lt_cv_prog_compiler_rtti_exceptions=no
13117 ac_outfile=conftest.$ac_objext
13118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13119 lt_compiler_flag="-fno-rtti -fno-exceptions"
13120 # Insert the option either (1) after the last *FLAGS variable, or
13121 # (2) before a word containing "conftest.", or (3) at the end.
13122 # Note that $ac_compile itself does not contain backslashes and begins
13123 # with a dollar sign (not a hyphen), so the echo should work correctly.
13124 # The option is referenced via a variable to avoid confusing sed.
13125 lt_compile=`echo "$ac_compile" | $SED \
13126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13128 -e 's:$: $lt_compiler_flag:'`
13129 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13130 (eval "$lt_compile" 2>conftest.err)
13132 cat conftest.err >&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 if (exit $ac_status) && test -s "$ac_outfile"; then
13135 # The compiler can only warn and ignore the option if not recognized
13136 # So say no if there are warnings other than the usual output.
13137 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13139 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13140 lt_cv_prog_compiler_rtti_exceptions=yes
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13147 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13149 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13150 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13162 lt_prog_compiler_wl=
13163 lt_prog_compiler_pic=
13164 lt_prog_compiler_static=
13167 if test "$GCC" = yes; then
13168 lt_prog_compiler_wl='-Wl,'
13169 lt_prog_compiler_static='-static'
13173 # All AIX code is PIC.
13174 if test "$host_cpu" = ia64; then
13175 # AIX 5 now supports IA64 processor
13176 lt_prog_compiler_static='-Bstatic'
13183 # see comment about AmigaOS4 .so support
13184 lt_prog_compiler_pic='-fPIC'
13187 # FIXME: we need at least 68020 code to build shared libraries, but
13188 # adding the `-m68020' flag to GCC prevents building anything better,
13190 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13195 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13196 # PIC is the default for these OSes.
13199 mingw* | cygwin* | pw32* | os2* | cegcc*)
13200 # This hack is so that the source file can tell whether it is being
13201 # built for inclusion in a dll (and should export symbols for example).
13202 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13203 # (--disable-auto-import) libraries
13204 lt_prog_compiler_pic='-DDLL_EXPORT'
13207 darwin* | rhapsody*)
13208 # PIC is the default on this platform
13209 # Common symbols not allowed in MH_DYLIB files
13210 lt_prog_compiler_pic='-fno-common'
13214 # PIC is the default for Haiku.
13215 # The "-static" flag exists, but is broken.
13216 lt_prog_compiler_static=
13220 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13221 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13222 # sets the default TLS model and affects inlining.
13228 lt_prog_compiler_pic='-fPIC'
13234 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13235 # Instead, we relocate shared libraries at runtime.
13239 # Just because we use GCC doesn't mean we suddenly get shared libraries
13240 # on systems that don't support them.
13241 lt_prog_compiler_can_build_shared=no
13246 # QNX uses GNU C++, but need to define -shared option too, otherwise
13247 # it will coredump.
13248 lt_prog_compiler_pic='-fPIC -shared'
13252 if test -d /usr/nec; then
13253 lt_prog_compiler_pic=-Kconform_pic
13258 lt_prog_compiler_pic='-fPIC'
13262 case $cc_basename in
13263 nvcc*) # Cuda Compiler Driver 2.2
13264 lt_prog_compiler_wl='-Xlinker '
13265 lt_prog_compiler_pic='-Xcompiler -fPIC'
13269 # PORTME Check for flag to pass linker flags through the system compiler.
13272 lt_prog_compiler_wl='-Wl,'
13273 if test "$host_cpu" = ia64; then
13274 # AIX 5 now supports IA64 processor
13275 lt_prog_compiler_static='-Bstatic'
13277 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13281 mingw* | cygwin* | pw32* | os2* | cegcc*)
13282 # This hack is so that the source file can tell whether it is being
13283 # built for inclusion in a dll (and should export symbols for example).
13284 lt_prog_compiler_pic='-DDLL_EXPORT'
13287 hpux9* | hpux10* | hpux11*)
13288 lt_prog_compiler_wl='-Wl,'
13289 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13290 # not for PA HP-UX.
13296 lt_prog_compiler_pic='+Z'
13299 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13300 lt_prog_compiler_static='${wl}-a ${wl}archive'
13303 irix5* | irix6* | nonstopux*)
13304 lt_prog_compiler_wl='-Wl,'
13305 # PIC (with -KPIC) is the default.
13306 lt_prog_compiler_static='-non_shared'
13309 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13310 case $cc_basename in
13311 # old Intel for x86_64 which still supported -KPIC.
13313 lt_prog_compiler_wl='-Wl,'
13314 lt_prog_compiler_pic='-KPIC'
13315 lt_prog_compiler_static='-static'
13317 # icc used to be incompatible with GCC.
13318 # ICC 10 doesn't accept -KPIC any more.
13320 lt_prog_compiler_wl='-Wl,'
13321 lt_prog_compiler_pic='-fPIC'
13322 lt_prog_compiler_static='-static'
13324 # Lahey Fortran 8.1.
13326 lt_prog_compiler_wl='-Wl,'
13327 lt_prog_compiler_pic='--shared'
13328 lt_prog_compiler_static='--static'
13331 # NAG Fortran compiler
13332 lt_prog_compiler_wl='-Wl,-Wl,,'
13333 lt_prog_compiler_pic='-PIC'
13334 lt_prog_compiler_static='-Bstatic'
13336 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13337 # Portland Group compilers (*not* the Pentium gcc compiler,
13338 # which looks to be a dead project)
13339 lt_prog_compiler_wl='-Wl,'
13340 lt_prog_compiler_pic='-fpic'
13341 lt_prog_compiler_static='-Bstatic'
13344 lt_prog_compiler_wl='-Wl,'
13345 # All Alpha code is PIC.
13346 lt_prog_compiler_static='-non_shared'
13348 xl* | bgxl* | bgf* | mpixl*)
13349 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13350 lt_prog_compiler_wl='-Wl,'
13351 lt_prog_compiler_pic='-qpic'
13352 lt_prog_compiler_static='-qstaticlink'
13355 case `$CC -V 2>&1 | sed 5q` in
13356 *Sun\ F* | *Sun*Fortran*)
13357 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13358 lt_prog_compiler_pic='-KPIC'
13359 lt_prog_compiler_static='-Bstatic'
13360 lt_prog_compiler_wl=''
13364 lt_prog_compiler_pic='-KPIC'
13365 lt_prog_compiler_static='-Bstatic'
13366 lt_prog_compiler_wl='-Wl,'
13374 lt_prog_compiler_pic='-KPIC'
13375 lt_prog_compiler_static='-Bstatic'
13379 # QNX uses GNU C++, but need to define -shared option too, otherwise
13380 # it will coredump.
13381 lt_prog_compiler_pic='-fPIC -shared'
13384 osf3* | osf4* | osf5*)
13385 lt_prog_compiler_wl='-Wl,'
13386 # All OSF/1 code is PIC.
13387 lt_prog_compiler_static='-non_shared'
13391 lt_prog_compiler_static='-non_shared'
13395 lt_prog_compiler_pic='-KPIC'
13396 lt_prog_compiler_static='-Bstatic'
13397 case $cc_basename in
13398 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13399 lt_prog_compiler_wl='-Qoption ld ';;
13401 lt_prog_compiler_wl='-Wl,';;
13406 lt_prog_compiler_wl='-Qoption ld '
13407 lt_prog_compiler_pic='-PIC'
13408 lt_prog_compiler_static='-Bstatic'
13411 sysv4 | sysv4.2uw2* | sysv4.3*)
13412 lt_prog_compiler_wl='-Wl,'
13413 lt_prog_compiler_pic='-KPIC'
13414 lt_prog_compiler_static='-Bstatic'
13418 if test -d /usr/nec ;then
13419 lt_prog_compiler_pic='-Kconform_pic'
13420 lt_prog_compiler_static='-Bstatic'
13424 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13425 lt_prog_compiler_wl='-Wl,'
13426 lt_prog_compiler_pic='-KPIC'
13427 lt_prog_compiler_static='-Bstatic'
13431 lt_prog_compiler_wl='-Wl,'
13432 lt_prog_compiler_can_build_shared=no
13436 lt_prog_compiler_pic='-pic'
13437 lt_prog_compiler_static='-Bstatic'
13441 lt_prog_compiler_can_build_shared=no
13447 # For platforms which do not support PIC, -DPIC is meaningless:
13449 lt_prog_compiler_pic=
13452 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13457 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13458 if ${lt_cv_prog_compiler_pic+:} false; then :
13459 $as_echo_n "(cached) " >&6
13461 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13464 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
13465 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13468 # Check to make sure the PIC flag actually works.
13470 if test -n "$lt_prog_compiler_pic"; then
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13472 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13473 if ${lt_cv_prog_compiler_pic_works+:} false; then :
13474 $as_echo_n "(cached) " >&6
13476 lt_cv_prog_compiler_pic_works=no
13477 ac_outfile=conftest.$ac_objext
13478 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13479 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13480 # Insert the option either (1) after the last *FLAGS variable, or
13481 # (2) before a word containing "conftest.", or (3) at the end.
13482 # Note that $ac_compile itself does not contain backslashes and begins
13483 # with a dollar sign (not a hyphen), so the echo should work correctly.
13484 # The option is referenced via a variable to avoid confusing sed.
13485 lt_compile=`echo "$ac_compile" | $SED \
13486 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13487 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13488 -e 's:$: $lt_compiler_flag:'`
13489 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13490 (eval "$lt_compile" 2>conftest.err)
13492 cat conftest.err >&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 if (exit $ac_status) && test -s "$ac_outfile"; then
13495 # The compiler can only warn and ignore the option if not recognized
13496 # So say no if there are warnings other than the usual output.
13497 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13498 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13499 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13500 lt_cv_prog_compiler_pic_works=yes
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13507 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13509 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13510 case $lt_prog_compiler_pic in
13512 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13515 lt_prog_compiler_pic=
13516 lt_prog_compiler_can_build_shared=no
13532 # Check to make sure the static flag actually works.
13534 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13536 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13537 if ${lt_cv_prog_compiler_static_works+:} false; then :
13538 $as_echo_n "(cached) " >&6
13540 lt_cv_prog_compiler_static_works=no
13541 save_LDFLAGS="$LDFLAGS"
13542 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13543 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13544 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13545 # The linker can only warn and ignore the option if not recognized
13546 # So say no if there are warnings
13547 if test -s conftest.err; then
13548 # Append any errors to the config.log.
13549 cat conftest.err 1>&5
13550 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13551 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13552 if diff conftest.exp conftest.er2 >/dev/null; then
13553 lt_cv_prog_compiler_static_works=yes
13556 lt_cv_prog_compiler_static_works=yes
13560 LDFLAGS="$save_LDFLAGS"
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13564 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13566 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13569 lt_prog_compiler_static=
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13579 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13580 if ${lt_cv_prog_compiler_c_o+:} false; then :
13581 $as_echo_n "(cached) " >&6
13583 lt_cv_prog_compiler_c_o=no
13584 $RM -r conftest 2>/dev/null
13588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13590 lt_compiler_flag="-o out/conftest2.$ac_objext"
13591 # Insert the option either (1) after the last *FLAGS variable, or
13592 # (2) before a word containing "conftest.", or (3) at the end.
13593 # Note that $ac_compile itself does not contain backslashes and begins
13594 # with a dollar sign (not a hyphen), so the echo should work correctly.
13595 lt_compile=`echo "$ac_compile" | $SED \
13596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13598 -e 's:$: $lt_compiler_flag:'`
13599 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13600 (eval "$lt_compile" 2>out/conftest.err)
13602 cat out/conftest.err >&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13606 # The compiler can only warn and ignore the option if not recognized
13607 # So say no if there are warnings
13608 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13609 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13610 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13611 lt_cv_prog_compiler_c_o=yes
13616 # SGI C++ compiler will create directory out/ii_files/ for
13617 # template instantiation
13618 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13619 $RM out/* && rmdir out
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13626 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13634 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13635 if ${lt_cv_prog_compiler_c_o+:} false; then :
13636 $as_echo_n "(cached) " >&6
13638 lt_cv_prog_compiler_c_o=no
13639 $RM -r conftest 2>/dev/null
13643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13645 lt_compiler_flag="-o out/conftest2.$ac_objext"
13646 # Insert the option either (1) after the last *FLAGS variable, or
13647 # (2) before a word containing "conftest.", or (3) at the end.
13648 # Note that $ac_compile itself does not contain backslashes and begins
13649 # with a dollar sign (not a hyphen), so the echo should work correctly.
13650 lt_compile=`echo "$ac_compile" | $SED \
13651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13653 -e 's:$: $lt_compiler_flag:'`
13654 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13655 (eval "$lt_compile" 2>out/conftest.err)
13657 cat out/conftest.err >&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13661 # The compiler can only warn and ignore the option if not recognized
13662 # So say no if there are warnings
13663 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13664 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13665 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13666 lt_cv_prog_compiler_c_o=yes
13671 # SGI C++ compiler will create directory out/ii_files/ for
13672 # template instantiation
13673 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13674 $RM out/* && rmdir out
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13681 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13686 hard_links="nottested"
13687 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13688 # do not overwrite the value of need_locks provided by the user
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13690 $as_echo_n "checking if we can lock with hard links... " >&6; }
13693 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13695 ln conftest.a conftest.b 2>&5 || hard_links=no
13696 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13698 $as_echo "$hard_links" >&6; }
13699 if test "$hard_links" = no; then
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13701 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13714 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13717 allow_undefined_flag=
13718 always_export_symbols=no
13720 archive_expsym_cmds=
13721 compiler_needs_object=no
13722 enable_shared_with_static_runtimes=no
13723 export_dynamic_flag_spec=
13724 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13725 hardcode_automatic=no
13727 hardcode_direct_absolute=no
13728 hardcode_libdir_flag_spec=
13729 hardcode_libdir_flag_spec_ld=
13730 hardcode_libdir_separator=
13731 hardcode_minus_L=no
13732 hardcode_shlibpath_var=unsupported
13734 link_all_deplibs=unknown
13736 module_expsym_cmds=
13737 old_archive_from_new_cmds=
13738 old_archive_from_expsyms_cmds=
13739 thread_safe_flag_spec=
13740 whole_archive_flag_spec=
13741 # include_expsyms should be a list of space-separated symbols to be *always*
13742 # included in the symbol list
13744 # exclude_expsyms can be an extended regexp of symbols to exclude
13745 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13746 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13747 # as well as any symbol that contains `d'.
13748 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13749 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13750 # platforms (ab)use it in PIC code, but their linkers get confused if
13751 # the symbol is explicitly referenced. Since portable code cannot
13752 # rely on this symbol name, it's probably fine to never include it in
13753 # preloaded symbol tables.
13754 # Exclude shared library initialization/finalization symbols.
13755 extract_expsyms_cmds=
13758 cygwin* | mingw* | pw32* | cegcc*)
13759 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13760 # When not using gcc, we currently assume that we are using
13761 # Microsoft Visual C++.
13762 if test "$GCC" != yes; then
13767 # we just hope/assume this is gcc and not c89 (= MSVC++)
13777 # On some targets, GNU ld is compatible enough with the native linker
13778 # that we're better off using the native interface for both.
13779 lt_use_gnu_ld_interface=no
13780 if test "$with_gnu_ld" = yes; then
13783 # The AIX port of GNU ld has always aspired to compatibility
13784 # with the native linker. However, as the warning in the GNU ld
13785 # block says, versions before 2.19.5* couldn't really create working
13786 # shared libraries, regardless of the interface used.
13787 case `$LD -v 2>&1` in
13788 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13789 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13790 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13792 lt_use_gnu_ld_interface=yes
13797 lt_use_gnu_ld_interface=yes
13802 if test "$lt_use_gnu_ld_interface" = yes; then
13803 # If archive_cmds runs LD, not CC, wlarc should be empty
13806 # Set some defaults for GNU ld with shared library support. These
13807 # are reset later if shared libraries are not supported. Putting them
13808 # here allows them to be overridden if necessary.
13809 runpath_var=LD_RUN_PATH
13810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13811 export_dynamic_flag_spec='${wl}--export-dynamic'
13812 # ancient GNU ld didn't support --whole-archive et. al.
13813 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13814 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13816 whole_archive_flag_spec=
13818 supports_anon_versioning=no
13819 case `$LD -v 2>&1` in
13820 *GNU\ gold*) supports_anon_versioning=yes ;;
13821 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13822 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13823 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13824 *\ 2.11.*) ;; # other 2.11 versions
13825 *) supports_anon_versioning=yes ;;
13828 # See if GNU ld supports shared libraries.
13831 # On AIX/PPC, the GNU linker is very broken
13832 if test "$host_cpu" != ia64; then
13836 *** Warning: the GNU linker, at least up to release 2.19, is reported
13837 *** to be unable to reliably create shared libraries on AIX.
13838 *** Therefore, libtool is disabling shared libraries support. If you
13839 *** really care for shared libraries, you may want to install binutils
13840 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13841 *** You will then need to restart the configuration process.
13850 # see comment about AmigaOS4 .so support
13851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13852 archive_expsym_cmds=''
13855 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)'
13856 hardcode_libdir_flag_spec='-L$libdir'
13857 hardcode_minus_L=yes
13863 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13864 allow_undefined_flag=unsupported
13865 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13866 # support --undefined. This deserves some investigation. FIXME
13867 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13873 cygwin* | mingw* | pw32* | cegcc*)
13874 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13875 # as there is no search path for DLLs.
13876 hardcode_libdir_flag_spec='-L$libdir'
13877 export_dynamic_flag_spec='${wl}--export-all-symbols'
13878 allow_undefined_flag=unsupported
13879 always_export_symbols=no
13880 enable_shared_with_static_runtimes=yes
13881 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'
13882 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13884 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13885 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13886 # If the export-symbols file already is a .def file (1st line
13887 # is EXPORTS), use it as is; otherwise, prepend...
13888 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13889 cp $export_symbols $output_objdir/$soname.def;
13891 echo EXPORTS > $output_objdir/$soname.def;
13892 cat $export_symbols >> $output_objdir/$soname.def;
13894 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13901 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13902 link_all_deplibs=yes
13907 hardcode_shlibpath_var=no
13908 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13909 export_dynamic_flag_spec='${wl}-E'
13910 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13911 # Instead, shared libraries are loaded at an image base (0x10000000 by
13912 # default) and relocated if they conflict, which is a slow very memory
13913 # consuming and fragmenting process. To avoid this, we pick a random,
13914 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13915 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13916 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13917 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'
13920 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13922 if test "$host_os" = linux-dietlibc; then
13923 case $cc_basename in
13924 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13927 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13928 && test "$tmp_diet" = no
13930 tmp_addflag=' $pic_flag'
13931 tmp_sharedflag='-shared'
13932 case $cc_basename,$host_cpu in
13933 pgcc*) # Portland Group C compiler
13934 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'
13935 tmp_addflag=' $pic_flag'
13937 pgf77* | pgf90* | pgf95* | pgfortran*)
13938 # Portland Group f77 and f90 compilers
13939 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'
13940 tmp_addflag=' $pic_flag -Mnomain' ;;
13941 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13942 tmp_addflag=' -i_dynamic' ;;
13943 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13944 tmp_addflag=' -i_dynamic -nofor_main' ;;
13945 ifc* | ifort*) # Intel Fortran compiler
13946 tmp_addflag=' -nofor_main' ;;
13947 lf95*) # Lahey Fortran 8.1
13948 whole_archive_flag_spec=
13949 tmp_sharedflag='--shared' ;;
13950 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13951 tmp_sharedflag='-qmkshrobj'
13953 nvcc*) # Cuda Compiler Driver 2.2
13954 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'
13955 compiler_needs_object=yes
13958 case `$CC -V 2>&1 | sed 5q` in
13959 *Sun\ C*) # Sun C 5.9
13960 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'
13961 compiler_needs_object=yes
13962 tmp_sharedflag='-G' ;;
13963 *Sun\ F*) # Sun Fortran 8.3
13964 tmp_sharedflag='-G' ;;
13966 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13968 if test "x$supports_anon_versioning" = xyes; then
13969 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13970 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13971 echo "local: *; };" >> $output_objdir/$libname.ver~
13972 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13975 case $cc_basename in
13976 xlf* | bgf* | bgxlf* | mpixlf*)
13977 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13978 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13979 hardcode_libdir_flag_spec=
13980 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13981 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13982 if test "x$supports_anon_versioning" = xyes; then
13983 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13984 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13985 echo "local: *; };" >> $output_objdir/$libname.ver~
13986 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13996 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13997 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14000 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14001 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14006 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14010 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14011 *** create shared libraries on Solaris systems. Therefore, libtool
14012 *** is disabling shared libraries support. We urge you to upgrade GNU
14013 *** binutils to release 2.9.1 or newer. Another option is to modify
14014 *** your PATH or compiler configuration so that the native linker is
14015 *** used, and then restart.
14018 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14019 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14020 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14026 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14027 case `$LD -v 2>&1` in
14028 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14032 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14033 *** reliably create shared libraries on SCO systems. Therefore, libtool
14034 *** is disabling shared libraries support. We urge you to upgrade GNU
14035 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14036 *** your PATH or compiler configuration so that the native linker is
14037 *** used, and then restart.
14042 # For security reasons, it is highly recommended that you always
14043 # use absolute paths for naming shared libraries, and exclude the
14044 # DT_RUNPATH tag from executables and libraries. But doing so
14045 # requires that you compile everything twice, which is a pain.
14046 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14047 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14048 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14049 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14058 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14060 hardcode_direct=yes
14061 hardcode_shlibpath_var=no
14065 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14066 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14067 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14074 if test "$ld_shlibs" = no; then
14076 hardcode_libdir_flag_spec=
14077 export_dynamic_flag_spec=
14078 whole_archive_flag_spec=
14081 # PORTME fill in a description of your system's linker (not GNU ld)
14084 allow_undefined_flag=unsupported
14085 always_export_symbols=yes
14086 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'
14087 # Note: this linker hardcodes the directories in LIBPATH if there
14088 # are no directories specified by -L.
14089 hardcode_minus_L=yes
14090 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14091 # Neither direct hardcoding nor static linking is supported with a
14093 hardcode_direct=unsupported
14098 if test "$host_cpu" = ia64; then
14099 # On IA64, the linker does run time linking by default, so we don't
14100 # have to do anything special.
14101 aix_use_runtimelinking=no
14102 exp_sym_flag='-Bexport'
14105 # If we're using GNU nm, then we don't want the "-C" option.
14106 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14107 # Also, AIX nm treats weak defined symbols like other global
14108 # defined symbols, whereas GNU nm marks them as "W".
14109 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14110 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14112 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
14114 aix_use_runtimelinking=no
14116 # Test if we are trying to use run time linking or normal
14117 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14118 # need to do runtime linking.
14119 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14120 for ld_flag in $LDFLAGS; do
14121 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14122 aix_use_runtimelinking=yes
14129 exp_sym_flag='-bexport'
14130 no_entry_flag='-bnoentry'
14133 # When large executables or shared objects are built, AIX ld can
14134 # have problems creating the table of contents. If linking a library
14135 # or program results in "error TOC overflow" add -mminimal-toc to
14136 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14137 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14140 hardcode_direct=yes
14141 hardcode_direct_absolute=yes
14142 hardcode_libdir_separator=':'
14143 link_all_deplibs=yes
14144 file_list_spec='${wl}-f,'
14146 if test "$GCC" = yes; then
14147 case $host_os in aix4.[012]|aix4.[012].*)
14148 # We only want to do this on AIX 4.2 and lower, the check
14149 # below for broken collect2 doesn't work under 4.3+
14150 collect2name=`${CC} -print-prog-name=collect2`
14151 if test -f "$collect2name" &&
14152 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14154 # We have reworked collect2
14157 # We have old collect2
14158 hardcode_direct=unsupported
14159 # It fails to find uninstalled libraries when the uninstalled
14160 # path is not listed in the libpath. Setting hardcode_minus_L
14161 # to unsupported forces relinking
14162 hardcode_minus_L=yes
14163 hardcode_libdir_flag_spec='-L$libdir'
14164 hardcode_libdir_separator=
14168 shared_flag='-shared'
14169 if test "$aix_use_runtimelinking" = yes; then
14170 shared_flag="$shared_flag "'${wl}-G'
14174 if test "$host_cpu" = ia64; then
14175 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14176 # chokes on -Wl,-G. The following line is correct:
14179 if test "$aix_use_runtimelinking" = yes; then
14180 shared_flag='${wl}-G'
14182 shared_flag='${wl}-bM:SRE'
14187 export_dynamic_flag_spec='${wl}-bexpall'
14188 # It seems that -bexpall does not export symbols beginning with
14189 # underscore (_), so it is better to generate a list of symbols to export.
14190 always_export_symbols=yes
14191 if test "$aix_use_runtimelinking" = yes; then
14192 # Warning - without using the other runtime loading flags (-brtl),
14193 # -berok will link without error, but may produce a broken library.
14194 allow_undefined_flag='-berok'
14195 # Determine the default libpath from the value encoded in an
14196 # empty executable.
14197 if test "${lt_cv_aix_libpath+set}" = set; then
14198 aix_libpath=$lt_cv_aix_libpath
14200 if ${lt_cv_aix_libpath_+:} false; then :
14201 $as_echo_n "(cached) " >&6
14203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204 /* end confdefs.h. */
14214 if ac_fn_c_try_link "$LINENO"; then :
14216 lt_aix_libpath_sed='
14217 /Import File Strings/,/^$/ {
14219 s/^0 *\([^ ]*\) *$/\1/
14223 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14224 # Check for a 64-bit object if we didn't find anything.
14225 if test -z "$lt_cv_aix_libpath_"; then
14226 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14229 rm -f core conftest.err conftest.$ac_objext \
14230 conftest$ac_exeext conftest.$ac_ext
14231 if test -z "$lt_cv_aix_libpath_"; then
14232 lt_cv_aix_libpath_="/usr/lib:/lib"
14237 aix_libpath=$lt_cv_aix_libpath_
14240 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14241 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14243 if test "$host_cpu" = ia64; then
14244 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14245 allow_undefined_flag="-z nodefs"
14246 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"
14248 # Determine the default libpath from the value encoded in an
14249 # empty executable.
14250 if test "${lt_cv_aix_libpath+set}" = set; then
14251 aix_libpath=$lt_cv_aix_libpath
14253 if ${lt_cv_aix_libpath_+:} false; then :
14254 $as_echo_n "(cached) " >&6
14256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14257 /* end confdefs.h. */
14267 if ac_fn_c_try_link "$LINENO"; then :
14269 lt_aix_libpath_sed='
14270 /Import File Strings/,/^$/ {
14272 s/^0 *\([^ ]*\) *$/\1/
14276 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14277 # Check for a 64-bit object if we didn't find anything.
14278 if test -z "$lt_cv_aix_libpath_"; then
14279 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14282 rm -f core conftest.err conftest.$ac_objext \
14283 conftest$ac_exeext conftest.$ac_ext
14284 if test -z "$lt_cv_aix_libpath_"; then
14285 lt_cv_aix_libpath_="/usr/lib:/lib"
14290 aix_libpath=$lt_cv_aix_libpath_
14293 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14294 # Warning - without using the other run time loading flags,
14295 # -berok will link without error, but may produce a broken library.
14296 no_undefined_flag=' ${wl}-bernotok'
14297 allow_undefined_flag=' ${wl}-berok'
14298 if test "$with_gnu_ld" = yes; then
14299 # We only use this code for GNU lds that support --whole-archive.
14300 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14302 # Exported symbols can be pulled into shared objects from archives
14303 whole_archive_flag_spec='$convenience'
14305 archive_cmds_need_lc=yes
14306 # This is similar to how AIX traditionally builds its shared libraries.
14307 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14315 # see comment about AmigaOS4 .so support
14316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14317 archive_expsym_cmds=''
14320 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)'
14321 hardcode_libdir_flag_spec='-L$libdir'
14322 hardcode_minus_L=yes
14328 export_dynamic_flag_spec=-rdynamic
14331 cygwin* | mingw* | pw32* | cegcc*)
14332 # When not using gcc, we currently assume that we are using
14333 # Microsoft Visual C++.
14334 # hardcode_libdir_flag_spec is actually meaningless, as there is
14335 # no search path for DLLs.
14336 case $cc_basename in
14339 hardcode_libdir_flag_spec=' '
14340 allow_undefined_flag=unsupported
14341 always_export_symbols=yes
14343 # Tell ltmain to make .lib files, not .a files.
14345 # Tell ltmain to make .dll files, not .so files.
14347 # FIXME: Setting linknames here is a bad hack.
14348 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14349 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14350 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14352 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14354 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14356 # The linker will not automatically build a static lib if we build a DLL.
14357 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14358 enable_shared_with_static_runtimes=yes
14359 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14361 old_postinstall_cmds='chmod 644 $oldlib'
14362 postlink_cmds='lt_outputfile="@OUTPUT@"~
14363 lt_tool_outputfile="@TOOL_OUTPUT@"~
14364 case $lt_outputfile in
14367 lt_outputfile="$lt_outputfile.exe"
14368 lt_tool_outputfile="$lt_tool_outputfile.exe"
14371 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14372 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14373 $RM "$lt_outputfile.manifest";
14377 # Assume MSVC wrapper
14378 hardcode_libdir_flag_spec=' '
14379 allow_undefined_flag=unsupported
14380 # Tell ltmain to make .lib files, not .a files.
14382 # Tell ltmain to make .dll files, not .so files.
14384 # FIXME: Setting linknames here is a bad hack.
14385 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14386 # The linker will automatically build a .lib file if we build a DLL.
14387 old_archive_from_new_cmds='true'
14388 # FIXME: Should let the user specify the lib program.
14389 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14390 enable_shared_with_static_runtimes=yes
14395 darwin* | rhapsody*)
14398 archive_cmds_need_lc=no
14400 hardcode_automatic=yes
14401 hardcode_shlibpath_var=unsupported
14402 if test "$lt_cv_ld_force_load" = "yes"; then
14403 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\"`'
14405 whole_archive_flag_spec=''
14407 link_all_deplibs=yes
14408 allow_undefined_flag="$_lt_dar_allow_undefined"
14409 case $cc_basename in
14410 ifort*) _lt_dar_can_shared=yes ;;
14411 *) _lt_dar_can_shared=$GCC ;;
14413 if test "$_lt_dar_can_shared" = "yes"; then
14414 output_verbose_link_cmd=func_echo_all
14415 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14416 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14417 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}"
14418 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}"
14427 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14428 hardcode_libdir_flag_spec='-L$libdir'
14429 hardcode_shlibpath_var=no
14436 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14437 # support. Future versions do this automatically, but an explicit c++rt0.o
14438 # does not break anything, and helps significantly (at the cost of a little
14441 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14442 hardcode_libdir_flag_spec='-R$libdir'
14443 hardcode_direct=yes
14444 hardcode_shlibpath_var=no
14447 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14449 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14450 hardcode_direct=yes
14451 hardcode_minus_L=yes
14452 hardcode_shlibpath_var=no
14455 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14456 freebsd* | dragonfly*)
14457 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14458 hardcode_libdir_flag_spec='-R$libdir'
14459 hardcode_direct=yes
14460 hardcode_shlibpath_var=no
14464 if test "$GCC" = yes; then
14465 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14467 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14469 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14470 hardcode_libdir_separator=:
14471 hardcode_direct=yes
14473 # hardcode_minus_L: Not really in the search PATH,
14474 # but as the default location of the library.
14475 hardcode_minus_L=yes
14476 export_dynamic_flag_spec='${wl}-E'
14480 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14481 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14483 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14485 if test "$with_gnu_ld" = no; then
14486 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14487 hardcode_libdir_flag_spec_ld='+b $libdir'
14488 hardcode_libdir_separator=:
14489 hardcode_direct=yes
14490 hardcode_direct_absolute=yes
14491 export_dynamic_flag_spec='${wl}-E'
14492 # hardcode_minus_L: Not really in the search PATH,
14493 # but as the default location of the library.
14494 hardcode_minus_L=yes
14499 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14502 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14505 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14508 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14514 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14517 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14521 # Older versions of the 11.00 compiler do not understand -b yet
14522 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14524 $as_echo_n "checking if $CC understands -b... " >&6; }
14525 if ${lt_cv_prog_compiler__b+:} false; then :
14526 $as_echo_n "(cached) " >&6
14528 lt_cv_prog_compiler__b=no
14529 save_LDFLAGS="$LDFLAGS"
14530 LDFLAGS="$LDFLAGS -b"
14531 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14532 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14533 # The linker can only warn and ignore the option if not recognized
14534 # So say no if there are warnings
14535 if test -s conftest.err; then
14536 # Append any errors to the config.log.
14537 cat conftest.err 1>&5
14538 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14539 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14540 if diff conftest.exp conftest.er2 >/dev/null; then
14541 lt_cv_prog_compiler__b=yes
14544 lt_cv_prog_compiler__b=yes
14548 LDFLAGS="$save_LDFLAGS"
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14552 $as_echo "$lt_cv_prog_compiler__b" >&6; }
14554 if test x"$lt_cv_prog_compiler__b" = xyes; then
14555 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14557 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14563 if test "$with_gnu_ld" = no; then
14564 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14565 hardcode_libdir_separator=:
14570 hardcode_shlibpath_var=no
14573 hardcode_direct=yes
14574 hardcode_direct_absolute=yes
14575 export_dynamic_flag_spec='${wl}-E'
14577 # hardcode_minus_L: Not really in the search PATH,
14578 # but as the default location of the library.
14579 hardcode_minus_L=yes
14585 irix5* | irix6* | nonstopux*)
14586 if test "$GCC" = yes; then
14587 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'
14588 # Try to use the -exported_symbol ld option, if it does not
14589 # work, assume that -exports_file does not work either and
14590 # implicitly export all symbols.
14591 # This should be the same for all languages, so no per-tag cache variable.
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14593 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14594 if ${lt_cv_irix_exported_symbol+:} false; then :
14595 $as_echo_n "(cached) " >&6
14597 save_LDFLAGS="$LDFLAGS"
14598 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14600 /* end confdefs.h. */
14601 int foo (void) { return 0; }
14603 if ac_fn_c_try_link "$LINENO"; then :
14604 lt_cv_irix_exported_symbol=yes
14606 lt_cv_irix_exported_symbol=no
14608 rm -f core conftest.err conftest.$ac_objext \
14609 conftest$ac_exeext conftest.$ac_ext
14610 LDFLAGS="$save_LDFLAGS"
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14613 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
14614 if test "$lt_cv_irix_exported_symbol" = yes; then
14615 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'
14618 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'
14619 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'
14621 archive_cmds_need_lc='no'
14622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14623 hardcode_libdir_separator=:
14625 link_all_deplibs=yes
14629 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14630 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14632 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14634 hardcode_libdir_flag_spec='-R$libdir'
14635 hardcode_direct=yes
14636 hardcode_shlibpath_var=no
14640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14641 hardcode_direct=yes
14642 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14643 hardcode_libdir_separator=:
14644 hardcode_shlibpath_var=no
14651 if test -f /usr/libexec/ld.so; then
14652 hardcode_direct=yes
14653 hardcode_shlibpath_var=no
14654 hardcode_direct_absolute=yes
14655 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14656 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14657 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14658 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14659 export_dynamic_flag_spec='${wl}-E'
14662 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14663 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14664 hardcode_libdir_flag_spec='-R$libdir'
14667 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14668 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14678 hardcode_libdir_flag_spec='-L$libdir'
14679 hardcode_minus_L=yes
14680 allow_undefined_flag=unsupported
14681 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
14682 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14686 if test "$GCC" = yes; then
14687 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14688 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'
14690 allow_undefined_flag=' -expect_unresolved \*'
14691 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'
14693 archive_cmds_need_lc='no'
14694 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14695 hardcode_libdir_separator=:
14698 osf4* | osf5*) # as osf3* with the addition of -msym flag
14699 if test "$GCC" = yes; then
14700 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14701 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'
14702 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14704 allow_undefined_flag=' -expect_unresolved \*'
14705 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'
14706 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~
14707 $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'
14709 # Both c and cxx compiler support -rpath directly
14710 hardcode_libdir_flag_spec='-rpath $libdir'
14712 archive_cmds_need_lc='no'
14713 hardcode_libdir_separator=:
14717 no_undefined_flag=' -z defs'
14718 if test "$GCC" = yes; then
14720 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14721 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14722 $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'
14724 case `$CC -V 2>&1` in
14727 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14728 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14729 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14733 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14734 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14735 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14739 hardcode_libdir_flag_spec='-R$libdir'
14740 hardcode_shlibpath_var=no
14742 solaris2.[0-5] | solaris2.[0-5].*) ;;
14744 # The compiler driver will combine and reorder linker options,
14745 # but understands `-z linker_flag'. GCC discards it without `$wl',
14746 # but is careful enough not to reorder.
14747 # Supported since Solaris 2.6 (maybe 2.5.1?)
14748 if test "$GCC" = yes; then
14749 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14751 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14755 link_all_deplibs=yes
14759 if test "x$host_vendor" = xsequent; then
14760 # Use $CC to link under sequent, because it throws in some extra .o
14761 # files that make .init and .fini sections work.
14762 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14764 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14766 hardcode_libdir_flag_spec='-L$libdir'
14767 hardcode_direct=yes
14768 hardcode_minus_L=yes
14769 hardcode_shlibpath_var=no
14773 case $host_vendor in
14775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14776 hardcode_direct=yes # is this really true???
14779 ## LD is ld it makes a PLAMLIB
14780 ## CC just makes a GrossModule.
14781 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14782 reload_cmds='$CC -r -o $output$reload_objs'
14786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14787 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14790 runpath_var='LD_RUN_PATH'
14791 hardcode_shlibpath_var=no
14795 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14796 hardcode_shlibpath_var=no
14797 export_dynamic_flag_spec='-Bexport'
14801 if test -d /usr/nec; then
14802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14803 hardcode_shlibpath_var=no
14804 runpath_var=LD_RUN_PATH
14805 hardcode_runpath_var=yes
14810 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14811 no_undefined_flag='${wl}-z,text'
14812 archive_cmds_need_lc=no
14813 hardcode_shlibpath_var=no
14814 runpath_var='LD_RUN_PATH'
14816 if test "$GCC" = yes; then
14817 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14818 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14820 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14821 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14825 sysv5* | sco3.2v5* | sco5v6*)
14826 # Note: We can NOT use -z defs as we might desire, because we do not
14827 # link with -lc, and that would cause any symbols used from libc to
14828 # always be unresolved, which means just about no library would
14829 # ever link correctly. If we're not using GNU ld we use -z text
14830 # though, which does catch some bad symbols but isn't as heavy-handed
14832 no_undefined_flag='${wl}-z,text'
14833 allow_undefined_flag='${wl}-z,nodefs'
14834 archive_cmds_need_lc=no
14835 hardcode_shlibpath_var=no
14836 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14837 hardcode_libdir_separator=':'
14838 link_all_deplibs=yes
14839 export_dynamic_flag_spec='${wl}-Bexport'
14840 runpath_var='LD_RUN_PATH'
14842 if test "$GCC" = yes; then
14843 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14844 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14846 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14847 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14853 hardcode_libdir_flag_spec='-L$libdir'
14854 hardcode_shlibpath_var=no
14862 if test x$host_vendor = xsni; then
14864 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14865 export_dynamic_flag_spec='${wl}-Blargedynsym'
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14872 $as_echo "$ld_shlibs" >&6; }
14873 test "$ld_shlibs" = no && can_build_shared=no
14875 with_gnu_ld=$with_gnu_ld
14892 # Do we need to explicitly link libc?
14894 case "x$archive_cmds_need_lc" in
14896 # Assume -lc should be added
14897 archive_cmds_need_lc=yes
14899 if test "$enable_shared" = yes && test "$GCC" = yes; then
14900 case $archive_cmds in
14902 # FIXME: we may have to deal with multi-command sequences.
14905 # Test whether the compiler implicitly links with -lc since on some
14906 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14907 # to ld, don't add -lc before -lgcc.
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14909 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14910 if ${lt_cv_archive_cmds_need_lc+:} false; then :
14911 $as_echo_n "(cached) " >&6
14914 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14917 (eval $ac_compile) 2>&5
14919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14920 test $ac_status = 0; } 2>conftest.err; then
14923 libobjs=conftest.$ac_objext
14925 wl=$lt_prog_compiler_wl
14926 pic_flag=$lt_prog_compiler_pic
14932 lt_save_allow_undefined_flag=$allow_undefined_flag
14933 allow_undefined_flag=
14934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14935 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14938 test $ac_status = 0; }
14940 lt_cv_archive_cmds_need_lc=no
14942 lt_cv_archive_cmds_need_lc=yes
14944 allow_undefined_flag=$lt_save_allow_undefined_flag
14946 cat conftest.err 1>&5
14951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14952 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14953 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15117 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15119 if test "$GCC" = yes; then
15121 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15122 *) lt_awk_arg="/^libraries:/" ;;
15125 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15126 *) lt_sed_strip_eq="s,=/,/,g" ;;
15128 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15129 case $lt_search_path_spec in
15131 # if the path contains ";" then we assume it to be the separator
15132 # otherwise default to the standard path separator (i.e. ":") - it is
15133 # assumed that no part of a normal pathname contains ";" but that should
15134 # okay in the real world where ";" in dirpaths is itself problematic.
15135 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15138 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15141 # Ok, now we have the path, separated by spaces, we can step through it
15142 # and add multilib dir if necessary.
15143 lt_tmp_lt_search_path_spec=
15144 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15145 for lt_sys_path in $lt_search_path_spec; do
15146 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15147 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15149 test -d "$lt_sys_path" && \
15150 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15153 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15154 BEGIN {RS=" "; FS="/|\n";} {
15157 for (lt_i = NF; lt_i > 0; lt_i--) {
15158 if ($lt_i != "" && $lt_i != ".") {
15159 if ($lt_i == "..") {
15162 if (lt_count == 0) {
15163 lt_foo="/" $lt_i lt_foo;
15170 if (lt_foo != "") { lt_freq[lt_foo]++; }
15171 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15173 # AWK program above erroneously prepends '/' to C:/dos/paths
15176 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15177 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15179 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15181 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15183 library_names_spec=
15184 libname_spec='lib$name'
15188 postuninstall_cmds=
15192 shlibpath_overrides_runpath=unknown
15194 dynamic_linker="$host_os ld.so"
15195 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15196 need_lib_prefix=unknown
15197 hardcode_into_libs=no
15199 # when you set need_version to no, make sure it does not cause -set_version
15200 # flags to be left without arguments
15201 need_version=unknown
15206 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15207 shlibpath_var=LIBPATH
15209 # AIX 3 has no versioning support, so we append a major version to the name.
15210 soname_spec='${libname}${release}${shared_ext}$major'
15217 hardcode_into_libs=yes
15218 if test "$host_cpu" = ia64; then
15219 # AIX 5 supports IA64
15220 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15221 shlibpath_var=LD_LIBRARY_PATH
15223 # With GCC up to 2.95.x, collect2 would create an import file
15224 # for dependence libraries. The import file would start with
15225 # the line `#! .'. This would cause the generated library to
15226 # depend on `.', always an invalid library. This was fixed in
15227 # development snapshots of GCC prior to 3.0.
15229 aix4 | aix4.[01] | aix4.[01].*)
15230 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15232 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15235 can_build_shared=no
15239 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15240 # soname into executable. Probably we can add versioning support to
15241 # collect2, so additional links can be useful in future.
15242 if test "$aix_use_runtimelinking" = yes; then
15243 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15244 # instead of lib<name>.a to let people know that these are not
15245 # typical AIX shared libraries.
15246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15248 # We preserve .a as extension for shared libraries through AIX4.2
15249 # and later when we are not doing run time linking.
15250 library_names_spec='${libname}${release}.a $libname.a'
15251 soname_spec='${libname}${release}${shared_ext}$major'
15253 shlibpath_var=LIBPATH
15260 # Since July 2007 AmigaOS4 officially supports .so libraries.
15261 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15265 library_names_spec='$libname.ixlibrary $libname.a'
15266 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15267 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15273 library_names_spec='${libname}${shared_ext}'
15274 dynamic_linker="$host_os ld.so"
15275 shlibpath_var=LIBRARY_PATH
15281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15282 soname_spec='${libname}${release}${shared_ext}$major'
15283 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15284 shlibpath_var=LD_LIBRARY_PATH
15285 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15286 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15287 # the default ld.so.conf also contains /usr/contrib/lib and
15288 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15289 # libtool to hard-code these into programs
15292 cygwin* | mingw* | pw32* | cegcc*)
15293 version_type=windows
15298 case $GCC,$cc_basename in
15301 library_names_spec='$libname.dll.a'
15302 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15303 postinstall_cmds='base_file=`basename \${file}`~
15304 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15305 dldir=$destdir/`dirname \$dlpath`~
15306 test -d \$dldir || mkdir -p \$dldir~
15307 $install_prog $dir/$dlname \$dldir/$dlname~
15308 chmod a+x \$dldir/$dlname~
15309 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15310 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15312 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15313 dlpath=$dir/\$dldll~
15315 shlibpath_overrides_runpath=yes
15319 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15320 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15322 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15325 # MinGW DLLs use traditional 'lib' prefix
15326 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15329 # pw32 DLLs use 'pw' prefix rather than 'lib'
15330 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15333 dynamic_linker='Win32 ld.exe'
15338 libname_spec='$name'
15339 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15340 library_names_spec='${libname}.dll.lib'
15344 sys_lib_search_path_spec=
15347 for lt_path in $LIB
15350 # Let DOS variable expansion print the short 8.3 style file name.
15351 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15352 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15355 # Convert to MSYS style.
15356 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15359 # Convert to unix form, then to dos form, then back to unix form
15360 # but this time dos style (no spaces!) so that the unix form looks
15361 # like /cygdrive/c/PROGRA~1:/cygdr...
15362 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15363 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15364 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15367 sys_lib_search_path_spec="$LIB"
15368 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15369 # It is most probably a Windows format PATH.
15370 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15372 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15374 # FIXME: find the short name or the path components, as spaces are
15375 # common. (e.g. "Program Files" -> "PROGRA~1")
15379 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15380 postinstall_cmds='base_file=`basename \${file}`~
15381 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15382 dldir=$destdir/`dirname \$dlpath`~
15383 test -d \$dldir || mkdir -p \$dldir~
15384 $install_prog $dir/$dlname \$dldir/$dlname'
15385 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15386 dlpath=$dir/\$dldll~
15388 shlibpath_overrides_runpath=yes
15389 dynamic_linker='Win32 link.exe'
15393 # Assume MSVC wrapper
15394 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15395 dynamic_linker='Win32 ld.exe'
15398 # FIXME: first we should search . and the directory the executable is in
15402 darwin* | rhapsody*)
15403 dynamic_linker="$host_os dyld"
15404 version_type=darwin
15407 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15408 soname_spec='${libname}${release}${major}$shared_ext'
15409 shlibpath_overrides_runpath=yes
15410 shlibpath_var=DYLD_LIBRARY_PATH
15411 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15413 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15414 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15422 soname_spec='${libname}${release}${shared_ext}$major'
15423 shlibpath_var=LD_LIBRARY_PATH
15430 freebsd* | dragonfly*)
15431 # DragonFly does not have aout. When/if they implement a new
15432 # versioning mechanism, adjust this.
15433 if test -x /usr/bin/objformat; then
15434 objformat=`/usr/bin/objformat`
15437 freebsd[123]*) objformat=aout ;;
15438 *) objformat=elf ;;
15441 version_type=freebsd-$objformat
15442 case $version_type in
15444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15449 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15453 shlibpath_var=LD_LIBRARY_PATH
15456 shlibpath_overrides_runpath=yes
15458 freebsd3.[01]* | freebsdelf3.[01]*)
15459 shlibpath_overrides_runpath=yes
15460 hardcode_into_libs=yes
15462 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15463 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15464 shlibpath_overrides_runpath=no
15465 hardcode_into_libs=yes
15467 *) # from 4.6 on, and DragonFly
15468 shlibpath_overrides_runpath=yes
15469 hardcode_into_libs=yes
15478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15479 soname_spec='${libname}${release}${shared_ext}$major'
15480 shlibpath_var=LD_LIBRARY_PATH
15481 hardcode_into_libs=yes
15488 dynamic_linker="$host_os runtime_loader"
15489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15490 soname_spec='${libname}${release}${shared_ext}$major'
15491 shlibpath_var=LIBRARY_PATH
15492 shlibpath_overrides_runpath=yes
15493 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15494 hardcode_into_libs=yes
15497 hpux9* | hpux10* | hpux11*)
15498 # Give a soname corresponding to the major version so that dld.sl refuses to
15499 # link against other versions.
15506 hardcode_into_libs=yes
15507 dynamic_linker="$host_os dld.so"
15508 shlibpath_var=LD_LIBRARY_PATH
15509 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15511 soname_spec='${libname}${release}${shared_ext}$major'
15512 if test "X$HPUX_IA64_MODE" = X32; then
15513 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15515 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15517 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15521 hardcode_into_libs=yes
15522 dynamic_linker="$host_os dld.sl"
15523 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15524 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15526 soname_spec='${libname}${release}${shared_ext}$major'
15527 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15528 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15532 dynamic_linker="$host_os dld.sl"
15533 shlibpath_var=SHLIB_PATH
15534 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15536 soname_spec='${libname}${release}${shared_ext}$major'
15539 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15540 postinstall_cmds='chmod 555 $lib'
15541 # or fails outright, so override atomically:
15542 install_override_mode=555
15549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15550 soname_spec='${libname}${release}${shared_ext}$major'
15551 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15552 shlibpath_var=LD_LIBRARY_PATH
15553 shlibpath_overrides_runpath=no
15554 hardcode_into_libs=yes
15557 irix5* | irix6* | nonstopux*)
15559 nonstopux*) version_type=nonstopux ;;
15561 if test "$lt_cv_prog_gnu_ld" = yes; then
15569 soname_spec='${libname}${release}${shared_ext}$major'
15570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15572 irix5* | nonstopux*)
15573 libsuff= shlibsuff=
15576 case $LD in # libtool.m4 will add one of these switches to LD
15577 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15578 libsuff= shlibsuff= libmagic=32-bit;;
15579 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15580 libsuff=32 shlibsuff=N32 libmagic=N32;;
15581 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15582 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15583 *) libsuff= shlibsuff= libmagic=never-match;;
15587 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15588 shlibpath_overrides_runpath=no
15589 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15590 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15591 hardcode_into_libs=yes
15594 # No shared lib support for Linux oldld, aout, or coff.
15595 linux*oldld* | linux*aout* | linux*coff*)
15599 # This must be Linux ELF.
15600 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15605 soname_spec='${libname}${release}${shared_ext}$major'
15606 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15607 shlibpath_var=LD_LIBRARY_PATH
15608 shlibpath_overrides_runpath=no
15610 # Some binutils ld are patched to set DT_RUNPATH
15611 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15612 $as_echo_n "(cached) " >&6
15614 lt_cv_shlibpath_overrides_runpath=no
15615 save_LDFLAGS=$LDFLAGS
15616 save_libdir=$libdir
15617 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15618 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15620 /* end confdefs.h. */
15630 if ac_fn_c_try_link "$LINENO"; then :
15631 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15632 lt_cv_shlibpath_overrides_runpath=yes
15635 rm -f core conftest.err conftest.$ac_objext \
15636 conftest$ac_exeext conftest.$ac_ext
15637 LDFLAGS=$save_LDFLAGS
15638 libdir=$save_libdir
15642 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15644 # This implies no fast_install, which is unacceptable.
15645 # Some rework will be needed to allow for fast_install
15646 # before this can be enabled.
15647 hardcode_into_libs=yes
15649 # Add ABI-specific directories to the system library path.
15650 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15652 # Append ld.so.conf contents to the search path
15653 if test -f /etc/ld.so.conf; then
15654 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' ' '`
15655 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15659 # We used to test for /lib/ld.so.1 and disable shared libraries on
15660 # powerpc, because MkLinux only supported shared libraries with the
15661 # GNU dynamic linker. Since this was broken with cross compilers,
15662 # most powerpc-linux boxes support dynamic linking these days and
15663 # people can always --disable-shared, the test was removed, and we
15664 # assume the GNU/Linux dynamic linker is in use.
15665 dynamic_linker='GNU/Linux ld.so'
15672 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15674 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15675 dynamic_linker='NetBSD (a.out) ld.so'
15677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15678 soname_spec='${libname}${release}${shared_ext}$major'
15679 dynamic_linker='NetBSD ld.elf_so'
15681 shlibpath_var=LD_LIBRARY_PATH
15682 shlibpath_overrides_runpath=yes
15683 hardcode_into_libs=yes
15688 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15689 shlibpath_var=LD_LIBRARY_PATH
15690 shlibpath_overrides_runpath=yes
15697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15698 soname_spec='${libname}${release}${shared_ext}$major'
15699 shlibpath_var=LD_LIBRARY_PATH
15700 shlibpath_overrides_runpath=no
15701 hardcode_into_libs=yes
15702 dynamic_linker='ldqnx.so'
15707 sys_lib_dlsearch_path_spec="/usr/lib"
15709 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15711 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15712 *) need_version=no ;;
15714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15715 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15716 shlibpath_var=LD_LIBRARY_PATH
15717 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15719 openbsd2.[89] | openbsd2.[89].*)
15720 shlibpath_overrides_runpath=no
15723 shlibpath_overrides_runpath=yes
15727 shlibpath_overrides_runpath=yes
15732 libname_spec='$name'
15735 library_names_spec='$libname${shared_ext} $libname.a'
15736 dynamic_linker='OS/2 ld.exe'
15737 shlibpath_var=LIBPATH
15740 osf3* | osf4* | osf5*)
15744 soname_spec='${libname}${release}${shared_ext}$major'
15745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15746 shlibpath_var=LD_LIBRARY_PATH
15747 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15748 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15760 soname_spec='${libname}${release}${shared_ext}$major'
15761 shlibpath_var=LD_LIBRARY_PATH
15762 shlibpath_overrides_runpath=yes
15763 hardcode_into_libs=yes
15764 # ldd complains unless libraries are executable
15765 postinstall_cmds='chmod +x $lib'
15770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15771 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15772 shlibpath_var=LD_LIBRARY_PATH
15773 shlibpath_overrides_runpath=yes
15774 if test "$with_gnu_ld" = yes; then
15782 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15783 soname_spec='${libname}${release}${shared_ext}$major'
15784 shlibpath_var=LD_LIBRARY_PATH
15785 case $host_vendor in
15787 shlibpath_overrides_runpath=no
15789 runpath_var=LD_RUN_PATH
15797 shlibpath_overrides_runpath=no
15798 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15804 if test -d /usr/nec ;then
15806 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15807 soname_spec='$libname${shared_ext}.$major'
15808 shlibpath_var=LD_LIBRARY_PATH
15812 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15813 version_type=freebsd-elf
15816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15817 soname_spec='${libname}${release}${shared_ext}$major'
15818 shlibpath_var=LD_LIBRARY_PATH
15819 shlibpath_overrides_runpath=yes
15820 hardcode_into_libs=yes
15821 if test "$with_gnu_ld" = yes; then
15822 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15824 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15827 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15831 sys_lib_dlsearch_path_spec='/usr/lib'
15835 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15840 shlibpath_var=LD_LIBRARY_PATH
15841 shlibpath_overrides_runpath=no
15842 hardcode_into_libs=yes
15847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15848 soname_spec='${libname}${release}${shared_ext}$major'
15849 shlibpath_var=LD_LIBRARY_PATH
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15857 $as_echo "$dynamic_linker" >&6; }
15858 test "$dynamic_linker" = no && can_build_shared=no
15860 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15861 if test "$GCC" = yes; then
15862 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15865 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15866 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15868 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15869 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15964 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15966 if test -n "$hardcode_libdir_flag_spec" ||
15967 test -n "$runpath_var" ||
15968 test "X$hardcode_automatic" = "Xyes" ; then
15970 # We can hardcode non-existent directories.
15971 if test "$hardcode_direct" != no &&
15972 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15973 # have to relink, otherwise we might link with an installed library
15974 # when we should be linking with a yet-to-be-installed one
15975 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15976 test "$hardcode_minus_L" != no; then
15977 # Linking always hardcodes the temporary library directory.
15978 hardcode_action=relink
15980 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15981 hardcode_action=immediate
15984 # We cannot hardcode anything, or else we can only hardcode existing
15986 hardcode_action=unsupported
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15989 $as_echo "$hardcode_action" >&6; }
15991 if test "$hardcode_action" = relink ||
15992 test "$inherit_rpath" = yes; then
15993 # Fast installation is not supported
15994 enable_fast_install=no
15995 elif test "$shlibpath_overrides_runpath" = yes ||
15996 test "$enable_shared" = no; then
15997 # Fast installation is not necessary
15998 enable_fast_install=needless
16006 if test "x$enable_dlopen" != xyes; then
16007 enable_dlopen=unknown
16008 enable_dlopen_self=unknown
16009 enable_dlopen_self_static=unknown
16016 lt_cv_dlopen="load_add_on"
16018 lt_cv_dlopen_self=yes
16021 mingw* | pw32* | cegcc*)
16022 lt_cv_dlopen="LoadLibrary"
16027 lt_cv_dlopen="dlopen"
16032 # if libdl is installed we need to link against it
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16034 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16035 if ${ac_cv_lib_dl_dlopen+:} false; then :
16036 $as_echo_n "(cached) " >&6
16038 ac_check_lib_save_LIBS=$LIBS
16040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041 /* end confdefs.h. */
16043 /* Override any GCC internal prototype to avoid an error.
16044 Use char because int might match the return type of a GCC
16045 builtin and then its argument prototype would still apply. */
16058 if ac_fn_c_try_link "$LINENO"; then :
16059 ac_cv_lib_dl_dlopen=yes
16061 ac_cv_lib_dl_dlopen=no
16063 rm -f core conftest.err conftest.$ac_objext \
16064 conftest$ac_exeext conftest.$ac_ext
16065 LIBS=$ac_check_lib_save_LIBS
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16068 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16069 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16070 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16073 lt_cv_dlopen="dyld"
16075 lt_cv_dlopen_self=yes
16082 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16083 if test "x$ac_cv_func_shl_load" = xyes; then :
16084 lt_cv_dlopen="shl_load"
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16087 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16088 if ${ac_cv_lib_dld_shl_load+:} false; then :
16089 $as_echo_n "(cached) " >&6
16091 ac_check_lib_save_LIBS=$LIBS
16093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16094 /* end confdefs.h. */
16096 /* Override any GCC internal prototype to avoid an error.
16097 Use char because int might match the return type of a GCC
16098 builtin and then its argument prototype would still apply. */
16106 return shl_load ();
16111 if ac_fn_c_try_link "$LINENO"; then :
16112 ac_cv_lib_dld_shl_load=yes
16114 ac_cv_lib_dld_shl_load=no
16116 rm -f core conftest.err conftest.$ac_objext \
16117 conftest$ac_exeext conftest.$ac_ext
16118 LIBS=$ac_check_lib_save_LIBS
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16121 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16122 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16123 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16125 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16126 if test "x$ac_cv_func_dlopen" = xyes; then :
16127 lt_cv_dlopen="dlopen"
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16130 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16131 if ${ac_cv_lib_dl_dlopen+:} false; then :
16132 $as_echo_n "(cached) " >&6
16134 ac_check_lib_save_LIBS=$LIBS
16136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16137 /* end confdefs.h. */
16139 /* Override any GCC internal prototype to avoid an error.
16140 Use char because int might match the return type of a GCC
16141 builtin and then its argument prototype would still apply. */
16154 if ac_fn_c_try_link "$LINENO"; then :
16155 ac_cv_lib_dl_dlopen=yes
16157 ac_cv_lib_dl_dlopen=no
16159 rm -f core conftest.err conftest.$ac_objext \
16160 conftest$ac_exeext conftest.$ac_ext
16161 LIBS=$ac_check_lib_save_LIBS
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16164 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16165 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16166 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16169 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16170 if ${ac_cv_lib_svld_dlopen+:} false; then :
16171 $as_echo_n "(cached) " >&6
16173 ac_check_lib_save_LIBS=$LIBS
16174 LIBS="-lsvld $LIBS"
16175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16176 /* end confdefs.h. */
16178 /* Override any GCC internal prototype to avoid an error.
16179 Use char because int might match the return type of a GCC
16180 builtin and then its argument prototype would still apply. */
16193 if ac_fn_c_try_link "$LINENO"; then :
16194 ac_cv_lib_svld_dlopen=yes
16196 ac_cv_lib_svld_dlopen=no
16198 rm -f core conftest.err conftest.$ac_objext \
16199 conftest$ac_exeext conftest.$ac_ext
16200 LIBS=$ac_check_lib_save_LIBS
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16203 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16204 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16205 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16208 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16209 if ${ac_cv_lib_dld_dld_link+:} false; then :
16210 $as_echo_n "(cached) " >&6
16212 ac_check_lib_save_LIBS=$LIBS
16214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16215 /* end confdefs.h. */
16217 /* Override any GCC internal prototype to avoid an error.
16218 Use char because int might match the return type of a GCC
16219 builtin and then its argument prototype would still apply. */
16227 return dld_link ();
16232 if ac_fn_c_try_link "$LINENO"; then :
16233 ac_cv_lib_dld_dld_link=yes
16235 ac_cv_lib_dld_dld_link=no
16237 rm -f core conftest.err conftest.$ac_objext \
16238 conftest$ac_exeext conftest.$ac_ext
16239 LIBS=$ac_check_lib_save_LIBS
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16242 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16243 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16244 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16265 if test "x$lt_cv_dlopen" != xno; then
16271 case $lt_cv_dlopen in
16273 save_CPPFLAGS="$CPPFLAGS"
16274 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16276 save_LDFLAGS="$LDFLAGS"
16277 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16280 LIBS="$lt_cv_dlopen_libs $LIBS"
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16283 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16284 if ${lt_cv_dlopen_self+:} false; then :
16285 $as_echo_n "(cached) " >&6
16287 if test "$cross_compiling" = yes; then :
16288 lt_cv_dlopen_self=cross
16290 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16291 lt_status=$lt_dlunknown
16292 cat > conftest.$ac_ext <<_LT_EOF
16293 #line $LINENO "configure"
16294 #include "confdefs.h"
16303 # define LT_DLGLOBAL RTLD_GLOBAL
16306 # define LT_DLGLOBAL DL_GLOBAL
16308 # define LT_DLGLOBAL 0
16312 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16313 find out it does not work in some platform. */
16314 #ifndef LT_DLLAZY_OR_NOW
16316 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16319 # define LT_DLLAZY_OR_NOW DL_LAZY
16322 # define LT_DLLAZY_OR_NOW RTLD_NOW
16325 # define LT_DLLAZY_OR_NOW DL_NOW
16327 # define LT_DLLAZY_OR_NOW 0
16334 /* When -fvisbility=hidden is used, assume the code has been annotated
16335 correspondingly for the symbols needed. */
16336 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16337 int fnord () __attribute__((visibility("default")));
16340 int fnord () { return 42; }
16343 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16344 int status = $lt_dlunknown;
16348 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16351 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16352 else puts (dlerror ());
16354 /* dlclose (self); */
16362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16363 (eval $ac_link) 2>&5
16365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16366 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16367 (./conftest; exit; ) >&5 2>/dev/null
16369 case x$lt_status in
16370 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16371 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16372 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16375 # compilation failed
16376 lt_cv_dlopen_self=no
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16384 $as_echo "$lt_cv_dlopen_self" >&6; }
16386 if test "x$lt_cv_dlopen_self" = xyes; then
16387 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16389 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16390 if ${lt_cv_dlopen_self_static+:} false; then :
16391 $as_echo_n "(cached) " >&6
16393 if test "$cross_compiling" = yes; then :
16394 lt_cv_dlopen_self_static=cross
16396 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16397 lt_status=$lt_dlunknown
16398 cat > conftest.$ac_ext <<_LT_EOF
16399 #line $LINENO "configure"
16400 #include "confdefs.h"
16409 # define LT_DLGLOBAL RTLD_GLOBAL
16412 # define LT_DLGLOBAL DL_GLOBAL
16414 # define LT_DLGLOBAL 0
16418 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16419 find out it does not work in some platform. */
16420 #ifndef LT_DLLAZY_OR_NOW
16422 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16425 # define LT_DLLAZY_OR_NOW DL_LAZY
16428 # define LT_DLLAZY_OR_NOW RTLD_NOW
16431 # define LT_DLLAZY_OR_NOW DL_NOW
16433 # define LT_DLLAZY_OR_NOW 0
16440 /* When -fvisbility=hidden is used, assume the code has been annotated
16441 correspondingly for the symbols needed. */
16442 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16443 int fnord () __attribute__((visibility("default")));
16446 int fnord () { return 42; }
16449 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16450 int status = $lt_dlunknown;
16454 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16457 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16458 else puts (dlerror ());
16460 /* dlclose (self); */
16468 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16469 (eval $ac_link) 2>&5
16471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16472 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16473 (./conftest; exit; ) >&5 2>/dev/null
16475 case x$lt_status in
16476 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16477 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16478 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16481 # compilation failed
16482 lt_cv_dlopen_self_static=no
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16490 $as_echo "$lt_cv_dlopen_self_static" >&6; }
16493 CPPFLAGS="$save_CPPFLAGS"
16494 LDFLAGS="$save_LDFLAGS"
16499 case $lt_cv_dlopen_self in
16500 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16501 *) enable_dlopen_self=unknown ;;
16504 case $lt_cv_dlopen_self_static in
16505 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16506 *) enable_dlopen_self_static=unknown ;;
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16529 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16530 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16531 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16532 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16534 $as_echo "yes" >&6; }
16536 # FIXME - insert some real tests, host_os isn't really good enough
16539 if test -n "$STRIP" ; then
16540 striplib="$STRIP -x"
16541 old_striplib="$STRIP -S"
16542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16543 $as_echo "yes" >&6; }
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16546 $as_echo "no" >&6; }
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16551 $as_echo "no" >&6; }
16567 # Report which library types will actually be built
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16569 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16571 $as_echo "$can_build_shared" >&6; }
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16574 $as_echo_n "checking whether to build shared libraries... " >&6; }
16575 test "$can_build_shared" = "no" && enable_shared=no
16577 # On AIX, shared libraries and static libraries use the same namespace, and
16578 # are all built from PIC.
16581 test "$enable_shared" = yes && enable_static=no
16582 if test -n "$RANLIB"; then
16583 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16584 postinstall_cmds='$RANLIB $lib'
16589 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16590 test "$enable_shared" = yes && enable_static=no
16594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16595 $as_echo "$enable_shared" >&6; }
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16598 $as_echo_n "checking whether to build static libraries... " >&6; }
16599 # Make sure either enable_shared or enable_static is yes.
16600 test "$enable_shared" = yes || enable_static=yes
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16602 $as_echo "$enable_static" >&6; }
16609 ac_cpp='$CPP $CPPFLAGS'
16610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16616 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16617 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16618 (test "X$CXX" != "Xg++"))) ; then
16620 ac_cpp='$CXXCPP $CPPFLAGS'
16621 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16622 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16623 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16625 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16626 if test -z "$CXXCPP"; then
16627 if ${ac_cv_prog_CXXCPP+:} false; then :
16628 $as_echo_n "(cached) " >&6
16630 # Double quotes because CXXCPP needs to be expanded
16631 for CXXCPP in "$CXX -E" "/lib/cpp"
16633 ac_preproc_ok=false
16634 for ac_cxx_preproc_warn_flag in '' yes
16636 # Use a header file that comes with gcc, so configuring glibc
16637 # with a fresh cross-compiler works.
16638 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16639 # <limits.h> exists even on freestanding compilers.
16640 # On the NeXT, cc -E runs the code through the compiler's parser,
16641 # not just through cpp. "Syntax error" is here to catch this case.
16642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16643 /* end confdefs.h. */
16645 # include <limits.h>
16647 # include <assert.h>
16651 if ac_fn_cxx_try_cpp "$LINENO"; then :
16654 # Broken: fails on valid input.
16657 rm -f conftest.err conftest.i conftest.$ac_ext
16659 # OK, works on sane cases. Now check whether nonexistent headers
16660 # can be detected and how.
16661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16662 /* end confdefs.h. */
16663 #include <ac_nonexistent.h>
16665 if ac_fn_cxx_try_cpp "$LINENO"; then :
16666 # Broken: success on invalid input.
16669 # Passes both tests.
16673 rm -f conftest.err conftest.i conftest.$ac_ext
16676 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16677 rm -f conftest.i conftest.err conftest.$ac_ext
16678 if $ac_preproc_ok; then :
16683 ac_cv_prog_CXXCPP=$CXXCPP
16686 CXXCPP=$ac_cv_prog_CXXCPP
16688 ac_cv_prog_CXXCPP=$CXXCPP
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16691 $as_echo "$CXXCPP" >&6; }
16692 ac_preproc_ok=false
16693 for ac_cxx_preproc_warn_flag in '' yes
16695 # Use a header file that comes with gcc, so configuring glibc
16696 # with a fresh cross-compiler works.
16697 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16698 # <limits.h> exists even on freestanding compilers.
16699 # On the NeXT, cc -E runs the code through the compiler's parser,
16700 # not just through cpp. "Syntax error" is here to catch this case.
16701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16702 /* end confdefs.h. */
16704 # include <limits.h>
16706 # include <assert.h>
16710 if ac_fn_cxx_try_cpp "$LINENO"; then :
16713 # Broken: fails on valid input.
16716 rm -f conftest.err conftest.i conftest.$ac_ext
16718 # OK, works on sane cases. Now check whether nonexistent headers
16719 # can be detected and how.
16720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16721 /* end confdefs.h. */
16722 #include <ac_nonexistent.h>
16724 if ac_fn_cxx_try_cpp "$LINENO"; then :
16725 # Broken: success on invalid input.
16728 # Passes both tests.
16732 rm -f conftest.err conftest.i conftest.$ac_ext
16735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16736 rm -f conftest.i conftest.err conftest.$ac_ext
16737 if $ac_preproc_ok; then :
16740 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16741 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16742 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16743 See \`config.log' for more details" "$LINENO" 5; }
16747 ac_cpp='$CPP $CPPFLAGS'
16748 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16749 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16750 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16753 _lt_caught_CXX_error=yes
16757 ac_cpp='$CXXCPP $CPPFLAGS'
16758 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16759 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16760 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16762 archive_cmds_need_lc_CXX=no
16763 allow_undefined_flag_CXX=
16764 always_export_symbols_CXX=no
16765 archive_expsym_cmds_CXX=
16766 compiler_needs_object_CXX=no
16767 export_dynamic_flag_spec_CXX=
16768 hardcode_direct_CXX=no
16769 hardcode_direct_absolute_CXX=no
16770 hardcode_libdir_flag_spec_CXX=
16771 hardcode_libdir_flag_spec_ld_CXX=
16772 hardcode_libdir_separator_CXX=
16773 hardcode_minus_L_CXX=no
16774 hardcode_shlibpath_var_CXX=unsupported
16775 hardcode_automatic_CXX=no
16776 inherit_rpath_CXX=no
16778 module_expsym_cmds_CXX=
16779 link_all_deplibs_CXX=unknown
16780 old_archive_cmds_CXX=$old_archive_cmds
16781 reload_flag_CXX=$reload_flag
16782 reload_cmds_CXX=$reload_cmds
16783 no_undefined_flag_CXX=
16784 whole_archive_flag_spec_CXX=
16785 enable_shared_with_static_runtimes_CXX=no
16787 # Source file extension for C++ test sources.
16790 # Object file extension for compiled C++ test sources.
16794 # No sense in running all these tests if we already determined that
16795 # the CXX compiler isn't working. Some variables (like enable_shared)
16796 # are currently assumed to apply to all compilers on this platform,
16797 # and will be corrupted by setting them based on a non-working compiler.
16798 if test "$_lt_caught_CXX_error" != yes; then
16799 # Code to be used in simple compile tests
16800 lt_simple_compile_test_code="int some_variable = 0;"
16802 # Code to be used in simple link tests
16803 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16805 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16812 # If no C compiler was specified, use CC.
16815 # If no C compiler flags were specified, use CFLAGS.
16816 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16818 # Allow CC to be a program name with arguments.
16822 # save warnings/boilerplate of simple test code
16823 ac_outfile=conftest.$ac_objext
16824 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16825 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16826 _lt_compiler_boilerplate=`cat conftest.err`
16829 ac_outfile=conftest.$ac_objext
16830 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16831 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16832 _lt_linker_boilerplate=`cat conftest.err`
16836 # Allow CC to be a program name with arguments.
16838 lt_save_CFLAGS=$CFLAGS
16842 lt_save_with_gnu_ld=$with_gnu_ld
16843 lt_save_path_LD=$lt_cv_path_LD
16844 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16845 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16847 $as_unset lt_cv_prog_gnu_ld
16849 if test -n "${lt_cv_path_LDCXX+set}"; then
16850 lt_cv_path_LD=$lt_cv_path_LDCXX
16852 $as_unset lt_cv_path_LD
16854 test -z "${LDCXX+set}" || LD=$LDCXX
16859 for cc_temp in $compiler""; do
16861 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16862 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16867 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16870 if test -n "$compiler"; then
16871 # We don't want -fno-exception when compiling C++ code, so set the
16872 # no_builtin_flag separately
16873 if test "$GXX" = yes; then
16874 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16876 lt_prog_compiler_no_builtin_flag_CXX=
16879 if test "$GXX" = yes; then
16880 # Set up default GNU C++ configuration
16884 # Check whether --with-gnu-ld was given.
16885 if test "${with_gnu_ld+set}" = set; then :
16886 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16892 if test "$GCC" = yes; then
16893 # Check if gcc -print-prog-name=ld gives a path.
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16895 $as_echo_n "checking for ld used by $CC... " >&6; }
16898 # gcc leaves a trailing carriage return which upsets mingw
16899 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16901 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16904 # Accept absolute paths.
16906 re_direlt='/[^/][^/]*/\.\./'
16907 # Canonicalize the pathname of ld
16908 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16909 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16910 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16912 test -z "$LD" && LD="$ac_prog"
16915 # If it fails, then pretend we aren't using GCC.
16919 # If it is relative, then search for the first ld in PATH.
16920 with_gnu_ld=unknown
16923 elif test "$with_gnu_ld" = yes; then
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16925 $as_echo_n "checking for GNU ld... " >&6; }
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16928 $as_echo_n "checking for non-GNU ld... " >&6; }
16930 if ${lt_cv_path_LD+:} false; then :
16931 $as_echo_n "(cached) " >&6
16933 if test -z "$LD"; then
16934 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16935 for ac_dir in $PATH; do
16937 test -z "$ac_dir" && ac_dir=.
16938 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16939 lt_cv_path_LD="$ac_dir/$ac_prog"
16940 # Check to see if the program is GNU ld. I'd rather use --version,
16941 # but apparently some variants of GNU ld only accept -v.
16942 # Break only if it was the GNU/non-GNU ld that we prefer.
16943 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16944 *GNU* | *'with BFD'*)
16945 test "$with_gnu_ld" != no && break
16948 test "$with_gnu_ld" != yes && break
16955 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16959 LD="$lt_cv_path_LD"
16960 if test -n "$LD"; then
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16962 $as_echo "$LD" >&6; }
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16965 $as_echo "no" >&6; }
16967 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16969 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16970 if ${lt_cv_prog_gnu_ld+:} false; then :
16971 $as_echo_n "(cached) " >&6
16973 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16974 case `$LD -v 2>&1 </dev/null` in
16975 *GNU* | *'with BFD'*)
16976 lt_cv_prog_gnu_ld=yes
16979 lt_cv_prog_gnu_ld=no
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16984 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16985 with_gnu_ld=$lt_cv_prog_gnu_ld
16993 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16994 # archiving commands below assume that GNU ld is being used.
16995 if test "$with_gnu_ld" = yes; then
16996 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16997 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16999 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17000 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17002 # If archive_cmds runs LD, not CC, wlarc should be empty
17003 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17004 # investigate it a little bit more. (MM)
17007 # ancient GNU ld didn't support --whole-archive et. al.
17008 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17009 $GREP 'no-whole-archive' > /dev/null; then
17010 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17012 whole_archive_flag_spec_CXX=
17018 # A generic and very simple default shared library creation
17019 # command for GNU C++ for the case where it uses the native
17020 # linker, instead of GNU ld. If possible, this setting should
17021 # overridden to take advantage of the native linker features on
17022 # the platform it is being used on.
17023 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17026 # Commands to make compiler produce verbose output that lists
17027 # what "hidden" libraries, object files and flags are used when
17028 # linking a shared library.
17029 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17037 # PORTME: fill in a description of your system's C++ link characteristics
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17039 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17043 # FIXME: insert proper C++ library support
17047 if test "$host_cpu" = ia64; then
17048 # On IA64, the linker does run time linking by default, so we don't
17049 # have to do anything special.
17050 aix_use_runtimelinking=no
17051 exp_sym_flag='-Bexport'
17054 aix_use_runtimelinking=no
17056 # Test if we are trying to use run time linking or normal
17057 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17058 # need to do runtime linking.
17059 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17060 for ld_flag in $LDFLAGS; do
17063 aix_use_runtimelinking=yes
17071 exp_sym_flag='-bexport'
17072 no_entry_flag='-bnoentry'
17075 # When large executables or shared objects are built, AIX ld can
17076 # have problems creating the table of contents. If linking a library
17077 # or program results in "error TOC overflow" add -mminimal-toc to
17078 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17079 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17081 archive_cmds_CXX=''
17082 hardcode_direct_CXX=yes
17083 hardcode_direct_absolute_CXX=yes
17084 hardcode_libdir_separator_CXX=':'
17085 link_all_deplibs_CXX=yes
17086 file_list_spec_CXX='${wl}-f,'
17088 if test "$GXX" = yes; then
17089 case $host_os in aix4.[012]|aix4.[012].*)
17090 # We only want to do this on AIX 4.2 and lower, the check
17091 # below for broken collect2 doesn't work under 4.3+
17092 collect2name=`${CC} -print-prog-name=collect2`
17093 if test -f "$collect2name" &&
17094 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17096 # We have reworked collect2
17099 # We have old collect2
17100 hardcode_direct_CXX=unsupported
17101 # It fails to find uninstalled libraries when the uninstalled
17102 # path is not listed in the libpath. Setting hardcode_minus_L
17103 # to unsupported forces relinking
17104 hardcode_minus_L_CXX=yes
17105 hardcode_libdir_flag_spec_CXX='-L$libdir'
17106 hardcode_libdir_separator_CXX=
17109 shared_flag='-shared'
17110 if test "$aix_use_runtimelinking" = yes; then
17111 shared_flag="$shared_flag "'${wl}-G'
17115 if test "$host_cpu" = ia64; then
17116 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17117 # chokes on -Wl,-G. The following line is correct:
17120 if test "$aix_use_runtimelinking" = yes; then
17121 shared_flag='${wl}-G'
17123 shared_flag='${wl}-bM:SRE'
17128 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17129 # It seems that -bexpall does not export symbols beginning with
17130 # underscore (_), so it is better to generate a list of symbols to
17132 always_export_symbols_CXX=yes
17133 if test "$aix_use_runtimelinking" = yes; then
17134 # Warning - without using the other runtime loading flags (-brtl),
17135 # -berok will link without error, but may produce a broken library.
17136 allow_undefined_flag_CXX='-berok'
17137 # Determine the default libpath from the value encoded in an empty
17139 if test "${lt_cv_aix_libpath+set}" = set; then
17140 aix_libpath=$lt_cv_aix_libpath
17142 if ${lt_cv_aix_libpath__CXX+:} false; then :
17143 $as_echo_n "(cached) " >&6
17145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17146 /* end confdefs.h. */
17156 if ac_fn_cxx_try_link "$LINENO"; then :
17158 lt_aix_libpath_sed='
17159 /Import File Strings/,/^$/ {
17161 s/^0 *\([^ ]*\) *$/\1/
17165 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17166 # Check for a 64-bit object if we didn't find anything.
17167 if test -z "$lt_cv_aix_libpath__CXX"; then
17168 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17171 rm -f core conftest.err conftest.$ac_objext \
17172 conftest$ac_exeext conftest.$ac_ext
17173 if test -z "$lt_cv_aix_libpath__CXX"; then
17174 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17179 aix_libpath=$lt_cv_aix_libpath__CXX
17182 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17184 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17186 if test "$host_cpu" = ia64; then
17187 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17188 allow_undefined_flag_CXX="-z nodefs"
17189 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17191 # Determine the default libpath from the value encoded in an
17192 # empty executable.
17193 if test "${lt_cv_aix_libpath+set}" = set; then
17194 aix_libpath=$lt_cv_aix_libpath
17196 if ${lt_cv_aix_libpath__CXX+:} false; then :
17197 $as_echo_n "(cached) " >&6
17199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17200 /* end confdefs.h. */
17210 if ac_fn_cxx_try_link "$LINENO"; then :
17212 lt_aix_libpath_sed='
17213 /Import File Strings/,/^$/ {
17215 s/^0 *\([^ ]*\) *$/\1/
17219 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17220 # Check for a 64-bit object if we didn't find anything.
17221 if test -z "$lt_cv_aix_libpath__CXX"; then
17222 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17225 rm -f core conftest.err conftest.$ac_objext \
17226 conftest$ac_exeext conftest.$ac_ext
17227 if test -z "$lt_cv_aix_libpath__CXX"; then
17228 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17233 aix_libpath=$lt_cv_aix_libpath__CXX
17236 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17237 # Warning - without using the other run time loading flags,
17238 # -berok will link without error, but may produce a broken library.
17239 no_undefined_flag_CXX=' ${wl}-bernotok'
17240 allow_undefined_flag_CXX=' ${wl}-berok'
17241 if test "$with_gnu_ld" = yes; then
17242 # We only use this code for GNU lds that support --whole-archive.
17243 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17245 # Exported symbols can be pulled into shared objects from archives
17246 whole_archive_flag_spec_CXX='$convenience'
17248 archive_cmds_need_lc_CXX=yes
17249 # This is similar to how AIX traditionally builds its shared
17251 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17257 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17258 allow_undefined_flag_CXX=unsupported
17259 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17260 # support --undefined. This deserves some investigation. FIXME
17261 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17268 case $cc_basename in
17270 # FIXME: insert proper C++ library support
17276 cygwin* | mingw* | pw32* | cegcc*)
17277 case $GXX,$cc_basename in
17280 # hardcode_libdir_flag_spec is actually meaningless, as there is
17281 # no search path for DLLs.
17282 hardcode_libdir_flag_spec_CXX=' '
17283 allow_undefined_flag_CXX=unsupported
17284 always_export_symbols_CXX=yes
17285 file_list_spec_CXX='@'
17286 # Tell ltmain to make .lib files, not .a files.
17288 # Tell ltmain to make .dll files, not .so files.
17290 # FIXME: Setting linknames here is a bad hack.
17291 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17292 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17293 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17295 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17297 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17299 # The linker will not automatically build a static lib if we build a DLL.
17300 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17301 enable_shared_with_static_runtimes_CXX=yes
17303 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17304 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17305 lt_tool_outputfile="@TOOL_OUTPUT@"~
17306 case $lt_outputfile in
17309 lt_outputfile="$lt_outputfile.exe"
17310 lt_tool_outputfile="$lt_tool_outputfile.exe"
17313 func_to_tool_file "$lt_outputfile"~
17314 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17315 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17316 $RM "$lt_outputfile.manifest";
17321 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17322 # as there is no search path for DLLs.
17323 hardcode_libdir_flag_spec_CXX='-L$libdir'
17324 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17325 allow_undefined_flag_CXX=unsupported
17326 always_export_symbols_CXX=no
17327 enable_shared_with_static_runtimes_CXX=yes
17329 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17330 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17331 # If the export-symbols file already is a .def file (1st line
17332 # is EXPORTS), use it as is; otherwise, prepend...
17333 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17334 cp $export_symbols $output_objdir/$soname.def;
17336 echo EXPORTS > $output_objdir/$soname.def;
17337 cat $export_symbols >> $output_objdir/$soname.def;
17339 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17346 darwin* | rhapsody*)
17349 archive_cmds_need_lc_CXX=no
17350 hardcode_direct_CXX=no
17351 hardcode_automatic_CXX=yes
17352 hardcode_shlibpath_var_CXX=unsupported
17353 if test "$lt_cv_ld_force_load" = "yes"; then
17354 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
17356 whole_archive_flag_spec_CXX=''
17358 link_all_deplibs_CXX=yes
17359 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17360 case $cc_basename in
17361 ifort*) _lt_dar_can_shared=yes ;;
17362 *) _lt_dar_can_shared=$GCC ;;
17364 if test "$_lt_dar_can_shared" = "yes"; then
17365 output_verbose_link_cmd=func_echo_all
17366 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17367 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17368 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17369 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17370 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17371 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
17372 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
17382 case $cc_basename in
17384 # FIXME: insert proper C++ library support
17388 # Green Hills C++ Compiler
17389 # FIXME: insert proper C++ library support
17393 # FIXME: insert proper C++ library support
17400 # C++ shared libraries reported to be fairly broken before
17406 archive_cmds_need_lc_CXX=no
17409 freebsd* | dragonfly*)
17410 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17419 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17420 link_all_deplibs_CXX=yes
17424 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17425 hardcode_libdir_separator_CXX=:
17426 export_dynamic_flag_spec_CXX='${wl}-E'
17427 hardcode_direct_CXX=yes
17428 hardcode_minus_L_CXX=yes # Not in the search PATH,
17429 # but as the default
17430 # location of the library.
17432 case $cc_basename in
17434 # FIXME: insert proper C++ library support
17438 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17439 # Commands to make compiler produce verbose output that lists
17440 # what "hidden" libraries, object files and flags are used when
17441 # linking a shared library.
17443 # There doesn't appear to be a way to prevent this compiler from
17444 # explicitly linking system object files so we need to strip them
17445 # from the output so that they don't get included in the library
17447 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17450 if test "$GXX" = yes; then
17451 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17453 # FIXME: insert proper C++ library support
17461 if test $with_gnu_ld = no; then
17462 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17463 hardcode_libdir_separator_CXX=:
17469 export_dynamic_flag_spec_CXX='${wl}-E'
17475 hardcode_direct_CXX=no
17476 hardcode_shlibpath_var_CXX=no
17479 hardcode_direct_CXX=yes
17480 hardcode_direct_absolute_CXX=yes
17481 hardcode_minus_L_CXX=yes # Not in the search PATH,
17482 # but as the default
17483 # location of the library.
17487 case $cc_basename in
17489 # FIXME: insert proper C++ library support
17495 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17498 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17501 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17504 # Commands to make compiler produce verbose output that lists
17505 # what "hidden" libraries, object files and flags are used when
17506 # linking a shared library.
17508 # There doesn't appear to be a way to prevent this compiler from
17509 # explicitly linking system object files so we need to strip them
17510 # from the output so that they don't get included in the library
17512 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17515 if test "$GXX" = yes; then
17516 if test $with_gnu_ld = no; then
17519 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17522 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17525 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17530 # FIXME: insert proper C++ library support
17538 hardcode_direct_CXX=no
17539 hardcode_shlibpath_var_CXX=no
17540 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17541 export_dynamic_flag_spec_CXX='${wl}-E'
17542 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17543 # Instead, shared libraries are loaded at an image base (0x10000000 by
17544 # default) and relocated if they conflict, which is a slow very memory
17545 # consuming and fragmenting process. To avoid this, we pick a random,
17546 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17547 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17548 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17549 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17552 case $cc_basename in
17555 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
17557 # Archives containing C++ object files must be created using
17558 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17559 # necessary to make sure instantiated templates are included
17561 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17564 if test "$GXX" = yes; then
17565 if test "$with_gnu_ld" = no; then
17566 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17568 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
17571 link_all_deplibs_CXX=yes
17574 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17575 hardcode_libdir_separator_CXX=:
17576 inherit_rpath_CXX=yes
17579 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17580 case $cc_basename in
17582 # Kuck and Associates, Inc. (KAI) C++ Compiler
17584 # KCC will only create a shared library if the output file
17585 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17586 # to its proper name (with version) after linking.
17587 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
17588 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
17589 # Commands to make compiler produce verbose output that lists
17590 # what "hidden" libraries, object files and flags are used when
17591 # linking a shared library.
17593 # There doesn't appear to be a way to prevent this compiler from
17594 # explicitly linking system object files so we need to strip them
17595 # from the output so that they don't get included in the library
17597 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17599 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17600 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17602 # Archives containing C++ object files must be created using
17603 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17604 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17609 # version 8.0 and above of icpc choke on multiply defined symbols
17610 # if we add $predep_objects and $postdep_objects, however 7.1 and
17611 # earlier do not add the objects themselves.
17612 case `$CC -V 2>&1` in
17614 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17615 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17617 *) # Version 8.0 or newer
17620 ia64*) tmp_idyn=' -i_dynamic';;
17622 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17623 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17626 archive_cmds_need_lc_CXX=no
17627 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17628 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17629 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17632 # Portland Group C++ compiler
17634 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17635 prelink_cmds_CXX='tpldir=Template.dir~
17637 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17638 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17639 old_archive_cmds_CXX='tpldir=Template.dir~
17641 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17642 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17644 archive_cmds_CXX='tpldir=Template.dir~
17646 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17647 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17648 archive_expsym_cmds_CXX='tpldir=Template.dir~
17650 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17651 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
17653 *) # Version 6 and above use weak symbols
17654 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17655 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
17659 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17660 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17661 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
17665 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17666 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
17668 runpath_var=LD_RUN_PATH
17669 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17670 hardcode_libdir_separator_CXX=:
17672 # Commands to make compiler produce verbose output that lists
17673 # what "hidden" libraries, object files and flags are used when
17674 # linking a shared library.
17676 # There doesn't appear to be a way to prevent this compiler from
17677 # explicitly linking system object files so we need to strip them
17678 # from the output so that they don't get included in the library
17680 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
17682 xl* | mpixl* | bgxl*)
17683 # IBM XL 8.0 on PPC, with GNU ld
17684 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17685 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17686 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17687 if test "x$supports_anon_versioning" = xyes; then
17688 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17689 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17690 echo "local: *; };" >> $output_objdir/$libname.ver~
17691 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17695 case `$CC -V 2>&1 | sed 5q` in
17698 no_undefined_flag_CXX=' -zdefs'
17699 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17700 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
17701 hardcode_libdir_flag_spec_CXX='-R$libdir'
17702 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
17703 compiler_needs_object_CXX=yes
17705 # Not sure whether something based on
17706 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17708 output_verbose_link_cmd='func_echo_all'
17710 # Archives containing C++ object files must be created using
17711 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17712 # necessary to make sure instantiated templates are included
17714 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17722 # FIXME: insert proper C++ library support
17727 # FIXME: insert proper C++ library support
17732 case $cc_basename in
17734 # FIXME: insert proper C++ library support
17738 # FIXME: insert proper C++ library support
17745 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17746 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17748 hardcode_libdir_flag_spec_CXX='-R$libdir'
17749 hardcode_direct_CXX=yes
17750 hardcode_shlibpath_var_CXX=no
17752 # Workaround some broken pre-1.5 toolchains
17753 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17761 # C++ shared libraries are fairly broken
17766 if test -f /usr/libexec/ld.so; then
17767 hardcode_direct_CXX=yes
17768 hardcode_shlibpath_var_CXX=no
17769 hardcode_direct_absolute_CXX=yes
17770 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17771 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17772 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17773 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17774 export_dynamic_flag_spec_CXX='${wl}-E'
17775 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17777 output_verbose_link_cmd=func_echo_all
17783 osf3* | osf4* | osf5*)
17784 case $cc_basename in
17786 # Kuck and Associates, Inc. (KAI) C++ Compiler
17788 # KCC will only create a shared library if the output file
17789 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17790 # to its proper name (with version) after linking.
17791 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
17793 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17794 hardcode_libdir_separator_CXX=:
17796 # Archives containing C++ object files must be created using
17797 # the KAI C++ compiler.
17799 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17800 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17804 # Rational C++ 2.4.1
17805 # FIXME: insert proper C++ library support
17811 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17812 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
17813 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17816 allow_undefined_flag_CXX=' -expect_unresolved \*'
17817 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
17818 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17819 echo "-hidden">> $lib.exp~
17820 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
17822 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17826 hardcode_libdir_separator_CXX=:
17828 # Commands to make compiler produce verbose output that lists
17829 # what "hidden" libraries, object files and flags are used when
17830 # linking a shared library.
17832 # There doesn't appear to be a way to prevent this compiler from
17833 # explicitly linking system object files so we need to strip them
17834 # from the output so that they don't get included in the library
17836 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
17839 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17840 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17843 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17846 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17850 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17851 hardcode_libdir_separator_CXX=:
17853 # Commands to make compiler produce verbose output that lists
17854 # what "hidden" libraries, object files and flags are used when
17855 # linking a shared library.
17856 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17859 # FIXME: insert proper C++ library support
17867 # FIXME: insert proper C++ library support
17872 case $cc_basename in
17875 # FIXME: insert proper C++ library support
17880 # FIXME: insert proper C++ library support
17884 # FIXME: insert proper C++ library support
17891 case $cc_basename in
17893 # Sun C++ 4.2, 5.x and Centerline C++
17894 archive_cmds_need_lc_CXX=yes
17895 no_undefined_flag_CXX=' -zdefs'
17896 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17897 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17898 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17900 hardcode_libdir_flag_spec_CXX='-R$libdir'
17901 hardcode_shlibpath_var_CXX=no
17903 solaris2.[0-5] | solaris2.[0-5].*) ;;
17905 # The compiler driver will combine and reorder linker options,
17906 # but understands `-z linker_flag'.
17907 # Supported since Solaris 2.6 (maybe 2.5.1?)
17908 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17911 link_all_deplibs_CXX=yes
17913 output_verbose_link_cmd='func_echo_all'
17915 # Archives containing C++ object files must be created using
17916 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17917 # necessary to make sure instantiated templates are included
17919 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17922 # Green Hills C++ Compiler
17923 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17925 # The C++ compiler must be used to create the archive.
17926 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17929 # GNU C++ compiler with Solaris linker
17930 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17931 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17932 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17933 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17934 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17935 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17937 # Commands to make compiler produce verbose output that lists
17938 # what "hidden" libraries, object files and flags are used when
17939 # linking a shared library.
17940 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17942 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17944 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17945 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17946 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17948 # Commands to make compiler produce verbose output that lists
17949 # what "hidden" libraries, object files and flags are used when
17950 # linking a shared library.
17951 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17954 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17956 solaris2.[0-5] | solaris2.[0-5].*) ;;
17958 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17966 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17967 no_undefined_flag_CXX='${wl}-z,text'
17968 archive_cmds_need_lc_CXX=no
17969 hardcode_shlibpath_var_CXX=no
17970 runpath_var='LD_RUN_PATH'
17972 case $cc_basename in
17974 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17975 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17978 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17979 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17984 sysv5* | sco3.2v5* | sco5v6*)
17985 # Note: We can NOT use -z defs as we might desire, because we do not
17986 # link with -lc, and that would cause any symbols used from libc to
17987 # always be unresolved, which means just about no library would
17988 # ever link correctly. If we're not using GNU ld we use -z text
17989 # though, which does catch some bad symbols but isn't as heavy-handed
17991 no_undefined_flag_CXX='${wl}-z,text'
17992 allow_undefined_flag_CXX='${wl}-z,nodefs'
17993 archive_cmds_need_lc_CXX=no
17994 hardcode_shlibpath_var_CXX=no
17995 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17996 hardcode_libdir_separator_CXX=':'
17997 link_all_deplibs_CXX=yes
17998 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17999 runpath_var='LD_RUN_PATH'
18001 case $cc_basename in
18003 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18004 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18005 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18006 '"$old_archive_cmds_CXX"
18007 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18008 '"$reload_cmds_CXX"
18011 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18012 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18018 case $cc_basename in
18020 # NonStop-UX NCC 3.20
18021 # FIXME: insert proper C++ library support
18025 # FIXME: insert proper C++ library support
18032 # FIXME: insert proper C++ library support
18037 # FIXME: insert proper C++ library support
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18043 $as_echo "$ld_shlibs_CXX" >&6; }
18044 test "$ld_shlibs_CXX" = no && can_build_shared=no
18050 ## There is no encapsulation within the following macros, do not change
18051 ## the running order or otherwise move them around unless you know exactly
18052 ## what you are doing...
18053 # Dependencies to place before and after the object being linked:
18054 predep_objects_CXX=
18055 postdep_objects_CXX=
18058 compiler_lib_search_path_CXX=
18060 cat > conftest.$ac_ext <<_LT_EOF
18064 Foo (void) { a = 0; }
18071 _lt_libdeps_save_CFLAGS=$CFLAGS
18072 case "$CC $CFLAGS " in #(
18073 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18074 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18077 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18078 (eval $ac_compile) 2>&5
18080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18081 test $ac_status = 0; }; then
18082 # Parse the compiler output and extract the necessary
18083 # objects, libraries and library flags.
18085 # Sentinel used to keep track of whether or not we are before
18086 # the conftest object file.
18087 pre_test_object_deps_done=no
18089 for p in `eval "$output_verbose_link_cmd"`; do
18090 case ${prev}${p} in
18093 # Some compilers place space between "-{L,R}" and the path.
18094 # Remove the space.
18095 if test $p = "-L" ||
18096 test $p = "-R"; then
18101 # Expand the sysroot to ease extracting the directories later.
18102 if test -z "$prev"; then
18104 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18105 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18106 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18110 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18112 if test "$pre_test_object_deps_done" = no; then
18115 # Internal compiler library paths should come after those
18116 # provided the user. The postdeps already come after the
18117 # user supplied libs so there is no need to process them.
18118 if test -z "$compiler_lib_search_path_CXX"; then
18119 compiler_lib_search_path_CXX="${prev}${p}"
18121 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18124 # The "-l" case would never come before the object being
18125 # linked, so don't bother handling this case.
18128 if test -z "$postdeps_CXX"; then
18129 postdeps_CXX="${prev}${p}"
18131 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18137 *.lto.$objext) ;; # Ignore GCC LTO objects
18139 # This assumes that the test object file only shows up
18140 # once in the compiler output.
18141 if test "$p" = "conftest.$objext"; then
18142 pre_test_object_deps_done=yes
18146 if test "$pre_test_object_deps_done" = no; then
18147 if test -z "$predep_objects_CXX"; then
18148 predep_objects_CXX="$p"
18150 predep_objects_CXX="$predep_objects_CXX $p"
18153 if test -z "$postdep_objects_CXX"; then
18154 postdep_objects_CXX="$p"
18156 postdep_objects_CXX="$postdep_objects_CXX $p"
18161 *) ;; # Ignore the rest.
18169 echo "libtool.m4: error: problem compiling CXX test program"
18172 $RM -f confest.$objext
18173 CFLAGS=$_lt_libdeps_save_CFLAGS
18175 # PORTME: override above test on systems where it is broken
18178 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18179 # hack all around it, let's just trust "g++" to DTRT.
18180 predep_objects_CXX=
18181 postdep_objects_CXX=
18186 case `$CC -V 2>&1 | sed 5q` in
18190 # The more standards-conforming stlport4 library is
18191 # incompatible with the Cstd library. Avoid specifying
18192 # it if it's in CXXFLAGS. Ignore libCrun as
18193 # -library=stlport4 depends on it.
18194 case " $CXX $CXXFLAGS " in
18195 *" -library=stlport4 "*)
18196 solaris_use_stlport4=yes
18200 if test "$solaris_use_stlport4" != yes; then
18201 postdeps_CXX='-library=Cstd -library=Crun'
18208 case $cc_basename in
18210 # The more standards-conforming stlport4 library is
18211 # incompatible with the Cstd library. Avoid specifying
18212 # it if it's in CXXFLAGS. Ignore libCrun as
18213 # -library=stlport4 depends on it.
18214 case " $CXX $CXXFLAGS " in
18215 *" -library=stlport4 "*)
18216 solaris_use_stlport4=yes
18220 # Adding this requires a known-good setup of shared libraries for
18221 # Sun compiler versions before 5.6, else PIC objects from an old
18222 # archive will be linked into the output, leading to subtle bugs.
18223 if test "$solaris_use_stlport4" != yes; then
18224 postdeps_CXX='-library=Cstd -library=Crun'
18232 case " $postdeps_CXX " in
18233 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18235 compiler_lib_search_dirs_CXX=
18236 if test -n "${compiler_lib_search_path_CXX}"; then
18237 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18270 lt_prog_compiler_wl_CXX=
18271 lt_prog_compiler_pic_CXX=
18272 lt_prog_compiler_static_CXX=
18275 # C++ specific cases for pic, static, wl, etc.
18276 if test "$GXX" = yes; then
18277 lt_prog_compiler_wl_CXX='-Wl,'
18278 lt_prog_compiler_static_CXX='-static'
18282 # All AIX code is PIC.
18283 if test "$host_cpu" = ia64; then
18284 # AIX 5 now supports IA64 processor
18285 lt_prog_compiler_static_CXX='-Bstatic'
18292 # see comment about AmigaOS4 .so support
18293 lt_prog_compiler_pic_CXX='-fPIC'
18296 # FIXME: we need at least 68020 code to build shared libraries, but
18297 # adding the `-m68020' flag to GCC prevents building anything better,
18299 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18304 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18305 # PIC is the default for these OSes.
18307 mingw* | cygwin* | os2* | pw32* | cegcc*)
18308 # This hack is so that the source file can tell whether it is being
18309 # built for inclusion in a dll (and should export symbols for example).
18310 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18311 # (--disable-auto-import) libraries
18312 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18314 darwin* | rhapsody*)
18315 # PIC is the default on this platform
18316 # Common symbols not allowed in MH_DYLIB files
18317 lt_prog_compiler_pic_CXX='-fno-common'
18320 # DJGPP does not support shared libraries at all
18321 lt_prog_compiler_pic_CXX=
18324 # PIC is the default for Haiku.
18325 # The "-static" flag exists, but is broken.
18326 lt_prog_compiler_static_CXX=
18329 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18330 # Instead, we relocate shared libraries at runtime.
18333 if test -d /usr/nec; then
18334 lt_prog_compiler_pic_CXX=-Kconform_pic
18338 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18339 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18340 # sets the default TLS model and affects inlining.
18345 lt_prog_compiler_pic_CXX='-fPIC'
18350 # QNX uses GNU C++, but need to define -shared option too, otherwise
18351 # it will coredump.
18352 lt_prog_compiler_pic_CXX='-fPIC -shared'
18355 lt_prog_compiler_pic_CXX='-fPIC'
18361 # All AIX code is PIC.
18362 if test "$host_cpu" = ia64; then
18363 # AIX 5 now supports IA64 processor
18364 lt_prog_compiler_static_CXX='-Bstatic'
18366 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18370 case $cc_basename in
18372 # Green Hills C++ Compiler
18373 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
18377 mingw* | cygwin* | os2* | pw32* | cegcc*)
18378 # This hack is so that the source file can tell whether it is being
18379 # built for inclusion in a dll (and should export symbols for example).
18380 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18383 case $cc_basename in
18385 lt_prog_compiler_pic_CXX='-KPIC'
18388 # Green Hills C++ Compiler
18389 lt_prog_compiler_pic_CXX='-pic'
18395 freebsd* | dragonfly*)
18396 # FreeBSD uses GNU C++
18398 hpux9* | hpux10* | hpux11*)
18399 case $cc_basename in
18401 lt_prog_compiler_wl_CXX='-Wl,'
18402 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18403 if test "$host_cpu" != ia64; then
18404 lt_prog_compiler_pic_CXX='+Z'
18408 lt_prog_compiler_wl_CXX='-Wl,'
18409 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18415 lt_prog_compiler_pic_CXX='+Z'
18424 # This is c89, which is MS Visual C++ (no shared libs)
18425 # Anyone wants to do a port?
18427 irix5* | irix6* | nonstopux*)
18428 case $cc_basename in
18430 lt_prog_compiler_wl_CXX='-Wl,'
18431 lt_prog_compiler_static_CXX='-non_shared'
18432 # CC pic flag -KPIC is the default.
18438 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18439 case $cc_basename in
18442 lt_prog_compiler_wl_CXX='--backend -Wl,'
18443 lt_prog_compiler_pic_CXX='-fPIC'
18446 # old Intel C++ for x86_64 which still supported -KPIC.
18447 lt_prog_compiler_wl_CXX='-Wl,'
18448 lt_prog_compiler_pic_CXX='-KPIC'
18449 lt_prog_compiler_static_CXX='-static'
18452 # Intel C++, used to be incompatible with GCC.
18453 # ICC 10 doesn't accept -KPIC any more.
18454 lt_prog_compiler_wl_CXX='-Wl,'
18455 lt_prog_compiler_pic_CXX='-fPIC'
18456 lt_prog_compiler_static_CXX='-static'
18459 # Portland Group C++ compiler
18460 lt_prog_compiler_wl_CXX='-Wl,'
18461 lt_prog_compiler_pic_CXX='-fpic'
18462 lt_prog_compiler_static_CXX='-Bstatic'
18466 # Make sure the PIC flag is empty. It appears that all Alpha
18467 # Linux and Compaq Tru64 Unix objects are PIC.
18468 lt_prog_compiler_pic_CXX=
18469 lt_prog_compiler_static_CXX='-non_shared'
18471 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18472 # IBM XL 8.0, 9.0 on PPC and BlueGene
18473 lt_prog_compiler_wl_CXX='-Wl,'
18474 lt_prog_compiler_pic_CXX='-qpic'
18475 lt_prog_compiler_static_CXX='-qstaticlink'
18478 case `$CC -V 2>&1 | sed 5q` in
18481 lt_prog_compiler_pic_CXX='-KPIC'
18482 lt_prog_compiler_static_CXX='-Bstatic'
18483 lt_prog_compiler_wl_CXX='-Qoption ld '
18494 case $cc_basename in
18496 lt_prog_compiler_pic_CXX='-W c,exportall'
18505 # QNX uses GNU C++, but need to define -shared option too, otherwise
18506 # it will coredump.
18507 lt_prog_compiler_pic_CXX='-fPIC -shared'
18509 osf3* | osf4* | osf5*)
18510 case $cc_basename in
18512 lt_prog_compiler_wl_CXX='--backend -Wl,'
18515 # Rational C++ 2.4.1
18516 lt_prog_compiler_pic_CXX='-pic'
18519 # Digital/Compaq C++
18520 lt_prog_compiler_wl_CXX='-Wl,'
18521 # Make sure the PIC flag is empty. It appears that all Alpha
18522 # Linux and Compaq Tru64 Unix objects are PIC.
18523 lt_prog_compiler_pic_CXX=
18524 lt_prog_compiler_static_CXX='-non_shared'
18533 case $cc_basename in
18535 # Sun C++ 4.2, 5.x and Centerline C++
18536 lt_prog_compiler_pic_CXX='-KPIC'
18537 lt_prog_compiler_static_CXX='-Bstatic'
18538 lt_prog_compiler_wl_CXX='-Qoption ld '
18541 # Green Hills C++ Compiler
18542 lt_prog_compiler_pic_CXX='-PIC'
18549 case $cc_basename in
18552 lt_prog_compiler_pic_CXX='-pic'
18553 lt_prog_compiler_static_CXX='-Bstatic'
18557 lt_prog_compiler_pic_CXX='-pic'
18563 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18564 case $cc_basename in
18566 lt_prog_compiler_wl_CXX='-Wl,'
18567 lt_prog_compiler_pic_CXX='-KPIC'
18568 lt_prog_compiler_static_CXX='-Bstatic'
18573 case $cc_basename in
18575 # NonStop-UX NCC 3.20
18576 lt_prog_compiler_pic_CXX='-KPIC'
18585 lt_prog_compiler_can_build_shared_CXX=no
18591 # For platforms which do not support PIC, -DPIC is meaningless:
18593 lt_prog_compiler_pic_CXX=
18596 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18601 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18602 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18603 $as_echo_n "(cached) " >&6
18605 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18608 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18609 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18612 # Check to make sure the PIC flag actually works.
18614 if test -n "$lt_prog_compiler_pic_CXX"; then
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18616 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18617 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
18618 $as_echo_n "(cached) " >&6
18620 lt_cv_prog_compiler_pic_works_CXX=no
18621 ac_outfile=conftest.$ac_objext
18622 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18623 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18624 # Insert the option either (1) after the last *FLAGS variable, or
18625 # (2) before a word containing "conftest.", or (3) at the end.
18626 # Note that $ac_compile itself does not contain backslashes and begins
18627 # with a dollar sign (not a hyphen), so the echo should work correctly.
18628 # The option is referenced via a variable to avoid confusing sed.
18629 lt_compile=`echo "$ac_compile" | $SED \
18630 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18631 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18632 -e 's:$: $lt_compiler_flag:'`
18633 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18634 (eval "$lt_compile" 2>conftest.err)
18636 cat conftest.err >&5
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 if (exit $ac_status) && test -s "$ac_outfile"; then
18639 # The compiler can only warn and ignore the option if not recognized
18640 # So say no if there are warnings other than the usual output.
18641 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18643 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18644 lt_cv_prog_compiler_pic_works_CXX=yes
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18651 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18653 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18654 case $lt_prog_compiler_pic_CXX in
18656 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18659 lt_prog_compiler_pic_CXX=
18660 lt_prog_compiler_can_build_shared_CXX=no
18670 # Check to make sure the static flag actually works.
18672 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18674 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18675 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
18676 $as_echo_n "(cached) " >&6
18678 lt_cv_prog_compiler_static_works_CXX=no
18679 save_LDFLAGS="$LDFLAGS"
18680 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18681 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18682 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18683 # The linker can only warn and ignore the option if not recognized
18684 # So say no if there are warnings
18685 if test -s conftest.err; then
18686 # Append any errors to the config.log.
18687 cat conftest.err 1>&5
18688 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18689 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18690 if diff conftest.exp conftest.er2 >/dev/null; then
18691 lt_cv_prog_compiler_static_works_CXX=yes
18694 lt_cv_prog_compiler_static_works_CXX=yes
18698 LDFLAGS="$save_LDFLAGS"
18701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18702 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18704 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18707 lt_prog_compiler_static_CXX=
18713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18714 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18715 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18716 $as_echo_n "(cached) " >&6
18718 lt_cv_prog_compiler_c_o_CXX=no
18719 $RM -r conftest 2>/dev/null
18723 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18725 lt_compiler_flag="-o out/conftest2.$ac_objext"
18726 # Insert the option either (1) after the last *FLAGS variable, or
18727 # (2) before a word containing "conftest.", or (3) at the end.
18728 # Note that $ac_compile itself does not contain backslashes and begins
18729 # with a dollar sign (not a hyphen), so the echo should work correctly.
18730 lt_compile=`echo "$ac_compile" | $SED \
18731 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18733 -e 's:$: $lt_compiler_flag:'`
18734 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18735 (eval "$lt_compile" 2>out/conftest.err)
18737 cat out/conftest.err >&5
18738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18739 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18741 # The compiler can only warn and ignore the option if not recognized
18742 # So say no if there are warnings
18743 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18744 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18745 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18746 lt_cv_prog_compiler_c_o_CXX=yes
18751 # SGI C++ compiler will create directory out/ii_files/ for
18752 # template instantiation
18753 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18754 $RM out/* && rmdir out
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18761 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18766 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18767 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18768 $as_echo_n "(cached) " >&6
18770 lt_cv_prog_compiler_c_o_CXX=no
18771 $RM -r conftest 2>/dev/null
18775 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18777 lt_compiler_flag="-o out/conftest2.$ac_objext"
18778 # Insert the option either (1) after the last *FLAGS variable, or
18779 # (2) before a word containing "conftest.", or (3) at the end.
18780 # Note that $ac_compile itself does not contain backslashes and begins
18781 # with a dollar sign (not a hyphen), so the echo should work correctly.
18782 lt_compile=`echo "$ac_compile" | $SED \
18783 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18784 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18785 -e 's:$: $lt_compiler_flag:'`
18786 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18787 (eval "$lt_compile" 2>out/conftest.err)
18789 cat out/conftest.err >&5
18790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18793 # The compiler can only warn and ignore the option if not recognized
18794 # So say no if there are warnings
18795 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18796 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18797 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18798 lt_cv_prog_compiler_c_o_CXX=yes
18803 # SGI C++ compiler will create directory out/ii_files/ for
18804 # template instantiation
18805 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18806 $RM out/* && rmdir out
18812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18813 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18818 hard_links="nottested"
18819 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18820 # do not overwrite the value of need_locks provided by the user
18821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18822 $as_echo_n "checking if we can lock with hard links... " >&6; }
18825 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18827 ln conftest.a conftest.b 2>&5 || hard_links=no
18828 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18830 $as_echo "$hard_links" >&6; }
18831 if test "$hard_links" = no; then
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18833 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18843 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18845 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18846 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18849 # If we're using GNU nm, then we don't want the "-C" option.
18850 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18851 # Also, AIX nm treats weak defined symbols like other global defined
18852 # symbols, whereas GNU nm marks them as "W".
18853 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18854 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18856 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18860 export_symbols_cmds_CXX="$ltdll_cmds"
18862 cygwin* | mingw* | cegcc*)
18863 case $cc_basename in
18866 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
18867 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18872 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18877 $as_echo "$ld_shlibs_CXX" >&6; }
18878 test "$ld_shlibs_CXX" = no && can_build_shared=no
18880 with_gnu_ld_CXX=$with_gnu_ld
18888 # Do we need to explicitly link libc?
18890 case "x$archive_cmds_need_lc_CXX" in
18892 # Assume -lc should be added
18893 archive_cmds_need_lc_CXX=yes
18895 if test "$enable_shared" = yes && test "$GCC" = yes; then
18896 case $archive_cmds_CXX in
18898 # FIXME: we may have to deal with multi-command sequences.
18901 # Test whether the compiler implicitly links with -lc since on some
18902 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18903 # to ld, don't add -lc before -lgcc.
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18905 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18906 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
18907 $as_echo_n "(cached) " >&6
18910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18913 (eval $ac_compile) 2>&5
18915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18916 test $ac_status = 0; } 2>conftest.err; then
18919 libobjs=conftest.$ac_objext
18921 wl=$lt_prog_compiler_wl_CXX
18922 pic_flag=$lt_prog_compiler_pic_CXX
18928 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18929 allow_undefined_flag_CXX=
18930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18931 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18934 test $ac_status = 0; }
18936 lt_cv_archive_cmds_need_lc_CXX=no
18938 lt_cv_archive_cmds_need_lc_CXX=yes
18940 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18942 cat conftest.err 1>&5
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18948 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18949 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19020 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19022 library_names_spec=
19023 libname_spec='lib$name'
19027 postuninstall_cmds=
19031 shlibpath_overrides_runpath=unknown
19033 dynamic_linker="$host_os ld.so"
19034 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19035 need_lib_prefix=unknown
19036 hardcode_into_libs=no
19038 # when you set need_version to no, make sure it does not cause -set_version
19039 # flags to be left without arguments
19040 need_version=unknown
19045 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19046 shlibpath_var=LIBPATH
19048 # AIX 3 has no versioning support, so we append a major version to the name.
19049 soname_spec='${libname}${release}${shared_ext}$major'
19056 hardcode_into_libs=yes
19057 if test "$host_cpu" = ia64; then
19058 # AIX 5 supports IA64
19059 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19060 shlibpath_var=LD_LIBRARY_PATH
19062 # With GCC up to 2.95.x, collect2 would create an import file
19063 # for dependence libraries. The import file would start with
19064 # the line `#! .'. This would cause the generated library to
19065 # depend on `.', always an invalid library. This was fixed in
19066 # development snapshots of GCC prior to 3.0.
19068 aix4 | aix4.[01] | aix4.[01].*)
19069 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19071 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19074 can_build_shared=no
19078 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19079 # soname into executable. Probably we can add versioning support to
19080 # collect2, so additional links can be useful in future.
19081 if test "$aix_use_runtimelinking" = yes; then
19082 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19083 # instead of lib<name>.a to let people know that these are not
19084 # typical AIX shared libraries.
19085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19087 # We preserve .a as extension for shared libraries through AIX4.2
19088 # and later when we are not doing run time linking.
19089 library_names_spec='${libname}${release}.a $libname.a'
19090 soname_spec='${libname}${release}${shared_ext}$major'
19092 shlibpath_var=LIBPATH
19099 # Since July 2007 AmigaOS4 officially supports .so libraries.
19100 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19104 library_names_spec='$libname.ixlibrary $libname.a'
19105 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19106 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
19112 library_names_spec='${libname}${shared_ext}'
19113 dynamic_linker="$host_os ld.so"
19114 shlibpath_var=LIBRARY_PATH
19120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19121 soname_spec='${libname}${release}${shared_ext}$major'
19122 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19123 shlibpath_var=LD_LIBRARY_PATH
19124 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19125 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19126 # the default ld.so.conf also contains /usr/contrib/lib and
19127 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19128 # libtool to hard-code these into programs
19131 cygwin* | mingw* | pw32* | cegcc*)
19132 version_type=windows
19137 case $GCC,$cc_basename in
19140 library_names_spec='$libname.dll.a'
19141 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19142 postinstall_cmds='base_file=`basename \${file}`~
19143 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19144 dldir=$destdir/`dirname \$dlpath`~
19145 test -d \$dldir || mkdir -p \$dldir~
19146 $install_prog $dir/$dlname \$dldir/$dlname~
19147 chmod a+x \$dldir/$dlname~
19148 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19149 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19151 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19152 dlpath=$dir/\$dldll~
19154 shlibpath_overrides_runpath=yes
19158 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19159 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19163 # MinGW DLLs use traditional 'lib' prefix
19164 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19167 # pw32 DLLs use 'pw' prefix rather than 'lib'
19168 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19171 dynamic_linker='Win32 ld.exe'
19176 libname_spec='$name'
19177 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19178 library_names_spec='${libname}.dll.lib'
19182 sys_lib_search_path_spec=
19185 for lt_path in $LIB
19188 # Let DOS variable expansion print the short 8.3 style file name.
19189 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19190 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19193 # Convert to MSYS style.
19194 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19197 # Convert to unix form, then to dos form, then back to unix form
19198 # but this time dos style (no spaces!) so that the unix form looks
19199 # like /cygdrive/c/PROGRA~1:/cygdr...
19200 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19201 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19202 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19205 sys_lib_search_path_spec="$LIB"
19206 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19207 # It is most probably a Windows format PATH.
19208 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19210 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19212 # FIXME: find the short name or the path components, as spaces are
19213 # common. (e.g. "Program Files" -> "PROGRA~1")
19217 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19218 postinstall_cmds='base_file=`basename \${file}`~
19219 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19220 dldir=$destdir/`dirname \$dlpath`~
19221 test -d \$dldir || mkdir -p \$dldir~
19222 $install_prog $dir/$dlname \$dldir/$dlname'
19223 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19224 dlpath=$dir/\$dldll~
19226 shlibpath_overrides_runpath=yes
19227 dynamic_linker='Win32 link.exe'
19231 # Assume MSVC wrapper
19232 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19233 dynamic_linker='Win32 ld.exe'
19236 # FIXME: first we should search . and the directory the executable is in
19240 darwin* | rhapsody*)
19241 dynamic_linker="$host_os dyld"
19242 version_type=darwin
19245 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19246 soname_spec='${libname}${release}${major}$shared_ext'
19247 shlibpath_overrides_runpath=yes
19248 shlibpath_var=DYLD_LIBRARY_PATH
19249 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19251 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19259 soname_spec='${libname}${release}${shared_ext}$major'
19260 shlibpath_var=LD_LIBRARY_PATH
19267 freebsd* | dragonfly*)
19268 # DragonFly does not have aout. When/if they implement a new
19269 # versioning mechanism, adjust this.
19270 if test -x /usr/bin/objformat; then
19271 objformat=`/usr/bin/objformat`
19274 freebsd[123]*) objformat=aout ;;
19275 *) objformat=elf ;;
19278 version_type=freebsd-$objformat
19279 case $version_type in
19281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19286 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19290 shlibpath_var=LD_LIBRARY_PATH
19293 shlibpath_overrides_runpath=yes
19295 freebsd3.[01]* | freebsdelf3.[01]*)
19296 shlibpath_overrides_runpath=yes
19297 hardcode_into_libs=yes
19299 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19300 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19301 shlibpath_overrides_runpath=no
19302 hardcode_into_libs=yes
19304 *) # from 4.6 on, and DragonFly
19305 shlibpath_overrides_runpath=yes
19306 hardcode_into_libs=yes
19315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19316 soname_spec='${libname}${release}${shared_ext}$major'
19317 shlibpath_var=LD_LIBRARY_PATH
19318 hardcode_into_libs=yes
19325 dynamic_linker="$host_os runtime_loader"
19326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19327 soname_spec='${libname}${release}${shared_ext}$major'
19328 shlibpath_var=LIBRARY_PATH
19329 shlibpath_overrides_runpath=yes
19330 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19331 hardcode_into_libs=yes
19334 hpux9* | hpux10* | hpux11*)
19335 # Give a soname corresponding to the major version so that dld.sl refuses to
19336 # link against other versions.
19343 hardcode_into_libs=yes
19344 dynamic_linker="$host_os dld.so"
19345 shlibpath_var=LD_LIBRARY_PATH
19346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19348 soname_spec='${libname}${release}${shared_ext}$major'
19349 if test "X$HPUX_IA64_MODE" = X32; then
19350 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19352 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19358 hardcode_into_libs=yes
19359 dynamic_linker="$host_os dld.sl"
19360 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19363 soname_spec='${libname}${release}${shared_ext}$major'
19364 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19369 dynamic_linker="$host_os dld.sl"
19370 shlibpath_var=SHLIB_PATH
19371 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19373 soname_spec='${libname}${release}${shared_ext}$major'
19376 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19377 postinstall_cmds='chmod 555 $lib'
19378 # or fails outright, so override atomically:
19379 install_override_mode=555
19386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19387 soname_spec='${libname}${release}${shared_ext}$major'
19388 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19389 shlibpath_var=LD_LIBRARY_PATH
19390 shlibpath_overrides_runpath=no
19391 hardcode_into_libs=yes
19394 irix5* | irix6* | nonstopux*)
19396 nonstopux*) version_type=nonstopux ;;
19398 if test "$lt_cv_prog_gnu_ld" = yes; then
19406 soname_spec='${libname}${release}${shared_ext}$major'
19407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19409 irix5* | nonstopux*)
19410 libsuff= shlibsuff=
19413 case $LD in # libtool.m4 will add one of these switches to LD
19414 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19415 libsuff= shlibsuff= libmagic=32-bit;;
19416 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19417 libsuff=32 shlibsuff=N32 libmagic=N32;;
19418 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19419 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19420 *) libsuff= shlibsuff= libmagic=never-match;;
19424 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19425 shlibpath_overrides_runpath=no
19426 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19427 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19428 hardcode_into_libs=yes
19431 # No shared lib support for Linux oldld, aout, or coff.
19432 linux*oldld* | linux*aout* | linux*coff*)
19436 # This must be Linux ELF.
19437 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19442 soname_spec='${libname}${release}${shared_ext}$major'
19443 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19444 shlibpath_var=LD_LIBRARY_PATH
19445 shlibpath_overrides_runpath=no
19447 # Some binutils ld are patched to set DT_RUNPATH
19448 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19449 $as_echo_n "(cached) " >&6
19451 lt_cv_shlibpath_overrides_runpath=no
19452 save_LDFLAGS=$LDFLAGS
19453 save_libdir=$libdir
19454 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19455 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19457 /* end confdefs.h. */
19467 if ac_fn_cxx_try_link "$LINENO"; then :
19468 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19469 lt_cv_shlibpath_overrides_runpath=yes
19472 rm -f core conftest.err conftest.$ac_objext \
19473 conftest$ac_exeext conftest.$ac_ext
19474 LDFLAGS=$save_LDFLAGS
19475 libdir=$save_libdir
19479 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19481 # This implies no fast_install, which is unacceptable.
19482 # Some rework will be needed to allow for fast_install
19483 # before this can be enabled.
19484 hardcode_into_libs=yes
19486 # Add ABI-specific directories to the system library path.
19487 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19489 # Append ld.so.conf contents to the search path
19490 if test -f /etc/ld.so.conf; then
19491 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' ' '`
19492 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19496 # We used to test for /lib/ld.so.1 and disable shared libraries on
19497 # powerpc, because MkLinux only supported shared libraries with the
19498 # GNU dynamic linker. Since this was broken with cross compilers,
19499 # most powerpc-linux boxes support dynamic linking these days and
19500 # people can always --disable-shared, the test was removed, and we
19501 # assume the GNU/Linux dynamic linker is in use.
19502 dynamic_linker='GNU/Linux ld.so'
19509 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19511 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19512 dynamic_linker='NetBSD (a.out) ld.so'
19514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19515 soname_spec='${libname}${release}${shared_ext}$major'
19516 dynamic_linker='NetBSD ld.elf_so'
19518 shlibpath_var=LD_LIBRARY_PATH
19519 shlibpath_overrides_runpath=yes
19520 hardcode_into_libs=yes
19525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19526 shlibpath_var=LD_LIBRARY_PATH
19527 shlibpath_overrides_runpath=yes
19534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19535 soname_spec='${libname}${release}${shared_ext}$major'
19536 shlibpath_var=LD_LIBRARY_PATH
19537 shlibpath_overrides_runpath=no
19538 hardcode_into_libs=yes
19539 dynamic_linker='ldqnx.so'
19544 sys_lib_dlsearch_path_spec="/usr/lib"
19546 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19548 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19549 *) need_version=no ;;
19551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19552 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19553 shlibpath_var=LD_LIBRARY_PATH
19554 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19556 openbsd2.[89] | openbsd2.[89].*)
19557 shlibpath_overrides_runpath=no
19560 shlibpath_overrides_runpath=yes
19564 shlibpath_overrides_runpath=yes
19569 libname_spec='$name'
19572 library_names_spec='$libname${shared_ext} $libname.a'
19573 dynamic_linker='OS/2 ld.exe'
19574 shlibpath_var=LIBPATH
19577 osf3* | osf4* | osf5*)
19581 soname_spec='${libname}${release}${shared_ext}$major'
19582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19583 shlibpath_var=LD_LIBRARY_PATH
19584 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19585 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19597 soname_spec='${libname}${release}${shared_ext}$major'
19598 shlibpath_var=LD_LIBRARY_PATH
19599 shlibpath_overrides_runpath=yes
19600 hardcode_into_libs=yes
19601 # ldd complains unless libraries are executable
19602 postinstall_cmds='chmod +x $lib'
19607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19608 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19609 shlibpath_var=LD_LIBRARY_PATH
19610 shlibpath_overrides_runpath=yes
19611 if test "$with_gnu_ld" = yes; then
19619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19620 soname_spec='${libname}${release}${shared_ext}$major'
19621 shlibpath_var=LD_LIBRARY_PATH
19622 case $host_vendor in
19624 shlibpath_overrides_runpath=no
19626 runpath_var=LD_RUN_PATH
19634 shlibpath_overrides_runpath=no
19635 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19641 if test -d /usr/nec ;then
19643 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19644 soname_spec='$libname${shared_ext}.$major'
19645 shlibpath_var=LD_LIBRARY_PATH
19649 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19650 version_type=freebsd-elf
19653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19654 soname_spec='${libname}${release}${shared_ext}$major'
19655 shlibpath_var=LD_LIBRARY_PATH
19656 shlibpath_overrides_runpath=yes
19657 hardcode_into_libs=yes
19658 if test "$with_gnu_ld" = yes; then
19659 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19661 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19664 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19668 sys_lib_dlsearch_path_spec='/usr/lib'
19672 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19677 shlibpath_var=LD_LIBRARY_PATH
19678 shlibpath_overrides_runpath=no
19679 hardcode_into_libs=yes
19684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19685 soname_spec='${libname}${release}${shared_ext}$major'
19686 shlibpath_var=LD_LIBRARY_PATH
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19694 $as_echo "$dynamic_linker" >&6; }
19695 test "$dynamic_linker" = no && can_build_shared=no
19697 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19698 if test "$GCC" = yes; then
19699 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19702 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19703 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19705 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19706 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19747 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19748 hardcode_action_CXX=
19749 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19750 test -n "$runpath_var_CXX" ||
19751 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19753 # We can hardcode non-existent directories.
19754 if test "$hardcode_direct_CXX" != no &&
19755 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19756 # have to relink, otherwise we might link with an installed library
19757 # when we should be linking with a yet-to-be-installed one
19758 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19759 test "$hardcode_minus_L_CXX" != no; then
19760 # Linking always hardcodes the temporary library directory.
19761 hardcode_action_CXX=relink
19763 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19764 hardcode_action_CXX=immediate
19767 # We cannot hardcode anything, or else we can only hardcode existing
19769 hardcode_action_CXX=unsupported
19771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19772 $as_echo "$hardcode_action_CXX" >&6; }
19774 if test "$hardcode_action_CXX" = relink ||
19775 test "$inherit_rpath_CXX" = yes; then
19776 # Fast installation is not supported
19777 enable_fast_install=no
19778 elif test "$shlibpath_overrides_runpath" = yes ||
19779 test "$enable_shared" = no; then
19780 # Fast installation is not necessary
19781 enable_fast_install=needless
19790 fi # test -n "$compiler"
19793 CFLAGS=$lt_save_CFLAGS
19797 with_gnu_ld=$lt_save_with_gnu_ld
19798 lt_cv_path_LDCXX=$lt_cv_path_LD
19799 lt_cv_path_LD=$lt_save_path_LD
19800 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19801 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19802 fi # test "$_lt_caught_CXX_error" != yes
19805 ac_cpp='$CPP $CPPFLAGS'
19806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19822 ac_config_commands="$ac_config_commands libtool"
19827 # Only expand once:
19833 # Configure libltdl
19841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19842 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
19843 if ${libltdl_cv_shlibext+:} false; then :
19844 $as_echo_n "(cached) " >&6
19848 eval libltdl_cv_shlibext=$shrext_cmds
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19852 $as_echo "$libltdl_cv_shlibext" >&6; }
19853 if test -n "$libltdl_cv_shlibext"; then
19855 cat >>confdefs.h <<_ACEOF
19856 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
19861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19862 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
19863 if ${lt_cv_module_path_var+:} false; then :
19864 $as_echo_n "(cached) " >&6
19866 lt_cv_module_path_var="$shlibpath_var"
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19869 $as_echo "$lt_cv_module_path_var" >&6; }
19870 if test -n "$lt_cv_module_path_var"; then
19872 cat >>confdefs.h <<_ACEOF
19873 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19879 $as_echo_n "checking for the default library search path... " >&6; }
19880 if ${lt_cv_sys_dlsearch_path+:} false; then :
19881 $as_echo_n "(cached) " >&6
19883 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19886 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19887 if test -n "$lt_cv_sys_dlsearch_path"; then
19889 for dir in $lt_cv_sys_dlsearch_path; do
19890 if test -z "$sys_dlsearch_path"; then
19891 sys_dlsearch_path="$dir"
19893 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19897 cat >>confdefs.h <<_ACEOF
19898 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19908 ac_cpp='$CPP $CPPFLAGS'
19909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19916 $as_echo_n "checking for library containing dlopen... " >&6; }
19917 if ${ac_cv_search_dlopen+:} false; then :
19918 $as_echo_n "(cached) " >&6
19920 ac_func_search_save_LIBS=$LIBS
19921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19922 /* end confdefs.h. */
19924 /* Override any GCC internal prototype to avoid an error.
19925 Use char because int might match the return type of a GCC
19926 builtin and then its argument prototype would still apply. */
19939 for ac_lib in '' dl; do
19940 if test -z "$ac_lib"; then
19941 ac_res="none required"
19944 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19946 if ac_fn_c_try_link "$LINENO"; then :
19947 ac_cv_search_dlopen=$ac_res
19949 rm -f core conftest.err conftest.$ac_objext \
19951 if ${ac_cv_search_dlopen+:} false; then :
19955 if ${ac_cv_search_dlopen+:} false; then :
19958 ac_cv_search_dlopen=no
19960 rm conftest.$ac_ext
19961 LIBS=$ac_func_search_save_LIBS
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19964 $as_echo "$ac_cv_search_dlopen" >&6; }
19965 ac_res=$ac_cv_search_dlopen
19966 if test "$ac_res" != no; then :
19967 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19969 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19971 if test "$ac_cv_search_dlopen" != "none required" ; then
19972 LIBADD_DLOPEN="-ldl"
19974 libltdl_cv_lib_dl_dlopen="yes"
19975 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19978 /* end confdefs.h. */
19980 # include <dlfcn.h>
19991 if ac_fn_c_try_link "$LINENO"; then :
19993 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19995 libltdl_cv_func_dlopen="yes"
19996 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19999 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
20000 if ${ac_cv_lib_svld_dlopen+:} false; then :
20001 $as_echo_n "(cached) " >&6
20003 ac_check_lib_save_LIBS=$LIBS
20004 LIBS="-lsvld $LIBS"
20005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20006 /* end confdefs.h. */
20008 /* Override any GCC internal prototype to avoid an error.
20009 Use char because int might match the return type of a GCC
20010 builtin and then its argument prototype would still apply. */
20023 if ac_fn_c_try_link "$LINENO"; then :
20024 ac_cv_lib_svld_dlopen=yes
20026 ac_cv_lib_svld_dlopen=no
20028 rm -f core conftest.err conftest.$ac_objext \
20029 conftest$ac_exeext conftest.$ac_ext
20030 LIBS=$ac_check_lib_save_LIBS
20032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20033 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
20034 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
20036 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20038 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20039 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20043 rm -f core conftest.err conftest.$ac_objext \
20044 conftest$ac_exeext conftest.$ac_ext
20047 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20049 lt_save_LIBS="$LIBS"
20050 LIBS="$LIBS $LIBADD_DLOPEN"
20051 for ac_func in dlerror
20053 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
20054 if test "x$ac_cv_func_dlerror" = xyes; then :
20055 cat >>confdefs.h <<_ACEOF
20056 #define HAVE_DLERROR 1
20062 LIBS="$lt_save_LIBS"
20067 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
20068 if test "x$ac_cv_func_shl_load" = xyes; then :
20070 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20072 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20075 $as_echo_n "checking for shl_load in -ldld... " >&6; }
20076 if ${ac_cv_lib_dld_shl_load+:} false; then :
20077 $as_echo_n "(cached) " >&6
20079 ac_check_lib_save_LIBS=$LIBS
20081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20082 /* end confdefs.h. */
20084 /* Override any GCC internal prototype to avoid an error.
20085 Use char because int might match the return type of a GCC
20086 builtin and then its argument prototype would still apply. */
20094 return shl_load ();
20099 if ac_fn_c_try_link "$LINENO"; then :
20100 ac_cv_lib_dld_shl_load=yes
20102 ac_cv_lib_dld_shl_load=no
20104 rm -f core conftest.err conftest.$ac_objext \
20105 conftest$ac_exeext conftest.$ac_ext
20106 LIBS=$ac_check_lib_save_LIBS
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20109 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
20110 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
20112 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20114 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20115 LIBADD_SHL_LOAD="-ldld"
20124 # We only want this for pre-Mac OS X 10.4.
20125 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
20126 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
20128 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
20130 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20135 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20137 cygwin* | mingw* | os2* | pw32*)
20138 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20140 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
20146 cat >>confdefs.h <<_ACEOF
20147 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20150 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20155 $as_echo_n "checking for dld_link in -ldld... " >&6; }
20156 if ${ac_cv_lib_dld_dld_link+:} false; then :
20157 $as_echo_n "(cached) " >&6
20159 ac_check_lib_save_LIBS=$LIBS
20161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20162 /* end confdefs.h. */
20164 /* Override any GCC internal prototype to avoid an error.
20165 Use char because int might match the return type of a GCC
20166 builtin and then its argument prototype would still apply. */
20174 return dld_link ();
20179 if ac_fn_c_try_link "$LINENO"; then :
20180 ac_cv_lib_dld_dld_link=yes
20182 ac_cv_lib_dld_dld_link=no
20184 rm -f core conftest.err conftest.$ac_objext \
20185 conftest$ac_exeext conftest.$ac_ext
20186 LIBS=$ac_check_lib_save_LIBS
20188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20189 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
20190 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
20192 $as_echo "#define HAVE_DLD 1" >>confdefs.h
20194 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20201 if test -n "$LT_DLLOADERS"
20203 for lt_loader in $LT_DLLOADERS; do
20204 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20207 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20212 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20216 ac_cpp='$CPP $CPPFLAGS'
20217 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20218 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20219 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20223 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
20224 if ${lt_cv_sys_symbol_underscore+:} false; then :
20225 $as_echo_n "(cached) " >&6
20227 lt_cv_sys_symbol_underscore=no
20228 cat > conftest.$ac_ext <<_LT_EOF
20229 void nm_test_func(){}
20230 int main(){nm_test_func;return 0;}
20232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20233 (eval $ac_compile) 2>&5
20235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20236 test $ac_status = 0; }; then
20237 # Now try to grab the symbols.
20238 ac_nlist=conftest.nm
20239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20240 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20243 test $ac_status = 0; } && test -s "$ac_nlist"; then
20244 # See whether the symbols have a leading underscore.
20245 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20246 lt_cv_sys_symbol_underscore=yes
20248 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20251 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20255 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20258 echo "configure: failed program was:" >&5
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20265 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20266 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20269 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20270 if test x"$libltdl_cv_func_dlopen" = xyes ||
20271 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20273 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
20274 if ${libltdl_cv_need_uscore+:} false; then :
20275 $as_echo_n "(cached) " >&6
20277 libltdl_cv_need_uscore=unknown
20279 LIBS="$LIBS $LIBADD_DLOPEN"
20280 if test "$cross_compiling" = yes; then :
20281 libltdl_cv_need_uscore=cross
20283 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20284 lt_status=$lt_dlunknown
20285 cat > conftest.$ac_ext <<_LT_EOF
20286 #line $LINENO "configure"
20287 #include "confdefs.h"
20296 # define LT_DLGLOBAL RTLD_GLOBAL
20299 # define LT_DLGLOBAL DL_GLOBAL
20301 # define LT_DLGLOBAL 0
20305 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20306 find out it does not work in some platform. */
20307 #ifndef LT_DLLAZY_OR_NOW
20309 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20312 # define LT_DLLAZY_OR_NOW DL_LAZY
20315 # define LT_DLLAZY_OR_NOW RTLD_NOW
20318 # define LT_DLLAZY_OR_NOW DL_NOW
20320 # define LT_DLLAZY_OR_NOW 0
20327 /* When -fvisbility=hidden is used, assume the code has been annotated
20328 correspondingly for the symbols needed. */
20329 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20330 int fnord () __attribute__((visibility("default")));
20333 int fnord () { return 42; }
20336 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20337 int status = $lt_dlunknown;
20341 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20344 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20345 else puts (dlerror ());
20347 /* dlclose (self); */
20355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20356 (eval $ac_link) 2>&5
20358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20359 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20360 (./conftest; exit; ) >&5 2>/dev/null
20362 case x$lt_status in
20363 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20364 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20365 x$lt_dlunknown|x*) ;;
20368 # compilation failed
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20378 $as_echo "$libltdl_cv_need_uscore" >&6; }
20382 if test x"$libltdl_cv_need_uscore" = xyes; then
20384 $as_echo "#define NEED_USCORE 1" >>confdefs.h
20388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20389 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
20390 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
20391 $as_echo_n "(cached) " >&6
20393 # PORTME does your system automatically load deplibs for dlopen?
20394 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20395 # For now, we just catch OSes we know something about -- in the
20396 # future, we'll try test this programmatically.
20397 lt_cv_sys_dlopen_deplibs=unknown
20399 aix3*|aix4.1.*|aix4.2.*)
20400 # Unknown whether this is true for these versions of AIX, but
20401 # we want this `case' here to explicitly catch those versions.
20402 lt_cv_sys_dlopen_deplibs=unknown
20405 lt_cv_sys_dlopen_deplibs=yes
20410 lt_cv_sys_dlopen_deplibs=no
20415 # Assuming the user has installed a libdl from somewhere, this is true
20416 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20417 lt_cv_sys_dlopen_deplibs=yes
20419 freebsd* | dragonfly*)
20420 lt_cv_sys_dlopen_deplibs=yes
20422 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
20423 # GNU and its variants, using gnu ld.so (Glibc)
20424 lt_cv_sys_dlopen_deplibs=yes
20427 lt_cv_sys_dlopen_deplibs=yes
20430 lt_cv_sys_dlopen_deplibs=yes
20432 irix[12345]*|irix6.[01]*)
20433 # Catch all versions of IRIX before 6.2, and indicate that we don't
20434 # know how it worked for any of those versions.
20435 lt_cv_sys_dlopen_deplibs=unknown
20438 # The case above catches anything before 6.2, and it's known that
20439 # at 6.2 and later dlopen does load deplibs.
20440 lt_cv_sys_dlopen_deplibs=yes
20443 lt_cv_sys_dlopen_deplibs=yes
20446 lt_cv_sys_dlopen_deplibs=yes
20449 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20450 # it did *not* use an RPATH in a shared library to find objects the
20451 # library depends on, so we explicitly say `no'.
20452 lt_cv_sys_dlopen_deplibs=no
20454 osf5.0|osf5.0a|osf5.1)
20455 # dlopen *does* load deplibs and with the right loader patch applied
20456 # it even uses RPATH in a shared library to search for shared objects
20457 # that the library depends on, but there's no easy way to know if that
20458 # patch is installed. Since this is the case, all we can really
20459 # say is unknown -- it depends on the patch being installed. If
20460 # it is, this changes to `yes'. Without it, it would be `no'.
20461 lt_cv_sys_dlopen_deplibs=unknown
20464 # the two cases above should catch all versions of osf <= 5.1. Read
20465 # the comments above for what we know about them.
20466 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20467 # is used to find them so we can finally say `yes'.
20468 lt_cv_sys_dlopen_deplibs=yes
20471 lt_cv_sys_dlopen_deplibs=yes
20474 lt_cv_sys_dlopen_deplibs=yes
20476 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20477 libltdl_cv_sys_dlopen_deplibs=yes
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20483 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20484 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20486 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20492 for ac_header in argz.h
20494 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20496 if test "x$ac_cv_header_argz_h" = xyes; then :
20497 cat >>confdefs.h <<_ACEOF
20498 #define HAVE_ARGZ_H 1
20506 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20510 if test "x$ac_cv_type_error_t" = xyes; then :
20512 cat >>confdefs.h <<_ACEOF
20513 #define HAVE_ERROR_T 1
20519 $as_echo "#define error_t int" >>confdefs.h
20522 $as_echo "#define __error_t_defined 1" >>confdefs.h
20528 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20529 argz_next argz_stringify
20531 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20532 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20533 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20534 cat >>confdefs.h <<_ACEOF
20535 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20541 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20547 if test -z "$ARGZ_H"; then :
20548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20549 $as_echo_n "checking if argz actually works... " >&6; }
20550 if ${lt_cv_sys_argz_works+:} false; then :
20551 $as_echo_n "(cached) " >&6
20553 case $host_os in #(
20555 lt_cv_sys_argz_works=no
20556 if test "$cross_compiling" != no; then
20557 lt_cv_sys_argz_works="guessing no"
20559 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20562 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20567 if test "$lt_os_major" -gt 1 \
20568 || { test "$lt_os_major" -eq 1 \
20569 && { test "$lt_os_minor" -gt 5 \
20570 || { test "$lt_os_minor" -eq 5 \
20571 && test "$lt_os_micro" -gt 24; }; }; }; then
20572 lt_cv_sys_argz_works=yes
20576 *) lt_cv_sys_argz_works=yes ;;
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20580 $as_echo "$lt_cv_sys_argz_works" >&6; }
20581 if test "$lt_cv_sys_argz_works" = yes; then :
20583 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20589 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20597 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
20598 if ${libltdl_cv_preloaded_symbols+:} false; then :
20599 $as_echo_n "(cached) " >&6
20601 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20602 libltdl_cv_preloaded_symbols=yes
20604 libltdl_cv_preloaded_symbols=no
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20609 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20610 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20612 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20628 # Check whether --with-included_ltdl was given.
20629 if test "${with_included_ltdl+set}" = set; then :
20630 withval=$with_included_ltdl;
20634 if test "x$with_included_ltdl" != xyes; then
20635 # We are not being forced to use the included libltdl sources, so
20636 # decide whether there is a useful installed version we can use.
20637 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20640 if test "x$ac_cv_header_ltdl_h" = xyes; then :
20641 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20644 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
20645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20646 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
20647 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
20648 $as_echo_n "(cached) " >&6
20650 ac_check_lib_save_LIBS=$LIBS
20651 LIBS="-lltdl $LIBS"
20652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20653 /* end confdefs.h. */
20655 /* Override any GCC internal prototype to avoid an error.
20656 Use char because int might match the return type of a GCC
20657 builtin and then its argument prototype would still apply. */
20661 char lt_dladvise_preload ();
20665 return lt_dladvise_preload ();
20670 if ac_fn_c_try_link "$LINENO"; then :
20671 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20673 ac_cv_lib_ltdl_lt_dladvise_preload=no
20675 rm -f core conftest.err conftest.$ac_objext \
20676 conftest$ac_exeext conftest.$ac_ext
20677 LIBS=$ac_check_lib_save_LIBS
20679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20680 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
20681 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
20682 with_included_ltdl=no
20684 with_included_ltdl=yes
20688 with_included_ltdl=yes
20692 with_included_ltdl=yes
20701 # Check whether --with-ltdl_include was given.
20702 if test "${with_ltdl_include+set}" = set; then :
20703 withval=$with_ltdl_include;
20707 if test -n "$with_ltdl_include"; then
20708 if test -f "$with_ltdl_include/ltdl.h"; then :
20710 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
20713 with_ltdl_include=no
20717 # Check whether --with-ltdl_lib was given.
20718 if test "${with_ltdl_lib+set}" = set; then :
20719 withval=$with_ltdl_lib;
20723 if test -n "$with_ltdl_lib"; then
20724 if test -f "$with_ltdl_lib/libltdl.la"; then :
20726 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
20732 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20734 case $enable_ltdl_convenience in
20735 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
20736 "") enable_ltdl_convenience=yes
20737 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20739 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20741 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20747 # For backwards non-gettext consistent compatibility...
20748 INCLTDL="$LTDLINCL"
20753 # If the included ltdl is not to be used, then use the
20754 # preinstalled libltdl we found.
20756 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
20763 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
20765 *) with_included_ltdl=no
20766 LIBLTDL="-L$with_ltdl_lib -lltdl"
20768 LTDLINCL="-I$with_ltdl_include"
20771 INCLTDL="$LTDLINCL"
20773 # Report our decision...
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20775 $as_echo_n "checking where to find libltdl headers... " >&6; }
20776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20777 $as_echo "$LTDLINCL" >&6; }
20778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20779 $as_echo_n "checking where to find libltdl library... " >&6; }
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20781 $as_echo "$LIBLTDL" >&6; }
20785 # Check whether --enable-ltdl-install was given.
20786 if test "${enable_ltdl_install+set}" = set; then :
20787 enableval=$enable_ltdl_install;
20791 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20793 *) enable_ltdl_convenience=yes ;;
20796 if test x"${enable_ltdl_install-no}" != xno; then
20798 INSTALL_LTDL_FALSE='#'
20800 INSTALL_LTDL_TRUE='#'
20801 INSTALL_LTDL_FALSE=
20804 if test x"${enable_ltdl_convenience-no}" != xno; then
20805 CONVENIENCE_LTDL_TRUE=
20806 CONVENIENCE_LTDL_FALSE='#'
20808 CONVENIENCE_LTDL_TRUE='#'
20809 CONVENIENCE_LTDL_FALSE=
20817 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20818 # the user used. This is so that ltdl.h can pick up the parent projects
20819 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
20820 # definitions required by ltdl.c.
20821 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20825 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20827 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20828 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20830 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20831 cat >>confdefs.h <<_ACEOF
20832 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20840 for ac_func in closedir opendir readdir
20842 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20843 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20844 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20845 cat >>confdefs.h <<_ACEOF
20846 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20852 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20857 for ac_func in strlcat strlcpy
20859 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20860 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20861 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20862 cat >>confdefs.h <<_ACEOF
20863 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20869 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20876 cat >>confdefs.h <<_ACEOF
20877 #define LT_LIBEXT "$libext"
20882 eval "lt_libprefix=\"$libname_spec\""
20884 cat >>confdefs.h <<_ACEOF
20885 #define LT_LIBPREFIX "$lt_libprefix"
20890 eval "LTDLOPEN=\"$libname_spec\""
20899 # Only expand once:
20903 # Check to see if building shared libraries
20904 libtool_build_shared_libs='no'
20905 if test "$enable_shared" = 'yes'; then
20906 libtool_build_shared_libs='yes'
20909 # Check to see if building static libraries
20910 libtool_build_static_libs='no'
20911 if test "$enable_static" = 'yes'; then
20912 libtool_build_static_libs='yes'
20915 if test "${libtool_build_shared_libs}" = 'yes'; then
20916 WITH_SHARED_LIBS_TRUE=
20917 WITH_SHARED_LIBS_FALSE='#'
20919 WITH_SHARED_LIBS_TRUE='#'
20920 WITH_SHARED_LIBS_FALSE=
20924 # Enable support for building loadable modules
20927 # Check whether --with-modules was given.
20928 if test "${with_modules+set}" = set; then :
20929 withval=$with_modules; with_modules=$withval
20935 # Only allow building loadable modules if we are building shared libraries
20936 if test "$with_modules" != 'no' ; then
20937 if test "$libtool_build_shared_libs" = 'no'; then
20938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
20939 $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20943 if test "$with_modules" != 'no'; then
20945 $as_echo "#define BUILD_MODULES 1" >>confdefs.h
20948 if test "$with_modules" != 'no'; then
20950 WITH_MODULES_FALSE='#'
20952 WITH_MODULES_TRUE='#'
20953 WITH_MODULES_FALSE=
20957 # Enable building/use of libltdl if we are building shared libraries regardless
20958 # of whether modules are built or not.
20960 if test "$libtool_build_shared_libs" != 'no'; then
20964 if test "$with_ltdl" != 'no'; then
20966 WITH_LTDL_FALSE='#'
20972 if test "$with_ltdl" != 'no'; then
20974 $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
20978 if test X"$enable_shared" = Xyes; then
20979 DLLDFLAGS=-export-dynamic
20984 # Enable build using delegate libraries built in subdirectories rather than installed
20985 # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
20986 # Check whether --enable-delegate-build was given.
20987 if test "${enable_delegate_build+set}" = set; then :
20988 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20990 enable_delegate_build='no'
20994 # Check whether --enable-deprecated was given.
20995 if test "${enable_deprecated+set}" = set; then :
20996 enableval=$enable_deprecated; enable_deprecated=$enableval
20998 enable_deprecated='no'
21002 if test "$enable_deprecated" = 'yes'; then
21004 $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
21007 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21010 # Build a version of ImageMagick which operates uninstalled.
21011 # Used to build distributions located via MAGICK_HOME / executable path
21012 # Check whether --enable-installed was given.
21013 if test "${enable_installed+set}" = set; then :
21014 enableval=$enable_installed; enable_installed=$enableval
21016 enable_installed='yes'
21020 if test "$enable_installed" = 'yes'; then
21022 $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
21025 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21028 # Permit enciphering and deciphering image pixels.
21029 # Check whether --enable-cipher was given.
21030 if test "${enable_cipher+set}" = set; then :
21031 enableval=$enable_cipher; enable_cipher=$enableval
21033 enable_cipher='yes'
21037 if test "$enable_cipher" = 'yes'; then
21039 $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
21043 # Build an embeddable version of ImageMagick.
21044 # Check whether --enable-embeddable was given.
21045 if test "${enable_embeddable+set}" = set; then :
21046 enableval=$enable_embeddable; enable_embeddable=$enableval
21048 enable_embeddable='no'
21052 if test "$enable_embeddable" = 'yes'; then
21054 $as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
21058 # Build a high dynamic range version of ImageMagick.
21059 # Check whether --enable-hdri was given.
21060 if test "${enable_hdri+set}" = set; then :
21061 enableval=$enable_hdri; enable_hdri=$enableval
21068 if test "$enable_hdri" = 'yes'; then
21071 $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
21073 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
21076 # Build a version of ImageMagick with assert statements.
21077 # Check whether --enable-assert was given.
21078 if test "${enable_assert+set}" = set; then :
21079 enableval=$enable_assert; enable_assert=$enableval
21081 enable_assert='yes'
21085 if test "$enable_assert" = 'no'; then
21087 $as_echo "#define NDEBUG 1" >>confdefs.h
21091 # Add configure option --enable-maintainer-mode which enables dependency
21092 # checking and generation useful to package maintainers. This is made an
21093 # option to avoid confusing end users.
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21096 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21097 # Check whether --enable-maintainer-mode was given.
21098 if test "${enable_maintainer_mode+set}" = set; then :
21099 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21101 USE_MAINTAINER_MODE=no
21104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21105 $as_echo "$USE_MAINTAINER_MODE" >&6; }
21106 if test $USE_MAINTAINER_MODE = yes; then
21107 MAINTAINER_MODE_TRUE=
21108 MAINTAINER_MODE_FALSE='#'
21110 MAINTAINER_MODE_TRUE='#'
21111 MAINTAINER_MODE_FALSE=
21114 MAINT=$MAINTAINER_MODE_TRUE
21119 # Enable ccmalloc memory debugging support
21120 # Check whether --enable-ccmalloc was given.
21121 if test "${enable_ccmalloc+set}" = set; then :
21122 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21124 enable_ccmalloc='no'
21128 # Enable Electric Fence memory debugging support
21129 # Check whether --enable-efence was given.
21130 if test "${enable_efence+set}" = set; then :
21131 enableval=$enable_efence; enable_efence=$enableval
21137 # Enable prof-based profiling support
21138 # Check whether --enable-prof was given.
21139 if test "${enable_prof+set}" = set; then :
21140 enableval=$enable_prof; enable_prof=$enableval
21146 # Enable gprof-based profiling support
21147 # Check whether --enable-gprof was given.
21148 if test "${enable_gprof+set}" = set; then :
21149 enableval=$enable_gprof; enable_gprof=$enableval
21155 # Enable gcov-based profiling support
21156 # Check whether --enable-gcov was given.
21157 if test "${enable_gcov+set}" = set; then :
21158 enableval=$enable_gcov; enable_gcov=$enableval
21164 enable_profiling='no'
21165 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21166 enable_profiling='yes'
21167 if test "$libtool_build_shared_libs" = 'yes'; then
21168 echo "Warning: Can not profile code using shared libraries"
21172 # Magick API method prefix
21174 # Check whether --with-method-prefix was given.
21175 if test "${with_method_prefix+set}" = set; then :
21176 withval=$with_method_prefix; with_method_prefix=$enableval
21178 with_method_prefix=''
21182 if test "$with_method_prefix" != ''; then
21184 cat >>confdefs.h <<_ACEOF
21185 #define NAMESPACE_PREFIX $with_method_prefix
21190 # Number of bits in a Quantum
21192 # Check whether --with-quantum-depth was given.
21193 if test "${with_quantum_depth+set}" = set; then :
21194 withval=$with_quantum_depth; with_quantum_depth=$withval
21196 with_quantum_depth=16
21200 if test "$with_quantum_depth" != '8'; then
21201 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21204 case "${with_quantum_depth}" in
21209 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
21211 QUANTUM_DEPTH="$with_quantum_depth"
21213 cat >>confdefs.h <<_ACEOF
21214 #define QUANTUM_DEPTH $QUANTUM_DEPTH
21218 # Set pixel cache threshold
21220 # Check whether --with-cache was given.
21221 if test "${with_cache+set}" = set; then :
21222 withval=$with_cache; with_cache=$withval
21228 if test "$with_cache" != ''; then
21230 cat >>confdefs.h <<_ACEOF
21231 #define PixelCacheThreshold $with_cache
21234 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21237 # Disable/Enable support for full delegate paths
21239 # Check whether --with-frozenpaths was given.
21240 if test "${with_frozenpaths+set}" = set; then :
21241 withval=$with_frozenpaths; with_frozenpaths=$withval
21243 with_frozenpaths='no'
21247 # Enable build/install of Magick++
21249 # Check whether --with-magick-plus-plus was given.
21250 if test "${with_magick_plus_plus+set}" = set; then :
21251 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21253 with_magick_plus_plus='yes'
21257 # Disable build/install of PerlMagick.
21259 # Check whether --with-perl was given.
21260 if test "${with_perl+set}" = set; then :
21261 withval=$with_perl; with_perl=$withval
21267 # Options to pass when configuring PerlMagick
21269 # Check whether --with-perl-options was given.
21270 if test "${with_perl_options+set}" = set; then :
21271 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
21276 # Enable umem, object-caching memory allocation library.
21278 # Check whether --with-umem was given.
21279 if test "${with_umem+set}" = set; then :
21280 withval=$with_umem; with_umem=$withval
21285 if test "$with_umem" != 'yes' ; then
21286 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21290 # Specify path to shared libstdc++ if not in normal location
21293 # Check whether --with-libstdc was given.
21294 if test "${with_libstdc+set}" = set; then :
21295 withval=$with_libstdc; with_libstdc=$withval
21301 if test "$with_libstdc" != ''; then
21302 if test -d "$with_libstdc"; then
21303 LIBSTDCLDFLAGS="-L$with_libstdc"
21308 # Does gcc required -traditional?
21309 if test $ac_cv_c_compiler_gnu = yes; then
21310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
21311 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
21312 if ${ac_cv_prog_gcc_traditional+:} false; then :
21313 $as_echo_n "(cached) " >&6
21315 ac_pattern="Autoconf.*'x'"
21316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21317 /* end confdefs.h. */
21321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21322 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21323 ac_cv_prog_gcc_traditional=yes
21325 ac_cv_prog_gcc_traditional=no
21330 if test $ac_cv_prog_gcc_traditional = no; then
21331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21332 /* end confdefs.h. */
21333 #include <termio.h>
21336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21337 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21338 ac_cv_prog_gcc_traditional=yes
21344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
21345 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21346 if test $ac_cv_prog_gcc_traditional = yes; then
21347 CC="$CC -traditional"
21354 # Set defines required to build DLLs and modules using MinGW
21357 # These options are set for multi-thread DLL module build
21358 # libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21360 # executable/Magick++: _DLL _MAGICKMOD_
21361 MODULE_EXTRA_CPPFLAGS=''
21362 LIBRARY_EXTRA_CPPFLAGS=''
21363 if test "${native_win32_build}" = 'yes'; then
21364 if test "${libtool_build_shared_libs}" = 'yes'; then
21365 CPPFLAGS="$CPPFLAGS -D_DLL"
21366 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21367 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21368 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21369 if test "$with_modules" = 'yes'; then
21370 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21372 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21375 CPPFLAGS="$CPPFLAGS -D_LIB"
21376 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21377 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21379 if test "$with_threads" = 'yes'; then
21380 CPPFLAGS="$CPPFLAGS -D_MT"
21381 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21382 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21388 # Check standard headers
21389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
21390 $as_echo_n "checking for ANSI C header files... " >&6; }
21391 if ${ac_cv_header_stdc+:} false; then :
21392 $as_echo_n "(cached) " >&6
21394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21395 /* end confdefs.h. */
21396 #include <stdlib.h>
21397 #include <stdarg.h>
21398 #include <string.h>
21409 if ac_fn_c_try_compile "$LINENO"; then :
21410 ac_cv_header_stdc=yes
21412 ac_cv_header_stdc=no
21414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21416 if test $ac_cv_header_stdc = yes; then
21417 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21419 /* end confdefs.h. */
21420 #include <string.h>
21423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21424 $EGREP "memchr" >/dev/null 2>&1; then :
21427 ac_cv_header_stdc=no
21433 if test $ac_cv_header_stdc = yes; then
21434 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21436 /* end confdefs.h. */
21437 #include <stdlib.h>
21440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21441 $EGREP "free" >/dev/null 2>&1; then :
21444 ac_cv_header_stdc=no
21450 if test $ac_cv_header_stdc = yes; then
21451 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21452 if test "$cross_compiling" = yes; then :
21455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21456 /* end confdefs.h. */
21458 #include <stdlib.h>
21459 #if ((' ' & 0x0FF) == 0x020)
21460 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21461 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21463 # define ISLOWER(c) \
21464 (('a' <= (c) && (c) <= 'i') \
21465 || ('j' <= (c) && (c) <= 'r') \
21466 || ('s' <= (c) && (c) <= 'z'))
21467 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21470 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21475 for (i = 0; i < 256; i++)
21476 if (XOR (islower (i), ISLOWER (i))
21477 || toupper (i) != TOUPPER (i))
21482 if ac_fn_c_try_run "$LINENO"; then :
21485 ac_cv_header_stdc=no
21487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21488 conftest.$ac_objext conftest.beam conftest.$ac_ext
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21494 $as_echo "$ac_cv_header_stdc" >&6; }
21495 if test $ac_cv_header_stdc = yes; then
21497 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21501 if ! test x"$ac_cv_header_stdc" = x"yes"; then
21502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
21503 header files. Compilation cannot proceed. Please install the ANSI C
21504 headers and rerun this script." >&5
21505 $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21506 header files. Compilation cannot proceed. Please install the ANSI C
21507 headers and rerun this script." >&2;};
21510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21511 $as_echo_n "checking whether to enable assertions... " >&6; }
21512 # Check whether --enable-assert was given.
21513 if test "${enable_assert+set}" = set; then :
21514 enableval=$enable_assert; ac_enable_assert=$enableval
21515 if test "x$enableval" = xno; then :
21517 $as_echo "#define NDEBUG 1" >>confdefs.h
21519 elif test "x$enableval" != xyes; then :
21520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21521 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21522 ac_enable_assert=yes
21525 ac_enable_assert=yes
21528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21529 $as_echo "$ac_enable_assert" >&6; }
21531 ac_header_dirent=no
21532 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21533 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21535 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21536 if eval \${$as_ac_Header+:} false; then :
21537 $as_echo_n "(cached) " >&6
21539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21540 /* end confdefs.h. */
21541 #include <sys/types.h>
21553 if ac_fn_c_try_compile "$LINENO"; then :
21554 eval "$as_ac_Header=yes"
21556 eval "$as_ac_Header=no"
21558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21560 eval ac_res=\$$as_ac_Header
21561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21562 $as_echo "$ac_res" >&6; }
21563 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21564 cat >>confdefs.h <<_ACEOF
21565 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21568 ac_header_dirent=$ac_hdr; break
21572 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21573 if test $ac_header_dirent = dirent.h; then
21574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21575 $as_echo_n "checking for library containing opendir... " >&6; }
21576 if ${ac_cv_search_opendir+:} false; then :
21577 $as_echo_n "(cached) " >&6
21579 ac_func_search_save_LIBS=$LIBS
21580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21581 /* end confdefs.h. */
21583 /* Override any GCC internal prototype to avoid an error.
21584 Use char because int might match the return type of a GCC
21585 builtin and then its argument prototype would still apply. */
21598 for ac_lib in '' dir; do
21599 if test -z "$ac_lib"; then
21600 ac_res="none required"
21603 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21605 if ac_fn_c_try_link "$LINENO"; then :
21606 ac_cv_search_opendir=$ac_res
21608 rm -f core conftest.err conftest.$ac_objext \
21610 if ${ac_cv_search_opendir+:} false; then :
21614 if ${ac_cv_search_opendir+:} false; then :
21617 ac_cv_search_opendir=no
21619 rm conftest.$ac_ext
21620 LIBS=$ac_func_search_save_LIBS
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21623 $as_echo "$ac_cv_search_opendir" >&6; }
21624 ac_res=$ac_cv_search_opendir
21625 if test "$ac_res" != no; then :
21626 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21632 $as_echo_n "checking for library containing opendir... " >&6; }
21633 if ${ac_cv_search_opendir+:} false; then :
21634 $as_echo_n "(cached) " >&6
21636 ac_func_search_save_LIBS=$LIBS
21637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21638 /* end confdefs.h. */
21640 /* Override any GCC internal prototype to avoid an error.
21641 Use char because int might match the return type of a GCC
21642 builtin and then its argument prototype would still apply. */
21655 for ac_lib in '' x; do
21656 if test -z "$ac_lib"; then
21657 ac_res="none required"
21660 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21662 if ac_fn_c_try_link "$LINENO"; then :
21663 ac_cv_search_opendir=$ac_res
21665 rm -f core conftest.err conftest.$ac_objext \
21667 if ${ac_cv_search_opendir+:} false; then :
21671 if ${ac_cv_search_opendir+:} false; then :
21674 ac_cv_search_opendir=no
21676 rm conftest.$ac_ext
21677 LIBS=$ac_func_search_save_LIBS
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21680 $as_echo "$ac_cv_search_opendir" >&6; }
21681 ac_res=$ac_cv_search_opendir
21682 if test "$ac_res" != no; then :
21683 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21690 # Check additional headers
21691 for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h
21693 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21694 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21695 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21696 cat >>confdefs.h <<_ACEOF
21697 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21707 # Checks for typedefs, structures, and compiler characteristics.
21711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21712 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21713 if ${ac_cv_header_stdbool_h+:} false; then :
21714 $as_echo_n "(cached) " >&6
21716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21717 /* end confdefs.h. */
21719 #include <stdbool.h>
21721 "error: bool is not defined"
21724 "error: false is not defined"
21727 "error: false is not 0"
21730 "error: true is not defined"
21733 "error: true is not 1"
21735 #ifndef __bool_true_false_are_defined
21736 "error: __bool_true_false_are_defined is not defined"
21739 struct s { _Bool s: 1; _Bool t; } s;
21741 char a[true == 1 ? 1 : -1];
21742 char b[false == 0 ? 1 : -1];
21743 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21744 char d[(bool) 0.5 == true ? 1 : -1];
21745 /* See body of main program for 'e'. */
21746 char f[(_Bool) 0.0 == false ? 1 : -1];
21748 char h[sizeof (_Bool)];
21749 char i[sizeof s.t];
21750 enum { j = false, k = true, l = false * true, m = true * 256 };
21751 /* The following fails for
21752 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21754 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21755 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21756 /* Catch a bug in an HP-UX C compiler. See
21757 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21758 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21770 /* Refer to every declared value, to avoid compiler optimizations. */
21771 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21772 + !m + !n + !o + !p + !q + !pq);
21778 if ac_fn_c_try_compile "$LINENO"; then :
21779 ac_cv_header_stdbool_h=yes
21781 ac_cv_header_stdbool_h=no
21783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21786 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21787 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21788 if test "x$ac_cv_type__Bool" = xyes; then :
21790 cat >>confdefs.h <<_ACEOF
21791 #define HAVE__BOOL 1
21797 if test $ac_cv_header_stdbool_h = yes; then
21799 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
21804 $as_echo_n "checking for working volatile... " >&6; }
21805 if ${ac_cv_c_volatile+:} false; then :
21806 $as_echo_n "(cached) " >&6
21808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21809 /* end confdefs.h. */
21816 int * volatile y = (int *) 0;
21822 if ac_fn_c_try_compile "$LINENO"; then :
21823 ac_cv_c_volatile=yes
21825 ac_cv_c_volatile=no
21827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
21830 $as_echo "$ac_cv_c_volatile" >&6; }
21831 if test $ac_cv_c_volatile = no; then
21833 $as_echo "#define volatile /**/" >>confdefs.h
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
21838 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
21839 if ${ac_cv_c_stringize+:} false; then :
21840 $as_echo_n "(cached) " >&6
21842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21843 /* end confdefs.h. */
21846 char *s = x(teststring);
21848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21849 $EGREP "#teststring" >/dev/null 2>&1; then :
21850 ac_cv_c_stringize=no
21852 ac_cv_c_stringize=yes
21857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
21858 $as_echo "$ac_cv_c_stringize" >&6; }
21859 if test $ac_cv_c_stringize = yes; then
21861 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21866 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21867 if ${ac_cv_header_stat_broken+:} false; then :
21868 $as_echo_n "(cached) " >&6
21870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21871 /* end confdefs.h. */
21872 #include <sys/types.h>
21873 #include <sys/stat.h>
21875 #if defined S_ISBLK && defined S_IFDIR
21876 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21879 #if defined S_ISBLK && defined S_IFCHR
21880 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21883 #if defined S_ISLNK && defined S_IFREG
21884 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21887 #if defined S_ISSOCK && defined S_IFREG
21888 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21892 if ac_fn_c_try_compile "$LINENO"; then :
21893 ac_cv_header_stat_broken=no
21895 ac_cv_header_stat_broken=yes
21897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21900 $as_echo "$ac_cv_header_stat_broken" >&6; }
21901 if test $ac_cv_header_stat_broken = yes; then
21903 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21908 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21909 if ${ac_cv_header_time+:} false; then :
21910 $as_echo_n "(cached) " >&6
21912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21913 /* end confdefs.h. */
21914 #include <sys/types.h>
21915 #include <sys/time.h>
21921 if ((struct tm *) 0)
21927 if ac_fn_c_try_compile "$LINENO"; then :
21928 ac_cv_header_time=yes
21930 ac_cv_header_time=no
21932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21935 $as_echo "$ac_cv_header_time" >&6; }
21936 if test $ac_cv_header_time = yes; then
21938 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21943 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21944 if ${ac_cv_struct_tm+:} false; then :
21945 $as_echo_n "(cached) " >&6
21947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21948 /* end confdefs.h. */
21949 #include <sys/types.h>
21956 int *p = &tm.tm_sec;
21962 if ac_fn_c_try_compile "$LINENO"; then :
21963 ac_cv_struct_tm=time.h
21965 ac_cv_struct_tm=sys/time.h
21967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21970 $as_echo "$ac_cv_struct_tm" >&6; }
21971 if test $ac_cv_struct_tm = sys/time.h; then
21973 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21977 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21978 #include <$ac_cv_struct_tm>
21981 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
21983 cat >>confdefs.h <<_ACEOF
21984 #define HAVE_STRUCT_TM_TM_ZONE 1
21990 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21992 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21995 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21997 if test "x$ac_cv_have_decl_tzname" = xyes; then :
22003 cat >>confdefs.h <<_ACEOF
22004 #define HAVE_DECL_TZNAME $ac_have_decl
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22008 $as_echo_n "checking for tzname... " >&6; }
22009 if ${ac_cv_var_tzname+:} false; then :
22010 $as_echo_n "(cached) " >&6
22012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22013 /* end confdefs.h. */
22015 #if !HAVE_DECL_TZNAME
22016 extern char *tzname[];
22022 return tzname[0][0];
22027 if ac_fn_c_try_link "$LINENO"; then :
22028 ac_cv_var_tzname=yes
22030 ac_cv_var_tzname=no
22032 rm -f core conftest.err conftest.$ac_objext \
22033 conftest$ac_exeext conftest.$ac_ext
22035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22036 $as_echo "$ac_cv_var_tzname" >&6; }
22037 if test $ac_cv_var_tzname = yes; then
22039 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
22045 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
22046 if ${ac_cv_sys_interpreter+:} false; then :
22047 $as_echo_n "(cached) " >&6
22053 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22054 if test $? -ne 69; then
22055 ac_cv_sys_interpreter=yes
22057 ac_cv_sys_interpreter=no
22061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
22062 $as_echo "$ac_cv_sys_interpreter" >&6; }
22063 interpval=$ac_cv_sys_interpreter
22066 # If the C compiler supports the keyword inline, do nothing. Otherwise
22067 # define inline to __inline__ or __inline if it accepts one of those,
22068 # otherwise define inline to be empty.
22069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22070 $as_echo_n "checking for inline... " >&6; }
22071 if ${ac_cv_c_inline+:} false; then :
22072 $as_echo_n "(cached) " >&6
22075 for ac_kw in inline __inline__ __inline; do
22076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22077 /* end confdefs.h. */
22078 #ifndef __cplusplus
22080 static $ac_kw foo_t static_foo () {return 0; }
22081 $ac_kw foo_t foo () {return 0; }
22085 if ac_fn_c_try_compile "$LINENO"; then :
22086 ac_cv_c_inline=$ac_kw
22088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22089 test "$ac_cv_c_inline" != no && break
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22094 $as_echo "$ac_cv_c_inline" >&6; }
22096 case $ac_cv_c_inline in
22099 case $ac_cv_c_inline in
22101 *) ac_val=$ac_cv_c_inline;;
22103 cat >>confdefs.h <<_ACEOF
22104 #ifndef __cplusplus
22105 #define inline $ac_val
22112 # If the C compiler supports the keyword restrict, do nothing. Otherwise
22113 # define restrict to __restrict__ or __restrict if it accepts one of those,
22114 # otherwise define restrict to be empty.
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
22116 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
22117 if ${ac_cv_c_restrict+:} false; then :
22118 $as_echo_n "(cached) " >&6
22120 ac_cv_c_restrict=no
22121 # The order here caters to the fact that C++ does not require restrict.
22122 for ac_kw in __restrict __restrict__ _Restrict restrict; do
22123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22124 /* end confdefs.h. */
22125 typedef int * int_ptr;
22126 int foo (int_ptr $ac_kw ip) {
22133 int * $ac_kw t = s;
22140 if ac_fn_c_try_compile "$LINENO"; then :
22141 ac_cv_c_restrict=$ac_kw
22143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22144 test "$ac_cv_c_restrict" != no && break
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
22149 $as_echo "$ac_cv_c_restrict" >&6; }
22151 case $ac_cv_c_restrict in
22153 no) $as_echo "#define restrict /**/" >>confdefs.h
22155 *) cat >>confdefs.h <<_ACEOF
22156 #define restrict $ac_cv_c_restrict
22162 # If words are stored with the most significant byte first (like
22163 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22165 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22166 if ${ac_cv_c_bigendian+:} false; then :
22167 $as_echo_n "(cached) " >&6
22169 ac_cv_c_bigendian=unknown
22170 # See if we're dealing with a universal compiler.
22171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22172 /* end confdefs.h. */
22173 #ifndef __APPLE_CC__
22174 not a universal capable compiler
22179 if ac_fn_c_try_compile "$LINENO"; then :
22181 # Check for potential -arch flags. It is not universal unless
22182 # there are at least two -arch flags with different values.
22185 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22186 if test -n "$ac_prev"; then
22188 i?86 | x86_64 | ppc | ppc64)
22189 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22192 ac_cv_c_bigendian=universal
22198 elif test "x$ac_word" = "x-arch"; then
22203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22204 if test $ac_cv_c_bigendian = unknown; then
22205 # See if sys/param.h defines the BYTE_ORDER macro.
22206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22207 /* end confdefs.h. */
22208 #include <sys/types.h>
22209 #include <sys/param.h>
22214 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22215 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22217 bogus endian macros
22224 if ac_fn_c_try_compile "$LINENO"; then :
22225 # It does; now see whether it defined to BIG_ENDIAN or not.
22226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22227 /* end confdefs.h. */
22228 #include <sys/types.h>
22229 #include <sys/param.h>
22234 #if BYTE_ORDER != BIG_ENDIAN
22242 if ac_fn_c_try_compile "$LINENO"; then :
22243 ac_cv_c_bigendian=yes
22245 ac_cv_c_bigendian=no
22247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22251 if test $ac_cv_c_bigendian = unknown; then
22252 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22254 /* end confdefs.h. */
22255 #include <limits.h>
22260 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22261 bogus endian macros
22268 if ac_fn_c_try_compile "$LINENO"; then :
22269 # It does; now see whether it defined to _BIG_ENDIAN or not.
22270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22271 /* end confdefs.h. */
22272 #include <limits.h>
22277 #ifndef _BIG_ENDIAN
22285 if ac_fn_c_try_compile "$LINENO"; then :
22286 ac_cv_c_bigendian=yes
22288 ac_cv_c_bigendian=no
22290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22294 if test $ac_cv_c_bigendian = unknown; then
22295 # Compile a test program.
22296 if test "$cross_compiling" = yes; then :
22297 # Try to guess by grepping values from an object file.
22298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22299 /* end confdefs.h. */
22300 short int ascii_mm[] =
22301 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22302 short int ascii_ii[] =
22303 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22304 int use_ascii (int i) {
22305 return ascii_mm[i] + ascii_ii[i];
22307 short int ebcdic_ii[] =
22308 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22309 short int ebcdic_mm[] =
22310 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22311 int use_ebcdic (int i) {
22312 return ebcdic_mm[i] + ebcdic_ii[i];
22319 return use_ascii (foo) == use_ebcdic (foo);
22324 if ac_fn_c_try_compile "$LINENO"; then :
22325 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22326 ac_cv_c_bigendian=yes
22328 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22329 if test "$ac_cv_c_bigendian" = unknown; then
22330 ac_cv_c_bigendian=no
22332 # finding both strings is unlikely to happen, but who knows?
22333 ac_cv_c_bigendian=unknown
22337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22340 /* end confdefs.h. */
22341 $ac_includes_default
22346 /* Are we little or big endian? From Harbison&Steele. */
22350 char c[sizeof (long int)];
22353 return u.c[sizeof (long int) - 1] == 1;
22359 if ac_fn_c_try_run "$LINENO"; then :
22360 ac_cv_c_bigendian=no
22362 ac_cv_c_bigendian=yes
22364 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22365 conftest.$ac_objext conftest.beam conftest.$ac_ext
22370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
22371 $as_echo "$ac_cv_c_bigendian" >&6; }
22372 case $ac_cv_c_bigendian in #(
22374 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
22380 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22384 as_fn_error $? "unknown endianness
22385 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
22389 # Define to a suitable type, if standard headers do not define it.
22390 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22391 case $ac_cv_c_int8_t in #(
22395 cat >>confdefs.h <<_ACEOF
22396 #define int8_t $ac_cv_c_int8_t
22401 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22402 case $ac_cv_c_int16_t in #(
22406 cat >>confdefs.h <<_ACEOF
22407 #define int16_t $ac_cv_c_int16_t
22412 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22413 case $ac_cv_c_int32_t in #(
22417 cat >>confdefs.h <<_ACEOF
22418 #define int32_t $ac_cv_c_int32_t
22423 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22424 case $ac_cv_c_int64_t in #(
22428 cat >>confdefs.h <<_ACEOF
22429 #define int64_t $ac_cv_c_int64_t
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22436 $as_echo_n "checking for long long int... " >&6; }
22437 if ${ac_cv_type_long_long_int+:} false; then :
22438 $as_echo_n "(cached) " >&6
22440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22441 /* end confdefs.h. */
22443 /* For now, do not test the preprocessor; as of 2007 there are too many
22444 implementations with broken preprocessors. Perhaps this can
22445 be revisited in 2012. In the meantime, code should not expect
22446 #if to work with literals wider than 32 bits. */
22447 /* Test literals. */
22448 long long int ll = 9223372036854775807ll;
22449 long long int nll = -9223372036854775807LL;
22450 unsigned long long int ull = 18446744073709551615ULL;
22451 /* Test constant expressions. */
22452 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22454 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22460 /* Test availability of runtime routines for shift and division. */
22461 long long int llmax = 9223372036854775807ll;
22462 unsigned long long int ullmax = 18446744073709551615ull;
22463 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22464 | (llmax / ll) | (llmax % ll)
22465 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22466 | (ullmax / ull) | (ullmax % ull));
22472 if ac_fn_c_try_link "$LINENO"; then :
22473 if test "$cross_compiling" = yes; then :
22474 ac_cv_type_long_long_int=yes
22476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22477 /* end confdefs.h. */
22478 #include <limits.h>
22481 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22482 # define LLONG_MAX (HALF - 1 + HALF)
22487 long long int n = 1;
22491 long long int m = n << i;
22494 if (LLONG_MAX / 2 < m)
22502 if ac_fn_c_try_run "$LINENO"; then :
22503 ac_cv_type_long_long_int=yes
22505 ac_cv_type_long_long_int=no
22507 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22508 conftest.$ac_objext conftest.beam conftest.$ac_ext
22512 ac_cv_type_long_long_int=no
22514 rm -f core conftest.err conftest.$ac_objext \
22515 conftest$ac_exeext conftest.$ac_ext
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22518 $as_echo "$ac_cv_type_long_long_int" >&6; }
22519 if test $ac_cv_type_long_long_int = yes; then
22521 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22527 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22528 if test "x$ac_cv_type_intmax_t" = xyes; then :
22530 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22533 test $ac_cv_type_long_long_int = yes \
22534 && ac_type='long long int' \
22535 || ac_type='long int'
22537 cat >>confdefs.h <<_ACEOF
22538 #define intmax_t $ac_type
22545 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22546 if test "x$ac_cv_type_intptr_t" = xyes; then :
22548 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
22551 for ac_type in 'int' 'long int' 'long long int'; do
22552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22553 /* end confdefs.h. */
22554 $ac_includes_default
22558 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22565 if ac_fn_c_try_compile "$LINENO"; then :
22567 cat >>confdefs.h <<_ACEOF
22568 #define intptr_t $ac_type
22573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22574 test -z "$ac_type" && break
22580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22581 $as_echo_n "checking for long double... " >&6; }
22582 if ${ac_cv_type_long_double+:} false; then :
22583 $as_echo_n "(cached) " >&6
22585 if test "$GCC" = yes; then
22586 ac_cv_type_long_double=yes
22588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22589 /* end confdefs.h. */
22590 /* The Stardent Vistra knows sizeof (long double), but does
22592 long double foo = 0.0L;
22596 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22597 sizeof (double) <= sizeof (long double))];
22604 if ac_fn_c_try_compile "$LINENO"; then :
22605 ac_cv_type_long_double=yes
22607 ac_cv_type_long_double=no
22609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22613 $as_echo "$ac_cv_type_long_double" >&6; }
22614 if test $ac_cv_type_long_double = yes; then
22616 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
22622 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
22623 if ${ac_cv_type_long_double_wider+:} false; then :
22624 $as_echo_n "(cached) " >&6
22626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22627 /* end confdefs.h. */
22629 long double const a[] =
22631 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22632 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22637 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22638 + (x ? f (x) : 'c'));
22644 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22645 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22646 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22647 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22648 && (int) LDBL_EPSILON == 0
22656 if ac_fn_c_try_compile "$LINENO"; then :
22657 ac_cv_type_long_double_wider=yes
22659 ac_cv_type_long_double_wider=no
22661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
22664 $as_echo "$ac_cv_type_long_double_wider" >&6; }
22665 if test $ac_cv_type_long_double_wider = yes; then
22667 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
22672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22673 $as_echo_n "checking for long long int... " >&6; }
22674 if ${ac_cv_type_long_long_int+:} false; then :
22675 $as_echo_n "(cached) " >&6
22677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22678 /* end confdefs.h. */
22680 /* For now, do not test the preprocessor; as of 2007 there are too many
22681 implementations with broken preprocessors. Perhaps this can
22682 be revisited in 2012. In the meantime, code should not expect
22683 #if to work with literals wider than 32 bits. */
22684 /* Test literals. */
22685 long long int ll = 9223372036854775807ll;
22686 long long int nll = -9223372036854775807LL;
22687 unsigned long long int ull = 18446744073709551615ULL;
22688 /* Test constant expressions. */
22689 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22691 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22697 /* Test availability of runtime routines for shift and division. */
22698 long long int llmax = 9223372036854775807ll;
22699 unsigned long long int ullmax = 18446744073709551615ull;
22700 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22701 | (llmax / ll) | (llmax % ll)
22702 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22703 | (ullmax / ull) | (ullmax % ull));
22709 if ac_fn_c_try_link "$LINENO"; then :
22710 if test "$cross_compiling" = yes; then :
22711 ac_cv_type_long_long_int=yes
22713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22714 /* end confdefs.h. */
22715 #include <limits.h>
22718 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22719 # define LLONG_MAX (HALF - 1 + HALF)
22724 long long int n = 1;
22728 long long int m = n << i;
22731 if (LLONG_MAX / 2 < m)
22739 if ac_fn_c_try_run "$LINENO"; then :
22740 ac_cv_type_long_long_int=yes
22742 ac_cv_type_long_long_int=no
22744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22745 conftest.$ac_objext conftest.beam conftest.$ac_ext
22749 ac_cv_type_long_long_int=no
22751 rm -f core conftest.err conftest.$ac_objext \
22752 conftest$ac_exeext conftest.$ac_ext
22754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22755 $as_echo "$ac_cv_type_long_long_int" >&6; }
22756 if test $ac_cv_type_long_long_int = yes; then
22758 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22763 $as_echo_n "checking for mbstate_t... " >&6; }
22764 if ${ac_cv_type_mbstate_t+:} false; then :
22765 $as_echo_n "(cached) " >&6
22767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22768 /* end confdefs.h. */
22769 $ac_includes_default
22770 # include <wchar.h>
22774 mbstate_t x; return sizeof x;
22779 if ac_fn_c_try_compile "$LINENO"; then :
22780 ac_cv_type_mbstate_t=yes
22782 ac_cv_type_mbstate_t=no
22784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22787 $as_echo "$ac_cv_type_mbstate_t" >&6; }
22788 if test $ac_cv_type_mbstate_t = yes; then
22790 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22794 $as_echo "#define mbstate_t int" >>confdefs.h
22797 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22798 if test "x$ac_cv_type_mode_t" = xyes; then :
22802 cat >>confdefs.h <<_ACEOF
22808 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22809 if test "x$ac_cv_type_off_t" = xyes; then :
22813 cat >>confdefs.h <<_ACEOF
22814 #define off_t long int
22819 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22820 if test "x$ac_cv_type_pid_t" = xyes; then :
22824 cat >>confdefs.h <<_ACEOF
22830 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22831 if test "x$ac_cv_type_size_t" = xyes; then :
22835 cat >>confdefs.h <<_ACEOF
22836 #define size_t unsigned int
22841 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22842 if test "x$ac_cv_type_ssize_t" = xyes; then :
22846 cat >>confdefs.h <<_ACEOF
22847 #define ssize_t int
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22853 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22854 if ${ac_cv_type_uid_t+:} false; then :
22855 $as_echo_n "(cached) " >&6
22857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22858 /* end confdefs.h. */
22859 #include <sys/types.h>
22862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22863 $EGREP "uid_t" >/dev/null 2>&1; then :
22864 ac_cv_type_uid_t=yes
22866 ac_cv_type_uid_t=no
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22872 $as_echo "$ac_cv_type_uid_t" >&6; }
22873 if test $ac_cv_type_uid_t = no; then
22875 $as_echo "#define uid_t int" >>confdefs.h
22878 $as_echo "#define gid_t int" >>confdefs.h
22882 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22883 case $ac_cv_c_uint8_t in #(
22887 $as_echo "#define _UINT8_T 1" >>confdefs.h
22890 cat >>confdefs.h <<_ACEOF
22891 #define uint8_t $ac_cv_c_uint8_t
22896 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22897 case $ac_cv_c_uint16_t in #(
22902 cat >>confdefs.h <<_ACEOF
22903 #define uint16_t $ac_cv_c_uint16_t
22908 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
22909 case $ac_cv_c_uint32_t in #(
22913 $as_echo "#define _UINT32_T 1" >>confdefs.h
22916 cat >>confdefs.h <<_ACEOF
22917 #define uint32_t $ac_cv_c_uint32_t
22922 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
22923 case $ac_cv_c_uint64_t in #(
22927 $as_echo "#define _UINT64_T 1" >>confdefs.h
22930 cat >>confdefs.h <<_ACEOF
22931 #define uint64_t $ac_cv_c_uint64_t
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22938 $as_echo_n "checking for unsigned long long int... " >&6; }
22939 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22940 $as_echo_n "(cached) " >&6
22942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22943 /* end confdefs.h. */
22945 /* For now, do not test the preprocessor; as of 2007 there are too many
22946 implementations with broken preprocessors. Perhaps this can
22947 be revisited in 2012. In the meantime, code should not expect
22948 #if to work with literals wider than 32 bits. */
22949 /* Test literals. */
22950 long long int ll = 9223372036854775807ll;
22951 long long int nll = -9223372036854775807LL;
22952 unsigned long long int ull = 18446744073709551615ULL;
22953 /* Test constant expressions. */
22954 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22956 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22962 /* Test availability of runtime routines for shift and division. */
22963 long long int llmax = 9223372036854775807ll;
22964 unsigned long long int ullmax = 18446744073709551615ull;
22965 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22966 | (llmax / ll) | (llmax % ll)
22967 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22968 | (ullmax / ull) | (ullmax % ull));
22974 if ac_fn_c_try_link "$LINENO"; then :
22975 ac_cv_type_unsigned_long_long_int=yes
22977 ac_cv_type_unsigned_long_long_int=no
22979 rm -f core conftest.err conftest.$ac_objext \
22980 conftest$ac_exeext conftest.$ac_ext
22982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22983 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22984 if test $ac_cv_type_unsigned_long_long_int = yes; then
22986 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22992 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
22993 if test "x$ac_cv_type_uintmax_t" = xyes; then :
22995 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
22998 test $ac_cv_type_unsigned_long_long_int = yes \
22999 && ac_type='unsigned long long int' \
23000 || ac_type='unsigned long int'
23002 cat >>confdefs.h <<_ACEOF
23003 #define uintmax_t $ac_type
23010 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23011 if test "x$ac_cv_type_uintptr_t" = xyes; then :
23013 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23016 for ac_type in 'unsigned int' 'unsigned long int' \
23017 'unsigned long long int'; do
23018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23019 /* end confdefs.h. */
23020 $ac_includes_default
23024 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23031 if ac_fn_c_try_compile "$LINENO"; then :
23033 cat >>confdefs.h <<_ACEOF
23034 #define uintptr_t $ac_type
23039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23040 test -z "$ac_type" && break
23046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23047 $as_echo_n "checking for unsigned long long int... " >&6; }
23048 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23049 $as_echo_n "(cached) " >&6
23051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23052 /* end confdefs.h. */
23054 /* For now, do not test the preprocessor; as of 2007 there are too many
23055 implementations with broken preprocessors. Perhaps this can
23056 be revisited in 2012. In the meantime, code should not expect
23057 #if to work with literals wider than 32 bits. */
23058 /* Test literals. */
23059 long long int ll = 9223372036854775807ll;
23060 long long int nll = -9223372036854775807LL;
23061 unsigned long long int ull = 18446744073709551615ULL;
23062 /* Test constant expressions. */
23063 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23065 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23071 /* Test availability of runtime routines for shift and division. */
23072 long long int llmax = 9223372036854775807ll;
23073 unsigned long long int ullmax = 18446744073709551615ull;
23074 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23075 | (llmax / ll) | (llmax % ll)
23076 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23077 | (ullmax / ull) | (ullmax % ull));
23083 if ac_fn_c_try_link "$LINENO"; then :
23084 ac_cv_type_unsigned_long_long_int=yes
23086 ac_cv_type_unsigned_long_long_int=no
23088 rm -f core conftest.err conftest.$ac_objext \
23089 conftest$ac_exeext conftest.$ac_ext
23091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23092 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23093 if test $ac_cv_type_unsigned_long_long_int = yes; then
23095 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23100 # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23101 # C compiler predefines it.
23102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
23103 $as_echo_n "checking whether char is unsigned... " >&6; }
23104 if ${ac_cv_c_char_unsigned+:} false; then :
23105 $as_echo_n "(cached) " >&6
23107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23108 /* end confdefs.h. */
23109 $ac_includes_default
23113 static int test_array [1 - 2 * !(((char) -1) < 0)];
23120 if ac_fn_c_try_compile "$LINENO"; then :
23121 ac_cv_c_char_unsigned=no
23123 ac_cv_c_char_unsigned=yes
23125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
23128 $as_echo "$ac_cv_c_char_unsigned" >&6; }
23129 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
23130 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
23135 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23136 # The cast to long int works around a bug in the HP C Compiler
23137 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23138 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23139 # This bug is HP SR number 8606223364.
23140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
23141 $as_echo_n "checking size of signed short... " >&6; }
23142 if ${ac_cv_sizeof_signed_short+:} false; then :
23143 $as_echo_n "(cached) " >&6
23145 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
23148 if test "$ac_cv_type_signed_short" = yes; then
23149 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23151 as_fn_error 77 "cannot compute sizeof (signed short)
23152 See \`config.log' for more details" "$LINENO" 5; }
23154 ac_cv_sizeof_signed_short=0
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
23160 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
23164 cat >>confdefs.h <<_ACEOF
23165 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23170 # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23171 # The cast to long int works around a bug in the HP C Compiler
23172 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23173 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23174 # This bug is HP SR number 8606223364.
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
23176 $as_echo_n "checking size of unsigned short... " >&6; }
23177 if ${ac_cv_sizeof_unsigned_short+:} false; then :
23178 $as_echo_n "(cached) " >&6
23180 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
23183 if test "$ac_cv_type_unsigned_short" = yes; then
23184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23186 as_fn_error 77 "cannot compute sizeof (unsigned short)
23187 See \`config.log' for more details" "$LINENO" 5; }
23189 ac_cv_sizeof_unsigned_short=0
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
23195 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23199 cat >>confdefs.h <<_ACEOF
23200 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23205 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23206 # The cast to long int works around a bug in the HP C Compiler
23207 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23208 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23209 # This bug is HP SR number 8606223364.
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
23211 $as_echo_n "checking size of signed int... " >&6; }
23212 if ${ac_cv_sizeof_signed_int+:} false; then :
23213 $as_echo_n "(cached) " >&6
23215 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then :
23218 if test "$ac_cv_type_signed_int" = yes; then
23219 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23220 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23221 as_fn_error 77 "cannot compute sizeof (signed int)
23222 See \`config.log' for more details" "$LINENO" 5; }
23224 ac_cv_sizeof_signed_int=0
23229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
23230 $as_echo "$ac_cv_sizeof_signed_int" >&6; }
23234 cat >>confdefs.h <<_ACEOF
23235 #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23240 # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23241 # The cast to long int works around a bug in the HP C Compiler
23242 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23243 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23244 # This bug is HP SR number 8606223364.
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
23246 $as_echo_n "checking size of unsigned int... " >&6; }
23247 if ${ac_cv_sizeof_unsigned_int+:} false; then :
23248 $as_echo_n "(cached) " >&6
23250 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
23253 if test "$ac_cv_type_unsigned_int" = yes; then
23254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23256 as_fn_error 77 "cannot compute sizeof (unsigned int)
23257 See \`config.log' for more details" "$LINENO" 5; }
23259 ac_cv_sizeof_unsigned_int=0
23264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
23265 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23269 cat >>confdefs.h <<_ACEOF
23270 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23275 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23276 # The cast to long int works around a bug in the HP C Compiler
23277 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23278 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23279 # This bug is HP SR number 8606223364.
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
23281 $as_echo_n "checking size of signed long... " >&6; }
23282 if ${ac_cv_sizeof_signed_long+:} false; then :
23283 $as_echo_n "(cached) " >&6
23285 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then :
23288 if test "$ac_cv_type_signed_long" = yes; then
23289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23291 as_fn_error 77 "cannot compute sizeof (signed long)
23292 See \`config.log' for more details" "$LINENO" 5; }
23294 ac_cv_sizeof_signed_long=0
23299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
23300 $as_echo "$ac_cv_sizeof_signed_long" >&6; }
23304 cat >>confdefs.h <<_ACEOF
23305 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23310 # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23311 # The cast to long int works around a bug in the HP C Compiler
23312 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23313 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23314 # This bug is HP SR number 8606223364.
23315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
23316 $as_echo_n "checking size of unsigned long... " >&6; }
23317 if ${ac_cv_sizeof_unsigned_long+:} false; then :
23318 $as_echo_n "(cached) " >&6
23320 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
23323 if test "$ac_cv_type_unsigned_long" = yes; then
23324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23326 as_fn_error 77 "cannot compute sizeof (unsigned long)
23327 See \`config.log' for more details" "$LINENO" 5; }
23329 ac_cv_sizeof_unsigned_long=0
23334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
23335 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23339 cat >>confdefs.h <<_ACEOF
23340 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23345 # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23346 # 'signed long long' is not supported then the value defined is zero.
23347 # The cast to long int works around a bug in the HP C Compiler
23348 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23349 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23350 # This bug is HP SR number 8606223364.
23351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
23352 $as_echo_n "checking size of signed long long... " >&6; }
23353 if ${ac_cv_sizeof_signed_long_long+:} false; then :
23354 $as_echo_n "(cached) " >&6
23356 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
23359 if test "$ac_cv_type_signed_long_long" = yes; then
23360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23362 as_fn_error 77 "cannot compute sizeof (signed long long)
23363 See \`config.log' for more details" "$LINENO" 5; }
23365 ac_cv_sizeof_signed_long_long=0
23370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
23371 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23375 cat >>confdefs.h <<_ACEOF
23376 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23381 # Obtain size of a 'unsigned long long' and define as
23382 # SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23383 # supported then the value defined is zero.
23384 # The cast to long int works around a bug in the HP C Compiler
23385 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23386 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23387 # This bug is HP SR number 8606223364.
23388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
23389 $as_echo_n "checking size of unsigned long long... " >&6; }
23390 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
23391 $as_echo_n "(cached) " >&6
23393 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
23396 if test "$ac_cv_type_unsigned_long_long" = yes; then
23397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23398 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23399 as_fn_error 77 "cannot compute sizeof (unsigned long long)
23400 See \`config.log' for more details" "$LINENO" 5; }
23402 ac_cv_sizeof_unsigned_long_long=0
23407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
23408 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23412 cat >>confdefs.h <<_ACEOF
23413 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23418 # Obtain size of off_t and define as SIZEOF_OFF_T
23419 # The cast to long int works around a bug in the HP C Compiler
23420 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23421 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23422 # This bug is HP SR number 8606223364.
23423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23424 $as_echo_n "checking size of off_t... " >&6; }
23425 if ${ac_cv_sizeof_off_t+:} false; then :
23426 $as_echo_n "(cached) " >&6
23428 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
23431 if test "$ac_cv_type_off_t" = yes; then
23432 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23434 as_fn_error 77 "cannot compute sizeof (off_t)
23435 See \`config.log' for more details" "$LINENO" 5; }
23437 ac_cv_sizeof_off_t=0
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23443 $as_echo "$ac_cv_sizeof_off_t" >&6; }
23447 cat >>confdefs.h <<_ACEOF
23448 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23453 # Obtain size of size_t and define as SIZEOF_SIZE_T
23454 # The cast to long int works around a bug in the HP C Compiler
23455 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23456 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23457 # This bug is HP SR number 8606223364.
23458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23459 $as_echo_n "checking size of size_t... " >&6; }
23460 if ${ac_cv_sizeof_size_t+:} false; then :
23461 $as_echo_n "(cached) " >&6
23463 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
23466 if test "$ac_cv_type_size_t" = yes; then
23467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23468 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23469 as_fn_error 77 "cannot compute sizeof (size_t)
23470 See \`config.log' for more details" "$LINENO" 5; }
23472 ac_cv_sizeof_size_t=0
23477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23478 $as_echo "$ac_cv_sizeof_size_t" >&6; }
23482 cat >>confdefs.h <<_ACEOF
23483 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23488 # Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23489 # The cast to long int works around a bug in the HP C Compiler
23490 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23491 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23492 # This bug is HP SR number 8606223364.
23493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23494 $as_echo_n "checking size of ssize_t... " >&6; }
23495 if ${ac_cv_sizeof_ssize_t+:} false; then :
23496 $as_echo_n "(cached) " >&6
23498 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23501 if test "$ac_cv_type_ssize_t" = yes; then
23502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23504 as_fn_error 77 "cannot compute sizeof (ssize_t)
23505 See \`config.log' for more details" "$LINENO" 5; }
23507 ac_cv_sizeof_ssize_t=0
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23513 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23517 cat >>confdefs.h <<_ACEOF
23518 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23523 # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23524 # The cast to long int works around a bug in the HP C Compiler
23525 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23526 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23527 # This bug is HP SR number 8606223364.
23528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
23529 $as_echo_n "checking size of unsigned int*... " >&6; }
23530 if ${ac_cv_sizeof_unsigned_intp+:} false; then :
23531 $as_echo_n "(cached) " >&6
23533 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then :
23536 if test "$ac_cv_type_unsigned_intp" = yes; then
23537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23539 as_fn_error 77 "cannot compute sizeof (unsigned int*)
23540 See \`config.log' for more details" "$LINENO" 5; }
23542 ac_cv_sizeof_unsigned_intp=0
23547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
23548 $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23552 cat >>confdefs.h <<_ACEOF
23553 #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23559 # Compute sized types for current CPU and compiler options.
23562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
23563 $as_echo_n "checking for signed 8-bit type... " >&6; }
23564 INT8_T='signed char'
23565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
23566 $as_echo "$INT8_T" >&6; }
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
23570 $as_echo_n "checking for unsigned 8-bit type... " >&6; }
23571 UINT8_T='unsigned char'
23572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
23573 $as_echo "$UINT8_T" >&6; }
23576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
23577 $as_echo_n "checking for signed 16-bit type... " >&6; }
23578 INT16_T='signed short'
23579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
23580 $as_echo "$INT16_T" >&6; }
23583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
23584 $as_echo_n "checking for unsigned 16-bit type... " >&6; }
23585 UINT16_T='unsigned short'
23586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
23587 $as_echo "$UINT16_T" >&6; }
23590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
23591 $as_echo_n "checking for signed 32-bit type... " >&6; }
23594 if test $ac_cv_sizeof_signed_int -eq 4; then
23595 INT32_T='signed int'
23597 elif test $ac_cv_sizeof_signed_long -eq 4; then
23598 INT32_T='signed long'
23601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
23602 $as_echo "$INT32_T" >&6; }
23606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
23607 $as_echo_n "checking for unsigned 32-bit type... " >&6; }
23610 if test $ac_cv_sizeof_unsigned_int -eq 4; then
23611 UINT32_T='unsigned int'
23613 elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23614 UINT32_T='unsigned long'
23617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
23618 $as_echo "$UINT32_T" >&6; }
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
23623 $as_echo_n "checking for signed 64-bit type... " >&6; }
23626 if test $ac_cv_sizeof_signed_long -eq 8; then
23627 INT64_T='signed long'
23629 elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23630 INT64_T='signed long long'
23633 case "${build_os}" in
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
23639 $as_echo "$INT64_T" >&6; }
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
23644 $as_echo_n "checking for unsigned 64-bit type... " >&6; }
23647 if test $ac_cv_sizeof_unsigned_long -eq 8; then
23648 UINT64_T='unsigned long'
23650 elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23651 UINT64_T='unsigned long long'
23654 case "${build_os}" in
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
23660 $as_echo "$UINT64_T" >&6; }
23664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
23665 $as_echo_n "checking for unsigned maximum type... " >&6; }
23668 if test "$UINT64_T" != 'none'; then
23669 UINTMAX_T=$UINT64_T
23670 UINTMAX_F=$UINT64_F
23671 elif test "$UINT32_T" != 'none'; then
23672 UINTMAX_T=$UINT32_T
23673 UINTMAX_F=$UINT32_F
23675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
23676 $as_echo "$UINTMAX_T" >&6; }
23680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
23681 $as_echo_n "checking for pointer difference type... " >&6; }
23684 if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23685 UINTPTR_T='unsigned long'
23687 elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23688 UINTPTR_T='unsigned long long'
23691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
23692 $as_echo "$UINTPTR_T" >&6; }
23696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
23697 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
23698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23699 /* end confdefs.h. */
23704 { const char *func = __func__; return(func != 0 ? 0 : 1); }
23709 if ac_fn_c_try_compile "$LINENO"; then :
23710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23711 $as_echo "yes" >&6; }
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23714 $as_echo "no" >&6; }
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
23716 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
23717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23718 /* end confdefs.h. */
23723 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23728 if ac_fn_c_try_compile "$LINENO"; then :
23729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23730 $as_echo "yes" >&6; }
23732 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23736 $as_echo "no" >&6; }
23738 $as_echo "#define __func__ __FILE__" >>confdefs.h
23741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23747 # Check for functions
23750 for ac_header in stdlib.h unistd.h
23752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23753 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23754 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23755 cat >>confdefs.h <<_ACEOF
23756 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23763 for ac_func in getpagesize
23765 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
23766 if test "x$ac_cv_func_getpagesize" = xyes; then :
23767 cat >>confdefs.h <<_ACEOF
23768 #define HAVE_GETPAGESIZE 1
23774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23775 $as_echo_n "checking for working mmap file i/o... " >&6; }
23776 if ${magick_cv_func_mmap_fileio+:} false; then :
23777 $as_echo_n "(cached) " >&6
23779 if test "$cross_compiling" = yes; then :
23780 magick_cv_func_mmap_fileio=no
23782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23783 /* end confdefs.h. */
23784 $ac_includes_default
23785 /* malloc might have been renamed as rpl_malloc. */
23789 This test is derived from GNU Autoconf's similar macro.
23790 The purpose of this test is to verify that files may be memory
23791 mapped, and that memory mapping and file I/O are coherent.
23793 The test creates a test file, memory maps the file, updates
23794 the file using the memory map, and then reads the file using
23795 file I/O to verify that the file contains the updates.
23799 #include <sys/mman.h>
23801 #if !STDC_HEADERS && !HAVE_STDLIB_H
23805 /* This mess was copied from the GNU getpagesize.h. */
23806 #if !HAVE_GETPAGESIZE
23807 /* Assume that all systems that can run configure have sys/param.h. */
23808 # if !HAVE_SYS_PARAM_H
23809 # define HAVE_SYS_PARAM_H 1
23812 # ifdef _SC_PAGESIZE
23813 # define getpagesize() sysconf(_SC_PAGESIZE)
23814 # else /* no _SC_PAGESIZE */
23815 # if HAVE_SYS_PARAM_H
23816 # include <sys/param.h>
23817 # ifdef EXEC_PAGESIZE
23818 # define getpagesize() EXEC_PAGESIZE
23819 # else /* no EXEC_PAGESIZE */
23821 # define getpagesize() NBPG * CLSIZE
23824 # endif /* no CLSIZE */
23825 # else /* no NBPG */
23827 # define getpagesize() NBPC
23828 # else /* no NBPC */
23830 # define getpagesize() PAGESIZE
23831 # endif /* PAGESIZE */
23832 # endif /* no NBPC */
23833 # endif /* no NBPG */
23834 # endif /* no EXEC_PAGESIZE */
23835 # else /* no HAVE_SYS_PARAM_H */
23836 # define getpagesize() 8192 /* punt totally */
23837 # endif /* no HAVE_SYS_PARAM_H */
23838 # endif /* no _SC_PAGESIZE */
23840 #endif /* no HAVE_GETPAGESIZE */
23845 char *data, *data2, *data3;
23849 pagesize = getpagesize ();
23851 /* First, make a file with some known garbage in it. */
23852 data = (char *) malloc (pagesize);
23855 for (i = 0; i < pagesize; ++i)
23856 *(data + i) = rand ();
23858 fd = creat ("conftest.mmap", 0600);
23861 if (write (fd, data, pagesize) != pagesize)
23865 /* Mmap the file as read/write/shared and verify that we see the
23867 fd = open ("conftest.mmap", O_RDWR);
23870 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23873 for (i = 0; i < pagesize; ++i)
23874 if (*(data + i) != *(data2 + i))
23877 /* Finally, make sure that changes to the mapped area
23878 percolate back to the file as seen by read(). */
23879 for (i = 0; i < pagesize; ++i)
23880 *(data2 + i) = *(data2 + i) + 1;
23881 data3 = (char *) malloc (pagesize);
23884 if (read (fd, data3, pagesize) != pagesize)
23886 for (i = 0; i < pagesize; ++i)
23887 if (*(data2 + i) != *(data3 + i))
23893 if ac_fn_c_try_run "$LINENO"; then :
23894 magick_cv_func_mmap_fileio=yes
23896 magick_cv_func_mmap_fileio=no
23898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23899 conftest.$ac_objext conftest.beam conftest.$ac_ext
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23904 $as_echo "$magick_cv_func_mmap_fileio" >&6; }
23905 if test $magick_cv_func_mmap_fileio = yes; then
23907 $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23910 rm -f conftest.mmap
23912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
23913 $as_echo_n "checking whether closedir returns void... " >&6; }
23914 if ${ac_cv_func_closedir_void+:} false; then :
23915 $as_echo_n "(cached) " >&6
23917 if test "$cross_compiling" = yes; then :
23918 ac_cv_func_closedir_void=yes
23920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23921 /* end confdefs.h. */
23922 $ac_includes_default
23923 #include <$ac_header_dirent>
23924 #ifndef __cplusplus
23931 return closedir (opendir (".")) != 0;
23936 if ac_fn_c_try_run "$LINENO"; then :
23937 ac_cv_func_closedir_void=no
23939 ac_cv_func_closedir_void=yes
23941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23942 conftest.$ac_objext conftest.beam conftest.$ac_ext
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
23947 $as_echo "$ac_cv_func_closedir_void" >&6; }
23948 if test $ac_cv_func_closedir_void = yes; then
23950 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
23957 for ac_header in $ac_header_list
23959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23960 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23962 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23963 cat >>confdefs.h <<_ACEOF
23964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23978 for ac_func in getpagesize
23980 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
23981 if test "x$ac_cv_func_getpagesize" = xyes; then :
23982 cat >>confdefs.h <<_ACEOF
23983 #define HAVE_GETPAGESIZE 1
23989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
23990 $as_echo_n "checking for working mmap... " >&6; }
23991 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
23992 $as_echo_n "(cached) " >&6
23994 if test "$cross_compiling" = yes; then :
23995 ac_cv_func_mmap_fixed_mapped=no
23997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23998 /* end confdefs.h. */
23999 $ac_includes_default
24000 /* malloc might have been renamed as rpl_malloc. */
24003 /* Thanks to Mike Haertel and Jim Avera for this test.
24004 Here is a matrix of mmap possibilities:
24005 mmap private not fixed
24006 mmap private fixed at somewhere currently unmapped
24007 mmap private fixed at somewhere already mapped
24008 mmap shared not fixed
24009 mmap shared fixed at somewhere currently unmapped
24010 mmap shared fixed at somewhere already mapped
24011 For private mappings, we should verify that changes cannot be read()
24012 back from the file, nor mmap's back from the file at a different
24013 address. (There have been systems where private was not correctly
24014 implemented like the infamous i386 svr4.0, and systems where the
24015 VM page cache was not coherent with the file system buffer cache
24016 like early versions of FreeBSD and possibly contemporary NetBSD.)
24017 For shared mappings, we should conversely verify that changes get
24018 propagated back to all the places they're supposed to be.
24020 Grep wants private fixed already mapped.
24021 The main things grep needs to know about mmap are:
24022 * does it exist and is it safe to write into the mmap'd area
24023 * how to use it (BSD variants) */
24026 #include <sys/mman.h>
24028 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24032 /* This mess was copied from the GNU getpagesize.h. */
24033 #ifndef HAVE_GETPAGESIZE
24034 # ifdef _SC_PAGESIZE
24035 # define getpagesize() sysconf(_SC_PAGESIZE)
24036 # else /* no _SC_PAGESIZE */
24037 # ifdef HAVE_SYS_PARAM_H
24038 # include <sys/param.h>
24039 # ifdef EXEC_PAGESIZE
24040 # define getpagesize() EXEC_PAGESIZE
24041 # else /* no EXEC_PAGESIZE */
24043 # define getpagesize() NBPG * CLSIZE
24046 # endif /* no CLSIZE */
24047 # else /* no NBPG */
24049 # define getpagesize() NBPC
24050 # else /* no NBPC */
24052 # define getpagesize() PAGESIZE
24053 # endif /* PAGESIZE */
24054 # endif /* no NBPC */
24055 # endif /* no NBPG */
24056 # endif /* no EXEC_PAGESIZE */
24057 # else /* no HAVE_SYS_PARAM_H */
24058 # define getpagesize() 8192 /* punt totally */
24059 # endif /* no HAVE_SYS_PARAM_H */
24060 # endif /* no _SC_PAGESIZE */
24062 #endif /* no HAVE_GETPAGESIZE */
24067 char *data, *data2, *data3;
24068 const char *cdata2;
24072 pagesize = getpagesize ();
24074 /* First, make a file with some known garbage in it. */
24075 data = (char *) malloc (pagesize);
24078 for (i = 0; i < pagesize; ++i)
24079 *(data + i) = rand ();
24081 fd = creat ("conftest.mmap", 0600);
24084 if (write (fd, data, pagesize) != pagesize)
24088 /* Next, check that the tail of a page is zero-filled. File must have
24089 non-zero length, otherwise we risk SIGBUS for entire page. */
24090 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24094 if (write (fd2, cdata2, 1) != 1)
24096 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
24097 if (data2 == MAP_FAILED)
24099 for (i = 0; i < pagesize; ++i)
24103 if (munmap (data2, pagesize))
24106 /* Next, try to mmap the file at a fixed address which already has
24107 something else allocated at it. If we can, also make sure that
24108 we see the same garbage. */
24109 fd = open ("conftest.mmap", O_RDWR);
24112 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24113 MAP_PRIVATE | MAP_FIXED, fd, 0L))
24115 for (i = 0; i < pagesize; ++i)
24116 if (*(data + i) != *(data2 + i))
24119 /* Finally, make sure that changes to the mapped area do not
24120 percolate back to the file as seen by read(). (This is a bug on
24121 some variants of i386 svr4.0.) */
24122 for (i = 0; i < pagesize; ++i)
24123 *(data2 + i) = *(data2 + i) + 1;
24124 data3 = (char *) malloc (pagesize);
24127 if (read (fd, data3, pagesize) != pagesize)
24129 for (i = 0; i < pagesize; ++i)
24130 if (*(data + i) != *(data3 + i))
24136 if ac_fn_c_try_run "$LINENO"; then :
24137 ac_cv_func_mmap_fixed_mapped=yes
24139 ac_cv_func_mmap_fixed_mapped=no
24141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24142 conftest.$ac_objext conftest.beam conftest.$ac_ext
24146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
24147 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24148 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24150 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
24153 rm -f conftest.mmap conftest.txt
24155 for ac_header in vfork.h
24157 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24158 if test "x$ac_cv_header_vfork_h" = xyes; then :
24159 cat >>confdefs.h <<_ACEOF
24160 #define HAVE_VFORK_H 1
24167 for ac_func in fork vfork
24169 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24170 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24171 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24172 cat >>confdefs.h <<_ACEOF
24173 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24179 if test "x$ac_cv_func_fork" = xyes; then
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24181 $as_echo_n "checking for working fork... " >&6; }
24182 if ${ac_cv_func_fork_works+:} false; then :
24183 $as_echo_n "(cached) " >&6
24185 if test "$cross_compiling" = yes; then :
24186 ac_cv_func_fork_works=cross
24188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24189 /* end confdefs.h. */
24190 $ac_includes_default
24195 /* By Ruediger Kuhlmann. */
24196 return fork () < 0;
24202 if ac_fn_c_try_run "$LINENO"; then :
24203 ac_cv_func_fork_works=yes
24205 ac_cv_func_fork_works=no
24207 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24208 conftest.$ac_objext conftest.beam conftest.$ac_ext
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
24213 $as_echo "$ac_cv_func_fork_works" >&6; }
24216 ac_cv_func_fork_works=$ac_cv_func_fork
24218 if test "x$ac_cv_func_fork_works" = xcross; then
24220 *-*-amigaos* | *-*-msdosdjgpp*)
24221 # Override, as these systems have only a dummy fork() stub
24222 ac_cv_func_fork_works=no
24225 ac_cv_func_fork_works=yes
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24229 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24231 ac_cv_func_vfork_works=$ac_cv_func_vfork
24232 if test "x$ac_cv_func_vfork" = xyes; then
24233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
24234 $as_echo_n "checking for working vfork... " >&6; }
24235 if ${ac_cv_func_vfork_works+:} false; then :
24236 $as_echo_n "(cached) " >&6
24238 if test "$cross_compiling" = yes; then :
24239 ac_cv_func_vfork_works=cross
24241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24242 /* end confdefs.h. */
24243 /* Thanks to Paul Eggert for this test. */
24244 $ac_includes_default
24245 #include <sys/wait.h>
24246 #ifdef HAVE_VFORK_H
24247 # include <vfork.h>
24249 /* On some sparc systems, changes by the child to local and incoming
24250 argument registers are propagated back to the parent. The compiler
24251 is told about this with #include <vfork.h>, but some compilers
24252 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24253 static variable whose address is put into a register that is
24254 clobbered by the vfork. */
24257 sparc_address_test (int arg)
24259 sparc_address_test (arg) int arg;
24262 static pid_t child;
24280 pid_t parent = getpid ();
24283 sparc_address_test (0);
24288 /* Here is another test for sparc vfork register problems. This
24289 test uses lots of local variables, at least as many local
24290 variables as main has allocated so far including compiler
24291 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24292 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24293 reuse the register of parent for one of the local variables,
24294 since it will think that parent can't possibly be used any more
24295 in this routine. Assigning to the local variable will thus
24296 munge parent in the parent process. */
24298 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24299 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24300 /* Convince the compiler that p..p7 are live; otherwise, it might
24301 use the same hardware register for all 8 local variables. */
24302 if (p != p1 || p != p2 || p != p3 || p != p4
24303 || p != p5 || p != p6 || p != p7)
24306 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24307 from child file descriptors. If the child closes a descriptor
24308 before it execs or exits, this munges the parent's descriptor
24309 as well. Test for this by closing stdout in the child. */
24310 _exit(close(fileno(stdout)) != 0);
24315 while (wait(&status) != child)
24318 /* Was there some problem with vforking? */
24321 /* Did the child fail? (This shouldn't happen.) */
24324 /* Did the vfork/compiler bug occur? */
24325 || parent != getpid()
24327 /* Did the file descriptor bug occur? */
24328 || fstat(fileno(stdout), &st) != 0
24333 if ac_fn_c_try_run "$LINENO"; then :
24334 ac_cv_func_vfork_works=yes
24336 ac_cv_func_vfork_works=no
24338 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24339 conftest.$ac_objext conftest.beam conftest.$ac_ext
24343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
24344 $as_echo "$ac_cv_func_vfork_works" >&6; }
24347 if test "x$ac_cv_func_fork_works" = xcross; then
24348 ac_cv_func_vfork_works=$ac_cv_func_vfork
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24350 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24353 if test "x$ac_cv_func_vfork_works" = xyes; then
24355 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
24359 $as_echo "#define vfork fork" >>confdefs.h
24362 if test "x$ac_cv_func_fork_works" = xyes; then
24364 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
24368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
24369 $as_echo_n "checking for working memcmp... " >&6; }
24370 if ${ac_cv_func_memcmp_working+:} false; then :
24371 $as_echo_n "(cached) " >&6
24373 if test "$cross_compiling" = yes; then :
24374 ac_cv_func_memcmp_working=no
24376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24377 /* end confdefs.h. */
24378 $ac_includes_default
24383 /* Some versions of memcmp are not 8-bit clean. */
24384 char c0 = '\100', c1 = '\200', c2 = '\201';
24385 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24388 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24389 or more and with at least one buffer not starting on a 4-byte boundary.
24390 William Lewis provided this test program. */
24395 for (i = 0; i < 4; i++)
24399 strcpy (a, "--------01111111");
24400 strcpy (b, "--------10000000");
24401 if (memcmp (a, b, 16) >= 0)
24411 if ac_fn_c_try_run "$LINENO"; then :
24412 ac_cv_func_memcmp_working=yes
24414 ac_cv_func_memcmp_working=no
24416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24417 conftest.$ac_objext conftest.beam conftest.$ac_ext
24421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
24422 $as_echo "$ac_cv_func_memcmp_working" >&6; }
24423 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24424 *" memcmp.$ac_objext "* ) ;;
24425 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24430 for ac_header in sys/select.h sys/socket.h
24432 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24433 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24434 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24435 cat >>confdefs.h <<_ACEOF
24436 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
24444 $as_echo_n "checking types of arguments for select... " >&6; }
24445 if ${ac_cv_func_select_args+:} false; then :
24446 $as_echo_n "(cached) " >&6
24448 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24449 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24450 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
24451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24452 /* end confdefs.h. */
24453 $ac_includes_default
24454 #ifdef HAVE_SYS_SELECT_H
24455 # include <sys/select.h>
24457 #ifdef HAVE_SYS_SOCKET_H
24458 # include <sys/socket.h>
24464 extern int select ($ac_arg1,
24465 $ac_arg234, $ac_arg234, $ac_arg234,
24471 if ac_fn_c_try_compile "$LINENO"; then :
24472 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
24474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24478 # Provide a safe default value.
24479 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
24483 $as_echo "$ac_cv_func_select_args" >&6; }
24484 ac_save_IFS=$IFS; IFS=','
24485 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24489 cat >>confdefs.h <<_ACEOF
24490 #define SELECT_TYPE_ARG1 $1
24494 cat >>confdefs.h <<_ACEOF
24495 #define SELECT_TYPE_ARG234 ($2)
24499 cat >>confdefs.h <<_ACEOF
24500 #define SELECT_TYPE_ARG5 ($3)
24505 if ${ac_cv_func_setvbuf_reversed+:} false; then :
24506 $as_echo_n "(cached) " >&6
24508 ac_cv_func_setvbuf_reversed=no
24512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
24513 $as_echo_n "checking return type of signal handlers... " >&6; }
24514 if ${ac_cv_type_signal+:} false; then :
24515 $as_echo_n "(cached) " >&6
24517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24518 /* end confdefs.h. */
24519 #include <sys/types.h>
24520 #include <signal.h>
24525 return *(signal (0, 0)) (0) == 1;
24530 if ac_fn_c_try_compile "$LINENO"; then :
24531 ac_cv_type_signal=int
24533 ac_cv_type_signal=void
24535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
24538 $as_echo "$ac_cv_type_signal" >&6; }
24540 cat >>confdefs.h <<_ACEOF
24541 #define RETSIGTYPE $ac_cv_type_signal
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
24546 $as_echo_n "checking for working strtod... " >&6; }
24547 if ${ac_cv_func_strtod+:} false; then :
24548 $as_echo_n "(cached) " >&6
24550 if test "$cross_compiling" = yes; then :
24551 ac_cv_func_strtod=no
24553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24554 /* end confdefs.h. */
24556 $ac_includes_default
24564 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24565 char *string = " +69";
24568 value = strtod (string, &term);
24569 if (value != 69 || term != (string + 4))
24574 /* Under Solaris 2.4, strtod returns the wrong value for the
24575 terminating character under some conditions. */
24576 char *string = "NaN";
24578 strtod (string, &term);
24579 if (term != string && *(term - 1) == 0)
24586 if ac_fn_c_try_run "$LINENO"; then :
24587 ac_cv_func_strtod=yes
24589 ac_cv_func_strtod=no
24591 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24592 conftest.$ac_objext conftest.beam conftest.$ac_ext
24596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
24597 $as_echo "$ac_cv_func_strtod" >&6; }
24598 if test $ac_cv_func_strtod = no; then
24599 case " $LIBOBJS " in
24600 *" strtod.$ac_objext "* ) ;;
24601 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24605 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
24606 if test "x$ac_cv_func_pow" = xyes; then :
24610 if test $ac_cv_func_pow = no; then
24611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
24612 $as_echo_n "checking for pow in -lm... " >&6; }
24613 if ${ac_cv_lib_m_pow+:} false; then :
24614 $as_echo_n "(cached) " >&6
24616 ac_check_lib_save_LIBS=$LIBS
24618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24619 /* end confdefs.h. */
24621 /* Override any GCC internal prototype to avoid an error.
24622 Use char because int might match the return type of a GCC
24623 builtin and then its argument prototype would still apply. */
24636 if ac_fn_c_try_link "$LINENO"; then :
24637 ac_cv_lib_m_pow=yes
24641 rm -f core conftest.err conftest.$ac_objext \
24642 conftest$ac_exeext conftest.$ac_ext
24643 LIBS=$ac_check_lib_save_LIBS
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
24646 $as_echo "$ac_cv_lib_m_pow" >&6; }
24647 if test "x$ac_cv_lib_m_pow" = xyes; then :
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
24651 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24658 for ac_func in vprintf
24660 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
24661 if test "x$ac_cv_func_vprintf" = xyes; then :
24662 cat >>confdefs.h <<_ACEOF
24663 #define HAVE_VPRINTF 1
24666 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
24667 if test "x$ac_cv_func__doprnt" = xyes; then :
24669 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
24679 # Find math library
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24683 $as_echo_n "checking for sqrt in -lm... " >&6; }
24684 if ${ac_cv_lib_m_sqrt+:} false; then :
24685 $as_echo_n "(cached) " >&6
24687 ac_check_lib_save_LIBS=$LIBS
24689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24690 /* end confdefs.h. */
24692 /* Override any GCC internal prototype to avoid an error.
24693 Use char because int might match the return type of a GCC
24694 builtin and then its argument prototype would still apply. */
24707 if ac_fn_c_try_link "$LINENO"; then :
24708 ac_cv_lib_m_sqrt=yes
24710 ac_cv_lib_m_sqrt=no
24712 rm -f core conftest.err conftest.$ac_objext \
24713 conftest$ac_exeext conftest.$ac_ext
24714 LIBS=$ac_check_lib_save_LIBS
24716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24717 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
24718 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
24722 LIBS="$MATH_LIBS $LIBS"
24725 for ac_func in acosh asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
24727 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24728 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24729 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24730 cat >>confdefs.h <<_ACEOF
24731 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24739 # Check for clock_gettime().
24741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
24742 $as_echo_n "checking for library containing clock_gettime... " >&6; }
24743 if ${ac_cv_search_clock_gettime+:} false; then :
24744 $as_echo_n "(cached) " >&6
24746 ac_func_search_save_LIBS=$LIBS
24747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24748 /* end confdefs.h. */
24750 /* Override any GCC internal prototype to avoid an error.
24751 Use char because int might match the return type of a GCC
24752 builtin and then its argument prototype would still apply. */
24756 char clock_gettime ();
24760 return clock_gettime ();
24765 for ac_lib in '' rt; do
24766 if test -z "$ac_lib"; then
24767 ac_res="none required"
24770 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24772 if ac_fn_c_try_link "$LINENO"; then :
24773 ac_cv_search_clock_gettime=$ac_res
24775 rm -f core conftest.err conftest.$ac_objext \
24777 if ${ac_cv_search_clock_gettime+:} false; then :
24781 if ${ac_cv_search_clock_gettime+:} false; then :
24784 ac_cv_search_clock_gettime=no
24786 rm conftest.$ac_ext
24787 LIBS=$ac_func_search_save_LIBS
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
24790 $as_echo "$ac_cv_search_clock_gettime" >&6; }
24791 ac_res=$ac_cv_search_clock_gettime
24792 if test "$ac_res" != no; then :
24793 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24796 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
24798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
24799 $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
24800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24801 /* end confdefs.h. */
24807 clockid_t clockType = CLOCK_REALTIME;
24812 if ac_fn_c_try_compile "$LINENO"; then :
24814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24815 $as_echo "yes" >&6; }
24817 $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24822 $as_echo "no" >&6; }
24825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24829 for ac_func in gettimeofday ftime
24831 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24832 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24833 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24834 cat >>confdefs.h <<_ACEOF
24835 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24848 # Check for function prototypes
24852 ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
24853 #include <unistd.h>
24855 if test "x$ac_cv_have_decl_pread" = xyes; then :
24861 cat >>confdefs.h <<_ACEOF
24862 #define HAVE_DECL_PREAD $ac_have_decl
24864 ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
24865 #include <unistd.h>
24867 if test "x$ac_cv_have_decl_pwrite" = xyes; then :
24873 cat >>confdefs.h <<_ACEOF
24874 #define HAVE_DECL_PWRITE $ac_have_decl
24878 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
24879 #include <strings.h>
24881 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
24887 cat >>confdefs.h <<_ACEOF
24888 #define HAVE_DECL_STRLCPY $ac_have_decl
24892 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
24894 #include <stdarg.h>
24896 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
24902 cat >>confdefs.h <<_ACEOF
24903 #define HAVE_DECL_VSNPRINTF $ac_have_decl
24909 # C++ Support Tests (For Magick++)
24912 have_magick_plus_plus='no'
24913 if test "$with_magick_plus_plus" = 'yes'; then
24917 ac_cpp='$CXXCPP $CPPFLAGS'
24918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24923 # Full set of headers used...
24924 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
24925 # functional iomanip iosfwd iostream iterator list string strstream utility
24927 ac_cpp='$CXXCPP $CPPFLAGS'
24928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24933 ac_cpp='$CXXCPP $CPPFLAGS'
24934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24937 if test -z "$CXX"; then
24938 if test -n "$CCC"; then
24941 if test -n "$ac_tool_prefix"; then
24942 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24944 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24945 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
24946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24947 $as_echo_n "checking for $ac_word... " >&6; }
24948 if ${ac_cv_prog_CXX+:} false; then :
24949 $as_echo_n "(cached) " >&6
24951 if test -n "$CXX"; then
24952 ac_cv_prog_CXX="$CXX" # Let the user override the test.
24954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24955 for as_dir in $PATH
24958 test -z "$as_dir" && as_dir=.
24959 for ac_exec_ext in '' $ac_executable_extensions; do
24960 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24961 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
24962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24971 CXX=$ac_cv_prog_CXX
24972 if test -n "$CXX"; then
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
24974 $as_echo "$CXX" >&6; }
24976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24977 $as_echo "no" >&6; }
24981 test -n "$CXX" && break
24984 if test -z "$CXX"; then
24986 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24988 # Extract the first word of "$ac_prog", so it can be a program name with args.
24989 set dummy $ac_prog; ac_word=$2
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24991 $as_echo_n "checking for $ac_word... " >&6; }
24992 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
24993 $as_echo_n "(cached) " >&6
24995 if test -n "$ac_ct_CXX"; then
24996 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
24998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24999 for as_dir in $PATH
25002 test -z "$as_dir" && as_dir=.
25003 for ac_exec_ext in '' $ac_executable_extensions; do
25004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25005 ac_cv_prog_ac_ct_CXX="$ac_prog"
25006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25015 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25016 if test -n "$ac_ct_CXX"; then
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
25018 $as_echo "$ac_ct_CXX" >&6; }
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25021 $as_echo "no" >&6; }
25025 test -n "$ac_ct_CXX" && break
25028 if test "x$ac_ct_CXX" = x; then
25031 case $cross_compiling:$ac_tool_warned in
25033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25035 ac_tool_warned=yes ;;
25043 # Provide some information about the compiler.
25044 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
25047 for ac_option in --version -v -V -qversion; do
25048 { { ac_try="$ac_compiler $ac_option >&5"
25049 case "(($ac_try" in
25050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25051 *) ac_try_echo=$ac_try;;
25053 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25054 $as_echo "$ac_try_echo"; } >&5
25055 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
25057 if test -s conftest.err; then
25059 ... rest of stderr output deleted ...
25060 10q' conftest.err >conftest.er1
25061 cat conftest.er1 >&5
25063 rm -f conftest.er1 conftest.err
25064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25065 test $ac_status = 0; }
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
25069 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
25070 if ${ac_cv_cxx_compiler_gnu+:} false; then :
25071 $as_echo_n "(cached) " >&6
25073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25074 /* end confdefs.h. */
25087 if ac_fn_cxx_try_compile "$LINENO"; then :
25088 ac_compiler_gnu=yes
25092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25093 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
25097 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25098 if test $ac_compiler_gnu = yes; then
25103 ac_test_CXXFLAGS=${CXXFLAGS+set}
25104 ac_save_CXXFLAGS=$CXXFLAGS
25105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
25106 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
25107 if ${ac_cv_prog_cxx_g+:} false; then :
25108 $as_echo_n "(cached) " >&6
25110 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25111 ac_cxx_werror_flag=yes
25112 ac_cv_prog_cxx_g=no
25114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25115 /* end confdefs.h. */
25125 if ac_fn_cxx_try_compile "$LINENO"; then :
25126 ac_cv_prog_cxx_g=yes
25129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25130 /* end confdefs.h. */
25140 if ac_fn_cxx_try_compile "$LINENO"; then :
25143 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25146 /* end confdefs.h. */
25156 if ac_fn_cxx_try_compile "$LINENO"; then :
25157 ac_cv_prog_cxx_g=yes
25159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25164 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
25167 $as_echo "$ac_cv_prog_cxx_g" >&6; }
25168 if test "$ac_test_CXXFLAGS" = set; then
25169 CXXFLAGS=$ac_save_CXXFLAGS
25170 elif test $ac_cv_prog_cxx_g = yes; then
25171 if test "$GXX" = yes; then
25177 if test "$GXX" = yes; then
25184 ac_cpp='$CXXCPP $CPPFLAGS'
25185 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25186 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25187 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25189 depcc="$CXX" am_compiler_list=
25191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25192 $as_echo_n "checking dependency style of $depcc... " >&6; }
25193 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
25194 $as_echo_n "(cached) " >&6
25196 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25197 # We make a subdir and do the tests there. Otherwise we can end up
25198 # making bogus files that we don't know about and never remove. For
25199 # instance it was reported that on HP-UX the gcc test will end up
25200 # making a dummy file named `D' -- because `-MD' means `put the output
25203 # Copy depcomp to subdir because otherwise we won't find it if we're
25204 # using a relative directory.
25205 cp "$am_depcomp" conftest.dir
25207 # We will build objects and dependencies in a subdirectory because
25208 # it helps to detect inapplicable dependency modes. For instance
25209 # both Tru64's cc and ICC support -MD to output dependencies as a
25210 # side effect of compilation, but ICC will put the dependencies in
25211 # the current directory while Tru64 will put them in the object
25215 am_cv_CXX_dependencies_compiler_type=none
25216 if test "$am_compiler_list" = ""; then
25217 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25219 am__universal=false
25220 case " $depcc " in #(
25221 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25224 for depmode in $am_compiler_list; do
25225 # Setup a source with many dependencies, because some compilers
25226 # like to wrap large dependency lists on column 80 (with \), and
25227 # we should not choose a depcomp mode which is confused by this.
25229 # We need to recreate these files for each test, as the compiler may
25230 # overwrite some of them when testing with obscure command lines.
25231 # This happens at least with the AIX C compiler.
25233 for i in 1 2 3 4 5 6; do
25234 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25235 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25236 # Solaris 8's {/usr,}/bin/sh.
25237 touch sub/conftst$i.h
25239 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25241 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25242 # mode. It turns out that the SunPro C++ compiler does not properly
25243 # handle `-M -o', and we need to detect this. Also, some Intel
25244 # versions had trouble with output in subdirs
25245 am__obj=sub/conftest.${OBJEXT-o}
25246 am__minus_obj="-o $am__obj"
25249 # This depmode causes a compiler race in universal mode.
25250 test "$am__universal" = false || continue
25253 # after this tag, mechanisms are not by side-effect, so they'll
25254 # only be used when explicitly requested
25255 if test "x$enable_dependency_tracking" = xyes; then
25261 msvisualcpp | msvcmsys)
25262 # This compiler won't grok `-c -o', but also, the minuso test has
25263 # not run yet. These depmodes are late enough in the game, and
25264 # so weak that their functioning should not be impacted.
25265 am__obj=conftest.${OBJEXT-o}
25270 if depmode=$depmode \
25271 source=sub/conftest.c object=$am__obj \
25272 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25273 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25274 >/dev/null 2>conftest.err &&
25275 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25276 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25277 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25278 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25279 # icc doesn't choke on unknown options, it will just issue warnings
25280 # or remarks (even with -Werror). So we grep stderr for any message
25281 # that says an option was ignored or not supported.
25282 # When given -MP, icc 7.0 and 7.1 complain thusly:
25283 # icc: Command line warning: ignoring option '-M'; no argument required
25284 # The diagnosis changed in icc 8.0:
25285 # icc: Command line remark: option '-MP' not supported
25286 if (grep 'ignoring option' conftest.err ||
25287 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25288 am_cv_CXX_dependencies_compiler_type=$depmode
25295 rm -rf conftest.dir
25297 am_cv_CXX_dependencies_compiler_type=none
25301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25302 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25303 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25306 test "x$enable_dependency_tracking" != xno \
25307 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25308 am__fastdepCXX_TRUE=
25309 am__fastdepCXX_FALSE='#'
25311 am__fastdepCXX_TRUE='#'
25312 am__fastdepCXX_FALSE=
25316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25317 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
25318 if ${ax_cv_cxx_bool+:} false; then :
25319 $as_echo_n "(cached) " >&6
25323 ac_cpp='$CXXCPP $CPPFLAGS'
25324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25329 /* end confdefs.h. */
25331 int f(int x){return 1;}
25332 int f(char x){return 1;}
25333 int f(bool x){return 1;}
25338 bool b = true; return f(b);
25343 if ac_fn_cxx_try_compile "$LINENO"; then :
25348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25350 ac_cpp='$CXXCPP $CPPFLAGS'
25351 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25352 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25353 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25358 $as_echo "$ax_cv_cxx_bool" >&6; }
25359 if test "$ax_cv_cxx_bool" = yes; then
25361 $as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25366 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
25367 if ${ax_cv_cxx_namespaces+:} false; then :
25368 $as_echo_n "(cached) " >&6
25372 ac_cpp='$CXXCPP $CPPFLAGS'
25373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25378 /* end confdefs.h. */
25379 namespace Outer { namespace Inner { int i = 0; }}
25383 using namespace Outer::Inner; return i;
25388 if ac_fn_cxx_try_compile "$LINENO"; then :
25389 ax_cv_cxx_namespaces=yes
25391 ax_cv_cxx_namespaces=no
25393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25395 ac_cpp='$CXXCPP $CPPFLAGS'
25396 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25397 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25398 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25403 $as_echo "$ax_cv_cxx_namespaces" >&6; }
25404 if test "$ax_cv_cxx_namespaces" = yes; then
25406 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25412 $as_echo_n "checking if g++ supports namespace std... " >&6; }
25413 if ${ax_cv_cxx_have_std_namespace+:} false; then :
25414 $as_echo_n "(cached) " >&6
25418 ac_cpp='$CXXCPP $CPPFLAGS'
25419 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25420 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25421 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25424 /* end confdefs.h. */
25425 #include <iostream>
25426 std::istream& is = std::cin;
25435 if ac_fn_cxx_try_compile "$LINENO"; then :
25436 ax_cv_cxx_have_std_namespace=yes
25438 ax_cv_cxx_have_std_namespace=no
25440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25442 ac_cpp='$CXXCPP $CPPFLAGS'
25443 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25444 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25445 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25450 $as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25451 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25453 $as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25458 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
25459 if ${ac_cv_cxx_have_std_libs+:} false; then :
25460 $as_echo_n "(cached) " >&6
25465 ac_cpp='$CXXCPP $CPPFLAGS'
25466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25471 /* end confdefs.h. */
25472 #include <iostream>
25476 #ifdef HAVE_NAMESPACES
25477 using namespace std;
25487 if ac_fn_cxx_try_compile "$LINENO"; then :
25488 ac_cv_cxx_have_std_libs=yes
25490 ac_cv_cxx_have_std_libs=no
25492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25494 ac_cpp='$CXXCPP $CPPFLAGS'
25495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25502 $as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25503 if test "$ac_cv_cxx_have_std_libs" = yes; then
25505 $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25511 # Check whether --enable-openmp was given.
25512 if test "${enable_openmp+set}" = set; then :
25513 enableval=$enable_openmp;
25516 if test "$enable_openmp" != no; then
25517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25518 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
25519 if ${ac_cv_prog_cxx_openmp+:} false; then :
25520 $as_echo_n "(cached) " >&6
25522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25523 /* end confdefs.h. */
25529 int main () { return omp_get_num_threads (); }
25532 if ac_fn_cxx_try_link "$LINENO"; then :
25533 ac_cv_prog_cxx_openmp='none needed'
25535 ac_cv_prog_cxx_openmp='unsupported'
25536 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25537 ac_save_CXXFLAGS=$CXXFLAGS
25538 CXXFLAGS="$CXXFLAGS $ac_option"
25539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25540 /* end confdefs.h. */
25546 int main () { return omp_get_num_threads (); }
25549 if ac_fn_cxx_try_link "$LINENO"; then :
25550 ac_cv_prog_cxx_openmp=$ac_option
25552 rm -f core conftest.err conftest.$ac_objext \
25553 conftest$ac_exeext conftest.$ac_ext
25554 CXXFLAGS=$ac_save_CXXFLAGS
25555 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25560 rm -f core conftest.err conftest.$ac_objext \
25561 conftest$ac_exeext conftest.$ac_ext
25563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
25564 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25565 case $ac_cv_prog_cxx_openmp in #(
25566 "none needed" | unsupported)
25569 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
25575 ac_cpp='$CPP $CPPFLAGS'
25576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
25582 $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25584 test $ax_cv_cxx_bool = 'yes' && \
25585 test $ax_cv_cxx_namespaces = 'yes' && \
25586 test $ac_cv_cxx_have_std_libs = 'yes' && \
25587 test $ax_cv_cxx_have_std_namespace = 'yes'; then
25588 have_magick_plus_plus='yes'
25590 have_magick_plus_plus='no (failed tests)'
25592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
25593 $as_echo "$have_magick_plus_plus" >&6; }
25596 if test "$have_magick_plus_plus" = 'yes'; then
25597 WITH_MAGICK_PLUS_PLUS_TRUE=
25598 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25600 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25601 WITH_MAGICK_PLUS_PLUS_FALSE=
25605 # Only check for delegate libraries in subdirectories if requested.
25606 if test "$enable_delegate_build" != 'no'; then
25607 # Check for delegate sub-directories and add -I & -L options as required.
25608 # This presumes that delegates are installed as detailed in the ImageMagick
25609 # README. If delegates are installed in a standard location where the
25610 # compiler will automatically find them then these options should not be
25614 # Most delegates have includes in the same directory as the library, but not all...
25617 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
25618 if test -d "$builddir/$dir"; then
25619 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25621 if test -d "$srcdirfull/$dir"; then
25622 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25628 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
25629 if test -d "$builddir/$dir/.libs"; then
25630 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25632 if test -d "$srcdirfull/$dir/.libs"; then
25633 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25636 if test -d "$builddir/$dir"; then
25637 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25639 if test -d "$srcdirfull/$dir"; then
25640 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25646 # Assume that delegate headers reside under same directory as ImageMagick
25647 # installation prefix.
25648 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25651 # Find the X11 RGB database
25653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
25654 $as_echo_n "checking for X11 configure files... " >&6; }
25655 if ${im_cv_x_configure+:} false; then :
25656 $as_echo_n "(cached) " >&6
25658 # Look for the header file in a standard set of common directories.
25659 # Check X11 before X11Rn because it is often a symlink to the current release.
25668 /usr/XFree86/lib/X11 \
25676 /usr/local/X11/lib \
25677 /usr/local/X11R4/lib \
25678 /usr/local/X11R5/lib \
25679 /usr/local/X11R6/lib \
25681 /usr/local/lib/X11 \
25682 /usr/local/lib/X11R4 \
25683 /usr/local/lib/X11R5 \
25684 /usr/local/lib/X11R6 \
25685 /usr/local/lib/X11R7 \
25686 /usr/local/x11r5/lib \
25687 /usr/lpp/Xamples/lib \
25689 /usr/openwin/share/lib \
25690 /usr/unsupported/lib \
25693 if test -f "$ac_dir/X11/rgb.txt"; then
25694 im_cv_x_configure="$ac_dir/X11/"
25696 elif test -f "$ac_dir/rgb.txt"; then
25697 im_cv_x_configure="$ac_dir/"
25703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
25704 $as_echo "$im_cv_x_configure" >&6; }
25705 X11_CONFIGURE_PATH="$im_cv_x_configure"
25706 case "${build_os}" in
25708 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25712 cat >>confdefs.h <<_ACEOF
25713 #define X11_CONFIGURE_PATH "$X11ConfigurePath"
25718 # Find OpenMP library
25721 if test "$enable_openmp" != 'no'; then
25722 if test "${GCC}" = "yes"; then
25723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
25724 $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
25725 if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
25726 $as_echo_n "(cached) " >&6
25728 ac_check_lib_save_LIBS=$LIBS
25729 LIBS="-lgomp $LIBS"
25730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25731 /* end confdefs.h. */
25733 /* Override any GCC internal prototype to avoid an error.
25734 Use char because int might match the return type of a GCC
25735 builtin and then its argument prototype would still apply. */
25739 char GOMP_parallel_start ();
25743 return GOMP_parallel_start ();
25748 if ac_fn_c_try_link "$LINENO"; then :
25749 ac_cv_lib_gomp_GOMP_parallel_start=yes
25751 ac_cv_lib_gomp_GOMP_parallel_start=no
25753 rm -f core conftest.err conftest.$ac_objext \
25754 conftest$ac_exeext conftest.$ac_ext
25755 LIBS=$ac_check_lib_save_LIBS
25757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
25758 $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
25759 if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
25764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
25765 $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
25766 if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
25767 $as_echo_n "(cached) " >&6
25769 ac_check_lib_save_LIBS=$LIBS
25770 LIBS="-lmtsk $LIBS"
25771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25772 /* end confdefs.h. */
25774 /* Override any GCC internal prototype to avoid an error.
25775 Use char because int might match the return type of a GCC
25776 builtin and then its argument prototype would still apply. */
25780 char sunw_mp_register_warn ();
25784 return sunw_mp_register_warn ();
25789 if ac_fn_c_try_link "$LINENO"; then :
25790 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25792 ac_cv_lib_mtsk_sunw_mp_register_warn=no
25794 rm -f core conftest.err conftest.$ac_objext \
25795 conftest$ac_exeext conftest.$ac_ext
25796 LIBS=$ac_check_lib_save_LIBS
25798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
25799 $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
25800 if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
25805 $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
25806 if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
25807 $as_echo_n "(cached) " >&6
25809 ac_check_lib_save_LIBS=$LIBS
25810 LIBS="-lxlsmp $LIBS"
25811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25812 /* end confdefs.h. */
25814 /* Override any GCC internal prototype to avoid an error.
25815 Use char because int might match the return type of a GCC
25816 builtin and then its argument prototype would still apply. */
25820 char _xlsmpFlush ();
25824 return _xlsmpFlush ();
25829 if ac_fn_c_try_link "$LINENO"; then :
25830 ac_cv_lib_xlsmp__xlsmpFlush=yes
25832 ac_cv_lib_xlsmp__xlsmpFlush=no
25834 rm -f core conftest.err conftest.$ac_objext \
25835 conftest$ac_exeext conftest.$ac_ext
25836 LIBS=$ac_check_lib_save_LIBS
25838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
25839 $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
25840 if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
25841 GOMP_LIBS="-lxlsmp"
25844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
25845 $as_echo_n "checking for mp_destroy in -lmp... " >&6; }
25846 if ${ac_cv_lib_mp_mp_destroy+:} false; then :
25847 $as_echo_n "(cached) " >&6
25849 ac_check_lib_save_LIBS=$LIBS
25851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25852 /* end confdefs.h. */
25854 /* Override any GCC internal prototype to avoid an error.
25855 Use char because int might match the return type of a GCC
25856 builtin and then its argument prototype would still apply. */
25860 char mp_destroy ();
25864 return mp_destroy ();
25869 if ac_fn_c_try_link "$LINENO"; then :
25870 ac_cv_lib_mp_mp_destroy=yes
25872 ac_cv_lib_mp_mp_destroy=no
25874 rm -f core conftest.err conftest.$ac_objext \
25875 conftest$ac_exeext conftest.$ac_ext
25876 LIBS=$ac_check_lib_save_LIBS
25878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
25879 $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
25880 if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
25883 # SGI IRIX 6.5 MIPSpro C/C++
25885 LIBS="$GOMP_LIBS $LIBS"
25890 # Find Posix threads library
25893 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
25895 if test "x$PTHREAD_LIBS" = "x"; then
25896 case "${host_cpu}-${host_os}" in
25902 ac_cpp='$CPP $CPPFLAGS'
25903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25907 magick_pthread_lib_ok=no
25913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25914 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
25915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25916 /* end confdefs.h. */
25917 #include <pthread.h>
25922 pthread_join(th, 0);
25923 pthread_attr_init(0);
25924 pthread_cleanup_push(0, 0);
25925 pthread_create(0,0,0,0);
25926 pthread_cleanup_pop(0);
25931 if ac_fn_c_try_link "$LINENO"; then :
25932 magick_pthread_lib_ok=yes
25934 rm -f core conftest.err conftest.$ac_objext \
25935 conftest$ac_exeext conftest.$ac_ext
25937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25938 $as_echo "${magick_pthread_lib_ok}" >&6; }
25939 if test "$magick_pthread_lib_ok" = yes
25951 ac_cpp='$CPP $CPPFLAGS'
25952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25960 for lib in pthread pthreads; do
25961 if test "x$PTHREAD_LIBS" = "x"; then
25966 ac_cpp='$CPP $CPPFLAGS'
25967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25971 magick_pthread_lib_ok=no
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25978 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
25979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25980 /* end confdefs.h. */
25981 #include <pthread.h>
25986 pthread_join(th, 0);
25987 pthread_attr_init(0);
25988 pthread_cleanup_push(0, 0);
25989 pthread_create(0,0,0,0);
25990 pthread_cleanup_pop(0);
25995 if ac_fn_c_try_link "$LINENO"; then :
25996 magick_pthread_lib_ok=yes
25998 rm -f core conftest.err conftest.$ac_objext \
25999 conftest$ac_exeext conftest.$ac_ext
26001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26002 $as_echo "${magick_pthread_lib_ok}" >&6; }
26003 if test "$magick_pthread_lib_ok" = yes
26005 PTHREAD_LIBS=-l$lib
26015 ac_cpp='$CPP $CPPFLAGS'
26016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26017 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26024 THREAD_LIBS="$PTHREAD_LIBS"
26025 LIBS="$LIBS $THREAD_LIBS"
26034 if test "$with_umem" != 'no'; then
26035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
26036 $as_echo_n "checking for UMEM support ... " >&6; }
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26041 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
26042 if test "x$ac_cv_header_umem_h" = xyes; then :
26043 passed=`expr $passed + 1`
26045 failed=`expr $failed + 1`
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
26050 $as_echo_n "checking for umem_alloc in -lumem... " >&6; }
26051 if ${ac_cv_lib_umem_umem_alloc+:} false; then :
26052 $as_echo_n "(cached) " >&6
26054 ac_check_lib_save_LIBS=$LIBS
26055 LIBS="-lumem $LIBS"
26056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26057 /* end confdefs.h. */
26059 /* Override any GCC internal prototype to avoid an error.
26060 Use char because int might match the return type of a GCC
26061 builtin and then its argument prototype would still apply. */
26065 char umem_alloc ();
26069 return umem_alloc ();
26074 if ac_fn_c_try_link "$LINENO"; then :
26075 ac_cv_lib_umem_umem_alloc=yes
26077 ac_cv_lib_umem_umem_alloc=no
26079 rm -f core conftest.err conftest.$ac_objext \
26080 conftest$ac_exeext conftest.$ac_ext
26081 LIBS=$ac_check_lib_save_LIBS
26083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
26084 $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
26085 if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
26086 passed=`expr $passed + 1`
26088 failed=`expr $failed + 1`
26091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
26092 $as_echo_n "checking for umem_free in -lumem... " >&6; }
26093 if ${ac_cv_lib_umem_umem_free+:} false; then :
26094 $as_echo_n "(cached) " >&6
26096 ac_check_lib_save_LIBS=$LIBS
26097 LIBS="-lumem $LIBS"
26098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26099 /* end confdefs.h. */
26101 /* Override any GCC internal prototype to avoid an error.
26102 Use char because int might match the return type of a GCC
26103 builtin and then its argument prototype would still apply. */
26111 return umem_free ();
26116 if ac_fn_c_try_link "$LINENO"; then :
26117 ac_cv_lib_umem_umem_free=yes
26119 ac_cv_lib_umem_umem_free=no
26121 rm -f core conftest.err conftest.$ac_objext \
26122 conftest$ac_exeext conftest.$ac_ext
26123 LIBS=$ac_check_lib_save_LIBS
26125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
26126 $as_echo "$ac_cv_lib_umem_umem_free" >&6; }
26127 if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
26128 passed=`expr $passed + 1`
26130 failed=`expr $failed + 1`
26133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
26134 $as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26135 if test $passed -gt 0; then
26136 if test $failed -gt 0; then
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26138 $as_echo "no -- some components failed test" >&6; }
26139 have_umem='no (failed tests)'
26142 LIBS="$UMEM_LIBS $LIBS"
26144 $as_echo "#define HasUMEM 1" >>confdefs.h
26146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26147 $as_echo "yes" >&6; }
26151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26152 $as_echo "no" >&6; }
26155 if test "$have_umem" = 'yes'; then
26166 # Add support for ccmalloc memory debugging library if requested
26170 if test "$enable_ccmalloc" = 'yes'; then
26171 # Extract the first word of "ccmalloc", so it can be a program name with args.
26172 set dummy ccmalloc; ac_word=$2
26173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26174 $as_echo_n "checking for $ac_word... " >&6; }
26175 if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
26176 $as_echo_n "(cached) " >&6
26178 case $CCMALLOCDelegate in
26180 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26184 for as_dir in $PATH
26187 test -z "$as_dir" && as_dir=.
26188 for ac_exec_ext in '' $ac_executable_extensions; do
26189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26190 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
26191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26201 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26202 if test -n "$CCMALLOCDelegate"; then
26203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
26204 $as_echo "$CCMALLOCDelegate" >&6; }
26206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26207 $as_echo "no" >&6; }
26211 if test -n "$CCMALLOCDelegate"; then
26212 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26214 # Assume that gcc is used with ccmalloc.
26215 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
26217 $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
26218 if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
26219 $as_echo_n "(cached) " >&6
26221 ac_check_lib_save_LIBS=$LIBS
26222 LIBS="-lccmalloc -ldl $LIBS"
26223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26224 /* end confdefs.h. */
26226 /* Override any GCC internal prototype to avoid an error.
26227 Use char because int might match the return type of a GCC
26228 builtin and then its argument prototype would still apply. */
26232 char ccmalloc_malloc ();
26236 return ccmalloc_malloc ();
26241 if ac_fn_c_try_link "$LINENO"; then :
26242 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26244 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
26246 rm -f core conftest.err conftest.$ac_objext \
26247 conftest$ac_exeext conftest.$ac_ext
26248 LIBS=$ac_check_lib_save_LIBS
26250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
26251 $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
26252 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
26253 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26256 if test -n "$CCMALLOC_LIBS"; then
26258 LIBS="$LIBS $CCMALLOC_LIBS"
26259 have_ccmalloc='yes'
26267 # Add support for efence memory debugging library if requested
26269 if test "$enable_efence" = 'yes'; then
26270 EFENCE_LIBS='-lefence'
26271 LIBS="$EFENCE_LIBS $LIBS"
26280 # Check whether --with-bzlib was given.
26281 if test "${with_bzlib+set}" = set; then :
26282 withval=$with_bzlib; with_bzlib=$withval
26288 if test "$with_bzlib" != 'yes'; then
26289 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26293 if test "$with_bzlib" != 'no'; then
26295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26296 $as_echo "-------------------------------------------------------------" >&6; }
26297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
26298 $as_echo_n "checking for BZLIB... " >&6; }
26299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26304 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
26305 if test "x$ac_cv_header_bzlib_h" = xyes; then :
26306 passed=`expr $passed + 1`
26308 failed=`expr $failed + 1`
26312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
26313 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
26314 if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
26315 $as_echo_n "(cached) " >&6
26317 ac_check_lib_save_LIBS=$LIBS
26319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26320 /* end confdefs.h. */
26322 /* Override any GCC internal prototype to avoid an error.
26323 Use char because int might match the return type of a GCC
26324 builtin and then its argument prototype would still apply. */
26328 char BZ2_bzDecompress ();
26332 return BZ2_bzDecompress ();
26337 if ac_fn_c_try_link "$LINENO"; then :
26338 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26340 ac_cv_lib_bz2_BZ2_bzDecompress=no
26342 rm -f core conftest.err conftest.$ac_objext \
26343 conftest$ac_exeext conftest.$ac_ext
26344 LIBS=$ac_check_lib_save_LIBS
26346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
26347 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
26348 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
26349 found_libbz=`expr $found_libbz + 1`
26352 if test "$native_win32_build" = 'yes'; then
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
26354 $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
26355 if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
26356 $as_echo_n "(cached) " >&6
26358 ac_check_lib_save_LIBS=$LIBS
26360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26361 /* end confdefs.h. */
26363 /* Override any GCC internal prototype to avoid an error.
26364 Use char because int might match the return type of a GCC
26365 builtin and then its argument prototype would still apply. */
26369 char _imp__BZ2_decompress ();
26373 return _imp__BZ2_decompress ();
26378 if ac_fn_c_try_link "$LINENO"; then :
26379 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26381 ac_cv_lib_bz2__imp__BZ2_decompress=no
26383 rm -f core conftest.err conftest.$ac_objext \
26384 conftest$ac_exeext conftest.$ac_ext
26385 LIBS=$ac_check_lib_save_LIBS
26387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
26388 $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
26389 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
26390 found_libbz=`expr $found_libbz + 1`
26394 if test $found_libbz -gt 0; then
26395 passed=`expr $passed + 1`
26397 failed=`expr $failed + 1`
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
26400 $as_echo_n "checking if BZLIB package is complete... " >&6; }
26401 if test $passed -gt 0; then
26402 if test $failed -gt 0; then
26403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26404 $as_echo "no -- some components failed test" >&6; }
26405 have_bzlib='no (failed tests)'
26408 LIBS="$BZLIB_LIBS $LIBS"
26410 $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
26412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26413 $as_echo "yes" >&6; }
26417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26418 $as_echo "no" >&6; }
26421 if test "$have_bzlib" = 'yes'; then
26422 BZLIB_DELEGATE_TRUE=
26423 BZLIB_DELEGATE_FALSE='#'
26425 BZLIB_DELEGATE_TRUE='#'
26426 BZLIB_DELEGATE_FALSE=
26432 # Find the X11 include and library directories.
26438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
26439 $as_echo_n "checking for X... " >&6; }
26442 # Check whether --with-x was given.
26443 if test "${with_x+set}" = set; then :
26447 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26448 if test "x$with_x" = xno; then
26449 # The user explicitly disabled X.
26452 case $x_includes,$x_libraries in #(
26453 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
26454 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
26455 $as_echo_n "(cached) " >&6
26457 # One or both of the vars are not set, and there is no cached value.
26458 ac_x_includes=no ac_x_libraries=no
26459 rm -f -r conftest.dir
26460 if mkdir conftest.dir; then
26462 cat >Imakefile <<'_ACEOF'
26464 @echo incroot='${INCROOT}'
26466 @echo usrlibdir='${USRLIBDIR}'
26468 @echo libdir='${LIBDIR}'
26470 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
26471 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
26472 for ac_var in incroot usrlibdir libdir; do
26473 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26475 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26476 for ac_extension in a so sl dylib la dll; do
26477 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26478 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26479 ac_im_usrlibdir=$ac_im_libdir; break
26482 # Screen out bogus values from the imake configuration. They are
26483 # bogus both because they are the default anyway, and because
26484 # using them would break gcc on systems where it needs fixed includes.
26485 case $ac_im_incroot in
26486 /usr/include) ac_x_includes= ;;
26487 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26489 case $ac_im_usrlibdir in
26490 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26491 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26495 rm -f -r conftest.dir
26498 # Standard set of common directories for X headers.
26499 # Check X11 before X11Rn because it is often a symlink to the current release.
26513 /usr/local/X11/include
26514 /usr/local/X11R7/include
26515 /usr/local/X11R6/include
26516 /usr/local/X11R5/include
26517 /usr/local/X11R4/include
26519 /usr/local/include/X11
26520 /usr/local/include/X11R7
26521 /usr/local/include/X11R6
26522 /usr/local/include/X11R5
26523 /usr/local/include/X11R4
26527 /usr/XFree86/include/X11
26531 /usr/unsupported/include
26532 /usr/athena/include
26533 /usr/local/x11r5/include
26534 /usr/lpp/Xamples/include
26536 /usr/openwin/include
26537 /usr/openwin/share/include'
26539 if test "$ac_x_includes" = no; then
26540 # Guess where to find include files, by looking for Xlib.h.
26541 # First, try using that file with no special directory specified.
26542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26543 /* end confdefs.h. */
26544 #include <X11/Xlib.h>
26546 if ac_fn_c_try_cpp "$LINENO"; then :
26547 # We can compile using X headers with no special include directory.
26550 for ac_dir in $ac_x_header_dirs; do
26551 if test -r "$ac_dir/X11/Xlib.h"; then
26552 ac_x_includes=$ac_dir
26557 rm -f conftest.err conftest.i conftest.$ac_ext
26558 fi # $ac_x_includes = no
26560 if test "$ac_x_libraries" = no; then
26561 # Check for the libraries.
26562 # See if we find them without any special options.
26563 # Don't add to $LIBS permanently.
26566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26567 /* end confdefs.h. */
26568 #include <X11/Xlib.h>
26577 if ac_fn_c_try_link "$LINENO"; then :
26579 # We can link X programs with no special library path.
26583 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26585 # Don't even attempt the hair of trying to link an X program!
26586 for ac_extension in a so sl dylib la dll; do
26587 if test -r "$ac_dir/libX11.$ac_extension"; then
26588 ac_x_libraries=$ac_dir
26594 rm -f core conftest.err conftest.$ac_objext \
26595 conftest$ac_exeext conftest.$ac_ext
26596 fi # $ac_x_libraries = no
26598 case $ac_x_includes,$ac_x_libraries in #(
26599 no,* | *,no | *\'*)
26600 # Didn't find X, or a directory has "'" in its name.
26601 ac_cv_have_x="have_x=no";; #(
26603 # Record where we found X for the cache.
26604 ac_cv_have_x="have_x=yes\
26605 ac_x_includes='$ac_x_includes'\
26606 ac_x_libraries='$ac_x_libraries'"
26612 eval "$ac_cv_have_x"
26615 if test "$have_x" != yes; then
26616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
26617 $as_echo "$have_x" >&6; }
26620 # If each of the values was on the command line, it overrides each guess.
26621 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26622 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26623 # Update the cache value to reflect the command line values.
26624 ac_cv_have_x="have_x=yes\
26625 ac_x_includes='$x_includes'\
26626 ac_x_libraries='$x_libraries'"
26627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
26628 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26631 if test "$no_x" = yes; then
26632 # Not all programs may use this symbol, but it does not hurt to define it.
26634 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
26636 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26638 if test -n "$x_includes"; then
26639 X_CFLAGS="$X_CFLAGS -I$x_includes"
26642 # It would also be nice to do this for all -L options, not just this one.
26643 if test -n "$x_libraries"; then
26644 X_LIBS="$X_LIBS -L$x_libraries"
26645 # For Solaris; some versions of Sun CC require a space after -R and
26646 # others require no space. Words are not sufficient . . . .
26647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
26648 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
26649 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26650 ac_xsave_c_werror_flag=$ac_c_werror_flag
26651 ac_c_werror_flag=yes
26652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26653 /* end confdefs.h. */
26663 if ac_fn_c_try_link "$LINENO"; then :
26664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26665 $as_echo "no" >&6; }
26666 X_LIBS="$X_LIBS -R$x_libraries"
26668 LIBS="$ac_xsave_LIBS -R $x_libraries"
26669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26670 /* end confdefs.h. */
26680 if ac_fn_c_try_link "$LINENO"; then :
26681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26682 $as_echo "yes" >&6; }
26683 X_LIBS="$X_LIBS -R $x_libraries"
26685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
26686 $as_echo "neither works" >&6; }
26688 rm -f core conftest.err conftest.$ac_objext \
26689 conftest$ac_exeext conftest.$ac_ext
26691 rm -f core conftest.err conftest.$ac_objext \
26692 conftest$ac_exeext conftest.$ac_ext
26693 ac_c_werror_flag=$ac_xsave_c_werror_flag
26694 LIBS=$ac_xsave_LIBS
26697 # Check for system-dependent libraries X programs must link with.
26698 # Do this before checking for the system-independent R6 libraries
26699 # (-lICE), since we may need -lsocket or whatever for X linking.
26701 if test "$ISC" = yes; then
26702 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26704 # Martyn Johnson says this is needed for Ultrix, if the X
26705 # libraries were built with DECnet support. And Karl Berry says
26706 # the Alpha needs dnet_stub (dnet does not exist).
26707 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26709 /* end confdefs.h. */
26711 /* Override any GCC internal prototype to avoid an error.
26712 Use char because int might match the return type of a GCC
26713 builtin and then its argument prototype would still apply. */
26717 char XOpenDisplay ();
26721 return XOpenDisplay ();
26726 if ac_fn_c_try_link "$LINENO"; then :
26729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
26730 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
26731 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
26732 $as_echo_n "(cached) " >&6
26734 ac_check_lib_save_LIBS=$LIBS
26735 LIBS="-ldnet $LIBS"
26736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26737 /* end confdefs.h. */
26739 /* Override any GCC internal prototype to avoid an error.
26740 Use char because int might match the return type of a GCC
26741 builtin and then its argument prototype would still apply. */
26749 return dnet_ntoa ();
26754 if ac_fn_c_try_link "$LINENO"; then :
26755 ac_cv_lib_dnet_dnet_ntoa=yes
26757 ac_cv_lib_dnet_dnet_ntoa=no
26759 rm -f core conftest.err conftest.$ac_objext \
26760 conftest$ac_exeext conftest.$ac_ext
26761 LIBS=$ac_check_lib_save_LIBS
26763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26764 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
26765 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
26766 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26769 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
26771 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
26772 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
26773 $as_echo_n "(cached) " >&6
26775 ac_check_lib_save_LIBS=$LIBS
26776 LIBS="-ldnet_stub $LIBS"
26777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26778 /* end confdefs.h. */
26780 /* Override any GCC internal prototype to avoid an error.
26781 Use char because int might match the return type of a GCC
26782 builtin and then its argument prototype would still apply. */
26790 return dnet_ntoa ();
26795 if ac_fn_c_try_link "$LINENO"; then :
26796 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26798 ac_cv_lib_dnet_stub_dnet_ntoa=no
26800 rm -f core conftest.err conftest.$ac_objext \
26801 conftest$ac_exeext conftest.$ac_ext
26802 LIBS=$ac_check_lib_save_LIBS
26804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26805 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
26806 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
26807 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26812 rm -f core conftest.err conftest.$ac_objext \
26813 conftest$ac_exeext conftest.$ac_ext
26814 LIBS="$ac_xsave_LIBS"
26816 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26817 # to get the SysV transport functions.
26818 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26820 # The nsl library prevents programs from opening the X display
26821 # on Irix 5.2, according to T.E. Dickey.
26822 # The functions gethostbyname, getservbyname, and inet_addr are
26823 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26824 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
26825 if test "x$ac_cv_func_gethostbyname" = xyes; then :
26829 if test $ac_cv_func_gethostbyname = no; then
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
26831 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
26832 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
26833 $as_echo_n "(cached) " >&6
26835 ac_check_lib_save_LIBS=$LIBS
26837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26838 /* end confdefs.h. */
26840 /* Override any GCC internal prototype to avoid an error.
26841 Use char because int might match the return type of a GCC
26842 builtin and then its argument prototype would still apply. */
26846 char gethostbyname ();
26850 return gethostbyname ();
26855 if ac_fn_c_try_link "$LINENO"; then :
26856 ac_cv_lib_nsl_gethostbyname=yes
26858 ac_cv_lib_nsl_gethostbyname=no
26860 rm -f core conftest.err conftest.$ac_objext \
26861 conftest$ac_exeext conftest.$ac_ext
26862 LIBS=$ac_check_lib_save_LIBS
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
26865 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
26866 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
26867 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26870 if test $ac_cv_lib_nsl_gethostbyname = no; then
26871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
26872 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
26873 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
26874 $as_echo_n "(cached) " >&6
26876 ac_check_lib_save_LIBS=$LIBS
26878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26879 /* end confdefs.h. */
26881 /* Override any GCC internal prototype to avoid an error.
26882 Use char because int might match the return type of a GCC
26883 builtin and then its argument prototype would still apply. */
26887 char gethostbyname ();
26891 return gethostbyname ();
26896 if ac_fn_c_try_link "$LINENO"; then :
26897 ac_cv_lib_bsd_gethostbyname=yes
26899 ac_cv_lib_bsd_gethostbyname=no
26901 rm -f core conftest.err conftest.$ac_objext \
26902 conftest$ac_exeext conftest.$ac_ext
26903 LIBS=$ac_check_lib_save_LIBS
26905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
26906 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
26907 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
26908 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26914 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26915 # socket/setsockopt and other routines are undefined under SCO ODT
26916 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26917 # on later versions), says Simon Leinen: it contains gethostby*
26918 # variants that don't use the name server (or something). -lsocket
26919 # must be given before -lnsl if both are needed. We assume that
26920 # if connect needs -lnsl, so does gethostbyname.
26921 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
26922 if test "x$ac_cv_func_connect" = xyes; then :
26926 if test $ac_cv_func_connect = no; then
26927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
26928 $as_echo_n "checking for connect in -lsocket... " >&6; }
26929 if ${ac_cv_lib_socket_connect+:} false; then :
26930 $as_echo_n "(cached) " >&6
26932 ac_check_lib_save_LIBS=$LIBS
26933 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26935 /* end confdefs.h. */
26937 /* Override any GCC internal prototype to avoid an error.
26938 Use char because int might match the return type of a GCC
26939 builtin and then its argument prototype would still apply. */
26952 if ac_fn_c_try_link "$LINENO"; then :
26953 ac_cv_lib_socket_connect=yes
26955 ac_cv_lib_socket_connect=no
26957 rm -f core conftest.err conftest.$ac_objext \
26958 conftest$ac_exeext conftest.$ac_ext
26959 LIBS=$ac_check_lib_save_LIBS
26961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
26962 $as_echo "$ac_cv_lib_socket_connect" >&6; }
26963 if test "x$ac_cv_lib_socket_connect" = xyes; then :
26964 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26969 # Guillermo Gomez says -lposix is necessary on A/UX.
26970 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
26971 if test "x$ac_cv_func_remove" = xyes; then :
26975 if test $ac_cv_func_remove = no; then
26976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
26977 $as_echo_n "checking for remove in -lposix... " >&6; }
26978 if ${ac_cv_lib_posix_remove+:} false; then :
26979 $as_echo_n "(cached) " >&6
26981 ac_check_lib_save_LIBS=$LIBS
26982 LIBS="-lposix $LIBS"
26983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26984 /* end confdefs.h. */
26986 /* Override any GCC internal prototype to avoid an error.
26987 Use char because int might match the return type of a GCC
26988 builtin and then its argument prototype would still apply. */
27001 if ac_fn_c_try_link "$LINENO"; then :
27002 ac_cv_lib_posix_remove=yes
27004 ac_cv_lib_posix_remove=no
27006 rm -f core conftest.err conftest.$ac_objext \
27007 conftest$ac_exeext conftest.$ac_ext
27008 LIBS=$ac_check_lib_save_LIBS
27010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
27011 $as_echo "$ac_cv_lib_posix_remove" >&6; }
27012 if test "x$ac_cv_lib_posix_remove" = xyes; then :
27013 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27018 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27019 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
27020 if test "x$ac_cv_func_shmat" = xyes; then :
27024 if test $ac_cv_func_shmat = no; then
27025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
27026 $as_echo_n "checking for shmat in -lipc... " >&6; }
27027 if ${ac_cv_lib_ipc_shmat+:} false; then :
27028 $as_echo_n "(cached) " >&6
27030 ac_check_lib_save_LIBS=$LIBS
27032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27033 /* end confdefs.h. */
27035 /* Override any GCC internal prototype to avoid an error.
27036 Use char because int might match the return type of a GCC
27037 builtin and then its argument prototype would still apply. */
27050 if ac_fn_c_try_link "$LINENO"; then :
27051 ac_cv_lib_ipc_shmat=yes
27053 ac_cv_lib_ipc_shmat=no
27055 rm -f core conftest.err conftest.$ac_objext \
27056 conftest$ac_exeext conftest.$ac_ext
27057 LIBS=$ac_check_lib_save_LIBS
27059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
27060 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
27061 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
27062 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27068 # Check for libraries that X11R6 Xt/Xaw programs need.
27069 ac_save_LDFLAGS=$LDFLAGS
27070 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27071 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27072 # check for ICE first), but we must link in the order -lSM -lICE or
27073 # we get undefined symbols. So assume we have SM if we have ICE.
27074 # These have to be linked with before -lX11, unlike the other
27075 # libraries we check for below, so use a different variable.
27076 # John Interrante, Karl Berry
27077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
27078 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
27079 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
27080 $as_echo_n "(cached) " >&6
27082 ac_check_lib_save_LIBS=$LIBS
27083 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27085 /* end confdefs.h. */
27087 /* Override any GCC internal prototype to avoid an error.
27088 Use char because int might match the return type of a GCC
27089 builtin and then its argument prototype would still apply. */
27093 char IceConnectionNumber ();
27097 return IceConnectionNumber ();
27102 if ac_fn_c_try_link "$LINENO"; then :
27103 ac_cv_lib_ICE_IceConnectionNumber=yes
27105 ac_cv_lib_ICE_IceConnectionNumber=no
27107 rm -f core conftest.err conftest.$ac_objext \
27108 conftest$ac_exeext conftest.$ac_ext
27109 LIBS=$ac_check_lib_save_LIBS
27111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27112 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
27113 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
27114 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27117 LDFLAGS=$ac_save_LDFLAGS
27121 if test "$no_x" != 'yes'; then
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27123 $as_echo "-------------------------------------------------------------" >&6; }
27124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
27125 $as_echo_n "checking for X11... " >&6; }
27126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27128 LDFLAGS="$LDFLAGS $X_LIBS"
27129 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27130 LIBS="$X11_LIBS $LIBS"
27131 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27134 $as_echo "#define X11_DELEGATE 1" >>confdefs.h
27137 # Check for X11 shared memory extension
27139 # shmctl is required to support the shared memory extension
27140 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
27141 if test "x$ac_cv_func_shmctl" = xyes; then :
27145 if test "$have_shmctl" != 'yes'; then
27147 LIBS="$LIBS -lcygipc"
27148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27149 /* end confdefs.h. */
27151 /* Override any GCC internal prototype to avoid an error.
27152 Use char because int might match the return type of a GCC
27153 builtin and then its argument prototype would still apply. */
27166 if ac_fn_c_try_link "$LINENO"; then :
27167 have_shmctl='yes'; IPC_LIBS='-lcygipc'
27169 rm -f core conftest.err conftest.$ac_objext \
27170 conftest$ac_exeext conftest.$ac_ext
27174 if test "$have_shmctl" = 'yes'; then
27175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
27176 $as_echo_n "checking for XShmAttach in -lXext... " >&6; }
27177 if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
27178 $as_echo_n "(cached) " >&6
27180 ac_check_lib_save_LIBS=$LIBS
27181 LIBS="-lXext $LIBS"
27182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27183 /* end confdefs.h. */
27185 /* Override any GCC internal prototype to avoid an error.
27186 Use char because int might match the return type of a GCC
27187 builtin and then its argument prototype would still apply. */
27191 char XShmAttach ();
27195 return XShmAttach ();
27200 if ac_fn_c_try_link "$LINENO"; then :
27201 ac_cv_lib_Xext_XShmAttach=yes
27203 ac_cv_lib_Xext_XShmAttach=no
27205 rm -f core conftest.err conftest.$ac_objext \
27206 conftest$ac_exeext conftest.$ac_ext
27207 LIBS=$ac_check_lib_save_LIBS
27209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
27210 $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
27211 if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
27212 XEXT_LIBS='-lXext' ;
27213 $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
27220 # Check for X11 shape extension
27222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
27223 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
27224 if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
27225 $as_echo_n "(cached) " >&6
27227 ac_check_lib_save_LIBS=$LIBS
27228 LIBS="-lXext $LIBS"
27229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27230 /* end confdefs.h. */
27232 /* Override any GCC internal prototype to avoid an error.
27233 Use char because int might match the return type of a GCC
27234 builtin and then its argument prototype would still apply. */
27238 char XShapeCombineMask ();
27242 return XShapeCombineMask ();
27247 if ac_fn_c_try_link "$LINENO"; then :
27248 ac_cv_lib_Xext_XShapeCombineMask=yes
27250 ac_cv_lib_Xext_XShapeCombineMask=no
27252 rm -f core conftest.err conftest.$ac_objext \
27253 conftest$ac_exeext conftest.$ac_ext
27254 LIBS=$ac_check_lib_save_LIBS
27256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
27257 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
27258 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
27259 XEXT_LIBS='-lXext' ;
27260 $as_echo "#define HAVE_SHAPE 1" >>confdefs.h
27264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
27265 $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
27266 if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
27267 $as_echo_n "(cached) " >&6
27269 ac_check_lib_save_LIBS=$LIBS
27271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27272 /* end confdefs.h. */
27274 /* Override any GCC internal prototype to avoid an error.
27275 Use char because int might match the return type of a GCC
27276 builtin and then its argument prototype would still apply. */
27280 char XtSetEventDispatcher ();
27284 return XtSetEventDispatcher ();
27289 if ac_fn_c_try_link "$LINENO"; then :
27290 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27292 ac_cv_lib_Xt_XtSetEventDispatcher=no
27294 rm -f core conftest.err conftest.$ac_objext \
27295 conftest$ac_exeext conftest.$ac_ext
27296 LIBS=$ac_check_lib_save_LIBS
27298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
27299 $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
27300 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
27304 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27306 if test "$no_x" != 'yes'; then
27311 if test "$have_x" = 'yes'; then
27313 X11_DELEGATE_FALSE='#'
27315 X11_DELEGATE_TRUE='#'
27316 X11_DELEGATE_FALSE=
27327 # Check whether --with-zlib was given.
27328 if test "${with_zlib+set}" = set; then :
27329 withval=$with_zlib; with_zlib=$withval
27335 if test "$with_zlib" != 'yes'; then
27336 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27341 if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
27342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27343 $as_echo "-------------------------------------------------------------" >&6; }
27344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
27345 $as_echo_n "checking for ZLIB... " >&6; }
27346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27351 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
27352 if test "x$ac_cv_header_zconf_h" = xyes; then :
27353 passed=`expr $passed + 1`
27355 failed=`expr $failed + 1`
27359 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
27360 if test "x$ac_cv_header_zlib_h" = xyes; then :
27361 passed=`expr $passed + 1`
27363 failed=`expr $failed + 1`
27367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
27368 $as_echo_n "checking for compress in -lz... " >&6; }
27369 if ${ac_cv_lib_z_compress+:} false; then :
27370 $as_echo_n "(cached) " >&6
27372 ac_check_lib_save_LIBS=$LIBS
27374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27375 /* end confdefs.h. */
27377 /* Override any GCC internal prototype to avoid an error.
27378 Use char because int might match the return type of a GCC
27379 builtin and then its argument prototype would still apply. */
27387 return compress ();
27392 if ac_fn_c_try_link "$LINENO"; then :
27393 ac_cv_lib_z_compress=yes
27395 ac_cv_lib_z_compress=no
27397 rm -f core conftest.err conftest.$ac_objext \
27398 conftest$ac_exeext conftest.$ac_ext
27399 LIBS=$ac_check_lib_save_LIBS
27401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
27402 $as_echo "$ac_cv_lib_z_compress" >&6; }
27403 if test "x$ac_cv_lib_z_compress" = xyes; then :
27404 passed=`expr $passed + 1`
27406 failed=`expr $failed + 1`
27409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
27410 $as_echo_n "checking for uncompress in -lz... " >&6; }
27411 if ${ac_cv_lib_z_uncompress+:} false; then :
27412 $as_echo_n "(cached) " >&6
27414 ac_check_lib_save_LIBS=$LIBS
27416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27417 /* end confdefs.h. */
27419 /* Override any GCC internal prototype to avoid an error.
27420 Use char because int might match the return type of a GCC
27421 builtin and then its argument prototype would still apply. */
27425 char uncompress ();
27429 return uncompress ();
27434 if ac_fn_c_try_link "$LINENO"; then :
27435 ac_cv_lib_z_uncompress=yes
27437 ac_cv_lib_z_uncompress=no
27439 rm -f core conftest.err conftest.$ac_objext \
27440 conftest$ac_exeext conftest.$ac_ext
27441 LIBS=$ac_check_lib_save_LIBS
27443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
27444 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
27445 if test "x$ac_cv_lib_z_uncompress" = xyes; then :
27446 passed=`expr $passed + 1`
27448 failed=`expr $failed + 1`
27451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
27452 $as_echo_n "checking for deflate in -lz... " >&6; }
27453 if ${ac_cv_lib_z_deflate+:} false; then :
27454 $as_echo_n "(cached) " >&6
27456 ac_check_lib_save_LIBS=$LIBS
27458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27459 /* end confdefs.h. */
27461 /* Override any GCC internal prototype to avoid an error.
27462 Use char because int might match the return type of a GCC
27463 builtin and then its argument prototype would still apply. */
27476 if ac_fn_c_try_link "$LINENO"; then :
27477 ac_cv_lib_z_deflate=yes
27479 ac_cv_lib_z_deflate=no
27481 rm -f core conftest.err conftest.$ac_objext \
27482 conftest$ac_exeext conftest.$ac_ext
27483 LIBS=$ac_check_lib_save_LIBS
27485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
27486 $as_echo "$ac_cv_lib_z_deflate" >&6; }
27487 if test "x$ac_cv_lib_z_deflate" = xyes; then :
27488 passed=`expr $passed + 1`
27490 failed=`expr $failed + 1`
27493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
27494 $as_echo_n "checking for inflate in -lz... " >&6; }
27495 if ${ac_cv_lib_z_inflate+:} false; then :
27496 $as_echo_n "(cached) " >&6
27498 ac_check_lib_save_LIBS=$LIBS
27500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27501 /* end confdefs.h. */
27503 /* Override any GCC internal prototype to avoid an error.
27504 Use char because int might match the return type of a GCC
27505 builtin and then its argument prototype would still apply. */
27518 if ac_fn_c_try_link "$LINENO"; then :
27519 ac_cv_lib_z_inflate=yes
27521 ac_cv_lib_z_inflate=no
27523 rm -f core conftest.err conftest.$ac_objext \
27524 conftest$ac_exeext conftest.$ac_ext
27525 LIBS=$ac_check_lib_save_LIBS
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
27528 $as_echo "$ac_cv_lib_z_inflate" >&6; }
27529 if test "x$ac_cv_lib_z_inflate" = xyes; then :
27530 passed=`expr $passed + 1`
27532 failed=`expr $failed + 1`
27535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
27536 $as_echo_n "checking for gzseek in -lz... " >&6; }
27537 if ${ac_cv_lib_z_gzseek+:} false; then :
27538 $as_echo_n "(cached) " >&6
27540 ac_check_lib_save_LIBS=$LIBS
27542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27543 /* end confdefs.h. */
27545 /* Override any GCC internal prototype to avoid an error.
27546 Use char because int might match the return type of a GCC
27547 builtin and then its argument prototype would still apply. */
27560 if ac_fn_c_try_link "$LINENO"; then :
27561 ac_cv_lib_z_gzseek=yes
27563 ac_cv_lib_z_gzseek=no
27565 rm -f core conftest.err conftest.$ac_objext \
27566 conftest$ac_exeext conftest.$ac_ext
27567 LIBS=$ac_check_lib_save_LIBS
27569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
27570 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
27571 if test "x$ac_cv_lib_z_gzseek" = xyes; then :
27572 passed=`expr $passed + 1`
27574 failed=`expr $failed + 1`
27577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
27578 $as_echo_n "checking for gztell in -lz... " >&6; }
27579 if ${ac_cv_lib_z_gztell+:} false; then :
27580 $as_echo_n "(cached) " >&6
27582 ac_check_lib_save_LIBS=$LIBS
27584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27585 /* end confdefs.h. */
27587 /* Override any GCC internal prototype to avoid an error.
27588 Use char because int might match the return type of a GCC
27589 builtin and then its argument prototype would still apply. */
27602 if ac_fn_c_try_link "$LINENO"; then :
27603 ac_cv_lib_z_gztell=yes
27605 ac_cv_lib_z_gztell=no
27607 rm -f core conftest.err conftest.$ac_objext \
27608 conftest$ac_exeext conftest.$ac_ext
27609 LIBS=$ac_check_lib_save_LIBS
27611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
27612 $as_echo "$ac_cv_lib_z_gztell" >&6; }
27613 if test "x$ac_cv_lib_z_gztell" = xyes; then :
27614 passed=`expr $passed + 1`
27616 failed=`expr $failed + 1`
27619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
27620 $as_echo_n "checking if ZLIB package is complete... " >&6; }
27621 if test $passed -gt 0; then
27622 if test $failed -gt 0; then
27623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27624 $as_echo "no -- some components failed test" >&6; }
27625 have_zlib='no (failed tests)'
27628 LIBS="$ZLIB_LIBS $LIBS"
27630 $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
27632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27633 $as_echo "yes" >&6; }
27637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27638 $as_echo "no" >&6; }
27641 if test "$have_zlib" = 'yes'; then
27642 ZLIB_DELEGATE_TRUE=
27643 ZLIB_DELEGATE_FALSE='#'
27645 ZLIB_DELEGATE_TRUE='#'
27646 ZLIB_DELEGATE_FALSE=
27652 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27655 if test "$enable_profiling" = 'yes'; then
27656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
27657 $as_echo_n "checking for dlopen in -ldl... " >&6; }
27658 if ${ac_cv_lib_dl_dlopen+:} false; then :
27659 $as_echo_n "(cached) " >&6
27661 ac_check_lib_save_LIBS=$LIBS
27663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27664 /* end confdefs.h. */
27666 /* Override any GCC internal prototype to avoid an error.
27667 Use char because int might match the return type of a GCC
27668 builtin and then its argument prototype would still apply. */
27681 if ac_fn_c_try_link "$LINENO"; then :
27682 ac_cv_lib_dl_dlopen=yes
27684 ac_cv_lib_dl_dlopen=no
27686 rm -f core conftest.err conftest.$ac_objext \
27687 conftest$ac_exeext conftest.$ac_ext
27688 LIBS=$ac_check_lib_save_LIBS
27690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
27691 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
27692 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
27696 LIBS="$LIB_DL $LIBS"
27702 # Check for Autotrace delegate library.
27705 # Check whether --with-autotrace was given.
27706 if test "${with_autotrace+set}" = set; then :
27707 withval=$with_autotrace; with_autotrace=$withval
27709 with_autotrace='no'
27713 if test "$with_autotrace" != 'yes'; then
27714 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27717 have_autotrace='no'
27718 AUTOTRACE_CFLAGS=""
27721 if test "x$with_autotrace" = "xyes"; then
27722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27723 $as_echo "-------------------------------------------------------------" >&6; }
27726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27727 $as_echo_n "checking for AUTOTRACE... " >&6; }
27729 if test -n "$AUTOTRACE_CFLAGS"; then
27730 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27731 elif test -n "$PKG_CONFIG"; then
27732 if test -n "$PKG_CONFIG" && \
27733 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27734 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27737 test $ac_status = 0; }; then
27738 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27745 if test -n "$AUTOTRACE_LIBS"; then
27746 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27747 elif test -n "$PKG_CONFIG"; then
27748 if test -n "$PKG_CONFIG" && \
27749 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27750 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27753 test $ac_status = 0; }; then
27754 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27764 if test $pkg_failed = yes; then
27766 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27767 _pkg_short_errors_supported=yes
27769 _pkg_short_errors_supported=no
27771 if test $_pkg_short_errors_supported = yes; then
27772 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27774 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27776 # Put the nasty error message in config.log where it belongs
27777 echo "$AUTOTRACE_PKG_ERRORS" >&5
27779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27780 $as_echo "no" >&6; }
27782 elif test $pkg_failed = untried; then
27785 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27786 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27788 $as_echo "yes" >&6; }
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27795 if test "$have_autotrace" = 'yes'; then
27798 $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
27800 if test "$with_modules" = 'no'; then
27801 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27805 if test "$have_autotrace" = 'yes'; then
27806 AUTOTRACE_DELEGATE_TRUE=
27807 AUTOTRACE_DELEGATE_FALSE='#'
27809 AUTOTRACE_DELEGATE_TRUE='#'
27810 AUTOTRACE_DELEGATE_FALSE=
27818 # Check for Display Postscript delegate library.
27821 # Check whether --with-dps was given.
27822 if test "${with_dps+set}" = set; then :
27823 withval=$with_dps; with_dps=$withval
27829 if test "$with_dps" != 'yes'; then
27830 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27835 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
27836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27837 $as_echo "-------------------------------------------------------------" >&6; }
27838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
27839 $as_echo_n "checking for DPS... " >&6; }
27840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27844 PERSIST_CPPFLAGS="$CPPFLAGS"
27845 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
27846 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
27847 if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
27848 passed=`expr $passed + 1`
27850 failed=`expr $failed + 1`
27855 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
27856 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
27857 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
27858 # ImageMagick itself doesn't use -lXt.
27861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
27862 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
27863 if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
27864 $as_echo_n "(cached) " >&6
27866 ac_check_lib_save_LIBS=$LIBS
27868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27869 /* end confdefs.h. */
27871 /* Override any GCC internal prototype to avoid an error.
27872 Use char because int might match the return type of a GCC
27873 builtin and then its argument prototype would still apply. */
27877 char DPSInitialize ();
27881 return DPSInitialize ();
27886 if ac_fn_c_try_link "$LINENO"; then :
27887 ac_cv_lib_dps_DPSInitialize=yes
27889 ac_cv_lib_dps_DPSInitialize=no
27891 rm -f core conftest.err conftest.$ac_objext \
27892 conftest$ac_exeext conftest.$ac_ext
27893 LIBS=$ac_check_lib_save_LIBS
27895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
27896 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
27897 if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
27903 if test "$have_libdps" != 'yes'; then
27904 # Unset cache variable so we can try again.
27905 unset ac_cv_lib_dps_DPSInitialize
27906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
27907 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
27908 if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
27909 $as_echo_n "(cached) " >&6
27911 ac_check_lib_save_LIBS=$LIBS
27912 LIBS="-ldps -lXt $LIBS"
27913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27914 /* end confdefs.h. */
27916 /* Override any GCC internal prototype to avoid an error.
27917 Use char because int might match the return type of a GCC
27918 builtin and then its argument prototype would still apply. */
27922 char DPSInitialize ();
27926 return DPSInitialize ();
27931 if ac_fn_c_try_link "$LINENO"; then :
27932 ac_cv_lib_dps_DPSInitialize=yes
27934 ac_cv_lib_dps_DPSInitialize=no
27936 rm -f core conftest.err conftest.$ac_objext \
27937 conftest$ac_exeext conftest.$ac_ext
27938 LIBS=$ac_check_lib_save_LIBS
27940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
27941 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
27942 if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
27948 if test "$have_libdps" = 'yes'; then
27952 if test "$have_libdps" = 'yes'; then
27953 passed=`expr $passed + 1`
27955 failed=`expr $failed + 1`
27957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
27958 $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
27959 if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
27960 $as_echo_n "(cached) " >&6
27962 ac_check_lib_save_LIBS=$LIBS
27963 LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
27964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27965 /* end confdefs.h. */
27967 /* Override any GCC internal prototype to avoid an error.
27968 Use char because int might match the return type of a GCC
27969 builtin and then its argument prototype would still apply. */
27973 char XDPSPixelsPerPoint ();
27977 return XDPSPixelsPerPoint ();
27982 if ac_fn_c_try_link "$LINENO"; then :
27983 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
27985 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
27987 rm -f core conftest.err conftest.$ac_objext \
27988 conftest$ac_exeext conftest.$ac_ext
27989 LIBS=$ac_check_lib_save_LIBS
27991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
27992 $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
27993 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
27994 passed=`expr $passed + 1`
27996 failed=`expr $failed + 1`
27999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
28000 $as_echo_n "checking if DPS package is complete... " >&6; }
28001 if test $passed -gt 0; then
28002 if test $failed -gt 0; then
28003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28004 $as_echo "no -- some components failed test" >&6; }
28005 have_dps='no (failed tests)'
28006 CPPFLAGS="$PERSIST_CPPFLAGS"
28008 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28009 LIBS="$DPS_LIBS $LIBS"
28011 $as_echo "#define DPS_DELEGATE 1" >>confdefs.h
28013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28014 $as_echo "yes" >&6; }
28018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28019 $as_echo "no" >&6; }
28020 CPPFLAGS=$PERSIST_CPPFLAGS
28023 if test "$have_dps" = 'yes'; then
28025 DPS_DELEGATE_FALSE='#'
28027 DPS_DELEGATE_TRUE='#'
28028 DPS_DELEGATE_FALSE=
28035 # Check for DJVU delegate library.
28038 # Check whether --with-djvu was given.
28039 if test "${with_djvu+set}" = set; then :
28040 withval=$with_djvu; with_djvu=$withval
28046 if test "$with_djvu" != 'yes'; then
28047 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28052 if test "$with_djvu" != 'no'; then
28053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28054 $as_echo "-------------------------------------------------------------" >&6; }
28055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
28056 $as_echo_n "checking for DJVU... " >&6; }
28057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28061 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
28062 if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
28063 passed=`expr $passed + 1`
28065 failed=`expr $failed + 1`
28069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
28070 $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
28071 if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
28072 $as_echo_n "(cached) " >&6
28074 ac_check_lib_save_LIBS=$LIBS
28075 LIBS="-ldjvulibre $LIBS"
28076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28077 /* end confdefs.h. */
28079 /* Override any GCC internal prototype to avoid an error.
28080 Use char because int might match the return type of a GCC
28081 builtin and then its argument prototype would still apply. */
28085 char ddjvu_context_create ();
28089 return ddjvu_context_create ();
28094 if ac_fn_c_try_link "$LINENO"; then :
28095 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28097 ac_cv_lib_djvulibre_ddjvu_context_create=no
28099 rm -f core conftest.err conftest.$ac_objext \
28100 conftest$ac_exeext conftest.$ac_ext
28101 LIBS=$ac_check_lib_save_LIBS
28103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
28104 $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
28105 if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
28106 passed=`expr $passed + 1`
28108 failed=`expr $failed + 1`
28111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
28112 $as_echo_n "checking if DJVU package is complete... " >&6; }
28113 if test $passed -gt 0; then
28114 if test $failed -gt 0; then
28115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28116 $as_echo "no -- some components failed test" >&6; }
28117 have_djvu='no (failed tests)'
28119 DJVU_LIBS='-ldjvulibre'
28120 LIBS="$DJVU_LIBS $LIBS"
28122 $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
28124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28125 $as_echo "yes" >&6; }
28129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28130 $as_echo "no" >&6; }
28133 if test "$have_djvu" = 'yes'; then
28134 DJVU_DELEGATE_TRUE=
28135 DJVU_DELEGATE_FALSE='#'
28137 DJVU_DELEGATE_TRUE='#'
28138 DJVU_DELEGATE_FALSE=
28145 # Set DejaVu font directory.
28148 # Check whether --with-dejavu-font-dir was given.
28149 if test "${with_dejavu_font_dir+set}" = set; then :
28150 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28152 with_dejavu_font_dir='default'
28156 if test "$with_dejavu_font_dir" != 'default'; then
28157 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28162 # Check for FFTW delegate library.
28165 # Check whether --with-fftw was given.
28166 if test "${with_fftw+set}" = set; then :
28167 withval=$with_fftw; with_fftw=$withval
28173 if test "$with_fftw" != 'yes'; then
28174 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28179 if test "$with_fftw" != 'no'; then
28180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28181 $as_echo "-------------------------------------------------------------" >&6; }
28182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28183 $as_echo_n "checking for FFTW... " >&6; }
28184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28188 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28189 if test "x$ac_cv_header_fftw3_h" = xyes; then :
28190 passed=`expr $passed + 1`
28192 failed=`expr $failed + 1`
28196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28197 $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28198 if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28199 $as_echo_n "(cached) " >&6
28201 ac_check_lib_save_LIBS=$LIBS
28202 LIBS="-lfftw3 $LIBS"
28203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28204 /* end confdefs.h. */
28206 /* Override any GCC internal prototype to avoid an error.
28207 Use char because int might match the return type of a GCC
28208 builtin and then its argument prototype would still apply. */
28212 char fftw_execute ();
28216 return fftw_execute ();
28221 if ac_fn_c_try_link "$LINENO"; then :
28222 ac_cv_lib_fftw3_fftw_execute=yes
28224 ac_cv_lib_fftw3_fftw_execute=no
28226 rm -f core conftest.err conftest.$ac_objext \
28227 conftest$ac_exeext conftest.$ac_ext
28228 LIBS=$ac_check_lib_save_LIBS
28230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28231 $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28232 if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28233 passed=`expr $passed + 1`
28235 failed=`expr $failed + 1`
28238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28239 $as_echo_n "checking if FFTW package is complete... " >&6; }
28240 if test $passed -gt 0; then
28241 if test $failed -gt 0; then
28242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28243 $as_echo "no -- some components failed test" >&6; }
28244 have_fftw='no (failed tests)'
28246 FFTW_LIBS='-lfftw3'
28247 LIBS="$FFTW_LIBS $LIBS"
28249 $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
28251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28252 $as_echo "yes" >&6; }
28256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28257 $as_echo "no" >&6; }
28260 if test "$have_fftw" = 'yes'; then
28261 FFTW_DELEGATE_TRUE=
28262 FFTW_DELEGATE_FALSE='#'
28264 FFTW_DELEGATE_TRUE='#'
28265 FFTW_DELEGATE_FALSE=
28272 # Check for FlashPIX delegate library.
28275 # Check whether --with-fpx was given.
28276 if test "${with_fpx+set}" = set; then :
28277 withval=$with_fpx; with_fpx=$withval
28283 if test "$with_fpx" != 'yes'; then
28284 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28289 if test "$with_fpx" != 'no'; then
28290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28291 $as_echo "-------------------------------------------------------------" >&6; }
28292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
28293 $as_echo_n "checking for FlashPIX... " >&6; }
28294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28299 ac_cpp='$CXXCPP $CPPFLAGS'
28300 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28301 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28302 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28305 ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
28306 if test "x$ac_cv_header_fpxlib_h" = xyes; then :
28307 passed=`expr $passed + 1`
28309 failed=`expr $failed + 1`
28313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
28314 $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
28315 if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
28316 $as_echo_n "(cached) " >&6
28318 ac_check_lib_save_LIBS=$LIBS
28320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28321 /* end confdefs.h. */
28323 /* Override any GCC internal prototype to avoid an error.
28324 Use char because int might match the return type of a GCC
28325 builtin and then its argument prototype would still apply. */
28329 char FPX_OpenImageByFilename ();
28333 return FPX_OpenImageByFilename ();
28338 if ac_fn_cxx_try_link "$LINENO"; then :
28339 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28341 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
28343 rm -f core conftest.err conftest.$ac_objext \
28344 conftest$ac_exeext conftest.$ac_ext
28345 LIBS=$ac_check_lib_save_LIBS
28347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
28348 $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
28349 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
28350 passed=`expr $passed + 1`
28352 failed=`expr $failed + 1`
28356 ac_cpp='$CPP $CPPFLAGS'
28357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
28362 $as_echo_n "checking if FlashPIX package is complete... " >&6; }
28363 if test $passed -gt 0; then
28364 if test $failed -gt 0; then
28365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28366 $as_echo "no -- some components failed test" >&6; }
28367 have_fpx='no (failed tests)'
28371 $as_echo "#define FPX_DELEGATE 1" >>confdefs.h
28373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28374 $as_echo "yes" >&6; }
28379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28380 $as_echo "no" >&6; }
28383 if test "$have_fpx" = 'yes'; then
28385 FPX_DELEGATE_FALSE='#'
28387 FPX_DELEGATE_TRUE='#'
28388 FPX_DELEGATE_FALSE=
28395 # Check for fontconfig delegate library.
28398 # Check whether --with-fontconfig was given.
28399 if test "${with_fontconfig+set}" = set; then :
28400 withval=$with_fontconfig; with_fontconfig=$withval
28402 with_fontconfig=$have_x
28406 if test "$with_fontconfig" != 'yes'; then
28407 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28410 have_fontconfig='no'
28411 FONTCONFIG_CFLAGS=""
28414 if test "x$with_fontconfig" = "xyes"; then
28415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28416 $as_echo "-------------------------------------------------------------" >&6; }
28419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28420 $as_echo_n "checking for FONTCONFIG... " >&6; }
28422 if test -n "$FONTCONFIG_CFLAGS"; then
28423 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28424 elif test -n "$PKG_CONFIG"; then
28425 if test -n "$PKG_CONFIG" && \
28426 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28427 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28430 test $ac_status = 0; }; then
28431 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28438 if test -n "$FONTCONFIG_LIBS"; then
28439 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28440 elif test -n "$PKG_CONFIG"; then
28441 if test -n "$PKG_CONFIG" && \
28442 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28443 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28446 test $ac_status = 0; }; then
28447 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28457 if test $pkg_failed = yes; then
28459 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28460 _pkg_short_errors_supported=yes
28462 _pkg_short_errors_supported=no
28464 if test $_pkg_short_errors_supported = yes; then
28465 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28467 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28469 # Put the nasty error message in config.log where it belongs
28470 echo "$FONTCONFIG_PKG_ERRORS" >&5
28472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28473 $as_echo "no" >&6; }
28475 elif test $pkg_failed = untried; then
28478 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28479 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28481 $as_echo "yes" >&6; }
28482 have_fontconfig=yes
28484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28488 if test "$have_fontconfig" = 'yes'; then
28490 $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
28492 if test "$with_modules" = 'no'; then
28493 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
28497 if test "$have_fontconfig" = 'yes'; then
28498 FONTCONFIG_DELEGATE_TRUE=
28499 FONTCONFIG_DELEGATE_FALSE='#'
28501 FONTCONFIG_DELEGATE_TRUE='#'
28502 FONTCONFIG_DELEGATE_FALSE=
28510 # Check for freetype delegate library.
28513 # Check whether --with-freetype was given.
28514 if test "${with_freetype+set}" = set; then :
28515 withval=$with_freetype; with_freetype=$withval
28517 with_freetype='yes'
28522 if test "$with_freetype" != 'yes'; then
28523 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28528 if test "$with_freetype" != 'no'; then
28529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28530 $as_echo "-------------------------------------------------------------" >&6; }
28531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
28532 $as_echo_n "checking for FreeType 2.0... " >&6; }
28533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28537 PERSIST_LIBS="$LIBS"
28538 PERSIST_CPPFLAGS="$CPPFLAGS"
28539 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
28543 for ac_prog in freetype-config
28545 # Extract the first word of "$ac_prog", so it can be a program name with args.
28546 set dummy $ac_prog; ac_word=$2
28547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28548 $as_echo_n "checking for $ac_word... " >&6; }
28549 if ${ac_cv_prog_freetype_config+:} false; then :
28550 $as_echo_n "(cached) " >&6
28552 if test -n "$freetype_config"; then
28553 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
28555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28556 for as_dir in $PATH
28559 test -z "$as_dir" && as_dir=.
28560 for ac_exec_ext in '' $ac_executable_extensions; do
28561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28562 ac_cv_prog_freetype_config="$ac_prog"
28563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28572 freetype_config=$ac_cv_prog_freetype_config
28573 if test -n "$freetype_config"; then
28574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28575 $as_echo "$freetype_config" >&6; }
28577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28578 $as_echo "no" >&6; }
28582 test -n "$freetype_config" && break
28584 if test -n "$freetype_config"; then
28585 freetype_cflags=`$freetype_config --cflags`
28586 freetype_libs=`$freetype_config --libs`
28587 LIBS="$LIBS $freetype_libs"
28588 CPPFLAGS="$freetype_cflags $CPPFLAGS"
28592 if test "$FREETYPE_LIBS" = ''; then
28593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
28594 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28595 if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28596 $as_echo_n "(cached) " >&6
28598 ac_check_lib_save_LIBS=$LIBS
28599 LIBS="-lfreetype $LIBS"
28600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28601 /* end confdefs.h. */
28603 /* Override any GCC internal prototype to avoid an error.
28604 Use char because int might match the return type of a GCC
28605 builtin and then its argument prototype would still apply. */
28609 char FT_Init_FreeType ();
28613 return FT_Init_FreeType ();
28618 if ac_fn_c_try_link "$LINENO"; then :
28619 ac_cv_lib_freetype_FT_Init_FreeType=yes
28621 ac_cv_lib_freetype_FT_Init_FreeType=no
28623 rm -f core conftest.err conftest.$ac_objext \
28624 conftest$ac_exeext conftest.$ac_ext
28625 LIBS=$ac_check_lib_save_LIBS
28627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28628 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28629 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28630 FREETYPE_LIBS='-lfreetype'
28633 if test "$FREETYPE_LIBS" != ''; then
28634 passed=`expr $passed + 1`
28636 failed=`expr $failed + 1`
28637 LIBS="$PERSIST_LIBS"
28641 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
28642 if test "x$ac_cv_header_ft2build_h" = xyes; then :
28643 FT2BUILD_H='#include <ft2build.h>'
28649 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28651 if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
28652 have_freetype_h='yes'
28654 have_freetype_h='no'
28658 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
28659 passed=`expr $passed + 1`
28661 failed=`expr $failed + 1`
28662 CPPFLAGS="$PERSIST_CPPFLAGS"
28665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
28666 $as_echo_n "checking if FreeType package is complete... " >&6; }
28667 if test $passed -gt 0; then
28668 if test $failed -gt 0; then
28670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28671 $as_echo "no -- some components failed test" >&6; }
28672 have_freetype='no (failed tests)'
28674 LIBS="$FREETYPE_LIBS $LIBS"
28676 $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
28678 if test "$ac_cv_header_ft2build_h" = 'yes'; then
28680 $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
28683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28684 $as_echo "yes" >&6; }
28685 have_freetype='yes'
28688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28689 $as_echo "no" >&6; }
28692 if test "$have_freetype" = 'yes'; then
28693 FREETYPE_DELEGATE_TRUE=
28694 FREETYPE_DELEGATE_FALSE='#'
28696 FREETYPE_DELEGATE_TRUE='#'
28697 FREETYPE_DELEGATE_FALSE=
28705 # Check for Ghostscript library or framework.
28707 # Test for iapi.h & test for gsapi_new_instance in -lgs
28708 # or -framework Ghostscript
28711 # Check whether --with-gslib was given.
28712 if test "${with_gslib+set}" = set; then :
28713 withval=$with_gslib; with_gslib=$withval
28719 gslib_framework='no'
28720 if test "$with_gslib" != 'yes'; then
28721 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28726 if test "$with_gslib" != 'no'; then
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28728 $as_echo "-------------------------------------------------------------" >&6; }
28729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
28730 $as_echo_n "checking for Ghostscript... " >&6; }
28731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28736 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
28737 if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
28738 passed=`expr $passed + 1`
28740 failed=`expr $failed + 1`
28744 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
28745 if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
28746 passed=`expr $passed + 1`
28748 failed=`expr $failed + 1`
28752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28753 $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
28754 if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
28755 $as_echo_n "(cached) " >&6
28757 ac_check_framework_save_LIBS=$LIBS
28758 LIBS="-framework Ghostscript $LIBS"
28759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28760 /* end confdefs.h. */
28762 /* Override any GCC internal prototype to avoid an error.
28763 Use char because int might match the return type of a GCC
28764 builtin and then its argument prototype would still apply. */
28768 char gsapi_new_instance ();
28772 return gsapi_new_instance ();
28777 if ac_fn_c_try_link "$LINENO"; then :
28778 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28780 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28782 rm -f core conftest.err conftest.$ac_objext \
28783 conftest$ac_exeext conftest.$ac_ext
28784 LIBS=$ac_check_framework_save_LIBS
28786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28787 $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28788 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28789 framework=`expr $framework + 1`
28791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
28792 $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
28793 if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
28794 $as_echo_n "(cached) " >&6
28796 ac_check_lib_save_LIBS=$LIBS
28798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28799 /* end confdefs.h. */
28801 /* Override any GCC internal prototype to avoid an error.
28802 Use char because int might match the return type of a GCC
28803 builtin and then its argument prototype would still apply. */
28807 char gsapi_new_instance ();
28811 return gsapi_new_instance ();
28816 if ac_fn_c_try_link "$LINENO"; then :
28817 ac_cv_lib_gs_gsapi_new_instance=yes
28819 ac_cv_lib_gs_gsapi_new_instance=no
28821 rm -f core conftest.err conftest.$ac_objext \
28822 conftest$ac_exeext conftest.$ac_ext
28823 LIBS=$ac_check_lib_save_LIBS
28825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
28826 $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
28827 if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
28828 passed=`expr $passed + 1`
28830 failed=`expr $failed + 1`
28834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
28835 $as_echo_n "checking if Ghostscript package is complete... " >&6; }
28836 if test $passed -gt 0; then
28837 if test $failed -gt 0; then
28838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28839 $as_echo "no -- some components failed test" >&6; }
28840 have_gslib='no (failed tests)'
28842 if test $framework -gt 0; then
28843 GS_LIBS='-framework Ghostscript'
28844 gslib_framework='yes'
28845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
28846 $as_echo "yes, using framework." >&6; }
28848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
28849 $as_echo "yes, using library." >&6; }
28852 LIBS="$GS_LIBS $LIBS"
28854 $as_echo "#define GS_DELEGATE 1" >>confdefs.h
28859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28860 $as_echo "no" >&6; }
28863 if test "$have_gslib" = 'yes'; then
28865 GS_DELEGATE_FALSE='#'
28867 GS_DELEGATE_TRUE='#'
28873 # Set default font search path
28875 # Check whether --with-fontpath was given.
28876 if test "${with_fontpath+set}" = set; then :
28877 withval=$with_fontpath; with_fontpath=$withval
28883 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
28887 cat >>confdefs.h <<_ACEOF
28888 #define MAGICK_FONT_PATH "$with_fontpath"
28892 if test "$with_fontpath=" != ''; then
28893 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
28896 # Set Ghostscript font directory
28898 # Check whether --with-gs-font-dir was given.
28899 if test "${with_gs_font_dir+set}" = set; then :
28900 withval=$with_gs_font_dir; with_gs_font_dir=$withval
28902 with_gs_font_dir='default'
28906 if test "$with_gs_font_dir" != 'default'; then
28907 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
28912 # Check for GVC delegate library.
28915 # Check whether --with-gvc was given.
28916 if test "${with_gvc+set}" = set; then :
28917 withval=$with_gvc; with_gvc=$withval
28923 if test "$with_gvc" != 'yes'; then
28924 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
28928 if test "x$with_gvc" = "xyes"; then
28929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28930 $as_echo "-------------------------------------------------------------" >&6; }
28933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
28934 $as_echo_n "checking for GVC... " >&6; }
28936 if test -n "$GVC_CFLAGS"; then
28937 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
28938 elif test -n "$PKG_CONFIG"; then
28939 if test -n "$PKG_CONFIG" && \
28940 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28941 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28944 test $ac_status = 0; }; then
28945 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
28952 if test -n "$GVC_LIBS"; then
28953 pkg_cv_GVC_LIBS="$GVC_LIBS"
28954 elif test -n "$PKG_CONFIG"; then
28955 if test -n "$PKG_CONFIG" && \
28956 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28957 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28960 test $ac_status = 0; }; then
28961 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
28971 if test $pkg_failed = yes; then
28973 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28974 _pkg_short_errors_supported=yes
28976 _pkg_short_errors_supported=no
28978 if test $_pkg_short_errors_supported = yes; then
28979 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
28981 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
28983 # Put the nasty error message in config.log where it belongs
28984 echo "$GVC_PKG_ERRORS" >&5
28986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28987 $as_echo "no" >&6; }
28989 elif test $pkg_failed = untried; then
28992 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
28993 GVC_LIBS=$pkg_cv_GVC_LIBS
28994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28995 $as_echo "yes" >&6; }
28998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29002 if test "$have_gvc" = 'yes'; then
29004 $as_echo "#define GVC_DELEGATE 1" >>confdefs.h
29006 if test "$with_modules" = 'no'; then
29007 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29011 if test "$have_gvc" = 'yes'; then
29013 GVC_DELEGATE_FALSE='#'
29015 GVC_DELEGATE_TRUE='#'
29016 GVC_DELEGATE_FALSE=
29024 # Check for JBIG delegate library.
29028 # Check whether --with-jbig was given.
29029 if test "${with_jbig+set}" = set; then :
29030 withval=$with_jbig; with_jbig=$withval
29038 if test "$with_jbig" != 'no'; then
29039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29040 $as_echo "-------------------------------------------------------------" >&6; }
29041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
29042 $as_echo_n "checking for JBIG... " >&6; }
29043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29047 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
29048 if test "x$ac_cv_header_jbig_h" = xyes; then :
29049 passed=`expr $passed + 1`
29051 failed=`expr $failed + 1`
29055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
29056 $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
29057 if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
29058 $as_echo_n "(cached) " >&6
29060 ac_check_lib_save_LIBS=$LIBS
29061 LIBS="-ljbig $LIBS"
29062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29063 /* end confdefs.h. */
29065 /* Override any GCC internal prototype to avoid an error.
29066 Use char because int might match the return type of a GCC
29067 builtin and then its argument prototype would still apply. */
29071 char jbg_dec_init ();
29075 return jbg_dec_init ();
29080 if ac_fn_c_try_link "$LINENO"; then :
29081 ac_cv_lib_jbig_jbg_dec_init=yes
29083 ac_cv_lib_jbig_jbg_dec_init=no
29085 rm -f core conftest.err conftest.$ac_objext \
29086 conftest$ac_exeext conftest.$ac_ext
29087 LIBS=$ac_check_lib_save_LIBS
29089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
29090 $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
29091 if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
29092 passed=`expr $passed + 1`
29094 failed=`expr $failed + 1`
29097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
29098 $as_echo_n "checking if JBIG package is complete... " >&6; }
29099 if test $passed -gt 0; then
29100 if test $failed -gt 0; then
29101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29102 $as_echo "no -- some components failed test" >&6; }
29103 have_jbig='no (failed tests)'
29106 LIBS="$JBIG_LIBS $LIBS"
29108 $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
29110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29111 $as_echo "yes" >&6; }
29115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29116 $as_echo "no" >&6; }
29119 if test "$have_jbig" = 'yes'; then
29120 JBIG_DELEGATE_TRUE=
29121 JBIG_DELEGATE_FALSE='#'
29123 JBIG_DELEGATE_TRUE='#'
29124 JBIG_DELEGATE_FALSE=
29131 # Check for JPEG delegate library.
29134 # Check whether --with-jpeg was given.
29135 if test "${with_jpeg+set}" = set; then :
29136 withval=$with_jpeg; with_jpeg=$withval
29142 if test "$with_jpeg" != 'yes'; then
29143 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29148 if test "$with_jpeg" != 'no'; then
29149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29150 $as_echo "-------------------------------------------------------------" >&6; }
29151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
29152 $as_echo_n "checking for JPEG... " >&6; }
29153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29157 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
29158 if test "x$ac_cv_header_jconfig_h" = xyes; then :
29159 passed=`expr $passed + 1`
29161 failed=`expr $failed + 1`
29165 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
29166 if test "x$ac_cv_header_jerror_h" = xyes; then :
29167 passed=`expr $passed + 1`
29169 failed=`expr $failed + 1`
29173 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
29174 if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
29175 passed=`expr $passed + 1`
29177 failed=`expr $failed + 1`
29181 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
29182 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
29183 passed=`expr $passed + 1`
29185 failed=`expr $failed + 1`
29189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
29190 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
29191 if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
29192 $as_echo_n "(cached) " >&6
29194 ac_check_lib_save_LIBS=$LIBS
29195 LIBS="-ljpeg $LIBS"
29196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29197 /* end confdefs.h. */
29199 /* Override any GCC internal prototype to avoid an error.
29200 Use char because int might match the return type of a GCC
29201 builtin and then its argument prototype would still apply. */
29205 char jpeg_read_header ();
29209 return jpeg_read_header ();
29214 if ac_fn_c_try_link "$LINENO"; then :
29215 ac_cv_lib_jpeg_jpeg_read_header=yes
29217 ac_cv_lib_jpeg_jpeg_read_header=no
29219 rm -f core conftest.err conftest.$ac_objext \
29220 conftest$ac_exeext conftest.$ac_ext
29221 LIBS=$ac_check_lib_save_LIBS
29223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
29224 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
29225 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
29226 passed=`expr $passed + 1`
29228 failed=`expr $failed + 1`
29232 # Test for compatible JPEG library
29233 if test "$ac_cv_jpeg_version_ok" != 'yes'; then
29234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
29235 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
29236 if ${ac_cv_jpeg_version_ok+:} false; then :
29237 $as_echo_n "(cached) " >&6
29239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29240 /* end confdefs.h. */
29242 #include <stdlib.h>
29243 #include <jpeglib.h>
29249 #if JPEG_LIB_VERSION < 62
29250 #error IJG JPEG library must be version 6b or newer!
29258 if ac_fn_c_try_compile "$LINENO"; then :
29259 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29261 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
29263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
29266 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
29268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
29269 $as_echo_n "checking if JPEG package is complete... " >&6; }
29270 if test $passed -gt 0; then
29271 if test $failed -gt 0; then
29272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29273 $as_echo "no -- some components failed test" >&6; }
29274 have_jpeg='no (failed tests)'
29277 LIBS="$JPEG_LIBS $LIBS"
29279 $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
29281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29282 $as_echo "yes" >&6; }
29286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29287 $as_echo "no" >&6; }
29290 if test "$have_jpeg" = 'yes'; then
29291 JPEG_DELEGATE_TRUE=
29292 JPEG_DELEGATE_FALSE='#'
29294 JPEG_DELEGATE_TRUE='#'
29295 JPEG_DELEGATE_FALSE=
29302 # Check for JPEG Version 2 delegate library.
29305 # Check whether --with-jp2 was given.
29306 if test "${with_jp2+set}" = set; then :
29307 withval=$with_jp2; with_jp2=$withval
29313 if test "$with_jp2" != 'yes'; then
29314 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29319 if test "$with_jp2" != 'no'; then
29320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29321 $as_echo "-------------------------------------------------------------" >&6; }
29322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
29323 $as_echo_n "checking for JPEG Version 2... " >&6; }
29324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29328 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
29329 if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
29330 passed=`expr $passed + 1`
29332 failed=`expr $failed + 1`
29336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
29337 $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
29338 if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
29339 $as_echo_n "(cached) " >&6
29341 ac_check_lib_save_LIBS=$LIBS
29342 LIBS="-ljasper $LIBS"
29343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29344 /* end confdefs.h. */
29346 /* Override any GCC internal prototype to avoid an error.
29347 Use char because int might match the return type of a GCC
29348 builtin and then its argument prototype would still apply. */
29352 char jas_stream_fopen ();
29356 return jas_stream_fopen ();
29361 if ac_fn_c_try_link "$LINENO"; then :
29362 ac_cv_lib_jasper_jas_stream_fopen=yes
29364 ac_cv_lib_jasper_jas_stream_fopen=no
29366 rm -f core conftest.err conftest.$ac_objext \
29367 conftest$ac_exeext conftest.$ac_ext
29368 LIBS=$ac_check_lib_save_LIBS
29370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
29371 $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
29372 if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
29373 passed=`expr $passed + 1`
29375 failed=`expr $failed + 1`
29378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
29379 $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29380 if test $passed -gt 0; then
29381 if test $failed -gt 0; then
29382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29383 $as_echo "no -- some components failed test" >&6; }
29384 have_jp2='no (failed tests)'
29386 JP2_LIBS='-ljasper'
29387 LIBS="$JP2_LIBS $LIBS"
29389 $as_echo "#define JP2_DELEGATE 1" >>confdefs.h
29391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29392 $as_echo "yes" >&6; }
29396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29397 $as_echo "no" >&6; }
29400 if test "$have_jp2" = 'yes'; then
29402 JP2_DELEGATE_FALSE='#'
29404 JP2_DELEGATE_TRUE='#'
29405 JP2_DELEGATE_FALSE=
29412 # Check for LCMS delegate library.
29416 # Check whether --with-lcms was given.
29417 if test "${with_lcms+set}" = set; then :
29418 withval=$with_lcms; with_lcms=$withval
29423 if test "$with_lcms" != 'yes' ; then
29424 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29429 # Check whether --with-lcms2 was given.
29430 if test "${with_lcms2+set}" = set; then :
29431 withval=$with_lcms2; with_lcms2=$withval
29436 if test "$with_lcms2" != 'yes' ; then
29437 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29442 if test "$with_lcms2" != 'no'; then
29443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29444 $as_echo "-------------------------------------------------------------" >&6; }
29445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29446 $as_echo_n "checking for LCMS v2... " >&6; }
29447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29451 have_lcms_header='no'
29453 # Check for <lcms2.h>
29454 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
29455 if test "x$ac_cv_header_lcms2_h" = xyes; then :
29456 have_lcms_header='yes'
29460 if test "$have_lcms_header" = 'yes'; then
29462 $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29464 passed=`expr $passed + 1`
29467 # Check for <lcms2/lcms2.h)
29468 if test "$have_lcms_header" != 'yes'; then
29469 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
29470 if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
29471 have_lcms_header='yes'
29475 if test "$have_lcms_header" = 'yes'; then
29476 passed=`expr $passed + 1`
29478 $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
29483 # Failed to find lcms header?
29484 if test "$have_lcms_header" != 'yes'; then
29485 failed=`expr $failed + 1`
29488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29489 $as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
29490 if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
29491 $as_echo_n "(cached) " >&6
29493 ac_check_lib_save_LIBS=$LIBS
29494 LIBS="-llcms2 $LIBS"
29495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29496 /* end confdefs.h. */
29498 /* Override any GCC internal prototype to avoid an error.
29499 Use char because int might match the return type of a GCC
29500 builtin and then its argument prototype would still apply. */
29504 char cmsSetLogErrorHandler ();
29508 return cmsSetLogErrorHandler ();
29513 if ac_fn_c_try_link "$LINENO"; then :
29514 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
29516 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
29518 rm -f core conftest.err conftest.$ac_objext \
29519 conftest$ac_exeext conftest.$ac_ext
29520 LIBS=$ac_check_lib_save_LIBS
29522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29523 $as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
29524 if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
29525 passed=`expr $passed + 1`
29527 failed=`expr $failed + 1`
29530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29531 $as_echo_n "checking if LCMS v2 package is complete... " >&6; }
29532 if test $passed -gt 0; then
29533 if test $failed -gt 0; then
29534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29535 $as_echo "no -- some components failed test" >&6; }
29536 have_lcms2='no (failed tests)'
29538 LCMS_LIBS='-llcms2'
29539 LIBS="$LCMS_LIBS $LIBS"
29540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29541 $as_echo "yes" >&6; }
29545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29546 $as_echo "no" >&6; }
29551 # Check for LCMS v1 (1.11 or later)
29553 if test $have_lcms2 = 'yes'; then
29558 if test "$with_lcms" != 'no'; then
29559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29560 $as_echo "-------------------------------------------------------------" >&6; }
29561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29562 $as_echo_n "checking for LCMS v1.1X... " >&6; }
29563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29567 have_lcms_header='no'
29569 # Check for <lcms.h>
29570 if test "$have_lcms_header" != 'yes'; then
29571 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
29572 if test "x$ac_cv_header_lcms_h" = xyes; then :
29573 have_lcms_header='yes'
29577 if test "$have_lcms_header" = 'yes'; then
29578 passed=`expr $passed + 1`
29580 $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
29585 # Check for <lcms/lcms.h>
29586 if test "$have_lcms_header" != 'yes'; then
29587 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
29588 if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
29589 have_lcms_header='yes'
29593 if test "$have_lcms_header" = 'yes'; then
29594 passed=`expr $passed + 1`
29596 $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
29601 # Failed to find lcms header?
29602 if test "$have_lcms_header" != 'yes'; then
29603 failed=`expr $failed + 1`
29606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29607 $as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
29608 if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
29609 $as_echo_n "(cached) " >&6
29611 ac_check_lib_save_LIBS=$LIBS
29612 LIBS="-llcms $LIBS"
29613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29614 /* end confdefs.h. */
29616 /* Override any GCC internal prototype to avoid an error.
29617 Use char because int might match the return type of a GCC
29618 builtin and then its argument prototype would still apply. */
29622 char cmsSetErrorHandler ();
29626 return cmsSetErrorHandler ();
29631 if ac_fn_c_try_link "$LINENO"; then :
29632 ac_cv_lib_lcms_cmsSetErrorHandler=yes
29634 ac_cv_lib_lcms_cmsSetErrorHandler=no
29636 rm -f core conftest.err conftest.$ac_objext \
29637 conftest$ac_exeext conftest.$ac_ext
29638 LIBS=$ac_check_lib_save_LIBS
29640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29641 $as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
29642 if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
29643 passed=`expr $passed + 1`
29645 failed=`expr $failed + 1`
29648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
29649 $as_echo_n "checking if LCMS package is complete... " >&6; }
29650 if test $passed -gt 0; then
29651 if test $failed -gt 0; then
29652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29653 $as_echo "no -- some components failed test" >&6; }
29654 have_lcms='no (failed tests)'
29657 LIBS="$LCMS_LIBS $LIBS"
29658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29659 $as_echo "yes" >&6; }
29663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29664 $as_echo "no" >&6; }
29668 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29669 LCMS_DELEGATE_TRUE=
29670 LCMS_DELEGATE_FALSE='#'
29672 LCMS_DELEGATE_TRUE='#'
29673 LCMS_DELEGATE_FALSE=
29676 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29678 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29686 # Check for the LQR (Liquid Rescale) delegate library.
29689 # Check whether --with-lqr was given.
29690 if test "${with_lqr+set}" = set; then :
29691 withval=$with_lqr; with_lqr=$withval
29697 if test "$with_lqr" != 'yes'; then
29698 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29705 if test "x$with_lqr" = "xyes"; then
29706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29707 $as_echo "-------------------------------------------------------------" >&6; }
29710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29711 $as_echo_n "checking for LQR... " >&6; }
29713 if test -n "$LQR_CFLAGS"; then
29714 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29715 elif test -n "$PKG_CONFIG"; then
29716 if test -n "$PKG_CONFIG" && \
29717 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29718 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29721 test $ac_status = 0; }; then
29722 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29729 if test -n "$LQR_LIBS"; then
29730 pkg_cv_LQR_LIBS="$LQR_LIBS"
29731 elif test -n "$PKG_CONFIG"; then
29732 if test -n "$PKG_CONFIG" && \
29733 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29734 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29737 test $ac_status = 0; }; then
29738 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29748 if test $pkg_failed = yes; then
29750 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29751 _pkg_short_errors_supported=yes
29753 _pkg_short_errors_supported=no
29755 if test $_pkg_short_errors_supported = yes; then
29756 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29758 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29760 # Put the nasty error message in config.log where it belongs
29761 echo "$LQR_PKG_ERRORS" >&5
29763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29764 $as_echo "no" >&6; }
29766 elif test $pkg_failed = untried; then
29769 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29770 LQR_LIBS=$pkg_cv_LQR_LIBS
29771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29772 $as_echo "yes" >&6; }
29775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29779 if test "$have_lqr" = 'yes'; then
29781 $as_echo "#define LQR_DELEGATE 1" >>confdefs.h
29783 CFLAGS="$LQR_CFLAGS $CFLAGS"
29786 if test "$have_lqr" = 'yes'; then
29788 LQR_DELEGATE_FALSE='#'
29790 LQR_DELEGATE_TRUE='#'
29791 LQR_DELEGATE_FALSE=
29798 # Disable LZMA (lzma library)
29800 # Check whether --with-lzma was given.
29801 if test "${with_lzma+set}" = set; then :
29802 withval=$with_lzma; with_lzma=$withval
29807 if test "$with_lzma" != 'yes' ; then
29808 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29816 if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
29817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29818 $as_echo "-------------------------------------------------------------" >&6; }
29819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
29820 $as_echo_n "checking for LZMA... " >&6; }
29821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29825 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
29826 if test "x$ac_cv_header_lzma_h" = xyes; then :
29827 passed=`expr $passed + 1`
29829 failed=`expr $failed + 1`
29833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
29834 $as_echo_n "checking for lzma_code in -llzma... " >&6; }
29835 if ${ac_cv_lib_lzma_lzma_code+:} false; then :
29836 $as_echo_n "(cached) " >&6
29838 ac_check_lib_save_LIBS=$LIBS
29839 LIBS="-llzma $LIBS"
29840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29841 /* end confdefs.h. */
29843 /* Override any GCC internal prototype to avoid an error.
29844 Use char because int might match the return type of a GCC
29845 builtin and then its argument prototype would still apply. */
29853 return lzma_code ();
29858 if ac_fn_c_try_link "$LINENO"; then :
29859 ac_cv_lib_lzma_lzma_code=yes
29861 ac_cv_lib_lzma_lzma_code=no
29863 rm -f core conftest.err conftest.$ac_objext \
29864 conftest$ac_exeext conftest.$ac_ext
29865 LIBS=$ac_check_lib_save_LIBS
29867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
29868 $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
29869 if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
29870 passed=`expr $passed + 1`
29872 failed=`expr $failed + 1`
29875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
29876 $as_echo_n "checking if LZMA package is complete... " >&6; }
29877 if test $passed -gt 0; then
29878 if test $failed -gt 0; then
29879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29880 $as_echo "no -- some components failed test" >&6; }
29881 have_lzma='no (failed tests)'
29884 LIBS="$LZMA_LIBS $LIBS"
29886 $as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
29888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29889 $as_echo "yes" >&6; }
29893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29894 $as_echo "no" >&6; }
29897 if test "$have_lzma" = 'yes'; then
29898 LZMA_DELEGATE_TRUE=
29899 LZMA_DELEGATE_FALSE='#'
29901 LZMA_DELEGATE_TRUE='#'
29902 LZMA_DELEGATE_FALSE=
29909 # Check for the OpenEXR delegate library.
29912 # Check whether --with-openexr was given.
29913 if test "${with_openexr+set}" = set; then :
29914 withval=$with_openexr; with_openexr=$withval
29920 if test "$with_openexr" != 'yes'; then
29921 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
29928 if test "x$with_openexr" = "xyes"; then
29929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29930 $as_echo "-------------------------------------------------------------" >&6; }
29933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
29934 $as_echo_n "checking for OPENEXR... " >&6; }
29936 if test -n "$OPENEXR_CFLAGS"; then
29937 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
29938 elif test -n "$PKG_CONFIG"; then
29939 if test -n "$PKG_CONFIG" && \
29940 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29941 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29944 test $ac_status = 0; }; then
29945 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
29952 if test -n "$OPENEXR_LIBS"; then
29953 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
29954 elif test -n "$PKG_CONFIG"; then
29955 if test -n "$PKG_CONFIG" && \
29956 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29957 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29960 test $ac_status = 0; }; then
29961 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
29971 if test $pkg_failed = yes; then
29973 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29974 _pkg_short_errors_supported=yes
29976 _pkg_short_errors_supported=no
29978 if test $_pkg_short_errors_supported = yes; then
29979 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
29981 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
29983 # Put the nasty error message in config.log where it belongs
29984 echo "$OPENEXR_PKG_ERRORS" >&5
29986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29987 $as_echo "no" >&6; }
29989 elif test $pkg_failed = untried; then
29992 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
29993 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
29994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29995 $as_echo "yes" >&6; }
29998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30002 if test "$have_openexr" = 'yes'; then
30004 $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
30006 if test "$with_modules" = 'no'; then
30007 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30011 if test "$have_openexr" = 'yes'; then
30012 OPENEXR_DELEGATE_TRUE=
30013 OPENEXR_DELEGATE_FALSE='#'
30015 OPENEXR_DELEGATE_TRUE='#'
30016 OPENEXR_DELEGATE_FALSE=
30023 if test "$have_zlib" == 'yes'; then
30025 # Check for PNG delegate library.
30028 # Check whether --with-png was given.
30029 if test "${with_png+set}" = set; then :
30030 withval=$with_png; with_png=$withval
30036 if test "$with_png" != 'yes'; then
30037 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30043 if test "$with_png" != 'no'
30045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30046 $as_echo "-------------------------------------------------------------" >&6; }
30047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30048 $as_echo_n "checking for PNG support ... " >&6; }
30049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30053 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30054 if test "x$ac_cv_header_png_h" = xyes; then :
30055 passed=`expr $passed + 1`
30057 failed=`expr $failed + 1`
30062 if test $passed -gt 0; then
30063 for var in 5 4 2 '' ; do
30064 if test "x${var}" == 'x' ; then
30067 pnglib="png1${var}"
30069 if test "$have_png" == 'no' ; then
30071 # Test for compatible LIBPNG library
30074 if test "$with_png" == 'yes' -o "$with_png" == "libpng1${var}" ; then
30075 if test "${pnglib}" != 'png' ; then
30076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30077 $as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30079 /* end confdefs.h. */
30081 #include <stdlib.h>
30088 #if PNG_LIBPNG_VER_MINOR != ${var}
30089 #error LIBPNG library must be version 1${var}!
30098 if ac_fn_c_try_compile "$LINENO"; then :
30099 ac_cv_libpng_ok='yes'
30101 ac_cv_libpng_ok='no'
30103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30104 if test "$ac_cv_libpng_ok" = 'yes' ; then
30105 passed=`expr $passed + 1`
30106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30107 $as_echo "yes" >&6; }
30109 failed=`expr $failed + 1`
30110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30111 $as_echo "no" >&6; }
30114 passed=`expr $passed + 1`
30115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30116 $as_echo "yes" >&6; }
30120 if test $passed -gt 0 -a $failed -le 0
30122 if test "1${var}" = '15' ; then
30123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30124 $as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30125 if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30126 $as_echo_n "(cached) " >&6
30128 ac_check_lib_save_LIBS=$LIBS
30129 LIBS="-lpng15 $LIBS"
30130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30131 /* end confdefs.h. */
30133 /* Override any GCC internal prototype to avoid an error.
30134 Use char because int might match the return type of a GCC
30135 builtin and then its argument prototype would still apply. */
30139 char png_get_io_ptr ();
30143 return png_get_io_ptr ();
30148 if ac_fn_c_try_link "$LINENO"; then :
30149 ac_cv_lib_png15_png_get_io_ptr=yes
30151 ac_cv_lib_png15_png_get_io_ptr=no
30153 rm -f core conftest.err conftest.$ac_objext \
30154 conftest$ac_exeext conftest.$ac_ext
30155 LIBS=$ac_check_lib_save_LIBS
30157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30158 $as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30159 if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30160 passed=`expr $passed + 1`
30162 failed=`expr $failed + 1`
30165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30166 $as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30167 if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30168 $as_echo_n "(cached) " >&6
30170 ac_check_lib_save_LIBS=$LIBS
30171 LIBS="-lpng15 $LIBS"
30172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30173 /* end confdefs.h. */
30175 /* Override any GCC internal prototype to avoid an error.
30176 Use char because int might match the return type of a GCC
30177 builtin and then its argument prototype would still apply. */
30181 char png_longjmp ();
30185 return png_longjmp ();
30190 if ac_fn_c_try_link "$LINENO"; then :
30191 ac_cv_lib_png15_png_longjmp=yes
30193 ac_cv_lib_png15_png_longjmp=no
30195 rm -f core conftest.err conftest.$ac_objext \
30196 conftest$ac_exeext conftest.$ac_ext
30197 LIBS=$ac_check_lib_save_LIBS
30199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30200 $as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30201 if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30202 passed=`expr $passed + 1`
30204 failed=`expr $failed + 1`
30208 if test "1${var}" = '14' ; then
30209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30210 $as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30211 if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30212 $as_echo_n "(cached) " >&6
30214 ac_check_lib_save_LIBS=$LIBS
30215 LIBS="-lpng14 $LIBS"
30216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30217 /* end confdefs.h. */
30219 /* Override any GCC internal prototype to avoid an error.
30220 Use char because int might match the return type of a GCC
30221 builtin and then its argument prototype would still apply. */
30225 char png_get_io_ptr ();
30229 return png_get_io_ptr ();
30234 if ac_fn_c_try_link "$LINENO"; then :
30235 ac_cv_lib_png14_png_get_io_ptr=yes
30237 ac_cv_lib_png14_png_get_io_ptr=no
30239 rm -f core conftest.err conftest.$ac_objext \
30240 conftest$ac_exeext conftest.$ac_ext
30241 LIBS=$ac_check_lib_save_LIBS
30243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30244 $as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30245 if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30246 passed=`expr $passed + 1`
30248 failed=`expr $failed + 1`
30251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30252 $as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30253 if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30254 $as_echo_n "(cached) " >&6
30256 ac_check_lib_save_LIBS=$LIBS
30257 LIBS="-lpng14 $LIBS"
30258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30259 /* end confdefs.h. */
30261 /* Override any GCC internal prototype to avoid an error.
30262 Use char because int might match the return type of a GCC
30263 builtin and then its argument prototype would still apply. */
30267 char png_get_io_state ();
30271 return png_get_io_state ();
30276 if ac_fn_c_try_link "$LINENO"; then :
30277 ac_cv_lib_png14_png_get_io_state=yes
30279 ac_cv_lib_png14_png_get_io_state=no
30281 rm -f core conftest.err conftest.$ac_objext \
30282 conftest$ac_exeext conftest.$ac_ext
30283 LIBS=$ac_check_lib_save_LIBS
30285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30286 $as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30287 if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30288 passed=`expr $passed + 1`
30290 failed=`expr $failed + 1`
30294 if test "1${var}" = '12' ; then
30295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30296 $as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30297 if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30298 $as_echo_n "(cached) " >&6
30300 ac_check_lib_save_LIBS=$LIBS
30301 LIBS="-lpng12 $LIBS"
30302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30303 /* end confdefs.h. */
30305 /* Override any GCC internal prototype to avoid an error.
30306 Use char because int might match the return type of a GCC
30307 builtin and then its argument prototype would still apply. */
30311 char png_get_io_ptr ();
30315 return png_get_io_ptr ();
30320 if ac_fn_c_try_link "$LINENO"; then :
30321 ac_cv_lib_png12_png_get_io_ptr=yes
30323 ac_cv_lib_png12_png_get_io_ptr=no
30325 rm -f core conftest.err conftest.$ac_objext \
30326 conftest$ac_exeext conftest.$ac_ext
30327 LIBS=$ac_check_lib_save_LIBS
30329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30330 $as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30331 if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30332 passed=`expr $passed + 1`
30334 failed=`expr $failed + 1`
30338 if test "1${var}" = '1' ; then
30339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30340 $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30341 if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30342 $as_echo_n "(cached) " >&6
30344 ac_check_lib_save_LIBS=$LIBS
30346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30347 /* end confdefs.h. */
30349 /* Override any GCC internal prototype to avoid an error.
30350 Use char because int might match the return type of a GCC
30351 builtin and then its argument prototype would still apply. */
30355 char png_get_io_ptr ();
30359 return png_get_io_ptr ();
30364 if ac_fn_c_try_link "$LINENO"; then :
30365 ac_cv_lib_png_png_get_io_ptr=yes
30367 ac_cv_lib_png_png_get_io_ptr=no
30369 rm -f core conftest.err conftest.$ac_objext \
30370 conftest$ac_exeext conftest.$ac_ext
30371 LIBS=$ac_check_lib_save_LIBS
30373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30374 $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30375 if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30376 passed=`expr $passed + 1`
30378 failed=`expr $failed + 1`
30382 if test $passed -gt 0 -a $failed -le 0 ; then
30383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30384 $as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30385 if test $passed -gt 0 ; then
30386 if test $failed -gt 0 ; then
30387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30388 $as_echo "no -- some components failed test" >&6; }
30389 have_png='no (failed tests)'
30391 PNG_LIBS="-l${pnglib}"
30392 LIBS="$PNG_LIBS $LIBS"
30394 $as_echo "#define PNG_DELEGATE 1" >>confdefs.h
30396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30397 $as_echo "yes" >&6; }
30408 if test "$have_png" = 'yes'; then
30410 PNG_DELEGATE_FALSE='#'
30412 PNG_DELEGATE_TRUE='#'
30413 PNG_DELEGATE_FALSE=
30418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: PNG requires zlib support" >&5
30419 $as_echo "PNG requires zlib support" >&6; }
30424 # Check for RSVG delegate library.
30427 # Check whether --with-rsvg was given.
30428 if test "${with_rsvg+set}" = set; then :
30429 withval=$with_rsvg; with_rsvg=$withval
30435 if test "$with_rsvg" != 'yes'; then
30436 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30444 if test "x$with_rsvg" = "xyes"; then
30445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30446 $as_echo "-------------------------------------------------------------" >&6; }
30449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30450 $as_echo_n "checking for RSVG... " >&6; }
30452 if test -n "$RSVG_CFLAGS"; then
30453 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30454 elif test -n "$PKG_CONFIG"; then
30455 if test -n "$PKG_CONFIG" && \
30456 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30457 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30460 test $ac_status = 0; }; then
30461 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30468 if test -n "$RSVG_LIBS"; then
30469 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30470 elif test -n "$PKG_CONFIG"; then
30471 if test -n "$PKG_CONFIG" && \
30472 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30473 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30476 test $ac_status = 0; }; then
30477 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30487 if test $pkg_failed = yes; then
30489 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30490 _pkg_short_errors_supported=yes
30492 _pkg_short_errors_supported=no
30494 if test $_pkg_short_errors_supported = yes; then
30495 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30497 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30499 # Put the nasty error message in config.log where it belongs
30500 echo "$RSVG_PKG_ERRORS" >&5
30502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30503 $as_echo "no" >&6; }
30505 elif test $pkg_failed = untried; then
30508 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30509 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30511 $as_echo "yes" >&6; }
30514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30519 $as_echo_n "checking for CAIRO_SVG... " >&6; }
30521 if test -n "$CAIRO_SVG_CFLAGS"; then
30522 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30523 elif test -n "$PKG_CONFIG"; then
30524 if test -n "$PKG_CONFIG" && \
30525 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30526 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30529 test $ac_status = 0; }; then
30530 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30537 if test -n "$CAIRO_SVG_LIBS"; then
30538 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30539 elif test -n "$PKG_CONFIG"; then
30540 if test -n "$PKG_CONFIG" && \
30541 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30542 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30545 test $ac_status = 0; }; then
30546 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30556 if test $pkg_failed = yes; then
30558 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30559 _pkg_short_errors_supported=yes
30561 _pkg_short_errors_supported=no
30563 if test $_pkg_short_errors_supported = yes; then
30564 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
30566 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
30568 # Put the nasty error message in config.log where it belongs
30569 echo "$CAIRO_SVG_PKG_ERRORS" >&5
30571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30572 $as_echo "no" >&6; }
30574 elif test $pkg_failed = untried; then
30577 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
30578 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
30579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30580 $as_echo "yes" >&6; }
30583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30587 if test "$have_rsvg" = 'yes'; then
30589 $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
30591 if test "$with_modules" = 'no'; then
30592 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
30596 if test "$have_cairo" = 'yes'; then
30598 $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
30600 if test "$with_modules" = 'no'; then
30601 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
30605 if test "$have_rsvg" = 'yes'; then
30606 RSVG_DELEGATE_TRUE=
30607 RSVG_DELEGATE_FALSE='#'
30609 RSVG_DELEGATE_TRUE='#'
30610 RSVG_DELEGATE_FALSE=
30613 if test "$have_cairo" = 'yes'; then
30614 CAIRO_DELEGATE_TRUE=
30615 CAIRO_DELEGATE_FALSE='#'
30617 CAIRO_DELEGATE_TRUE='#'
30618 CAIRO_DELEGATE_FALSE=
30626 # Check for TIFF delegate library.
30629 # Check whether --with-tiff was given.
30630 if test "${with_tiff+set}" = set; then :
30631 withval=$with_tiff; with_tiff=$withval
30637 if test "$with_tiff" != 'yes'; then
30638 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
30643 if test "$with_tiff" != 'no'; then
30644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30645 $as_echo "-------------------------------------------------------------" >&6; }
30646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
30647 $as_echo_n "checking for TIFF... " >&6; }
30648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30652 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
30653 if test "x$ac_cv_header_tiff_h" = xyes; then :
30654 passed=`expr $passed + 1`
30656 failed=`expr $failed + 1`
30660 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
30661 if test "x$ac_cv_header_tiffio_h" = xyes; then :
30662 passed=`expr $passed + 1`
30664 failed=`expr $failed + 1`
30668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
30669 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
30670 if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
30671 $as_echo_n "(cached) " >&6
30673 ac_check_lib_save_LIBS=$LIBS
30674 LIBS="-ltiff $LIBS"
30675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30676 /* end confdefs.h. */
30678 /* Override any GCC internal prototype to avoid an error.
30679 Use char because int might match the return type of a GCC
30680 builtin and then its argument prototype would still apply. */
30688 return TIFFOpen ();
30693 if ac_fn_c_try_link "$LINENO"; then :
30694 ac_cv_lib_tiff_TIFFOpen=yes
30696 ac_cv_lib_tiff_TIFFOpen=no
30698 rm -f core conftest.err conftest.$ac_objext \
30699 conftest$ac_exeext conftest.$ac_ext
30700 LIBS=$ac_check_lib_save_LIBS
30702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
30703 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
30704 if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
30705 passed=`expr $passed + 1`
30707 failed=`expr $failed + 1`
30710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
30711 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
30712 if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
30713 $as_echo_n "(cached) " >&6
30715 ac_check_lib_save_LIBS=$LIBS
30716 LIBS="-ltiff $LIBS"
30717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30718 /* end confdefs.h. */
30720 /* Override any GCC internal prototype to avoid an error.
30721 Use char because int might match the return type of a GCC
30722 builtin and then its argument prototype would still apply. */
30726 char TIFFClientOpen ();
30730 return TIFFClientOpen ();
30735 if ac_fn_c_try_link "$LINENO"; then :
30736 ac_cv_lib_tiff_TIFFClientOpen=yes
30738 ac_cv_lib_tiff_TIFFClientOpen=no
30740 rm -f core conftest.err conftest.$ac_objext \
30741 conftest$ac_exeext conftest.$ac_ext
30742 LIBS=$ac_check_lib_save_LIBS
30744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
30745 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
30746 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
30747 passed=`expr $passed + 1`
30749 failed=`expr $failed + 1`
30752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
30753 $as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
30754 if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
30755 $as_echo_n "(cached) " >&6
30757 ac_check_lib_save_LIBS=$LIBS
30758 LIBS="-ltiff $LIBS"
30759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30760 /* end confdefs.h. */
30762 /* Override any GCC internal prototype to avoid an error.
30763 Use char because int might match the return type of a GCC
30764 builtin and then its argument prototype would still apply. */
30768 char TIFFIsBigEndian ();
30772 return TIFFIsBigEndian ();
30777 if ac_fn_c_try_link "$LINENO"; then :
30778 ac_cv_lib_tiff_TIFFIsBigEndian=yes
30780 ac_cv_lib_tiff_TIFFIsBigEndian=no
30782 rm -f core conftest.err conftest.$ac_objext \
30783 conftest$ac_exeext conftest.$ac_ext
30784 LIBS=$ac_check_lib_save_LIBS
30786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
30787 $as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
30788 if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
30789 passed=`expr $passed + 1`
30791 failed=`expr $failed + 1`
30794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
30795 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
30796 if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
30797 $as_echo_n "(cached) " >&6
30799 ac_check_lib_save_LIBS=$LIBS
30800 LIBS="-ltiff $LIBS"
30801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30802 /* end confdefs.h. */
30804 /* Override any GCC internal prototype to avoid an error.
30805 Use char because int might match the return type of a GCC
30806 builtin and then its argument prototype would still apply. */
30810 char TIFFIsByteSwapped ();
30814 return TIFFIsByteSwapped ();
30819 if ac_fn_c_try_link "$LINENO"; then :
30820 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
30822 ac_cv_lib_tiff_TIFFIsByteSwapped=no
30824 rm -f core conftest.err conftest.$ac_objext \
30825 conftest$ac_exeext conftest.$ac_ext
30826 LIBS=$ac_check_lib_save_LIBS
30828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
30829 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
30830 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
30831 passed=`expr $passed + 1`
30833 failed=`expr $failed + 1`
30836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
30837 $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
30838 if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
30839 $as_echo_n "(cached) " >&6
30841 ac_check_lib_save_LIBS=$LIBS
30842 LIBS="-ltiff $LIBS"
30843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30844 /* end confdefs.h. */
30846 /* Override any GCC internal prototype to avoid an error.
30847 Use char because int might match the return type of a GCC
30848 builtin and then its argument prototype would still apply. */
30852 char TIFFReadRGBATile ();
30856 return TIFFReadRGBATile ();
30861 if ac_fn_c_try_link "$LINENO"; then :
30862 ac_cv_lib_tiff_TIFFReadRGBATile=yes
30864 ac_cv_lib_tiff_TIFFReadRGBATile=no
30866 rm -f core conftest.err conftest.$ac_objext \
30867 conftest$ac_exeext conftest.$ac_ext
30868 LIBS=$ac_check_lib_save_LIBS
30870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
30871 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
30872 if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
30873 passed=`expr $passed + 1`
30875 failed=`expr $failed + 1`
30878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
30879 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
30880 if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
30881 $as_echo_n "(cached) " >&6
30883 ac_check_lib_save_LIBS=$LIBS
30884 LIBS="-ltiff $LIBS"
30885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30886 /* end confdefs.h. */
30888 /* Override any GCC internal prototype to avoid an error.
30889 Use char because int might match the return type of a GCC
30890 builtin and then its argument prototype would still apply. */
30894 char TIFFReadRGBAStrip ();
30898 return TIFFReadRGBAStrip ();
30903 if ac_fn_c_try_link "$LINENO"; then :
30904 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
30906 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
30908 rm -f core conftest.err conftest.$ac_objext \
30909 conftest$ac_exeext conftest.$ac_ext
30910 LIBS=$ac_check_lib_save_LIBS
30912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
30913 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
30914 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
30915 passed=`expr $passed + 1`
30917 failed=`expr $failed + 1`
30920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
30921 $as_echo_n "checking if TIFF package is complete... " >&6; }
30922 if test $passed -gt 0; then
30923 if test $failed -gt 0; then
30924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30925 $as_echo "no -- some components failed test" >&6; }
30926 have_tiff='no (failed tests)'
30929 LIBS="$TIFF_LIBS $LIBS"
30931 $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
30933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30934 $as_echo "yes" >&6; }
30936 for ac_header in tiffconf.h
30938 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
30939 if test "x$ac_cv_header_tiffconf_h" = xyes; then :
30940 cat >>confdefs.h <<_ACEOF
30941 #define HAVE_TIFFCONF_H 1
30948 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
30949 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
30950 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
30952 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30953 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30954 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30955 cat >>confdefs.h <<_ACEOF
30956 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30965 $as_echo "no" >&6; }
30968 if test "$have_tiff" = 'yes'; then
30969 TIFF_DELEGATE_TRUE=
30970 TIFF_DELEGATE_FALSE='#'
30972 TIFF_DELEGATE_TRUE='#'
30973 TIFF_DELEGATE_FALSE=
30980 # Check for WEBP delegate library.
30983 # Check whether --with-webp was given.
30984 if test "${with_webp+set}" = set; then :
30985 withval=$with_webp; with_webp=$withval
30991 if test "$with_webp" != 'yes'; then
30992 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
30997 if test "$with_webp" != 'no'; then
30998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30999 $as_echo "-------------------------------------------------------------" >&6; }
31000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31001 $as_echo_n "checking for WEBP... " >&6; }
31002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31006 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31007 if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31008 passed=`expr $passed + 1`
31010 failed=`expr $failed + 1`
31014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31015 $as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31016 if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31017 $as_echo_n "(cached) " >&6
31019 ac_check_lib_save_LIBS=$LIBS
31020 LIBS="-lwebp $LIBS"
31021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31022 /* end confdefs.h. */
31024 /* Override any GCC internal prototype to avoid an error.
31025 Use char because int might match the return type of a GCC
31026 builtin and then its argument prototype would still apply. */
31030 char WebPDecodeRGB ();
31034 return WebPDecodeRGB ();
31039 if ac_fn_c_try_link "$LINENO"; then :
31040 ac_cv_lib_webp_WebPDecodeRGB=yes
31042 ac_cv_lib_webp_WebPDecodeRGB=no
31044 rm -f core conftest.err conftest.$ac_objext \
31045 conftest$ac_exeext conftest.$ac_ext
31046 LIBS=$ac_check_lib_save_LIBS
31048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31049 $as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31050 if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31051 passed=`expr $passed + 1`
31053 failed=`expr $failed + 1`
31056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31057 $as_echo_n "checking if WEBP package is complete... " >&6; }
31058 if test $passed -gt 0; then
31059 if test $failed -gt 0; then
31060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31061 $as_echo "no -- some components failed test" >&6; }
31062 have_webp='no (failed tests)'
31065 LIBS="$WEBP_LIBS $LIBS"
31067 $as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31070 $as_echo "yes" >&6; }
31074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31075 $as_echo "no" >&6; }
31078 if test "$have_webp" = 'yes'; then
31079 WEBP_DELEGATE_TRUE=
31080 WEBP_DELEGATE_FALSE='#'
31082 WEBP_DELEGATE_TRUE='#'
31083 WEBP_DELEGATE_FALSE=
31090 # Set Windows font directory.
31093 # Check whether --with-windows-font-dir was given.
31094 if test "${with_windows_font_dir+set}" = set; then :
31095 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31097 with_windows_font_dir=''
31100 if test "$with_windows_font_dir" != '' ; then
31101 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31106 # Check for WMF delegate library.
31109 # Check whether --with-wmf was given.
31110 if test "${with_wmf+set}" = set; then :
31111 withval=$with_wmf; with_wmf=$withval
31117 if test "$with_wmf" != 'yes'; then
31118 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31123 if test "$with_wmf" != 'no'; then
31124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31125 $as_echo "-------------------------------------------------------------" >&6; }
31126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
31127 $as_echo_n "checking for WMF... " >&6; }
31128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31132 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
31133 if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
31134 passed=`expr $passed + 1`
31136 failed=`expr $failed + 1`
31140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
31141 $as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
31142 if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
31143 $as_echo_n "(cached) " >&6
31145 ac_check_lib_save_LIBS=$LIBS
31146 LIBS="-lwmf "-lwmflite" $LIBS"
31147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31148 /* end confdefs.h. */
31150 /* Override any GCC internal prototype to avoid an error.
31151 Use char because int might match the return type of a GCC
31152 builtin and then its argument prototype would still apply. */
31156 char wmf_eps_function ();
31160 return wmf_eps_function ();
31165 if ac_fn_c_try_link "$LINENO"; then :
31166 ac_cv_lib_wmf_wmf_eps_function=yes
31168 ac_cv_lib_wmf_wmf_eps_function=no
31170 rm -f core conftest.err conftest.$ac_objext \
31171 conftest$ac_exeext conftest.$ac_ext
31172 LIBS=$ac_check_lib_save_LIBS
31174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
31175 $as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
31176 if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
31177 passed=`expr $passed + 1`
31179 failed=`expr $failed + 1`
31182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31183 $as_echo_n "checking if WMF package is complete... " >&6; }
31184 if test $passed -gt 0; then
31185 if test $failed -gt 0; then
31186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31187 $as_echo "no -- some components failed test" >&6; }
31188 have_wmf='no (failed tests)'
31190 WMF_LIBS='-lwmf -lwmflite'
31191 LIBS="$WMF_LIBS $LIBS"
31193 $as_echo "#define WMF_DELEGATE 1" >>confdefs.h
31195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31196 $as_echo "yes" >&6; }
31200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31201 $as_echo "no" >&6; }
31204 if test "$have_wmf" = 'yes'; then
31206 WMF_DELEGATE_FALSE='#'
31208 WMF_DELEGATE_TRUE='#'
31209 WMF_DELEGATE_FALSE=
31218 # Check for XML delegate library.
31221 # Check whether --with-xml was given.
31222 if test "${with_xml+set}" = set; then :
31223 withval=$with_xml; with_xml=$withval
31229 if test "$with_xml" != 'yes' ; then
31230 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31235 if test "$with_xml" != 'no'; then
31236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31237 $as_echo "-------------------------------------------------------------" >&6; }
31238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31239 $as_echo_n "checking for XML... " >&6; }
31240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31242 PERSIST_LDFLAGS=$LDFLAGS
31243 PERSIST_CPPFLAGS=$CPPFLAGS
31245 for ac_prog in xml2-config
31247 # Extract the first word of "$ac_prog", so it can be a program name with args.
31248 set dummy $ac_prog; ac_word=$2
31249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31250 $as_echo_n "checking for $ac_word... " >&6; }
31251 if ${ac_cv_prog_xml2_config+:} false; then :
31252 $as_echo_n "(cached) " >&6
31254 if test -n "$xml2_config"; then
31255 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
31257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31258 for as_dir in $PATH
31261 test -z "$as_dir" && as_dir=.
31262 for ac_exec_ext in '' $ac_executable_extensions; do
31263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31264 ac_cv_prog_xml2_config="$ac_prog"
31265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31274 xml2_config=$ac_cv_prog_xml2_config
31275 if test -n "$xml2_config"; then
31276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31277 $as_echo "$xml2_config" >&6; }
31279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31280 $as_echo "no" >&6; }
31284 test -n "$xml2_config" && break
31286 if test -n "$xml2_config"; then
31287 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31288 # the shared library installed under /usr/lib, whereas the package
31289 # installs itself under $prefix/libxml and $prefix/lib.
31290 xml2_prefix=`xml2-config --prefix`
31291 if test -d "${xml2_prefix}/include/libxml2"; then
31292 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31294 if test "${xml2_prefix}" != '/usr'; then
31295 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31300 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31301 if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31302 passed=`expr $passed + 1`
31304 failed=`expr $failed + 1`
31308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
31309 $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
31310 if ${ac_cv_lib_xml2_xmlParseExternalEntity+:} false; then :
31311 $as_echo_n "(cached) " >&6
31313 ac_check_lib_save_LIBS=$LIBS
31314 LIBS="-lxml2 $LIBS"
31315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31316 /* end confdefs.h. */
31318 /* Override any GCC internal prototype to avoid an error.
31319 Use char because int might match the return type of a GCC
31320 builtin and then its argument prototype would still apply. */
31324 char xmlParseExternalEntity ();
31328 return xmlParseExternalEntity ();
31333 if ac_fn_c_try_link "$LINENO"; then :
31334 ac_cv_lib_xml2_xmlParseExternalEntity=yes
31336 ac_cv_lib_xml2_xmlParseExternalEntity=no
31338 rm -f core conftest.err conftest.$ac_objext \
31339 conftest$ac_exeext conftest.$ac_ext
31340 LIBS=$ac_check_lib_save_LIBS
31342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
31343 $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
31344 if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = xyes; then :
31345 passed=`expr $passed + 1`
31347 failed=`expr $failed + 1`
31350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31351 $as_echo_n "checking if XML package is complete... " >&6; }
31352 if test $passed -gt 0; then
31353 if test $failed -gt 0; then
31354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31355 $as_echo "no -- some components failed test" >&6; }
31356 have_xml='no (failed tests)'
31357 LDFLAGS="$PERSIST_LDFLAGS"
31358 CPPFLAGS="$PERSIST_CPPFLAGS"
31361 LIBS="$XML_LIBS $LIBS"
31363 $as_echo "#define XML_DELEGATE 1" >>confdefs.h
31365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31366 $as_echo "yes" >&6; }
31370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31371 $as_echo "no" >&6; }
31374 if test "$have_xml" = 'yes'; then
31376 XML_DELEGATE_FALSE='#'
31378 XML_DELEGATE_TRUE='#'
31379 XML_DELEGATE_FALSE=
31385 # Substitute compiler name to build/link PerlMagick
31390 # Configure install Paths
31393 # Subdirectory under lib to place ImageMagick lib files
31394 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31396 cat >>confdefs.h <<_ACEOF
31397 #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31401 # Path to ImageMagick bin directory
31402 EXECUTABLE_PATH="${BIN_DIR}"
31403 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31404 case "${build_os}" in
31406 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31410 cat >>confdefs.h <<_ACEOF
31411 #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31416 # Path to ImageMagick lib
31417 LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31418 DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31419 case "${build_os}" in
31421 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31425 cat >>confdefs.h <<_ACEOF
31426 #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31432 # Subdirectory under lib to place ImageMagick coder module files
31433 CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
31435 cat >>confdefs.h <<_ACEOF
31436 #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
31439 CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
31440 DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
31441 case "${build_os}" in
31443 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
31447 cat >>confdefs.h <<_ACEOF
31448 #define CODER_PATH "$DEFINE_CODER_PATH"
31454 # Subdirectory under lib to place ImageMagick filter module files
31455 FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
31457 cat >>confdefs.h <<_ACEOF
31458 #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
31461 FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
31462 DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
31463 case "${build_os}" in
31465 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
31469 cat >>confdefs.h <<_ACEOF
31470 #define FILTER_PATH "$DEFINE_FILTER_PATH"
31476 # Path to ImageMagick documentation files
31477 DOCUMENTATION_RELATIVE_PATH=""
31478 DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
31479 DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
31480 case "${build_os}" in
31482 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
31486 cat >>confdefs.h <<_ACEOF
31487 #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
31492 # Subdirectory to place ImageMagick configuration files
31493 CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
31495 cat >>confdefs.h <<_ACEOF
31496 #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
31499 CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31500 DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31501 case "${build_os}" in
31503 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
31507 cat >>confdefs.h <<_ACEOF
31508 #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
31513 # Subdirectory to place ImageMagick configuration files
31514 SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
31516 cat >>confdefs.h <<_ACEOF
31517 #define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
31520 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
31521 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
31522 case "${build_os}" in
31524 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
31528 cat >>confdefs.h <<_ACEOF
31529 #define SHARE_PATH "$DEFINE_SHARE_PATH"
31535 # program_transform_name is formed for use in a Makefile, so create a
31536 # modified version for use in a shell script.
31537 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
31539 # Default delegate definitions
31540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31541 $as_echo "-------------------------------------------------------------" >&6; }
31542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
31543 $as_echo_n "checking for ImageMagick delegate programs... " >&6; }
31544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31546 AutotraceDecodeDelegateDefault='autotrace'
31547 BlenderDecodeDelegateDefault='blender'
31548 BZIPDelegateDefault='bzip2'
31549 BrowseDelegateDefault='xdg-open'
31550 CGMDecodeDelegateDefault='ralcgm'
31551 CatDelegateDefault='cat'
31552 DNGDecodeDelegateDefault='ufraw-batch'
31553 GVCDecodeDelegateDefault='dot'
31554 DVIDecodeDelegateDefault='dvips'
31555 EchoDelegateDefault='echo'
31556 EditorDelegateDefault='xterm'
31557 FIGDecodeDelegateDefault='fig2dev'
31558 ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
31559 DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
31560 MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
31561 GnuplotDecodeDelegateDefault='gnuplot'
31562 HPGLDecodeDelegateDefault='hp2xx'
31563 HTMLDecodeDelegateDefault='html2ps'
31564 ILBMDecodeDelegateDefault='ilbmtoppm'
31565 ILBMEncodeDelegateDefault='ppmtoilbm'
31566 LPDelegateDefault='lp'
31567 LPRDelegateDefault='lpr'
31568 LZWDecodeDelegateDefault='uncompress'
31569 LZWEncodeDelegateDefault='compress'
31570 LaunchDelegateDefault='gimp'
31571 MANDelegateDefault='groff'
31572 MPEGDecodeDelegateDefault='ffmpeg'
31573 MPEGEncodeDelegateDefault='ffmpeg'
31574 MrSIDDecodeDelegateDefault='mrsidgeodecode'
31575 MVDelegateDefault='mv'
31576 PCLDelegateDefault='pcl6'
31577 PGPDecodeDelegateDefault='pgpv'
31578 POVDelegateDefault='povray'
31579 if test "$native_win32_build" = 'yes'; then
31580 PSDelegateDefault='gswin32c'
31581 elif test "$gslib_framework" = 'yes'; then
31582 PSDelegateDefault='gsc'
31584 PSDelegateDefault='gs'
31586 RLEEncodeDelegateDefault='rawtorle'
31587 RMDelegateDefault='rm'
31588 RSVGDecodeDelegateDefault='rsvg'
31589 SCANDecodeDelegateDefault='scanimage'
31590 TXTDelegateDefault='enscript'
31591 UniconvertorDelegateDefault='uniconvertor'
31592 WMFDecodeDelegateDefault='wmf2eps'
31593 WWWDecodeDelegateDefault='curl'
31594 XPSDelegateDefault='gxps'
31595 ZipDelegateDefault='gzip'
31597 # Search for delegates
31598 # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
31599 set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
31600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31601 $as_echo_n "checking for $ac_word... " >&6; }
31602 if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
31603 $as_echo_n "(cached) " >&6
31605 case $AutotraceDecodeDelegate in
31607 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
31610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31611 for as_dir in $PATH
31614 test -z "$as_dir" && as_dir=.
31615 for ac_exec_ext in '' $ac_executable_extensions; do
31616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31617 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31625 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
31629 AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
31630 if test -n "$AutotraceDecodeDelegate"; then
31631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
31632 $as_echo "$AutotraceDecodeDelegate" >&6; }
31634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31635 $as_echo "no" >&6; }
31639 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
31640 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
31641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31642 $as_echo_n "checking for $ac_word... " >&6; }
31643 if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
31644 $as_echo_n "(cached) " >&6
31646 case $BlenderDecodeDelegate in
31648 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
31651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31652 for as_dir in $PATH
31655 test -z "$as_dir" && as_dir=.
31656 for ac_exec_ext in '' $ac_executable_extensions; do
31657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31658 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31666 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
31670 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
31671 if test -n "$BlenderDecodeDelegate"; then
31672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
31673 $as_echo "$BlenderDecodeDelegate" >&6; }
31675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31676 $as_echo "no" >&6; }
31680 # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
31681 set dummy "$BZIPDelegateDefault"; ac_word=$2
31682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31683 $as_echo_n "checking for $ac_word... " >&6; }
31684 if ${ac_cv_path_BZIPDelegate+:} false; then :
31685 $as_echo_n "(cached) " >&6
31687 case $BZIPDelegate in
31689 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
31692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31693 for as_dir in $PATH
31696 test -z "$as_dir" && as_dir=.
31697 for ac_exec_ext in '' $ac_executable_extensions; do
31698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31699 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
31700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31707 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
31711 BZIPDelegate=$ac_cv_path_BZIPDelegate
31712 if test -n "$BZIPDelegate"; then
31713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
31714 $as_echo "$BZIPDelegate" >&6; }
31716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31717 $as_echo "no" >&6; }
31721 # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
31722 set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
31723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31724 $as_echo_n "checking for $ac_word... " >&6; }
31725 if ${ac_cv_path_BrowseDelegate+:} false; then :
31726 $as_echo_n "(cached) " >&6
31728 case $BrowseDelegate in
31730 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
31733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31734 for as_dir in $PATH
31737 test -z "$as_dir" && as_dir=.
31738 for ac_exec_ext in '' $ac_executable_extensions; do
31739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31740 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
31741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31748 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
31752 BrowseDelegate=$ac_cv_path_BrowseDelegate
31753 if test -n "$BrowseDelegate"; then
31754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
31755 $as_echo "$BrowseDelegate" >&6; }
31757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31758 $as_echo "no" >&6; }
31762 # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
31763 set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
31764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31765 $as_echo_n "checking for $ac_word... " >&6; }
31766 if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
31767 $as_echo_n "(cached) " >&6
31769 case $CGMDecodeDelegate in
31771 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
31774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31775 for as_dir in $PATH
31778 test -z "$as_dir" && as_dir=.
31779 for ac_exec_ext in '' $ac_executable_extensions; do
31780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31781 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31789 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
31793 CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
31794 if test -n "$CGMDecodeDelegate"; then
31795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
31796 $as_echo "$CGMDecodeDelegate" >&6; }
31798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31799 $as_echo "no" >&6; }
31803 # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
31804 set dummy "$CatDelegateDefault"; ac_word=$2
31805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31806 $as_echo_n "checking for $ac_word... " >&6; }
31807 if ${ac_cv_path_CatDelegate+:} false; then :
31808 $as_echo_n "(cached) " >&6
31810 case $CatDelegate in
31812 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
31815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31816 for as_dir in $PATH
31819 test -z "$as_dir" && as_dir=.
31820 for ac_exec_ext in '' $ac_executable_extensions; do
31821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31822 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
31823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31830 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
31834 CatDelegate=$ac_cv_path_CatDelegate
31835 if test -n "$CatDelegate"; then
31836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
31837 $as_echo "$CatDelegate" >&6; }
31839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31840 $as_echo "no" >&6; }
31844 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
31845 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
31846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31847 $as_echo_n "checking for $ac_word... " >&6; }
31848 if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
31849 $as_echo_n "(cached) " >&6
31851 case $DNGDecodeDelegate in
31853 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
31856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31857 for as_dir in $PATH
31860 test -z "$as_dir" && as_dir=.
31861 for ac_exec_ext in '' $ac_executable_extensions; do
31862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31863 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31871 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
31875 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
31876 if test -n "$DNGDecodeDelegate"; then
31877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
31878 $as_echo "$DNGDecodeDelegate" >&6; }
31880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31881 $as_echo "no" >&6; }
31885 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
31886 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
31887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31888 $as_echo_n "checking for $ac_word... " >&6; }
31889 if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
31890 $as_echo_n "(cached) " >&6
31892 case $GVCDecodeDelegate in
31894 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
31897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31898 for as_dir in $PATH
31901 test -z "$as_dir" && as_dir=.
31902 for ac_exec_ext in '' $ac_executable_extensions; do
31903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31904 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31912 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
31916 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
31917 if test -n "$GVCDecodeDelegate"; then
31918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
31919 $as_echo "$GVCDecodeDelegate" >&6; }
31921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31922 $as_echo "no" >&6; }
31926 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
31927 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
31928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31929 $as_echo_n "checking for $ac_word... " >&6; }
31930 if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
31931 $as_echo_n "(cached) " >&6
31933 case $DVIDecodeDelegate in
31935 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
31938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31939 for as_dir in $PATH
31942 test -z "$as_dir" && as_dir=.
31943 for ac_exec_ext in '' $ac_executable_extensions; do
31944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31945 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31953 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
31957 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
31958 if test -n "$DVIDecodeDelegate"; then
31959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
31960 $as_echo "$DVIDecodeDelegate" >&6; }
31962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31963 $as_echo "no" >&6; }
31967 # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
31968 set dummy "$EchoDelegateDefault"; ac_word=$2
31969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31970 $as_echo_n "checking for $ac_word... " >&6; }
31971 if ${ac_cv_path_EchoDelegate+:} false; then :
31972 $as_echo_n "(cached) " >&6
31974 case $EchoDelegate in
31976 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
31979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31980 for as_dir in $PATH
31983 test -z "$as_dir" && as_dir=.
31984 for ac_exec_ext in '' $ac_executable_extensions; do
31985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31986 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
31987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31994 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
31998 EchoDelegate=$ac_cv_path_EchoDelegate
31999 if test -n "$EchoDelegate"; then
32000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
32001 $as_echo "$EchoDelegate" >&6; }
32003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32004 $as_echo "no" >&6; }
32008 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32009 set dummy "$EditorDelegateDefault"; ac_word=$2
32010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32011 $as_echo_n "checking for $ac_word... " >&6; }
32012 if ${ac_cv_path_EditorDelegate+:} false; then :
32013 $as_echo_n "(cached) " >&6
32015 case $EditorDelegate in
32017 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32021 for as_dir in $PATH
32024 test -z "$as_dir" && as_dir=.
32025 for ac_exec_ext in '' $ac_executable_extensions; do
32026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32027 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
32028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32035 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32039 EditorDelegate=$ac_cv_path_EditorDelegate
32040 if test -n "$EditorDelegate"; then
32041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
32042 $as_echo "$EditorDelegate" >&6; }
32044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32045 $as_echo "no" >&6; }
32049 # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32050 set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
32051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32052 $as_echo_n "checking for $ac_word... " >&6; }
32053 if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
32054 $as_echo_n "(cached) " >&6
32056 case $FIGDecodeDelegate in
32058 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32062 for as_dir in $PATH
32065 test -z "$as_dir" && as_dir=.
32066 for ac_exec_ext in '' $ac_executable_extensions; do
32067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32068 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32076 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32080 FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32081 if test -n "$FIGDecodeDelegate"; then
32082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
32083 $as_echo "$FIGDecodeDelegate" >&6; }
32085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32086 $as_echo "no" >&6; }
32090 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32091 set dummy "$ConvertDelegateDefault"; ac_word=$2
32092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32093 $as_echo_n "checking for $ac_word... " >&6; }
32094 if ${ac_cv_path_ConvertDelegate+:} false; then :
32095 $as_echo_n "(cached) " >&6
32097 case $ConvertDelegate in
32099 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32103 for as_dir in $PATH
32106 test -z "$as_dir" && as_dir=.
32107 for ac_exec_ext in '' $ac_executable_extensions; do
32108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32109 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
32110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32117 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32121 ConvertDelegate=$ac_cv_path_ConvertDelegate
32122 if test -n "$ConvertDelegate"; then
32123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
32124 $as_echo "$ConvertDelegate" >&6; }
32126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32127 $as_echo "no" >&6; }
32131 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32132 set dummy "$DisplayDelegateDefault"; ac_word=$2
32133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32134 $as_echo_n "checking for $ac_word... " >&6; }
32135 if ${ac_cv_path_DisplayDelegate+:} false; then :
32136 $as_echo_n "(cached) " >&6
32138 case $DisplayDelegate in
32140 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32144 for as_dir in $PATH
32147 test -z "$as_dir" && as_dir=.
32148 for ac_exec_ext in '' $ac_executable_extensions; do
32149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32150 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
32151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32158 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32162 DisplayDelegate=$ac_cv_path_DisplayDelegate
32163 if test -n "$DisplayDelegate"; then
32164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
32165 $as_echo "$DisplayDelegate" >&6; }
32167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32168 $as_echo "no" >&6; }
32172 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32173 set dummy "$MogrifyDelegateDefault"; ac_word=$2
32174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32175 $as_echo_n "checking for $ac_word... " >&6; }
32176 if ${ac_cv_path_MogrifyDelegate+:} false; then :
32177 $as_echo_n "(cached) " >&6
32179 case $MogrifyDelegate in
32181 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32185 for as_dir in $PATH
32188 test -z "$as_dir" && as_dir=.
32189 for ac_exec_ext in '' $ac_executable_extensions; do
32190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32191 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
32192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32199 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32203 MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32204 if test -n "$MogrifyDelegate"; then
32205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
32206 $as_echo "$MogrifyDelegate" >&6; }
32208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32209 $as_echo "no" >&6; }
32213 # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32214 set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
32215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32216 $as_echo_n "checking for $ac_word... " >&6; }
32217 if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
32218 $as_echo_n "(cached) " >&6
32220 case $GnuplotDecodeDelegate in
32222 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32226 for as_dir in $PATH
32229 test -z "$as_dir" && as_dir=.
32230 for ac_exec_ext in '' $ac_executable_extensions; do
32231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32232 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32240 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32244 GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32245 if test -n "$GnuplotDecodeDelegate"; then
32246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
32247 $as_echo "$GnuplotDecodeDelegate" >&6; }
32249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32250 $as_echo "no" >&6; }
32254 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32255 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
32256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32257 $as_echo_n "checking for $ac_word... " >&6; }
32258 if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
32259 $as_echo_n "(cached) " >&6
32261 case $HPGLDecodeDelegate in
32263 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32267 for as_dir in $PATH
32270 test -z "$as_dir" && as_dir=.
32271 for ac_exec_ext in '' $ac_executable_extensions; do
32272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32273 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32281 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32285 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32286 if test -n "$HPGLDecodeDelegate"; then
32287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
32288 $as_echo "$HPGLDecodeDelegate" >&6; }
32290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32291 $as_echo "no" >&6; }
32295 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32296 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
32297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32298 $as_echo_n "checking for $ac_word... " >&6; }
32299 if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
32300 $as_echo_n "(cached) " >&6
32302 case $HTMLDecodeDelegate in
32304 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32308 for as_dir in $PATH
32311 test -z "$as_dir" && as_dir=.
32312 for ac_exec_ext in '' $ac_executable_extensions; do
32313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32314 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32322 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32326 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32327 if test -n "$HTMLDecodeDelegate"; then
32328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
32329 $as_echo "$HTMLDecodeDelegate" >&6; }
32331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32332 $as_echo "no" >&6; }
32336 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32337 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
32338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32339 $as_echo_n "checking for $ac_word... " >&6; }
32340 if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
32341 $as_echo_n "(cached) " >&6
32343 case $ILBMDecodeDelegate in
32345 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32349 for as_dir in $PATH
32352 test -z "$as_dir" && as_dir=.
32353 for ac_exec_ext in '' $ac_executable_extensions; do
32354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32355 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32363 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32367 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32368 if test -n "$ILBMDecodeDelegate"; then
32369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
32370 $as_echo "$ILBMDecodeDelegate" >&6; }
32372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32373 $as_echo "no" >&6; }
32377 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32378 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
32379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32380 $as_echo_n "checking for $ac_word... " >&6; }
32381 if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
32382 $as_echo_n "(cached) " >&6
32384 case $ILBMEncodeDelegate in
32386 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32390 for as_dir in $PATH
32393 test -z "$as_dir" && as_dir=.
32394 for ac_exec_ext in '' $ac_executable_extensions; do
32395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32396 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32404 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32408 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32409 if test -n "$ILBMEncodeDelegate"; then
32410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
32411 $as_echo "$ILBMEncodeDelegate" >&6; }
32413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32414 $as_echo "no" >&6; }
32418 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32419 set dummy "$LPDelegateDefault"; ac_word=$2
32420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32421 $as_echo_n "checking for $ac_word... " >&6; }
32422 if ${ac_cv_path_LPDelegate+:} false; then :
32423 $as_echo_n "(cached) " >&6
32425 case $LPDelegate in
32427 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32431 for as_dir in $PATH
32434 test -z "$as_dir" && as_dir=.
32435 for ac_exec_ext in '' $ac_executable_extensions; do
32436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32437 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
32438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32445 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
32449 LPDelegate=$ac_cv_path_LPDelegate
32450 if test -n "$LPDelegate"; then
32451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
32452 $as_echo "$LPDelegate" >&6; }
32454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32455 $as_echo "no" >&6; }
32459 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
32460 set dummy "$LPRDelegateDefault"; ac_word=$2
32461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32462 $as_echo_n "checking for $ac_word... " >&6; }
32463 if ${ac_cv_path_LPRDelegate+:} false; then :
32464 $as_echo_n "(cached) " >&6
32466 case $LPRDelegate in
32468 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
32471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32472 for as_dir in $PATH
32475 test -z "$as_dir" && as_dir=.
32476 for ac_exec_ext in '' $ac_executable_extensions; do
32477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32478 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
32479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32486 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
32490 LPRDelegate=$ac_cv_path_LPRDelegate
32491 if test -n "$LPRDelegate"; then
32492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
32493 $as_echo "$LPRDelegate" >&6; }
32495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32496 $as_echo "no" >&6; }
32500 # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
32501 set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
32502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32503 $as_echo_n "checking for $ac_word... " >&6; }
32504 if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
32505 $as_echo_n "(cached) " >&6
32507 case $LZWDecodeDelegate in
32509 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
32512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32513 for as_dir in $PATH
32516 test -z "$as_dir" && as_dir=.
32517 for ac_exec_ext in '' $ac_executable_extensions; do
32518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32519 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32527 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
32531 LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
32532 if test -n "$LZWDecodeDelegate"; then
32533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
32534 $as_echo "$LZWDecodeDelegate" >&6; }
32536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32537 $as_echo "no" >&6; }
32541 # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
32542 set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
32543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32544 $as_echo_n "checking for $ac_word... " >&6; }
32545 if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
32546 $as_echo_n "(cached) " >&6
32548 case $LZWEncodeDelegate in
32550 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
32553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32554 for as_dir in $PATH
32557 test -z "$as_dir" && as_dir=.
32558 for ac_exec_ext in '' $ac_executable_extensions; do
32559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32560 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32568 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
32572 LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
32573 if test -n "$LZWEncodeDelegate"; then
32574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
32575 $as_echo "$LZWEncodeDelegate" >&6; }
32577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32578 $as_echo "no" >&6; }
32582 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
32583 set dummy "$LaunchDelegateDefault"; ac_word=$2
32584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32585 $as_echo_n "checking for $ac_word... " >&6; }
32586 if ${ac_cv_path_LaunchDelegate+:} false; then :
32587 $as_echo_n "(cached) " >&6
32589 case $LaunchDelegate in
32591 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
32594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32595 for as_dir in $PATH
32598 test -z "$as_dir" && as_dir=.
32599 for ac_exec_ext in '' $ac_executable_extensions; do
32600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32601 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
32602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32609 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
32613 LaunchDelegate=$ac_cv_path_LaunchDelegate
32614 if test -n "$LaunchDelegate"; then
32615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
32616 $as_echo "$LaunchDelegate" >&6; }
32618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32619 $as_echo "no" >&6; }
32623 # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
32624 set dummy "$MANDelegateDefault"; ac_word=$2
32625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32626 $as_echo_n "checking for $ac_word... " >&6; }
32627 if ${ac_cv_path_MANDelegate+:} false; then :
32628 $as_echo_n "(cached) " >&6
32630 case $MANDelegate in
32632 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
32635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32636 for as_dir in $PATH
32639 test -z "$as_dir" && as_dir=.
32640 for ac_exec_ext in '' $ac_executable_extensions; do
32641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32642 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
32643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32650 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
32654 MANDelegate=$ac_cv_path_MANDelegate
32655 if test -n "$MANDelegate"; then
32656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
32657 $as_echo "$MANDelegate" >&6; }
32659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32660 $as_echo "no" >&6; }
32664 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
32665 set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
32666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32667 $as_echo_n "checking for $ac_word... " >&6; }
32668 if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
32669 $as_echo_n "(cached) " >&6
32671 case $MPEGDecodeDelegate in
32673 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
32676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32677 for as_dir in $PATH
32680 test -z "$as_dir" && as_dir=.
32681 for ac_exec_ext in '' $ac_executable_extensions; do
32682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32683 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32691 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
32695 MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
32696 if test -n "$MPEGDecodeDelegate"; then
32697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
32698 $as_echo "$MPEGDecodeDelegate" >&6; }
32700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32701 $as_echo "no" >&6; }
32705 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
32706 set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
32707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32708 $as_echo_n "checking for $ac_word... " >&6; }
32709 if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
32710 $as_echo_n "(cached) " >&6
32712 case $MPEGEncodeDelegate in
32714 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
32717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32718 for as_dir in $PATH
32721 test -z "$as_dir" && as_dir=.
32722 for ac_exec_ext in '' $ac_executable_extensions; do
32723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32724 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32732 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
32736 MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
32737 if test -n "$MPEGEncodeDelegate"; then
32738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
32739 $as_echo "$MPEGEncodeDelegate" >&6; }
32741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32742 $as_echo "no" >&6; }
32746 # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
32747 set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
32748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32749 $as_echo_n "checking for $ac_word... " >&6; }
32750 if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
32751 $as_echo_n "(cached) " >&6
32753 case $MrSIDDecodeDelegate in
32755 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
32758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32759 for as_dir in $PATH
32762 test -z "$as_dir" && as_dir=.
32763 for ac_exec_ext in '' $ac_executable_extensions; do
32764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32765 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32773 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
32777 MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
32778 if test -n "$MrSIDDecodeDelegate"; then
32779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
32780 $as_echo "$MrSIDDecodeDelegate" >&6; }
32782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32783 $as_echo "no" >&6; }
32787 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
32788 set dummy "$MVDelegateDefault"; ac_word=$2
32789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32790 $as_echo_n "checking for $ac_word... " >&6; }
32791 if ${ac_cv_path_MVDelegate+:} false; then :
32792 $as_echo_n "(cached) " >&6
32794 case $MVDelegate in
32796 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
32799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32800 for as_dir in $PATH
32803 test -z "$as_dir" && as_dir=.
32804 for ac_exec_ext in '' $ac_executable_extensions; do
32805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32806 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
32807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32814 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
32818 MVDelegate=$ac_cv_path_MVDelegate
32819 if test -n "$MVDelegate"; then
32820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
32821 $as_echo "$MVDelegate" >&6; }
32823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32824 $as_echo "no" >&6; }
32828 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
32829 set dummy "$PCLDelegateDefault"; ac_word=$2
32830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32831 $as_echo_n "checking for $ac_word... " >&6; }
32832 if ${ac_cv_path_PCLDelegate+:} false; then :
32833 $as_echo_n "(cached) " >&6
32835 case $PCLDelegate in
32837 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
32840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32841 for as_dir in $PATH
32844 test -z "$as_dir" && as_dir=.
32845 for ac_exec_ext in '' $ac_executable_extensions; do
32846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32847 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
32848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32855 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
32859 PCLDelegate=$ac_cv_path_PCLDelegate
32860 if test -n "$PCLDelegate"; then
32861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
32862 $as_echo "$PCLDelegate" >&6; }
32864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32865 $as_echo "no" >&6; }
32869 # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
32870 set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
32871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32872 $as_echo_n "checking for $ac_word... " >&6; }
32873 if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
32874 $as_echo_n "(cached) " >&6
32876 case $PGPDecodeDelegate in
32878 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
32881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32882 for as_dir in $PATH
32885 test -z "$as_dir" && as_dir=.
32886 for ac_exec_ext in '' $ac_executable_extensions; do
32887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32888 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32896 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
32900 PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
32901 if test -n "$PGPDecodeDelegate"; then
32902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
32903 $as_echo "$PGPDecodeDelegate" >&6; }
32905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32906 $as_echo "no" >&6; }
32910 # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
32911 set dummy "$POVDelegateDefault"; ac_word=$2
32912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32913 $as_echo_n "checking for $ac_word... " >&6; }
32914 if ${ac_cv_path_POVDelegate+:} false; then :
32915 $as_echo_n "(cached) " >&6
32917 case $POVDelegate in
32919 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
32922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32923 for as_dir in $PATH
32926 test -z "$as_dir" && as_dir=.
32927 for ac_exec_ext in '' $ac_executable_extensions; do
32928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32929 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
32930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32937 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
32941 POVDelegate=$ac_cv_path_POVDelegate
32942 if test -n "$POVDelegate"; then
32943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
32944 $as_echo "$POVDelegate" >&6; }
32946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32947 $as_echo "no" >&6; }
32951 for ac_prog in gsx gsc "$PSDelegateDefault"
32953 # Extract the first word of "$ac_prog", so it can be a program name with args.
32954 set dummy $ac_prog; ac_word=$2
32955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32956 $as_echo_n "checking for $ac_word... " >&6; }
32957 if ${ac_cv_path_PSDelegate+:} false; then :
32958 $as_echo_n "(cached) " >&6
32960 case $PSDelegate in
32962 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
32965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32966 for as_dir in $PATH
32969 test -z "$as_dir" && as_dir=.
32970 for ac_exec_ext in '' $ac_executable_extensions; do
32971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32972 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
32973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32983 PSDelegate=$ac_cv_path_PSDelegate
32984 if test -n "$PSDelegate"; then
32985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
32986 $as_echo "$PSDelegate" >&6; }
32988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32989 $as_echo "no" >&6; }
32993 test -n "$PSDelegate" && break
32995 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
32997 # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
32998 set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
32999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33000 $as_echo_n "checking for $ac_word... " >&6; }
33001 if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
33002 $as_echo_n "(cached) " >&6
33004 case $RLEEncodeDelegate in
33006 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33010 for as_dir in $PATH
33013 test -z "$as_dir" && as_dir=.
33014 for ac_exec_ext in '' $ac_executable_extensions; do
33015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33016 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33024 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33028 RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33029 if test -n "$RLEEncodeDelegate"; then
33030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
33031 $as_echo "$RLEEncodeDelegate" >&6; }
33033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33034 $as_echo "no" >&6; }
33038 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33039 set dummy "$RMDelegateDefault"; ac_word=$2
33040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33041 $as_echo_n "checking for $ac_word... " >&6; }
33042 if ${ac_cv_path_RMDelegate+:} false; then :
33043 $as_echo_n "(cached) " >&6
33045 case $RMDelegate in
33047 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33051 for as_dir in $PATH
33054 test -z "$as_dir" && as_dir=.
33055 for ac_exec_ext in '' $ac_executable_extensions; do
33056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33057 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
33058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33065 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33069 RMDelegate=$ac_cv_path_RMDelegate
33070 if test -n "$RMDelegate"; then
33071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
33072 $as_echo "$RMDelegate" >&6; }
33074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33075 $as_echo "no" >&6; }
33079 # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33080 set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33082 $as_echo_n "checking for $ac_word... " >&6; }
33083 if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
33084 $as_echo_n "(cached) " >&6
33086 case $RSVGDecodeDelegate in
33088 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33092 for as_dir in $PATH
33095 test -z "$as_dir" && as_dir=.
33096 for ac_exec_ext in '' $ac_executable_extensions; do
33097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33098 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33106 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33110 RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33111 if test -n "$RSVGDecodeDelegate"; then
33112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33113 $as_echo "$RSVGDecodeDelegate" >&6; }
33115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33116 $as_echo "no" >&6; }
33120 # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33121 set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
33122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33123 $as_echo_n "checking for $ac_word... " >&6; }
33124 if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
33125 $as_echo_n "(cached) " >&6
33127 case $SCANDecodeDelegate in
33129 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33133 for as_dir in $PATH
33136 test -z "$as_dir" && as_dir=.
33137 for ac_exec_ext in '' $ac_executable_extensions; do
33138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33139 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33147 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33151 SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33152 if test -n "$SCANDecodeDelegate"; then
33153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
33154 $as_echo "$SCANDecodeDelegate" >&6; }
33156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33157 $as_echo "no" >&6; }
33161 # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33162 set dummy "$TXTDelegateDefault"; ac_word=$2
33163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33164 $as_echo_n "checking for $ac_word... " >&6; }
33165 if ${ac_cv_path_TXTDelegate+:} false; then :
33166 $as_echo_n "(cached) " >&6
33168 case $TXTDelegate in
33170 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33174 for as_dir in $PATH
33177 test -z "$as_dir" && as_dir=.
33178 for ac_exec_ext in '' $ac_executable_extensions; do
33179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33180 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
33181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33188 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33192 TXTDelegate=$ac_cv_path_TXTDelegate
33193 if test -n "$TXTDelegate"; then
33194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
33195 $as_echo "$TXTDelegate" >&6; }
33197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33198 $as_echo "no" >&6; }
33202 # Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33203 set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33205 $as_echo_n "checking for $ac_word... " >&6; }
33206 if ${ac_cv_path_UniconvertorDelegate+:} false; then :
33207 $as_echo_n "(cached) " >&6
33209 case $UniconvertorDelegate in
33211 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33215 for as_dir in $PATH
33218 test -z "$as_dir" && as_dir=.
33219 for ac_exec_ext in '' $ac_executable_extensions; do
33220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33221 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33229 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33233 UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33234 if test -n "$UniconvertorDelegate"; then
33235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33236 $as_echo "$UniconvertorDelegate" >&6; }
33238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33239 $as_echo "no" >&6; }
33243 # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33244 set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
33245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33246 $as_echo_n "checking for $ac_word... " >&6; }
33247 if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
33248 $as_echo_n "(cached) " >&6
33250 case $WMFDecodeDelegate in
33252 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33256 for as_dir in $PATH
33259 test -z "$as_dir" && as_dir=.
33260 for ac_exec_ext in '' $ac_executable_extensions; do
33261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33262 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33270 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33274 WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33275 if test -n "$WMFDecodeDelegate"; then
33276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
33277 $as_echo "$WMFDecodeDelegate" >&6; }
33279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33280 $as_echo "no" >&6; }
33284 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33285 set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
33286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33287 $as_echo_n "checking for $ac_word... " >&6; }
33288 if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
33289 $as_echo_n "(cached) " >&6
33291 case $WWWDecodeDelegate in
33293 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33297 for as_dir in $PATH
33300 test -z "$as_dir" && as_dir=.
33301 for ac_exec_ext in '' $ac_executable_extensions; do
33302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33303 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33311 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33315 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33316 if test -n "$WWWDecodeDelegate"; then
33317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
33318 $as_echo "$WWWDecodeDelegate" >&6; }
33320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33321 $as_echo "no" >&6; }
33325 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33326 set dummy "$XPSDelegateDefault"; ac_word=$2
33327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33328 $as_echo_n "checking for $ac_word... " >&6; }
33329 if ${ac_cv_path_XPSDelegate+:} false; then :
33330 $as_echo_n "(cached) " >&6
33332 case $XPSDelegate in
33334 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33338 for as_dir in $PATH
33341 test -z "$as_dir" && as_dir=.
33342 for ac_exec_ext in '' $ac_executable_extensions; do
33343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33344 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
33345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33352 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33356 XPSDelegate=$ac_cv_path_XPSDelegate
33357 if test -n "$XPSDelegate"; then
33358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
33359 $as_echo "$XPSDelegate" >&6; }
33361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33362 $as_echo "no" >&6; }
33366 # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33367 set dummy "$ZipDelegateDefault"; ac_word=$2
33368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33369 $as_echo_n "checking for $ac_word... " >&6; }
33370 if ${ac_cv_path_ZipDelegate+:} false; then :
33371 $as_echo_n "(cached) " >&6
33373 case $ZipDelegate in
33375 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33379 for as_dir in $PATH
33382 test -z "$as_dir" && as_dir=.
33383 for ac_exec_ext in '' $ac_executable_extensions; do
33384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33385 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
33386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33393 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33397 ZipDelegate=$ac_cv_path_ZipDelegate
33398 if test -n "$ZipDelegate"; then
33399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
33400 $as_echo "$ZipDelegate" >&6; }
33402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33403 $as_echo "no" >&6; }
33408 # Prefer lpr to lp; lp needs options tacked on.
33409 if test "$LPRDelegate" != no; then
33410 PrintDelegate="$LPRDelegate"
33412 PrintDelegate="$LPDelegate -c -s"
33416 # Installed ImageMagick utiltity paths
33417 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33418 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33419 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33421 # Set delegate booleans
33422 have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33423 have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33424 have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33425 have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33426 have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
33427 have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
33428 have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33429 have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
33430 have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33431 have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33434 # Test for font directories
33436 type_include_files=''
33439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33440 $as_echo_n "checking for Dejavu fonts directory... " >&6; }
33442 if test "${with_dejavu_font_dir}" != 'default'; then
33443 dejavu_font_dir="${with_dejavu_font_dir}/"
33445 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33446 if test -f "${font_dir}DejaVuSerif.ttf"; then
33447 dejavu_font_dir="${font_dir}"
33452 if test "${dejavu_font_dir}x" != 'x'; then
33453 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
33454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
33455 $as_echo "$dejavu_font_dir" >&6; }
33457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
33458 $as_echo "not found!" >&6; };
33463 windows_font_dir=''
33464 if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
33465 windows_font_dir="${with_windows_font_dir}/"
33467 if test "${windows_font_dir}x" != 'x'; then
33468 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
33469 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
33471 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
33472 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
33474 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
33475 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
33478 if test "${windows_font_dir}x" != 'x'; then
33479 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
33484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
33485 $as_echo_n "checking for Ghostscript fonts directory... " >&6; }
33486 ghostscript_font_dir=''
33487 if test "${with_gs_font_dir}" != 'default'; then
33488 ghostscript_font_dir="${with_gs_font_dir}/"
33490 if test "${native_win32_build}" = 'yes'; then
33491 # Native Windows Build
33492 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
33493 if test -f "${font_dir}a010013l.pfb"; then
33494 ghostscript_font_dir="$font_dir"
33498 if test "${PSDelegate}" != 'gswin32c'; then
33499 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
33502 # Linux / Mac OS X / Unix Build
33503 for font_dir in "${prefix}/share/ghostscript/fonts/" '/usr/share/fonts/default/Type1/' '/usr/share/ghostscript/fonts/' '/usr/share/fonts/ghostscript/' '/usr/share/fonts/type1/gsfonts/' '/opt/local/share/ghostscript/fonts/' '/sw/share/ghostscript/fonts/' '/System/Library/Frameworks/Ghostscript.framework/Resources/fonts/'; do
33504 if test -f "${font_dir}a010013l.pfb"; then
33505 ghostscript_font_dir="${font_dir}"
33509 if test "${ghostscript_font_dir}x" = 'x'; then
33510 if test "$PSDelegate" != 'gs'; then
33511 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
33516 if test "${ghostscript_font_dir}x" != 'x'; then
33517 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
33518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
33519 $as_echo "$ghostscript_font_dir" >&6; }
33521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
33522 $as_echo "not found!" >&6; };
33525 case "${build_os}" in
33527 PSDelegate=`$WinPathScript "$PSDelegate" 1`
33534 # Handle case where user doesn't want frozen paths
33536 if test "$with_frozenpaths" != 'yes'; then
33537 # Re-set delegate definitions to default (no paths)
33538 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
33539 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
33540 BZIPDelegate="$BZIPDelegateDefault"
33541 BrowseDelegate="$BrowseDelegateDefault"
33542 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
33543 CatDelegate="$CatDelegateDefault"
33544 ConvertDelegate="$ConvertDelegateDefault"
33545 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
33546 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
33547 EchoDelegate="$EchoDelegateDefault"
33548 EditorDelegate="$EditorDelegateDefault"
33549 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
33550 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
33551 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
33552 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
33553 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
33554 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
33555 LPDelegate="$LPDelegateDefault"
33556 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
33557 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
33558 LaunchDelegate="$LaunchDelegateDefault"
33559 MANDelegate="$MANDelegateDefault"
33560 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
33561 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
33562 MogrifyDelegate="$MogrifyDelegateDefault"
33563 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
33564 MVDelegate="$MVDelegateDefault"
33565 PCLDelegate="$PCLDelegateDefault"
33566 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
33567 POVDelegate="$POVDelegateDefault"
33568 PSDelegate="$PSDelegateDefault"
33569 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
33570 RMDelegate="$RMDelegateDefault"
33571 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
33572 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
33573 ShowImageDelegate="$ShowImageDelegateDefault"
33574 TXTDelegate="$TXTDelegateDefault"
33575 UniconvertorDelegate="$UniconvertorDelegateDefault"
33576 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
33577 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
33578 XPSDelegate="$XPSDelegateDefault"
33579 ZipDelegate="$ZipDelegateDefault"
33582 # Delegate substitutions
33629 for ac_prog in gnutar gtar tar
33631 # Extract the first word of "$ac_prog", so it can be a program name with args.
33632 set dummy $ac_prog; ac_word=$2
33633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33634 $as_echo_n "checking for $ac_word... " >&6; }
33635 if ${ac_cv_prog_TAR+:} false; then :
33636 $as_echo_n "(cached) " >&6
33638 if test -n "$TAR"; then
33639 ac_cv_prog_TAR="$TAR" # Let the user override the test.
33641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33642 for as_dir in $PATH
33645 test -z "$as_dir" && as_dir=.
33646 for ac_exec_ext in '' $ac_executable_extensions; do
33647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33648 ac_cv_prog_TAR="$ac_prog"
33649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33658 TAR=$ac_cv_prog_TAR
33659 if test -n "$TAR"; then
33660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
33661 $as_echo "$TAR" >&6; }
33663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33664 $as_echo "no" >&6; }
33668 test -n "$TAR" && break
33671 for ac_prog in perl
33673 # Extract the first word of "$ac_prog", so it can be a program name with args.
33674 set dummy $ac_prog; ac_word=$2
33675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33676 $as_echo_n "checking for $ac_word... " >&6; }
33677 if ${ac_cv_prog_PERL+:} false; then :
33678 $as_echo_n "(cached) " >&6
33680 if test -n "$PERL"; then
33681 ac_cv_prog_PERL="$PERL" # Let the user override the test.
33683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33684 for as_dir in $PATH
33687 test -z "$as_dir" && as_dir=.
33688 for ac_exec_ext in '' $ac_executable_extensions; do
33689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33690 ac_cv_prog_PERL="$ac_prog"
33691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33700 PERL=$ac_cv_prog_PERL
33701 if test -n "$PERL"; then
33702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
33703 $as_echo "$PERL" >&6; }
33705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33706 $as_echo "no" >&6; }
33710 test -n "$PERL" && break
33713 for ac_prog in rpmbuild rpm
33715 # Extract the first word of "$ac_prog", so it can be a program name with args.
33716 set dummy $ac_prog; ac_word=$2
33717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33718 $as_echo_n "checking for $ac_word... " >&6; }
33719 if ${ac_cv_prog_RPM+:} false; then :
33720 $as_echo_n "(cached) " >&6
33722 if test -n "$RPM"; then
33723 ac_cv_prog_RPM="$RPM" # Let the user override the test.
33725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33726 for as_dir in $PATH
33729 test -z "$as_dir" && as_dir=.
33730 for ac_exec_ext in '' $ac_executable_extensions; do
33731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33732 ac_cv_prog_RPM="$ac_prog"
33733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33742 RPM=$ac_cv_prog_RPM
33743 if test -n "$RPM"; then
33744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
33745 $as_echo "$RPM" >&6; }
33747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33748 $as_echo "no" >&6; }
33752 test -n "$RPM" && break
33756 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
33759 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
33762 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
33765 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
33768 if test "x$RPM" != "x" ; then
33770 RPM_DELEGATE_FALSE='#'
33772 RPM_DELEGATE_TRUE='#'
33773 RPM_DELEGATE_FALSE=
33778 # 7ZIP support (http://p7zip.sourceforge.net/)
33783 # Extract the first word of "$ac_prog", so it can be a program name with args.
33784 set dummy $ac_prog; ac_word=$2
33785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33786 $as_echo_n "checking for $ac_word... " >&6; }
33787 if ${ac_cv_prog_P7ZIP+:} false; then :
33788 $as_echo_n "(cached) " >&6
33790 if test -n "$P7ZIP"; then
33791 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
33793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33794 for as_dir in $PATH
33797 test -z "$as_dir" && as_dir=.
33798 for ac_exec_ext in '' $ac_executable_extensions; do
33799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33800 ac_cv_prog_P7ZIP="$ac_prog"
33801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33810 P7ZIP=$ac_cv_prog_P7ZIP
33811 if test -n "$P7ZIP"; then
33812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
33813 $as_echo "$P7ZIP" >&6; }
33815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33816 $as_echo "no" >&6; }
33820 test -n "$P7ZIP" && break
33824 if test "x$P7ZIP" != "x" ; then
33825 P7ZIP_DELEGATE_TRUE=
33826 P7ZIP_DELEGATE_FALSE='#'
33828 P7ZIP_DELEGATE_TRUE='#'
33829 P7ZIP_DELEGATE_FALSE=
33834 # ZIP support (http://www.info-zip.org/Zip.html)
33839 # Extract the first word of "$ac_prog", so it can be a program name with args.
33840 set dummy $ac_prog; ac_word=$2
33841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33842 $as_echo_n "checking for $ac_word... " >&6; }
33843 if ${ac_cv_prog_ZIP+:} false; then :
33844 $as_echo_n "(cached) " >&6
33846 if test -n "$ZIP"; then
33847 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
33849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33850 for as_dir in $PATH
33853 test -z "$as_dir" && as_dir=.
33854 for ac_exec_ext in '' $ac_executable_extensions; do
33855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33856 ac_cv_prog_ZIP="$ac_prog"
33857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33866 ZIP=$ac_cv_prog_ZIP
33867 if test -n "$ZIP"; then
33868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
33869 $as_echo "$ZIP" >&6; }
33871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33872 $as_echo "no" >&6; }
33876 test -n "$ZIP" && break
33880 if test "x$ZIP" != "x" ; then
33882 ZIP_DELEGATE_FALSE='#'
33884 ZIP_DELEGATE_TRUE='#'
33885 ZIP_DELEGATE_FALSE=
33890 # GhostPCL related configuration.
33892 PCLColorDevice=ppmraw
33893 PCLCMYKDevice=bmpsep8
33894 PCLMonoDevice=pbmraw
33895 if test -z "$PCLVersion"; then
33896 PCLVersion='unknown'
33898 if test $have_pcl = 'yes'; then
33899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33900 $as_echo "-------------------------------------------------------------" >&6; }
33901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
33902 $as_echo_n "checking for PCL... " >&6; }
33903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
33907 $as_echo_n "checking for pcl color device... " >&6; }
33908 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33911 PCLColorDevice=ppmraw
33913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
33914 $as_echo "$PCLColorDevice" >&6; }
33917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
33918 $as_echo_n "checking for pcl CMYK device... " >&6; }
33919 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33922 PCLCMYKDevice=$PCLColorDevice
33924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
33925 $as_echo "$PCLCMYKDevice" >&6; }
33928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
33929 $as_echo_n "checking for pcl mono device... " >&6; }
33930 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33933 PCLMonoDevice=$PCLColorDevice
33935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
33936 $as_echo "$PCLMonoDevice" >&6; }
33945 # GhostXPS related configuration.
33947 XPSColorDevice=ppmraw
33948 XPSCMYKDevice=bmpsep8
33949 XPSMonoDevice=pbmraw
33950 if test -z "$XPSVersion"; then
33951 XPSVersion='unknown'
33953 if test $have_xps = 'yes'; then
33954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33955 $as_echo "-------------------------------------------------------------" >&6; }
33956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
33957 $as_echo_n "checking for XPS... " >&6; }
33958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
33962 $as_echo_n "checking for xps color device... " >&6; }
33963 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33966 XPSColorDevice=ppmraw
33968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
33969 $as_echo "$XPSColorDevice" >&6; }
33972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
33973 $as_echo_n "checking for xps CMYK device... " >&6; }
33974 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33977 XPSCMYKDevice=$XPSColorDevice
33979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
33980 $as_echo "$XPSCMYKDevice" >&6; }
33983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
33984 $as_echo_n "checking for xps mono device... " >&6; }
33985 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33988 XPSMonoDevice=$XPSColorDevice
33990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
33991 $as_echo "$XPSMonoDevice" >&6; }
34000 # Ghostscript related configuration.
34002 GSAlphaDevice=pngalpha
34003 GSColorDevice=pnmraw
34005 GSMonoDevice=pbmraw
34006 GSPDFDevice=pdfwrite
34008 GSEPSDevice=epswrite
34009 GSVersion='unknown'
34010 if test $have_gs = 'yes'; then
34011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34012 $as_echo "-------------------------------------------------------------" >&6; }
34013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
34014 $as_echo_n "checking for Ghostscript... " >&6; }
34015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
34018 $as_echo_n "checking for Ghostscript version... " >&6; }
34019 if GSVersion=`$PSDelegate --version`; then
34022 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
34025 $as_echo "$GSVersion" >&6; }
34028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
34029 $as_echo_n "checking for gs alpha device... " >&6; }
34030 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34033 GSAlphaDevice=pnmraw
34035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
34036 $as_echo "$GSAlphaDevice" >&6; }
34039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
34040 $as_echo_n "checking for gs color device... " >&6; }
34041 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34044 GSColorDevice=pnmraw
34046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
34047 $as_echo "$GSColorDevice" >&6; }
34050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
34051 $as_echo_n "checking for gs CMYK device... " >&6; }
34052 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34055 GSCMYKDevice=bmpsep8
34057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
34058 $as_echo "$GSCMYKDevice" >&6; }
34061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
34062 $as_echo_n "checking for gs mono device... " >&6; }
34063 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34066 GSMonoDevice=$GSColorDevice
34068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
34069 $as_echo "$GSMonoDevice" >&6; }
34072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
34073 $as_echo_n "checking for gs PDF writing device... " >&6; }
34074 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34077 GSPDFDevice=nodevice
34079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
34080 $as_echo "$GSPDFDevice" >&6; }
34083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
34084 $as_echo_n "checking for gs PS writing device... " >&6; }
34085 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34088 GSPSDevice=nodevice
34090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
34091 $as_echo "$GSPSDevice" >&6; }
34094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
34095 $as_echo_n "checking for gs EPS writing device... " >&6; }
34096 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34099 GSEPSDevice=nodevice
34101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
34102 $as_echo "$GSEPSDevice" >&6; }
34115 # PerlMagick-related configuration
34118 # Look for PERL if PerlMagick requested
34119 # If name/path of desired PERL interpreter is specified, look for that one first
34121 if test "$with_perl" != 'no'; then
34122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34123 $as_echo "-------------------------------------------------------------" >&6; }
34124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
34125 $as_echo_n "checking for Perl... " >&6; }
34126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34128 if test "$with_perl" != 'yes'; then
34129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
34130 $as_echo_n "checking for perl... " >&6; }
34131 if ${ac_cv_path_PERL+:} false; then :
34132 $as_echo_n "(cached) " >&6
34134 ac_cv_path_PERL="$with_perl"
34136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
34137 $as_echo "$ac_cv_path_PERL" >&6; };
34138 PERL=$ac_cv_path_PERL
34139 have_perl="$ac_cv_path_PERL"
34141 for ac_prog in perl perl5
34143 # Extract the first word of "$ac_prog", so it can be a program name with args.
34144 set dummy $ac_prog; ac_word=$2
34145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34146 $as_echo_n "checking for $ac_word... " >&6; }
34147 if ${ac_cv_path_PERL+:} false; then :
34148 $as_echo_n "(cached) " >&6
34152 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34156 for as_dir in $PATH
34159 test -z "$as_dir" && as_dir=.
34160 for ac_exec_ext in '' $ac_executable_extensions; do
34161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34162 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
34163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34173 PERL=$ac_cv_path_PERL
34174 if test -n "$PERL"; then
34175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
34176 $as_echo "$PERL" >&6; }
34178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34179 $as_echo "no" >&6; }
34183 test -n "$PERL" && break
34185 if test "$ac_cv_path_PERL"; then
34186 have_perl="$ac_cv_path_PERL"
34191 if test "$with_perl" != 'yes' ; then
34192 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34195 PERL_SUPPORTS_DESTDIR='no'
34197 with_perl_static='no'
34198 with_perl_dynamic='no'
34199 if test "$have_perl" != 'no'; then
34200 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34201 with_perl_static='yes'
34203 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34204 with_perl_dynamic='yes'
34206 # Is PERL's MakeMaker new enough to support DESTDIR?
34211 if test -n "$PERL"; then :
34213 ax_perl_version="5.8.1"
34215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34216 $as_echo_n "checking for perl version... " >&6; }
34218 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34221 $as_echo "$perl_version" >&6; }
34223 PERL_VERSION=$perl_version
34229 # Used to indicate true or false condition
34230 ax_compare_version=false
34232 # Convert the two version strings to be compared into a format that
34233 # allows a simple string comparison. The end result is that a version
34234 # string of the form 1.12.5-r617 will be converted to the form
34235 # 0001001200050617. In other words, each number is zero padded to four
34236 # digits, and non digits are removed.
34238 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34239 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34240 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34241 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34245 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34246 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34247 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34248 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34252 ax_compare_version=`echo "x$ax_compare_version_A
34253 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34257 if test "$ax_compare_version" = "true" ; then
34260 PERL_SUPPORTS_DESTDIR='yes'
34264 PERL_SUPPORTS_DESTDIR='no'
34271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34272 $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34273 PERL_SUPPORTS_DESTDIR='no'
34278 if test "$have_perl" != 'no'; then
34280 WITH_PERL_FALSE='#'
34286 if test $with_perl_static = 'yes'; then
34287 WITH_PERL_STATIC_TRUE=
34288 WITH_PERL_STATIC_FALSE='#'
34290 WITH_PERL_STATIC_TRUE='#'
34291 WITH_PERL_STATIC_FALSE=
34294 if test $with_perl_dynamic = 'yes'; then
34295 WITH_PERL_DYNAMIC_TRUE=
34296 WITH_PERL_DYNAMIC_FALSE='#'
34298 WITH_PERL_DYNAMIC_TRUE='#'
34299 WITH_PERL_DYNAMIC_FALSE=
34304 # Determine path to pick up MagickCore library from for use with building PerlMagick
34305 MAGICKCORE_PATH="${LIB_DIR}"
34306 if test $with_perl_static = 'yes'; then
34307 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34308 libtool_objdir=$objdir
34310 # Linker search path to library, followed by -lMagickCore
34311 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
34315 # Create a simple string containing format names for all delegate libraries
34317 if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34318 if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34319 if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34320 if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34321 if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34322 if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34323 if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34324 if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34325 if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34326 if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34327 if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34328 if test "$have_jpeg" = 'yes'; then
34329 DELEGATES="$DELEGATES jpeg";
34330 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34332 if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
34333 if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
34334 if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34335 if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
34336 if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
34337 if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34338 if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
34339 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
34340 if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34341 if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34342 if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34343 if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34344 if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34345 if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34350 # Handle special compiler flags
34353 # Add '-p' if prof source profiling support enabled
34354 if test "$enable_prof" = 'yes'; then
34355 CFLAGS="-p $CFLAGS"
34356 CXXFLAGS="-p $CXXFLAGS"
34357 LDFLAGS="-p $LDFLAGS"
34360 # Add '-pg' if gprof source profiling support enabled
34361 if test "$enable_gprof" = 'yes'; then
34362 CFLAGS="-pg $CFLAGS"
34363 CXXFLAGS="-pg $CXXFLAGS"
34364 LDFLAGS="-pg $LDFLAGS"
34367 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34368 # This is a gcc-specific feature
34369 if test "$enable_gcov" = 'yes'; then
34370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
34371 $as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
34372 if ${ac_cv_lib_gcov__gcov_init+:} false; then :
34373 $as_echo_n "(cached) " >&6
34375 ac_check_lib_save_LIBS=$LIBS
34376 LIBS="-lgcov $LIBS"
34377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34378 /* end confdefs.h. */
34380 /* Override any GCC internal prototype to avoid an error.
34381 Use char because int might match the return type of a GCC
34382 builtin and then its argument prototype would still apply. */
34386 char _gcov_init ();
34390 return _gcov_init ();
34395 if ac_fn_c_try_link "$LINENO"; then :
34396 ac_cv_lib_gcov__gcov_init=yes
34398 ac_cv_lib_gcov__gcov_init=no
34400 rm -f core conftest.err conftest.$ac_objext \
34401 conftest$ac_exeext conftest.$ac_ext
34402 LIBS=$ac_check_lib_save_LIBS
34404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
34405 $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
34406 if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
34407 cat >>confdefs.h <<_ACEOF
34408 #define HAVE_LIBGCOV 1
34411 LIBS="-lgcov $LIBS"
34415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
34416 $as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
34417 if ${ac_cv_lib_gcov___gcov_init+:} false; then :
34418 $as_echo_n "(cached) " >&6
34420 ac_check_lib_save_LIBS=$LIBS
34421 LIBS="-lgcov $LIBS"
34422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34423 /* end confdefs.h. */
34425 /* Override any GCC internal prototype to avoid an error.
34426 Use char because int might match the return type of a GCC
34427 builtin and then its argument prototype would still apply. */
34431 char __gcov_init ();
34435 return __gcov_init ();
34440 if ac_fn_c_try_link "$LINENO"; then :
34441 ac_cv_lib_gcov___gcov_init=yes
34443 ac_cv_lib_gcov___gcov_init=no
34445 rm -f core conftest.err conftest.$ac_objext \
34446 conftest$ac_exeext conftest.$ac_ext
34447 LIBS=$ac_check_lib_save_LIBS
34449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
34450 $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
34451 if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
34452 cat >>confdefs.h <<_ACEOF
34453 #define HAVE_LIBGCOV 1
34456 LIBS="-lgcov $LIBS"
34460 case "$target_os" in
34462 OSX_GCOV_LDFLAG="-Wl,-single_module"
34469 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
34470 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
34471 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
34475 # Build library dependency list for libMagickCore
34478 MAGICK_LIBLTDL='' # Libltdl for build
34479 MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
34480 MAGICK_LTDLDEPS='' # extra libltdl dependencies
34481 if test "$with_ltdl" != 'no'
34483 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
34484 MAGICK_API_LIBLTDL='-lltdl'
34486 MAGICK_LIBLTDL=${LIBLTDL}
34487 MAGICK_LTDLDEPS=${LTDLDEPS}
34492 if test "$with_modules" != 'no'; then
34493 MAGICK_DEP_LIBS="$LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JPEG_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
34495 MAGICK_DEP_LIBS="$JBIG_LIBS $LCMS_LIBS $TIFF_LIBS $FREETYPE_LIBS $JP2_LIBS $JPEG_LIBS $GS_LIBS $LQR_LIBS $PNG_LIBS $AUTOTRACE_LIBS $DJVU_LIBS $FFTW_LIBS $FPX_LIBS $FONTCONFIG_LIBS $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
34500 # Remove extraneous spaces from output variables (asthetic)
34502 X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
34503 X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
34504 X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
34505 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
34507 CC=`echo $CC | sed -e 's/ */ /g'`
34508 CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
34509 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
34510 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
34511 DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
34512 DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
34513 LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
34514 TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34515 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
34516 #LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34518 # Pass only user-provided LIBS as "global" libraries
34521 #AC_SUBST(CPPFLAGS)
34524 #AC_SUBST(X_PRE_LIBS)
34526 #AC_SUBST(X_EXTRA_LIBS)
34528 MAGICK_CFLAGS=$CFLAGS
34529 MAGICK_CXXFLAGS="$CXXFLAGS"
34530 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
34531 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
34532 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
34533 MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
34543 # Set configured scripts to executable.
34544 ac_config_commands="$ac_config_commands default"
34546 ac_config_commands="$ac_config_commands MagickCore-config.in"
34548 ac_config_commands="$ac_config_commands Magick-config.in"
34550 ac_config_commands="$ac_config_commands MagickWand-config.in"
34552 ac_config_commands="$ac_config_commands Wand-config.in"
34554 ac_config_commands="$ac_config_commands Magick++-config.in"
34556 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
34559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34560 $as_echo "-------------------------------------------------------------" >&6; }
34561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
34562 $as_echo "Update ImageMagick configuration" >&6; }
34563 cat >confcache <<\_ACEOF
34564 # This file is a shell script that caches the results of configure
34565 # tests run on this system so they can be shared between configure
34566 # scripts and configure runs, see configure's option --config-cache.
34567 # It is not useful on other systems. If it contains results you don't
34568 # want to keep, you may remove or edit it.
34570 # config.status only pays attention to the cache file if you give it
34571 # the --recheck option to rerun configure.
34573 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34574 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34575 # following values.
34579 # The following way of writing the cache mishandles newlines in values,
34580 # but we know of no workaround that is simple, portable, and efficient.
34581 # So, we kill variables containing newlines.
34582 # Ultrix sh set writes to stderr and can't be redirected directly,
34583 # and sets the high bit in the cache file unless we assign to the vars.
34585 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34586 eval ac_val=\$$ac_var
34590 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
34591 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34594 _ | IFS | as_nl) ;; #(
34595 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
34596 *) { eval $ac_var=; unset $ac_var;} ;;
34602 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34603 *${as_nl}ac_space=\ *)
34604 # `set' does not quote correctly, so add quotes: double-quote
34605 # substitution turns \\\\ into \\, and sed turns \\ into \.
34608 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34611 # `set' quotes correctly as required by POSIX, so do not add quotes.
34612 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34621 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34623 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34625 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34626 if test -w "$cache_file"; then
34627 if test "x$cache_file" != "x/dev/null"; then
34628 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
34629 $as_echo "$as_me: updating cache $cache_file" >&6;}
34630 if test ! -f "$cache_file" || test -h "$cache_file"; then
34631 cat confcache >"$cache_file"
34633 case $cache_file in #(
34635 mv -f confcache "$cache_file"$$ &&
34636 mv -f "$cache_file"$$ "$cache_file" ;; #(
34638 mv -f confcache "$cache_file" ;;
34643 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
34644 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34649 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34650 # Let make expand exec_prefix.
34651 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34653 DEFS=-DHAVE_CONFIG_H
34658 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34659 # 1. Remove the extension, and $U if already installed.
34660 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34661 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
34662 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34663 # will be set to the directory where LIBOBJS objects are built.
34664 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34665 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
34667 LIBOBJS=$ac_libobjs
34669 LTLIBOBJS=$ac_ltlibobjs
34672 if test -n "$EXEEXT"; then
34674 am__EXEEXT_FALSE='#'
34676 am__EXEEXT_TRUE='#'
34680 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
34681 as_fn_error $? "conditional \"AMDEP\" was never defined.
34682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34684 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34685 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
34686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34688 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34689 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
34690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34692 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
34693 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
34694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34696 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
34697 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
34698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34700 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
34701 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
34702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34704 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
34705 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
34706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34708 if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
34709 as_fn_error $? "conditional \"USING_CL\" was never defined.
34710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34712 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34713 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
34714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34716 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34717 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
34718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34720 LT_CONFIG_H=config/config.h
34724 if test -n "$_LT_LIBOBJS"; then
34725 # Remove the extension.
34726 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
34727 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
34728 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
34729 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
34732 ltdl_LIBOBJS=$_ltdl_libobjs
34734 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
34737 if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
34738 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
34739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34741 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
34742 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
34743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34745 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
34746 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
34747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34749 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
34750 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
34751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34754 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
34755 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
34756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34758 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
34759 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
34760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34762 if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
34763 as_fn_error $? "conditional \"HasUMEM\" was never defined.
34764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34766 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
34767 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
34768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34770 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
34771 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
34772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34774 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
34775 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
34776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34778 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
34779 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
34780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34782 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
34783 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
34784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34786 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
34787 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
34788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34790 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
34791 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
34792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34794 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
34795 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
34796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34798 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
34799 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
34800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34802 if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
34803 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
34804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34806 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
34807 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
34808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34810 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
34811 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
34812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34814 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
34815 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
34816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34818 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
34819 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
34820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34822 if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
34823 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
34824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34826 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
34827 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
34828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34830 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
34831 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
34832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34834 if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
34835 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
34836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34838 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
34839 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
34840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34842 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
34843 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
34844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34846 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
34847 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
34848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34850 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
34851 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
34852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34854 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
34855 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
34856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34858 if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
34859 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
34860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34862 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
34863 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
34864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34866 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
34867 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
34868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34870 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
34871 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
34872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34874 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
34875 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
34876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34878 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
34879 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
34880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34882 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
34883 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
34884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34886 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
34887 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
34888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34890 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
34891 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
34892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34895 : "${CONFIG_STATUS=./config.status}"
34897 ac_clean_files_save=$ac_clean_files
34898 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34899 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
34900 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
34902 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
34904 # Generated by $as_me.
34905 # Run this file to recreate the current configuration.
34906 # Compiler output produced by configure, useful for debugging
34907 # configure, is in config.log if it exists.
34910 ac_cs_recheck=false
34913 SHELL=\${CONFIG_SHELL-$SHELL}
34916 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
34917 ## -------------------- ##
34918 ## M4sh Initialization. ##
34919 ## -------------------- ##
34921 # Be more Bourne compatible
34922 DUALCASE=1; export DUALCASE # for MKS sh
34923 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
34926 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
34927 # is contrary to our usage. Disable this feature.
34928 alias -g '${1+"$@"}'='"$@"'
34929 setopt NO_GLOB_SUBST
34931 case `(set -o) 2>/dev/null` in #(
34943 # Printing a long string crashes Solaris 7 /usr/bin/printf.
34944 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
34945 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
34946 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
34947 # Prefer a ksh shell builtin over an external printf program on Solaris,
34948 # but without wasting forks for bash or zsh.
34949 if test -z "$BASH_VERSION$ZSH_VERSION" \
34950 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
34951 as_echo='print -r --'
34952 as_echo_n='print -rn --'
34953 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
34954 as_echo='printf %s\n'
34955 as_echo_n='printf %s'
34957 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
34958 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
34959 as_echo_n='/usr/ucb/echo -n'
34961 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
34962 as_echo_n_body='eval
34966 expr "X$arg" : "X\\(.*\\)$as_nl";
34967 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
34969 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
34971 export as_echo_n_body
34972 as_echo_n='sh -c $as_echo_n_body as_echo'
34974 export as_echo_body
34975 as_echo='sh -c $as_echo_body as_echo'
34978 # The user is always right.
34979 if test "${PATH_SEPARATOR+set}" != set; then
34981 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
34982 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
34989 # We need space, tab and new line, in precisely that order. Quoting is
34990 # there to prevent editors from complaining about space-tab.
34991 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
34992 # splitting by setting IFS to empty value.)
34995 # Find who we are. Look in the path if we contain no directory separator.
34998 *[\\/]* ) as_myself=$0 ;;
34999 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35000 for as_dir in $PATH
35003 test -z "$as_dir" && as_dir=.
35004 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35010 # We did not find ourselves, most probably we were run as `sh COMMAND'
35011 # in which case we are not to be found in the path.
35012 if test "x$as_myself" = x; then
35015 if test ! -f "$as_myself"; then
35016 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35020 # Unset variables that we do not need and which cause bugs (e.g. in
35021 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35022 # suppresses any "Segmentation fault" message there. '((' could
35023 # trigger a bug in pdksh 5.2.14.
35024 for as_var in BASH_ENV ENV MAIL MAILPATH
35025 do eval test x\${$as_var+set} = xset \
35026 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
35039 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35042 # as_fn_error STATUS ERROR [LINENO LOG_FD]
35043 # ----------------------------------------
35044 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35045 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
35046 # script with STATUS, using 1 if that was 0.
35049 as_status=$1; test $as_status -eq 0 && as_status=1
35051 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35052 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
35054 $as_echo "$as_me: error: $2" >&2
35055 as_fn_exit $as_status
35059 # as_fn_set_status STATUS
35060 # -----------------------
35061 # Set $? to STATUS, without forking.
35062 as_fn_set_status ()
35065 } # as_fn_set_status
35067 # as_fn_exit STATUS
35068 # -----------------
35069 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35073 as_fn_set_status $1
35079 # Portably unset VAR.
35082 { eval $1=; unset $1;}
35084 as_unset=as_fn_unset
35085 # as_fn_append VAR VALUE
35086 # ----------------------
35087 # Append the text in VALUE to the end of the definition contained in VAR. Take
35088 # advantage of any shell optimizations that allow amortized linear growth over
35089 # repeated appends, instead of the typical quadratic growth present in naive
35091 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35092 eval 'as_fn_append ()
35103 # as_fn_arith ARG...
35104 # ------------------
35105 # Perform arithmetic evaluation on the ARGs, and store the result in the
35106 # global $as_val. Take advantage of shells that can avoid forks. The arguments
35107 # must be portable across $(()) and expr.
35108 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35109 eval 'as_fn_arith ()
35116 as_val=`expr "$@" || test $? -eq 1`
35121 if expr a : '\(a\)' >/dev/null 2>&1 &&
35122 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35128 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35129 as_basename=basename
35134 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35140 as_me=`$as_basename -- "$0" ||
35141 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35142 X"$0" : 'X\(//\)$' \| \
35143 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35145 sed '/^.*\/\([^/][^/]*\)\/*$/{
35159 # Avoid depending upon Character Ranges.
35160 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35161 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35162 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35163 as_cr_digits='0123456789'
35164 as_cr_alnum=$as_cr_Letters$as_cr_digits
35166 ECHO_C= ECHO_N= ECHO_T=
35167 case `echo -n x` in #(((((
35169 case `echo 'xy\c'` in
35170 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35172 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35179 rm -f conf$$ conf$$.exe conf$$.file
35180 if test -d conf$$.dir; then
35181 rm -f conf$$.dir/conf$$.file
35184 mkdir conf$$.dir 2>/dev/null
35186 if (echo >conf$$.file) 2>/dev/null; then
35187 if ln -s conf$$.file conf$$ 2>/dev/null; then
35189 # ... but there are two gotchas:
35190 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35191 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35192 # In both cases, we have to default to `cp -p'.
35193 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35195 elif ln conf$$.file conf$$ 2>/dev/null; then
35203 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35204 rmdir conf$$.dir 2>/dev/null
35209 # Create "$as_dir" as a directory, including parents if necessary.
35214 -*) as_dir=./$as_dir;;
35216 test -d "$as_dir" || eval $as_mkdir_p || {
35220 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35221 *) as_qdir=$as_dir;;
35223 as_dirs="'$as_qdir' $as_dirs"
35224 as_dir=`$as_dirname -- "$as_dir" ||
35225 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35226 X"$as_dir" : 'X\(//\)[^/]' \| \
35227 X"$as_dir" : 'X\(//\)$' \| \
35228 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35229 $as_echo X"$as_dir" |
35230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35234 /^X\(\/\/\)[^/].*/{
35247 test -d "$as_dir" && break
35249 test -z "$as_dirs" || eval "mkdir $as_dirs"
35250 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
35254 if mkdir -p . 2>/dev/null; then
35255 as_mkdir_p='mkdir -p "$as_dir"'
35257 test -d ./-p && rmdir ./-p
35261 if test -x / >/dev/null 2>&1; then
35262 as_test_x='test -x'
35264 if ls -dL / >/dev/null 2>&1; then
35271 if test -d "$1"; then
35277 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
35278 ???[sx]*):;;*)false;;esac;fi
35282 as_executable_p=$as_test_x
35284 # Sed expression to map a string onto a valid CPP name.
35285 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35287 # Sed expression to map a string onto a valid variable name.
35288 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35292 ## ----------------------------------- ##
35293 ## Main body of $CONFIG_STATUS script. ##
35294 ## ----------------------------------- ##
35296 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
35298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35299 # Save the log message, to keep $0 and so on meaningful, and to
35300 # report actual input values of CONFIG_FILES etc. instead of their
35301 # values after options handling.
35303 This file was extended by ImageMagick $as_me 7.0.0, which was
35304 generated by GNU Autoconf 2.68. Invocation command line was
35306 CONFIG_FILES = $CONFIG_FILES
35307 CONFIG_HEADERS = $CONFIG_HEADERS
35308 CONFIG_LINKS = $CONFIG_LINKS
35309 CONFIG_COMMANDS = $CONFIG_COMMANDS
35312 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35317 case $ac_config_files in *"
35318 "*) set x $ac_config_files; shift; ac_config_files=$*;;
35321 case $ac_config_headers in *"
35322 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35327 # Files that config.status was made for.
35328 config_files="$ac_config_files"
35329 config_headers="$ac_config_headers"
35330 config_commands="$ac_config_commands"
35334 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35336 \`$as_me' instantiates files and other configuration actions
35337 from templates according to the current configuration. Unless the files
35338 and actions are specified as TAGs, all are instantiated by default.
35340 Usage: $0 [OPTION]... [TAG]...
35342 -h, --help print this help, then exit
35343 -V, --version print version number and configuration settings, then exit
35344 --config print configuration, then exit
35345 -q, --quiet, --silent
35346 do not print progress messages
35347 -d, --debug don't remove temporary files
35348 --recheck update $as_me by reconfiguring in the same conditions
35349 --file=FILE[:TEMPLATE]
35350 instantiate the configuration file FILE
35351 --header=FILE[:TEMPLATE]
35352 instantiate the configuration header FILE
35354 Configuration files:
35357 Configuration headers:
35360 Configuration commands:
35363 Report bugs to <http://www.imagemagick.org>."
35366 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35367 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
35369 ImageMagick config.status 7.0.0
35370 configured by $0, generated by GNU Autoconf 2.68,
35371 with options \\"\$ac_cs_config\\"
35373 Copyright (C) 2010 Free Software Foundation, Inc.
35374 This config.status script is free software; the Free Software Foundation
35375 gives unlimited permission to copy, distribute and modify it."
35382 test -n "\$AWK" || AWK=awk
35385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35386 # The default lists apply if the user does not specify any file.
35392 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35393 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35397 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35409 # Handling of the options.
35410 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35412 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35413 $as_echo "$ac_cs_version"; exit ;;
35414 --config | --confi | --conf | --con | --co | --c )
35415 $as_echo "$ac_cs_config"; exit ;;
35416 --debug | --debu | --deb | --de | --d | -d )
35418 --file | --fil | --fi | --f )
35421 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35422 '') as_fn_error $? "missing file argument" ;;
35424 as_fn_append CONFIG_FILES " '$ac_optarg'"
35425 ac_need_defaults=false;;
35426 --header | --heade | --head | --hea )
35429 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35431 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
35432 ac_need_defaults=false;;
35434 # Conflict between --help and --header
35435 as_fn_error $? "ambiguous option: \`$1'
35436 Try \`$0 --help' for more information.";;
35437 --help | --hel | -h )
35438 $as_echo "$ac_cs_usage"; exit ;;
35439 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35440 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35443 # This is an error.
35444 -*) as_fn_error $? "unrecognized option: \`$1'
35445 Try \`$0 --help' for more information." ;;
35447 *) as_fn_append ac_config_targets " $1"
35448 ac_need_defaults=false ;;
35454 ac_configure_extra_args=
35456 if $ac_cs_silent; then
35458 ac_configure_extra_args="$ac_configure_extra_args --silent"
35462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35463 if \$ac_cs_recheck; then
35464 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35466 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35467 CONFIG_SHELL='$SHELL'
35468 export CONFIG_SHELL
35473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35477 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35478 ## Running $as_me. ##
35484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35489 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
35492 # The HP-UX ksh and POSIX shell print the target directory to stdout
35493 # if CDPATH is set.
35494 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35496 sed_quote_subst='$sed_quote_subst'
35497 double_quote_subst='$double_quote_subst'
35498 delay_variable_subst='$delay_variable_subst'
35499 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
35500 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
35501 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
35502 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
35503 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
35504 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
35505 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
35506 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
35507 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
35508 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
35509 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
35510 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
35511 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
35512 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
35513 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
35514 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
35515 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
35516 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
35517 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
35518 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
35519 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
35520 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
35521 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
35522 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
35523 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
35524 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
35525 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
35526 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
35527 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
35528 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
35529 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
35530 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
35531 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
35532 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
35533 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
35534 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
35535 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
35536 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
35537 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
35538 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
35539 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
35540 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
35541 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
35542 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
35543 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
35544 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35545 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35546 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
35547 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
35548 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
35549 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
35550 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
35551 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
35552 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
35553 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
35554 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
35555 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"`'
35556 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
35557 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
35558 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
35559 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
35560 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
35561 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
35562 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
35563 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
35564 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
35565 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
35566 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
35567 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
35568 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
35569 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
35570 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
35571 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
35572 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
35573 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
35574 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35575 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
35576 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
35577 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
35578 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
35579 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
35580 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
35581 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35582 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
35583 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35584 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
35585 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35586 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
35587 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
35588 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
35589 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
35590 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
35591 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
35592 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
35593 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
35594 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
35595 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
35596 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
35597 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
35598 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
35599 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
35600 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
35601 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
35602 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
35603 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
35604 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
35605 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
35606 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
35607 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
35608 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
35609 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
35610 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
35611 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
35612 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
35613 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
35614 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
35615 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
35616 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
35617 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35618 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35619 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
35620 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
35621 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
35622 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
35623 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
35624 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
35625 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
35626 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
35627 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
35628 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
35629 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
35630 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
35631 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
35632 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
35633 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
35634 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
35635 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
35636 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
35637 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
35638 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35639 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35640 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
35641 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
35642 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
35643 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
35644 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
35645 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
35646 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
35647 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
35648 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
35649 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35650 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35651 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
35652 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35653 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35654 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35655 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35656 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35657 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35658 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
35659 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35660 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35661 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35662 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
35663 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
35664 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
35665 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
35666 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
35667 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
35668 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
35669 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
35670 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
35671 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
35672 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35673 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35674 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35675 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35676 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35677 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
35678 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
35679 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
35680 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35681 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35682 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
35683 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
35684 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
35687 LTCFLAGS='$LTCFLAGS'
35688 compiler='$compiler_DEFAULT'
35690 # A function that is used when there is no print builtin or printf.
35691 func_fallback_echo ()
35693 eval 'cat <<_LTECHO_EOF
35698 # Quote evaled strings.
35714 deplibs_check_method \
35718 sharedlib_from_linklib_cmd \
35721 archiver_list_spec \
35727 lt_cv_sys_global_symbol_pipe \
35728 lt_cv_sys_global_symbol_to_cdecl \
35729 lt_cv_sys_global_symbol_to_c_name_address \
35730 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
35731 nm_file_list_spec \
35732 lt_prog_compiler_no_builtin_flag \
35733 lt_prog_compiler_pic \
35734 lt_prog_compiler_wl \
35735 lt_prog_compiler_static \
35736 lt_cv_prog_compiler_c_o \
35745 export_dynamic_flag_spec \
35746 whole_archive_flag_spec \
35747 compiler_needs_object \
35749 allow_undefined_flag \
35750 no_undefined_flag \
35751 hardcode_libdir_flag_spec \
35752 hardcode_libdir_flag_spec_ld \
35753 hardcode_libdir_separator \
35757 variables_saved_for_relink \
35759 library_names_spec \
35761 install_override_mode \
35765 compiler_lib_search_dirs \
35770 compiler_lib_search_path \
35774 lt_prog_compiler_no_builtin_flag_CXX \
35775 lt_prog_compiler_pic_CXX \
35776 lt_prog_compiler_wl_CXX \
35777 lt_prog_compiler_static_CXX \
35778 lt_cv_prog_compiler_c_o_CXX \
35779 export_dynamic_flag_spec_CXX \
35780 whole_archive_flag_spec_CXX \
35781 compiler_needs_object_CXX \
35783 allow_undefined_flag_CXX \
35784 no_undefined_flag_CXX \
35785 hardcode_libdir_flag_spec_CXX \
35786 hardcode_libdir_flag_spec_ld_CXX \
35787 hardcode_libdir_separator_CXX \
35788 exclude_expsyms_CXX \
35789 include_expsyms_CXX \
35790 file_list_spec_CXX \
35791 compiler_lib_search_dirs_CXX \
35792 predep_objects_CXX \
35793 postdep_objects_CXX \
35796 compiler_lib_search_path_CXX; do
35797 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
35798 *[\\\\\\\`\\"\\\$]*)
35799 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
35802 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35807 # Double-quote double-evaled strings.
35808 for var in reload_cmds \
35809 old_postinstall_cmds \
35810 old_postuninstall_cmds \
35812 extract_expsyms_cmds \
35813 old_archive_from_new_cmds \
35814 old_archive_from_expsyms_cmds \
35816 archive_expsym_cmds \
35818 module_expsym_cmds \
35819 export_symbols_cmds \
35823 postuninstall_cmds \
35825 sys_lib_search_path_spec \
35826 sys_lib_dlsearch_path_spec \
35828 old_archive_cmds_CXX \
35829 old_archive_from_new_cmds_CXX \
35830 old_archive_from_expsyms_cmds_CXX \
35832 archive_expsym_cmds_CXX \
35834 module_expsym_cmds_CXX \
35835 export_symbols_cmds_CXX \
35837 postlink_cmds_CXX; do
35838 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
35839 *[\\\\\\\`\\"\\\$]*)
35840 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
35843 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35848 ac_aux_dir='$ac_aux_dir'
35849 xsi_shell='$xsi_shell'
35850 lt_shell_append='$lt_shell_append'
35852 # See if we are running on zsh, and set the options which allow our
35853 # commands through without removal of \ escapes INIT.
35854 if test -n "\${ZSH_VERSION+set}" ; then
35855 setopt NO_GLOB_SUBST
35861 TIMESTAMP='$TIMESTAMP'
35872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35874 # Handling of arguments.
35875 for ac_config_target in $ac_config_targets
35877 case $ac_config_target in
35878 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
35879 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
35880 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
35881 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
35882 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
35883 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
35884 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
35885 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
35886 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
35887 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
35888 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
35889 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
35890 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
35891 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
35892 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
35893 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
35894 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
35895 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
35896 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
35897 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35898 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
35899 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
35900 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
35901 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
35902 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
35903 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
35904 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
35905 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
35906 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
35907 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
35908 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
35909 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
35910 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
35911 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
35912 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
35913 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
35914 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
35915 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
35916 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
35917 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
35918 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35919 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
35920 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
35921 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
35922 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
35923 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
35924 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
35926 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
35931 # If the user did not use the arguments to specify the items to instantiate,
35932 # then the envvar interface is used. Set only those that are not.
35933 # We use the long form for the default assignment because of an extremely
35934 # bizarre bug on SunOS 4.1.3.
35935 if $ac_need_defaults; then
35936 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
35937 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
35938 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
35941 # Have a temporary directory for convenience. Make it in the build tree
35942 # simply because there is no reason against having it here, and in addition,
35943 # creating and moving files from /tmp can sometimes cause problems.
35944 # Hook for its removal unless debugging.
35945 # Note that there is a small window in which the directory will not be cleaned:
35946 # after its creation but before its name has been assigned to `$tmp'.
35950 trap 'exit_status=$?
35951 : "${ac_tmp:=$tmp}"
35952 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
35954 trap 'as_fn_exit 1' 1 2 13 15
35956 # Create a (secure) tmp directory for tmp files.
35959 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
35963 tmp=./conf$$-$RANDOM
35964 (umask 077 && mkdir "$tmp")
35965 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
35968 # Set up the scripts for CONFIG_FILES section.
35969 # No need to generate them if there are no CONFIG_FILES.
35970 # This happens for instance with `./config.status config.h'.
35971 if test -n "$CONFIG_FILES"; then
35974 ac_cr=`echo X | tr X '\015'`
35975 # On cygwin, bash can eat \r inside `` if the user requested igncr.
35976 # But we know of no other shell where ac_cr would be empty at this
35977 # point, so we can use a bashism as a fallback.
35978 if test "x$ac_cr" = x; then
35979 eval ac_cr=\$\'\\r\'
35981 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
35982 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
35985 ac_cs_awk_cr=$ac_cr
35988 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
35993 echo "cat >conf$$subs.awk <<_ACEOF" &&
35994 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
35996 } >conf$$subs.sh ||
35997 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
35998 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
36000 for ac_last_try in false false false false false :; do
36001 . ./conf$$subs.sh ||
36002 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36004 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36005 if test $ac_delim_n = $ac_delim_num; then
36007 elif $ac_last_try; then
36008 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36010 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36013 rm -f conf$$subs.sh
36015 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36016 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
36020 s/^/S["/; s/!.*/"]=/
36030 s/\(.\{148\}\)..*/\1/
36032 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36037 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36044 s/\(.\{148\}\)..*/\1/
36046 s/["\\]/\\&/g; s/^/"/; s/$/"/
36050 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36055 ' <conf$$subs.awk | sed '
36060 ' >>$CONFIG_STATUS || ac_write_fail=1
36061 rm -f conf$$subs.awk
36062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36064 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
36065 for (key in S) S_is_set[key] = 1
36071 nfields = split(line, field, "@")
36073 len = length(field[1])
36074 for (i = 2; i < nfields; i++) {
36076 keylen = length(key)
36077 if (S_is_set[key]) {
36079 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36080 len += length(value) + length(field[++i])
36091 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36092 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36093 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36096 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
36097 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
36100 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36101 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
36102 # trailing colons and then remove the whole line if VPATH becomes empty
36103 # (actually we leave an empty line to preserve line numbers).
36104 if test "x$srcdir" = x.; then
36105 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36123 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36124 fi # test -n "$CONFIG_FILES"
36126 # Set up the scripts for CONFIG_HEADERS section.
36127 # No need to generate them if there are no CONFIG_HEADERS.
36128 # This happens for instance with `./config.status Makefile'.
36129 if test -n "$CONFIG_HEADERS"; then
36130 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
36134 # Transform confdefs.h into an awk script `defines.awk', embedded as
36135 # here-document in config.status, that substitutes the proper values into
36136 # config.h.in to produce config.h.
36138 # Create a delimiter string that does not exist in confdefs.h, to ease
36139 # handling of long lines.
36141 for ac_last_try in false false :; do
36142 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36143 if test -z "$ac_tt"; then
36145 elif $ac_last_try; then
36146 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
36148 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36152 # For the awk script, D is an array of macro values keyed by name,
36153 # likewise P contains macro parameters if any. Preserve backslash
36154 # newline sequences.
36156 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36158 s/.\{148\}/&'"$ac_delim"'/g
36161 s/^[ ]*#[ ]*define[ ][ ]*/ /
36168 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36170 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36174 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36175 D["\1"]=" \3\\\\\\n"\\/p
36177 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36182 s/.\{148\}/&'"$ac_delim"'/g
36187 s/["\\]/\\&/g; s/^/"/; s/$/"/p
36190 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36192 ' <confdefs.h | sed '
36193 s/'"$ac_delim"'/"\\\
36194 "/g' >>$CONFIG_STATUS || ac_write_fail=1
36196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36197 for (key in D) D_is_set[key] = 1
36200 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36202 split(line, arg, " ")
36203 if (arg[1] == "#") {
36207 defundef = substr(arg[1], 2)
36210 split(mac1, mac2, "(") #)
36212 prefix = substr(line, 1, index(line, defundef) - 1)
36213 if (D_is_set[macro]) {
36214 # Preserve the white space surrounding the "#".
36215 print prefix "define", macro P[macro] D[macro]
36218 # Replace #undef with comments. This is necessary, for example,
36219 # in the case of _POSIX_SOURCE, which is predefined and required
36220 # on some systems where configure will not decide to define it.
36221 if (defundef == "undef") {
36222 print "/*", prefix defundef, macro, "*/"
36230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36231 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
36232 fi # test -n "$CONFIG_HEADERS"
36235 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36240 :[FHLC]) ac_mode=$ac_tag; continue;;
36242 case $ac_mode$ac_tag in
36244 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
36245 :[FH]-) ac_tag=-:-;;
36246 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36263 -) ac_f="$ac_tmp/stdin";;
36264 *) # Look for the file first in the build tree, then in the source tree
36265 # (if the path is not absolute). The absolute path cannot be DOS-style,
36266 # because $ac_f cannot contain `:'.
36270 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36272 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
36274 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
36275 as_fn_append ac_file_inputs " '$ac_f'"
36278 # Let's still pretend it is `configure' which instantiates (i.e., don't
36279 # use $as_me), people would be surprised to read:
36280 # /* config.h. Generated by config.status. */
36281 configure_input='Generated from '`
36282 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36284 if test x"$ac_file" != x-; then
36285 configure_input="$ac_file. $configure_input"
36286 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
36287 $as_echo "$as_me: creating $ac_file" >&6;}
36289 # Neutralize special characters interpreted by sed in replacement strings.
36290 case $configure_input in #(
36291 *\&* | *\|* | *\\* )
36292 ac_sed_conf_input=`$as_echo "$configure_input" |
36293 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36294 *) ac_sed_conf_input=$configure_input;;
36298 *:-:* | *:-) cat >"$ac_tmp/stdin" \
36299 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
36304 ac_dir=`$as_dirname -- "$ac_file" ||
36305 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36306 X"$ac_file" : 'X\(//\)[^/]' \| \
36307 X"$ac_file" : 'X\(//\)$' \| \
36308 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36309 $as_echo X"$ac_file" |
36310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36314 /^X\(\/\/\)[^/].*/{
36327 as_dir="$ac_dir"; as_fn_mkdir_p
36331 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36333 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36334 # A ".." for each directory in $ac_dir_suffix.
36335 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36336 case $ac_top_builddir_sub in
36337 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36338 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36341 ac_abs_top_builddir=$ac_pwd
36342 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36343 # for backward compatibility:
36344 ac_top_builddir=$ac_top_build_prefix
36347 .) # We are building in place.
36349 ac_top_srcdir=$ac_top_builddir_sub
36350 ac_abs_top_srcdir=$ac_pwd ;;
36351 [\\/]* | ?:[\\/]* ) # Absolute name.
36352 ac_srcdir=$srcdir$ac_dir_suffix;
36353 ac_top_srcdir=$srcdir
36354 ac_abs_top_srcdir=$srcdir ;;
36355 *) # Relative name.
36356 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36357 ac_top_srcdir=$ac_top_build_prefix$srcdir
36358 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36360 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36370 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36371 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36373 ac_MKDIR_P=$MKDIR_P
36375 [\\/$]* | ?:[\\/]* ) ;;
36376 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36381 # If the template does not know about datarootdir, expand it.
36382 # FIXME: This hack should be removed a few years after 2.60.
36383 ac_datarootdir_hack=; ac_datarootdir_seen=
36394 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36395 *datarootdir*) ac_datarootdir_seen=yes;;
36396 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36398 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36401 ac_datarootdir_hack='
36402 s&@datadir@&$datadir&g
36403 s&@docdir@&$docdir&g
36404 s&@infodir@&$infodir&g
36405 s&@localedir@&$localedir&g
36406 s&@mandir@&$mandir&g
36407 s&\\\${datarootdir}&$datarootdir&g' ;;
36411 # Neutralize VPATH when `$srcdir' = `.'.
36412 # Shell code in configure.ac might set extrasub.
36413 # FIXME: do we really want to maintain this feature?
36414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36415 ac_sed_extra="$ac_vpsub
36418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36420 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36421 s|@configure_input@|$ac_sed_conf_input|;t t
36422 s&@top_builddir@&$ac_top_builddir_sub&;t t
36423 s&@top_build_prefix@&$ac_top_build_prefix&;t t
36424 s&@srcdir@&$ac_srcdir&;t t
36425 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36426 s&@top_srcdir@&$ac_top_srcdir&;t t
36427 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36428 s&@builddir@&$ac_builddir&;t t
36429 s&@abs_builddir@&$ac_abs_builddir&;t t
36430 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36431 s&@INSTALL@&$ac_INSTALL&;t t
36432 s&@MKDIR_P@&$ac_MKDIR_P&;t t
36433 $ac_datarootdir_hack
36435 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36436 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36438 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36439 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36440 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36441 "$ac_tmp/out"`; test -z "$ac_out"; } &&
36442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36443 which seems to be undefined. Please make sure it is defined" >&5
36444 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36445 which seems to be undefined. Please make sure it is defined" >&2;}
36447 rm -f "$ac_tmp/stdin"
36449 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36450 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
36452 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36458 if test x"$ac_file" != x-; then
36460 $as_echo "/* $configure_input */" \
36461 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36462 } >"$ac_tmp/config.h" \
36463 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36464 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
36465 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36466 $as_echo "$as_me: $ac_file is unchanged" >&6;}
36469 mv "$ac_tmp/config.h" "$ac_file" \
36470 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36473 $as_echo "/* $configure_input */" \
36474 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
36475 || as_fn_error $? "could not create -" "$LINENO" 5
36477 # Compute "$ac_file"'s index in $config_headers.
36480 for _am_header in $config_headers :; do
36481 case $_am_header in
36482 $_am_arg | $_am_arg:* )
36485 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36488 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
36489 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36490 X"$_am_arg" : 'X\(//\)[^/]' \| \
36491 X"$_am_arg" : 'X\(//\)$' \| \
36492 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
36493 $as_echo X"$_am_arg" |
36494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36498 /^X\(\/\/\)[^/].*/{
36510 s/.*/./; q'`/stamp-h$_am_stamp_count
36513 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
36514 $as_echo "$as_me: executing $ac_file commands" >&6;}
36519 case $ac_file$ac_mode in
36520 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
36521 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
36522 ac_prefix_conf_PKG=`echo MagickCore`
36523 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
36524 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
36525 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
36526 if test ".$ac_prefix_conf_INP" = "."; then
36527 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
36529 *.h) ac_prefix_conf_INP=$ac_file ;;
36532 test ".$ac_prefix_conf_INP" != "." && break
36535 if test ".$ac_prefix_conf_INP" = "."; then
36536 case "$ac_prefix_conf_OUT" in
36537 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
36539 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
36541 *) ac_prefix_conf_INP=config.h
36545 if test -z "$ac_prefix_conf_PKG" ; then
36546 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
36548 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
36549 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
36551 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
36552 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
36553 if test -f $ac_prefix_conf_INP ; then
36554 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
36555 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
36556 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
36557 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
36558 $as_echo "#endif/" >> conftest.prefix
36559 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
36560 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
36561 $as_echo "#endif/" >> conftest.prefix
36562 # now executing _script on _DEF input to create _OUT output file
36563 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
36564 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
36565 echo ' ' >>$tmp/pconfig.h
36566 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
36568 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
36569 echo ' ' >>$tmp/pconfig.h
36570 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
36571 echo "#endif" >>$tmp/pconfig.h
36572 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
36573 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
36574 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
36576 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
36577 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36578 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
36579 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
36580 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
36581 $as_echo X"$ac_prefix_conf_OUT" |
36582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36586 /^X\(\/\/\)[^/].*/{
36599 as_dir="$ac_dir"; as_fn_mkdir_p
36600 rm -f "$ac_prefix_conf_OUT"
36601 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
36603 cp conftest.prefix _configs.sed
36605 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
36610 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
36611 # Autoconf 2.62 quotes --file arguments for eval, but not when files
36612 # are listed without --file. Let's play safe and only enable the eval
36613 # if we detect the quoting.
36614 case $CONFIG_FILES in
36615 *\'*) eval set x "$CONFIG_FILES" ;;
36616 *) set x $CONFIG_FILES ;;
36621 # Strip MF so we end up with the name of the file.
36622 mf=`echo "$mf" | sed -e 's/:.*$//'`
36623 # Check whether this is an Automake generated Makefile or not.
36624 # We used to match only the files named `Makefile.in', but
36625 # some people rename them; so instead we look at the file content.
36626 # Grep'ing the first line is not enough: some people post-process
36627 # each Makefile.in and add a new line on top of each file to say so.
36628 # Grep'ing the whole file is not good either: AIX grep has a line
36629 # limit of 2048, but all sed's we know have understand at least 4000.
36630 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
36631 dirpart=`$as_dirname -- "$mf" ||
36632 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36633 X"$mf" : 'X\(//\)[^/]' \| \
36634 X"$mf" : 'X\(//\)$' \| \
36635 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
36637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36641 /^X\(\/\/\)[^/].*/{
36657 # Extract the definition of DEPDIR, am__include, and am__quote
36658 # from the Makefile without running `make'.
36659 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
36660 test -z "$DEPDIR" && continue
36661 am__include=`sed -n 's/^am__include = //p' < "$mf"`
36662 test -z "am__include" && continue
36663 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
36664 # When using ansi2knr, U may be empty or an underscore; expand it
36665 U=`sed -n 's/^U = //p' < "$mf"`
36666 # Find all dependency output files, they are included files with
36667 # $(DEPDIR) in their names. We invoke sed twice because it is the
36668 # simplest approach to changing $(DEPDIR) to its actual value in the
36670 for file in `sed -n "
36671 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
36672 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
36673 # Make sure the directory exists.
36674 test -f "$dirpart/$file" && continue
36675 fdir=`$as_dirname -- "$file" ||
36676 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36677 X"$file" : 'X\(//\)[^/]' \| \
36678 X"$file" : 'X\(//\)$' \| \
36679 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
36680 $as_echo X"$file" |
36681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36685 /^X\(\/\/\)[^/].*/{
36698 as_dir=$dirpart/$fdir; as_fn_mkdir_p
36699 # echo "creating $dirpart/$file"
36700 echo '# dummy' > "$dirpart/$file"
36707 # See if we are running on zsh, and set the options which allow our
36708 # commands through without removal of \ escapes.
36709 if test -n "${ZSH_VERSION+set}" ; then
36710 setopt NO_GLOB_SUBST
36713 cfgfile="${ofile}T"
36714 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
36717 cat <<_LT_EOF >> "$cfgfile"
36720 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
36721 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
36722 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
36723 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
36725 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
36726 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
36728 # Written by Gordon Matzigkeit, 1996
36730 # This file is part of GNU Libtool.
36732 # GNU Libtool is free software; you can redistribute it and/or
36733 # modify it under the terms of the GNU General Public License as
36734 # published by the Free Software Foundation; either version 2 of
36735 # the License, or (at your option) any later version.
36737 # As a special exception to the GNU General Public License,
36738 # if you distribute this file as part of a program or library that
36739 # is built using GNU Libtool, you may include this file under the
36740 # same distribution terms that you use for the rest of that program.
36742 # GNU Libtool is distributed in the hope that it will be useful,
36743 # but WITHOUT ANY WARRANTY; without even the implied warranty of
36744 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36745 # GNU General Public License for more details.
36747 # You should have received a copy of the GNU General Public License
36748 # along with GNU Libtool; see the file COPYING. If not, a copy
36749 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
36750 # obtained by writing to the Free Software Foundation, Inc.,
36751 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
36754 # The names of the tagged configurations supported by this script.
36755 available_tags="CXX "
36757 # ### BEGIN LIBTOOL CONFIG
36759 # A sed program that does not truncate output.
36762 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
36763 Xsed="\$SED -e 1s/^X//"
36765 # A grep program that handles long lines.
36771 # A literal string matcher.
36774 # Shell to use when invoking shell scripts.
36777 # An echo program that protects backslashes.
36780 # Which release of libtool.m4 was used?
36781 macro_version=$macro_version
36782 macro_revision=$macro_revision
36784 # Assembler program.
36787 # DLL creation program.
36788 DLLTOOL=$lt_DLLTOOL
36790 # Object dumper program.
36791 OBJDUMP=$lt_OBJDUMP
36793 # Whether or not to build shared libraries.
36794 build_libtool_libs=$enable_shared
36796 # Whether or not to build static libraries.
36797 build_old_libs=$enable_static
36799 # What type of objects to build.
36802 # Whether or not to optimize for fast installation.
36803 fast_install=$enable_fast_install
36806 host_alias=$host_alias
36810 # The build system.
36811 build_alias=$build_alias
36815 # A BSD- or MS-compatible name lister.
36818 # Whether we need soft or hard links.
36821 # What is the maximum length of a command?
36822 max_cmd_len=$max_cmd_len
36824 # Object file suffix (normally "o").
36827 # Executable file suffix (normally "").
36830 # whether the shell understands "unset".
36833 # turn spaces into newlines.
36836 # turn newlines into spaces.
36839 # convert \$build file names to \$host format.
36840 to_host_file_cmd=$lt_cv_to_host_file_cmd
36842 # convert \$build files to toolchain format.
36843 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
36845 # Method to check whether dependent libraries are shared objects.
36846 deplibs_check_method=$lt_deplibs_check_method
36848 # Command to use when deplibs_check_method = "file_magic".
36849 file_magic_cmd=$lt_file_magic_cmd
36851 # How to find potential files when deplibs_check_method = "file_magic".
36852 file_magic_glob=$lt_file_magic_glob
36854 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
36855 want_nocaseglob=$lt_want_nocaseglob
36857 # Command to associate shared and link libraries.
36858 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
36863 # Flags to create an archive.
36864 AR_FLAGS=$lt_AR_FLAGS
36866 # How to feed a file listing to the archiver.
36867 archiver_list_spec=$lt_archiver_list_spec
36869 # A symbol stripping program.
36872 # Commands used to install an old-style archive.
36874 old_postinstall_cmds=$lt_old_postinstall_cmds
36875 old_postuninstall_cmds=$lt_old_postuninstall_cmds
36877 # Whether to use a lock for old archive extraction.
36878 lock_old_archive_extraction=$lock_old_archive_extraction
36883 # LTCC compiler flags.
36884 LTCFLAGS=$lt_CFLAGS
36886 # Take the output of nm and produce a listing of raw symbols and C names.
36887 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
36889 # Transform the output of nm in a proper C declaration.
36890 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
36892 # Transform the output of nm in a C name address pair.
36893 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
36895 # Transform the output of nm in a C name address pair when lib prefix is needed.
36896 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
36898 # Specify filename containing input files for \$NM.
36899 nm_file_list_spec=$lt_nm_file_list_spec
36901 # The root where to search for dependent libraries,and in which our libraries should be installed.
36902 lt_sysroot=$lt_sysroot
36904 # The name of the directory that contains temporary libtool files.
36907 # Used to examine libraries when file_magic_cmd begins with "file".
36908 MAGIC_CMD=$MAGIC_CMD
36910 # Must we lock files when doing compilation?
36911 need_locks=$lt_need_locks
36914 MANIFEST_TOOL=$lt_MANIFEST_TOOL
36916 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
36917 DSYMUTIL=$lt_DSYMUTIL
36919 # Tool to change global to local symbols on Mac OS X.
36922 # Tool to manipulate fat objects and archives on Mac OS X.
36925 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
36928 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
36929 OTOOL64=$lt_OTOOL64
36931 # Old archive suffix (normally "a").
36934 # Shared library suffix (normally ".so").
36935 shrext_cmds=$lt_shrext_cmds
36937 # The commands to extract the exported symbol list from a shared archive.
36938 extract_expsyms_cmds=$lt_extract_expsyms_cmds
36940 # Variables whose values should be saved in libtool wrapper scripts and
36941 # restored at link time.
36942 variables_saved_for_relink=$lt_variables_saved_for_relink
36944 # Do we need the "lib" prefix for modules?
36945 need_lib_prefix=$need_lib_prefix
36947 # Do we need a version for libraries?
36948 need_version=$need_version
36950 # Library versioning type.
36951 version_type=$version_type
36953 # Shared library runtime path variable.
36954 runpath_var=$runpath_var
36956 # Shared library path variable.
36957 shlibpath_var=$shlibpath_var
36959 # Is shlibpath searched before the hard-coded library search path?
36960 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
36962 # Format of library name prefix.
36963 libname_spec=$lt_libname_spec
36965 # List of archive names. First name is the real one, the rest are links.
36966 # The last name is the one that the linker finds with -lNAME
36967 library_names_spec=$lt_library_names_spec
36969 # The coded name of the library, if different from the real name.
36970 soname_spec=$lt_soname_spec
36972 # Permission mode override for installation of shared libraries.
36973 install_override_mode=$lt_install_override_mode
36975 # Command to use after installation of a shared archive.
36976 postinstall_cmds=$lt_postinstall_cmds
36978 # Command to use after uninstallation of a shared archive.
36979 postuninstall_cmds=$lt_postuninstall_cmds
36981 # Commands used to finish a libtool library installation in a directory.
36982 finish_cmds=$lt_finish_cmds
36984 # As "finish_cmds", except a single script fragment to be evaled but
36986 finish_eval=$lt_finish_eval
36988 # Whether we should hardcode library paths into libraries.
36989 hardcode_into_libs=$hardcode_into_libs
36991 # Compile-time system search path for libraries.
36992 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
36994 # Run-time system search path for libraries.
36995 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
36997 # Whether dlopen is supported.
36998 dlopen_support=$enable_dlopen
37000 # Whether dlopen of programs is supported.
37001 dlopen_self=$enable_dlopen_self
37003 # Whether dlopen of statically linked programs is supported.
37004 dlopen_self_static=$enable_dlopen_self_static
37006 # Commands to strip libraries.
37007 old_striplib=$lt_old_striplib
37008 striplib=$lt_striplib
37011 # The linker used to build libraries.
37014 # How to create reloadable object files.
37015 reload_flag=$lt_reload_flag
37016 reload_cmds=$lt_reload_cmds
37018 # Commands used to build an old-style archive.
37019 old_archive_cmds=$lt_old_archive_cmds
37021 # A language specific compiler.
37024 # Is the compiler the GNU compiler?
37027 # Compiler flag to turn off builtin functions.
37028 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37030 # Additional compiler flags for building library objects.
37031 pic_flag=$lt_lt_prog_compiler_pic
37033 # How to pass a linker flag through the compiler.
37034 wl=$lt_lt_prog_compiler_wl
37036 # Compiler flag to prevent dynamic linking.
37037 link_static_flag=$lt_lt_prog_compiler_static
37039 # Does compiler simultaneously support -c and -o options?
37040 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37042 # Whether or not to add -lc for building shared libraries.
37043 build_libtool_need_lc=$archive_cmds_need_lc
37045 # Whether or not to disallow shared libs when runtime libs are static.
37046 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37048 # Compiler flag to allow reflexive dlopens.
37049 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37051 # Compiler flag to generate shared objects directly from archives.
37052 whole_archive_flag_spec=$lt_whole_archive_flag_spec
37054 # Whether the compiler copes with passing no objects directly.
37055 compiler_needs_object=$lt_compiler_needs_object
37057 # Create an old-style archive from a shared archive.
37058 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37060 # Create a temporary old-style archive to link instead of a shared archive.
37061 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37063 # Commands used to build a shared archive.
37064 archive_cmds=$lt_archive_cmds
37065 archive_expsym_cmds=$lt_archive_expsym_cmds
37067 # Commands used to build a loadable module if different from building
37068 # a shared archive.
37069 module_cmds=$lt_module_cmds
37070 module_expsym_cmds=$lt_module_expsym_cmds
37072 # Whether we are building with GNU ld or not.
37073 with_gnu_ld=$lt_with_gnu_ld
37075 # Flag that allows shared libraries with undefined symbols to be built.
37076 allow_undefined_flag=$lt_allow_undefined_flag
37078 # Flag that enforces no undefined symbols.
37079 no_undefined_flag=$lt_no_undefined_flag
37081 # Flag to hardcode \$libdir into a binary during linking.
37082 # This must work even if \$libdir does not exist
37083 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37085 # If ld is used when linking, flag to hardcode \$libdir into a binary
37086 # during linking. This must work even if \$libdir does not exist.
37087 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
37089 # Whether we need a single "-rpath" flag with a separated argument.
37090 hardcode_libdir_separator=$lt_hardcode_libdir_separator
37092 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37093 # DIR into the resulting binary.
37094 hardcode_direct=$hardcode_direct
37096 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37097 # DIR into the resulting binary and the resulting library dependency is
37098 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37099 # library is relocated.
37100 hardcode_direct_absolute=$hardcode_direct_absolute
37102 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37103 # into the resulting binary.
37104 hardcode_minus_L=$hardcode_minus_L
37106 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37107 # into the resulting binary.
37108 hardcode_shlibpath_var=$hardcode_shlibpath_var
37110 # Set to "yes" if building a shared library automatically hardcodes DIR
37111 # into the library and all subsequent libraries and executables linked
37113 hardcode_automatic=$hardcode_automatic
37115 # Set to yes if linker adds runtime paths of dependent libraries
37116 # to runtime path list.
37117 inherit_rpath=$inherit_rpath
37119 # Whether libtool must link a program against all its dependency libraries.
37120 link_all_deplibs=$link_all_deplibs
37122 # Set to "yes" if exported symbols are required.
37123 always_export_symbols=$always_export_symbols
37125 # The commands to list exported symbols.
37126 export_symbols_cmds=$lt_export_symbols_cmds
37128 # Symbols that should not be listed in the preloaded symbols.
37129 exclude_expsyms=$lt_exclude_expsyms
37131 # Symbols that must always be exported.
37132 include_expsyms=$lt_include_expsyms
37134 # Commands necessary for linking programs (against libraries) with templates.
37135 prelink_cmds=$lt_prelink_cmds
37137 # Commands necessary for finishing linking programs.
37138 postlink_cmds=$lt_postlink_cmds
37140 # Specify filename containing input files.
37141 file_list_spec=$lt_file_list_spec
37143 # How to hardcode a shared library path into an executable.
37144 hardcode_action=$hardcode_action
37146 # The directories searched by this compiler when creating a shared library.
37147 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37149 # Dependencies to place before and after the objects being linked to
37150 # create a shared library.
37151 predep_objects=$lt_predep_objects
37152 postdep_objects=$lt_postdep_objects
37153 predeps=$lt_predeps
37154 postdeps=$lt_postdeps
37156 # The library search path used internally by the compiler when linking
37157 # a shared library.
37158 compiler_lib_search_path=$lt_compiler_lib_search_path
37160 # ### END LIBTOOL CONFIG
37166 cat <<\_LT_EOF >> "$cfgfile"
37167 # AIX sometimes has problems with the GCC collect2 program. For some
37168 # reason, if we set the COLLECT_NAMES environment variable, the problems
37169 # vanish in a puff of smoke.
37170 if test "X${COLLECT_NAMES+set}" != Xset; then
37172 export COLLECT_NAMES
37179 ltmain="$ac_aux_dir/ltmain.sh"
37182 # We use sed instead of cat because bash on DJGPP gets confused if
37183 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37184 # text mode, it properly converts lines to CR/LF. This bash problem
37185 # is reportedly fixed, but why not run on old versions too?
37186 sed '$q' "$ltmain" >> "$cfgfile" \
37187 || (rm -f "$cfgfile"; exit 1)
37189 if test x"$xsi_shell" = xyes; then
37190 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37194 \ */*) func_dirname_result="${1%/*}${2}" ;;\
37195 \ * ) func_dirname_result="${3}" ;;\
37197 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37198 && mv -f "$cfgfile.tmp" "$cfgfile" \
37199 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37200 test 0 -eq $? || _lt_function_replace_fail=:
37203 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37206 \ func_basename_result="${1##*/}"\
37207 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37208 && mv -f "$cfgfile.tmp" "$cfgfile" \
37209 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37210 test 0 -eq $? || _lt_function_replace_fail=:
37213 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37214 func_dirname_and_basename ()\
37217 \ */*) func_dirname_result="${1%/*}${2}" ;;\
37218 \ * ) func_dirname_result="${3}" ;;\
37220 \ func_basename_result="${1##*/}"\
37221 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37222 && mv -f "$cfgfile.tmp" "$cfgfile" \
37223 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37224 test 0 -eq $? || _lt_function_replace_fail=:
37227 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37230 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37231 \ # positional parameters, so assign one to ordinary parameter first.\
37232 \ func_stripname_result=${3}\
37233 \ func_stripname_result=${func_stripname_result#"${1}"}\
37234 \ func_stripname_result=${func_stripname_result%"${2}"}\
37235 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37236 && mv -f "$cfgfile.tmp" "$cfgfile" \
37237 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37238 test 0 -eq $? || _lt_function_replace_fail=:
37241 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37242 func_split_long_opt ()\
37244 \ func_split_long_opt_name=${1%%=*}\
37245 \ func_split_long_opt_arg=${1#*=}\
37246 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37247 && mv -f "$cfgfile.tmp" "$cfgfile" \
37248 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37249 test 0 -eq $? || _lt_function_replace_fail=:
37252 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37253 func_split_short_opt ()\
37255 \ func_split_short_opt_arg=${1#??}\
37256 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37257 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37258 && mv -f "$cfgfile.tmp" "$cfgfile" \
37259 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37260 test 0 -eq $? || _lt_function_replace_fail=:
37263 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37267 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37268 \ *) func_lo2o_result=${1} ;;\
37270 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37271 && mv -f "$cfgfile.tmp" "$cfgfile" \
37272 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37273 test 0 -eq $? || _lt_function_replace_fail=:
37276 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37279 func_xform_result=${1%.*}.lo\
37280 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37281 && mv -f "$cfgfile.tmp" "$cfgfile" \
37282 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37283 test 0 -eq $? || _lt_function_replace_fail=:
37286 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37289 func_arith_result=$(( $* ))\
37290 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37291 && mv -f "$cfgfile.tmp" "$cfgfile" \
37292 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37293 test 0 -eq $? || _lt_function_replace_fail=:
37296 sed -e '/^func_len ()$/,/^} # func_len /c\
37299 func_len_result=${#1}\
37300 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37301 && mv -f "$cfgfile.tmp" "$cfgfile" \
37302 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37303 test 0 -eq $? || _lt_function_replace_fail=:
37307 if test x"$lt_shell_append" = xyes; then
37308 sed -e '/^func_append ()$/,/^} # func_append /c\
37311 eval "${1}+=\\${2}"\
37312 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37313 && mv -f "$cfgfile.tmp" "$cfgfile" \
37314 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37315 test 0 -eq $? || _lt_function_replace_fail=:
37318 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37319 func_append_quoted ()\
37321 \ func_quote_for_eval "${2}"\
37322 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37323 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37324 && mv -f "$cfgfile.tmp" "$cfgfile" \
37325 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37326 test 0 -eq $? || _lt_function_replace_fail=:
37329 # Save a `func_append' function call where possible by direct use of '+='
37330 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37331 && mv -f "$cfgfile.tmp" "$cfgfile" \
37332 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37333 test 0 -eq $? || _lt_function_replace_fail=:
37335 # Save a `func_append' function call even when '+=' is not available
37336 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37337 && mv -f "$cfgfile.tmp" "$cfgfile" \
37338 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37339 test 0 -eq $? || _lt_function_replace_fail=:
37342 if test x"$_lt_function_replace_fail" = x":"; then
37343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37344 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37348 mv -f "$cfgfile" "$ofile" ||
37349 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37353 cat <<_LT_EOF >> "$ofile"
37355 # ### BEGIN LIBTOOL TAG CONFIG: CXX
37357 # The linker used to build libraries.
37360 # How to create reloadable object files.
37361 reload_flag=$lt_reload_flag_CXX
37362 reload_cmds=$lt_reload_cmds_CXX
37364 # Commands used to build an old-style archive.
37365 old_archive_cmds=$lt_old_archive_cmds_CXX
37367 # A language specific compiler.
37368 CC=$lt_compiler_CXX
37370 # Is the compiler the GNU compiler?
37373 # Compiler flag to turn off builtin functions.
37374 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37376 # Additional compiler flags for building library objects.
37377 pic_flag=$lt_lt_prog_compiler_pic_CXX
37379 # How to pass a linker flag through the compiler.
37380 wl=$lt_lt_prog_compiler_wl_CXX
37382 # Compiler flag to prevent dynamic linking.
37383 link_static_flag=$lt_lt_prog_compiler_static_CXX
37385 # Does compiler simultaneously support -c and -o options?
37386 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37388 # Whether or not to add -lc for building shared libraries.
37389 build_libtool_need_lc=$archive_cmds_need_lc_CXX
37391 # Whether or not to disallow shared libs when runtime libs are static.
37392 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37394 # Compiler flag to allow reflexive dlopens.
37395 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37397 # Compiler flag to generate shared objects directly from archives.
37398 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37400 # Whether the compiler copes with passing no objects directly.
37401 compiler_needs_object=$lt_compiler_needs_object_CXX
37403 # Create an old-style archive from a shared archive.
37404 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37406 # Create a temporary old-style archive to link instead of a shared archive.
37407 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37409 # Commands used to build a shared archive.
37410 archive_cmds=$lt_archive_cmds_CXX
37411 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37413 # Commands used to build a loadable module if different from building
37414 # a shared archive.
37415 module_cmds=$lt_module_cmds_CXX
37416 module_expsym_cmds=$lt_module_expsym_cmds_CXX
37418 # Whether we are building with GNU ld or not.
37419 with_gnu_ld=$lt_with_gnu_ld_CXX
37421 # Flag that allows shared libraries with undefined symbols to be built.
37422 allow_undefined_flag=$lt_allow_undefined_flag_CXX
37424 # Flag that enforces no undefined symbols.
37425 no_undefined_flag=$lt_no_undefined_flag_CXX
37427 # Flag to hardcode \$libdir into a binary during linking.
37428 # This must work even if \$libdir does not exist
37429 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37431 # If ld is used when linking, flag to hardcode \$libdir into a binary
37432 # during linking. This must work even if \$libdir does not exist.
37433 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
37435 # Whether we need a single "-rpath" flag with a separated argument.
37436 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37438 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37439 # DIR into the resulting binary.
37440 hardcode_direct=$hardcode_direct_CXX
37442 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37443 # DIR into the resulting binary and the resulting library dependency is
37444 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37445 # library is relocated.
37446 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37448 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37449 # into the resulting binary.
37450 hardcode_minus_L=$hardcode_minus_L_CXX
37452 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37453 # into the resulting binary.
37454 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37456 # Set to "yes" if building a shared library automatically hardcodes DIR
37457 # into the library and all subsequent libraries and executables linked
37459 hardcode_automatic=$hardcode_automatic_CXX
37461 # Set to yes if linker adds runtime paths of dependent libraries
37462 # to runtime path list.
37463 inherit_rpath=$inherit_rpath_CXX
37465 # Whether libtool must link a program against all its dependency libraries.
37466 link_all_deplibs=$link_all_deplibs_CXX
37468 # Set to "yes" if exported symbols are required.
37469 always_export_symbols=$always_export_symbols_CXX
37471 # The commands to list exported symbols.
37472 export_symbols_cmds=$lt_export_symbols_cmds_CXX
37474 # Symbols that should not be listed in the preloaded symbols.
37475 exclude_expsyms=$lt_exclude_expsyms_CXX
37477 # Symbols that must always be exported.
37478 include_expsyms=$lt_include_expsyms_CXX
37480 # Commands necessary for linking programs (against libraries) with templates.
37481 prelink_cmds=$lt_prelink_cmds_CXX
37483 # Commands necessary for finishing linking programs.
37484 postlink_cmds=$lt_postlink_cmds_CXX
37486 # Specify filename containing input files.
37487 file_list_spec=$lt_file_list_spec_CXX
37489 # How to hardcode a shared library path into an executable.
37490 hardcode_action=$hardcode_action_CXX
37492 # The directories searched by this compiler when creating a shared library.
37493 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
37495 # Dependencies to place before and after the objects being linked to
37496 # create a shared library.
37497 predep_objects=$lt_predep_objects_CXX
37498 postdep_objects=$lt_postdep_objects_CXX
37499 predeps=$lt_predeps_CXX
37500 postdeps=$lt_postdeps_CXX
37502 # The library search path used internally by the compiler when linking
37503 # a shared library.
37504 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
37506 # ### END LIBTOOL TAG CONFIG: CXX
37510 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
37511 "Magick-config.in":C) chmod +x MagickCore/Magick-config ;;
37512 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
37513 "Wand-config.in":C) chmod +x MagickWand/Wand-config ;;
37514 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
37515 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
37523 ac_clean_files=$ac_clean_files_save
37525 test $ac_write_fail = 0 ||
37526 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
37529 # configure is writing to config.log, and then calls config.status.
37530 # config.status does its own redirection, appending to config.log.
37531 # Unfortunately, on DOS this fails, as config.log is still kept open
37532 # by configure, so config.status won't be able to write to it; its
37533 # output is simply discarded. So we exec the FD to /dev/null,
37534 # effectively closing config.log, so it can be properly (re)opened and
37535 # appended to by config.status. When coming back to configure, we
37536 # need to make the FD available again.
37537 if test "$no_create" != yes; then
37539 ac_config_status_args=
37540 test "$silent" = yes &&
37541 ac_config_status_args="$ac_config_status_args --quiet"
37543 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37545 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37546 # would make configure fail if this is the last instruction.
37547 $ac_cs_success || as_fn_exit 1
37549 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
37550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
37551 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
37555 rm -f magick-version
37557 result_dejavu_font_dir='none'
37558 if test "${dejavu_font_dir}x" != 'x'; then
37559 result_dejavu_font_dir=$dejavu_font_dir
37562 result_ghostscript_font_dir='none'
37563 if test "${ghostscript_font_dir}x" != 'x'; then
37564 result_ghostscript_font_dir=$ghostscript_font_dir
37567 result_windows_font_dir='none'
37568 if test "${windows_font_dir}x" != 'x'; then
37569 result_windows_font_dir=${windows_font_dir}
37572 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
37573 ImageMagick is configured as follows. Please verify that this configuration
37574 matches your expectations.
37576 Host system type: $host
37577 Build system type: $build
37580 -------------------------------------------------------------------------------
37581 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37582 Static libraries --enable-static=$enable_static $libtool_build_static_libs
37583 Module support --with-modules=$with_modules $with_modules
37584 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37585 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37586 High Dynamic Range Imagery
37587 --enable-hdri=$enable_hdri $enable_hdri
37589 Delegate Configuration:
37590 BZLIB --with-bzlib=$with_bzlib $have_bzlib
37591 Autotrace --with-autotrace=$with_autotrace $have_autotrace
37592 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
37593 DJVU --with-djvu=$with_djvu $have_djvu
37594 DPS --with-dps=$with_dps $have_dps
37595 FFTW --with-fftw=$with_fftw $have_fftw
37596 FlashPIX --with-fpx=$with_fpx $have_fpx
37597 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37598 FreeType --with-freetype=$with_freetype $have_freetype
37599 GhostPCL None $PCLDelegate ($PCLVersion)
37600 GhostXPS None $XPSDelegate ($XPSVersion)
37601 Ghostscript None $PSDelegate ($GSVersion)
37602 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37603 Ghostscript lib --with-gslib=$with_gslib $have_gslib
37604 Graphviz --with-gvc=$with_gvc $have_gvc
37605 JBIG --with-jbig=$with_jbig $have_jbig
37606 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37607 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
37608 LCMS v1 --with-lcms=$with_lcms $have_lcms
37609 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
37610 LQR --with-lqr=$with_lqr $have_lqr
37611 LZMA --with-lzma=$with_lzma $have_lzma
37612 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37613 OpenEXR --with-openexr=$with_openexr $have_openexr
37614 PERL --with-perl=$with_perl $have_perl
37615 PNG --with-png=$with_png $have_png
37616 RSVG --with-rsvg=$with_rsvg $have_rsvg
37617 TIFF --with-tiff=$with_tiff $have_tiff
37618 WEBP --with-webp=$with_webp $have_webp
37619 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
37620 WMF --with-wmf=$with_wmf $have_wmf
37621 X11 --with-x=$with_x $have_x
37622 XML --with-xml=$with_xml $have_xml
37623 ZLIB --with-zlib=$with_zlib $have_zlib
37626 X_CFLAGS = $X_CFLAGS
37627 X_PRE_LIBS = $X_PRE_LIBS
37629 X_EXTRA_LIBS = $X_EXTRA_LIBS
37631 Options used to compile and link:
37632 PREFIX = $PREFIX_DIR
37633 EXEC-PREFIX = $EXEC_PREFIX_DIR
37634 VERSION = $PACKAGE_VERSION
37637 CPPFLAGS = $MAGICK_CPPFLAGS
37638 PCFLAGS = $MAGICK_PCFLAGS
37641 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37642 LIBS = $MAGICK_LIBS
37644 CXXFLAGS = $CXXFLAGS
37645 FEATURES = $MAGICK_FEATURES
37648 ImageMagick is configured as follows. Please verify that this configuration
37649 matches your expectations.
37651 Host system type: $host
37652 Build system type: $build
37655 -------------------------------------------------------------------------------
37656 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37657 Static libraries --enable-static=$enable_static $libtool_build_static_libs
37658 Module support --with-modules=$with_modules $with_modules
37659 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37660 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37661 High Dynamic Range Imagery
37662 --enable-hdri=$enable_hdri $enable_hdri
37664 Delegate Configuration:
37665 BZLIB --with-bzlib=$with_bzlib $have_bzlib
37666 Autotrace --with-autotrace=$with_autotrace $have_autotrace
37667 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
37668 DJVU --with-djvu=$with_djvu $have_djvu
37669 DPS --with-dps=$with_dps $have_dps
37670 FFTW --with-fftw=$with_fftw $have_fftw
37671 FlashPIX --with-fpx=$with_fpx $have_fpx
37672 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37673 FreeType --with-freetype=$with_freetype $have_freetype
37674 GhostPCL None $PCLDelegate ($PCLVersion)
37675 GhostXPS None $XPSDelegate ($XPSVersion)
37676 Ghostscript None $PSDelegate ($GSVersion)
37677 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37678 Ghostscript lib --with-gslib=$with_gslib $have_gslib
37679 Graphviz --with-gvc=$with_gvc $have_gvc
37680 JBIG --with-jbig=$with_jbig $have_jbig
37681 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37682 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
37683 LCMS v1 --with-lcms=$with_lcms $have_lcms
37684 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
37685 LQR --with-lqr=$with_lqr $have_lqr
37686 LZMA --with-lzma=$with_lzma $have_lzma
37687 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37688 OpenEXR --with-openexr=$with_openexr $have_openexr
37689 PERL --with-perl=$with_perl $have_perl
37690 PNG --with-png=$with_png $have_png
37691 RSVG --with-rsvg=$with_rsvg $have_rsvg
37692 TIFF --with-tiff=$with_tiff $have_tiff
37693 WEBP --with-webp=$with_webp $have_webp
37694 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
37695 WMF --with-wmf=$with_wmf $have_wmf
37696 X11 --with-x=$with_x $have_x
37697 XML --with-xml=$with_xml $have_xml
37698 ZLIB --with-zlib=$with_zlib $have_zlib
37701 X_CFLAGS = $X_CFLAGS
37702 X_PRE_LIBS = $X_PRE_LIBS
37704 X_EXTRA_LIBS = $X_EXTRA_LIBS
37706 Options used to compile and link:
37707 PREFIX = $PREFIX_DIR
37708 EXEC-PREFIX = $EXEC_PREFIX_DIR
37709 VERSION = $PACKAGE_VERSION
37712 CPPFLAGS = $MAGICK_CPPFLAGS
37713 PCFLAGS = $MAGICK_PCFLAGS
37716 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37717 LIBS = $MAGICK_LIBS
37719 CXXFLAGS = $CXXFLAGS
37720 FEATURES = $MAGICK_FEATURES