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
1099 enable_zero_configuration
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-zero-configuration
1825 enable self-contained, embeddable,
1826 zero-configuration ImageMagick
1827 --enable-hdri accurately represent the wide range of intensity
1828 levels found in real scenes
1829 --disable-assert disable assert() statements in build
1830 --enable-maintainer-mode enable make rules and dependencies not useful
1831 (and sometimes confusing) to the casual installer
1832 --enable-ccmalloc enable 'ccmalloc' memory debug support
1833 --enable-efence enable 'efence' memory debug support
1834 --enable-prof enable 'prof' profiling support
1835 --enable-gprof enable 'gprof' profiling support
1836 --enable-gcov enable 'gcov' profiling support
1837 --disable-assert turn off assertions
1840 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1841 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1842 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1843 --with-dmalloc use dmalloc, as in
1844 http://www.dmalloc.com/dmalloc.tar.gz
1845 --without-threads disable threads support
1846 --with-pic try to use only PIC/non-PIC objects [default=use
1848 --with-sysroot=DIR Search for dependent libraries within DIR
1849 (or the compiler's sysroot if not specified).
1850 --with-included-ltdl use the GNU ltdl sources included here
1851 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1852 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1853 --with-modules enable building dynamically loadable modules
1854 --with-method-prefix=PREFIX
1855 prefix MagickCore API methods
1856 --with-quantum-depth=DEPTH
1857 number of bits in a pixel quantum (default 16)
1858 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1860 --with-frozenpaths freeze delegate paths
1861 --without-magick-plus-plus
1862 disable build/install of Magick++
1863 --with-perl enable build/install of PerlMagick
1864 --with-perl-options=OPTIONS
1865 options to pass on command-line when generating
1866 PerlMagick's build file
1867 --with-umem enable umem memory allocation library support
1868 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1869 --without-bzlib disable BZLIB support
1870 --with-x use the X Window System
1871 --without-zlib disable ZLIB support
1872 --with-autotrace enable autotrace support
1873 --without-dps disable Display Postscript support
1874 --without-djvu disable DjVu support
1875 --with-dejavu-font-dir=DIR
1876 DejaVu font directory
1877 --without-fftw disable FFTW support
1878 --without-fpx disable FlashPIX support
1879 --without-fontconfig disable fontconfig support
1880 --without-freetype disable Freetype support
1881 --without-gslib enable Ghostscript library support
1882 --with-fontpath=DIR prepend to default font search path
1883 --with-gs-font-dir=DIR Ghostscript font directory
1884 --without-gvc disable GVC support
1885 --without-jbig disable JBIG support
1886 --without-jpeg disable JPEG support
1887 --without-jp2 disable JPEG-2000 support
1888 --without-lcms disable lcms (v1.1X) support
1889 --without-lcms2 disable lcms (v2.X) support
1890 --without-lqr disable Liquid Rescale support
1891 --without-lzma disable LZMA support
1892 --without-openexr disable OpenEXR support
1893 --without-png disable PNG support
1894 --without-rsvg disable RSVG support
1895 --without-tiff disable TIFF support
1896 --without-webp disable WEBP support
1897 --with-windows-font-dir=DIR
1898 directory containing MS-Windows fonts
1899 --without-wmf disable WMF support
1900 --without-xml disable XML support
1902 Some influential environment variables:
1903 CC C compiler command
1904 CFLAGS C compiler flags
1905 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1906 nonstandard directory <lib dir>
1907 LIBS libraries to pass to the linker, e.g. -l<library>
1908 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1909 you have headers in a nonstandard directory <include dir>
1911 CXX C++ compiler command
1912 CXXFLAGS C++ compiler flags
1913 PKG_CONFIG path to pkg-config utility
1914 CXXCPP C++ preprocessor
1915 XMKMF Path to xmkmf, Makefile generator for X Window System
1917 C compiler flags for AUTOTRACE, overriding pkg-config
1919 linker flags for AUTOTRACE, overriding pkg-config
1921 C compiler flags for FONTCONFIG, overriding pkg-config
1923 linker flags for FONTCONFIG, overriding pkg-config
1924 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1925 GVC_LIBS linker flags for GVC, overriding pkg-config
1926 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1927 LQR_LIBS linker flags for LQR, overriding pkg-config
1929 C compiler flags for OPENEXR, overriding pkg-config
1931 linker flags for OPENEXR, overriding pkg-config
1932 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1933 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1935 C compiler flags for CAIRO_SVG, overriding pkg-config
1937 linker flags for CAIRO_SVG, overriding pkg-config
1939 Use these variables to override the choices made by `configure' or to help
1940 it to find libraries and programs with nonstandard names/locations.
1942 Report bugs to <http://www.imagemagick.org>.
1947 if test "$ac_init_help" = "recursive"; then
1948 # If there are subdirs, report their specific --help.
1949 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1950 test -d "$ac_dir" ||
1951 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1956 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1958 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1959 # A ".." for each directory in $ac_dir_suffix.
1960 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1961 case $ac_top_builddir_sub in
1962 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1963 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1966 ac_abs_top_builddir=$ac_pwd
1967 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1968 # for backward compatibility:
1969 ac_top_builddir=$ac_top_build_prefix
1972 .) # We are building in place.
1974 ac_top_srcdir=$ac_top_builddir_sub
1975 ac_abs_top_srcdir=$ac_pwd ;;
1976 [\\/]* | ?:[\\/]* ) # Absolute name.
1977 ac_srcdir=$srcdir$ac_dir_suffix;
1978 ac_top_srcdir=$srcdir
1979 ac_abs_top_srcdir=$srcdir ;;
1981 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1982 ac_top_srcdir=$ac_top_build_prefix$srcdir
1983 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1985 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1987 cd "$ac_dir" || { ac_status=$?; continue; }
1988 # Check for guested configure.
1989 if test -f "$ac_srcdir/configure.gnu"; then
1991 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1992 elif test -f "$ac_srcdir/configure"; then
1994 $SHELL "$ac_srcdir/configure" --help=recursive
1996 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1998 cd "$ac_pwd" || { ac_status=$?; break; }
2002 test -n "$ac_init_help" && exit $ac_status
2003 if $ac_init_version; then
2005 ImageMagick configure 7.0.0
2006 generated by GNU Autoconf 2.68
2008 Copyright (C) 2010 Free Software Foundation, Inc.
2009 This configure script is free software; the Free Software Foundation
2010 gives unlimited permission to copy, distribute and modify it.
2015 ## ------------------------ ##
2016 ## Autoconf initialization. ##
2017 ## ------------------------ ##
2019 # ac_fn_c_try_compile LINENO
2020 # --------------------------
2021 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2022 ac_fn_c_try_compile ()
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 rm -f conftest.$ac_objext
2026 if { { ac_try="$ac_compile"
2028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2029 *) ac_try_echo=$ac_try;;
2031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2032 $as_echo "$ac_try_echo"; } >&5
2033 (eval "$ac_compile") 2>conftest.err
2035 if test -s conftest.err; then
2036 grep -v '^ *+' conftest.err >conftest.er1
2037 cat conftest.er1 >&5
2038 mv -f conftest.er1 conftest.err
2040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2041 test $ac_status = 0; } && {
2042 test -z "$ac_c_werror_flag" ||
2043 test ! -s conftest.err
2044 } && test -s conftest.$ac_objext; then :
2047 $as_echo "$as_me: failed program was:" >&5
2048 sed 's/^/| /' conftest.$ac_ext >&5
2052 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053 as_fn_set_status $ac_retval
2055 } # ac_fn_c_try_compile
2057 # ac_fn_c_try_cpp LINENO
2058 # ----------------------
2059 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2062 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2063 if { { ac_try="$ac_cpp conftest.$ac_ext"
2065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2066 *) ac_try_echo=$ac_try;;
2068 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2069 $as_echo "$ac_try_echo"; } >&5
2070 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2072 if test -s conftest.err; then
2073 grep -v '^ *+' conftest.err >conftest.er1
2074 cat conftest.er1 >&5
2075 mv -f conftest.er1 conftest.err
2077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2078 test $ac_status = 0; } > conftest.i && {
2079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2080 test ! -s conftest.err
2084 $as_echo "$as_me: failed program was:" >&5
2085 sed 's/^/| /' conftest.$ac_ext >&5
2089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090 as_fn_set_status $ac_retval
2094 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2095 # -------------------------------------------------------
2096 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2097 # the include files in INCLUDES and setting the cache variable VAR
2099 ac_fn_c_check_header_mongrel ()
2101 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2102 if eval \${$3+:} false; then :
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2104 $as_echo_n "checking for $2... " >&6; }
2105 if eval \${$3+:} false; then :
2106 $as_echo_n "(cached) " >&6
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110 $as_echo "$ac_res" >&6; }
2112 # Is the header compilable?
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2114 $as_echo_n "checking $2 usability... " >&6; }
2115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116 /* end confdefs.h. */
2120 if ac_fn_c_try_compile "$LINENO"; then :
2121 ac_header_compiler=yes
2123 ac_header_compiler=no
2125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2127 $as_echo "$ac_header_compiler" >&6; }
2129 # Is the header present?
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2131 $as_echo_n "checking $2 presence... " >&6; }
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2136 if ac_fn_c_try_cpp "$LINENO"; then :
2137 ac_header_preproc=yes
2139 ac_header_preproc=no
2141 rm -f conftest.err conftest.i conftest.$ac_ext
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2143 $as_echo "$ac_header_preproc" >&6; }
2145 # So? What about this header?
2146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2149 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2151 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2155 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2157 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2159 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2161 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2163 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2164 ( $as_echo "## ----------------------------------------- ##
2165 ## Report this to http://www.imagemagick.org ##
2166 ## ----------------------------------------- ##"
2167 ) | sed "s/^/$as_me: WARNING: /" >&2
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2171 $as_echo_n "checking for $2... " >&6; }
2172 if eval \${$3+:} false; then :
2173 $as_echo_n "(cached) " >&6
2175 eval "$3=\$ac_header_compiler"
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179 $as_echo "$ac_res" >&6; }
2181 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183 } # ac_fn_c_check_header_mongrel
2185 # ac_fn_c_try_run LINENO
2186 # ----------------------
2187 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2188 # that executables *can* be run.
2191 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2192 if { { ac_try="$ac_link"
2194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2195 *) ac_try_echo=$ac_try;;
2197 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2198 $as_echo "$ac_try_echo"; } >&5
2199 (eval "$ac_link") 2>&5
2201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2202 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2203 { { case "(($ac_try" in
2204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2205 *) ac_try_echo=$ac_try;;
2207 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2208 $as_echo "$ac_try_echo"; } >&5
2209 (eval "$ac_try") 2>&5
2211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2212 test $ac_status = 0; }; }; then :
2215 $as_echo "$as_me: program exited with status $ac_status" >&5
2216 $as_echo "$as_me: failed program was:" >&5
2217 sed 's/^/| /' conftest.$ac_ext >&5
2219 ac_retval=$ac_status
2221 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2222 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2223 as_fn_set_status $ac_retval
2227 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2228 # -------------------------------------------------------
2229 # Tests whether HEADER exists and can be compiled using the include files in
2230 # INCLUDES, setting the cache variable VAR accordingly.
2231 ac_fn_c_check_header_compile ()
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2235 $as_echo_n "checking for $2... " >&6; }
2236 if eval \${$3+:} false; then :
2237 $as_echo_n "(cached) " >&6
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240 /* end confdefs.h. */
2244 if ac_fn_c_try_compile "$LINENO"; then :
2249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253 $as_echo "$ac_res" >&6; }
2254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2256 } # ac_fn_c_check_header_compile
2258 # ac_fn_cxx_try_compile LINENO
2259 # ----------------------------
2260 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2261 ac_fn_cxx_try_compile ()
2263 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2264 rm -f conftest.$ac_objext
2265 if { { ac_try="$ac_compile"
2267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2268 *) ac_try_echo=$ac_try;;
2270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2271 $as_echo "$ac_try_echo"; } >&5
2272 (eval "$ac_compile") 2>conftest.err
2274 if test -s conftest.err; then
2275 grep -v '^ *+' conftest.err >conftest.er1
2276 cat conftest.er1 >&5
2277 mv -f conftest.er1 conftest.err
2279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2280 test $ac_status = 0; } && {
2281 test -z "$ac_cxx_werror_flag" ||
2282 test ! -s conftest.err
2283 } && test -s conftest.$ac_objext; then :
2286 $as_echo "$as_me: failed program was:" >&5
2287 sed 's/^/| /' conftest.$ac_ext >&5
2291 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2292 as_fn_set_status $ac_retval
2294 } # ac_fn_cxx_try_compile
2296 # ac_fn_c_try_link LINENO
2297 # -----------------------
2298 # Try to link conftest.$ac_ext, and return whether this succeeded.
2301 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2302 rm -f conftest.$ac_objext conftest$ac_exeext
2303 if { { ac_try="$ac_link"
2305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2306 *) ac_try_echo=$ac_try;;
2308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2309 $as_echo "$ac_try_echo"; } >&5
2310 (eval "$ac_link") 2>conftest.err
2312 if test -s conftest.err; then
2313 grep -v '^ *+' conftest.err >conftest.er1
2314 cat conftest.er1 >&5
2315 mv -f conftest.er1 conftest.err
2317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2318 test $ac_status = 0; } && {
2319 test -z "$ac_c_werror_flag" ||
2320 test ! -s conftest.err
2321 } && test -s conftest$ac_exeext && {
2322 test "$cross_compiling" = yes ||
2323 $as_test_x conftest$ac_exeext
2327 $as_echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2332 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2333 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2334 # interfere with the next link command; also delete a directory that is
2335 # left behind by Apple's compiler. We do this before executing the actions.
2336 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2337 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2338 as_fn_set_status $ac_retval
2340 } # ac_fn_c_try_link
2342 # ac_fn_c_check_func LINENO FUNC VAR
2343 # ----------------------------------
2344 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2345 ac_fn_c_check_func ()
2347 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2349 $as_echo_n "checking for $2... " >&6; }
2350 if eval \${$3+:} false; then :
2351 $as_echo_n "(cached) " >&6
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2355 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2357 #define $2 innocuous_$2
2359 /* System header to define __stub macros and hopefully few prototypes,
2360 which can conflict with char $2 (); below.
2361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2362 <limits.h> exists even on freestanding compilers. */
2365 # include <limits.h>
2367 # include <assert.h>
2372 /* Override any GCC internal prototype to avoid an error.
2373 Use char because int might match the return type of a GCC
2374 builtin and then its argument prototype would still apply. */
2379 /* The GNU C library defines this for functions which it implements
2380 to always fail with ENOSYS. Some functions are actually named
2381 something starting with __ and the normal name is an alias. */
2382 #if defined __stub_$2 || defined __stub___$2
2394 if ac_fn_c_try_link "$LINENO"; then :
2399 rm -f core conftest.err conftest.$ac_objext \
2400 conftest$ac_exeext conftest.$ac_ext
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2404 $as_echo "$ac_res" >&6; }
2405 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2407 } # ac_fn_c_check_func
2409 # ac_fn_cxx_try_cpp LINENO
2410 # ------------------------
2411 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2412 ac_fn_cxx_try_cpp ()
2414 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2415 if { { ac_try="$ac_cpp conftest.$ac_ext"
2417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2418 *) ac_try_echo=$ac_try;;
2420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2421 $as_echo "$ac_try_echo"; } >&5
2422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2424 if test -s conftest.err; then
2425 grep -v '^ *+' conftest.err >conftest.er1
2426 cat conftest.er1 >&5
2427 mv -f conftest.er1 conftest.err
2429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2430 test $ac_status = 0; } > conftest.i && {
2431 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2432 test ! -s conftest.err
2436 $as_echo "$as_me: failed program was:" >&5
2437 sed 's/^/| /' conftest.$ac_ext >&5
2441 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2442 as_fn_set_status $ac_retval
2444 } # ac_fn_cxx_try_cpp
2446 # ac_fn_cxx_try_link LINENO
2447 # -------------------------
2448 # Try to link conftest.$ac_ext, and return whether this succeeded.
2449 ac_fn_cxx_try_link ()
2451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452 rm -f conftest.$ac_objext conftest$ac_exeext
2453 if { { ac_try="$ac_link"
2455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2456 *) ac_try_echo=$ac_try;;
2458 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2459 $as_echo "$ac_try_echo"; } >&5
2460 (eval "$ac_link") 2>conftest.err
2462 if test -s conftest.err; then
2463 grep -v '^ *+' conftest.err >conftest.er1
2464 cat conftest.er1 >&5
2465 mv -f conftest.er1 conftest.err
2467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2468 test $ac_status = 0; } && {
2469 test -z "$ac_cxx_werror_flag" ||
2470 test ! -s conftest.err
2471 } && test -s conftest$ac_exeext && {
2472 test "$cross_compiling" = yes ||
2473 $as_test_x conftest$ac_exeext
2477 $as_echo "$as_me: failed program was:" >&5
2478 sed 's/^/| /' conftest.$ac_ext >&5
2482 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2483 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2484 # interfere with the next link command; also delete a directory that is
2485 # left behind by Apple's compiler. We do this before executing the actions.
2486 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2487 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2488 as_fn_set_status $ac_retval
2490 } # ac_fn_cxx_try_link
2492 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2493 # ---------------------------------------------
2494 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2496 ac_fn_c_check_decl ()
2498 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2499 as_decl_name=`echo $2|sed 's/ *(.*//'`
2500 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2502 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2503 if eval \${$3+:} false; then :
2504 $as_echo_n "(cached) " >&6
2506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2507 /* end confdefs.h. */
2512 #ifndef $as_decl_name
2514 (void) $as_decl_use;
2516 (void) $as_decl_name;
2524 if ac_fn_c_try_compile "$LINENO"; then :
2529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2533 $as_echo "$ac_res" >&6; }
2534 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2536 } # ac_fn_c_check_decl
2538 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2539 # -------------------------------------------
2540 # Tests whether TYPE exists after having included INCLUDES, setting cache
2541 # variable VAR accordingly.
2542 ac_fn_c_check_type ()
2544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2546 $as_echo_n "checking for $2... " >&6; }
2547 if eval \${$3+:} false; then :
2548 $as_echo_n "(cached) " >&6
2551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2552 /* end confdefs.h. */
2563 if ac_fn_c_try_compile "$LINENO"; then :
2564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2565 /* end confdefs.h. */
2576 if ac_fn_c_try_compile "$LINENO"; then :
2581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2587 $as_echo "$ac_res" >&6; }
2588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2590 } # ac_fn_c_check_type
2592 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2593 # ----------------------------------------------------
2594 # Tries to find if the field MEMBER exists in type AGGR, after including
2595 # INCLUDES, setting cache variable VAR accordingly.
2596 ac_fn_c_check_member ()
2598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2600 $as_echo_n "checking for $2.$3... " >&6; }
2601 if eval \${$4+:} false; then :
2602 $as_echo_n "(cached) " >&6
2604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2605 /* end confdefs.h. */
2617 if ac_fn_c_try_compile "$LINENO"; then :
2620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2621 /* end confdefs.h. */
2627 if (sizeof ac_aggr.$3)
2633 if ac_fn_c_try_compile "$LINENO"; then :
2638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2644 $as_echo "$ac_res" >&6; }
2645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2647 } # ac_fn_c_check_member
2649 # ac_fn_c_find_intX_t LINENO BITS VAR
2650 # -----------------------------------
2651 # Finds a signed integer type with width BITS, setting cache variable VAR
2653 ac_fn_c_find_intX_t ()
2655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2657 $as_echo_n "checking for int$2_t... " >&6; }
2658 if eval \${$3+:} false; then :
2659 $as_echo_n "(cached) " >&6
2662 # Order is important - never check a type that is potentially smaller
2663 # than half of the expected target width.
2664 for ac_type in int$2_t 'int' 'long int' \
2665 'long long int' 'short int' 'signed char'; do
2666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2667 /* end confdefs.h. */
2668 $ac_includes_default
2669 enum { N = $2 / 2 - 1 };
2673 static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2680 if ac_fn_c_try_compile "$LINENO"; then :
2681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682 /* end confdefs.h. */
2683 $ac_includes_default
2684 enum { N = $2 / 2 - 1 };
2688 static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2689 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2696 if ac_fn_c_try_compile "$LINENO"; then :
2703 eval "$3=\$ac_type" ;;
2706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709 if eval test \"x\$"$3"\" = x"no"; then :
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2718 $as_echo "$ac_res" >&6; }
2719 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2721 } # ac_fn_c_find_intX_t
2723 # ac_fn_c_find_uintX_t LINENO BITS VAR
2724 # ------------------------------------
2725 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2727 ac_fn_c_find_uintX_t ()
2729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2731 $as_echo_n "checking for uint$2_t... " >&6; }
2732 if eval \${$3+:} false; then :
2733 $as_echo_n "(cached) " >&6
2736 # Order is important - never check a type that is potentially smaller
2737 # than half of the expected target width.
2738 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2739 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2741 /* end confdefs.h. */
2742 $ac_includes_default
2746 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2753 if ac_fn_c_try_compile "$LINENO"; then :
2758 eval "$3=\$ac_type" ;;
2761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2762 if eval test \"x\$"$3"\" = x"no"; then :
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2771 $as_echo "$ac_res" >&6; }
2772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2774 } # ac_fn_c_find_uintX_t
2776 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2777 # --------------------------------------------
2778 # Tries to find the compile-time value of EXPR in a program that includes
2779 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2781 ac_fn_c_compute_int ()
2783 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2784 if test "$cross_compiling" = yes; then
2785 # Depending upon the size, compute the lo and hi bounds.
2786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2787 /* end confdefs.h. */
2792 static int test_array [1 - 2 * !(($2) >= 0)];
2799 if ac_fn_c_try_compile "$LINENO"; then :
2802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803 /* end confdefs.h. */
2808 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2815 if ac_fn_c_try_compile "$LINENO"; then :
2816 ac_hi=$ac_mid; break
2818 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2819 if test $ac_lo -le $ac_mid; then
2823 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2829 /* end confdefs.h. */
2834 static int test_array [1 - 2 * !(($2) < 0)];
2841 if ac_fn_c_try_compile "$LINENO"; then :
2844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845 /* end confdefs.h. */
2850 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2857 if ac_fn_c_try_compile "$LINENO"; then :
2858 ac_lo=$ac_mid; break
2860 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2861 if test $ac_mid -le $ac_hi; then
2865 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2875 # Binary search between lo and hi bounds.
2876 while test "x$ac_lo" != "x$ac_hi"; do
2877 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2879 /* end confdefs.h. */
2884 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2891 if ac_fn_c_try_compile "$LINENO"; then :
2894 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2899 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2904 /* end confdefs.h. */
2906 static long int longval () { return $2; }
2907 static unsigned long int ulongval () { return $2; }
2914 FILE *f = fopen ("conftest.val", "w");
2919 long int i = longval ();
2922 fprintf (f, "%ld", i);
2926 unsigned long int i = ulongval ();
2929 fprintf (f, "%lu", i);
2931 /* Do not output a trailing newline, as this causes \r\n confusion
2932 on some platforms. */
2933 return ferror (f) || fclose (f) != 0;
2939 if ac_fn_c_try_run "$LINENO"; then :
2940 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2944 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2945 conftest.$ac_objext conftest.beam conftest.$ac_ext
2949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2950 as_fn_set_status $ac_retval
2952 } # ac_fn_c_compute_int
2954 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2955 # ---------------------------------------------------------
2956 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2957 # the include files in INCLUDES and setting the cache variable VAR
2959 ac_fn_cxx_check_header_mongrel ()
2961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2962 if eval \${$3+:} false; then :
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2964 $as_echo_n "checking for $2... " >&6; }
2965 if eval \${$3+:} false; then :
2966 $as_echo_n "(cached) " >&6
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2970 $as_echo "$ac_res" >&6; }
2972 # Is the header compilable?
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2974 $as_echo_n "checking $2 usability... " >&6; }
2975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2976 /* end confdefs.h. */
2980 if ac_fn_cxx_try_compile "$LINENO"; then :
2981 ac_header_compiler=yes
2983 ac_header_compiler=no
2985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2987 $as_echo "$ac_header_compiler" >&6; }
2989 # Is the header present?
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2991 $as_echo_n "checking $2 presence... " >&6; }
2992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2993 /* end confdefs.h. */
2996 if ac_fn_cxx_try_cpp "$LINENO"; then :
2997 ac_header_preproc=yes
2999 ac_header_preproc=no
3001 rm -f conftest.err conftest.i conftest.$ac_ext
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3003 $as_echo "$ac_header_preproc" >&6; }
3005 # So? What about this header?
3006 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3009 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3011 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3015 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3017 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3019 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3021 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3023 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3024 ( $as_echo "## ----------------------------------------- ##
3025 ## Report this to http://www.imagemagick.org ##
3026 ## ----------------------------------------- ##"
3027 ) | sed "s/^/$as_me: WARNING: /" >&2
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3031 $as_echo_n "checking for $2... " >&6; }
3032 if eval \${$3+:} false; then :
3033 $as_echo_n "(cached) " >&6
3035 eval "$3=\$ac_header_compiler"
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3039 $as_echo "$ac_res" >&6; }
3041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3043 } # ac_fn_cxx_check_header_mongrel
3044 cat >config.log <<_ACEOF
3045 This file contains any messages produced by compilers while
3046 running configure, to aid debugging if configure makes a mistake.
3048 It was created by ImageMagick $as_me 7.0.0, which was
3049 generated by GNU Autoconf 2.68. Invocation command line was
3061 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3062 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3063 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3064 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3065 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3067 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3068 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3070 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3071 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3072 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3073 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3074 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3075 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3076 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 test -z "$as_dir" && as_dir=.
3085 $as_echo "PATH: $as_dir"
3101 # Keep a trace of the command line.
3102 # Strip out --no-create and --no-recursion so they do not pile up.
3103 # Strip out --silent because we don't want to record it for future runs.
3104 # Also quote any args containing shell meta-characters.
3105 # Make two passes to allow for proper duplicate-argument suppression.
3109 ac_must_keep_next=false
3115 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3116 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3117 | -silent | --silent | --silen | --sile | --sil)
3120 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3123 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3125 as_fn_append ac_configure_args1 " '$ac_arg'"
3126 if test $ac_must_keep_next = true; then
3127 ac_must_keep_next=false # Got value, back to normal.
3130 *=* | --config-cache | -C | -disable-* | --disable-* \
3131 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3132 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3133 | -with-* | --with-* | -without-* | --without-* | --x)
3134 case "$ac_configure_args0 " in
3135 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3138 -* ) ac_must_keep_next=true ;;
3141 as_fn_append ac_configure_args " '$ac_arg'"
3146 { ac_configure_args0=; unset ac_configure_args0;}
3147 { ac_configure_args1=; unset ac_configure_args1;}
3149 # When interrupted or exit'd, cleanup temporary files, and complete
3150 # config.log. We remove comments because anyway the quotes in there
3151 # would cause problems or look ugly.
3152 # WARNING: Use '\'' to represent an apostrophe within the trap.
3153 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3154 trap 'exit_status=$?
3155 # Save into config.log some information that might help in debugging.
3159 $as_echo "## ---------------- ##
3160 ## Cache variables. ##
3161 ## ---------------- ##"
3163 # The following way of writing the cache mishandles newlines in values,
3165 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3166 eval ac_val=\$$ac_var
3170 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3171 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3174 _ | IFS | as_nl) ;; #(
3175 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3176 *) { eval $ac_var=; unset $ac_var;} ;;
3181 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3182 *${as_nl}ac_space=\ *)
3184 "s/'\''/'\''\\\\'\'''\''/g;
3185 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3188 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3195 $as_echo "## ----------------- ##
3196 ## Output variables. ##
3197 ## ----------------- ##"
3199 for ac_var in $ac_subst_vars
3201 eval ac_val=\$$ac_var
3203 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3205 $as_echo "$ac_var='\''$ac_val'\''"
3209 if test -n "$ac_subst_files"; then
3210 $as_echo "## ------------------- ##
3211 ## File substitutions. ##
3212 ## ------------------- ##"
3214 for ac_var in $ac_subst_files
3216 eval ac_val=\$$ac_var
3218 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3220 $as_echo "$ac_var='\''$ac_val'\''"
3225 if test -s confdefs.h; then
3226 $as_echo "## ----------- ##
3233 test "$ac_signal" != 0 &&
3234 $as_echo "$as_me: caught signal $ac_signal"
3235 $as_echo "$as_me: exit $exit_status"
3237 rm -f core *.core core.conftest.* &&
3238 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3241 for ac_signal in 1 2 13 15; do
3242 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3246 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3247 rm -f -r conftest* confdefs.h
3249 $as_echo "/* confdefs.h */" > confdefs.h
3251 # Predefined preprocessor variables.
3253 cat >>confdefs.h <<_ACEOF
3254 #define PACKAGE_NAME "$PACKAGE_NAME"
3257 cat >>confdefs.h <<_ACEOF
3258 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3261 cat >>confdefs.h <<_ACEOF
3262 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3265 cat >>confdefs.h <<_ACEOF
3266 #define PACKAGE_STRING "$PACKAGE_STRING"
3269 cat >>confdefs.h <<_ACEOF
3270 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3273 cat >>confdefs.h <<_ACEOF
3274 #define PACKAGE_URL "$PACKAGE_URL"
3278 # Let the site file select an alternate cache file if it wants to.
3279 # Prefer an explicitly selected file to automatically selected ones.
3282 if test -n "$CONFIG_SITE"; then
3283 # We do not want a PATH search for config.site.
3284 case $CONFIG_SITE in #((
3285 -*) ac_site_file1=./$CONFIG_SITE;;
3286 */*) ac_site_file1=$CONFIG_SITE;;
3287 *) ac_site_file1=./$CONFIG_SITE;;
3289 elif test "x$prefix" != xNONE; then
3290 ac_site_file1=$prefix/share/config.site
3291 ac_site_file2=$prefix/etc/config.site
3293 ac_site_file1=$ac_default_prefix/share/config.site
3294 ac_site_file2=$ac_default_prefix/etc/config.site
3296 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3298 test "x$ac_site_file" = xNONE && continue
3299 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3301 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3302 sed 's/^/| /' "$ac_site_file" >&5
3304 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3305 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3306 as_fn_error $? "failed to load site script $ac_site_file
3307 See \`config.log' for more details" "$LINENO" 5; }
3311 if test -r "$cache_file"; then
3312 # Some versions of bash will fail to source /dev/null (special files
3313 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3314 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3316 $as_echo "$as_me: loading cache $cache_file" >&6;}
3318 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3319 *) . "./$cache_file";;
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3324 $as_echo "$as_me: creating cache $cache_file" >&6;}
3328 as_fn_append ac_header_list " stdlib.h"
3329 as_fn_append ac_header_list " unistd.h"
3330 as_fn_append ac_header_list " sys/param.h"
3331 # Check that the precious variables saved in the cache have kept the same
3333 ac_cache_corrupted=false
3334 for ac_var in $ac_precious_vars; do
3335 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3336 eval ac_new_set=\$ac_env_${ac_var}_set
3337 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3338 eval ac_new_val=\$ac_env_${ac_var}_value
3339 case $ac_old_set,$ac_new_set in
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3342 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3343 ac_cache_corrupted=: ;;
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3346 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3347 ac_cache_corrupted=: ;;
3350 if test "x$ac_old_val" != "x$ac_new_val"; then
3351 # differences in whitespace do not lead to failure.
3352 ac_old_val_w=`echo x $ac_old_val`
3353 ac_new_val_w=`echo x $ac_new_val`
3354 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3356 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3357 ac_cache_corrupted=:
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3360 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3361 eval $ac_var=\$ac_old_val
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3364 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3366 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3369 # Pass precious variables to config.status.
3370 if test "$ac_new_set" = set; then
3372 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3373 *) ac_arg=$ac_var=$ac_new_val ;;
3375 case " $ac_configure_args " in
3376 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3377 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3381 if $ac_cache_corrupted; then
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3385 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3386 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3388 ## -------------------- ##
3389 ## Main body of script. ##
3390 ## -------------------- ##
3393 ac_cpp='$CPP $CPPFLAGS'
3394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3401 for ac_dir in config "$srcdir"/config; do
3402 if test -f "$ac_dir/install-sh"; then
3404 ac_install_sh="$ac_aux_dir/install-sh -c"
3406 elif test -f "$ac_dir/install.sh"; then
3408 ac_install_sh="$ac_aux_dir/install.sh -c"
3410 elif test -f "$ac_dir/shtool"; then
3412 ac_install_sh="$ac_aux_dir/shtool install -c"
3416 if test -z "$ac_aux_dir"; then
3417 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3420 # These three variables are undocumented and unsupported,
3421 # and are intended to be withdrawn in a future Autoconf release.
3422 # They can cause serious problems if a builder's source tree is in a directory
3423 # whose full name contains unusual characters.
3424 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3425 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3426 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3431 ac_config_headers="$ac_config_headers config/config.h"
3434 ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
3436 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"
3440 # Save initial user-tunable values
3443 for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3444 eval isset=\${$var+set}
3445 if test "$isset" = 'set'; then
3446 eval val=$`echo $var`
3447 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3452 CONFIGURE_ARGS="$0 ${ac_configure_args}"
3455 # Source file containing package/library versioning information.
3456 . ${srcdir}/version.sh
3458 echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3459 # Make sure we can run config.sub.
3460 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3461 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3464 $as_echo_n "checking build system type... " >&6; }
3465 if ${ac_cv_build+:} false; then :
3466 $as_echo_n "(cached) " >&6
3468 ac_build_alias=$build_alias
3469 test "x$ac_build_alias" = x &&
3470 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3471 test "x$ac_build_alias" = x &&
3472 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3473 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3474 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3478 $as_echo "$ac_cv_build" >&6; }
3479 case $ac_cv_build in
3481 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3484 ac_save_IFS=$IFS; IFS='-'
3490 # Remember, the first character of IFS is used to create $*,
3491 # except with old shells:
3494 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3498 $as_echo_n "checking host system type... " >&6; }
3499 if ${ac_cv_host+:} false; then :
3500 $as_echo_n "(cached) " >&6
3502 if test "x$host_alias" = x; then
3503 ac_cv_host=$ac_cv_build
3505 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3506 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3511 $as_echo "$ac_cv_host" >&6; }
3514 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3517 ac_save_IFS=$IFS; IFS='-'
3523 # Remember, the first character of IFS is used to create $*,
3524 # except with old shells:
3527 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3531 $as_echo_n "checking target system type... " >&6; }
3532 if ${ac_cv_target+:} false; then :
3533 $as_echo_n "(cached) " >&6
3535 if test "x$target_alias" = x; then
3536 ac_cv_target=$ac_cv_host
3538 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3539 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3544 $as_echo "$ac_cv_target" >&6; }
3545 case $ac_cv_target in
3547 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3549 target=$ac_cv_target
3550 ac_save_IFS=$IFS; IFS='-'
3556 # Remember, the first character of IFS is used to create $*,
3557 # except with old shells:
3560 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3563 # The aliases save the names the user supplied, while $host etc.
3564 # will get canonicalized.
3565 test -n "$target_alias" &&
3566 test "$program_prefix$program_suffix$program_transform_name" = \
3568 program_prefix=${target_alias}-
3573 MAGICK_TARGET_CPU=$host_cpu
3576 MAGICK_TARGET_VENDOR=$host_vendor
3579 MAGICK_TARGET_OS=$host_os
3582 # Substitute library versioning
3583 MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3585 MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3587 MAGICK_SVN_REVISION=5545
3592 # Ensure that make can run correctly
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3594 $as_echo_n "checking whether build environment is sane... " >&6; }
3597 echo timestamp > conftest.file
3598 # Reject unsafe characters in $srcdir or the absolute working directory
3599 # name. Accept space and tab only in the latter.
3603 *[\\\"\#\$\&\'\`$am_lf]*)
3604 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3607 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3608 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3611 # Do `set' in a subshell so we don't clobber the current shell's
3612 # arguments. Must try -L first in case configure is actually a
3613 # symlink; some systems play weird games with the mod time of symlinks
3614 # (eg FreeBSD returns the mod time of the symlink's containing
3617 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3618 if test "$*" = "X"; then
3620 set X `ls -t "$srcdir/configure" conftest.file`
3623 if test "$*" != "X $srcdir/configure conftest.file" \
3624 && test "$*" != "X conftest.file $srcdir/configure"; then
3626 # If neither matched, then we have a broken ls. This can happen
3627 # if, for instance, CONFIG_SHELL is bash and it inherits a
3628 # broken ls alias from the environment. This has actually
3629 # happened. Such a system could not be considered "sane".
3630 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3631 alias in your environment" "$LINENO" 5
3634 test "$2" = conftest.file
3640 as_fn_error $? "newly created file is older than distributed files!
3641 Check your system clock" "$LINENO" 5
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3644 $as_echo "yes" >&6; }
3646 am__api_version='1.11'
3648 # Find a good install program. We prefer a C program (faster),
3649 # so one script is as good as another. But avoid the broken or
3650 # incompatible versions:
3651 # SysV /etc/install, /usr/sbin/install
3652 # SunOS /usr/etc/install
3653 # IRIX /sbin/install
3655 # AmigaOS /C/install, which installs bootblocks on floppy discs
3656 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3657 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3658 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3659 # OS/2's system install, which has a completely different semantic
3660 # ./install, which can be erroneously created by make from ./install.sh.
3661 # Reject install programs that cannot install multiple files.
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3663 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3664 if test -z "$INSTALL"; then
3665 if ${ac_cv_path_install+:} false; then :
3666 $as_echo_n "(cached) " >&6
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672 test -z "$as_dir" && as_dir=.
3673 # Account for people who put trailing slashes in PATH elements.
3674 case $as_dir/ in #((
3675 ./ | .// | /[cC]/* | \
3676 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3677 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3680 # OSF1 and SCO ODT 3.0 have their own names for install.
3681 # Don't use installbsd from OSF since it installs stuff as root
3683 for ac_prog in ginstall scoinst install; do
3684 for ac_exec_ext in '' $ac_executable_extensions; do
3685 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3686 if test $ac_prog = install &&
3687 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3688 # AIX install. It has an incompatible calling convention.
3690 elif test $ac_prog = install &&
3691 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3692 # program-specific install script used by HP pwplus--don't use.
3695 rm -rf conftest.one conftest.two conftest.dir
3696 echo one > conftest.one
3697 echo two > conftest.two
3699 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3700 test -s conftest.one && test -s conftest.two &&
3701 test -s conftest.dir/conftest.one &&
3702 test -s conftest.dir/conftest.two
3704 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3717 rm -rf conftest.one conftest.two conftest.dir
3720 if test "${ac_cv_path_install+set}" = set; then
3721 INSTALL=$ac_cv_path_install
3723 # As a last resort, use the slow shell script. Don't cache a
3724 # value for INSTALL within a source directory, because that will
3725 # break other packages using the cache if that directory is
3726 # removed, or if the value is a relative name.
3727 INSTALL=$ac_install_sh
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3731 $as_echo "$INSTALL" >&6; }
3733 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3734 # It thinks the first close brace ends the variable substitution.
3735 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3737 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3739 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3741 test "$program_prefix" != NONE &&
3742 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3743 # Use a double $ so make ignores it.
3744 test "$program_suffix" != NONE &&
3745 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3746 # Double any \ or $.
3747 # By default was `s,x,x', remove it if useless.
3748 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3749 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3751 # expand $ac_aux_dir to an absolute path
3752 am_aux_dir=`cd $ac_aux_dir && pwd`
3754 if test x"${MISSING+set}" != xset; then
3757 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3759 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3762 # Use eval to expand $SHELL
3763 if eval "$MISSING --run true"; then
3764 am_missing_run="$MISSING --run "
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3768 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3771 if test x"${install_sh}" != xset; then
3774 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3776 install_sh="\${SHELL} $am_aux_dir/install-sh"
3780 # Installed binaries are usually stripped using `strip' when the user
3781 # run `make install-strip'. However `strip' might not be the right
3782 # tool to use in cross-compilation environments, therefore Automake
3783 # will honor the `STRIP' environment variable to overrule this program.
3784 if test "$cross_compiling" != no; then
3785 if test -n "$ac_tool_prefix"; then
3786 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3787 set dummy ${ac_tool_prefix}strip; ac_word=$2
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3789 $as_echo_n "checking for $ac_word... " >&6; }
3790 if ${ac_cv_prog_STRIP+:} false; then :
3791 $as_echo_n "(cached) " >&6
3793 if test -n "$STRIP"; then
3794 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 test -z "$as_dir" && as_dir=.
3801 for ac_exec_ext in '' $ac_executable_extensions; do
3802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3803 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3813 STRIP=$ac_cv_prog_STRIP
3814 if test -n "$STRIP"; then
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3816 $as_echo "$STRIP" >&6; }
3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819 $as_echo "no" >&6; }
3824 if test -z "$ac_cv_prog_STRIP"; then
3826 # Extract the first word of "strip", so it can be a program name with args.
3827 set dummy strip; ac_word=$2
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3829 $as_echo_n "checking for $ac_word... " >&6; }
3830 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3831 $as_echo_n "(cached) " >&6
3833 if test -n "$ac_ct_STRIP"; then
3834 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 test -z "$as_dir" && as_dir=.
3841 for ac_exec_ext in '' $ac_executable_extensions; do
3842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3843 ac_cv_prog_ac_ct_STRIP="strip"
3844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3853 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3854 if test -n "$ac_ct_STRIP"; then
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3856 $as_echo "$ac_ct_STRIP" >&6; }
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3859 $as_echo "no" >&6; }
3862 if test "x$ac_ct_STRIP" = x; then
3865 case $cross_compiling:$ac_tool_warned in
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3868 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3869 ac_tool_warned=yes ;;
3874 STRIP="$ac_cv_prog_STRIP"
3878 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3881 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3882 if test -z "$MKDIR_P"; then
3883 if ${ac_cv_path_mkdir+:} false; then :
3884 $as_echo_n "(cached) " >&6
3886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3887 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3890 test -z "$as_dir" && as_dir=.
3891 for ac_prog in mkdir gmkdir; do
3892 for ac_exec_ext in '' $ac_executable_extensions; do
3893 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3894 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3895 'mkdir (GNU coreutils) '* | \
3896 'mkdir (coreutils) '* | \
3897 'mkdir (fileutils) '4.1*)
3898 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3908 test -d ./--version && rmdir ./--version
3909 if test "${ac_cv_path_mkdir+set}" = set; then
3910 MKDIR_P="$ac_cv_path_mkdir -p"
3912 # As a last resort, use the slow shell script. Don't cache a
3913 # value for MKDIR_P within a source directory, because that will
3914 # break other packages using the cache if that directory is
3915 # removed, or if the value is a relative name.
3916 MKDIR_P="$ac_install_sh -d"
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3920 $as_echo "$MKDIR_P" >&6; }
3924 [\\/$]* | ?:[\\/]*) ;;
3925 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3928 for ac_prog in gawk mawk nawk awk
3930 # Extract the first word of "$ac_prog", so it can be a program name with args.
3931 set dummy $ac_prog; ac_word=$2
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3933 $as_echo_n "checking for $ac_word... " >&6; }
3934 if ${ac_cv_prog_AWK+:} false; then :
3935 $as_echo_n "(cached) " >&6
3937 if test -n "$AWK"; then
3938 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944 test -z "$as_dir" && as_dir=.
3945 for ac_exec_ext in '' $ac_executable_extensions; do
3946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3947 ac_cv_prog_AWK="$ac_prog"
3948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3958 if test -n "$AWK"; then
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3960 $as_echo "$AWK" >&6; }
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3963 $as_echo "no" >&6; }
3967 test -n "$AWK" && break
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3971 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3973 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3974 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3975 $as_echo_n "(cached) " >&6
3977 cat >conftest.make <<\_ACEOF
3980 @echo '@@@%%%=$(MAKE)=@@@%%%'
3982 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3983 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3985 eval ac_cv_prog_make_${ac_make}_set=yes;;
3987 eval ac_cv_prog_make_${ac_make}_set=no;;
3991 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3993 $as_echo "yes" >&6; }
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997 $as_echo "no" >&6; }
3998 SET_MAKE="MAKE=${MAKE-make}"
4001 rm -rf .tst 2>/dev/null
4002 mkdir .tst 2>/dev/null
4003 if test -d .tst; then
4008 rmdir .tst 2>/dev/null
4010 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4011 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4012 # is not polluted with repeated "-I."
4013 am__isrc=' -I$(srcdir)'
4014 # test to see if srcdir already configured
4015 if test -f $srcdir/config.status; then
4016 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4020 # test whether we have cygpath
4021 if test -z "$CYGPATH_W"; then
4022 if (cygpath --version) >/dev/null 2>/dev/null; then
4023 CYGPATH_W='cygpath -w'
4030 # Define the identity of the package.
4031 PACKAGE=$PACKAGE_NAME
4032 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4035 # Some tools Automake needs.
4037 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4040 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4043 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4046 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4049 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4051 # We need awk for the "check" target. The system "awk" is bad on
4053 # Always define AMTAR for backward compatibility.
4055 AMTAR=${AMTAR-"${am_missing_run}tar"}
4057 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4064 # Enable support for silent build rules
4065 # Check whether --enable-silent-rules was given.
4066 if test "${enable_silent_rules+set}" = set; then :
4067 enableval=$enable_silent_rules;
4070 case $enable_silent_rules in
4071 yes) AM_DEFAULT_VERBOSITY=0;;
4072 no) AM_DEFAULT_VERBOSITY=1;;
4073 *) AM_DEFAULT_VERBOSITY=0;;
4078 MAGICK_LIB_VERSION="0x"
4079 if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4080 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4082 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4083 if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4084 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4086 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4087 if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4088 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4090 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4093 # Definition used to define MagickLibVersionText in version.h
4094 MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4097 # Definition used to define MagickLibVersionNumber in version.h
4098 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4101 # Regenerate config.status if ChangeLog or version.sh is updated.
4102 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4108 MAGICK_CPPFLAGS=$CPPFLAGS_USER
4109 MAGICK_PCFLAGS=$CPPFLAGS_USER
4115 # Evaluate shell variable equivalents to Makefile directory variables
4117 if test "x$prefix" = xNONE; then
4118 prefix=$ac_default_prefix
4120 # Let make expand exec_prefix.
4121 if test "x$exec_prefix" = xNONE; then
4122 exec_prefix='${prefix}'
4126 eval "eval PREFIX_DIR=${prefix}"
4128 eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4130 eval "eval BIN_DIR=$bindir"
4132 eval "eval SBIN_DIR=$sbindir"
4134 eval "eval LIBEXEC_DIR=$libexecdir"
4136 eval "eval DATA_DIR=$datadir"
4138 eval "eval DOC_DIR=$docdir"
4140 eval "eval SYSCONF_DIR=$sysconfdir"
4142 eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4144 eval "eval LOCALSTATE_DIR=$localstatedir"
4146 eval "eval LIB_DIR=$libdir"
4148 eval "eval INCLUDE_DIR=$includedir"
4150 eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4152 eval "eval INFO_DIR=$infodir"
4154 eval "eval MAN_DIR=$mandir"
4157 # Get full paths to source and build directories
4158 srcdirfull="`cd $srcdir && pwd`"
4162 # Compute variables useful for running uninstalled software.
4164 MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4165 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4166 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4167 MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4169 case "${build_os}" in
4171 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4172 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4173 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4174 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4178 case "${host_os}" in
4191 # Enable OS features.
4193 DEPDIR="${am__leading_dot}deps"
4195 ac_config_commands="$ac_config_commands depfiles"
4198 am_make=${MAKE-make}
4199 cat > confinc << 'END'
4201 @echo this is the am__doit target
4204 # If we don't find an include directive, just comment out the code.
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4206 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4210 # First try GNU make style include.
4211 echo "include confinc" > confmf
4212 # Ignore all kinds of additional output from `make'.
4213 case `$am_make -s -f confmf 2> /dev/null` in #(
4214 *the\ am__doit\ target*)
4220 # Now try BSD make style include.
4221 if test "$am__include" = "#"; then
4222 echo '.include "confinc"' > confmf
4223 case `$am_make -s -f confmf 2> /dev/null` in #(
4224 *the\ am__doit\ target*)
4225 am__include=.include
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4234 $as_echo "$_am_result" >&6; }
4235 rm -f confinc confmf
4237 # Check whether --enable-dependency-tracking was given.
4238 if test "${enable_dependency_tracking+set}" = set; then :
4239 enableval=$enable_dependency_tracking;
4242 if test "x$enable_dependency_tracking" != xno; then
4243 am_depcomp="$ac_aux_dir/depcomp"
4246 if test "x$enable_dependency_tracking" != xno; then
4256 ac_cpp='$CPP $CPPFLAGS'
4257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4260 if test -n "$ac_tool_prefix"; then
4261 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4262 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4264 $as_echo_n "checking for $ac_word... " >&6; }
4265 if ${ac_cv_prog_CC+:} false; then :
4266 $as_echo_n "(cached) " >&6
4268 if test -n "$CC"; then
4269 ac_cv_prog_CC="$CC" # Let the user override the test.
4271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275 test -z "$as_dir" && as_dir=.
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4278 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4289 if test -n "$CC"; then
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4291 $as_echo "$CC" >&6; }
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4294 $as_echo "no" >&6; }
4299 if test -z "$ac_cv_prog_CC"; then
4301 # Extract the first word of "gcc", so it can be a program name with args.
4302 set dummy gcc; ac_word=$2
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4304 $as_echo_n "checking for $ac_word... " >&6; }
4305 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4306 $as_echo_n "(cached) " >&6
4308 if test -n "$ac_ct_CC"; then
4309 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 test -z "$as_dir" && as_dir=.
4316 for ac_exec_ext in '' $ac_executable_extensions; do
4317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4318 ac_cv_prog_ac_ct_CC="gcc"
4319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4328 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4329 if test -n "$ac_ct_CC"; then
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4331 $as_echo "$ac_ct_CC" >&6; }
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 $as_echo "no" >&6; }
4337 if test "x$ac_ct_CC" = x; then
4340 case $cross_compiling:$ac_tool_warned in
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4343 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4344 ac_tool_warned=yes ;;
4352 if test -z "$CC"; then
4353 if test -n "$ac_tool_prefix"; then
4354 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4355 set dummy ${ac_tool_prefix}cc; ac_word=$2
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4357 $as_echo_n "checking for $ac_word... " >&6; }
4358 if ${ac_cv_prog_CC+:} false; then :
4359 $as_echo_n "(cached) " >&6
4361 if test -n "$CC"; then
4362 ac_cv_prog_CC="$CC" # Let the user override the test.
4364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 test -z "$as_dir" && as_dir=.
4369 for ac_exec_ext in '' $ac_executable_extensions; do
4370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4371 ac_cv_prog_CC="${ac_tool_prefix}cc"
4372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 if test -n "$CC"; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4384 $as_echo "$CC" >&6; }
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4387 $as_echo "no" >&6; }
4393 if test -z "$CC"; then
4394 # Extract the first word of "cc", so it can be a program name with args.
4395 set dummy cc; ac_word=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if ${ac_cv_prog_CC+:} false; then :
4399 $as_echo_n "(cached) " >&6
4401 if test -n "$CC"; then
4402 ac_cv_prog_CC="$CC" # Let the user override the test.
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4409 test -z "$as_dir" && as_dir=.
4410 for ac_exec_ext in '' $ac_executable_extensions; do
4411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4412 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4413 ac_prog_rejected=yes
4417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 if test $ac_prog_rejected = yes; then
4425 # We found a bogon in the path, so make sure we never use it.
4426 set dummy $ac_cv_prog_CC
4428 if test $# != 0; then
4429 # We chose a different compiler from the bogus one.
4430 # However, it has the same basename, so the bogon will be chosen
4431 # first if we set CC to just the basename; use the full file name.
4433 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4439 if test -n "$CC"; then
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4441 $as_echo "$CC" >&6; }
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4444 $as_echo "no" >&6; }
4449 if test -z "$CC"; then
4450 if test -n "$ac_tool_prefix"; then
4451 for ac_prog in cl.exe
4453 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4454 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4456 $as_echo_n "checking for $ac_word... " >&6; }
4457 if ${ac_cv_prog_CC+:} false; then :
4458 $as_echo_n "(cached) " >&6
4460 if test -n "$CC"; then
4461 ac_cv_prog_CC="$CC" # Let the user override the test.
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 test -z "$as_dir" && as_dir=.
4468 for ac_exec_ext in '' $ac_executable_extensions; do
4469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4470 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 if test -n "$CC"; then
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4483 $as_echo "$CC" >&6; }
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4486 $as_echo "no" >&6; }
4490 test -n "$CC" && break
4493 if test -z "$CC"; then
4495 for ac_prog in cl.exe
4497 # Extract the first word of "$ac_prog", so it can be a program name with args.
4498 set dummy $ac_prog; ac_word=$2
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4500 $as_echo_n "checking for $ac_word... " >&6; }
4501 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4502 $as_echo_n "(cached) " >&6
4504 if test -n "$ac_ct_CC"; then
4505 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4511 test -z "$as_dir" && as_dir=.
4512 for ac_exec_ext in '' $ac_executable_extensions; do
4513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4514 ac_cv_prog_ac_ct_CC="$ac_prog"
4515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4525 if test -n "$ac_ct_CC"; then
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4527 $as_echo "$ac_ct_CC" >&6; }
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530 $as_echo "no" >&6; }
4534 test -n "$ac_ct_CC" && break
4537 if test "x$ac_ct_CC" = x; then
4540 case $cross_compiling:$ac_tool_warned in
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4544 ac_tool_warned=yes ;;
4553 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4555 as_fn_error $? "no acceptable C compiler found in \$PATH
4556 See \`config.log' for more details" "$LINENO" 5; }
4558 # Provide some information about the compiler.
4559 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4562 for ac_option in --version -v -V -qversion; do
4563 { { ac_try="$ac_compiler $ac_option >&5"
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4569 $as_echo "$ac_try_echo"; } >&5
4570 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4572 if test -s conftest.err; then
4574 ... rest of stderr output deleted ...
4575 10q' conftest.err >conftest.er1
4576 cat conftest.er1 >&5
4578 rm -f conftest.er1 conftest.err
4579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4580 test $ac_status = 0; }
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584 /* end confdefs.h. */
4594 ac_clean_files_save=$ac_clean_files
4595 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4596 # Try to create an executable without -o first, disregard a.out.
4597 # It will help us diagnose broken compilers, and finding out an intuition
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4600 $as_echo_n "checking whether the C compiler works... " >&6; }
4601 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4603 # The possible output files:
4604 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4607 for ac_file in $ac_files
4610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4611 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4616 if { { ac_try="$ac_link_default"
4618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4619 *) ac_try_echo=$ac_try;;
4621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4622 $as_echo "$ac_try_echo"; } >&5
4623 (eval "$ac_link_default") 2>&5
4625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4626 test $ac_status = 0; }; then :
4627 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4628 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4629 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4630 # so that the user can short-circuit this test for compilers unknown to
4632 for ac_file in $ac_files ''
4634 test -f "$ac_file" || continue
4636 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4639 # We found the default executable, but exeext='' is most
4643 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4645 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4647 # We set ac_cv_exeext here because the later test for it is not
4648 # safe: cross compilers may not add the suffix if given an `-o'
4649 # argument, so we may need to know it at that point already.
4650 # Even if this section looks crufty: it has the advantage of
4657 test "$ac_cv_exeext" = no && ac_cv_exeext=
4662 if test -z "$ac_file"; then :
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664 $as_echo "no" >&6; }
4665 $as_echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4668 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4669 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4670 as_fn_error 77 "C compiler cannot create executables
4671 See \`config.log' for more details" "$LINENO" 5; }
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4674 $as_echo "yes" >&6; }
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4677 $as_echo_n "checking for C compiler default output file name... " >&6; }
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4679 $as_echo "$ac_file" >&6; }
4680 ac_exeext=$ac_cv_exeext
4682 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4683 ac_clean_files=$ac_clean_files_save
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4685 $as_echo_n "checking for suffix of executables... " >&6; }
4686 if { { ac_try="$ac_link"
4688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4689 *) ac_try_echo=$ac_try;;
4691 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4692 $as_echo "$ac_try_echo"; } >&5
4693 (eval "$ac_link") 2>&5
4695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4696 test $ac_status = 0; }; then :
4697 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4698 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4699 # work properly (i.e., refer to `conftest.exe'), while it won't with
4701 for ac_file in conftest.exe conftest conftest.*; do
4702 test -f "$ac_file" || continue
4704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4705 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4713 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4714 See \`config.log' for more details" "$LINENO" 5; }
4716 rm -f conftest conftest$ac_cv_exeext
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4718 $as_echo "$ac_cv_exeext" >&6; }
4720 rm -f conftest.$ac_ext
4721 EXEEXT=$ac_cv_exeext
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4729 FILE *f = fopen ("conftest.out", "w");
4730 return ferror (f) || fclose (f) != 0;
4736 ac_clean_files="$ac_clean_files conftest.out"
4737 # Check that the compiler produces executables we can run. If not, either
4738 # the compiler is broken, or we cross compile.
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4740 $as_echo_n "checking whether we are cross compiling... " >&6; }
4741 if test "$cross_compiling" != yes; then
4742 { { ac_try="$ac_link"
4744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4745 *) ac_try_echo=$ac_try;;
4747 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4748 $as_echo "$ac_try_echo"; } >&5
4749 (eval "$ac_link") 2>&5
4751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4752 test $ac_status = 0; }
4753 if { ac_try='./conftest$ac_cv_exeext'
4754 { { case "(($ac_try" in
4755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4756 *) ac_try_echo=$ac_try;;
4758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4759 $as_echo "$ac_try_echo"; } >&5
4760 (eval "$ac_try") 2>&5
4762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4763 test $ac_status = 0; }; }; then
4766 if test "$cross_compiling" = maybe; then
4769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4771 as_fn_error $? "cannot run C compiled programs.
4772 If you meant to cross compile, use \`--host'.
4773 See \`config.log' for more details" "$LINENO" 5; }
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4778 $as_echo "$cross_compiling" >&6; }
4780 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4781 ac_clean_files=$ac_clean_files_save
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4783 $as_echo_n "checking for suffix of object files... " >&6; }
4784 if ${ac_cv_objext+:} false; then :
4785 $as_echo_n "(cached) " >&6
4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4788 /* end confdefs.h. */
4798 rm -f conftest.o conftest.obj
4799 if { { ac_try="$ac_compile"
4801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4802 *) ac_try_echo=$ac_try;;
4804 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4805 $as_echo "$ac_try_echo"; } >&5
4806 (eval "$ac_compile") 2>&5
4808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4809 test $ac_status = 0; }; then :
4810 for ac_file in conftest.o conftest.obj conftest.*; do
4811 test -f "$ac_file" || continue;
4813 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4814 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4819 $as_echo "$as_me: failed program was:" >&5
4820 sed 's/^/| /' conftest.$ac_ext >&5
4822 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4823 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4824 as_fn_error $? "cannot compute suffix of object files: cannot compile
4825 See \`config.log' for more details" "$LINENO" 5; }
4827 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4830 $as_echo "$ac_cv_objext" >&6; }
4831 OBJEXT=$ac_cv_objext
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4834 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4835 if ${ac_cv_c_compiler_gnu+:} false; then :
4836 $as_echo_n "(cached) " >&6
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4839 /* end confdefs.h. */
4852 if ac_fn_c_try_compile "$LINENO"; then :
4857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4858 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4862 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4863 if test $ac_compiler_gnu = yes; then
4868 ac_test_CFLAGS=${CFLAGS+set}
4869 ac_save_CFLAGS=$CFLAGS
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4871 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4872 if ${ac_cv_prog_cc_g+:} false; then :
4873 $as_echo_n "(cached) " >&6
4875 ac_save_c_werror_flag=$ac_c_werror_flag
4876 ac_c_werror_flag=yes
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4890 if ac_fn_c_try_compile "$LINENO"; then :
4894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4895 /* end confdefs.h. */
4905 if ac_fn_c_try_compile "$LINENO"; then :
4908 ac_c_werror_flag=$ac_save_c_werror_flag
4910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4921 if ac_fn_c_try_compile "$LINENO"; then :
4924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 ac_c_werror_flag=$ac_save_c_werror_flag
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4932 $as_echo "$ac_cv_prog_cc_g" >&6; }
4933 if test "$ac_test_CFLAGS" = set; then
4934 CFLAGS=$ac_save_CFLAGS
4935 elif test $ac_cv_prog_cc_g = yes; then
4936 if test "$GCC" = yes; then
4942 if test "$GCC" = yes; then
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4949 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4950 if ${ac_cv_prog_cc_c89+:} false; then :
4951 $as_echo_n "(cached) " >&6
4953 ac_cv_prog_cc_c89=no
4955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4956 /* end confdefs.h. */
4959 #include <sys/types.h>
4960 #include <sys/stat.h>
4961 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4962 struct buf { int x; };
4963 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4964 static char *e (p, i)
4970 static char *f (char * (*g) (char **, int), char **p, ...)
4975 s = g (p, va_arg (v,int));
4980 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4981 function prototypes and stuff, but not '\xHH' hex character constants.
4982 These don't provoke an error unfortunately, instead are silently treated
4983 as 'x'. The following induces an error, until -std is added to get
4984 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4985 array size at least. It's necessary to write '\x00'==0 to get something
4986 that's true only with -std. */
4987 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4989 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4990 inside strings and character constants. */
4992 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4994 int test (int i, double x);
4995 struct s1 {int (*f) (int a);};
4996 struct s2 {int (*f) (double a);};
4997 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5003 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5008 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5009 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5011 CC="$ac_save_CC $ac_arg"
5012 if ac_fn_c_try_compile "$LINENO"; then :
5013 ac_cv_prog_cc_c89=$ac_arg
5015 rm -f core conftest.err conftest.$ac_objext
5016 test "x$ac_cv_prog_cc_c89" != "xno" && break
5018 rm -f conftest.$ac_ext
5023 case "x$ac_cv_prog_cc_c89" in
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5026 $as_echo "none needed" >&6; } ;;
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5029 $as_echo "unsupported" >&6; } ;;
5031 CC="$CC $ac_cv_prog_cc_c89"
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5033 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5035 if test "x$ac_cv_prog_cc_c89" != xno; then :
5040 ac_cpp='$CPP $CPPFLAGS'
5041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5045 depcc="$CC" am_compiler_list=
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5048 $as_echo_n "checking dependency style of $depcc... " >&6; }
5049 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5050 $as_echo_n "(cached) " >&6
5052 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5053 # We make a subdir and do the tests there. Otherwise we can end up
5054 # making bogus files that we don't know about and never remove. For
5055 # instance it was reported that on HP-UX the gcc test will end up
5056 # making a dummy file named `D' -- because `-MD' means `put the output
5059 # Copy depcomp to subdir because otherwise we won't find it if we're
5060 # using a relative directory.
5061 cp "$am_depcomp" conftest.dir
5063 # We will build objects and dependencies in a subdirectory because
5064 # it helps to detect inapplicable dependency modes. For instance
5065 # both Tru64's cc and ICC support -MD to output dependencies as a
5066 # side effect of compilation, but ICC will put the dependencies in
5067 # the current directory while Tru64 will put them in the object
5071 am_cv_CC_dependencies_compiler_type=none
5072 if test "$am_compiler_list" = ""; then
5073 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5076 case " $depcc " in #(
5077 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5080 for depmode in $am_compiler_list; do
5081 # Setup a source with many dependencies, because some compilers
5082 # like to wrap large dependency lists on column 80 (with \), and
5083 # we should not choose a depcomp mode which is confused by this.
5085 # We need to recreate these files for each test, as the compiler may
5086 # overwrite some of them when testing with obscure command lines.
5087 # This happens at least with the AIX C compiler.
5089 for i in 1 2 3 4 5 6; do
5090 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5091 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5092 # Solaris 8's {/usr,}/bin/sh.
5093 touch sub/conftst$i.h
5095 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5097 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5098 # mode. It turns out that the SunPro C++ compiler does not properly
5099 # handle `-M -o', and we need to detect this. Also, some Intel
5100 # versions had trouble with output in subdirs
5101 am__obj=sub/conftest.${OBJEXT-o}
5102 am__minus_obj="-o $am__obj"
5105 # This depmode causes a compiler race in universal mode.
5106 test "$am__universal" = false || continue
5109 # after this tag, mechanisms are not by side-effect, so they'll
5110 # only be used when explicitly requested
5111 if test "x$enable_dependency_tracking" = xyes; then
5117 msvisualcpp | msvcmsys)
5118 # This compiler won't grok `-c -o', but also, the minuso test has
5119 # not run yet. These depmodes are late enough in the game, and
5120 # so weak that their functioning should not be impacted.
5121 am__obj=conftest.${OBJEXT-o}
5126 if depmode=$depmode \
5127 source=sub/conftest.c object=$am__obj \
5128 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5129 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5130 >/dev/null 2>conftest.err &&
5131 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5132 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5133 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5134 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5135 # icc doesn't choke on unknown options, it will just issue warnings
5136 # or remarks (even with -Werror). So we grep stderr for any message
5137 # that says an option was ignored or not supported.
5138 # When given -MP, icc 7.0 and 7.1 complain thusly:
5139 # icc: Command line warning: ignoring option '-M'; no argument required
5140 # The diagnosis changed in icc 8.0:
5141 # icc: Command line remark: option '-MP' not supported
5142 if (grep 'ignoring option' conftest.err ||
5143 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5144 am_cv_CC_dependencies_compiler_type=$depmode
5153 am_cv_CC_dependencies_compiler_type=none
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5158 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5159 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5162 test "x$enable_dependency_tracking" != xno \
5163 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5165 am__fastdepCC_FALSE='#'
5167 am__fastdepCC_TRUE='#'
5168 am__fastdepCC_FALSE=
5174 ac_cpp='$CPP $CPPFLAGS'
5175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5179 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5180 # On Suns, sometimes $CPP names a directory.
5181 if test -n "$CPP" && test -d "$CPP"; then
5184 if test -z "$CPP"; then
5185 if ${ac_cv_prog_CPP+:} false; then :
5186 $as_echo_n "(cached) " >&6
5188 # Double quotes because CPP needs to be expanded
5189 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5192 for ac_c_preproc_warn_flag in '' yes
5194 # Use a header file that comes with gcc, so configuring glibc
5195 # with a fresh cross-compiler works.
5196 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5197 # <limits.h> exists even on freestanding compilers.
5198 # On the NeXT, cc -E runs the code through the compiler's parser,
5199 # not just through cpp. "Syntax error" is here to catch this case.
5200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5201 /* end confdefs.h. */
5203 # include <limits.h>
5205 # include <assert.h>
5209 if ac_fn_c_try_cpp "$LINENO"; then :
5212 # Broken: fails on valid input.
5215 rm -f conftest.err conftest.i conftest.$ac_ext
5217 # OK, works on sane cases. Now check whether nonexistent headers
5218 # can be detected and how.
5219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5220 /* end confdefs.h. */
5221 #include <ac_nonexistent.h>
5223 if ac_fn_c_try_cpp "$LINENO"; then :
5224 # Broken: success on invalid input.
5227 # Passes both tests.
5231 rm -f conftest.err conftest.i conftest.$ac_ext
5234 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5235 rm -f conftest.i conftest.err conftest.$ac_ext
5236 if $ac_preproc_ok; then :
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5249 $as_echo "$CPP" >&6; }
5251 for ac_c_preproc_warn_flag in '' yes
5253 # Use a header file that comes with gcc, so configuring glibc
5254 # with a fresh cross-compiler works.
5255 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5256 # <limits.h> exists even on freestanding compilers.
5257 # On the NeXT, cc -E runs the code through the compiler's parser,
5258 # not just through cpp. "Syntax error" is here to catch this case.
5259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5260 /* end confdefs.h. */
5262 # include <limits.h>
5264 # include <assert.h>
5268 if ac_fn_c_try_cpp "$LINENO"; then :
5271 # Broken: fails on valid input.
5274 rm -f conftest.err conftest.i conftest.$ac_ext
5276 # OK, works on sane cases. Now check whether nonexistent headers
5277 # can be detected and how.
5278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5279 /* end confdefs.h. */
5280 #include <ac_nonexistent.h>
5282 if ac_fn_c_try_cpp "$LINENO"; then :
5283 # Broken: success on invalid input.
5286 # Passes both tests.
5290 rm -f conftest.err conftest.i conftest.$ac_ext
5293 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5294 rm -f conftest.i conftest.err conftest.$ac_ext
5295 if $ac_preproc_ok; then :
5298 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5299 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5300 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5301 See \`config.log' for more details" "$LINENO" 5; }
5305 ac_cpp='$CPP $CPPFLAGS'
5306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5312 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5313 if ${ac_cv_path_GREP+:} false; then :
5314 $as_echo_n "(cached) " >&6
5316 if test -z "$GREP"; then
5317 ac_path_GREP_found=false
5318 # Loop through the user's path and test for each of PROGNAME-LIST
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5323 test -z "$as_dir" && as_dir=.
5324 for ac_prog in grep ggrep; do
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5327 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5328 # Check for GNU ac_path_GREP and select it if it is found.
5329 # Check for GNU $ac_path_GREP
5330 case `"$ac_path_GREP" --version 2>&1` in
5332 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5335 $as_echo_n 0123456789 >"conftest.in"
5338 cat "conftest.in" "conftest.in" >"conftest.tmp"
5339 mv "conftest.tmp" "conftest.in"
5340 cp "conftest.in" "conftest.nl"
5341 $as_echo 'GREP' >> "conftest.nl"
5342 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5343 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5344 as_fn_arith $ac_count + 1 && ac_count=$as_val
5345 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5346 # Best one so far, save it but keep looking for a better one
5347 ac_cv_path_GREP="$ac_path_GREP"
5348 ac_path_GREP_max=$ac_count
5350 # 10*(2^10) chars as input seems more than enough
5351 test $ac_count -gt 10 && break
5353 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5356 $ac_path_GREP_found && break 3
5361 if test -z "$ac_cv_path_GREP"; then
5362 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5365 ac_cv_path_GREP=$GREP
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5370 $as_echo "$ac_cv_path_GREP" >&6; }
5371 GREP="$ac_cv_path_GREP"
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5375 $as_echo_n "checking for egrep... " >&6; }
5376 if ${ac_cv_path_EGREP+:} false; then :
5377 $as_echo_n "(cached) " >&6
5379 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5380 then ac_cv_path_EGREP="$GREP -E"
5382 if test -z "$EGREP"; then
5383 ac_path_EGREP_found=false
5384 # Loop through the user's path and test for each of PROGNAME-LIST
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5389 test -z "$as_dir" && as_dir=.
5390 for ac_prog in egrep; do
5391 for ac_exec_ext in '' $ac_executable_extensions; do
5392 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5393 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5394 # Check for GNU ac_path_EGREP and select it if it is found.
5395 # Check for GNU $ac_path_EGREP
5396 case `"$ac_path_EGREP" --version 2>&1` in
5398 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5401 $as_echo_n 0123456789 >"conftest.in"
5404 cat "conftest.in" "conftest.in" >"conftest.tmp"
5405 mv "conftest.tmp" "conftest.in"
5406 cp "conftest.in" "conftest.nl"
5407 $as_echo 'EGREP' >> "conftest.nl"
5408 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5409 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5410 as_fn_arith $ac_count + 1 && ac_count=$as_val
5411 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5412 # Best one so far, save it but keep looking for a better one
5413 ac_cv_path_EGREP="$ac_path_EGREP"
5414 ac_path_EGREP_max=$ac_count
5416 # 10*(2^10) chars as input seems more than enough
5417 test $ac_count -gt 10 && break
5419 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5422 $ac_path_EGREP_found && break 3
5427 if test -z "$ac_cv_path_EGREP"; then
5428 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5431 ac_cv_path_EGREP=$EGREP
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5437 $as_echo "$ac_cv_path_EGREP" >&6; }
5438 EGREP="$ac_cv_path_EGREP"
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5442 $as_echo_n "checking for ANSI C header files... " >&6; }
5443 if ${ac_cv_header_stdc+:} false; then :
5444 $as_echo_n "(cached) " >&6
5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5447 /* end confdefs.h. */
5461 if ac_fn_c_try_compile "$LINENO"; then :
5462 ac_cv_header_stdc=yes
5464 ac_cv_header_stdc=no
5466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5468 if test $ac_cv_header_stdc = yes; then
5469 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5475 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5476 $EGREP "memchr" >/dev/null 2>&1; then :
5479 ac_cv_header_stdc=no
5485 if test $ac_cv_header_stdc = yes; then
5486 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5488 /* end confdefs.h. */
5492 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5493 $EGREP "free" >/dev/null 2>&1; then :
5496 ac_cv_header_stdc=no
5502 if test $ac_cv_header_stdc = yes; then
5503 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5504 if test "$cross_compiling" = yes; then :
5507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5508 /* end confdefs.h. */
5511 #if ((' ' & 0x0FF) == 0x020)
5512 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5513 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5515 # define ISLOWER(c) \
5516 (('a' <= (c) && (c) <= 'i') \
5517 || ('j' <= (c) && (c) <= 'r') \
5518 || ('s' <= (c) && (c) <= 'z'))
5519 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5522 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5527 for (i = 0; i < 256; i++)
5528 if (XOR (islower (i), ISLOWER (i))
5529 || toupper (i) != TOUPPER (i))
5534 if ac_fn_c_try_run "$LINENO"; then :
5537 ac_cv_header_stdc=no
5539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5540 conftest.$ac_objext conftest.beam conftest.$ac_ext
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5546 $as_echo "$ac_cv_header_stdc" >&6; }
5547 if test $ac_cv_header_stdc = yes; then
5549 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5553 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5554 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5555 inttypes.h stdint.h unistd.h
5557 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5558 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5560 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5561 cat >>confdefs.h <<_ACEOF
5562 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5571 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5572 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5579 if test "$MINIX" = yes; then
5581 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5584 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5587 $as_echo "#define _MINIX 1" >>confdefs.h
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5593 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5594 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5595 $as_echo_n "(cached) " >&6
5597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5598 /* end confdefs.h. */
5600 # define __EXTENSIONS__ 1
5601 $ac_includes_default
5610 if ac_fn_c_try_compile "$LINENO"; then :
5611 ac_cv_safe_to_define___extensions__=yes
5613 ac_cv_safe_to_define___extensions__=no
5615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5618 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5619 test $ac_cv_safe_to_define___extensions__ = yes &&
5620 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5622 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5624 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5626 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5628 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5632 # Check for programs
5634 ac_cpp='$CPP $CPPFLAGS'
5635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5638 if test -n "$ac_tool_prefix"; then
5639 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5640 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642 $as_echo_n "checking for $ac_word... " >&6; }
5643 if ${ac_cv_prog_CC+:} false; then :
5644 $as_echo_n "(cached) " >&6
5646 if test -n "$CC"; then
5647 ac_cv_prog_CC="$CC" # Let the user override the test.
5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 test -z "$as_dir" && as_dir=.
5654 for ac_exec_ext in '' $ac_executable_extensions; do
5655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5656 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5667 if test -n "$CC"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5669 $as_echo "$CC" >&6; }
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5677 if test -z "$ac_cv_prog_CC"; then
5679 # Extract the first word of "gcc", so it can be a program name with args.
5680 set dummy gcc; ac_word=$2
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5682 $as_echo_n "checking for $ac_word... " >&6; }
5683 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5684 $as_echo_n "(cached) " >&6
5686 if test -n "$ac_ct_CC"; then
5687 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 test -z "$as_dir" && as_dir=.
5694 for ac_exec_ext in '' $ac_executable_extensions; do
5695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5696 ac_cv_prog_ac_ct_CC="gcc"
5697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5706 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5707 if test -n "$ac_ct_CC"; then
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5709 $as_echo "$ac_ct_CC" >&6; }
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5712 $as_echo "no" >&6; }
5715 if test "x$ac_ct_CC" = x; then
5718 case $cross_compiling:$ac_tool_warned in
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5722 ac_tool_warned=yes ;;
5730 if test -z "$CC"; then
5731 if test -n "$ac_tool_prefix"; then
5732 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5733 set dummy ${ac_tool_prefix}cc; ac_word=$2
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5735 $as_echo_n "checking for $ac_word... " >&6; }
5736 if ${ac_cv_prog_CC+:} false; then :
5737 $as_echo_n "(cached) " >&6
5739 if test -n "$CC"; then
5740 ac_cv_prog_CC="$CC" # Let the user override the test.
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 test -z "$as_dir" && as_dir=.
5747 for ac_exec_ext in '' $ac_executable_extensions; do
5748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5749 ac_cv_prog_CC="${ac_tool_prefix}cc"
5750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5760 if test -n "$CC"; then
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5762 $as_echo "$CC" >&6; }
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5765 $as_echo "no" >&6; }
5771 if test -z "$CC"; then
5772 # Extract the first word of "cc", so it can be a program name with args.
5773 set dummy cc; ac_word=$2
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5775 $as_echo_n "checking for $ac_word... " >&6; }
5776 if ${ac_cv_prog_CC+:} false; then :
5777 $as_echo_n "(cached) " >&6
5779 if test -n "$CC"; then
5780 ac_cv_prog_CC="$CC" # Let the user override the test.
5783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5787 test -z "$as_dir" && as_dir=.
5788 for ac_exec_ext in '' $ac_executable_extensions; do
5789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5790 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5791 ac_prog_rejected=yes
5795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5802 if test $ac_prog_rejected = yes; then
5803 # We found a bogon in the path, so make sure we never use it.
5804 set dummy $ac_cv_prog_CC
5806 if test $# != 0; then
5807 # We chose a different compiler from the bogus one.
5808 # However, it has the same basename, so the bogon will be chosen
5809 # first if we set CC to just the basename; use the full file name.
5811 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5817 if test -n "$CC"; then
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5819 $as_echo "$CC" >&6; }
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5822 $as_echo "no" >&6; }
5827 if test -z "$CC"; then
5828 if test -n "$ac_tool_prefix"; then
5829 for ac_prog in cl.exe
5831 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5832 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5834 $as_echo_n "checking for $ac_word... " >&6; }
5835 if ${ac_cv_prog_CC+:} false; then :
5836 $as_echo_n "(cached) " >&6
5838 if test -n "$CC"; then
5839 ac_cv_prog_CC="$CC" # Let the user override the test.
5841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5845 test -z "$as_dir" && as_dir=.
5846 for ac_exec_ext in '' $ac_executable_extensions; do
5847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5848 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5859 if test -n "$CC"; then
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5861 $as_echo "$CC" >&6; }
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5864 $as_echo "no" >&6; }
5868 test -n "$CC" && break
5871 if test -z "$CC"; then
5873 for ac_prog in cl.exe
5875 # Extract the first word of "$ac_prog", so it can be a program name with args.
5876 set dummy $ac_prog; ac_word=$2
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5878 $as_echo_n "checking for $ac_word... " >&6; }
5879 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5880 $as_echo_n "(cached) " >&6
5882 if test -n "$ac_ct_CC"; then
5883 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 test -z "$as_dir" && as_dir=.
5890 for ac_exec_ext in '' $ac_executable_extensions; do
5891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5892 ac_cv_prog_ac_ct_CC="$ac_prog"
5893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5902 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5903 if test -n "$ac_ct_CC"; then
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5905 $as_echo "$ac_ct_CC" >&6; }
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5908 $as_echo "no" >&6; }
5912 test -n "$ac_ct_CC" && break
5915 if test "x$ac_ct_CC" = x; then
5918 case $cross_compiling:$ac_tool_warned in
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5921 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5922 ac_tool_warned=yes ;;
5931 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5933 as_fn_error $? "no acceptable C compiler found in \$PATH
5934 See \`config.log' for more details" "$LINENO" 5; }
5936 # Provide some information about the compiler.
5937 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5940 for ac_option in --version -v -V -qversion; do
5941 { { ac_try="$ac_compiler $ac_option >&5"
5943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5947 $as_echo "$ac_try_echo"; } >&5
5948 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5950 if test -s conftest.err; then
5952 ... rest of stderr output deleted ...
5953 10q' conftest.err >conftest.er1
5954 cat conftest.er1 >&5
5956 rm -f conftest.er1 conftest.err
5957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5958 test $ac_status = 0; }
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5962 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5963 if ${ac_cv_c_compiler_gnu+:} false; then :
5964 $as_echo_n "(cached) " >&6
5966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5967 /* end confdefs.h. */
5980 if ac_fn_c_try_compile "$LINENO"; then :
5985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5986 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5990 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5991 if test $ac_compiler_gnu = yes; then
5996 ac_test_CFLAGS=${CFLAGS+set}
5997 ac_save_CFLAGS=$CFLAGS
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5999 $as_echo_n "checking whether $CC accepts -g... " >&6; }
6000 if ${ac_cv_prog_cc_g+:} false; then :
6001 $as_echo_n "(cached) " >&6
6003 ac_save_c_werror_flag=$ac_c_werror_flag
6004 ac_c_werror_flag=yes
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6008 /* end confdefs.h. */
6018 if ac_fn_c_try_compile "$LINENO"; then :
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6023 /* end confdefs.h. */
6033 if ac_fn_c_try_compile "$LINENO"; then :
6036 ac_c_werror_flag=$ac_save_c_werror_flag
6038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6039 /* end confdefs.h. */
6049 if ac_fn_c_try_compile "$LINENO"; then :
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057 ac_c_werror_flag=$ac_save_c_werror_flag
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6060 $as_echo "$ac_cv_prog_cc_g" >&6; }
6061 if test "$ac_test_CFLAGS" = set; then
6062 CFLAGS=$ac_save_CFLAGS
6063 elif test $ac_cv_prog_cc_g = yes; then
6064 if test "$GCC" = yes; then
6070 if test "$GCC" = yes; then
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6077 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6078 if ${ac_cv_prog_cc_c89+:} false; then :
6079 $as_echo_n "(cached) " >&6
6081 ac_cv_prog_cc_c89=no
6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6084 /* end confdefs.h. */
6087 #include <sys/types.h>
6088 #include <sys/stat.h>
6089 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6090 struct buf { int x; };
6091 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6092 static char *e (p, i)
6098 static char *f (char * (*g) (char **, int), char **p, ...)
6103 s = g (p, va_arg (v,int));
6108 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6109 function prototypes and stuff, but not '\xHH' hex character constants.
6110 These don't provoke an error unfortunately, instead are silently treated
6111 as 'x'. The following induces an error, until -std is added to get
6112 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6113 array size at least. It's necessary to write '\x00'==0 to get something
6114 that's true only with -std. */
6115 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6117 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6118 inside strings and character constants. */
6120 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6122 int test (int i, double x);
6123 struct s1 {int (*f) (int a);};
6124 struct s2 {int (*f) (double a);};
6125 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6131 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6136 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6137 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6139 CC="$ac_save_CC $ac_arg"
6140 if ac_fn_c_try_compile "$LINENO"; then :
6141 ac_cv_prog_cc_c89=$ac_arg
6143 rm -f core conftest.err conftest.$ac_objext
6144 test "x$ac_cv_prog_cc_c89" != "xno" && break
6146 rm -f conftest.$ac_ext
6151 case "x$ac_cv_prog_cc_c89" in
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6154 $as_echo "none needed" >&6; } ;;
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6157 $as_echo "unsupported" >&6; } ;;
6159 CC="$CC $ac_cv_prog_cc_c89"
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6161 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6163 if test "x$ac_cv_prog_cc_c89" != xno; then :
6168 ac_cpp='$CPP $CPPFLAGS'
6169 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6170 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6171 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6173 depcc="$CC" am_compiler_list=
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6176 $as_echo_n "checking dependency style of $depcc... " >&6; }
6177 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6178 $as_echo_n "(cached) " >&6
6180 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6181 # We make a subdir and do the tests there. Otherwise we can end up
6182 # making bogus files that we don't know about and never remove. For
6183 # instance it was reported that on HP-UX the gcc test will end up
6184 # making a dummy file named `D' -- because `-MD' means `put the output
6187 # Copy depcomp to subdir because otherwise we won't find it if we're
6188 # using a relative directory.
6189 cp "$am_depcomp" conftest.dir
6191 # We will build objects and dependencies in a subdirectory because
6192 # it helps to detect inapplicable dependency modes. For instance
6193 # both Tru64's cc and ICC support -MD to output dependencies as a
6194 # side effect of compilation, but ICC will put the dependencies in
6195 # the current directory while Tru64 will put them in the object
6199 am_cv_CC_dependencies_compiler_type=none
6200 if test "$am_compiler_list" = ""; then
6201 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6204 case " $depcc " in #(
6205 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6208 for depmode in $am_compiler_list; do
6209 # Setup a source with many dependencies, because some compilers
6210 # like to wrap large dependency lists on column 80 (with \), and
6211 # we should not choose a depcomp mode which is confused by this.
6213 # We need to recreate these files for each test, as the compiler may
6214 # overwrite some of them when testing with obscure command lines.
6215 # This happens at least with the AIX C compiler.
6217 for i in 1 2 3 4 5 6; do
6218 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6219 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6220 # Solaris 8's {/usr,}/bin/sh.
6221 touch sub/conftst$i.h
6223 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6225 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6226 # mode. It turns out that the SunPro C++ compiler does not properly
6227 # handle `-M -o', and we need to detect this. Also, some Intel
6228 # versions had trouble with output in subdirs
6229 am__obj=sub/conftest.${OBJEXT-o}
6230 am__minus_obj="-o $am__obj"
6233 # This depmode causes a compiler race in universal mode.
6234 test "$am__universal" = false || continue
6237 # after this tag, mechanisms are not by side-effect, so they'll
6238 # only be used when explicitly requested
6239 if test "x$enable_dependency_tracking" = xyes; then
6245 msvisualcpp | msvcmsys)
6246 # This compiler won't grok `-c -o', but also, the minuso test has
6247 # not run yet. These depmodes are late enough in the game, and
6248 # so weak that their functioning should not be impacted.
6249 am__obj=conftest.${OBJEXT-o}
6254 if depmode=$depmode \
6255 source=sub/conftest.c object=$am__obj \
6256 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6257 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6258 >/dev/null 2>conftest.err &&
6259 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6260 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6261 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6262 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6263 # icc doesn't choke on unknown options, it will just issue warnings
6264 # or remarks (even with -Werror). So we grep stderr for any message
6265 # that says an option was ignored or not supported.
6266 # When given -MP, icc 7.0 and 7.1 complain thusly:
6267 # icc: Command line warning: ignoring option '-M'; no argument required
6268 # The diagnosis changed in icc 8.0:
6269 # icc: Command line remark: option '-MP' not supported
6270 if (grep 'ignoring option' conftest.err ||
6271 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6272 am_cv_CC_dependencies_compiler_type=$depmode
6281 am_cv_CC_dependencies_compiler_type=none
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6286 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6287 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6290 test "x$enable_dependency_tracking" != xno \
6291 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6293 am__fastdepCC_FALSE='#'
6295 am__fastdepCC_TRUE='#'
6296 am__fastdepCC_FALSE=
6301 ac_cpp='$CXXCPP $CPPFLAGS'
6302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6305 if test -z "$CXX"; then
6306 if test -n "$CCC"; then
6309 if test -n "$ac_tool_prefix"; then
6310 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6312 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6313 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6315 $as_echo_n "checking for $ac_word... " >&6; }
6316 if ${ac_cv_prog_CXX+:} false; then :
6317 $as_echo_n "(cached) " >&6
6319 if test -n "$CXX"; then
6320 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6326 test -z "$as_dir" && as_dir=.
6327 for ac_exec_ext in '' $ac_executable_extensions; do
6328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6329 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6340 if test -n "$CXX"; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6342 $as_echo "$CXX" >&6; }
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6345 $as_echo "no" >&6; }
6349 test -n "$CXX" && break
6352 if test -z "$CXX"; then
6354 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6356 # Extract the first word of "$ac_prog", so it can be a program name with args.
6357 set dummy $ac_prog; ac_word=$2
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359 $as_echo_n "checking for $ac_word... " >&6; }
6360 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6361 $as_echo_n "(cached) " >&6
6363 if test -n "$ac_ct_CXX"; then
6364 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6370 test -z "$as_dir" && as_dir=.
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6373 ac_cv_prog_ac_ct_CXX="$ac_prog"
6374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6383 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6384 if test -n "$ac_ct_CXX"; then
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6386 $as_echo "$ac_ct_CXX" >&6; }
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389 $as_echo "no" >&6; }
6393 test -n "$ac_ct_CXX" && break
6396 if test "x$ac_ct_CXX" = x; then
6399 case $cross_compiling:$ac_tool_warned in
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6403 ac_tool_warned=yes ;;
6411 # Provide some information about the compiler.
6412 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6415 for ac_option in --version -v -V -qversion; do
6416 { { ac_try="$ac_compiler $ac_option >&5"
6418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6419 *) ac_try_echo=$ac_try;;
6421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6422 $as_echo "$ac_try_echo"; } >&5
6423 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6425 if test -s conftest.err; then
6427 ... rest of stderr output deleted ...
6428 10q' conftest.err >conftest.er1
6429 cat conftest.er1 >&5
6431 rm -f conftest.er1 conftest.err
6432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6433 test $ac_status = 0; }
6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6437 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6438 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6439 $as_echo_n "(cached) " >&6
6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6442 /* end confdefs.h. */
6455 if ac_fn_cxx_try_compile "$LINENO"; then :
6460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6461 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6465 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6466 if test $ac_compiler_gnu = yes; then
6471 ac_test_CXXFLAGS=${CXXFLAGS+set}
6472 ac_save_CXXFLAGS=$CXXFLAGS
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6474 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6475 if ${ac_cv_prog_cxx_g+:} false; then :
6476 $as_echo_n "(cached) " >&6
6478 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6479 ac_cxx_werror_flag=yes
6482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6483 /* end confdefs.h. */
6493 if ac_fn_cxx_try_compile "$LINENO"; then :
6494 ac_cv_prog_cxx_g=yes
6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h. */
6508 if ac_fn_cxx_try_compile "$LINENO"; then :
6511 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6514 /* end confdefs.h. */
6524 if ac_fn_cxx_try_compile "$LINENO"; then :
6525 ac_cv_prog_cxx_g=yes
6527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6532 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6535 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6536 if test "$ac_test_CXXFLAGS" = set; then
6537 CXXFLAGS=$ac_save_CXXFLAGS
6538 elif test $ac_cv_prog_cxx_g = yes; then
6539 if test "$GXX" = yes; then
6545 if test "$GXX" = yes; then
6552 ac_cpp='$CPP $CPPFLAGS'
6553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6557 depcc="$CXX" am_compiler_list=
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6560 $as_echo_n "checking dependency style of $depcc... " >&6; }
6561 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6562 $as_echo_n "(cached) " >&6
6564 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6565 # We make a subdir and do the tests there. Otherwise we can end up
6566 # making bogus files that we don't know about and never remove. For
6567 # instance it was reported that on HP-UX the gcc test will end up
6568 # making a dummy file named `D' -- because `-MD' means `put the output
6571 # Copy depcomp to subdir because otherwise we won't find it if we're
6572 # using a relative directory.
6573 cp "$am_depcomp" conftest.dir
6575 # We will build objects and dependencies in a subdirectory because
6576 # it helps to detect inapplicable dependency modes. For instance
6577 # both Tru64's cc and ICC support -MD to output dependencies as a
6578 # side effect of compilation, but ICC will put the dependencies in
6579 # the current directory while Tru64 will put them in the object
6583 am_cv_CXX_dependencies_compiler_type=none
6584 if test "$am_compiler_list" = ""; then
6585 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6588 case " $depcc " in #(
6589 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6592 for depmode in $am_compiler_list; do
6593 # Setup a source with many dependencies, because some compilers
6594 # like to wrap large dependency lists on column 80 (with \), and
6595 # we should not choose a depcomp mode which is confused by this.
6597 # We need to recreate these files for each test, as the compiler may
6598 # overwrite some of them when testing with obscure command lines.
6599 # This happens at least with the AIX C compiler.
6601 for i in 1 2 3 4 5 6; do
6602 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6603 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6604 # Solaris 8's {/usr,}/bin/sh.
6605 touch sub/conftst$i.h
6607 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6609 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6610 # mode. It turns out that the SunPro C++ compiler does not properly
6611 # handle `-M -o', and we need to detect this. Also, some Intel
6612 # versions had trouble with output in subdirs
6613 am__obj=sub/conftest.${OBJEXT-o}
6614 am__minus_obj="-o $am__obj"
6617 # This depmode causes a compiler race in universal mode.
6618 test "$am__universal" = false || continue
6621 # after this tag, mechanisms are not by side-effect, so they'll
6622 # only be used when explicitly requested
6623 if test "x$enable_dependency_tracking" = xyes; then
6629 msvisualcpp | msvcmsys)
6630 # This compiler won't grok `-c -o', but also, the minuso test has
6631 # not run yet. These depmodes are late enough in the game, and
6632 # so weak that their functioning should not be impacted.
6633 am__obj=conftest.${OBJEXT-o}
6638 if depmode=$depmode \
6639 source=sub/conftest.c object=$am__obj \
6640 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6641 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6642 >/dev/null 2>conftest.err &&
6643 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6644 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6645 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6646 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6647 # icc doesn't choke on unknown options, it will just issue warnings
6648 # or remarks (even with -Werror). So we grep stderr for any message
6649 # that says an option was ignored or not supported.
6650 # When given -MP, icc 7.0 and 7.1 complain thusly:
6651 # icc: Command line warning: ignoring option '-M'; no argument required
6652 # The diagnosis changed in icc 8.0:
6653 # icc: Command line remark: option '-MP' not supported
6654 if (grep 'ignoring option' conftest.err ||
6655 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6656 am_cv_CXX_dependencies_compiler_type=$depmode
6665 am_cv_CXX_dependencies_compiler_type=none
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6670 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6671 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6674 test "x$enable_dependency_tracking" != xno \
6675 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6676 am__fastdepCXX_TRUE=
6677 am__fastdepCXX_FALSE='#'
6679 am__fastdepCXX_TRUE='#'
6680 am__fastdepCXX_FALSE=
6684 case $ac_cv_prog_cc_stdc in #(
6686 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6689 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6690 if ${ac_cv_prog_cc_c99+:} false; then :
6691 $as_echo_n "(cached) " >&6
6693 ac_cv_prog_cc_c99=no
6695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6696 /* end confdefs.h. */
6698 #include <stdbool.h>
6703 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6704 #define debug(...) fprintf (stderr, __VA_ARGS__)
6705 #define showlist(...) puts (#__VA_ARGS__)
6706 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6708 test_varargs_macros (void)
6713 debug ("X = %d\n", x);
6714 showlist (The first, second, and third items.);
6715 report (x>y, "x is %d but y is %d", x, y);
6718 // Check long long types.
6719 #define BIG64 18446744073709551615ull
6720 #define BIG32 4294967295ul
6721 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6723 your preprocessor is broken;
6727 your preprocessor is broken;
6729 static long long int bignum = -9223372036854775807LL;
6730 static unsigned long long int ubignum = BIG64;
6732 struct incomplete_array
6740 const wchar_t *name;
6744 typedef const char *ccp;
6747 test_restrict (ccp restrict text)
6749 // See if C++-style comments work.
6750 // Iterate through items via the restricted pointer.
6751 // Also check for declarations in for loops.
6752 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6757 // Check varargs and va_copy.
6759 test_varargs (const char *format, ...)
6762 va_start (args, format);
6764 va_copy (args_copy, args);
6775 str = va_arg (args_copy, const char *);
6778 number = va_arg (args_copy, int);
6781 fnumber = va_arg (args_copy, double);
6796 _Bool success = false;
6799 if (test_restrict ("String literal") == 0)
6801 char *restrict newvar = "Another string";
6804 test_varargs ("s, d' f .", "string", 65, 34.234);
6805 test_varargs_macros ();
6807 // Check flexible array members.
6808 struct incomplete_array *ia =
6809 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6811 for (int i = 0; i < ia->datasize; ++i)
6812 ia->data[i] = i * 1.234;
6814 // Check named initializers.
6815 struct named_init ni = {
6817 .name = L"Test wide string",
6818 .average = 543.34343,
6823 int dynamic_array[ni.number];
6824 dynamic_array[ni.number - 1] = 543;
6826 // work around unused variable warnings
6827 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6828 || dynamic_array[ni.number - 1] != 543);
6834 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6836 CC="$ac_save_CC $ac_arg"
6837 if ac_fn_c_try_compile "$LINENO"; then :
6838 ac_cv_prog_cc_c99=$ac_arg
6840 rm -f core conftest.err conftest.$ac_objext
6841 test "x$ac_cv_prog_cc_c99" != "xno" && break
6843 rm -f conftest.$ac_ext
6848 case "x$ac_cv_prog_cc_c99" in
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6851 $as_echo "none needed" >&6; } ;;
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6854 $as_echo "unsupported" >&6; } ;;
6856 CC="$CC $ac_cv_prog_cc_c99"
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6858 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6860 if test "x$ac_cv_prog_cc_c99" != xno; then :
6861 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6864 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6865 if ${ac_cv_prog_cc_c89+:} false; then :
6866 $as_echo_n "(cached) " >&6
6868 ac_cv_prog_cc_c89=no
6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6871 /* end confdefs.h. */
6874 #include <sys/types.h>
6875 #include <sys/stat.h>
6876 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6877 struct buf { int x; };
6878 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6879 static char *e (p, i)
6885 static char *f (char * (*g) (char **, int), char **p, ...)
6890 s = g (p, va_arg (v,int));
6895 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6896 function prototypes and stuff, but not '\xHH' hex character constants.
6897 These don't provoke an error unfortunately, instead are silently treated
6898 as 'x'. The following induces an error, until -std is added to get
6899 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6900 array size at least. It's necessary to write '\x00'==0 to get something
6901 that's true only with -std. */
6902 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6904 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6905 inside strings and character constants. */
6907 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6909 int test (int i, double x);
6910 struct s1 {int (*f) (int a);};
6911 struct s2 {int (*f) (double a);};
6912 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6918 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6923 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6924 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6926 CC="$ac_save_CC $ac_arg"
6927 if ac_fn_c_try_compile "$LINENO"; then :
6928 ac_cv_prog_cc_c89=$ac_arg
6930 rm -f core conftest.err conftest.$ac_objext
6931 test "x$ac_cv_prog_cc_c89" != "xno" && break
6933 rm -f conftest.$ac_ext
6938 case "x$ac_cv_prog_cc_c89" in
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6941 $as_echo "none needed" >&6; } ;;
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6944 $as_echo "unsupported" >&6; } ;;
6946 CC="$CC $ac_cv_prog_cc_c89"
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6948 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6950 if test "x$ac_cv_prog_cc_c89" != xno; then :
6951 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6953 ac_cv_prog_cc_stdc=no
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6960 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6961 if ${ac_cv_prog_cc_stdc+:} false; then :
6962 $as_echo_n "(cached) " >&6
6965 case $ac_cv_prog_cc_stdc in #(
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6968 $as_echo "unsupported" >&6; } ;; #(
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6971 $as_echo "none needed" >&6; } ;; #(
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6974 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6978 ac_cpp='$CPP $CPPFLAGS'
6979 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6980 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6981 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6983 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6984 # On Suns, sometimes $CPP names a directory.
6985 if test -n "$CPP" && test -d "$CPP"; then
6988 if test -z "$CPP"; then
6989 if ${ac_cv_prog_CPP+:} false; then :
6990 $as_echo_n "(cached) " >&6
6992 # Double quotes because CPP needs to be expanded
6993 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6996 for ac_c_preproc_warn_flag in '' yes
6998 # Use a header file that comes with gcc, so configuring glibc
6999 # with a fresh cross-compiler works.
7000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7001 # <limits.h> exists even on freestanding compilers.
7002 # On the NeXT, cc -E runs the code through the compiler's parser,
7003 # not just through cpp. "Syntax error" is here to catch this case.
7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7007 # include <limits.h>
7009 # include <assert.h>
7013 if ac_fn_c_try_cpp "$LINENO"; then :
7016 # Broken: fails on valid input.
7019 rm -f conftest.err conftest.i conftest.$ac_ext
7021 # OK, works on sane cases. Now check whether nonexistent headers
7022 # can be detected and how.
7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7024 /* end confdefs.h. */
7025 #include <ac_nonexistent.h>
7027 if ac_fn_c_try_cpp "$LINENO"; then :
7028 # Broken: success on invalid input.
7031 # Passes both tests.
7035 rm -f conftest.err conftest.i conftest.$ac_ext
7038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7039 rm -f conftest.i conftest.err conftest.$ac_ext
7040 if $ac_preproc_ok; then :
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7053 $as_echo "$CPP" >&6; }
7055 for ac_c_preproc_warn_flag in '' yes
7057 # Use a header file that comes with gcc, so configuring glibc
7058 # with a fresh cross-compiler works.
7059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7060 # <limits.h> exists even on freestanding compilers.
7061 # On the NeXT, cc -E runs the code through the compiler's parser,
7062 # not just through cpp. "Syntax error" is here to catch this case.
7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7064 /* end confdefs.h. */
7066 # include <limits.h>
7068 # include <assert.h>
7072 if ac_fn_c_try_cpp "$LINENO"; then :
7075 # Broken: fails on valid input.
7078 rm -f conftest.err conftest.i conftest.$ac_ext
7080 # OK, works on sane cases. Now check whether nonexistent headers
7081 # can be detected and how.
7082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7083 /* end confdefs.h. */
7084 #include <ac_nonexistent.h>
7086 if ac_fn_c_try_cpp "$LINENO"; then :
7087 # Broken: success on invalid input.
7090 # Passes both tests.
7094 rm -f conftest.err conftest.i conftest.$ac_ext
7097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7098 rm -f conftest.i conftest.err conftest.$ac_ext
7099 if $ac_preproc_ok; then :
7102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7104 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7105 See \`config.log' for more details" "$LINENO" 5; }
7109 ac_cpp='$CPP $CPPFLAGS'
7110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7115 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7116 if ${ac_cv_path_SED+:} false; then :
7117 $as_echo_n "(cached) " >&6
7119 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7120 for ac_i in 1 2 3 4 5 6 7; do
7121 ac_script="$ac_script$as_nl$ac_script"
7123 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7124 { ac_script=; unset ac_script;}
7125 if test -z "$SED"; then
7126 ac_path_SED_found=false
7127 # Loop through the user's path and test for each of PROGNAME-LIST
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7132 test -z "$as_dir" && as_dir=.
7133 for ac_prog in sed gsed; do
7134 for ac_exec_ext in '' $ac_executable_extensions; do
7135 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7136 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7137 # Check for GNU ac_path_SED and select it if it is found.
7138 # Check for GNU $ac_path_SED
7139 case `"$ac_path_SED" --version 2>&1` in
7141 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7144 $as_echo_n 0123456789 >"conftest.in"
7147 cat "conftest.in" "conftest.in" >"conftest.tmp"
7148 mv "conftest.tmp" "conftest.in"
7149 cp "conftest.in" "conftest.nl"
7150 $as_echo '' >> "conftest.nl"
7151 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7152 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7153 as_fn_arith $ac_count + 1 && ac_count=$as_val
7154 if test $ac_count -gt ${ac_path_SED_max-0}; then
7155 # Best one so far, save it but keep looking for a better one
7156 ac_cv_path_SED="$ac_path_SED"
7157 ac_path_SED_max=$ac_count
7159 # 10*(2^10) chars as input seems more than enough
7160 test $ac_count -gt 10 && break
7162 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7165 $ac_path_SED_found && break 3
7170 if test -z "$ac_cv_path_SED"; then
7171 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7179 $as_echo "$ac_cv_path_SED" >&6; }
7180 SED="$ac_cv_path_SED"
7183 test -z "$SED" && SED=sed
7184 Xsed="$SED -e 1s/^X//"
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7197 $as_echo_n "checking for fgrep... " >&6; }
7198 if ${ac_cv_path_FGREP+:} false; then :
7199 $as_echo_n "(cached) " >&6
7201 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7202 then ac_cv_path_FGREP="$GREP -F"
7204 if test -z "$FGREP"; then
7205 ac_path_FGREP_found=false
7206 # Loop through the user's path and test for each of PROGNAME-LIST
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7211 test -z "$as_dir" && as_dir=.
7212 for ac_prog in fgrep; do
7213 for ac_exec_ext in '' $ac_executable_extensions; do
7214 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7215 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7216 # Check for GNU ac_path_FGREP and select it if it is found.
7217 # Check for GNU $ac_path_FGREP
7218 case `"$ac_path_FGREP" --version 2>&1` in
7220 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7223 $as_echo_n 0123456789 >"conftest.in"
7226 cat "conftest.in" "conftest.in" >"conftest.tmp"
7227 mv "conftest.tmp" "conftest.in"
7228 cp "conftest.in" "conftest.nl"
7229 $as_echo 'FGREP' >> "conftest.nl"
7230 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7232 as_fn_arith $ac_count + 1 && ac_count=$as_val
7233 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7234 # Best one so far, save it but keep looking for a better one
7235 ac_cv_path_FGREP="$ac_path_FGREP"
7236 ac_path_FGREP_max=$ac_count
7238 # 10*(2^10) chars as input seems more than enough
7239 test $ac_count -gt 10 && break
7241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7244 $ac_path_FGREP_found && break 3
7249 if test -z "$ac_cv_path_FGREP"; then
7250 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7253 ac_cv_path_FGREP=$FGREP
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7259 $as_echo "$ac_cv_path_FGREP" >&6; }
7260 FGREP="$ac_cv_path_FGREP"
7263 test -z "$GREP" && GREP=grep
7281 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7282 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7283 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7286 $as_echo_n "checking how to print strings... " >&6; }
7287 # Test print first, because it will be a builtin if present.
7288 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7289 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7291 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7294 # Use this function as a fallback that always works.
7295 func_fallback_echo ()
7297 eval 'cat <<_LTECHO_EOF
7301 ECHO='func_fallback_echo'
7304 # func_echo_all arg...
7305 # Invoke $ECHO with all args, space-separated.
7312 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7313 $as_echo "printf" >&6; } ;;
7314 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7315 $as_echo "print -r" >&6; } ;;
7316 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7317 $as_echo "cat" >&6; } ;;
7335 # Check whether --with-gnu-ld was given.
7336 if test "${with_gnu_ld+set}" = set; then :
7337 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7343 if test "$GCC" = yes; then
7344 # Check if gcc -print-prog-name=ld gives a path.
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7346 $as_echo_n "checking for ld used by $CC... " >&6; }
7349 # gcc leaves a trailing carriage return which upsets mingw
7350 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7352 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7355 # Accept absolute paths.
7357 re_direlt='/[^/][^/]*/\.\./'
7358 # Canonicalize the pathname of ld
7359 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7360 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7361 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7363 test -z "$LD" && LD="$ac_prog"
7366 # If it fails, then pretend we aren't using GCC.
7370 # If it is relative, then search for the first ld in PATH.
7374 elif test "$with_gnu_ld" = yes; then
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7376 $as_echo_n "checking for GNU ld... " >&6; }
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7379 $as_echo_n "checking for non-GNU ld... " >&6; }
7381 if ${lt_cv_path_LD+:} false; then :
7382 $as_echo_n "(cached) " >&6
7384 if test -z "$LD"; then
7385 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7386 for ac_dir in $PATH; do
7388 test -z "$ac_dir" && ac_dir=.
7389 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7390 lt_cv_path_LD="$ac_dir/$ac_prog"
7391 # Check to see if the program is GNU ld. I'd rather use --version,
7392 # but apparently some variants of GNU ld only accept -v.
7393 # Break only if it was the GNU/non-GNU ld that we prefer.
7394 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7395 *GNU* | *'with BFD'*)
7396 test "$with_gnu_ld" != no && break
7399 test "$with_gnu_ld" != yes && break
7406 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7411 if test -n "$LD"; then
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7413 $as_echo "$LD" >&6; }
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7416 $as_echo "no" >&6; }
7418 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7420 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7421 if ${lt_cv_prog_gnu_ld+:} false; then :
7422 $as_echo_n "(cached) " >&6
7424 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7425 case `$LD -v 2>&1 </dev/null` in
7426 *GNU* | *'with BFD'*)
7427 lt_cv_prog_gnu_ld=yes
7430 lt_cv_prog_gnu_ld=no
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7435 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7436 with_gnu_ld=$lt_cv_prog_gnu_ld
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7448 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7449 if ${ac_cv_prog_cc_c99+:} false; then :
7450 $as_echo_n "(cached) " >&6
7452 ac_cv_prog_cc_c99=no
7454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7455 /* end confdefs.h. */
7457 #include <stdbool.h>
7462 // Check varargs macros. These examples are taken from C99 6.10.3.5.
7463 #define debug(...) fprintf (stderr, __VA_ARGS__)
7464 #define showlist(...) puts (#__VA_ARGS__)
7465 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7467 test_varargs_macros (void)
7472 debug ("X = %d\n", x);
7473 showlist (The first, second, and third items.);
7474 report (x>y, "x is %d but y is %d", x, y);
7477 // Check long long types.
7478 #define BIG64 18446744073709551615ull
7479 #define BIG32 4294967295ul
7480 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7482 your preprocessor is broken;
7486 your preprocessor is broken;
7488 static long long int bignum = -9223372036854775807LL;
7489 static unsigned long long int ubignum = BIG64;
7491 struct incomplete_array
7499 const wchar_t *name;
7503 typedef const char *ccp;
7506 test_restrict (ccp restrict text)
7508 // See if C++-style comments work.
7509 // Iterate through items via the restricted pointer.
7510 // Also check for declarations in for loops.
7511 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7516 // Check varargs and va_copy.
7518 test_varargs (const char *format, ...)
7521 va_start (args, format);
7523 va_copy (args_copy, args);
7534 str = va_arg (args_copy, const char *);
7537 number = va_arg (args_copy, int);
7540 fnumber = va_arg (args_copy, double);
7555 _Bool success = false;
7558 if (test_restrict ("String literal") == 0)
7560 char *restrict newvar = "Another string";
7563 test_varargs ("s, d' f .", "string", 65, 34.234);
7564 test_varargs_macros ();
7566 // Check flexible array members.
7567 struct incomplete_array *ia =
7568 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7570 for (int i = 0; i < ia->datasize; ++i)
7571 ia->data[i] = i * 1.234;
7573 // Check named initializers.
7574 struct named_init ni = {
7576 .name = L"Test wide string",
7577 .average = 543.34343,
7582 int dynamic_array[ni.number];
7583 dynamic_array[ni.number - 1] = 543;
7585 // work around unused variable warnings
7586 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7587 || dynamic_array[ni.number - 1] != 543);
7593 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7595 CC="$ac_save_CC $ac_arg"
7596 if ac_fn_c_try_compile "$LINENO"; then :
7597 ac_cv_prog_cc_c99=$ac_arg
7599 rm -f core conftest.err conftest.$ac_objext
7600 test "x$ac_cv_prog_cc_c99" != "xno" && break
7602 rm -f conftest.$ac_ext
7607 case "x$ac_cv_prog_cc_c99" in
7609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7610 $as_echo "none needed" >&6; } ;;
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7613 $as_echo "unsupported" >&6; } ;;
7615 CC="$CC $ac_cv_prog_cc_c99"
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7617 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7619 if test "x$ac_cv_prog_cc_c99" != xno; then :
7624 if test "x$CC" != xcc; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7626 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7629 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7631 set dummy $CC; ac_cc=`$as_echo "$2" |
7632 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7633 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7634 $as_echo_n "(cached) " >&6
7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637 /* end confdefs.h. */
7647 # Make sure it works both with $CC and with simple cc.
7648 # We do the test twice because some compilers refuse to overwrite an
7649 # existing .o file with -o, though they will create one.
7650 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7652 if { { case "(($ac_try" in
7653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7654 *) ac_try_echo=$ac_try;;
7656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7657 $as_echo "$ac_try_echo"; } >&5
7658 (eval "$ac_try") 2>&5
7660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7661 test $ac_status = 0; } &&
7662 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7664 *) ac_try_echo=$ac_try;;
7666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7667 $as_echo "$ac_try_echo"; } >&5
7668 (eval "$ac_try") 2>&5
7670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7671 test $ac_status = 0; };
7673 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7674 if test "x$CC" != xcc; then
7675 # Test first that cc exists at all.
7676 if { ac_try='cc -c conftest.$ac_ext >&5'
7677 { { case "(($ac_try" in
7678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679 *) ac_try_echo=$ac_try;;
7681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7682 $as_echo "$ac_try_echo"; } >&5
7683 (eval "$ac_try") 2>&5
7685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7686 test $ac_status = 0; }; }; then
7687 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7689 if { { case "(($ac_try" in
7690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7691 *) ac_try_echo=$ac_try;;
7693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7694 $as_echo "$ac_try_echo"; } >&5
7695 (eval "$ac_try") 2>&5
7697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7698 test $ac_status = 0; } &&
7699 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7701 *) ac_try_echo=$ac_try;;
7703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7704 $as_echo "$ac_try_echo"; } >&5
7705 (eval "$ac_try") 2>&5
7707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7708 test $ac_status = 0; };
7713 # cc exists but doesn't like -o.
7714 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7719 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7721 rm -f core conftest*
7724 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7726 $as_echo "yes" >&6; }
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7729 $as_echo "no" >&6; }
7731 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7735 # FIXME: we rely on the cache variable name because
7736 # there is no other way.
7738 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7739 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7740 if test "$am_t" != yes; then
7741 # Losing compiler, so override with the script.
7742 # FIXME: It is wrong to rewrite CC.
7743 # But if we don't then we get into trouble of one sort or another.
7744 # A longer-term fix would be to have automake use am__CC in this case,
7745 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7746 CC="$am_aux_dir/compile $CC"
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7751 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7752 if ${ac_cv_cflags_warn_all+:} false; then :
7753 $as_echo_n "(cached) " >&6
7755 ac_cv_cflags_warn_all="no, unknown"
7757 ac_cpp='$CPP $CPPFLAGS'
7758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7762 ac_save_CFLAGS="$CFLAGS"
7763 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" #
7764 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766 /* end confdefs.h. */
7776 if ac_fn_c_try_compile "$LINENO"; then :
7777 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7781 CFLAGS="$ac_save_CFLAGS"
7783 ac_cpp='$CPP $CPPFLAGS'
7784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7791 $as_echo "$ac_cv_cflags_warn_all" >&6; }
7792 case ".$ac_cv_cflags_warn_all" in
7797 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7798 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7799 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7802 test $ac_status = 0; }
7803 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7804 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7807 test $ac_status = 0; }
7808 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7815 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7817 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7818 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7819 $as_echo_n "(cached) " >&6
7821 cat >conftest.make <<\_ACEOF
7824 @echo '@@@%%%=$(MAKE)=@@@%%%'
7826 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7827 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7829 eval ac_cv_prog_make_${ac_make}_set=yes;;
7831 eval ac_cv_prog_make_${ac_make}_set=no;;
7835 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7837 $as_echo "yes" >&6; }
7840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7841 $as_echo "no" >&6; }
7842 SET_MAKE="MAKE=${MAKE-make}"
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7846 $as_echo_n "checking whether ln -s works... " >&6; }
7848 if test "$LN_S" = "ln -s"; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7850 $as_echo "yes" >&6; }
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7853 $as_echo "no, using $LN_S" >&6; }
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7857 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
7859 # Check whether --with-dmalloc was given.
7860 if test "${with_dmalloc+set}" = set; then :
7861 withval=$with_dmalloc; if test "$withval" = yes; then
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7863 $as_echo "yes" >&6; }
7865 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7867 LIBS="$LIBS -ldmalloc"
7868 LDFLAGS="$LDFLAGS -g"
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871 $as_echo "no" >&6; }
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 $as_echo "no" >&6; }
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7881 $as_echo_n "checking for __attribute__... " >&6; }
7882 if ${ax_cv___attribute__+:} false; then :
7883 $as_echo_n "(cached) " >&6
7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7888 static void foo(void) __attribute__ ((unused));
7902 if ac_fn_c_try_compile "$LINENO"; then :
7903 ax_cv___attribute__=yes
7905 ax_cv___attribute__=no
7908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7912 $as_echo "$ax_cv___attribute__" >&6; }
7913 if test "$ax_cv___attribute__" = "yes"; then
7915 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7921 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7922 if test -n "$ac_tool_prefix"; then
7923 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7924 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926 $as_echo_n "checking for $ac_word... " >&6; }
7927 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7928 $as_echo_n "(cached) " >&6
7932 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 test -z "$as_dir" && as_dir=.
7940 for ac_exec_ext in '' $ac_executable_extensions; do
7941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7942 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7953 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7954 if test -n "$PKG_CONFIG"; then
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7956 $as_echo "$PKG_CONFIG" >&6; }
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7959 $as_echo "no" >&6; }
7964 if test -z "$ac_cv_path_PKG_CONFIG"; then
7965 ac_pt_PKG_CONFIG=$PKG_CONFIG
7966 # Extract the first word of "pkg-config", so it can be a program name with args.
7967 set dummy pkg-config; ac_word=$2
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7969 $as_echo_n "checking for $ac_word... " >&6; }
7970 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7971 $as_echo_n "(cached) " >&6
7973 case $ac_pt_PKG_CONFIG in
7975 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7982 test -z "$as_dir" && as_dir=.
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7985 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7996 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7997 if test -n "$ac_pt_PKG_CONFIG"; then
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7999 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 $as_echo "no" >&6; }
8005 if test "x$ac_pt_PKG_CONFIG" = x; then
8008 case $cross_compiling:$ac_tool_warned in
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8012 ac_tool_warned=yes ;;
8014 PKG_CONFIG=$ac_pt_PKG_CONFIG
8017 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8021 if test -n "$PKG_CONFIG"; then
8022 _pkg_min_version=0.9.0
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8024 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8025 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8027 $as_echo "yes" >&6; }
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8030 $as_echo "no" >&6; }
8037 # Enable run-time checking.
8039 # Check whether --enable-bounds-checking was given.
8040 if test "${enable_bounds_checking+set}" = set; then :
8041 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8043 enable_bounds_checking='no'
8047 if test "$enable_bounds_checking" = yes; then
8049 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8059 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8060 if ${ax_cv_c_compiler_ms+:} false; then :
8061 $as_echo_n "(cached) " >&6
8063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8064 /* end confdefs.h. */
8077 if ac_fn_c_try_compile "$LINENO"; then :
8082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8083 ax_cv_c_compiler_ms=$ax_compiler_ms
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8087 $as_echo "$ax_cv_c_compiler_ms" >&6; }
8090 native_win32_build='no'
8092 case "${host_os}" in
8095 GDI32_LIBS='-lgdi32'
8098 native_win32_build='yes'
8099 GDI32_LIBS='-lgdi32'
8102 if test "${GDI32_LIBS}x" != 'x'; then
8104 $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
8108 if test "${GDI32_LIBS}x" != 'x' ; then
8109 WINGDI32_DELEGATE_TRUE=
8110 WINGDI32_DELEGATE_FALSE='#'
8112 WINGDI32_DELEGATE_TRUE='#'
8113 WINGDI32_DELEGATE_FALSE=
8116 if test "${native_win32_build}" = 'yes' ; then
8117 WIN32_NATIVE_BUILD_TRUE=
8118 WIN32_NATIVE_BUILD_FALSE='#'
8120 WIN32_NATIVE_BUILD_TRUE='#'
8121 WIN32_NATIVE_BUILD_FALSE=
8124 if test "${cygwin_build}" = 'yes' ; then
8126 CYGWIN_BUILD_FALSE='#'
8128 CYGWIN_BUILD_TRUE='#'
8132 if test "x${CC}" = 'xcl.exe' ; then
8141 WinPathScript="${srcdirfull}/winpath.sh"
8145 # Compiler flags tweaks
8147 if test "${GCC}" != "yes"; then
8150 # aCC: HP ANSI C++ B3910B A.03.34
8151 CFLAGS="${CFLAGS} -Wp,-H30000"
8152 if test -n "${CXXFLAGS}"; then
8155 CXXFLAGS="${CXXFLAGS} -AA"
8159 # Compaq alphaev68-dec-osf5.1 compiler
8160 if test -n "${CXXFLAGS}"; then
8161 CXXFLAGS='-std strict_ansi -noimplicit_include'
8163 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8168 # Check for lazy-loading.
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
8170 $as_echo_n "checking for linker lazyload option... " >&6; }
8171 if ${im_cv_ld_lazyload+:} false; then :
8172 $as_echo_n "(cached) " >&6
8175 im_cv_ld_lazyload='none'
8177 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8178 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8179 im_cv_ld_lazyload='-Wl,-zlazyload'
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
8186 $as_echo "$im_cv_ld_lazyload" >&6; }
8187 if test "${im_cv_ld_lazyload}" != 'none' ; then
8188 if test -z "${LDFLAGS}" ; then
8189 LDFLAGS="${im_cv_ld_lazyload}"
8191 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8196 *darwin* | *-macos10*)
8197 # Check whether --enable-osx-universal-binary was given.
8198 if test "${enable_osx_universal_binary+set}" = set; then :
8199 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8201 build_osxuniversal=no
8205 if test "${build_osxuniversal}" != no ; then
8206 if test "$enable_dependency_tracking" != no ; then
8207 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
8208 Please re-run configure with these options:
8209 --disable-dependency-tracking --enable-osx-universal-binary
8212 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8213 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8214 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8219 # Enable support for threads
8221 # Check whether --with-threads was given.
8222 if test "${with_threads+set}" = set; then :
8223 withval=$with_threads; with_threads=$withval
8230 if test "$with_threads" != 'no'; then
8235 ac_cpp='$CPP $CPPFLAGS'
8236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8242 # We used to check for pthread.h first, but this fails if pthread.h
8243 # requires special compiler flags (e.g. on True64 or Sequent).
8244 # It gets checked for in the link test anyway.
8246 # First of all, check if the user has set any of the PTHREAD_LIBS,
8247 # etcetera environment variables, and if threads linking works using
8249 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8250 save_CFLAGS="$CFLAGS"
8251 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8253 LIBS="$PTHREAD_LIBS $LIBS"
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8255 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8257 /* end confdefs.h. */
8259 /* Override any GCC internal prototype to avoid an error.
8260 Use char because int might match the return type of a GCC
8261 builtin and then its argument prototype would still apply. */
8265 char pthread_join ();
8269 return pthread_join ();
8274 if ac_fn_c_try_link "$LINENO"; then :
8277 rm -f core conftest.err conftest.$ac_objext \
8278 conftest$ac_exeext conftest.$ac_ext
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8280 $as_echo "$ax_pthread_ok" >&6; }
8281 if test x"$ax_pthread_ok" = xno; then
8286 CFLAGS="$save_CFLAGS"
8289 # We must check for the threads library under a number of different
8290 # names; the ordering is very important because some systems
8291 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8292 # libraries is broken (non-POSIX).
8294 # Create a list of thread flags to try. Items starting with a "-" are
8295 # C compiler flags, and other items are library names, except for "none"
8296 # which indicates that we try without any flags at all, and "pthread-config"
8297 # which is a program returning the flags for the Pth emulation library.
8299 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8301 # The ordering *is* (sometimes) important. Some notes on the
8302 # individual items follow:
8304 # pthreads: AIX (must check this before -lpthread)
8305 # none: in case threads are in libc; should be tried before -Kthread and
8306 # other compiler flags to prevent continual compiler warnings
8307 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8308 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8309 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8310 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8311 # -pthreads: Solaris/gcc
8312 # -mthreads: Mingw32/gcc, Lynx/gcc
8313 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8314 # doesn't hurt to check since this sometimes defines pthreads too;
8315 # also defines -D_REENTRANT)
8316 # ... -mt is also the pthreads flag for HP/aCC
8317 # pthread: Linux, etcetera
8318 # --thread-safe: KAI C++
8319 # pthread-config: use pthread-config program (for GNU Pth library)
8321 case "${host_cpu}-${host_os}" in
8324 # On Solaris (at least, for some versions), libc contains stubbed
8325 # (non-functional) versions of the pthreads routines, so link-based
8326 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8327 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8328 # a function called by this macro, so we could check for that, but
8329 # who knows whether they'll stub that too in a future libc.) So,
8330 # we'll just look for -pthreads and -lpthread first:
8332 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8336 ax_pthread_flags="-pthread $ax_pthread_flags"
8340 if test x"$ax_pthread_ok" = xno; then
8341 for flag in $ax_pthread_flags; do
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8346 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8351 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8352 PTHREAD_CFLAGS="$flag"
8356 # Extract the first word of "pthread-config", so it can be a program name with args.
8357 set dummy pthread-config; ac_word=$2
8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8359 $as_echo_n "checking for $ac_word... " >&6; }
8360 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8361 $as_echo_n "(cached) " >&6
8363 if test -n "$ax_pthread_config"; then
8364 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8370 test -z "$as_dir" && as_dir=.
8371 for ac_exec_ext in '' $ac_executable_extensions; do
8372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8373 ac_cv_prog_ax_pthread_config="yes"
8374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8381 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8384 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8385 if test -n "$ax_pthread_config"; then
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8387 $as_echo "$ax_pthread_config" >&6; }
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8390 $as_echo "no" >&6; }
8394 if test x"$ax_pthread_config" = xno; then continue; fi
8395 PTHREAD_CFLAGS="`pthread-config --cflags`"
8396 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8401 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8402 PTHREAD_LIBS="-l$flag"
8407 save_CFLAGS="$CFLAGS"
8408 LIBS="$PTHREAD_LIBS $LIBS"
8409 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8411 # Check for various functions. We must include pthread.h,
8412 # since some functions may be macros. (On the Sequent, we
8413 # need a special flag -Kthread to make this header compile.)
8414 # We check for pthread_join because it is in -lpthread on IRIX
8415 # while pthread_create is in libc. We check for pthread_attr_init
8416 # due to DEC craziness with -lpthreads. We check for
8417 # pthread_cleanup_push because it is one of the few pthread
8418 # functions on Solaris that doesn't have a non-functional libc stub.
8419 # We try pthread_create on general principles.
8420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8421 /* end confdefs.h. */
8422 #include <pthread.h>
8423 static void routine(void* a) {a=0;}
8424 static void* start_routine(void* a) {return a;}
8428 pthread_t th; pthread_attr_t attr;
8429 pthread_create(&th,0,start_routine,0);
8430 pthread_join(th, 0);
8431 pthread_attr_init(&attr);
8432 pthread_cleanup_push(routine, 0);
8433 pthread_cleanup_pop(0);
8438 if ac_fn_c_try_link "$LINENO"; then :
8441 rm -f core conftest.err conftest.$ac_objext \
8442 conftest$ac_exeext conftest.$ac_ext
8445 CFLAGS="$save_CFLAGS"
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8448 $as_echo "$ax_pthread_ok" >&6; }
8449 if test "x$ax_pthread_ok" = xyes; then
8458 # Various other checks:
8459 if test "x$ax_pthread_ok" = xyes; then
8461 LIBS="$PTHREAD_LIBS $LIBS"
8462 save_CFLAGS="$CFLAGS"
8463 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8465 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8467 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8469 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471 /* end confdefs.h. */
8472 #include <pthread.h>
8476 int attr=$attr; return attr;
8481 if ac_fn_c_try_link "$LINENO"; then :
8482 attr_name=$attr; break
8484 rm -f core conftest.err conftest.$ac_objext \
8485 conftest$ac_exeext conftest.$ac_ext
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8488 $as_echo "$attr_name" >&6; }
8489 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8491 cat >>confdefs.h <<_ACEOF
8492 #define PTHREAD_CREATE_JOINABLE $attr_name
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8498 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8500 case "${host_cpu}-${host_os}" in
8501 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8502 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8505 $as_echo "${flag}" >&6; }
8506 if test "x$flag" != xno; then
8507 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8511 CFLAGS="$save_CFLAGS"
8513 # More AIX lossage: must compile with xlc_r or cc_r
8514 if test x"$GCC" != xyes; then
8515 for ac_prog in xlc_r cc_r
8517 # Extract the first word of "$ac_prog", so it can be a program name with args.
8518 set dummy $ac_prog; ac_word=$2
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8520 $as_echo_n "checking for $ac_word... " >&6; }
8521 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8522 $as_echo_n "(cached) " >&6
8524 if test -n "$PTHREAD_CC"; then
8525 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531 test -z "$as_dir" && as_dir=.
8532 for ac_exec_ext in '' $ac_executable_extensions; do
8533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8534 ac_cv_prog_PTHREAD_CC="$ac_prog"
8535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8544 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8545 if test -n "$PTHREAD_CC"; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8547 $as_echo "$PTHREAD_CC" >&6; }
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550 $as_echo "no" >&6; }
8554 test -n "$PTHREAD_CC" && break
8556 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8569 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8570 if test x"$ax_pthread_ok" = xyes; then
8572 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8580 ac_cpp='$CPP $CPPFLAGS'
8581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8586 if test "$ax_pthread_ok" = yes; then
8588 DEF_THREAD="$PTHREAD_CFLAGS"
8589 CFLAGS="$CFLAGS $DEF_THREAD"
8590 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8591 if test "$CC" != "$PTHREAD_CC"; then
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
8593 $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8597 $as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8602 # Enable support for OpenMP
8603 if test "$have_threads" != 'yes'; then
8604 ac_cv_prog_c_openmp=unsupported
8608 # Check whether --enable-openmp was given.
8609 if test "${enable_openmp+set}" = set; then :
8610 enableval=$enable_openmp;
8613 if test "$enable_openmp" != no; then
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
8615 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
8616 if ${ac_cv_prog_c_openmp+:} false; then :
8617 $as_echo_n "(cached) " >&6
8619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620 /* end confdefs.h. */
8626 int main () { return omp_get_num_threads (); }
8629 if ac_fn_c_try_link "$LINENO"; then :
8630 ac_cv_prog_c_openmp='none needed'
8632 ac_cv_prog_c_openmp='unsupported'
8633 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8634 ac_save_CFLAGS=$CFLAGS
8635 CFLAGS="$CFLAGS $ac_option"
8636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8637 /* end confdefs.h. */
8643 int main () { return omp_get_num_threads (); }
8646 if ac_fn_c_try_link "$LINENO"; then :
8647 ac_cv_prog_c_openmp=$ac_option
8649 rm -f core conftest.err conftest.$ac_objext \
8650 conftest$ac_exeext conftest.$ac_ext
8651 CFLAGS=$ac_save_CFLAGS
8652 if test "$ac_cv_prog_c_openmp" != unsupported; then
8657 rm -f core conftest.err conftest.$ac_objext \
8658 conftest$ac_exeext conftest.$ac_ext
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
8661 $as_echo "$ac_cv_prog_c_openmp" >&6; }
8662 case $ac_cv_prog_c_openmp in #(
8663 "none needed" | unsupported)
8666 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
8671 CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8672 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8674 if test "$enable_openmp" != no; then
8675 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8676 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8680 # Enable support for OpenCL
8685 ac_cpp='$CPP $CPPFLAGS'
8686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8692 # We used to check for pthread.h first, but this fails if pthread.h
8693 # requires special compiler flags (e.g. on True64 or Sequent).
8694 # It gets checked for in the link test anyway.
8696 # First of all, check if the user has set any of the PTHREAD_LIBS,
8697 # etcetera environment variables, and if threads linking works using
8699 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8700 save_CFLAGS="$CFLAGS"
8701 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8703 LIBS="$PTHREAD_LIBS $LIBS"
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8705 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8707 /* end confdefs.h. */
8709 /* Override any GCC internal prototype to avoid an error.
8710 Use char because int might match the return type of a GCC
8711 builtin and then its argument prototype would still apply. */
8715 char pthread_join ();
8719 return pthread_join ();
8724 if ac_fn_c_try_link "$LINENO"; then :
8727 rm -f core conftest.err conftest.$ac_objext \
8728 conftest$ac_exeext conftest.$ac_ext
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8730 $as_echo "$ax_pthread_ok" >&6; }
8731 if test x"$ax_pthread_ok" = xno; then
8736 CFLAGS="$save_CFLAGS"
8739 # We must check for the threads library under a number of different
8740 # names; the ordering is very important because some systems
8741 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8742 # libraries is broken (non-POSIX).
8744 # Create a list of thread flags to try. Items starting with a "-" are
8745 # C compiler flags, and other items are library names, except for "none"
8746 # which indicates that we try without any flags at all, and "pthread-config"
8747 # which is a program returning the flags for the Pth emulation library.
8749 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8751 # The ordering *is* (sometimes) important. Some notes on the
8752 # individual items follow:
8754 # pthreads: AIX (must check this before -lpthread)
8755 # none: in case threads are in libc; should be tried before -Kthread and
8756 # other compiler flags to prevent continual compiler warnings
8757 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8758 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8759 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8760 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8761 # -pthreads: Solaris/gcc
8762 # -mthreads: Mingw32/gcc, Lynx/gcc
8763 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8764 # doesn't hurt to check since this sometimes defines pthreads too;
8765 # also defines -D_REENTRANT)
8766 # ... -mt is also the pthreads flag for HP/aCC
8767 # pthread: Linux, etcetera
8768 # --thread-safe: KAI C++
8769 # pthread-config: use pthread-config program (for GNU Pth library)
8771 case "${host_cpu}-${host_os}" in
8774 # On Solaris (at least, for some versions), libc contains stubbed
8775 # (non-functional) versions of the pthreads routines, so link-based
8776 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8777 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8778 # a function called by this macro, so we could check for that, but
8779 # who knows whether they'll stub that too in a future libc.) So,
8780 # we'll just look for -pthreads and -lpthread first:
8782 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8786 ax_pthread_flags="-pthread $ax_pthread_flags"
8790 if test x"$ax_pthread_ok" = xno; then
8791 for flag in $ax_pthread_flags; do
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8796 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8801 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8802 PTHREAD_CFLAGS="$flag"
8806 # Extract the first word of "pthread-config", so it can be a program name with args.
8807 set dummy pthread-config; ac_word=$2
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8809 $as_echo_n "checking for $ac_word... " >&6; }
8810 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8811 $as_echo_n "(cached) " >&6
8813 if test -n "$ax_pthread_config"; then
8814 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8820 test -z "$as_dir" && as_dir=.
8821 for ac_exec_ext in '' $ac_executable_extensions; do
8822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8823 ac_cv_prog_ax_pthread_config="yes"
8824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8831 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8834 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8835 if test -n "$ax_pthread_config"; then
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8837 $as_echo "$ax_pthread_config" >&6; }
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8840 $as_echo "no" >&6; }
8844 if test x"$ax_pthread_config" = xno; then continue; fi
8845 PTHREAD_CFLAGS="`pthread-config --cflags`"
8846 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8851 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8852 PTHREAD_LIBS="-l$flag"
8857 save_CFLAGS="$CFLAGS"
8858 LIBS="$PTHREAD_LIBS $LIBS"
8859 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8861 # Check for various functions. We must include pthread.h,
8862 # since some functions may be macros. (On the Sequent, we
8863 # need a special flag -Kthread to make this header compile.)
8864 # We check for pthread_join because it is in -lpthread on IRIX
8865 # while pthread_create is in libc. We check for pthread_attr_init
8866 # due to DEC craziness with -lpthreads. We check for
8867 # pthread_cleanup_push because it is one of the few pthread
8868 # functions on Solaris that doesn't have a non-functional libc stub.
8869 # We try pthread_create on general principles.
8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8872 #include <pthread.h>
8873 static void routine(void* a) {a=0;}
8874 static void* start_routine(void* a) {return a;}
8878 pthread_t th; pthread_attr_t attr;
8879 pthread_create(&th,0,start_routine,0);
8880 pthread_join(th, 0);
8881 pthread_attr_init(&attr);
8882 pthread_cleanup_push(routine, 0);
8883 pthread_cleanup_pop(0);
8888 if ac_fn_c_try_link "$LINENO"; then :
8891 rm -f core conftest.err conftest.$ac_objext \
8892 conftest$ac_exeext conftest.$ac_ext
8895 CFLAGS="$save_CFLAGS"
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8898 $as_echo "$ax_pthread_ok" >&6; }
8899 if test "x$ax_pthread_ok" = xyes; then
8908 # Various other checks:
8909 if test "x$ax_pthread_ok" = xyes; then
8911 LIBS="$PTHREAD_LIBS $LIBS"
8912 save_CFLAGS="$CFLAGS"
8913 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8915 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8917 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8919 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921 /* end confdefs.h. */
8922 #include <pthread.h>
8926 int attr=$attr; return attr;
8931 if ac_fn_c_try_link "$LINENO"; then :
8932 attr_name=$attr; break
8934 rm -f core conftest.err conftest.$ac_objext \
8935 conftest$ac_exeext conftest.$ac_ext
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8938 $as_echo "$attr_name" >&6; }
8939 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8941 cat >>confdefs.h <<_ACEOF
8942 #define PTHREAD_CREATE_JOINABLE $attr_name
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8948 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8950 case "${host_cpu}-${host_os}" in
8951 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8952 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8955 $as_echo "${flag}" >&6; }
8956 if test "x$flag" != xno; then
8957 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8961 CFLAGS="$save_CFLAGS"
8963 # More AIX lossage: must compile with xlc_r or cc_r
8964 if test x"$GCC" != xyes; then
8965 for ac_prog in xlc_r cc_r
8967 # Extract the first word of "$ac_prog", so it can be a program name with args.
8968 set dummy $ac_prog; ac_word=$2
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8970 $as_echo_n "checking for $ac_word... " >&6; }
8971 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8972 $as_echo_n "(cached) " >&6
8974 if test -n "$PTHREAD_CC"; then
8975 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8981 test -z "$as_dir" && as_dir=.
8982 for ac_exec_ext in '' $ac_executable_extensions; do
8983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8984 ac_cv_prog_PTHREAD_CC="$ac_prog"
8985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8994 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8995 if test -n "$PTHREAD_CC"; then
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8997 $as_echo "$PTHREAD_CC" >&6; }
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9000 $as_echo "no" >&6; }
9004 test -n "$PTHREAD_CC" && break
9006 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9019 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9020 if test x"$ax_pthread_ok" = xyes; then
9022 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9030 ac_cpp='$CPP $CPPFLAGS'
9031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9037 # Check whether --enable-opencl was given.
9038 if test "${enable_opencl+set}" = set; then :
9039 enableval=$enable_opencl; disable_opencl=$enableval
9041 disable_opencl='yes'
9045 if test "$disable_opencl" = 'yes'; then
9047 ac_cpp='$CPP $CPPFLAGS'
9048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9053 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
9054 if ${ax_cv_c_compiler_ms+:} false; then :
9055 $as_echo_n "(cached) " >&6
9057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058 /* end confdefs.h. */
9071 if ac_fn_c_try_compile "$LINENO"; then :
9076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9077 ax_cv_c_compiler_ms=$ax_compiler_ms
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9081 $as_echo "$ax_cv_c_compiler_ms" >&6; }
9082 if test X$ax_compiler_ms = Xno; then :
9083 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9086 ax_save_CPPFLAGS=$CPPFLAGS
9087 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9088 for ac_header in CL/cl.h OpenCL/cl.h
9090 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9091 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9092 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9093 cat >>confdefs.h <<_ACEOF
9094 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9101 CPPFLAGS=$ax_save_CPPFLAGS
9103 for ac_header in windows.h
9105 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9106 if test "x$ac_cv_header_windows_h" = xyes; then :
9107 cat >>confdefs.h <<_ACEOF
9108 #define HAVE_WINDOWS_H 1
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9119 $as_echo_n "checking for OpenCL library... " >&6; }
9120 if ${ax_cv_check_cl_libcl+:} false; then :
9121 $as_echo_n "(cached) " >&6
9123 ax_cv_check_cl_libcl=no
9125 x86_64) ax_check_cl_libdir=lib64 ;;
9126 *) ax_check_cl_libdir=lib ;;
9128 ax_save_CPPFLAGS=$CPPFLAGS
9129 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9132 ax_check_libs="-lOpenCL -lCL -lclparser"
9133 for ax_lib in $ax_check_libs; do
9134 if test X$ax_compiler_ms = Xyes; then :
9135 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9139 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9141 /* end confdefs.h. */
9143 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9144 # include <windows.h>
9146 # ifdef HAVE_CL_CL_H
9148 # elif defined(HAVE_OPENCL_CL_H)
9149 # include <OpenCL/cl.h>
9156 clCreateContextFromType(0,0,0,0,0)
9161 if ac_fn_c_try_link "$LINENO"; then :
9162 ax_cv_check_cl_libcl=$ax_try_lib; break
9164 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"
9165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9166 /* end confdefs.h. */
9168 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9169 # include <windows.h>
9171 # ifdef HAVE_CL_CL_H
9173 # elif defined(HAVE_OPENCL_CL_H)
9174 # include <OpenCL/cl.h>
9181 clCreateContextFromType(0,0,0,0,0)
9186 if ac_fn_c_try_link "$LINENO"; then :
9187 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9189 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"
9190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191 /* end confdefs.h. */
9193 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9194 # include <windows.h>
9196 # ifdef HAVE_CL_CL_H
9198 # elif defined(HAVE_OPENCL_CL_H)
9199 # include <OpenCL/cl.h>
9206 clCreateContextFromType(0,0,0,0,0)
9211 if ac_fn_c_try_link "$LINENO"; then :
9212 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9214 rm -f core conftest.err conftest.$ac_objext \
9215 conftest$ac_exeext conftest.$ac_ext
9217 rm -f core conftest.err conftest.$ac_objext \
9218 conftest$ac_exeext conftest.$ac_ext
9220 rm -f core conftest.err conftest.$ac_objext \
9221 conftest$ac_exeext conftest.$ac_ext
9224 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
9225 LIBS='-Wl,-framework,OpenCL'
9226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9227 /* end confdefs.h. */
9229 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9230 # include <windows.h>
9232 # ifdef HAVE_CL_CL_H
9234 # elif defined(HAVE_OPENCL_CL_H)
9235 # include <OpenCL/cl.h>
9242 clCreateContextFromType(0,0,0,0,0)
9247 if ac_fn_c_try_link "$LINENO"; then :
9248 ax_cv_check_cl_libcl=$LIBS
9250 rm -f core conftest.err conftest.$ac_objext \
9251 conftest$ac_exeext conftest.$ac_ext
9255 CPPFLAGS=$ax_save_CPPFLAGS
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9258 $as_echo "$ax_cv_check_cl_libcl" >&6; }
9260 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9261 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9263 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9264 $as_echo "#define _OPENCL 1" >>confdefs.h
9268 ac_cpp='$CPP $CPPFLAGS'
9269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9278 CFLAGS="$CL_CFLAGS $CFLAGS"
9279 LIBS="$CL_LIBS $LIBS"
9281 if test "$enable_opencl" != no; then
9282 if test "X$ax_cv_check_cl_libcl" != Xno; then :
9283 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9289 # Check for large file support
9292 # Check whether --enable-largefile was given.
9293 if test "${enable_largefile+set}" = set; then :
9294 enableval=$enable_largefile;
9297 if test "$enable_largefile" != no; then
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9300 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9301 if ${ac_cv_sys_largefile_CC+:} false; then :
9302 $as_echo_n "(cached) " >&6
9304 ac_cv_sys_largefile_CC=no
9305 if test "$GCC" != yes; then
9308 # IRIX 6.2 and later do not support large files by default,
9309 # so use the C compiler's -n32 option if that helps.
9310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9311 /* end confdefs.h. */
9312 #include <sys/types.h>
9313 /* Check that off_t can represent 2**63 - 1 correctly.
9314 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9315 since some C++ compilers masquerading as C compilers
9316 incorrectly reject 9223372036854775807. */
9317 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9318 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9319 && LARGE_OFF_T % 2147483647 == 1)
9329 if ac_fn_c_try_compile "$LINENO"; then :
9332 rm -f core conftest.err conftest.$ac_objext
9334 if ac_fn_c_try_compile "$LINENO"; then :
9335 ac_cv_sys_largefile_CC=' -n32'; break
9337 rm -f core conftest.err conftest.$ac_objext
9341 rm -f conftest.$ac_ext
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9345 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
9346 if test "$ac_cv_sys_largefile_CC" != no; then
9347 CC=$CC$ac_cv_sys_largefile_CC
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9351 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9352 if ${ac_cv_sys_file_offset_bits+:} false; then :
9353 $as_echo_n "(cached) " >&6
9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357 /* end confdefs.h. */
9358 #include <sys/types.h>
9359 /* Check that off_t can represent 2**63 - 1 correctly.
9360 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9361 since some C++ compilers masquerading as C compilers
9362 incorrectly reject 9223372036854775807. */
9363 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9364 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9365 && LARGE_OFF_T % 2147483647 == 1)
9375 if ac_fn_c_try_compile "$LINENO"; then :
9376 ac_cv_sys_file_offset_bits=no; break
9378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380 /* end confdefs.h. */
9381 #define _FILE_OFFSET_BITS 64
9382 #include <sys/types.h>
9383 /* Check that off_t can represent 2**63 - 1 correctly.
9384 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9385 since some C++ compilers masquerading as C compilers
9386 incorrectly reject 9223372036854775807. */
9387 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9388 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9389 && LARGE_OFF_T % 2147483647 == 1)
9399 if ac_fn_c_try_compile "$LINENO"; then :
9400 ac_cv_sys_file_offset_bits=64; break
9402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9403 ac_cv_sys_file_offset_bits=unknown
9407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9408 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9409 case $ac_cv_sys_file_offset_bits in #(
9412 cat >>confdefs.h <<_ACEOF
9413 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9418 if test $ac_cv_sys_file_offset_bits = unknown; then
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9420 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9421 if ${ac_cv_sys_large_files+:} false; then :
9422 $as_echo_n "(cached) " >&6
9425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9426 /* end confdefs.h. */
9427 #include <sys/types.h>
9428 /* Check that off_t can represent 2**63 - 1 correctly.
9429 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9430 since some C++ compilers masquerading as C compilers
9431 incorrectly reject 9223372036854775807. */
9432 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9433 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9434 && LARGE_OFF_T % 2147483647 == 1)
9444 if ac_fn_c_try_compile "$LINENO"; then :
9445 ac_cv_sys_large_files=no; break
9447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9449 /* end confdefs.h. */
9450 #define _LARGE_FILES 1
9451 #include <sys/types.h>
9452 /* Check that off_t can represent 2**63 - 1 correctly.
9453 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9454 since some C++ compilers masquerading as C compilers
9455 incorrectly reject 9223372036854775807. */
9456 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9457 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9458 && LARGE_OFF_T % 2147483647 == 1)
9468 if ac_fn_c_try_compile "$LINENO"; then :
9469 ac_cv_sys_large_files=1; break
9471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9472 ac_cv_sys_large_files=unknown
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9477 $as_echo "$ac_cv_sys_large_files" >&6; }
9478 case $ac_cv_sys_large_files in #(
9481 cat >>confdefs.h <<_ACEOF
9482 #define _LARGE_FILES $ac_cv_sys_large_files
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9491 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
9492 if ${ac_cv_sys_largefile_source+:} false; then :
9493 $as_echo_n "(cached) " >&6
9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9498 #include <sys/types.h> /* for off_t */
9503 int (*fp) (FILE *, off_t, int) = fseeko;
9504 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9509 if ac_fn_c_try_link "$LINENO"; then :
9510 ac_cv_sys_largefile_source=no; break
9512 rm -f core conftest.err conftest.$ac_objext \
9513 conftest$ac_exeext conftest.$ac_ext
9514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515 /* end confdefs.h. */
9516 #define _LARGEFILE_SOURCE 1
9517 #include <sys/types.h> /* for off_t */
9522 int (*fp) (FILE *, off_t, int) = fseeko;
9523 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9528 if ac_fn_c_try_link "$LINENO"; then :
9529 ac_cv_sys_largefile_source=1; break
9531 rm -f core conftest.err conftest.$ac_objext \
9532 conftest$ac_exeext conftest.$ac_ext
9533 ac_cv_sys_largefile_source=unknown
9537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
9538 $as_echo "$ac_cv_sys_largefile_source" >&6; }
9539 case $ac_cv_sys_largefile_source in #(
9542 cat >>confdefs.h <<_ACEOF
9543 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9549 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9550 # in glibc 2.1.3, but that breaks too many other things.
9551 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9552 if test $ac_cv_sys_largefile_source != unknown; then
9554 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
9559 if test "$enable_largefile" != no; then
9560 case $ac_cv_sys_file_offset_bits in
9562 # nothing to do here as the host supports LFS fine
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
9566 $as_echo_n "checking for native large file support... " >&6; }
9567 if test "$cross_compiling" = yes; then :
9568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9570 as_fn_error $? "cannot run test program while cross compiling
9571 See \`config.log' for more details" "$LINENO" 5; }
9573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9577 exit(!(sizeof(off_t) == 8));
9587 if ac_fn_c_try_run "$LINENO"; then :
9588 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9591 $as_echo "yes" >&6; }
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9594 $as_echo "no" >&6; }
9596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9597 conftest.$ac_objext conftest.beam conftest.$ac_ext
9602 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9605 if test "$ac_cv_sys_large_files" != 'no'; then
9606 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9608 if test "$ac_cv_sys_largefile_source" != 'no'; then
9609 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9615 # Configure libtool & libltdl
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9625 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9631 macro_revision='1.3293'
9645 ltmain="$ac_aux_dir/ltmain.sh"
9647 # Backslashify metacharacters that are still active within
9648 # double-quoted strings.
9649 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9651 # Same as above, but do not quote variable references.
9652 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9654 # Sed substitution to delay expansion of an escaped shell variable in a
9655 # double_quote_subst'ed string.
9656 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9658 # Sed substitution to delay expansion of an escaped single quote.
9659 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9661 # Sed substitution to avoid accidental globbing in evaled expressions
9662 no_glob_subst='s/\*/\\\*/g'
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9665 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9666 if ${lt_cv_path_NM+:} false; then :
9667 $as_echo_n "(cached) " >&6
9669 if test -n "$NM"; then
9670 # Let the user override the test.
9673 lt_nm_to_check="${ac_tool_prefix}nm"
9674 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9675 lt_nm_to_check="$lt_nm_to_check nm"
9677 for lt_tmp_nm in $lt_nm_to_check; do
9678 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9679 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9681 test -z "$ac_dir" && ac_dir=.
9682 tmp_nm="$ac_dir/$lt_tmp_nm"
9683 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9684 # Check to see if the nm accepts a BSD-compat flag.
9685 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9686 # nm: unknown option "B" ignored
9687 # Tru64's nm complains that /dev/null is an invalid object file
9688 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9689 */dev/null* | *'Invalid file or object type'*)
9690 lt_cv_path_NM="$tmp_nm -B"
9694 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9696 lt_cv_path_NM="$tmp_nm -p"
9700 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9701 continue # so that we can try to find one that supports BSD flags
9710 : ${lt_cv_path_NM=no}
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9714 $as_echo "$lt_cv_path_NM" >&6; }
9715 if test "$lt_cv_path_NM" != "no"; then
9718 # Didn't find any BSD compatible name lister, look for dumpbin.
9719 if test -n "$DUMPBIN"; then :
9720 # Let the user override the test.
9722 if test -n "$ac_tool_prefix"; then
9723 for ac_prog in dumpbin "link -dump"
9725 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9726 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9728 $as_echo_n "checking for $ac_word... " >&6; }
9729 if ${ac_cv_prog_DUMPBIN+:} false; then :
9730 $as_echo_n "(cached) " >&6
9732 if test -n "$DUMPBIN"; then
9733 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9739 test -z "$as_dir" && as_dir=.
9740 for ac_exec_ext in '' $ac_executable_extensions; do
9741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9742 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9752 DUMPBIN=$ac_cv_prog_DUMPBIN
9753 if test -n "$DUMPBIN"; then
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9755 $as_echo "$DUMPBIN" >&6; }
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9758 $as_echo "no" >&6; }
9762 test -n "$DUMPBIN" && break
9765 if test -z "$DUMPBIN"; then
9766 ac_ct_DUMPBIN=$DUMPBIN
9767 for ac_prog in dumpbin "link -dump"
9769 # Extract the first word of "$ac_prog", so it can be a program name with args.
9770 set dummy $ac_prog; ac_word=$2
9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9772 $as_echo_n "checking for $ac_word... " >&6; }
9773 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
9774 $as_echo_n "(cached) " >&6
9776 if test -n "$ac_ct_DUMPBIN"; then
9777 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9783 test -z "$as_dir" && as_dir=.
9784 for ac_exec_ext in '' $ac_executable_extensions; do
9785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9786 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9796 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9797 if test -n "$ac_ct_DUMPBIN"; then
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9799 $as_echo "$ac_ct_DUMPBIN" >&6; }
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9802 $as_echo "no" >&6; }
9806 test -n "$ac_ct_DUMPBIN" && break
9809 if test "x$ac_ct_DUMPBIN" = x; then
9812 case $cross_compiling:$ac_tool_warned in
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9815 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9816 ac_tool_warned=yes ;;
9818 DUMPBIN=$ac_ct_DUMPBIN
9822 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9824 DUMPBIN="$DUMPBIN -symbols"
9832 if test "$DUMPBIN" != ":"; then
9836 test -z "$NM" && NM=nm
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9844 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9845 if ${lt_cv_nm_interface+:} false; then :
9846 $as_echo_n "(cached) " >&6
9848 lt_cv_nm_interface="BSD nm"
9849 echo "int some_variable = 0;" > conftest.$ac_ext
9850 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9851 (eval "$ac_compile" 2>conftest.err)
9852 cat conftest.err >&5
9853 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9854 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9855 cat conftest.err >&5
9856 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9857 cat conftest.out >&5
9858 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9859 lt_cv_nm_interface="MS dumpbin"
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9864 $as_echo "$lt_cv_nm_interface" >&6; }
9866 # find the maximum length of command line arguments
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9868 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9869 if ${lt_cv_sys_max_cmd_len+:} false; then :
9870 $as_echo_n "(cached) " >&6
9877 # On DJGPP, this test can blow up pretty badly due to problems in libc
9878 # (any single argument exceeding 2000 bytes causes a buffer overrun
9879 # during glob expansion). Even if it were fixed, the result of this
9880 # check would be larger than it should be.
9881 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9885 # Under GNU Hurd, this test is not required because there is
9886 # no limit to the length of command line arguments.
9887 # Libtool will interpret -1 as no limit whatsoever
9888 lt_cv_sys_max_cmd_len=-1;
9891 cygwin* | mingw* | cegcc*)
9892 # On Win9x/ME, this test blows up -- it succeeds, but takes
9893 # about 5 minutes as the teststring grows exponentially.
9894 # Worse, since 9x/ME are not pre-emptively multitasking,
9895 # you end up with a "frozen" computer, even though with patience
9896 # the test eventually succeeds (with a max line length of 256k).
9897 # Instead, let's just punt: use the minimum linelength reported by
9898 # all of the supported platforms: 8192 (on NT/2K/XP).
9899 lt_cv_sys_max_cmd_len=8192;
9903 # On MiNT this can take a long time and run out of memory.
9904 lt_cv_sys_max_cmd_len=8192;
9908 # On AmigaOS with pdksh, this test takes hours, literally.
9909 # So we just punt and use a minimum line length of 8192.
9910 lt_cv_sys_max_cmd_len=8192;
9913 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9914 # This has been around since 386BSD, at least. Likely further.
9915 if test -x /sbin/sysctl; then
9916 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9917 elif test -x /usr/sbin/sysctl; then
9918 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9920 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9922 # And add a safety zone
9923 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9924 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9928 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9929 lt_cv_sys_max_cmd_len=196608
9933 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9934 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9935 # nice to cause kernel panics so lets avoid the loop below.
9936 # First set a reasonable default.
9937 lt_cv_sys_max_cmd_len=16384
9939 if test -x /sbin/sysconfig; then
9940 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9941 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9946 lt_cv_sys_max_cmd_len=102400
9948 sysv5* | sco5v6* | sysv4.2uw2*)
9949 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9950 if test -n "$kargmax"; then
9951 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9953 lt_cv_sys_max_cmd_len=32768
9957 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9958 if test -n "$lt_cv_sys_max_cmd_len"; then
9959 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9960 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9962 # Make teststring a little bigger before we do anything with it.
9963 # a 1K string should be a reasonable start.
9964 for i in 1 2 3 4 5 6 7 8 ; do
9965 teststring=$teststring$teststring
9967 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9968 # If test is not a shell built-in, we'll probably end up computing a
9969 # maximum length that is only half of the actual maximum length, but
9971 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9972 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9973 test $i != 17 # 1/2 MB should be enough
9976 teststring=$teststring$teststring
9978 # Only check the string length outside the loop.
9979 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9981 # Add a significant safety factor because C++ compilers can tack on
9982 # massive amounts of additional arguments before passing them to the
9983 # linker. It appears as though 1/2 is a usable value.
9984 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9991 if test -n $lt_cv_sys_max_cmd_len ; then
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9993 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9996 $as_echo "none" >&6; }
9998 max_cmd_len=$lt_cv_sys_max_cmd_len
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10010 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10011 # Try some XSI features
10013 ( _lt_dummy="a/b/c"
10014 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10016 && eval 'test $(( 1 + 1 )) -eq 2 \
10017 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10020 $as_echo "$xsi_shell" >&6; }
10023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10024 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10026 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10028 && lt_shell_append=yes
10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10030 $as_echo "$lt_shell_append" >&6; }
10033 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10043 # test EBCDIC or ASCII
10044 case `echo X|tr X '\101'` in
10045 A) # ASCII based system
10046 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10047 lt_SP2NL='tr \040 \012'
10048 lt_NL2SP='tr \015\012 \040\040'
10050 *) # EBCDIC based system
10051 lt_SP2NL='tr \100 \n'
10052 lt_NL2SP='tr \r\n \100\100'
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10065 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10066 if ${lt_cv_to_host_file_cmd+:} false; then :
10067 $as_echo_n "(cached) " >&6
10072 *-*-mingw* ) # actually msys
10073 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10076 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10078 * ) # otherwise, assume *nix
10079 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10085 *-*-mingw* ) # actually msys
10086 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10089 lt_cv_to_host_file_cmd=func_convert_file_noop
10091 * ) # otherwise, assume *nix
10092 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10096 * ) # unhandled hosts (and "normal" native builds)
10097 lt_cv_to_host_file_cmd=func_convert_file_noop
10103 to_host_file_cmd=$lt_cv_to_host_file_cmd
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10105 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10112 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10113 if ${lt_cv_to_tool_file_cmd+:} false; then :
10114 $as_echo_n "(cached) " >&6
10116 #assume ordinary cross tools, or native build.
10117 lt_cv_to_tool_file_cmd=func_convert_file_noop
10121 *-*-mingw* ) # actually msys
10122 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10130 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10132 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10139 $as_echo_n "checking for $LD option to reload object files... " >&6; }
10140 if ${lt_cv_ld_reload_flag+:} false; then :
10141 $as_echo_n "(cached) " >&6
10143 lt_cv_ld_reload_flag='-r'
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10146 $as_echo "$lt_cv_ld_reload_flag" >&6; }
10147 reload_flag=$lt_cv_ld_reload_flag
10148 case $reload_flag in
10150 *) reload_flag=" $reload_flag" ;;
10152 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10154 cygwin* | mingw* | pw32* | cegcc*)
10155 if test "$GCC" != yes; then
10160 if test "$GCC" = yes; then
10161 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10163 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10176 if test -n "$ac_tool_prefix"; then
10177 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10178 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10180 $as_echo_n "checking for $ac_word... " >&6; }
10181 if ${ac_cv_prog_OBJDUMP+:} false; then :
10182 $as_echo_n "(cached) " >&6
10184 if test -n "$OBJDUMP"; then
10185 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10188 for as_dir in $PATH
10191 test -z "$as_dir" && as_dir=.
10192 for ac_exec_ext in '' $ac_executable_extensions; do
10193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10194 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10204 OBJDUMP=$ac_cv_prog_OBJDUMP
10205 if test -n "$OBJDUMP"; then
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10207 $as_echo "$OBJDUMP" >&6; }
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10210 $as_echo "no" >&6; }
10215 if test -z "$ac_cv_prog_OBJDUMP"; then
10216 ac_ct_OBJDUMP=$OBJDUMP
10217 # Extract the first word of "objdump", so it can be a program name with args.
10218 set dummy objdump; ac_word=$2
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10220 $as_echo_n "checking for $ac_word... " >&6; }
10221 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10222 $as_echo_n "(cached) " >&6
10224 if test -n "$ac_ct_OBJDUMP"; then
10225 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10228 for as_dir in $PATH
10231 test -z "$as_dir" && as_dir=.
10232 for ac_exec_ext in '' $ac_executable_extensions; do
10233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10234 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10244 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10245 if test -n "$ac_ct_OBJDUMP"; then
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10247 $as_echo "$ac_ct_OBJDUMP" >&6; }
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10250 $as_echo "no" >&6; }
10253 if test "x$ac_ct_OBJDUMP" = x; then
10256 case $cross_compiling:$ac_tool_warned in
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10259 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10260 ac_tool_warned=yes ;;
10262 OBJDUMP=$ac_ct_OBJDUMP
10265 OBJDUMP="$ac_cv_prog_OBJDUMP"
10268 test -z "$OBJDUMP" && OBJDUMP=objdump
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10276 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10277 if ${lt_cv_deplibs_check_method+:} false; then :
10278 $as_echo_n "(cached) " >&6
10280 lt_cv_file_magic_cmd='$MAGIC_CMD'
10281 lt_cv_file_magic_test_file=
10282 lt_cv_deplibs_check_method='unknown'
10283 # Need to set the preceding variable on all platforms that support
10284 # interlibrary dependencies.
10285 # 'none' -- dependencies not supported.
10286 # `unknown' -- same as none, but documents that we really don't know.
10287 # 'pass_all' -- all dependencies passed with no checks.
10288 # 'test_compile' -- check by making test program.
10289 # 'file_magic [[regex]]' -- check by looking for files in library path
10290 # which responds to the $file_magic_cmd with a given extended regex.
10291 # If you have `file' or equivalent on your system and you're not sure
10292 # whether `pass_all' will *always* work, you probably want this one.
10296 lt_cv_deplibs_check_method=pass_all
10300 lt_cv_deplibs_check_method=pass_all
10304 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10305 lt_cv_file_magic_cmd='/usr/bin/file -L'
10306 lt_cv_file_magic_test_file=/shlib/libc.so
10310 # func_win32_libid is a shell function defined in ltmain.sh
10311 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10312 lt_cv_file_magic_cmd='func_win32_libid'
10316 # Base MSYS/MinGW do not provide the 'file' command needed by
10317 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10318 # unless we find 'file', for example because we are cross-compiling.
10319 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10320 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
10321 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10322 lt_cv_file_magic_cmd='func_win32_libid'
10324 # Keep this pattern in sync with the one in func_win32_libid.
10325 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10326 lt_cv_file_magic_cmd='$OBJDUMP -f'
10331 # use the weaker test based on 'objdump'. See mingw*.
10332 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10333 lt_cv_file_magic_cmd='$OBJDUMP -f'
10336 darwin* | rhapsody*)
10337 lt_cv_deplibs_check_method=pass_all
10340 freebsd* | dragonfly*)
10341 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10344 # Not sure whether the presence of OpenBSD here was a mistake.
10345 # Let's accept both of them until this is cleared up.
10346 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10347 lt_cv_file_magic_cmd=/usr/bin/file
10348 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10352 lt_cv_deplibs_check_method=pass_all
10357 lt_cv_deplibs_check_method=pass_all
10361 lt_cv_deplibs_check_method=pass_all
10364 hpux10.20* | hpux11*)
10365 lt_cv_file_magic_cmd=/usr/bin/file
10368 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10369 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10372 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]'
10373 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10376 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10377 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10383 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10384 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10387 irix5* | irix6* | nonstopux*)
10389 *-32|*"-32 ") libmagic=32-bit;;
10390 *-n32|*"-n32 ") libmagic=N32;;
10391 *-64|*"-64 ") libmagic=64-bit;;
10392 *) libmagic=never-match;;
10394 lt_cv_deplibs_check_method=pass_all
10397 # This must be Linux ELF.
10398 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10399 lt_cv_deplibs_check_method=pass_all
10403 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10404 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10406 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10411 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10412 lt_cv_file_magic_cmd=/usr/bin/file
10413 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10417 lt_cv_deplibs_check_method=pass_all
10421 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10422 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10424 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10428 osf3* | osf4* | osf5*)
10429 lt_cv_deplibs_check_method=pass_all
10433 lt_cv_deplibs_check_method=pass_all
10437 lt_cv_deplibs_check_method=pass_all
10440 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10441 lt_cv_deplibs_check_method=pass_all
10445 case $host_vendor in
10447 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]'
10448 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10451 lt_cv_deplibs_check_method=pass_all
10454 lt_cv_file_magic_cmd='/bin/file'
10455 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10458 lt_cv_file_magic_cmd='/bin/file'
10459 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10460 lt_cv_file_magic_test_file=/lib/libc.so
10463 lt_cv_deplibs_check_method=pass_all
10466 lt_cv_deplibs_check_method=pass_all
10472 lt_cv_deplibs_check_method=pass_all
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10478 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10482 if test "$build" = "$host"; then
10485 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10486 want_nocaseglob=yes
10488 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10494 file_magic_cmd=$lt_cv_file_magic_cmd
10495 deplibs_check_method=$lt_cv_deplibs_check_method
10496 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10519 if test -n "$ac_tool_prefix"; then
10520 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10521 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10523 $as_echo_n "checking for $ac_word... " >&6; }
10524 if ${ac_cv_prog_DLLTOOL+:} false; then :
10525 $as_echo_n "(cached) " >&6
10527 if test -n "$DLLTOOL"; then
10528 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10531 for as_dir in $PATH
10534 test -z "$as_dir" && as_dir=.
10535 for ac_exec_ext in '' $ac_executable_extensions; do
10536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10537 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10547 DLLTOOL=$ac_cv_prog_DLLTOOL
10548 if test -n "$DLLTOOL"; then
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10550 $as_echo "$DLLTOOL" >&6; }
10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10553 $as_echo "no" >&6; }
10558 if test -z "$ac_cv_prog_DLLTOOL"; then
10559 ac_ct_DLLTOOL=$DLLTOOL
10560 # Extract the first word of "dlltool", so it can be a program name with args.
10561 set dummy dlltool; ac_word=$2
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10563 $as_echo_n "checking for $ac_word... " >&6; }
10564 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10565 $as_echo_n "(cached) " >&6
10567 if test -n "$ac_ct_DLLTOOL"; then
10568 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10571 for as_dir in $PATH
10574 test -z "$as_dir" && as_dir=.
10575 for ac_exec_ext in '' $ac_executable_extensions; do
10576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10577 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10587 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10588 if test -n "$ac_ct_DLLTOOL"; then
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10590 $as_echo "$ac_ct_DLLTOOL" >&6; }
10592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10593 $as_echo "no" >&6; }
10596 if test "x$ac_ct_DLLTOOL" = x; then
10599 case $cross_compiling:$ac_tool_warned in
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10603 ac_tool_warned=yes ;;
10605 DLLTOOL=$ac_ct_DLLTOOL
10608 DLLTOOL="$ac_cv_prog_DLLTOOL"
10611 test -z "$DLLTOOL" && DLLTOOL=dlltool
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10620 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10621 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10622 $as_echo_n "(cached) " >&6
10624 lt_cv_sharedlib_from_linklib_cmd='unknown'
10627 cygwin* | mingw* | pw32* | cegcc*)
10628 # two different shell functions defined in ltmain.sh
10629 # decide which to use based on capabilities of $DLLTOOL
10630 case `$DLLTOOL --help 2>&1` in
10631 *--identify-strict*)
10632 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10635 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10640 # fallback: assume linklib IS sharedlib
10641 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10647 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10648 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10649 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10657 if test -n "$ac_tool_prefix"; then
10660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10663 $as_echo_n "checking for $ac_word... " >&6; }
10664 if ${ac_cv_prog_AR+:} false; then :
10665 $as_echo_n "(cached) " >&6
10667 if test -n "$AR"; then
10668 ac_cv_prog_AR="$AR" # Let the user override the test.
10670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10671 for as_dir in $PATH
10674 test -z "$as_dir" && as_dir=.
10675 for ac_exec_ext in '' $ac_executable_extensions; do
10676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10677 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10688 if test -n "$AR"; then
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10690 $as_echo "$AR" >&6; }
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10693 $as_echo "no" >&6; }
10697 test -n "$AR" && break
10700 if test -z "$AR"; then
10704 # Extract the first word of "$ac_prog", so it can be a program name with args.
10705 set dummy $ac_prog; ac_word=$2
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10707 $as_echo_n "checking for $ac_word... " >&6; }
10708 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10709 $as_echo_n "(cached) " >&6
10711 if test -n "$ac_ct_AR"; then
10712 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10715 for as_dir in $PATH
10718 test -z "$as_dir" && as_dir=.
10719 for ac_exec_ext in '' $ac_executable_extensions; do
10720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10721 ac_cv_prog_ac_ct_AR="$ac_prog"
10722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10731 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10732 if test -n "$ac_ct_AR"; then
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10734 $as_echo "$ac_ct_AR" >&6; }
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10737 $as_echo "no" >&6; }
10741 test -n "$ac_ct_AR" && break
10744 if test "x$ac_ct_AR" = x; then
10747 case $cross_compiling:$ac_tool_warned in
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10751 ac_tool_warned=yes ;;
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10771 $as_echo_n "checking for archiver @FILE support... " >&6; }
10772 if ${lt_cv_ar_at_file+:} false; then :
10773 $as_echo_n "(cached) " >&6
10775 lt_cv_ar_at_file=no
10776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777 /* end confdefs.h. */
10787 if ac_fn_c_try_compile "$LINENO"; then :
10788 echo conftest.$ac_objext > conftest.lst
10789 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10791 (eval $lt_ar_try) 2>&5
10793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10794 test $ac_status = 0; }
10795 if test "$ac_status" -eq 0; then
10796 # Ensure the archiver fails upon bogus file names.
10797 rm -f conftest.$ac_objext libconftest.a
10798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10799 (eval $lt_ar_try) 2>&5
10801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10802 test $ac_status = 0; }
10803 if test "$ac_status" -ne 0; then
10807 rm -f conftest.* libconftest.a
10810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10814 $as_echo "$lt_cv_ar_at_file" >&6; }
10816 if test "x$lt_cv_ar_at_file" = xno; then
10817 archiver_list_spec=
10819 archiver_list_spec=$lt_cv_ar_at_file
10828 if test -n "$ac_tool_prefix"; then
10829 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10830 set dummy ${ac_tool_prefix}strip; ac_word=$2
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10832 $as_echo_n "checking for $ac_word... " >&6; }
10833 if ${ac_cv_prog_STRIP+:} false; then :
10834 $as_echo_n "(cached) " >&6
10836 if test -n "$STRIP"; then
10837 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10840 for as_dir in $PATH
10843 test -z "$as_dir" && as_dir=.
10844 for ac_exec_ext in '' $ac_executable_extensions; do
10845 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10846 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10856 STRIP=$ac_cv_prog_STRIP
10857 if test -n "$STRIP"; then
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10859 $as_echo "$STRIP" >&6; }
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862 $as_echo "no" >&6; }
10867 if test -z "$ac_cv_prog_STRIP"; then
10869 # Extract the first word of "strip", so it can be a program name with args.
10870 set dummy strip; ac_word=$2
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10872 $as_echo_n "checking for $ac_word... " >&6; }
10873 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10874 $as_echo_n "(cached) " >&6
10876 if test -n "$ac_ct_STRIP"; then
10877 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10880 for as_dir in $PATH
10883 test -z "$as_dir" && as_dir=.
10884 for ac_exec_ext in '' $ac_executable_extensions; do
10885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10886 ac_cv_prog_ac_ct_STRIP="strip"
10887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10896 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10897 if test -n "$ac_ct_STRIP"; then
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10899 $as_echo "$ac_ct_STRIP" >&6; }
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10902 $as_echo "no" >&6; }
10905 if test "x$ac_ct_STRIP" = x; then
10908 case $cross_compiling:$ac_tool_warned in
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10911 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10912 ac_tool_warned=yes ;;
10917 STRIP="$ac_cv_prog_STRIP"
10920 test -z "$STRIP" && STRIP=:
10927 if test -n "$ac_tool_prefix"; then
10928 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10929 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10931 $as_echo_n "checking for $ac_word... " >&6; }
10932 if ${ac_cv_prog_RANLIB+:} false; then :
10933 $as_echo_n "(cached) " >&6
10935 if test -n "$RANLIB"; then
10936 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10939 for as_dir in $PATH
10942 test -z "$as_dir" && as_dir=.
10943 for ac_exec_ext in '' $ac_executable_extensions; do
10944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10945 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10955 RANLIB=$ac_cv_prog_RANLIB
10956 if test -n "$RANLIB"; then
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10958 $as_echo "$RANLIB" >&6; }
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10961 $as_echo "no" >&6; }
10966 if test -z "$ac_cv_prog_RANLIB"; then
10967 ac_ct_RANLIB=$RANLIB
10968 # Extract the first word of "ranlib", so it can be a program name with args.
10969 set dummy ranlib; ac_word=$2
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10971 $as_echo_n "checking for $ac_word... " >&6; }
10972 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
10973 $as_echo_n "(cached) " >&6
10975 if test -n "$ac_ct_RANLIB"; then
10976 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10979 for as_dir in $PATH
10982 test -z "$as_dir" && as_dir=.
10983 for ac_exec_ext in '' $ac_executable_extensions; do
10984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10985 ac_cv_prog_ac_ct_RANLIB="ranlib"
10986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10995 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10996 if test -n "$ac_ct_RANLIB"; then
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10998 $as_echo "$ac_ct_RANLIB" >&6; }
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11001 $as_echo "no" >&6; }
11004 if test "x$ac_ct_RANLIB" = x; then
11007 case $cross_compiling:$ac_tool_warned in
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11011 ac_tool_warned=yes ;;
11013 RANLIB=$ac_ct_RANLIB
11016 RANLIB="$ac_cv_prog_RANLIB"
11019 test -z "$RANLIB" && RANLIB=:
11026 # Determine commands to create old-style static archives.
11027 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11028 old_postinstall_cmds='chmod 644 $oldlib'
11029 old_postuninstall_cmds=
11031 if test -n "$RANLIB"; then
11034 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11037 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
11040 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11045 lock_old_archive_extraction=yes ;;
11047 lock_old_archive_extraction=no ;;
11088 # If no C compiler was specified, use CC.
11091 # If no C compiler flags were specified, use CFLAGS.
11092 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11094 # Allow CC to be a program name with arguments.
11098 # Check for command to grab the raw symbol name followed by C symbol from nm.
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11100 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
11101 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
11102 $as_echo_n "(cached) " >&6
11105 # These are sane defaults that work on at least a few old systems.
11106 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11108 # Character class describing NM global symbol codes.
11109 symcode='[BCDEGRST]'
11111 # Regexp to match symbols that can be accessed directly from C.
11112 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11114 # Define system-specific variables.
11119 cygwin* | mingw* | pw32* | cegcc*)
11120 symcode='[ABCDGISTW]'
11123 if test "$host_cpu" = ia64; then
11124 symcode='[ABCDEGRST]'
11127 irix* | nonstopux*)
11128 symcode='[BCDEGRST]'
11131 symcode='[BCDEGQRST]'
11142 sysv5* | sco5v6* | unixware* | OpenUNIX*)
11150 # If we're using GNU nm, then use its standard symbol codes.
11151 case `$NM -V 2>&1` in
11152 *GNU* | *'with BFD'*)
11153 symcode='[ABCDGIRSTW]' ;;
11156 # Transform an extracted symbol line into a proper C declaration.
11157 # Some systems (esp. on ia64) link data and code symbols differently,
11158 # so use this general approach.
11159 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11161 # Transform an extracted symbol line into symbol name and symbol address
11162 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11163 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'"
11165 # Handle CRLF in mingw tool chain
11169 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11173 # Try without a prefix underscore, then with it.
11174 for ac_symprfx in "" "_"; do
11176 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11177 symxfrm="\\1 $ac_symprfx\\2 \\2"
11179 # Write the raw and C identifiers.
11180 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11181 # Fake it for dumpbin and say T for any non-static function
11182 # and D for any global variable.
11183 # Also find C++ and __fastcall symbols from MSVC++,
11184 # which start with @ or ?.
11185 lt_cv_sys_global_symbol_pipe="$AWK '"\
11186 " {last_section=section; section=\$ 3};"\
11187 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11188 " \$ 0!~/External *\|/{next};"\
11189 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11190 " {if(hide[section]) next};"\
11191 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11192 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11193 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
11194 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11195 " ' prfx=^$ac_symprfx"
11197 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11199 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
11201 # Check to see that the pipe works correctly.
11205 cat > conftest.$ac_ext <<_LT_EOF
11210 void nm_test_func(void);
11211 void nm_test_func(void){}
11215 int main(){nm_test_var='a';nm_test_func();return(0);}
11218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11219 (eval $ac_compile) 2>&5
11221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11222 test $ac_status = 0; }; then
11223 # Now try to grab the symbols.
11225 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11226 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
11228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11229 test $ac_status = 0; } && test -s "$nlist"; then
11230 # Try sorting and uniquifying the output.
11231 if sort "$nlist" | uniq > "$nlist"T; then
11232 mv -f "$nlist"T "$nlist"
11237 # Make sure that we snagged all the symbols we need.
11238 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11239 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11240 cat <<_LT_EOF > conftest.$ac_ext
11241 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11242 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11243 /* DATA imports from DLLs on WIN32 con't be const, because runtime
11244 relocations are performed -- see ld's documentation on pseudo-relocs. */
11245 # define LT_DLSYM_CONST
11246 #elif defined(__osf__)
11247 /* This system does not cope well with relocations in const data. */
11248 # define LT_DLSYM_CONST
11250 # define LT_DLSYM_CONST const
11258 # Now generate the symbol file.
11259 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11261 cat <<_LT_EOF >> conftest.$ac_ext
11263 /* The mapping between symbol names and symbols. */
11264 LT_DLSYM_CONST struct {
11268 lt__PROGRAM__LTX_preloaded_symbols[] =
11270 { "@PROGRAM@", (void *) 0 },
11272 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11273 cat <<\_LT_EOF >> conftest.$ac_ext
11277 /* This works around a problem in FreeBSD linker */
11278 #ifdef FREEBSD_WORKAROUND
11279 static const void *lt_preloaded_setup() {
11280 return lt__PROGRAM__LTX_preloaded_symbols;
11288 # Now try linking the two files.
11289 mv conftest.$ac_objext conftstm.$ac_objext
11290 lt_globsym_save_LIBS=$LIBS
11291 lt_globsym_save_CFLAGS=$CFLAGS
11292 LIBS="conftstm.$ac_objext"
11293 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11295 (eval $ac_link) 2>&5
11297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11298 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11301 LIBS=$lt_globsym_save_LIBS
11302 CFLAGS=$lt_globsym_save_CFLAGS
11304 echo "cannot find nm_test_func in $nlist" >&5
11307 echo "cannot find nm_test_var in $nlist" >&5
11310 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11313 echo "$progname: failed program was:" >&5
11314 cat conftest.$ac_ext >&5
11316 rm -rf conftest* conftst*
11318 # Do not use the global_symbol_pipe unless it works.
11319 if test "$pipe_works" = yes; then
11322 lt_cv_sys_global_symbol_pipe=
11328 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11329 lt_cv_sys_global_symbol_to_cdecl=
11331 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11333 $as_echo "failed" >&6; }
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11336 $as_echo "ok" >&6; }
11339 # Response file support.
11340 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11341 nm_file_list_spec='@'
11342 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11343 nm_file_list_spec='@'
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11373 $as_echo_n "checking for sysroot... " >&6; }
11375 # Check whether --with-sysroot was given.
11376 if test "${with_sysroot+set}" = set; then :
11377 withval=$with_sysroot;
11384 case ${with_sysroot} in #(
11386 if test "$GCC" = yes; then
11387 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11391 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11397 $as_echo "${with_sysroot}" >&6; }
11398 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11403 $as_echo "${lt_sysroot:-no}" >&6; }
11409 # Check whether --enable-libtool-lock was given.
11410 if test "${enable_libtool_lock+set}" = set; then :
11411 enableval=$enable_libtool_lock;
11414 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11416 # Some flags need to be propagated to the compiler or linker for good
11420 # Find out which ABI we are using.
11421 echo 'int i;' > conftest.$ac_ext
11422 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11423 (eval $ac_compile) 2>&5
11425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11426 test $ac_status = 0; }; then
11427 case `/usr/bin/file conftest.$ac_objext` in
11429 HPUX_IA64_MODE="32"
11432 HPUX_IA64_MODE="64"
11439 # Find out which ABI we are using.
11440 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11442 (eval $ac_compile) 2>&5
11444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11445 test $ac_status = 0; }; then
11446 if test "$lt_cv_prog_gnu_ld" = yes; then
11447 case `/usr/bin/file conftest.$ac_objext` in
11449 LD="${LD-ld} -melf32bsmip"
11452 LD="${LD-ld} -melf32bmipn32"
11455 LD="${LD-ld} -melf64bmip"
11459 case `/usr/bin/file conftest.$ac_objext` in
11475 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11476 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11477 # Find out which ABI we are using.
11478 echo 'int i;' > conftest.$ac_ext
11479 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11480 (eval $ac_compile) 2>&5
11482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11483 test $ac_status = 0; }; then
11484 case `/usr/bin/file conftest.o` in
11487 x86_64-*kfreebsd*-gnu)
11488 LD="${LD-ld} -m elf_i386_fbsd"
11491 LD="${LD-ld} -m elf_i386"
11493 ppc64-*linux*|powerpc64-*linux*)
11494 LD="${LD-ld} -m elf32ppclinux"
11497 LD="${LD-ld} -m elf_s390"
11500 LD="${LD-ld} -m elf32_sparc"
11506 x86_64-*kfreebsd*-gnu)
11507 LD="${LD-ld} -m elf_x86_64_fbsd"
11510 LD="${LD-ld} -m elf_x86_64"
11512 ppc*-*linux*|powerpc*-*linux*)
11513 LD="${LD-ld} -m elf64ppc"
11515 s390*-*linux*|s390*-*tpf*)
11516 LD="${LD-ld} -m elf64_s390"
11519 LD="${LD-ld} -m elf64_sparc"
11529 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11530 SAVE_CFLAGS="$CFLAGS"
11531 CFLAGS="$CFLAGS -belf"
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11533 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11534 if ${lt_cv_cc_needs_belf+:} false; then :
11535 $as_echo_n "(cached) " >&6
11538 ac_cpp='$CPP $CPPFLAGS'
11539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11544 /* end confdefs.h. */
11554 if ac_fn_c_try_link "$LINENO"; then :
11555 lt_cv_cc_needs_belf=yes
11557 lt_cv_cc_needs_belf=no
11559 rm -f core conftest.err conftest.$ac_objext \
11560 conftest$ac_exeext conftest.$ac_ext
11562 ac_cpp='$CPP $CPPFLAGS'
11563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11569 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11570 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11571 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11572 CFLAGS="$SAVE_CFLAGS"
11576 # Find out which ABI we are using.
11577 echo 'int i;' > conftest.$ac_ext
11578 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11579 (eval $ac_compile) 2>&5
11581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11582 test $ac_status = 0; }; then
11583 case `/usr/bin/file conftest.o` in
11585 case $lt_cv_prog_gnu_ld in
11586 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11588 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11600 need_locks="$enable_libtool_lock"
11602 if test -n "$ac_tool_prefix"; then
11603 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11604 set dummy ${ac_tool_prefix}mt; ac_word=$2
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11606 $as_echo_n "checking for $ac_word... " >&6; }
11607 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11608 $as_echo_n "(cached) " >&6
11610 if test -n "$MANIFEST_TOOL"; then
11611 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11614 for as_dir in $PATH
11617 test -z "$as_dir" && as_dir=.
11618 for ac_exec_ext in '' $ac_executable_extensions; do
11619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11620 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11630 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11631 if test -n "$MANIFEST_TOOL"; then
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11633 $as_echo "$MANIFEST_TOOL" >&6; }
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11636 $as_echo "no" >&6; }
11641 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11642 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11643 # Extract the first word of "mt", so it can be a program name with args.
11644 set dummy mt; ac_word=$2
11645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11646 $as_echo_n "checking for $ac_word... " >&6; }
11647 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11648 $as_echo_n "(cached) " >&6
11650 if test -n "$ac_ct_MANIFEST_TOOL"; then
11651 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11654 for as_dir in $PATH
11657 test -z "$as_dir" && as_dir=.
11658 for ac_exec_ext in '' $ac_executable_extensions; do
11659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11660 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11670 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11671 if test -n "$ac_ct_MANIFEST_TOOL"; then
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11673 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11676 $as_echo "no" >&6; }
11679 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11682 case $cross_compiling:$ac_tool_warned in
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11685 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11686 ac_tool_warned=yes ;;
11688 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11691 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11694 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11696 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11697 if ${lt_cv_path_mainfest_tool+:} false; then :
11698 $as_echo_n "(cached) " >&6
11700 lt_cv_path_mainfest_tool=no
11701 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11702 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11703 cat conftest.err >&5
11704 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11705 lt_cv_path_mainfest_tool=yes
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11710 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
11711 if test "x$lt_cv_path_mainfest_tool" != xyes; then
11721 rhapsody* | darwin*)
11722 if test -n "$ac_tool_prefix"; then
11723 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11724 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11726 $as_echo_n "checking for $ac_word... " >&6; }
11727 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11728 $as_echo_n "(cached) " >&6
11730 if test -n "$DSYMUTIL"; then
11731 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11734 for as_dir in $PATH
11737 test -z "$as_dir" && as_dir=.
11738 for ac_exec_ext in '' $ac_executable_extensions; do
11739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11740 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11750 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11751 if test -n "$DSYMUTIL"; then
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11753 $as_echo "$DSYMUTIL" >&6; }
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11756 $as_echo "no" >&6; }
11761 if test -z "$ac_cv_prog_DSYMUTIL"; then
11762 ac_ct_DSYMUTIL=$DSYMUTIL
11763 # Extract the first word of "dsymutil", so it can be a program name with args.
11764 set dummy dsymutil; ac_word=$2
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11766 $as_echo_n "checking for $ac_word... " >&6; }
11767 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
11768 $as_echo_n "(cached) " >&6
11770 if test -n "$ac_ct_DSYMUTIL"; then
11771 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11774 for as_dir in $PATH
11777 test -z "$as_dir" && as_dir=.
11778 for ac_exec_ext in '' $ac_executable_extensions; do
11779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11780 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11790 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11791 if test -n "$ac_ct_DSYMUTIL"; then
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11793 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 $as_echo "no" >&6; }
11799 if test "x$ac_ct_DSYMUTIL" = x; then
11802 case $cross_compiling:$ac_tool_warned in
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11806 ac_tool_warned=yes ;;
11808 DSYMUTIL=$ac_ct_DSYMUTIL
11811 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11814 if test -n "$ac_tool_prefix"; then
11815 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11816 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11818 $as_echo_n "checking for $ac_word... " >&6; }
11819 if ${ac_cv_prog_NMEDIT+:} false; then :
11820 $as_echo_n "(cached) " >&6
11822 if test -n "$NMEDIT"; then
11823 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11826 for as_dir in $PATH
11829 test -z "$as_dir" && as_dir=.
11830 for ac_exec_ext in '' $ac_executable_extensions; do
11831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11832 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11842 NMEDIT=$ac_cv_prog_NMEDIT
11843 if test -n "$NMEDIT"; then
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11845 $as_echo "$NMEDIT" >&6; }
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11848 $as_echo "no" >&6; }
11853 if test -z "$ac_cv_prog_NMEDIT"; then
11854 ac_ct_NMEDIT=$NMEDIT
11855 # Extract the first word of "nmedit", so it can be a program name with args.
11856 set dummy nmedit; ac_word=$2
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11858 $as_echo_n "checking for $ac_word... " >&6; }
11859 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
11860 $as_echo_n "(cached) " >&6
11862 if test -n "$ac_ct_NMEDIT"; then
11863 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866 for as_dir in $PATH
11869 test -z "$as_dir" && as_dir=.
11870 for ac_exec_ext in '' $ac_executable_extensions; do
11871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11872 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11882 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11883 if test -n "$ac_ct_NMEDIT"; then
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11885 $as_echo "$ac_ct_NMEDIT" >&6; }
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11888 $as_echo "no" >&6; }
11891 if test "x$ac_ct_NMEDIT" = x; then
11894 case $cross_compiling:$ac_tool_warned in
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11898 ac_tool_warned=yes ;;
11900 NMEDIT=$ac_ct_NMEDIT
11903 NMEDIT="$ac_cv_prog_NMEDIT"
11906 if test -n "$ac_tool_prefix"; then
11907 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11908 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11910 $as_echo_n "checking for $ac_word... " >&6; }
11911 if ${ac_cv_prog_LIPO+:} false; then :
11912 $as_echo_n "(cached) " >&6
11914 if test -n "$LIPO"; then
11915 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918 for as_dir in $PATH
11921 test -z "$as_dir" && as_dir=.
11922 for ac_exec_ext in '' $ac_executable_extensions; do
11923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11924 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11934 LIPO=$ac_cv_prog_LIPO
11935 if test -n "$LIPO"; then
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11937 $as_echo "$LIPO" >&6; }
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11940 $as_echo "no" >&6; }
11945 if test -z "$ac_cv_prog_LIPO"; then
11947 # Extract the first word of "lipo", so it can be a program name with args.
11948 set dummy lipo; ac_word=$2
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11950 $as_echo_n "checking for $ac_word... " >&6; }
11951 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11952 $as_echo_n "(cached) " >&6
11954 if test -n "$ac_ct_LIPO"; then
11955 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11958 for as_dir in $PATH
11961 test -z "$as_dir" && as_dir=.
11962 for ac_exec_ext in '' $ac_executable_extensions; do
11963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11964 ac_cv_prog_ac_ct_LIPO="lipo"
11965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11974 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11975 if test -n "$ac_ct_LIPO"; then
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11977 $as_echo "$ac_ct_LIPO" >&6; }
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11980 $as_echo "no" >&6; }
11983 if test "x$ac_ct_LIPO" = x; then
11986 case $cross_compiling:$ac_tool_warned in
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11990 ac_tool_warned=yes ;;
11995 LIPO="$ac_cv_prog_LIPO"
11998 if test -n "$ac_tool_prefix"; then
11999 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12000 set dummy ${ac_tool_prefix}otool; ac_word=$2
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12002 $as_echo_n "checking for $ac_word... " >&6; }
12003 if ${ac_cv_prog_OTOOL+:} false; then :
12004 $as_echo_n "(cached) " >&6
12006 if test -n "$OTOOL"; then
12007 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12010 for as_dir in $PATH
12013 test -z "$as_dir" && as_dir=.
12014 for ac_exec_ext in '' $ac_executable_extensions; do
12015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12016 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12026 OTOOL=$ac_cv_prog_OTOOL
12027 if test -n "$OTOOL"; then
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12029 $as_echo "$OTOOL" >&6; }
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12032 $as_echo "no" >&6; }
12037 if test -z "$ac_cv_prog_OTOOL"; then
12039 # Extract the first word of "otool", so it can be a program name with args.
12040 set dummy otool; ac_word=$2
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12042 $as_echo_n "checking for $ac_word... " >&6; }
12043 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
12044 $as_echo_n "(cached) " >&6
12046 if test -n "$ac_ct_OTOOL"; then
12047 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12050 for as_dir in $PATH
12053 test -z "$as_dir" && as_dir=.
12054 for ac_exec_ext in '' $ac_executable_extensions; do
12055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12056 ac_cv_prog_ac_ct_OTOOL="otool"
12057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12066 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12067 if test -n "$ac_ct_OTOOL"; then
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12069 $as_echo "$ac_ct_OTOOL" >&6; }
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12072 $as_echo "no" >&6; }
12075 if test "x$ac_ct_OTOOL" = x; then
12078 case $cross_compiling:$ac_tool_warned in
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12082 ac_tool_warned=yes ;;
12087 OTOOL="$ac_cv_prog_OTOOL"
12090 if test -n "$ac_tool_prefix"; then
12091 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12092 set dummy ${ac_tool_prefix}otool64; ac_word=$2
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12094 $as_echo_n "checking for $ac_word... " >&6; }
12095 if ${ac_cv_prog_OTOOL64+:} false; then :
12096 $as_echo_n "(cached) " >&6
12098 if test -n "$OTOOL64"; then
12099 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102 for as_dir in $PATH
12105 test -z "$as_dir" && as_dir=.
12106 for ac_exec_ext in '' $ac_executable_extensions; do
12107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12108 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12118 OTOOL64=$ac_cv_prog_OTOOL64
12119 if test -n "$OTOOL64"; then
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12121 $as_echo "$OTOOL64" >&6; }
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12124 $as_echo "no" >&6; }
12129 if test -z "$ac_cv_prog_OTOOL64"; then
12130 ac_ct_OTOOL64=$OTOOL64
12131 # Extract the first word of "otool64", so it can be a program name with args.
12132 set dummy otool64; ac_word=$2
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12134 $as_echo_n "checking for $ac_word... " >&6; }
12135 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
12136 $as_echo_n "(cached) " >&6
12138 if test -n "$ac_ct_OTOOL64"; then
12139 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12142 for as_dir in $PATH
12145 test -z "$as_dir" && as_dir=.
12146 for ac_exec_ext in '' $ac_executable_extensions; do
12147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12148 ac_cv_prog_ac_ct_OTOOL64="otool64"
12149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12158 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12159 if test -n "$ac_ct_OTOOL64"; then
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12161 $as_echo "$ac_ct_OTOOL64" >&6; }
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12164 $as_echo "no" >&6; }
12167 if test "x$ac_ct_OTOOL64" = x; then
12170 case $cross_compiling:$ac_tool_warned in
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12173 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12174 ac_tool_warned=yes ;;
12176 OTOOL64=$ac_ct_OTOOL64
12179 OTOOL64="$ac_cv_prog_OTOOL64"
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12209 $as_echo_n "checking for -single_module linker flag... " >&6; }
12210 if ${lt_cv_apple_cc_single_mod+:} false; then :
12211 $as_echo_n "(cached) " >&6
12213 lt_cv_apple_cc_single_mod=no
12214 if test -z "${LT_MULTI_MODULE}"; then
12215 # By default we will add the -single_module flag. You can override
12216 # by either setting the environment variable LT_MULTI_MODULE
12217 # non-empty at configure time, or by adding -multi_module to the
12219 rm -rf libconftest.dylib*
12220 echo "int foo(void){return 1;}" > conftest.c
12221 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12222 -dynamiclib -Wl,-single_module conftest.c" >&5
12223 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12224 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12226 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12227 lt_cv_apple_cc_single_mod=yes
12229 cat conftest.err >&5
12231 rm -rf libconftest.dylib*
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12236 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12238 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12239 if ${lt_cv_ld_exported_symbols_list+:} false; then :
12240 $as_echo_n "(cached) " >&6
12242 lt_cv_ld_exported_symbols_list=no
12243 save_LDFLAGS=$LDFLAGS
12244 echo "_main" > conftest.sym
12245 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12247 /* end confdefs.h. */
12257 if ac_fn_c_try_link "$LINENO"; then :
12258 lt_cv_ld_exported_symbols_list=yes
12260 lt_cv_ld_exported_symbols_list=no
12262 rm -f core conftest.err conftest.$ac_objext \
12263 conftest$ac_exeext conftest.$ac_ext
12264 LDFLAGS="$save_LDFLAGS"
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12268 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12270 $as_echo_n "checking for -force_load linker flag... " >&6; }
12271 if ${lt_cv_ld_force_load+:} false; then :
12272 $as_echo_n "(cached) " >&6
12274 lt_cv_ld_force_load=no
12275 cat > conftest.c << _LT_EOF
12276 int forced_loaded() { return 2;}
12278 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12279 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12280 echo "$AR cru libconftest.a conftest.o" >&5
12281 $AR cru libconftest.a conftest.o 2>&5
12282 echo "$RANLIB libconftest.a" >&5
12283 $RANLIB libconftest.a 2>&5
12284 cat > conftest.c << _LT_EOF
12285 int main() { return 0;}
12287 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12288 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12290 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12291 lt_cv_ld_force_load=yes
12293 cat conftest.err >&5
12295 rm -f conftest.err libconftest.a conftest conftest.c
12296 rm -rf conftest.dSYM
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12300 $as_echo "$lt_cv_ld_force_load" >&6; }
12302 rhapsody* | darwin1.[012])
12303 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12305 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12306 darwin*) # darwin 5.x on
12307 # if running on 10.5 or later, the deployment target defaults
12308 # to the OS version, if on x86, and 10.4, the deployment
12309 # target defaults to 10.4. Don't you love it?
12310 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12311 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12312 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12314 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12316 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12320 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12321 _lt_dar_single_mod='$single_module'
12323 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12324 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12326 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12328 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
12329 _lt_dsymutil='~$DSYMUTIL $lib || :'
12336 for ac_header in dlfcn.h
12338 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12340 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12341 cat >>confdefs.h <<_ACEOF
12342 #define HAVE_DLFCN_H 1
12352 func_stripname_cnf ()
12355 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12356 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12358 } # func_stripname_cnf
12365 enable_win32_dll=yes
12368 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12369 if test -n "$ac_tool_prefix"; then
12370 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12371 set dummy ${ac_tool_prefix}as; ac_word=$2
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12373 $as_echo_n "checking for $ac_word... " >&6; }
12374 if ${ac_cv_prog_AS+:} false; then :
12375 $as_echo_n "(cached) " >&6
12377 if test -n "$AS"; then
12378 ac_cv_prog_AS="$AS" # Let the user override the test.
12380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12381 for as_dir in $PATH
12384 test -z "$as_dir" && as_dir=.
12385 for ac_exec_ext in '' $ac_executable_extensions; do
12386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12387 ac_cv_prog_AS="${ac_tool_prefix}as"
12388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12398 if test -n "$AS"; then
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12400 $as_echo "$AS" >&6; }
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12403 $as_echo "no" >&6; }
12408 if test -z "$ac_cv_prog_AS"; then
12410 # Extract the first word of "as", so it can be a program name with args.
12411 set dummy as; ac_word=$2
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12413 $as_echo_n "checking for $ac_word... " >&6; }
12414 if ${ac_cv_prog_ac_ct_AS+:} false; then :
12415 $as_echo_n "(cached) " >&6
12417 if test -n "$ac_ct_AS"; then
12418 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12421 for as_dir in $PATH
12424 test -z "$as_dir" && as_dir=.
12425 for ac_exec_ext in '' $ac_executable_extensions; do
12426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12427 ac_cv_prog_ac_ct_AS="as"
12428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12437 ac_ct_AS=$ac_cv_prog_ac_ct_AS
12438 if test -n "$ac_ct_AS"; then
12439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12440 $as_echo "$ac_ct_AS" >&6; }
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12443 $as_echo "no" >&6; }
12446 if test "x$ac_ct_AS" = x; then
12449 case $cross_compiling:$ac_tool_warned in
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12453 ac_tool_warned=yes ;;
12458 AS="$ac_cv_prog_AS"
12461 if test -n "$ac_tool_prefix"; then
12462 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12463 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12465 $as_echo_n "checking for $ac_word... " >&6; }
12466 if ${ac_cv_prog_DLLTOOL+:} false; then :
12467 $as_echo_n "(cached) " >&6
12469 if test -n "$DLLTOOL"; then
12470 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12473 for as_dir in $PATH
12476 test -z "$as_dir" && as_dir=.
12477 for ac_exec_ext in '' $ac_executable_extensions; do
12478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12479 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12489 DLLTOOL=$ac_cv_prog_DLLTOOL
12490 if test -n "$DLLTOOL"; then
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12492 $as_echo "$DLLTOOL" >&6; }
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12495 $as_echo "no" >&6; }
12500 if test -z "$ac_cv_prog_DLLTOOL"; then
12501 ac_ct_DLLTOOL=$DLLTOOL
12502 # Extract the first word of "dlltool", so it can be a program name with args.
12503 set dummy dlltool; ac_word=$2
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12505 $as_echo_n "checking for $ac_word... " >&6; }
12506 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12507 $as_echo_n "(cached) " >&6
12509 if test -n "$ac_ct_DLLTOOL"; then
12510 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12513 for as_dir in $PATH
12516 test -z "$as_dir" && as_dir=.
12517 for ac_exec_ext in '' $ac_executable_extensions; do
12518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12519 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12529 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12530 if test -n "$ac_ct_DLLTOOL"; then
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12532 $as_echo "$ac_ct_DLLTOOL" >&6; }
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12535 $as_echo "no" >&6; }
12538 if test "x$ac_ct_DLLTOOL" = x; then
12541 case $cross_compiling:$ac_tool_warned in
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12545 ac_tool_warned=yes ;;
12547 DLLTOOL=$ac_ct_DLLTOOL
12550 DLLTOOL="$ac_cv_prog_DLLTOOL"
12553 if test -n "$ac_tool_prefix"; then
12554 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12555 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12557 $as_echo_n "checking for $ac_word... " >&6; }
12558 if ${ac_cv_prog_OBJDUMP+:} false; then :
12559 $as_echo_n "(cached) " >&6
12561 if test -n "$OBJDUMP"; then
12562 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12565 for as_dir in $PATH
12568 test -z "$as_dir" && as_dir=.
12569 for ac_exec_ext in '' $ac_executable_extensions; do
12570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12571 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12581 OBJDUMP=$ac_cv_prog_OBJDUMP
12582 if test -n "$OBJDUMP"; then
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12584 $as_echo "$OBJDUMP" >&6; }
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587 $as_echo "no" >&6; }
12592 if test -z "$ac_cv_prog_OBJDUMP"; then
12593 ac_ct_OBJDUMP=$OBJDUMP
12594 # Extract the first word of "objdump", so it can be a program name with args.
12595 set dummy objdump; ac_word=$2
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12597 $as_echo_n "checking for $ac_word... " >&6; }
12598 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12599 $as_echo_n "(cached) " >&6
12601 if test -n "$ac_ct_OBJDUMP"; then
12602 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12605 for as_dir in $PATH
12608 test -z "$as_dir" && as_dir=.
12609 for ac_exec_ext in '' $ac_executable_extensions; do
12610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12611 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12621 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12622 if test -n "$ac_ct_OBJDUMP"; then
12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12624 $as_echo "$ac_ct_OBJDUMP" >&6; }
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12627 $as_echo "no" >&6; }
12630 if test "x$ac_ct_OBJDUMP" = x; then
12633 case $cross_compiling:$ac_tool_warned in
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12637 ac_tool_warned=yes ;;
12639 OBJDUMP=$ac_ct_OBJDUMP
12642 OBJDUMP="$ac_cv_prog_OBJDUMP"
12648 test -z "$AS" && AS=as
12654 test -z "$DLLTOOL" && DLLTOOL=dlltool
12660 test -z "$OBJDUMP" && OBJDUMP=objdump
12670 # Check whether --enable-shared was given.
12671 if test "${enable_shared+set}" = set; then :
12672 enableval=$enable_shared; p=${PACKAGE-default}
12674 yes) enable_shared=yes ;;
12675 no) enable_shared=no ;;
12678 # Look at the argument we got. We use all the common list separators.
12679 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12680 for pkg in $enableval; do
12682 if test "X$pkg" = "X$p"; then
12701 # Check whether --enable-static was given.
12702 if test "${enable_static+set}" = set; then :
12703 enableval=$enable_static; p=${PACKAGE-default}
12705 yes) enable_static=yes ;;
12706 no) enable_static=no ;;
12709 # Look at the argument we got. We use all the common list separators.
12710 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12711 for pkg in $enableval; do
12713 if test "X$pkg" = "X$p"; then
12733 # Check whether --with-pic was given.
12734 if test "${with_pic+set}" = set; then :
12735 withval=$with_pic; pic_mode="$withval"
12741 test -z "$pic_mode" && pic_mode=default
12749 # Check whether --enable-fast-install was given.
12750 if test "${enable_fast_install+set}" = set; then :
12751 enableval=$enable_fast_install; p=${PACKAGE-default}
12753 yes) enable_fast_install=yes ;;
12754 no) enable_fast_install=no ;;
12756 enable_fast_install=no
12757 # Look at the argument we got. We use all the common list separators.
12758 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12759 for pkg in $enableval; do
12761 if test "X$pkg" = "X$p"; then
12762 enable_fast_install=yes
12769 enable_fast_install=yes
12782 # This can be used to rebuild libtool when needed
12783 LIBTOOL_DEPS="$ltmain"
12785 # Always use our own libtool.
12786 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12813 test -z "$LN_S" && LN_S="ln -s"
12828 if test -n "${ZSH_VERSION+set}" ; then
12829 setopt NO_GLOB_SUBST
12832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12833 $as_echo_n "checking for objdir... " >&6; }
12834 if ${lt_cv_objdir+:} false; then :
12835 $as_echo_n "(cached) " >&6
12837 rm -f .libs 2>/dev/null
12838 mkdir .libs 2>/dev/null
12839 if test -d .libs; then
12842 # MS-DOS does not allow filenames that begin with a dot.
12845 rmdir .libs 2>/dev/null
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12848 $as_echo "$lt_cv_objdir" >&6; }
12849 objdir=$lt_cv_objdir
12855 cat >>confdefs.h <<_ACEOF
12856 #define LT_OBJDIR "$lt_cv_objdir/"
12864 # AIX sometimes has problems with the GCC collect2 program. For some
12865 # reason, if we set the COLLECT_NAMES environment variable, the problems
12866 # vanish in a puff of smoke.
12867 if test "X${COLLECT_NAMES+set}" != Xset; then
12869 export COLLECT_NAMES
12874 # Global variables:
12876 can_build_shared=yes
12878 # All known linkers require a `.a' archive for static linking (except MSVC,
12879 # which needs '.lib').
12882 with_gnu_ld="$lt_cv_prog_gnu_ld"
12885 old_CFLAGS="$CFLAGS"
12887 # Set sane defaults for various variables
12888 test -z "$CC" && CC=cc
12889 test -z "$LTCC" && LTCC=$CC
12890 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12891 test -z "$LD" && LD=ld
12892 test -z "$ac_objext" && ac_objext=o
12894 for cc_temp in $compiler""; do
12896 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12897 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12902 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12905 # Only perform the check for file, if the check method requires it
12906 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12907 case $deplibs_check_method in
12909 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12911 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12912 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12913 $as_echo_n "(cached) " >&6
12917 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12920 lt_save_MAGIC_CMD="$MAGIC_CMD"
12921 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12922 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12923 for ac_dir in $ac_dummy; do
12925 test -z "$ac_dir" && ac_dir=.
12926 if test -f $ac_dir/${ac_tool_prefix}file; then
12927 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12928 if test -n "$file_magic_test_file"; then
12929 case $deplibs_check_method in
12931 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12932 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12933 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12934 $EGREP "$file_magic_regex" > /dev/null; then
12939 *** Warning: the command libtool uses to detect shared libraries,
12940 *** $file_magic_cmd, produces output that libtool cannot recognize.
12941 *** The result is that libtool may fail to recognize shared libraries
12942 *** as such. This will affect the creation of libtool libraries that
12943 *** depend on shared libraries, but programs linked with such libtool
12944 *** libraries will work regardless of this problem. Nevertheless, you
12945 *** may want to report the problem to your system manager and/or to
12946 *** bug-libtool@gnu.org
12956 MAGIC_CMD="$lt_save_MAGIC_CMD"
12961 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12962 if test -n "$MAGIC_CMD"; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12964 $as_echo "$MAGIC_CMD" >&6; }
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12967 $as_echo "no" >&6; }
12974 if test -z "$lt_cv_path_MAGIC_CMD"; then
12975 if test -n "$ac_tool_prefix"; then
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12977 $as_echo_n "checking for file... " >&6; }
12978 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12979 $as_echo_n "(cached) " >&6
12983 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12986 lt_save_MAGIC_CMD="$MAGIC_CMD"
12987 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12988 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12989 for ac_dir in $ac_dummy; do
12991 test -z "$ac_dir" && ac_dir=.
12992 if test -f $ac_dir/file; then
12993 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12994 if test -n "$file_magic_test_file"; then
12995 case $deplibs_check_method in
12997 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12998 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12999 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13000 $EGREP "$file_magic_regex" > /dev/null; then
13005 *** Warning: the command libtool uses to detect shared libraries,
13006 *** $file_magic_cmd, produces output that libtool cannot recognize.
13007 *** The result is that libtool may fail to recognize shared libraries
13008 *** as such. This will affect the creation of libtool libraries that
13009 *** depend on shared libraries, but programs linked with such libtool
13010 *** libraries will work regardless of this problem. Nevertheless, you
13011 *** may want to report the problem to your system manager and/or to
13012 *** bug-libtool@gnu.org
13022 MAGIC_CMD="$lt_save_MAGIC_CMD"
13027 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13028 if test -n "$MAGIC_CMD"; then
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13030 $as_echo "$MAGIC_CMD" >&6; }
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13033 $as_echo "no" >&6; }
13046 # Use C for the default configuration in the libtool script
13050 ac_cpp='$CPP $CPPFLAGS'
13051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13056 # Source file extension for C test sources.
13059 # Object file extension for compiled C test sources.
13063 # Code to be used in simple compile tests
13064 lt_simple_compile_test_code="int some_variable = 0;"
13066 # Code to be used in simple link tests
13067 lt_simple_link_test_code='int main(){return(0);}'
13075 # If no C compiler was specified, use CC.
13078 # If no C compiler flags were specified, use CFLAGS.
13079 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13081 # Allow CC to be a program name with arguments.
13084 # Save the default compiler, since it gets overwritten when the other
13085 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13086 compiler_DEFAULT=$CC
13088 # save warnings/boilerplate of simple test code
13089 ac_outfile=conftest.$ac_objext
13090 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13091 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13092 _lt_compiler_boilerplate=`cat conftest.err`
13095 ac_outfile=conftest.$ac_objext
13096 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13097 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13098 _lt_linker_boilerplate=`cat conftest.err`
13103 ## There is no encapsulation within the following macros, do not change
13104 ## the running order or otherwise move them around unless you know exactly
13105 ## what you are doing...
13106 if test -n "$compiler"; then
13108 lt_prog_compiler_no_builtin_flag=
13110 if test "$GCC" = yes; then
13111 case $cc_basename in
13113 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13115 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13119 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
13120 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
13121 $as_echo_n "(cached) " >&6
13123 lt_cv_prog_compiler_rtti_exceptions=no
13124 ac_outfile=conftest.$ac_objext
13125 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13126 lt_compiler_flag="-fno-rtti -fno-exceptions"
13127 # Insert the option either (1) after the last *FLAGS variable, or
13128 # (2) before a word containing "conftest.", or (3) at the end.
13129 # Note that $ac_compile itself does not contain backslashes and begins
13130 # with a dollar sign (not a hyphen), so the echo should work correctly.
13131 # The option is referenced via a variable to avoid confusing sed.
13132 lt_compile=`echo "$ac_compile" | $SED \
13133 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13134 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13135 -e 's:$: $lt_compiler_flag:'`
13136 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13137 (eval "$lt_compile" 2>conftest.err)
13139 cat conftest.err >&5
13140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13141 if (exit $ac_status) && test -s "$ac_outfile"; then
13142 # The compiler can only warn and ignore the option if not recognized
13143 # So say no if there are warnings other than the usual output.
13144 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13145 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13146 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13147 lt_cv_prog_compiler_rtti_exceptions=yes
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13154 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13156 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13157 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13169 lt_prog_compiler_wl=
13170 lt_prog_compiler_pic=
13171 lt_prog_compiler_static=
13174 if test "$GCC" = yes; then
13175 lt_prog_compiler_wl='-Wl,'
13176 lt_prog_compiler_static='-static'
13180 # All AIX code is PIC.
13181 if test "$host_cpu" = ia64; then
13182 # AIX 5 now supports IA64 processor
13183 lt_prog_compiler_static='-Bstatic'
13190 # see comment about AmigaOS4 .so support
13191 lt_prog_compiler_pic='-fPIC'
13194 # FIXME: we need at least 68020 code to build shared libraries, but
13195 # adding the `-m68020' flag to GCC prevents building anything better,
13197 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13202 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13203 # PIC is the default for these OSes.
13206 mingw* | cygwin* | pw32* | os2* | cegcc*)
13207 # This hack is so that the source file can tell whether it is being
13208 # built for inclusion in a dll (and should export symbols for example).
13209 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13210 # (--disable-auto-import) libraries
13211 lt_prog_compiler_pic='-DDLL_EXPORT'
13214 darwin* | rhapsody*)
13215 # PIC is the default on this platform
13216 # Common symbols not allowed in MH_DYLIB files
13217 lt_prog_compiler_pic='-fno-common'
13221 # PIC is the default for Haiku.
13222 # The "-static" flag exists, but is broken.
13223 lt_prog_compiler_static=
13227 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13228 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13229 # sets the default TLS model and affects inlining.
13235 lt_prog_compiler_pic='-fPIC'
13241 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13242 # Instead, we relocate shared libraries at runtime.
13246 # Just because we use GCC doesn't mean we suddenly get shared libraries
13247 # on systems that don't support them.
13248 lt_prog_compiler_can_build_shared=no
13253 # QNX uses GNU C++, but need to define -shared option too, otherwise
13254 # it will coredump.
13255 lt_prog_compiler_pic='-fPIC -shared'
13259 if test -d /usr/nec; then
13260 lt_prog_compiler_pic=-Kconform_pic
13265 lt_prog_compiler_pic='-fPIC'
13269 case $cc_basename in
13270 nvcc*) # Cuda Compiler Driver 2.2
13271 lt_prog_compiler_wl='-Xlinker '
13272 lt_prog_compiler_pic='-Xcompiler -fPIC'
13276 # PORTME Check for flag to pass linker flags through the system compiler.
13279 lt_prog_compiler_wl='-Wl,'
13280 if test "$host_cpu" = ia64; then
13281 # AIX 5 now supports IA64 processor
13282 lt_prog_compiler_static='-Bstatic'
13284 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13288 mingw* | cygwin* | pw32* | os2* | cegcc*)
13289 # This hack is so that the source file can tell whether it is being
13290 # built for inclusion in a dll (and should export symbols for example).
13291 lt_prog_compiler_pic='-DDLL_EXPORT'
13294 hpux9* | hpux10* | hpux11*)
13295 lt_prog_compiler_wl='-Wl,'
13296 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13297 # not for PA HP-UX.
13303 lt_prog_compiler_pic='+Z'
13306 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13307 lt_prog_compiler_static='${wl}-a ${wl}archive'
13310 irix5* | irix6* | nonstopux*)
13311 lt_prog_compiler_wl='-Wl,'
13312 # PIC (with -KPIC) is the default.
13313 lt_prog_compiler_static='-non_shared'
13316 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13317 case $cc_basename in
13318 # old Intel for x86_64 which still supported -KPIC.
13320 lt_prog_compiler_wl='-Wl,'
13321 lt_prog_compiler_pic='-KPIC'
13322 lt_prog_compiler_static='-static'
13324 # icc used to be incompatible with GCC.
13325 # ICC 10 doesn't accept -KPIC any more.
13327 lt_prog_compiler_wl='-Wl,'
13328 lt_prog_compiler_pic='-fPIC'
13329 lt_prog_compiler_static='-static'
13331 # Lahey Fortran 8.1.
13333 lt_prog_compiler_wl='-Wl,'
13334 lt_prog_compiler_pic='--shared'
13335 lt_prog_compiler_static='--static'
13338 # NAG Fortran compiler
13339 lt_prog_compiler_wl='-Wl,-Wl,,'
13340 lt_prog_compiler_pic='-PIC'
13341 lt_prog_compiler_static='-Bstatic'
13343 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13344 # Portland Group compilers (*not* the Pentium gcc compiler,
13345 # which looks to be a dead project)
13346 lt_prog_compiler_wl='-Wl,'
13347 lt_prog_compiler_pic='-fpic'
13348 lt_prog_compiler_static='-Bstatic'
13351 lt_prog_compiler_wl='-Wl,'
13352 # All Alpha code is PIC.
13353 lt_prog_compiler_static='-non_shared'
13355 xl* | bgxl* | bgf* | mpixl*)
13356 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13357 lt_prog_compiler_wl='-Wl,'
13358 lt_prog_compiler_pic='-qpic'
13359 lt_prog_compiler_static='-qstaticlink'
13362 case `$CC -V 2>&1 | sed 5q` in
13363 *Sun\ F* | *Sun*Fortran*)
13364 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13365 lt_prog_compiler_pic='-KPIC'
13366 lt_prog_compiler_static='-Bstatic'
13367 lt_prog_compiler_wl=''
13371 lt_prog_compiler_pic='-KPIC'
13372 lt_prog_compiler_static='-Bstatic'
13373 lt_prog_compiler_wl='-Wl,'
13381 lt_prog_compiler_pic='-KPIC'
13382 lt_prog_compiler_static='-Bstatic'
13386 # QNX uses GNU C++, but need to define -shared option too, otherwise
13387 # it will coredump.
13388 lt_prog_compiler_pic='-fPIC -shared'
13391 osf3* | osf4* | osf5*)
13392 lt_prog_compiler_wl='-Wl,'
13393 # All OSF/1 code is PIC.
13394 lt_prog_compiler_static='-non_shared'
13398 lt_prog_compiler_static='-non_shared'
13402 lt_prog_compiler_pic='-KPIC'
13403 lt_prog_compiler_static='-Bstatic'
13404 case $cc_basename in
13405 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13406 lt_prog_compiler_wl='-Qoption ld ';;
13408 lt_prog_compiler_wl='-Wl,';;
13413 lt_prog_compiler_wl='-Qoption ld '
13414 lt_prog_compiler_pic='-PIC'
13415 lt_prog_compiler_static='-Bstatic'
13418 sysv4 | sysv4.2uw2* | sysv4.3*)
13419 lt_prog_compiler_wl='-Wl,'
13420 lt_prog_compiler_pic='-KPIC'
13421 lt_prog_compiler_static='-Bstatic'
13425 if test -d /usr/nec ;then
13426 lt_prog_compiler_pic='-Kconform_pic'
13427 lt_prog_compiler_static='-Bstatic'
13431 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13432 lt_prog_compiler_wl='-Wl,'
13433 lt_prog_compiler_pic='-KPIC'
13434 lt_prog_compiler_static='-Bstatic'
13438 lt_prog_compiler_wl='-Wl,'
13439 lt_prog_compiler_can_build_shared=no
13443 lt_prog_compiler_pic='-pic'
13444 lt_prog_compiler_static='-Bstatic'
13448 lt_prog_compiler_can_build_shared=no
13454 # For platforms which do not support PIC, -DPIC is meaningless:
13456 lt_prog_compiler_pic=
13459 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13464 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13465 if ${lt_cv_prog_compiler_pic+:} false; then :
13466 $as_echo_n "(cached) " >&6
13468 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13471 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
13472 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13475 # Check to make sure the PIC flag actually works.
13477 if test -n "$lt_prog_compiler_pic"; then
13478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13479 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13480 if ${lt_cv_prog_compiler_pic_works+:} false; then :
13481 $as_echo_n "(cached) " >&6
13483 lt_cv_prog_compiler_pic_works=no
13484 ac_outfile=conftest.$ac_objext
13485 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13486 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13487 # Insert the option either (1) after the last *FLAGS variable, or
13488 # (2) before a word containing "conftest.", or (3) at the end.
13489 # Note that $ac_compile itself does not contain backslashes and begins
13490 # with a dollar sign (not a hyphen), so the echo should work correctly.
13491 # The option is referenced via a variable to avoid confusing sed.
13492 lt_compile=`echo "$ac_compile" | $SED \
13493 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13494 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13495 -e 's:$: $lt_compiler_flag:'`
13496 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13497 (eval "$lt_compile" 2>conftest.err)
13499 cat conftest.err >&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 if (exit $ac_status) && test -s "$ac_outfile"; then
13502 # The compiler can only warn and ignore the option if not recognized
13503 # So say no if there are warnings other than the usual output.
13504 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13506 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13507 lt_cv_prog_compiler_pic_works=yes
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13514 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13516 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13517 case $lt_prog_compiler_pic in
13519 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13522 lt_prog_compiler_pic=
13523 lt_prog_compiler_can_build_shared=no
13539 # Check to make sure the static flag actually works.
13541 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13543 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13544 if ${lt_cv_prog_compiler_static_works+:} false; then :
13545 $as_echo_n "(cached) " >&6
13547 lt_cv_prog_compiler_static_works=no
13548 save_LDFLAGS="$LDFLAGS"
13549 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13550 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13551 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13552 # The linker can only warn and ignore the option if not recognized
13553 # So say no if there are warnings
13554 if test -s conftest.err; then
13555 # Append any errors to the config.log.
13556 cat conftest.err 1>&5
13557 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13558 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13559 if diff conftest.exp conftest.er2 >/dev/null; then
13560 lt_cv_prog_compiler_static_works=yes
13563 lt_cv_prog_compiler_static_works=yes
13567 LDFLAGS="$save_LDFLAGS"
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13571 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13573 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13576 lt_prog_compiler_static=
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13586 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13587 if ${lt_cv_prog_compiler_c_o+:} false; then :
13588 $as_echo_n "(cached) " >&6
13590 lt_cv_prog_compiler_c_o=no
13591 $RM -r conftest 2>/dev/null
13595 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13597 lt_compiler_flag="-o out/conftest2.$ac_objext"
13598 # Insert the option either (1) after the last *FLAGS variable, or
13599 # (2) before a word containing "conftest.", or (3) at the end.
13600 # Note that $ac_compile itself does not contain backslashes and begins
13601 # with a dollar sign (not a hyphen), so the echo should work correctly.
13602 lt_compile=`echo "$ac_compile" | $SED \
13603 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13604 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13605 -e 's:$: $lt_compiler_flag:'`
13606 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13607 (eval "$lt_compile" 2>out/conftest.err)
13609 cat out/conftest.err >&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13613 # The compiler can only warn and ignore the option if not recognized
13614 # So say no if there are warnings
13615 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13616 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13617 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13618 lt_cv_prog_compiler_c_o=yes
13623 # SGI C++ compiler will create directory out/ii_files/ for
13624 # template instantiation
13625 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13626 $RM out/* && rmdir out
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13633 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13641 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13642 if ${lt_cv_prog_compiler_c_o+:} false; then :
13643 $as_echo_n "(cached) " >&6
13645 lt_cv_prog_compiler_c_o=no
13646 $RM -r conftest 2>/dev/null
13650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13652 lt_compiler_flag="-o out/conftest2.$ac_objext"
13653 # Insert the option either (1) after the last *FLAGS variable, or
13654 # (2) before a word containing "conftest.", or (3) at the end.
13655 # Note that $ac_compile itself does not contain backslashes and begins
13656 # with a dollar sign (not a hyphen), so the echo should work correctly.
13657 lt_compile=`echo "$ac_compile" | $SED \
13658 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13660 -e 's:$: $lt_compiler_flag:'`
13661 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13662 (eval "$lt_compile" 2>out/conftest.err)
13664 cat out/conftest.err >&5
13665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13668 # The compiler can only warn and ignore the option if not recognized
13669 # So say no if there are warnings
13670 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13671 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13672 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13673 lt_cv_prog_compiler_c_o=yes
13678 # SGI C++ compiler will create directory out/ii_files/ for
13679 # template instantiation
13680 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13681 $RM out/* && rmdir out
13687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13688 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13693 hard_links="nottested"
13694 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13695 # do not overwrite the value of need_locks provided by the user
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13697 $as_echo_n "checking if we can lock with hard links... " >&6; }
13700 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13702 ln conftest.a conftest.b 2>&5 || hard_links=no
13703 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13705 $as_echo "$hard_links" >&6; }
13706 if test "$hard_links" = no; then
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13708 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13721 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13724 allow_undefined_flag=
13725 always_export_symbols=no
13727 archive_expsym_cmds=
13728 compiler_needs_object=no
13729 enable_shared_with_static_runtimes=no
13730 export_dynamic_flag_spec=
13731 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13732 hardcode_automatic=no
13734 hardcode_direct_absolute=no
13735 hardcode_libdir_flag_spec=
13736 hardcode_libdir_flag_spec_ld=
13737 hardcode_libdir_separator=
13738 hardcode_minus_L=no
13739 hardcode_shlibpath_var=unsupported
13741 link_all_deplibs=unknown
13743 module_expsym_cmds=
13744 old_archive_from_new_cmds=
13745 old_archive_from_expsyms_cmds=
13746 thread_safe_flag_spec=
13747 whole_archive_flag_spec=
13748 # include_expsyms should be a list of space-separated symbols to be *always*
13749 # included in the symbol list
13751 # exclude_expsyms can be an extended regexp of symbols to exclude
13752 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13753 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13754 # as well as any symbol that contains `d'.
13755 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13756 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13757 # platforms (ab)use it in PIC code, but their linkers get confused if
13758 # the symbol is explicitly referenced. Since portable code cannot
13759 # rely on this symbol name, it's probably fine to never include it in
13760 # preloaded symbol tables.
13761 # Exclude shared library initialization/finalization symbols.
13762 extract_expsyms_cmds=
13765 cygwin* | mingw* | pw32* | cegcc*)
13766 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13767 # When not using gcc, we currently assume that we are using
13768 # Microsoft Visual C++.
13769 if test "$GCC" != yes; then
13774 # we just hope/assume this is gcc and not c89 (= MSVC++)
13784 # On some targets, GNU ld is compatible enough with the native linker
13785 # that we're better off using the native interface for both.
13786 lt_use_gnu_ld_interface=no
13787 if test "$with_gnu_ld" = yes; then
13790 # The AIX port of GNU ld has always aspired to compatibility
13791 # with the native linker. However, as the warning in the GNU ld
13792 # block says, versions before 2.19.5* couldn't really create working
13793 # shared libraries, regardless of the interface used.
13794 case `$LD -v 2>&1` in
13795 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13796 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13797 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13799 lt_use_gnu_ld_interface=yes
13804 lt_use_gnu_ld_interface=yes
13809 if test "$lt_use_gnu_ld_interface" = yes; then
13810 # If archive_cmds runs LD, not CC, wlarc should be empty
13813 # Set some defaults for GNU ld with shared library support. These
13814 # are reset later if shared libraries are not supported. Putting them
13815 # here allows them to be overridden if necessary.
13816 runpath_var=LD_RUN_PATH
13817 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13818 export_dynamic_flag_spec='${wl}--export-dynamic'
13819 # ancient GNU ld didn't support --whole-archive et. al.
13820 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13821 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13823 whole_archive_flag_spec=
13825 supports_anon_versioning=no
13826 case `$LD -v 2>&1` in
13827 *GNU\ gold*) supports_anon_versioning=yes ;;
13828 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13829 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13830 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13831 *\ 2.11.*) ;; # other 2.11 versions
13832 *) supports_anon_versioning=yes ;;
13835 # See if GNU ld supports shared libraries.
13838 # On AIX/PPC, the GNU linker is very broken
13839 if test "$host_cpu" != ia64; then
13843 *** Warning: the GNU linker, at least up to release 2.19, is reported
13844 *** to be unable to reliably create shared libraries on AIX.
13845 *** Therefore, libtool is disabling shared libraries support. If you
13846 *** really care for shared libraries, you may want to install binutils
13847 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13848 *** You will then need to restart the configuration process.
13857 # see comment about AmigaOS4 .so support
13858 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13859 archive_expsym_cmds=''
13862 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)'
13863 hardcode_libdir_flag_spec='-L$libdir'
13864 hardcode_minus_L=yes
13870 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13871 allow_undefined_flag=unsupported
13872 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13873 # support --undefined. This deserves some investigation. FIXME
13874 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13880 cygwin* | mingw* | pw32* | cegcc*)
13881 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13882 # as there is no search path for DLLs.
13883 hardcode_libdir_flag_spec='-L$libdir'
13884 export_dynamic_flag_spec='${wl}--export-all-symbols'
13885 allow_undefined_flag=unsupported
13886 always_export_symbols=no
13887 enable_shared_with_static_runtimes=yes
13888 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'
13889 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13891 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13892 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13893 # If the export-symbols file already is a .def file (1st line
13894 # is EXPORTS), use it as is; otherwise, prepend...
13895 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13896 cp $export_symbols $output_objdir/$soname.def;
13898 echo EXPORTS > $output_objdir/$soname.def;
13899 cat $export_symbols >> $output_objdir/$soname.def;
13901 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13908 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13909 link_all_deplibs=yes
13914 hardcode_shlibpath_var=no
13915 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13916 export_dynamic_flag_spec='${wl}-E'
13917 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13918 # Instead, shared libraries are loaded at an image base (0x10000000 by
13919 # default) and relocated if they conflict, which is a slow very memory
13920 # consuming and fragmenting process. To avoid this, we pick a random,
13921 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13922 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13923 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13924 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'
13927 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13929 if test "$host_os" = linux-dietlibc; then
13930 case $cc_basename in
13931 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13934 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13935 && test "$tmp_diet" = no
13937 tmp_addflag=' $pic_flag'
13938 tmp_sharedflag='-shared'
13939 case $cc_basename,$host_cpu in
13940 pgcc*) # Portland Group C compiler
13941 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'
13942 tmp_addflag=' $pic_flag'
13944 pgf77* | pgf90* | pgf95* | pgfortran*)
13945 # Portland Group f77 and f90 compilers
13946 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'
13947 tmp_addflag=' $pic_flag -Mnomain' ;;
13948 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13949 tmp_addflag=' -i_dynamic' ;;
13950 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13951 tmp_addflag=' -i_dynamic -nofor_main' ;;
13952 ifc* | ifort*) # Intel Fortran compiler
13953 tmp_addflag=' -nofor_main' ;;
13954 lf95*) # Lahey Fortran 8.1
13955 whole_archive_flag_spec=
13956 tmp_sharedflag='--shared' ;;
13957 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13958 tmp_sharedflag='-qmkshrobj'
13960 nvcc*) # Cuda Compiler Driver 2.2
13961 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'
13962 compiler_needs_object=yes
13965 case `$CC -V 2>&1 | sed 5q` in
13966 *Sun\ C*) # Sun C 5.9
13967 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'
13968 compiler_needs_object=yes
13969 tmp_sharedflag='-G' ;;
13970 *Sun\ F*) # Sun Fortran 8.3
13971 tmp_sharedflag='-G' ;;
13973 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13975 if test "x$supports_anon_versioning" = xyes; then
13976 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13977 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13978 echo "local: *; };" >> $output_objdir/$libname.ver~
13979 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13982 case $cc_basename in
13983 xlf* | bgf* | bgxlf* | mpixlf*)
13984 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13985 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13986 hardcode_libdir_flag_spec=
13987 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13988 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13989 if test "x$supports_anon_versioning" = xyes; then
13990 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13991 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13992 echo "local: *; };" >> $output_objdir/$libname.ver~
13993 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14003 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14004 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14007 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14008 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14013 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14017 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14018 *** create shared libraries on Solaris systems. Therefore, libtool
14019 *** is disabling shared libraries support. We urge you to upgrade GNU
14020 *** binutils to release 2.9.1 or newer. Another option is to modify
14021 *** your PATH or compiler configuration so that the native linker is
14022 *** used, and then restart.
14025 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14026 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14027 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14033 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14034 case `$LD -v 2>&1` in
14035 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14039 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14040 *** reliably create shared libraries on SCO systems. Therefore, libtool
14041 *** is disabling shared libraries support. We urge you to upgrade GNU
14042 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14043 *** your PATH or compiler configuration so that the native linker is
14044 *** used, and then restart.
14049 # For security reasons, it is highly recommended that you always
14050 # use absolute paths for naming shared libraries, and exclude the
14051 # DT_RUNPATH tag from executables and libraries. But doing so
14052 # requires that you compile everything twice, which is a pain.
14053 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14054 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14055 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14056 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14065 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14067 hardcode_direct=yes
14068 hardcode_shlibpath_var=no
14072 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14073 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14074 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14081 if test "$ld_shlibs" = no; then
14083 hardcode_libdir_flag_spec=
14084 export_dynamic_flag_spec=
14085 whole_archive_flag_spec=
14088 # PORTME fill in a description of your system's linker (not GNU ld)
14091 allow_undefined_flag=unsupported
14092 always_export_symbols=yes
14093 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'
14094 # Note: this linker hardcodes the directories in LIBPATH if there
14095 # are no directories specified by -L.
14096 hardcode_minus_L=yes
14097 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14098 # Neither direct hardcoding nor static linking is supported with a
14100 hardcode_direct=unsupported
14105 if test "$host_cpu" = ia64; then
14106 # On IA64, the linker does run time linking by default, so we don't
14107 # have to do anything special.
14108 aix_use_runtimelinking=no
14109 exp_sym_flag='-Bexport'
14112 # If we're using GNU nm, then we don't want the "-C" option.
14113 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14114 # Also, AIX nm treats weak defined symbols like other global
14115 # defined symbols, whereas GNU nm marks them as "W".
14116 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14117 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'
14119 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'
14121 aix_use_runtimelinking=no
14123 # Test if we are trying to use run time linking or normal
14124 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14125 # need to do runtime linking.
14126 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14127 for ld_flag in $LDFLAGS; do
14128 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14129 aix_use_runtimelinking=yes
14136 exp_sym_flag='-bexport'
14137 no_entry_flag='-bnoentry'
14140 # When large executables or shared objects are built, AIX ld can
14141 # have problems creating the table of contents. If linking a library
14142 # or program results in "error TOC overflow" add -mminimal-toc to
14143 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14144 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14147 hardcode_direct=yes
14148 hardcode_direct_absolute=yes
14149 hardcode_libdir_separator=':'
14150 link_all_deplibs=yes
14151 file_list_spec='${wl}-f,'
14153 if test "$GCC" = yes; then
14154 case $host_os in aix4.[012]|aix4.[012].*)
14155 # We only want to do this on AIX 4.2 and lower, the check
14156 # below for broken collect2 doesn't work under 4.3+
14157 collect2name=`${CC} -print-prog-name=collect2`
14158 if test -f "$collect2name" &&
14159 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14161 # We have reworked collect2
14164 # We have old collect2
14165 hardcode_direct=unsupported
14166 # It fails to find uninstalled libraries when the uninstalled
14167 # path is not listed in the libpath. Setting hardcode_minus_L
14168 # to unsupported forces relinking
14169 hardcode_minus_L=yes
14170 hardcode_libdir_flag_spec='-L$libdir'
14171 hardcode_libdir_separator=
14175 shared_flag='-shared'
14176 if test "$aix_use_runtimelinking" = yes; then
14177 shared_flag="$shared_flag "'${wl}-G'
14181 if test "$host_cpu" = ia64; then
14182 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14183 # chokes on -Wl,-G. The following line is correct:
14186 if test "$aix_use_runtimelinking" = yes; then
14187 shared_flag='${wl}-G'
14189 shared_flag='${wl}-bM:SRE'
14194 export_dynamic_flag_spec='${wl}-bexpall'
14195 # It seems that -bexpall does not export symbols beginning with
14196 # underscore (_), so it is better to generate a list of symbols to export.
14197 always_export_symbols=yes
14198 if test "$aix_use_runtimelinking" = yes; then
14199 # Warning - without using the other runtime loading flags (-brtl),
14200 # -berok will link without error, but may produce a broken library.
14201 allow_undefined_flag='-berok'
14202 # Determine the default libpath from the value encoded in an
14203 # empty executable.
14204 if test "${lt_cv_aix_libpath+set}" = set; then
14205 aix_libpath=$lt_cv_aix_libpath
14207 if ${lt_cv_aix_libpath_+:} false; then :
14208 $as_echo_n "(cached) " >&6
14210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14211 /* end confdefs.h. */
14221 if ac_fn_c_try_link "$LINENO"; then :
14223 lt_aix_libpath_sed='
14224 /Import File Strings/,/^$/ {
14226 s/^0 *\([^ ]*\) *$/\1/
14230 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14231 # Check for a 64-bit object if we didn't find anything.
14232 if test -z "$lt_cv_aix_libpath_"; then
14233 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14236 rm -f core conftest.err conftest.$ac_objext \
14237 conftest$ac_exeext conftest.$ac_ext
14238 if test -z "$lt_cv_aix_libpath_"; then
14239 lt_cv_aix_libpath_="/usr/lib:/lib"
14244 aix_libpath=$lt_cv_aix_libpath_
14247 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14248 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"
14250 if test "$host_cpu" = ia64; then
14251 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14252 allow_undefined_flag="-z nodefs"
14253 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"
14255 # Determine the default libpath from the value encoded in an
14256 # empty executable.
14257 if test "${lt_cv_aix_libpath+set}" = set; then
14258 aix_libpath=$lt_cv_aix_libpath
14260 if ${lt_cv_aix_libpath_+:} false; then :
14261 $as_echo_n "(cached) " >&6
14263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14264 /* end confdefs.h. */
14274 if ac_fn_c_try_link "$LINENO"; then :
14276 lt_aix_libpath_sed='
14277 /Import File Strings/,/^$/ {
14279 s/^0 *\([^ ]*\) *$/\1/
14283 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14284 # Check for a 64-bit object if we didn't find anything.
14285 if test -z "$lt_cv_aix_libpath_"; then
14286 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14289 rm -f core conftest.err conftest.$ac_objext \
14290 conftest$ac_exeext conftest.$ac_ext
14291 if test -z "$lt_cv_aix_libpath_"; then
14292 lt_cv_aix_libpath_="/usr/lib:/lib"
14297 aix_libpath=$lt_cv_aix_libpath_
14300 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14301 # Warning - without using the other run time loading flags,
14302 # -berok will link without error, but may produce a broken library.
14303 no_undefined_flag=' ${wl}-bernotok'
14304 allow_undefined_flag=' ${wl}-berok'
14305 if test "$with_gnu_ld" = yes; then
14306 # We only use this code for GNU lds that support --whole-archive.
14307 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14309 # Exported symbols can be pulled into shared objects from archives
14310 whole_archive_flag_spec='$convenience'
14312 archive_cmds_need_lc=yes
14313 # This is similar to how AIX traditionally builds its shared libraries.
14314 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'
14322 # see comment about AmigaOS4 .so support
14323 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14324 archive_expsym_cmds=''
14327 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)'
14328 hardcode_libdir_flag_spec='-L$libdir'
14329 hardcode_minus_L=yes
14335 export_dynamic_flag_spec=-rdynamic
14338 cygwin* | mingw* | pw32* | cegcc*)
14339 # When not using gcc, we currently assume that we are using
14340 # Microsoft Visual C++.
14341 # hardcode_libdir_flag_spec is actually meaningless, as there is
14342 # no search path for DLLs.
14343 case $cc_basename in
14346 hardcode_libdir_flag_spec=' '
14347 allow_undefined_flag=unsupported
14348 always_export_symbols=yes
14350 # Tell ltmain to make .lib files, not .a files.
14352 # Tell ltmain to make .dll files, not .so files.
14354 # FIXME: Setting linknames here is a bad hack.
14355 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14356 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14357 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14359 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14361 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14363 # The linker will not automatically build a static lib if we build a DLL.
14364 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14365 enable_shared_with_static_runtimes=yes
14366 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14368 old_postinstall_cmds='chmod 644 $oldlib'
14369 postlink_cmds='lt_outputfile="@OUTPUT@"~
14370 lt_tool_outputfile="@TOOL_OUTPUT@"~
14371 case $lt_outputfile in
14374 lt_outputfile="$lt_outputfile.exe"
14375 lt_tool_outputfile="$lt_tool_outputfile.exe"
14378 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14379 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14380 $RM "$lt_outputfile.manifest";
14384 # Assume MSVC wrapper
14385 hardcode_libdir_flag_spec=' '
14386 allow_undefined_flag=unsupported
14387 # Tell ltmain to make .lib files, not .a files.
14389 # Tell ltmain to make .dll files, not .so files.
14391 # FIXME: Setting linknames here is a bad hack.
14392 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14393 # The linker will automatically build a .lib file if we build a DLL.
14394 old_archive_from_new_cmds='true'
14395 # FIXME: Should let the user specify the lib program.
14396 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14397 enable_shared_with_static_runtimes=yes
14402 darwin* | rhapsody*)
14405 archive_cmds_need_lc=no
14407 hardcode_automatic=yes
14408 hardcode_shlibpath_var=unsupported
14409 if test "$lt_cv_ld_force_load" = "yes"; then
14410 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\"`'
14412 whole_archive_flag_spec=''
14414 link_all_deplibs=yes
14415 allow_undefined_flag="$_lt_dar_allow_undefined"
14416 case $cc_basename in
14417 ifort*) _lt_dar_can_shared=yes ;;
14418 *) _lt_dar_can_shared=$GCC ;;
14420 if test "$_lt_dar_can_shared" = "yes"; then
14421 output_verbose_link_cmd=func_echo_all
14422 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14423 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14424 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}"
14425 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}"
14434 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14435 hardcode_libdir_flag_spec='-L$libdir'
14436 hardcode_shlibpath_var=no
14443 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14444 # support. Future versions do this automatically, but an explicit c++rt0.o
14445 # does not break anything, and helps significantly (at the cost of a little
14448 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14449 hardcode_libdir_flag_spec='-R$libdir'
14450 hardcode_direct=yes
14451 hardcode_shlibpath_var=no
14454 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14456 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14457 hardcode_direct=yes
14458 hardcode_minus_L=yes
14459 hardcode_shlibpath_var=no
14462 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14463 freebsd* | dragonfly*)
14464 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14465 hardcode_libdir_flag_spec='-R$libdir'
14466 hardcode_direct=yes
14467 hardcode_shlibpath_var=no
14471 if test "$GCC" = yes; then
14472 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'
14474 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'
14476 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14477 hardcode_libdir_separator=:
14478 hardcode_direct=yes
14480 # hardcode_minus_L: Not really in the search PATH,
14481 # but as the default location of the library.
14482 hardcode_minus_L=yes
14483 export_dynamic_flag_spec='${wl}-E'
14487 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14488 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14490 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14492 if test "$with_gnu_ld" = no; then
14493 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14494 hardcode_libdir_flag_spec_ld='+b $libdir'
14495 hardcode_libdir_separator=:
14496 hardcode_direct=yes
14497 hardcode_direct_absolute=yes
14498 export_dynamic_flag_spec='${wl}-E'
14499 # hardcode_minus_L: Not really in the search PATH,
14500 # but as the default location of the library.
14501 hardcode_minus_L=yes
14506 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14509 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14512 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14515 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14521 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14524 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14528 # Older versions of the 11.00 compiler do not understand -b yet
14529 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14531 $as_echo_n "checking if $CC understands -b... " >&6; }
14532 if ${lt_cv_prog_compiler__b+:} false; then :
14533 $as_echo_n "(cached) " >&6
14535 lt_cv_prog_compiler__b=no
14536 save_LDFLAGS="$LDFLAGS"
14537 LDFLAGS="$LDFLAGS -b"
14538 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14539 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14540 # The linker can only warn and ignore the option if not recognized
14541 # So say no if there are warnings
14542 if test -s conftest.err; then
14543 # Append any errors to the config.log.
14544 cat conftest.err 1>&5
14545 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14546 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14547 if diff conftest.exp conftest.er2 >/dev/null; then
14548 lt_cv_prog_compiler__b=yes
14551 lt_cv_prog_compiler__b=yes
14555 LDFLAGS="$save_LDFLAGS"
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14559 $as_echo "$lt_cv_prog_compiler__b" >&6; }
14561 if test x"$lt_cv_prog_compiler__b" = xyes; then
14562 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14564 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14570 if test "$with_gnu_ld" = no; then
14571 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14572 hardcode_libdir_separator=:
14577 hardcode_shlibpath_var=no
14580 hardcode_direct=yes
14581 hardcode_direct_absolute=yes
14582 export_dynamic_flag_spec='${wl}-E'
14584 # hardcode_minus_L: Not really in the search PATH,
14585 # but as the default location of the library.
14586 hardcode_minus_L=yes
14592 irix5* | irix6* | nonstopux*)
14593 if test "$GCC" = yes; then
14594 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'
14595 # Try to use the -exported_symbol ld option, if it does not
14596 # work, assume that -exports_file does not work either and
14597 # implicitly export all symbols.
14598 # This should be the same for all languages, so no per-tag cache variable.
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14600 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14601 if ${lt_cv_irix_exported_symbol+:} false; then :
14602 $as_echo_n "(cached) " >&6
14604 save_LDFLAGS="$LDFLAGS"
14605 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14607 /* end confdefs.h. */
14608 int foo (void) { return 0; }
14610 if ac_fn_c_try_link "$LINENO"; then :
14611 lt_cv_irix_exported_symbol=yes
14613 lt_cv_irix_exported_symbol=no
14615 rm -f core conftest.err conftest.$ac_objext \
14616 conftest$ac_exeext conftest.$ac_ext
14617 LDFLAGS="$save_LDFLAGS"
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14620 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
14621 if test "$lt_cv_irix_exported_symbol" = yes; then
14622 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'
14625 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'
14626 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'
14628 archive_cmds_need_lc='no'
14629 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14630 hardcode_libdir_separator=:
14632 link_all_deplibs=yes
14636 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14637 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14639 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14641 hardcode_libdir_flag_spec='-R$libdir'
14642 hardcode_direct=yes
14643 hardcode_shlibpath_var=no
14647 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14648 hardcode_direct=yes
14649 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14650 hardcode_libdir_separator=:
14651 hardcode_shlibpath_var=no
14658 if test -f /usr/libexec/ld.so; then
14659 hardcode_direct=yes
14660 hardcode_shlibpath_var=no
14661 hardcode_direct_absolute=yes
14662 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14663 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14664 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14665 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14666 export_dynamic_flag_spec='${wl}-E'
14669 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14670 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14671 hardcode_libdir_flag_spec='-R$libdir'
14674 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14675 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14685 hardcode_libdir_flag_spec='-L$libdir'
14686 hardcode_minus_L=yes
14687 allow_undefined_flag=unsupported
14688 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'
14689 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14693 if test "$GCC" = yes; then
14694 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14695 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'
14697 allow_undefined_flag=' -expect_unresolved \*'
14698 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'
14700 archive_cmds_need_lc='no'
14701 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14702 hardcode_libdir_separator=:
14705 osf4* | osf5*) # as osf3* with the addition of -msym flag
14706 if test "$GCC" = yes; then
14707 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14708 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'
14709 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14711 allow_undefined_flag=' -expect_unresolved \*'
14712 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'
14713 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~
14714 $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'
14716 # Both c and cxx compiler support -rpath directly
14717 hardcode_libdir_flag_spec='-rpath $libdir'
14719 archive_cmds_need_lc='no'
14720 hardcode_libdir_separator=:
14724 no_undefined_flag=' -z defs'
14725 if test "$GCC" = yes; then
14727 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14728 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14729 $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'
14731 case `$CC -V 2>&1` in
14734 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14735 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14736 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14740 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14741 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14742 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14746 hardcode_libdir_flag_spec='-R$libdir'
14747 hardcode_shlibpath_var=no
14749 solaris2.[0-5] | solaris2.[0-5].*) ;;
14751 # The compiler driver will combine and reorder linker options,
14752 # but understands `-z linker_flag'. GCC discards it without `$wl',
14753 # but is careful enough not to reorder.
14754 # Supported since Solaris 2.6 (maybe 2.5.1?)
14755 if test "$GCC" = yes; then
14756 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14758 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14762 link_all_deplibs=yes
14766 if test "x$host_vendor" = xsequent; then
14767 # Use $CC to link under sequent, because it throws in some extra .o
14768 # files that make .init and .fini sections work.
14769 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14771 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14773 hardcode_libdir_flag_spec='-L$libdir'
14774 hardcode_direct=yes
14775 hardcode_minus_L=yes
14776 hardcode_shlibpath_var=no
14780 case $host_vendor in
14782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14783 hardcode_direct=yes # is this really true???
14786 ## LD is ld it makes a PLAMLIB
14787 ## CC just makes a GrossModule.
14788 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14789 reload_cmds='$CC -r -o $output$reload_objs'
14793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14794 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14797 runpath_var='LD_RUN_PATH'
14798 hardcode_shlibpath_var=no
14802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14803 hardcode_shlibpath_var=no
14804 export_dynamic_flag_spec='-Bexport'
14808 if test -d /usr/nec; then
14809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14810 hardcode_shlibpath_var=no
14811 runpath_var=LD_RUN_PATH
14812 hardcode_runpath_var=yes
14817 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14818 no_undefined_flag='${wl}-z,text'
14819 archive_cmds_need_lc=no
14820 hardcode_shlibpath_var=no
14821 runpath_var='LD_RUN_PATH'
14823 if test "$GCC" = yes; then
14824 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14825 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14827 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14828 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14832 sysv5* | sco3.2v5* | sco5v6*)
14833 # Note: We can NOT use -z defs as we might desire, because we do not
14834 # link with -lc, and that would cause any symbols used from libc to
14835 # always be unresolved, which means just about no library would
14836 # ever link correctly. If we're not using GNU ld we use -z text
14837 # though, which does catch some bad symbols but isn't as heavy-handed
14839 no_undefined_flag='${wl}-z,text'
14840 allow_undefined_flag='${wl}-z,nodefs'
14841 archive_cmds_need_lc=no
14842 hardcode_shlibpath_var=no
14843 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14844 hardcode_libdir_separator=':'
14845 link_all_deplibs=yes
14846 export_dynamic_flag_spec='${wl}-Bexport'
14847 runpath_var='LD_RUN_PATH'
14849 if test "$GCC" = yes; then
14850 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14851 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14853 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14854 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14860 hardcode_libdir_flag_spec='-L$libdir'
14861 hardcode_shlibpath_var=no
14869 if test x$host_vendor = xsni; then
14871 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14872 export_dynamic_flag_spec='${wl}-Blargedynsym'
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14879 $as_echo "$ld_shlibs" >&6; }
14880 test "$ld_shlibs" = no && can_build_shared=no
14882 with_gnu_ld=$with_gnu_ld
14899 # Do we need to explicitly link libc?
14901 case "x$archive_cmds_need_lc" in
14903 # Assume -lc should be added
14904 archive_cmds_need_lc=yes
14906 if test "$enable_shared" = yes && test "$GCC" = yes; then
14907 case $archive_cmds in
14909 # FIXME: we may have to deal with multi-command sequences.
14912 # Test whether the compiler implicitly links with -lc since on some
14913 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14914 # to ld, don't add -lc before -lgcc.
14915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14916 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14917 if ${lt_cv_archive_cmds_need_lc+:} false; then :
14918 $as_echo_n "(cached) " >&6
14921 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14924 (eval $ac_compile) 2>&5
14926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14927 test $ac_status = 0; } 2>conftest.err; then
14930 libobjs=conftest.$ac_objext
14932 wl=$lt_prog_compiler_wl
14933 pic_flag=$lt_prog_compiler_pic
14939 lt_save_allow_undefined_flag=$allow_undefined_flag
14940 allow_undefined_flag=
14941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14942 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14945 test $ac_status = 0; }
14947 lt_cv_archive_cmds_need_lc=no
14949 lt_cv_archive_cmds_need_lc=yes
14951 allow_undefined_flag=$lt_save_allow_undefined_flag
14953 cat conftest.err 1>&5
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14959 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14960 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15124 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15126 if test "$GCC" = yes; then
15128 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15129 *) lt_awk_arg="/^libraries:/" ;;
15132 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15133 *) lt_sed_strip_eq="s,=/,/,g" ;;
15135 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15136 case $lt_search_path_spec in
15138 # if the path contains ";" then we assume it to be the separator
15139 # otherwise default to the standard path separator (i.e. ":") - it is
15140 # assumed that no part of a normal pathname contains ";" but that should
15141 # okay in the real world where ";" in dirpaths is itself problematic.
15142 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15145 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15148 # Ok, now we have the path, separated by spaces, we can step through it
15149 # and add multilib dir if necessary.
15150 lt_tmp_lt_search_path_spec=
15151 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15152 for lt_sys_path in $lt_search_path_spec; do
15153 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15154 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15156 test -d "$lt_sys_path" && \
15157 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15160 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15161 BEGIN {RS=" "; FS="/|\n";} {
15164 for (lt_i = NF; lt_i > 0; lt_i--) {
15165 if ($lt_i != "" && $lt_i != ".") {
15166 if ($lt_i == "..") {
15169 if (lt_count == 0) {
15170 lt_foo="/" $lt_i lt_foo;
15177 if (lt_foo != "") { lt_freq[lt_foo]++; }
15178 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15180 # AWK program above erroneously prepends '/' to C:/dos/paths
15183 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15184 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15186 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15188 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15190 library_names_spec=
15191 libname_spec='lib$name'
15195 postuninstall_cmds=
15199 shlibpath_overrides_runpath=unknown
15201 dynamic_linker="$host_os ld.so"
15202 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15203 need_lib_prefix=unknown
15204 hardcode_into_libs=no
15206 # when you set need_version to no, make sure it does not cause -set_version
15207 # flags to be left without arguments
15208 need_version=unknown
15213 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15214 shlibpath_var=LIBPATH
15216 # AIX 3 has no versioning support, so we append a major version to the name.
15217 soname_spec='${libname}${release}${shared_ext}$major'
15224 hardcode_into_libs=yes
15225 if test "$host_cpu" = ia64; then
15226 # AIX 5 supports IA64
15227 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15228 shlibpath_var=LD_LIBRARY_PATH
15230 # With GCC up to 2.95.x, collect2 would create an import file
15231 # for dependence libraries. The import file would start with
15232 # the line `#! .'. This would cause the generated library to
15233 # depend on `.', always an invalid library. This was fixed in
15234 # development snapshots of GCC prior to 3.0.
15236 aix4 | aix4.[01] | aix4.[01].*)
15237 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15239 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15242 can_build_shared=no
15246 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15247 # soname into executable. Probably we can add versioning support to
15248 # collect2, so additional links can be useful in future.
15249 if test "$aix_use_runtimelinking" = yes; then
15250 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15251 # instead of lib<name>.a to let people know that these are not
15252 # typical AIX shared libraries.
15253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15255 # We preserve .a as extension for shared libraries through AIX4.2
15256 # and later when we are not doing run time linking.
15257 library_names_spec='${libname}${release}.a $libname.a'
15258 soname_spec='${libname}${release}${shared_ext}$major'
15260 shlibpath_var=LIBPATH
15267 # Since July 2007 AmigaOS4 officially supports .so libraries.
15268 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15272 library_names_spec='$libname.ixlibrary $libname.a'
15273 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15274 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'
15280 library_names_spec='${libname}${shared_ext}'
15281 dynamic_linker="$host_os ld.so"
15282 shlibpath_var=LIBRARY_PATH
15288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15289 soname_spec='${libname}${release}${shared_ext}$major'
15290 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15291 shlibpath_var=LD_LIBRARY_PATH
15292 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15293 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15294 # the default ld.so.conf also contains /usr/contrib/lib and
15295 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15296 # libtool to hard-code these into programs
15299 cygwin* | mingw* | pw32* | cegcc*)
15300 version_type=windows
15305 case $GCC,$cc_basename in
15308 library_names_spec='$libname.dll.a'
15309 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15310 postinstall_cmds='base_file=`basename \${file}`~
15311 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15312 dldir=$destdir/`dirname \$dlpath`~
15313 test -d \$dldir || mkdir -p \$dldir~
15314 $install_prog $dir/$dlname \$dldir/$dlname~
15315 chmod a+x \$dldir/$dlname~
15316 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15317 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15319 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15320 dlpath=$dir/\$dldll~
15322 shlibpath_overrides_runpath=yes
15326 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15327 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15329 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15332 # MinGW DLLs use traditional 'lib' prefix
15333 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15336 # pw32 DLLs use 'pw' prefix rather than 'lib'
15337 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15340 dynamic_linker='Win32 ld.exe'
15345 libname_spec='$name'
15346 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15347 library_names_spec='${libname}.dll.lib'
15351 sys_lib_search_path_spec=
15354 for lt_path in $LIB
15357 # Let DOS variable expansion print the short 8.3 style file name.
15358 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15359 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15362 # Convert to MSYS style.
15363 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15366 # Convert to unix form, then to dos form, then back to unix form
15367 # but this time dos style (no spaces!) so that the unix form looks
15368 # like /cygdrive/c/PROGRA~1:/cygdr...
15369 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15370 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15371 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15374 sys_lib_search_path_spec="$LIB"
15375 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15376 # It is most probably a Windows format PATH.
15377 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15379 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15381 # FIXME: find the short name or the path components, as spaces are
15382 # common. (e.g. "Program Files" -> "PROGRA~1")
15386 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15387 postinstall_cmds='base_file=`basename \${file}`~
15388 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15389 dldir=$destdir/`dirname \$dlpath`~
15390 test -d \$dldir || mkdir -p \$dldir~
15391 $install_prog $dir/$dlname \$dldir/$dlname'
15392 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15393 dlpath=$dir/\$dldll~
15395 shlibpath_overrides_runpath=yes
15396 dynamic_linker='Win32 link.exe'
15400 # Assume MSVC wrapper
15401 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15402 dynamic_linker='Win32 ld.exe'
15405 # FIXME: first we should search . and the directory the executable is in
15409 darwin* | rhapsody*)
15410 dynamic_linker="$host_os dyld"
15411 version_type=darwin
15414 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15415 soname_spec='${libname}${release}${major}$shared_ext'
15416 shlibpath_overrides_runpath=yes
15417 shlibpath_var=DYLD_LIBRARY_PATH
15418 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15420 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15421 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15429 soname_spec='${libname}${release}${shared_ext}$major'
15430 shlibpath_var=LD_LIBRARY_PATH
15437 freebsd* | dragonfly*)
15438 # DragonFly does not have aout. When/if they implement a new
15439 # versioning mechanism, adjust this.
15440 if test -x /usr/bin/objformat; then
15441 objformat=`/usr/bin/objformat`
15444 freebsd[123]*) objformat=aout ;;
15445 *) objformat=elf ;;
15448 version_type=freebsd-$objformat
15449 case $version_type in
15451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15456 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15460 shlibpath_var=LD_LIBRARY_PATH
15463 shlibpath_overrides_runpath=yes
15465 freebsd3.[01]* | freebsdelf3.[01]*)
15466 shlibpath_overrides_runpath=yes
15467 hardcode_into_libs=yes
15469 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15470 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15471 shlibpath_overrides_runpath=no
15472 hardcode_into_libs=yes
15474 *) # from 4.6 on, and DragonFly
15475 shlibpath_overrides_runpath=yes
15476 hardcode_into_libs=yes
15485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15486 soname_spec='${libname}${release}${shared_ext}$major'
15487 shlibpath_var=LD_LIBRARY_PATH
15488 hardcode_into_libs=yes
15495 dynamic_linker="$host_os runtime_loader"
15496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15497 soname_spec='${libname}${release}${shared_ext}$major'
15498 shlibpath_var=LIBRARY_PATH
15499 shlibpath_overrides_runpath=yes
15500 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15501 hardcode_into_libs=yes
15504 hpux9* | hpux10* | hpux11*)
15505 # Give a soname corresponding to the major version so that dld.sl refuses to
15506 # link against other versions.
15513 hardcode_into_libs=yes
15514 dynamic_linker="$host_os dld.so"
15515 shlibpath_var=LD_LIBRARY_PATH
15516 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15518 soname_spec='${libname}${release}${shared_ext}$major'
15519 if test "X$HPUX_IA64_MODE" = X32; then
15520 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15522 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15524 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15528 hardcode_into_libs=yes
15529 dynamic_linker="$host_os dld.sl"
15530 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15531 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15533 soname_spec='${libname}${release}${shared_ext}$major'
15534 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15535 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15539 dynamic_linker="$host_os dld.sl"
15540 shlibpath_var=SHLIB_PATH
15541 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15543 soname_spec='${libname}${release}${shared_ext}$major'
15546 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15547 postinstall_cmds='chmod 555 $lib'
15548 # or fails outright, so override atomically:
15549 install_override_mode=555
15556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15557 soname_spec='${libname}${release}${shared_ext}$major'
15558 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15559 shlibpath_var=LD_LIBRARY_PATH
15560 shlibpath_overrides_runpath=no
15561 hardcode_into_libs=yes
15564 irix5* | irix6* | nonstopux*)
15566 nonstopux*) version_type=nonstopux ;;
15568 if test "$lt_cv_prog_gnu_ld" = yes; then
15576 soname_spec='${libname}${release}${shared_ext}$major'
15577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15579 irix5* | nonstopux*)
15580 libsuff= shlibsuff=
15583 case $LD in # libtool.m4 will add one of these switches to LD
15584 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15585 libsuff= shlibsuff= libmagic=32-bit;;
15586 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15587 libsuff=32 shlibsuff=N32 libmagic=N32;;
15588 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15589 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15590 *) libsuff= shlibsuff= libmagic=never-match;;
15594 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15595 shlibpath_overrides_runpath=no
15596 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15597 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15598 hardcode_into_libs=yes
15601 # No shared lib support for Linux oldld, aout, or coff.
15602 linux*oldld* | linux*aout* | linux*coff*)
15606 # This must be Linux ELF.
15607 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15612 soname_spec='${libname}${release}${shared_ext}$major'
15613 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15614 shlibpath_var=LD_LIBRARY_PATH
15615 shlibpath_overrides_runpath=no
15617 # Some binutils ld are patched to set DT_RUNPATH
15618 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15619 $as_echo_n "(cached) " >&6
15621 lt_cv_shlibpath_overrides_runpath=no
15622 save_LDFLAGS=$LDFLAGS
15623 save_libdir=$libdir
15624 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15625 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15627 /* end confdefs.h. */
15637 if ac_fn_c_try_link "$LINENO"; then :
15638 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15639 lt_cv_shlibpath_overrides_runpath=yes
15642 rm -f core conftest.err conftest.$ac_objext \
15643 conftest$ac_exeext conftest.$ac_ext
15644 LDFLAGS=$save_LDFLAGS
15645 libdir=$save_libdir
15649 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15651 # This implies no fast_install, which is unacceptable.
15652 # Some rework will be needed to allow for fast_install
15653 # before this can be enabled.
15654 hardcode_into_libs=yes
15656 # Add ABI-specific directories to the system library path.
15657 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15659 # Append ld.so.conf contents to the search path
15660 if test -f /etc/ld.so.conf; then
15661 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' ' '`
15662 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15666 # We used to test for /lib/ld.so.1 and disable shared libraries on
15667 # powerpc, because MkLinux only supported shared libraries with the
15668 # GNU dynamic linker. Since this was broken with cross compilers,
15669 # most powerpc-linux boxes support dynamic linking these days and
15670 # people can always --disable-shared, the test was removed, and we
15671 # assume the GNU/Linux dynamic linker is in use.
15672 dynamic_linker='GNU/Linux ld.so'
15679 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15682 dynamic_linker='NetBSD (a.out) ld.so'
15684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15685 soname_spec='${libname}${release}${shared_ext}$major'
15686 dynamic_linker='NetBSD ld.elf_so'
15688 shlibpath_var=LD_LIBRARY_PATH
15689 shlibpath_overrides_runpath=yes
15690 hardcode_into_libs=yes
15695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15696 shlibpath_var=LD_LIBRARY_PATH
15697 shlibpath_overrides_runpath=yes
15704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15705 soname_spec='${libname}${release}${shared_ext}$major'
15706 shlibpath_var=LD_LIBRARY_PATH
15707 shlibpath_overrides_runpath=no
15708 hardcode_into_libs=yes
15709 dynamic_linker='ldqnx.so'
15714 sys_lib_dlsearch_path_spec="/usr/lib"
15716 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15718 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15719 *) need_version=no ;;
15721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15723 shlibpath_var=LD_LIBRARY_PATH
15724 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15726 openbsd2.[89] | openbsd2.[89].*)
15727 shlibpath_overrides_runpath=no
15730 shlibpath_overrides_runpath=yes
15734 shlibpath_overrides_runpath=yes
15739 libname_spec='$name'
15742 library_names_spec='$libname${shared_ext} $libname.a'
15743 dynamic_linker='OS/2 ld.exe'
15744 shlibpath_var=LIBPATH
15747 osf3* | osf4* | osf5*)
15751 soname_spec='${libname}${release}${shared_ext}$major'
15752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15753 shlibpath_var=LD_LIBRARY_PATH
15754 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15755 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15767 soname_spec='${libname}${release}${shared_ext}$major'
15768 shlibpath_var=LD_LIBRARY_PATH
15769 shlibpath_overrides_runpath=yes
15770 hardcode_into_libs=yes
15771 # ldd complains unless libraries are executable
15772 postinstall_cmds='chmod +x $lib'
15777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15778 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15779 shlibpath_var=LD_LIBRARY_PATH
15780 shlibpath_overrides_runpath=yes
15781 if test "$with_gnu_ld" = yes; then
15789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15790 soname_spec='${libname}${release}${shared_ext}$major'
15791 shlibpath_var=LD_LIBRARY_PATH
15792 case $host_vendor in
15794 shlibpath_overrides_runpath=no
15796 runpath_var=LD_RUN_PATH
15804 shlibpath_overrides_runpath=no
15805 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15811 if test -d /usr/nec ;then
15813 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15814 soname_spec='$libname${shared_ext}.$major'
15815 shlibpath_var=LD_LIBRARY_PATH
15819 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15820 version_type=freebsd-elf
15823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15824 soname_spec='${libname}${release}${shared_ext}$major'
15825 shlibpath_var=LD_LIBRARY_PATH
15826 shlibpath_overrides_runpath=yes
15827 hardcode_into_libs=yes
15828 if test "$with_gnu_ld" = yes; then
15829 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15831 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15834 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15838 sys_lib_dlsearch_path_spec='/usr/lib'
15842 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15847 shlibpath_var=LD_LIBRARY_PATH
15848 shlibpath_overrides_runpath=no
15849 hardcode_into_libs=yes
15854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15855 soname_spec='${libname}${release}${shared_ext}$major'
15856 shlibpath_var=LD_LIBRARY_PATH
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15864 $as_echo "$dynamic_linker" >&6; }
15865 test "$dynamic_linker" = no && can_build_shared=no
15867 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15868 if test "$GCC" = yes; then
15869 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15872 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15873 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15875 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15876 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15971 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15973 if test -n "$hardcode_libdir_flag_spec" ||
15974 test -n "$runpath_var" ||
15975 test "X$hardcode_automatic" = "Xyes" ; then
15977 # We can hardcode non-existent directories.
15978 if test "$hardcode_direct" != no &&
15979 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15980 # have to relink, otherwise we might link with an installed library
15981 # when we should be linking with a yet-to-be-installed one
15982 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15983 test "$hardcode_minus_L" != no; then
15984 # Linking always hardcodes the temporary library directory.
15985 hardcode_action=relink
15987 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15988 hardcode_action=immediate
15991 # We cannot hardcode anything, or else we can only hardcode existing
15993 hardcode_action=unsupported
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15996 $as_echo "$hardcode_action" >&6; }
15998 if test "$hardcode_action" = relink ||
15999 test "$inherit_rpath" = yes; then
16000 # Fast installation is not supported
16001 enable_fast_install=no
16002 elif test "$shlibpath_overrides_runpath" = yes ||
16003 test "$enable_shared" = no; then
16004 # Fast installation is not necessary
16005 enable_fast_install=needless
16013 if test "x$enable_dlopen" != xyes; then
16014 enable_dlopen=unknown
16015 enable_dlopen_self=unknown
16016 enable_dlopen_self_static=unknown
16023 lt_cv_dlopen="load_add_on"
16025 lt_cv_dlopen_self=yes
16028 mingw* | pw32* | cegcc*)
16029 lt_cv_dlopen="LoadLibrary"
16034 lt_cv_dlopen="dlopen"
16039 # if libdl is installed we need to link against it
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16041 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16042 if ${ac_cv_lib_dl_dlopen+:} false; then :
16043 $as_echo_n "(cached) " >&6
16045 ac_check_lib_save_LIBS=$LIBS
16047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16048 /* end confdefs.h. */
16050 /* Override any GCC internal prototype to avoid an error.
16051 Use char because int might match the return type of a GCC
16052 builtin and then its argument prototype would still apply. */
16065 if ac_fn_c_try_link "$LINENO"; then :
16066 ac_cv_lib_dl_dlopen=yes
16068 ac_cv_lib_dl_dlopen=no
16070 rm -f core conftest.err conftest.$ac_objext \
16071 conftest$ac_exeext conftest.$ac_ext
16072 LIBS=$ac_check_lib_save_LIBS
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16075 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16076 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16077 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16080 lt_cv_dlopen="dyld"
16082 lt_cv_dlopen_self=yes
16089 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16090 if test "x$ac_cv_func_shl_load" = xyes; then :
16091 lt_cv_dlopen="shl_load"
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16094 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16095 if ${ac_cv_lib_dld_shl_load+:} false; then :
16096 $as_echo_n "(cached) " >&6
16098 ac_check_lib_save_LIBS=$LIBS
16100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16101 /* end confdefs.h. */
16103 /* Override any GCC internal prototype to avoid an error.
16104 Use char because int might match the return type of a GCC
16105 builtin and then its argument prototype would still apply. */
16113 return shl_load ();
16118 if ac_fn_c_try_link "$LINENO"; then :
16119 ac_cv_lib_dld_shl_load=yes
16121 ac_cv_lib_dld_shl_load=no
16123 rm -f core conftest.err conftest.$ac_objext \
16124 conftest$ac_exeext conftest.$ac_ext
16125 LIBS=$ac_check_lib_save_LIBS
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16128 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16129 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16130 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16132 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
16133 if test "x$ac_cv_func_dlopen" = xyes; then :
16134 lt_cv_dlopen="dlopen"
16136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16137 $as_echo_n "checking for dlopen in -ldl... " >&6; }
16138 if ${ac_cv_lib_dl_dlopen+:} false; then :
16139 $as_echo_n "(cached) " >&6
16141 ac_check_lib_save_LIBS=$LIBS
16143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16144 /* end confdefs.h. */
16146 /* Override any GCC internal prototype to avoid an error.
16147 Use char because int might match the return type of a GCC
16148 builtin and then its argument prototype would still apply. */
16161 if ac_fn_c_try_link "$LINENO"; then :
16162 ac_cv_lib_dl_dlopen=yes
16164 ac_cv_lib_dl_dlopen=no
16166 rm -f core conftest.err conftest.$ac_objext \
16167 conftest$ac_exeext conftest.$ac_ext
16168 LIBS=$ac_check_lib_save_LIBS
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16171 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16172 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16173 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16176 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16177 if ${ac_cv_lib_svld_dlopen+:} false; then :
16178 $as_echo_n "(cached) " >&6
16180 ac_check_lib_save_LIBS=$LIBS
16181 LIBS="-lsvld $LIBS"
16182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16183 /* end confdefs.h. */
16185 /* Override any GCC internal prototype to avoid an error.
16186 Use char because int might match the return type of a GCC
16187 builtin and then its argument prototype would still apply. */
16200 if ac_fn_c_try_link "$LINENO"; then :
16201 ac_cv_lib_svld_dlopen=yes
16203 ac_cv_lib_svld_dlopen=no
16205 rm -f core conftest.err conftest.$ac_objext \
16206 conftest$ac_exeext conftest.$ac_ext
16207 LIBS=$ac_check_lib_save_LIBS
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16210 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16211 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16212 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16215 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16216 if ${ac_cv_lib_dld_dld_link+:} false; then :
16217 $as_echo_n "(cached) " >&6
16219 ac_check_lib_save_LIBS=$LIBS
16221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16222 /* end confdefs.h. */
16224 /* Override any GCC internal prototype to avoid an error.
16225 Use char because int might match the return type of a GCC
16226 builtin and then its argument prototype would still apply. */
16234 return dld_link ();
16239 if ac_fn_c_try_link "$LINENO"; then :
16240 ac_cv_lib_dld_dld_link=yes
16242 ac_cv_lib_dld_dld_link=no
16244 rm -f core conftest.err conftest.$ac_objext \
16245 conftest$ac_exeext conftest.$ac_ext
16246 LIBS=$ac_check_lib_save_LIBS
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16249 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16250 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16251 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16272 if test "x$lt_cv_dlopen" != xno; then
16278 case $lt_cv_dlopen in
16280 save_CPPFLAGS="$CPPFLAGS"
16281 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16283 save_LDFLAGS="$LDFLAGS"
16284 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16287 LIBS="$lt_cv_dlopen_libs $LIBS"
16289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16290 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16291 if ${lt_cv_dlopen_self+:} false; then :
16292 $as_echo_n "(cached) " >&6
16294 if test "$cross_compiling" = yes; then :
16295 lt_cv_dlopen_self=cross
16297 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16298 lt_status=$lt_dlunknown
16299 cat > conftest.$ac_ext <<_LT_EOF
16300 #line $LINENO "configure"
16301 #include "confdefs.h"
16310 # define LT_DLGLOBAL RTLD_GLOBAL
16313 # define LT_DLGLOBAL DL_GLOBAL
16315 # define LT_DLGLOBAL 0
16319 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16320 find out it does not work in some platform. */
16321 #ifndef LT_DLLAZY_OR_NOW
16323 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16326 # define LT_DLLAZY_OR_NOW DL_LAZY
16329 # define LT_DLLAZY_OR_NOW RTLD_NOW
16332 # define LT_DLLAZY_OR_NOW DL_NOW
16334 # define LT_DLLAZY_OR_NOW 0
16341 /* When -fvisbility=hidden is used, assume the code has been annotated
16342 correspondingly for the symbols needed. */
16343 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16344 int fnord () __attribute__((visibility("default")));
16347 int fnord () { return 42; }
16350 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16351 int status = $lt_dlunknown;
16355 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16358 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16359 else puts (dlerror ());
16361 /* dlclose (self); */
16369 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16370 (eval $ac_link) 2>&5
16372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16373 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16374 (./conftest; exit; ) >&5 2>/dev/null
16376 case x$lt_status in
16377 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16378 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16379 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16382 # compilation failed
16383 lt_cv_dlopen_self=no
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16391 $as_echo "$lt_cv_dlopen_self" >&6; }
16393 if test "x$lt_cv_dlopen_self" = xyes; then
16394 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16396 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16397 if ${lt_cv_dlopen_self_static+:} false; then :
16398 $as_echo_n "(cached) " >&6
16400 if test "$cross_compiling" = yes; then :
16401 lt_cv_dlopen_self_static=cross
16403 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16404 lt_status=$lt_dlunknown
16405 cat > conftest.$ac_ext <<_LT_EOF
16406 #line $LINENO "configure"
16407 #include "confdefs.h"
16416 # define LT_DLGLOBAL RTLD_GLOBAL
16419 # define LT_DLGLOBAL DL_GLOBAL
16421 # define LT_DLGLOBAL 0
16425 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16426 find out it does not work in some platform. */
16427 #ifndef LT_DLLAZY_OR_NOW
16429 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16432 # define LT_DLLAZY_OR_NOW DL_LAZY
16435 # define LT_DLLAZY_OR_NOW RTLD_NOW
16438 # define LT_DLLAZY_OR_NOW DL_NOW
16440 # define LT_DLLAZY_OR_NOW 0
16447 /* When -fvisbility=hidden is used, assume the code has been annotated
16448 correspondingly for the symbols needed. */
16449 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16450 int fnord () __attribute__((visibility("default")));
16453 int fnord () { return 42; }
16456 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16457 int status = $lt_dlunknown;
16461 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16464 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16465 else puts (dlerror ());
16467 /* dlclose (self); */
16475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16476 (eval $ac_link) 2>&5
16478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16479 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16480 (./conftest; exit; ) >&5 2>/dev/null
16482 case x$lt_status in
16483 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16484 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16485 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16488 # compilation failed
16489 lt_cv_dlopen_self_static=no
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16497 $as_echo "$lt_cv_dlopen_self_static" >&6; }
16500 CPPFLAGS="$save_CPPFLAGS"
16501 LDFLAGS="$save_LDFLAGS"
16506 case $lt_cv_dlopen_self in
16507 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16508 *) enable_dlopen_self=unknown ;;
16511 case $lt_cv_dlopen_self_static in
16512 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16513 *) enable_dlopen_self_static=unknown ;;
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16536 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16537 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16538 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16539 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16541 $as_echo "yes" >&6; }
16543 # FIXME - insert some real tests, host_os isn't really good enough
16546 if test -n "$STRIP" ; then
16547 striplib="$STRIP -x"
16548 old_striplib="$STRIP -S"
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16550 $as_echo "yes" >&6; }
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16553 $as_echo "no" >&6; }
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16558 $as_echo "no" >&6; }
16574 # Report which library types will actually be built
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16576 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16578 $as_echo "$can_build_shared" >&6; }
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16581 $as_echo_n "checking whether to build shared libraries... " >&6; }
16582 test "$can_build_shared" = "no" && enable_shared=no
16584 # On AIX, shared libraries and static libraries use the same namespace, and
16585 # are all built from PIC.
16588 test "$enable_shared" = yes && enable_static=no
16589 if test -n "$RANLIB"; then
16590 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16591 postinstall_cmds='$RANLIB $lib'
16596 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16597 test "$enable_shared" = yes && enable_static=no
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16602 $as_echo "$enable_shared" >&6; }
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16605 $as_echo_n "checking whether to build static libraries... " >&6; }
16606 # Make sure either enable_shared or enable_static is yes.
16607 test "$enable_shared" = yes || enable_static=yes
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16609 $as_echo "$enable_static" >&6; }
16616 ac_cpp='$CPP $CPPFLAGS'
16617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16623 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16624 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16625 (test "X$CXX" != "Xg++"))) ; then
16627 ac_cpp='$CXXCPP $CPPFLAGS'
16628 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16629 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16630 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16632 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16633 if test -z "$CXXCPP"; then
16634 if ${ac_cv_prog_CXXCPP+:} false; then :
16635 $as_echo_n "(cached) " >&6
16637 # Double quotes because CXXCPP needs to be expanded
16638 for CXXCPP in "$CXX -E" "/lib/cpp"
16640 ac_preproc_ok=false
16641 for ac_cxx_preproc_warn_flag in '' yes
16643 # Use a header file that comes with gcc, so configuring glibc
16644 # with a fresh cross-compiler works.
16645 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16646 # <limits.h> exists even on freestanding compilers.
16647 # On the NeXT, cc -E runs the code through the compiler's parser,
16648 # not just through cpp. "Syntax error" is here to catch this case.
16649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16650 /* end confdefs.h. */
16652 # include <limits.h>
16654 # include <assert.h>
16658 if ac_fn_cxx_try_cpp "$LINENO"; then :
16661 # Broken: fails on valid input.
16664 rm -f conftest.err conftest.i conftest.$ac_ext
16666 # OK, works on sane cases. Now check whether nonexistent headers
16667 # can be detected and how.
16668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16669 /* end confdefs.h. */
16670 #include <ac_nonexistent.h>
16672 if ac_fn_cxx_try_cpp "$LINENO"; then :
16673 # Broken: success on invalid input.
16676 # Passes both tests.
16680 rm -f conftest.err conftest.i conftest.$ac_ext
16683 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16684 rm -f conftest.i conftest.err conftest.$ac_ext
16685 if $ac_preproc_ok; then :
16690 ac_cv_prog_CXXCPP=$CXXCPP
16693 CXXCPP=$ac_cv_prog_CXXCPP
16695 ac_cv_prog_CXXCPP=$CXXCPP
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16698 $as_echo "$CXXCPP" >&6; }
16699 ac_preproc_ok=false
16700 for ac_cxx_preproc_warn_flag in '' yes
16702 # Use a header file that comes with gcc, so configuring glibc
16703 # with a fresh cross-compiler works.
16704 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16705 # <limits.h> exists even on freestanding compilers.
16706 # On the NeXT, cc -E runs the code through the compiler's parser,
16707 # not just through cpp. "Syntax error" is here to catch this case.
16708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16709 /* end confdefs.h. */
16711 # include <limits.h>
16713 # include <assert.h>
16717 if ac_fn_cxx_try_cpp "$LINENO"; then :
16720 # Broken: fails on valid input.
16723 rm -f conftest.err conftest.i conftest.$ac_ext
16725 # OK, works on sane cases. Now check whether nonexistent headers
16726 # can be detected and how.
16727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16728 /* end confdefs.h. */
16729 #include <ac_nonexistent.h>
16731 if ac_fn_cxx_try_cpp "$LINENO"; then :
16732 # Broken: success on invalid input.
16735 # Passes both tests.
16739 rm -f conftest.err conftest.i conftest.$ac_ext
16742 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16743 rm -f conftest.i conftest.err conftest.$ac_ext
16744 if $ac_preproc_ok; then :
16747 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16749 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16750 See \`config.log' for more details" "$LINENO" 5; }
16754 ac_cpp='$CPP $CPPFLAGS'
16755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16760 _lt_caught_CXX_error=yes
16764 ac_cpp='$CXXCPP $CPPFLAGS'
16765 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16766 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16767 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16769 archive_cmds_need_lc_CXX=no
16770 allow_undefined_flag_CXX=
16771 always_export_symbols_CXX=no
16772 archive_expsym_cmds_CXX=
16773 compiler_needs_object_CXX=no
16774 export_dynamic_flag_spec_CXX=
16775 hardcode_direct_CXX=no
16776 hardcode_direct_absolute_CXX=no
16777 hardcode_libdir_flag_spec_CXX=
16778 hardcode_libdir_flag_spec_ld_CXX=
16779 hardcode_libdir_separator_CXX=
16780 hardcode_minus_L_CXX=no
16781 hardcode_shlibpath_var_CXX=unsupported
16782 hardcode_automatic_CXX=no
16783 inherit_rpath_CXX=no
16785 module_expsym_cmds_CXX=
16786 link_all_deplibs_CXX=unknown
16787 old_archive_cmds_CXX=$old_archive_cmds
16788 reload_flag_CXX=$reload_flag
16789 reload_cmds_CXX=$reload_cmds
16790 no_undefined_flag_CXX=
16791 whole_archive_flag_spec_CXX=
16792 enable_shared_with_static_runtimes_CXX=no
16794 # Source file extension for C++ test sources.
16797 # Object file extension for compiled C++ test sources.
16801 # No sense in running all these tests if we already determined that
16802 # the CXX compiler isn't working. Some variables (like enable_shared)
16803 # are currently assumed to apply to all compilers on this platform,
16804 # and will be corrupted by setting them based on a non-working compiler.
16805 if test "$_lt_caught_CXX_error" != yes; then
16806 # Code to be used in simple compile tests
16807 lt_simple_compile_test_code="int some_variable = 0;"
16809 # Code to be used in simple link tests
16810 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16812 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16819 # If no C compiler was specified, use CC.
16822 # If no C compiler flags were specified, use CFLAGS.
16823 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16825 # Allow CC to be a program name with arguments.
16829 # save warnings/boilerplate of simple test code
16830 ac_outfile=conftest.$ac_objext
16831 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16832 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16833 _lt_compiler_boilerplate=`cat conftest.err`
16836 ac_outfile=conftest.$ac_objext
16837 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16838 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16839 _lt_linker_boilerplate=`cat conftest.err`
16843 # Allow CC to be a program name with arguments.
16845 lt_save_CFLAGS=$CFLAGS
16849 lt_save_with_gnu_ld=$with_gnu_ld
16850 lt_save_path_LD=$lt_cv_path_LD
16851 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16852 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16854 $as_unset lt_cv_prog_gnu_ld
16856 if test -n "${lt_cv_path_LDCXX+set}"; then
16857 lt_cv_path_LD=$lt_cv_path_LDCXX
16859 $as_unset lt_cv_path_LD
16861 test -z "${LDCXX+set}" || LD=$LDCXX
16866 for cc_temp in $compiler""; do
16868 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16869 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16874 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16877 if test -n "$compiler"; then
16878 # We don't want -fno-exception when compiling C++ code, so set the
16879 # no_builtin_flag separately
16880 if test "$GXX" = yes; then
16881 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16883 lt_prog_compiler_no_builtin_flag_CXX=
16886 if test "$GXX" = yes; then
16887 # Set up default GNU C++ configuration
16891 # Check whether --with-gnu-ld was given.
16892 if test "${with_gnu_ld+set}" = set; then :
16893 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16899 if test "$GCC" = yes; then
16900 # Check if gcc -print-prog-name=ld gives a path.
16901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16902 $as_echo_n "checking for ld used by $CC... " >&6; }
16905 # gcc leaves a trailing carriage return which upsets mingw
16906 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16908 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16911 # Accept absolute paths.
16913 re_direlt='/[^/][^/]*/\.\./'
16914 # Canonicalize the pathname of ld
16915 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16916 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16917 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16919 test -z "$LD" && LD="$ac_prog"
16922 # If it fails, then pretend we aren't using GCC.
16926 # If it is relative, then search for the first ld in PATH.
16927 with_gnu_ld=unknown
16930 elif test "$with_gnu_ld" = yes; then
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16932 $as_echo_n "checking for GNU ld... " >&6; }
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16935 $as_echo_n "checking for non-GNU ld... " >&6; }
16937 if ${lt_cv_path_LD+:} false; then :
16938 $as_echo_n "(cached) " >&6
16940 if test -z "$LD"; then
16941 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16942 for ac_dir in $PATH; do
16944 test -z "$ac_dir" && ac_dir=.
16945 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16946 lt_cv_path_LD="$ac_dir/$ac_prog"
16947 # Check to see if the program is GNU ld. I'd rather use --version,
16948 # but apparently some variants of GNU ld only accept -v.
16949 # Break only if it was the GNU/non-GNU ld that we prefer.
16950 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16951 *GNU* | *'with BFD'*)
16952 test "$with_gnu_ld" != no && break
16955 test "$with_gnu_ld" != yes && break
16962 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16966 LD="$lt_cv_path_LD"
16967 if test -n "$LD"; then
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16969 $as_echo "$LD" >&6; }
16971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16972 $as_echo "no" >&6; }
16974 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16976 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16977 if ${lt_cv_prog_gnu_ld+:} false; then :
16978 $as_echo_n "(cached) " >&6
16980 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16981 case `$LD -v 2>&1 </dev/null` in
16982 *GNU* | *'with BFD'*)
16983 lt_cv_prog_gnu_ld=yes
16986 lt_cv_prog_gnu_ld=no
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16991 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16992 with_gnu_ld=$lt_cv_prog_gnu_ld
17000 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17001 # archiving commands below assume that GNU ld is being used.
17002 if test "$with_gnu_ld" = yes; then
17003 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17004 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'
17006 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17007 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17009 # If archive_cmds runs LD, not CC, wlarc should be empty
17010 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17011 # investigate it a little bit more. (MM)
17014 # ancient GNU ld didn't support --whole-archive et. al.
17015 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17016 $GREP 'no-whole-archive' > /dev/null; then
17017 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17019 whole_archive_flag_spec_CXX=
17025 # A generic and very simple default shared library creation
17026 # command for GNU C++ for the case where it uses the native
17027 # linker, instead of GNU ld. If possible, this setting should
17028 # overridden to take advantage of the native linker features on
17029 # the platform it is being used on.
17030 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17033 # Commands to make compiler produce verbose output that lists
17034 # what "hidden" libraries, object files and flags are used when
17035 # linking a shared library.
17036 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17044 # PORTME: fill in a description of your system's C++ link characteristics
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17046 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17050 # FIXME: insert proper C++ library support
17054 if test "$host_cpu" = ia64; then
17055 # On IA64, the linker does run time linking by default, so we don't
17056 # have to do anything special.
17057 aix_use_runtimelinking=no
17058 exp_sym_flag='-Bexport'
17061 aix_use_runtimelinking=no
17063 # Test if we are trying to use run time linking or normal
17064 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17065 # need to do runtime linking.
17066 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17067 for ld_flag in $LDFLAGS; do
17070 aix_use_runtimelinking=yes
17078 exp_sym_flag='-bexport'
17079 no_entry_flag='-bnoentry'
17082 # When large executables or shared objects are built, AIX ld can
17083 # have problems creating the table of contents. If linking a library
17084 # or program results in "error TOC overflow" add -mminimal-toc to
17085 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17086 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17088 archive_cmds_CXX=''
17089 hardcode_direct_CXX=yes
17090 hardcode_direct_absolute_CXX=yes
17091 hardcode_libdir_separator_CXX=':'
17092 link_all_deplibs_CXX=yes
17093 file_list_spec_CXX='${wl}-f,'
17095 if test "$GXX" = yes; then
17096 case $host_os in aix4.[012]|aix4.[012].*)
17097 # We only want to do this on AIX 4.2 and lower, the check
17098 # below for broken collect2 doesn't work under 4.3+
17099 collect2name=`${CC} -print-prog-name=collect2`
17100 if test -f "$collect2name" &&
17101 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17103 # We have reworked collect2
17106 # We have old collect2
17107 hardcode_direct_CXX=unsupported
17108 # It fails to find uninstalled libraries when the uninstalled
17109 # path is not listed in the libpath. Setting hardcode_minus_L
17110 # to unsupported forces relinking
17111 hardcode_minus_L_CXX=yes
17112 hardcode_libdir_flag_spec_CXX='-L$libdir'
17113 hardcode_libdir_separator_CXX=
17116 shared_flag='-shared'
17117 if test "$aix_use_runtimelinking" = yes; then
17118 shared_flag="$shared_flag "'${wl}-G'
17122 if test "$host_cpu" = ia64; then
17123 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17124 # chokes on -Wl,-G. The following line is correct:
17127 if test "$aix_use_runtimelinking" = yes; then
17128 shared_flag='${wl}-G'
17130 shared_flag='${wl}-bM:SRE'
17135 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17136 # It seems that -bexpall does not export symbols beginning with
17137 # underscore (_), so it is better to generate a list of symbols to
17139 always_export_symbols_CXX=yes
17140 if test "$aix_use_runtimelinking" = yes; then
17141 # Warning - without using the other runtime loading flags (-brtl),
17142 # -berok will link without error, but may produce a broken library.
17143 allow_undefined_flag_CXX='-berok'
17144 # Determine the default libpath from the value encoded in an empty
17146 if test "${lt_cv_aix_libpath+set}" = set; then
17147 aix_libpath=$lt_cv_aix_libpath
17149 if ${lt_cv_aix_libpath__CXX+:} false; then :
17150 $as_echo_n "(cached) " >&6
17152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17153 /* end confdefs.h. */
17163 if ac_fn_cxx_try_link "$LINENO"; then :
17165 lt_aix_libpath_sed='
17166 /Import File Strings/,/^$/ {
17168 s/^0 *\([^ ]*\) *$/\1/
17172 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17173 # Check for a 64-bit object if we didn't find anything.
17174 if test -z "$lt_cv_aix_libpath__CXX"; then
17175 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17178 rm -f core conftest.err conftest.$ac_objext \
17179 conftest$ac_exeext conftest.$ac_ext
17180 if test -z "$lt_cv_aix_libpath__CXX"; then
17181 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17186 aix_libpath=$lt_cv_aix_libpath__CXX
17189 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17191 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"
17193 if test "$host_cpu" = ia64; then
17194 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17195 allow_undefined_flag_CXX="-z nodefs"
17196 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"
17198 # Determine the default libpath from the value encoded in an
17199 # empty executable.
17200 if test "${lt_cv_aix_libpath+set}" = set; then
17201 aix_libpath=$lt_cv_aix_libpath
17203 if ${lt_cv_aix_libpath__CXX+:} false; then :
17204 $as_echo_n "(cached) " >&6
17206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17207 /* end confdefs.h. */
17217 if ac_fn_cxx_try_link "$LINENO"; then :
17219 lt_aix_libpath_sed='
17220 /Import File Strings/,/^$/ {
17222 s/^0 *\([^ ]*\) *$/\1/
17226 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17227 # Check for a 64-bit object if we didn't find anything.
17228 if test -z "$lt_cv_aix_libpath__CXX"; then
17229 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17232 rm -f core conftest.err conftest.$ac_objext \
17233 conftest$ac_exeext conftest.$ac_ext
17234 if test -z "$lt_cv_aix_libpath__CXX"; then
17235 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17240 aix_libpath=$lt_cv_aix_libpath__CXX
17243 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17244 # Warning - without using the other run time loading flags,
17245 # -berok will link without error, but may produce a broken library.
17246 no_undefined_flag_CXX=' ${wl}-bernotok'
17247 allow_undefined_flag_CXX=' ${wl}-berok'
17248 if test "$with_gnu_ld" = yes; then
17249 # We only use this code for GNU lds that support --whole-archive.
17250 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17252 # Exported symbols can be pulled into shared objects from archives
17253 whole_archive_flag_spec_CXX='$convenience'
17255 archive_cmds_need_lc_CXX=yes
17256 # This is similar to how AIX traditionally builds its shared
17258 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'
17264 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17265 allow_undefined_flag_CXX=unsupported
17266 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17267 # support --undefined. This deserves some investigation. FIXME
17268 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17275 case $cc_basename in
17277 # FIXME: insert proper C++ library support
17283 cygwin* | mingw* | pw32* | cegcc*)
17284 case $GXX,$cc_basename in
17287 # hardcode_libdir_flag_spec is actually meaningless, as there is
17288 # no search path for DLLs.
17289 hardcode_libdir_flag_spec_CXX=' '
17290 allow_undefined_flag_CXX=unsupported
17291 always_export_symbols_CXX=yes
17292 file_list_spec_CXX='@'
17293 # Tell ltmain to make .lib files, not .a files.
17295 # Tell ltmain to make .dll files, not .so files.
17297 # FIXME: Setting linknames here is a bad hack.
17298 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17299 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17300 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17302 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17304 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17306 # The linker will not automatically build a static lib if we build a DLL.
17307 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17308 enable_shared_with_static_runtimes_CXX=yes
17310 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17311 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17312 lt_tool_outputfile="@TOOL_OUTPUT@"~
17313 case $lt_outputfile in
17316 lt_outputfile="$lt_outputfile.exe"
17317 lt_tool_outputfile="$lt_tool_outputfile.exe"
17320 func_to_tool_file "$lt_outputfile"~
17321 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17322 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17323 $RM "$lt_outputfile.manifest";
17328 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17329 # as there is no search path for DLLs.
17330 hardcode_libdir_flag_spec_CXX='-L$libdir'
17331 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17332 allow_undefined_flag_CXX=unsupported
17333 always_export_symbols_CXX=no
17334 enable_shared_with_static_runtimes_CXX=yes
17336 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17337 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'
17338 # If the export-symbols file already is a .def file (1st line
17339 # is EXPORTS), use it as is; otherwise, prepend...
17340 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17341 cp $export_symbols $output_objdir/$soname.def;
17343 echo EXPORTS > $output_objdir/$soname.def;
17344 cat $export_symbols >> $output_objdir/$soname.def;
17346 $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'
17353 darwin* | rhapsody*)
17356 archive_cmds_need_lc_CXX=no
17357 hardcode_direct_CXX=no
17358 hardcode_automatic_CXX=yes
17359 hardcode_shlibpath_var_CXX=unsupported
17360 if test "$lt_cv_ld_force_load" = "yes"; then
17361 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\"`'
17363 whole_archive_flag_spec_CXX=''
17365 link_all_deplibs_CXX=yes
17366 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17367 case $cc_basename in
17368 ifort*) _lt_dar_can_shared=yes ;;
17369 *) _lt_dar_can_shared=$GCC ;;
17371 if test "$_lt_dar_can_shared" = "yes"; then
17372 output_verbose_link_cmd=func_echo_all
17373 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}"
17374 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17375 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}"
17376 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}"
17377 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17378 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}"
17379 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}"
17389 case $cc_basename in
17391 # FIXME: insert proper C++ library support
17395 # Green Hills C++ Compiler
17396 # FIXME: insert proper C++ library support
17400 # FIXME: insert proper C++ library support
17407 # C++ shared libraries reported to be fairly broken before
17413 archive_cmds_need_lc_CXX=no
17416 freebsd* | dragonfly*)
17417 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17426 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17427 link_all_deplibs_CXX=yes
17431 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17432 hardcode_libdir_separator_CXX=:
17433 export_dynamic_flag_spec_CXX='${wl}-E'
17434 hardcode_direct_CXX=yes
17435 hardcode_minus_L_CXX=yes # Not in the search PATH,
17436 # but as the default
17437 # location of the library.
17439 case $cc_basename in
17441 # FIXME: insert proper C++ library support
17445 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'
17446 # Commands to make compiler produce verbose output that lists
17447 # what "hidden" libraries, object files and flags are used when
17448 # linking a shared library.
17450 # There doesn't appear to be a way to prevent this compiler from
17451 # explicitly linking system object files so we need to strip them
17452 # from the output so that they don't get included in the library
17454 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"'
17457 if test "$GXX" = yes; then
17458 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'
17460 # FIXME: insert proper C++ library support
17468 if test $with_gnu_ld = no; then
17469 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17470 hardcode_libdir_separator_CXX=:
17476 export_dynamic_flag_spec_CXX='${wl}-E'
17482 hardcode_direct_CXX=no
17483 hardcode_shlibpath_var_CXX=no
17486 hardcode_direct_CXX=yes
17487 hardcode_direct_absolute_CXX=yes
17488 hardcode_minus_L_CXX=yes # Not in the search PATH,
17489 # but as the default
17490 # location of the library.
17494 case $cc_basename in
17496 # FIXME: insert proper C++ library support
17502 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17505 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17508 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17511 # Commands to make compiler produce verbose output that lists
17512 # what "hidden" libraries, object files and flags are used when
17513 # linking a shared library.
17515 # There doesn't appear to be a way to prevent this compiler from
17516 # explicitly linking system object files so we need to strip them
17517 # from the output so that they don't get included in the library
17519 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"'
17522 if test "$GXX" = yes; then
17523 if test $with_gnu_ld = no; then
17526 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17529 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17532 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'
17537 # FIXME: insert proper C++ library support
17545 hardcode_direct_CXX=no
17546 hardcode_shlibpath_var_CXX=no
17547 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17548 export_dynamic_flag_spec_CXX='${wl}-E'
17549 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17550 # Instead, shared libraries are loaded at an image base (0x10000000 by
17551 # default) and relocated if they conflict, which is a slow very memory
17552 # consuming and fragmenting process. To avoid this, we pick a random,
17553 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17554 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17555 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'
17556 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'
17559 case $cc_basename in
17562 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'
17564 # Archives containing C++ object files must be created using
17565 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17566 # necessary to make sure instantiated templates are included
17568 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17571 if test "$GXX" = yes; then
17572 if test "$with_gnu_ld" = no; then
17573 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'
17575 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'
17578 link_all_deplibs_CXX=yes
17581 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17582 hardcode_libdir_separator_CXX=:
17583 inherit_rpath_CXX=yes
17586 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17587 case $cc_basename in
17589 # Kuck and Associates, Inc. (KAI) C++ Compiler
17591 # KCC will only create a shared library if the output file
17592 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17593 # to its proper name (with version) after linking.
17594 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'
17595 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'
17596 # Commands to make compiler produce verbose output that lists
17597 # what "hidden" libraries, object files and flags are used when
17598 # linking a shared library.
17600 # There doesn't appear to be a way to prevent this compiler from
17601 # explicitly linking system object files so we need to strip them
17602 # from the output so that they don't get included in the library
17604 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"'
17606 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17607 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17609 # Archives containing C++ object files must be created using
17610 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17611 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17616 # version 8.0 and above of icpc choke on multiply defined symbols
17617 # if we add $predep_objects and $postdep_objects, however 7.1 and
17618 # earlier do not add the objects themselves.
17619 case `$CC -V 2>&1` in
17621 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17622 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'
17624 *) # Version 8.0 or newer
17627 ia64*) tmp_idyn=' -i_dynamic';;
17629 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17630 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'
17633 archive_cmds_need_lc_CXX=no
17634 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17635 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17636 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17639 # Portland Group C++ compiler
17641 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17642 prelink_cmds_CXX='tpldir=Template.dir~
17644 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17645 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17646 old_archive_cmds_CXX='tpldir=Template.dir~
17648 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17649 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17651 archive_cmds_CXX='tpldir=Template.dir~
17653 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17654 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17655 archive_expsym_cmds_CXX='tpldir=Template.dir~
17657 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17658 $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'
17660 *) # Version 6 and above use weak symbols
17661 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17662 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'
17666 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17667 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17668 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'
17672 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17673 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'
17675 runpath_var=LD_RUN_PATH
17676 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17677 hardcode_libdir_separator_CXX=:
17679 # Commands to make compiler produce verbose output that lists
17680 # what "hidden" libraries, object files and flags are used when
17681 # linking a shared library.
17683 # There doesn't appear to be a way to prevent this compiler from
17684 # explicitly linking system object files so we need to strip them
17685 # from the output so that they don't get included in the library
17687 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'
17689 xl* | mpixl* | bgxl*)
17690 # IBM XL 8.0 on PPC, with GNU ld
17691 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17692 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17693 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17694 if test "x$supports_anon_versioning" = xyes; then
17695 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17696 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17697 echo "local: *; };" >> $output_objdir/$libname.ver~
17698 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17702 case `$CC -V 2>&1 | sed 5q` in
17705 no_undefined_flag_CXX=' -zdefs'
17706 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17707 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'
17708 hardcode_libdir_flag_spec_CXX='-R$libdir'
17709 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'
17710 compiler_needs_object_CXX=yes
17712 # Not sure whether something based on
17713 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17715 output_verbose_link_cmd='func_echo_all'
17717 # Archives containing C++ object files must be created using
17718 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17719 # necessary to make sure instantiated templates are included
17721 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17729 # FIXME: insert proper C++ library support
17734 # FIXME: insert proper C++ library support
17739 case $cc_basename in
17741 # FIXME: insert proper C++ library support
17745 # FIXME: insert proper C++ library support
17752 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17753 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17755 hardcode_libdir_flag_spec_CXX='-R$libdir'
17756 hardcode_direct_CXX=yes
17757 hardcode_shlibpath_var_CXX=no
17759 # Workaround some broken pre-1.5 toolchains
17760 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17768 # C++ shared libraries are fairly broken
17773 if test -f /usr/libexec/ld.so; then
17774 hardcode_direct_CXX=yes
17775 hardcode_shlibpath_var_CXX=no
17776 hardcode_direct_absolute_CXX=yes
17777 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17778 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17779 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17780 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17781 export_dynamic_flag_spec_CXX='${wl}-E'
17782 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17784 output_verbose_link_cmd=func_echo_all
17790 osf3* | osf4* | osf5*)
17791 case $cc_basename in
17793 # Kuck and Associates, Inc. (KAI) C++ Compiler
17795 # KCC will only create a shared library if the output file
17796 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17797 # to its proper name (with version) after linking.
17798 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'
17800 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17801 hardcode_libdir_separator_CXX=:
17803 # Archives containing C++ object files must be created using
17804 # the KAI C++ compiler.
17806 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17807 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17811 # Rational C++ 2.4.1
17812 # FIXME: insert proper C++ library support
17818 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17819 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'
17820 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17823 allow_undefined_flag_CXX=' -expect_unresolved \*'
17824 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'
17825 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17826 echo "-hidden">> $lib.exp~
17827 $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~
17829 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17833 hardcode_libdir_separator_CXX=:
17835 # Commands to make compiler produce verbose output that lists
17836 # what "hidden" libraries, object files and flags are used when
17837 # linking a shared library.
17839 # There doesn't appear to be a way to prevent this compiler from
17840 # explicitly linking system object files so we need to strip them
17841 # from the output so that they don't get included in the library
17843 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"'
17846 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17847 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17850 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'
17853 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'
17857 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17858 hardcode_libdir_separator_CXX=:
17860 # Commands to make compiler produce verbose output that lists
17861 # what "hidden" libraries, object files and flags are used when
17862 # linking a shared library.
17863 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17866 # FIXME: insert proper C++ library support
17874 # FIXME: insert proper C++ library support
17879 case $cc_basename in
17882 # FIXME: insert proper C++ library support
17887 # FIXME: insert proper C++ library support
17891 # FIXME: insert proper C++ library support
17898 case $cc_basename in
17900 # Sun C++ 4.2, 5.x and Centerline C++
17901 archive_cmds_need_lc_CXX=yes
17902 no_undefined_flag_CXX=' -zdefs'
17903 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17904 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17905 $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'
17907 hardcode_libdir_flag_spec_CXX='-R$libdir'
17908 hardcode_shlibpath_var_CXX=no
17910 solaris2.[0-5] | solaris2.[0-5].*) ;;
17912 # The compiler driver will combine and reorder linker options,
17913 # but understands `-z linker_flag'.
17914 # Supported since Solaris 2.6 (maybe 2.5.1?)
17915 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17918 link_all_deplibs_CXX=yes
17920 output_verbose_link_cmd='func_echo_all'
17922 # Archives containing C++ object files must be created using
17923 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17924 # necessary to make sure instantiated templates are included
17926 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17929 # Green Hills C++ Compiler
17930 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17932 # The C++ compiler must be used to create the archive.
17933 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17936 # GNU C++ compiler with Solaris linker
17937 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17938 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17939 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17940 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17941 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17942 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17944 # Commands to make compiler produce verbose output that lists
17945 # what "hidden" libraries, object files and flags are used when
17946 # linking a shared library.
17947 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17949 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17951 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17952 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17953 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17955 # Commands to make compiler produce verbose output that lists
17956 # what "hidden" libraries, object files and flags are used when
17957 # linking a shared library.
17958 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17961 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17963 solaris2.[0-5] | solaris2.[0-5].*) ;;
17965 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17973 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17974 no_undefined_flag_CXX='${wl}-z,text'
17975 archive_cmds_need_lc_CXX=no
17976 hardcode_shlibpath_var_CXX=no
17977 runpath_var='LD_RUN_PATH'
17979 case $cc_basename in
17981 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17982 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17985 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17986 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17991 sysv5* | sco3.2v5* | sco5v6*)
17992 # Note: We can NOT use -z defs as we might desire, because we do not
17993 # link with -lc, and that would cause any symbols used from libc to
17994 # always be unresolved, which means just about no library would
17995 # ever link correctly. If we're not using GNU ld we use -z text
17996 # though, which does catch some bad symbols but isn't as heavy-handed
17998 no_undefined_flag_CXX='${wl}-z,text'
17999 allow_undefined_flag_CXX='${wl}-z,nodefs'
18000 archive_cmds_need_lc_CXX=no
18001 hardcode_shlibpath_var_CXX=no
18002 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18003 hardcode_libdir_separator_CXX=':'
18004 link_all_deplibs_CXX=yes
18005 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18006 runpath_var='LD_RUN_PATH'
18008 case $cc_basename in
18010 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18011 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18012 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18013 '"$old_archive_cmds_CXX"
18014 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18015 '"$reload_cmds_CXX"
18018 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18019 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18025 case $cc_basename in
18027 # NonStop-UX NCC 3.20
18028 # FIXME: insert proper C++ library support
18032 # FIXME: insert proper C++ library support
18039 # FIXME: insert proper C++ library support
18044 # FIXME: insert proper C++ library support
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18050 $as_echo "$ld_shlibs_CXX" >&6; }
18051 test "$ld_shlibs_CXX" = no && can_build_shared=no
18057 ## There is no encapsulation within the following macros, do not change
18058 ## the running order or otherwise move them around unless you know exactly
18059 ## what you are doing...
18060 # Dependencies to place before and after the object being linked:
18061 predep_objects_CXX=
18062 postdep_objects_CXX=
18065 compiler_lib_search_path_CXX=
18067 cat > conftest.$ac_ext <<_LT_EOF
18071 Foo (void) { a = 0; }
18078 _lt_libdeps_save_CFLAGS=$CFLAGS
18079 case "$CC $CFLAGS " in #(
18080 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18081 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
18084 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18085 (eval $ac_compile) 2>&5
18087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18088 test $ac_status = 0; }; then
18089 # Parse the compiler output and extract the necessary
18090 # objects, libraries and library flags.
18092 # Sentinel used to keep track of whether or not we are before
18093 # the conftest object file.
18094 pre_test_object_deps_done=no
18096 for p in `eval "$output_verbose_link_cmd"`; do
18097 case ${prev}${p} in
18100 # Some compilers place space between "-{L,R}" and the path.
18101 # Remove the space.
18102 if test $p = "-L" ||
18103 test $p = "-R"; then
18108 # Expand the sysroot to ease extracting the directories later.
18109 if test -z "$prev"; then
18111 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18112 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18113 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18117 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18119 if test "$pre_test_object_deps_done" = no; then
18122 # Internal compiler library paths should come after those
18123 # provided the user. The postdeps already come after the
18124 # user supplied libs so there is no need to process them.
18125 if test -z "$compiler_lib_search_path_CXX"; then
18126 compiler_lib_search_path_CXX="${prev}${p}"
18128 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18131 # The "-l" case would never come before the object being
18132 # linked, so don't bother handling this case.
18135 if test -z "$postdeps_CXX"; then
18136 postdeps_CXX="${prev}${p}"
18138 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18144 *.lto.$objext) ;; # Ignore GCC LTO objects
18146 # This assumes that the test object file only shows up
18147 # once in the compiler output.
18148 if test "$p" = "conftest.$objext"; then
18149 pre_test_object_deps_done=yes
18153 if test "$pre_test_object_deps_done" = no; then
18154 if test -z "$predep_objects_CXX"; then
18155 predep_objects_CXX="$p"
18157 predep_objects_CXX="$predep_objects_CXX $p"
18160 if test -z "$postdep_objects_CXX"; then
18161 postdep_objects_CXX="$p"
18163 postdep_objects_CXX="$postdep_objects_CXX $p"
18168 *) ;; # Ignore the rest.
18176 echo "libtool.m4: error: problem compiling CXX test program"
18179 $RM -f confest.$objext
18180 CFLAGS=$_lt_libdeps_save_CFLAGS
18182 # PORTME: override above test on systems where it is broken
18185 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18186 # hack all around it, let's just trust "g++" to DTRT.
18187 predep_objects_CXX=
18188 postdep_objects_CXX=
18193 case `$CC -V 2>&1 | sed 5q` in
18197 # The more standards-conforming stlport4 library is
18198 # incompatible with the Cstd library. Avoid specifying
18199 # it if it's in CXXFLAGS. Ignore libCrun as
18200 # -library=stlport4 depends on it.
18201 case " $CXX $CXXFLAGS " in
18202 *" -library=stlport4 "*)
18203 solaris_use_stlport4=yes
18207 if test "$solaris_use_stlport4" != yes; then
18208 postdeps_CXX='-library=Cstd -library=Crun'
18215 case $cc_basename in
18217 # The more standards-conforming stlport4 library is
18218 # incompatible with the Cstd library. Avoid specifying
18219 # it if it's in CXXFLAGS. Ignore libCrun as
18220 # -library=stlport4 depends on it.
18221 case " $CXX $CXXFLAGS " in
18222 *" -library=stlport4 "*)
18223 solaris_use_stlport4=yes
18227 # Adding this requires a known-good setup of shared libraries for
18228 # Sun compiler versions before 5.6, else PIC objects from an old
18229 # archive will be linked into the output, leading to subtle bugs.
18230 if test "$solaris_use_stlport4" != yes; then
18231 postdeps_CXX='-library=Cstd -library=Crun'
18239 case " $postdeps_CXX " in
18240 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18242 compiler_lib_search_dirs_CXX=
18243 if test -n "${compiler_lib_search_path_CXX}"; then
18244 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18277 lt_prog_compiler_wl_CXX=
18278 lt_prog_compiler_pic_CXX=
18279 lt_prog_compiler_static_CXX=
18282 # C++ specific cases for pic, static, wl, etc.
18283 if test "$GXX" = yes; then
18284 lt_prog_compiler_wl_CXX='-Wl,'
18285 lt_prog_compiler_static_CXX='-static'
18289 # All AIX code is PIC.
18290 if test "$host_cpu" = ia64; then
18291 # AIX 5 now supports IA64 processor
18292 lt_prog_compiler_static_CXX='-Bstatic'
18299 # see comment about AmigaOS4 .so support
18300 lt_prog_compiler_pic_CXX='-fPIC'
18303 # FIXME: we need at least 68020 code to build shared libraries, but
18304 # adding the `-m68020' flag to GCC prevents building anything better,
18306 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18311 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18312 # PIC is the default for these OSes.
18314 mingw* | cygwin* | os2* | pw32* | cegcc*)
18315 # This hack is so that the source file can tell whether it is being
18316 # built for inclusion in a dll (and should export symbols for example).
18317 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18318 # (--disable-auto-import) libraries
18319 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18321 darwin* | rhapsody*)
18322 # PIC is the default on this platform
18323 # Common symbols not allowed in MH_DYLIB files
18324 lt_prog_compiler_pic_CXX='-fno-common'
18327 # DJGPP does not support shared libraries at all
18328 lt_prog_compiler_pic_CXX=
18331 # PIC is the default for Haiku.
18332 # The "-static" flag exists, but is broken.
18333 lt_prog_compiler_static_CXX=
18336 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18337 # Instead, we relocate shared libraries at runtime.
18340 if test -d /usr/nec; then
18341 lt_prog_compiler_pic_CXX=-Kconform_pic
18345 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18346 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18347 # sets the default TLS model and affects inlining.
18352 lt_prog_compiler_pic_CXX='-fPIC'
18357 # QNX uses GNU C++, but need to define -shared option too, otherwise
18358 # it will coredump.
18359 lt_prog_compiler_pic_CXX='-fPIC -shared'
18362 lt_prog_compiler_pic_CXX='-fPIC'
18368 # All AIX code is PIC.
18369 if test "$host_cpu" = ia64; then
18370 # AIX 5 now supports IA64 processor
18371 lt_prog_compiler_static_CXX='-Bstatic'
18373 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18377 case $cc_basename in
18379 # Green Hills C++ Compiler
18380 # _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"
18384 mingw* | cygwin* | os2* | pw32* | cegcc*)
18385 # This hack is so that the source file can tell whether it is being
18386 # built for inclusion in a dll (and should export symbols for example).
18387 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18390 case $cc_basename in
18392 lt_prog_compiler_pic_CXX='-KPIC'
18395 # Green Hills C++ Compiler
18396 lt_prog_compiler_pic_CXX='-pic'
18402 freebsd* | dragonfly*)
18403 # FreeBSD uses GNU C++
18405 hpux9* | hpux10* | hpux11*)
18406 case $cc_basename in
18408 lt_prog_compiler_wl_CXX='-Wl,'
18409 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18410 if test "$host_cpu" != ia64; then
18411 lt_prog_compiler_pic_CXX='+Z'
18415 lt_prog_compiler_wl_CXX='-Wl,'
18416 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18422 lt_prog_compiler_pic_CXX='+Z'
18431 # This is c89, which is MS Visual C++ (no shared libs)
18432 # Anyone wants to do a port?
18434 irix5* | irix6* | nonstopux*)
18435 case $cc_basename in
18437 lt_prog_compiler_wl_CXX='-Wl,'
18438 lt_prog_compiler_static_CXX='-non_shared'
18439 # CC pic flag -KPIC is the default.
18445 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18446 case $cc_basename in
18449 lt_prog_compiler_wl_CXX='--backend -Wl,'
18450 lt_prog_compiler_pic_CXX='-fPIC'
18453 # old Intel C++ for x86_64 which still supported -KPIC.
18454 lt_prog_compiler_wl_CXX='-Wl,'
18455 lt_prog_compiler_pic_CXX='-KPIC'
18456 lt_prog_compiler_static_CXX='-static'
18459 # Intel C++, used to be incompatible with GCC.
18460 # ICC 10 doesn't accept -KPIC any more.
18461 lt_prog_compiler_wl_CXX='-Wl,'
18462 lt_prog_compiler_pic_CXX='-fPIC'
18463 lt_prog_compiler_static_CXX='-static'
18466 # Portland Group C++ compiler
18467 lt_prog_compiler_wl_CXX='-Wl,'
18468 lt_prog_compiler_pic_CXX='-fpic'
18469 lt_prog_compiler_static_CXX='-Bstatic'
18473 # Make sure the PIC flag is empty. It appears that all Alpha
18474 # Linux and Compaq Tru64 Unix objects are PIC.
18475 lt_prog_compiler_pic_CXX=
18476 lt_prog_compiler_static_CXX='-non_shared'
18478 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18479 # IBM XL 8.0, 9.0 on PPC and BlueGene
18480 lt_prog_compiler_wl_CXX='-Wl,'
18481 lt_prog_compiler_pic_CXX='-qpic'
18482 lt_prog_compiler_static_CXX='-qstaticlink'
18485 case `$CC -V 2>&1 | sed 5q` in
18488 lt_prog_compiler_pic_CXX='-KPIC'
18489 lt_prog_compiler_static_CXX='-Bstatic'
18490 lt_prog_compiler_wl_CXX='-Qoption ld '
18501 case $cc_basename in
18503 lt_prog_compiler_pic_CXX='-W c,exportall'
18512 # QNX uses GNU C++, but need to define -shared option too, otherwise
18513 # it will coredump.
18514 lt_prog_compiler_pic_CXX='-fPIC -shared'
18516 osf3* | osf4* | osf5*)
18517 case $cc_basename in
18519 lt_prog_compiler_wl_CXX='--backend -Wl,'
18522 # Rational C++ 2.4.1
18523 lt_prog_compiler_pic_CXX='-pic'
18526 # Digital/Compaq C++
18527 lt_prog_compiler_wl_CXX='-Wl,'
18528 # Make sure the PIC flag is empty. It appears that all Alpha
18529 # Linux and Compaq Tru64 Unix objects are PIC.
18530 lt_prog_compiler_pic_CXX=
18531 lt_prog_compiler_static_CXX='-non_shared'
18540 case $cc_basename in
18542 # Sun C++ 4.2, 5.x and Centerline C++
18543 lt_prog_compiler_pic_CXX='-KPIC'
18544 lt_prog_compiler_static_CXX='-Bstatic'
18545 lt_prog_compiler_wl_CXX='-Qoption ld '
18548 # Green Hills C++ Compiler
18549 lt_prog_compiler_pic_CXX='-PIC'
18556 case $cc_basename in
18559 lt_prog_compiler_pic_CXX='-pic'
18560 lt_prog_compiler_static_CXX='-Bstatic'
18564 lt_prog_compiler_pic_CXX='-pic'
18570 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18571 case $cc_basename in
18573 lt_prog_compiler_wl_CXX='-Wl,'
18574 lt_prog_compiler_pic_CXX='-KPIC'
18575 lt_prog_compiler_static_CXX='-Bstatic'
18580 case $cc_basename in
18582 # NonStop-UX NCC 3.20
18583 lt_prog_compiler_pic_CXX='-KPIC'
18592 lt_prog_compiler_can_build_shared_CXX=no
18598 # For platforms which do not support PIC, -DPIC is meaningless:
18600 lt_prog_compiler_pic_CXX=
18603 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18608 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18609 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18610 $as_echo_n "(cached) " >&6
18612 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18615 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18616 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18619 # Check to make sure the PIC flag actually works.
18621 if test -n "$lt_prog_compiler_pic_CXX"; then
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18623 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18624 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
18625 $as_echo_n "(cached) " >&6
18627 lt_cv_prog_compiler_pic_works_CXX=no
18628 ac_outfile=conftest.$ac_objext
18629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18630 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18631 # Insert the option either (1) after the last *FLAGS variable, or
18632 # (2) before a word containing "conftest.", or (3) at the end.
18633 # Note that $ac_compile itself does not contain backslashes and begins
18634 # with a dollar sign (not a hyphen), so the echo should work correctly.
18635 # The option is referenced via a variable to avoid confusing sed.
18636 lt_compile=`echo "$ac_compile" | $SED \
18637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18639 -e 's:$: $lt_compiler_flag:'`
18640 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18641 (eval "$lt_compile" 2>conftest.err)
18643 cat conftest.err >&5
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 if (exit $ac_status) && test -s "$ac_outfile"; then
18646 # The compiler can only warn and ignore the option if not recognized
18647 # So say no if there are warnings other than the usual output.
18648 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18649 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18650 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18651 lt_cv_prog_compiler_pic_works_CXX=yes
18657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18658 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18660 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18661 case $lt_prog_compiler_pic_CXX in
18663 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18666 lt_prog_compiler_pic_CXX=
18667 lt_prog_compiler_can_build_shared_CXX=no
18677 # Check to make sure the static flag actually works.
18679 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18681 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18682 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
18683 $as_echo_n "(cached) " >&6
18685 lt_cv_prog_compiler_static_works_CXX=no
18686 save_LDFLAGS="$LDFLAGS"
18687 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18688 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18689 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18690 # The linker can only warn and ignore the option if not recognized
18691 # So say no if there are warnings
18692 if test -s conftest.err; then
18693 # Append any errors to the config.log.
18694 cat conftest.err 1>&5
18695 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18696 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18697 if diff conftest.exp conftest.er2 >/dev/null; then
18698 lt_cv_prog_compiler_static_works_CXX=yes
18701 lt_cv_prog_compiler_static_works_CXX=yes
18705 LDFLAGS="$save_LDFLAGS"
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18709 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18711 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18714 lt_prog_compiler_static_CXX=
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18721 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18722 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18723 $as_echo_n "(cached) " >&6
18725 lt_cv_prog_compiler_c_o_CXX=no
18726 $RM -r conftest 2>/dev/null
18730 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18732 lt_compiler_flag="-o out/conftest2.$ac_objext"
18733 # Insert the option either (1) after the last *FLAGS variable, or
18734 # (2) before a word containing "conftest.", or (3) at the end.
18735 # Note that $ac_compile itself does not contain backslashes and begins
18736 # with a dollar sign (not a hyphen), so the echo should work correctly.
18737 lt_compile=`echo "$ac_compile" | $SED \
18738 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18739 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18740 -e 's:$: $lt_compiler_flag:'`
18741 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18742 (eval "$lt_compile" 2>out/conftest.err)
18744 cat out/conftest.err >&5
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18748 # The compiler can only warn and ignore the option if not recognized
18749 # So say no if there are warnings
18750 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18751 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18752 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18753 lt_cv_prog_compiler_c_o_CXX=yes
18758 # SGI C++ compiler will create directory out/ii_files/ for
18759 # template instantiation
18760 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18761 $RM out/* && rmdir out
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18768 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18773 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18774 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18775 $as_echo_n "(cached) " >&6
18777 lt_cv_prog_compiler_c_o_CXX=no
18778 $RM -r conftest 2>/dev/null
18782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18784 lt_compiler_flag="-o out/conftest2.$ac_objext"
18785 # Insert the option either (1) after the last *FLAGS variable, or
18786 # (2) before a word containing "conftest.", or (3) at the end.
18787 # Note that $ac_compile itself does not contain backslashes and begins
18788 # with a dollar sign (not a hyphen), so the echo should work correctly.
18789 lt_compile=`echo "$ac_compile" | $SED \
18790 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18791 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18792 -e 's:$: $lt_compiler_flag:'`
18793 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18794 (eval "$lt_compile" 2>out/conftest.err)
18796 cat out/conftest.err >&5
18797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18798 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18800 # The compiler can only warn and ignore the option if not recognized
18801 # So say no if there are warnings
18802 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18803 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18804 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18805 lt_cv_prog_compiler_c_o_CXX=yes
18810 # SGI C++ compiler will create directory out/ii_files/ for
18811 # template instantiation
18812 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18813 $RM out/* && rmdir out
18819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18820 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18825 hard_links="nottested"
18826 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18827 # do not overwrite the value of need_locks provided by the user
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18829 $as_echo_n "checking if we can lock with hard links... " >&6; }
18832 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18834 ln conftest.a conftest.b 2>&5 || hard_links=no
18835 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18837 $as_echo "$hard_links" >&6; }
18838 if test "$hard_links" = no; then
18839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18840 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18850 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18852 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18853 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18856 # If we're using GNU nm, then we don't want the "-C" option.
18857 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18858 # Also, AIX nm treats weak defined symbols like other global defined
18859 # symbols, whereas GNU nm marks them as "W".
18860 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18861 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'
18863 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'
18867 export_symbols_cmds_CXX="$ltdll_cmds"
18869 cygwin* | mingw* | cegcc*)
18870 case $cc_basename in
18873 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'
18874 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18879 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18884 $as_echo "$ld_shlibs_CXX" >&6; }
18885 test "$ld_shlibs_CXX" = no && can_build_shared=no
18887 with_gnu_ld_CXX=$with_gnu_ld
18895 # Do we need to explicitly link libc?
18897 case "x$archive_cmds_need_lc_CXX" in
18899 # Assume -lc should be added
18900 archive_cmds_need_lc_CXX=yes
18902 if test "$enable_shared" = yes && test "$GCC" = yes; then
18903 case $archive_cmds_CXX in
18905 # FIXME: we may have to deal with multi-command sequences.
18908 # Test whether the compiler implicitly links with -lc since on some
18909 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18910 # to ld, don't add -lc before -lgcc.
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18912 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18913 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
18914 $as_echo_n "(cached) " >&6
18917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18919 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18920 (eval $ac_compile) 2>&5
18922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18923 test $ac_status = 0; } 2>conftest.err; then
18926 libobjs=conftest.$ac_objext
18928 wl=$lt_prog_compiler_wl_CXX
18929 pic_flag=$lt_prog_compiler_pic_CXX
18935 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18936 allow_undefined_flag_CXX=
18937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18938 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18941 test $ac_status = 0; }
18943 lt_cv_archive_cmds_need_lc_CXX=no
18945 lt_cv_archive_cmds_need_lc_CXX=yes
18947 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18949 cat conftest.err 1>&5
18954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18955 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18956 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19027 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19029 library_names_spec=
19030 libname_spec='lib$name'
19034 postuninstall_cmds=
19038 shlibpath_overrides_runpath=unknown
19040 dynamic_linker="$host_os ld.so"
19041 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19042 need_lib_prefix=unknown
19043 hardcode_into_libs=no
19045 # when you set need_version to no, make sure it does not cause -set_version
19046 # flags to be left without arguments
19047 need_version=unknown
19052 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19053 shlibpath_var=LIBPATH
19055 # AIX 3 has no versioning support, so we append a major version to the name.
19056 soname_spec='${libname}${release}${shared_ext}$major'
19063 hardcode_into_libs=yes
19064 if test "$host_cpu" = ia64; then
19065 # AIX 5 supports IA64
19066 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19067 shlibpath_var=LD_LIBRARY_PATH
19069 # With GCC up to 2.95.x, collect2 would create an import file
19070 # for dependence libraries. The import file would start with
19071 # the line `#! .'. This would cause the generated library to
19072 # depend on `.', always an invalid library. This was fixed in
19073 # development snapshots of GCC prior to 3.0.
19075 aix4 | aix4.[01] | aix4.[01].*)
19076 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19078 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19081 can_build_shared=no
19085 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19086 # soname into executable. Probably we can add versioning support to
19087 # collect2, so additional links can be useful in future.
19088 if test "$aix_use_runtimelinking" = yes; then
19089 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19090 # instead of lib<name>.a to let people know that these are not
19091 # typical AIX shared libraries.
19092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19094 # We preserve .a as extension for shared libraries through AIX4.2
19095 # and later when we are not doing run time linking.
19096 library_names_spec='${libname}${release}.a $libname.a'
19097 soname_spec='${libname}${release}${shared_ext}$major'
19099 shlibpath_var=LIBPATH
19106 # Since July 2007 AmigaOS4 officially supports .so libraries.
19107 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19111 library_names_spec='$libname.ixlibrary $libname.a'
19112 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19113 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'
19119 library_names_spec='${libname}${shared_ext}'
19120 dynamic_linker="$host_os ld.so"
19121 shlibpath_var=LIBRARY_PATH
19127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19128 soname_spec='${libname}${release}${shared_ext}$major'
19129 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19130 shlibpath_var=LD_LIBRARY_PATH
19131 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19132 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19133 # the default ld.so.conf also contains /usr/contrib/lib and
19134 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19135 # libtool to hard-code these into programs
19138 cygwin* | mingw* | pw32* | cegcc*)
19139 version_type=windows
19144 case $GCC,$cc_basename in
19147 library_names_spec='$libname.dll.a'
19148 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19149 postinstall_cmds='base_file=`basename \${file}`~
19150 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19151 dldir=$destdir/`dirname \$dlpath`~
19152 test -d \$dldir || mkdir -p \$dldir~
19153 $install_prog $dir/$dlname \$dldir/$dlname~
19154 chmod a+x \$dldir/$dlname~
19155 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19156 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19158 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19159 dlpath=$dir/\$dldll~
19161 shlibpath_overrides_runpath=yes
19165 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19166 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19170 # MinGW DLLs use traditional 'lib' prefix
19171 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19174 # pw32 DLLs use 'pw' prefix rather than 'lib'
19175 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19178 dynamic_linker='Win32 ld.exe'
19183 libname_spec='$name'
19184 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19185 library_names_spec='${libname}.dll.lib'
19189 sys_lib_search_path_spec=
19192 for lt_path in $LIB
19195 # Let DOS variable expansion print the short 8.3 style file name.
19196 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19197 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19200 # Convert to MSYS style.
19201 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19204 # Convert to unix form, then to dos form, then back to unix form
19205 # but this time dos style (no spaces!) so that the unix form looks
19206 # like /cygdrive/c/PROGRA~1:/cygdr...
19207 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19208 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19209 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19212 sys_lib_search_path_spec="$LIB"
19213 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19214 # It is most probably a Windows format PATH.
19215 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19217 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19219 # FIXME: find the short name or the path components, as spaces are
19220 # common. (e.g. "Program Files" -> "PROGRA~1")
19224 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19225 postinstall_cmds='base_file=`basename \${file}`~
19226 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19227 dldir=$destdir/`dirname \$dlpath`~
19228 test -d \$dldir || mkdir -p \$dldir~
19229 $install_prog $dir/$dlname \$dldir/$dlname'
19230 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19231 dlpath=$dir/\$dldll~
19233 shlibpath_overrides_runpath=yes
19234 dynamic_linker='Win32 link.exe'
19238 # Assume MSVC wrapper
19239 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19240 dynamic_linker='Win32 ld.exe'
19243 # FIXME: first we should search . and the directory the executable is in
19247 darwin* | rhapsody*)
19248 dynamic_linker="$host_os dyld"
19249 version_type=darwin
19252 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19253 soname_spec='${libname}${release}${major}$shared_ext'
19254 shlibpath_overrides_runpath=yes
19255 shlibpath_var=DYLD_LIBRARY_PATH
19256 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19258 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19266 soname_spec='${libname}${release}${shared_ext}$major'
19267 shlibpath_var=LD_LIBRARY_PATH
19274 freebsd* | dragonfly*)
19275 # DragonFly does not have aout. When/if they implement a new
19276 # versioning mechanism, adjust this.
19277 if test -x /usr/bin/objformat; then
19278 objformat=`/usr/bin/objformat`
19281 freebsd[123]*) objformat=aout ;;
19282 *) objformat=elf ;;
19285 version_type=freebsd-$objformat
19286 case $version_type in
19288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19293 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19297 shlibpath_var=LD_LIBRARY_PATH
19300 shlibpath_overrides_runpath=yes
19302 freebsd3.[01]* | freebsdelf3.[01]*)
19303 shlibpath_overrides_runpath=yes
19304 hardcode_into_libs=yes
19306 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19307 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19308 shlibpath_overrides_runpath=no
19309 hardcode_into_libs=yes
19311 *) # from 4.6 on, and DragonFly
19312 shlibpath_overrides_runpath=yes
19313 hardcode_into_libs=yes
19322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19323 soname_spec='${libname}${release}${shared_ext}$major'
19324 shlibpath_var=LD_LIBRARY_PATH
19325 hardcode_into_libs=yes
19332 dynamic_linker="$host_os runtime_loader"
19333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19334 soname_spec='${libname}${release}${shared_ext}$major'
19335 shlibpath_var=LIBRARY_PATH
19336 shlibpath_overrides_runpath=yes
19337 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19338 hardcode_into_libs=yes
19341 hpux9* | hpux10* | hpux11*)
19342 # Give a soname corresponding to the major version so that dld.sl refuses to
19343 # link against other versions.
19350 hardcode_into_libs=yes
19351 dynamic_linker="$host_os dld.so"
19352 shlibpath_var=LD_LIBRARY_PATH
19353 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19355 soname_spec='${libname}${release}${shared_ext}$major'
19356 if test "X$HPUX_IA64_MODE" = X32; then
19357 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19359 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19361 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19365 hardcode_into_libs=yes
19366 dynamic_linker="$host_os dld.sl"
19367 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19368 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19370 soname_spec='${libname}${release}${shared_ext}$major'
19371 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19372 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19376 dynamic_linker="$host_os dld.sl"
19377 shlibpath_var=SHLIB_PATH
19378 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19380 soname_spec='${libname}${release}${shared_ext}$major'
19383 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19384 postinstall_cmds='chmod 555 $lib'
19385 # or fails outright, so override atomically:
19386 install_override_mode=555
19393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19394 soname_spec='${libname}${release}${shared_ext}$major'
19395 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19396 shlibpath_var=LD_LIBRARY_PATH
19397 shlibpath_overrides_runpath=no
19398 hardcode_into_libs=yes
19401 irix5* | irix6* | nonstopux*)
19403 nonstopux*) version_type=nonstopux ;;
19405 if test "$lt_cv_prog_gnu_ld" = yes; then
19413 soname_spec='${libname}${release}${shared_ext}$major'
19414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19416 irix5* | nonstopux*)
19417 libsuff= shlibsuff=
19420 case $LD in # libtool.m4 will add one of these switches to LD
19421 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19422 libsuff= shlibsuff= libmagic=32-bit;;
19423 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19424 libsuff=32 shlibsuff=N32 libmagic=N32;;
19425 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19426 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19427 *) libsuff= shlibsuff= libmagic=never-match;;
19431 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19432 shlibpath_overrides_runpath=no
19433 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19434 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19435 hardcode_into_libs=yes
19438 # No shared lib support for Linux oldld, aout, or coff.
19439 linux*oldld* | linux*aout* | linux*coff*)
19443 # This must be Linux ELF.
19444 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19449 soname_spec='${libname}${release}${shared_ext}$major'
19450 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19451 shlibpath_var=LD_LIBRARY_PATH
19452 shlibpath_overrides_runpath=no
19454 # Some binutils ld are patched to set DT_RUNPATH
19455 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19456 $as_echo_n "(cached) " >&6
19458 lt_cv_shlibpath_overrides_runpath=no
19459 save_LDFLAGS=$LDFLAGS
19460 save_libdir=$libdir
19461 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19462 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19464 /* end confdefs.h. */
19474 if ac_fn_cxx_try_link "$LINENO"; then :
19475 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19476 lt_cv_shlibpath_overrides_runpath=yes
19479 rm -f core conftest.err conftest.$ac_objext \
19480 conftest$ac_exeext conftest.$ac_ext
19481 LDFLAGS=$save_LDFLAGS
19482 libdir=$save_libdir
19486 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19488 # This implies no fast_install, which is unacceptable.
19489 # Some rework will be needed to allow for fast_install
19490 # before this can be enabled.
19491 hardcode_into_libs=yes
19493 # Add ABI-specific directories to the system library path.
19494 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19496 # Append ld.so.conf contents to the search path
19497 if test -f /etc/ld.so.conf; then
19498 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' ' '`
19499 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19503 # We used to test for /lib/ld.so.1 and disable shared libraries on
19504 # powerpc, because MkLinux only supported shared libraries with the
19505 # GNU dynamic linker. Since this was broken with cross compilers,
19506 # most powerpc-linux boxes support dynamic linking these days and
19507 # people can always --disable-shared, the test was removed, and we
19508 # assume the GNU/Linux dynamic linker is in use.
19509 dynamic_linker='GNU/Linux ld.so'
19516 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19519 dynamic_linker='NetBSD (a.out) ld.so'
19521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19522 soname_spec='${libname}${release}${shared_ext}$major'
19523 dynamic_linker='NetBSD ld.elf_so'
19525 shlibpath_var=LD_LIBRARY_PATH
19526 shlibpath_overrides_runpath=yes
19527 hardcode_into_libs=yes
19532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19533 shlibpath_var=LD_LIBRARY_PATH
19534 shlibpath_overrides_runpath=yes
19541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19542 soname_spec='${libname}${release}${shared_ext}$major'
19543 shlibpath_var=LD_LIBRARY_PATH
19544 shlibpath_overrides_runpath=no
19545 hardcode_into_libs=yes
19546 dynamic_linker='ldqnx.so'
19551 sys_lib_dlsearch_path_spec="/usr/lib"
19553 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19555 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19556 *) need_version=no ;;
19558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19559 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19560 shlibpath_var=LD_LIBRARY_PATH
19561 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19563 openbsd2.[89] | openbsd2.[89].*)
19564 shlibpath_overrides_runpath=no
19567 shlibpath_overrides_runpath=yes
19571 shlibpath_overrides_runpath=yes
19576 libname_spec='$name'
19579 library_names_spec='$libname${shared_ext} $libname.a'
19580 dynamic_linker='OS/2 ld.exe'
19581 shlibpath_var=LIBPATH
19584 osf3* | osf4* | osf5*)
19588 soname_spec='${libname}${release}${shared_ext}$major'
19589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19590 shlibpath_var=LD_LIBRARY_PATH
19591 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19592 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19604 soname_spec='${libname}${release}${shared_ext}$major'
19605 shlibpath_var=LD_LIBRARY_PATH
19606 shlibpath_overrides_runpath=yes
19607 hardcode_into_libs=yes
19608 # ldd complains unless libraries are executable
19609 postinstall_cmds='chmod +x $lib'
19614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19615 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19616 shlibpath_var=LD_LIBRARY_PATH
19617 shlibpath_overrides_runpath=yes
19618 if test "$with_gnu_ld" = yes; then
19626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19627 soname_spec='${libname}${release}${shared_ext}$major'
19628 shlibpath_var=LD_LIBRARY_PATH
19629 case $host_vendor in
19631 shlibpath_overrides_runpath=no
19633 runpath_var=LD_RUN_PATH
19641 shlibpath_overrides_runpath=no
19642 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19648 if test -d /usr/nec ;then
19650 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19651 soname_spec='$libname${shared_ext}.$major'
19652 shlibpath_var=LD_LIBRARY_PATH
19656 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19657 version_type=freebsd-elf
19660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19661 soname_spec='${libname}${release}${shared_ext}$major'
19662 shlibpath_var=LD_LIBRARY_PATH
19663 shlibpath_overrides_runpath=yes
19664 hardcode_into_libs=yes
19665 if test "$with_gnu_ld" = yes; then
19666 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19668 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19671 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19675 sys_lib_dlsearch_path_spec='/usr/lib'
19679 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19684 shlibpath_var=LD_LIBRARY_PATH
19685 shlibpath_overrides_runpath=no
19686 hardcode_into_libs=yes
19691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19692 soname_spec='${libname}${release}${shared_ext}$major'
19693 shlibpath_var=LD_LIBRARY_PATH
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19701 $as_echo "$dynamic_linker" >&6; }
19702 test "$dynamic_linker" = no && can_build_shared=no
19704 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19705 if test "$GCC" = yes; then
19706 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19709 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19710 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19712 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19713 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19754 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19755 hardcode_action_CXX=
19756 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19757 test -n "$runpath_var_CXX" ||
19758 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19760 # We can hardcode non-existent directories.
19761 if test "$hardcode_direct_CXX" != no &&
19762 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19763 # have to relink, otherwise we might link with an installed library
19764 # when we should be linking with a yet-to-be-installed one
19765 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19766 test "$hardcode_minus_L_CXX" != no; then
19767 # Linking always hardcodes the temporary library directory.
19768 hardcode_action_CXX=relink
19770 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19771 hardcode_action_CXX=immediate
19774 # We cannot hardcode anything, or else we can only hardcode existing
19776 hardcode_action_CXX=unsupported
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19779 $as_echo "$hardcode_action_CXX" >&6; }
19781 if test "$hardcode_action_CXX" = relink ||
19782 test "$inherit_rpath_CXX" = yes; then
19783 # Fast installation is not supported
19784 enable_fast_install=no
19785 elif test "$shlibpath_overrides_runpath" = yes ||
19786 test "$enable_shared" = no; then
19787 # Fast installation is not necessary
19788 enable_fast_install=needless
19797 fi # test -n "$compiler"
19800 CFLAGS=$lt_save_CFLAGS
19804 with_gnu_ld=$lt_save_with_gnu_ld
19805 lt_cv_path_LDCXX=$lt_cv_path_LD
19806 lt_cv_path_LD=$lt_save_path_LD
19807 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19808 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19809 fi # test "$_lt_caught_CXX_error" != yes
19812 ac_cpp='$CPP $CPPFLAGS'
19813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19829 ac_config_commands="$ac_config_commands libtool"
19834 # Only expand once:
19840 # Configure libltdl
19848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19849 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
19850 if ${libltdl_cv_shlibext+:} false; then :
19851 $as_echo_n "(cached) " >&6
19855 eval libltdl_cv_shlibext=$shrext_cmds
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19859 $as_echo "$libltdl_cv_shlibext" >&6; }
19860 if test -n "$libltdl_cv_shlibext"; then
19862 cat >>confdefs.h <<_ACEOF
19863 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
19868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19869 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
19870 if ${lt_cv_module_path_var+:} false; then :
19871 $as_echo_n "(cached) " >&6
19873 lt_cv_module_path_var="$shlibpath_var"
19875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19876 $as_echo "$lt_cv_module_path_var" >&6; }
19877 if test -n "$lt_cv_module_path_var"; then
19879 cat >>confdefs.h <<_ACEOF
19880 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19886 $as_echo_n "checking for the default library search path... " >&6; }
19887 if ${lt_cv_sys_dlsearch_path+:} false; then :
19888 $as_echo_n "(cached) " >&6
19890 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19893 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19894 if test -n "$lt_cv_sys_dlsearch_path"; then
19896 for dir in $lt_cv_sys_dlsearch_path; do
19897 if test -z "$sys_dlsearch_path"; then
19898 sys_dlsearch_path="$dir"
19900 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19904 cat >>confdefs.h <<_ACEOF
19905 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19915 ac_cpp='$CPP $CPPFLAGS'
19916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19923 $as_echo_n "checking for library containing dlopen... " >&6; }
19924 if ${ac_cv_search_dlopen+:} false; then :
19925 $as_echo_n "(cached) " >&6
19927 ac_func_search_save_LIBS=$LIBS
19928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19929 /* end confdefs.h. */
19931 /* Override any GCC internal prototype to avoid an error.
19932 Use char because int might match the return type of a GCC
19933 builtin and then its argument prototype would still apply. */
19946 for ac_lib in '' dl; do
19947 if test -z "$ac_lib"; then
19948 ac_res="none required"
19951 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19953 if ac_fn_c_try_link "$LINENO"; then :
19954 ac_cv_search_dlopen=$ac_res
19956 rm -f core conftest.err conftest.$ac_objext \
19958 if ${ac_cv_search_dlopen+:} false; then :
19962 if ${ac_cv_search_dlopen+:} false; then :
19965 ac_cv_search_dlopen=no
19967 rm conftest.$ac_ext
19968 LIBS=$ac_func_search_save_LIBS
19970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19971 $as_echo "$ac_cv_search_dlopen" >&6; }
19972 ac_res=$ac_cv_search_dlopen
19973 if test "$ac_res" != no; then :
19974 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19976 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19978 if test "$ac_cv_search_dlopen" != "none required" ; then
19979 LIBADD_DLOPEN="-ldl"
19981 libltdl_cv_lib_dl_dlopen="yes"
19982 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19985 /* end confdefs.h. */
19987 # include <dlfcn.h>
19998 if ac_fn_c_try_link "$LINENO"; then :
20000 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20002 libltdl_cv_func_dlopen="yes"
20003 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20006 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
20007 if ${ac_cv_lib_svld_dlopen+:} false; then :
20008 $as_echo_n "(cached) " >&6
20010 ac_check_lib_save_LIBS=$LIBS
20011 LIBS="-lsvld $LIBS"
20012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20013 /* end confdefs.h. */
20015 /* Override any GCC internal prototype to avoid an error.
20016 Use char because int might match the return type of a GCC
20017 builtin and then its argument prototype would still apply. */
20030 if ac_fn_c_try_link "$LINENO"; then :
20031 ac_cv_lib_svld_dlopen=yes
20033 ac_cv_lib_svld_dlopen=no
20035 rm -f core conftest.err conftest.$ac_objext \
20036 conftest$ac_exeext conftest.$ac_ext
20037 LIBS=$ac_check_lib_save_LIBS
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20040 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
20041 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
20043 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20045 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20046 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20050 rm -f core conftest.err conftest.$ac_objext \
20051 conftest$ac_exeext conftest.$ac_ext
20054 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20056 lt_save_LIBS="$LIBS"
20057 LIBS="$LIBS $LIBADD_DLOPEN"
20058 for ac_func in dlerror
20060 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
20061 if test "x$ac_cv_func_dlerror" = xyes; then :
20062 cat >>confdefs.h <<_ACEOF
20063 #define HAVE_DLERROR 1
20069 LIBS="$lt_save_LIBS"
20074 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
20075 if test "x$ac_cv_func_shl_load" = xyes; then :
20077 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20079 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20082 $as_echo_n "checking for shl_load in -ldld... " >&6; }
20083 if ${ac_cv_lib_dld_shl_load+:} false; then :
20084 $as_echo_n "(cached) " >&6
20086 ac_check_lib_save_LIBS=$LIBS
20088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20089 /* end confdefs.h. */
20091 /* Override any GCC internal prototype to avoid an error.
20092 Use char because int might match the return type of a GCC
20093 builtin and then its argument prototype would still apply. */
20101 return shl_load ();
20106 if ac_fn_c_try_link "$LINENO"; then :
20107 ac_cv_lib_dld_shl_load=yes
20109 ac_cv_lib_dld_shl_load=no
20111 rm -f core conftest.err conftest.$ac_objext \
20112 conftest$ac_exeext conftest.$ac_ext
20113 LIBS=$ac_check_lib_save_LIBS
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20116 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
20117 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
20119 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20121 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20122 LIBADD_SHL_LOAD="-ldld"
20131 # We only want this for pre-Mac OS X 10.4.
20132 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
20133 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
20135 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
20137 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20142 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20144 cygwin* | mingw* | os2* | pw32*)
20145 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20147 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
20153 cat >>confdefs.h <<_ACEOF
20154 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20157 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20162 $as_echo_n "checking for dld_link in -ldld... " >&6; }
20163 if ${ac_cv_lib_dld_dld_link+:} false; then :
20164 $as_echo_n "(cached) " >&6
20166 ac_check_lib_save_LIBS=$LIBS
20168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20169 /* end confdefs.h. */
20171 /* Override any GCC internal prototype to avoid an error.
20172 Use char because int might match the return type of a GCC
20173 builtin and then its argument prototype would still apply. */
20181 return dld_link ();
20186 if ac_fn_c_try_link "$LINENO"; then :
20187 ac_cv_lib_dld_dld_link=yes
20189 ac_cv_lib_dld_dld_link=no
20191 rm -f core conftest.err conftest.$ac_objext \
20192 conftest$ac_exeext conftest.$ac_ext
20193 LIBS=$ac_check_lib_save_LIBS
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20196 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
20197 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
20199 $as_echo "#define HAVE_DLD 1" >>confdefs.h
20201 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20208 if test -n "$LT_DLLOADERS"
20210 for lt_loader in $LT_DLLOADERS; do
20211 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20214 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20219 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20223 ac_cpp='$CPP $CPPFLAGS'
20224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20230 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
20231 if ${lt_cv_sys_symbol_underscore+:} false; then :
20232 $as_echo_n "(cached) " >&6
20234 lt_cv_sys_symbol_underscore=no
20235 cat > conftest.$ac_ext <<_LT_EOF
20236 void nm_test_func(){}
20237 int main(){nm_test_func;return 0;}
20239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20240 (eval $ac_compile) 2>&5
20242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20243 test $ac_status = 0; }; then
20244 # Now try to grab the symbols.
20245 ac_nlist=conftest.nm
20246 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20247 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20250 test $ac_status = 0; } && test -s "$ac_nlist"; then
20251 # See whether the symbols have a leading underscore.
20252 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20253 lt_cv_sys_symbol_underscore=yes
20255 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20258 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20262 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20265 echo "configure: failed program was:" >&5
20271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20272 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20273 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20276 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20277 if test x"$libltdl_cv_func_dlopen" = xyes ||
20278 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20280 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
20281 if ${libltdl_cv_need_uscore+:} false; then :
20282 $as_echo_n "(cached) " >&6
20284 libltdl_cv_need_uscore=unknown
20286 LIBS="$LIBS $LIBADD_DLOPEN"
20287 if test "$cross_compiling" = yes; then :
20288 libltdl_cv_need_uscore=cross
20290 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20291 lt_status=$lt_dlunknown
20292 cat > conftest.$ac_ext <<_LT_EOF
20293 #line $LINENO "configure"
20294 #include "confdefs.h"
20303 # define LT_DLGLOBAL RTLD_GLOBAL
20306 # define LT_DLGLOBAL DL_GLOBAL
20308 # define LT_DLGLOBAL 0
20312 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20313 find out it does not work in some platform. */
20314 #ifndef LT_DLLAZY_OR_NOW
20316 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20319 # define LT_DLLAZY_OR_NOW DL_LAZY
20322 # define LT_DLLAZY_OR_NOW RTLD_NOW
20325 # define LT_DLLAZY_OR_NOW DL_NOW
20327 # define LT_DLLAZY_OR_NOW 0
20334 /* When -fvisbility=hidden is used, assume the code has been annotated
20335 correspondingly for the symbols needed. */
20336 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20337 int fnord () __attribute__((visibility("default")));
20340 int fnord () { return 42; }
20343 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20344 int status = $lt_dlunknown;
20348 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20351 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20352 else puts (dlerror ());
20354 /* dlclose (self); */
20362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20363 (eval $ac_link) 2>&5
20365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20366 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20367 (./conftest; exit; ) >&5 2>/dev/null
20369 case x$lt_status in
20370 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20371 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20372 x$lt_dlunknown|x*) ;;
20375 # compilation failed
20384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20385 $as_echo "$libltdl_cv_need_uscore" >&6; }
20389 if test x"$libltdl_cv_need_uscore" = xyes; then
20391 $as_echo "#define NEED_USCORE 1" >>confdefs.h
20395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20396 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
20397 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
20398 $as_echo_n "(cached) " >&6
20400 # PORTME does your system automatically load deplibs for dlopen?
20401 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20402 # For now, we just catch OSes we know something about -- in the
20403 # future, we'll try test this programmatically.
20404 lt_cv_sys_dlopen_deplibs=unknown
20406 aix3*|aix4.1.*|aix4.2.*)
20407 # Unknown whether this is true for these versions of AIX, but
20408 # we want this `case' here to explicitly catch those versions.
20409 lt_cv_sys_dlopen_deplibs=unknown
20412 lt_cv_sys_dlopen_deplibs=yes
20417 lt_cv_sys_dlopen_deplibs=no
20422 # Assuming the user has installed a libdl from somewhere, this is true
20423 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20424 lt_cv_sys_dlopen_deplibs=yes
20426 freebsd* | dragonfly*)
20427 lt_cv_sys_dlopen_deplibs=yes
20429 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
20430 # GNU and its variants, using gnu ld.so (Glibc)
20431 lt_cv_sys_dlopen_deplibs=yes
20434 lt_cv_sys_dlopen_deplibs=yes
20437 lt_cv_sys_dlopen_deplibs=yes
20439 irix[12345]*|irix6.[01]*)
20440 # Catch all versions of IRIX before 6.2, and indicate that we don't
20441 # know how it worked for any of those versions.
20442 lt_cv_sys_dlopen_deplibs=unknown
20445 # The case above catches anything before 6.2, and it's known that
20446 # at 6.2 and later dlopen does load deplibs.
20447 lt_cv_sys_dlopen_deplibs=yes
20450 lt_cv_sys_dlopen_deplibs=yes
20453 lt_cv_sys_dlopen_deplibs=yes
20456 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20457 # it did *not* use an RPATH in a shared library to find objects the
20458 # library depends on, so we explicitly say `no'.
20459 lt_cv_sys_dlopen_deplibs=no
20461 osf5.0|osf5.0a|osf5.1)
20462 # dlopen *does* load deplibs and with the right loader patch applied
20463 # it even uses RPATH in a shared library to search for shared objects
20464 # that the library depends on, but there's no easy way to know if that
20465 # patch is installed. Since this is the case, all we can really
20466 # say is unknown -- it depends on the patch being installed. If
20467 # it is, this changes to `yes'. Without it, it would be `no'.
20468 lt_cv_sys_dlopen_deplibs=unknown
20471 # the two cases above should catch all versions of osf <= 5.1. Read
20472 # the comments above for what we know about them.
20473 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20474 # is used to find them so we can finally say `yes'.
20475 lt_cv_sys_dlopen_deplibs=yes
20478 lt_cv_sys_dlopen_deplibs=yes
20481 lt_cv_sys_dlopen_deplibs=yes
20483 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20484 libltdl_cv_sys_dlopen_deplibs=yes
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20490 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20491 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20493 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20499 for ac_header in argz.h
20501 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20503 if test "x$ac_cv_header_argz_h" = xyes; then :
20504 cat >>confdefs.h <<_ACEOF
20505 #define HAVE_ARGZ_H 1
20513 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20517 if test "x$ac_cv_type_error_t" = xyes; then :
20519 cat >>confdefs.h <<_ACEOF
20520 #define HAVE_ERROR_T 1
20526 $as_echo "#define error_t int" >>confdefs.h
20529 $as_echo "#define __error_t_defined 1" >>confdefs.h
20535 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20536 argz_next argz_stringify
20538 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20539 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20540 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20541 cat >>confdefs.h <<_ACEOF
20542 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20548 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20554 if test -z "$ARGZ_H"; then :
20555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20556 $as_echo_n "checking if argz actually works... " >&6; }
20557 if ${lt_cv_sys_argz_works+:} false; then :
20558 $as_echo_n "(cached) " >&6
20560 case $host_os in #(
20562 lt_cv_sys_argz_works=no
20563 if test "$cross_compiling" != no; then
20564 lt_cv_sys_argz_works="guessing no"
20566 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20569 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20574 if test "$lt_os_major" -gt 1 \
20575 || { test "$lt_os_major" -eq 1 \
20576 && { test "$lt_os_minor" -gt 5 \
20577 || { test "$lt_os_minor" -eq 5 \
20578 && test "$lt_os_micro" -gt 24; }; }; }; then
20579 lt_cv_sys_argz_works=yes
20583 *) lt_cv_sys_argz_works=yes ;;
20586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20587 $as_echo "$lt_cv_sys_argz_works" >&6; }
20588 if test "$lt_cv_sys_argz_works" = yes; then :
20590 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20596 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20604 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
20605 if ${libltdl_cv_preloaded_symbols+:} false; then :
20606 $as_echo_n "(cached) " >&6
20608 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20609 libltdl_cv_preloaded_symbols=yes
20611 libltdl_cv_preloaded_symbols=no
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20616 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20617 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20619 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20635 # Check whether --with-included_ltdl was given.
20636 if test "${with_included_ltdl+set}" = set; then :
20637 withval=$with_included_ltdl;
20641 if test "x$with_included_ltdl" != xyes; then
20642 # We are not being forced to use the included libltdl sources, so
20643 # decide whether there is a useful installed version we can use.
20644 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20647 if test "x$ac_cv_header_ltdl_h" = xyes; then :
20648 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20651 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20653 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
20654 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
20655 $as_echo_n "(cached) " >&6
20657 ac_check_lib_save_LIBS=$LIBS
20658 LIBS="-lltdl $LIBS"
20659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20660 /* end confdefs.h. */
20662 /* Override any GCC internal prototype to avoid an error.
20663 Use char because int might match the return type of a GCC
20664 builtin and then its argument prototype would still apply. */
20668 char lt_dladvise_preload ();
20672 return lt_dladvise_preload ();
20677 if ac_fn_c_try_link "$LINENO"; then :
20678 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20680 ac_cv_lib_ltdl_lt_dladvise_preload=no
20682 rm -f core conftest.err conftest.$ac_objext \
20683 conftest$ac_exeext conftest.$ac_ext
20684 LIBS=$ac_check_lib_save_LIBS
20686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20687 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
20688 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
20689 with_included_ltdl=no
20691 with_included_ltdl=yes
20695 with_included_ltdl=yes
20699 with_included_ltdl=yes
20708 # Check whether --with-ltdl_include was given.
20709 if test "${with_ltdl_include+set}" = set; then :
20710 withval=$with_ltdl_include;
20714 if test -n "$with_ltdl_include"; then
20715 if test -f "$with_ltdl_include/ltdl.h"; then :
20717 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
20720 with_ltdl_include=no
20724 # Check whether --with-ltdl_lib was given.
20725 if test "${with_ltdl_lib+set}" = set; then :
20726 withval=$with_ltdl_lib;
20730 if test -n "$with_ltdl_lib"; then
20731 if test -f "$with_ltdl_lib/libltdl.la"; then :
20733 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
20739 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20741 case $enable_ltdl_convenience in
20742 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
20743 "") enable_ltdl_convenience=yes
20744 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20746 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20748 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20754 # For backwards non-gettext consistent compatibility...
20755 INCLTDL="$LTDLINCL"
20760 # If the included ltdl is not to be used, then use the
20761 # preinstalled libltdl we found.
20763 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
20770 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
20772 *) with_included_ltdl=no
20773 LIBLTDL="-L$with_ltdl_lib -lltdl"
20775 LTDLINCL="-I$with_ltdl_include"
20778 INCLTDL="$LTDLINCL"
20780 # Report our decision...
20781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20782 $as_echo_n "checking where to find libltdl headers... " >&6; }
20783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20784 $as_echo "$LTDLINCL" >&6; }
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20786 $as_echo_n "checking where to find libltdl library... " >&6; }
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20788 $as_echo "$LIBLTDL" >&6; }
20792 # Check whether --enable-ltdl-install was given.
20793 if test "${enable_ltdl_install+set}" = set; then :
20794 enableval=$enable_ltdl_install;
20798 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20800 *) enable_ltdl_convenience=yes ;;
20803 if test x"${enable_ltdl_install-no}" != xno; then
20805 INSTALL_LTDL_FALSE='#'
20807 INSTALL_LTDL_TRUE='#'
20808 INSTALL_LTDL_FALSE=
20811 if test x"${enable_ltdl_convenience-no}" != xno; then
20812 CONVENIENCE_LTDL_TRUE=
20813 CONVENIENCE_LTDL_FALSE='#'
20815 CONVENIENCE_LTDL_TRUE='#'
20816 CONVENIENCE_LTDL_FALSE=
20824 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20825 # the user used. This is so that ltdl.h can pick up the parent projects
20826 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
20827 # definitions required by ltdl.c.
20828 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20832 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20834 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20835 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20837 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20838 cat >>confdefs.h <<_ACEOF
20839 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20847 for ac_func in closedir opendir readdir
20849 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20850 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20851 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20852 cat >>confdefs.h <<_ACEOF
20853 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20859 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20864 for ac_func in strlcat strlcpy
20866 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20867 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20868 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20869 cat >>confdefs.h <<_ACEOF
20870 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20876 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20883 cat >>confdefs.h <<_ACEOF
20884 #define LT_LIBEXT "$libext"
20889 eval "lt_libprefix=\"$libname_spec\""
20891 cat >>confdefs.h <<_ACEOF
20892 #define LT_LIBPREFIX "$lt_libprefix"
20897 eval "LTDLOPEN=\"$libname_spec\""
20906 # Only expand once:
20910 # Check to see if building shared libraries
20911 libtool_build_shared_libs='no'
20912 if test "$enable_shared" = 'yes'; then
20913 libtool_build_shared_libs='yes'
20916 # Check to see if building static libraries
20917 libtool_build_static_libs='no'
20918 if test "$enable_static" = 'yes'; then
20919 libtool_build_static_libs='yes'
20922 if test "${libtool_build_shared_libs}" = 'yes'; then
20923 WITH_SHARED_LIBS_TRUE=
20924 WITH_SHARED_LIBS_FALSE='#'
20926 WITH_SHARED_LIBS_TRUE='#'
20927 WITH_SHARED_LIBS_FALSE=
20931 # Enable support for building loadable modules
20934 # Check whether --with-modules was given.
20935 if test "${with_modules+set}" = set; then :
20936 withval=$with_modules; with_modules=$withval
20942 # Only allow building loadable modules if we are building shared libraries
20943 if test "$with_modules" != 'no' ; then
20944 if test "$libtool_build_shared_libs" = 'no'; then
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
20946 $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20950 if test "$with_modules" != 'no'; then
20952 $as_echo "#define BUILD_MODULES 1" >>confdefs.h
20955 if test "$with_modules" != 'no'; then
20957 WITH_MODULES_FALSE='#'
20959 WITH_MODULES_TRUE='#'
20960 WITH_MODULES_FALSE=
20964 # Enable building/use of libltdl if we are building shared libraries regardless
20965 # of whether modules are built or not.
20967 if test "$libtool_build_shared_libs" != 'no'; then
20971 if test "$with_ltdl" != 'no'; then
20973 WITH_LTDL_FALSE='#'
20979 if test "$with_ltdl" != 'no'; then
20981 $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
20985 if test X"$enable_shared" = Xyes; then
20986 DLLDFLAGS=-export-dynamic
20991 # Enable build using delegate libraries built in subdirectories rather than installed
20992 # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
20993 # Check whether --enable-delegate-build was given.
20994 if test "${enable_delegate_build+set}" = set; then :
20995 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20997 enable_delegate_build='no'
21001 # Check whether --enable-deprecated was given.
21002 if test "${enable_deprecated+set}" = set; then :
21003 enableval=$enable_deprecated; enable_deprecated=$enableval
21005 enable_deprecated='no'
21009 if test "$enable_deprecated" = 'yes'; then
21011 $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
21014 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21017 # Build a version of ImageMagick which operates uninstalled.
21018 # Used to build distributions located via MAGICK_HOME / executable path
21019 # Check whether --enable-installed was given.
21020 if test "${enable_installed+set}" = set; then :
21021 enableval=$enable_installed; enable_installed=$enableval
21023 enable_installed='yes'
21027 if test "$enable_installed" = 'yes'; then
21029 $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
21032 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21035 # Permit enciphering and deciphering image pixels.
21036 # Check whether --enable-cipher was given.
21037 if test "${enable_cipher+set}" = set; then :
21038 enableval=$enable_cipher; enable_cipher=$enableval
21040 enable_cipher='yes'
21044 if test "$enable_cipher" = 'yes'; then
21046 $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
21050 # Build a zero-configuration version of ImageMagick.
21051 # Check whether --enable-zero-configuration was given.
21052 if test "${enable_zero_configuration+set}" = set; then :
21053 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
21055 enable_zero_configuration='no'
21059 if test "$enable_zero_configuration" = 'yes'; then
21061 $as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
21063 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
21066 # Build a high dynamic range version of ImageMagick.
21067 # Check whether --enable-hdri was given.
21068 if test "${enable_hdri+set}" = set; then :
21069 enableval=$enable_hdri; enable_hdri=$enableval
21076 if test "$enable_hdri" = 'yes'; then
21079 $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
21081 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
21084 # Build a version of ImageMagick with assert statements.
21085 # Check whether --enable-assert was given.
21086 if test "${enable_assert+set}" = set; then :
21087 enableval=$enable_assert; enable_assert=$enableval
21089 enable_assert='yes'
21093 if test "$enable_assert" = 'no'; then
21095 $as_echo "#define NDEBUG 1" >>confdefs.h
21099 # Add configure option --enable-maintainer-mode which enables dependency
21100 # checking and generation useful to package maintainers. This is made an
21101 # option to avoid confusing end users.
21103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21104 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21105 # Check whether --enable-maintainer-mode was given.
21106 if test "${enable_maintainer_mode+set}" = set; then :
21107 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21109 USE_MAINTAINER_MODE=no
21112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21113 $as_echo "$USE_MAINTAINER_MODE" >&6; }
21114 if test $USE_MAINTAINER_MODE = yes; then
21115 MAINTAINER_MODE_TRUE=
21116 MAINTAINER_MODE_FALSE='#'
21118 MAINTAINER_MODE_TRUE='#'
21119 MAINTAINER_MODE_FALSE=
21122 MAINT=$MAINTAINER_MODE_TRUE
21127 # Enable ccmalloc memory debugging support
21128 # Check whether --enable-ccmalloc was given.
21129 if test "${enable_ccmalloc+set}" = set; then :
21130 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21132 enable_ccmalloc='no'
21136 # Enable Electric Fence memory debugging support
21137 # Check whether --enable-efence was given.
21138 if test "${enable_efence+set}" = set; then :
21139 enableval=$enable_efence; enable_efence=$enableval
21145 # Enable prof-based profiling support
21146 # Check whether --enable-prof was given.
21147 if test "${enable_prof+set}" = set; then :
21148 enableval=$enable_prof; enable_prof=$enableval
21154 # Enable gprof-based profiling support
21155 # Check whether --enable-gprof was given.
21156 if test "${enable_gprof+set}" = set; then :
21157 enableval=$enable_gprof; enable_gprof=$enableval
21163 # Enable gcov-based profiling support
21164 # Check whether --enable-gcov was given.
21165 if test "${enable_gcov+set}" = set; then :
21166 enableval=$enable_gcov; enable_gcov=$enableval
21172 enable_profiling='no'
21173 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21174 enable_profiling='yes'
21175 if test "$libtool_build_shared_libs" = 'yes'; then
21176 echo "Warning: Can not profile code using shared libraries"
21180 # Magick API method prefix
21182 # Check whether --with-method-prefix was given.
21183 if test "${with_method_prefix+set}" = set; then :
21184 withval=$with_method_prefix; with_method_prefix=$enableval
21186 with_method_prefix=''
21190 if test "$with_method_prefix" != ''; then
21192 cat >>confdefs.h <<_ACEOF
21193 #define NAMESPACE_PREFIX $with_method_prefix
21198 # Number of bits in a Quantum
21200 # Check whether --with-quantum-depth was given.
21201 if test "${with_quantum_depth+set}" = set; then :
21202 withval=$with_quantum_depth; with_quantum_depth=$withval
21204 with_quantum_depth=16
21208 if test "$with_quantum_depth" != '8'; then
21209 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21212 case "${with_quantum_depth}" in
21217 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
21219 QUANTUM_DEPTH="$with_quantum_depth"
21221 cat >>confdefs.h <<_ACEOF
21222 #define QUANTUM_DEPTH $QUANTUM_DEPTH
21226 # Set pixel cache threshold
21228 # Check whether --with-cache was given.
21229 if test "${with_cache+set}" = set; then :
21230 withval=$with_cache; with_cache=$withval
21236 if test "$with_cache" != ''; then
21238 cat >>confdefs.h <<_ACEOF
21239 #define PixelCacheThreshold $with_cache
21242 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21245 # Disable/Enable support for full delegate paths
21247 # Check whether --with-frozenpaths was given.
21248 if test "${with_frozenpaths+set}" = set; then :
21249 withval=$with_frozenpaths; with_frozenpaths=$withval
21251 with_frozenpaths='no'
21255 # Enable build/install of Magick++
21257 # Check whether --with-magick-plus-plus was given.
21258 if test "${with_magick_plus_plus+set}" = set; then :
21259 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21261 with_magick_plus_plus='yes'
21265 # Disable build/install of PerlMagick.
21267 # Check whether --with-perl was given.
21268 if test "${with_perl+set}" = set; then :
21269 withval=$with_perl; with_perl=$withval
21275 # Options to pass when configuring PerlMagick
21277 # Check whether --with-perl-options was given.
21278 if test "${with_perl_options+set}" = set; then :
21279 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
21284 # Enable umem, object-caching memory allocation library.
21286 # Check whether --with-umem was given.
21287 if test "${with_umem+set}" = set; then :
21288 withval=$with_umem; with_umem=$withval
21293 if test "$with_umem" != 'yes' ; then
21294 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21298 # Specify path to shared libstdc++ if not in normal location
21301 # Check whether --with-libstdc was given.
21302 if test "${with_libstdc+set}" = set; then :
21303 withval=$with_libstdc; with_libstdc=$withval
21309 if test "$with_libstdc" != ''; then
21310 if test -d "$with_libstdc"; then
21311 LIBSTDCLDFLAGS="-L$with_libstdc"
21316 # Does gcc required -traditional?
21317 if test $ac_cv_c_compiler_gnu = yes; then
21318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
21319 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
21320 if ${ac_cv_prog_gcc_traditional+:} false; then :
21321 $as_echo_n "(cached) " >&6
21323 ac_pattern="Autoconf.*'x'"
21324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21325 /* end confdefs.h. */
21329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21330 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21331 ac_cv_prog_gcc_traditional=yes
21333 ac_cv_prog_gcc_traditional=no
21338 if test $ac_cv_prog_gcc_traditional = no; then
21339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21340 /* end confdefs.h. */
21341 #include <termio.h>
21344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21345 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21346 ac_cv_prog_gcc_traditional=yes
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
21353 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21354 if test $ac_cv_prog_gcc_traditional = yes; then
21355 CC="$CC -traditional"
21362 # Set defines required to build DLLs and modules using MinGW
21365 # These options are set for multi-thread DLL module build
21366 # libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21368 # executable/Magick++: _DLL _MAGICKMOD_
21369 MODULE_EXTRA_CPPFLAGS=''
21370 LIBRARY_EXTRA_CPPFLAGS=''
21371 if test "${native_win32_build}" = 'yes'; then
21372 if test "${libtool_build_shared_libs}" = 'yes'; then
21373 CPPFLAGS="$CPPFLAGS -D_DLL"
21374 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21375 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21376 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21377 if test "$with_modules" = 'yes'; then
21378 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21380 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21383 CPPFLAGS="$CPPFLAGS -D_LIB"
21384 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21385 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21387 if test "$with_threads" = 'yes'; then
21388 CPPFLAGS="$CPPFLAGS -D_MT"
21389 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21390 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21396 # Check standard headers
21397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
21398 $as_echo_n "checking for ANSI C header files... " >&6; }
21399 if ${ac_cv_header_stdc+:} false; then :
21400 $as_echo_n "(cached) " >&6
21402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21403 /* end confdefs.h. */
21404 #include <stdlib.h>
21405 #include <stdarg.h>
21406 #include <string.h>
21417 if ac_fn_c_try_compile "$LINENO"; then :
21418 ac_cv_header_stdc=yes
21420 ac_cv_header_stdc=no
21422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21424 if test $ac_cv_header_stdc = yes; then
21425 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21427 /* end confdefs.h. */
21428 #include <string.h>
21431 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21432 $EGREP "memchr" >/dev/null 2>&1; then :
21435 ac_cv_header_stdc=no
21441 if test $ac_cv_header_stdc = yes; then
21442 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21444 /* end confdefs.h. */
21445 #include <stdlib.h>
21448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21449 $EGREP "free" >/dev/null 2>&1; then :
21452 ac_cv_header_stdc=no
21458 if test $ac_cv_header_stdc = yes; then
21459 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21460 if test "$cross_compiling" = yes; then :
21463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21464 /* end confdefs.h. */
21466 #include <stdlib.h>
21467 #if ((' ' & 0x0FF) == 0x020)
21468 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21469 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21471 # define ISLOWER(c) \
21472 (('a' <= (c) && (c) <= 'i') \
21473 || ('j' <= (c) && (c) <= 'r') \
21474 || ('s' <= (c) && (c) <= 'z'))
21475 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21478 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21483 for (i = 0; i < 256; i++)
21484 if (XOR (islower (i), ISLOWER (i))
21485 || toupper (i) != TOUPPER (i))
21490 if ac_fn_c_try_run "$LINENO"; then :
21493 ac_cv_header_stdc=no
21495 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21496 conftest.$ac_objext conftest.beam conftest.$ac_ext
21501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21502 $as_echo "$ac_cv_header_stdc" >&6; }
21503 if test $ac_cv_header_stdc = yes; then
21505 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21509 if ! test x"$ac_cv_header_stdc" = x"yes"; then
21510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
21511 header files. Compilation cannot proceed. Please install the ANSI C
21512 headers and rerun this script." >&5
21513 $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21514 header files. Compilation cannot proceed. Please install the ANSI C
21515 headers and rerun this script." >&2;};
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21519 $as_echo_n "checking whether to enable assertions... " >&6; }
21520 # Check whether --enable-assert was given.
21521 if test "${enable_assert+set}" = set; then :
21522 enableval=$enable_assert; ac_enable_assert=$enableval
21523 if test "x$enableval" = xno; then :
21525 $as_echo "#define NDEBUG 1" >>confdefs.h
21527 elif test "x$enableval" != xyes; then :
21528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21529 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21530 ac_enable_assert=yes
21533 ac_enable_assert=yes
21536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21537 $as_echo "$ac_enable_assert" >&6; }
21539 ac_header_dirent=no
21540 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21541 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21543 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21544 if eval \${$as_ac_Header+:} false; then :
21545 $as_echo_n "(cached) " >&6
21547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21548 /* end confdefs.h. */
21549 #include <sys/types.h>
21561 if ac_fn_c_try_compile "$LINENO"; then :
21562 eval "$as_ac_Header=yes"
21564 eval "$as_ac_Header=no"
21566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21568 eval ac_res=\$$as_ac_Header
21569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21570 $as_echo "$ac_res" >&6; }
21571 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21572 cat >>confdefs.h <<_ACEOF
21573 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21576 ac_header_dirent=$ac_hdr; break
21580 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21581 if test $ac_header_dirent = dirent.h; then
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21583 $as_echo_n "checking for library containing opendir... " >&6; }
21584 if ${ac_cv_search_opendir+:} false; then :
21585 $as_echo_n "(cached) " >&6
21587 ac_func_search_save_LIBS=$LIBS
21588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21589 /* end confdefs.h. */
21591 /* Override any GCC internal prototype to avoid an error.
21592 Use char because int might match the return type of a GCC
21593 builtin and then its argument prototype would still apply. */
21606 for ac_lib in '' dir; do
21607 if test -z "$ac_lib"; then
21608 ac_res="none required"
21611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21613 if ac_fn_c_try_link "$LINENO"; then :
21614 ac_cv_search_opendir=$ac_res
21616 rm -f core conftest.err conftest.$ac_objext \
21618 if ${ac_cv_search_opendir+:} false; then :
21622 if ${ac_cv_search_opendir+:} false; then :
21625 ac_cv_search_opendir=no
21627 rm conftest.$ac_ext
21628 LIBS=$ac_func_search_save_LIBS
21630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21631 $as_echo "$ac_cv_search_opendir" >&6; }
21632 ac_res=$ac_cv_search_opendir
21633 if test "$ac_res" != no; then :
21634 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21640 $as_echo_n "checking for library containing opendir... " >&6; }
21641 if ${ac_cv_search_opendir+:} false; then :
21642 $as_echo_n "(cached) " >&6
21644 ac_func_search_save_LIBS=$LIBS
21645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21646 /* end confdefs.h. */
21648 /* Override any GCC internal prototype to avoid an error.
21649 Use char because int might match the return type of a GCC
21650 builtin and then its argument prototype would still apply. */
21663 for ac_lib in '' x; do
21664 if test -z "$ac_lib"; then
21665 ac_res="none required"
21668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21670 if ac_fn_c_try_link "$LINENO"; then :
21671 ac_cv_search_opendir=$ac_res
21673 rm -f core conftest.err conftest.$ac_objext \
21675 if ${ac_cv_search_opendir+:} false; then :
21679 if ${ac_cv_search_opendir+:} false; then :
21682 ac_cv_search_opendir=no
21684 rm conftest.$ac_ext
21685 LIBS=$ac_func_search_save_LIBS
21687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21688 $as_echo "$ac_cv_search_opendir" >&6; }
21689 ac_res=$ac_cv_search_opendir
21690 if test "$ac_res" != no; then :
21691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21698 # Check additional headers
21699 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
21701 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21702 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21703 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21704 cat >>confdefs.h <<_ACEOF
21705 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21715 # Checks for typedefs, structures, and compiler characteristics.
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21720 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21721 if ${ac_cv_header_stdbool_h+:} false; then :
21722 $as_echo_n "(cached) " >&6
21724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21725 /* end confdefs.h. */
21727 #include <stdbool.h>
21729 "error: bool is not defined"
21732 "error: false is not defined"
21735 "error: false is not 0"
21738 "error: true is not defined"
21741 "error: true is not 1"
21743 #ifndef __bool_true_false_are_defined
21744 "error: __bool_true_false_are_defined is not defined"
21747 struct s { _Bool s: 1; _Bool t; } s;
21749 char a[true == 1 ? 1 : -1];
21750 char b[false == 0 ? 1 : -1];
21751 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21752 char d[(bool) 0.5 == true ? 1 : -1];
21753 /* See body of main program for 'e'. */
21754 char f[(_Bool) 0.0 == false ? 1 : -1];
21756 char h[sizeof (_Bool)];
21757 char i[sizeof s.t];
21758 enum { j = false, k = true, l = false * true, m = true * 256 };
21759 /* The following fails for
21760 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21762 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21763 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21764 /* Catch a bug in an HP-UX C compiler. See
21765 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21766 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21778 /* Refer to every declared value, to avoid compiler optimizations. */
21779 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21780 + !m + !n + !o + !p + !q + !pq);
21786 if ac_fn_c_try_compile "$LINENO"; then :
21787 ac_cv_header_stdbool_h=yes
21789 ac_cv_header_stdbool_h=no
21791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21794 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21795 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21796 if test "x$ac_cv_type__Bool" = xyes; then :
21798 cat >>confdefs.h <<_ACEOF
21799 #define HAVE__BOOL 1
21805 if test $ac_cv_header_stdbool_h = yes; then
21807 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
21811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
21812 $as_echo_n "checking for working volatile... " >&6; }
21813 if ${ac_cv_c_volatile+:} false; then :
21814 $as_echo_n "(cached) " >&6
21816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21817 /* end confdefs.h. */
21824 int * volatile y = (int *) 0;
21830 if ac_fn_c_try_compile "$LINENO"; then :
21831 ac_cv_c_volatile=yes
21833 ac_cv_c_volatile=no
21835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
21838 $as_echo "$ac_cv_c_volatile" >&6; }
21839 if test $ac_cv_c_volatile = no; then
21841 $as_echo "#define volatile /**/" >>confdefs.h
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
21846 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
21847 if ${ac_cv_c_stringize+:} false; then :
21848 $as_echo_n "(cached) " >&6
21850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21851 /* end confdefs.h. */
21854 char *s = x(teststring);
21856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21857 $EGREP "#teststring" >/dev/null 2>&1; then :
21858 ac_cv_c_stringize=no
21860 ac_cv_c_stringize=yes
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
21866 $as_echo "$ac_cv_c_stringize" >&6; }
21867 if test $ac_cv_c_stringize = yes; then
21869 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21874 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21875 if ${ac_cv_header_stat_broken+:} false; then :
21876 $as_echo_n "(cached) " >&6
21878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21879 /* end confdefs.h. */
21880 #include <sys/types.h>
21881 #include <sys/stat.h>
21883 #if defined S_ISBLK && defined S_IFDIR
21884 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21887 #if defined S_ISBLK && defined S_IFCHR
21888 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21891 #if defined S_ISLNK && defined S_IFREG
21892 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21895 #if defined S_ISSOCK && defined S_IFREG
21896 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21900 if ac_fn_c_try_compile "$LINENO"; then :
21901 ac_cv_header_stat_broken=no
21903 ac_cv_header_stat_broken=yes
21905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21908 $as_echo "$ac_cv_header_stat_broken" >&6; }
21909 if test $ac_cv_header_stat_broken = yes; then
21911 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21916 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21917 if ${ac_cv_header_time+:} false; then :
21918 $as_echo_n "(cached) " >&6
21920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21921 /* end confdefs.h. */
21922 #include <sys/types.h>
21923 #include <sys/time.h>
21929 if ((struct tm *) 0)
21935 if ac_fn_c_try_compile "$LINENO"; then :
21936 ac_cv_header_time=yes
21938 ac_cv_header_time=no
21940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21943 $as_echo "$ac_cv_header_time" >&6; }
21944 if test $ac_cv_header_time = yes; then
21946 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21951 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21952 if ${ac_cv_struct_tm+:} false; then :
21953 $as_echo_n "(cached) " >&6
21955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21956 /* end confdefs.h. */
21957 #include <sys/types.h>
21964 int *p = &tm.tm_sec;
21970 if ac_fn_c_try_compile "$LINENO"; then :
21971 ac_cv_struct_tm=time.h
21973 ac_cv_struct_tm=sys/time.h
21975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21978 $as_echo "$ac_cv_struct_tm" >&6; }
21979 if test $ac_cv_struct_tm = sys/time.h; then
21981 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21985 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21986 #include <$ac_cv_struct_tm>
21989 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
21991 cat >>confdefs.h <<_ACEOF
21992 #define HAVE_STRUCT_TM_TM_ZONE 1
21998 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22000 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22003 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22005 if test "x$ac_cv_have_decl_tzname" = xyes; then :
22011 cat >>confdefs.h <<_ACEOF
22012 #define HAVE_DECL_TZNAME $ac_have_decl
22015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22016 $as_echo_n "checking for tzname... " >&6; }
22017 if ${ac_cv_var_tzname+:} false; then :
22018 $as_echo_n "(cached) " >&6
22020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22021 /* end confdefs.h. */
22023 #if !HAVE_DECL_TZNAME
22024 extern char *tzname[];
22030 return tzname[0][0];
22035 if ac_fn_c_try_link "$LINENO"; then :
22036 ac_cv_var_tzname=yes
22038 ac_cv_var_tzname=no
22040 rm -f core conftest.err conftest.$ac_objext \
22041 conftest$ac_exeext conftest.$ac_ext
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22044 $as_echo "$ac_cv_var_tzname" >&6; }
22045 if test $ac_cv_var_tzname = yes; then
22047 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
22053 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
22054 if ${ac_cv_sys_interpreter+:} false; then :
22055 $as_echo_n "(cached) " >&6
22061 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22062 if test $? -ne 69; then
22063 ac_cv_sys_interpreter=yes
22065 ac_cv_sys_interpreter=no
22069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
22070 $as_echo "$ac_cv_sys_interpreter" >&6; }
22071 interpval=$ac_cv_sys_interpreter
22074 # If the C compiler supports the keyword inline, do nothing. Otherwise
22075 # define inline to __inline__ or __inline if it accepts one of those,
22076 # otherwise define inline to be empty.
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22078 $as_echo_n "checking for inline... " >&6; }
22079 if ${ac_cv_c_inline+:} false; then :
22080 $as_echo_n "(cached) " >&6
22083 for ac_kw in inline __inline__ __inline; do
22084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22085 /* end confdefs.h. */
22086 #ifndef __cplusplus
22088 static $ac_kw foo_t static_foo () {return 0; }
22089 $ac_kw foo_t foo () {return 0; }
22093 if ac_fn_c_try_compile "$LINENO"; then :
22094 ac_cv_c_inline=$ac_kw
22096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22097 test "$ac_cv_c_inline" != no && break
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22102 $as_echo "$ac_cv_c_inline" >&6; }
22104 case $ac_cv_c_inline in
22107 case $ac_cv_c_inline in
22109 *) ac_val=$ac_cv_c_inline;;
22111 cat >>confdefs.h <<_ACEOF
22112 #ifndef __cplusplus
22113 #define inline $ac_val
22120 # If the C compiler supports the keyword restrict, do nothing. Otherwise
22121 # define restrict to __restrict__ or __restrict if it accepts one of those,
22122 # otherwise define restrict to be empty.
22123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
22124 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
22125 if ${ac_cv_c_restrict+:} false; then :
22126 $as_echo_n "(cached) " >&6
22128 ac_cv_c_restrict=no
22129 # The order here caters to the fact that C++ does not require restrict.
22130 for ac_kw in __restrict __restrict__ _Restrict restrict; do
22131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22132 /* end confdefs.h. */
22133 typedef int * int_ptr;
22134 int foo (int_ptr $ac_kw ip) {
22141 int * $ac_kw t = s;
22148 if ac_fn_c_try_compile "$LINENO"; then :
22149 ac_cv_c_restrict=$ac_kw
22151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22152 test "$ac_cv_c_restrict" != no && break
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
22157 $as_echo "$ac_cv_c_restrict" >&6; }
22159 case $ac_cv_c_restrict in
22161 no) $as_echo "#define restrict /**/" >>confdefs.h
22163 *) cat >>confdefs.h <<_ACEOF
22164 #define restrict $ac_cv_c_restrict
22170 # If words are stored with the most significant byte first (like
22171 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
22172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22173 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22174 if ${ac_cv_c_bigendian+:} false; then :
22175 $as_echo_n "(cached) " >&6
22177 ac_cv_c_bigendian=unknown
22178 # See if we're dealing with a universal compiler.
22179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22180 /* end confdefs.h. */
22181 #ifndef __APPLE_CC__
22182 not a universal capable compiler
22187 if ac_fn_c_try_compile "$LINENO"; then :
22189 # Check for potential -arch flags. It is not universal unless
22190 # there are at least two -arch flags with different values.
22193 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22194 if test -n "$ac_prev"; then
22196 i?86 | x86_64 | ppc | ppc64)
22197 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22200 ac_cv_c_bigendian=universal
22206 elif test "x$ac_word" = "x-arch"; then
22211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22212 if test $ac_cv_c_bigendian = unknown; then
22213 # See if sys/param.h defines the BYTE_ORDER macro.
22214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22215 /* end confdefs.h. */
22216 #include <sys/types.h>
22217 #include <sys/param.h>
22222 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22223 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22225 bogus endian macros
22232 if ac_fn_c_try_compile "$LINENO"; then :
22233 # It does; now see whether it defined to BIG_ENDIAN or not.
22234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22235 /* end confdefs.h. */
22236 #include <sys/types.h>
22237 #include <sys/param.h>
22242 #if BYTE_ORDER != BIG_ENDIAN
22250 if ac_fn_c_try_compile "$LINENO"; then :
22251 ac_cv_c_bigendian=yes
22253 ac_cv_c_bigendian=no
22255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22259 if test $ac_cv_c_bigendian = unknown; then
22260 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22262 /* end confdefs.h. */
22263 #include <limits.h>
22268 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22269 bogus endian macros
22276 if ac_fn_c_try_compile "$LINENO"; then :
22277 # It does; now see whether it defined to _BIG_ENDIAN or not.
22278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22279 /* end confdefs.h. */
22280 #include <limits.h>
22285 #ifndef _BIG_ENDIAN
22293 if ac_fn_c_try_compile "$LINENO"; then :
22294 ac_cv_c_bigendian=yes
22296 ac_cv_c_bigendian=no
22298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22302 if test $ac_cv_c_bigendian = unknown; then
22303 # Compile a test program.
22304 if test "$cross_compiling" = yes; then :
22305 # Try to guess by grepping values from an object file.
22306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22307 /* end confdefs.h. */
22308 short int ascii_mm[] =
22309 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22310 short int ascii_ii[] =
22311 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22312 int use_ascii (int i) {
22313 return ascii_mm[i] + ascii_ii[i];
22315 short int ebcdic_ii[] =
22316 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22317 short int ebcdic_mm[] =
22318 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22319 int use_ebcdic (int i) {
22320 return ebcdic_mm[i] + ebcdic_ii[i];
22327 return use_ascii (foo) == use_ebcdic (foo);
22332 if ac_fn_c_try_compile "$LINENO"; then :
22333 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22334 ac_cv_c_bigendian=yes
22336 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22337 if test "$ac_cv_c_bigendian" = unknown; then
22338 ac_cv_c_bigendian=no
22340 # finding both strings is unlikely to happen, but who knows?
22341 ac_cv_c_bigendian=unknown
22345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22348 /* end confdefs.h. */
22349 $ac_includes_default
22354 /* Are we little or big endian? From Harbison&Steele. */
22358 char c[sizeof (long int)];
22361 return u.c[sizeof (long int) - 1] == 1;
22367 if ac_fn_c_try_run "$LINENO"; then :
22368 ac_cv_c_bigendian=no
22370 ac_cv_c_bigendian=yes
22372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22373 conftest.$ac_objext conftest.beam conftest.$ac_ext
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
22379 $as_echo "$ac_cv_c_bigendian" >&6; }
22380 case $ac_cv_c_bigendian in #(
22382 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
22388 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22392 as_fn_error $? "unknown endianness
22393 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
22397 # Define to a suitable type, if standard headers do not define it.
22398 ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22399 case $ac_cv_c_int8_t in #(
22403 cat >>confdefs.h <<_ACEOF
22404 #define int8_t $ac_cv_c_int8_t
22409 ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22410 case $ac_cv_c_int16_t in #(
22414 cat >>confdefs.h <<_ACEOF
22415 #define int16_t $ac_cv_c_int16_t
22420 ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22421 case $ac_cv_c_int32_t in #(
22425 cat >>confdefs.h <<_ACEOF
22426 #define int32_t $ac_cv_c_int32_t
22431 ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22432 case $ac_cv_c_int64_t in #(
22436 cat >>confdefs.h <<_ACEOF
22437 #define int64_t $ac_cv_c_int64_t
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22444 $as_echo_n "checking for long long int... " >&6; }
22445 if ${ac_cv_type_long_long_int+:} false; then :
22446 $as_echo_n "(cached) " >&6
22448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22449 /* end confdefs.h. */
22451 /* For now, do not test the preprocessor; as of 2007 there are too many
22452 implementations with broken preprocessors. Perhaps this can
22453 be revisited in 2012. In the meantime, code should not expect
22454 #if to work with literals wider than 32 bits. */
22455 /* Test literals. */
22456 long long int ll = 9223372036854775807ll;
22457 long long int nll = -9223372036854775807LL;
22458 unsigned long long int ull = 18446744073709551615ULL;
22459 /* Test constant expressions. */
22460 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22462 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22468 /* Test availability of runtime routines for shift and division. */
22469 long long int llmax = 9223372036854775807ll;
22470 unsigned long long int ullmax = 18446744073709551615ull;
22471 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22472 | (llmax / ll) | (llmax % ll)
22473 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22474 | (ullmax / ull) | (ullmax % ull));
22480 if ac_fn_c_try_link "$LINENO"; then :
22481 if test "$cross_compiling" = yes; then :
22482 ac_cv_type_long_long_int=yes
22484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22485 /* end confdefs.h. */
22486 #include <limits.h>
22489 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22490 # define LLONG_MAX (HALF - 1 + HALF)
22495 long long int n = 1;
22499 long long int m = n << i;
22502 if (LLONG_MAX / 2 < m)
22510 if ac_fn_c_try_run "$LINENO"; then :
22511 ac_cv_type_long_long_int=yes
22513 ac_cv_type_long_long_int=no
22515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22516 conftest.$ac_objext conftest.beam conftest.$ac_ext
22520 ac_cv_type_long_long_int=no
22522 rm -f core conftest.err conftest.$ac_objext \
22523 conftest$ac_exeext conftest.$ac_ext
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22526 $as_echo "$ac_cv_type_long_long_int" >&6; }
22527 if test $ac_cv_type_long_long_int = yes; then
22529 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22535 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22536 if test "x$ac_cv_type_intmax_t" = xyes; then :
22538 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22541 test $ac_cv_type_long_long_int = yes \
22542 && ac_type='long long int' \
22543 || ac_type='long int'
22545 cat >>confdefs.h <<_ACEOF
22546 #define intmax_t $ac_type
22553 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22554 if test "x$ac_cv_type_intptr_t" = xyes; then :
22556 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
22559 for ac_type in 'int' 'long int' 'long long int'; do
22560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22561 /* end confdefs.h. */
22562 $ac_includes_default
22566 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
22573 if ac_fn_c_try_compile "$LINENO"; then :
22575 cat >>confdefs.h <<_ACEOF
22576 #define intptr_t $ac_type
22581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22582 test -z "$ac_type" && break
22588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22589 $as_echo_n "checking for long double... " >&6; }
22590 if ${ac_cv_type_long_double+:} false; then :
22591 $as_echo_n "(cached) " >&6
22593 if test "$GCC" = yes; then
22594 ac_cv_type_long_double=yes
22596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22597 /* end confdefs.h. */
22598 /* The Stardent Vistra knows sizeof (long double), but does
22600 long double foo = 0.0L;
22604 static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22605 sizeof (double) <= sizeof (long double))];
22612 if ac_fn_c_try_compile "$LINENO"; then :
22613 ac_cv_type_long_double=yes
22615 ac_cv_type_long_double=no
22617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22621 $as_echo "$ac_cv_type_long_double" >&6; }
22622 if test $ac_cv_type_long_double = yes; then
22624 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
22630 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
22631 if ${ac_cv_type_long_double_wider+:} false; then :
22632 $as_echo_n "(cached) " >&6
22634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22635 /* end confdefs.h. */
22637 long double const a[] =
22639 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22640 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22645 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22646 + (x ? f (x) : 'c'));
22652 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22653 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22654 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22655 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22656 && (int) LDBL_EPSILON == 0
22664 if ac_fn_c_try_compile "$LINENO"; then :
22665 ac_cv_type_long_double_wider=yes
22667 ac_cv_type_long_double_wider=no
22669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
22672 $as_echo "$ac_cv_type_long_double_wider" >&6; }
22673 if test $ac_cv_type_long_double_wider = yes; then
22675 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
22680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22681 $as_echo_n "checking for long long int... " >&6; }
22682 if ${ac_cv_type_long_long_int+:} false; then :
22683 $as_echo_n "(cached) " >&6
22685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22686 /* end confdefs.h. */
22688 /* For now, do not test the preprocessor; as of 2007 there are too many
22689 implementations with broken preprocessors. Perhaps this can
22690 be revisited in 2012. In the meantime, code should not expect
22691 #if to work with literals wider than 32 bits. */
22692 /* Test literals. */
22693 long long int ll = 9223372036854775807ll;
22694 long long int nll = -9223372036854775807LL;
22695 unsigned long long int ull = 18446744073709551615ULL;
22696 /* Test constant expressions. */
22697 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22699 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22705 /* Test availability of runtime routines for shift and division. */
22706 long long int llmax = 9223372036854775807ll;
22707 unsigned long long int ullmax = 18446744073709551615ull;
22708 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22709 | (llmax / ll) | (llmax % ll)
22710 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22711 | (ullmax / ull) | (ullmax % ull));
22717 if ac_fn_c_try_link "$LINENO"; then :
22718 if test "$cross_compiling" = yes; then :
22719 ac_cv_type_long_long_int=yes
22721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22722 /* end confdefs.h. */
22723 #include <limits.h>
22726 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22727 # define LLONG_MAX (HALF - 1 + HALF)
22732 long long int n = 1;
22736 long long int m = n << i;
22739 if (LLONG_MAX / 2 < m)
22747 if ac_fn_c_try_run "$LINENO"; then :
22748 ac_cv_type_long_long_int=yes
22750 ac_cv_type_long_long_int=no
22752 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22753 conftest.$ac_objext conftest.beam conftest.$ac_ext
22757 ac_cv_type_long_long_int=no
22759 rm -f core conftest.err conftest.$ac_objext \
22760 conftest$ac_exeext conftest.$ac_ext
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22763 $as_echo "$ac_cv_type_long_long_int" >&6; }
22764 if test $ac_cv_type_long_long_int = yes; then
22766 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22771 $as_echo_n "checking for mbstate_t... " >&6; }
22772 if ${ac_cv_type_mbstate_t+:} false; then :
22773 $as_echo_n "(cached) " >&6
22775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22776 /* end confdefs.h. */
22777 $ac_includes_default
22778 # include <wchar.h>
22782 mbstate_t x; return sizeof x;
22787 if ac_fn_c_try_compile "$LINENO"; then :
22788 ac_cv_type_mbstate_t=yes
22790 ac_cv_type_mbstate_t=no
22792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22795 $as_echo "$ac_cv_type_mbstate_t" >&6; }
22796 if test $ac_cv_type_mbstate_t = yes; then
22798 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22802 $as_echo "#define mbstate_t int" >>confdefs.h
22805 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22806 if test "x$ac_cv_type_mode_t" = xyes; then :
22810 cat >>confdefs.h <<_ACEOF
22816 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22817 if test "x$ac_cv_type_off_t" = xyes; then :
22821 cat >>confdefs.h <<_ACEOF
22822 #define off_t long int
22827 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22828 if test "x$ac_cv_type_pid_t" = xyes; then :
22832 cat >>confdefs.h <<_ACEOF
22838 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22839 if test "x$ac_cv_type_size_t" = xyes; then :
22843 cat >>confdefs.h <<_ACEOF
22844 #define size_t unsigned int
22849 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22850 if test "x$ac_cv_type_ssize_t" = xyes; then :
22854 cat >>confdefs.h <<_ACEOF
22855 #define ssize_t int
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22861 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22862 if ${ac_cv_type_uid_t+:} false; then :
22863 $as_echo_n "(cached) " >&6
22865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22866 /* end confdefs.h. */
22867 #include <sys/types.h>
22870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22871 $EGREP "uid_t" >/dev/null 2>&1; then :
22872 ac_cv_type_uid_t=yes
22874 ac_cv_type_uid_t=no
22879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22880 $as_echo "$ac_cv_type_uid_t" >&6; }
22881 if test $ac_cv_type_uid_t = no; then
22883 $as_echo "#define uid_t int" >>confdefs.h
22886 $as_echo "#define gid_t int" >>confdefs.h
22890 ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22891 case $ac_cv_c_uint8_t in #(
22895 $as_echo "#define _UINT8_T 1" >>confdefs.h
22898 cat >>confdefs.h <<_ACEOF
22899 #define uint8_t $ac_cv_c_uint8_t
22904 ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22905 case $ac_cv_c_uint16_t in #(
22910 cat >>confdefs.h <<_ACEOF
22911 #define uint16_t $ac_cv_c_uint16_t
22916 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
22917 case $ac_cv_c_uint32_t in #(
22921 $as_echo "#define _UINT32_T 1" >>confdefs.h
22924 cat >>confdefs.h <<_ACEOF
22925 #define uint32_t $ac_cv_c_uint32_t
22930 ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
22931 case $ac_cv_c_uint64_t in #(
22935 $as_echo "#define _UINT64_T 1" >>confdefs.h
22938 cat >>confdefs.h <<_ACEOF
22939 #define uint64_t $ac_cv_c_uint64_t
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22946 $as_echo_n "checking for unsigned long long int... " >&6; }
22947 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22948 $as_echo_n "(cached) " >&6
22950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22951 /* end confdefs.h. */
22953 /* For now, do not test the preprocessor; as of 2007 there are too many
22954 implementations with broken preprocessors. Perhaps this can
22955 be revisited in 2012. In the meantime, code should not expect
22956 #if to work with literals wider than 32 bits. */
22957 /* Test literals. */
22958 long long int ll = 9223372036854775807ll;
22959 long long int nll = -9223372036854775807LL;
22960 unsigned long long int ull = 18446744073709551615ULL;
22961 /* Test constant expressions. */
22962 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22964 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22970 /* Test availability of runtime routines for shift and division. */
22971 long long int llmax = 9223372036854775807ll;
22972 unsigned long long int ullmax = 18446744073709551615ull;
22973 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22974 | (llmax / ll) | (llmax % ll)
22975 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22976 | (ullmax / ull) | (ullmax % ull));
22982 if ac_fn_c_try_link "$LINENO"; then :
22983 ac_cv_type_unsigned_long_long_int=yes
22985 ac_cv_type_unsigned_long_long_int=no
22987 rm -f core conftest.err conftest.$ac_objext \
22988 conftest$ac_exeext conftest.$ac_ext
22990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22991 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22992 if test $ac_cv_type_unsigned_long_long_int = yes; then
22994 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23000 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23001 if test "x$ac_cv_type_uintmax_t" = xyes; then :
23003 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23006 test $ac_cv_type_unsigned_long_long_int = yes \
23007 && ac_type='unsigned long long int' \
23008 || ac_type='unsigned long int'
23010 cat >>confdefs.h <<_ACEOF
23011 #define uintmax_t $ac_type
23018 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23019 if test "x$ac_cv_type_uintptr_t" = xyes; then :
23021 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23024 for ac_type in 'unsigned int' 'unsigned long int' \
23025 'unsigned long long int'; do
23026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23027 /* end confdefs.h. */
23028 $ac_includes_default
23032 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
23039 if ac_fn_c_try_compile "$LINENO"; then :
23041 cat >>confdefs.h <<_ACEOF
23042 #define uintptr_t $ac_type
23047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23048 test -z "$ac_type" && break
23054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23055 $as_echo_n "checking for unsigned long long int... " >&6; }
23056 if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23057 $as_echo_n "(cached) " >&6
23059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23060 /* end confdefs.h. */
23062 /* For now, do not test the preprocessor; as of 2007 there are too many
23063 implementations with broken preprocessors. Perhaps this can
23064 be revisited in 2012. In the meantime, code should not expect
23065 #if to work with literals wider than 32 bits. */
23066 /* Test literals. */
23067 long long int ll = 9223372036854775807ll;
23068 long long int nll = -9223372036854775807LL;
23069 unsigned long long int ull = 18446744073709551615ULL;
23070 /* Test constant expressions. */
23071 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23073 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23079 /* Test availability of runtime routines for shift and division. */
23080 long long int llmax = 9223372036854775807ll;
23081 unsigned long long int ullmax = 18446744073709551615ull;
23082 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23083 | (llmax / ll) | (llmax % ll)
23084 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23085 | (ullmax / ull) | (ullmax % ull));
23091 if ac_fn_c_try_link "$LINENO"; then :
23092 ac_cv_type_unsigned_long_long_int=yes
23094 ac_cv_type_unsigned_long_long_int=no
23096 rm -f core conftest.err conftest.$ac_objext \
23097 conftest$ac_exeext conftest.$ac_ext
23099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23100 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23101 if test $ac_cv_type_unsigned_long_long_int = yes; then
23103 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23108 # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23109 # C compiler predefines it.
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
23111 $as_echo_n "checking whether char is unsigned... " >&6; }
23112 if ${ac_cv_c_char_unsigned+:} false; then :
23113 $as_echo_n "(cached) " >&6
23115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23116 /* end confdefs.h. */
23117 $ac_includes_default
23121 static int test_array [1 - 2 * !(((char) -1) < 0)];
23128 if ac_fn_c_try_compile "$LINENO"; then :
23129 ac_cv_c_char_unsigned=no
23131 ac_cv_c_char_unsigned=yes
23133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
23136 $as_echo "$ac_cv_c_char_unsigned" >&6; }
23137 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
23138 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
23143 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23144 # The cast to long int works around a bug in the HP C Compiler
23145 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23146 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23147 # This bug is HP SR number 8606223364.
23148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
23149 $as_echo_n "checking size of signed short... " >&6; }
23150 if ${ac_cv_sizeof_signed_short+:} false; then :
23151 $as_echo_n "(cached) " >&6
23153 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
23156 if test "$ac_cv_type_signed_short" = yes; then
23157 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23158 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23159 as_fn_error 77 "cannot compute sizeof (signed short)
23160 See \`config.log' for more details" "$LINENO" 5; }
23162 ac_cv_sizeof_signed_short=0
23167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
23168 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
23172 cat >>confdefs.h <<_ACEOF
23173 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23178 # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23179 # The cast to long int works around a bug in the HP C Compiler
23180 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23181 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23182 # This bug is HP SR number 8606223364.
23183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
23184 $as_echo_n "checking size of unsigned short... " >&6; }
23185 if ${ac_cv_sizeof_unsigned_short+:} false; then :
23186 $as_echo_n "(cached) " >&6
23188 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
23191 if test "$ac_cv_type_unsigned_short" = yes; then
23192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23194 as_fn_error 77 "cannot compute sizeof (unsigned short)
23195 See \`config.log' for more details" "$LINENO" 5; }
23197 ac_cv_sizeof_unsigned_short=0
23202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
23203 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23207 cat >>confdefs.h <<_ACEOF
23208 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23213 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23214 # The cast to long int works around a bug in the HP C Compiler
23215 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23216 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23217 # This bug is HP SR number 8606223364.
23218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
23219 $as_echo_n "checking size of signed int... " >&6; }
23220 if ${ac_cv_sizeof_signed_int+:} false; then :
23221 $as_echo_n "(cached) " >&6
23223 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then :
23226 if test "$ac_cv_type_signed_int" = yes; then
23227 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23229 as_fn_error 77 "cannot compute sizeof (signed int)
23230 See \`config.log' for more details" "$LINENO" 5; }
23232 ac_cv_sizeof_signed_int=0
23237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
23238 $as_echo "$ac_cv_sizeof_signed_int" >&6; }
23242 cat >>confdefs.h <<_ACEOF
23243 #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23248 # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23249 # The cast to long int works around a bug in the HP C Compiler
23250 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23251 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23252 # This bug is HP SR number 8606223364.
23253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
23254 $as_echo_n "checking size of unsigned int... " >&6; }
23255 if ${ac_cv_sizeof_unsigned_int+:} false; then :
23256 $as_echo_n "(cached) " >&6
23258 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
23261 if test "$ac_cv_type_unsigned_int" = yes; then
23262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23264 as_fn_error 77 "cannot compute sizeof (unsigned int)
23265 See \`config.log' for more details" "$LINENO" 5; }
23267 ac_cv_sizeof_unsigned_int=0
23272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
23273 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23277 cat >>confdefs.h <<_ACEOF
23278 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23283 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23284 # The cast to long int works around a bug in the HP C Compiler
23285 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23286 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23287 # This bug is HP SR number 8606223364.
23288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
23289 $as_echo_n "checking size of signed long... " >&6; }
23290 if ${ac_cv_sizeof_signed_long+:} false; then :
23291 $as_echo_n "(cached) " >&6
23293 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then :
23296 if test "$ac_cv_type_signed_long" = yes; then
23297 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23298 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23299 as_fn_error 77 "cannot compute sizeof (signed long)
23300 See \`config.log' for more details" "$LINENO" 5; }
23302 ac_cv_sizeof_signed_long=0
23307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
23308 $as_echo "$ac_cv_sizeof_signed_long" >&6; }
23312 cat >>confdefs.h <<_ACEOF
23313 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23318 # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23319 # The cast to long int works around a bug in the HP C Compiler
23320 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23321 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23322 # This bug is HP SR number 8606223364.
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
23324 $as_echo_n "checking size of unsigned long... " >&6; }
23325 if ${ac_cv_sizeof_unsigned_long+:} false; then :
23326 $as_echo_n "(cached) " >&6
23328 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
23331 if test "$ac_cv_type_unsigned_long" = yes; then
23332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23334 as_fn_error 77 "cannot compute sizeof (unsigned long)
23335 See \`config.log' for more details" "$LINENO" 5; }
23337 ac_cv_sizeof_unsigned_long=0
23342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
23343 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23347 cat >>confdefs.h <<_ACEOF
23348 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23353 # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23354 # 'signed long long' is not supported then the value defined is zero.
23355 # The cast to long int works around a bug in the HP C Compiler
23356 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23357 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23358 # This bug is HP SR number 8606223364.
23359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
23360 $as_echo_n "checking size of signed long long... " >&6; }
23361 if ${ac_cv_sizeof_signed_long_long+:} false; then :
23362 $as_echo_n "(cached) " >&6
23364 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
23367 if test "$ac_cv_type_signed_long_long" = yes; then
23368 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23369 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23370 as_fn_error 77 "cannot compute sizeof (signed long long)
23371 See \`config.log' for more details" "$LINENO" 5; }
23373 ac_cv_sizeof_signed_long_long=0
23378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
23379 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23383 cat >>confdefs.h <<_ACEOF
23384 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23389 # Obtain size of a 'unsigned long long' and define as
23390 # SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23391 # supported then the value defined is zero.
23392 # The cast to long int works around a bug in the HP C Compiler
23393 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23394 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23395 # This bug is HP SR number 8606223364.
23396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
23397 $as_echo_n "checking size of unsigned long long... " >&6; }
23398 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
23399 $as_echo_n "(cached) " >&6
23401 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
23404 if test "$ac_cv_type_unsigned_long_long" = yes; then
23405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23407 as_fn_error 77 "cannot compute sizeof (unsigned long long)
23408 See \`config.log' for more details" "$LINENO" 5; }
23410 ac_cv_sizeof_unsigned_long_long=0
23415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
23416 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23420 cat >>confdefs.h <<_ACEOF
23421 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23426 # Obtain size of off_t and define as SIZEOF_OFF_T
23427 # The cast to long int works around a bug in the HP C Compiler
23428 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23429 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23430 # This bug is HP SR number 8606223364.
23431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
23432 $as_echo_n "checking size of off_t... " >&6; }
23433 if ${ac_cv_sizeof_off_t+:} false; then :
23434 $as_echo_n "(cached) " >&6
23436 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
23439 if test "$ac_cv_type_off_t" = yes; then
23440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23442 as_fn_error 77 "cannot compute sizeof (off_t)
23443 See \`config.log' for more details" "$LINENO" 5; }
23445 ac_cv_sizeof_off_t=0
23450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
23451 $as_echo "$ac_cv_sizeof_off_t" >&6; }
23455 cat >>confdefs.h <<_ACEOF
23456 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23461 # Obtain size of size_t and define as SIZEOF_SIZE_T
23462 # The cast to long int works around a bug in the HP C Compiler
23463 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23464 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23465 # This bug is HP SR number 8606223364.
23466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
23467 $as_echo_n "checking size of size_t... " >&6; }
23468 if ${ac_cv_sizeof_size_t+:} false; then :
23469 $as_echo_n "(cached) " >&6
23471 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
23474 if test "$ac_cv_type_size_t" = yes; then
23475 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23476 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23477 as_fn_error 77 "cannot compute sizeof (size_t)
23478 See \`config.log' for more details" "$LINENO" 5; }
23480 ac_cv_sizeof_size_t=0
23485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
23486 $as_echo "$ac_cv_sizeof_size_t" >&6; }
23490 cat >>confdefs.h <<_ACEOF
23491 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23496 # Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23497 # The cast to long int works around a bug in the HP C Compiler
23498 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23499 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23500 # This bug is HP SR number 8606223364.
23501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23502 $as_echo_n "checking size of ssize_t... " >&6; }
23503 if ${ac_cv_sizeof_ssize_t+:} false; then :
23504 $as_echo_n "(cached) " >&6
23506 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23509 if test "$ac_cv_type_ssize_t" = yes; then
23510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23512 as_fn_error 77 "cannot compute sizeof (ssize_t)
23513 See \`config.log' for more details" "$LINENO" 5; }
23515 ac_cv_sizeof_ssize_t=0
23520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23521 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23525 cat >>confdefs.h <<_ACEOF
23526 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23531 # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23532 # The cast to long int works around a bug in the HP C Compiler
23533 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23534 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23535 # This bug is HP SR number 8606223364.
23536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
23537 $as_echo_n "checking size of unsigned int*... " >&6; }
23538 if ${ac_cv_sizeof_unsigned_intp+:} false; then :
23539 $as_echo_n "(cached) " >&6
23541 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then :
23544 if test "$ac_cv_type_unsigned_intp" = yes; then
23545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23547 as_fn_error 77 "cannot compute sizeof (unsigned int*)
23548 See \`config.log' for more details" "$LINENO" 5; }
23550 ac_cv_sizeof_unsigned_intp=0
23555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
23556 $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23560 cat >>confdefs.h <<_ACEOF
23561 #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23567 # Compute sized types for current CPU and compiler options.
23570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
23571 $as_echo_n "checking for signed 8-bit type... " >&6; }
23572 INT8_T='signed char'
23573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
23574 $as_echo "$INT8_T" >&6; }
23577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
23578 $as_echo_n "checking for unsigned 8-bit type... " >&6; }
23579 UINT8_T='unsigned char'
23580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
23581 $as_echo "$UINT8_T" >&6; }
23584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
23585 $as_echo_n "checking for signed 16-bit type... " >&6; }
23586 INT16_T='signed short'
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
23588 $as_echo "$INT16_T" >&6; }
23591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
23592 $as_echo_n "checking for unsigned 16-bit type... " >&6; }
23593 UINT16_T='unsigned short'
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
23595 $as_echo "$UINT16_T" >&6; }
23598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
23599 $as_echo_n "checking for signed 32-bit type... " >&6; }
23602 if test $ac_cv_sizeof_signed_int -eq 4; then
23603 INT32_T='signed int'
23605 elif test $ac_cv_sizeof_signed_long -eq 4; then
23606 INT32_T='signed long'
23609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
23610 $as_echo "$INT32_T" >&6; }
23614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
23615 $as_echo_n "checking for unsigned 32-bit type... " >&6; }
23618 if test $ac_cv_sizeof_unsigned_int -eq 4; then
23619 UINT32_T='unsigned int'
23621 elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23622 UINT32_T='unsigned long'
23625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
23626 $as_echo "$UINT32_T" >&6; }
23630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
23631 $as_echo_n "checking for signed 64-bit type... " >&6; }
23634 if test $ac_cv_sizeof_signed_long -eq 8; then
23635 INT64_T='signed long'
23637 elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23638 INT64_T='signed long long'
23641 case "${build_os}" in
23646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
23647 $as_echo "$INT64_T" >&6; }
23651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
23652 $as_echo_n "checking for unsigned 64-bit type... " >&6; }
23655 if test $ac_cv_sizeof_unsigned_long -eq 8; then
23656 UINT64_T='unsigned long'
23658 elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23659 UINT64_T='unsigned long long'
23662 case "${build_os}" in
23667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
23668 $as_echo "$UINT64_T" >&6; }
23672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
23673 $as_echo_n "checking for unsigned maximum type... " >&6; }
23676 if test "$UINT64_T" != 'none'; then
23677 UINTMAX_T=$UINT64_T
23678 UINTMAX_F=$UINT64_F
23679 elif test "$UINT32_T" != 'none'; then
23680 UINTMAX_T=$UINT32_T
23681 UINTMAX_F=$UINT32_F
23683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
23684 $as_echo "$UINTMAX_T" >&6; }
23688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
23689 $as_echo_n "checking for pointer difference type... " >&6; }
23692 if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23693 UINTPTR_T='unsigned long'
23695 elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23696 UINTPTR_T='unsigned long long'
23699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
23700 $as_echo "$UINTPTR_T" >&6; }
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
23705 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
23706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23707 /* end confdefs.h. */
23712 { const char *func = __func__; return(func != 0 ? 0 : 1); }
23717 if ac_fn_c_try_compile "$LINENO"; then :
23718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23719 $as_echo "yes" >&6; }
23721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23722 $as_echo "no" >&6; }
23723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
23724 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
23725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23726 /* end confdefs.h. */
23731 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23736 if ac_fn_c_try_compile "$LINENO"; then :
23737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23738 $as_echo "yes" >&6; }
23740 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
23743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23744 $as_echo "no" >&6; }
23746 $as_echo "#define __func__ __FILE__" >>confdefs.h
23749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23755 # Check for functions
23758 for ac_header in stdlib.h unistd.h
23760 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23761 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23762 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23763 cat >>confdefs.h <<_ACEOF
23764 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23771 for ac_func in getpagesize
23773 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
23774 if test "x$ac_cv_func_getpagesize" = xyes; then :
23775 cat >>confdefs.h <<_ACEOF
23776 #define HAVE_GETPAGESIZE 1
23782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23783 $as_echo_n "checking for working mmap file i/o... " >&6; }
23784 if ${magick_cv_func_mmap_fileio+:} false; then :
23785 $as_echo_n "(cached) " >&6
23787 if test "$cross_compiling" = yes; then :
23788 magick_cv_func_mmap_fileio=no
23790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23791 /* end confdefs.h. */
23792 $ac_includes_default
23793 /* malloc might have been renamed as rpl_malloc. */
23797 This test is derived from GNU Autoconf's similar macro.
23798 The purpose of this test is to verify that files may be memory
23799 mapped, and that memory mapping and file I/O are coherent.
23801 The test creates a test file, memory maps the file, updates
23802 the file using the memory map, and then reads the file using
23803 file I/O to verify that the file contains the updates.
23807 #include <sys/mman.h>
23809 #if !STDC_HEADERS && !HAVE_STDLIB_H
23813 /* This mess was copied from the GNU getpagesize.h. */
23814 #if !HAVE_GETPAGESIZE
23815 /* Assume that all systems that can run configure have sys/param.h. */
23816 # if !HAVE_SYS_PARAM_H
23817 # define HAVE_SYS_PARAM_H 1
23820 # ifdef _SC_PAGESIZE
23821 # define getpagesize() sysconf(_SC_PAGESIZE)
23822 # else /* no _SC_PAGESIZE */
23823 # if HAVE_SYS_PARAM_H
23824 # include <sys/param.h>
23825 # ifdef EXEC_PAGESIZE
23826 # define getpagesize() EXEC_PAGESIZE
23827 # else /* no EXEC_PAGESIZE */
23829 # define getpagesize() NBPG * CLSIZE
23832 # endif /* no CLSIZE */
23833 # else /* no NBPG */
23835 # define getpagesize() NBPC
23836 # else /* no NBPC */
23838 # define getpagesize() PAGESIZE
23839 # endif /* PAGESIZE */
23840 # endif /* no NBPC */
23841 # endif /* no NBPG */
23842 # endif /* no EXEC_PAGESIZE */
23843 # else /* no HAVE_SYS_PARAM_H */
23844 # define getpagesize() 8192 /* punt totally */
23845 # endif /* no HAVE_SYS_PARAM_H */
23846 # endif /* no _SC_PAGESIZE */
23848 #endif /* no HAVE_GETPAGESIZE */
23853 char *data, *data2, *data3;
23857 pagesize = getpagesize ();
23859 /* First, make a file with some known garbage in it. */
23860 data = (char *) malloc (pagesize);
23863 for (i = 0; i < pagesize; ++i)
23864 *(data + i) = rand ();
23866 fd = creat ("conftest.mmap", 0600);
23869 if (write (fd, data, pagesize) != pagesize)
23873 /* Mmap the file as read/write/shared and verify that we see the
23875 fd = open ("conftest.mmap", O_RDWR);
23878 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23881 for (i = 0; i < pagesize; ++i)
23882 if (*(data + i) != *(data2 + i))
23885 /* Finally, make sure that changes to the mapped area
23886 percolate back to the file as seen by read(). */
23887 for (i = 0; i < pagesize; ++i)
23888 *(data2 + i) = *(data2 + i) + 1;
23889 data3 = (char *) malloc (pagesize);
23892 if (read (fd, data3, pagesize) != pagesize)
23894 for (i = 0; i < pagesize; ++i)
23895 if (*(data2 + i) != *(data3 + i))
23901 if ac_fn_c_try_run "$LINENO"; then :
23902 magick_cv_func_mmap_fileio=yes
23904 magick_cv_func_mmap_fileio=no
23906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23907 conftest.$ac_objext conftest.beam conftest.$ac_ext
23911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23912 $as_echo "$magick_cv_func_mmap_fileio" >&6; }
23913 if test $magick_cv_func_mmap_fileio = yes; then
23915 $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23918 rm -f conftest.mmap
23920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
23921 $as_echo_n "checking whether closedir returns void... " >&6; }
23922 if ${ac_cv_func_closedir_void+:} false; then :
23923 $as_echo_n "(cached) " >&6
23925 if test "$cross_compiling" = yes; then :
23926 ac_cv_func_closedir_void=yes
23928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23929 /* end confdefs.h. */
23930 $ac_includes_default
23931 #include <$ac_header_dirent>
23932 #ifndef __cplusplus
23939 return closedir (opendir (".")) != 0;
23944 if ac_fn_c_try_run "$LINENO"; then :
23945 ac_cv_func_closedir_void=no
23947 ac_cv_func_closedir_void=yes
23949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23950 conftest.$ac_objext conftest.beam conftest.$ac_ext
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
23955 $as_echo "$ac_cv_func_closedir_void" >&6; }
23956 if test $ac_cv_func_closedir_void = yes; then
23958 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
23965 for ac_header in $ac_header_list
23967 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23968 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23970 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23971 cat >>confdefs.h <<_ACEOF
23972 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23986 for ac_func in getpagesize
23988 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
23989 if test "x$ac_cv_func_getpagesize" = xyes; then :
23990 cat >>confdefs.h <<_ACEOF
23991 #define HAVE_GETPAGESIZE 1
23997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
23998 $as_echo_n "checking for working mmap... " >&6; }
23999 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
24000 $as_echo_n "(cached) " >&6
24002 if test "$cross_compiling" = yes; then :
24003 ac_cv_func_mmap_fixed_mapped=no
24005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24006 /* end confdefs.h. */
24007 $ac_includes_default
24008 /* malloc might have been renamed as rpl_malloc. */
24011 /* Thanks to Mike Haertel and Jim Avera for this test.
24012 Here is a matrix of mmap possibilities:
24013 mmap private not fixed
24014 mmap private fixed at somewhere currently unmapped
24015 mmap private fixed at somewhere already mapped
24016 mmap shared not fixed
24017 mmap shared fixed at somewhere currently unmapped
24018 mmap shared fixed at somewhere already mapped
24019 For private mappings, we should verify that changes cannot be read()
24020 back from the file, nor mmap's back from the file at a different
24021 address. (There have been systems where private was not correctly
24022 implemented like the infamous i386 svr4.0, and systems where the
24023 VM page cache was not coherent with the file system buffer cache
24024 like early versions of FreeBSD and possibly contemporary NetBSD.)
24025 For shared mappings, we should conversely verify that changes get
24026 propagated back to all the places they're supposed to be.
24028 Grep wants private fixed already mapped.
24029 The main things grep needs to know about mmap are:
24030 * does it exist and is it safe to write into the mmap'd area
24031 * how to use it (BSD variants) */
24034 #include <sys/mman.h>
24036 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24040 /* This mess was copied from the GNU getpagesize.h. */
24041 #ifndef HAVE_GETPAGESIZE
24042 # ifdef _SC_PAGESIZE
24043 # define getpagesize() sysconf(_SC_PAGESIZE)
24044 # else /* no _SC_PAGESIZE */
24045 # ifdef HAVE_SYS_PARAM_H
24046 # include <sys/param.h>
24047 # ifdef EXEC_PAGESIZE
24048 # define getpagesize() EXEC_PAGESIZE
24049 # else /* no EXEC_PAGESIZE */
24051 # define getpagesize() NBPG * CLSIZE
24054 # endif /* no CLSIZE */
24055 # else /* no NBPG */
24057 # define getpagesize() NBPC
24058 # else /* no NBPC */
24060 # define getpagesize() PAGESIZE
24061 # endif /* PAGESIZE */
24062 # endif /* no NBPC */
24063 # endif /* no NBPG */
24064 # endif /* no EXEC_PAGESIZE */
24065 # else /* no HAVE_SYS_PARAM_H */
24066 # define getpagesize() 8192 /* punt totally */
24067 # endif /* no HAVE_SYS_PARAM_H */
24068 # endif /* no _SC_PAGESIZE */
24070 #endif /* no HAVE_GETPAGESIZE */
24075 char *data, *data2, *data3;
24076 const char *cdata2;
24080 pagesize = getpagesize ();
24082 /* First, make a file with some known garbage in it. */
24083 data = (char *) malloc (pagesize);
24086 for (i = 0; i < pagesize; ++i)
24087 *(data + i) = rand ();
24089 fd = creat ("conftest.mmap", 0600);
24092 if (write (fd, data, pagesize) != pagesize)
24096 /* Next, check that the tail of a page is zero-filled. File must have
24097 non-zero length, otherwise we risk SIGBUS for entire page. */
24098 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24102 if (write (fd2, cdata2, 1) != 1)
24104 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
24105 if (data2 == MAP_FAILED)
24107 for (i = 0; i < pagesize; ++i)
24111 if (munmap (data2, pagesize))
24114 /* Next, try to mmap the file at a fixed address which already has
24115 something else allocated at it. If we can, also make sure that
24116 we see the same garbage. */
24117 fd = open ("conftest.mmap", O_RDWR);
24120 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24121 MAP_PRIVATE | MAP_FIXED, fd, 0L))
24123 for (i = 0; i < pagesize; ++i)
24124 if (*(data + i) != *(data2 + i))
24127 /* Finally, make sure that changes to the mapped area do not
24128 percolate back to the file as seen by read(). (This is a bug on
24129 some variants of i386 svr4.0.) */
24130 for (i = 0; i < pagesize; ++i)
24131 *(data2 + i) = *(data2 + i) + 1;
24132 data3 = (char *) malloc (pagesize);
24135 if (read (fd, data3, pagesize) != pagesize)
24137 for (i = 0; i < pagesize; ++i)
24138 if (*(data + i) != *(data3 + i))
24144 if ac_fn_c_try_run "$LINENO"; then :
24145 ac_cv_func_mmap_fixed_mapped=yes
24147 ac_cv_func_mmap_fixed_mapped=no
24149 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24150 conftest.$ac_objext conftest.beam conftest.$ac_ext
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
24155 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24156 if test $ac_cv_func_mmap_fixed_mapped = yes; then
24158 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
24161 rm -f conftest.mmap conftest.txt
24163 for ac_header in vfork.h
24165 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24166 if test "x$ac_cv_header_vfork_h" = xyes; then :
24167 cat >>confdefs.h <<_ACEOF
24168 #define HAVE_VFORK_H 1
24175 for ac_func in fork vfork
24177 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24178 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24179 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24180 cat >>confdefs.h <<_ACEOF
24181 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24187 if test "x$ac_cv_func_fork" = xyes; then
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24189 $as_echo_n "checking for working fork... " >&6; }
24190 if ${ac_cv_func_fork_works+:} false; then :
24191 $as_echo_n "(cached) " >&6
24193 if test "$cross_compiling" = yes; then :
24194 ac_cv_func_fork_works=cross
24196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24197 /* end confdefs.h. */
24198 $ac_includes_default
24203 /* By Ruediger Kuhlmann. */
24204 return fork () < 0;
24210 if ac_fn_c_try_run "$LINENO"; then :
24211 ac_cv_func_fork_works=yes
24213 ac_cv_func_fork_works=no
24215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24216 conftest.$ac_objext conftest.beam conftest.$ac_ext
24220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
24221 $as_echo "$ac_cv_func_fork_works" >&6; }
24224 ac_cv_func_fork_works=$ac_cv_func_fork
24226 if test "x$ac_cv_func_fork_works" = xcross; then
24228 *-*-amigaos* | *-*-msdosdjgpp*)
24229 # Override, as these systems have only a dummy fork() stub
24230 ac_cv_func_fork_works=no
24233 ac_cv_func_fork_works=yes
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24237 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24239 ac_cv_func_vfork_works=$ac_cv_func_vfork
24240 if test "x$ac_cv_func_vfork" = xyes; then
24241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
24242 $as_echo_n "checking for working vfork... " >&6; }
24243 if ${ac_cv_func_vfork_works+:} false; then :
24244 $as_echo_n "(cached) " >&6
24246 if test "$cross_compiling" = yes; then :
24247 ac_cv_func_vfork_works=cross
24249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24250 /* end confdefs.h. */
24251 /* Thanks to Paul Eggert for this test. */
24252 $ac_includes_default
24253 #include <sys/wait.h>
24254 #ifdef HAVE_VFORK_H
24255 # include <vfork.h>
24257 /* On some sparc systems, changes by the child to local and incoming
24258 argument registers are propagated back to the parent. The compiler
24259 is told about this with #include <vfork.h>, but some compilers
24260 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24261 static variable whose address is put into a register that is
24262 clobbered by the vfork. */
24265 sparc_address_test (int arg)
24267 sparc_address_test (arg) int arg;
24270 static pid_t child;
24288 pid_t parent = getpid ();
24291 sparc_address_test (0);
24296 /* Here is another test for sparc vfork register problems. This
24297 test uses lots of local variables, at least as many local
24298 variables as main has allocated so far including compiler
24299 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24300 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24301 reuse the register of parent for one of the local variables,
24302 since it will think that parent can't possibly be used any more
24303 in this routine. Assigning to the local variable will thus
24304 munge parent in the parent process. */
24306 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24307 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24308 /* Convince the compiler that p..p7 are live; otherwise, it might
24309 use the same hardware register for all 8 local variables. */
24310 if (p != p1 || p != p2 || p != p3 || p != p4
24311 || p != p5 || p != p6 || p != p7)
24314 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24315 from child file descriptors. If the child closes a descriptor
24316 before it execs or exits, this munges the parent's descriptor
24317 as well. Test for this by closing stdout in the child. */
24318 _exit(close(fileno(stdout)) != 0);
24323 while (wait(&status) != child)
24326 /* Was there some problem with vforking? */
24329 /* Did the child fail? (This shouldn't happen.) */
24332 /* Did the vfork/compiler bug occur? */
24333 || parent != getpid()
24335 /* Did the file descriptor bug occur? */
24336 || fstat(fileno(stdout), &st) != 0
24341 if ac_fn_c_try_run "$LINENO"; then :
24342 ac_cv_func_vfork_works=yes
24344 ac_cv_func_vfork_works=no
24346 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24347 conftest.$ac_objext conftest.beam conftest.$ac_ext
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
24352 $as_echo "$ac_cv_func_vfork_works" >&6; }
24355 if test "x$ac_cv_func_fork_works" = xcross; then
24356 ac_cv_func_vfork_works=$ac_cv_func_vfork
24357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24358 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24361 if test "x$ac_cv_func_vfork_works" = xyes; then
24363 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
24367 $as_echo "#define vfork fork" >>confdefs.h
24370 if test "x$ac_cv_func_fork_works" = xyes; then
24372 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
24376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
24377 $as_echo_n "checking for working memcmp... " >&6; }
24378 if ${ac_cv_func_memcmp_working+:} false; then :
24379 $as_echo_n "(cached) " >&6
24381 if test "$cross_compiling" = yes; then :
24382 ac_cv_func_memcmp_working=no
24384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24385 /* end confdefs.h. */
24386 $ac_includes_default
24391 /* Some versions of memcmp are not 8-bit clean. */
24392 char c0 = '\100', c1 = '\200', c2 = '\201';
24393 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24396 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24397 or more and with at least one buffer not starting on a 4-byte boundary.
24398 William Lewis provided this test program. */
24403 for (i = 0; i < 4; i++)
24407 strcpy (a, "--------01111111");
24408 strcpy (b, "--------10000000");
24409 if (memcmp (a, b, 16) >= 0)
24419 if ac_fn_c_try_run "$LINENO"; then :
24420 ac_cv_func_memcmp_working=yes
24422 ac_cv_func_memcmp_working=no
24424 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24425 conftest.$ac_objext conftest.beam conftest.$ac_ext
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
24430 $as_echo "$ac_cv_func_memcmp_working" >&6; }
24431 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24432 *" memcmp.$ac_objext "* ) ;;
24433 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24438 for ac_header in sys/select.h sys/socket.h
24440 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24441 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24442 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24443 cat >>confdefs.h <<_ACEOF
24444 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
24452 $as_echo_n "checking types of arguments for select... " >&6; }
24453 if ${ac_cv_func_select_args+:} false; then :
24454 $as_echo_n "(cached) " >&6
24456 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24457 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24458 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
24459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24460 /* end confdefs.h. */
24461 $ac_includes_default
24462 #ifdef HAVE_SYS_SELECT_H
24463 # include <sys/select.h>
24465 #ifdef HAVE_SYS_SOCKET_H
24466 # include <sys/socket.h>
24472 extern int select ($ac_arg1,
24473 $ac_arg234, $ac_arg234, $ac_arg234,
24479 if ac_fn_c_try_compile "$LINENO"; then :
24480 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
24482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24486 # Provide a safe default value.
24487 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
24490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
24491 $as_echo "$ac_cv_func_select_args" >&6; }
24492 ac_save_IFS=$IFS; IFS=','
24493 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24497 cat >>confdefs.h <<_ACEOF
24498 #define SELECT_TYPE_ARG1 $1
24502 cat >>confdefs.h <<_ACEOF
24503 #define SELECT_TYPE_ARG234 ($2)
24507 cat >>confdefs.h <<_ACEOF
24508 #define SELECT_TYPE_ARG5 ($3)
24513 if ${ac_cv_func_setvbuf_reversed+:} false; then :
24514 $as_echo_n "(cached) " >&6
24516 ac_cv_func_setvbuf_reversed=no
24520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
24521 $as_echo_n "checking return type of signal handlers... " >&6; }
24522 if ${ac_cv_type_signal+:} false; then :
24523 $as_echo_n "(cached) " >&6
24525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24526 /* end confdefs.h. */
24527 #include <sys/types.h>
24528 #include <signal.h>
24533 return *(signal (0, 0)) (0) == 1;
24538 if ac_fn_c_try_compile "$LINENO"; then :
24539 ac_cv_type_signal=int
24541 ac_cv_type_signal=void
24543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
24546 $as_echo "$ac_cv_type_signal" >&6; }
24548 cat >>confdefs.h <<_ACEOF
24549 #define RETSIGTYPE $ac_cv_type_signal
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
24554 $as_echo_n "checking for working strtod... " >&6; }
24555 if ${ac_cv_func_strtod+:} false; then :
24556 $as_echo_n "(cached) " >&6
24558 if test "$cross_compiling" = yes; then :
24559 ac_cv_func_strtod=no
24561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24562 /* end confdefs.h. */
24564 $ac_includes_default
24572 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24573 char *string = " +69";
24576 value = strtod (string, &term);
24577 if (value != 69 || term != (string + 4))
24582 /* Under Solaris 2.4, strtod returns the wrong value for the
24583 terminating character under some conditions. */
24584 char *string = "NaN";
24586 strtod (string, &term);
24587 if (term != string && *(term - 1) == 0)
24594 if ac_fn_c_try_run "$LINENO"; then :
24595 ac_cv_func_strtod=yes
24597 ac_cv_func_strtod=no
24599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24600 conftest.$ac_objext conftest.beam conftest.$ac_ext
24604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
24605 $as_echo "$ac_cv_func_strtod" >&6; }
24606 if test $ac_cv_func_strtod = no; then
24607 case " $LIBOBJS " in
24608 *" strtod.$ac_objext "* ) ;;
24609 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24613 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
24614 if test "x$ac_cv_func_pow" = xyes; then :
24618 if test $ac_cv_func_pow = no; then
24619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
24620 $as_echo_n "checking for pow in -lm... " >&6; }
24621 if ${ac_cv_lib_m_pow+:} false; then :
24622 $as_echo_n "(cached) " >&6
24624 ac_check_lib_save_LIBS=$LIBS
24626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24627 /* end confdefs.h. */
24629 /* Override any GCC internal prototype to avoid an error.
24630 Use char because int might match the return type of a GCC
24631 builtin and then its argument prototype would still apply. */
24644 if ac_fn_c_try_link "$LINENO"; then :
24645 ac_cv_lib_m_pow=yes
24649 rm -f core conftest.err conftest.$ac_objext \
24650 conftest$ac_exeext conftest.$ac_ext
24651 LIBS=$ac_check_lib_save_LIBS
24653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
24654 $as_echo "$ac_cv_lib_m_pow" >&6; }
24655 if test "x$ac_cv_lib_m_pow" = xyes; then :
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
24659 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24666 for ac_func in vprintf
24668 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
24669 if test "x$ac_cv_func_vprintf" = xyes; then :
24670 cat >>confdefs.h <<_ACEOF
24671 #define HAVE_VPRINTF 1
24674 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
24675 if test "x$ac_cv_func__doprnt" = xyes; then :
24677 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
24687 # Find math library
24690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24691 $as_echo_n "checking for sqrt in -lm... " >&6; }
24692 if ${ac_cv_lib_m_sqrt+:} false; then :
24693 $as_echo_n "(cached) " >&6
24695 ac_check_lib_save_LIBS=$LIBS
24697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24698 /* end confdefs.h. */
24700 /* Override any GCC internal prototype to avoid an error.
24701 Use char because int might match the return type of a GCC
24702 builtin and then its argument prototype would still apply. */
24715 if ac_fn_c_try_link "$LINENO"; then :
24716 ac_cv_lib_m_sqrt=yes
24718 ac_cv_lib_m_sqrt=no
24720 rm -f core conftest.err conftest.$ac_objext \
24721 conftest$ac_exeext conftest.$ac_ext
24722 LIBS=$ac_check_lib_save_LIBS
24724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24725 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
24726 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
24730 LIBS="$MATH_LIBS $LIBS"
24733 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
24735 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24736 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24737 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24738 cat >>confdefs.h <<_ACEOF
24739 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24747 # Check for clock_gettime().
24749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
24750 $as_echo_n "checking for library containing clock_gettime... " >&6; }
24751 if ${ac_cv_search_clock_gettime+:} false; then :
24752 $as_echo_n "(cached) " >&6
24754 ac_func_search_save_LIBS=$LIBS
24755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24756 /* end confdefs.h. */
24758 /* Override any GCC internal prototype to avoid an error.
24759 Use char because int might match the return type of a GCC
24760 builtin and then its argument prototype would still apply. */
24764 char clock_gettime ();
24768 return clock_gettime ();
24773 for ac_lib in '' rt; do
24774 if test -z "$ac_lib"; then
24775 ac_res="none required"
24778 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24780 if ac_fn_c_try_link "$LINENO"; then :
24781 ac_cv_search_clock_gettime=$ac_res
24783 rm -f core conftest.err conftest.$ac_objext \
24785 if ${ac_cv_search_clock_gettime+:} false; then :
24789 if ${ac_cv_search_clock_gettime+:} false; then :
24792 ac_cv_search_clock_gettime=no
24794 rm conftest.$ac_ext
24795 LIBS=$ac_func_search_save_LIBS
24797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
24798 $as_echo "$ac_cv_search_clock_gettime" >&6; }
24799 ac_res=$ac_cv_search_clock_gettime
24800 if test "$ac_res" != no; then :
24801 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24804 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
24806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
24807 $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
24808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24809 /* end confdefs.h. */
24815 clockid_t clockType = CLOCK_REALTIME;
24820 if ac_fn_c_try_compile "$LINENO"; then :
24822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24823 $as_echo "yes" >&6; }
24825 $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
24829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24830 $as_echo "no" >&6; }
24833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24837 for ac_func in gettimeofday ftime
24839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24840 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24841 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24842 cat >>confdefs.h <<_ACEOF
24843 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24856 # Check for function prototypes
24860 ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
24861 #include <unistd.h>
24863 if test "x$ac_cv_have_decl_pread" = xyes; then :
24869 cat >>confdefs.h <<_ACEOF
24870 #define HAVE_DECL_PREAD $ac_have_decl
24872 ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
24873 #include <unistd.h>
24875 if test "x$ac_cv_have_decl_pwrite" = xyes; then :
24881 cat >>confdefs.h <<_ACEOF
24882 #define HAVE_DECL_PWRITE $ac_have_decl
24886 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
24887 #include <strings.h>
24889 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
24895 cat >>confdefs.h <<_ACEOF
24896 #define HAVE_DECL_STRLCPY $ac_have_decl
24900 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
24902 #include <stdarg.h>
24904 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
24910 cat >>confdefs.h <<_ACEOF
24911 #define HAVE_DECL_VSNPRINTF $ac_have_decl
24917 # C++ Support Tests (For Magick++)
24920 have_magick_plus_plus='no'
24921 if test "$with_magick_plus_plus" = 'yes'; then
24925 ac_cpp='$CXXCPP $CPPFLAGS'
24926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24931 # Full set of headers used...
24932 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
24933 # functional iomanip iosfwd iostream iterator list string strstream utility
24935 ac_cpp='$CXXCPP $CPPFLAGS'
24936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24941 ac_cpp='$CXXCPP $CPPFLAGS'
24942 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24943 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24944 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24945 if test -z "$CXX"; then
24946 if test -n "$CCC"; then
24949 if test -n "$ac_tool_prefix"; then
24950 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24952 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24953 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24955 $as_echo_n "checking for $ac_word... " >&6; }
24956 if ${ac_cv_prog_CXX+:} false; then :
24957 $as_echo_n "(cached) " >&6
24959 if test -n "$CXX"; then
24960 ac_cv_prog_CXX="$CXX" # Let the user override the test.
24962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24963 for as_dir in $PATH
24966 test -z "$as_dir" && as_dir=.
24967 for ac_exec_ext in '' $ac_executable_extensions; do
24968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24969 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
24970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24979 CXX=$ac_cv_prog_CXX
24980 if test -n "$CXX"; then
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
24982 $as_echo "$CXX" >&6; }
24984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24985 $as_echo "no" >&6; }
24989 test -n "$CXX" && break
24992 if test -z "$CXX"; then
24994 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24996 # Extract the first word of "$ac_prog", so it can be a program name with args.
24997 set dummy $ac_prog; ac_word=$2
24998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24999 $as_echo_n "checking for $ac_word... " >&6; }
25000 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
25001 $as_echo_n "(cached) " >&6
25003 if test -n "$ac_ct_CXX"; then
25004 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25007 for as_dir in $PATH
25010 test -z "$as_dir" && as_dir=.
25011 for ac_exec_ext in '' $ac_executable_extensions; do
25012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25013 ac_cv_prog_ac_ct_CXX="$ac_prog"
25014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25023 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25024 if test -n "$ac_ct_CXX"; then
25025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
25026 $as_echo "$ac_ct_CXX" >&6; }
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25029 $as_echo "no" >&6; }
25033 test -n "$ac_ct_CXX" && break
25036 if test "x$ac_ct_CXX" = x; then
25039 case $cross_compiling:$ac_tool_warned in
25041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25043 ac_tool_warned=yes ;;
25051 # Provide some information about the compiler.
25052 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
25055 for ac_option in --version -v -V -qversion; do
25056 { { ac_try="$ac_compiler $ac_option >&5"
25057 case "(($ac_try" in
25058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25059 *) ac_try_echo=$ac_try;;
25061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25062 $as_echo "$ac_try_echo"; } >&5
25063 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
25065 if test -s conftest.err; then
25067 ... rest of stderr output deleted ...
25068 10q' conftest.err >conftest.er1
25069 cat conftest.er1 >&5
25071 rm -f conftest.er1 conftest.err
25072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25073 test $ac_status = 0; }
25076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
25077 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
25078 if ${ac_cv_cxx_compiler_gnu+:} false; then :
25079 $as_echo_n "(cached) " >&6
25081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25082 /* end confdefs.h. */
25095 if ac_fn_cxx_try_compile "$LINENO"; then :
25096 ac_compiler_gnu=yes
25100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25101 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
25105 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25106 if test $ac_compiler_gnu = yes; then
25111 ac_test_CXXFLAGS=${CXXFLAGS+set}
25112 ac_save_CXXFLAGS=$CXXFLAGS
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
25114 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
25115 if ${ac_cv_prog_cxx_g+:} false; then :
25116 $as_echo_n "(cached) " >&6
25118 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25119 ac_cxx_werror_flag=yes
25120 ac_cv_prog_cxx_g=no
25122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25123 /* end confdefs.h. */
25133 if ac_fn_cxx_try_compile "$LINENO"; then :
25134 ac_cv_prog_cxx_g=yes
25137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25138 /* end confdefs.h. */
25148 if ac_fn_cxx_try_compile "$LINENO"; then :
25151 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25154 /* end confdefs.h. */
25164 if ac_fn_cxx_try_compile "$LINENO"; then :
25165 ac_cv_prog_cxx_g=yes
25167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25172 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
25175 $as_echo "$ac_cv_prog_cxx_g" >&6; }
25176 if test "$ac_test_CXXFLAGS" = set; then
25177 CXXFLAGS=$ac_save_CXXFLAGS
25178 elif test $ac_cv_prog_cxx_g = yes; then
25179 if test "$GXX" = yes; then
25185 if test "$GXX" = yes; then
25192 ac_cpp='$CXXCPP $CPPFLAGS'
25193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25197 depcc="$CXX" am_compiler_list=
25199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25200 $as_echo_n "checking dependency style of $depcc... " >&6; }
25201 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
25202 $as_echo_n "(cached) " >&6
25204 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25205 # We make a subdir and do the tests there. Otherwise we can end up
25206 # making bogus files that we don't know about and never remove. For
25207 # instance it was reported that on HP-UX the gcc test will end up
25208 # making a dummy file named `D' -- because `-MD' means `put the output
25211 # Copy depcomp to subdir because otherwise we won't find it if we're
25212 # using a relative directory.
25213 cp "$am_depcomp" conftest.dir
25215 # We will build objects and dependencies in a subdirectory because
25216 # it helps to detect inapplicable dependency modes. For instance
25217 # both Tru64's cc and ICC support -MD to output dependencies as a
25218 # side effect of compilation, but ICC will put the dependencies in
25219 # the current directory while Tru64 will put them in the object
25223 am_cv_CXX_dependencies_compiler_type=none
25224 if test "$am_compiler_list" = ""; then
25225 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25227 am__universal=false
25228 case " $depcc " in #(
25229 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25232 for depmode in $am_compiler_list; do
25233 # Setup a source with many dependencies, because some compilers
25234 # like to wrap large dependency lists on column 80 (with \), and
25235 # we should not choose a depcomp mode which is confused by this.
25237 # We need to recreate these files for each test, as the compiler may
25238 # overwrite some of them when testing with obscure command lines.
25239 # This happens at least with the AIX C compiler.
25241 for i in 1 2 3 4 5 6; do
25242 echo '#include "conftst'$i'.h"' >> sub/conftest.c
25243 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
25244 # Solaris 8's {/usr,}/bin/sh.
25245 touch sub/conftst$i.h
25247 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25249 # We check with `-c' and `-o' for the sake of the "dashmstdout"
25250 # mode. It turns out that the SunPro C++ compiler does not properly
25251 # handle `-M -o', and we need to detect this. Also, some Intel
25252 # versions had trouble with output in subdirs
25253 am__obj=sub/conftest.${OBJEXT-o}
25254 am__minus_obj="-o $am__obj"
25257 # This depmode causes a compiler race in universal mode.
25258 test "$am__universal" = false || continue
25261 # after this tag, mechanisms are not by side-effect, so they'll
25262 # only be used when explicitly requested
25263 if test "x$enable_dependency_tracking" = xyes; then
25269 msvisualcpp | msvcmsys)
25270 # This compiler won't grok `-c -o', but also, the minuso test has
25271 # not run yet. These depmodes are late enough in the game, and
25272 # so weak that their functioning should not be impacted.
25273 am__obj=conftest.${OBJEXT-o}
25278 if depmode=$depmode \
25279 source=sub/conftest.c object=$am__obj \
25280 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25281 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25282 >/dev/null 2>conftest.err &&
25283 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25284 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25285 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25286 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25287 # icc doesn't choke on unknown options, it will just issue warnings
25288 # or remarks (even with -Werror). So we grep stderr for any message
25289 # that says an option was ignored or not supported.
25290 # When given -MP, icc 7.0 and 7.1 complain thusly:
25291 # icc: Command line warning: ignoring option '-M'; no argument required
25292 # The diagnosis changed in icc 8.0:
25293 # icc: Command line remark: option '-MP' not supported
25294 if (grep 'ignoring option' conftest.err ||
25295 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25296 am_cv_CXX_dependencies_compiler_type=$depmode
25303 rm -rf conftest.dir
25305 am_cv_CXX_dependencies_compiler_type=none
25309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25310 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25311 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25314 test "x$enable_dependency_tracking" != xno \
25315 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25316 am__fastdepCXX_TRUE=
25317 am__fastdepCXX_FALSE='#'
25319 am__fastdepCXX_TRUE='#'
25320 am__fastdepCXX_FALSE=
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25325 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
25326 if ${ax_cv_cxx_bool+:} false; then :
25327 $as_echo_n "(cached) " >&6
25331 ac_cpp='$CXXCPP $CPPFLAGS'
25332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25337 /* end confdefs.h. */
25339 int f(int x){return 1;}
25340 int f(char x){return 1;}
25341 int f(bool x){return 1;}
25346 bool b = true; return f(b);
25351 if ac_fn_cxx_try_compile "$LINENO"; then :
25356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25358 ac_cpp='$CXXCPP $CPPFLAGS'
25359 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25360 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25361 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25366 $as_echo "$ax_cv_cxx_bool" >&6; }
25367 if test "$ax_cv_cxx_bool" = yes; then
25369 $as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25374 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
25375 if ${ax_cv_cxx_namespaces+:} false; then :
25376 $as_echo_n "(cached) " >&6
25380 ac_cpp='$CXXCPP $CPPFLAGS'
25381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25386 /* end confdefs.h. */
25387 namespace Outer { namespace Inner { int i = 0; }}
25391 using namespace Outer::Inner; return i;
25396 if ac_fn_cxx_try_compile "$LINENO"; then :
25397 ax_cv_cxx_namespaces=yes
25399 ax_cv_cxx_namespaces=no
25401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25403 ac_cpp='$CXXCPP $CPPFLAGS'
25404 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25405 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25406 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25411 $as_echo "$ax_cv_cxx_namespaces" >&6; }
25412 if test "$ax_cv_cxx_namespaces" = yes; then
25414 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25420 $as_echo_n "checking if g++ supports namespace std... " >&6; }
25421 if ${ax_cv_cxx_have_std_namespace+:} false; then :
25422 $as_echo_n "(cached) " >&6
25426 ac_cpp='$CXXCPP $CPPFLAGS'
25427 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25428 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25429 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25432 /* end confdefs.h. */
25433 #include <iostream>
25434 std::istream& is = std::cin;
25443 if ac_fn_cxx_try_compile "$LINENO"; then :
25444 ax_cv_cxx_have_std_namespace=yes
25446 ax_cv_cxx_have_std_namespace=no
25448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25450 ac_cpp='$CXXCPP $CPPFLAGS'
25451 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25452 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25453 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25458 $as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25459 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25461 $as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25466 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
25467 if ${ac_cv_cxx_have_std_libs+:} false; then :
25468 $as_echo_n "(cached) " >&6
25473 ac_cpp='$CXXCPP $CPPFLAGS'
25474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25479 /* end confdefs.h. */
25480 #include <iostream>
25484 #ifdef HAVE_NAMESPACES
25485 using namespace std;
25495 if ac_fn_cxx_try_compile "$LINENO"; then :
25496 ac_cv_cxx_have_std_libs=yes
25498 ac_cv_cxx_have_std_libs=no
25500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25502 ac_cpp='$CXXCPP $CPPFLAGS'
25503 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25504 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25505 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25510 $as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25511 if test "$ac_cv_cxx_have_std_libs" = yes; then
25513 $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25519 # Check whether --enable-openmp was given.
25520 if test "${enable_openmp+set}" = set; then :
25521 enableval=$enable_openmp;
25524 if test "$enable_openmp" != no; then
25525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25526 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
25527 if ${ac_cv_prog_cxx_openmp+:} false; then :
25528 $as_echo_n "(cached) " >&6
25530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25531 /* end confdefs.h. */
25537 int main () { return omp_get_num_threads (); }
25540 if ac_fn_cxx_try_link "$LINENO"; then :
25541 ac_cv_prog_cxx_openmp='none needed'
25543 ac_cv_prog_cxx_openmp='unsupported'
25544 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
25545 ac_save_CXXFLAGS=$CXXFLAGS
25546 CXXFLAGS="$CXXFLAGS $ac_option"
25547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25548 /* end confdefs.h. */
25554 int main () { return omp_get_num_threads (); }
25557 if ac_fn_cxx_try_link "$LINENO"; then :
25558 ac_cv_prog_cxx_openmp=$ac_option
25560 rm -f core conftest.err conftest.$ac_objext \
25561 conftest$ac_exeext conftest.$ac_ext
25562 CXXFLAGS=$ac_save_CXXFLAGS
25563 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25568 rm -f core conftest.err conftest.$ac_objext \
25569 conftest$ac_exeext conftest.$ac_ext
25571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
25572 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25573 case $ac_cv_prog_cxx_openmp in #(
25574 "none needed" | unsupported)
25577 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
25583 ac_cpp='$CPP $CPPFLAGS'
25584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
25590 $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25592 test $ax_cv_cxx_bool = 'yes' && \
25593 test $ax_cv_cxx_namespaces = 'yes' && \
25594 test $ac_cv_cxx_have_std_libs = 'yes' && \
25595 test $ax_cv_cxx_have_std_namespace = 'yes'; then
25596 have_magick_plus_plus='yes'
25598 have_magick_plus_plus='no (failed tests)'
25600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
25601 $as_echo "$have_magick_plus_plus" >&6; }
25604 if test "$have_magick_plus_plus" = 'yes'; then
25605 WITH_MAGICK_PLUS_PLUS_TRUE=
25606 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25608 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25609 WITH_MAGICK_PLUS_PLUS_FALSE=
25613 # Only check for delegate libraries in subdirectories if requested.
25614 if test "$enable_delegate_build" != 'no'; then
25615 # Check for delegate sub-directories and add -I & -L options as required.
25616 # This presumes that delegates are installed as detailed in the ImageMagick
25617 # README. If delegates are installed in a standard location where the
25618 # compiler will automatically find them then these options should not be
25622 # Most delegates have includes in the same directory as the library, but not all...
25625 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
25626 if test -d "$builddir/$dir"; then
25627 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25629 if test -d "$srcdirfull/$dir"; then
25630 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25636 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
25637 if test -d "$builddir/$dir/.libs"; then
25638 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25640 if test -d "$srcdirfull/$dir/.libs"; then
25641 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25644 if test -d "$builddir/$dir"; then
25645 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25647 if test -d "$srcdirfull/$dir"; then
25648 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25654 # Assume that delegate headers reside under same directory as ImageMagick
25655 # installation prefix.
25656 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25659 # Find the X11 RGB database
25661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
25662 $as_echo_n "checking for X11 configure files... " >&6; }
25663 if ${im_cv_x_configure+:} false; then :
25664 $as_echo_n "(cached) " >&6
25666 # Look for the header file in a standard set of common directories.
25667 # Check X11 before X11Rn because it is often a symlink to the current release.
25676 /usr/XFree86/lib/X11 \
25684 /usr/local/X11/lib \
25685 /usr/local/X11R4/lib \
25686 /usr/local/X11R5/lib \
25687 /usr/local/X11R6/lib \
25689 /usr/local/lib/X11 \
25690 /usr/local/lib/X11R4 \
25691 /usr/local/lib/X11R5 \
25692 /usr/local/lib/X11R6 \
25693 /usr/local/lib/X11R7 \
25694 /usr/local/x11r5/lib \
25695 /usr/lpp/Xamples/lib \
25697 /usr/openwin/share/lib \
25698 /usr/unsupported/lib \
25701 if test -f "$ac_dir/X11/rgb.txt"; then
25702 im_cv_x_configure="$ac_dir/X11/"
25704 elif test -f "$ac_dir/rgb.txt"; then
25705 im_cv_x_configure="$ac_dir/"
25711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
25712 $as_echo "$im_cv_x_configure" >&6; }
25713 X11_CONFIGURE_PATH="$im_cv_x_configure"
25714 case "${build_os}" in
25716 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25720 cat >>confdefs.h <<_ACEOF
25721 #define X11_CONFIGURE_PATH "$X11ConfigurePath"
25726 # Find OpenMP library
25729 if test "$enable_openmp" != 'no'; then
25730 if test "${GCC}" = "yes"; then
25731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
25732 $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
25733 if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
25734 $as_echo_n "(cached) " >&6
25736 ac_check_lib_save_LIBS=$LIBS
25737 LIBS="-lgomp $LIBS"
25738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25739 /* end confdefs.h. */
25741 /* Override any GCC internal prototype to avoid an error.
25742 Use char because int might match the return type of a GCC
25743 builtin and then its argument prototype would still apply. */
25747 char GOMP_parallel_start ();
25751 return GOMP_parallel_start ();
25756 if ac_fn_c_try_link "$LINENO"; then :
25757 ac_cv_lib_gomp_GOMP_parallel_start=yes
25759 ac_cv_lib_gomp_GOMP_parallel_start=no
25761 rm -f core conftest.err conftest.$ac_objext \
25762 conftest$ac_exeext conftest.$ac_ext
25763 LIBS=$ac_check_lib_save_LIBS
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
25766 $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
25767 if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
25772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
25773 $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
25774 if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
25775 $as_echo_n "(cached) " >&6
25777 ac_check_lib_save_LIBS=$LIBS
25778 LIBS="-lmtsk $LIBS"
25779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25780 /* end confdefs.h. */
25782 /* Override any GCC internal prototype to avoid an error.
25783 Use char because int might match the return type of a GCC
25784 builtin and then its argument prototype would still apply. */
25788 char sunw_mp_register_warn ();
25792 return sunw_mp_register_warn ();
25797 if ac_fn_c_try_link "$LINENO"; then :
25798 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25800 ac_cv_lib_mtsk_sunw_mp_register_warn=no
25802 rm -f core conftest.err conftest.$ac_objext \
25803 conftest$ac_exeext conftest.$ac_ext
25804 LIBS=$ac_check_lib_save_LIBS
25806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
25807 $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
25808 if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
25813 $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
25814 if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
25815 $as_echo_n "(cached) " >&6
25817 ac_check_lib_save_LIBS=$LIBS
25818 LIBS="-lxlsmp $LIBS"
25819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25820 /* end confdefs.h. */
25822 /* Override any GCC internal prototype to avoid an error.
25823 Use char because int might match the return type of a GCC
25824 builtin and then its argument prototype would still apply. */
25828 char _xlsmpFlush ();
25832 return _xlsmpFlush ();
25837 if ac_fn_c_try_link "$LINENO"; then :
25838 ac_cv_lib_xlsmp__xlsmpFlush=yes
25840 ac_cv_lib_xlsmp__xlsmpFlush=no
25842 rm -f core conftest.err conftest.$ac_objext \
25843 conftest$ac_exeext conftest.$ac_ext
25844 LIBS=$ac_check_lib_save_LIBS
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
25847 $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
25848 if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
25849 GOMP_LIBS="-lxlsmp"
25852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
25853 $as_echo_n "checking for mp_destroy in -lmp... " >&6; }
25854 if ${ac_cv_lib_mp_mp_destroy+:} false; then :
25855 $as_echo_n "(cached) " >&6
25857 ac_check_lib_save_LIBS=$LIBS
25859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25860 /* end confdefs.h. */
25862 /* Override any GCC internal prototype to avoid an error.
25863 Use char because int might match the return type of a GCC
25864 builtin and then its argument prototype would still apply. */
25868 char mp_destroy ();
25872 return mp_destroy ();
25877 if ac_fn_c_try_link "$LINENO"; then :
25878 ac_cv_lib_mp_mp_destroy=yes
25880 ac_cv_lib_mp_mp_destroy=no
25882 rm -f core conftest.err conftest.$ac_objext \
25883 conftest$ac_exeext conftest.$ac_ext
25884 LIBS=$ac_check_lib_save_LIBS
25886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
25887 $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
25888 if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
25891 # SGI IRIX 6.5 MIPSpro C/C++
25893 LIBS="$GOMP_LIBS $LIBS"
25898 # Find Posix threads library
25901 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
25903 if test "x$PTHREAD_LIBS" = "x"; then
25904 case "${host_cpu}-${host_os}" in
25910 ac_cpp='$CPP $CPPFLAGS'
25911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25915 magick_pthread_lib_ok=no
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25922 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
25923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25924 /* end confdefs.h. */
25925 #include <pthread.h>
25930 pthread_join(th, 0);
25931 pthread_attr_init(0);
25932 pthread_cleanup_push(0, 0);
25933 pthread_create(0,0,0,0);
25934 pthread_cleanup_pop(0);
25939 if ac_fn_c_try_link "$LINENO"; then :
25940 magick_pthread_lib_ok=yes
25942 rm -f core conftest.err conftest.$ac_objext \
25943 conftest$ac_exeext conftest.$ac_ext
25945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25946 $as_echo "${magick_pthread_lib_ok}" >&6; }
25947 if test "$magick_pthread_lib_ok" = yes
25959 ac_cpp='$CPP $CPPFLAGS'
25960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25968 for lib in pthread pthreads; do
25969 if test "x$PTHREAD_LIBS" = "x"; then
25974 ac_cpp='$CPP $CPPFLAGS'
25975 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25976 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25977 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25979 magick_pthread_lib_ok=no
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25986 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
25987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25988 /* end confdefs.h. */
25989 #include <pthread.h>
25994 pthread_join(th, 0);
25995 pthread_attr_init(0);
25996 pthread_cleanup_push(0, 0);
25997 pthread_create(0,0,0,0);
25998 pthread_cleanup_pop(0);
26003 if ac_fn_c_try_link "$LINENO"; then :
26004 magick_pthread_lib_ok=yes
26006 rm -f core conftest.err conftest.$ac_objext \
26007 conftest$ac_exeext conftest.$ac_ext
26009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26010 $as_echo "${magick_pthread_lib_ok}" >&6; }
26011 if test "$magick_pthread_lib_ok" = yes
26013 PTHREAD_LIBS=-l$lib
26023 ac_cpp='$CPP $CPPFLAGS'
26024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26032 THREAD_LIBS="$PTHREAD_LIBS"
26033 LIBS="$LIBS $THREAD_LIBS"
26042 if test "$with_umem" != 'no'; then
26043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
26044 $as_echo_n "checking for UMEM support ... " >&6; }
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26049 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
26050 if test "x$ac_cv_header_umem_h" = xyes; then :
26051 passed=`expr $passed + 1`
26053 failed=`expr $failed + 1`
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
26058 $as_echo_n "checking for umem_alloc in -lumem... " >&6; }
26059 if ${ac_cv_lib_umem_umem_alloc+:} false; then :
26060 $as_echo_n "(cached) " >&6
26062 ac_check_lib_save_LIBS=$LIBS
26063 LIBS="-lumem $LIBS"
26064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26065 /* end confdefs.h. */
26067 /* Override any GCC internal prototype to avoid an error.
26068 Use char because int might match the return type of a GCC
26069 builtin and then its argument prototype would still apply. */
26073 char umem_alloc ();
26077 return umem_alloc ();
26082 if ac_fn_c_try_link "$LINENO"; then :
26083 ac_cv_lib_umem_umem_alloc=yes
26085 ac_cv_lib_umem_umem_alloc=no
26087 rm -f core conftest.err conftest.$ac_objext \
26088 conftest$ac_exeext conftest.$ac_ext
26089 LIBS=$ac_check_lib_save_LIBS
26091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
26092 $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
26093 if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
26094 passed=`expr $passed + 1`
26096 failed=`expr $failed + 1`
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
26100 $as_echo_n "checking for umem_free in -lumem... " >&6; }
26101 if ${ac_cv_lib_umem_umem_free+:} false; then :
26102 $as_echo_n "(cached) " >&6
26104 ac_check_lib_save_LIBS=$LIBS
26105 LIBS="-lumem $LIBS"
26106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26107 /* end confdefs.h. */
26109 /* Override any GCC internal prototype to avoid an error.
26110 Use char because int might match the return type of a GCC
26111 builtin and then its argument prototype would still apply. */
26119 return umem_free ();
26124 if ac_fn_c_try_link "$LINENO"; then :
26125 ac_cv_lib_umem_umem_free=yes
26127 ac_cv_lib_umem_umem_free=no
26129 rm -f core conftest.err conftest.$ac_objext \
26130 conftest$ac_exeext conftest.$ac_ext
26131 LIBS=$ac_check_lib_save_LIBS
26133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
26134 $as_echo "$ac_cv_lib_umem_umem_free" >&6; }
26135 if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
26136 passed=`expr $passed + 1`
26138 failed=`expr $failed + 1`
26141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
26142 $as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26143 if test $passed -gt 0; then
26144 if test $failed -gt 0; then
26145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26146 $as_echo "no -- some components failed test" >&6; }
26147 have_umem='no (failed tests)'
26150 LIBS="$UMEM_LIBS $LIBS"
26152 $as_echo "#define HasUMEM 1" >>confdefs.h
26154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26155 $as_echo "yes" >&6; }
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26160 $as_echo "no" >&6; }
26163 if test "$have_umem" = 'yes'; then
26174 # Add support for ccmalloc memory debugging library if requested
26178 if test "$enable_ccmalloc" = 'yes'; then
26179 # Extract the first word of "ccmalloc", so it can be a program name with args.
26180 set dummy ccmalloc; ac_word=$2
26181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26182 $as_echo_n "checking for $ac_word... " >&6; }
26183 if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
26184 $as_echo_n "(cached) " >&6
26186 case $CCMALLOCDelegate in
26188 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26192 for as_dir in $PATH
26195 test -z "$as_dir" && as_dir=.
26196 for ac_exec_ext in '' $ac_executable_extensions; do
26197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26198 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
26199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26209 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26210 if test -n "$CCMALLOCDelegate"; then
26211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
26212 $as_echo "$CCMALLOCDelegate" >&6; }
26214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26215 $as_echo "no" >&6; }
26219 if test -n "$CCMALLOCDelegate"; then
26220 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26222 # Assume that gcc is used with ccmalloc.
26223 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
26224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
26225 $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
26226 if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
26227 $as_echo_n "(cached) " >&6
26229 ac_check_lib_save_LIBS=$LIBS
26230 LIBS="-lccmalloc -ldl $LIBS"
26231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26232 /* end confdefs.h. */
26234 /* Override any GCC internal prototype to avoid an error.
26235 Use char because int might match the return type of a GCC
26236 builtin and then its argument prototype would still apply. */
26240 char ccmalloc_malloc ();
26244 return ccmalloc_malloc ();
26249 if ac_fn_c_try_link "$LINENO"; then :
26250 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26252 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
26254 rm -f core conftest.err conftest.$ac_objext \
26255 conftest$ac_exeext conftest.$ac_ext
26256 LIBS=$ac_check_lib_save_LIBS
26258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
26259 $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
26260 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
26261 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26264 if test -n "$CCMALLOC_LIBS"; then
26266 LIBS="$LIBS $CCMALLOC_LIBS"
26267 have_ccmalloc='yes'
26275 # Add support for efence memory debugging library if requested
26277 if test "$enable_efence" = 'yes'; then
26278 EFENCE_LIBS='-lefence'
26279 LIBS="$EFENCE_LIBS $LIBS"
26288 # Check whether --with-bzlib was given.
26289 if test "${with_bzlib+set}" = set; then :
26290 withval=$with_bzlib; with_bzlib=$withval
26296 if test "$with_bzlib" != 'yes'; then
26297 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26301 if test "$with_bzlib" != 'no'; then
26303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26304 $as_echo "-------------------------------------------------------------" >&6; }
26305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
26306 $as_echo_n "checking for BZLIB... " >&6; }
26307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26312 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
26313 if test "x$ac_cv_header_bzlib_h" = xyes; then :
26314 passed=`expr $passed + 1`
26316 failed=`expr $failed + 1`
26320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
26321 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
26322 if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
26323 $as_echo_n "(cached) " >&6
26325 ac_check_lib_save_LIBS=$LIBS
26327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26328 /* end confdefs.h. */
26330 /* Override any GCC internal prototype to avoid an error.
26331 Use char because int might match the return type of a GCC
26332 builtin and then its argument prototype would still apply. */
26336 char BZ2_bzDecompress ();
26340 return BZ2_bzDecompress ();
26345 if ac_fn_c_try_link "$LINENO"; then :
26346 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26348 ac_cv_lib_bz2_BZ2_bzDecompress=no
26350 rm -f core conftest.err conftest.$ac_objext \
26351 conftest$ac_exeext conftest.$ac_ext
26352 LIBS=$ac_check_lib_save_LIBS
26354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
26355 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
26356 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
26357 found_libbz=`expr $found_libbz + 1`
26360 if test "$native_win32_build" = 'yes'; then
26361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
26362 $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
26363 if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
26364 $as_echo_n "(cached) " >&6
26366 ac_check_lib_save_LIBS=$LIBS
26368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26369 /* end confdefs.h. */
26371 /* Override any GCC internal prototype to avoid an error.
26372 Use char because int might match the return type of a GCC
26373 builtin and then its argument prototype would still apply. */
26377 char _imp__BZ2_decompress ();
26381 return _imp__BZ2_decompress ();
26386 if ac_fn_c_try_link "$LINENO"; then :
26387 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26389 ac_cv_lib_bz2__imp__BZ2_decompress=no
26391 rm -f core conftest.err conftest.$ac_objext \
26392 conftest$ac_exeext conftest.$ac_ext
26393 LIBS=$ac_check_lib_save_LIBS
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
26396 $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
26397 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
26398 found_libbz=`expr $found_libbz + 1`
26402 if test $found_libbz -gt 0; then
26403 passed=`expr $passed + 1`
26405 failed=`expr $failed + 1`
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
26408 $as_echo_n "checking if BZLIB package is complete... " >&6; }
26409 if test $passed -gt 0; then
26410 if test $failed -gt 0; then
26411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26412 $as_echo "no -- some components failed test" >&6; }
26413 have_bzlib='no (failed tests)'
26416 LIBS="$BZLIB_LIBS $LIBS"
26418 $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
26420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26421 $as_echo "yes" >&6; }
26425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26426 $as_echo "no" >&6; }
26429 if test "$have_bzlib" = 'yes'; then
26430 BZLIB_DELEGATE_TRUE=
26431 BZLIB_DELEGATE_FALSE='#'
26433 BZLIB_DELEGATE_TRUE='#'
26434 BZLIB_DELEGATE_FALSE=
26440 # Find the X11 include and library directories.
26446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
26447 $as_echo_n "checking for X... " >&6; }
26450 # Check whether --with-x was given.
26451 if test "${with_x+set}" = set; then :
26455 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26456 if test "x$with_x" = xno; then
26457 # The user explicitly disabled X.
26460 case $x_includes,$x_libraries in #(
26461 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
26462 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
26463 $as_echo_n "(cached) " >&6
26465 # One or both of the vars are not set, and there is no cached value.
26466 ac_x_includes=no ac_x_libraries=no
26467 rm -f -r conftest.dir
26468 if mkdir conftest.dir; then
26470 cat >Imakefile <<'_ACEOF'
26472 @echo incroot='${INCROOT}'
26474 @echo usrlibdir='${USRLIBDIR}'
26476 @echo libdir='${LIBDIR}'
26478 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
26479 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
26480 for ac_var in incroot usrlibdir libdir; do
26481 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26483 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26484 for ac_extension in a so sl dylib la dll; do
26485 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26486 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26487 ac_im_usrlibdir=$ac_im_libdir; break
26490 # Screen out bogus values from the imake configuration. They are
26491 # bogus both because they are the default anyway, and because
26492 # using them would break gcc on systems where it needs fixed includes.
26493 case $ac_im_incroot in
26494 /usr/include) ac_x_includes= ;;
26495 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26497 case $ac_im_usrlibdir in
26498 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26499 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26503 rm -f -r conftest.dir
26506 # Standard set of common directories for X headers.
26507 # Check X11 before X11Rn because it is often a symlink to the current release.
26521 /usr/local/X11/include
26522 /usr/local/X11R7/include
26523 /usr/local/X11R6/include
26524 /usr/local/X11R5/include
26525 /usr/local/X11R4/include
26527 /usr/local/include/X11
26528 /usr/local/include/X11R7
26529 /usr/local/include/X11R6
26530 /usr/local/include/X11R5
26531 /usr/local/include/X11R4
26535 /usr/XFree86/include/X11
26539 /usr/unsupported/include
26540 /usr/athena/include
26541 /usr/local/x11r5/include
26542 /usr/lpp/Xamples/include
26544 /usr/openwin/include
26545 /usr/openwin/share/include'
26547 if test "$ac_x_includes" = no; then
26548 # Guess where to find include files, by looking for Xlib.h.
26549 # First, try using that file with no special directory specified.
26550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26551 /* end confdefs.h. */
26552 #include <X11/Xlib.h>
26554 if ac_fn_c_try_cpp "$LINENO"; then :
26555 # We can compile using X headers with no special include directory.
26558 for ac_dir in $ac_x_header_dirs; do
26559 if test -r "$ac_dir/X11/Xlib.h"; then
26560 ac_x_includes=$ac_dir
26565 rm -f conftest.err conftest.i conftest.$ac_ext
26566 fi # $ac_x_includes = no
26568 if test "$ac_x_libraries" = no; then
26569 # Check for the libraries.
26570 # See if we find them without any special options.
26571 # Don't add to $LIBS permanently.
26574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26575 /* end confdefs.h. */
26576 #include <X11/Xlib.h>
26585 if ac_fn_c_try_link "$LINENO"; then :
26587 # We can link X programs with no special library path.
26591 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26593 # Don't even attempt the hair of trying to link an X program!
26594 for ac_extension in a so sl dylib la dll; do
26595 if test -r "$ac_dir/libX11.$ac_extension"; then
26596 ac_x_libraries=$ac_dir
26602 rm -f core conftest.err conftest.$ac_objext \
26603 conftest$ac_exeext conftest.$ac_ext
26604 fi # $ac_x_libraries = no
26606 case $ac_x_includes,$ac_x_libraries in #(
26607 no,* | *,no | *\'*)
26608 # Didn't find X, or a directory has "'" in its name.
26609 ac_cv_have_x="have_x=no";; #(
26611 # Record where we found X for the cache.
26612 ac_cv_have_x="have_x=yes\
26613 ac_x_includes='$ac_x_includes'\
26614 ac_x_libraries='$ac_x_libraries'"
26620 eval "$ac_cv_have_x"
26623 if test "$have_x" != yes; then
26624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
26625 $as_echo "$have_x" >&6; }
26628 # If each of the values was on the command line, it overrides each guess.
26629 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26630 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26631 # Update the cache value to reflect the command line values.
26632 ac_cv_have_x="have_x=yes\
26633 ac_x_includes='$x_includes'\
26634 ac_x_libraries='$x_libraries'"
26635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
26636 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26639 if test "$no_x" = yes; then
26640 # Not all programs may use this symbol, but it does not hurt to define it.
26642 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
26644 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26646 if test -n "$x_includes"; then
26647 X_CFLAGS="$X_CFLAGS -I$x_includes"
26650 # It would also be nice to do this for all -L options, not just this one.
26651 if test -n "$x_libraries"; then
26652 X_LIBS="$X_LIBS -L$x_libraries"
26653 # For Solaris; some versions of Sun CC require a space after -R and
26654 # others require no space. Words are not sufficient . . . .
26655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
26656 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
26657 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26658 ac_xsave_c_werror_flag=$ac_c_werror_flag
26659 ac_c_werror_flag=yes
26660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26661 /* end confdefs.h. */
26671 if ac_fn_c_try_link "$LINENO"; then :
26672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26673 $as_echo "no" >&6; }
26674 X_LIBS="$X_LIBS -R$x_libraries"
26676 LIBS="$ac_xsave_LIBS -R $x_libraries"
26677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26678 /* end confdefs.h. */
26688 if ac_fn_c_try_link "$LINENO"; then :
26689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26690 $as_echo "yes" >&6; }
26691 X_LIBS="$X_LIBS -R $x_libraries"
26693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
26694 $as_echo "neither works" >&6; }
26696 rm -f core conftest.err conftest.$ac_objext \
26697 conftest$ac_exeext conftest.$ac_ext
26699 rm -f core conftest.err conftest.$ac_objext \
26700 conftest$ac_exeext conftest.$ac_ext
26701 ac_c_werror_flag=$ac_xsave_c_werror_flag
26702 LIBS=$ac_xsave_LIBS
26705 # Check for system-dependent libraries X programs must link with.
26706 # Do this before checking for the system-independent R6 libraries
26707 # (-lICE), since we may need -lsocket or whatever for X linking.
26709 if test "$ISC" = yes; then
26710 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26712 # Martyn Johnson says this is needed for Ultrix, if the X
26713 # libraries were built with DECnet support. And Karl Berry says
26714 # the Alpha needs dnet_stub (dnet does not exist).
26715 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
26716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26717 /* end confdefs.h. */
26719 /* Override any GCC internal prototype to avoid an error.
26720 Use char because int might match the return type of a GCC
26721 builtin and then its argument prototype would still apply. */
26725 char XOpenDisplay ();
26729 return XOpenDisplay ();
26734 if ac_fn_c_try_link "$LINENO"; then :
26737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
26738 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
26739 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
26740 $as_echo_n "(cached) " >&6
26742 ac_check_lib_save_LIBS=$LIBS
26743 LIBS="-ldnet $LIBS"
26744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26745 /* end confdefs.h. */
26747 /* Override any GCC internal prototype to avoid an error.
26748 Use char because int might match the return type of a GCC
26749 builtin and then its argument prototype would still apply. */
26757 return dnet_ntoa ();
26762 if ac_fn_c_try_link "$LINENO"; then :
26763 ac_cv_lib_dnet_dnet_ntoa=yes
26765 ac_cv_lib_dnet_dnet_ntoa=no
26767 rm -f core conftest.err conftest.$ac_objext \
26768 conftest$ac_exeext conftest.$ac_ext
26769 LIBS=$ac_check_lib_save_LIBS
26771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26772 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
26773 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
26774 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26777 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
26779 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
26780 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
26781 $as_echo_n "(cached) " >&6
26783 ac_check_lib_save_LIBS=$LIBS
26784 LIBS="-ldnet_stub $LIBS"
26785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26786 /* end confdefs.h. */
26788 /* Override any GCC internal prototype to avoid an error.
26789 Use char because int might match the return type of a GCC
26790 builtin and then its argument prototype would still apply. */
26798 return dnet_ntoa ();
26803 if ac_fn_c_try_link "$LINENO"; then :
26804 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26806 ac_cv_lib_dnet_stub_dnet_ntoa=no
26808 rm -f core conftest.err conftest.$ac_objext \
26809 conftest$ac_exeext conftest.$ac_ext
26810 LIBS=$ac_check_lib_save_LIBS
26812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26813 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
26814 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
26815 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26820 rm -f core conftest.err conftest.$ac_objext \
26821 conftest$ac_exeext conftest.$ac_ext
26822 LIBS="$ac_xsave_LIBS"
26824 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26825 # to get the SysV transport functions.
26826 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26828 # The nsl library prevents programs from opening the X display
26829 # on Irix 5.2, according to T.E. Dickey.
26830 # The functions gethostbyname, getservbyname, and inet_addr are
26831 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26832 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
26833 if test "x$ac_cv_func_gethostbyname" = xyes; then :
26837 if test $ac_cv_func_gethostbyname = no; then
26838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
26839 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
26840 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
26841 $as_echo_n "(cached) " >&6
26843 ac_check_lib_save_LIBS=$LIBS
26845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26846 /* end confdefs.h. */
26848 /* Override any GCC internal prototype to avoid an error.
26849 Use char because int might match the return type of a GCC
26850 builtin and then its argument prototype would still apply. */
26854 char gethostbyname ();
26858 return gethostbyname ();
26863 if ac_fn_c_try_link "$LINENO"; then :
26864 ac_cv_lib_nsl_gethostbyname=yes
26866 ac_cv_lib_nsl_gethostbyname=no
26868 rm -f core conftest.err conftest.$ac_objext \
26869 conftest$ac_exeext conftest.$ac_ext
26870 LIBS=$ac_check_lib_save_LIBS
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
26873 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
26874 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
26875 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26878 if test $ac_cv_lib_nsl_gethostbyname = no; then
26879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
26880 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
26881 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
26882 $as_echo_n "(cached) " >&6
26884 ac_check_lib_save_LIBS=$LIBS
26886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26887 /* end confdefs.h. */
26889 /* Override any GCC internal prototype to avoid an error.
26890 Use char because int might match the return type of a GCC
26891 builtin and then its argument prototype would still apply. */
26895 char gethostbyname ();
26899 return gethostbyname ();
26904 if ac_fn_c_try_link "$LINENO"; then :
26905 ac_cv_lib_bsd_gethostbyname=yes
26907 ac_cv_lib_bsd_gethostbyname=no
26909 rm -f core conftest.err conftest.$ac_objext \
26910 conftest$ac_exeext conftest.$ac_ext
26911 LIBS=$ac_check_lib_save_LIBS
26913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
26914 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
26915 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
26916 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26922 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26923 # socket/setsockopt and other routines are undefined under SCO ODT
26924 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26925 # on later versions), says Simon Leinen: it contains gethostby*
26926 # variants that don't use the name server (or something). -lsocket
26927 # must be given before -lnsl if both are needed. We assume that
26928 # if connect needs -lnsl, so does gethostbyname.
26929 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
26930 if test "x$ac_cv_func_connect" = xyes; then :
26934 if test $ac_cv_func_connect = no; then
26935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
26936 $as_echo_n "checking for connect in -lsocket... " >&6; }
26937 if ${ac_cv_lib_socket_connect+:} false; then :
26938 $as_echo_n "(cached) " >&6
26940 ac_check_lib_save_LIBS=$LIBS
26941 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26943 /* end confdefs.h. */
26945 /* Override any GCC internal prototype to avoid an error.
26946 Use char because int might match the return type of a GCC
26947 builtin and then its argument prototype would still apply. */
26960 if ac_fn_c_try_link "$LINENO"; then :
26961 ac_cv_lib_socket_connect=yes
26963 ac_cv_lib_socket_connect=no
26965 rm -f core conftest.err conftest.$ac_objext \
26966 conftest$ac_exeext conftest.$ac_ext
26967 LIBS=$ac_check_lib_save_LIBS
26969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
26970 $as_echo "$ac_cv_lib_socket_connect" >&6; }
26971 if test "x$ac_cv_lib_socket_connect" = xyes; then :
26972 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26977 # Guillermo Gomez says -lposix is necessary on A/UX.
26978 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
26979 if test "x$ac_cv_func_remove" = xyes; then :
26983 if test $ac_cv_func_remove = no; then
26984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
26985 $as_echo_n "checking for remove in -lposix... " >&6; }
26986 if ${ac_cv_lib_posix_remove+:} false; then :
26987 $as_echo_n "(cached) " >&6
26989 ac_check_lib_save_LIBS=$LIBS
26990 LIBS="-lposix $LIBS"
26991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26992 /* end confdefs.h. */
26994 /* Override any GCC internal prototype to avoid an error.
26995 Use char because int might match the return type of a GCC
26996 builtin and then its argument prototype would still apply. */
27009 if ac_fn_c_try_link "$LINENO"; then :
27010 ac_cv_lib_posix_remove=yes
27012 ac_cv_lib_posix_remove=no
27014 rm -f core conftest.err conftest.$ac_objext \
27015 conftest$ac_exeext conftest.$ac_ext
27016 LIBS=$ac_check_lib_save_LIBS
27018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
27019 $as_echo "$ac_cv_lib_posix_remove" >&6; }
27020 if test "x$ac_cv_lib_posix_remove" = xyes; then :
27021 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27026 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
27027 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
27028 if test "x$ac_cv_func_shmat" = xyes; then :
27032 if test $ac_cv_func_shmat = no; then
27033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
27034 $as_echo_n "checking for shmat in -lipc... " >&6; }
27035 if ${ac_cv_lib_ipc_shmat+:} false; then :
27036 $as_echo_n "(cached) " >&6
27038 ac_check_lib_save_LIBS=$LIBS
27040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27041 /* end confdefs.h. */
27043 /* Override any GCC internal prototype to avoid an error.
27044 Use char because int might match the return type of a GCC
27045 builtin and then its argument prototype would still apply. */
27058 if ac_fn_c_try_link "$LINENO"; then :
27059 ac_cv_lib_ipc_shmat=yes
27061 ac_cv_lib_ipc_shmat=no
27063 rm -f core conftest.err conftest.$ac_objext \
27064 conftest$ac_exeext conftest.$ac_ext
27065 LIBS=$ac_check_lib_save_LIBS
27067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
27068 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
27069 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
27070 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27076 # Check for libraries that X11R6 Xt/Xaw programs need.
27077 ac_save_LDFLAGS=$LDFLAGS
27078 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27079 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27080 # check for ICE first), but we must link in the order -lSM -lICE or
27081 # we get undefined symbols. So assume we have SM if we have ICE.
27082 # These have to be linked with before -lX11, unlike the other
27083 # libraries we check for below, so use a different variable.
27084 # John Interrante, Karl Berry
27085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
27086 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
27087 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
27088 $as_echo_n "(cached) " >&6
27090 ac_check_lib_save_LIBS=$LIBS
27091 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
27092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27093 /* end confdefs.h. */
27095 /* Override any GCC internal prototype to avoid an error.
27096 Use char because int might match the return type of a GCC
27097 builtin and then its argument prototype would still apply. */
27101 char IceConnectionNumber ();
27105 return IceConnectionNumber ();
27110 if ac_fn_c_try_link "$LINENO"; then :
27111 ac_cv_lib_ICE_IceConnectionNumber=yes
27113 ac_cv_lib_ICE_IceConnectionNumber=no
27115 rm -f core conftest.err conftest.$ac_objext \
27116 conftest$ac_exeext conftest.$ac_ext
27117 LIBS=$ac_check_lib_save_LIBS
27119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
27120 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
27121 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
27122 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27125 LDFLAGS=$ac_save_LDFLAGS
27129 if test "$no_x" != 'yes'; then
27130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27131 $as_echo "-------------------------------------------------------------" >&6; }
27132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
27133 $as_echo_n "checking for X11... " >&6; }
27134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27136 LDFLAGS="$LDFLAGS $X_LIBS"
27137 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27138 LIBS="$X11_LIBS $LIBS"
27139 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27142 $as_echo "#define X11_DELEGATE 1" >>confdefs.h
27145 # Check for X11 shared memory extension
27147 # shmctl is required to support the shared memory extension
27148 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
27149 if test "x$ac_cv_func_shmctl" = xyes; then :
27153 if test "$have_shmctl" != 'yes'; then
27155 LIBS="$LIBS -lcygipc"
27156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27157 /* end confdefs.h. */
27159 /* Override any GCC internal prototype to avoid an error.
27160 Use char because int might match the return type of a GCC
27161 builtin and then its argument prototype would still apply. */
27174 if ac_fn_c_try_link "$LINENO"; then :
27175 have_shmctl='yes'; IPC_LIBS='-lcygipc'
27177 rm -f core conftest.err conftest.$ac_objext \
27178 conftest$ac_exeext conftest.$ac_ext
27182 if test "$have_shmctl" = 'yes'; then
27183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
27184 $as_echo_n "checking for XShmAttach in -lXext... " >&6; }
27185 if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
27186 $as_echo_n "(cached) " >&6
27188 ac_check_lib_save_LIBS=$LIBS
27189 LIBS="-lXext $LIBS"
27190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27191 /* end confdefs.h. */
27193 /* Override any GCC internal prototype to avoid an error.
27194 Use char because int might match the return type of a GCC
27195 builtin and then its argument prototype would still apply. */
27199 char XShmAttach ();
27203 return XShmAttach ();
27208 if ac_fn_c_try_link "$LINENO"; then :
27209 ac_cv_lib_Xext_XShmAttach=yes
27211 ac_cv_lib_Xext_XShmAttach=no
27213 rm -f core conftest.err conftest.$ac_objext \
27214 conftest$ac_exeext conftest.$ac_ext
27215 LIBS=$ac_check_lib_save_LIBS
27217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
27218 $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
27219 if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
27220 XEXT_LIBS='-lXext' ;
27221 $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
27228 # Check for X11 shape extension
27230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
27231 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
27232 if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
27233 $as_echo_n "(cached) " >&6
27235 ac_check_lib_save_LIBS=$LIBS
27236 LIBS="-lXext $LIBS"
27237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27238 /* end confdefs.h. */
27240 /* Override any GCC internal prototype to avoid an error.
27241 Use char because int might match the return type of a GCC
27242 builtin and then its argument prototype would still apply. */
27246 char XShapeCombineMask ();
27250 return XShapeCombineMask ();
27255 if ac_fn_c_try_link "$LINENO"; then :
27256 ac_cv_lib_Xext_XShapeCombineMask=yes
27258 ac_cv_lib_Xext_XShapeCombineMask=no
27260 rm -f core conftest.err conftest.$ac_objext \
27261 conftest$ac_exeext conftest.$ac_ext
27262 LIBS=$ac_check_lib_save_LIBS
27264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
27265 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
27266 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
27267 XEXT_LIBS='-lXext' ;
27268 $as_echo "#define HAVE_SHAPE 1" >>confdefs.h
27272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
27273 $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
27274 if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
27275 $as_echo_n "(cached) " >&6
27277 ac_check_lib_save_LIBS=$LIBS
27279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27280 /* end confdefs.h. */
27282 /* Override any GCC internal prototype to avoid an error.
27283 Use char because int might match the return type of a GCC
27284 builtin and then its argument prototype would still apply. */
27288 char XtSetEventDispatcher ();
27292 return XtSetEventDispatcher ();
27297 if ac_fn_c_try_link "$LINENO"; then :
27298 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27300 ac_cv_lib_Xt_XtSetEventDispatcher=no
27302 rm -f core conftest.err conftest.$ac_objext \
27303 conftest$ac_exeext conftest.$ac_ext
27304 LIBS=$ac_check_lib_save_LIBS
27306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
27307 $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
27308 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
27312 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27314 if test "$no_x" != 'yes'; then
27319 if test "$have_x" = 'yes'; then
27321 X11_DELEGATE_FALSE='#'
27323 X11_DELEGATE_TRUE='#'
27324 X11_DELEGATE_FALSE=
27335 # Check whether --with-zlib was given.
27336 if test "${with_zlib+set}" = set; then :
27337 withval=$with_zlib; with_zlib=$withval
27343 if test "$with_zlib" != 'yes'; then
27344 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27349 if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
27350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27351 $as_echo "-------------------------------------------------------------" >&6; }
27352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
27353 $as_echo_n "checking for ZLIB... " >&6; }
27354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27359 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
27360 if test "x$ac_cv_header_zconf_h" = xyes; then :
27361 passed=`expr $passed + 1`
27363 failed=`expr $failed + 1`
27367 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
27368 if test "x$ac_cv_header_zlib_h" = xyes; then :
27369 passed=`expr $passed + 1`
27371 failed=`expr $failed + 1`
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
27376 $as_echo_n "checking for compress in -lz... " >&6; }
27377 if ${ac_cv_lib_z_compress+:} false; then :
27378 $as_echo_n "(cached) " >&6
27380 ac_check_lib_save_LIBS=$LIBS
27382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27383 /* end confdefs.h. */
27385 /* Override any GCC internal prototype to avoid an error.
27386 Use char because int might match the return type of a GCC
27387 builtin and then its argument prototype would still apply. */
27395 return compress ();
27400 if ac_fn_c_try_link "$LINENO"; then :
27401 ac_cv_lib_z_compress=yes
27403 ac_cv_lib_z_compress=no
27405 rm -f core conftest.err conftest.$ac_objext \
27406 conftest$ac_exeext conftest.$ac_ext
27407 LIBS=$ac_check_lib_save_LIBS
27409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
27410 $as_echo "$ac_cv_lib_z_compress" >&6; }
27411 if test "x$ac_cv_lib_z_compress" = xyes; then :
27412 passed=`expr $passed + 1`
27414 failed=`expr $failed + 1`
27417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
27418 $as_echo_n "checking for uncompress in -lz... " >&6; }
27419 if ${ac_cv_lib_z_uncompress+:} false; then :
27420 $as_echo_n "(cached) " >&6
27422 ac_check_lib_save_LIBS=$LIBS
27424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27425 /* end confdefs.h. */
27427 /* Override any GCC internal prototype to avoid an error.
27428 Use char because int might match the return type of a GCC
27429 builtin and then its argument prototype would still apply. */
27433 char uncompress ();
27437 return uncompress ();
27442 if ac_fn_c_try_link "$LINENO"; then :
27443 ac_cv_lib_z_uncompress=yes
27445 ac_cv_lib_z_uncompress=no
27447 rm -f core conftest.err conftest.$ac_objext \
27448 conftest$ac_exeext conftest.$ac_ext
27449 LIBS=$ac_check_lib_save_LIBS
27451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
27452 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
27453 if test "x$ac_cv_lib_z_uncompress" = xyes; then :
27454 passed=`expr $passed + 1`
27456 failed=`expr $failed + 1`
27459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
27460 $as_echo_n "checking for deflate in -lz... " >&6; }
27461 if ${ac_cv_lib_z_deflate+:} false; then :
27462 $as_echo_n "(cached) " >&6
27464 ac_check_lib_save_LIBS=$LIBS
27466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27467 /* end confdefs.h. */
27469 /* Override any GCC internal prototype to avoid an error.
27470 Use char because int might match the return type of a GCC
27471 builtin and then its argument prototype would still apply. */
27484 if ac_fn_c_try_link "$LINENO"; then :
27485 ac_cv_lib_z_deflate=yes
27487 ac_cv_lib_z_deflate=no
27489 rm -f core conftest.err conftest.$ac_objext \
27490 conftest$ac_exeext conftest.$ac_ext
27491 LIBS=$ac_check_lib_save_LIBS
27493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
27494 $as_echo "$ac_cv_lib_z_deflate" >&6; }
27495 if test "x$ac_cv_lib_z_deflate" = xyes; then :
27496 passed=`expr $passed + 1`
27498 failed=`expr $failed + 1`
27501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
27502 $as_echo_n "checking for inflate in -lz... " >&6; }
27503 if ${ac_cv_lib_z_inflate+:} false; then :
27504 $as_echo_n "(cached) " >&6
27506 ac_check_lib_save_LIBS=$LIBS
27508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27509 /* end confdefs.h. */
27511 /* Override any GCC internal prototype to avoid an error.
27512 Use char because int might match the return type of a GCC
27513 builtin and then its argument prototype would still apply. */
27526 if ac_fn_c_try_link "$LINENO"; then :
27527 ac_cv_lib_z_inflate=yes
27529 ac_cv_lib_z_inflate=no
27531 rm -f core conftest.err conftest.$ac_objext \
27532 conftest$ac_exeext conftest.$ac_ext
27533 LIBS=$ac_check_lib_save_LIBS
27535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
27536 $as_echo "$ac_cv_lib_z_inflate" >&6; }
27537 if test "x$ac_cv_lib_z_inflate" = xyes; then :
27538 passed=`expr $passed + 1`
27540 failed=`expr $failed + 1`
27543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
27544 $as_echo_n "checking for gzseek in -lz... " >&6; }
27545 if ${ac_cv_lib_z_gzseek+:} false; then :
27546 $as_echo_n "(cached) " >&6
27548 ac_check_lib_save_LIBS=$LIBS
27550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27551 /* end confdefs.h. */
27553 /* Override any GCC internal prototype to avoid an error.
27554 Use char because int might match the return type of a GCC
27555 builtin and then its argument prototype would still apply. */
27568 if ac_fn_c_try_link "$LINENO"; then :
27569 ac_cv_lib_z_gzseek=yes
27571 ac_cv_lib_z_gzseek=no
27573 rm -f core conftest.err conftest.$ac_objext \
27574 conftest$ac_exeext conftest.$ac_ext
27575 LIBS=$ac_check_lib_save_LIBS
27577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
27578 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
27579 if test "x$ac_cv_lib_z_gzseek" = xyes; then :
27580 passed=`expr $passed + 1`
27582 failed=`expr $failed + 1`
27585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
27586 $as_echo_n "checking for gztell in -lz... " >&6; }
27587 if ${ac_cv_lib_z_gztell+:} false; then :
27588 $as_echo_n "(cached) " >&6
27590 ac_check_lib_save_LIBS=$LIBS
27592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27593 /* end confdefs.h. */
27595 /* Override any GCC internal prototype to avoid an error.
27596 Use char because int might match the return type of a GCC
27597 builtin and then its argument prototype would still apply. */
27610 if ac_fn_c_try_link "$LINENO"; then :
27611 ac_cv_lib_z_gztell=yes
27613 ac_cv_lib_z_gztell=no
27615 rm -f core conftest.err conftest.$ac_objext \
27616 conftest$ac_exeext conftest.$ac_ext
27617 LIBS=$ac_check_lib_save_LIBS
27619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
27620 $as_echo "$ac_cv_lib_z_gztell" >&6; }
27621 if test "x$ac_cv_lib_z_gztell" = xyes; then :
27622 passed=`expr $passed + 1`
27624 failed=`expr $failed + 1`
27627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
27628 $as_echo_n "checking if ZLIB package is complete... " >&6; }
27629 if test $passed -gt 0; then
27630 if test $failed -gt 0; then
27631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27632 $as_echo "no -- some components failed test" >&6; }
27633 have_zlib='no (failed tests)'
27636 LIBS="$ZLIB_LIBS $LIBS"
27638 $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
27640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27641 $as_echo "yes" >&6; }
27645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27646 $as_echo "no" >&6; }
27649 if test "$have_zlib" = 'yes'; then
27650 ZLIB_DELEGATE_TRUE=
27651 ZLIB_DELEGATE_FALSE='#'
27653 ZLIB_DELEGATE_TRUE='#'
27654 ZLIB_DELEGATE_FALSE=
27660 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27663 if test "$enable_profiling" = 'yes'; then
27664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
27665 $as_echo_n "checking for dlopen in -ldl... " >&6; }
27666 if ${ac_cv_lib_dl_dlopen+:} false; then :
27667 $as_echo_n "(cached) " >&6
27669 ac_check_lib_save_LIBS=$LIBS
27671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27672 /* end confdefs.h. */
27674 /* Override any GCC internal prototype to avoid an error.
27675 Use char because int might match the return type of a GCC
27676 builtin and then its argument prototype would still apply. */
27689 if ac_fn_c_try_link "$LINENO"; then :
27690 ac_cv_lib_dl_dlopen=yes
27692 ac_cv_lib_dl_dlopen=no
27694 rm -f core conftest.err conftest.$ac_objext \
27695 conftest$ac_exeext conftest.$ac_ext
27696 LIBS=$ac_check_lib_save_LIBS
27698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
27699 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
27700 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
27704 LIBS="$LIB_DL $LIBS"
27710 # Check for Autotrace delegate library.
27713 # Check whether --with-autotrace was given.
27714 if test "${with_autotrace+set}" = set; then :
27715 withval=$with_autotrace; with_autotrace=$withval
27717 with_autotrace='no'
27721 if test "$with_autotrace" != 'yes'; then
27722 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27725 have_autotrace='no'
27726 AUTOTRACE_CFLAGS=""
27729 if test "x$with_autotrace" = "xyes"; then
27730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27731 $as_echo "-------------------------------------------------------------" >&6; }
27734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27735 $as_echo_n "checking for AUTOTRACE... " >&6; }
27737 if test -n "$AUTOTRACE_CFLAGS"; then
27738 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27739 elif test -n "$PKG_CONFIG"; then
27740 if test -n "$PKG_CONFIG" && \
27741 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27742 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27745 test $ac_status = 0; }; then
27746 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27753 if test -n "$AUTOTRACE_LIBS"; then
27754 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27755 elif test -n "$PKG_CONFIG"; then
27756 if test -n "$PKG_CONFIG" && \
27757 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27758 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27761 test $ac_status = 0; }; then
27762 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27772 if test $pkg_failed = yes; then
27774 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27775 _pkg_short_errors_supported=yes
27777 _pkg_short_errors_supported=no
27779 if test $_pkg_short_errors_supported = yes; then
27780 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27782 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27784 # Put the nasty error message in config.log where it belongs
27785 echo "$AUTOTRACE_PKG_ERRORS" >&5
27787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27788 $as_echo "no" >&6; }
27790 elif test $pkg_failed = untried; then
27793 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27794 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27796 $as_echo "yes" >&6; }
27799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27803 if test "$have_autotrace" = 'yes'; then
27806 $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
27808 if test "$with_modules" = 'no'; then
27809 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27813 if test "$have_autotrace" = 'yes'; then
27814 AUTOTRACE_DELEGATE_TRUE=
27815 AUTOTRACE_DELEGATE_FALSE='#'
27817 AUTOTRACE_DELEGATE_TRUE='#'
27818 AUTOTRACE_DELEGATE_FALSE=
27826 # Check for Display Postscript delegate library.
27829 # Check whether --with-dps was given.
27830 if test "${with_dps+set}" = set; then :
27831 withval=$with_dps; with_dps=$withval
27837 if test "$with_dps" != 'yes'; then
27838 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27843 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
27844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27845 $as_echo "-------------------------------------------------------------" >&6; }
27846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
27847 $as_echo_n "checking for DPS... " >&6; }
27848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27852 PERSIST_CPPFLAGS="$CPPFLAGS"
27853 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
27854 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
27855 if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
27856 passed=`expr $passed + 1`
27858 failed=`expr $failed + 1`
27863 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
27864 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
27865 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
27866 # ImageMagick itself doesn't use -lXt.
27869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
27870 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
27871 if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
27872 $as_echo_n "(cached) " >&6
27874 ac_check_lib_save_LIBS=$LIBS
27876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27877 /* end confdefs.h. */
27879 /* Override any GCC internal prototype to avoid an error.
27880 Use char because int might match the return type of a GCC
27881 builtin and then its argument prototype would still apply. */
27885 char DPSInitialize ();
27889 return DPSInitialize ();
27894 if ac_fn_c_try_link "$LINENO"; then :
27895 ac_cv_lib_dps_DPSInitialize=yes
27897 ac_cv_lib_dps_DPSInitialize=no
27899 rm -f core conftest.err conftest.$ac_objext \
27900 conftest$ac_exeext conftest.$ac_ext
27901 LIBS=$ac_check_lib_save_LIBS
27903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
27904 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
27905 if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
27911 if test "$have_libdps" != 'yes'; then
27912 # Unset cache variable so we can try again.
27913 unset ac_cv_lib_dps_DPSInitialize
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
27915 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
27916 if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
27917 $as_echo_n "(cached) " >&6
27919 ac_check_lib_save_LIBS=$LIBS
27920 LIBS="-ldps -lXt $LIBS"
27921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27922 /* end confdefs.h. */
27924 /* Override any GCC internal prototype to avoid an error.
27925 Use char because int might match the return type of a GCC
27926 builtin and then its argument prototype would still apply. */
27930 char DPSInitialize ();
27934 return DPSInitialize ();
27939 if ac_fn_c_try_link "$LINENO"; then :
27940 ac_cv_lib_dps_DPSInitialize=yes
27942 ac_cv_lib_dps_DPSInitialize=no
27944 rm -f core conftest.err conftest.$ac_objext \
27945 conftest$ac_exeext conftest.$ac_ext
27946 LIBS=$ac_check_lib_save_LIBS
27948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
27949 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
27950 if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
27956 if test "$have_libdps" = 'yes'; then
27960 if test "$have_libdps" = 'yes'; then
27961 passed=`expr $passed + 1`
27963 failed=`expr $failed + 1`
27965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
27966 $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
27967 if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
27968 $as_echo_n "(cached) " >&6
27970 ac_check_lib_save_LIBS=$LIBS
27971 LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
27972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27973 /* end confdefs.h. */
27975 /* Override any GCC internal prototype to avoid an error.
27976 Use char because int might match the return type of a GCC
27977 builtin and then its argument prototype would still apply. */
27981 char XDPSPixelsPerPoint ();
27985 return XDPSPixelsPerPoint ();
27990 if ac_fn_c_try_link "$LINENO"; then :
27991 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
27993 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
27995 rm -f core conftest.err conftest.$ac_objext \
27996 conftest$ac_exeext conftest.$ac_ext
27997 LIBS=$ac_check_lib_save_LIBS
27999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
28000 $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
28001 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
28002 passed=`expr $passed + 1`
28004 failed=`expr $failed + 1`
28007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
28008 $as_echo_n "checking if DPS package is complete... " >&6; }
28009 if test $passed -gt 0; then
28010 if test $failed -gt 0; then
28011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28012 $as_echo "no -- some components failed test" >&6; }
28013 have_dps='no (failed tests)'
28014 CPPFLAGS="$PERSIST_CPPFLAGS"
28016 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28017 LIBS="$DPS_LIBS $LIBS"
28019 $as_echo "#define DPS_DELEGATE 1" >>confdefs.h
28021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28022 $as_echo "yes" >&6; }
28026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28027 $as_echo "no" >&6; }
28028 CPPFLAGS=$PERSIST_CPPFLAGS
28031 if test "$have_dps" = 'yes'; then
28033 DPS_DELEGATE_FALSE='#'
28035 DPS_DELEGATE_TRUE='#'
28036 DPS_DELEGATE_FALSE=
28043 # Check for DJVU delegate library.
28046 # Check whether --with-djvu was given.
28047 if test "${with_djvu+set}" = set; then :
28048 withval=$with_djvu; with_djvu=$withval
28054 if test "$with_djvu" != 'yes'; then
28055 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28060 if test "$with_djvu" != 'no'; then
28061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28062 $as_echo "-------------------------------------------------------------" >&6; }
28063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
28064 $as_echo_n "checking for DJVU... " >&6; }
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28069 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
28070 if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
28071 passed=`expr $passed + 1`
28073 failed=`expr $failed + 1`
28077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
28078 $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
28079 if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
28080 $as_echo_n "(cached) " >&6
28082 ac_check_lib_save_LIBS=$LIBS
28083 LIBS="-ldjvulibre $LIBS"
28084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28085 /* end confdefs.h. */
28087 /* Override any GCC internal prototype to avoid an error.
28088 Use char because int might match the return type of a GCC
28089 builtin and then its argument prototype would still apply. */
28093 char ddjvu_context_create ();
28097 return ddjvu_context_create ();
28102 if ac_fn_c_try_link "$LINENO"; then :
28103 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28105 ac_cv_lib_djvulibre_ddjvu_context_create=no
28107 rm -f core conftest.err conftest.$ac_objext \
28108 conftest$ac_exeext conftest.$ac_ext
28109 LIBS=$ac_check_lib_save_LIBS
28111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
28112 $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
28113 if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
28114 passed=`expr $passed + 1`
28116 failed=`expr $failed + 1`
28119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
28120 $as_echo_n "checking if DJVU package is complete... " >&6; }
28121 if test $passed -gt 0; then
28122 if test $failed -gt 0; then
28123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28124 $as_echo "no -- some components failed test" >&6; }
28125 have_djvu='no (failed tests)'
28127 DJVU_LIBS='-ldjvulibre'
28128 LIBS="$DJVU_LIBS $LIBS"
28130 $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
28132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28133 $as_echo "yes" >&6; }
28137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28138 $as_echo "no" >&6; }
28141 if test "$have_djvu" = 'yes'; then
28142 DJVU_DELEGATE_TRUE=
28143 DJVU_DELEGATE_FALSE='#'
28145 DJVU_DELEGATE_TRUE='#'
28146 DJVU_DELEGATE_FALSE=
28153 # Set DejaVu font directory.
28156 # Check whether --with-dejavu-font-dir was given.
28157 if test "${with_dejavu_font_dir+set}" = set; then :
28158 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28160 with_dejavu_font_dir='default'
28164 if test "$with_dejavu_font_dir" != 'default'; then
28165 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28170 # Check for FFTW delegate library.
28173 # Check whether --with-fftw was given.
28174 if test "${with_fftw+set}" = set; then :
28175 withval=$with_fftw; with_fftw=$withval
28181 if test "$with_fftw" != 'yes'; then
28182 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28187 if test "$with_fftw" != 'no'; then
28188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28189 $as_echo "-------------------------------------------------------------" >&6; }
28190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28191 $as_echo_n "checking for FFTW... " >&6; }
28192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28196 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28197 if test "x$ac_cv_header_fftw3_h" = xyes; then :
28198 passed=`expr $passed + 1`
28200 failed=`expr $failed + 1`
28204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28205 $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28206 if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28207 $as_echo_n "(cached) " >&6
28209 ac_check_lib_save_LIBS=$LIBS
28210 LIBS="-lfftw3 $LIBS"
28211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28212 /* end confdefs.h. */
28214 /* Override any GCC internal prototype to avoid an error.
28215 Use char because int might match the return type of a GCC
28216 builtin and then its argument prototype would still apply. */
28220 char fftw_execute ();
28224 return fftw_execute ();
28229 if ac_fn_c_try_link "$LINENO"; then :
28230 ac_cv_lib_fftw3_fftw_execute=yes
28232 ac_cv_lib_fftw3_fftw_execute=no
28234 rm -f core conftest.err conftest.$ac_objext \
28235 conftest$ac_exeext conftest.$ac_ext
28236 LIBS=$ac_check_lib_save_LIBS
28238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28239 $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28240 if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28241 passed=`expr $passed + 1`
28243 failed=`expr $failed + 1`
28246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28247 $as_echo_n "checking if FFTW package is complete... " >&6; }
28248 if test $passed -gt 0; then
28249 if test $failed -gt 0; then
28250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28251 $as_echo "no -- some components failed test" >&6; }
28252 have_fftw='no (failed tests)'
28254 FFTW_LIBS='-lfftw3'
28255 LIBS="$FFTW_LIBS $LIBS"
28257 $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
28259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28260 $as_echo "yes" >&6; }
28264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28265 $as_echo "no" >&6; }
28268 if test "$have_fftw" = 'yes'; then
28269 FFTW_DELEGATE_TRUE=
28270 FFTW_DELEGATE_FALSE='#'
28272 FFTW_DELEGATE_TRUE='#'
28273 FFTW_DELEGATE_FALSE=
28280 # Check for FlashPIX delegate library.
28283 # Check whether --with-fpx was given.
28284 if test "${with_fpx+set}" = set; then :
28285 withval=$with_fpx; with_fpx=$withval
28291 if test "$with_fpx" != 'yes'; then
28292 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28297 if test "$with_fpx" != 'no'; then
28298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28299 $as_echo "-------------------------------------------------------------" >&6; }
28300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
28301 $as_echo_n "checking for FlashPIX... " >&6; }
28302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28307 ac_cpp='$CXXCPP $CPPFLAGS'
28308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28313 ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
28314 if test "x$ac_cv_header_fpxlib_h" = xyes; then :
28315 passed=`expr $passed + 1`
28317 failed=`expr $failed + 1`
28321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
28322 $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
28323 if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
28324 $as_echo_n "(cached) " >&6
28326 ac_check_lib_save_LIBS=$LIBS
28328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28329 /* end confdefs.h. */
28331 /* Override any GCC internal prototype to avoid an error.
28332 Use char because int might match the return type of a GCC
28333 builtin and then its argument prototype would still apply. */
28337 char FPX_OpenImageByFilename ();
28341 return FPX_OpenImageByFilename ();
28346 if ac_fn_cxx_try_link "$LINENO"; then :
28347 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28349 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
28351 rm -f core conftest.err conftest.$ac_objext \
28352 conftest$ac_exeext conftest.$ac_ext
28353 LIBS=$ac_check_lib_save_LIBS
28355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
28356 $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
28357 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
28358 passed=`expr $passed + 1`
28360 failed=`expr $failed + 1`
28364 ac_cpp='$CPP $CPPFLAGS'
28365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
28370 $as_echo_n "checking if FlashPIX package is complete... " >&6; }
28371 if test $passed -gt 0; then
28372 if test $failed -gt 0; then
28373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28374 $as_echo "no -- some components failed test" >&6; }
28375 have_fpx='no (failed tests)'
28379 $as_echo "#define FPX_DELEGATE 1" >>confdefs.h
28381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28382 $as_echo "yes" >&6; }
28387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28388 $as_echo "no" >&6; }
28391 if test "$have_fpx" = 'yes'; then
28393 FPX_DELEGATE_FALSE='#'
28395 FPX_DELEGATE_TRUE='#'
28396 FPX_DELEGATE_FALSE=
28403 # Check for fontconfig delegate library.
28406 # Check whether --with-fontconfig was given.
28407 if test "${with_fontconfig+set}" = set; then :
28408 withval=$with_fontconfig; with_fontconfig=$withval
28410 with_fontconfig=$have_x
28414 if test "$with_fontconfig" != 'yes'; then
28415 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28418 have_fontconfig='no'
28419 FONTCONFIG_CFLAGS=""
28422 if test "x$with_fontconfig" = "xyes"; then
28423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28424 $as_echo "-------------------------------------------------------------" >&6; }
28427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28428 $as_echo_n "checking for FONTCONFIG... " >&6; }
28430 if test -n "$FONTCONFIG_CFLAGS"; then
28431 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28432 elif test -n "$PKG_CONFIG"; then
28433 if test -n "$PKG_CONFIG" && \
28434 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28435 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28438 test $ac_status = 0; }; then
28439 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28446 if test -n "$FONTCONFIG_LIBS"; then
28447 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28448 elif test -n "$PKG_CONFIG"; then
28449 if test -n "$PKG_CONFIG" && \
28450 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28451 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28454 test $ac_status = 0; }; then
28455 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28465 if test $pkg_failed = yes; then
28467 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28468 _pkg_short_errors_supported=yes
28470 _pkg_short_errors_supported=no
28472 if test $_pkg_short_errors_supported = yes; then
28473 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28475 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28477 # Put the nasty error message in config.log where it belongs
28478 echo "$FONTCONFIG_PKG_ERRORS" >&5
28480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28481 $as_echo "no" >&6; }
28483 elif test $pkg_failed = untried; then
28486 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28487 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28489 $as_echo "yes" >&6; }
28490 have_fontconfig=yes
28492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28496 if test "$have_fontconfig" = 'yes'; then
28498 $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
28500 if test "$with_modules" = 'no'; then
28501 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
28505 if test "$have_fontconfig" = 'yes'; then
28506 FONTCONFIG_DELEGATE_TRUE=
28507 FONTCONFIG_DELEGATE_FALSE='#'
28509 FONTCONFIG_DELEGATE_TRUE='#'
28510 FONTCONFIG_DELEGATE_FALSE=
28518 # Check for freetype delegate library.
28521 # Check whether --with-freetype was given.
28522 if test "${with_freetype+set}" = set; then :
28523 withval=$with_freetype; with_freetype=$withval
28525 with_freetype='yes'
28530 if test "$with_freetype" != 'yes'; then
28531 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28536 if test "$with_freetype" != 'no'; then
28537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28538 $as_echo "-------------------------------------------------------------" >&6; }
28539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
28540 $as_echo_n "checking for FreeType 2.0... " >&6; }
28541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28545 PERSIST_LIBS="$LIBS"
28546 PERSIST_CPPFLAGS="$CPPFLAGS"
28547 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
28551 for ac_prog in freetype-config
28553 # Extract the first word of "$ac_prog", so it can be a program name with args.
28554 set dummy $ac_prog; ac_word=$2
28555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28556 $as_echo_n "checking for $ac_word... " >&6; }
28557 if ${ac_cv_prog_freetype_config+:} false; then :
28558 $as_echo_n "(cached) " >&6
28560 if test -n "$freetype_config"; then
28561 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
28563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28564 for as_dir in $PATH
28567 test -z "$as_dir" && as_dir=.
28568 for ac_exec_ext in '' $ac_executable_extensions; do
28569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28570 ac_cv_prog_freetype_config="$ac_prog"
28571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28580 freetype_config=$ac_cv_prog_freetype_config
28581 if test -n "$freetype_config"; then
28582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28583 $as_echo "$freetype_config" >&6; }
28585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28586 $as_echo "no" >&6; }
28590 test -n "$freetype_config" && break
28592 if test -n "$freetype_config"; then
28593 freetype_cflags=`$freetype_config --cflags`
28594 freetype_libs=`$freetype_config --libs`
28595 LIBS="$LIBS $freetype_libs"
28596 CPPFLAGS="$freetype_cflags $CPPFLAGS"
28600 if test "$FREETYPE_LIBS" = ''; then
28601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
28602 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28603 if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28604 $as_echo_n "(cached) " >&6
28606 ac_check_lib_save_LIBS=$LIBS
28607 LIBS="-lfreetype $LIBS"
28608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28609 /* end confdefs.h. */
28611 /* Override any GCC internal prototype to avoid an error.
28612 Use char because int might match the return type of a GCC
28613 builtin and then its argument prototype would still apply. */
28617 char FT_Init_FreeType ();
28621 return FT_Init_FreeType ();
28626 if ac_fn_c_try_link "$LINENO"; then :
28627 ac_cv_lib_freetype_FT_Init_FreeType=yes
28629 ac_cv_lib_freetype_FT_Init_FreeType=no
28631 rm -f core conftest.err conftest.$ac_objext \
28632 conftest$ac_exeext conftest.$ac_ext
28633 LIBS=$ac_check_lib_save_LIBS
28635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28636 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28637 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28638 FREETYPE_LIBS='-lfreetype'
28641 if test "$FREETYPE_LIBS" != ''; then
28642 passed=`expr $passed + 1`
28644 failed=`expr $failed + 1`
28645 LIBS="$PERSIST_LIBS"
28649 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
28650 if test "x$ac_cv_header_ft2build_h" = xyes; then :
28651 FT2BUILD_H='#include <ft2build.h>'
28657 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28659 if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
28660 have_freetype_h='yes'
28662 have_freetype_h='no'
28666 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
28667 passed=`expr $passed + 1`
28669 failed=`expr $failed + 1`
28670 CPPFLAGS="$PERSIST_CPPFLAGS"
28673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
28674 $as_echo_n "checking if FreeType package is complete... " >&6; }
28675 if test $passed -gt 0; then
28676 if test $failed -gt 0; then
28678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28679 $as_echo "no -- some components failed test" >&6; }
28680 have_freetype='no (failed tests)'
28682 LIBS="$FREETYPE_LIBS $LIBS"
28684 $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
28686 if test "$ac_cv_header_ft2build_h" = 'yes'; then
28688 $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
28691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28692 $as_echo "yes" >&6; }
28693 have_freetype='yes'
28696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28697 $as_echo "no" >&6; }
28700 if test "$have_freetype" = 'yes'; then
28701 FREETYPE_DELEGATE_TRUE=
28702 FREETYPE_DELEGATE_FALSE='#'
28704 FREETYPE_DELEGATE_TRUE='#'
28705 FREETYPE_DELEGATE_FALSE=
28713 # Check for Ghostscript library or framework.
28715 # Test for iapi.h & test for gsapi_new_instance in -lgs
28716 # or -framework Ghostscript
28719 # Check whether --with-gslib was given.
28720 if test "${with_gslib+set}" = set; then :
28721 withval=$with_gslib; with_gslib=$withval
28727 gslib_framework='no'
28728 if test "$with_gslib" != 'yes'; then
28729 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28734 if test "$with_gslib" != 'no'; then
28735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28736 $as_echo "-------------------------------------------------------------" >&6; }
28737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
28738 $as_echo_n "checking for Ghostscript... " >&6; }
28739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28744 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
28745 if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
28746 passed=`expr $passed + 1`
28748 failed=`expr $failed + 1`
28752 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
28753 if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
28754 passed=`expr $passed + 1`
28756 failed=`expr $failed + 1`
28760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28761 $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
28762 if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
28763 $as_echo_n "(cached) " >&6
28765 ac_check_framework_save_LIBS=$LIBS
28766 LIBS="-framework Ghostscript $LIBS"
28767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28768 /* end confdefs.h. */
28770 /* Override any GCC internal prototype to avoid an error.
28771 Use char because int might match the return type of a GCC
28772 builtin and then its argument prototype would still apply. */
28776 char gsapi_new_instance ();
28780 return gsapi_new_instance ();
28785 if ac_fn_c_try_link "$LINENO"; then :
28786 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28788 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28790 rm -f core conftest.err conftest.$ac_objext \
28791 conftest$ac_exeext conftest.$ac_ext
28792 LIBS=$ac_check_framework_save_LIBS
28794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28795 $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28796 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28797 framework=`expr $framework + 1`
28799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
28800 $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
28801 if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
28802 $as_echo_n "(cached) " >&6
28804 ac_check_lib_save_LIBS=$LIBS
28806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28807 /* end confdefs.h. */
28809 /* Override any GCC internal prototype to avoid an error.
28810 Use char because int might match the return type of a GCC
28811 builtin and then its argument prototype would still apply. */
28815 char gsapi_new_instance ();
28819 return gsapi_new_instance ();
28824 if ac_fn_c_try_link "$LINENO"; then :
28825 ac_cv_lib_gs_gsapi_new_instance=yes
28827 ac_cv_lib_gs_gsapi_new_instance=no
28829 rm -f core conftest.err conftest.$ac_objext \
28830 conftest$ac_exeext conftest.$ac_ext
28831 LIBS=$ac_check_lib_save_LIBS
28833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
28834 $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
28835 if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
28836 passed=`expr $passed + 1`
28838 failed=`expr $failed + 1`
28842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
28843 $as_echo_n "checking if Ghostscript package is complete... " >&6; }
28844 if test $passed -gt 0; then
28845 if test $failed -gt 0; then
28846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28847 $as_echo "no -- some components failed test" >&6; }
28848 have_gslib='no (failed tests)'
28850 if test $framework -gt 0; then
28851 GS_LIBS='-framework Ghostscript'
28852 gslib_framework='yes'
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
28854 $as_echo "yes, using framework." >&6; }
28856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
28857 $as_echo "yes, using library." >&6; }
28860 LIBS="$GS_LIBS $LIBS"
28862 $as_echo "#define GS_DELEGATE 1" >>confdefs.h
28867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28868 $as_echo "no" >&6; }
28871 if test "$have_gslib" = 'yes'; then
28873 GS_DELEGATE_FALSE='#'
28875 GS_DELEGATE_TRUE='#'
28881 # Set default font search path
28883 # Check whether --with-fontpath was given.
28884 if test "${with_fontpath+set}" = set; then :
28885 withval=$with_fontpath; with_fontpath=$withval
28891 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
28895 cat >>confdefs.h <<_ACEOF
28896 #define MAGICK_FONT_PATH "$with_fontpath"
28900 if test "$with_fontpath=" != ''; then
28901 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
28904 # Set Ghostscript font directory
28906 # Check whether --with-gs-font-dir was given.
28907 if test "${with_gs_font_dir+set}" = set; then :
28908 withval=$with_gs_font_dir; with_gs_font_dir=$withval
28910 with_gs_font_dir='default'
28914 if test "$with_gs_font_dir" != 'default'; then
28915 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
28920 # Check for GVC delegate library.
28923 # Check whether --with-gvc was given.
28924 if test "${with_gvc+set}" = set; then :
28925 withval=$with_gvc; with_gvc=$withval
28931 if test "$with_gvc" != 'yes'; then
28932 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
28936 if test "x$with_gvc" = "xyes"; then
28937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28938 $as_echo "-------------------------------------------------------------" >&6; }
28941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
28942 $as_echo_n "checking for GVC... " >&6; }
28944 if test -n "$GVC_CFLAGS"; then
28945 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
28946 elif test -n "$PKG_CONFIG"; then
28947 if test -n "$PKG_CONFIG" && \
28948 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28949 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28952 test $ac_status = 0; }; then
28953 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
28960 if test -n "$GVC_LIBS"; then
28961 pkg_cv_GVC_LIBS="$GVC_LIBS"
28962 elif test -n "$PKG_CONFIG"; then
28963 if test -n "$PKG_CONFIG" && \
28964 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28965 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28968 test $ac_status = 0; }; then
28969 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
28979 if test $pkg_failed = yes; then
28981 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28982 _pkg_short_errors_supported=yes
28984 _pkg_short_errors_supported=no
28986 if test $_pkg_short_errors_supported = yes; then
28987 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
28989 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
28991 # Put the nasty error message in config.log where it belongs
28992 echo "$GVC_PKG_ERRORS" >&5
28994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28995 $as_echo "no" >&6; }
28997 elif test $pkg_failed = untried; then
29000 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29001 GVC_LIBS=$pkg_cv_GVC_LIBS
29002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29003 $as_echo "yes" >&6; }
29006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29010 if test "$have_gvc" = 'yes'; then
29012 $as_echo "#define GVC_DELEGATE 1" >>confdefs.h
29014 if test "$with_modules" = 'no'; then
29015 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29019 if test "$have_gvc" = 'yes'; then
29021 GVC_DELEGATE_FALSE='#'
29023 GVC_DELEGATE_TRUE='#'
29024 GVC_DELEGATE_FALSE=
29032 # Check for JBIG delegate library.
29036 # Check whether --with-jbig was given.
29037 if test "${with_jbig+set}" = set; then :
29038 withval=$with_jbig; with_jbig=$withval
29046 if test "$with_jbig" != 'no'; then
29047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29048 $as_echo "-------------------------------------------------------------" >&6; }
29049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
29050 $as_echo_n "checking for JBIG... " >&6; }
29051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29055 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
29056 if test "x$ac_cv_header_jbig_h" = xyes; then :
29057 passed=`expr $passed + 1`
29059 failed=`expr $failed + 1`
29063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
29064 $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
29065 if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
29066 $as_echo_n "(cached) " >&6
29068 ac_check_lib_save_LIBS=$LIBS
29069 LIBS="-ljbig $LIBS"
29070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29071 /* end confdefs.h. */
29073 /* Override any GCC internal prototype to avoid an error.
29074 Use char because int might match the return type of a GCC
29075 builtin and then its argument prototype would still apply. */
29079 char jbg_dec_init ();
29083 return jbg_dec_init ();
29088 if ac_fn_c_try_link "$LINENO"; then :
29089 ac_cv_lib_jbig_jbg_dec_init=yes
29091 ac_cv_lib_jbig_jbg_dec_init=no
29093 rm -f core conftest.err conftest.$ac_objext \
29094 conftest$ac_exeext conftest.$ac_ext
29095 LIBS=$ac_check_lib_save_LIBS
29097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
29098 $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
29099 if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
29100 passed=`expr $passed + 1`
29102 failed=`expr $failed + 1`
29105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
29106 $as_echo_n "checking if JBIG package is complete... " >&6; }
29107 if test $passed -gt 0; then
29108 if test $failed -gt 0; then
29109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29110 $as_echo "no -- some components failed test" >&6; }
29111 have_jbig='no (failed tests)'
29114 LIBS="$JBIG_LIBS $LIBS"
29116 $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
29118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29119 $as_echo "yes" >&6; }
29123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29124 $as_echo "no" >&6; }
29127 if test "$have_jbig" = 'yes'; then
29128 JBIG_DELEGATE_TRUE=
29129 JBIG_DELEGATE_FALSE='#'
29131 JBIG_DELEGATE_TRUE='#'
29132 JBIG_DELEGATE_FALSE=
29139 # Check for JPEG delegate library.
29142 # Check whether --with-jpeg was given.
29143 if test "${with_jpeg+set}" = set; then :
29144 withval=$with_jpeg; with_jpeg=$withval
29150 if test "$with_jpeg" != 'yes'; then
29151 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29156 if test "$with_jpeg" != 'no'; then
29157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29158 $as_echo "-------------------------------------------------------------" >&6; }
29159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
29160 $as_echo_n "checking for JPEG... " >&6; }
29161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29165 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
29166 if test "x$ac_cv_header_jconfig_h" = xyes; then :
29167 passed=`expr $passed + 1`
29169 failed=`expr $failed + 1`
29173 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
29174 if test "x$ac_cv_header_jerror_h" = xyes; then :
29175 passed=`expr $passed + 1`
29177 failed=`expr $failed + 1`
29181 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
29182 if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
29183 passed=`expr $passed + 1`
29185 failed=`expr $failed + 1`
29189 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
29190 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
29191 passed=`expr $passed + 1`
29193 failed=`expr $failed + 1`
29197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
29198 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
29199 if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
29200 $as_echo_n "(cached) " >&6
29202 ac_check_lib_save_LIBS=$LIBS
29203 LIBS="-ljpeg $LIBS"
29204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29205 /* end confdefs.h. */
29207 /* Override any GCC internal prototype to avoid an error.
29208 Use char because int might match the return type of a GCC
29209 builtin and then its argument prototype would still apply. */
29213 char jpeg_read_header ();
29217 return jpeg_read_header ();
29222 if ac_fn_c_try_link "$LINENO"; then :
29223 ac_cv_lib_jpeg_jpeg_read_header=yes
29225 ac_cv_lib_jpeg_jpeg_read_header=no
29227 rm -f core conftest.err conftest.$ac_objext \
29228 conftest$ac_exeext conftest.$ac_ext
29229 LIBS=$ac_check_lib_save_LIBS
29231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
29232 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
29233 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
29234 passed=`expr $passed + 1`
29236 failed=`expr $failed + 1`
29240 # Test for compatible JPEG library
29241 if test "$ac_cv_jpeg_version_ok" != 'yes'; then
29242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
29243 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
29244 if ${ac_cv_jpeg_version_ok+:} false; then :
29245 $as_echo_n "(cached) " >&6
29247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29248 /* end confdefs.h. */
29250 #include <stdlib.h>
29251 #include <jpeglib.h>
29257 #if JPEG_LIB_VERSION < 62
29258 #error IJG JPEG library must be version 6b or newer!
29266 if ac_fn_c_try_compile "$LINENO"; then :
29267 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29269 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
29271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
29274 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
29276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
29277 $as_echo_n "checking if JPEG package is complete... " >&6; }
29278 if test $passed -gt 0; then
29279 if test $failed -gt 0; then
29280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29281 $as_echo "no -- some components failed test" >&6; }
29282 have_jpeg='no (failed tests)'
29285 LIBS="$JPEG_LIBS $LIBS"
29287 $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
29289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29290 $as_echo "yes" >&6; }
29294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29295 $as_echo "no" >&6; }
29298 if test "$have_jpeg" = 'yes'; then
29299 JPEG_DELEGATE_TRUE=
29300 JPEG_DELEGATE_FALSE='#'
29302 JPEG_DELEGATE_TRUE='#'
29303 JPEG_DELEGATE_FALSE=
29310 # Check for JPEG Version 2 delegate library.
29313 # Check whether --with-jp2 was given.
29314 if test "${with_jp2+set}" = set; then :
29315 withval=$with_jp2; with_jp2=$withval
29321 if test "$with_jp2" != 'yes'; then
29322 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29327 if test "$with_jp2" != 'no'; then
29328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29329 $as_echo "-------------------------------------------------------------" >&6; }
29330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
29331 $as_echo_n "checking for JPEG Version 2... " >&6; }
29332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29336 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
29337 if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
29338 passed=`expr $passed + 1`
29340 failed=`expr $failed + 1`
29344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
29345 $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
29346 if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
29347 $as_echo_n "(cached) " >&6
29349 ac_check_lib_save_LIBS=$LIBS
29350 LIBS="-ljasper $LIBS"
29351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29352 /* end confdefs.h. */
29354 /* Override any GCC internal prototype to avoid an error.
29355 Use char because int might match the return type of a GCC
29356 builtin and then its argument prototype would still apply. */
29360 char jas_stream_fopen ();
29364 return jas_stream_fopen ();
29369 if ac_fn_c_try_link "$LINENO"; then :
29370 ac_cv_lib_jasper_jas_stream_fopen=yes
29372 ac_cv_lib_jasper_jas_stream_fopen=no
29374 rm -f core conftest.err conftest.$ac_objext \
29375 conftest$ac_exeext conftest.$ac_ext
29376 LIBS=$ac_check_lib_save_LIBS
29378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
29379 $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
29380 if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
29381 passed=`expr $passed + 1`
29383 failed=`expr $failed + 1`
29386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
29387 $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29388 if test $passed -gt 0; then
29389 if test $failed -gt 0; then
29390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29391 $as_echo "no -- some components failed test" >&6; }
29392 have_jp2='no (failed tests)'
29394 JP2_LIBS='-ljasper'
29395 LIBS="$JP2_LIBS $LIBS"
29397 $as_echo "#define JP2_DELEGATE 1" >>confdefs.h
29399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29400 $as_echo "yes" >&6; }
29404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29405 $as_echo "no" >&6; }
29408 if test "$have_jp2" = 'yes'; then
29410 JP2_DELEGATE_FALSE='#'
29412 JP2_DELEGATE_TRUE='#'
29413 JP2_DELEGATE_FALSE=
29420 # Check for LCMS delegate library.
29424 # Check whether --with-lcms was given.
29425 if test "${with_lcms+set}" = set; then :
29426 withval=$with_lcms; with_lcms=$withval
29431 if test "$with_lcms" != 'yes' ; then
29432 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29437 # Check whether --with-lcms2 was given.
29438 if test "${with_lcms2+set}" = set; then :
29439 withval=$with_lcms2; with_lcms2=$withval
29444 if test "$with_lcms2" != 'yes' ; then
29445 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29450 if test "$with_lcms2" != 'no'; then
29451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29452 $as_echo "-------------------------------------------------------------" >&6; }
29453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29454 $as_echo_n "checking for LCMS v2... " >&6; }
29455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29459 have_lcms_header='no'
29461 # Check for <lcms2.h>
29462 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
29463 if test "x$ac_cv_header_lcms2_h" = xyes; then :
29464 have_lcms_header='yes'
29468 if test "$have_lcms_header" = 'yes'; then
29470 $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29472 passed=`expr $passed + 1`
29475 # Check for <lcms2/lcms2.h)
29476 if test "$have_lcms_header" != 'yes'; then
29477 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
29478 if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
29479 have_lcms_header='yes'
29483 if test "$have_lcms_header" = 'yes'; then
29484 passed=`expr $passed + 1`
29486 $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
29491 # Failed to find lcms header?
29492 if test "$have_lcms_header" != 'yes'; then
29493 failed=`expr $failed + 1`
29496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29497 $as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
29498 if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
29499 $as_echo_n "(cached) " >&6
29501 ac_check_lib_save_LIBS=$LIBS
29502 LIBS="-llcms2 $LIBS"
29503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29504 /* end confdefs.h. */
29506 /* Override any GCC internal prototype to avoid an error.
29507 Use char because int might match the return type of a GCC
29508 builtin and then its argument prototype would still apply. */
29512 char cmsSetLogErrorHandler ();
29516 return cmsSetLogErrorHandler ();
29521 if ac_fn_c_try_link "$LINENO"; then :
29522 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
29524 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
29526 rm -f core conftest.err conftest.$ac_objext \
29527 conftest$ac_exeext conftest.$ac_ext
29528 LIBS=$ac_check_lib_save_LIBS
29530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29531 $as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
29532 if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
29533 passed=`expr $passed + 1`
29535 failed=`expr $failed + 1`
29538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29539 $as_echo_n "checking if LCMS v2 package is complete... " >&6; }
29540 if test $passed -gt 0; then
29541 if test $failed -gt 0; then
29542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29543 $as_echo "no -- some components failed test" >&6; }
29544 have_lcms2='no (failed tests)'
29546 LCMS_LIBS='-llcms2'
29547 LIBS="$LCMS_LIBS $LIBS"
29548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29549 $as_echo "yes" >&6; }
29553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29554 $as_echo "no" >&6; }
29559 # Check for LCMS v1 (1.11 or later)
29561 if test $have_lcms2 = 'yes'; then
29566 if test "$with_lcms" != 'no'; then
29567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29568 $as_echo "-------------------------------------------------------------" >&6; }
29569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29570 $as_echo_n "checking for LCMS v1.1X... " >&6; }
29571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29575 have_lcms_header='no'
29577 # Check for <lcms.h>
29578 if test "$have_lcms_header" != 'yes'; then
29579 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
29580 if test "x$ac_cv_header_lcms_h" = xyes; then :
29581 have_lcms_header='yes'
29585 if test "$have_lcms_header" = 'yes'; then
29586 passed=`expr $passed + 1`
29588 $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
29593 # Check for <lcms/lcms.h>
29594 if test "$have_lcms_header" != 'yes'; then
29595 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
29596 if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
29597 have_lcms_header='yes'
29601 if test "$have_lcms_header" = 'yes'; then
29602 passed=`expr $passed + 1`
29604 $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
29609 # Failed to find lcms header?
29610 if test "$have_lcms_header" != 'yes'; then
29611 failed=`expr $failed + 1`
29614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29615 $as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
29616 if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
29617 $as_echo_n "(cached) " >&6
29619 ac_check_lib_save_LIBS=$LIBS
29620 LIBS="-llcms $LIBS"
29621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29622 /* end confdefs.h. */
29624 /* Override any GCC internal prototype to avoid an error.
29625 Use char because int might match the return type of a GCC
29626 builtin and then its argument prototype would still apply. */
29630 char cmsSetErrorHandler ();
29634 return cmsSetErrorHandler ();
29639 if ac_fn_c_try_link "$LINENO"; then :
29640 ac_cv_lib_lcms_cmsSetErrorHandler=yes
29642 ac_cv_lib_lcms_cmsSetErrorHandler=no
29644 rm -f core conftest.err conftest.$ac_objext \
29645 conftest$ac_exeext conftest.$ac_ext
29646 LIBS=$ac_check_lib_save_LIBS
29648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29649 $as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
29650 if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
29651 passed=`expr $passed + 1`
29653 failed=`expr $failed + 1`
29656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
29657 $as_echo_n "checking if LCMS package is complete... " >&6; }
29658 if test $passed -gt 0; then
29659 if test $failed -gt 0; then
29660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29661 $as_echo "no -- some components failed test" >&6; }
29662 have_lcms='no (failed tests)'
29665 LIBS="$LCMS_LIBS $LIBS"
29666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29667 $as_echo "yes" >&6; }
29671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29672 $as_echo "no" >&6; }
29676 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29677 LCMS_DELEGATE_TRUE=
29678 LCMS_DELEGATE_FALSE='#'
29680 LCMS_DELEGATE_TRUE='#'
29681 LCMS_DELEGATE_FALSE=
29684 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29686 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29694 # Check for the LQR (Liquid Rescale) delegate library.
29697 # Check whether --with-lqr was given.
29698 if test "${with_lqr+set}" = set; then :
29699 withval=$with_lqr; with_lqr=$withval
29705 if test "$with_lqr" != 'yes'; then
29706 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29713 if test "x$with_lqr" = "xyes"; then
29714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29715 $as_echo "-------------------------------------------------------------" >&6; }
29718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29719 $as_echo_n "checking for LQR... " >&6; }
29721 if test -n "$LQR_CFLAGS"; then
29722 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29723 elif test -n "$PKG_CONFIG"; then
29724 if test -n "$PKG_CONFIG" && \
29725 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29726 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29729 test $ac_status = 0; }; then
29730 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29737 if test -n "$LQR_LIBS"; then
29738 pkg_cv_LQR_LIBS="$LQR_LIBS"
29739 elif test -n "$PKG_CONFIG"; then
29740 if test -n "$PKG_CONFIG" && \
29741 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29742 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29745 test $ac_status = 0; }; then
29746 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29756 if test $pkg_failed = yes; then
29758 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29759 _pkg_short_errors_supported=yes
29761 _pkg_short_errors_supported=no
29763 if test $_pkg_short_errors_supported = yes; then
29764 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29766 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29768 # Put the nasty error message in config.log where it belongs
29769 echo "$LQR_PKG_ERRORS" >&5
29771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29772 $as_echo "no" >&6; }
29774 elif test $pkg_failed = untried; then
29777 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29778 LQR_LIBS=$pkg_cv_LQR_LIBS
29779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29780 $as_echo "yes" >&6; }
29783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29787 if test "$have_lqr" = 'yes'; then
29789 $as_echo "#define LQR_DELEGATE 1" >>confdefs.h
29791 CFLAGS="$LQR_CFLAGS $CFLAGS"
29794 if test "$have_lqr" = 'yes'; then
29796 LQR_DELEGATE_FALSE='#'
29798 LQR_DELEGATE_TRUE='#'
29799 LQR_DELEGATE_FALSE=
29806 # Disable LZMA (lzma library)
29808 # Check whether --with-lzma was given.
29809 if test "${with_lzma+set}" = set; then :
29810 withval=$with_lzma; with_lzma=$withval
29815 if test "$with_lzma" != 'yes' ; then
29816 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29824 if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
29825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29826 $as_echo "-------------------------------------------------------------" >&6; }
29827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
29828 $as_echo_n "checking for LZMA... " >&6; }
29829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29833 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
29834 if test "x$ac_cv_header_lzma_h" = xyes; then :
29835 passed=`expr $passed + 1`
29837 failed=`expr $failed + 1`
29841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
29842 $as_echo_n "checking for lzma_code in -llzma... " >&6; }
29843 if ${ac_cv_lib_lzma_lzma_code+:} false; then :
29844 $as_echo_n "(cached) " >&6
29846 ac_check_lib_save_LIBS=$LIBS
29847 LIBS="-llzma $LIBS"
29848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29849 /* end confdefs.h. */
29851 /* Override any GCC internal prototype to avoid an error.
29852 Use char because int might match the return type of a GCC
29853 builtin and then its argument prototype would still apply. */
29861 return lzma_code ();
29866 if ac_fn_c_try_link "$LINENO"; then :
29867 ac_cv_lib_lzma_lzma_code=yes
29869 ac_cv_lib_lzma_lzma_code=no
29871 rm -f core conftest.err conftest.$ac_objext \
29872 conftest$ac_exeext conftest.$ac_ext
29873 LIBS=$ac_check_lib_save_LIBS
29875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
29876 $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
29877 if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
29878 passed=`expr $passed + 1`
29880 failed=`expr $failed + 1`
29883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
29884 $as_echo_n "checking if LZMA package is complete... " >&6; }
29885 if test $passed -gt 0; then
29886 if test $failed -gt 0; then
29887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29888 $as_echo "no -- some components failed test" >&6; }
29889 have_lzma='no (failed tests)'
29892 LIBS="$LZMA_LIBS $LIBS"
29894 $as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
29896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29897 $as_echo "yes" >&6; }
29901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29902 $as_echo "no" >&6; }
29905 if test "$have_lzma" = 'yes'; then
29906 LZMA_DELEGATE_TRUE=
29907 LZMA_DELEGATE_FALSE='#'
29909 LZMA_DELEGATE_TRUE='#'
29910 LZMA_DELEGATE_FALSE=
29917 # Check for the OpenEXR delegate library.
29920 # Check whether --with-openexr was given.
29921 if test "${with_openexr+set}" = set; then :
29922 withval=$with_openexr; with_openexr=$withval
29928 if test "$with_openexr" != 'yes'; then
29929 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
29936 if test "x$with_openexr" = "xyes"; then
29937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29938 $as_echo "-------------------------------------------------------------" >&6; }
29941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
29942 $as_echo_n "checking for OPENEXR... " >&6; }
29944 if test -n "$OPENEXR_CFLAGS"; then
29945 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
29946 elif test -n "$PKG_CONFIG"; then
29947 if test -n "$PKG_CONFIG" && \
29948 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29949 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29952 test $ac_status = 0; }; then
29953 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
29960 if test -n "$OPENEXR_LIBS"; then
29961 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
29962 elif test -n "$PKG_CONFIG"; then
29963 if test -n "$PKG_CONFIG" && \
29964 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29965 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29968 test $ac_status = 0; }; then
29969 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
29979 if test $pkg_failed = yes; then
29981 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29982 _pkg_short_errors_supported=yes
29984 _pkg_short_errors_supported=no
29986 if test $_pkg_short_errors_supported = yes; then
29987 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
29989 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
29991 # Put the nasty error message in config.log where it belongs
29992 echo "$OPENEXR_PKG_ERRORS" >&5
29994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29995 $as_echo "no" >&6; }
29997 elif test $pkg_failed = untried; then
30000 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30001 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30003 $as_echo "yes" >&6; }
30006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30010 if test "$have_openexr" = 'yes'; then
30012 $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
30014 if test "$with_modules" = 'no'; then
30015 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30019 if test "$have_openexr" = 'yes'; then
30020 OPENEXR_DELEGATE_TRUE=
30021 OPENEXR_DELEGATE_FALSE='#'
30023 OPENEXR_DELEGATE_TRUE='#'
30024 OPENEXR_DELEGATE_FALSE=
30032 # Check for PNG delegate library.
30035 # Check whether --with-png was given.
30036 if test "${with_png+set}" = set; then :
30037 withval=$with_png; with_png=$withval
30043 if test "$with_png" != 'yes'; then
30044 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30050 if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
30051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30052 $as_echo "-------------------------------------------------------------" >&6; }
30053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30054 $as_echo_n "checking for PNG support ... " >&6; }
30055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30059 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30060 if test "x$ac_cv_header_png_h" = xyes; then :
30061 passed=`expr $passed + 1`
30063 failed=`expr $failed + 1`
30068 if test $passed -gt 0; then
30069 for var in 5 4 2 '' ; do
30070 if test "$have_png" == 'no' ; then
30071 if test "x${var}" == 'x' ; then
30074 pnglib="png1${var}"
30077 # Test for compatible LIBPNG library
30080 if test "$with_png" == 'yes' -o "$with_png" == "libpng1${var}" ; then
30081 if test "${pnglib}" != 'png' ; then
30082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30083 $as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30085 /* end confdefs.h. */
30087 #include <stdlib.h>
30094 #if PNG_LIBPNG_VER_MINOR != ${var}
30095 #error LIBPNG library must be version 1${var}!
30104 if ac_fn_c_try_compile "$LINENO"; then :
30105 ac_cv_libpng_ok='yes'
30107 ac_cv_libpng_ok='no'
30109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30110 if test "$ac_cv_libpng_ok" = 'yes' ; then
30111 passed=`expr $passed + 1`
30112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30113 $as_echo "yes" >&6; }
30115 failed=`expr $failed + 1`
30116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30117 $as_echo "no" >&6; }
30120 passed=`expr $passed + 1`
30121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30122 $as_echo "yes" >&6; }
30126 if test $passed -gt 0 -a $failed -le 0; then
30127 if test "1${var}" = '15' ; then
30128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30129 $as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30130 if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30131 $as_echo_n "(cached) " >&6
30133 ac_check_lib_save_LIBS=$LIBS
30134 LIBS="-lpng15 $LIBS"
30135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30136 /* end confdefs.h. */
30138 /* Override any GCC internal prototype to avoid an error.
30139 Use char because int might match the return type of a GCC
30140 builtin and then its argument prototype would still apply. */
30144 char png_get_io_ptr ();
30148 return png_get_io_ptr ();
30153 if ac_fn_c_try_link "$LINENO"; then :
30154 ac_cv_lib_png15_png_get_io_ptr=yes
30156 ac_cv_lib_png15_png_get_io_ptr=no
30158 rm -f core conftest.err conftest.$ac_objext \
30159 conftest$ac_exeext conftest.$ac_ext
30160 LIBS=$ac_check_lib_save_LIBS
30162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30163 $as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30164 if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30165 passed=`expr $passed + 1`
30167 failed=`expr $failed + 1`
30170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30171 $as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30172 if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30173 $as_echo_n "(cached) " >&6
30175 ac_check_lib_save_LIBS=$LIBS
30176 LIBS="-lpng15 $LIBS"
30177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30178 /* end confdefs.h. */
30180 /* Override any GCC internal prototype to avoid an error.
30181 Use char because int might match the return type of a GCC
30182 builtin and then its argument prototype would still apply. */
30186 char png_longjmp ();
30190 return png_longjmp ();
30195 if ac_fn_c_try_link "$LINENO"; then :
30196 ac_cv_lib_png15_png_longjmp=yes
30198 ac_cv_lib_png15_png_longjmp=no
30200 rm -f core conftest.err conftest.$ac_objext \
30201 conftest$ac_exeext conftest.$ac_ext
30202 LIBS=$ac_check_lib_save_LIBS
30204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30205 $as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30206 if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30207 passed=`expr $passed + 1`
30209 failed=`expr $failed + 1`
30213 if test "1${var}" = '14' ; then
30214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30215 $as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30216 if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30217 $as_echo_n "(cached) " >&6
30219 ac_check_lib_save_LIBS=$LIBS
30220 LIBS="-lpng14 $LIBS"
30221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30222 /* end confdefs.h. */
30224 /* Override any GCC internal prototype to avoid an error.
30225 Use char because int might match the return type of a GCC
30226 builtin and then its argument prototype would still apply. */
30230 char png_get_io_ptr ();
30234 return png_get_io_ptr ();
30239 if ac_fn_c_try_link "$LINENO"; then :
30240 ac_cv_lib_png14_png_get_io_ptr=yes
30242 ac_cv_lib_png14_png_get_io_ptr=no
30244 rm -f core conftest.err conftest.$ac_objext \
30245 conftest$ac_exeext conftest.$ac_ext
30246 LIBS=$ac_check_lib_save_LIBS
30248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30249 $as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30250 if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30251 passed=`expr $passed + 1`
30253 failed=`expr $failed + 1`
30256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30257 $as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30258 if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30259 $as_echo_n "(cached) " >&6
30261 ac_check_lib_save_LIBS=$LIBS
30262 LIBS="-lpng14 $LIBS"
30263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30264 /* end confdefs.h. */
30266 /* Override any GCC internal prototype to avoid an error.
30267 Use char because int might match the return type of a GCC
30268 builtin and then its argument prototype would still apply. */
30272 char png_get_io_state ();
30276 return png_get_io_state ();
30281 if ac_fn_c_try_link "$LINENO"; then :
30282 ac_cv_lib_png14_png_get_io_state=yes
30284 ac_cv_lib_png14_png_get_io_state=no
30286 rm -f core conftest.err conftest.$ac_objext \
30287 conftest$ac_exeext conftest.$ac_ext
30288 LIBS=$ac_check_lib_save_LIBS
30290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30291 $as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30292 if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30293 passed=`expr $passed + 1`
30295 failed=`expr $failed + 1`
30299 if test "1${var}" = '12' ; then
30300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30301 $as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30302 if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30303 $as_echo_n "(cached) " >&6
30305 ac_check_lib_save_LIBS=$LIBS
30306 LIBS="-lpng12 $LIBS"
30307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30308 /* end confdefs.h. */
30310 /* Override any GCC internal prototype to avoid an error.
30311 Use char because int might match the return type of a GCC
30312 builtin and then its argument prototype would still apply. */
30316 char png_get_io_ptr ();
30320 return png_get_io_ptr ();
30325 if ac_fn_c_try_link "$LINENO"; then :
30326 ac_cv_lib_png12_png_get_io_ptr=yes
30328 ac_cv_lib_png12_png_get_io_ptr=no
30330 rm -f core conftest.err conftest.$ac_objext \
30331 conftest$ac_exeext conftest.$ac_ext
30332 LIBS=$ac_check_lib_save_LIBS
30334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30335 $as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30336 if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30337 passed=`expr $passed + 1`
30339 failed=`expr $failed + 1`
30343 if test "1${var}" = '1' ; then
30344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30345 $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30346 if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30347 $as_echo_n "(cached) " >&6
30349 ac_check_lib_save_LIBS=$LIBS
30351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30352 /* end confdefs.h. */
30354 /* Override any GCC internal prototype to avoid an error.
30355 Use char because int might match the return type of a GCC
30356 builtin and then its argument prototype would still apply. */
30360 char png_get_io_ptr ();
30364 return png_get_io_ptr ();
30369 if ac_fn_c_try_link "$LINENO"; then :
30370 ac_cv_lib_png_png_get_io_ptr=yes
30372 ac_cv_lib_png_png_get_io_ptr=no
30374 rm -f core conftest.err conftest.$ac_objext \
30375 conftest$ac_exeext conftest.$ac_ext
30376 LIBS=$ac_check_lib_save_LIBS
30378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30379 $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30380 if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30381 passed=`expr $passed + 1`
30383 failed=`expr $failed + 1`
30387 if test $passed -gt 0 -a $failed -le 0 ; then
30388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30389 $as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30390 if test $passed -gt 0 ; then
30391 if test $failed -gt 0 ; then
30392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30393 $as_echo "no -- some components failed test" >&6; }
30394 have_png='no (failed tests)'
30396 PNG_LIBS="-l${pnglib}"
30397 LIBS="$PNG_LIBS $LIBS"
30399 $as_echo "#define PNG_DELEGATE 1" >>confdefs.h
30401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30402 $as_echo "yes" >&6; }
30413 if test "$have_png" = 'yes'; then
30415 PNG_DELEGATE_FALSE='#'
30417 PNG_DELEGATE_TRUE='#'
30418 PNG_DELEGATE_FALSE=
30426 # Check for RSVG delegate library.
30429 # Check whether --with-rsvg was given.
30430 if test "${with_rsvg+set}" = set; then :
30431 withval=$with_rsvg; with_rsvg=$withval
30437 if test "$with_rsvg" != 'yes'; then
30438 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30446 if test "x$with_rsvg" = "xyes"; then
30447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30448 $as_echo "-------------------------------------------------------------" >&6; }
30451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30452 $as_echo_n "checking for RSVG... " >&6; }
30454 if test -n "$RSVG_CFLAGS"; then
30455 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30456 elif test -n "$PKG_CONFIG"; then
30457 if test -n "$PKG_CONFIG" && \
30458 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30459 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30462 test $ac_status = 0; }; then
30463 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30470 if test -n "$RSVG_LIBS"; then
30471 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30472 elif test -n "$PKG_CONFIG"; then
30473 if test -n "$PKG_CONFIG" && \
30474 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30475 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30478 test $ac_status = 0; }; then
30479 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30489 if test $pkg_failed = yes; then
30491 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30492 _pkg_short_errors_supported=yes
30494 _pkg_short_errors_supported=no
30496 if test $_pkg_short_errors_supported = yes; then
30497 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30499 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30501 # Put the nasty error message in config.log where it belongs
30502 echo "$RSVG_PKG_ERRORS" >&5
30504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30505 $as_echo "no" >&6; }
30507 elif test $pkg_failed = untried; then
30510 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30511 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30513 $as_echo "yes" >&6; }
30516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30521 $as_echo_n "checking for CAIRO_SVG... " >&6; }
30523 if test -n "$CAIRO_SVG_CFLAGS"; then
30524 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30525 elif test -n "$PKG_CONFIG"; then
30526 if test -n "$PKG_CONFIG" && \
30527 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30528 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30531 test $ac_status = 0; }; then
30532 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30539 if test -n "$CAIRO_SVG_LIBS"; then
30540 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30541 elif test -n "$PKG_CONFIG"; then
30542 if test -n "$PKG_CONFIG" && \
30543 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30544 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30547 test $ac_status = 0; }; then
30548 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30558 if test $pkg_failed = yes; then
30560 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30561 _pkg_short_errors_supported=yes
30563 _pkg_short_errors_supported=no
30565 if test $_pkg_short_errors_supported = yes; then
30566 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
30568 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
30570 # Put the nasty error message in config.log where it belongs
30571 echo "$CAIRO_SVG_PKG_ERRORS" >&5
30573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30574 $as_echo "no" >&6; }
30576 elif test $pkg_failed = untried; then
30579 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
30580 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
30581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30582 $as_echo "yes" >&6; }
30585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30589 if test "$have_rsvg" = 'yes'; then
30591 $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
30593 if test "$with_modules" = 'no'; then
30594 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
30598 if test "$have_cairo" = 'yes'; then
30600 $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
30602 if test "$with_modules" = 'no'; then
30603 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
30607 if test "$have_rsvg" = 'yes'; then
30608 RSVG_DELEGATE_TRUE=
30609 RSVG_DELEGATE_FALSE='#'
30611 RSVG_DELEGATE_TRUE='#'
30612 RSVG_DELEGATE_FALSE=
30615 if test "$have_cairo" = 'yes'; then
30616 CAIRO_DELEGATE_TRUE=
30617 CAIRO_DELEGATE_FALSE='#'
30619 CAIRO_DELEGATE_TRUE='#'
30620 CAIRO_DELEGATE_FALSE=
30628 # Check for TIFF delegate library.
30631 # Check whether --with-tiff was given.
30632 if test "${with_tiff+set}" = set; then :
30633 withval=$with_tiff; with_tiff=$withval
30639 if test "$with_tiff" != 'yes'; then
30640 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
30645 if test "$with_tiff" != 'no'; then
30646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30647 $as_echo "-------------------------------------------------------------" >&6; }
30648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
30649 $as_echo_n "checking for TIFF... " >&6; }
30650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30654 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
30655 if test "x$ac_cv_header_tiff_h" = xyes; then :
30656 passed=`expr $passed + 1`
30658 failed=`expr $failed + 1`
30662 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
30663 if test "x$ac_cv_header_tiffio_h" = xyes; then :
30664 passed=`expr $passed + 1`
30666 failed=`expr $failed + 1`
30670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
30671 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
30672 if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
30673 $as_echo_n "(cached) " >&6
30675 ac_check_lib_save_LIBS=$LIBS
30676 LIBS="-ltiff $LIBS"
30677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30678 /* end confdefs.h. */
30680 /* Override any GCC internal prototype to avoid an error.
30681 Use char because int might match the return type of a GCC
30682 builtin and then its argument prototype would still apply. */
30690 return TIFFOpen ();
30695 if ac_fn_c_try_link "$LINENO"; then :
30696 ac_cv_lib_tiff_TIFFOpen=yes
30698 ac_cv_lib_tiff_TIFFOpen=no
30700 rm -f core conftest.err conftest.$ac_objext \
30701 conftest$ac_exeext conftest.$ac_ext
30702 LIBS=$ac_check_lib_save_LIBS
30704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
30705 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
30706 if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
30707 passed=`expr $passed + 1`
30709 failed=`expr $failed + 1`
30712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
30713 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
30714 if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
30715 $as_echo_n "(cached) " >&6
30717 ac_check_lib_save_LIBS=$LIBS
30718 LIBS="-ltiff $LIBS"
30719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30720 /* end confdefs.h. */
30722 /* Override any GCC internal prototype to avoid an error.
30723 Use char because int might match the return type of a GCC
30724 builtin and then its argument prototype would still apply. */
30728 char TIFFClientOpen ();
30732 return TIFFClientOpen ();
30737 if ac_fn_c_try_link "$LINENO"; then :
30738 ac_cv_lib_tiff_TIFFClientOpen=yes
30740 ac_cv_lib_tiff_TIFFClientOpen=no
30742 rm -f core conftest.err conftest.$ac_objext \
30743 conftest$ac_exeext conftest.$ac_ext
30744 LIBS=$ac_check_lib_save_LIBS
30746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
30747 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
30748 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
30749 passed=`expr $passed + 1`
30751 failed=`expr $failed + 1`
30754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
30755 $as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
30756 if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
30757 $as_echo_n "(cached) " >&6
30759 ac_check_lib_save_LIBS=$LIBS
30760 LIBS="-ltiff $LIBS"
30761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30762 /* end confdefs.h. */
30764 /* Override any GCC internal prototype to avoid an error.
30765 Use char because int might match the return type of a GCC
30766 builtin and then its argument prototype would still apply. */
30770 char TIFFIsBigEndian ();
30774 return TIFFIsBigEndian ();
30779 if ac_fn_c_try_link "$LINENO"; then :
30780 ac_cv_lib_tiff_TIFFIsBigEndian=yes
30782 ac_cv_lib_tiff_TIFFIsBigEndian=no
30784 rm -f core conftest.err conftest.$ac_objext \
30785 conftest$ac_exeext conftest.$ac_ext
30786 LIBS=$ac_check_lib_save_LIBS
30788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
30789 $as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
30790 if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
30791 passed=`expr $passed + 1`
30793 failed=`expr $failed + 1`
30796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
30797 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
30798 if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
30799 $as_echo_n "(cached) " >&6
30801 ac_check_lib_save_LIBS=$LIBS
30802 LIBS="-ltiff $LIBS"
30803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30804 /* end confdefs.h. */
30806 /* Override any GCC internal prototype to avoid an error.
30807 Use char because int might match the return type of a GCC
30808 builtin and then its argument prototype would still apply. */
30812 char TIFFIsByteSwapped ();
30816 return TIFFIsByteSwapped ();
30821 if ac_fn_c_try_link "$LINENO"; then :
30822 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
30824 ac_cv_lib_tiff_TIFFIsByteSwapped=no
30826 rm -f core conftest.err conftest.$ac_objext \
30827 conftest$ac_exeext conftest.$ac_ext
30828 LIBS=$ac_check_lib_save_LIBS
30830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
30831 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
30832 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
30833 passed=`expr $passed + 1`
30835 failed=`expr $failed + 1`
30838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
30839 $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
30840 if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
30841 $as_echo_n "(cached) " >&6
30843 ac_check_lib_save_LIBS=$LIBS
30844 LIBS="-ltiff $LIBS"
30845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30846 /* end confdefs.h. */
30848 /* Override any GCC internal prototype to avoid an error.
30849 Use char because int might match the return type of a GCC
30850 builtin and then its argument prototype would still apply. */
30854 char TIFFReadRGBATile ();
30858 return TIFFReadRGBATile ();
30863 if ac_fn_c_try_link "$LINENO"; then :
30864 ac_cv_lib_tiff_TIFFReadRGBATile=yes
30866 ac_cv_lib_tiff_TIFFReadRGBATile=no
30868 rm -f core conftest.err conftest.$ac_objext \
30869 conftest$ac_exeext conftest.$ac_ext
30870 LIBS=$ac_check_lib_save_LIBS
30872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
30873 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
30874 if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
30875 passed=`expr $passed + 1`
30877 failed=`expr $failed + 1`
30880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
30881 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
30882 if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
30883 $as_echo_n "(cached) " >&6
30885 ac_check_lib_save_LIBS=$LIBS
30886 LIBS="-ltiff $LIBS"
30887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30888 /* end confdefs.h. */
30890 /* Override any GCC internal prototype to avoid an error.
30891 Use char because int might match the return type of a GCC
30892 builtin and then its argument prototype would still apply. */
30896 char TIFFReadRGBAStrip ();
30900 return TIFFReadRGBAStrip ();
30905 if ac_fn_c_try_link "$LINENO"; then :
30906 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
30908 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
30910 rm -f core conftest.err conftest.$ac_objext \
30911 conftest$ac_exeext conftest.$ac_ext
30912 LIBS=$ac_check_lib_save_LIBS
30914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
30915 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
30916 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
30917 passed=`expr $passed + 1`
30919 failed=`expr $failed + 1`
30922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
30923 $as_echo_n "checking if TIFF package is complete... " >&6; }
30924 if test $passed -gt 0; then
30925 if test $failed -gt 0; then
30926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30927 $as_echo "no -- some components failed test" >&6; }
30928 have_tiff='no (failed tests)'
30931 LIBS="$TIFF_LIBS $LIBS"
30933 $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
30935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30936 $as_echo "yes" >&6; }
30938 for ac_header in tiffconf.h
30940 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
30941 if test "x$ac_cv_header_tiffconf_h" = xyes; then :
30942 cat >>confdefs.h <<_ACEOF
30943 #define HAVE_TIFFCONF_H 1
30950 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
30951 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
30952 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
30954 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30955 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30956 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30957 cat >>confdefs.h <<_ACEOF
30958 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30967 $as_echo "no" >&6; }
30970 if test "$have_tiff" = 'yes'; then
30971 TIFF_DELEGATE_TRUE=
30972 TIFF_DELEGATE_FALSE='#'
30974 TIFF_DELEGATE_TRUE='#'
30975 TIFF_DELEGATE_FALSE=
30982 # Check for WEBP delegate library.
30985 # Check whether --with-webp was given.
30986 if test "${with_webp+set}" = set; then :
30987 withval=$with_webp; with_webp=$withval
30993 if test "$with_webp" != 'yes'; then
30994 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
30999 if test "$with_webp" != 'no'; then
31000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31001 $as_echo "-------------------------------------------------------------" >&6; }
31002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31003 $as_echo_n "checking for WEBP... " >&6; }
31004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31008 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31009 if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31010 passed=`expr $passed + 1`
31012 failed=`expr $failed + 1`
31016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31017 $as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31018 if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31019 $as_echo_n "(cached) " >&6
31021 ac_check_lib_save_LIBS=$LIBS
31022 LIBS="-lwebp $LIBS"
31023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31024 /* end confdefs.h. */
31026 /* Override any GCC internal prototype to avoid an error.
31027 Use char because int might match the return type of a GCC
31028 builtin and then its argument prototype would still apply. */
31032 char WebPDecodeRGB ();
31036 return WebPDecodeRGB ();
31041 if ac_fn_c_try_link "$LINENO"; then :
31042 ac_cv_lib_webp_WebPDecodeRGB=yes
31044 ac_cv_lib_webp_WebPDecodeRGB=no
31046 rm -f core conftest.err conftest.$ac_objext \
31047 conftest$ac_exeext conftest.$ac_ext
31048 LIBS=$ac_check_lib_save_LIBS
31050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31051 $as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31052 if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31053 passed=`expr $passed + 1`
31055 failed=`expr $failed + 1`
31058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31059 $as_echo_n "checking if WEBP package is complete... " >&6; }
31060 if test $passed -gt 0; then
31061 if test $failed -gt 0; then
31062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31063 $as_echo "no -- some components failed test" >&6; }
31064 have_webp='no (failed tests)'
31067 LIBS="$WEBP_LIBS $LIBS"
31069 $as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31072 $as_echo "yes" >&6; }
31076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31077 $as_echo "no" >&6; }
31080 if test "$have_webp" = 'yes'; then
31081 WEBP_DELEGATE_TRUE=
31082 WEBP_DELEGATE_FALSE='#'
31084 WEBP_DELEGATE_TRUE='#'
31085 WEBP_DELEGATE_FALSE=
31092 # Set Windows font directory.
31095 # Check whether --with-windows-font-dir was given.
31096 if test "${with_windows_font_dir+set}" = set; then :
31097 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31099 with_windows_font_dir=''
31102 if test "$with_windows_font_dir" != '' ; then
31103 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31108 # Check for WMF delegate library.
31111 # Check whether --with-wmf was given.
31112 if test "${with_wmf+set}" = set; then :
31113 withval=$with_wmf; with_wmf=$withval
31119 if test "$with_wmf" != 'yes'; then
31120 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31125 if test "$with_wmf" != 'no'; then
31126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31127 $as_echo "-------------------------------------------------------------" >&6; }
31128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
31129 $as_echo_n "checking for WMF... " >&6; }
31130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31134 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
31135 if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
31136 passed=`expr $passed + 1`
31138 failed=`expr $failed + 1`
31142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
31143 $as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
31144 if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
31145 $as_echo_n "(cached) " >&6
31147 ac_check_lib_save_LIBS=$LIBS
31148 LIBS="-lwmf "-lwmflite" $LIBS"
31149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31150 /* end confdefs.h. */
31152 /* Override any GCC internal prototype to avoid an error.
31153 Use char because int might match the return type of a GCC
31154 builtin and then its argument prototype would still apply. */
31158 char wmf_eps_function ();
31162 return wmf_eps_function ();
31167 if ac_fn_c_try_link "$LINENO"; then :
31168 ac_cv_lib_wmf_wmf_eps_function=yes
31170 ac_cv_lib_wmf_wmf_eps_function=no
31172 rm -f core conftest.err conftest.$ac_objext \
31173 conftest$ac_exeext conftest.$ac_ext
31174 LIBS=$ac_check_lib_save_LIBS
31176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
31177 $as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
31178 if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
31179 passed=`expr $passed + 1`
31181 failed=`expr $failed + 1`
31184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31185 $as_echo_n "checking if WMF package is complete... " >&6; }
31186 if test $passed -gt 0; then
31187 if test $failed -gt 0; then
31188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31189 $as_echo "no -- some components failed test" >&6; }
31190 have_wmf='no (failed tests)'
31192 WMF_LIBS='-lwmf -lwmflite'
31193 LIBS="$WMF_LIBS $LIBS"
31195 $as_echo "#define WMF_DELEGATE 1" >>confdefs.h
31197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31198 $as_echo "yes" >&6; }
31202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31203 $as_echo "no" >&6; }
31206 if test "$have_wmf" = 'yes'; then
31208 WMF_DELEGATE_FALSE='#'
31210 WMF_DELEGATE_TRUE='#'
31211 WMF_DELEGATE_FALSE=
31220 # Check for XML delegate library.
31223 # Check whether --with-xml was given.
31224 if test "${with_xml+set}" = set; then :
31225 withval=$with_xml; with_xml=$withval
31231 if test "$with_xml" != 'yes' ; then
31232 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31237 if test "$with_xml" != 'no'; then
31238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31239 $as_echo "-------------------------------------------------------------" >&6; }
31240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31241 $as_echo_n "checking for XML... " >&6; }
31242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31244 PERSIST_LDFLAGS=$LDFLAGS
31245 PERSIST_CPPFLAGS=$CPPFLAGS
31247 # Extract the first word of "xml2-config", so it can be a program name with args.
31248 set dummy xml2-config; 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_path_xml2_config+:} false; then :
31252 $as_echo_n "(cached) " >&6
31254 case $xml2_config in
31256 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31260 for as_dir in $PATH
31263 test -z "$as_dir" && as_dir=.
31264 for ac_exec_ext in '' $ac_executable_extensions; do
31265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31266 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31277 xml2_config=$ac_cv_path_xml2_config
31278 if test -n "$xml2_config"; then
31279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31280 $as_echo "$xml2_config" >&6; }
31282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31283 $as_echo "no" >&6; }
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 xmlSAXVersion in -lxml2" >&5
31309 $as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31310 if ${ac_cv_lib_xml2_xmlSAXVersion+:} 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 xmlSAXVersion ();
31328 return xmlSAXVersion ();
31333 if ac_fn_c_try_link "$LINENO"; then :
31334 ac_cv_lib_xml2_xmlSAXVersion=yes
31336 ac_cv_lib_xml2_xmlSAXVersion=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_xmlSAXVersion" >&5
31343 $as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31344 if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31345 passed=`expr $passed + 1`
31347 failed=`expr $failed + 1`
31350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31351 $as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31352 if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31353 $as_echo_n "(cached) " >&6
31355 ac_check_lib_save_LIBS=$LIBS
31356 LIBS="-lxml2 $LIBS"
31357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31358 /* end confdefs.h. */
31360 /* Override any GCC internal prototype to avoid an error.
31361 Use char because int might match the return type of a GCC
31362 builtin and then its argument prototype would still apply. */
31366 char xmlParseChunk ();
31370 return xmlParseChunk ();
31375 if ac_fn_c_try_link "$LINENO"; then :
31376 ac_cv_lib_xml2_xmlParseChunk=yes
31378 ac_cv_lib_xml2_xmlParseChunk=no
31380 rm -f core conftest.err conftest.$ac_objext \
31381 conftest$ac_exeext conftest.$ac_ext
31382 LIBS=$ac_check_lib_save_LIBS
31384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
31385 $as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
31386 if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
31387 passed=`expr $passed + 1`
31389 failed=`expr $failed + 1`
31392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
31393 $as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
31394 if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
31395 $as_echo_n "(cached) " >&6
31397 ac_check_lib_save_LIBS=$LIBS
31398 LIBS="-lxml2 $LIBS"
31399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31400 /* end confdefs.h. */
31402 /* Override any GCC internal prototype to avoid an error.
31403 Use char because int might match the return type of a GCC
31404 builtin and then its argument prototype would still apply. */
31408 char xmlCreatePushParserCtxt ();
31412 return xmlCreatePushParserCtxt ();
31417 if ac_fn_c_try_link "$LINENO"; then :
31418 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
31420 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
31422 rm -f core conftest.err conftest.$ac_objext \
31423 conftest$ac_exeext conftest.$ac_ext
31424 LIBS=$ac_check_lib_save_LIBS
31426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
31427 $as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
31428 if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
31429 passed=`expr $passed + 1`
31431 failed=`expr $failed + 1`
31434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31435 $as_echo_n "checking if XML package is complete... " >&6; }
31436 if test $passed -gt 0; then
31437 if test $failed -gt 0; then
31438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31439 $as_echo "no -- some components failed test" >&6; }
31440 have_xml='no (failed tests)'
31441 LDFLAGS="$PERSIST_LDFLAGS"
31442 CPPFLAGS="$PERSIST_CPPFLAGS"
31445 LIBS="$XML_LIBS $LIBS"
31447 $as_echo "#define XML_DELEGATE 1" >>confdefs.h
31449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31450 $as_echo "yes" >&6; }
31454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31455 $as_echo "no" >&6; }
31458 if test "$have_xml" = 'yes'; then
31460 XML_DELEGATE_FALSE='#'
31462 XML_DELEGATE_TRUE='#'
31463 XML_DELEGATE_FALSE=
31469 # Substitute compiler name to build/link PerlMagick
31474 # Configure install Paths
31477 # Subdirectory under lib to place ImageMagick lib files
31478 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31480 cat >>confdefs.h <<_ACEOF
31481 #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31485 # Path to ImageMagick bin directory
31486 EXECUTABLE_PATH="${BIN_DIR}"
31487 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31488 case "${build_os}" in
31490 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31494 cat >>confdefs.h <<_ACEOF
31495 #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31500 # Path to ImageMagick lib
31501 LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31502 DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31503 case "${build_os}" in
31505 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31509 cat >>confdefs.h <<_ACEOF
31510 #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31516 # Subdirectory under lib to place ImageMagick coder module files
31517 CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
31519 cat >>confdefs.h <<_ACEOF
31520 #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
31523 CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
31524 DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
31525 case "${build_os}" in
31527 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
31531 cat >>confdefs.h <<_ACEOF
31532 #define CODER_PATH "$DEFINE_CODER_PATH"
31538 # Subdirectory under lib to place ImageMagick filter module files
31539 FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
31541 cat >>confdefs.h <<_ACEOF
31542 #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
31545 FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
31546 DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
31547 case "${build_os}" in
31549 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
31553 cat >>confdefs.h <<_ACEOF
31554 #define FILTER_PATH "$DEFINE_FILTER_PATH"
31560 # Path to ImageMagick documentation files
31561 DOCUMENTATION_RELATIVE_PATH=""
31562 DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
31563 DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
31564 case "${build_os}" in
31566 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
31570 cat >>confdefs.h <<_ACEOF
31571 #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
31576 # Subdirectory to place ImageMagick configuration files
31577 CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
31579 cat >>confdefs.h <<_ACEOF
31580 #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
31583 CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31584 DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
31585 case "${build_os}" in
31587 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
31591 cat >>confdefs.h <<_ACEOF
31592 #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
31597 # Subdirectory to place ImageMagick configuration files
31598 SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
31600 cat >>confdefs.h <<_ACEOF
31601 #define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
31604 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
31605 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
31606 case "${build_os}" in
31608 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
31612 cat >>confdefs.h <<_ACEOF
31613 #define SHARE_PATH "$DEFINE_SHARE_PATH"
31619 # program_transform_name is formed for use in a Makefile, so create a
31620 # modified version for use in a shell script.
31621 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
31623 # Default delegate definitions
31624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31625 $as_echo "-------------------------------------------------------------" >&6; }
31626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
31627 $as_echo_n "checking for ImageMagick delegate programs... " >&6; }
31628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31630 AutotraceDecodeDelegateDefault='autotrace'
31631 BlenderDecodeDelegateDefault='blender'
31632 BZIPDelegateDefault='bzip2'
31633 BrowseDelegateDefault='xdg-open'
31634 CGMDecodeDelegateDefault='ralcgm'
31635 CatDelegateDefault='cat'
31636 DNGDecodeDelegateDefault='ufraw-batch'
31637 GVCDecodeDelegateDefault='dot'
31638 DVIDecodeDelegateDefault='dvips'
31639 EchoDelegateDefault='echo'
31640 EditorDelegateDefault='xterm'
31641 FIGDecodeDelegateDefault='fig2dev'
31642 ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
31643 DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
31644 MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
31645 GnuplotDecodeDelegateDefault='gnuplot'
31646 HPGLDecodeDelegateDefault='hp2xx'
31647 HTMLDecodeDelegateDefault='html2ps'
31648 ILBMDecodeDelegateDefault='ilbmtoppm'
31649 ILBMEncodeDelegateDefault='ppmtoilbm'
31650 LPDelegateDefault='lp'
31651 LPRDelegateDefault='lpr'
31652 LZWDecodeDelegateDefault='uncompress'
31653 LZWEncodeDelegateDefault='compress'
31654 LaunchDelegateDefault='gimp'
31655 MANDelegateDefault='groff'
31656 MPEGDecodeDelegateDefault='ffmpeg'
31657 MPEGEncodeDelegateDefault='ffmpeg'
31658 MrSIDDecodeDelegateDefault='mrsidgeodecode'
31659 MVDelegateDefault='mv'
31660 PCLDelegateDefault='pcl6'
31661 PGPDecodeDelegateDefault='pgpv'
31662 POVDelegateDefault='povray'
31663 if test "$native_win32_build" = 'yes'; then
31664 PSDelegateDefault='gswin32c'
31665 elif test "$gslib_framework" = 'yes'; then
31666 PSDelegateDefault='gsc'
31668 PSDelegateDefault='gs'
31670 RLEEncodeDelegateDefault='rawtorle'
31671 RMDelegateDefault='rm'
31672 RSVGDecodeDelegateDefault='rsvg'
31673 SCANDecodeDelegateDefault='scanimage'
31674 TXTDelegateDefault='enscript'
31675 UniconvertorDelegateDefault='uniconvertor'
31676 WMFDecodeDelegateDefault='wmf2eps'
31677 WWWDecodeDelegateDefault='curl'
31678 XPSDelegateDefault='gxps'
31679 ZipDelegateDefault='gzip'
31681 # Search for delegates
31682 # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
31683 set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
31684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31685 $as_echo_n "checking for $ac_word... " >&6; }
31686 if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
31687 $as_echo_n "(cached) " >&6
31689 case $AutotraceDecodeDelegate in
31691 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
31694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31695 for as_dir in $PATH
31698 test -z "$as_dir" && as_dir=.
31699 for ac_exec_ext in '' $ac_executable_extensions; do
31700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31701 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31709 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
31713 AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
31714 if test -n "$AutotraceDecodeDelegate"; then
31715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
31716 $as_echo "$AutotraceDecodeDelegate" >&6; }
31718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31719 $as_echo "no" >&6; }
31723 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
31724 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
31725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31726 $as_echo_n "checking for $ac_word... " >&6; }
31727 if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
31728 $as_echo_n "(cached) " >&6
31730 case $BlenderDecodeDelegate in
31732 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
31735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31736 for as_dir in $PATH
31739 test -z "$as_dir" && as_dir=.
31740 for ac_exec_ext in '' $ac_executable_extensions; do
31741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31742 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31750 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
31754 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
31755 if test -n "$BlenderDecodeDelegate"; then
31756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
31757 $as_echo "$BlenderDecodeDelegate" >&6; }
31759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31760 $as_echo "no" >&6; }
31764 # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
31765 set dummy "$BZIPDelegateDefault"; ac_word=$2
31766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31767 $as_echo_n "checking for $ac_word... " >&6; }
31768 if ${ac_cv_path_BZIPDelegate+:} false; then :
31769 $as_echo_n "(cached) " >&6
31771 case $BZIPDelegate in
31773 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
31776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31777 for as_dir in $PATH
31780 test -z "$as_dir" && as_dir=.
31781 for ac_exec_ext in '' $ac_executable_extensions; do
31782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31783 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
31784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31791 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
31795 BZIPDelegate=$ac_cv_path_BZIPDelegate
31796 if test -n "$BZIPDelegate"; then
31797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
31798 $as_echo "$BZIPDelegate" >&6; }
31800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31801 $as_echo "no" >&6; }
31805 # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
31806 set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
31807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31808 $as_echo_n "checking for $ac_word... " >&6; }
31809 if ${ac_cv_path_BrowseDelegate+:} false; then :
31810 $as_echo_n "(cached) " >&6
31812 case $BrowseDelegate in
31814 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
31817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31818 for as_dir in $PATH
31821 test -z "$as_dir" && as_dir=.
31822 for ac_exec_ext in '' $ac_executable_extensions; do
31823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31824 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
31825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31832 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
31836 BrowseDelegate=$ac_cv_path_BrowseDelegate
31837 if test -n "$BrowseDelegate"; then
31838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
31839 $as_echo "$BrowseDelegate" >&6; }
31841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31842 $as_echo "no" >&6; }
31846 # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
31847 set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
31848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31849 $as_echo_n "checking for $ac_word... " >&6; }
31850 if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
31851 $as_echo_n "(cached) " >&6
31853 case $CGMDecodeDelegate in
31855 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
31858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31859 for as_dir in $PATH
31862 test -z "$as_dir" && as_dir=.
31863 for ac_exec_ext in '' $ac_executable_extensions; do
31864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31865 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31873 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
31877 CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
31878 if test -n "$CGMDecodeDelegate"; then
31879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
31880 $as_echo "$CGMDecodeDelegate" >&6; }
31882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31883 $as_echo "no" >&6; }
31887 # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
31888 set dummy "$CatDelegateDefault"; ac_word=$2
31889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31890 $as_echo_n "checking for $ac_word... " >&6; }
31891 if ${ac_cv_path_CatDelegate+:} false; then :
31892 $as_echo_n "(cached) " >&6
31894 case $CatDelegate in
31896 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
31899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31900 for as_dir in $PATH
31903 test -z "$as_dir" && as_dir=.
31904 for ac_exec_ext in '' $ac_executable_extensions; do
31905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31906 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
31907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31914 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
31918 CatDelegate=$ac_cv_path_CatDelegate
31919 if test -n "$CatDelegate"; then
31920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
31921 $as_echo "$CatDelegate" >&6; }
31923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31924 $as_echo "no" >&6; }
31928 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
31929 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
31930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31931 $as_echo_n "checking for $ac_word... " >&6; }
31932 if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
31933 $as_echo_n "(cached) " >&6
31935 case $DNGDecodeDelegate in
31937 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
31940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31941 for as_dir in $PATH
31944 test -z "$as_dir" && as_dir=.
31945 for ac_exec_ext in '' $ac_executable_extensions; do
31946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31947 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31955 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
31959 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
31960 if test -n "$DNGDecodeDelegate"; then
31961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
31962 $as_echo "$DNGDecodeDelegate" >&6; }
31964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31965 $as_echo "no" >&6; }
31969 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
31970 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
31971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31972 $as_echo_n "checking for $ac_word... " >&6; }
31973 if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
31974 $as_echo_n "(cached) " >&6
31976 case $GVCDecodeDelegate in
31978 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
31981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31982 for as_dir in $PATH
31985 test -z "$as_dir" && as_dir=.
31986 for ac_exec_ext in '' $ac_executable_extensions; do
31987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31988 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31996 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32000 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32001 if test -n "$GVCDecodeDelegate"; then
32002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
32003 $as_echo "$GVCDecodeDelegate" >&6; }
32005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32006 $as_echo "no" >&6; }
32010 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32011 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
32012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32013 $as_echo_n "checking for $ac_word... " >&6; }
32014 if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
32015 $as_echo_n "(cached) " >&6
32017 case $DVIDecodeDelegate in
32019 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32023 for as_dir in $PATH
32026 test -z "$as_dir" && as_dir=.
32027 for ac_exec_ext in '' $ac_executable_extensions; do
32028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32029 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32037 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32041 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32042 if test -n "$DVIDecodeDelegate"; then
32043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
32044 $as_echo "$DVIDecodeDelegate" >&6; }
32046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32047 $as_echo "no" >&6; }
32051 # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32052 set dummy "$EchoDelegateDefault"; ac_word=$2
32053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32054 $as_echo_n "checking for $ac_word... " >&6; }
32055 if ${ac_cv_path_EchoDelegate+:} false; then :
32056 $as_echo_n "(cached) " >&6
32058 case $EchoDelegate in
32060 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32064 for as_dir in $PATH
32067 test -z "$as_dir" && as_dir=.
32068 for ac_exec_ext in '' $ac_executable_extensions; do
32069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32070 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
32071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32078 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32082 EchoDelegate=$ac_cv_path_EchoDelegate
32083 if test -n "$EchoDelegate"; then
32084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
32085 $as_echo "$EchoDelegate" >&6; }
32087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32088 $as_echo "no" >&6; }
32092 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32093 set dummy "$EditorDelegateDefault"; ac_word=$2
32094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32095 $as_echo_n "checking for $ac_word... " >&6; }
32096 if ${ac_cv_path_EditorDelegate+:} false; then :
32097 $as_echo_n "(cached) " >&6
32099 case $EditorDelegate in
32101 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32105 for as_dir in $PATH
32108 test -z "$as_dir" && as_dir=.
32109 for ac_exec_ext in '' $ac_executable_extensions; do
32110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32111 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
32112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32119 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32123 EditorDelegate=$ac_cv_path_EditorDelegate
32124 if test -n "$EditorDelegate"; then
32125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
32126 $as_echo "$EditorDelegate" >&6; }
32128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32129 $as_echo "no" >&6; }
32133 # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32134 set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
32135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32136 $as_echo_n "checking for $ac_word... " >&6; }
32137 if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
32138 $as_echo_n "(cached) " >&6
32140 case $FIGDecodeDelegate in
32142 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32146 for as_dir in $PATH
32149 test -z "$as_dir" && as_dir=.
32150 for ac_exec_ext in '' $ac_executable_extensions; do
32151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32152 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32160 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32164 FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32165 if test -n "$FIGDecodeDelegate"; then
32166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
32167 $as_echo "$FIGDecodeDelegate" >&6; }
32169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32170 $as_echo "no" >&6; }
32174 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32175 set dummy "$ConvertDelegateDefault"; ac_word=$2
32176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32177 $as_echo_n "checking for $ac_word... " >&6; }
32178 if ${ac_cv_path_ConvertDelegate+:} false; then :
32179 $as_echo_n "(cached) " >&6
32181 case $ConvertDelegate in
32183 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32187 for as_dir in $PATH
32190 test -z "$as_dir" && as_dir=.
32191 for ac_exec_ext in '' $ac_executable_extensions; do
32192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32193 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
32194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32201 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32205 ConvertDelegate=$ac_cv_path_ConvertDelegate
32206 if test -n "$ConvertDelegate"; then
32207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
32208 $as_echo "$ConvertDelegate" >&6; }
32210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32211 $as_echo "no" >&6; }
32215 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32216 set dummy "$DisplayDelegateDefault"; ac_word=$2
32217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32218 $as_echo_n "checking for $ac_word... " >&6; }
32219 if ${ac_cv_path_DisplayDelegate+:} false; then :
32220 $as_echo_n "(cached) " >&6
32222 case $DisplayDelegate in
32224 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32228 for as_dir in $PATH
32231 test -z "$as_dir" && as_dir=.
32232 for ac_exec_ext in '' $ac_executable_extensions; do
32233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32234 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
32235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32242 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32246 DisplayDelegate=$ac_cv_path_DisplayDelegate
32247 if test -n "$DisplayDelegate"; then
32248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
32249 $as_echo "$DisplayDelegate" >&6; }
32251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32252 $as_echo "no" >&6; }
32256 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32257 set dummy "$MogrifyDelegateDefault"; ac_word=$2
32258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32259 $as_echo_n "checking for $ac_word... " >&6; }
32260 if ${ac_cv_path_MogrifyDelegate+:} false; then :
32261 $as_echo_n "(cached) " >&6
32263 case $MogrifyDelegate in
32265 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32269 for as_dir in $PATH
32272 test -z "$as_dir" && as_dir=.
32273 for ac_exec_ext in '' $ac_executable_extensions; do
32274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32275 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
32276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32283 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32287 MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32288 if test -n "$MogrifyDelegate"; then
32289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
32290 $as_echo "$MogrifyDelegate" >&6; }
32292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32293 $as_echo "no" >&6; }
32297 # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32298 set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
32299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32300 $as_echo_n "checking for $ac_word... " >&6; }
32301 if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
32302 $as_echo_n "(cached) " >&6
32304 case $GnuplotDecodeDelegate in
32306 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32310 for as_dir in $PATH
32313 test -z "$as_dir" && as_dir=.
32314 for ac_exec_ext in '' $ac_executable_extensions; do
32315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32316 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32324 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32328 GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32329 if test -n "$GnuplotDecodeDelegate"; then
32330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
32331 $as_echo "$GnuplotDecodeDelegate" >&6; }
32333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32334 $as_echo "no" >&6; }
32338 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32339 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
32340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32341 $as_echo_n "checking for $ac_word... " >&6; }
32342 if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
32343 $as_echo_n "(cached) " >&6
32345 case $HPGLDecodeDelegate in
32347 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32351 for as_dir in $PATH
32354 test -z "$as_dir" && as_dir=.
32355 for ac_exec_ext in '' $ac_executable_extensions; do
32356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32357 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32365 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32369 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32370 if test -n "$HPGLDecodeDelegate"; then
32371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
32372 $as_echo "$HPGLDecodeDelegate" >&6; }
32374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32375 $as_echo "no" >&6; }
32379 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32380 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
32381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32382 $as_echo_n "checking for $ac_word... " >&6; }
32383 if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
32384 $as_echo_n "(cached) " >&6
32386 case $HTMLDecodeDelegate in
32388 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32392 for as_dir in $PATH
32395 test -z "$as_dir" && as_dir=.
32396 for ac_exec_ext in '' $ac_executable_extensions; do
32397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32398 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32406 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32410 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32411 if test -n "$HTMLDecodeDelegate"; then
32412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
32413 $as_echo "$HTMLDecodeDelegate" >&6; }
32415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32416 $as_echo "no" >&6; }
32420 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32421 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
32422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32423 $as_echo_n "checking for $ac_word... " >&6; }
32424 if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
32425 $as_echo_n "(cached) " >&6
32427 case $ILBMDecodeDelegate in
32429 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32433 for as_dir in $PATH
32436 test -z "$as_dir" && as_dir=.
32437 for ac_exec_ext in '' $ac_executable_extensions; do
32438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32439 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32447 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32451 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32452 if test -n "$ILBMDecodeDelegate"; then
32453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
32454 $as_echo "$ILBMDecodeDelegate" >&6; }
32456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32457 $as_echo "no" >&6; }
32461 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32462 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
32463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32464 $as_echo_n "checking for $ac_word... " >&6; }
32465 if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
32466 $as_echo_n "(cached) " >&6
32468 case $ILBMEncodeDelegate in
32470 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32474 for as_dir in $PATH
32477 test -z "$as_dir" && as_dir=.
32478 for ac_exec_ext in '' $ac_executable_extensions; do
32479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32480 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32488 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32492 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32493 if test -n "$ILBMEncodeDelegate"; then
32494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
32495 $as_echo "$ILBMEncodeDelegate" >&6; }
32497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32498 $as_echo "no" >&6; }
32502 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
32503 set dummy "$LPDelegateDefault"; ac_word=$2
32504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32505 $as_echo_n "checking for $ac_word... " >&6; }
32506 if ${ac_cv_path_LPDelegate+:} false; then :
32507 $as_echo_n "(cached) " >&6
32509 case $LPDelegate in
32511 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
32514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32515 for as_dir in $PATH
32518 test -z "$as_dir" && as_dir=.
32519 for ac_exec_ext in '' $ac_executable_extensions; do
32520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32521 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
32522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32529 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
32533 LPDelegate=$ac_cv_path_LPDelegate
32534 if test -n "$LPDelegate"; then
32535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
32536 $as_echo "$LPDelegate" >&6; }
32538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32539 $as_echo "no" >&6; }
32543 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
32544 set dummy "$LPRDelegateDefault"; ac_word=$2
32545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32546 $as_echo_n "checking for $ac_word... " >&6; }
32547 if ${ac_cv_path_LPRDelegate+:} false; then :
32548 $as_echo_n "(cached) " >&6
32550 case $LPRDelegate in
32552 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
32555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32556 for as_dir in $PATH
32559 test -z "$as_dir" && as_dir=.
32560 for ac_exec_ext in '' $ac_executable_extensions; do
32561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32562 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
32563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32570 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
32574 LPRDelegate=$ac_cv_path_LPRDelegate
32575 if test -n "$LPRDelegate"; then
32576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
32577 $as_echo "$LPRDelegate" >&6; }
32579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32580 $as_echo "no" >&6; }
32584 # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
32585 set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
32586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32587 $as_echo_n "checking for $ac_word... " >&6; }
32588 if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
32589 $as_echo_n "(cached) " >&6
32591 case $LZWDecodeDelegate in
32593 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
32596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32597 for as_dir in $PATH
32600 test -z "$as_dir" && as_dir=.
32601 for ac_exec_ext in '' $ac_executable_extensions; do
32602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32603 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32611 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
32615 LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
32616 if test -n "$LZWDecodeDelegate"; then
32617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
32618 $as_echo "$LZWDecodeDelegate" >&6; }
32620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32621 $as_echo "no" >&6; }
32625 # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
32626 set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
32627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32628 $as_echo_n "checking for $ac_word... " >&6; }
32629 if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
32630 $as_echo_n "(cached) " >&6
32632 case $LZWEncodeDelegate in
32634 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
32637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32638 for as_dir in $PATH
32641 test -z "$as_dir" && as_dir=.
32642 for ac_exec_ext in '' $ac_executable_extensions; do
32643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32644 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32652 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
32656 LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
32657 if test -n "$LZWEncodeDelegate"; then
32658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
32659 $as_echo "$LZWEncodeDelegate" >&6; }
32661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32662 $as_echo "no" >&6; }
32666 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
32667 set dummy "$LaunchDelegateDefault"; ac_word=$2
32668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32669 $as_echo_n "checking for $ac_word... " >&6; }
32670 if ${ac_cv_path_LaunchDelegate+:} false; then :
32671 $as_echo_n "(cached) " >&6
32673 case $LaunchDelegate in
32675 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
32678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32679 for as_dir in $PATH
32682 test -z "$as_dir" && as_dir=.
32683 for ac_exec_ext in '' $ac_executable_extensions; do
32684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32685 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
32686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32693 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
32697 LaunchDelegate=$ac_cv_path_LaunchDelegate
32698 if test -n "$LaunchDelegate"; then
32699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
32700 $as_echo "$LaunchDelegate" >&6; }
32702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32703 $as_echo "no" >&6; }
32707 # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
32708 set dummy "$MANDelegateDefault"; ac_word=$2
32709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32710 $as_echo_n "checking for $ac_word... " >&6; }
32711 if ${ac_cv_path_MANDelegate+:} false; then :
32712 $as_echo_n "(cached) " >&6
32714 case $MANDelegate in
32716 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
32719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32720 for as_dir in $PATH
32723 test -z "$as_dir" && as_dir=.
32724 for ac_exec_ext in '' $ac_executable_extensions; do
32725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32726 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
32727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32734 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
32738 MANDelegate=$ac_cv_path_MANDelegate
32739 if test -n "$MANDelegate"; then
32740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
32741 $as_echo "$MANDelegate" >&6; }
32743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32744 $as_echo "no" >&6; }
32748 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
32749 set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
32750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32751 $as_echo_n "checking for $ac_word... " >&6; }
32752 if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
32753 $as_echo_n "(cached) " >&6
32755 case $MPEGDecodeDelegate in
32757 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
32760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32761 for as_dir in $PATH
32764 test -z "$as_dir" && as_dir=.
32765 for ac_exec_ext in '' $ac_executable_extensions; do
32766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32767 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32775 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
32779 MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
32780 if test -n "$MPEGDecodeDelegate"; then
32781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
32782 $as_echo "$MPEGDecodeDelegate" >&6; }
32784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32785 $as_echo "no" >&6; }
32789 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
32790 set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
32791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32792 $as_echo_n "checking for $ac_word... " >&6; }
32793 if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
32794 $as_echo_n "(cached) " >&6
32796 case $MPEGEncodeDelegate in
32798 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
32801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32802 for as_dir in $PATH
32805 test -z "$as_dir" && as_dir=.
32806 for ac_exec_ext in '' $ac_executable_extensions; do
32807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32808 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32816 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
32820 MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
32821 if test -n "$MPEGEncodeDelegate"; then
32822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
32823 $as_echo "$MPEGEncodeDelegate" >&6; }
32825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32826 $as_echo "no" >&6; }
32830 # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
32831 set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
32832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32833 $as_echo_n "checking for $ac_word... " >&6; }
32834 if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
32835 $as_echo_n "(cached) " >&6
32837 case $MrSIDDecodeDelegate in
32839 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
32842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32843 for as_dir in $PATH
32846 test -z "$as_dir" && as_dir=.
32847 for ac_exec_ext in '' $ac_executable_extensions; do
32848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32849 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32857 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
32861 MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
32862 if test -n "$MrSIDDecodeDelegate"; then
32863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
32864 $as_echo "$MrSIDDecodeDelegate" >&6; }
32866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32867 $as_echo "no" >&6; }
32871 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
32872 set dummy "$MVDelegateDefault"; ac_word=$2
32873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32874 $as_echo_n "checking for $ac_word... " >&6; }
32875 if ${ac_cv_path_MVDelegate+:} false; then :
32876 $as_echo_n "(cached) " >&6
32878 case $MVDelegate in
32880 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
32883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32884 for as_dir in $PATH
32887 test -z "$as_dir" && as_dir=.
32888 for ac_exec_ext in '' $ac_executable_extensions; do
32889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32890 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
32891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32898 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
32902 MVDelegate=$ac_cv_path_MVDelegate
32903 if test -n "$MVDelegate"; then
32904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
32905 $as_echo "$MVDelegate" >&6; }
32907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32908 $as_echo "no" >&6; }
32912 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
32913 set dummy "$PCLDelegateDefault"; ac_word=$2
32914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32915 $as_echo_n "checking for $ac_word... " >&6; }
32916 if ${ac_cv_path_PCLDelegate+:} false; then :
32917 $as_echo_n "(cached) " >&6
32919 case $PCLDelegate in
32921 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
32924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32925 for as_dir in $PATH
32928 test -z "$as_dir" && as_dir=.
32929 for ac_exec_ext in '' $ac_executable_extensions; do
32930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32931 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
32932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32939 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
32943 PCLDelegate=$ac_cv_path_PCLDelegate
32944 if test -n "$PCLDelegate"; then
32945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
32946 $as_echo "$PCLDelegate" >&6; }
32948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32949 $as_echo "no" >&6; }
32953 # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
32954 set dummy "$PGPDecodeDelegateDefault"; 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_PGPDecodeDelegate+:} false; then :
32958 $as_echo_n "(cached) " >&6
32960 case $PGPDecodeDelegate in
32962 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # 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_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
32973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32980 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
32984 PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
32985 if test -n "$PGPDecodeDelegate"; then
32986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
32987 $as_echo "$PGPDecodeDelegate" >&6; }
32989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32990 $as_echo "no" >&6; }
32994 # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
32995 set dummy "$POVDelegateDefault"; ac_word=$2
32996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32997 $as_echo_n "checking for $ac_word... " >&6; }
32998 if ${ac_cv_path_POVDelegate+:} false; then :
32999 $as_echo_n "(cached) " >&6
33001 case $POVDelegate in
33003 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33007 for as_dir in $PATH
33010 test -z "$as_dir" && as_dir=.
33011 for ac_exec_ext in '' $ac_executable_extensions; do
33012 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33013 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
33014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33021 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33025 POVDelegate=$ac_cv_path_POVDelegate
33026 if test -n "$POVDelegate"; then
33027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
33028 $as_echo "$POVDelegate" >&6; }
33030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33031 $as_echo "no" >&6; }
33035 for ac_prog in gsx gsc "$PSDelegateDefault"
33037 # Extract the first word of "$ac_prog", so it can be a program name with args.
33038 set dummy $ac_prog; ac_word=$2
33039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33040 $as_echo_n "checking for $ac_word... " >&6; }
33041 if ${ac_cv_path_PSDelegate+:} false; then :
33042 $as_echo_n "(cached) " >&6
33044 case $PSDelegate in
33046 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33050 for as_dir in $PATH
33053 test -z "$as_dir" && as_dir=.
33054 for ac_exec_ext in '' $ac_executable_extensions; do
33055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33056 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
33057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33067 PSDelegate=$ac_cv_path_PSDelegate
33068 if test -n "$PSDelegate"; then
33069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
33070 $as_echo "$PSDelegate" >&6; }
33072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33073 $as_echo "no" >&6; }
33077 test -n "$PSDelegate" && break
33079 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33081 # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33082 set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
33083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33084 $as_echo_n "checking for $ac_word... " >&6; }
33085 if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
33086 $as_echo_n "(cached) " >&6
33088 case $RLEEncodeDelegate in
33090 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33094 for as_dir in $PATH
33097 test -z "$as_dir" && as_dir=.
33098 for ac_exec_ext in '' $ac_executable_extensions; do
33099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33100 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33108 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33112 RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33113 if test -n "$RLEEncodeDelegate"; then
33114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
33115 $as_echo "$RLEEncodeDelegate" >&6; }
33117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33118 $as_echo "no" >&6; }
33122 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33123 set dummy "$RMDelegateDefault"; ac_word=$2
33124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33125 $as_echo_n "checking for $ac_word... " >&6; }
33126 if ${ac_cv_path_RMDelegate+:} false; then :
33127 $as_echo_n "(cached) " >&6
33129 case $RMDelegate in
33131 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33135 for as_dir in $PATH
33138 test -z "$as_dir" && as_dir=.
33139 for ac_exec_ext in '' $ac_executable_extensions; do
33140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33141 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
33142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33149 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33153 RMDelegate=$ac_cv_path_RMDelegate
33154 if test -n "$RMDelegate"; then
33155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
33156 $as_echo "$RMDelegate" >&6; }
33158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33159 $as_echo "no" >&6; }
33163 # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33164 set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33166 $as_echo_n "checking for $ac_word... " >&6; }
33167 if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
33168 $as_echo_n "(cached) " >&6
33170 case $RSVGDecodeDelegate in
33172 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33176 for as_dir in $PATH
33179 test -z "$as_dir" && as_dir=.
33180 for ac_exec_ext in '' $ac_executable_extensions; do
33181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33182 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33190 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33194 RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33195 if test -n "$RSVGDecodeDelegate"; then
33196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33197 $as_echo "$RSVGDecodeDelegate" >&6; }
33199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33200 $as_echo "no" >&6; }
33204 # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33205 set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
33206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33207 $as_echo_n "checking for $ac_word... " >&6; }
33208 if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
33209 $as_echo_n "(cached) " >&6
33211 case $SCANDecodeDelegate in
33213 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33217 for as_dir in $PATH
33220 test -z "$as_dir" && as_dir=.
33221 for ac_exec_ext in '' $ac_executable_extensions; do
33222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33223 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33231 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33235 SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33236 if test -n "$SCANDecodeDelegate"; then
33237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
33238 $as_echo "$SCANDecodeDelegate" >&6; }
33240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33241 $as_echo "no" >&6; }
33245 # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33246 set dummy "$TXTDelegateDefault"; ac_word=$2
33247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33248 $as_echo_n "checking for $ac_word... " >&6; }
33249 if ${ac_cv_path_TXTDelegate+:} false; then :
33250 $as_echo_n "(cached) " >&6
33252 case $TXTDelegate in
33254 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33258 for as_dir in $PATH
33261 test -z "$as_dir" && as_dir=.
33262 for ac_exec_ext in '' $ac_executable_extensions; do
33263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33264 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
33265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33272 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33276 TXTDelegate=$ac_cv_path_TXTDelegate
33277 if test -n "$TXTDelegate"; then
33278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
33279 $as_echo "$TXTDelegate" >&6; }
33281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33282 $as_echo "no" >&6; }
33286 # Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33287 set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33289 $as_echo_n "checking for $ac_word... " >&6; }
33290 if ${ac_cv_path_UniconvertorDelegate+:} false; then :
33291 $as_echo_n "(cached) " >&6
33293 case $UniconvertorDelegate in
33295 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33299 for as_dir in $PATH
33302 test -z "$as_dir" && as_dir=.
33303 for ac_exec_ext in '' $ac_executable_extensions; do
33304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33305 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33313 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33317 UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33318 if test -n "$UniconvertorDelegate"; then
33319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33320 $as_echo "$UniconvertorDelegate" >&6; }
33322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33323 $as_echo "no" >&6; }
33327 # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33328 set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
33329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33330 $as_echo_n "checking for $ac_word... " >&6; }
33331 if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
33332 $as_echo_n "(cached) " >&6
33334 case $WMFDecodeDelegate in
33336 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33340 for as_dir in $PATH
33343 test -z "$as_dir" && as_dir=.
33344 for ac_exec_ext in '' $ac_executable_extensions; do
33345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33346 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33354 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33358 WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33359 if test -n "$WMFDecodeDelegate"; then
33360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
33361 $as_echo "$WMFDecodeDelegate" >&6; }
33363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33364 $as_echo "no" >&6; }
33368 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33369 set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
33370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33371 $as_echo_n "checking for $ac_word... " >&6; }
33372 if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
33373 $as_echo_n "(cached) " >&6
33375 case $WWWDecodeDelegate in
33377 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33381 for as_dir in $PATH
33384 test -z "$as_dir" && as_dir=.
33385 for ac_exec_ext in '' $ac_executable_extensions; do
33386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33387 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33395 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33399 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33400 if test -n "$WWWDecodeDelegate"; then
33401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
33402 $as_echo "$WWWDecodeDelegate" >&6; }
33404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33405 $as_echo "no" >&6; }
33409 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33410 set dummy "$XPSDelegateDefault"; ac_word=$2
33411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33412 $as_echo_n "checking for $ac_word... " >&6; }
33413 if ${ac_cv_path_XPSDelegate+:} false; then :
33414 $as_echo_n "(cached) " >&6
33416 case $XPSDelegate in
33418 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33422 for as_dir in $PATH
33425 test -z "$as_dir" && as_dir=.
33426 for ac_exec_ext in '' $ac_executable_extensions; do
33427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33428 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
33429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33436 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33440 XPSDelegate=$ac_cv_path_XPSDelegate
33441 if test -n "$XPSDelegate"; then
33442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
33443 $as_echo "$XPSDelegate" >&6; }
33445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33446 $as_echo "no" >&6; }
33450 # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33451 set dummy "$ZipDelegateDefault"; ac_word=$2
33452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33453 $as_echo_n "checking for $ac_word... " >&6; }
33454 if ${ac_cv_path_ZipDelegate+:} false; then :
33455 $as_echo_n "(cached) " >&6
33457 case $ZipDelegate in
33459 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33463 for as_dir in $PATH
33466 test -z "$as_dir" && as_dir=.
33467 for ac_exec_ext in '' $ac_executable_extensions; do
33468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33469 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
33470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33477 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33481 ZipDelegate=$ac_cv_path_ZipDelegate
33482 if test -n "$ZipDelegate"; then
33483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
33484 $as_echo "$ZipDelegate" >&6; }
33486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33487 $as_echo "no" >&6; }
33492 # Prefer lpr to lp; lp needs options tacked on.
33493 if test "$LPRDelegate" != no; then
33494 PrintDelegate="$LPRDelegate"
33496 PrintDelegate="$LPDelegate -c -s"
33500 # Installed ImageMagick utiltity paths
33501 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33502 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33503 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33505 # Set delegate booleans
33506 have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33507 have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33508 have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33509 have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33510 have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
33511 have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
33512 have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33513 have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
33514 have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33515 have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33518 # Test for font directories
33520 type_include_files=''
33523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33524 $as_echo_n "checking for Dejavu fonts directory... " >&6; }
33526 if test "${with_dejavu_font_dir}" != 'default'; then
33527 dejavu_font_dir="${with_dejavu_font_dir}/"
33529 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33530 if test -f "${font_dir}DejaVuSerif.ttf"; then
33531 dejavu_font_dir="${font_dir}"
33536 if test "${dejavu_font_dir}x" != 'x'; then
33537 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
33538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
33539 $as_echo "$dejavu_font_dir" >&6; }
33541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
33542 $as_echo "not found!" >&6; };
33547 windows_font_dir=''
33548 if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
33549 windows_font_dir="${with_windows_font_dir}/"
33551 if test "${windows_font_dir}x" != 'x'; then
33552 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
33553 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
33555 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
33556 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
33558 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
33559 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
33562 if test "${windows_font_dir}x" != 'x'; then
33563 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
33568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
33569 $as_echo_n "checking for Ghostscript fonts directory... " >&6; }
33570 ghostscript_font_dir=''
33571 if test "${with_gs_font_dir}" != 'default'; then
33572 ghostscript_font_dir="${with_gs_font_dir}/"
33574 if test "${native_win32_build}" = 'yes'; then
33575 # Native Windows Build
33576 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
33577 if test -f "${font_dir}a010013l.pfb"; then
33578 ghostscript_font_dir="$font_dir"
33582 if test "${PSDelegate}" != 'gswin32c'; then
33583 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
33586 # Linux / Mac OS X / Unix Build
33587 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
33588 if test -f "${font_dir}a010013l.pfb"; then
33589 ghostscript_font_dir="${font_dir}"
33593 if test "${ghostscript_font_dir}x" = 'x'; then
33594 if test "$PSDelegate" != 'gs'; then
33595 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
33600 if test "${ghostscript_font_dir}x" != 'x'; then
33601 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
33602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
33603 $as_echo "$ghostscript_font_dir" >&6; }
33605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
33606 $as_echo "not found!" >&6; };
33609 case "${build_os}" in
33611 PSDelegate=`$WinPathScript "$PSDelegate" 1`
33618 # Handle case where user doesn't want frozen paths
33620 if test "$with_frozenpaths" != 'yes'; then
33621 # Re-set delegate definitions to default (no paths)
33622 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
33623 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
33624 BZIPDelegate="$BZIPDelegateDefault"
33625 BrowseDelegate="$BrowseDelegateDefault"
33626 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
33627 CatDelegate="$CatDelegateDefault"
33628 ConvertDelegate="$ConvertDelegateDefault"
33629 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
33630 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
33631 EchoDelegate="$EchoDelegateDefault"
33632 EditorDelegate="$EditorDelegateDefault"
33633 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
33634 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
33635 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
33636 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
33637 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
33638 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
33639 LPDelegate="$LPDelegateDefault"
33640 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
33641 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
33642 LaunchDelegate="$LaunchDelegateDefault"
33643 MANDelegate="$MANDelegateDefault"
33644 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
33645 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
33646 MogrifyDelegate="$MogrifyDelegateDefault"
33647 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
33648 MVDelegate="$MVDelegateDefault"
33649 PCLDelegate="$PCLDelegateDefault"
33650 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
33651 POVDelegate="$POVDelegateDefault"
33652 PSDelegate="$PSDelegateDefault"
33653 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
33654 RMDelegate="$RMDelegateDefault"
33655 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
33656 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
33657 ShowImageDelegate="$ShowImageDelegateDefault"
33658 TXTDelegate="$TXTDelegateDefault"
33659 UniconvertorDelegate="$UniconvertorDelegateDefault"
33660 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
33661 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
33662 XPSDelegate="$XPSDelegateDefault"
33663 ZipDelegate="$ZipDelegateDefault"
33666 # Delegate substitutions
33713 for ac_prog in gnutar gtar tar
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_TAR+:} false; then :
33720 $as_echo_n "(cached) " >&6
33722 if test -n "$TAR"; then
33723 ac_cv_prog_TAR="$TAR" # 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_TAR="$ac_prog"
33733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33742 TAR=$ac_cv_prog_TAR
33743 if test -n "$TAR"; then
33744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
33745 $as_echo "$TAR" >&6; }
33747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33748 $as_echo "no" >&6; }
33752 test -n "$TAR" && break
33755 for ac_prog in perl
33757 # Extract the first word of "$ac_prog", so it can be a program name with args.
33758 set dummy $ac_prog; ac_word=$2
33759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33760 $as_echo_n "checking for $ac_word... " >&6; }
33761 if ${ac_cv_prog_PERL+:} false; then :
33762 $as_echo_n "(cached) " >&6
33764 if test -n "$PERL"; then
33765 ac_cv_prog_PERL="$PERL" # Let the user override the test.
33767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33768 for as_dir in $PATH
33771 test -z "$as_dir" && as_dir=.
33772 for ac_exec_ext in '' $ac_executable_extensions; do
33773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33774 ac_cv_prog_PERL="$ac_prog"
33775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33784 PERL=$ac_cv_prog_PERL
33785 if test -n "$PERL"; then
33786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
33787 $as_echo "$PERL" >&6; }
33789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33790 $as_echo "no" >&6; }
33794 test -n "$PERL" && break
33797 for ac_prog in rpmbuild rpm
33799 # Extract the first word of "$ac_prog", so it can be a program name with args.
33800 set dummy $ac_prog; ac_word=$2
33801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33802 $as_echo_n "checking for $ac_word... " >&6; }
33803 if ${ac_cv_prog_RPM+:} false; then :
33804 $as_echo_n "(cached) " >&6
33806 if test -n "$RPM"; then
33807 ac_cv_prog_RPM="$RPM" # Let the user override the test.
33809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33810 for as_dir in $PATH
33813 test -z "$as_dir" && as_dir=.
33814 for ac_exec_ext in '' $ac_executable_extensions; do
33815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33816 ac_cv_prog_RPM="$ac_prog"
33817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33826 RPM=$ac_cv_prog_RPM
33827 if test -n "$RPM"; then
33828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
33829 $as_echo "$RPM" >&6; }
33831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33832 $as_echo "no" >&6; }
33836 test -n "$RPM" && break
33840 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
33843 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
33846 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
33849 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
33852 if test "x$RPM" != "x" ; then
33854 RPM_DELEGATE_FALSE='#'
33856 RPM_DELEGATE_TRUE='#'
33857 RPM_DELEGATE_FALSE=
33862 # 7ZIP support (http://p7zip.sourceforge.net/)
33867 # Extract the first word of "$ac_prog", so it can be a program name with args.
33868 set dummy $ac_prog; ac_word=$2
33869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33870 $as_echo_n "checking for $ac_word... " >&6; }
33871 if ${ac_cv_prog_P7ZIP+:} false; then :
33872 $as_echo_n "(cached) " >&6
33874 if test -n "$P7ZIP"; then
33875 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
33877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33878 for as_dir in $PATH
33881 test -z "$as_dir" && as_dir=.
33882 for ac_exec_ext in '' $ac_executable_extensions; do
33883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33884 ac_cv_prog_P7ZIP="$ac_prog"
33885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33894 P7ZIP=$ac_cv_prog_P7ZIP
33895 if test -n "$P7ZIP"; then
33896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
33897 $as_echo "$P7ZIP" >&6; }
33899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33900 $as_echo "no" >&6; }
33904 test -n "$P7ZIP" && break
33908 if test "x$P7ZIP" != "x" ; then
33909 P7ZIP_DELEGATE_TRUE=
33910 P7ZIP_DELEGATE_FALSE='#'
33912 P7ZIP_DELEGATE_TRUE='#'
33913 P7ZIP_DELEGATE_FALSE=
33918 # ZIP support (http://www.info-zip.org/Zip.html)
33923 # Extract the first word of "$ac_prog", so it can be a program name with args.
33924 set dummy $ac_prog; ac_word=$2
33925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33926 $as_echo_n "checking for $ac_word... " >&6; }
33927 if ${ac_cv_prog_ZIP+:} false; then :
33928 $as_echo_n "(cached) " >&6
33930 if test -n "$ZIP"; then
33931 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
33933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33934 for as_dir in $PATH
33937 test -z "$as_dir" && as_dir=.
33938 for ac_exec_ext in '' $ac_executable_extensions; do
33939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33940 ac_cv_prog_ZIP="$ac_prog"
33941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33950 ZIP=$ac_cv_prog_ZIP
33951 if test -n "$ZIP"; then
33952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
33953 $as_echo "$ZIP" >&6; }
33955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33956 $as_echo "no" >&6; }
33960 test -n "$ZIP" && break
33964 if test "x$ZIP" != "x" ; then
33966 ZIP_DELEGATE_FALSE='#'
33968 ZIP_DELEGATE_TRUE='#'
33969 ZIP_DELEGATE_FALSE=
33974 # GhostPCL related configuration.
33976 PCLColorDevice=ppmraw
33977 PCLCMYKDevice=pamcmyk32
33978 PCLMonoDevice=pbmraw
33979 if test -z "$PCLVersion"; then
33980 PCLVersion='unknown'
33982 if test $have_pcl = 'yes'; then
33983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33984 $as_echo "-------------------------------------------------------------" >&6; }
33985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
33986 $as_echo_n "checking for PCL... " >&6; }
33987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
33991 $as_echo_n "checking for pcl color device... " >&6; }
33992 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33995 PCLColorDevice=ppmraw
33997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
33998 $as_echo "$PCLColorDevice" >&6; }
34001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
34002 $as_echo_n "checking for pcl CMYK device... " >&6; }
34003 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34006 PCLCMYKDevice=$PCLColorDevice
34008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
34009 $as_echo "$PCLCMYKDevice" >&6; }
34012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
34013 $as_echo_n "checking for pcl mono device... " >&6; }
34014 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34017 PCLMonoDevice=$PCLColorDevice
34019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
34020 $as_echo "$PCLMonoDevice" >&6; }
34029 # GhostXPS related configuration.
34031 XPSColorDevice=ppmraw
34032 XPSCMYKDevice=bmpsep8
34033 XPSMonoDevice=pbmraw
34034 if test -z "$XPSVersion"; then
34035 XPSVersion='unknown'
34037 if test $have_xps = 'yes'; then
34038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34039 $as_echo "-------------------------------------------------------------" >&6; }
34040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
34041 $as_echo_n "checking for XPS... " >&6; }
34042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
34046 $as_echo_n "checking for xps color device... " >&6; }
34047 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34050 XPSColorDevice=ppmraw
34052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
34053 $as_echo "$XPSColorDevice" >&6; }
34056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
34057 $as_echo_n "checking for xps CMYK device... " >&6; }
34058 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34061 XPSCMYKDevice=$XPSColorDevice
34063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
34064 $as_echo "$XPSCMYKDevice" >&6; }
34067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
34068 $as_echo_n "checking for xps mono device... " >&6; }
34069 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34072 XPSMonoDevice=$XPSColorDevice
34074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
34075 $as_echo "$XPSMonoDevice" >&6; }
34084 # Ghostscript related configuration.
34086 GSAlphaDevice=pngalpha
34087 GSColorDevice=pnmraw
34089 GSMonoDevice=pbmraw
34090 GSPDFDevice=pdfwrite
34092 GSEPSDevice=epswrite
34093 GSVersion='unknown'
34094 if test $have_gs = 'yes'; then
34095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34096 $as_echo "-------------------------------------------------------------" >&6; }
34097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
34098 $as_echo_n "checking for Ghostscript... " >&6; }
34099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
34102 $as_echo_n "checking for Ghostscript version... " >&6; }
34103 if GSVersion=`$PSDelegate --version`; then
34106 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
34109 $as_echo "$GSVersion" >&6; }
34112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
34113 $as_echo_n "checking for gs alpha device... " >&6; }
34114 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34117 GSAlphaDevice=pnmraw
34119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
34120 $as_echo "$GSAlphaDevice" >&6; }
34123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
34124 $as_echo_n "checking for gs color device... " >&6; }
34125 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34128 GSColorDevice=pnmraw
34130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
34131 $as_echo "$GSColorDevice" >&6; }
34134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
34135 $as_echo_n "checking for gs CMYK device... " >&6; }
34136 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34139 GSCMYKDevice=bmpsep8
34141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
34142 $as_echo "$GSCMYKDevice" >&6; }
34145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
34146 $as_echo_n "checking for gs mono device... " >&6; }
34147 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34150 GSMonoDevice=$GSColorDevice
34152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
34153 $as_echo "$GSMonoDevice" >&6; }
34156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
34157 $as_echo_n "checking for gs PDF writing device... " >&6; }
34158 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34161 GSPDFDevice=nodevice
34163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
34164 $as_echo "$GSPDFDevice" >&6; }
34167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
34168 $as_echo_n "checking for gs PS writing device... " >&6; }
34169 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34172 GSPSDevice=nodevice
34174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
34175 $as_echo "$GSPSDevice" >&6; }
34178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
34179 $as_echo_n "checking for gs EPS writing device... " >&6; }
34180 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34183 GSEPSDevice=nodevice
34185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
34186 $as_echo "$GSEPSDevice" >&6; }
34199 # PerlMagick-related configuration
34202 # Look for PERL if PerlMagick requested
34203 # If name/path of desired PERL interpreter is specified, look for that one first
34205 if test "$with_perl" != 'no'; then
34206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34207 $as_echo "-------------------------------------------------------------" >&6; }
34208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
34209 $as_echo_n "checking for Perl... " >&6; }
34210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
34212 if test "$with_perl" != 'yes'; then
34213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
34214 $as_echo_n "checking for perl... " >&6; }
34215 if ${ac_cv_path_PERL+:} false; then :
34216 $as_echo_n "(cached) " >&6
34218 ac_cv_path_PERL="$with_perl"
34220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
34221 $as_echo "$ac_cv_path_PERL" >&6; };
34222 PERL=$ac_cv_path_PERL
34223 have_perl="$ac_cv_path_PERL"
34225 for ac_prog in perl perl5
34227 # Extract the first word of "$ac_prog", so it can be a program name with args.
34228 set dummy $ac_prog; ac_word=$2
34229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34230 $as_echo_n "checking for $ac_word... " >&6; }
34231 if ${ac_cv_path_PERL+:} false; then :
34232 $as_echo_n "(cached) " >&6
34236 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34240 for as_dir in $PATH
34243 test -z "$as_dir" && as_dir=.
34244 for ac_exec_ext in '' $ac_executable_extensions; do
34245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
34246 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
34247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34257 PERL=$ac_cv_path_PERL
34258 if test -n "$PERL"; then
34259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
34260 $as_echo "$PERL" >&6; }
34262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34263 $as_echo "no" >&6; }
34267 test -n "$PERL" && break
34269 if test "$ac_cv_path_PERL"; then
34270 have_perl="$ac_cv_path_PERL"
34275 if test "$with_perl" != 'yes' ; then
34276 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34279 PERL_SUPPORTS_DESTDIR='no'
34281 with_perl_static='no'
34282 with_perl_dynamic='no'
34283 if test "$have_perl" != 'no'; then
34284 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34285 with_perl_static='yes'
34287 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34288 with_perl_dynamic='yes'
34290 # Is PERL's MakeMaker new enough to support DESTDIR?
34295 if test -n "$PERL"; then :
34297 ax_perl_version="5.8.1"
34299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34300 $as_echo_n "checking for perl version... " >&6; }
34302 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34305 $as_echo "$perl_version" >&6; }
34307 PERL_VERSION=$perl_version
34313 # Used to indicate true or false condition
34314 ax_compare_version=false
34316 # Convert the two version strings to be compared into a format that
34317 # allows a simple string comparison. The end result is that a version
34318 # string of the form 1.12.5-r617 will be converted to the form
34319 # 0001001200050617. In other words, each number is zero padded to four
34320 # digits, and non digits are removed.
34322 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34323 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34324 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34325 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34329 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34330 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34331 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34332 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34336 ax_compare_version=`echo "x$ax_compare_version_A
34337 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34341 if test "$ax_compare_version" = "true" ; then
34344 PERL_SUPPORTS_DESTDIR='yes'
34348 PERL_SUPPORTS_DESTDIR='no'
34355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34356 $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34357 PERL_SUPPORTS_DESTDIR='no'
34362 if test "$have_perl" != 'no'; then
34364 WITH_PERL_FALSE='#'
34370 if test $with_perl_static = 'yes'; then
34371 WITH_PERL_STATIC_TRUE=
34372 WITH_PERL_STATIC_FALSE='#'
34374 WITH_PERL_STATIC_TRUE='#'
34375 WITH_PERL_STATIC_FALSE=
34378 if test $with_perl_dynamic = 'yes'; then
34379 WITH_PERL_DYNAMIC_TRUE=
34380 WITH_PERL_DYNAMIC_FALSE='#'
34382 WITH_PERL_DYNAMIC_TRUE='#'
34383 WITH_PERL_DYNAMIC_FALSE=
34388 # Determine path to pick up MagickCore library from for use with building PerlMagick
34389 MAGICKCORE_PATH="${LIB_DIR}"
34390 if test $with_perl_static = 'yes'; then
34391 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34392 libtool_objdir=$objdir
34394 # Linker search path to library, followed by -lMagickCore
34395 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
34399 # Create a simple string containing format names for all delegate libraries
34401 if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34402 if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34403 if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34404 if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34405 if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34406 if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34407 if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34408 if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34409 if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34410 if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34411 if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34412 if test "$have_jpeg" = 'yes'; then
34413 DELEGATES="$DELEGATES jpeg";
34414 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34416 if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
34417 if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
34418 if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34419 if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
34420 if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
34421 if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34422 if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
34423 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
34424 if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34425 if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34426 if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34427 if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34428 if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34429 if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34434 # Handle special compiler flags
34437 # Add '-p' if prof source profiling support enabled
34438 if test "$enable_prof" = 'yes'; then
34439 CFLAGS="-p $CFLAGS"
34440 CXXFLAGS="-p $CXXFLAGS"
34441 LDFLAGS="-p $LDFLAGS"
34444 # Add '-pg' if gprof source profiling support enabled
34445 if test "$enable_gprof" = 'yes'; then
34446 CFLAGS="-pg $CFLAGS"
34447 CXXFLAGS="-pg $CXXFLAGS"
34448 LDFLAGS="-pg $LDFLAGS"
34451 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34452 # This is a gcc-specific feature
34453 if test "$enable_gcov" = 'yes'; then
34454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
34455 $as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
34456 if ${ac_cv_lib_gcov__gcov_init+:} false; then :
34457 $as_echo_n "(cached) " >&6
34459 ac_check_lib_save_LIBS=$LIBS
34460 LIBS="-lgcov $LIBS"
34461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34462 /* end confdefs.h. */
34464 /* Override any GCC internal prototype to avoid an error.
34465 Use char because int might match the return type of a GCC
34466 builtin and then its argument prototype would still apply. */
34470 char _gcov_init ();
34474 return _gcov_init ();
34479 if ac_fn_c_try_link "$LINENO"; then :
34480 ac_cv_lib_gcov__gcov_init=yes
34482 ac_cv_lib_gcov__gcov_init=no
34484 rm -f core conftest.err conftest.$ac_objext \
34485 conftest$ac_exeext conftest.$ac_ext
34486 LIBS=$ac_check_lib_save_LIBS
34488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
34489 $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
34490 if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
34491 cat >>confdefs.h <<_ACEOF
34492 #define HAVE_LIBGCOV 1
34495 LIBS="-lgcov $LIBS"
34499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
34500 $as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
34501 if ${ac_cv_lib_gcov___gcov_init+:} false; then :
34502 $as_echo_n "(cached) " >&6
34504 ac_check_lib_save_LIBS=$LIBS
34505 LIBS="-lgcov $LIBS"
34506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34507 /* end confdefs.h. */
34509 /* Override any GCC internal prototype to avoid an error.
34510 Use char because int might match the return type of a GCC
34511 builtin and then its argument prototype would still apply. */
34515 char __gcov_init ();
34519 return __gcov_init ();
34524 if ac_fn_c_try_link "$LINENO"; then :
34525 ac_cv_lib_gcov___gcov_init=yes
34527 ac_cv_lib_gcov___gcov_init=no
34529 rm -f core conftest.err conftest.$ac_objext \
34530 conftest$ac_exeext conftest.$ac_ext
34531 LIBS=$ac_check_lib_save_LIBS
34533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
34534 $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
34535 if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
34536 cat >>confdefs.h <<_ACEOF
34537 #define HAVE_LIBGCOV 1
34540 LIBS="-lgcov $LIBS"
34544 case "$target_os" in
34546 OSX_GCOV_LDFLAG="-Wl,-single_module"
34553 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
34554 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
34555 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
34559 # Build library dependency list for libMagickCore
34562 MAGICK_LIBLTDL='' # Libltdl for build
34563 MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
34564 MAGICK_LTDLDEPS='' # extra libltdl dependencies
34565 if test "$with_ltdl" != 'no'
34567 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
34568 MAGICK_API_LIBLTDL='-lltdl'
34570 MAGICK_LIBLTDL=${LIBLTDL}
34571 MAGICK_LTDLDEPS=${LTDLDEPS}
34576 if test "$with_modules" != 'no'; then
34577 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"
34579 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"
34584 # Remove extraneous spaces from output variables (asthetic)
34586 X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
34587 X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
34588 X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
34589 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
34591 CC=`echo $CC | sed -e 's/ */ /g'`
34592 CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
34593 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
34594 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
34595 DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
34596 DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
34597 LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
34598 TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34599 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
34600 #LIBS=`echo $LIBS | sed -e 's/ */ /g'`
34602 # Pass only user-provided LIBS as "global" libraries
34605 #AC_SUBST(CPPFLAGS)
34608 #AC_SUBST(X_PRE_LIBS)
34610 #AC_SUBST(X_EXTRA_LIBS)
34612 MAGICK_CFLAGS=$CFLAGS
34613 MAGICK_CXXFLAGS="$CXXFLAGS"
34614 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
34615 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
34616 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
34617 MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
34627 # Set configured scripts to executable.
34628 ac_config_commands="$ac_config_commands default"
34630 ac_config_commands="$ac_config_commands MagickCore-config.in"
34632 ac_config_commands="$ac_config_commands MagickWand-config.in"
34634 ac_config_commands="$ac_config_commands Magick++-config.in"
34636 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
34639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
34640 $as_echo "-------------------------------------------------------------" >&6; }
34641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
34642 $as_echo "Update ImageMagick configuration" >&6; }
34643 cat >confcache <<\_ACEOF
34644 # This file is a shell script that caches the results of configure
34645 # tests run on this system so they can be shared between configure
34646 # scripts and configure runs, see configure's option --config-cache.
34647 # It is not useful on other systems. If it contains results you don't
34648 # want to keep, you may remove or edit it.
34650 # config.status only pays attention to the cache file if you give it
34651 # the --recheck option to rerun configure.
34653 # `ac_cv_env_foo' variables (set or unset) will be overridden when
34654 # loading this file, other *unset* `ac_cv_foo' will be assigned the
34655 # following values.
34659 # The following way of writing the cache mishandles newlines in values,
34660 # but we know of no workaround that is simple, portable, and efficient.
34661 # So, we kill variables containing newlines.
34662 # Ultrix sh set writes to stderr and can't be redirected directly,
34663 # and sets the high bit in the cache file unless we assign to the vars.
34665 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
34666 eval ac_val=\$$ac_var
34670 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
34671 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
34674 _ | IFS | as_nl) ;; #(
34675 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
34676 *) { eval $ac_var=; unset $ac_var;} ;;
34682 case $as_nl`(ac_space=' '; set) 2>&1` in #(
34683 *${as_nl}ac_space=\ *)
34684 # `set' does not quote correctly, so add quotes: double-quote
34685 # substitution turns \\\\ into \\, and sed turns \\ into \.
34688 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
34691 # `set' quotes correctly as required by POSIX, so do not add quotes.
34692 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
34701 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
34703 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
34705 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
34706 if test -w "$cache_file"; then
34707 if test "x$cache_file" != "x/dev/null"; then
34708 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
34709 $as_echo "$as_me: updating cache $cache_file" >&6;}
34710 if test ! -f "$cache_file" || test -h "$cache_file"; then
34711 cat confcache >"$cache_file"
34713 case $cache_file in #(
34715 mv -f confcache "$cache_file"$$ &&
34716 mv -f "$cache_file"$$ "$cache_file" ;; #(
34718 mv -f confcache "$cache_file" ;;
34723 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
34724 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
34729 test "x$prefix" = xNONE && prefix=$ac_default_prefix
34730 # Let make expand exec_prefix.
34731 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
34733 DEFS=-DHAVE_CONFIG_H
34738 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
34739 # 1. Remove the extension, and $U if already installed.
34740 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
34741 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
34742 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
34743 # will be set to the directory where LIBOBJS objects are built.
34744 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
34745 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
34747 LIBOBJS=$ac_libobjs
34749 LTLIBOBJS=$ac_ltlibobjs
34752 if test -n "$EXEEXT"; then
34754 am__EXEEXT_FALSE='#'
34756 am__EXEEXT_TRUE='#'
34760 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
34761 as_fn_error $? "conditional \"AMDEP\" was never defined.
34762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34764 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34765 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
34766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34768 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
34769 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
34770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34772 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
34773 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
34774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34776 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
34777 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
34778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34780 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
34781 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
34782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34784 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
34785 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
34786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34788 if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
34789 as_fn_error $? "conditional \"USING_CL\" was never defined.
34790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34792 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
34793 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
34794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34796 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
34797 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
34798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34800 LT_CONFIG_H=config/config.h
34804 if test -n "$_LT_LIBOBJS"; then
34805 # Remove the extension.
34806 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
34807 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
34808 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
34809 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
34812 ltdl_LIBOBJS=$_ltdl_libobjs
34814 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
34817 if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
34818 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
34819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34821 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
34822 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
34823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34825 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
34826 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
34827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34829 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
34830 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
34831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34834 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
34835 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
34836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34838 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
34839 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
34840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34842 if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
34843 as_fn_error $? "conditional \"HasUMEM\" was never defined.
34844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34846 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
34847 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
34848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34850 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
34851 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
34852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34854 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
34855 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
34856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34858 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
34859 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
34860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34862 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
34863 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
34864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34866 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
34867 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
34868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34870 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
34871 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
34872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34874 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
34875 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
34876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34878 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
34879 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
34880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34882 if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
34883 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
34884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34886 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
34887 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
34888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34890 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
34891 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
34892 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34894 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
34895 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
34896 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34898 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
34899 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
34900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34902 if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
34903 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
34904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34906 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
34907 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
34908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34910 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
34911 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
34912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34914 if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
34915 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
34916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34918 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
34919 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
34920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34922 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
34923 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
34924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34926 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
34927 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
34928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34930 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
34931 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
34932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34934 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
34935 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
34936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34938 if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
34939 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
34940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34942 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
34943 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
34944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34946 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
34947 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
34948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34950 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
34951 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
34952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34954 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
34955 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
34956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34958 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
34959 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
34960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34962 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
34963 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
34964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34966 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
34967 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
34968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34970 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
34971 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
34972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
34975 : "${CONFIG_STATUS=./config.status}"
34977 ac_clean_files_save=$ac_clean_files
34978 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
34979 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
34980 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
34982 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
34984 # Generated by $as_me.
34985 # Run this file to recreate the current configuration.
34986 # Compiler output produced by configure, useful for debugging
34987 # configure, is in config.log if it exists.
34990 ac_cs_recheck=false
34993 SHELL=\${CONFIG_SHELL-$SHELL}
34996 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
34997 ## -------------------- ##
34998 ## M4sh Initialization. ##
34999 ## -------------------- ##
35001 # Be more Bourne compatible
35002 DUALCASE=1; export DUALCASE # for MKS sh
35003 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
35006 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35007 # is contrary to our usage. Disable this feature.
35008 alias -g '${1+"$@"}'='"$@"'
35009 setopt NO_GLOB_SUBST
35011 case `(set -o) 2>/dev/null` in #(
35023 # Printing a long string crashes Solaris 7 /usr/bin/printf.
35024 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35025 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35026 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
35027 # Prefer a ksh shell builtin over an external printf program on Solaris,
35028 # but without wasting forks for bash or zsh.
35029 if test -z "$BASH_VERSION$ZSH_VERSION" \
35030 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35031 as_echo='print -r --'
35032 as_echo_n='print -rn --'
35033 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
35034 as_echo='printf %s\n'
35035 as_echo_n='printf %s'
35037 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35038 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35039 as_echo_n='/usr/ucb/echo -n'
35041 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35042 as_echo_n_body='eval
35046 expr "X$arg" : "X\\(.*\\)$as_nl";
35047 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35049 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35051 export as_echo_n_body
35052 as_echo_n='sh -c $as_echo_n_body as_echo'
35054 export as_echo_body
35055 as_echo='sh -c $as_echo_body as_echo'
35058 # The user is always right.
35059 if test "${PATH_SEPARATOR+set}" != set; then
35061 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35062 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35069 # We need space, tab and new line, in precisely that order. Quoting is
35070 # there to prevent editors from complaining about space-tab.
35071 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
35072 # splitting by setting IFS to empty value.)
35075 # Find who we are. Look in the path if we contain no directory separator.
35078 *[\\/]* ) as_myself=$0 ;;
35079 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35080 for as_dir in $PATH
35083 test -z "$as_dir" && as_dir=.
35084 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35090 # We did not find ourselves, most probably we were run as `sh COMMAND'
35091 # in which case we are not to be found in the path.
35092 if test "x$as_myself" = x; then
35095 if test ! -f "$as_myself"; then
35096 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
35100 # Unset variables that we do not need and which cause bugs (e.g. in
35101 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35102 # suppresses any "Segmentation fault" message there. '((' could
35103 # trigger a bug in pdksh 5.2.14.
35104 for as_var in BASH_ENV ENV MAIL MAILPATH
35105 do eval test x\${$as_var+set} = xset \
35106 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
35119 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35122 # as_fn_error STATUS ERROR [LINENO LOG_FD]
35123 # ----------------------------------------
35124 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35125 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
35126 # script with STATUS, using 1 if that was 0.
35129 as_status=$1; test $as_status -eq 0 && as_status=1
35131 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35132 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
35134 $as_echo "$as_me: error: $2" >&2
35135 as_fn_exit $as_status
35139 # as_fn_set_status STATUS
35140 # -----------------------
35141 # Set $? to STATUS, without forking.
35142 as_fn_set_status ()
35145 } # as_fn_set_status
35147 # as_fn_exit STATUS
35148 # -----------------
35149 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35153 as_fn_set_status $1
35159 # Portably unset VAR.
35162 { eval $1=; unset $1;}
35164 as_unset=as_fn_unset
35165 # as_fn_append VAR VALUE
35166 # ----------------------
35167 # Append the text in VALUE to the end of the definition contained in VAR. Take
35168 # advantage of any shell optimizations that allow amortized linear growth over
35169 # repeated appends, instead of the typical quadratic growth present in naive
35171 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35172 eval 'as_fn_append ()
35183 # as_fn_arith ARG...
35184 # ------------------
35185 # Perform arithmetic evaluation on the ARGs, and store the result in the
35186 # global $as_val. Take advantage of shells that can avoid forks. The arguments
35187 # must be portable across $(()) and expr.
35188 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35189 eval 'as_fn_arith ()
35196 as_val=`expr "$@" || test $? -eq 1`
35201 if expr a : '\(a\)' >/dev/null 2>&1 &&
35202 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35208 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35209 as_basename=basename
35214 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35220 as_me=`$as_basename -- "$0" ||
35221 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35222 X"$0" : 'X\(//\)$' \| \
35223 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35225 sed '/^.*\/\([^/][^/]*\)\/*$/{
35239 # Avoid depending upon Character Ranges.
35240 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35241 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35242 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35243 as_cr_digits='0123456789'
35244 as_cr_alnum=$as_cr_Letters$as_cr_digits
35246 ECHO_C= ECHO_N= ECHO_T=
35247 case `echo -n x` in #(((((
35249 case `echo 'xy\c'` in
35250 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
35252 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35259 rm -f conf$$ conf$$.exe conf$$.file
35260 if test -d conf$$.dir; then
35261 rm -f conf$$.dir/conf$$.file
35264 mkdir conf$$.dir 2>/dev/null
35266 if (echo >conf$$.file) 2>/dev/null; then
35267 if ln -s conf$$.file conf$$ 2>/dev/null; then
35269 # ... but there are two gotchas:
35270 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35271 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
35272 # In both cases, we have to default to `cp -p'.
35273 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
35275 elif ln conf$$.file conf$$ 2>/dev/null; then
35283 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35284 rmdir conf$$.dir 2>/dev/null
35289 # Create "$as_dir" as a directory, including parents if necessary.
35294 -*) as_dir=./$as_dir;;
35296 test -d "$as_dir" || eval $as_mkdir_p || {
35300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35301 *) as_qdir=$as_dir;;
35303 as_dirs="'$as_qdir' $as_dirs"
35304 as_dir=`$as_dirname -- "$as_dir" ||
35305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35306 X"$as_dir" : 'X\(//\)[^/]' \| \
35307 X"$as_dir" : 'X\(//\)$' \| \
35308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35309 $as_echo X"$as_dir" |
35310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35314 /^X\(\/\/\)[^/].*/{
35327 test -d "$as_dir" && break
35329 test -z "$as_dirs" || eval "mkdir $as_dirs"
35330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
35334 if mkdir -p . 2>/dev/null; then
35335 as_mkdir_p='mkdir -p "$as_dir"'
35337 test -d ./-p && rmdir ./-p
35341 if test -x / >/dev/null 2>&1; then
35342 as_test_x='test -x'
35344 if ls -dL / >/dev/null 2>&1; then
35351 if test -d "$1"; then
35357 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
35358 ???[sx]*):;;*)false;;esac;fi
35362 as_executable_p=$as_test_x
35364 # Sed expression to map a string onto a valid CPP name.
35365 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35367 # Sed expression to map a string onto a valid variable name.
35368 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35372 ## ----------------------------------- ##
35373 ## Main body of $CONFIG_STATUS script. ##
35374 ## ----------------------------------- ##
35376 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
35378 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35379 # Save the log message, to keep $0 and so on meaningful, and to
35380 # report actual input values of CONFIG_FILES etc. instead of their
35381 # values after options handling.
35383 This file was extended by ImageMagick $as_me 7.0.0, which was
35384 generated by GNU Autoconf 2.68. Invocation command line was
35386 CONFIG_FILES = $CONFIG_FILES
35387 CONFIG_HEADERS = $CONFIG_HEADERS
35388 CONFIG_LINKS = $CONFIG_LINKS
35389 CONFIG_COMMANDS = $CONFIG_COMMANDS
35392 on `(hostname || uname -n) 2>/dev/null | sed 1q`
35397 case $ac_config_files in *"
35398 "*) set x $ac_config_files; shift; ac_config_files=$*;;
35401 case $ac_config_headers in *"
35402 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35407 # Files that config.status was made for.
35408 config_files="$ac_config_files"
35409 config_headers="$ac_config_headers"
35410 config_commands="$ac_config_commands"
35414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35416 \`$as_me' instantiates files and other configuration actions
35417 from templates according to the current configuration. Unless the files
35418 and actions are specified as TAGs, all are instantiated by default.
35420 Usage: $0 [OPTION]... [TAG]...
35422 -h, --help print this help, then exit
35423 -V, --version print version number and configuration settings, then exit
35424 --config print configuration, then exit
35425 -q, --quiet, --silent
35426 do not print progress messages
35427 -d, --debug don't remove temporary files
35428 --recheck update $as_me by reconfiguring in the same conditions
35429 --file=FILE[:TEMPLATE]
35430 instantiate the configuration file FILE
35431 --header=FILE[:TEMPLATE]
35432 instantiate the configuration header FILE
35434 Configuration files:
35437 Configuration headers:
35440 Configuration commands:
35443 Report bugs to <http://www.imagemagick.org>."
35446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35447 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
35449 ImageMagick config.status 7.0.0
35450 configured by $0, generated by GNU Autoconf 2.68,
35451 with options \\"\$ac_cs_config\\"
35453 Copyright (C) 2010 Free Software Foundation, Inc.
35454 This config.status script is free software; the Free Software Foundation
35455 gives unlimited permission to copy, distribute and modify it."
35462 test -n "\$AWK" || AWK=awk
35465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35466 # The default lists apply if the user does not specify any file.
35472 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35473 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35477 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35489 # Handling of the options.
35490 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35492 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35493 $as_echo "$ac_cs_version"; exit ;;
35494 --config | --confi | --conf | --con | --co | --c )
35495 $as_echo "$ac_cs_config"; exit ;;
35496 --debug | --debu | --deb | --de | --d | -d )
35498 --file | --fil | --fi | --f )
35501 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35502 '') as_fn_error $? "missing file argument" ;;
35504 as_fn_append CONFIG_FILES " '$ac_optarg'"
35505 ac_need_defaults=false;;
35506 --header | --heade | --head | --hea )
35509 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35511 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
35512 ac_need_defaults=false;;
35514 # Conflict between --help and --header
35515 as_fn_error $? "ambiguous option: \`$1'
35516 Try \`$0 --help' for more information.";;
35517 --help | --hel | -h )
35518 $as_echo "$ac_cs_usage"; exit ;;
35519 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35520 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35523 # This is an error.
35524 -*) as_fn_error $? "unrecognized option: \`$1'
35525 Try \`$0 --help' for more information." ;;
35527 *) as_fn_append ac_config_targets " $1"
35528 ac_need_defaults=false ;;
35534 ac_configure_extra_args=
35536 if $ac_cs_silent; then
35538 ac_configure_extra_args="$ac_configure_extra_args --silent"
35542 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35543 if \$ac_cs_recheck; then
35544 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
35546 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35547 CONFIG_SHELL='$SHELL'
35548 export CONFIG_SHELL
35553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35557 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35558 ## Running $as_me. ##
35564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35569 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
35572 # The HP-UX ksh and POSIX shell print the target directory to stdout
35573 # if CDPATH is set.
35574 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35576 sed_quote_subst='$sed_quote_subst'
35577 double_quote_subst='$double_quote_subst'
35578 delay_variable_subst='$delay_variable_subst'
35579 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
35580 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
35581 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
35582 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
35583 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
35584 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
35585 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
35586 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
35587 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
35588 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
35589 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
35590 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
35591 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
35592 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
35593 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
35594 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
35595 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
35596 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
35597 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
35598 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
35599 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
35600 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
35601 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
35602 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
35603 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
35604 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
35605 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
35606 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
35607 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
35608 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
35609 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
35610 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
35611 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
35612 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
35613 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
35614 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
35615 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
35616 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
35617 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
35618 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
35619 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
35620 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
35621 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
35622 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
35623 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
35624 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35625 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35626 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
35627 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
35628 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
35629 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
35630 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
35631 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
35632 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
35633 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
35634 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
35635 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"`'
35636 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
35637 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
35638 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
35639 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
35640 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
35641 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
35642 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
35643 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
35644 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
35645 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
35646 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
35647 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
35648 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
35649 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
35650 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
35651 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
35652 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
35653 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
35654 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35655 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
35656 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
35657 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
35658 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
35659 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
35660 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
35661 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
35662 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
35663 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35664 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
35665 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
35666 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
35667 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
35668 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
35669 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
35670 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
35671 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
35672 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
35673 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
35674 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
35675 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
35676 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
35677 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
35678 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
35679 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
35680 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
35681 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
35682 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
35683 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
35684 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
35685 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
35686 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
35687 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
35688 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
35689 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
35690 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
35691 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
35692 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
35693 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
35694 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
35695 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
35696 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
35697 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
35698 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
35699 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
35700 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
35701 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
35702 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
35703 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
35704 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
35705 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
35706 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
35707 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
35708 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
35709 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
35710 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
35711 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
35712 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
35713 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
35714 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
35715 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
35716 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
35717 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
35718 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35719 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35720 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
35721 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
35722 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
35723 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
35724 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
35725 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
35726 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
35727 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
35728 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
35729 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35730 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35731 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
35732 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35733 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35734 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35735 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35736 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35737 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35738 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
35739 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35740 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
35741 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
35742 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
35743 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
35744 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
35745 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
35746 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
35747 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
35748 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
35749 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
35750 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
35751 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
35752 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35753 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35754 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
35755 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35756 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
35757 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
35758 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
35759 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
35760 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35761 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
35762 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
35763 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
35764 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
35767 LTCFLAGS='$LTCFLAGS'
35768 compiler='$compiler_DEFAULT'
35770 # A function that is used when there is no print builtin or printf.
35771 func_fallback_echo ()
35773 eval 'cat <<_LTECHO_EOF
35778 # Quote evaled strings.
35794 deplibs_check_method \
35798 sharedlib_from_linklib_cmd \
35801 archiver_list_spec \
35807 lt_cv_sys_global_symbol_pipe \
35808 lt_cv_sys_global_symbol_to_cdecl \
35809 lt_cv_sys_global_symbol_to_c_name_address \
35810 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
35811 nm_file_list_spec \
35812 lt_prog_compiler_no_builtin_flag \
35813 lt_prog_compiler_pic \
35814 lt_prog_compiler_wl \
35815 lt_prog_compiler_static \
35816 lt_cv_prog_compiler_c_o \
35825 export_dynamic_flag_spec \
35826 whole_archive_flag_spec \
35827 compiler_needs_object \
35829 allow_undefined_flag \
35830 no_undefined_flag \
35831 hardcode_libdir_flag_spec \
35832 hardcode_libdir_flag_spec_ld \
35833 hardcode_libdir_separator \
35837 variables_saved_for_relink \
35839 library_names_spec \
35841 install_override_mode \
35845 compiler_lib_search_dirs \
35850 compiler_lib_search_path \
35854 lt_prog_compiler_no_builtin_flag_CXX \
35855 lt_prog_compiler_pic_CXX \
35856 lt_prog_compiler_wl_CXX \
35857 lt_prog_compiler_static_CXX \
35858 lt_cv_prog_compiler_c_o_CXX \
35859 export_dynamic_flag_spec_CXX \
35860 whole_archive_flag_spec_CXX \
35861 compiler_needs_object_CXX \
35863 allow_undefined_flag_CXX \
35864 no_undefined_flag_CXX \
35865 hardcode_libdir_flag_spec_CXX \
35866 hardcode_libdir_flag_spec_ld_CXX \
35867 hardcode_libdir_separator_CXX \
35868 exclude_expsyms_CXX \
35869 include_expsyms_CXX \
35870 file_list_spec_CXX \
35871 compiler_lib_search_dirs_CXX \
35872 predep_objects_CXX \
35873 postdep_objects_CXX \
35876 compiler_lib_search_path_CXX; do
35877 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
35878 *[\\\\\\\`\\"\\\$]*)
35879 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
35882 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35887 # Double-quote double-evaled strings.
35888 for var in reload_cmds \
35889 old_postinstall_cmds \
35890 old_postuninstall_cmds \
35892 extract_expsyms_cmds \
35893 old_archive_from_new_cmds \
35894 old_archive_from_expsyms_cmds \
35896 archive_expsym_cmds \
35898 module_expsym_cmds \
35899 export_symbols_cmds \
35903 postuninstall_cmds \
35905 sys_lib_search_path_spec \
35906 sys_lib_dlsearch_path_spec \
35908 old_archive_cmds_CXX \
35909 old_archive_from_new_cmds_CXX \
35910 old_archive_from_expsyms_cmds_CXX \
35912 archive_expsym_cmds_CXX \
35914 module_expsym_cmds_CXX \
35915 export_symbols_cmds_CXX \
35917 postlink_cmds_CXX; do
35918 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
35919 *[\\\\\\\`\\"\\\$]*)
35920 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
35923 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
35928 ac_aux_dir='$ac_aux_dir'
35929 xsi_shell='$xsi_shell'
35930 lt_shell_append='$lt_shell_append'
35932 # See if we are running on zsh, and set the options which allow our
35933 # commands through without removal of \ escapes INIT.
35934 if test -n "\${ZSH_VERSION+set}" ; then
35935 setopt NO_GLOB_SUBST
35941 TIMESTAMP='$TIMESTAMP'
35952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35954 # Handling of arguments.
35955 for ac_config_target in $ac_config_targets
35957 case $ac_config_target in
35958 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
35959 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
35960 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
35961 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
35962 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
35963 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
35964 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
35965 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
35966 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
35967 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
35968 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
35969 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
35970 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
35971 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
35972 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
35973 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
35974 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
35975 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
35976 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
35977 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
35978 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
35979 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
35980 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
35981 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
35982 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
35983 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
35984 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
35985 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
35986 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
35987 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
35988 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
35989 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
35990 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
35991 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
35992 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
35993 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
35994 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
35995 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
35996 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
35997 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
35998 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
35999 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
36000 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
36001 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36002 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36004 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
36009 # If the user did not use the arguments to specify the items to instantiate,
36010 # then the envvar interface is used. Set only those that are not.
36011 # We use the long form for the default assignment because of an extremely
36012 # bizarre bug on SunOS 4.1.3.
36013 if $ac_need_defaults; then
36014 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36015 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36016 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36019 # Have a temporary directory for convenience. Make it in the build tree
36020 # simply because there is no reason against having it here, and in addition,
36021 # creating and moving files from /tmp can sometimes cause problems.
36022 # Hook for its removal unless debugging.
36023 # Note that there is a small window in which the directory will not be cleaned:
36024 # after its creation but before its name has been assigned to `$tmp'.
36028 trap 'exit_status=$?
36029 : "${ac_tmp:=$tmp}"
36030 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
36032 trap 'as_fn_exit 1' 1 2 13 15
36034 # Create a (secure) tmp directory for tmp files.
36037 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
36041 tmp=./conf$$-$RANDOM
36042 (umask 077 && mkdir "$tmp")
36043 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
36046 # Set up the scripts for CONFIG_FILES section.
36047 # No need to generate them if there are no CONFIG_FILES.
36048 # This happens for instance with `./config.status config.h'.
36049 if test -n "$CONFIG_FILES"; then
36052 ac_cr=`echo X | tr X '\015'`
36053 # On cygwin, bash can eat \r inside `` if the user requested igncr.
36054 # But we know of no other shell where ac_cr would be empty at this
36055 # point, so we can use a bashism as a fallback.
36056 if test "x$ac_cr" = x; then
36057 eval ac_cr=\$\'\\r\'
36059 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36060 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
36063 ac_cs_awk_cr=$ac_cr
36066 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
36071 echo "cat >conf$$subs.awk <<_ACEOF" &&
36072 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36074 } >conf$$subs.sh ||
36075 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36076 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
36078 for ac_last_try in false false false false false :; do
36079 . ./conf$$subs.sh ||
36080 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36082 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36083 if test $ac_delim_n = $ac_delim_num; then
36085 elif $ac_last_try; then
36086 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36088 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36091 rm -f conf$$subs.sh
36093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36094 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
36098 s/^/S["/; s/!.*/"]=/
36108 s/\(.\{148\}\)..*/\1/
36110 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36115 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36122 s/\(.\{148\}\)..*/\1/
36124 s/["\\]/\\&/g; s/^/"/; s/$/"/
36128 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36133 ' <conf$$subs.awk | sed '
36138 ' >>$CONFIG_STATUS || ac_write_fail=1
36139 rm -f conf$$subs.awk
36140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36142 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
36143 for (key in S) S_is_set[key] = 1
36149 nfields = split(line, field, "@")
36151 len = length(field[1])
36152 for (i = 2; i < nfields; i++) {
36154 keylen = length(key)
36155 if (S_is_set[key]) {
36157 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36158 len += length(value) + length(field[++i])
36169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36170 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36171 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36174 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
36175 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
36178 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36179 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
36180 # trailing colons and then remove the whole line if VPATH becomes empty
36181 # (actually we leave an empty line to preserve line numbers).
36182 if test "x$srcdir" = x.; then
36183 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36202 fi # test -n "$CONFIG_FILES"
36204 # Set up the scripts for CONFIG_HEADERS section.
36205 # No need to generate them if there are no CONFIG_HEADERS.
36206 # This happens for instance with `./config.status Makefile'.
36207 if test -n "$CONFIG_HEADERS"; then
36208 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
36212 # Transform confdefs.h into an awk script `defines.awk', embedded as
36213 # here-document in config.status, that substitutes the proper values into
36214 # config.h.in to produce config.h.
36216 # Create a delimiter string that does not exist in confdefs.h, to ease
36217 # handling of long lines.
36219 for ac_last_try in false false :; do
36220 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36221 if test -z "$ac_tt"; then
36223 elif $ac_last_try; then
36224 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
36226 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36230 # For the awk script, D is an array of macro values keyed by name,
36231 # likewise P contains macro parameters if any. Preserve backslash
36232 # newline sequences.
36234 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36236 s/.\{148\}/&'"$ac_delim"'/g
36239 s/^[ ]*#[ ]*define[ ][ ]*/ /
36246 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36248 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36252 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36253 D["\1"]=" \3\\\\\\n"\\/p
36255 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36260 s/.\{148\}/&'"$ac_delim"'/g
36265 s/["\\]/\\&/g; s/^/"/; s/$/"/p
36268 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36270 ' <confdefs.h | sed '
36271 s/'"$ac_delim"'/"\\\
36272 "/g' >>$CONFIG_STATUS || ac_write_fail=1
36274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36275 for (key in D) D_is_set[key] = 1
36278 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36280 split(line, arg, " ")
36281 if (arg[1] == "#") {
36285 defundef = substr(arg[1], 2)
36288 split(mac1, mac2, "(") #)
36290 prefix = substr(line, 1, index(line, defundef) - 1)
36291 if (D_is_set[macro]) {
36292 # Preserve the white space surrounding the "#".
36293 print prefix "define", macro P[macro] D[macro]
36296 # Replace #undef with comments. This is necessary, for example,
36297 # in the case of _POSIX_SOURCE, which is predefined and required
36298 # on some systems where configure will not decide to define it.
36299 if (defundef == "undef") {
36300 print "/*", prefix defundef, macro, "*/"
36308 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36309 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
36310 fi # test -n "$CONFIG_HEADERS"
36313 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36318 :[FHLC]) ac_mode=$ac_tag; continue;;
36320 case $ac_mode$ac_tag in
36322 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
36323 :[FH]-) ac_tag=-:-;;
36324 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36341 -) ac_f="$ac_tmp/stdin";;
36342 *) # Look for the file first in the build tree, then in the source tree
36343 # (if the path is not absolute). The absolute path cannot be DOS-style,
36344 # because $ac_f cannot contain `:'.
36348 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36350 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
36352 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
36353 as_fn_append ac_file_inputs " '$ac_f'"
36356 # Let's still pretend it is `configure' which instantiates (i.e., don't
36357 # use $as_me), people would be surprised to read:
36358 # /* config.h. Generated by config.status. */
36359 configure_input='Generated from '`
36360 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36362 if test x"$ac_file" != x-; then
36363 configure_input="$ac_file. $configure_input"
36364 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
36365 $as_echo "$as_me: creating $ac_file" >&6;}
36367 # Neutralize special characters interpreted by sed in replacement strings.
36368 case $configure_input in #(
36369 *\&* | *\|* | *\\* )
36370 ac_sed_conf_input=`$as_echo "$configure_input" |
36371 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36372 *) ac_sed_conf_input=$configure_input;;
36376 *:-:* | *:-) cat >"$ac_tmp/stdin" \
36377 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
36382 ac_dir=`$as_dirname -- "$ac_file" ||
36383 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36384 X"$ac_file" : 'X\(//\)[^/]' \| \
36385 X"$ac_file" : 'X\(//\)$' \| \
36386 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36387 $as_echo X"$ac_file" |
36388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36392 /^X\(\/\/\)[^/].*/{
36405 as_dir="$ac_dir"; as_fn_mkdir_p
36409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36411 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36412 # A ".." for each directory in $ac_dir_suffix.
36413 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36414 case $ac_top_builddir_sub in
36415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36419 ac_abs_top_builddir=$ac_pwd
36420 ac_abs_builddir=$ac_pwd$ac_dir_suffix
36421 # for backward compatibility:
36422 ac_top_builddir=$ac_top_build_prefix
36425 .) # We are building in place.
36427 ac_top_srcdir=$ac_top_builddir_sub
36428 ac_abs_top_srcdir=$ac_pwd ;;
36429 [\\/]* | ?:[\\/]* ) # Absolute name.
36430 ac_srcdir=$srcdir$ac_dir_suffix;
36431 ac_top_srcdir=$srcdir
36432 ac_abs_top_srcdir=$srcdir ;;
36433 *) # Relative name.
36434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36435 ac_top_srcdir=$ac_top_build_prefix$srcdir
36436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36438 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36448 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36449 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36451 ac_MKDIR_P=$MKDIR_P
36453 [\\/$]* | ?:[\\/]* ) ;;
36454 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36458 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36459 # If the template does not know about datarootdir, expand it.
36460 # FIXME: This hack should be removed a few years after 2.60.
36461 ac_datarootdir_hack=; ac_datarootdir_seen=
36472 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36473 *datarootdir*) ac_datarootdir_seen=yes;;
36474 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
36475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
36476 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36478 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36479 ac_datarootdir_hack='
36480 s&@datadir@&$datadir&g
36481 s&@docdir@&$docdir&g
36482 s&@infodir@&$infodir&g
36483 s&@localedir@&$localedir&g
36484 s&@mandir@&$mandir&g
36485 s&\\\${datarootdir}&$datarootdir&g' ;;
36489 # Neutralize VPATH when `$srcdir' = `.'.
36490 # Shell code in configure.ac might set extrasub.
36491 # FIXME: do we really want to maintain this feature?
36492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36493 ac_sed_extra="$ac_vpsub
36496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36498 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36499 s|@configure_input@|$ac_sed_conf_input|;t t
36500 s&@top_builddir@&$ac_top_builddir_sub&;t t
36501 s&@top_build_prefix@&$ac_top_build_prefix&;t t
36502 s&@srcdir@&$ac_srcdir&;t t
36503 s&@abs_srcdir@&$ac_abs_srcdir&;t t
36504 s&@top_srcdir@&$ac_top_srcdir&;t t
36505 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36506 s&@builddir@&$ac_builddir&;t t
36507 s&@abs_builddir@&$ac_abs_builddir&;t t
36508 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36509 s&@INSTALL@&$ac_INSTALL&;t t
36510 s&@MKDIR_P@&$ac_MKDIR_P&;t t
36511 $ac_datarootdir_hack
36513 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36514 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36516 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
36517 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36518 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36519 "$ac_tmp/out"`; test -z "$ac_out"; } &&
36520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36521 which seems to be undefined. Please make sure it is defined" >&5
36522 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
36523 which seems to be undefined. Please make sure it is defined" >&2;}
36525 rm -f "$ac_tmp/stdin"
36527 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36528 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
36530 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36536 if test x"$ac_file" != x-; then
36538 $as_echo "/* $configure_input */" \
36539 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36540 } >"$ac_tmp/config.h" \
36541 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36542 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
36543 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
36544 $as_echo "$as_me: $ac_file is unchanged" >&6;}
36547 mv "$ac_tmp/config.h" "$ac_file" \
36548 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
36551 $as_echo "/* $configure_input */" \
36552 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
36553 || as_fn_error $? "could not create -" "$LINENO" 5
36555 # Compute "$ac_file"'s index in $config_headers.
36558 for _am_header in $config_headers :; do
36559 case $_am_header in
36560 $_am_arg | $_am_arg:* )
36563 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36566 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
36567 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36568 X"$_am_arg" : 'X\(//\)[^/]' \| \
36569 X"$_am_arg" : 'X\(//\)$' \| \
36570 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
36571 $as_echo X"$_am_arg" |
36572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36576 /^X\(\/\/\)[^/].*/{
36588 s/.*/./; q'`/stamp-h$_am_stamp_count
36591 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
36592 $as_echo "$as_me: executing $ac_file commands" >&6;}
36597 case $ac_file$ac_mode in
36598 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
36599 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
36600 ac_prefix_conf_PKG=`echo MagickCore`
36601 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
36602 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
36603 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
36604 if test ".$ac_prefix_conf_INP" = "."; then
36605 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
36607 *.h) ac_prefix_conf_INP=$ac_file ;;
36610 test ".$ac_prefix_conf_INP" != "." && break
36613 if test ".$ac_prefix_conf_INP" = "."; then
36614 case "$ac_prefix_conf_OUT" in
36615 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
36617 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
36619 *) ac_prefix_conf_INP=config.h
36623 if test -z "$ac_prefix_conf_PKG" ; then
36624 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
36626 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
36627 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
36629 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
36630 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
36631 if test -f $ac_prefix_conf_INP ; then
36632 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
36633 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
36634 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
36635 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
36636 $as_echo "#endif/" >> conftest.prefix
36637 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
36638 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
36639 $as_echo "#endif/" >> conftest.prefix
36640 # now executing _script on _DEF input to create _OUT output file
36641 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
36642 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
36643 echo ' ' >>$tmp/pconfig.h
36644 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
36646 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
36647 echo ' ' >>$tmp/pconfig.h
36648 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
36649 echo "#endif" >>$tmp/pconfig.h
36650 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
36651 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
36652 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
36654 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
36655 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36656 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
36657 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
36658 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
36659 $as_echo X"$ac_prefix_conf_OUT" |
36660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36664 /^X\(\/\/\)[^/].*/{
36677 as_dir="$ac_dir"; as_fn_mkdir_p
36678 rm -f "$ac_prefix_conf_OUT"
36679 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
36681 cp conftest.prefix _configs.sed
36683 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
36688 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
36689 # Autoconf 2.62 quotes --file arguments for eval, but not when files
36690 # are listed without --file. Let's play safe and only enable the eval
36691 # if we detect the quoting.
36692 case $CONFIG_FILES in
36693 *\'*) eval set x "$CONFIG_FILES" ;;
36694 *) set x $CONFIG_FILES ;;
36699 # Strip MF so we end up with the name of the file.
36700 mf=`echo "$mf" | sed -e 's/:.*$//'`
36701 # Check whether this is an Automake generated Makefile or not.
36702 # We used to match only the files named `Makefile.in', but
36703 # some people rename them; so instead we look at the file content.
36704 # Grep'ing the first line is not enough: some people post-process
36705 # each Makefile.in and add a new line on top of each file to say so.
36706 # Grep'ing the whole file is not good either: AIX grep has a line
36707 # limit of 2048, but all sed's we know have understand at least 4000.
36708 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
36709 dirpart=`$as_dirname -- "$mf" ||
36710 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36711 X"$mf" : 'X\(//\)[^/]' \| \
36712 X"$mf" : 'X\(//\)$' \| \
36713 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
36715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36719 /^X\(\/\/\)[^/].*/{
36735 # Extract the definition of DEPDIR, am__include, and am__quote
36736 # from the Makefile without running `make'.
36737 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
36738 test -z "$DEPDIR" && continue
36739 am__include=`sed -n 's/^am__include = //p' < "$mf"`
36740 test -z "am__include" && continue
36741 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
36742 # When using ansi2knr, U may be empty or an underscore; expand it
36743 U=`sed -n 's/^U = //p' < "$mf"`
36744 # Find all dependency output files, they are included files with
36745 # $(DEPDIR) in their names. We invoke sed twice because it is the
36746 # simplest approach to changing $(DEPDIR) to its actual value in the
36748 for file in `sed -n "
36749 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
36750 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
36751 # Make sure the directory exists.
36752 test -f "$dirpart/$file" && continue
36753 fdir=`$as_dirname -- "$file" ||
36754 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36755 X"$file" : 'X\(//\)[^/]' \| \
36756 X"$file" : 'X\(//\)$' \| \
36757 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
36758 $as_echo X"$file" |
36759 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36763 /^X\(\/\/\)[^/].*/{
36776 as_dir=$dirpart/$fdir; as_fn_mkdir_p
36777 # echo "creating $dirpart/$file"
36778 echo '# dummy' > "$dirpart/$file"
36785 # See if we are running on zsh, and set the options which allow our
36786 # commands through without removal of \ escapes.
36787 if test -n "${ZSH_VERSION+set}" ; then
36788 setopt NO_GLOB_SUBST
36791 cfgfile="${ofile}T"
36792 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
36795 cat <<_LT_EOF >> "$cfgfile"
36798 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
36799 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
36800 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
36801 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
36803 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
36804 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
36806 # Written by Gordon Matzigkeit, 1996
36808 # This file is part of GNU Libtool.
36810 # GNU Libtool is free software; you can redistribute it and/or
36811 # modify it under the terms of the GNU General Public License as
36812 # published by the Free Software Foundation; either version 2 of
36813 # the License, or (at your option) any later version.
36815 # As a special exception to the GNU General Public License,
36816 # if you distribute this file as part of a program or library that
36817 # is built using GNU Libtool, you may include this file under the
36818 # same distribution terms that you use for the rest of that program.
36820 # GNU Libtool is distributed in the hope that it will be useful,
36821 # but WITHOUT ANY WARRANTY; without even the implied warranty of
36822 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
36823 # GNU General Public License for more details.
36825 # You should have received a copy of the GNU General Public License
36826 # along with GNU Libtool; see the file COPYING. If not, a copy
36827 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
36828 # obtained by writing to the Free Software Foundation, Inc.,
36829 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
36832 # The names of the tagged configurations supported by this script.
36833 available_tags="CXX "
36835 # ### BEGIN LIBTOOL CONFIG
36837 # A sed program that does not truncate output.
36840 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
36841 Xsed="\$SED -e 1s/^X//"
36843 # A grep program that handles long lines.
36849 # A literal string matcher.
36852 # Shell to use when invoking shell scripts.
36855 # An echo program that protects backslashes.
36858 # Which release of libtool.m4 was used?
36859 macro_version=$macro_version
36860 macro_revision=$macro_revision
36862 # Assembler program.
36865 # DLL creation program.
36866 DLLTOOL=$lt_DLLTOOL
36868 # Object dumper program.
36869 OBJDUMP=$lt_OBJDUMP
36871 # Whether or not to build shared libraries.
36872 build_libtool_libs=$enable_shared
36874 # Whether or not to build static libraries.
36875 build_old_libs=$enable_static
36877 # What type of objects to build.
36880 # Whether or not to optimize for fast installation.
36881 fast_install=$enable_fast_install
36884 host_alias=$host_alias
36888 # The build system.
36889 build_alias=$build_alias
36893 # A BSD- or MS-compatible name lister.
36896 # Whether we need soft or hard links.
36899 # What is the maximum length of a command?
36900 max_cmd_len=$max_cmd_len
36902 # Object file suffix (normally "o").
36905 # Executable file suffix (normally "").
36908 # whether the shell understands "unset".
36911 # turn spaces into newlines.
36914 # turn newlines into spaces.
36917 # convert \$build file names to \$host format.
36918 to_host_file_cmd=$lt_cv_to_host_file_cmd
36920 # convert \$build files to toolchain format.
36921 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
36923 # Method to check whether dependent libraries are shared objects.
36924 deplibs_check_method=$lt_deplibs_check_method
36926 # Command to use when deplibs_check_method = "file_magic".
36927 file_magic_cmd=$lt_file_magic_cmd
36929 # How to find potential files when deplibs_check_method = "file_magic".
36930 file_magic_glob=$lt_file_magic_glob
36932 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
36933 want_nocaseglob=$lt_want_nocaseglob
36935 # Command to associate shared and link libraries.
36936 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
36941 # Flags to create an archive.
36942 AR_FLAGS=$lt_AR_FLAGS
36944 # How to feed a file listing to the archiver.
36945 archiver_list_spec=$lt_archiver_list_spec
36947 # A symbol stripping program.
36950 # Commands used to install an old-style archive.
36952 old_postinstall_cmds=$lt_old_postinstall_cmds
36953 old_postuninstall_cmds=$lt_old_postuninstall_cmds
36955 # Whether to use a lock for old archive extraction.
36956 lock_old_archive_extraction=$lock_old_archive_extraction
36961 # LTCC compiler flags.
36962 LTCFLAGS=$lt_CFLAGS
36964 # Take the output of nm and produce a listing of raw symbols and C names.
36965 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
36967 # Transform the output of nm in a proper C declaration.
36968 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
36970 # Transform the output of nm in a C name address pair.
36971 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
36973 # Transform the output of nm in a C name address pair when lib prefix is needed.
36974 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
36976 # Specify filename containing input files for \$NM.
36977 nm_file_list_spec=$lt_nm_file_list_spec
36979 # The root where to search for dependent libraries,and in which our libraries should be installed.
36980 lt_sysroot=$lt_sysroot
36982 # The name of the directory that contains temporary libtool files.
36985 # Used to examine libraries when file_magic_cmd begins with "file".
36986 MAGIC_CMD=$MAGIC_CMD
36988 # Must we lock files when doing compilation?
36989 need_locks=$lt_need_locks
36992 MANIFEST_TOOL=$lt_MANIFEST_TOOL
36994 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
36995 DSYMUTIL=$lt_DSYMUTIL
36997 # Tool to change global to local symbols on Mac OS X.
37000 # Tool to manipulate fat objects and archives on Mac OS X.
37003 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
37006 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37007 OTOOL64=$lt_OTOOL64
37009 # Old archive suffix (normally "a").
37012 # Shared library suffix (normally ".so").
37013 shrext_cmds=$lt_shrext_cmds
37015 # The commands to extract the exported symbol list from a shared archive.
37016 extract_expsyms_cmds=$lt_extract_expsyms_cmds
37018 # Variables whose values should be saved in libtool wrapper scripts and
37019 # restored at link time.
37020 variables_saved_for_relink=$lt_variables_saved_for_relink
37022 # Do we need the "lib" prefix for modules?
37023 need_lib_prefix=$need_lib_prefix
37025 # Do we need a version for libraries?
37026 need_version=$need_version
37028 # Library versioning type.
37029 version_type=$version_type
37031 # Shared library runtime path variable.
37032 runpath_var=$runpath_var
37034 # Shared library path variable.
37035 shlibpath_var=$shlibpath_var
37037 # Is shlibpath searched before the hard-coded library search path?
37038 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37040 # Format of library name prefix.
37041 libname_spec=$lt_libname_spec
37043 # List of archive names. First name is the real one, the rest are links.
37044 # The last name is the one that the linker finds with -lNAME
37045 library_names_spec=$lt_library_names_spec
37047 # The coded name of the library, if different from the real name.
37048 soname_spec=$lt_soname_spec
37050 # Permission mode override for installation of shared libraries.
37051 install_override_mode=$lt_install_override_mode
37053 # Command to use after installation of a shared archive.
37054 postinstall_cmds=$lt_postinstall_cmds
37056 # Command to use after uninstallation of a shared archive.
37057 postuninstall_cmds=$lt_postuninstall_cmds
37059 # Commands used to finish a libtool library installation in a directory.
37060 finish_cmds=$lt_finish_cmds
37062 # As "finish_cmds", except a single script fragment to be evaled but
37064 finish_eval=$lt_finish_eval
37066 # Whether we should hardcode library paths into libraries.
37067 hardcode_into_libs=$hardcode_into_libs
37069 # Compile-time system search path for libraries.
37070 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37072 # Run-time system search path for libraries.
37073 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37075 # Whether dlopen is supported.
37076 dlopen_support=$enable_dlopen
37078 # Whether dlopen of programs is supported.
37079 dlopen_self=$enable_dlopen_self
37081 # Whether dlopen of statically linked programs is supported.
37082 dlopen_self_static=$enable_dlopen_self_static
37084 # Commands to strip libraries.
37085 old_striplib=$lt_old_striplib
37086 striplib=$lt_striplib
37089 # The linker used to build libraries.
37092 # How to create reloadable object files.
37093 reload_flag=$lt_reload_flag
37094 reload_cmds=$lt_reload_cmds
37096 # Commands used to build an old-style archive.
37097 old_archive_cmds=$lt_old_archive_cmds
37099 # A language specific compiler.
37102 # Is the compiler the GNU compiler?
37105 # Compiler flag to turn off builtin functions.
37106 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37108 # Additional compiler flags for building library objects.
37109 pic_flag=$lt_lt_prog_compiler_pic
37111 # How to pass a linker flag through the compiler.
37112 wl=$lt_lt_prog_compiler_wl
37114 # Compiler flag to prevent dynamic linking.
37115 link_static_flag=$lt_lt_prog_compiler_static
37117 # Does compiler simultaneously support -c and -o options?
37118 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37120 # Whether or not to add -lc for building shared libraries.
37121 build_libtool_need_lc=$archive_cmds_need_lc
37123 # Whether or not to disallow shared libs when runtime libs are static.
37124 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37126 # Compiler flag to allow reflexive dlopens.
37127 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37129 # Compiler flag to generate shared objects directly from archives.
37130 whole_archive_flag_spec=$lt_whole_archive_flag_spec
37132 # Whether the compiler copes with passing no objects directly.
37133 compiler_needs_object=$lt_compiler_needs_object
37135 # Create an old-style archive from a shared archive.
37136 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37138 # Create a temporary old-style archive to link instead of a shared archive.
37139 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37141 # Commands used to build a shared archive.
37142 archive_cmds=$lt_archive_cmds
37143 archive_expsym_cmds=$lt_archive_expsym_cmds
37145 # Commands used to build a loadable module if different from building
37146 # a shared archive.
37147 module_cmds=$lt_module_cmds
37148 module_expsym_cmds=$lt_module_expsym_cmds
37150 # Whether we are building with GNU ld or not.
37151 with_gnu_ld=$lt_with_gnu_ld
37153 # Flag that allows shared libraries with undefined symbols to be built.
37154 allow_undefined_flag=$lt_allow_undefined_flag
37156 # Flag that enforces no undefined symbols.
37157 no_undefined_flag=$lt_no_undefined_flag
37159 # Flag to hardcode \$libdir into a binary during linking.
37160 # This must work even if \$libdir does not exist
37161 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37163 # If ld is used when linking, flag to hardcode \$libdir into a binary
37164 # during linking. This must work even if \$libdir does not exist.
37165 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
37167 # Whether we need a single "-rpath" flag with a separated argument.
37168 hardcode_libdir_separator=$lt_hardcode_libdir_separator
37170 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37171 # DIR into the resulting binary.
37172 hardcode_direct=$hardcode_direct
37174 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37175 # DIR into the resulting binary and the resulting library dependency is
37176 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37177 # library is relocated.
37178 hardcode_direct_absolute=$hardcode_direct_absolute
37180 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37181 # into the resulting binary.
37182 hardcode_minus_L=$hardcode_minus_L
37184 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37185 # into the resulting binary.
37186 hardcode_shlibpath_var=$hardcode_shlibpath_var
37188 # Set to "yes" if building a shared library automatically hardcodes DIR
37189 # into the library and all subsequent libraries and executables linked
37191 hardcode_automatic=$hardcode_automatic
37193 # Set to yes if linker adds runtime paths of dependent libraries
37194 # to runtime path list.
37195 inherit_rpath=$inherit_rpath
37197 # Whether libtool must link a program against all its dependency libraries.
37198 link_all_deplibs=$link_all_deplibs
37200 # Set to "yes" if exported symbols are required.
37201 always_export_symbols=$always_export_symbols
37203 # The commands to list exported symbols.
37204 export_symbols_cmds=$lt_export_symbols_cmds
37206 # Symbols that should not be listed in the preloaded symbols.
37207 exclude_expsyms=$lt_exclude_expsyms
37209 # Symbols that must always be exported.
37210 include_expsyms=$lt_include_expsyms
37212 # Commands necessary for linking programs (against libraries) with templates.
37213 prelink_cmds=$lt_prelink_cmds
37215 # Commands necessary for finishing linking programs.
37216 postlink_cmds=$lt_postlink_cmds
37218 # Specify filename containing input files.
37219 file_list_spec=$lt_file_list_spec
37221 # How to hardcode a shared library path into an executable.
37222 hardcode_action=$hardcode_action
37224 # The directories searched by this compiler when creating a shared library.
37225 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37227 # Dependencies to place before and after the objects being linked to
37228 # create a shared library.
37229 predep_objects=$lt_predep_objects
37230 postdep_objects=$lt_postdep_objects
37231 predeps=$lt_predeps
37232 postdeps=$lt_postdeps
37234 # The library search path used internally by the compiler when linking
37235 # a shared library.
37236 compiler_lib_search_path=$lt_compiler_lib_search_path
37238 # ### END LIBTOOL CONFIG
37244 cat <<\_LT_EOF >> "$cfgfile"
37245 # AIX sometimes has problems with the GCC collect2 program. For some
37246 # reason, if we set the COLLECT_NAMES environment variable, the problems
37247 # vanish in a puff of smoke.
37248 if test "X${COLLECT_NAMES+set}" != Xset; then
37250 export COLLECT_NAMES
37257 ltmain="$ac_aux_dir/ltmain.sh"
37260 # We use sed instead of cat because bash on DJGPP gets confused if
37261 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37262 # text mode, it properly converts lines to CR/LF. This bash problem
37263 # is reportedly fixed, but why not run on old versions too?
37264 sed '$q' "$ltmain" >> "$cfgfile" \
37265 || (rm -f "$cfgfile"; exit 1)
37267 if test x"$xsi_shell" = xyes; then
37268 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37272 \ */*) func_dirname_result="${1%/*}${2}" ;;\
37273 \ * ) func_dirname_result="${3}" ;;\
37275 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37276 && mv -f "$cfgfile.tmp" "$cfgfile" \
37277 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37278 test 0 -eq $? || _lt_function_replace_fail=:
37281 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37284 \ func_basename_result="${1##*/}"\
37285 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37286 && mv -f "$cfgfile.tmp" "$cfgfile" \
37287 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37288 test 0 -eq $? || _lt_function_replace_fail=:
37291 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37292 func_dirname_and_basename ()\
37295 \ */*) func_dirname_result="${1%/*}${2}" ;;\
37296 \ * ) func_dirname_result="${3}" ;;\
37298 \ func_basename_result="${1##*/}"\
37299 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37300 && mv -f "$cfgfile.tmp" "$cfgfile" \
37301 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37302 test 0 -eq $? || _lt_function_replace_fail=:
37305 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37308 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37309 \ # positional parameters, so assign one to ordinary parameter first.\
37310 \ func_stripname_result=${3}\
37311 \ func_stripname_result=${func_stripname_result#"${1}"}\
37312 \ func_stripname_result=${func_stripname_result%"${2}"}\
37313 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37314 && mv -f "$cfgfile.tmp" "$cfgfile" \
37315 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37316 test 0 -eq $? || _lt_function_replace_fail=:
37319 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37320 func_split_long_opt ()\
37322 \ func_split_long_opt_name=${1%%=*}\
37323 \ func_split_long_opt_arg=${1#*=}\
37324 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37325 && mv -f "$cfgfile.tmp" "$cfgfile" \
37326 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37327 test 0 -eq $? || _lt_function_replace_fail=:
37330 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37331 func_split_short_opt ()\
37333 \ func_split_short_opt_arg=${1#??}\
37334 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37335 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37336 && mv -f "$cfgfile.tmp" "$cfgfile" \
37337 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37338 test 0 -eq $? || _lt_function_replace_fail=:
37341 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37345 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37346 \ *) func_lo2o_result=${1} ;;\
37348 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37349 && mv -f "$cfgfile.tmp" "$cfgfile" \
37350 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37351 test 0 -eq $? || _lt_function_replace_fail=:
37354 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37357 func_xform_result=${1%.*}.lo\
37358 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37359 && mv -f "$cfgfile.tmp" "$cfgfile" \
37360 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37361 test 0 -eq $? || _lt_function_replace_fail=:
37364 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37367 func_arith_result=$(( $* ))\
37368 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37369 && mv -f "$cfgfile.tmp" "$cfgfile" \
37370 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37371 test 0 -eq $? || _lt_function_replace_fail=:
37374 sed -e '/^func_len ()$/,/^} # func_len /c\
37377 func_len_result=${#1}\
37378 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37379 && mv -f "$cfgfile.tmp" "$cfgfile" \
37380 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37381 test 0 -eq $? || _lt_function_replace_fail=:
37385 if test x"$lt_shell_append" = xyes; then
37386 sed -e '/^func_append ()$/,/^} # func_append /c\
37389 eval "${1}+=\\${2}"\
37390 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37391 && mv -f "$cfgfile.tmp" "$cfgfile" \
37392 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37393 test 0 -eq $? || _lt_function_replace_fail=:
37396 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37397 func_append_quoted ()\
37399 \ func_quote_for_eval "${2}"\
37400 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37401 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37402 && mv -f "$cfgfile.tmp" "$cfgfile" \
37403 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37404 test 0 -eq $? || _lt_function_replace_fail=:
37407 # Save a `func_append' function call where possible by direct use of '+='
37408 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37409 && mv -f "$cfgfile.tmp" "$cfgfile" \
37410 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37411 test 0 -eq $? || _lt_function_replace_fail=:
37413 # Save a `func_append' function call even when '+=' is not available
37414 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37415 && mv -f "$cfgfile.tmp" "$cfgfile" \
37416 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37417 test 0 -eq $? || _lt_function_replace_fail=:
37420 if test x"$_lt_function_replace_fail" = x":"; then
37421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37422 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37426 mv -f "$cfgfile" "$ofile" ||
37427 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37431 cat <<_LT_EOF >> "$ofile"
37433 # ### BEGIN LIBTOOL TAG CONFIG: CXX
37435 # The linker used to build libraries.
37438 # How to create reloadable object files.
37439 reload_flag=$lt_reload_flag_CXX
37440 reload_cmds=$lt_reload_cmds_CXX
37442 # Commands used to build an old-style archive.
37443 old_archive_cmds=$lt_old_archive_cmds_CXX
37445 # A language specific compiler.
37446 CC=$lt_compiler_CXX
37448 # Is the compiler the GNU compiler?
37451 # Compiler flag to turn off builtin functions.
37452 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37454 # Additional compiler flags for building library objects.
37455 pic_flag=$lt_lt_prog_compiler_pic_CXX
37457 # How to pass a linker flag through the compiler.
37458 wl=$lt_lt_prog_compiler_wl_CXX
37460 # Compiler flag to prevent dynamic linking.
37461 link_static_flag=$lt_lt_prog_compiler_static_CXX
37463 # Does compiler simultaneously support -c and -o options?
37464 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37466 # Whether or not to add -lc for building shared libraries.
37467 build_libtool_need_lc=$archive_cmds_need_lc_CXX
37469 # Whether or not to disallow shared libs when runtime libs are static.
37470 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37472 # Compiler flag to allow reflexive dlopens.
37473 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37475 # Compiler flag to generate shared objects directly from archives.
37476 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37478 # Whether the compiler copes with passing no objects directly.
37479 compiler_needs_object=$lt_compiler_needs_object_CXX
37481 # Create an old-style archive from a shared archive.
37482 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37484 # Create a temporary old-style archive to link instead of a shared archive.
37485 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37487 # Commands used to build a shared archive.
37488 archive_cmds=$lt_archive_cmds_CXX
37489 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37491 # Commands used to build a loadable module if different from building
37492 # a shared archive.
37493 module_cmds=$lt_module_cmds_CXX
37494 module_expsym_cmds=$lt_module_expsym_cmds_CXX
37496 # Whether we are building with GNU ld or not.
37497 with_gnu_ld=$lt_with_gnu_ld_CXX
37499 # Flag that allows shared libraries with undefined symbols to be built.
37500 allow_undefined_flag=$lt_allow_undefined_flag_CXX
37502 # Flag that enforces no undefined symbols.
37503 no_undefined_flag=$lt_no_undefined_flag_CXX
37505 # Flag to hardcode \$libdir into a binary during linking.
37506 # This must work even if \$libdir does not exist
37507 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37509 # If ld is used when linking, flag to hardcode \$libdir into a binary
37510 # during linking. This must work even if \$libdir does not exist.
37511 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
37513 # Whether we need a single "-rpath" flag with a separated argument.
37514 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37516 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37517 # DIR into the resulting binary.
37518 hardcode_direct=$hardcode_direct_CXX
37520 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37521 # DIR into the resulting binary and the resulting library dependency is
37522 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37523 # library is relocated.
37524 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37526 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37527 # into the resulting binary.
37528 hardcode_minus_L=$hardcode_minus_L_CXX
37530 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37531 # into the resulting binary.
37532 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37534 # Set to "yes" if building a shared library automatically hardcodes DIR
37535 # into the library and all subsequent libraries and executables linked
37537 hardcode_automatic=$hardcode_automatic_CXX
37539 # Set to yes if linker adds runtime paths of dependent libraries
37540 # to runtime path list.
37541 inherit_rpath=$inherit_rpath_CXX
37543 # Whether libtool must link a program against all its dependency libraries.
37544 link_all_deplibs=$link_all_deplibs_CXX
37546 # Set to "yes" if exported symbols are required.
37547 always_export_symbols=$always_export_symbols_CXX
37549 # The commands to list exported symbols.
37550 export_symbols_cmds=$lt_export_symbols_cmds_CXX
37552 # Symbols that should not be listed in the preloaded symbols.
37553 exclude_expsyms=$lt_exclude_expsyms_CXX
37555 # Symbols that must always be exported.
37556 include_expsyms=$lt_include_expsyms_CXX
37558 # Commands necessary for linking programs (against libraries) with templates.
37559 prelink_cmds=$lt_prelink_cmds_CXX
37561 # Commands necessary for finishing linking programs.
37562 postlink_cmds=$lt_postlink_cmds_CXX
37564 # Specify filename containing input files.
37565 file_list_spec=$lt_file_list_spec_CXX
37567 # How to hardcode a shared library path into an executable.
37568 hardcode_action=$hardcode_action_CXX
37570 # The directories searched by this compiler when creating a shared library.
37571 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
37573 # Dependencies to place before and after the objects being linked to
37574 # create a shared library.
37575 predep_objects=$lt_predep_objects_CXX
37576 postdep_objects=$lt_postdep_objects_CXX
37577 predeps=$lt_predeps_CXX
37578 postdeps=$lt_postdeps_CXX
37580 # The library search path used internally by the compiler when linking
37581 # a shared library.
37582 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
37584 # ### END LIBTOOL TAG CONFIG: CXX
37588 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
37589 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
37590 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
37591 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
37599 ac_clean_files=$ac_clean_files_save
37601 test $ac_write_fail = 0 ||
37602 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
37605 # configure is writing to config.log, and then calls config.status.
37606 # config.status does its own redirection, appending to config.log.
37607 # Unfortunately, on DOS this fails, as config.log is still kept open
37608 # by configure, so config.status won't be able to write to it; its
37609 # output is simply discarded. So we exec the FD to /dev/null,
37610 # effectively closing config.log, so it can be properly (re)opened and
37611 # appended to by config.status. When coming back to configure, we
37612 # need to make the FD available again.
37613 if test "$no_create" != yes; then
37615 ac_config_status_args=
37616 test "$silent" = yes &&
37617 ac_config_status_args="$ac_config_status_args --quiet"
37619 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
37621 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
37622 # would make configure fail if this is the last instruction.
37623 $ac_cs_success || as_fn_exit 1
37625 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
37626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
37627 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
37631 rm -f magick-version
37633 result_dejavu_font_dir='none'
37634 if test "${dejavu_font_dir}x" != 'x'; then
37635 result_dejavu_font_dir=$dejavu_font_dir
37638 result_ghostscript_font_dir='none'
37639 if test "${ghostscript_font_dir}x" != 'x'; then
37640 result_ghostscript_font_dir=$ghostscript_font_dir
37643 result_windows_font_dir='none'
37644 if test "${windows_font_dir}x" != 'x'; then
37645 result_windows_font_dir=${windows_font_dir}
37648 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
37649 ImageMagick is configured as follows. Please verify that this configuration
37650 matches your expectations.
37652 Host system type: $host
37653 Build system type: $build
37656 -------------------------------------------------------------------------------
37657 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37658 Static libraries --enable-static=$enable_static $libtool_build_static_libs
37659 Module support --with-modules=$with_modules $with_modules
37660 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37661 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37662 High Dynamic Range Imagery
37663 --enable-hdri=$enable_hdri $enable_hdri
37665 Delegate Configuration:
37666 BZLIB --with-bzlib=$with_bzlib $have_bzlib
37667 Autotrace --with-autotrace=$with_autotrace $have_autotrace
37668 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
37669 DJVU --with-djvu=$with_djvu $have_djvu
37670 DPS --with-dps=$with_dps $have_dps
37671 FFTW --with-fftw=$with_fftw $have_fftw
37672 FlashPIX --with-fpx=$with_fpx $have_fpx
37673 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37674 FreeType --with-freetype=$with_freetype $have_freetype
37675 GhostPCL None $PCLDelegate ($PCLVersion)
37676 GhostXPS None $XPSDelegate ($XPSVersion)
37677 Ghostscript None $PSDelegate ($GSVersion)
37678 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37679 Ghostscript lib --with-gslib=$with_gslib $have_gslib
37680 Graphviz --with-gvc=$with_gvc $have_gvc
37681 JBIG --with-jbig=$with_jbig $have_jbig
37682 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37683 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
37684 LCMS v1 --with-lcms=$with_lcms $have_lcms
37685 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
37686 LQR --with-lqr=$with_lqr $have_lqr
37687 LZMA --with-lzma=$with_lzma $have_lzma
37688 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37689 OpenEXR --with-openexr=$with_openexr $have_openexr
37690 PERL --with-perl=$with_perl $have_perl
37691 PNG --with-png=$with_png $have_png
37692 RSVG --with-rsvg=$with_rsvg $have_rsvg
37693 TIFF --with-tiff=$with_tiff $have_tiff
37694 WEBP --with-webp=$with_webp $have_webp
37695 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
37696 WMF --with-wmf=$with_wmf $have_wmf
37697 X11 --with-x=$with_x $have_x
37698 XML --with-xml=$with_xml $have_xml
37699 ZLIB --with-zlib=$with_zlib $have_zlib
37702 X_CFLAGS = $X_CFLAGS
37703 X_PRE_LIBS = $X_PRE_LIBS
37705 X_EXTRA_LIBS = $X_EXTRA_LIBS
37707 Options used to compile and link:
37708 PREFIX = $PREFIX_DIR
37709 EXEC-PREFIX = $EXEC_PREFIX_DIR
37710 VERSION = $PACKAGE_VERSION
37713 CPPFLAGS = $MAGICK_CPPFLAGS
37714 PCFLAGS = $MAGICK_PCFLAGS
37717 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37718 LIBS = $MAGICK_LIBS
37720 CXXFLAGS = $CXXFLAGS
37721 FEATURES = $MAGICK_FEATURES
37724 ImageMagick is configured as follows. Please verify that this configuration
37725 matches your expectations.
37727 Host system type: $host
37728 Build system type: $build
37731 -------------------------------------------------------------------------------
37732 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
37733 Static libraries --enable-static=$enable_static $libtool_build_static_libs
37734 Module support --with-modules=$with_modules $with_modules
37735 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
37736 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
37737 High Dynamic Range Imagery
37738 --enable-hdri=$enable_hdri $enable_hdri
37740 Delegate Configuration:
37741 BZLIB --with-bzlib=$with_bzlib $have_bzlib
37742 Autotrace --with-autotrace=$with_autotrace $have_autotrace
37743 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
37744 DJVU --with-djvu=$with_djvu $have_djvu
37745 DPS --with-dps=$with_dps $have_dps
37746 FFTW --with-fftw=$with_fftw $have_fftw
37747 FlashPIX --with-fpx=$with_fpx $have_fpx
37748 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
37749 FreeType --with-freetype=$with_freetype $have_freetype
37750 GhostPCL None $PCLDelegate ($PCLVersion)
37751 GhostXPS None $XPSDelegate ($XPSVersion)
37752 Ghostscript None $PSDelegate ($GSVersion)
37753 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
37754 Ghostscript lib --with-gslib=$with_gslib $have_gslib
37755 Graphviz --with-gvc=$with_gvc $have_gvc
37756 JBIG --with-jbig=$with_jbig $have_jbig
37757 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
37758 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
37759 LCMS v1 --with-lcms=$with_lcms $have_lcms
37760 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
37761 LQR --with-lqr=$with_lqr $have_lqr
37762 LZMA --with-lzma=$with_lzma $have_lzma
37763 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
37764 OpenEXR --with-openexr=$with_openexr $have_openexr
37765 PERL --with-perl=$with_perl $have_perl
37766 PNG --with-png=$with_png $have_png
37767 RSVG --with-rsvg=$with_rsvg $have_rsvg
37768 TIFF --with-tiff=$with_tiff $have_tiff
37769 WEBP --with-webp=$with_webp $have_webp
37770 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
37771 WMF --with-wmf=$with_wmf $have_wmf
37772 X11 --with-x=$with_x $have_x
37773 XML --with-xml=$with_xml $have_xml
37774 ZLIB --with-zlib=$with_zlib $have_zlib
37777 X_CFLAGS = $X_CFLAGS
37778 X_PRE_LIBS = $X_PRE_LIBS
37780 X_EXTRA_LIBS = $X_EXTRA_LIBS
37782 Options used to compile and link:
37783 PREFIX = $PREFIX_DIR
37784 EXEC-PREFIX = $EXEC_PREFIX_DIR
37785 VERSION = $PACKAGE_VERSION
37788 CPPFLAGS = $MAGICK_CPPFLAGS
37789 PCFLAGS = $MAGICK_PCFLAGS
37792 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
37793 LIBS = $MAGICK_LIBS
37795 CXXFLAGS = $CXXFLAGS
37796 FEATURES = $MAGICK_FEATURES