2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for ImageMagick 6.6.9.
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-6.6.9'
577 PACKAGE_VERSION='6.6.9'
578 PACKAGE_STRING='ImageMagick 6.6.9'
579 PACKAGE_BUGREPORT='http://www.imagemagick.org'
582 ac_unique_file="magick/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
757 OPENEXR_DELEGATE_FALSE
758 OPENEXR_DELEGATE_TRUE
788 FREETYPE_DELEGATE_FALSE
789 FREETYPE_DELEGATE_TRUE
791 FONTCONFIG_DELEGATE_FALSE
792 FONTCONFIG_DELEGATE_TRUE
807 AUTOTRACE_DELEGATE_FALSE
808 AUTOTRACE_DELEGATE_TRUE
833 WITH_MAGICK_PLUS_PLUS_FALSE
834 WITH_MAGICK_PLUS_PLUS_TRUE
849 LIBRARY_EXTRA_CPPFLAGS
850 MODULE_EXTRA_CPPFLAGS
855 MAINTAINER_MODE_FALSE
863 WITH_SHARED_LIBS_FALSE
864 WITH_SHARED_LIBS_TRUE
867 CONVENIENCE_LTDL_FALSE
868 CONVENIENCE_LTDL_TRUE
872 sys_symbol_underscore
914 WIN32_NATIVE_BUILD_FALSE
915 WIN32_NATIVE_BUILD_TRUE
916 WINGDI32_DELEGATE_FALSE
917 WINGDI32_DELEGATE_TRUE
950 MAGICK_FILTER_MODULE_PATH
951 MAGICK_CONFIGURE_BUILD_PATH
952 MAGICK_CONFIGURE_SRC_PATH
953 MAGICK_CODER_MODULE_PATH
969 CONFIG_STATUS_DEPENDENCIES
970 MAGICK_LIB_VERSION_NUMBER
971 MAGICK_LIB_VERSION_TEXT
983 INSTALL_STRIP_PROGRAM
998 PACKAGE_VERSION_ADDENDUM
1000 PACKAGE_LIB_VERSION_NUMBER
1005 MAGICK_LIBRARY_VERSION_INFO
1006 MAGICK_LIBRARY_CURRENT_MIN
1008 MAGICK_LIBRARY_REVISION
1009 MAGICK_LIBRARY_CURRENT
1011 MAGICK_TARGET_VENDOR
1026 DISTCHECK_CONFIG_FLAGS
1054 program_transform_name
1067 enable_option_checking
1069 enable_dependency_tracking
1072 enable_bounds_checking
1073 enable_osx_universal_binary
1089 enable_delegate_build
1096 enable_maintainer_mode
1106 with_magick_plus_plus
1117 with_dejavu_font_dir
1138 with_windows_font_dir
1142 ac_precious_vars='build_alias
1173 # Initialize some variables set by options.
1175 ac_init_version=false
1176 ac_unrecognized_opts=
1177 ac_unrecognized_sep=
1178 # The variables have the same names as the options, with
1179 # dashes changed to underlines.
1180 cache_file=/dev/null
1187 program_transform_name=s,x,x,
1195 # Installation directory options.
1196 # These are left unexpanded so users can "make install exec_prefix=/foo"
1197 # and all the variables that are supposed to be based on exec_prefix
1198 # by default will actually change.
1199 # Use braces instead of parens because sh, perl, etc. also accept them.
1200 # (The list follows the same order as the GNU Coding Standards.)
1201 bindir='${exec_prefix}/bin'
1202 sbindir='${exec_prefix}/sbin'
1203 libexecdir='${exec_prefix}/libexec'
1204 datarootdir='${prefix}/share'
1205 datadir='${datarootdir}'
1206 sysconfdir='${prefix}/etc'
1207 sharedstatedir='${prefix}/com'
1208 localstatedir='${prefix}/var'
1209 includedir='${prefix}/include'
1210 oldincludedir='/usr/include'
1211 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1212 infodir='${datarootdir}/info'
1217 libdir='${exec_prefix}/lib'
1218 localedir='${datarootdir}/locale'
1219 mandir='${datarootdir}/man'
1225 # If the previous option needs an argument, assign it.
1226 if test -n "$ac_prev"; then
1227 eval $ac_prev=\$ac_option
1233 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1238 # Accept the important Cygnus configure options, so we can diagnose typos.
1240 case $ac_dashdash$ac_option in
1244 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1246 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1247 bindir=$ac_optarg ;;
1249 -build | --build | --buil | --bui | --bu)
1250 ac_prev=build_alias ;;
1251 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1252 build_alias=$ac_optarg ;;
1254 -cache-file | --cache-file | --cache-fil | --cache-fi \
1255 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1256 ac_prev=cache_file ;;
1257 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1258 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1259 cache_file=$ac_optarg ;;
1261 --config-cache | -C)
1262 cache_file=config.cache ;;
1264 -datadir | --datadir | --datadi | --datad)
1266 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1267 datadir=$ac_optarg ;;
1269 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1270 | --dataroo | --dataro | --datar)
1271 ac_prev=datarootdir ;;
1272 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1273 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1274 datarootdir=$ac_optarg ;;
1276 -disable-* | --disable-*)
1277 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1278 # Reject names that are not valid shell variable names.
1279 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1280 as_fn_error $? "invalid feature name: $ac_useropt"
1281 ac_useropt_orig=$ac_useropt
1282 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1283 case $ac_user_opts in
1285 "enable_$ac_useropt"
1287 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1288 ac_unrecognized_sep=', ';;
1290 eval enable_$ac_useropt=no ;;
1292 -docdir | --docdir | --docdi | --doc | --do)
1294 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1295 docdir=$ac_optarg ;;
1297 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1299 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1300 dvidir=$ac_optarg ;;
1302 -enable-* | --enable-*)
1303 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1304 # Reject names that are not valid shell variable names.
1305 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1306 as_fn_error $? "invalid feature name: $ac_useropt"
1307 ac_useropt_orig=$ac_useropt
1308 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1309 case $ac_user_opts in
1311 "enable_$ac_useropt"
1313 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1314 ac_unrecognized_sep=', ';;
1316 eval enable_$ac_useropt=\$ac_optarg ;;
1318 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1319 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1320 | --exec | --exe | --ex)
1321 ac_prev=exec_prefix ;;
1322 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1323 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1324 | --exec=* | --exe=* | --ex=*)
1325 exec_prefix=$ac_optarg ;;
1327 -gas | --gas | --ga | --g)
1328 # Obsolete; use --with-gas.
1331 -help | --help | --hel | --he | -h)
1332 ac_init_help=long ;;
1333 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1334 ac_init_help=recursive ;;
1335 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1336 ac_init_help=short ;;
1338 -host | --host | --hos | --ho)
1339 ac_prev=host_alias ;;
1340 -host=* | --host=* | --hos=* | --ho=*)
1341 host_alias=$ac_optarg ;;
1343 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1345 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1347 htmldir=$ac_optarg ;;
1349 -includedir | --includedir | --includedi | --included | --include \
1350 | --includ | --inclu | --incl | --inc)
1351 ac_prev=includedir ;;
1352 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1353 | --includ=* | --inclu=* | --incl=* | --inc=*)
1354 includedir=$ac_optarg ;;
1356 -infodir | --infodir | --infodi | --infod | --info | --inf)
1358 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1359 infodir=$ac_optarg ;;
1361 -libdir | --libdir | --libdi | --libd)
1363 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1364 libdir=$ac_optarg ;;
1366 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1367 | --libexe | --libex | --libe)
1368 ac_prev=libexecdir ;;
1369 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1370 | --libexe=* | --libex=* | --libe=*)
1371 libexecdir=$ac_optarg ;;
1373 -localedir | --localedir | --localedi | --localed | --locale)
1374 ac_prev=localedir ;;
1375 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1376 localedir=$ac_optarg ;;
1378 -localstatedir | --localstatedir | --localstatedi | --localstated \
1379 | --localstate | --localstat | --localsta | --localst | --locals)
1380 ac_prev=localstatedir ;;
1381 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1382 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1383 localstatedir=$ac_optarg ;;
1385 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1387 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1388 mandir=$ac_optarg ;;
1390 -nfp | --nfp | --nf)
1391 # Obsolete; use --without-fp.
1394 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1395 | --no-cr | --no-c | -n)
1398 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1399 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1402 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1403 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1404 | --oldin | --oldi | --old | --ol | --o)
1405 ac_prev=oldincludedir ;;
1406 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1407 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1408 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1409 oldincludedir=$ac_optarg ;;
1411 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1413 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1414 prefix=$ac_optarg ;;
1416 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1417 | --program-pre | --program-pr | --program-p)
1418 ac_prev=program_prefix ;;
1419 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1420 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1421 program_prefix=$ac_optarg ;;
1423 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1424 | --program-suf | --program-su | --program-s)
1425 ac_prev=program_suffix ;;
1426 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1427 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1428 program_suffix=$ac_optarg ;;
1430 -program-transform-name | --program-transform-name \
1431 | --program-transform-nam | --program-transform-na \
1432 | --program-transform-n | --program-transform- \
1433 | --program-transform | --program-transfor \
1434 | --program-transfo | --program-transf \
1435 | --program-trans | --program-tran \
1436 | --progr-tra | --program-tr | --program-t)
1437 ac_prev=program_transform_name ;;
1438 -program-transform-name=* | --program-transform-name=* \
1439 | --program-transform-nam=* | --program-transform-na=* \
1440 | --program-transform-n=* | --program-transform-=* \
1441 | --program-transform=* | --program-transfor=* \
1442 | --program-transfo=* | --program-transf=* \
1443 | --program-trans=* | --program-tran=* \
1444 | --progr-tra=* | --program-tr=* | --program-t=*)
1445 program_transform_name=$ac_optarg ;;
1447 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1449 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1450 pdfdir=$ac_optarg ;;
1452 -psdir | --psdir | --psdi | --psd | --ps)
1454 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1457 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1458 | -silent | --silent | --silen | --sile | --sil)
1461 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1463 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1465 sbindir=$ac_optarg ;;
1467 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1468 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1469 | --sharedst | --shareds | --shared | --share | --shar \
1471 ac_prev=sharedstatedir ;;
1472 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1473 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1474 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1476 sharedstatedir=$ac_optarg ;;
1478 -site | --site | --sit)
1480 -site=* | --site=* | --sit=*)
1483 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1485 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1486 srcdir=$ac_optarg ;;
1488 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1489 | --syscon | --sysco | --sysc | --sys | --sy)
1490 ac_prev=sysconfdir ;;
1491 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1492 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1493 sysconfdir=$ac_optarg ;;
1495 -target | --target | --targe | --targ | --tar | --ta | --t)
1496 ac_prev=target_alias ;;
1497 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1498 target_alias=$ac_optarg ;;
1500 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1503 -version | --version | --versio | --versi | --vers | -V)
1504 ac_init_version=: ;;
1507 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1508 # Reject names that are not valid shell variable names.
1509 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1510 as_fn_error $? "invalid package name: $ac_useropt"
1511 ac_useropt_orig=$ac_useropt
1512 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1513 case $ac_user_opts in
1517 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1518 ac_unrecognized_sep=', ';;
1520 eval with_$ac_useropt=\$ac_optarg ;;
1522 -without-* | --without-*)
1523 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1524 # Reject names that are not valid shell variable names.
1525 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1526 as_fn_error $? "invalid package name: $ac_useropt"
1527 ac_useropt_orig=$ac_useropt
1528 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1529 case $ac_user_opts in
1533 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1534 ac_unrecognized_sep=', ';;
1536 eval with_$ac_useropt=no ;;
1539 # Obsolete; use --with-x.
1542 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1543 | --x-incl | --x-inc | --x-in | --x-i)
1544 ac_prev=x_includes ;;
1545 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1546 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1547 x_includes=$ac_optarg ;;
1549 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1550 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1551 ac_prev=x_libraries ;;
1552 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1553 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1554 x_libraries=$ac_optarg ;;
1556 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1557 Try \`$0 --help' for more information"
1561 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1562 # Reject names that are not valid shell variable names.
1563 case $ac_envvar in #(
1564 '' | [0-9]* | *[!_$as_cr_alnum]* )
1565 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1567 eval $ac_envvar=\$ac_optarg
1568 export $ac_envvar ;;
1571 # FIXME: should be removed in autoconf 3.0.
1572 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1573 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1574 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1575 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1581 if test -n "$ac_prev"; then
1582 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1583 as_fn_error $? "missing argument to $ac_option"
1586 if test -n "$ac_unrecognized_opts"; then
1587 case $enable_option_checking in
1589 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1590 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1594 # Check all directory arguments for consistency.
1595 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1596 datadir sysconfdir sharedstatedir localstatedir includedir \
1597 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1598 libdir localedir mandir
1600 eval ac_val=\$$ac_var
1601 # Remove trailing slashes.
1604 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1605 eval $ac_var=\$ac_val;;
1607 # Be sure to have absolute directory names.
1609 [\\/$]* | ?:[\\/]* ) continue;;
1610 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1612 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1615 # There might be people who depend on the old broken behavior: `$host'
1616 # used to hold the argument of --host etc.
1617 # FIXME: To remove some day.
1620 target=$target_alias
1622 # FIXME: To remove some day.
1623 if test "x$host_alias" != x; then
1624 if test "x$build_alias" = x; then
1625 cross_compiling=maybe
1626 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1627 If a cross compiler is detected then cross compile mode will be used" >&2
1628 elif test "x$build_alias" != "x$host_alias"; then
1634 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1636 test "$silent" = yes && exec 6>/dev/null
1639 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1640 ac_ls_di=`ls -di .` &&
1641 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1642 as_fn_error $? "working directory cannot be determined"
1643 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1644 as_fn_error $? "pwd does not report name of working directory"
1647 # Find the source files, if location was not specified.
1648 if test -z "$srcdir"; then
1649 ac_srcdir_defaulted=yes
1650 # Try the directory containing this script, then the parent directory.
1651 ac_confdir=`$as_dirname -- "$as_myself" ||
1652 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1653 X"$as_myself" : 'X\(//\)[^/]' \| \
1654 X"$as_myself" : 'X\(//\)$' \| \
1655 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1656 $as_echo X"$as_myself" |
1657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1675 if test ! -r "$srcdir/$ac_unique_file"; then
1679 ac_srcdir_defaulted=no
1681 if test ! -r "$srcdir/$ac_unique_file"; then
1682 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1683 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1685 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1687 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1689 # When building in place, set srcdir=.
1690 if test "$ac_abs_confdir" = "$ac_pwd"; then
1693 # Remove unnecessary trailing slashes from srcdir.
1694 # Double slashes in file names in object file debugging info
1695 # mess up M-x gdb in Emacs.
1697 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1699 for ac_var in $ac_precious_vars; do
1700 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1701 eval ac_env_${ac_var}_value=\$${ac_var}
1702 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1703 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1707 # Report the --help message.
1709 if test "$ac_init_help" = "long"; then
1710 # Omit some internal or obsolete options to make the list less imposing.
1711 # This message is too long to be a string in the A/UX 3.1 sh.
1713 \`configure' configures ImageMagick 6.6.9 to adapt to many kinds of systems.
1715 Usage: $0 [OPTION]... [VAR=VALUE]...
1717 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1718 VAR=VALUE. See below for descriptions of some of the useful variables.
1720 Defaults for the options are specified in brackets.
1723 -h, --help display this help and exit
1724 --help=short display options specific to this package
1725 --help=recursive display the short help of all the included packages
1726 -V, --version display version information and exit
1727 -q, --quiet, --silent do not print \`checking ...' messages
1728 --cache-file=FILE cache test results in FILE [disabled]
1729 -C, --config-cache alias for \`--cache-file=config.cache'
1730 -n, --no-create do not create output files
1731 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1733 Installation directories:
1734 --prefix=PREFIX install architecture-independent files in PREFIX
1735 [$ac_default_prefix]
1736 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1739 By default, \`make install' will install all the files in
1740 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1741 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1742 for instance \`--prefix=\$HOME'.
1744 For better control, use the options below.
1746 Fine tuning of the installation directories:
1747 --bindir=DIR user executables [EPREFIX/bin]
1748 --sbindir=DIR system admin executables [EPREFIX/sbin]
1749 --libexecdir=DIR program executables [EPREFIX/libexec]
1750 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1751 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1752 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1753 --libdir=DIR object code libraries [EPREFIX/lib]
1754 --includedir=DIR C header files [PREFIX/include]
1755 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1756 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1757 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1758 --infodir=DIR info documentation [DATAROOTDIR/info]
1759 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1760 --mandir=DIR man documentation [DATAROOTDIR/man]
1761 --docdir=DIR documentation root
1762 [DATAROOTDIR/doc/ImageMagick-6.6.9]
1763 --htmldir=DIR html documentation [DOCDIR]
1764 --dvidir=DIR dvi documentation [DOCDIR]
1765 --pdfdir=DIR pdf documentation [DOCDIR]
1766 --psdir=DIR ps documentation [DOCDIR]
1772 --program-prefix=PREFIX prepend PREFIX to installed program names
1773 --program-suffix=SUFFIX append SUFFIX to installed program names
1774 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1777 --x-includes=DIR X include files are in DIR
1778 --x-libraries=DIR X library files are in DIR
1781 --build=BUILD configure for building on BUILD [guessed]
1782 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1783 --target=TARGET configure for building compilers for TARGET [HOST]
1787 if test -n "$ac_init_help"; then
1788 case $ac_init_help in
1789 short | recursive ) echo "Configuration of ImageMagick 6.6.9:";;
1794 --disable-option-checking ignore unrecognized --enable/--with options
1795 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1796 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1797 --enable-silent-rules less verbose build output (undo: `make V=1')
1798 --disable-silent-rules verbose build output (undo: `make V=0')
1799 --disable-dependency-tracking speeds up one-time build
1800 --enable-dependency-tracking do not reject slow dependency extractors
1801 --bounds-checking enable run-time bounds-checking
1802 --enable-osx-universal-binary
1803 build universal binary on OS X [[default=no]]
1804 --disable-openmp do not use OpenMP
1805 --disable-opencl do not use OpenCL
1806 --disable-largefile omit support for large files
1807 --enable-shared[=PKGS] build shared libraries [default=yes]
1808 --enable-static[=PKGS] build static libraries [default=yes]
1809 --enable-fast-install[=PKGS]
1810 optimize for fast installation [default=yes]
1811 --disable-libtool-lock avoid locking (might break parallel builds)
1812 --enable-ltdl-install install libltdl
1813 --enable-delegate-build look for delegate libraries in build directory
1814 --disable-deprecated exclude deprecated methods in MagickCore and
1816 --disable-installed Formally install ImageMagick under PREFIX
1817 --disable-cipher disable enciphering and deciphering image pixels
1818 --enable-embeddable enable self-contained, embeddable,
1819 zero-configuration ImageMagick
1820 --enable-hdri accurately represent the wide range of intensity
1821 levels found in real scenes
1822 --disable-assert disable assert() statements in build
1823 --enable-maintainer-mode enable make rules and dependencies not useful
1824 (and sometimes confusing) to the casual installer
1825 --enable-ccmalloc enable 'ccmalloc' memory debug support
1826 --enable-efence enable 'efence' memory debug support
1827 --enable-prof enable 'prof' profiling support
1828 --enable-gprof enable 'gprof' profiling support
1829 --enable-gcov enable 'gcov' profiling support
1830 --disable-assert turn off assertions
1833 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1834 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1835 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1836 --with-dmalloc use dmalloc, as in
1837 http://www.dmalloc.com/dmalloc.tar.gz
1838 --without-threads disable threads support
1839 --with-pic try to use only PIC/non-PIC objects [default=use
1841 --with-sysroot=DIR Search for dependent libraries within DIR
1842 (or the compiler's sysroot if not specified).
1843 --with-included-ltdl use the GNU ltdl sources included here
1844 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1845 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1846 --with-modules enable building dynamically loadable modules
1847 --with-method-prefix=PREFIX
1848 prefix MagickCore API methods
1849 --with-quantum-depth=DEPTH
1850 number of bits in a pixel quantum (default 16)
1851 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1853 --with-frozenpaths freeze delegate paths
1854 --without-magick-plus-plus
1855 disable build/install of Magick++
1856 --with-perl enable build/install of PerlMagick
1857 --with-perl-options=OPTIONS
1858 options to pass on command-line when generating
1859 PerlMagick's build file
1860 --with-umem enable umem memory allocation library support
1861 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1862 --without-bzlib disable BZLIB support
1863 --with-x use the X Window System
1864 --without-zlib disable ZLIB support
1865 --with-autotrace enable autotrace support
1866 --without-dps disable Display Postscript support
1867 --without-djvu disable DjVu support
1868 --with-dejavu-font-dir=DIR
1869 DejaVu font directory
1870 --without-fftw disable FFTW support
1871 --without-fpx disable FlashPIX support
1872 --without-fontconfig disable fontconfig support
1873 --without-freetype disable Freetype support
1874 --without-gslib enable Ghostscript library support
1875 --with-fontpath=DIR prepend to default font search path
1876 --with-gs-font-dir=DIR Ghostscript font directory
1877 --without-gvc disable GVC support
1878 --without-jbig disable JBIG support
1879 --without-jpeg disable JPEG support
1880 --without-jp2 disable JPEG-2000 support
1881 --without-lcms disable lcms (v1.1X) support
1882 --without-lcms2 disable lcms (v2.X) support
1883 --without-lqr disable Liquid Rescale support
1884 --without-lzma disable LZMA support
1885 --without-openexr disable OpenEXR support
1886 --without-png disable PNG support
1887 --without-rsvg disable RSVG support
1888 --without-tiff disable TIFF support
1889 --without-webp disable WEBP support
1890 --with-windows-font-dir=DIR
1891 directory containing MS-Windows fonts
1892 --without-wmf disable WMF support
1893 --without-xml disable XML support
1895 Some influential environment variables:
1896 CC C compiler command
1897 CFLAGS C compiler flags
1898 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1899 nonstandard directory <lib dir>
1900 LIBS libraries to pass to the linker, e.g. -l<library>
1901 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1902 you have headers in a nonstandard directory <include dir>
1904 CXX C++ compiler command
1905 CXXFLAGS C++ compiler flags
1906 PKG_CONFIG path to pkg-config utility
1907 CXXCPP C++ preprocessor
1908 XMKMF Path to xmkmf, Makefile generator for X Window System
1910 C compiler flags for AUTOTRACE, overriding pkg-config
1912 linker flags for AUTOTRACE, overriding pkg-config
1914 C compiler flags for FONTCONFIG, overriding pkg-config
1916 linker flags for FONTCONFIG, overriding pkg-config
1917 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1918 GVC_LIBS linker flags for GVC, overriding pkg-config
1919 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1920 LQR_LIBS linker flags for LQR, overriding pkg-config
1922 C compiler flags for OPENEXR, overriding pkg-config
1924 linker flags for OPENEXR, overriding pkg-config
1925 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1926 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1928 C compiler flags for CAIRO_SVG, overriding pkg-config
1930 linker flags for CAIRO_SVG, overriding pkg-config
1932 Use these variables to override the choices made by `configure' or to help
1933 it to find libraries and programs with nonstandard names/locations.
1935 Report bugs to <http://www.imagemagick.org>.
1940 if test "$ac_init_help" = "recursive"; then
1941 # If there are subdirs, report their specific --help.
1942 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1943 test -d "$ac_dir" ||
1944 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1949 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1951 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1952 # A ".." for each directory in $ac_dir_suffix.
1953 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1954 case $ac_top_builddir_sub in
1955 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1956 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1959 ac_abs_top_builddir=$ac_pwd
1960 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1961 # for backward compatibility:
1962 ac_top_builddir=$ac_top_build_prefix
1965 .) # We are building in place.
1967 ac_top_srcdir=$ac_top_builddir_sub
1968 ac_abs_top_srcdir=$ac_pwd ;;
1969 [\\/]* | ?:[\\/]* ) # Absolute name.
1970 ac_srcdir=$srcdir$ac_dir_suffix;
1971 ac_top_srcdir=$srcdir
1972 ac_abs_top_srcdir=$srcdir ;;
1974 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1975 ac_top_srcdir=$ac_top_build_prefix$srcdir
1976 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1978 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1980 cd "$ac_dir" || { ac_status=$?; continue; }
1981 # Check for guested configure.
1982 if test -f "$ac_srcdir/configure.gnu"; then
1984 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1985 elif test -f "$ac_srcdir/configure"; then
1987 $SHELL "$ac_srcdir/configure" --help=recursive
1989 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1991 cd "$ac_pwd" || { ac_status=$?; break; }
1995 test -n "$ac_init_help" && exit $ac_status
1996 if $ac_init_version; then
1998 ImageMagick configure 6.6.9
1999 generated by GNU Autoconf 2.68
2001 Copyright (C) 2010 Free Software Foundation, Inc.
2002 This configure script is free software; the Free Software Foundation
2003 gives unlimited permission to copy, distribute and modify it.
2008 ## ------------------------ ##
2009 ## Autoconf initialization. ##
2010 ## ------------------------ ##
2012 # ac_fn_c_try_compile LINENO
2013 # --------------------------
2014 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2015 ac_fn_c_try_compile ()
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 rm -f conftest.$ac_objext
2019 if { { ac_try="$ac_compile"
2021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2022 *) ac_try_echo=$ac_try;;
2024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2025 $as_echo "$ac_try_echo"; } >&5
2026 (eval "$ac_compile") 2>conftest.err
2028 if test -s conftest.err; then
2029 grep -v '^ *+' conftest.err >conftest.er1
2030 cat conftest.er1 >&5
2031 mv -f conftest.er1 conftest.err
2033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2034 test $ac_status = 0; } && {
2035 test -z "$ac_c_werror_flag" ||
2036 test ! -s conftest.err
2037 } && test -s conftest.$ac_objext; then :
2040 $as_echo "$as_me: failed program was:" >&5
2041 sed 's/^/| /' conftest.$ac_ext >&5
2045 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046 as_fn_set_status $ac_retval
2048 } # ac_fn_c_try_compile
2050 # ac_fn_c_try_cpp LINENO
2051 # ----------------------
2052 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 if { { ac_try="$ac_cpp conftest.$ac_ext"
2058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2059 *) ac_try_echo=$ac_try;;
2061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2062 $as_echo "$ac_try_echo"; } >&5
2063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2065 if test -s conftest.err; then
2066 grep -v '^ *+' conftest.err >conftest.er1
2067 cat conftest.er1 >&5
2068 mv -f conftest.er1 conftest.err
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; } > conftest.i && {
2072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2073 test ! -s conftest.err
2077 $as_echo "$as_me: failed program was:" >&5
2078 sed 's/^/| /' conftest.$ac_ext >&5
2082 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2083 as_fn_set_status $ac_retval
2087 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2088 # -------------------------------------------------------
2089 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2090 # the include files in INCLUDES and setting the cache variable VAR
2092 ac_fn_c_check_header_mongrel ()
2094 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095 if eval \${$3+:} false; then :
2096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2097 $as_echo_n "checking for $2... " >&6; }
2098 if eval \${$3+:} false; then :
2099 $as_echo_n "(cached) " >&6
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2105 # Is the header compilable?
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2107 $as_echo_n "checking $2 usability... " >&6; }
2108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2109 /* end confdefs.h. */
2113 if ac_fn_c_try_compile "$LINENO"; then :
2114 ac_header_compiler=yes
2116 ac_header_compiler=no
2118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2120 $as_echo "$ac_header_compiler" >&6; }
2122 # Is the header present?
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2124 $as_echo_n "checking $2 presence... " >&6; }
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h. */
2129 if ac_fn_c_try_cpp "$LINENO"; then :
2130 ac_header_preproc=yes
2132 ac_header_preproc=no
2134 rm -f conftest.err conftest.i conftest.$ac_ext
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2136 $as_echo "$ac_header_preproc" >&6; }
2138 # So? What about this header?
2139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2142 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2144 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2148 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2150 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2152 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2154 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2156 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2157 ( $as_echo "## ----------------------------------------- ##
2158 ## Report this to http://www.imagemagick.org ##
2159 ## ----------------------------------------- ##"
2160 ) | sed "s/^/$as_me: WARNING: /" >&2
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2164 $as_echo_n "checking for $2... " >&6; }
2165 if eval \${$3+:} false; then :
2166 $as_echo_n "(cached) " >&6
2168 eval "$3=\$ac_header_compiler"
2171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2172 $as_echo "$ac_res" >&6; }
2174 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2176 } # ac_fn_c_check_header_mongrel
2178 # ac_fn_c_try_run LINENO
2179 # ----------------------
2180 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2181 # that executables *can* be run.
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 if { { ac_try="$ac_link"
2187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188 *) ac_try_echo=$ac_try;;
2190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2191 $as_echo "$ac_try_echo"; } >&5
2192 (eval "$ac_link") 2>&5
2194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2195 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2196 { { case "(($ac_try" in
2197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2198 *) ac_try_echo=$ac_try;;
2200 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2201 $as_echo "$ac_try_echo"; } >&5
2202 (eval "$ac_try") 2>&5
2204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2205 test $ac_status = 0; }; }; then :
2208 $as_echo "$as_me: program exited with status $ac_status" >&5
2209 $as_echo "$as_me: failed program was:" >&5
2210 sed 's/^/| /' conftest.$ac_ext >&5
2212 ac_retval=$ac_status
2214 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216 as_fn_set_status $ac_retval
2220 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2221 # -------------------------------------------------------
2222 # Tests whether HEADER exists and can be compiled using the include files in
2223 # INCLUDES, setting the cache variable VAR accordingly.
2224 ac_fn_c_check_header_compile ()
2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2228 $as_echo_n "checking for $2... " >&6; }
2229 if eval \${$3+:} false; then :
2230 $as_echo_n "(cached) " >&6
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2237 if ac_fn_c_try_compile "$LINENO"; then :
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246 $as_echo "$ac_res" >&6; }
2247 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249 } # ac_fn_c_check_header_compile
2251 # ac_fn_cxx_try_compile LINENO
2252 # ----------------------------
2253 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2254 ac_fn_cxx_try_compile ()
2256 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2257 rm -f conftest.$ac_objext
2258 if { { ac_try="$ac_compile"
2260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261 *) ac_try_echo=$ac_try;;
2263 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2264 $as_echo "$ac_try_echo"; } >&5
2265 (eval "$ac_compile") 2>conftest.err
2267 if test -s conftest.err; then
2268 grep -v '^ *+' conftest.err >conftest.er1
2269 cat conftest.er1 >&5
2270 mv -f conftest.er1 conftest.err
2272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2273 test $ac_status = 0; } && {
2274 test -z "$ac_cxx_werror_flag" ||
2275 test ! -s conftest.err
2276 } && test -s conftest.$ac_objext; then :
2279 $as_echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2284 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2285 as_fn_set_status $ac_retval
2287 } # ac_fn_cxx_try_compile
2289 # ac_fn_c_try_link LINENO
2290 # -----------------------
2291 # Try to link conftest.$ac_ext, and return whether this succeeded.
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 rm -f conftest.$ac_objext conftest$ac_exeext
2296 if { { ac_try="$ac_link"
2298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299 *) ac_try_echo=$ac_try;;
2301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2302 $as_echo "$ac_try_echo"; } >&5
2303 (eval "$ac_link") 2>conftest.err
2305 if test -s conftest.err; then
2306 grep -v '^ *+' conftest.err >conftest.er1
2307 cat conftest.er1 >&5
2308 mv -f conftest.er1 conftest.err
2310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2311 test $ac_status = 0; } && {
2312 test -z "$ac_c_werror_flag" ||
2313 test ! -s conftest.err
2314 } && test -s conftest$ac_exeext && {
2315 test "$cross_compiling" = yes ||
2316 $as_test_x conftest$ac_exeext
2320 $as_echo "$as_me: failed program was:" >&5
2321 sed 's/^/| /' conftest.$ac_ext >&5
2325 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2326 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2327 # interfere with the next link command; also delete a directory that is
2328 # left behind by Apple's compiler. We do this before executing the actions.
2329 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2330 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2331 as_fn_set_status $ac_retval
2333 } # ac_fn_c_try_link
2335 # ac_fn_c_check_func LINENO FUNC VAR
2336 # ----------------------------------
2337 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2338 ac_fn_c_check_func ()
2340 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if eval \${$3+:} false; then :
2344 $as_echo_n "(cached) " >&6
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h. */
2348 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2349 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2350 #define $2 innocuous_$2
2352 /* System header to define __stub macros and hopefully few prototypes,
2353 which can conflict with char $2 (); below.
2354 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2355 <limits.h> exists even on freestanding compilers. */
2358 # include <limits.h>
2360 # include <assert.h>
2365 /* Override any GCC internal prototype to avoid an error.
2366 Use char because int might match the return type of a GCC
2367 builtin and then its argument prototype would still apply. */
2372 /* The GNU C library defines this for functions which it implements
2373 to always fail with ENOSYS. Some functions are actually named
2374 something starting with __ and the normal name is an alias. */
2375 #if defined __stub_$2 || defined __stub___$2
2387 if ac_fn_c_try_link "$LINENO"; then :
2392 rm -f core conftest.err conftest.$ac_objext \
2393 conftest$ac_exeext conftest.$ac_ext
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2397 $as_echo "$ac_res" >&6; }
2398 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2400 } # ac_fn_c_check_func
2402 # ac_fn_cxx_try_cpp LINENO
2403 # ------------------------
2404 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2405 ac_fn_cxx_try_cpp ()
2407 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408 if { { ac_try="$ac_cpp conftest.$ac_ext"
2410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2411 *) ac_try_echo=$ac_try;;
2413 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2414 $as_echo "$ac_try_echo"; } >&5
2415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2417 if test -s conftest.err; then
2418 grep -v '^ *+' conftest.err >conftest.er1
2419 cat conftest.er1 >&5
2420 mv -f conftest.er1 conftest.err
2422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2423 test $ac_status = 0; } > conftest.i && {
2424 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2425 test ! -s conftest.err
2429 $as_echo "$as_me: failed program was:" >&5
2430 sed 's/^/| /' conftest.$ac_ext >&5
2434 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2435 as_fn_set_status $ac_retval
2437 } # ac_fn_cxx_try_cpp
2439 # ac_fn_cxx_try_link LINENO
2440 # -------------------------
2441 # Try to link conftest.$ac_ext, and return whether this succeeded.
2442 ac_fn_cxx_try_link ()
2444 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2445 rm -f conftest.$ac_objext conftest$ac_exeext
2446 if { { ac_try="$ac_link"
2448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449 *) ac_try_echo=$ac_try;;
2451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2452 $as_echo "$ac_try_echo"; } >&5
2453 (eval "$ac_link") 2>conftest.err
2455 if test -s conftest.err; then
2456 grep -v '^ *+' conftest.err >conftest.er1
2457 cat conftest.er1 >&5
2458 mv -f conftest.er1 conftest.err
2460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2461 test $ac_status = 0; } && {
2462 test -z "$ac_cxx_werror_flag" ||
2463 test ! -s conftest.err
2464 } && test -s conftest$ac_exeext && {
2465 test "$cross_compiling" = yes ||
2466 $as_test_x conftest$ac_exeext
2470 $as_echo "$as_me: failed program was:" >&5
2471 sed 's/^/| /' conftest.$ac_ext >&5
2475 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2476 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2477 # interfere with the next link command; also delete a directory that is
2478 # left behind by Apple's compiler. We do this before executing the actions.
2479 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2480 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2481 as_fn_set_status $ac_retval
2483 } # ac_fn_cxx_try_link
2485 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2486 # ---------------------------------------------
2487 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2489 ac_fn_c_check_decl ()
2491 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2492 as_decl_name=`echo $2|sed 's/ *(.*//'`
2493 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2495 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2496 if eval \${$3+:} false; then :
2497 $as_echo_n "(cached) " >&6
2499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2500 /* end confdefs.h. */
2505 #ifndef $as_decl_name
2507 (void) $as_decl_use;
2509 (void) $as_decl_name;
2517 if ac_fn_c_try_compile "$LINENO"; then :
2522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2526 $as_echo "$ac_res" >&6; }
2527 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2529 } # ac_fn_c_check_decl
2531 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2532 # -------------------------------------------
2533 # Tests whether TYPE exists after having included INCLUDES, setting cache
2534 # variable VAR accordingly.
2535 ac_fn_c_check_type ()
2537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2539 $as_echo_n "checking for $2... " >&6; }
2540 if eval \${$3+:} false; then :
2541 $as_echo_n "(cached) " >&6
2544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h. */
2556 if ac_fn_c_try_compile "$LINENO"; then :
2557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2558 /* end confdefs.h. */
2569 if ac_fn_c_try_compile "$LINENO"; then :
2574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2580 $as_echo "$ac_res" >&6; }
2581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2583 } # ac_fn_c_check_type
2585 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2586 # ----------------------------------------------------
2587 # Tries to find if the field MEMBER exists in type AGGR, after including
2588 # INCLUDES, setting cache variable VAR accordingly.
2589 ac_fn_c_check_member ()
2591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2593 $as_echo_n "checking for $2.$3... " >&6; }
2594 if eval \${$4+:} false; then :
2595 $as_echo_n "(cached) " >&6
2597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h. */
2610 if ac_fn_c_try_compile "$LINENO"; then :
2613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2614 /* end confdefs.h. */
2620 if (sizeof ac_aggr.$3)
2626 if ac_fn_c_try_compile "$LINENO"; then :
2631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2637 $as_echo "$ac_res" >&6; }
2638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2640 } # ac_fn_c_check_member
2642 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2643 # --------------------------------------------
2644 # Tries to find the compile-time value of EXPR in a program that includes
2645 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2647 ac_fn_c_compute_int ()
2649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2650 if test "$cross_compiling" = yes; then
2651 # Depending upon the size, compute the lo and hi bounds.
2652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653 /* end confdefs.h. */
2658 static int test_array [1 - 2 * !(($2) >= 0)];
2665 if ac_fn_c_try_compile "$LINENO"; then :
2668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2669 /* end confdefs.h. */
2674 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2681 if ac_fn_c_try_compile "$LINENO"; then :
2682 ac_hi=$ac_mid; break
2684 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2685 if test $ac_lo -le $ac_mid; then
2689 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2695 /* end confdefs.h. */
2700 static int test_array [1 - 2 * !(($2) < 0)];
2707 if ac_fn_c_try_compile "$LINENO"; then :
2710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2711 /* end confdefs.h. */
2716 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2723 if ac_fn_c_try_compile "$LINENO"; then :
2724 ac_lo=$ac_mid; break
2726 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2727 if test $ac_mid -le $ac_hi; then
2731 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741 # Binary search between lo and hi bounds.
2742 while test "x$ac_lo" != "x$ac_hi"; do
2743 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745 /* end confdefs.h. */
2750 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2757 if ac_fn_c_try_compile "$LINENO"; then :
2760 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2765 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2770 /* end confdefs.h. */
2772 static long int longval () { return $2; }
2773 static unsigned long int ulongval () { return $2; }
2780 FILE *f = fopen ("conftest.val", "w");
2785 long int i = longval ();
2788 fprintf (f, "%ld", i);
2792 unsigned long int i = ulongval ();
2795 fprintf (f, "%lu", i);
2797 /* Do not output a trailing newline, as this causes \r\n confusion
2798 on some platforms. */
2799 return ferror (f) || fclose (f) != 0;
2805 if ac_fn_c_try_run "$LINENO"; then :
2806 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2811 conftest.$ac_objext conftest.beam conftest.$ac_ext
2815 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2816 as_fn_set_status $ac_retval
2818 } # ac_fn_c_compute_int
2820 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2821 # ---------------------------------------------------------
2822 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2823 # the include files in INCLUDES and setting the cache variable VAR
2825 ac_fn_cxx_check_header_mongrel ()
2827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2828 if eval \${$3+:} false; then :
2829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2830 $as_echo_n "checking for $2... " >&6; }
2831 if eval \${$3+:} false; then :
2832 $as_echo_n "(cached) " >&6
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2836 $as_echo "$ac_res" >&6; }
2838 # Is the header compilable?
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2840 $as_echo_n "checking $2 usability... " >&6; }
2841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2842 /* end confdefs.h. */
2846 if ac_fn_cxx_try_compile "$LINENO"; then :
2847 ac_header_compiler=yes
2849 ac_header_compiler=no
2851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2853 $as_echo "$ac_header_compiler" >&6; }
2855 # Is the header present?
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2857 $as_echo_n "checking $2 presence... " >&6; }
2858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2859 /* end confdefs.h. */
2862 if ac_fn_cxx_try_cpp "$LINENO"; then :
2863 ac_header_preproc=yes
2865 ac_header_preproc=no
2867 rm -f conftest.err conftest.i conftest.$ac_ext
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2869 $as_echo "$ac_header_preproc" >&6; }
2871 # So? What about this header?
2872 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2875 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2877 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2881 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2883 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2885 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2887 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2889 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2890 ( $as_echo "## ----------------------------------------- ##
2891 ## Report this to http://www.imagemagick.org ##
2892 ## ----------------------------------------- ##"
2893 ) | sed "s/^/$as_me: WARNING: /" >&2
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2897 $as_echo_n "checking for $2... " >&6; }
2898 if eval \${$3+:} false; then :
2899 $as_echo_n "(cached) " >&6
2901 eval "$3=\$ac_header_compiler"
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2905 $as_echo "$ac_res" >&6; }
2907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2909 } # ac_fn_cxx_check_header_mongrel
2910 cat >config.log <<_ACEOF
2911 This file contains any messages produced by compilers while
2912 running configure, to aid debugging if configure makes a mistake.
2914 It was created by ImageMagick $as_me 6.6.9, which was
2915 generated by GNU Autoconf 2.68. Invocation command line was
2927 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2928 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2929 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2930 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2931 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2933 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2934 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2936 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2937 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2938 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2939 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2940 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2941 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2942 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950 test -z "$as_dir" && as_dir=.
2951 $as_echo "PATH: $as_dir"
2967 # Keep a trace of the command line.
2968 # Strip out --no-create and --no-recursion so they do not pile up.
2969 # Strip out --silent because we don't want to record it for future runs.
2970 # Also quote any args containing shell meta-characters.
2971 # Make two passes to allow for proper duplicate-argument suppression.
2975 ac_must_keep_next=false
2981 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2982 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2983 | -silent | --silent | --silen | --sile | --sil)
2986 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2989 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2991 as_fn_append ac_configure_args1 " '$ac_arg'"
2992 if test $ac_must_keep_next = true; then
2993 ac_must_keep_next=false # Got value, back to normal.
2996 *=* | --config-cache | -C | -disable-* | --disable-* \
2997 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2998 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2999 | -with-* | --with-* | -without-* | --without-* | --x)
3000 case "$ac_configure_args0 " in
3001 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3004 -* ) ac_must_keep_next=true ;;
3007 as_fn_append ac_configure_args " '$ac_arg'"
3012 { ac_configure_args0=; unset ac_configure_args0;}
3013 { ac_configure_args1=; unset ac_configure_args1;}
3015 # When interrupted or exit'd, cleanup temporary files, and complete
3016 # config.log. We remove comments because anyway the quotes in there
3017 # would cause problems or look ugly.
3018 # WARNING: Use '\'' to represent an apostrophe within the trap.
3019 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3020 trap 'exit_status=$?
3021 # Save into config.log some information that might help in debugging.
3025 $as_echo "## ---------------- ##
3026 ## Cache variables. ##
3027 ## ---------------- ##"
3029 # The following way of writing the cache mishandles newlines in values,
3031 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3032 eval ac_val=\$$ac_var
3036 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3037 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3040 _ | IFS | as_nl) ;; #(
3041 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3042 *) { eval $ac_var=; unset $ac_var;} ;;
3047 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3048 *${as_nl}ac_space=\ *)
3050 "s/'\''/'\''\\\\'\'''\''/g;
3051 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3054 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3061 $as_echo "## ----------------- ##
3062 ## Output variables. ##
3063 ## ----------------- ##"
3065 for ac_var in $ac_subst_vars
3067 eval ac_val=\$$ac_var
3069 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3071 $as_echo "$ac_var='\''$ac_val'\''"
3075 if test -n "$ac_subst_files"; then
3076 $as_echo "## ------------------- ##
3077 ## File substitutions. ##
3078 ## ------------------- ##"
3080 for ac_var in $ac_subst_files
3082 eval ac_val=\$$ac_var
3084 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3086 $as_echo "$ac_var='\''$ac_val'\''"
3091 if test -s confdefs.h; then
3092 $as_echo "## ----------- ##
3099 test "$ac_signal" != 0 &&
3100 $as_echo "$as_me: caught signal $ac_signal"
3101 $as_echo "$as_me: exit $exit_status"
3103 rm -f core *.core core.conftest.* &&
3104 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3107 for ac_signal in 1 2 13 15; do
3108 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3112 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3113 rm -f -r conftest* confdefs.h
3115 $as_echo "/* confdefs.h */" > confdefs.h
3117 # Predefined preprocessor variables.
3119 cat >>confdefs.h <<_ACEOF
3120 #define PACKAGE_NAME "$PACKAGE_NAME"
3123 cat >>confdefs.h <<_ACEOF
3124 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3127 cat >>confdefs.h <<_ACEOF
3128 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3131 cat >>confdefs.h <<_ACEOF
3132 #define PACKAGE_STRING "$PACKAGE_STRING"
3135 cat >>confdefs.h <<_ACEOF
3136 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3139 cat >>confdefs.h <<_ACEOF
3140 #define PACKAGE_URL "$PACKAGE_URL"
3144 # Let the site file select an alternate cache file if it wants to.
3145 # Prefer an explicitly selected file to automatically selected ones.
3148 if test -n "$CONFIG_SITE"; then
3149 # We do not want a PATH search for config.site.
3150 case $CONFIG_SITE in #((
3151 -*) ac_site_file1=./$CONFIG_SITE;;
3152 */*) ac_site_file1=$CONFIG_SITE;;
3153 *) ac_site_file1=./$CONFIG_SITE;;
3155 elif test "x$prefix" != xNONE; then
3156 ac_site_file1=$prefix/share/config.site
3157 ac_site_file2=$prefix/etc/config.site
3159 ac_site_file1=$ac_default_prefix/share/config.site
3160 ac_site_file2=$ac_default_prefix/etc/config.site
3162 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3164 test "x$ac_site_file" = xNONE && continue
3165 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3167 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3168 sed 's/^/| /' "$ac_site_file" >&5
3170 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3171 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3172 as_fn_error $? "failed to load site script $ac_site_file
3173 See \`config.log' for more details" "$LINENO" 5; }
3177 if test -r "$cache_file"; then
3178 # Some versions of bash will fail to source /dev/null (special files
3179 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3180 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3182 $as_echo "$as_me: loading cache $cache_file" >&6;}
3184 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3185 *) . "./$cache_file";;
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3190 $as_echo "$as_me: creating cache $cache_file" >&6;}
3194 as_fn_append ac_header_list " stdlib.h"
3195 as_fn_append ac_header_list " unistd.h"
3196 as_fn_append ac_header_list " sys/param.h"
3197 # Check that the precious variables saved in the cache have kept the same
3199 ac_cache_corrupted=false
3200 for ac_var in $ac_precious_vars; do
3201 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3202 eval ac_new_set=\$ac_env_${ac_var}_set
3203 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3204 eval ac_new_val=\$ac_env_${ac_var}_value
3205 case $ac_old_set,$ac_new_set in
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3208 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3209 ac_cache_corrupted=: ;;
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3212 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3213 ac_cache_corrupted=: ;;
3216 if test "x$ac_old_val" != "x$ac_new_val"; then
3217 # differences in whitespace do not lead to failure.
3218 ac_old_val_w=`echo x $ac_old_val`
3219 ac_new_val_w=`echo x $ac_new_val`
3220 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3222 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3223 ac_cache_corrupted=:
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3226 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3227 eval $ac_var=\$ac_old_val
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3230 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3232 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3235 # Pass precious variables to config.status.
3236 if test "$ac_new_set" = set; then
3238 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3239 *) ac_arg=$ac_var=$ac_new_val ;;
3241 case " $ac_configure_args " in
3242 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3243 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3247 if $ac_cache_corrupted; then
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3249 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3251 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3252 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3254 ## -------------------- ##
3255 ## Main body of script. ##
3256 ## -------------------- ##
3259 ac_cpp='$CPP $CPPFLAGS'
3260 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3261 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3262 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3267 for ac_dir in config "$srcdir"/config; do
3268 if test -f "$ac_dir/install-sh"; then
3270 ac_install_sh="$ac_aux_dir/install-sh -c"
3272 elif test -f "$ac_dir/install.sh"; then
3274 ac_install_sh="$ac_aux_dir/install.sh -c"
3276 elif test -f "$ac_dir/shtool"; then
3278 ac_install_sh="$ac_aux_dir/shtool install -c"
3282 if test -z "$ac_aux_dir"; then
3283 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3286 # These three variables are undocumented and unsupported,
3287 # and are intended to be withdrawn in a future Autoconf release.
3288 # They can cause serious problems if a builder's source tree is in a directory
3289 # whose full name contains unusual characters.
3290 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3291 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3292 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3297 ac_config_headers="$ac_config_headers config/config.h"
3300 ac_config_commands="$ac_config_commands magick/magick-config.h"
3302 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 magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/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 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
3306 # Save initial user-tunable values
3309 for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3310 eval isset=\${$var+set}
3311 if test "$isset" = 'set'; then
3312 eval val=$`echo $var`
3313 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3318 CONFIGURE_ARGS="$0 ${ac_configure_args}"
3321 # Source file containing package/library versioning information.
3322 . ${srcdir}/version.sh
3324 echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3325 # Make sure we can run config.sub.
3326 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3327 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3330 $as_echo_n "checking build system type... " >&6; }
3331 if ${ac_cv_build+:} false; then :
3332 $as_echo_n "(cached) " >&6
3334 ac_build_alias=$build_alias
3335 test "x$ac_build_alias" = x &&
3336 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3337 test "x$ac_build_alias" = x &&
3338 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3339 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3340 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3344 $as_echo "$ac_cv_build" >&6; }
3345 case $ac_cv_build in
3347 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3350 ac_save_IFS=$IFS; IFS='-'
3356 # Remember, the first character of IFS is used to create $*,
3357 # except with old shells:
3360 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3364 $as_echo_n "checking host system type... " >&6; }
3365 if ${ac_cv_host+:} false; then :
3366 $as_echo_n "(cached) " >&6
3368 if test "x$host_alias" = x; then
3369 ac_cv_host=$ac_cv_build
3371 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3372 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3377 $as_echo "$ac_cv_host" >&6; }
3380 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3383 ac_save_IFS=$IFS; IFS='-'
3389 # Remember, the first character of IFS is used to create $*,
3390 # except with old shells:
3393 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3397 $as_echo_n "checking target system type... " >&6; }
3398 if ${ac_cv_target+:} false; then :
3399 $as_echo_n "(cached) " >&6
3401 if test "x$target_alias" = x; then
3402 ac_cv_target=$ac_cv_host
3404 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3405 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3410 $as_echo "$ac_cv_target" >&6; }
3411 case $ac_cv_target in
3413 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3415 target=$ac_cv_target
3416 ac_save_IFS=$IFS; IFS='-'
3422 # Remember, the first character of IFS is used to create $*,
3423 # except with old shells:
3426 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3429 # The aliases save the names the user supplied, while $host etc.
3430 # will get canonicalized.
3431 test -n "$target_alias" &&
3432 test "$program_prefix$program_suffix$program_transform_name" = \
3434 program_prefix=${target_alias}-
3440 MAGICK_TARGET_CPU=$target_cpu
3443 MAGICK_TARGET_VENDOR=$target_vendor
3446 MAGICK_TARGET_OS=$target_os
3449 # Substitute library versioning
3450 MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3452 MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3454 MAGICK_SVN_REVISION=4055
3459 # Ensure that make can run correctly
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3461 $as_echo_n "checking whether build environment is sane... " >&6; }
3464 echo timestamp > conftest.file
3465 # Reject unsafe characters in $srcdir or the absolute working directory
3466 # name. Accept space and tab only in the latter.
3470 *[\\\"\#\$\&\'\`$am_lf]*)
3471 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3474 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3475 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3478 # Do `set' in a subshell so we don't clobber the current shell's
3479 # arguments. Must try -L first in case configure is actually a
3480 # symlink; some systems play weird games with the mod time of symlinks
3481 # (eg FreeBSD returns the mod time of the symlink's containing
3484 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3485 if test "$*" = "X"; then
3487 set X `ls -t "$srcdir/configure" conftest.file`
3490 if test "$*" != "X $srcdir/configure conftest.file" \
3491 && test "$*" != "X conftest.file $srcdir/configure"; then
3493 # If neither matched, then we have a broken ls. This can happen
3494 # if, for instance, CONFIG_SHELL is bash and it inherits a
3495 # broken ls alias from the environment. This has actually
3496 # happened. Such a system could not be considered "sane".
3497 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3498 alias in your environment" "$LINENO" 5
3501 test "$2" = conftest.file
3507 as_fn_error $? "newly created file is older than distributed files!
3508 Check your system clock" "$LINENO" 5
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3511 $as_echo "yes" >&6; }
3513 am__api_version='1.11'
3515 # Find a good install program. We prefer a C program (faster),
3516 # so one script is as good as another. But avoid the broken or
3517 # incompatible versions:
3518 # SysV /etc/install, /usr/sbin/install
3519 # SunOS /usr/etc/install
3520 # IRIX /sbin/install
3522 # AmigaOS /C/install, which installs bootblocks on floppy discs
3523 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3524 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3525 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3526 # OS/2's system install, which has a completely different semantic
3527 # ./install, which can be erroneously created by make from ./install.sh.
3528 # Reject install programs that cannot install multiple files.
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3530 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3531 if test -z "$INSTALL"; then
3532 if ${ac_cv_path_install+:} false; then :
3533 $as_echo_n "(cached) " >&6
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3539 test -z "$as_dir" && as_dir=.
3540 # Account for people who put trailing slashes in PATH elements.
3541 case $as_dir/ in #((
3542 ./ | .// | /[cC]/* | \
3543 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3544 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3547 # OSF1 and SCO ODT 3.0 have their own names for install.
3548 # Don't use installbsd from OSF since it installs stuff as root
3550 for ac_prog in ginstall scoinst install; do
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3553 if test $ac_prog = install &&
3554 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3555 # AIX install. It has an incompatible calling convention.
3557 elif test $ac_prog = install &&
3558 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3559 # program-specific install script used by HP pwplus--don't use.
3562 rm -rf conftest.one conftest.two conftest.dir
3563 echo one > conftest.one
3564 echo two > conftest.two
3566 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3567 test -s conftest.one && test -s conftest.two &&
3568 test -s conftest.dir/conftest.one &&
3569 test -s conftest.dir/conftest.two
3571 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3584 rm -rf conftest.one conftest.two conftest.dir
3587 if test "${ac_cv_path_install+set}" = set; then
3588 INSTALL=$ac_cv_path_install
3590 # As a last resort, use the slow shell script. Don't cache a
3591 # value for INSTALL within a source directory, because that will
3592 # break other packages using the cache if that directory is
3593 # removed, or if the value is a relative name.
3594 INSTALL=$ac_install_sh
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3598 $as_echo "$INSTALL" >&6; }
3600 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3601 # It thinks the first close brace ends the variable substitution.
3602 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3604 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3606 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3608 test "$program_prefix" != NONE &&
3609 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3610 # Use a double $ so make ignores it.
3611 test "$program_suffix" != NONE &&
3612 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3613 # Double any \ or $.
3614 # By default was `s,x,x', remove it if useless.
3615 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3616 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3618 # expand $ac_aux_dir to an absolute path
3619 am_aux_dir=`cd $ac_aux_dir && pwd`
3621 if test x"${MISSING+set}" != xset; then
3624 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3626 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3629 # Use eval to expand $SHELL
3630 if eval "$MISSING --run true"; then
3631 am_missing_run="$MISSING --run "
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3635 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3638 if test x"${install_sh}" != xset; then
3641 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3643 install_sh="\${SHELL} $am_aux_dir/install-sh"
3647 # Installed binaries are usually stripped using `strip' when the user
3648 # run `make install-strip'. However `strip' might not be the right
3649 # tool to use in cross-compilation environments, therefore Automake
3650 # will honor the `STRIP' environment variable to overrule this program.
3651 if test "$cross_compiling" != no; then
3652 if test -n "$ac_tool_prefix"; then
3653 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3654 set dummy ${ac_tool_prefix}strip; ac_word=$2
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3656 $as_echo_n "checking for $ac_word... " >&6; }
3657 if ${ac_cv_prog_STRIP+:} false; then :
3658 $as_echo_n "(cached) " >&6
3660 if test -n "$STRIP"; then
3661 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 test -z "$as_dir" && as_dir=.
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3670 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3680 STRIP=$ac_cv_prog_STRIP
3681 if test -n "$STRIP"; then
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3683 $as_echo "$STRIP" >&6; }
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3686 $as_echo "no" >&6; }
3691 if test -z "$ac_cv_prog_STRIP"; then
3693 # Extract the first word of "strip", so it can be a program name with args.
3694 set dummy strip; ac_word=$2
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3696 $as_echo_n "checking for $ac_word... " >&6; }
3697 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3698 $as_echo_n "(cached) " >&6
3700 if test -n "$ac_ct_STRIP"; then
3701 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 test -z "$as_dir" && as_dir=.
3708 for ac_exec_ext in '' $ac_executable_extensions; do
3709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3710 ac_cv_prog_ac_ct_STRIP="strip"
3711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3720 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3721 if test -n "$ac_ct_STRIP"; then
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3723 $as_echo "$ac_ct_STRIP" >&6; }
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3726 $as_echo "no" >&6; }
3729 if test "x$ac_ct_STRIP" = x; then
3732 case $cross_compiling:$ac_tool_warned in
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3736 ac_tool_warned=yes ;;
3741 STRIP="$ac_cv_prog_STRIP"
3745 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3748 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3749 if test -z "$MKDIR_P"; then
3750 if ${ac_cv_path_mkdir+:} false; then :
3751 $as_echo_n "(cached) " >&6
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3757 test -z "$as_dir" && as_dir=.
3758 for ac_prog in mkdir gmkdir; do
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3761 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3762 'mkdir (GNU coreutils) '* | \
3763 'mkdir (coreutils) '* | \
3764 'mkdir (fileutils) '4.1*)
3765 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3775 test -d ./--version && rmdir ./--version
3776 if test "${ac_cv_path_mkdir+set}" = set; then
3777 MKDIR_P="$ac_cv_path_mkdir -p"
3779 # As a last resort, use the slow shell script. Don't cache a
3780 # value for MKDIR_P within a source directory, because that will
3781 # break other packages using the cache if that directory is
3782 # removed, or if the value is a relative name.
3783 MKDIR_P="$ac_install_sh -d"
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3787 $as_echo "$MKDIR_P" >&6; }
3791 [\\/$]* | ?:[\\/]*) ;;
3792 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3795 for ac_prog in gawk mawk nawk awk
3797 # Extract the first word of "$ac_prog", so it can be a program name with args.
3798 set dummy $ac_prog; ac_word=$2
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800 $as_echo_n "checking for $ac_word... " >&6; }
3801 if ${ac_cv_prog_AWK+:} false; then :
3802 $as_echo_n "(cached) " >&6
3804 if test -n "$AWK"; then
3805 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3814 ac_cv_prog_AWK="$ac_prog"
3815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3825 if test -n "$AWK"; then
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3827 $as_echo "$AWK" >&6; }
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830 $as_echo "no" >&6; }
3834 test -n "$AWK" && break
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3838 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3840 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3841 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3842 $as_echo_n "(cached) " >&6
3844 cat >conftest.make <<\_ACEOF
3847 @echo '@@@%%%=$(MAKE)=@@@%%%'
3849 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3850 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3852 eval ac_cv_prog_make_${ac_make}_set=yes;;
3854 eval ac_cv_prog_make_${ac_make}_set=no;;
3858 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3860 $as_echo "yes" >&6; }
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3864 $as_echo "no" >&6; }
3865 SET_MAKE="MAKE=${MAKE-make}"
3868 rm -rf .tst 2>/dev/null
3869 mkdir .tst 2>/dev/null
3870 if test -d .tst; then
3875 rmdir .tst 2>/dev/null
3877 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3878 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3879 # is not polluted with repeated "-I."
3880 am__isrc=' -I$(srcdir)'
3881 # test to see if srcdir already configured
3882 if test -f $srcdir/config.status; then
3883 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3887 # test whether we have cygpath
3888 if test -z "$CYGPATH_W"; then
3889 if (cygpath --version) >/dev/null 2>/dev/null; then
3890 CYGPATH_W='cygpath -w'
3897 # Define the identity of the package.
3898 PACKAGE=$PACKAGE_NAME
3899 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3902 # Some tools Automake needs.
3904 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3907 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3910 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3913 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3916 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3918 # We need awk for the "check" target. The system "awk" is bad on
3920 # Always define AMTAR for backward compatibility.
3922 AMTAR=${AMTAR-"${am_missing_run}tar"}
3924 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3931 # Enable support for silent build rules
3932 # Check whether --enable-silent-rules was given.
3933 if test "${enable_silent_rules+set}" = set; then :
3934 enableval=$enable_silent_rules;
3937 case $enable_silent_rules in
3938 yes) AM_DEFAULT_VERBOSITY=0;;
3939 no) AM_DEFAULT_VERBOSITY=1;;
3940 *) AM_DEFAULT_VERBOSITY=0;;
3945 MAGICK_LIB_VERSION="0x"
3946 if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3947 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3949 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3950 if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3951 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3953 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3954 if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3955 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3957 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3960 # Definition used to define MagickLibVersionText in version.h
3961 MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3964 # Definition used to define MagickLibVersionNumber in version.h
3965 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3968 # Regenerate config.status if ChangeLog or version.sh is updated.
3969 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3975 MAGICK_CPPFLAGS=$CPPFLAGS_USER
3976 MAGICK_PCFLAGS=$CPPFLAGS_USER
3982 # Evaluate shell variable equivalents to Makefile directory variables
3984 if test "x$prefix" = xNONE; then
3985 prefix=$ac_default_prefix
3987 # Let make expand exec_prefix.
3988 if test "x$exec_prefix" = xNONE; then
3989 exec_prefix='${prefix}'
3993 eval "eval PREFIX_DIR=${prefix}"
3995 eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3997 eval "eval BIN_DIR=$bindir"
3999 eval "eval SBIN_DIR=$sbindir"
4001 eval "eval LIBEXEC_DIR=$libexecdir"
4003 eval "eval DATA_DIR=$datadir"
4005 eval "eval DOC_DIR=$docdir"
4007 eval "eval SYSCONF_DIR=$sysconfdir"
4009 eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4011 eval "eval LOCALSTATE_DIR=$localstatedir"
4013 eval "eval LIB_DIR=$libdir"
4015 eval "eval INCLUDE_DIR=$includedir"
4017 eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4019 eval "eval INFO_DIR=$infodir"
4021 eval "eval MAN_DIR=$mandir"
4024 # Get full paths to source and build directories
4025 srcdirfull="`cd $srcdir && pwd`"
4029 # Compute variables useful for running uninstalled software.
4031 MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4032 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4033 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4034 MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4036 case "${build_os}" in
4038 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4039 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4040 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4041 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4045 case "${host_os}" in
4058 # Enable OS features.
4060 DEPDIR="${am__leading_dot}deps"
4062 ac_config_commands="$ac_config_commands depfiles"
4065 am_make=${MAKE-make}
4066 cat > confinc << 'END'
4068 @echo this is the am__doit target
4071 # If we don't find an include directive, just comment out the code.
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4073 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4077 # First try GNU make style include.
4078 echo "include confinc" > confmf
4079 # Ignore all kinds of additional output from `make'.
4080 case `$am_make -s -f confmf 2> /dev/null` in #(
4081 *the\ am__doit\ target*)
4087 # Now try BSD make style include.
4088 if test "$am__include" = "#"; then
4089 echo '.include "confinc"' > confmf
4090 case `$am_make -s -f confmf 2> /dev/null` in #(
4091 *the\ am__doit\ target*)
4092 am__include=.include
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4101 $as_echo "$_am_result" >&6; }
4102 rm -f confinc confmf
4104 # Check whether --enable-dependency-tracking was given.
4105 if test "${enable_dependency_tracking+set}" = set; then :
4106 enableval=$enable_dependency_tracking;
4109 if test "x$enable_dependency_tracking" != xno; then
4110 am_depcomp="$ac_aux_dir/depcomp"
4113 if test "x$enable_dependency_tracking" != xno; then
4123 ac_cpp='$CPP $CPPFLAGS'
4124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4127 if test -n "$ac_tool_prefix"; then
4128 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4129 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4131 $as_echo_n "checking for $ac_word... " >&6; }
4132 if ${ac_cv_prog_CC+:} false; then :
4133 $as_echo_n "(cached) " >&6
4135 if test -n "$CC"; then
4136 ac_cv_prog_CC="$CC" # Let the user override the test.
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 test -z "$as_dir" && as_dir=.
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4145 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4156 if test -n "$CC"; then
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4158 $as_echo "$CC" >&6; }
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4161 $as_echo "no" >&6; }
4166 if test -z "$ac_cv_prog_CC"; then
4168 # Extract the first word of "gcc", so it can be a program name with args.
4169 set dummy gcc; ac_word=$2
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171 $as_echo_n "checking for $ac_word... " >&6; }
4172 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4173 $as_echo_n "(cached) " >&6
4175 if test -n "$ac_ct_CC"; then
4176 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4182 test -z "$as_dir" && as_dir=.
4183 for ac_exec_ext in '' $ac_executable_extensions; do
4184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4185 ac_cv_prog_ac_ct_CC="gcc"
4186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4195 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4196 if test -n "$ac_ct_CC"; then
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4198 $as_echo "$ac_ct_CC" >&6; }
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201 $as_echo "no" >&6; }
4204 if test "x$ac_ct_CC" = x; then
4207 case $cross_compiling:$ac_tool_warned in
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4211 ac_tool_warned=yes ;;
4219 if test -z "$CC"; then
4220 if test -n "$ac_tool_prefix"; then
4221 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4222 set dummy ${ac_tool_prefix}cc; ac_word=$2
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4224 $as_echo_n "checking for $ac_word... " >&6; }
4225 if ${ac_cv_prog_CC+:} false; then :
4226 $as_echo_n "(cached) " >&6
4228 if test -n "$CC"; then
4229 ac_cv_prog_CC="$CC" # Let the user override the test.
4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 test -z "$as_dir" && as_dir=.
4236 for ac_exec_ext in '' $ac_executable_extensions; do
4237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4238 ac_cv_prog_CC="${ac_tool_prefix}cc"
4239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4249 if test -n "$CC"; then
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4251 $as_echo "$CC" >&6; }
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254 $as_echo "no" >&6; }
4260 if test -z "$CC"; then
4261 # Extract the first word of "cc", so it can be a program name with args.
4262 set dummy cc; 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.
4272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 test -z "$as_dir" && as_dir=.
4277 for ac_exec_ext in '' $ac_executable_extensions; do
4278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4279 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4280 ac_prog_rejected=yes
4284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 if test $ac_prog_rejected = yes; then
4292 # We found a bogon in the path, so make sure we never use it.
4293 set dummy $ac_cv_prog_CC
4295 if test $# != 0; then
4296 # We chose a different compiler from the bogus one.
4297 # However, it has the same basename, so the bogon will be chosen
4298 # first if we set CC to just the basename; use the full file name.
4300 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4306 if test -n "$CC"; then
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4308 $as_echo "$CC" >&6; }
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4311 $as_echo "no" >&6; }
4316 if test -z "$CC"; then
4317 if test -n "$ac_tool_prefix"; then
4318 for ac_prog in cl.exe
4320 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4321 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4323 $as_echo_n "checking for $ac_word... " >&6; }
4324 if ${ac_cv_prog_CC+:} false; then :
4325 $as_echo_n "(cached) " >&6
4327 if test -n "$CC"; then
4328 ac_cv_prog_CC="$CC" # Let the user override the test.
4330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4334 test -z "$as_dir" && as_dir=.
4335 for ac_exec_ext in '' $ac_executable_extensions; do
4336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4337 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4348 if test -n "$CC"; then
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4350 $as_echo "$CC" >&6; }
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4353 $as_echo "no" >&6; }
4357 test -n "$CC" && break
4360 if test -z "$CC"; then
4362 for ac_prog in cl.exe
4364 # Extract the first word of "$ac_prog", so it can be a program name with args.
4365 set dummy $ac_prog; ac_word=$2
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4367 $as_echo_n "checking for $ac_word... " >&6; }
4368 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4369 $as_echo_n "(cached) " >&6
4371 if test -n "$ac_ct_CC"; then
4372 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4378 test -z "$as_dir" && as_dir=.
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4381 ac_cv_prog_ac_ct_CC="$ac_prog"
4382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4392 if test -n "$ac_ct_CC"; then
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4394 $as_echo "$ac_ct_CC" >&6; }
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4397 $as_echo "no" >&6; }
4401 test -n "$ac_ct_CC" && break
4404 if test "x$ac_ct_CC" = x; then
4407 case $cross_compiling:$ac_tool_warned in
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4411 ac_tool_warned=yes ;;
4420 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4421 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4422 as_fn_error $? "no acceptable C compiler found in \$PATH
4423 See \`config.log' for more details" "$LINENO" 5; }
4425 # Provide some information about the compiler.
4426 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4429 for ac_option in --version -v -V -qversion; do
4430 { { ac_try="$ac_compiler $ac_option >&5"
4432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4433 *) ac_try_echo=$ac_try;;
4435 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4436 $as_echo "$ac_try_echo"; } >&5
4437 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4439 if test -s conftest.err; then
4441 ... rest of stderr output deleted ...
4442 10q' conftest.err >conftest.er1
4443 cat conftest.er1 >&5
4445 rm -f conftest.er1 conftest.err
4446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4447 test $ac_status = 0; }
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4461 ac_clean_files_save=$ac_clean_files
4462 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4463 # Try to create an executable without -o first, disregard a.out.
4464 # It will help us diagnose broken compilers, and finding out an intuition
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4467 $as_echo_n "checking whether the C compiler works... " >&6; }
4468 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4470 # The possible output files:
4471 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4474 for ac_file in $ac_files
4477 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4478 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4483 if { { ac_try="$ac_link_default"
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489 $as_echo "$ac_try_echo"; } >&5
4490 (eval "$ac_link_default") 2>&5
4492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493 test $ac_status = 0; }; then :
4494 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4495 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4496 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4497 # so that the user can short-circuit this test for compilers unknown to
4499 for ac_file in $ac_files ''
4501 test -f "$ac_file" || continue
4503 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4506 # We found the default executable, but exeext='' is most
4510 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4512 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4514 # We set ac_cv_exeext here because the later test for it is not
4515 # safe: cross compilers may not add the suffix if given an `-o'
4516 # argument, so we may need to know it at that point already.
4517 # Even if this section looks crufty: it has the advantage of
4524 test "$ac_cv_exeext" = no && ac_cv_exeext=
4529 if test -z "$ac_file"; then :
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4531 $as_echo "no" >&6; }
4532 $as_echo "$as_me: failed program was:" >&5
4533 sed 's/^/| /' conftest.$ac_ext >&5
4535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4537 as_fn_error 77 "C compiler cannot create executables
4538 See \`config.log' for more details" "$LINENO" 5; }
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4541 $as_echo "yes" >&6; }
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4544 $as_echo_n "checking for C compiler default output file name... " >&6; }
4545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4546 $as_echo "$ac_file" >&6; }
4547 ac_exeext=$ac_cv_exeext
4549 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4550 ac_clean_files=$ac_clean_files_save
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4552 $as_echo_n "checking for suffix of executables... " >&6; }
4553 if { { ac_try="$ac_link"
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4559 $as_echo "$ac_try_echo"; } >&5
4560 (eval "$ac_link") 2>&5
4562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4563 test $ac_status = 0; }; then :
4564 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4565 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4566 # work properly (i.e., refer to `conftest.exe'), while it won't with
4568 for ac_file in conftest.exe conftest conftest.*; do
4569 test -f "$ac_file" || continue
4571 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4572 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4578 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4580 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4581 See \`config.log' for more details" "$LINENO" 5; }
4583 rm -f conftest conftest$ac_cv_exeext
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4585 $as_echo "$ac_cv_exeext" >&6; }
4587 rm -f conftest.$ac_ext
4588 EXEEXT=$ac_cv_exeext
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591 /* end confdefs.h. */
4596 FILE *f = fopen ("conftest.out", "w");
4597 return ferror (f) || fclose (f) != 0;
4603 ac_clean_files="$ac_clean_files conftest.out"
4604 # Check that the compiler produces executables we can run. If not, either
4605 # the compiler is broken, or we cross compile.
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4607 $as_echo_n "checking whether we are cross compiling... " >&6; }
4608 if test "$cross_compiling" != yes; then
4609 { { ac_try="$ac_link"
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4614 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4615 $as_echo "$ac_try_echo"; } >&5
4616 (eval "$ac_link") 2>&5
4618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4619 test $ac_status = 0; }
4620 if { ac_try='./conftest$ac_cv_exeext'
4621 { { case "(($ac_try" in
4622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4626 $as_echo "$ac_try_echo"; } >&5
4627 (eval "$ac_try") 2>&5
4629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630 test $ac_status = 0; }; }; then
4633 if test "$cross_compiling" = maybe; then
4636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4638 as_fn_error $? "cannot run C compiled programs.
4639 If you meant to cross compile, use \`--host'.
4640 See \`config.log' for more details" "$LINENO" 5; }
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4645 $as_echo "$cross_compiling" >&6; }
4647 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4648 ac_clean_files=$ac_clean_files_save
4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4650 $as_echo_n "checking for suffix of object files... " >&6; }
4651 if ${ac_cv_objext+:} false; then :
4652 $as_echo_n "(cached) " >&6
4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4655 /* end confdefs.h. */
4665 rm -f conftest.o conftest.obj
4666 if { { ac_try="$ac_compile"
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4672 $as_echo "$ac_try_echo"; } >&5
4673 (eval "$ac_compile") 2>&5
4675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4676 test $ac_status = 0; }; then :
4677 for ac_file in conftest.o conftest.obj conftest.*; do
4678 test -f "$ac_file" || continue;
4680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4681 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4686 $as_echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4691 as_fn_error $? "cannot compute suffix of object files: cannot compile
4692 See \`config.log' for more details" "$LINENO" 5; }
4694 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4697 $as_echo "$ac_cv_objext" >&6; }
4698 OBJEXT=$ac_cv_objext
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4701 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4702 if ${ac_cv_c_compiler_gnu+:} false; then :
4703 $as_echo_n "(cached) " >&6
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4719 if ac_fn_c_try_compile "$LINENO"; then :
4724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4725 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4729 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4730 if test $ac_compiler_gnu = yes; then
4735 ac_test_CFLAGS=${CFLAGS+set}
4736 ac_save_CFLAGS=$CFLAGS
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4738 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4739 if ${ac_cv_prog_cc_g+:} false; then :
4740 $as_echo_n "(cached) " >&6
4742 ac_save_c_werror_flag=$ac_c_werror_flag
4743 ac_c_werror_flag=yes
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4757 if ac_fn_c_try_compile "$LINENO"; then :
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4772 if ac_fn_c_try_compile "$LINENO"; then :
4775 ac_c_werror_flag=$ac_save_c_werror_flag
4777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4778 /* end confdefs.h. */
4788 if ac_fn_c_try_compile "$LINENO"; then :
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4796 ac_c_werror_flag=$ac_save_c_werror_flag
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4799 $as_echo "$ac_cv_prog_cc_g" >&6; }
4800 if test "$ac_test_CFLAGS" = set; then
4801 CFLAGS=$ac_save_CFLAGS
4802 elif test $ac_cv_prog_cc_g = yes; then
4803 if test "$GCC" = yes; then
4809 if test "$GCC" = yes; then
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4816 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4817 if ${ac_cv_prog_cc_c89+:} false; then :
4818 $as_echo_n "(cached) " >&6
4820 ac_cv_prog_cc_c89=no
4822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4823 /* end confdefs.h. */
4826 #include <sys/types.h>
4827 #include <sys/stat.h>
4828 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4829 struct buf { int x; };
4830 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4831 static char *e (p, i)
4837 static char *f (char * (*g) (char **, int), char **p, ...)
4842 s = g (p, va_arg (v,int));
4847 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4848 function prototypes and stuff, but not '\xHH' hex character constants.
4849 These don't provoke an error unfortunately, instead are silently treated
4850 as 'x'. The following induces an error, until -std is added to get
4851 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4852 array size at least. It's necessary to write '\x00'==0 to get something
4853 that's true only with -std. */
4854 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4856 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4857 inside strings and character constants. */
4859 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4861 int test (int i, double x);
4862 struct s1 {int (*f) (int a);};
4863 struct s2 {int (*f) (double a);};
4864 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4870 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4875 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4876 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4878 CC="$ac_save_CC $ac_arg"
4879 if ac_fn_c_try_compile "$LINENO"; then :
4880 ac_cv_prog_cc_c89=$ac_arg
4882 rm -f core conftest.err conftest.$ac_objext
4883 test "x$ac_cv_prog_cc_c89" != "xno" && break
4885 rm -f conftest.$ac_ext
4890 case "x$ac_cv_prog_cc_c89" in
4892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4893 $as_echo "none needed" >&6; } ;;
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4896 $as_echo "unsupported" >&6; } ;;
4898 CC="$CC $ac_cv_prog_cc_c89"
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4900 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4902 if test "x$ac_cv_prog_cc_c89" != xno; then :
4907 ac_cpp='$CPP $CPPFLAGS'
4908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4912 depcc="$CC" am_compiler_list=
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4915 $as_echo_n "checking dependency style of $depcc... " >&6; }
4916 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4917 $as_echo_n "(cached) " >&6
4919 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4920 # We make a subdir and do the tests there. Otherwise we can end up
4921 # making bogus files that we don't know about and never remove. For
4922 # instance it was reported that on HP-UX the gcc test will end up
4923 # making a dummy file named `D' -- because `-MD' means `put the output
4926 # Copy depcomp to subdir because otherwise we won't find it if we're
4927 # using a relative directory.
4928 cp "$am_depcomp" conftest.dir
4930 # We will build objects and dependencies in a subdirectory because
4931 # it helps to detect inapplicable dependency modes. For instance
4932 # both Tru64's cc and ICC support -MD to output dependencies as a
4933 # side effect of compilation, but ICC will put the dependencies in
4934 # the current directory while Tru64 will put them in the object
4938 am_cv_CC_dependencies_compiler_type=none
4939 if test "$am_compiler_list" = ""; then
4940 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4943 case " $depcc " in #(
4944 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4947 for depmode in $am_compiler_list; do
4948 # Setup a source with many dependencies, because some compilers
4949 # like to wrap large dependency lists on column 80 (with \), and
4950 # we should not choose a depcomp mode which is confused by this.
4952 # We need to recreate these files for each test, as the compiler may
4953 # overwrite some of them when testing with obscure command lines.
4954 # This happens at least with the AIX C compiler.
4956 for i in 1 2 3 4 5 6; do
4957 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4958 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4959 # Solaris 8's {/usr,}/bin/sh.
4960 touch sub/conftst$i.h
4962 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4964 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4965 # mode. It turns out that the SunPro C++ compiler does not properly
4966 # handle `-M -o', and we need to detect this. Also, some Intel
4967 # versions had trouble with output in subdirs
4968 am__obj=sub/conftest.${OBJEXT-o}
4969 am__minus_obj="-o $am__obj"
4972 # This depmode causes a compiler race in universal mode.
4973 test "$am__universal" = false || continue
4976 # after this tag, mechanisms are not by side-effect, so they'll
4977 # only be used when explicitly requested
4978 if test "x$enable_dependency_tracking" = xyes; then
4984 msvisualcpp | msvcmsys)
4985 # This compiler won't grok `-c -o', but also, the minuso test has
4986 # not run yet. These depmodes are late enough in the game, and
4987 # so weak that their functioning should not be impacted.
4988 am__obj=conftest.${OBJEXT-o}
4993 if depmode=$depmode \
4994 source=sub/conftest.c object=$am__obj \
4995 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4996 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4997 >/dev/null 2>conftest.err &&
4998 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4999 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5000 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5001 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5002 # icc doesn't choke on unknown options, it will just issue warnings
5003 # or remarks (even with -Werror). So we grep stderr for any message
5004 # that says an option was ignored or not supported.
5005 # When given -MP, icc 7.0 and 7.1 complain thusly:
5006 # icc: Command line warning: ignoring option '-M'; no argument required
5007 # The diagnosis changed in icc 8.0:
5008 # icc: Command line remark: option '-MP' not supported
5009 if (grep 'ignoring option' conftest.err ||
5010 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5011 am_cv_CC_dependencies_compiler_type=$depmode
5020 am_cv_CC_dependencies_compiler_type=none
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5025 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5026 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5029 test "x$enable_dependency_tracking" != xno \
5030 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5032 am__fastdepCC_FALSE='#'
5034 am__fastdepCC_TRUE='#'
5035 am__fastdepCC_FALSE=
5041 ac_cpp='$CPP $CPPFLAGS'
5042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5046 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5047 # On Suns, sometimes $CPP names a directory.
5048 if test -n "$CPP" && test -d "$CPP"; then
5051 if test -z "$CPP"; then
5052 if ${ac_cv_prog_CPP+:} false; then :
5053 $as_echo_n "(cached) " >&6
5055 # Double quotes because CPP needs to be expanded
5056 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5059 for ac_c_preproc_warn_flag in '' yes
5061 # Use a header file that comes with gcc, so configuring glibc
5062 # with a fresh cross-compiler works.
5063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5064 # <limits.h> exists even on freestanding compilers.
5065 # On the NeXT, cc -E runs the code through the compiler's parser,
5066 # not just through cpp. "Syntax error" is here to catch this case.
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5070 # include <limits.h>
5072 # include <assert.h>
5076 if ac_fn_c_try_cpp "$LINENO"; then :
5079 # Broken: fails on valid input.
5082 rm -f conftest.err conftest.i conftest.$ac_ext
5084 # OK, works on sane cases. Now check whether nonexistent headers
5085 # can be detected and how.
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5088 #include <ac_nonexistent.h>
5090 if ac_fn_c_try_cpp "$LINENO"; then :
5091 # Broken: success on invalid input.
5094 # Passes both tests.
5098 rm -f conftest.err conftest.i conftest.$ac_ext
5101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5102 rm -f conftest.i conftest.err conftest.$ac_ext
5103 if $ac_preproc_ok; then :
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5116 $as_echo "$CPP" >&6; }
5118 for ac_c_preproc_warn_flag in '' yes
5120 # Use a header file that comes with gcc, so configuring glibc
5121 # with a fresh cross-compiler works.
5122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5123 # <limits.h> exists even on freestanding compilers.
5124 # On the NeXT, cc -E runs the code through the compiler's parser,
5125 # not just through cpp. "Syntax error" is here to catch this case.
5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h. */
5129 # include <limits.h>
5131 # include <assert.h>
5135 if ac_fn_c_try_cpp "$LINENO"; then :
5138 # Broken: fails on valid input.
5141 rm -f conftest.err conftest.i conftest.$ac_ext
5143 # OK, works on sane cases. Now check whether nonexistent headers
5144 # can be detected and how.
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5147 #include <ac_nonexistent.h>
5149 if ac_fn_c_try_cpp "$LINENO"; then :
5150 # Broken: success on invalid input.
5153 # Passes both tests.
5157 rm -f conftest.err conftest.i conftest.$ac_ext
5160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5161 rm -f conftest.i conftest.err conftest.$ac_ext
5162 if $ac_preproc_ok; then :
5165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5167 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5168 See \`config.log' for more details" "$LINENO" 5; }
5172 ac_cpp='$CPP $CPPFLAGS'
5173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5179 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5180 if ${ac_cv_path_GREP+:} false; then :
5181 $as_echo_n "(cached) " >&6
5183 if test -z "$GREP"; then
5184 ac_path_GREP_found=false
5185 # Loop through the user's path and test for each of PROGNAME-LIST
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5190 test -z "$as_dir" && as_dir=.
5191 for ac_prog in grep ggrep; do
5192 for ac_exec_ext in '' $ac_executable_extensions; do
5193 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5194 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5195 # Check for GNU ac_path_GREP and select it if it is found.
5196 # Check for GNU $ac_path_GREP
5197 case `"$ac_path_GREP" --version 2>&1` in
5199 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5202 $as_echo_n 0123456789 >"conftest.in"
5205 cat "conftest.in" "conftest.in" >"conftest.tmp"
5206 mv "conftest.tmp" "conftest.in"
5207 cp "conftest.in" "conftest.nl"
5208 $as_echo 'GREP' >> "conftest.nl"
5209 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5211 as_fn_arith $ac_count + 1 && ac_count=$as_val
5212 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5213 # Best one so far, save it but keep looking for a better one
5214 ac_cv_path_GREP="$ac_path_GREP"
5215 ac_path_GREP_max=$ac_count
5217 # 10*(2^10) chars as input seems more than enough
5218 test $ac_count -gt 10 && break
5220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5223 $ac_path_GREP_found && break 3
5228 if test -z "$ac_cv_path_GREP"; then
5229 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5232 ac_cv_path_GREP=$GREP
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5237 $as_echo "$ac_cv_path_GREP" >&6; }
5238 GREP="$ac_cv_path_GREP"
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5242 $as_echo_n "checking for egrep... " >&6; }
5243 if ${ac_cv_path_EGREP+:} false; then :
5244 $as_echo_n "(cached) " >&6
5246 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5247 then ac_cv_path_EGREP="$GREP -E"
5249 if test -z "$EGREP"; then
5250 ac_path_EGREP_found=false
5251 # Loop through the user's path and test for each of PROGNAME-LIST
5252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5256 test -z "$as_dir" && as_dir=.
5257 for ac_prog in egrep; do
5258 for ac_exec_ext in '' $ac_executable_extensions; do
5259 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5260 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5261 # Check for GNU ac_path_EGREP and select it if it is found.
5262 # Check for GNU $ac_path_EGREP
5263 case `"$ac_path_EGREP" --version 2>&1` in
5265 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5268 $as_echo_n 0123456789 >"conftest.in"
5271 cat "conftest.in" "conftest.in" >"conftest.tmp"
5272 mv "conftest.tmp" "conftest.in"
5273 cp "conftest.in" "conftest.nl"
5274 $as_echo 'EGREP' >> "conftest.nl"
5275 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5276 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5277 as_fn_arith $ac_count + 1 && ac_count=$as_val
5278 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5279 # Best one so far, save it but keep looking for a better one
5280 ac_cv_path_EGREP="$ac_path_EGREP"
5281 ac_path_EGREP_max=$ac_count
5283 # 10*(2^10) chars as input seems more than enough
5284 test $ac_count -gt 10 && break
5286 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5289 $ac_path_EGREP_found && break 3
5294 if test -z "$ac_cv_path_EGREP"; then
5295 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5298 ac_cv_path_EGREP=$EGREP
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5304 $as_echo "$ac_cv_path_EGREP" >&6; }
5305 EGREP="$ac_cv_path_EGREP"
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5309 $as_echo_n "checking for ANSI C header files... " >&6; }
5310 if ${ac_cv_header_stdc+:} false; then :
5311 $as_echo_n "(cached) " >&6
5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5314 /* end confdefs.h. */
5328 if ac_fn_c_try_compile "$LINENO"; then :
5329 ac_cv_header_stdc=yes
5331 ac_cv_header_stdc=no
5333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5335 if test $ac_cv_header_stdc = yes; then
5336 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5343 $EGREP "memchr" >/dev/null 2>&1; then :
5346 ac_cv_header_stdc=no
5352 if test $ac_cv_header_stdc = yes; then
5353 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h. */
5359 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5360 $EGREP "free" >/dev/null 2>&1; then :
5363 ac_cv_header_stdc=no
5369 if test $ac_cv_header_stdc = yes; then
5370 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5371 if test "$cross_compiling" = yes; then :
5374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5378 #if ((' ' & 0x0FF) == 0x020)
5379 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5380 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5382 # define ISLOWER(c) \
5383 (('a' <= (c) && (c) <= 'i') \
5384 || ('j' <= (c) && (c) <= 'r') \
5385 || ('s' <= (c) && (c) <= 'z'))
5386 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5389 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5394 for (i = 0; i < 256; i++)
5395 if (XOR (islower (i), ISLOWER (i))
5396 || toupper (i) != TOUPPER (i))
5401 if ac_fn_c_try_run "$LINENO"; then :
5404 ac_cv_header_stdc=no
5406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5407 conftest.$ac_objext conftest.beam conftest.$ac_ext
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5413 $as_echo "$ac_cv_header_stdc" >&6; }
5414 if test $ac_cv_header_stdc = yes; then
5416 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5420 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5421 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5422 inttypes.h stdint.h unistd.h
5424 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5425 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5427 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5428 cat >>confdefs.h <<_ACEOF
5429 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5438 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5439 if test "x$ac_cv_header_minix_config_h" = xyes; then :
5446 if test "$MINIX" = yes; then
5448 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5451 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5454 $as_echo "#define _MINIX 1" >>confdefs.h
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5460 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5461 if ${ac_cv_safe_to_define___extensions__+:} false; then :
5462 $as_echo_n "(cached) " >&6
5464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5465 /* end confdefs.h. */
5467 # define __EXTENSIONS__ 1
5468 $ac_includes_default
5477 if ac_fn_c_try_compile "$LINENO"; then :
5478 ac_cv_safe_to_define___extensions__=yes
5480 ac_cv_safe_to_define___extensions__=no
5482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5485 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5486 test $ac_cv_safe_to_define___extensions__ = yes &&
5487 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5489 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5491 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5493 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5495 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5499 # Check for programs
5501 ac_cpp='$CPP $CPPFLAGS'
5502 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5503 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5504 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5505 if test -n "$ac_tool_prefix"; then
5506 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5507 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5509 $as_echo_n "checking for $ac_word... " >&6; }
5510 if ${ac_cv_prog_CC+:} false; then :
5511 $as_echo_n "(cached) " >&6
5513 if test -n "$CC"; then
5514 ac_cv_prog_CC="$CC" # Let the user override the test.
5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 test -z "$as_dir" && as_dir=.
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5523 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 if test -n "$CC"; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5536 $as_echo "$CC" >&6; }
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5539 $as_echo "no" >&6; }
5544 if test -z "$ac_cv_prog_CC"; then
5546 # Extract the first word of "gcc", so it can be a program name with args.
5547 set dummy gcc; ac_word=$2
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549 $as_echo_n "checking for $ac_word... " >&6; }
5550 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5551 $as_echo_n "(cached) " >&6
5553 if test -n "$ac_ct_CC"; then
5554 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560 test -z "$as_dir" && as_dir=.
5561 for ac_exec_ext in '' $ac_executable_extensions; do
5562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563 ac_cv_prog_ac_ct_CC="gcc"
5564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5573 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5574 if test -n "$ac_ct_CC"; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5576 $as_echo "$ac_ct_CC" >&6; }
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5579 $as_echo "no" >&6; }
5582 if test "x$ac_ct_CC" = x; then
5585 case $cross_compiling:$ac_tool_warned in
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5589 ac_tool_warned=yes ;;
5597 if test -z "$CC"; then
5598 if test -n "$ac_tool_prefix"; then
5599 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5600 set dummy ${ac_tool_prefix}cc; ac_word=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if ${ac_cv_prog_CC+:} false; then :
5604 $as_echo_n "(cached) " >&6
5606 if test -n "$CC"; then
5607 ac_cv_prog_CC="$CC" # Let the user override the test.
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 test -z "$as_dir" && as_dir=.
5614 for ac_exec_ext in '' $ac_executable_extensions; do
5615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5616 ac_cv_prog_CC="${ac_tool_prefix}cc"
5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627 if test -n "$CC"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5629 $as_echo "$CC" >&6; }
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5638 if test -z "$CC"; then
5639 # Extract the first word of "cc", so it can be a program name with args.
5640 set dummy cc; 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.
5650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5654 test -z "$as_dir" && as_dir=.
5655 for ac_exec_ext in '' $ac_executable_extensions; do
5656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5657 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5658 ac_prog_rejected=yes
5662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5669 if test $ac_prog_rejected = yes; then
5670 # We found a bogon in the path, so make sure we never use it.
5671 set dummy $ac_cv_prog_CC
5673 if test $# != 0; then
5674 # We chose a different compiler from the bogus one.
5675 # However, it has the same basename, so the bogon will be chosen
5676 # first if we set CC to just the basename; use the full file name.
5678 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5684 if test -n "$CC"; then
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5686 $as_echo "$CC" >&6; }
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5689 $as_echo "no" >&6; }
5694 if test -z "$CC"; then
5695 if test -n "$ac_tool_prefix"; then
5696 for ac_prog in cl.exe
5698 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5699 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5701 $as_echo_n "checking for $ac_word... " >&6; }
5702 if ${ac_cv_prog_CC+:} false; then :
5703 $as_echo_n "(cached) " >&6
5705 if test -n "$CC"; then
5706 ac_cv_prog_CC="$CC" # Let the user override the test.
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5715 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5726 if test -n "$CC"; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5728 $as_echo "$CC" >&6; }
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5731 $as_echo "no" >&6; }
5735 test -n "$CC" && break
5738 if test -z "$CC"; then
5740 for ac_prog in cl.exe
5742 # Extract the first word of "$ac_prog", so it can be a program name with args.
5743 set dummy $ac_prog; ac_word=$2
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5745 $as_echo_n "checking for $ac_word... " >&6; }
5746 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5747 $as_echo_n "(cached) " >&6
5749 if test -n "$ac_ct_CC"; then
5750 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5756 test -z "$as_dir" && as_dir=.
5757 for ac_exec_ext in '' $ac_executable_extensions; do
5758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5759 ac_cv_prog_ac_ct_CC="$ac_prog"
5760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5769 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5770 if test -n "$ac_ct_CC"; then
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5772 $as_echo "$ac_ct_CC" >&6; }
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5775 $as_echo "no" >&6; }
5779 test -n "$ac_ct_CC" && break
5782 if test "x$ac_ct_CC" = x; then
5785 case $cross_compiling:$ac_tool_warned in
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5789 ac_tool_warned=yes ;;
5798 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5800 as_fn_error $? "no acceptable C compiler found in \$PATH
5801 See \`config.log' for more details" "$LINENO" 5; }
5803 # Provide some information about the compiler.
5804 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5807 for ac_option in --version -v -V -qversion; do
5808 { { ac_try="$ac_compiler $ac_option >&5"
5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811 *) ac_try_echo=$ac_try;;
5813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5814 $as_echo "$ac_try_echo"; } >&5
5815 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5817 if test -s conftest.err; then
5819 ... rest of stderr output deleted ...
5820 10q' conftest.err >conftest.er1
5821 cat conftest.er1 >&5
5823 rm -f conftest.er1 conftest.err
5824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5825 test $ac_status = 0; }
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5829 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5830 if ${ac_cv_c_compiler_gnu+:} false; then :
5831 $as_echo_n "(cached) " >&6
5833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5834 /* end confdefs.h. */
5847 if ac_fn_c_try_compile "$LINENO"; then :
5852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5853 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5857 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5858 if test $ac_compiler_gnu = yes; then
5863 ac_test_CFLAGS=${CFLAGS+set}
5864 ac_save_CFLAGS=$CFLAGS
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5866 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5867 if ${ac_cv_prog_cc_g+:} false; then :
5868 $as_echo_n "(cached) " >&6
5870 ac_save_c_werror_flag=$ac_c_werror_flag
5871 ac_c_werror_flag=yes
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5885 if ac_fn_c_try_compile "$LINENO"; then :
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5900 if ac_fn_c_try_compile "$LINENO"; then :
5903 ac_c_werror_flag=$ac_save_c_werror_flag
5905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5906 /* end confdefs.h. */
5916 if ac_fn_c_try_compile "$LINENO"; then :
5919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5924 ac_c_werror_flag=$ac_save_c_werror_flag
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5927 $as_echo "$ac_cv_prog_cc_g" >&6; }
5928 if test "$ac_test_CFLAGS" = set; then
5929 CFLAGS=$ac_save_CFLAGS
5930 elif test $ac_cv_prog_cc_g = yes; then
5931 if test "$GCC" = yes; then
5937 if test "$GCC" = yes; then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5944 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5945 if ${ac_cv_prog_cc_c89+:} false; then :
5946 $as_echo_n "(cached) " >&6
5948 ac_cv_prog_cc_c89=no
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5954 #include <sys/types.h>
5955 #include <sys/stat.h>
5956 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5957 struct buf { int x; };
5958 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5959 static char *e (p, i)
5965 static char *f (char * (*g) (char **, int), char **p, ...)
5970 s = g (p, va_arg (v,int));
5975 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5976 function prototypes and stuff, but not '\xHH' hex character constants.
5977 These don't provoke an error unfortunately, instead are silently treated
5978 as 'x'. The following induces an error, until -std is added to get
5979 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5980 array size at least. It's necessary to write '\x00'==0 to get something
5981 that's true only with -std. */
5982 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5984 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5985 inside strings and character constants. */
5987 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5989 int test (int i, double x);
5990 struct s1 {int (*f) (int a);};
5991 struct s2 {int (*f) (double a);};
5992 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5998 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6003 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6004 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6006 CC="$ac_save_CC $ac_arg"
6007 if ac_fn_c_try_compile "$LINENO"; then :
6008 ac_cv_prog_cc_c89=$ac_arg
6010 rm -f core conftest.err conftest.$ac_objext
6011 test "x$ac_cv_prog_cc_c89" != "xno" && break
6013 rm -f conftest.$ac_ext
6018 case "x$ac_cv_prog_cc_c89" in
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6021 $as_echo "none needed" >&6; } ;;
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6024 $as_echo "unsupported" >&6; } ;;
6026 CC="$CC $ac_cv_prog_cc_c89"
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6028 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6030 if test "x$ac_cv_prog_cc_c89" != xno; then :
6035 ac_cpp='$CPP $CPPFLAGS'
6036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6040 depcc="$CC" am_compiler_list=
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6043 $as_echo_n "checking dependency style of $depcc... " >&6; }
6044 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6045 $as_echo_n "(cached) " >&6
6047 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6048 # We make a subdir and do the tests there. Otherwise we can end up
6049 # making bogus files that we don't know about and never remove. For
6050 # instance it was reported that on HP-UX the gcc test will end up
6051 # making a dummy file named `D' -- because `-MD' means `put the output
6054 # Copy depcomp to subdir because otherwise we won't find it if we're
6055 # using a relative directory.
6056 cp "$am_depcomp" conftest.dir
6058 # We will build objects and dependencies in a subdirectory because
6059 # it helps to detect inapplicable dependency modes. For instance
6060 # both Tru64's cc and ICC support -MD to output dependencies as a
6061 # side effect of compilation, but ICC will put the dependencies in
6062 # the current directory while Tru64 will put them in the object
6066 am_cv_CC_dependencies_compiler_type=none
6067 if test "$am_compiler_list" = ""; then
6068 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6071 case " $depcc " in #(
6072 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6075 for depmode in $am_compiler_list; do
6076 # Setup a source with many dependencies, because some compilers
6077 # like to wrap large dependency lists on column 80 (with \), and
6078 # we should not choose a depcomp mode which is confused by this.
6080 # We need to recreate these files for each test, as the compiler may
6081 # overwrite some of them when testing with obscure command lines.
6082 # This happens at least with the AIX C compiler.
6084 for i in 1 2 3 4 5 6; do
6085 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6086 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6087 # Solaris 8's {/usr,}/bin/sh.
6088 touch sub/conftst$i.h
6090 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6092 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6093 # mode. It turns out that the SunPro C++ compiler does not properly
6094 # handle `-M -o', and we need to detect this. Also, some Intel
6095 # versions had trouble with output in subdirs
6096 am__obj=sub/conftest.${OBJEXT-o}
6097 am__minus_obj="-o $am__obj"
6100 # This depmode causes a compiler race in universal mode.
6101 test "$am__universal" = false || continue
6104 # after this tag, mechanisms are not by side-effect, so they'll
6105 # only be used when explicitly requested
6106 if test "x$enable_dependency_tracking" = xyes; then
6112 msvisualcpp | msvcmsys)
6113 # This compiler won't grok `-c -o', but also, the minuso test has
6114 # not run yet. These depmodes are late enough in the game, and
6115 # so weak that their functioning should not be impacted.
6116 am__obj=conftest.${OBJEXT-o}
6121 if depmode=$depmode \
6122 source=sub/conftest.c object=$am__obj \
6123 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6124 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6125 >/dev/null 2>conftest.err &&
6126 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6127 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6128 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6129 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6130 # icc doesn't choke on unknown options, it will just issue warnings
6131 # or remarks (even with -Werror). So we grep stderr for any message
6132 # that says an option was ignored or not supported.
6133 # When given -MP, icc 7.0 and 7.1 complain thusly:
6134 # icc: Command line warning: ignoring option '-M'; no argument required
6135 # The diagnosis changed in icc 8.0:
6136 # icc: Command line remark: option '-MP' not supported
6137 if (grep 'ignoring option' conftest.err ||
6138 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6139 am_cv_CC_dependencies_compiler_type=$depmode
6148 am_cv_CC_dependencies_compiler_type=none
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6153 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6154 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6157 test "x$enable_dependency_tracking" != xno \
6158 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6160 am__fastdepCC_FALSE='#'
6162 am__fastdepCC_TRUE='#'
6163 am__fastdepCC_FALSE=
6168 ac_cpp='$CXXCPP $CPPFLAGS'
6169 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6170 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6171 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6172 if test -z "$CXX"; then
6173 if test -n "$CCC"; then
6176 if test -n "$ac_tool_prefix"; then
6177 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6179 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6180 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6182 $as_echo_n "checking for $ac_word... " >&6; }
6183 if ${ac_cv_prog_CXX+:} false; then :
6184 $as_echo_n "(cached) " >&6
6186 if test -n "$CXX"; then
6187 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6193 test -z "$as_dir" && as_dir=.
6194 for ac_exec_ext in '' $ac_executable_extensions; do
6195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6196 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6207 if test -n "$CXX"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6209 $as_echo "$CXX" >&6; }
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 $as_echo "no" >&6; }
6216 test -n "$CXX" && break
6219 if test -z "$CXX"; then
6221 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6223 # Extract the first word of "$ac_prog", so it can be a program name with args.
6224 set dummy $ac_prog; ac_word=$2
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6226 $as_echo_n "checking for $ac_word... " >&6; }
6227 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6228 $as_echo_n "(cached) " >&6
6230 if test -n "$ac_ct_CXX"; then
6231 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6237 test -z "$as_dir" && as_dir=.
6238 for ac_exec_ext in '' $ac_executable_extensions; do
6239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6240 ac_cv_prog_ac_ct_CXX="$ac_prog"
6241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6251 if test -n "$ac_ct_CXX"; then
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6253 $as_echo "$ac_ct_CXX" >&6; }
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6256 $as_echo "no" >&6; }
6260 test -n "$ac_ct_CXX" && break
6263 if test "x$ac_ct_CXX" = x; then
6266 case $cross_compiling:$ac_tool_warned in
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6270 ac_tool_warned=yes ;;
6278 # Provide some information about the compiler.
6279 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6282 for ac_option in --version -v -V -qversion; do
6283 { { ac_try="$ac_compiler $ac_option >&5"
6285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6286 *) ac_try_echo=$ac_try;;
6288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6289 $as_echo "$ac_try_echo"; } >&5
6290 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6292 if test -s conftest.err; then
6294 ... rest of stderr output deleted ...
6295 10q' conftest.err >conftest.er1
6296 cat conftest.er1 >&5
6298 rm -f conftest.er1 conftest.err
6299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6300 test $ac_status = 0; }
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6304 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6305 if ${ac_cv_cxx_compiler_gnu+:} false; then :
6306 $as_echo_n "(cached) " >&6
6308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6309 /* end confdefs.h. */
6322 if ac_fn_cxx_try_compile "$LINENO"; then :
6327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6328 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6332 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6333 if test $ac_compiler_gnu = yes; then
6338 ac_test_CXXFLAGS=${CXXFLAGS+set}
6339 ac_save_CXXFLAGS=$CXXFLAGS
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6341 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6342 if ${ac_cv_prog_cxx_g+:} false; then :
6343 $as_echo_n "(cached) " >&6
6345 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6346 ac_cxx_werror_flag=yes
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h. */
6360 if ac_fn_cxx_try_compile "$LINENO"; then :
6361 ac_cv_prog_cxx_g=yes
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h. */
6375 if ac_fn_cxx_try_compile "$LINENO"; then :
6378 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6381 /* end confdefs.h. */
6391 if ac_fn_cxx_try_compile "$LINENO"; then :
6392 ac_cv_prog_cxx_g=yes
6394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6399 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6402 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6403 if test "$ac_test_CXXFLAGS" = set; then
6404 CXXFLAGS=$ac_save_CXXFLAGS
6405 elif test $ac_cv_prog_cxx_g = yes; then
6406 if test "$GXX" = yes; then
6412 if test "$GXX" = yes; then
6419 ac_cpp='$CPP $CPPFLAGS'
6420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6424 depcc="$CXX" am_compiler_list=
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6427 $as_echo_n "checking dependency style of $depcc... " >&6; }
6428 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6429 $as_echo_n "(cached) " >&6
6431 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6432 # We make a subdir and do the tests there. Otherwise we can end up
6433 # making bogus files that we don't know about and never remove. For
6434 # instance it was reported that on HP-UX the gcc test will end up
6435 # making a dummy file named `D' -- because `-MD' means `put the output
6438 # Copy depcomp to subdir because otherwise we won't find it if we're
6439 # using a relative directory.
6440 cp "$am_depcomp" conftest.dir
6442 # We will build objects and dependencies in a subdirectory because
6443 # it helps to detect inapplicable dependency modes. For instance
6444 # both Tru64's cc and ICC support -MD to output dependencies as a
6445 # side effect of compilation, but ICC will put the dependencies in
6446 # the current directory while Tru64 will put them in the object
6450 am_cv_CXX_dependencies_compiler_type=none
6451 if test "$am_compiler_list" = ""; then
6452 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6455 case " $depcc " in #(
6456 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6459 for depmode in $am_compiler_list; do
6460 # Setup a source with many dependencies, because some compilers
6461 # like to wrap large dependency lists on column 80 (with \), and
6462 # we should not choose a depcomp mode which is confused by this.
6464 # We need to recreate these files for each test, as the compiler may
6465 # overwrite some of them when testing with obscure command lines.
6466 # This happens at least with the AIX C compiler.
6468 for i in 1 2 3 4 5 6; do
6469 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6470 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6471 # Solaris 8's {/usr,}/bin/sh.
6472 touch sub/conftst$i.h
6474 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6476 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6477 # mode. It turns out that the SunPro C++ compiler does not properly
6478 # handle `-M -o', and we need to detect this. Also, some Intel
6479 # versions had trouble with output in subdirs
6480 am__obj=sub/conftest.${OBJEXT-o}
6481 am__minus_obj="-o $am__obj"
6484 # This depmode causes a compiler race in universal mode.
6485 test "$am__universal" = false || continue
6488 # after this tag, mechanisms are not by side-effect, so they'll
6489 # only be used when explicitly requested
6490 if test "x$enable_dependency_tracking" = xyes; then
6496 msvisualcpp | msvcmsys)
6497 # This compiler won't grok `-c -o', but also, the minuso test has
6498 # not run yet. These depmodes are late enough in the game, and
6499 # so weak that their functioning should not be impacted.
6500 am__obj=conftest.${OBJEXT-o}
6505 if depmode=$depmode \
6506 source=sub/conftest.c object=$am__obj \
6507 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6508 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6509 >/dev/null 2>conftest.err &&
6510 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6511 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6512 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6513 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6514 # icc doesn't choke on unknown options, it will just issue warnings
6515 # or remarks (even with -Werror). So we grep stderr for any message
6516 # that says an option was ignored or not supported.
6517 # When given -MP, icc 7.0 and 7.1 complain thusly:
6518 # icc: Command line warning: ignoring option '-M'; no argument required
6519 # The diagnosis changed in icc 8.0:
6520 # icc: Command line remark: option '-MP' not supported
6521 if (grep 'ignoring option' conftest.err ||
6522 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6523 am_cv_CXX_dependencies_compiler_type=$depmode
6532 am_cv_CXX_dependencies_compiler_type=none
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6537 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6538 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6541 test "x$enable_dependency_tracking" != xno \
6542 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6543 am__fastdepCXX_TRUE=
6544 am__fastdepCXX_FALSE='#'
6546 am__fastdepCXX_TRUE='#'
6547 am__fastdepCXX_FALSE=
6551 case $ac_cv_prog_cc_stdc in #(
6553 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6556 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6557 if ${ac_cv_prog_cc_c99+:} false; then :
6558 $as_echo_n "(cached) " >&6
6560 ac_cv_prog_cc_c99=no
6562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563 /* end confdefs.h. */
6565 #include <stdbool.h>
6570 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6571 #define debug(...) fprintf (stderr, __VA_ARGS__)
6572 #define showlist(...) puts (#__VA_ARGS__)
6573 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6575 test_varargs_macros (void)
6580 debug ("X = %d\n", x);
6581 showlist (The first, second, and third items.);
6582 report (x>y, "x is %d but y is %d", x, y);
6585 // Check long long types.
6586 #define BIG64 18446744073709551615ull
6587 #define BIG32 4294967295ul
6588 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6590 your preprocessor is broken;
6594 your preprocessor is broken;
6596 static long long int bignum = -9223372036854775807LL;
6597 static unsigned long long int ubignum = BIG64;
6599 struct incomplete_array
6607 const wchar_t *name;
6611 typedef const char *ccp;
6614 test_restrict (ccp restrict text)
6616 // See if C++-style comments work.
6617 // Iterate through items via the restricted pointer.
6618 // Also check for declarations in for loops.
6619 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6624 // Check varargs and va_copy.
6626 test_varargs (const char *format, ...)
6629 va_start (args, format);
6631 va_copy (args_copy, args);
6642 str = va_arg (args_copy, const char *);
6645 number = va_arg (args_copy, int);
6648 fnumber = va_arg (args_copy, double);
6663 _Bool success = false;
6666 if (test_restrict ("String literal") == 0)
6668 char *restrict newvar = "Another string";
6671 test_varargs ("s, d' f .", "string", 65, 34.234);
6672 test_varargs_macros ();
6674 // Check flexible array members.
6675 struct incomplete_array *ia =
6676 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6678 for (int i = 0; i < ia->datasize; ++i)
6679 ia->data[i] = i * 1.234;
6681 // Check named initializers.
6682 struct named_init ni = {
6684 .name = L"Test wide string",
6685 .average = 543.34343,
6690 int dynamic_array[ni.number];
6691 dynamic_array[ni.number - 1] = 543;
6693 // work around unused variable warnings
6694 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6695 || dynamic_array[ni.number - 1] != 543);
6701 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6703 CC="$ac_save_CC $ac_arg"
6704 if ac_fn_c_try_compile "$LINENO"; then :
6705 ac_cv_prog_cc_c99=$ac_arg
6707 rm -f core conftest.err conftest.$ac_objext
6708 test "x$ac_cv_prog_cc_c99" != "xno" && break
6710 rm -f conftest.$ac_ext
6715 case "x$ac_cv_prog_cc_c99" in
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6718 $as_echo "none needed" >&6; } ;;
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6721 $as_echo "unsupported" >&6; } ;;
6723 CC="$CC $ac_cv_prog_cc_c99"
6724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6725 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6727 if test "x$ac_cv_prog_cc_c99" != xno; then :
6728 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6731 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6732 if ${ac_cv_prog_cc_c89+:} false; then :
6733 $as_echo_n "(cached) " >&6
6735 ac_cv_prog_cc_c89=no
6737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6738 /* end confdefs.h. */
6741 #include <sys/types.h>
6742 #include <sys/stat.h>
6743 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6744 struct buf { int x; };
6745 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6746 static char *e (p, i)
6752 static char *f (char * (*g) (char **, int), char **p, ...)
6757 s = g (p, va_arg (v,int));
6762 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6763 function prototypes and stuff, but not '\xHH' hex character constants.
6764 These don't provoke an error unfortunately, instead are silently treated
6765 as 'x'. The following induces an error, until -std is added to get
6766 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6767 array size at least. It's necessary to write '\x00'==0 to get something
6768 that's true only with -std. */
6769 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6771 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6772 inside strings and character constants. */
6774 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6776 int test (int i, double x);
6777 struct s1 {int (*f) (int a);};
6778 struct s2 {int (*f) (double a);};
6779 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6785 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6790 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6791 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6793 CC="$ac_save_CC $ac_arg"
6794 if ac_fn_c_try_compile "$LINENO"; then :
6795 ac_cv_prog_cc_c89=$ac_arg
6797 rm -f core conftest.err conftest.$ac_objext
6798 test "x$ac_cv_prog_cc_c89" != "xno" && break
6800 rm -f conftest.$ac_ext
6805 case "x$ac_cv_prog_cc_c89" in
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6808 $as_echo "none needed" >&6; } ;;
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6811 $as_echo "unsupported" >&6; } ;;
6813 CC="$CC $ac_cv_prog_cc_c89"
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6815 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6817 if test "x$ac_cv_prog_cc_c89" != xno; then :
6818 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6820 ac_cv_prog_cc_stdc=no
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6827 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6828 if ${ac_cv_prog_cc_stdc+:} false; then :
6829 $as_echo_n "(cached) " >&6
6832 case $ac_cv_prog_cc_stdc in #(
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6835 $as_echo "unsupported" >&6; } ;; #(
6837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6838 $as_echo "none needed" >&6; } ;; #(
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6841 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6845 ac_cpp='$CPP $CPPFLAGS'
6846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6850 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6851 # On Suns, sometimes $CPP names a directory.
6852 if test -n "$CPP" && test -d "$CPP"; then
6855 if test -z "$CPP"; then
6856 if ${ac_cv_prog_CPP+:} false; then :
6857 $as_echo_n "(cached) " >&6
6859 # Double quotes because CPP needs to be expanded
6860 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6863 for ac_c_preproc_warn_flag in '' yes
6865 # Use a header file that comes with gcc, so configuring glibc
6866 # with a fresh cross-compiler works.
6867 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6868 # <limits.h> exists even on freestanding compilers.
6869 # On the NeXT, cc -E runs the code through the compiler's parser,
6870 # not just through cpp. "Syntax error" is here to catch this case.
6871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6872 /* end confdefs.h. */
6874 # include <limits.h>
6876 # include <assert.h>
6880 if ac_fn_c_try_cpp "$LINENO"; then :
6883 # Broken: fails on valid input.
6886 rm -f conftest.err conftest.i conftest.$ac_ext
6888 # OK, works on sane cases. Now check whether nonexistent headers
6889 # can be detected and how.
6890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6891 /* end confdefs.h. */
6892 #include <ac_nonexistent.h>
6894 if ac_fn_c_try_cpp "$LINENO"; then :
6895 # Broken: success on invalid input.
6898 # Passes both tests.
6902 rm -f conftest.err conftest.i conftest.$ac_ext
6905 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6906 rm -f conftest.i conftest.err conftest.$ac_ext
6907 if $ac_preproc_ok; then :
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6920 $as_echo "$CPP" >&6; }
6922 for ac_c_preproc_warn_flag in '' yes
6924 # Use a header file that comes with gcc, so configuring glibc
6925 # with a fresh cross-compiler works.
6926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6927 # <limits.h> exists even on freestanding compilers.
6928 # On the NeXT, cc -E runs the code through the compiler's parser,
6929 # not just through cpp. "Syntax error" is here to catch this case.
6930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6931 /* end confdefs.h. */
6933 # include <limits.h>
6935 # include <assert.h>
6939 if ac_fn_c_try_cpp "$LINENO"; then :
6942 # Broken: fails on valid input.
6945 rm -f conftest.err conftest.i conftest.$ac_ext
6947 # OK, works on sane cases. Now check whether nonexistent headers
6948 # can be detected and how.
6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h. */
6951 #include <ac_nonexistent.h>
6953 if ac_fn_c_try_cpp "$LINENO"; then :
6954 # Broken: success on invalid input.
6957 # Passes both tests.
6961 rm -f conftest.err conftest.i conftest.$ac_ext
6964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6965 rm -f conftest.i conftest.err conftest.$ac_ext
6966 if $ac_preproc_ok; then :
6969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6971 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6972 See \`config.log' for more details" "$LINENO" 5; }
6976 ac_cpp='$CPP $CPPFLAGS'
6977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6982 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6983 if ${ac_cv_path_SED+:} false; then :
6984 $as_echo_n "(cached) " >&6
6986 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6987 for ac_i in 1 2 3 4 5 6 7; do
6988 ac_script="$ac_script$as_nl$ac_script"
6990 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6991 { ac_script=; unset ac_script;}
6992 if test -z "$SED"; then
6993 ac_path_SED_found=false
6994 # Loop through the user's path and test for each of PROGNAME-LIST
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 test -z "$as_dir" && as_dir=.
7000 for ac_prog in sed gsed; do
7001 for ac_exec_ext in '' $ac_executable_extensions; do
7002 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7003 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7004 # Check for GNU ac_path_SED and select it if it is found.
7005 # Check for GNU $ac_path_SED
7006 case `"$ac_path_SED" --version 2>&1` in
7008 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7011 $as_echo_n 0123456789 >"conftest.in"
7014 cat "conftest.in" "conftest.in" >"conftest.tmp"
7015 mv "conftest.tmp" "conftest.in"
7016 cp "conftest.in" "conftest.nl"
7017 $as_echo '' >> "conftest.nl"
7018 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7019 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7020 as_fn_arith $ac_count + 1 && ac_count=$as_val
7021 if test $ac_count -gt ${ac_path_SED_max-0}; then
7022 # Best one so far, save it but keep looking for a better one
7023 ac_cv_path_SED="$ac_path_SED"
7024 ac_path_SED_max=$ac_count
7026 # 10*(2^10) chars as input seems more than enough
7027 test $ac_count -gt 10 && break
7029 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7032 $ac_path_SED_found && break 3
7037 if test -z "$ac_cv_path_SED"; then
7038 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7046 $as_echo "$ac_cv_path_SED" >&6; }
7047 SED="$ac_cv_path_SED"
7050 test -z "$SED" && SED=sed
7051 Xsed="$SED -e 1s/^X//"
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7064 $as_echo_n "checking for fgrep... " >&6; }
7065 if ${ac_cv_path_FGREP+:} false; then :
7066 $as_echo_n "(cached) " >&6
7068 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7069 then ac_cv_path_FGREP="$GREP -F"
7071 if test -z "$FGREP"; then
7072 ac_path_FGREP_found=false
7073 # Loop through the user's path and test for each of PROGNAME-LIST
7074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7075 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7078 test -z "$as_dir" && as_dir=.
7079 for ac_prog in fgrep; do
7080 for ac_exec_ext in '' $ac_executable_extensions; do
7081 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7082 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7083 # Check for GNU ac_path_FGREP and select it if it is found.
7084 # Check for GNU $ac_path_FGREP
7085 case `"$ac_path_FGREP" --version 2>&1` in
7087 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7090 $as_echo_n 0123456789 >"conftest.in"
7093 cat "conftest.in" "conftest.in" >"conftest.tmp"
7094 mv "conftest.tmp" "conftest.in"
7095 cp "conftest.in" "conftest.nl"
7096 $as_echo 'FGREP' >> "conftest.nl"
7097 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7098 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7099 as_fn_arith $ac_count + 1 && ac_count=$as_val
7100 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7101 # Best one so far, save it but keep looking for a better one
7102 ac_cv_path_FGREP="$ac_path_FGREP"
7103 ac_path_FGREP_max=$ac_count
7105 # 10*(2^10) chars as input seems more than enough
7106 test $ac_count -gt 10 && break
7108 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7111 $ac_path_FGREP_found && break 3
7116 if test -z "$ac_cv_path_FGREP"; then
7117 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7120 ac_cv_path_FGREP=$FGREP
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7126 $as_echo "$ac_cv_path_FGREP" >&6; }
7127 FGREP="$ac_cv_path_FGREP"
7130 test -z "$GREP" && GREP=grep
7148 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7149 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7150 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7153 $as_echo_n "checking how to print strings... " >&6; }
7154 # Test print first, because it will be a builtin if present.
7155 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7156 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7158 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7161 # Use this function as a fallback that always works.
7162 func_fallback_echo ()
7164 eval 'cat <<_LTECHO_EOF
7168 ECHO='func_fallback_echo'
7171 # func_echo_all arg...
7172 # Invoke $ECHO with all args, space-separated.
7179 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7180 $as_echo "printf" >&6; } ;;
7181 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7182 $as_echo "print -r" >&6; } ;;
7183 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7184 $as_echo "cat" >&6; } ;;
7202 # Check whether --with-gnu-ld was given.
7203 if test "${with_gnu_ld+set}" = set; then :
7204 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7210 if test "$GCC" = yes; then
7211 # Check if gcc -print-prog-name=ld gives a path.
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7213 $as_echo_n "checking for ld used by $CC... " >&6; }
7216 # gcc leaves a trailing carriage return which upsets mingw
7217 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7219 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7222 # Accept absolute paths.
7224 re_direlt='/[^/][^/]*/\.\./'
7225 # Canonicalize the pathname of ld
7226 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7227 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7228 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7230 test -z "$LD" && LD="$ac_prog"
7233 # If it fails, then pretend we aren't using GCC.
7237 # If it is relative, then search for the first ld in PATH.
7241 elif test "$with_gnu_ld" = yes; then
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7243 $as_echo_n "checking for GNU ld... " >&6; }
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7246 $as_echo_n "checking for non-GNU ld... " >&6; }
7248 if ${lt_cv_path_LD+:} false; then :
7249 $as_echo_n "(cached) " >&6
7251 if test -z "$LD"; then
7252 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7253 for ac_dir in $PATH; do
7255 test -z "$ac_dir" && ac_dir=.
7256 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7257 lt_cv_path_LD="$ac_dir/$ac_prog"
7258 # Check to see if the program is GNU ld. I'd rather use --version,
7259 # but apparently some variants of GNU ld only accept -v.
7260 # Break only if it was the GNU/non-GNU ld that we prefer.
7261 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7262 *GNU* | *'with BFD'*)
7263 test "$with_gnu_ld" != no && break
7266 test "$with_gnu_ld" != yes && break
7273 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7278 if test -n "$LD"; then
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7280 $as_echo "$LD" >&6; }
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283 $as_echo "no" >&6; }
7285 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7287 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7288 if ${lt_cv_prog_gnu_ld+:} false; then :
7289 $as_echo_n "(cached) " >&6
7291 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7292 case `$LD -v 2>&1 </dev/null` in
7293 *GNU* | *'with BFD'*)
7294 lt_cv_prog_gnu_ld=yes
7297 lt_cv_prog_gnu_ld=no
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7302 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7303 with_gnu_ld=$lt_cv_prog_gnu_ld
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7315 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7316 if ${ac_cv_prog_cc_c99+:} false; then :
7317 $as_echo_n "(cached) " >&6
7319 ac_cv_prog_cc_c99=no
7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h. */
7324 #include <stdbool.h>
7329 // Check varargs macros. These examples are taken from C99 6.10.3.5.
7330 #define debug(...) fprintf (stderr, __VA_ARGS__)
7331 #define showlist(...) puts (#__VA_ARGS__)
7332 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7334 test_varargs_macros (void)
7339 debug ("X = %d\n", x);
7340 showlist (The first, second, and third items.);
7341 report (x>y, "x is %d but y is %d", x, y);
7344 // Check long long types.
7345 #define BIG64 18446744073709551615ull
7346 #define BIG32 4294967295ul
7347 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7349 your preprocessor is broken;
7353 your preprocessor is broken;
7355 static long long int bignum = -9223372036854775807LL;
7356 static unsigned long long int ubignum = BIG64;
7358 struct incomplete_array
7366 const wchar_t *name;
7370 typedef const char *ccp;
7373 test_restrict (ccp restrict text)
7375 // See if C++-style comments work.
7376 // Iterate through items via the restricted pointer.
7377 // Also check for declarations in for loops.
7378 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7383 // Check varargs and va_copy.
7385 test_varargs (const char *format, ...)
7388 va_start (args, format);
7390 va_copy (args_copy, args);
7401 str = va_arg (args_copy, const char *);
7404 number = va_arg (args_copy, int);
7407 fnumber = va_arg (args_copy, double);
7422 _Bool success = false;
7425 if (test_restrict ("String literal") == 0)
7427 char *restrict newvar = "Another string";
7430 test_varargs ("s, d' f .", "string", 65, 34.234);
7431 test_varargs_macros ();
7433 // Check flexible array members.
7434 struct incomplete_array *ia =
7435 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7437 for (int i = 0; i < ia->datasize; ++i)
7438 ia->data[i] = i * 1.234;
7440 // Check named initializers.
7441 struct named_init ni = {
7443 .name = L"Test wide string",
7444 .average = 543.34343,
7449 int dynamic_array[ni.number];
7450 dynamic_array[ni.number - 1] = 543;
7452 // work around unused variable warnings
7453 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7454 || dynamic_array[ni.number - 1] != 543);
7460 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7462 CC="$ac_save_CC $ac_arg"
7463 if ac_fn_c_try_compile "$LINENO"; then :
7464 ac_cv_prog_cc_c99=$ac_arg
7466 rm -f core conftest.err conftest.$ac_objext
7467 test "x$ac_cv_prog_cc_c99" != "xno" && break
7469 rm -f conftest.$ac_ext
7474 case "x$ac_cv_prog_cc_c99" in
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7477 $as_echo "none needed" >&6; } ;;
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7480 $as_echo "unsupported" >&6; } ;;
7482 CC="$CC $ac_cv_prog_cc_c99"
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7484 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7486 if test "x$ac_cv_prog_cc_c99" != xno; then :
7491 if test "x$CC" != xcc; then
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7493 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7496 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7498 set dummy $CC; ac_cc=`$as_echo "$2" |
7499 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7500 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
7501 $as_echo_n "(cached) " >&6
7503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7504 /* end confdefs.h. */
7514 # Make sure it works both with $CC and with simple cc.
7515 # We do the test twice because some compilers refuse to overwrite an
7516 # existing .o file with -o, though they will create one.
7517 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7519 if { { case "(($ac_try" in
7520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7521 *) ac_try_echo=$ac_try;;
7523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7524 $as_echo "$ac_try_echo"; } >&5
7525 (eval "$ac_try") 2>&5
7527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7528 test $ac_status = 0; } &&
7529 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7531 *) ac_try_echo=$ac_try;;
7533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7534 $as_echo "$ac_try_echo"; } >&5
7535 (eval "$ac_try") 2>&5
7537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7538 test $ac_status = 0; };
7540 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7541 if test "x$CC" != xcc; then
7542 # Test first that cc exists at all.
7543 if { ac_try='cc -c conftest.$ac_ext >&5'
7544 { { case "(($ac_try" in
7545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546 *) ac_try_echo=$ac_try;;
7548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7549 $as_echo "$ac_try_echo"; } >&5
7550 (eval "$ac_try") 2>&5
7552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7553 test $ac_status = 0; }; }; then
7554 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7556 if { { case "(($ac_try" in
7557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7558 *) ac_try_echo=$ac_try;;
7560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7561 $as_echo "$ac_try_echo"; } >&5
7562 (eval "$ac_try") 2>&5
7564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7565 test $ac_status = 0; } &&
7566 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7568 *) ac_try_echo=$ac_try;;
7570 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7571 $as_echo "$ac_try_echo"; } >&5
7572 (eval "$ac_try") 2>&5
7574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7575 test $ac_status = 0; };
7580 # cc exists but doesn't like -o.
7581 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7586 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7588 rm -f core conftest*
7591 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7593 $as_echo "yes" >&6; }
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596 $as_echo "no" >&6; }
7598 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7602 # FIXME: we rely on the cache variable name because
7603 # there is no other way.
7605 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7606 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7607 if test "$am_t" != yes; then
7608 # Losing compiler, so override with the script.
7609 # FIXME: It is wrong to rewrite CC.
7610 # But if we don't then we get into trouble of one sort or another.
7611 # A longer-term fix would be to have automake use am__CC in this case,
7612 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7613 CC="$am_aux_dir/compile $CC"
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7618 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7619 if ${ac_cv_cflags_warn_all+:} false; then :
7620 $as_echo_n "(cached) " >&6
7622 ac_cv_cflags_warn_all="no, unknown"
7624 ac_cpp='$CPP $CPPFLAGS'
7625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7629 ac_save_CFLAGS="$CFLAGS"
7630 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" #
7631 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633 /* end confdefs.h. */
7643 if ac_fn_c_try_compile "$LINENO"; then :
7644 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7648 CFLAGS="$ac_save_CFLAGS"
7650 ac_cpp='$CPP $CPPFLAGS'
7651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7658 $as_echo "$ac_cv_cflags_warn_all" >&6; }
7659 case ".$ac_cv_cflags_warn_all" in
7664 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7665 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7666 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7669 test $ac_status = 0; }
7670 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7671 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7674 test $ac_status = 0; }
7675 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7682 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7684 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7685 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
7686 $as_echo_n "(cached) " >&6
7688 cat >conftest.make <<\_ACEOF
7691 @echo '@@@%%%=$(MAKE)=@@@%%%'
7693 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7694 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7696 eval ac_cv_prog_make_${ac_make}_set=yes;;
7698 eval ac_cv_prog_make_${ac_make}_set=no;;
7702 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7704 $as_echo "yes" >&6; }
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7709 SET_MAKE="MAKE=${MAKE-make}"
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7713 $as_echo_n "checking whether ln -s works... " >&6; }
7715 if test "$LN_S" = "ln -s"; then
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7717 $as_echo "yes" >&6; }
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7720 $as_echo "no, using $LN_S" >&6; }
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7724 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
7726 # Check whether --with-dmalloc was given.
7727 if test "${with_dmalloc+set}" = set; then :
7728 withval=$with_dmalloc; if test "$withval" = yes; then
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7730 $as_echo "yes" >&6; }
7732 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7734 LIBS="$LIBS -ldmalloc"
7735 LDFLAGS="$LDFLAGS -g"
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7738 $as_echo "no" >&6; }
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7742 $as_echo "no" >&6; }
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7748 $as_echo_n "checking for __attribute__... " >&6; }
7749 if ${ax_cv___attribute__+:} false; then :
7750 $as_echo_n "(cached) " >&6
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h. */
7755 static void foo(void) __attribute__ ((unused));
7769 if ac_fn_c_try_compile "$LINENO"; then :
7770 ax_cv___attribute__=yes
7772 ax_cv___attribute__=no
7775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7779 $as_echo "$ax_cv___attribute__" >&6; }
7780 if test "$ax_cv___attribute__" = "yes"; then
7782 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7788 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7789 if test -n "$ac_tool_prefix"; then
7790 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7791 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7795 $as_echo_n "(cached) " >&6
7799 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7809 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7820 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7821 if test -n "$PKG_CONFIG"; then
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7823 $as_echo "$PKG_CONFIG" >&6; }
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7826 $as_echo "no" >&6; }
7831 if test -z "$ac_cv_path_PKG_CONFIG"; then
7832 ac_pt_PKG_CONFIG=$PKG_CONFIG
7833 # Extract the first word of "pkg-config", so it can be a program name with args.
7834 set dummy pkg-config; ac_word=$2
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7836 $as_echo_n "checking for $ac_word... " >&6; }
7837 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7838 $as_echo_n "(cached) " >&6
7840 case $ac_pt_PKG_CONFIG in
7842 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849 test -z "$as_dir" && as_dir=.
7850 for ac_exec_ext in '' $ac_executable_extensions; do
7851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7852 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7863 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7864 if test -n "$ac_pt_PKG_CONFIG"; then
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7866 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7869 $as_echo "no" >&6; }
7872 if test "x$ac_pt_PKG_CONFIG" = x; then
7875 case $cross_compiling:$ac_tool_warned in
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7879 ac_tool_warned=yes ;;
7881 PKG_CONFIG=$ac_pt_PKG_CONFIG
7884 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7888 if test -n "$PKG_CONFIG"; then
7889 _pkg_min_version=0.9.0
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7891 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7892 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7894 $as_echo "yes" >&6; }
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897 $as_echo "no" >&6; }
7904 # Enable run-time checking.
7906 # Check whether --enable-bounds-checking was given.
7907 if test "${enable_bounds_checking+set}" = set; then :
7908 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7910 enable_bounds_checking='no'
7914 if test "$enable_bounds_checking" = yes; then
7916 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7926 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7927 if ${ax_cv_c_compiler_ms+:} false; then :
7928 $as_echo_n "(cached) " >&6
7930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7931 /* end confdefs.h. */
7944 if ac_fn_c_try_compile "$LINENO"; then :
7949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950 ax_cv_c_compiler_ms=$ax_compiler_ms
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7954 $as_echo "$ax_cv_c_compiler_ms" >&6; }
7957 native_win32_build='no'
7959 case "${host_os}" in
7962 GDI32_LIBS='-lgdi32'
7965 native_win32_build='yes'
7966 GDI32_LIBS='-lgdi32'
7969 if test "${GDI32_LIBS}x" != 'x'; then
7971 $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
7975 if test "${GDI32_LIBS}x" != 'x' ; then
7976 WINGDI32_DELEGATE_TRUE=
7977 WINGDI32_DELEGATE_FALSE='#'
7979 WINGDI32_DELEGATE_TRUE='#'
7980 WINGDI32_DELEGATE_FALSE=
7983 if test "${native_win32_build}" = 'yes' ; then
7984 WIN32_NATIVE_BUILD_TRUE=
7985 WIN32_NATIVE_BUILD_FALSE='#'
7987 WIN32_NATIVE_BUILD_TRUE='#'
7988 WIN32_NATIVE_BUILD_FALSE=
7991 if test "${cygwin_build}" = 'yes' ; then
7993 CYGWIN_BUILD_FALSE='#'
7995 CYGWIN_BUILD_TRUE='#'
7999 if test "x${CC}" = 'xcl.exe' ; then
8008 WinPathScript="${srcdirfull}/winpath.sh"
8012 # Compiler flags tweaks
8014 if test "${GCC}" != "yes"; then
8017 # aCC: HP ANSI C++ B3910B A.03.34
8018 CFLAGS="${CFLAGS} -Wp,-H30000"
8019 if test -n "${CXXFLAGS}"; then
8022 CXXFLAGS="${CXXFLAGS} -AA"
8026 # Compaq alphaev68-dec-osf5.1 compiler
8027 if test -n "${CXXFLAGS}"; then
8028 CXXFLAGS='-std strict_ansi -noimplicit_include'
8030 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8035 # Check for lazy-loading.
8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
8037 $as_echo_n "checking for linker lazyload option... " >&6; }
8038 if ${im_cv_ld_lazyload+:} false; then :
8039 $as_echo_n "(cached) " >&6
8042 im_cv_ld_lazyload='none'
8044 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8045 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8046 im_cv_ld_lazyload='-Wl,-zlazyload'
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
8053 $as_echo "$im_cv_ld_lazyload" >&6; }
8054 if test "${im_cv_ld_lazyload}" != 'none' ; then
8055 if test -z "${LDFLAGS}" ; then
8056 LDFLAGS="${im_cv_ld_lazyload}"
8058 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8063 *darwin* | *-macos10*)
8064 # Check whether --enable-osx-universal-binary was given.
8065 if test "${enable_osx_universal_binary+set}" = set; then :
8066 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8068 build_osxuniversal=no
8072 if test "${build_osxuniversal}" != no ; then
8073 if test "$enable_dependency_tracking" != no ; then
8074 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
8075 Please re-run configure with these options:
8076 --disable-dependency-tracking --enable-osx-universal-binary
8079 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8080 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8081 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8086 # Enable support for threads
8088 # Check whether --with-threads was given.
8089 if test "${with_threads+set}" = set; then :
8090 withval=$with_threads; with_threads=$withval
8097 if test "$with_threads" != 'no'; then
8102 ac_cpp='$CPP $CPPFLAGS'
8103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8109 # We used to check for pthread.h first, but this fails if pthread.h
8110 # requires special compiler flags (e.g. on True64 or Sequent).
8111 # It gets checked for in the link test anyway.
8113 # First of all, check if the user has set any of the PTHREAD_LIBS,
8114 # etcetera environment variables, and if threads linking works using
8116 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8117 save_CFLAGS="$CFLAGS"
8118 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8120 LIBS="$PTHREAD_LIBS $LIBS"
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8122 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8124 /* end confdefs.h. */
8126 /* Override any GCC internal prototype to avoid an error.
8127 Use char because int might match the return type of a GCC
8128 builtin and then its argument prototype would still apply. */
8132 char pthread_join ();
8136 return pthread_join ();
8141 if ac_fn_c_try_link "$LINENO"; then :
8144 rm -f core conftest.err conftest.$ac_objext \
8145 conftest$ac_exeext conftest.$ac_ext
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8147 $as_echo "$ax_pthread_ok" >&6; }
8148 if test x"$ax_pthread_ok" = xno; then
8153 CFLAGS="$save_CFLAGS"
8156 # We must check for the threads library under a number of different
8157 # names; the ordering is very important because some systems
8158 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8159 # libraries is broken (non-POSIX).
8161 # Create a list of thread flags to try. Items starting with a "-" are
8162 # C compiler flags, and other items are library names, except for "none"
8163 # which indicates that we try without any flags at all, and "pthread-config"
8164 # which is a program returning the flags for the Pth emulation library.
8166 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8168 # The ordering *is* (sometimes) important. Some notes on the
8169 # individual items follow:
8171 # pthreads: AIX (must check this before -lpthread)
8172 # none: in case threads are in libc; should be tried before -Kthread and
8173 # other compiler flags to prevent continual compiler warnings
8174 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8175 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8176 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8177 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8178 # -pthreads: Solaris/gcc
8179 # -mthreads: Mingw32/gcc, Lynx/gcc
8180 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8181 # doesn't hurt to check since this sometimes defines pthreads too;
8182 # also defines -D_REENTRANT)
8183 # ... -mt is also the pthreads flag for HP/aCC
8184 # pthread: Linux, etcetera
8185 # --thread-safe: KAI C++
8186 # pthread-config: use pthread-config program (for GNU Pth library)
8188 case "${host_cpu}-${host_os}" in
8191 # On Solaris (at least, for some versions), libc contains stubbed
8192 # (non-functional) versions of the pthreads routines, so link-based
8193 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8194 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8195 # a function called by this macro, so we could check for that, but
8196 # who knows whether they'll stub that too in a future libc.) So,
8197 # we'll just look for -pthreads and -lpthread first:
8199 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8203 ax_pthread_flags="-pthread $ax_pthread_flags"
8207 if test x"$ax_pthread_ok" = xno; then
8208 for flag in $ax_pthread_flags; do
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8213 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8218 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8219 PTHREAD_CFLAGS="$flag"
8223 # Extract the first word of "pthread-config", so it can be a program name with args.
8224 set dummy pthread-config; ac_word=$2
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8226 $as_echo_n "checking for $ac_word... " >&6; }
8227 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8228 $as_echo_n "(cached) " >&6
8230 if test -n "$ax_pthread_config"; then
8231 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8237 test -z "$as_dir" && as_dir=.
8238 for ac_exec_ext in '' $ac_executable_extensions; do
8239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8240 ac_cv_prog_ax_pthread_config="yes"
8241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8248 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8251 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8252 if test -n "$ax_pthread_config"; then
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8254 $as_echo "$ax_pthread_config" >&6; }
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257 $as_echo "no" >&6; }
8261 if test x"$ax_pthread_config" = xno; then continue; fi
8262 PTHREAD_CFLAGS="`pthread-config --cflags`"
8263 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8268 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8269 PTHREAD_LIBS="-l$flag"
8274 save_CFLAGS="$CFLAGS"
8275 LIBS="$PTHREAD_LIBS $LIBS"
8276 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8278 # Check for various functions. We must include pthread.h,
8279 # since some functions may be macros. (On the Sequent, we
8280 # need a special flag -Kthread to make this header compile.)
8281 # We check for pthread_join because it is in -lpthread on IRIX
8282 # while pthread_create is in libc. We check for pthread_attr_init
8283 # due to DEC craziness with -lpthreads. We check for
8284 # pthread_cleanup_push because it is one of the few pthread
8285 # functions on Solaris that doesn't have a non-functional libc stub.
8286 # We try pthread_create on general principles.
8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8289 #include <pthread.h>
8290 static void routine(void* a) {a=0;}
8291 static void* start_routine(void* a) {return a;}
8295 pthread_t th; pthread_attr_t attr;
8296 pthread_create(&th,0,start_routine,0);
8297 pthread_join(th, 0);
8298 pthread_attr_init(&attr);
8299 pthread_cleanup_push(routine, 0);
8300 pthread_cleanup_pop(0);
8305 if ac_fn_c_try_link "$LINENO"; then :
8308 rm -f core conftest.err conftest.$ac_objext \
8309 conftest$ac_exeext conftest.$ac_ext
8312 CFLAGS="$save_CFLAGS"
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8315 $as_echo "$ax_pthread_ok" >&6; }
8316 if test "x$ax_pthread_ok" = xyes; then
8325 # Various other checks:
8326 if test "x$ax_pthread_ok" = xyes; then
8328 LIBS="$PTHREAD_LIBS $LIBS"
8329 save_CFLAGS="$CFLAGS"
8330 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8332 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8334 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8336 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8338 /* end confdefs.h. */
8339 #include <pthread.h>
8343 int attr=$attr; return attr;
8348 if ac_fn_c_try_link "$LINENO"; then :
8349 attr_name=$attr; break
8351 rm -f core conftest.err conftest.$ac_objext \
8352 conftest$ac_exeext conftest.$ac_ext
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8355 $as_echo "$attr_name" >&6; }
8356 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8358 cat >>confdefs.h <<_ACEOF
8359 #define PTHREAD_CREATE_JOINABLE $attr_name
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8365 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8367 case "${host_cpu}-${host_os}" in
8368 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8369 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8372 $as_echo "${flag}" >&6; }
8373 if test "x$flag" != xno; then
8374 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8378 CFLAGS="$save_CFLAGS"
8380 # More AIX lossage: must compile with xlc_r or cc_r
8381 if test x"$GCC" != xyes; then
8382 for ac_prog in xlc_r cc_r
8384 # Extract the first word of "$ac_prog", so it can be a program name with args.
8385 set dummy $ac_prog; ac_word=$2
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8387 $as_echo_n "checking for $ac_word... " >&6; }
8388 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8389 $as_echo_n "(cached) " >&6
8391 if test -n "$PTHREAD_CC"; then
8392 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8398 test -z "$as_dir" && as_dir=.
8399 for ac_exec_ext in '' $ac_executable_extensions; do
8400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8401 ac_cv_prog_PTHREAD_CC="$ac_prog"
8402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8411 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8412 if test -n "$PTHREAD_CC"; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8414 $as_echo "$PTHREAD_CC" >&6; }
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8417 $as_echo "no" >&6; }
8421 test -n "$PTHREAD_CC" && break
8423 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8436 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8437 if test x"$ax_pthread_ok" = xyes; then
8439 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8447 ac_cpp='$CPP $CPPFLAGS'
8448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8453 if test "$ax_pthread_ok" = yes; then
8455 DEF_THREAD="$PTHREAD_CFLAGS"
8456 CFLAGS="$CFLAGS $DEF_THREAD"
8457 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8458 if test "$CC" != "$PTHREAD_CC"; then
8459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
8460 $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8464 $as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8469 # Enable support for OpenMP
8470 if test "$have_threads" != 'yes'; then
8471 ac_cv_prog_c_openmp=unsupported
8475 # Check whether --enable-openmp was given.
8476 if test "${enable_openmp+set}" = set; then :
8477 enableval=$enable_openmp;
8480 if test "$enable_openmp" != no; then
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
8482 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
8483 if ${ac_cv_prog_c_openmp+:} false; then :
8484 $as_echo_n "(cached) " >&6
8486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8487 /* end confdefs.h. */
8493 int main () { return omp_get_num_threads (); }
8496 if ac_fn_c_try_link "$LINENO"; then :
8497 ac_cv_prog_c_openmp='none needed'
8499 ac_cv_prog_c_openmp='unsupported'
8500 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8501 ac_save_CFLAGS=$CFLAGS
8502 CFLAGS="$CFLAGS $ac_option"
8503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8510 int main () { return omp_get_num_threads (); }
8513 if ac_fn_c_try_link "$LINENO"; then :
8514 ac_cv_prog_c_openmp=$ac_option
8516 rm -f core conftest.err conftest.$ac_objext \
8517 conftest$ac_exeext conftest.$ac_ext
8518 CFLAGS=$ac_save_CFLAGS
8519 if test "$ac_cv_prog_c_openmp" != unsupported; then
8524 rm -f core conftest.err conftest.$ac_objext \
8525 conftest$ac_exeext conftest.$ac_ext
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
8528 $as_echo "$ac_cv_prog_c_openmp" >&6; }
8529 case $ac_cv_prog_c_openmp in #(
8530 "none needed" | unsupported)
8533 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
8538 CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8539 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8541 if test "$enable_openmp" != no; then
8542 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8543 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8547 # Enable support for OpenCL
8552 ac_cpp='$CPP $CPPFLAGS'
8553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8559 # We used to check for pthread.h first, but this fails if pthread.h
8560 # requires special compiler flags (e.g. on True64 or Sequent).
8561 # It gets checked for in the link test anyway.
8563 # First of all, check if the user has set any of the PTHREAD_LIBS,
8564 # etcetera environment variables, and if threads linking works using
8566 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8567 save_CFLAGS="$CFLAGS"
8568 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8570 LIBS="$PTHREAD_LIBS $LIBS"
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8572 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8574 /* end confdefs.h. */
8576 /* Override any GCC internal prototype to avoid an error.
8577 Use char because int might match the return type of a GCC
8578 builtin and then its argument prototype would still apply. */
8582 char pthread_join ();
8586 return pthread_join ();
8591 if ac_fn_c_try_link "$LINENO"; then :
8594 rm -f core conftest.err conftest.$ac_objext \
8595 conftest$ac_exeext conftest.$ac_ext
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8597 $as_echo "$ax_pthread_ok" >&6; }
8598 if test x"$ax_pthread_ok" = xno; then
8603 CFLAGS="$save_CFLAGS"
8606 # We must check for the threads library under a number of different
8607 # names; the ordering is very important because some systems
8608 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8609 # libraries is broken (non-POSIX).
8611 # Create a list of thread flags to try. Items starting with a "-" are
8612 # C compiler flags, and other items are library names, except for "none"
8613 # which indicates that we try without any flags at all, and "pthread-config"
8614 # which is a program returning the flags for the Pth emulation library.
8616 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8618 # The ordering *is* (sometimes) important. Some notes on the
8619 # individual items follow:
8621 # pthreads: AIX (must check this before -lpthread)
8622 # none: in case threads are in libc; should be tried before -Kthread and
8623 # other compiler flags to prevent continual compiler warnings
8624 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8625 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8626 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8627 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8628 # -pthreads: Solaris/gcc
8629 # -mthreads: Mingw32/gcc, Lynx/gcc
8630 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8631 # doesn't hurt to check since this sometimes defines pthreads too;
8632 # also defines -D_REENTRANT)
8633 # ... -mt is also the pthreads flag for HP/aCC
8634 # pthread: Linux, etcetera
8635 # --thread-safe: KAI C++
8636 # pthread-config: use pthread-config program (for GNU Pth library)
8638 case "${host_cpu}-${host_os}" in
8641 # On Solaris (at least, for some versions), libc contains stubbed
8642 # (non-functional) versions of the pthreads routines, so link-based
8643 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8644 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8645 # a function called by this macro, so we could check for that, but
8646 # who knows whether they'll stub that too in a future libc.) So,
8647 # we'll just look for -pthreads and -lpthread first:
8649 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8653 ax_pthread_flags="-pthread $ax_pthread_flags"
8657 if test x"$ax_pthread_ok" = xno; then
8658 for flag in $ax_pthread_flags; do
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8663 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8668 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8669 PTHREAD_CFLAGS="$flag"
8673 # Extract the first word of "pthread-config", so it can be a program name with args.
8674 set dummy pthread-config; ac_word=$2
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8676 $as_echo_n "checking for $ac_word... " >&6; }
8677 if ${ac_cv_prog_ax_pthread_config+:} false; then :
8678 $as_echo_n "(cached) " >&6
8680 if test -n "$ax_pthread_config"; then
8681 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8687 test -z "$as_dir" && as_dir=.
8688 for ac_exec_ext in '' $ac_executable_extensions; do
8689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8690 ac_cv_prog_ax_pthread_config="yes"
8691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8698 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8701 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8702 if test -n "$ax_pthread_config"; then
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8704 $as_echo "$ax_pthread_config" >&6; }
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8707 $as_echo "no" >&6; }
8711 if test x"$ax_pthread_config" = xno; then continue; fi
8712 PTHREAD_CFLAGS="`pthread-config --cflags`"
8713 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8718 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8719 PTHREAD_LIBS="-l$flag"
8724 save_CFLAGS="$CFLAGS"
8725 LIBS="$PTHREAD_LIBS $LIBS"
8726 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8728 # Check for various functions. We must include pthread.h,
8729 # since some functions may be macros. (On the Sequent, we
8730 # need a special flag -Kthread to make this header compile.)
8731 # We check for pthread_join because it is in -lpthread on IRIX
8732 # while pthread_create is in libc. We check for pthread_attr_init
8733 # due to DEC craziness with -lpthreads. We check for
8734 # pthread_cleanup_push because it is one of the few pthread
8735 # functions on Solaris that doesn't have a non-functional libc stub.
8736 # We try pthread_create on general principles.
8737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8738 /* end confdefs.h. */
8739 #include <pthread.h>
8740 static void routine(void* a) {a=0;}
8741 static void* start_routine(void* a) {return a;}
8745 pthread_t th; pthread_attr_t attr;
8746 pthread_create(&th,0,start_routine,0);
8747 pthread_join(th, 0);
8748 pthread_attr_init(&attr);
8749 pthread_cleanup_push(routine, 0);
8750 pthread_cleanup_pop(0);
8755 if ac_fn_c_try_link "$LINENO"; then :
8758 rm -f core conftest.err conftest.$ac_objext \
8759 conftest$ac_exeext conftest.$ac_ext
8762 CFLAGS="$save_CFLAGS"
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8765 $as_echo "$ax_pthread_ok" >&6; }
8766 if test "x$ax_pthread_ok" = xyes; then
8775 # Various other checks:
8776 if test "x$ax_pthread_ok" = xyes; then
8778 LIBS="$PTHREAD_LIBS $LIBS"
8779 save_CFLAGS="$CFLAGS"
8780 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8782 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8784 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8786 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8788 /* end confdefs.h. */
8789 #include <pthread.h>
8793 int attr=$attr; return attr;
8798 if ac_fn_c_try_link "$LINENO"; then :
8799 attr_name=$attr; break
8801 rm -f core conftest.err conftest.$ac_objext \
8802 conftest$ac_exeext conftest.$ac_ext
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8805 $as_echo "$attr_name" >&6; }
8806 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8808 cat >>confdefs.h <<_ACEOF
8809 #define PTHREAD_CREATE_JOINABLE $attr_name
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8815 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8817 case "${host_cpu}-${host_os}" in
8818 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8819 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8822 $as_echo "${flag}" >&6; }
8823 if test "x$flag" != xno; then
8824 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8828 CFLAGS="$save_CFLAGS"
8830 # More AIX lossage: must compile with xlc_r or cc_r
8831 if test x"$GCC" != xyes; then
8832 for ac_prog in xlc_r cc_r
8834 # Extract the first word of "$ac_prog", so it can be a program name with args.
8835 set dummy $ac_prog; ac_word=$2
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8837 $as_echo_n "checking for $ac_word... " >&6; }
8838 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
8839 $as_echo_n "(cached) " >&6
8841 if test -n "$PTHREAD_CC"; then
8842 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8848 test -z "$as_dir" && as_dir=.
8849 for ac_exec_ext in '' $ac_executable_extensions; do
8850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8851 ac_cv_prog_PTHREAD_CC="$ac_prog"
8852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8861 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8862 if test -n "$PTHREAD_CC"; then
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8864 $as_echo "$PTHREAD_CC" >&6; }
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8867 $as_echo "no" >&6; }
8871 test -n "$PTHREAD_CC" && break
8873 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8886 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8887 if test x"$ax_pthread_ok" = xyes; then
8889 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8897 ac_cpp='$CPP $CPPFLAGS'
8898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8904 # Check whether --enable-opencl was given.
8905 if test "${enable_opencl+set}" = set; then :
8906 enableval=$enable_opencl; disable_opencl=$enableval
8908 disable_opencl='yes'
8912 if test "$disable_opencl" = 'yes'; then
8914 ac_cpp='$CPP $CPPFLAGS'
8915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8920 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8921 if ${ax_cv_c_compiler_ms+:} false; then :
8922 $as_echo_n "(cached) " >&6
8924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8925 /* end confdefs.h. */
8938 if ac_fn_c_try_compile "$LINENO"; then :
8943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8944 ax_cv_c_compiler_ms=$ax_compiler_ms
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8948 $as_echo "$ax_cv_c_compiler_ms" >&6; }
8949 if test X$ax_compiler_ms = Xno; then :
8950 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8953 ax_save_CPPFLAGS=$CPPFLAGS
8954 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8955 for ac_header in CL/cl.h OpenCL/cl.h
8957 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8958 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8959 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8960 cat >>confdefs.h <<_ACEOF
8961 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8968 CPPFLAGS=$ax_save_CPPFLAGS
8970 for ac_header in windows.h
8972 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8973 if test "x$ac_cv_header_windows_h" = xyes; then :
8974 cat >>confdefs.h <<_ACEOF
8975 #define HAVE_WINDOWS_H 1
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
8986 $as_echo_n "checking for OpenCL library... " >&6; }
8987 if ${ax_cv_check_cl_libcl+:} false; then :
8988 $as_echo_n "(cached) " >&6
8990 ax_cv_check_cl_libcl=no
8992 x86_64) ax_check_cl_libdir=lib64 ;;
8993 *) ax_check_cl_libdir=lib ;;
8995 ax_save_CPPFLAGS=$CPPFLAGS
8996 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8999 ax_check_libs="-lOpenCL -lCL -lclparser"
9000 for ax_lib in $ax_check_libs; do
9001 if test X$ax_compiler_ms = Xyes; then :
9002 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9006 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h. */
9010 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9011 # include <windows.h>
9013 # ifdef HAVE_CL_CL_H
9015 # elif defined(HAVE_OPENCL_CL_H)
9016 # include <OpenCL/cl.h>
9023 clCreateContextFromType(0,0,0,0,0)
9028 if ac_fn_c_try_link "$LINENO"; then :
9029 ax_cv_check_cl_libcl=$ax_try_lib; break
9031 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"
9032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9033 /* end confdefs.h. */
9035 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9036 # include <windows.h>
9038 # ifdef HAVE_CL_CL_H
9040 # elif defined(HAVE_OPENCL_CL_H)
9041 # include <OpenCL/cl.h>
9048 clCreateContextFromType(0,0,0,0,0)
9053 if ac_fn_c_try_link "$LINENO"; then :
9054 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9056 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"
9057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9058 /* end confdefs.h. */
9060 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9061 # include <windows.h>
9063 # ifdef HAVE_CL_CL_H
9065 # elif defined(HAVE_OPENCL_CL_H)
9066 # include <OpenCL/cl.h>
9073 clCreateContextFromType(0,0,0,0,0)
9078 if ac_fn_c_try_link "$LINENO"; then :
9079 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9081 rm -f core conftest.err conftest.$ac_objext \
9082 conftest$ac_exeext conftest.$ac_ext
9084 rm -f core conftest.err conftest.$ac_objext \
9085 conftest$ac_exeext conftest.$ac_ext
9087 rm -f core conftest.err conftest.$ac_objext \
9088 conftest$ac_exeext conftest.$ac_ext
9091 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
9092 LIBS='-Wl,-framework,OpenCL'
9093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9094 /* end confdefs.h. */
9096 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9097 # include <windows.h>
9099 # ifdef HAVE_CL_CL_H
9101 # elif defined(HAVE_OPENCL_CL_H)
9102 # include <OpenCL/cl.h>
9109 clCreateContextFromType(0,0,0,0,0)
9114 if ac_fn_c_try_link "$LINENO"; then :
9115 ax_cv_check_cl_libcl=$LIBS
9117 rm -f core conftest.err conftest.$ac_objext \
9118 conftest$ac_exeext conftest.$ac_ext
9122 CPPFLAGS=$ax_save_CPPFLAGS
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9125 $as_echo "$ax_cv_check_cl_libcl" >&6; }
9127 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9128 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9130 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9131 $as_echo "#define _OPENCL 1" >>confdefs.h
9135 ac_cpp='$CPP $CPPFLAGS'
9136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9145 CFLAGS="$CL_CFLAGS $CFLAGS"
9146 LIBS="$CL_LIBS $LIBS"
9148 if test "$enable_opencl" != no; then
9149 if test "_OPENCL" = '1'; then
9150 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9156 # Check for large file support
9159 # Check whether --enable-largefile was given.
9160 if test "${enable_largefile+set}" = set; then :
9161 enableval=$enable_largefile;
9164 if test "$enable_largefile" != no; then
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9167 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9168 if ${ac_cv_sys_largefile_CC+:} false; then :
9169 $as_echo_n "(cached) " >&6
9171 ac_cv_sys_largefile_CC=no
9172 if test "$GCC" != yes; then
9175 # IRIX 6.2 and later do not support large files by default,
9176 # so use the C compiler's -n32 option if that helps.
9177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9178 /* end confdefs.h. */
9179 #include <sys/types.h>
9180 /* Check that off_t can represent 2**63 - 1 correctly.
9181 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9182 since some C++ compilers masquerading as C compilers
9183 incorrectly reject 9223372036854775807. */
9184 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9185 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9186 && LARGE_OFF_T % 2147483647 == 1)
9196 if ac_fn_c_try_compile "$LINENO"; then :
9199 rm -f core conftest.err conftest.$ac_objext
9201 if ac_fn_c_try_compile "$LINENO"; then :
9202 ac_cv_sys_largefile_CC=' -n32'; break
9204 rm -f core conftest.err conftest.$ac_objext
9208 rm -f conftest.$ac_ext
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9212 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
9213 if test "$ac_cv_sys_largefile_CC" != no; then
9214 CC=$CC$ac_cv_sys_largefile_CC
9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9218 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9219 if ${ac_cv_sys_file_offset_bits+:} false; then :
9220 $as_echo_n "(cached) " >&6
9223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9224 /* end confdefs.h. */
9225 #include <sys/types.h>
9226 /* Check that off_t can represent 2**63 - 1 correctly.
9227 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9228 since some C++ compilers masquerading as C compilers
9229 incorrectly reject 9223372036854775807. */
9230 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9231 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9232 && LARGE_OFF_T % 2147483647 == 1)
9242 if ac_fn_c_try_compile "$LINENO"; then :
9243 ac_cv_sys_file_offset_bits=no; break
9245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9247 /* end confdefs.h. */
9248 #define _FILE_OFFSET_BITS 64
9249 #include <sys/types.h>
9250 /* Check that off_t can represent 2**63 - 1 correctly.
9251 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9252 since some C++ compilers masquerading as C compilers
9253 incorrectly reject 9223372036854775807. */
9254 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9255 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9256 && LARGE_OFF_T % 2147483647 == 1)
9266 if ac_fn_c_try_compile "$LINENO"; then :
9267 ac_cv_sys_file_offset_bits=64; break
9269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9270 ac_cv_sys_file_offset_bits=unknown
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9275 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9276 case $ac_cv_sys_file_offset_bits in #(
9279 cat >>confdefs.h <<_ACEOF
9280 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9285 if test $ac_cv_sys_file_offset_bits = unknown; then
9286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9287 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9288 if ${ac_cv_sys_large_files+:} false; then :
9289 $as_echo_n "(cached) " >&6
9292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9293 /* end confdefs.h. */
9294 #include <sys/types.h>
9295 /* Check that off_t can represent 2**63 - 1 correctly.
9296 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9297 since some C++ compilers masquerading as C compilers
9298 incorrectly reject 9223372036854775807. */
9299 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9300 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9301 && LARGE_OFF_T % 2147483647 == 1)
9311 if ac_fn_c_try_compile "$LINENO"; then :
9312 ac_cv_sys_large_files=no; break
9314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9316 /* end confdefs.h. */
9317 #define _LARGE_FILES 1
9318 #include <sys/types.h>
9319 /* Check that off_t can represent 2**63 - 1 correctly.
9320 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9321 since some C++ compilers masquerading as C compilers
9322 incorrectly reject 9223372036854775807. */
9323 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9324 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9325 && LARGE_OFF_T % 2147483647 == 1)
9335 if ac_fn_c_try_compile "$LINENO"; then :
9336 ac_cv_sys_large_files=1; break
9338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9339 ac_cv_sys_large_files=unknown
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9344 $as_echo "$ac_cv_sys_large_files" >&6; }
9345 case $ac_cv_sys_large_files in #(
9348 cat >>confdefs.h <<_ACEOF
9349 #define _LARGE_FILES $ac_cv_sys_large_files
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9358 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
9359 if ${ac_cv_sys_largefile_source+:} false; then :
9360 $as_echo_n "(cached) " >&6
9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364 /* end confdefs.h. */
9365 #include <sys/types.h> /* for off_t */
9370 int (*fp) (FILE *, off_t, int) = fseeko;
9371 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9376 if ac_fn_c_try_link "$LINENO"; then :
9377 ac_cv_sys_largefile_source=no; break
9379 rm -f core conftest.err conftest.$ac_objext \
9380 conftest$ac_exeext conftest.$ac_ext
9381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9382 /* end confdefs.h. */
9383 #define _LARGEFILE_SOURCE 1
9384 #include <sys/types.h> /* for off_t */
9389 int (*fp) (FILE *, off_t, int) = fseeko;
9390 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9395 if ac_fn_c_try_link "$LINENO"; then :
9396 ac_cv_sys_largefile_source=1; break
9398 rm -f core conftest.err conftest.$ac_objext \
9399 conftest$ac_exeext conftest.$ac_ext
9400 ac_cv_sys_largefile_source=unknown
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
9405 $as_echo "$ac_cv_sys_largefile_source" >&6; }
9406 case $ac_cv_sys_largefile_source in #(
9409 cat >>confdefs.h <<_ACEOF
9410 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9416 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9417 # in glibc 2.1.3, but that breaks too many other things.
9418 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9419 if test $ac_cv_sys_largefile_source != unknown; then
9421 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
9426 if test "$enable_largefile" != no; then
9427 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9428 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
9431 $as_echo_n "checking for native large file support... " >&6; }
9432 if test "$cross_compiling" = yes; then :
9433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9435 as_fn_error $? "cannot run test program while cross compiling
9436 See \`config.log' for more details" "$LINENO" 5; }
9438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9439 /* end confdefs.h. */
9442 exit(!(sizeof(off_t) == 8));
9452 if ac_fn_c_try_run "$LINENO"; then :
9453 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9456 $as_echo "yes" >&6; }
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9459 $as_echo "no" >&6; }
9461 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9462 conftest.$ac_objext conftest.beam conftest.$ac_ext
9466 if test "$ac_cv_sys_large_files" != 'no'; then
9467 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9469 if test "$ac_cv_sys_largefile_source" != 'no'; then
9470 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9476 # Configure libtool & libltdl
9485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9486 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9492 macro_revision='1.3293'
9506 ltmain="$ac_aux_dir/ltmain.sh"
9508 # Backslashify metacharacters that are still active within
9509 # double-quoted strings.
9510 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9512 # Same as above, but do not quote variable references.
9513 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9515 # Sed substitution to delay expansion of an escaped shell variable in a
9516 # double_quote_subst'ed string.
9517 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9519 # Sed substitution to delay expansion of an escaped single quote.
9520 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9522 # Sed substitution to avoid accidental globbing in evaled expressions
9523 no_glob_subst='s/\*/\\\*/g'
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9526 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9527 if ${lt_cv_path_NM+:} false; then :
9528 $as_echo_n "(cached) " >&6
9530 if test -n "$NM"; then
9531 # Let the user override the test.
9534 lt_nm_to_check="${ac_tool_prefix}nm"
9535 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9536 lt_nm_to_check="$lt_nm_to_check nm"
9538 for lt_tmp_nm in $lt_nm_to_check; do
9539 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9540 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9542 test -z "$ac_dir" && ac_dir=.
9543 tmp_nm="$ac_dir/$lt_tmp_nm"
9544 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9545 # Check to see if the nm accepts a BSD-compat flag.
9546 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9547 # nm: unknown option "B" ignored
9548 # Tru64's nm complains that /dev/null is an invalid object file
9549 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9550 */dev/null* | *'Invalid file or object type'*)
9551 lt_cv_path_NM="$tmp_nm -B"
9555 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9557 lt_cv_path_NM="$tmp_nm -p"
9561 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9562 continue # so that we can try to find one that supports BSD flags
9571 : ${lt_cv_path_NM=no}
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9575 $as_echo "$lt_cv_path_NM" >&6; }
9576 if test "$lt_cv_path_NM" != "no"; then
9579 # Didn't find any BSD compatible name lister, look for dumpbin.
9580 if test -n "$DUMPBIN"; then :
9581 # Let the user override the test.
9583 if test -n "$ac_tool_prefix"; then
9584 for ac_prog in dumpbin "link -dump"
9586 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9587 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9589 $as_echo_n "checking for $ac_word... " >&6; }
9590 if ${ac_cv_prog_DUMPBIN+:} false; then :
9591 $as_echo_n "(cached) " >&6
9593 if test -n "$DUMPBIN"; then
9594 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9600 test -z "$as_dir" && as_dir=.
9601 for ac_exec_ext in '' $ac_executable_extensions; do
9602 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9603 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9613 DUMPBIN=$ac_cv_prog_DUMPBIN
9614 if test -n "$DUMPBIN"; then
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9616 $as_echo "$DUMPBIN" >&6; }
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9619 $as_echo "no" >&6; }
9623 test -n "$DUMPBIN" && break
9626 if test -z "$DUMPBIN"; then
9627 ac_ct_DUMPBIN=$DUMPBIN
9628 for ac_prog in dumpbin "link -dump"
9630 # Extract the first word of "$ac_prog", so it can be a program name with args.
9631 set dummy $ac_prog; ac_word=$2
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9633 $as_echo_n "checking for $ac_word... " >&6; }
9634 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
9635 $as_echo_n "(cached) " >&6
9637 if test -n "$ac_ct_DUMPBIN"; then
9638 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9644 test -z "$as_dir" && as_dir=.
9645 for ac_exec_ext in '' $ac_executable_extensions; do
9646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9647 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9657 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9658 if test -n "$ac_ct_DUMPBIN"; then
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9660 $as_echo "$ac_ct_DUMPBIN" >&6; }
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9663 $as_echo "no" >&6; }
9667 test -n "$ac_ct_DUMPBIN" && break
9670 if test "x$ac_ct_DUMPBIN" = x; then
9673 case $cross_compiling:$ac_tool_warned in
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9677 ac_tool_warned=yes ;;
9679 DUMPBIN=$ac_ct_DUMPBIN
9683 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9685 DUMPBIN="$DUMPBIN -symbols"
9693 if test "$DUMPBIN" != ":"; then
9697 test -z "$NM" && NM=nm
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9705 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9706 if ${lt_cv_nm_interface+:} false; then :
9707 $as_echo_n "(cached) " >&6
9709 lt_cv_nm_interface="BSD nm"
9710 echo "int some_variable = 0;" > conftest.$ac_ext
9711 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9712 (eval "$ac_compile" 2>conftest.err)
9713 cat conftest.err >&5
9714 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9715 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9716 cat conftest.err >&5
9717 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9718 cat conftest.out >&5
9719 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9720 lt_cv_nm_interface="MS dumpbin"
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9725 $as_echo "$lt_cv_nm_interface" >&6; }
9727 # find the maximum length of command line arguments
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9729 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9730 if ${lt_cv_sys_max_cmd_len+:} false; then :
9731 $as_echo_n "(cached) " >&6
9738 # On DJGPP, this test can blow up pretty badly due to problems in libc
9739 # (any single argument exceeding 2000 bytes causes a buffer overrun
9740 # during glob expansion). Even if it were fixed, the result of this
9741 # check would be larger than it should be.
9742 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9746 # Under GNU Hurd, this test is not required because there is
9747 # no limit to the length of command line arguments.
9748 # Libtool will interpret -1 as no limit whatsoever
9749 lt_cv_sys_max_cmd_len=-1;
9752 cygwin* | mingw* | cegcc*)
9753 # On Win9x/ME, this test blows up -- it succeeds, but takes
9754 # about 5 minutes as the teststring grows exponentially.
9755 # Worse, since 9x/ME are not pre-emptively multitasking,
9756 # you end up with a "frozen" computer, even though with patience
9757 # the test eventually succeeds (with a max line length of 256k).
9758 # Instead, let's just punt: use the minimum linelength reported by
9759 # all of the supported platforms: 8192 (on NT/2K/XP).
9760 lt_cv_sys_max_cmd_len=8192;
9764 # On MiNT this can take a long time and run out of memory.
9765 lt_cv_sys_max_cmd_len=8192;
9769 # On AmigaOS with pdksh, this test takes hours, literally.
9770 # So we just punt and use a minimum line length of 8192.
9771 lt_cv_sys_max_cmd_len=8192;
9774 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9775 # This has been around since 386BSD, at least. Likely further.
9776 if test -x /sbin/sysctl; then
9777 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9778 elif test -x /usr/sbin/sysctl; then
9779 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9781 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9783 # And add a safety zone
9784 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9785 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9789 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9790 lt_cv_sys_max_cmd_len=196608
9794 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9795 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9796 # nice to cause kernel panics so lets avoid the loop below.
9797 # First set a reasonable default.
9798 lt_cv_sys_max_cmd_len=16384
9800 if test -x /sbin/sysconfig; then
9801 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9802 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9807 lt_cv_sys_max_cmd_len=102400
9809 sysv5* | sco5v6* | sysv4.2uw2*)
9810 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9811 if test -n "$kargmax"; then
9812 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9814 lt_cv_sys_max_cmd_len=32768
9818 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9819 if test -n "$lt_cv_sys_max_cmd_len"; then
9820 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9821 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9823 # Make teststring a little bigger before we do anything with it.
9824 # a 1K string should be a reasonable start.
9825 for i in 1 2 3 4 5 6 7 8 ; do
9826 teststring=$teststring$teststring
9828 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9829 # If test is not a shell built-in, we'll probably end up computing a
9830 # maximum length that is only half of the actual maximum length, but
9832 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9833 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9834 test $i != 17 # 1/2 MB should be enough
9837 teststring=$teststring$teststring
9839 # Only check the string length outside the loop.
9840 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9842 # Add a significant safety factor because C++ compilers can tack on
9843 # massive amounts of additional arguments before passing them to the
9844 # linker. It appears as though 1/2 is a usable value.
9845 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9852 if test -n $lt_cv_sys_max_cmd_len ; then
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9854 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9857 $as_echo "none" >&6; }
9859 max_cmd_len=$lt_cv_sys_max_cmd_len
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9871 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9872 # Try some XSI features
9875 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
9877 && eval 'test $(( 1 + 1 )) -eq 2 \
9878 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9881 $as_echo "$xsi_shell" >&6; }
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9885 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9887 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9889 && lt_shell_append=yes
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9891 $as_echo "$lt_shell_append" >&6; }
9894 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9904 # test EBCDIC or ASCII
9905 case `echo X|tr X '\101'` in
9906 A) # ASCII based system
9907 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9908 lt_SP2NL='tr \040 \012'
9909 lt_NL2SP='tr \015\012 \040\040'
9911 *) # EBCDIC based system
9912 lt_SP2NL='tr \100 \n'
9913 lt_NL2SP='tr \r\n \100\100'
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
9926 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
9927 if ${lt_cv_to_host_file_cmd+:} false; then :
9928 $as_echo_n "(cached) " >&6
9933 *-*-mingw* ) # actually msys
9934 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
9937 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
9939 * ) # otherwise, assume *nix
9940 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
9946 *-*-mingw* ) # actually msys
9947 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
9950 lt_cv_to_host_file_cmd=func_convert_file_noop
9952 * ) # otherwise, assume *nix
9953 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
9957 * ) # unhandled hosts (and "normal" native builds)
9958 lt_cv_to_host_file_cmd=func_convert_file_noop
9964 to_host_file_cmd=$lt_cv_to_host_file_cmd
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
9966 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
9973 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
9974 if ${lt_cv_to_tool_file_cmd+:} false; then :
9975 $as_echo_n "(cached) " >&6
9977 #assume ordinary cross tools, or native build.
9978 lt_cv_to_tool_file_cmd=func_convert_file_noop
9982 *-*-mingw* ) # actually msys
9983 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
9991 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
9993 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10000 $as_echo_n "checking for $LD option to reload object files... " >&6; }
10001 if ${lt_cv_ld_reload_flag+:} false; then :
10002 $as_echo_n "(cached) " >&6
10004 lt_cv_ld_reload_flag='-r'
10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10007 $as_echo "$lt_cv_ld_reload_flag" >&6; }
10008 reload_flag=$lt_cv_ld_reload_flag
10009 case $reload_flag in
10011 *) reload_flag=" $reload_flag" ;;
10013 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10015 cygwin* | mingw* | pw32* | cegcc*)
10016 if test "$GCC" != yes; then
10021 if test "$GCC" = yes; then
10022 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10024 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10037 if test -n "$ac_tool_prefix"; then
10038 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10039 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10041 $as_echo_n "checking for $ac_word... " >&6; }
10042 if ${ac_cv_prog_OBJDUMP+:} false; then :
10043 $as_echo_n "(cached) " >&6
10045 if test -n "$OBJDUMP"; then
10046 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10049 for as_dir in $PATH
10052 test -z "$as_dir" && as_dir=.
10053 for ac_exec_ext in '' $ac_executable_extensions; do
10054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10055 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10065 OBJDUMP=$ac_cv_prog_OBJDUMP
10066 if test -n "$OBJDUMP"; then
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10068 $as_echo "$OBJDUMP" >&6; }
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10071 $as_echo "no" >&6; }
10076 if test -z "$ac_cv_prog_OBJDUMP"; then
10077 ac_ct_OBJDUMP=$OBJDUMP
10078 # Extract the first word of "objdump", so it can be a program name with args.
10079 set dummy objdump; ac_word=$2
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10081 $as_echo_n "checking for $ac_word... " >&6; }
10082 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
10083 $as_echo_n "(cached) " >&6
10085 if test -n "$ac_ct_OBJDUMP"; then
10086 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10089 for as_dir in $PATH
10092 test -z "$as_dir" && as_dir=.
10093 for ac_exec_ext in '' $ac_executable_extensions; do
10094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10095 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10105 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10106 if test -n "$ac_ct_OBJDUMP"; then
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10108 $as_echo "$ac_ct_OBJDUMP" >&6; }
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10111 $as_echo "no" >&6; }
10114 if test "x$ac_ct_OBJDUMP" = x; then
10117 case $cross_compiling:$ac_tool_warned in
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10121 ac_tool_warned=yes ;;
10123 OBJDUMP=$ac_ct_OBJDUMP
10126 OBJDUMP="$ac_cv_prog_OBJDUMP"
10129 test -z "$OBJDUMP" && OBJDUMP=objdump
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10137 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10138 if ${lt_cv_deplibs_check_method+:} false; then :
10139 $as_echo_n "(cached) " >&6
10141 lt_cv_file_magic_cmd='$MAGIC_CMD'
10142 lt_cv_file_magic_test_file=
10143 lt_cv_deplibs_check_method='unknown'
10144 # Need to set the preceding variable on all platforms that support
10145 # interlibrary dependencies.
10146 # 'none' -- dependencies not supported.
10147 # `unknown' -- same as none, but documents that we really don't know.
10148 # 'pass_all' -- all dependencies passed with no checks.
10149 # 'test_compile' -- check by making test program.
10150 # 'file_magic [[regex]]' -- check by looking for files in library path
10151 # which responds to the $file_magic_cmd with a given extended regex.
10152 # If you have `file' or equivalent on your system and you're not sure
10153 # whether `pass_all' will *always* work, you probably want this one.
10157 lt_cv_deplibs_check_method=pass_all
10161 lt_cv_deplibs_check_method=pass_all
10165 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10166 lt_cv_file_magic_cmd='/usr/bin/file -L'
10167 lt_cv_file_magic_test_file=/shlib/libc.so
10171 # func_win32_libid is a shell function defined in ltmain.sh
10172 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10173 lt_cv_file_magic_cmd='func_win32_libid'
10177 # Base MSYS/MinGW do not provide the 'file' command needed by
10178 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10179 # unless we find 'file', for example because we are cross-compiling.
10180 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10181 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
10182 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10183 lt_cv_file_magic_cmd='func_win32_libid'
10185 # Keep this pattern in sync with the one in func_win32_libid.
10186 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10187 lt_cv_file_magic_cmd='$OBJDUMP -f'
10192 # use the weaker test based on 'objdump'. See mingw*.
10193 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10194 lt_cv_file_magic_cmd='$OBJDUMP -f'
10197 darwin* | rhapsody*)
10198 lt_cv_deplibs_check_method=pass_all
10201 freebsd* | dragonfly*)
10202 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10205 # Not sure whether the presence of OpenBSD here was a mistake.
10206 # Let's accept both of them until this is cleared up.
10207 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10208 lt_cv_file_magic_cmd=/usr/bin/file
10209 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10213 lt_cv_deplibs_check_method=pass_all
10218 lt_cv_deplibs_check_method=pass_all
10222 lt_cv_deplibs_check_method=pass_all
10225 hpux10.20* | hpux11*)
10226 lt_cv_file_magic_cmd=/usr/bin/file
10229 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10230 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10233 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]'
10234 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10237 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10238 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10244 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10245 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10248 irix5* | irix6* | nonstopux*)
10250 *-32|*"-32 ") libmagic=32-bit;;
10251 *-n32|*"-n32 ") libmagic=N32;;
10252 *-64|*"-64 ") libmagic=64-bit;;
10253 *) libmagic=never-match;;
10255 lt_cv_deplibs_check_method=pass_all
10258 # This must be Linux ELF.
10259 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10260 lt_cv_deplibs_check_method=pass_all
10264 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10265 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10267 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10272 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10273 lt_cv_file_magic_cmd=/usr/bin/file
10274 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10278 lt_cv_deplibs_check_method=pass_all
10282 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10283 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10285 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10289 osf3* | osf4* | osf5*)
10290 lt_cv_deplibs_check_method=pass_all
10294 lt_cv_deplibs_check_method=pass_all
10298 lt_cv_deplibs_check_method=pass_all
10301 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10302 lt_cv_deplibs_check_method=pass_all
10306 case $host_vendor in
10308 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]'
10309 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10312 lt_cv_deplibs_check_method=pass_all
10315 lt_cv_file_magic_cmd='/bin/file'
10316 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10319 lt_cv_file_magic_cmd='/bin/file'
10320 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10321 lt_cv_file_magic_test_file=/lib/libc.so
10324 lt_cv_deplibs_check_method=pass_all
10327 lt_cv_deplibs_check_method=pass_all
10333 lt_cv_deplibs_check_method=pass_all
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10339 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10343 if test "$build" = "$host"; then
10346 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
10347 want_nocaseglob=yes
10349 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
10355 file_magic_cmd=$lt_cv_file_magic_cmd
10356 deplibs_check_method=$lt_cv_deplibs_check_method
10357 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10380 if test -n "$ac_tool_prefix"; then
10381 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10382 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10384 $as_echo_n "checking for $ac_word... " >&6; }
10385 if ${ac_cv_prog_DLLTOOL+:} false; then :
10386 $as_echo_n "(cached) " >&6
10388 if test -n "$DLLTOOL"; then
10389 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10392 for as_dir in $PATH
10395 test -z "$as_dir" && as_dir=.
10396 for ac_exec_ext in '' $ac_executable_extensions; do
10397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10398 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10408 DLLTOOL=$ac_cv_prog_DLLTOOL
10409 if test -n "$DLLTOOL"; then
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10411 $as_echo "$DLLTOOL" >&6; }
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10414 $as_echo "no" >&6; }
10419 if test -z "$ac_cv_prog_DLLTOOL"; then
10420 ac_ct_DLLTOOL=$DLLTOOL
10421 # Extract the first word of "dlltool", so it can be a program name with args.
10422 set dummy dlltool; ac_word=$2
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10424 $as_echo_n "checking for $ac_word... " >&6; }
10425 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10426 $as_echo_n "(cached) " >&6
10428 if test -n "$ac_ct_DLLTOOL"; then
10429 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10432 for as_dir in $PATH
10435 test -z "$as_dir" && as_dir=.
10436 for ac_exec_ext in '' $ac_executable_extensions; do
10437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10438 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10448 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10449 if test -n "$ac_ct_DLLTOOL"; then
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10451 $as_echo "$ac_ct_DLLTOOL" >&6; }
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10454 $as_echo "no" >&6; }
10457 if test "x$ac_ct_DLLTOOL" = x; then
10460 case $cross_compiling:$ac_tool_warned in
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10464 ac_tool_warned=yes ;;
10466 DLLTOOL=$ac_ct_DLLTOOL
10469 DLLTOOL="$ac_cv_prog_DLLTOOL"
10472 test -z "$DLLTOOL" && DLLTOOL=dlltool
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
10481 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
10482 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
10483 $as_echo_n "(cached) " >&6
10485 lt_cv_sharedlib_from_linklib_cmd='unknown'
10488 cygwin* | mingw* | pw32* | cegcc*)
10489 # two different shell functions defined in ltmain.sh
10490 # decide which to use based on capabilities of $DLLTOOL
10491 case `$DLLTOOL --help 2>&1` in
10492 *--identify-strict*)
10493 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
10496 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
10501 # fallback: assume linklib IS sharedlib
10502 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
10508 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
10509 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
10510 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
10518 if test -n "$ac_tool_prefix"; then
10521 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10522 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10524 $as_echo_n "checking for $ac_word... " >&6; }
10525 if ${ac_cv_prog_AR+:} false; then :
10526 $as_echo_n "(cached) " >&6
10528 if test -n "$AR"; then
10529 ac_cv_prog_AR="$AR" # Let the user override the test.
10531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532 for as_dir in $PATH
10535 test -z "$as_dir" && as_dir=.
10536 for ac_exec_ext in '' $ac_executable_extensions; do
10537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10538 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
10539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10549 if test -n "$AR"; then
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10551 $as_echo "$AR" >&6; }
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10554 $as_echo "no" >&6; }
10558 test -n "$AR" && break
10561 if test -z "$AR"; then
10565 # Extract the first word of "$ac_prog", so it can be a program name with args.
10566 set dummy $ac_prog; ac_word=$2
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10568 $as_echo_n "checking for $ac_word... " >&6; }
10569 if ${ac_cv_prog_ac_ct_AR+:} false; then :
10570 $as_echo_n "(cached) " >&6
10572 if test -n "$ac_ct_AR"; then
10573 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10576 for as_dir in $PATH
10579 test -z "$as_dir" && as_dir=.
10580 for ac_exec_ext in '' $ac_executable_extensions; do
10581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10582 ac_cv_prog_ac_ct_AR="$ac_prog"
10583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10592 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10593 if test -n "$ac_ct_AR"; then
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10595 $as_echo "$ac_ct_AR" >&6; }
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10598 $as_echo "no" >&6; }
10602 test -n "$ac_ct_AR" && break
10605 if test "x$ac_ct_AR" = x; then
10608 case $cross_compiling:$ac_tool_warned in
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10611 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10612 ac_tool_warned=yes ;;
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
10632 $as_echo_n "checking for archiver @FILE support... " >&6; }
10633 if ${lt_cv_ar_at_file+:} false; then :
10634 $as_echo_n "(cached) " >&6
10636 lt_cv_ar_at_file=no
10637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10638 /* end confdefs.h. */
10648 if ac_fn_c_try_compile "$LINENO"; then :
10649 echo conftest.$ac_objext > conftest.lst
10650 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
10651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10652 (eval $lt_ar_try) 2>&5
10654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10655 test $ac_status = 0; }
10656 if test "$ac_status" -eq 0; then
10657 # Ensure the archiver fails upon bogus file names.
10658 rm -f conftest.$ac_objext libconftest.a
10659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
10660 (eval $lt_ar_try) 2>&5
10662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10663 test $ac_status = 0; }
10664 if test "$ac_status" -ne 0; then
10668 rm -f conftest.* libconftest.a
10671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
10675 $as_echo "$lt_cv_ar_at_file" >&6; }
10677 if test "x$lt_cv_ar_at_file" = xno; then
10678 archiver_list_spec=
10680 archiver_list_spec=$lt_cv_ar_at_file
10689 if test -n "$ac_tool_prefix"; then
10690 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10691 set dummy ${ac_tool_prefix}strip; ac_word=$2
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10693 $as_echo_n "checking for $ac_word... " >&6; }
10694 if ${ac_cv_prog_STRIP+:} false; then :
10695 $as_echo_n "(cached) " >&6
10697 if test -n "$STRIP"; then
10698 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10701 for as_dir in $PATH
10704 test -z "$as_dir" && as_dir=.
10705 for ac_exec_ext in '' $ac_executable_extensions; do
10706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10707 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10717 STRIP=$ac_cv_prog_STRIP
10718 if test -n "$STRIP"; then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10720 $as_echo "$STRIP" >&6; }
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723 $as_echo "no" >&6; }
10728 if test -z "$ac_cv_prog_STRIP"; then
10730 # Extract the first word of "strip", so it can be a program name with args.
10731 set dummy strip; ac_word=$2
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10733 $as_echo_n "checking for $ac_word... " >&6; }
10734 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
10735 $as_echo_n "(cached) " >&6
10737 if test -n "$ac_ct_STRIP"; then
10738 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10741 for as_dir in $PATH
10744 test -z "$as_dir" && as_dir=.
10745 for ac_exec_ext in '' $ac_executable_extensions; do
10746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10747 ac_cv_prog_ac_ct_STRIP="strip"
10748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10757 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10758 if test -n "$ac_ct_STRIP"; then
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10760 $as_echo "$ac_ct_STRIP" >&6; }
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10763 $as_echo "no" >&6; }
10766 if test "x$ac_ct_STRIP" = x; then
10769 case $cross_compiling:$ac_tool_warned in
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10773 ac_tool_warned=yes ;;
10778 STRIP="$ac_cv_prog_STRIP"
10781 test -z "$STRIP" && STRIP=:
10788 if test -n "$ac_tool_prefix"; then
10789 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10790 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10792 $as_echo_n "checking for $ac_word... " >&6; }
10793 if ${ac_cv_prog_RANLIB+:} false; then :
10794 $as_echo_n "(cached) " >&6
10796 if test -n "$RANLIB"; then
10797 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10800 for as_dir in $PATH
10803 test -z "$as_dir" && as_dir=.
10804 for ac_exec_ext in '' $ac_executable_extensions; do
10805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10806 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10816 RANLIB=$ac_cv_prog_RANLIB
10817 if test -n "$RANLIB"; then
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10819 $as_echo "$RANLIB" >&6; }
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10822 $as_echo "no" >&6; }
10827 if test -z "$ac_cv_prog_RANLIB"; then
10828 ac_ct_RANLIB=$RANLIB
10829 # Extract the first word of "ranlib", so it can be a program name with args.
10830 set dummy ranlib; 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_ac_ct_RANLIB+:} false; then :
10834 $as_echo_n "(cached) " >&6
10836 if test -n "$ac_ct_RANLIB"; then
10837 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # 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_ac_ct_RANLIB="ranlib"
10847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10856 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10857 if test -n "$ac_ct_RANLIB"; then
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10859 $as_echo "$ac_ct_RANLIB" >&6; }
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10862 $as_echo "no" >&6; }
10865 if test "x$ac_ct_RANLIB" = x; then
10868 case $cross_compiling:$ac_tool_warned in
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10872 ac_tool_warned=yes ;;
10874 RANLIB=$ac_ct_RANLIB
10877 RANLIB="$ac_cv_prog_RANLIB"
10880 test -z "$RANLIB" && RANLIB=:
10887 # Determine commands to create old-style static archives.
10888 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10889 old_postinstall_cmds='chmod 644 $oldlib'
10890 old_postuninstall_cmds=
10892 if test -n "$RANLIB"; then
10895 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10898 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10901 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10906 lock_old_archive_extraction=yes ;;
10908 lock_old_archive_extraction=no ;;
10949 # If no C compiler was specified, use CC.
10952 # If no C compiler flags were specified, use CFLAGS.
10953 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10955 # Allow CC to be a program name with arguments.
10959 # Check for command to grab the raw symbol name followed by C symbol from nm.
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10961 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10962 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
10963 $as_echo_n "(cached) " >&6
10966 # These are sane defaults that work on at least a few old systems.
10967 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10969 # Character class describing NM global symbol codes.
10970 symcode='[BCDEGRST]'
10972 # Regexp to match symbols that can be accessed directly from C.
10973 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10975 # Define system-specific variables.
10980 cygwin* | mingw* | pw32* | cegcc*)
10981 symcode='[ABCDGISTW]'
10984 if test "$host_cpu" = ia64; then
10985 symcode='[ABCDEGRST]'
10988 irix* | nonstopux*)
10989 symcode='[BCDEGRST]'
10992 symcode='[BCDEGQRST]'
11003 sysv5* | sco5v6* | unixware* | OpenUNIX*)
11011 # If we're using GNU nm, then use its standard symbol codes.
11012 case `$NM -V 2>&1` in
11013 *GNU* | *'with BFD'*)
11014 symcode='[ABCDGIRSTW]' ;;
11017 # Transform an extracted symbol line into a proper C declaration.
11018 # Some systems (esp. on ia64) link data and code symbols differently,
11019 # so use this general approach.
11020 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11022 # Transform an extracted symbol line into symbol name and symbol address
11023 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11024 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'"
11026 # Handle CRLF in mingw tool chain
11030 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11034 # Try without a prefix underscore, then with it.
11035 for ac_symprfx in "" "_"; do
11037 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11038 symxfrm="\\1 $ac_symprfx\\2 \\2"
11040 # Write the raw and C identifiers.
11041 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11042 # Fake it for dumpbin and say T for any non-static function
11043 # and D for any global variable.
11044 # Also find C++ and __fastcall symbols from MSVC++,
11045 # which start with @ or ?.
11046 lt_cv_sys_global_symbol_pipe="$AWK '"\
11047 " {last_section=section; section=\$ 3};"\
11048 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11049 " \$ 0!~/External *\|/{next};"\
11050 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11051 " {if(hide[section]) next};"\
11052 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11053 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11054 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
11055 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11056 " ' prfx=^$ac_symprfx"
11058 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11060 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
11062 # Check to see that the pipe works correctly.
11066 cat > conftest.$ac_ext <<_LT_EOF
11071 void nm_test_func(void);
11072 void nm_test_func(void){}
11076 int main(){nm_test_var='a';nm_test_func();return(0);}
11079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11080 (eval $ac_compile) 2>&5
11082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11083 test $ac_status = 0; }; then
11084 # Now try to grab the symbols.
11086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11087 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
11089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11090 test $ac_status = 0; } && test -s "$nlist"; then
11091 # Try sorting and uniquifying the output.
11092 if sort "$nlist" | uniq > "$nlist"T; then
11093 mv -f "$nlist"T "$nlist"
11098 # Make sure that we snagged all the symbols we need.
11099 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11100 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11101 cat <<_LT_EOF > conftest.$ac_ext
11102 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
11103 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
11104 /* DATA imports from DLLs on WIN32 con't be const, because runtime
11105 relocations are performed -- see ld's documentation on pseudo-relocs. */
11106 # define LT_DLSYM_CONST
11107 #elif defined(__osf__)
11108 /* This system does not cope well with relocations in const data. */
11109 # define LT_DLSYM_CONST
11111 # define LT_DLSYM_CONST const
11119 # Now generate the symbol file.
11120 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
11122 cat <<_LT_EOF >> conftest.$ac_ext
11124 /* The mapping between symbol names and symbols. */
11125 LT_DLSYM_CONST struct {
11129 lt__PROGRAM__LTX_preloaded_symbols[] =
11131 { "@PROGRAM@", (void *) 0 },
11133 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
11134 cat <<\_LT_EOF >> conftest.$ac_ext
11138 /* This works around a problem in FreeBSD linker */
11139 #ifdef FREEBSD_WORKAROUND
11140 static const void *lt_preloaded_setup() {
11141 return lt__PROGRAM__LTX_preloaded_symbols;
11149 # Now try linking the two files.
11150 mv conftest.$ac_objext conftstm.$ac_objext
11151 lt_globsym_save_LIBS=$LIBS
11152 lt_globsym_save_CFLAGS=$CFLAGS
11153 LIBS="conftstm.$ac_objext"
11154 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11156 (eval $ac_link) 2>&5
11158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11159 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
11162 LIBS=$lt_globsym_save_LIBS
11163 CFLAGS=$lt_globsym_save_CFLAGS
11165 echo "cannot find nm_test_func in $nlist" >&5
11168 echo "cannot find nm_test_var in $nlist" >&5
11171 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11174 echo "$progname: failed program was:" >&5
11175 cat conftest.$ac_ext >&5
11177 rm -rf conftest* conftst*
11179 # Do not use the global_symbol_pipe unless it works.
11180 if test "$pipe_works" = yes; then
11183 lt_cv_sys_global_symbol_pipe=
11189 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11190 lt_cv_sys_global_symbol_to_cdecl=
11192 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
11194 $as_echo "failed" >&6; }
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11197 $as_echo "ok" >&6; }
11200 # Response file support.
11201 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11202 nm_file_list_spec='@'
11203 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
11204 nm_file_list_spec='@'
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
11234 $as_echo_n "checking for sysroot... " >&6; }
11236 # Check whether --with-sysroot was given.
11237 if test "${with_sysroot+set}" = set; then :
11238 withval=$with_sysroot;
11245 case ${with_sysroot} in #(
11247 if test "$GCC" = yes; then
11248 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
11252 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
11258 $as_echo "${with_sysroot}" >&6; }
11259 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
11264 $as_echo "${lt_sysroot:-no}" >&6; }
11270 # Check whether --enable-libtool-lock was given.
11271 if test "${enable_libtool_lock+set}" = set; then :
11272 enableval=$enable_libtool_lock;
11275 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11277 # Some flags need to be propagated to the compiler or linker for good
11281 # Find out which ABI we are using.
11282 echo 'int i;' > conftest.$ac_ext
11283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11284 (eval $ac_compile) 2>&5
11286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11287 test $ac_status = 0; }; then
11288 case `/usr/bin/file conftest.$ac_objext` in
11290 HPUX_IA64_MODE="32"
11293 HPUX_IA64_MODE="64"
11300 # Find out which ABI we are using.
11301 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
11302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11303 (eval $ac_compile) 2>&5
11305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11306 test $ac_status = 0; }; then
11307 if test "$lt_cv_prog_gnu_ld" = yes; then
11308 case `/usr/bin/file conftest.$ac_objext` in
11310 LD="${LD-ld} -melf32bsmip"
11313 LD="${LD-ld} -melf32bmipn32"
11316 LD="${LD-ld} -melf64bmip"
11320 case `/usr/bin/file conftest.$ac_objext` in
11336 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
11337 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
11338 # Find out which ABI we are using.
11339 echo 'int i;' > conftest.$ac_ext
11340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11341 (eval $ac_compile) 2>&5
11343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11344 test $ac_status = 0; }; then
11345 case `/usr/bin/file conftest.o` in
11348 x86_64-*kfreebsd*-gnu)
11349 LD="${LD-ld} -m elf_i386_fbsd"
11352 LD="${LD-ld} -m elf_i386"
11354 ppc64-*linux*|powerpc64-*linux*)
11355 LD="${LD-ld} -m elf32ppclinux"
11358 LD="${LD-ld} -m elf_s390"
11361 LD="${LD-ld} -m elf32_sparc"
11367 x86_64-*kfreebsd*-gnu)
11368 LD="${LD-ld} -m elf_x86_64_fbsd"
11371 LD="${LD-ld} -m elf_x86_64"
11373 ppc*-*linux*|powerpc*-*linux*)
11374 LD="${LD-ld} -m elf64ppc"
11376 s390*-*linux*|s390*-*tpf*)
11377 LD="${LD-ld} -m elf64_s390"
11380 LD="${LD-ld} -m elf64_sparc"
11390 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11391 SAVE_CFLAGS="$CFLAGS"
11392 CFLAGS="$CFLAGS -belf"
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11394 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11395 if ${lt_cv_cc_needs_belf+:} false; then :
11396 $as_echo_n "(cached) " >&6
11399 ac_cpp='$CPP $CPPFLAGS'
11400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11415 if ac_fn_c_try_link "$LINENO"; then :
11416 lt_cv_cc_needs_belf=yes
11418 lt_cv_cc_needs_belf=no
11420 rm -f core conftest.err conftest.$ac_objext \
11421 conftest$ac_exeext conftest.$ac_ext
11423 ac_cpp='$CPP $CPPFLAGS'
11424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11430 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11431 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11432 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11433 CFLAGS="$SAVE_CFLAGS"
11437 # Find out which ABI we are using.
11438 echo 'int i;' > conftest.$ac_ext
11439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11440 (eval $ac_compile) 2>&5
11442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11443 test $ac_status = 0; }; then
11444 case `/usr/bin/file conftest.o` in
11446 case $lt_cv_prog_gnu_ld in
11447 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11449 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11461 need_locks="$enable_libtool_lock"
11463 if test -n "$ac_tool_prefix"; then
11464 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
11465 set dummy ${ac_tool_prefix}mt; ac_word=$2
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11467 $as_echo_n "checking for $ac_word... " >&6; }
11468 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
11469 $as_echo_n "(cached) " >&6
11471 if test -n "$MANIFEST_TOOL"; then
11472 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
11474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11475 for as_dir in $PATH
11478 test -z "$as_dir" && as_dir=.
11479 for ac_exec_ext in '' $ac_executable_extensions; do
11480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11481 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
11482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11491 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
11492 if test -n "$MANIFEST_TOOL"; then
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
11494 $as_echo "$MANIFEST_TOOL" >&6; }
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497 $as_echo "no" >&6; }
11502 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
11503 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
11504 # Extract the first word of "mt", so it can be a program name with args.
11505 set dummy mt; ac_word=$2
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11507 $as_echo_n "checking for $ac_word... " >&6; }
11508 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
11509 $as_echo_n "(cached) " >&6
11511 if test -n "$ac_ct_MANIFEST_TOOL"; then
11512 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
11514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515 for as_dir in $PATH
11518 test -z "$as_dir" && as_dir=.
11519 for ac_exec_ext in '' $ac_executable_extensions; do
11520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11521 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
11522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11531 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
11532 if test -n "$ac_ct_MANIFEST_TOOL"; then
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
11534 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11537 $as_echo "no" >&6; }
11540 if test "x$ac_ct_MANIFEST_TOOL" = x; then
11543 case $cross_compiling:$ac_tool_warned in
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11547 ac_tool_warned=yes ;;
11549 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
11552 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
11555 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
11557 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
11558 if ${lt_cv_path_mainfest_tool+:} false; then :
11559 $as_echo_n "(cached) " >&6
11561 lt_cv_path_mainfest_tool=no
11562 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
11563 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
11564 cat conftest.err >&5
11565 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
11566 lt_cv_path_mainfest_tool=yes
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
11571 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
11572 if test "x$lt_cv_path_mainfest_tool" != xyes; then
11582 rhapsody* | darwin*)
11583 if test -n "$ac_tool_prefix"; then
11584 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11585 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11587 $as_echo_n "checking for $ac_word... " >&6; }
11588 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11589 $as_echo_n "(cached) " >&6
11591 if test -n "$DSYMUTIL"; then
11592 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11595 for as_dir in $PATH
11598 test -z "$as_dir" && as_dir=.
11599 for ac_exec_ext in '' $ac_executable_extensions; do
11600 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11601 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11611 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11612 if test -n "$DSYMUTIL"; then
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11614 $as_echo "$DSYMUTIL" >&6; }
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617 $as_echo "no" >&6; }
11622 if test -z "$ac_cv_prog_DSYMUTIL"; then
11623 ac_ct_DSYMUTIL=$DSYMUTIL
11624 # Extract the first word of "dsymutil", so it can be a program name with args.
11625 set dummy dsymutil; ac_word=$2
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11627 $as_echo_n "checking for $ac_word... " >&6; }
11628 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
11629 $as_echo_n "(cached) " >&6
11631 if test -n "$ac_ct_DSYMUTIL"; then
11632 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11635 for as_dir in $PATH
11638 test -z "$as_dir" && as_dir=.
11639 for ac_exec_ext in '' $ac_executable_extensions; do
11640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11641 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11651 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11652 if test -n "$ac_ct_DSYMUTIL"; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11654 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657 $as_echo "no" >&6; }
11660 if test "x$ac_ct_DSYMUTIL" = x; then
11663 case $cross_compiling:$ac_tool_warned in
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11667 ac_tool_warned=yes ;;
11669 DSYMUTIL=$ac_ct_DSYMUTIL
11672 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11675 if test -n "$ac_tool_prefix"; then
11676 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11677 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11679 $as_echo_n "checking for $ac_word... " >&6; }
11680 if ${ac_cv_prog_NMEDIT+:} false; then :
11681 $as_echo_n "(cached) " >&6
11683 if test -n "$NMEDIT"; then
11684 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11687 for as_dir in $PATH
11690 test -z "$as_dir" && as_dir=.
11691 for ac_exec_ext in '' $ac_executable_extensions; do
11692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11693 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11703 NMEDIT=$ac_cv_prog_NMEDIT
11704 if test -n "$NMEDIT"; then
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11706 $as_echo "$NMEDIT" >&6; }
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709 $as_echo "no" >&6; }
11714 if test -z "$ac_cv_prog_NMEDIT"; then
11715 ac_ct_NMEDIT=$NMEDIT
11716 # Extract the first word of "nmedit", so it can be a program name with args.
11717 set dummy nmedit; ac_word=$2
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11719 $as_echo_n "checking for $ac_word... " >&6; }
11720 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
11721 $as_echo_n "(cached) " >&6
11723 if test -n "$ac_ct_NMEDIT"; then
11724 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727 for as_dir in $PATH
11730 test -z "$as_dir" && as_dir=.
11731 for ac_exec_ext in '' $ac_executable_extensions; do
11732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11733 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11743 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11744 if test -n "$ac_ct_NMEDIT"; then
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11746 $as_echo "$ac_ct_NMEDIT" >&6; }
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749 $as_echo "no" >&6; }
11752 if test "x$ac_ct_NMEDIT" = x; then
11755 case $cross_compiling:$ac_tool_warned in
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11758 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11759 ac_tool_warned=yes ;;
11761 NMEDIT=$ac_ct_NMEDIT
11764 NMEDIT="$ac_cv_prog_NMEDIT"
11767 if test -n "$ac_tool_prefix"; then
11768 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11769 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11771 $as_echo_n "checking for $ac_word... " >&6; }
11772 if ${ac_cv_prog_LIPO+:} false; then :
11773 $as_echo_n "(cached) " >&6
11775 if test -n "$LIPO"; then
11776 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11779 for as_dir in $PATH
11782 test -z "$as_dir" && as_dir=.
11783 for ac_exec_ext in '' $ac_executable_extensions; do
11784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11785 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11795 LIPO=$ac_cv_prog_LIPO
11796 if test -n "$LIPO"; then
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11798 $as_echo "$LIPO" >&6; }
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11801 $as_echo "no" >&6; }
11806 if test -z "$ac_cv_prog_LIPO"; then
11808 # Extract the first word of "lipo", so it can be a program name with args.
11809 set dummy lipo; ac_word=$2
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11811 $as_echo_n "checking for $ac_word... " >&6; }
11812 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
11813 $as_echo_n "(cached) " >&6
11815 if test -n "$ac_ct_LIPO"; then
11816 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11819 for as_dir in $PATH
11822 test -z "$as_dir" && as_dir=.
11823 for ac_exec_ext in '' $ac_executable_extensions; do
11824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11825 ac_cv_prog_ac_ct_LIPO="lipo"
11826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11835 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11836 if test -n "$ac_ct_LIPO"; then
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11838 $as_echo "$ac_ct_LIPO" >&6; }
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841 $as_echo "no" >&6; }
11844 if test "x$ac_ct_LIPO" = x; then
11847 case $cross_compiling:$ac_tool_warned in
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11851 ac_tool_warned=yes ;;
11856 LIPO="$ac_cv_prog_LIPO"
11859 if test -n "$ac_tool_prefix"; then
11860 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11861 set dummy ${ac_tool_prefix}otool; ac_word=$2
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11863 $as_echo_n "checking for $ac_word... " >&6; }
11864 if ${ac_cv_prog_OTOOL+:} false; then :
11865 $as_echo_n "(cached) " >&6
11867 if test -n "$OTOOL"; then
11868 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11871 for as_dir in $PATH
11874 test -z "$as_dir" && as_dir=.
11875 for ac_exec_ext in '' $ac_executable_extensions; do
11876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11877 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11887 OTOOL=$ac_cv_prog_OTOOL
11888 if test -n "$OTOOL"; then
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11890 $as_echo "$OTOOL" >&6; }
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11893 $as_echo "no" >&6; }
11898 if test -z "$ac_cv_prog_OTOOL"; then
11900 # Extract the first word of "otool", so it can be a program name with args.
11901 set dummy otool; ac_word=$2
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11903 $as_echo_n "checking for $ac_word... " >&6; }
11904 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
11905 $as_echo_n "(cached) " >&6
11907 if test -n "$ac_ct_OTOOL"; then
11908 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11911 for as_dir in $PATH
11914 test -z "$as_dir" && as_dir=.
11915 for ac_exec_ext in '' $ac_executable_extensions; do
11916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11917 ac_cv_prog_ac_ct_OTOOL="otool"
11918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11927 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11928 if test -n "$ac_ct_OTOOL"; then
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11930 $as_echo "$ac_ct_OTOOL" >&6; }
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11933 $as_echo "no" >&6; }
11936 if test "x$ac_ct_OTOOL" = x; then
11939 case $cross_compiling:$ac_tool_warned in
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11943 ac_tool_warned=yes ;;
11948 OTOOL="$ac_cv_prog_OTOOL"
11951 if test -n "$ac_tool_prefix"; then
11952 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11953 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11955 $as_echo_n "checking for $ac_word... " >&6; }
11956 if ${ac_cv_prog_OTOOL64+:} false; then :
11957 $as_echo_n "(cached) " >&6
11959 if test -n "$OTOOL64"; then
11960 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963 for as_dir in $PATH
11966 test -z "$as_dir" && as_dir=.
11967 for ac_exec_ext in '' $ac_executable_extensions; do
11968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11969 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11979 OTOOL64=$ac_cv_prog_OTOOL64
11980 if test -n "$OTOOL64"; then
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11982 $as_echo "$OTOOL64" >&6; }
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11985 $as_echo "no" >&6; }
11990 if test -z "$ac_cv_prog_OTOOL64"; then
11991 ac_ct_OTOOL64=$OTOOL64
11992 # Extract the first word of "otool64", so it can be a program name with args.
11993 set dummy otool64; ac_word=$2
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11995 $as_echo_n "checking for $ac_word... " >&6; }
11996 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
11997 $as_echo_n "(cached) " >&6
11999 if test -n "$ac_ct_OTOOL64"; then
12000 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12003 for as_dir in $PATH
12006 test -z "$as_dir" && as_dir=.
12007 for ac_exec_ext in '' $ac_executable_extensions; do
12008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12009 ac_cv_prog_ac_ct_OTOOL64="otool64"
12010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12019 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12020 if test -n "$ac_ct_OTOOL64"; then
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12022 $as_echo "$ac_ct_OTOOL64" >&6; }
12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12025 $as_echo "no" >&6; }
12028 if test "x$ac_ct_OTOOL64" = x; then
12031 case $cross_compiling:$ac_tool_warned in
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12035 ac_tool_warned=yes ;;
12037 OTOOL64=$ac_ct_OTOOL64
12040 OTOOL64="$ac_cv_prog_OTOOL64"
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12070 $as_echo_n "checking for -single_module linker flag... " >&6; }
12071 if ${lt_cv_apple_cc_single_mod+:} false; then :
12072 $as_echo_n "(cached) " >&6
12074 lt_cv_apple_cc_single_mod=no
12075 if test -z "${LT_MULTI_MODULE}"; then
12076 # By default we will add the -single_module flag. You can override
12077 # by either setting the environment variable LT_MULTI_MODULE
12078 # non-empty at configure time, or by adding -multi_module to the
12080 rm -rf libconftest.dylib*
12081 echo "int foo(void){return 1;}" > conftest.c
12082 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12083 -dynamiclib -Wl,-single_module conftest.c" >&5
12084 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12085 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12087 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
12088 lt_cv_apple_cc_single_mod=yes
12090 cat conftest.err >&5
12092 rm -rf libconftest.dylib*
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
12097 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
12099 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
12100 if ${lt_cv_ld_exported_symbols_list+:} false; then :
12101 $as_echo_n "(cached) " >&6
12103 lt_cv_ld_exported_symbols_list=no
12104 save_LDFLAGS=$LDFLAGS
12105 echo "_main" > conftest.sym
12106 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
12107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12108 /* end confdefs.h. */
12118 if ac_fn_c_try_link "$LINENO"; then :
12119 lt_cv_ld_exported_symbols_list=yes
12121 lt_cv_ld_exported_symbols_list=no
12123 rm -f core conftest.err conftest.$ac_objext \
12124 conftest$ac_exeext conftest.$ac_ext
12125 LDFLAGS="$save_LDFLAGS"
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
12129 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
12131 $as_echo_n "checking for -force_load linker flag... " >&6; }
12132 if ${lt_cv_ld_force_load+:} false; then :
12133 $as_echo_n "(cached) " >&6
12135 lt_cv_ld_force_load=no
12136 cat > conftest.c << _LT_EOF
12137 int forced_loaded() { return 2;}
12139 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
12140 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
12141 echo "$AR cru libconftest.a conftest.o" >&5
12142 $AR cru libconftest.a conftest.o 2>&5
12143 echo "$RANLIB libconftest.a" >&5
12144 $RANLIB libconftest.a 2>&5
12145 cat > conftest.c << _LT_EOF
12146 int main() { return 0;}
12148 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
12149 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
12151 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
12152 lt_cv_ld_force_load=yes
12154 cat conftest.err >&5
12156 rm -f conftest.err libconftest.a conftest conftest.c
12157 rm -rf conftest.dSYM
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
12161 $as_echo "$lt_cv_ld_force_load" >&6; }
12163 rhapsody* | darwin1.[012])
12164 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
12166 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12167 darwin*) # darwin 5.x on
12168 # if running on 10.5 or later, the deployment target defaults
12169 # to the OS version, if on x86, and 10.4, the deployment
12170 # target defaults to 10.4. Don't you love it?
12171 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
12172 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
12173 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12175 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
12177 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
12181 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
12182 _lt_dar_single_mod='$single_module'
12184 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
12185 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
12187 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
12189 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
12190 _lt_dsymutil='~$DSYMUTIL $lib || :'
12197 for ac_header in dlfcn.h
12199 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
12201 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
12202 cat >>confdefs.h <<_ACEOF
12203 #define HAVE_DLFCN_H 1
12213 func_stripname_cnf ()
12216 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12217 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12219 } # func_stripname_cnf
12226 enable_win32_dll=yes
12229 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
12230 if test -n "$ac_tool_prefix"; then
12231 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12232 set dummy ${ac_tool_prefix}as; ac_word=$2
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12234 $as_echo_n "checking for $ac_word... " >&6; }
12235 if ${ac_cv_prog_AS+:} false; then :
12236 $as_echo_n "(cached) " >&6
12238 if test -n "$AS"; then
12239 ac_cv_prog_AS="$AS" # Let the user override the test.
12241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12242 for as_dir in $PATH
12245 test -z "$as_dir" && as_dir=.
12246 for ac_exec_ext in '' $ac_executable_extensions; do
12247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12248 ac_cv_prog_AS="${ac_tool_prefix}as"
12249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12259 if test -n "$AS"; then
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12261 $as_echo "$AS" >&6; }
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12264 $as_echo "no" >&6; }
12269 if test -z "$ac_cv_prog_AS"; then
12271 # Extract the first word of "as", so it can be a program name with args.
12272 set dummy as; ac_word=$2
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12274 $as_echo_n "checking for $ac_word... " >&6; }
12275 if ${ac_cv_prog_ac_ct_AS+:} false; then :
12276 $as_echo_n "(cached) " >&6
12278 if test -n "$ac_ct_AS"; then
12279 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12282 for as_dir in $PATH
12285 test -z "$as_dir" && as_dir=.
12286 for ac_exec_ext in '' $ac_executable_extensions; do
12287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12288 ac_cv_prog_ac_ct_AS="as"
12289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12298 ac_ct_AS=$ac_cv_prog_ac_ct_AS
12299 if test -n "$ac_ct_AS"; then
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12301 $as_echo "$ac_ct_AS" >&6; }
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12304 $as_echo "no" >&6; }
12307 if test "x$ac_ct_AS" = x; then
12310 case $cross_compiling:$ac_tool_warned in
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12313 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12314 ac_tool_warned=yes ;;
12319 AS="$ac_cv_prog_AS"
12322 if test -n "$ac_tool_prefix"; then
12323 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12324 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12326 $as_echo_n "checking for $ac_word... " >&6; }
12327 if ${ac_cv_prog_DLLTOOL+:} false; then :
12328 $as_echo_n "(cached) " >&6
12330 if test -n "$DLLTOOL"; then
12331 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12334 for as_dir in $PATH
12337 test -z "$as_dir" && as_dir=.
12338 for ac_exec_ext in '' $ac_executable_extensions; do
12339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12340 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12350 DLLTOOL=$ac_cv_prog_DLLTOOL
12351 if test -n "$DLLTOOL"; then
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12353 $as_echo "$DLLTOOL" >&6; }
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12356 $as_echo "no" >&6; }
12361 if test -z "$ac_cv_prog_DLLTOOL"; then
12362 ac_ct_DLLTOOL=$DLLTOOL
12363 # Extract the first word of "dlltool", so it can be a program name with args.
12364 set dummy dlltool; ac_word=$2
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12366 $as_echo_n "checking for $ac_word... " >&6; }
12367 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
12368 $as_echo_n "(cached) " >&6
12370 if test -n "$ac_ct_DLLTOOL"; then
12371 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12374 for as_dir in $PATH
12377 test -z "$as_dir" && as_dir=.
12378 for ac_exec_ext in '' $ac_executable_extensions; do
12379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12380 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12390 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12391 if test -n "$ac_ct_DLLTOOL"; then
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12393 $as_echo "$ac_ct_DLLTOOL" >&6; }
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12396 $as_echo "no" >&6; }
12399 if test "x$ac_ct_DLLTOOL" = x; then
12402 case $cross_compiling:$ac_tool_warned in
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12405 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12406 ac_tool_warned=yes ;;
12408 DLLTOOL=$ac_ct_DLLTOOL
12411 DLLTOOL="$ac_cv_prog_DLLTOOL"
12414 if test -n "$ac_tool_prefix"; then
12415 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12416 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12418 $as_echo_n "checking for $ac_word... " >&6; }
12419 if ${ac_cv_prog_OBJDUMP+:} false; then :
12420 $as_echo_n "(cached) " >&6
12422 if test -n "$OBJDUMP"; then
12423 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12426 for as_dir in $PATH
12429 test -z "$as_dir" && as_dir=.
12430 for ac_exec_ext in '' $ac_executable_extensions; do
12431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12432 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12442 OBJDUMP=$ac_cv_prog_OBJDUMP
12443 if test -n "$OBJDUMP"; then
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12445 $as_echo "$OBJDUMP" >&6; }
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12448 $as_echo "no" >&6; }
12453 if test -z "$ac_cv_prog_OBJDUMP"; then
12454 ac_ct_OBJDUMP=$OBJDUMP
12455 # Extract the first word of "objdump", so it can be a program name with args.
12456 set dummy objdump; ac_word=$2
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12458 $as_echo_n "checking for $ac_word... " >&6; }
12459 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
12460 $as_echo_n "(cached) " >&6
12462 if test -n "$ac_ct_OBJDUMP"; then
12463 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12466 for as_dir in $PATH
12469 test -z "$as_dir" && as_dir=.
12470 for ac_exec_ext in '' $ac_executable_extensions; do
12471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12472 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12482 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12483 if test -n "$ac_ct_OBJDUMP"; then
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12485 $as_echo "$ac_ct_OBJDUMP" >&6; }
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12488 $as_echo "no" >&6; }
12491 if test "x$ac_ct_OBJDUMP" = x; then
12494 case $cross_compiling:$ac_tool_warned in
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12497 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12498 ac_tool_warned=yes ;;
12500 OBJDUMP=$ac_ct_OBJDUMP
12503 OBJDUMP="$ac_cv_prog_OBJDUMP"
12509 test -z "$AS" && AS=as
12515 test -z "$DLLTOOL" && DLLTOOL=dlltool
12521 test -z "$OBJDUMP" && OBJDUMP=objdump
12531 # Check whether --enable-shared was given.
12532 if test "${enable_shared+set}" = set; then :
12533 enableval=$enable_shared; p=${PACKAGE-default}
12535 yes) enable_shared=yes ;;
12536 no) enable_shared=no ;;
12539 # Look at the argument we got. We use all the common list separators.
12540 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12541 for pkg in $enableval; do
12543 if test "X$pkg" = "X$p"; then
12562 # Check whether --enable-static was given.
12563 if test "${enable_static+set}" = set; then :
12564 enableval=$enable_static; p=${PACKAGE-default}
12566 yes) enable_static=yes ;;
12567 no) enable_static=no ;;
12570 # Look at the argument we got. We use all the common list separators.
12571 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12572 for pkg in $enableval; do
12574 if test "X$pkg" = "X$p"; then
12594 # Check whether --with-pic was given.
12595 if test "${with_pic+set}" = set; then :
12596 withval=$with_pic; pic_mode="$withval"
12602 test -z "$pic_mode" && pic_mode=default
12610 # Check whether --enable-fast-install was given.
12611 if test "${enable_fast_install+set}" = set; then :
12612 enableval=$enable_fast_install; p=${PACKAGE-default}
12614 yes) enable_fast_install=yes ;;
12615 no) enable_fast_install=no ;;
12617 enable_fast_install=no
12618 # Look at the argument we got. We use all the common list separators.
12619 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12620 for pkg in $enableval; do
12622 if test "X$pkg" = "X$p"; then
12623 enable_fast_install=yes
12630 enable_fast_install=yes
12643 # This can be used to rebuild libtool when needed
12644 LIBTOOL_DEPS="$ltmain"
12646 # Always use our own libtool.
12647 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12674 test -z "$LN_S" && LN_S="ln -s"
12689 if test -n "${ZSH_VERSION+set}" ; then
12690 setopt NO_GLOB_SUBST
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12694 $as_echo_n "checking for objdir... " >&6; }
12695 if ${lt_cv_objdir+:} false; then :
12696 $as_echo_n "(cached) " >&6
12698 rm -f .libs 2>/dev/null
12699 mkdir .libs 2>/dev/null
12700 if test -d .libs; then
12703 # MS-DOS does not allow filenames that begin with a dot.
12706 rmdir .libs 2>/dev/null
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12709 $as_echo "$lt_cv_objdir" >&6; }
12710 objdir=$lt_cv_objdir
12716 cat >>confdefs.h <<_ACEOF
12717 #define LT_OBJDIR "$lt_cv_objdir/"
12725 # AIX sometimes has problems with the GCC collect2 program. For some
12726 # reason, if we set the COLLECT_NAMES environment variable, the problems
12727 # vanish in a puff of smoke.
12728 if test "X${COLLECT_NAMES+set}" != Xset; then
12730 export COLLECT_NAMES
12735 # Global variables:
12737 can_build_shared=yes
12739 # All known linkers require a `.a' archive for static linking (except MSVC,
12740 # which needs '.lib').
12743 with_gnu_ld="$lt_cv_prog_gnu_ld"
12746 old_CFLAGS="$CFLAGS"
12748 # Set sane defaults for various variables
12749 test -z "$CC" && CC=cc
12750 test -z "$LTCC" && LTCC=$CC
12751 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12752 test -z "$LD" && LD=ld
12753 test -z "$ac_objext" && ac_objext=o
12755 for cc_temp in $compiler""; do
12757 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12758 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12763 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12766 # Only perform the check for file, if the check method requires it
12767 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12768 case $deplibs_check_method in
12770 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12772 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12773 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12774 $as_echo_n "(cached) " >&6
12778 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12781 lt_save_MAGIC_CMD="$MAGIC_CMD"
12782 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12783 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12784 for ac_dir in $ac_dummy; do
12786 test -z "$ac_dir" && ac_dir=.
12787 if test -f $ac_dir/${ac_tool_prefix}file; then
12788 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12789 if test -n "$file_magic_test_file"; then
12790 case $deplibs_check_method in
12792 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12793 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12794 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12795 $EGREP "$file_magic_regex" > /dev/null; then
12800 *** Warning: the command libtool uses to detect shared libraries,
12801 *** $file_magic_cmd, produces output that libtool cannot recognize.
12802 *** The result is that libtool may fail to recognize shared libraries
12803 *** as such. This will affect the creation of libtool libraries that
12804 *** depend on shared libraries, but programs linked with such libtool
12805 *** libraries will work regardless of this problem. Nevertheless, you
12806 *** may want to report the problem to your system manager and/or to
12807 *** bug-libtool@gnu.org
12817 MAGIC_CMD="$lt_save_MAGIC_CMD"
12822 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12823 if test -n "$MAGIC_CMD"; then
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12825 $as_echo "$MAGIC_CMD" >&6; }
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12828 $as_echo "no" >&6; }
12835 if test -z "$lt_cv_path_MAGIC_CMD"; then
12836 if test -n "$ac_tool_prefix"; then
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12838 $as_echo_n "checking for file... " >&6; }
12839 if ${lt_cv_path_MAGIC_CMD+:} false; then :
12840 $as_echo_n "(cached) " >&6
12844 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12847 lt_save_MAGIC_CMD="$MAGIC_CMD"
12848 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12849 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12850 for ac_dir in $ac_dummy; do
12852 test -z "$ac_dir" && ac_dir=.
12853 if test -f $ac_dir/file; then
12854 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12855 if test -n "$file_magic_test_file"; then
12856 case $deplibs_check_method in
12858 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12859 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12860 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12861 $EGREP "$file_magic_regex" > /dev/null; then
12866 *** Warning: the command libtool uses to detect shared libraries,
12867 *** $file_magic_cmd, produces output that libtool cannot recognize.
12868 *** The result is that libtool may fail to recognize shared libraries
12869 *** as such. This will affect the creation of libtool libraries that
12870 *** depend on shared libraries, but programs linked with such libtool
12871 *** libraries will work regardless of this problem. Nevertheless, you
12872 *** may want to report the problem to your system manager and/or to
12873 *** bug-libtool@gnu.org
12883 MAGIC_CMD="$lt_save_MAGIC_CMD"
12888 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12889 if test -n "$MAGIC_CMD"; then
12890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12891 $as_echo "$MAGIC_CMD" >&6; }
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12894 $as_echo "no" >&6; }
12907 # Use C for the default configuration in the libtool script
12911 ac_cpp='$CPP $CPPFLAGS'
12912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12917 # Source file extension for C test sources.
12920 # Object file extension for compiled C test sources.
12924 # Code to be used in simple compile tests
12925 lt_simple_compile_test_code="int some_variable = 0;"
12927 # Code to be used in simple link tests
12928 lt_simple_link_test_code='int main(){return(0);}'
12936 # If no C compiler was specified, use CC.
12939 # If no C compiler flags were specified, use CFLAGS.
12940 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12942 # Allow CC to be a program name with arguments.
12945 # Save the default compiler, since it gets overwritten when the other
12946 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12947 compiler_DEFAULT=$CC
12949 # save warnings/boilerplate of simple test code
12950 ac_outfile=conftest.$ac_objext
12951 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12952 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12953 _lt_compiler_boilerplate=`cat conftest.err`
12956 ac_outfile=conftest.$ac_objext
12957 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12958 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12959 _lt_linker_boilerplate=`cat conftest.err`
12964 ## There is no encapsulation within the following macros, do not change
12965 ## the running order or otherwise move them around unless you know exactly
12966 ## what you are doing...
12967 if test -n "$compiler"; then
12969 lt_prog_compiler_no_builtin_flag=
12971 if test "$GCC" = yes; then
12972 case $cc_basename in
12974 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12976 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12980 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12981 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
12982 $as_echo_n "(cached) " >&6
12984 lt_cv_prog_compiler_rtti_exceptions=no
12985 ac_outfile=conftest.$ac_objext
12986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12987 lt_compiler_flag="-fno-rtti -fno-exceptions"
12988 # Insert the option either (1) after the last *FLAGS variable, or
12989 # (2) before a word containing "conftest.", or (3) at the end.
12990 # Note that $ac_compile itself does not contain backslashes and begins
12991 # with a dollar sign (not a hyphen), so the echo should work correctly.
12992 # The option is referenced via a variable to avoid confusing sed.
12993 lt_compile=`echo "$ac_compile" | $SED \
12994 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12995 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12996 -e 's:$: $lt_compiler_flag:'`
12997 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12998 (eval "$lt_compile" 2>conftest.err)
13000 cat conftest.err >&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 if (exit $ac_status) && test -s "$ac_outfile"; then
13003 # The compiler can only warn and ignore the option if not recognized
13004 # So say no if there are warnings other than the usual output.
13005 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13006 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13007 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13008 lt_cv_prog_compiler_rtti_exceptions=yes
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13015 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13017 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13018 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13030 lt_prog_compiler_wl=
13031 lt_prog_compiler_pic=
13032 lt_prog_compiler_static=
13035 if test "$GCC" = yes; then
13036 lt_prog_compiler_wl='-Wl,'
13037 lt_prog_compiler_static='-static'
13041 # All AIX code is PIC.
13042 if test "$host_cpu" = ia64; then
13043 # AIX 5 now supports IA64 processor
13044 lt_prog_compiler_static='-Bstatic'
13051 # see comment about AmigaOS4 .so support
13052 lt_prog_compiler_pic='-fPIC'
13055 # FIXME: we need at least 68020 code to build shared libraries, but
13056 # adding the `-m68020' flag to GCC prevents building anything better,
13058 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13063 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13064 # PIC is the default for these OSes.
13067 mingw* | cygwin* | pw32* | os2* | cegcc*)
13068 # This hack is so that the source file can tell whether it is being
13069 # built for inclusion in a dll (and should export symbols for example).
13070 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13071 # (--disable-auto-import) libraries
13072 lt_prog_compiler_pic='-DDLL_EXPORT'
13075 darwin* | rhapsody*)
13076 # PIC is the default on this platform
13077 # Common symbols not allowed in MH_DYLIB files
13078 lt_prog_compiler_pic='-fno-common'
13082 # PIC is the default for Haiku.
13083 # The "-static" flag exists, but is broken.
13084 lt_prog_compiler_static=
13088 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13089 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13090 # sets the default TLS model and affects inlining.
13096 lt_prog_compiler_pic='-fPIC'
13102 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13103 # Instead, we relocate shared libraries at runtime.
13107 # Just because we use GCC doesn't mean we suddenly get shared libraries
13108 # on systems that don't support them.
13109 lt_prog_compiler_can_build_shared=no
13114 # QNX uses GNU C++, but need to define -shared option too, otherwise
13115 # it will coredump.
13116 lt_prog_compiler_pic='-fPIC -shared'
13120 if test -d /usr/nec; then
13121 lt_prog_compiler_pic=-Kconform_pic
13126 lt_prog_compiler_pic='-fPIC'
13130 case $cc_basename in
13131 nvcc*) # Cuda Compiler Driver 2.2
13132 lt_prog_compiler_wl='-Xlinker '
13133 lt_prog_compiler_pic='-Xcompiler -fPIC'
13137 # PORTME Check for flag to pass linker flags through the system compiler.
13140 lt_prog_compiler_wl='-Wl,'
13141 if test "$host_cpu" = ia64; then
13142 # AIX 5 now supports IA64 processor
13143 lt_prog_compiler_static='-Bstatic'
13145 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13149 mingw* | cygwin* | pw32* | os2* | cegcc*)
13150 # This hack is so that the source file can tell whether it is being
13151 # built for inclusion in a dll (and should export symbols for example).
13152 lt_prog_compiler_pic='-DDLL_EXPORT'
13155 hpux9* | hpux10* | hpux11*)
13156 lt_prog_compiler_wl='-Wl,'
13157 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13158 # not for PA HP-UX.
13164 lt_prog_compiler_pic='+Z'
13167 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13168 lt_prog_compiler_static='${wl}-a ${wl}archive'
13171 irix5* | irix6* | nonstopux*)
13172 lt_prog_compiler_wl='-Wl,'
13173 # PIC (with -KPIC) is the default.
13174 lt_prog_compiler_static='-non_shared'
13177 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13178 case $cc_basename in
13179 # old Intel for x86_64 which still supported -KPIC.
13181 lt_prog_compiler_wl='-Wl,'
13182 lt_prog_compiler_pic='-KPIC'
13183 lt_prog_compiler_static='-static'
13185 # icc used to be incompatible with GCC.
13186 # ICC 10 doesn't accept -KPIC any more.
13188 lt_prog_compiler_wl='-Wl,'
13189 lt_prog_compiler_pic='-fPIC'
13190 lt_prog_compiler_static='-static'
13192 # Lahey Fortran 8.1.
13194 lt_prog_compiler_wl='-Wl,'
13195 lt_prog_compiler_pic='--shared'
13196 lt_prog_compiler_static='--static'
13199 # NAG Fortran compiler
13200 lt_prog_compiler_wl='-Wl,-Wl,,'
13201 lt_prog_compiler_pic='-PIC'
13202 lt_prog_compiler_static='-Bstatic'
13204 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13205 # Portland Group compilers (*not* the Pentium gcc compiler,
13206 # which looks to be a dead project)
13207 lt_prog_compiler_wl='-Wl,'
13208 lt_prog_compiler_pic='-fpic'
13209 lt_prog_compiler_static='-Bstatic'
13212 lt_prog_compiler_wl='-Wl,'
13213 # All Alpha code is PIC.
13214 lt_prog_compiler_static='-non_shared'
13216 xl* | bgxl* | bgf* | mpixl*)
13217 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13218 lt_prog_compiler_wl='-Wl,'
13219 lt_prog_compiler_pic='-qpic'
13220 lt_prog_compiler_static='-qstaticlink'
13223 case `$CC -V 2>&1 | sed 5q` in
13224 *Sun\ F* | *Sun*Fortran*)
13225 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13226 lt_prog_compiler_pic='-KPIC'
13227 lt_prog_compiler_static='-Bstatic'
13228 lt_prog_compiler_wl=''
13232 lt_prog_compiler_pic='-KPIC'
13233 lt_prog_compiler_static='-Bstatic'
13234 lt_prog_compiler_wl='-Wl,'
13242 lt_prog_compiler_pic='-KPIC'
13243 lt_prog_compiler_static='-Bstatic'
13247 # QNX uses GNU C++, but need to define -shared option too, otherwise
13248 # it will coredump.
13249 lt_prog_compiler_pic='-fPIC -shared'
13252 osf3* | osf4* | osf5*)
13253 lt_prog_compiler_wl='-Wl,'
13254 # All OSF/1 code is PIC.
13255 lt_prog_compiler_static='-non_shared'
13259 lt_prog_compiler_static='-non_shared'
13263 lt_prog_compiler_pic='-KPIC'
13264 lt_prog_compiler_static='-Bstatic'
13265 case $cc_basename in
13266 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13267 lt_prog_compiler_wl='-Qoption ld ';;
13269 lt_prog_compiler_wl='-Wl,';;
13274 lt_prog_compiler_wl='-Qoption ld '
13275 lt_prog_compiler_pic='-PIC'
13276 lt_prog_compiler_static='-Bstatic'
13279 sysv4 | sysv4.2uw2* | sysv4.3*)
13280 lt_prog_compiler_wl='-Wl,'
13281 lt_prog_compiler_pic='-KPIC'
13282 lt_prog_compiler_static='-Bstatic'
13286 if test -d /usr/nec ;then
13287 lt_prog_compiler_pic='-Kconform_pic'
13288 lt_prog_compiler_static='-Bstatic'
13292 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13293 lt_prog_compiler_wl='-Wl,'
13294 lt_prog_compiler_pic='-KPIC'
13295 lt_prog_compiler_static='-Bstatic'
13299 lt_prog_compiler_wl='-Wl,'
13300 lt_prog_compiler_can_build_shared=no
13304 lt_prog_compiler_pic='-pic'
13305 lt_prog_compiler_static='-Bstatic'
13309 lt_prog_compiler_can_build_shared=no
13315 # For platforms which do not support PIC, -DPIC is meaningless:
13317 lt_prog_compiler_pic=
13320 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13325 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13326 if ${lt_cv_prog_compiler_pic+:} false; then :
13327 $as_echo_n "(cached) " >&6
13329 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13332 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
13333 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13336 # Check to make sure the PIC flag actually works.
13338 if test -n "$lt_prog_compiler_pic"; then
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13340 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13341 if ${lt_cv_prog_compiler_pic_works+:} false; then :
13342 $as_echo_n "(cached) " >&6
13344 lt_cv_prog_compiler_pic_works=no
13345 ac_outfile=conftest.$ac_objext
13346 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13347 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13348 # Insert the option either (1) after the last *FLAGS variable, or
13349 # (2) before a word containing "conftest.", or (3) at the end.
13350 # Note that $ac_compile itself does not contain backslashes and begins
13351 # with a dollar sign (not a hyphen), so the echo should work correctly.
13352 # The option is referenced via a variable to avoid confusing sed.
13353 lt_compile=`echo "$ac_compile" | $SED \
13354 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13355 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13356 -e 's:$: $lt_compiler_flag:'`
13357 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13358 (eval "$lt_compile" 2>conftest.err)
13360 cat conftest.err >&5
13361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13362 if (exit $ac_status) && test -s "$ac_outfile"; then
13363 # The compiler can only warn and ignore the option if not recognized
13364 # So say no if there are warnings other than the usual output.
13365 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13366 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13367 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13368 lt_cv_prog_compiler_pic_works=yes
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13375 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13377 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13378 case $lt_prog_compiler_pic in
13380 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13383 lt_prog_compiler_pic=
13384 lt_prog_compiler_can_build_shared=no
13400 # Check to make sure the static flag actually works.
13402 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13404 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13405 if ${lt_cv_prog_compiler_static_works+:} false; then :
13406 $as_echo_n "(cached) " >&6
13408 lt_cv_prog_compiler_static_works=no
13409 save_LDFLAGS="$LDFLAGS"
13410 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13411 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13412 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13413 # The linker can only warn and ignore the option if not recognized
13414 # So say no if there are warnings
13415 if test -s conftest.err; then
13416 # Append any errors to the config.log.
13417 cat conftest.err 1>&5
13418 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13419 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13420 if diff conftest.exp conftest.er2 >/dev/null; then
13421 lt_cv_prog_compiler_static_works=yes
13424 lt_cv_prog_compiler_static_works=yes
13428 LDFLAGS="$save_LDFLAGS"
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13432 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13434 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13437 lt_prog_compiler_static=
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13447 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13448 if ${lt_cv_prog_compiler_c_o+:} false; then :
13449 $as_echo_n "(cached) " >&6
13451 lt_cv_prog_compiler_c_o=no
13452 $RM -r conftest 2>/dev/null
13456 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13458 lt_compiler_flag="-o out/conftest2.$ac_objext"
13459 # Insert the option either (1) after the last *FLAGS variable, or
13460 # (2) before a word containing "conftest.", or (3) at the end.
13461 # Note that $ac_compile itself does not contain backslashes and begins
13462 # with a dollar sign (not a hyphen), so the echo should work correctly.
13463 lt_compile=`echo "$ac_compile" | $SED \
13464 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13465 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13466 -e 's:$: $lt_compiler_flag:'`
13467 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13468 (eval "$lt_compile" 2>out/conftest.err)
13470 cat out/conftest.err >&5
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13474 # The compiler can only warn and ignore the option if not recognized
13475 # So say no if there are warnings
13476 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13477 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13478 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13479 lt_cv_prog_compiler_c_o=yes
13484 # SGI C++ compiler will create directory out/ii_files/ for
13485 # template instantiation
13486 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13487 $RM out/* && rmdir out
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13494 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13502 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13503 if ${lt_cv_prog_compiler_c_o+:} false; then :
13504 $as_echo_n "(cached) " >&6
13506 lt_cv_prog_compiler_c_o=no
13507 $RM -r conftest 2>/dev/null
13511 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13513 lt_compiler_flag="-o out/conftest2.$ac_objext"
13514 # Insert the option either (1) after the last *FLAGS variable, or
13515 # (2) before a word containing "conftest.", or (3) at the end.
13516 # Note that $ac_compile itself does not contain backslashes and begins
13517 # with a dollar sign (not a hyphen), so the echo should work correctly.
13518 lt_compile=`echo "$ac_compile" | $SED \
13519 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13520 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13521 -e 's:$: $lt_compiler_flag:'`
13522 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13523 (eval "$lt_compile" 2>out/conftest.err)
13525 cat out/conftest.err >&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13529 # The compiler can only warn and ignore the option if not recognized
13530 # So say no if there are warnings
13531 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13532 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13533 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13534 lt_cv_prog_compiler_c_o=yes
13539 # SGI C++ compiler will create directory out/ii_files/ for
13540 # template instantiation
13541 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13542 $RM out/* && rmdir out
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13549 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13554 hard_links="nottested"
13555 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13556 # do not overwrite the value of need_locks provided by the user
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13558 $as_echo_n "checking if we can lock with hard links... " >&6; }
13561 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13563 ln conftest.a conftest.b 2>&5 || hard_links=no
13564 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13566 $as_echo "$hard_links" >&6; }
13567 if test "$hard_links" = no; then
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13569 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13582 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13585 allow_undefined_flag=
13586 always_export_symbols=no
13588 archive_expsym_cmds=
13589 compiler_needs_object=no
13590 enable_shared_with_static_runtimes=no
13591 export_dynamic_flag_spec=
13592 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13593 hardcode_automatic=no
13595 hardcode_direct_absolute=no
13596 hardcode_libdir_flag_spec=
13597 hardcode_libdir_flag_spec_ld=
13598 hardcode_libdir_separator=
13599 hardcode_minus_L=no
13600 hardcode_shlibpath_var=unsupported
13602 link_all_deplibs=unknown
13604 module_expsym_cmds=
13605 old_archive_from_new_cmds=
13606 old_archive_from_expsyms_cmds=
13607 thread_safe_flag_spec=
13608 whole_archive_flag_spec=
13609 # include_expsyms should be a list of space-separated symbols to be *always*
13610 # included in the symbol list
13612 # exclude_expsyms can be an extended regexp of symbols to exclude
13613 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13614 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13615 # as well as any symbol that contains `d'.
13616 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13617 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13618 # platforms (ab)use it in PIC code, but their linkers get confused if
13619 # the symbol is explicitly referenced. Since portable code cannot
13620 # rely on this symbol name, it's probably fine to never include it in
13621 # preloaded symbol tables.
13622 # Exclude shared library initialization/finalization symbols.
13623 extract_expsyms_cmds=
13626 cygwin* | mingw* | pw32* | cegcc*)
13627 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13628 # When not using gcc, we currently assume that we are using
13629 # Microsoft Visual C++.
13630 if test "$GCC" != yes; then
13635 # we just hope/assume this is gcc and not c89 (= MSVC++)
13645 # On some targets, GNU ld is compatible enough with the native linker
13646 # that we're better off using the native interface for both.
13647 lt_use_gnu_ld_interface=no
13648 if test "$with_gnu_ld" = yes; then
13651 # The AIX port of GNU ld has always aspired to compatibility
13652 # with the native linker. However, as the warning in the GNU ld
13653 # block says, versions before 2.19.5* couldn't really create working
13654 # shared libraries, regardless of the interface used.
13655 case `$LD -v 2>&1` in
13656 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13657 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13658 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13660 lt_use_gnu_ld_interface=yes
13665 lt_use_gnu_ld_interface=yes
13670 if test "$lt_use_gnu_ld_interface" = yes; then
13671 # If archive_cmds runs LD, not CC, wlarc should be empty
13674 # Set some defaults for GNU ld with shared library support. These
13675 # are reset later if shared libraries are not supported. Putting them
13676 # here allows them to be overridden if necessary.
13677 runpath_var=LD_RUN_PATH
13678 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13679 export_dynamic_flag_spec='${wl}--export-dynamic'
13680 # ancient GNU ld didn't support --whole-archive et. al.
13681 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13682 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13684 whole_archive_flag_spec=
13686 supports_anon_versioning=no
13687 case `$LD -v 2>&1` in
13688 *GNU\ gold*) supports_anon_versioning=yes ;;
13689 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13690 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13691 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13692 *\ 2.11.*) ;; # other 2.11 versions
13693 *) supports_anon_versioning=yes ;;
13696 # See if GNU ld supports shared libraries.
13699 # On AIX/PPC, the GNU linker is very broken
13700 if test "$host_cpu" != ia64; then
13704 *** Warning: the GNU linker, at least up to release 2.19, is reported
13705 *** to be unable to reliably create shared libraries on AIX.
13706 *** Therefore, libtool is disabling shared libraries support. If you
13707 *** really care for shared libraries, you may want to install binutils
13708 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13709 *** You will then need to restart the configuration process.
13718 # see comment about AmigaOS4 .so support
13719 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13720 archive_expsym_cmds=''
13723 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)'
13724 hardcode_libdir_flag_spec='-L$libdir'
13725 hardcode_minus_L=yes
13731 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13732 allow_undefined_flag=unsupported
13733 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13734 # support --undefined. This deserves some investigation. FIXME
13735 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13741 cygwin* | mingw* | pw32* | cegcc*)
13742 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13743 # as there is no search path for DLLs.
13744 hardcode_libdir_flag_spec='-L$libdir'
13745 export_dynamic_flag_spec='${wl}--export-all-symbols'
13746 allow_undefined_flag=unsupported
13747 always_export_symbols=no
13748 enable_shared_with_static_runtimes=yes
13749 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'
13750 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13752 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13753 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13754 # If the export-symbols file already is a .def file (1st line
13755 # is EXPORTS), use it as is; otherwise, prepend...
13756 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13757 cp $export_symbols $output_objdir/$soname.def;
13759 echo EXPORTS > $output_objdir/$soname.def;
13760 cat $export_symbols >> $output_objdir/$soname.def;
13762 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13769 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13770 link_all_deplibs=yes
13775 hardcode_shlibpath_var=no
13776 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13777 export_dynamic_flag_spec='${wl}-E'
13778 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13779 # Instead, shared libraries are loaded at an image base (0x10000000 by
13780 # default) and relocated if they conflict, which is a slow very memory
13781 # consuming and fragmenting process. To avoid this, we pick a random,
13782 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13783 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13784 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13785 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'
13788 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13790 if test "$host_os" = linux-dietlibc; then
13791 case $cc_basename in
13792 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13795 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13796 && test "$tmp_diet" = no
13798 tmp_addflag=' $pic_flag'
13799 tmp_sharedflag='-shared'
13800 case $cc_basename,$host_cpu in
13801 pgcc*) # Portland Group C compiler
13802 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'
13803 tmp_addflag=' $pic_flag'
13805 pgf77* | pgf90* | pgf95* | pgfortran*)
13806 # Portland Group f77 and f90 compilers
13807 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'
13808 tmp_addflag=' $pic_flag -Mnomain' ;;
13809 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13810 tmp_addflag=' -i_dynamic' ;;
13811 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13812 tmp_addflag=' -i_dynamic -nofor_main' ;;
13813 ifc* | ifort*) # Intel Fortran compiler
13814 tmp_addflag=' -nofor_main' ;;
13815 lf95*) # Lahey Fortran 8.1
13816 whole_archive_flag_spec=
13817 tmp_sharedflag='--shared' ;;
13818 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13819 tmp_sharedflag='-qmkshrobj'
13821 nvcc*) # Cuda Compiler Driver 2.2
13822 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'
13823 compiler_needs_object=yes
13826 case `$CC -V 2>&1 | sed 5q` in
13827 *Sun\ C*) # Sun C 5.9
13828 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'
13829 compiler_needs_object=yes
13830 tmp_sharedflag='-G' ;;
13831 *Sun\ F*) # Sun Fortran 8.3
13832 tmp_sharedflag='-G' ;;
13834 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13836 if test "x$supports_anon_versioning" = xyes; then
13837 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13838 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13839 echo "local: *; };" >> $output_objdir/$libname.ver~
13840 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13843 case $cc_basename in
13844 xlf* | bgf* | bgxlf* | mpixlf*)
13845 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13846 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13847 hardcode_libdir_flag_spec=
13848 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13849 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13850 if test "x$supports_anon_versioning" = xyes; then
13851 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13852 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13853 echo "local: *; };" >> $output_objdir/$libname.ver~
13854 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13864 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13865 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13868 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13869 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13874 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13878 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13879 *** create shared libraries on Solaris systems. Therefore, libtool
13880 *** is disabling shared libraries support. We urge you to upgrade GNU
13881 *** binutils to release 2.9.1 or newer. Another option is to modify
13882 *** your PATH or compiler configuration so that the native linker is
13883 *** used, and then restart.
13886 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13887 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13888 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13894 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13895 case `$LD -v 2>&1` in
13896 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13900 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13901 *** reliably create shared libraries on SCO systems. Therefore, libtool
13902 *** is disabling shared libraries support. We urge you to upgrade GNU
13903 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13904 *** your PATH or compiler configuration so that the native linker is
13905 *** used, and then restart.
13910 # For security reasons, it is highly recommended that you always
13911 # use absolute paths for naming shared libraries, and exclude the
13912 # DT_RUNPATH tag from executables and libraries. But doing so
13913 # requires that you compile everything twice, which is a pain.
13914 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13915 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13916 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13917 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13926 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13928 hardcode_direct=yes
13929 hardcode_shlibpath_var=no
13933 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13934 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13935 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13942 if test "$ld_shlibs" = no; then
13944 hardcode_libdir_flag_spec=
13945 export_dynamic_flag_spec=
13946 whole_archive_flag_spec=
13949 # PORTME fill in a description of your system's linker (not GNU ld)
13952 allow_undefined_flag=unsupported
13953 always_export_symbols=yes
13954 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'
13955 # Note: this linker hardcodes the directories in LIBPATH if there
13956 # are no directories specified by -L.
13957 hardcode_minus_L=yes
13958 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13959 # Neither direct hardcoding nor static linking is supported with a
13961 hardcode_direct=unsupported
13966 if test "$host_cpu" = ia64; then
13967 # On IA64, the linker does run time linking by default, so we don't
13968 # have to do anything special.
13969 aix_use_runtimelinking=no
13970 exp_sym_flag='-Bexport'
13973 # If we're using GNU nm, then we don't want the "-C" option.
13974 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13975 # Also, AIX nm treats weak defined symbols like other global
13976 # defined symbols, whereas GNU nm marks them as "W".
13977 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13978 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'
13980 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'
13982 aix_use_runtimelinking=no
13984 # Test if we are trying to use run time linking or normal
13985 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13986 # need to do runtime linking.
13987 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13988 for ld_flag in $LDFLAGS; do
13989 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13990 aix_use_runtimelinking=yes
13997 exp_sym_flag='-bexport'
13998 no_entry_flag='-bnoentry'
14001 # When large executables or shared objects are built, AIX ld can
14002 # have problems creating the table of contents. If linking a library
14003 # or program results in "error TOC overflow" add -mminimal-toc to
14004 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14005 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14008 hardcode_direct=yes
14009 hardcode_direct_absolute=yes
14010 hardcode_libdir_separator=':'
14011 link_all_deplibs=yes
14012 file_list_spec='${wl}-f,'
14014 if test "$GCC" = yes; then
14015 case $host_os in aix4.[012]|aix4.[012].*)
14016 # We only want to do this on AIX 4.2 and lower, the check
14017 # below for broken collect2 doesn't work under 4.3+
14018 collect2name=`${CC} -print-prog-name=collect2`
14019 if test -f "$collect2name" &&
14020 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14022 # We have reworked collect2
14025 # We have old collect2
14026 hardcode_direct=unsupported
14027 # It fails to find uninstalled libraries when the uninstalled
14028 # path is not listed in the libpath. Setting hardcode_minus_L
14029 # to unsupported forces relinking
14030 hardcode_minus_L=yes
14031 hardcode_libdir_flag_spec='-L$libdir'
14032 hardcode_libdir_separator=
14036 shared_flag='-shared'
14037 if test "$aix_use_runtimelinking" = yes; then
14038 shared_flag="$shared_flag "'${wl}-G'
14042 if test "$host_cpu" = ia64; then
14043 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14044 # chokes on -Wl,-G. The following line is correct:
14047 if test "$aix_use_runtimelinking" = yes; then
14048 shared_flag='${wl}-G'
14050 shared_flag='${wl}-bM:SRE'
14055 export_dynamic_flag_spec='${wl}-bexpall'
14056 # It seems that -bexpall does not export symbols beginning with
14057 # underscore (_), so it is better to generate a list of symbols to export.
14058 always_export_symbols=yes
14059 if test "$aix_use_runtimelinking" = yes; then
14060 # Warning - without using the other runtime loading flags (-brtl),
14061 # -berok will link without error, but may produce a broken library.
14062 allow_undefined_flag='-berok'
14063 # Determine the default libpath from the value encoded in an
14064 # empty executable.
14065 if test "${lt_cv_aix_libpath+set}" = set; then
14066 aix_libpath=$lt_cv_aix_libpath
14068 if ${lt_cv_aix_libpath_+:} false; then :
14069 $as_echo_n "(cached) " >&6
14071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14072 /* end confdefs.h. */
14082 if ac_fn_c_try_link "$LINENO"; then :
14084 lt_aix_libpath_sed='
14085 /Import File Strings/,/^$/ {
14087 s/^0 *\([^ ]*\) *$/\1/
14091 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14092 # Check for a 64-bit object if we didn't find anything.
14093 if test -z "$lt_cv_aix_libpath_"; then
14094 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14097 rm -f core conftest.err conftest.$ac_objext \
14098 conftest$ac_exeext conftest.$ac_ext
14099 if test -z "$lt_cv_aix_libpath_"; then
14100 lt_cv_aix_libpath_="/usr/lib:/lib"
14105 aix_libpath=$lt_cv_aix_libpath_
14108 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14109 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"
14111 if test "$host_cpu" = ia64; then
14112 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14113 allow_undefined_flag="-z nodefs"
14114 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"
14116 # Determine the default libpath from the value encoded in an
14117 # empty executable.
14118 if test "${lt_cv_aix_libpath+set}" = set; then
14119 aix_libpath=$lt_cv_aix_libpath
14121 if ${lt_cv_aix_libpath_+:} false; then :
14122 $as_echo_n "(cached) " >&6
14124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14125 /* end confdefs.h. */
14135 if ac_fn_c_try_link "$LINENO"; then :
14137 lt_aix_libpath_sed='
14138 /Import File Strings/,/^$/ {
14140 s/^0 *\([^ ]*\) *$/\1/
14144 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14145 # Check for a 64-bit object if we didn't find anything.
14146 if test -z "$lt_cv_aix_libpath_"; then
14147 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14150 rm -f core conftest.err conftest.$ac_objext \
14151 conftest$ac_exeext conftest.$ac_ext
14152 if test -z "$lt_cv_aix_libpath_"; then
14153 lt_cv_aix_libpath_="/usr/lib:/lib"
14158 aix_libpath=$lt_cv_aix_libpath_
14161 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14162 # Warning - without using the other run time loading flags,
14163 # -berok will link without error, but may produce a broken library.
14164 no_undefined_flag=' ${wl}-bernotok'
14165 allow_undefined_flag=' ${wl}-berok'
14166 if test "$with_gnu_ld" = yes; then
14167 # We only use this code for GNU lds that support --whole-archive.
14168 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14170 # Exported symbols can be pulled into shared objects from archives
14171 whole_archive_flag_spec='$convenience'
14173 archive_cmds_need_lc=yes
14174 # This is similar to how AIX traditionally builds its shared libraries.
14175 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'
14183 # see comment about AmigaOS4 .so support
14184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14185 archive_expsym_cmds=''
14188 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)'
14189 hardcode_libdir_flag_spec='-L$libdir'
14190 hardcode_minus_L=yes
14196 export_dynamic_flag_spec=-rdynamic
14199 cygwin* | mingw* | pw32* | cegcc*)
14200 # When not using gcc, we currently assume that we are using
14201 # Microsoft Visual C++.
14202 # hardcode_libdir_flag_spec is actually meaningless, as there is
14203 # no search path for DLLs.
14204 case $cc_basename in
14207 hardcode_libdir_flag_spec=' '
14208 allow_undefined_flag=unsupported
14209 always_export_symbols=yes
14211 # Tell ltmain to make .lib files, not .a files.
14213 # Tell ltmain to make .dll files, not .so files.
14215 # FIXME: Setting linknames here is a bad hack.
14216 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14217 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14218 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14220 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14222 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14224 # The linker will not automatically build a static lib if we build a DLL.
14225 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14226 enable_shared_with_static_runtimes=yes
14227 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14229 old_postinstall_cmds='chmod 644 $oldlib'
14230 postlink_cmds='lt_outputfile="@OUTPUT@"~
14231 lt_tool_outputfile="@TOOL_OUTPUT@"~
14232 case $lt_outputfile in
14235 lt_outputfile="$lt_outputfile.exe"
14236 lt_tool_outputfile="$lt_tool_outputfile.exe"
14239 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14240 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14241 $RM "$lt_outputfile.manifest";
14245 # Assume MSVC wrapper
14246 hardcode_libdir_flag_spec=' '
14247 allow_undefined_flag=unsupported
14248 # Tell ltmain to make .lib files, not .a files.
14250 # Tell ltmain to make .dll files, not .so files.
14252 # FIXME: Setting linknames here is a bad hack.
14253 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14254 # The linker will automatically build a .lib file if we build a DLL.
14255 old_archive_from_new_cmds='true'
14256 # FIXME: Should let the user specify the lib program.
14257 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14258 enable_shared_with_static_runtimes=yes
14263 darwin* | rhapsody*)
14266 archive_cmds_need_lc=no
14268 hardcode_automatic=yes
14269 hardcode_shlibpath_var=unsupported
14270 if test "$lt_cv_ld_force_load" = "yes"; then
14271 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\"`'
14273 whole_archive_flag_spec=''
14275 link_all_deplibs=yes
14276 allow_undefined_flag="$_lt_dar_allow_undefined"
14277 case $cc_basename in
14278 ifort*) _lt_dar_can_shared=yes ;;
14279 *) _lt_dar_can_shared=$GCC ;;
14281 if test "$_lt_dar_can_shared" = "yes"; then
14282 output_verbose_link_cmd=func_echo_all
14283 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14284 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14285 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}"
14286 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}"
14295 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14296 hardcode_libdir_flag_spec='-L$libdir'
14297 hardcode_shlibpath_var=no
14304 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14305 # support. Future versions do this automatically, but an explicit c++rt0.o
14306 # does not break anything, and helps significantly (at the cost of a little
14309 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14310 hardcode_libdir_flag_spec='-R$libdir'
14311 hardcode_direct=yes
14312 hardcode_shlibpath_var=no
14315 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14317 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14318 hardcode_direct=yes
14319 hardcode_minus_L=yes
14320 hardcode_shlibpath_var=no
14323 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14324 freebsd* | dragonfly*)
14325 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14326 hardcode_libdir_flag_spec='-R$libdir'
14327 hardcode_direct=yes
14328 hardcode_shlibpath_var=no
14332 if test "$GCC" = yes; then
14333 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'
14335 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'
14337 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14338 hardcode_libdir_separator=:
14339 hardcode_direct=yes
14341 # hardcode_minus_L: Not really in the search PATH,
14342 # but as the default location of the library.
14343 hardcode_minus_L=yes
14344 export_dynamic_flag_spec='${wl}-E'
14348 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14349 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14351 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14353 if test "$with_gnu_ld" = no; then
14354 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14355 hardcode_libdir_flag_spec_ld='+b $libdir'
14356 hardcode_libdir_separator=:
14357 hardcode_direct=yes
14358 hardcode_direct_absolute=yes
14359 export_dynamic_flag_spec='${wl}-E'
14360 # hardcode_minus_L: Not really in the search PATH,
14361 # but as the default location of the library.
14362 hardcode_minus_L=yes
14367 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14370 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14373 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14376 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14382 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14385 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14389 # Older versions of the 11.00 compiler do not understand -b yet
14390 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14392 $as_echo_n "checking if $CC understands -b... " >&6; }
14393 if ${lt_cv_prog_compiler__b+:} false; then :
14394 $as_echo_n "(cached) " >&6
14396 lt_cv_prog_compiler__b=no
14397 save_LDFLAGS="$LDFLAGS"
14398 LDFLAGS="$LDFLAGS -b"
14399 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14400 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14401 # The linker can only warn and ignore the option if not recognized
14402 # So say no if there are warnings
14403 if test -s conftest.err; then
14404 # Append any errors to the config.log.
14405 cat conftest.err 1>&5
14406 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14408 if diff conftest.exp conftest.er2 >/dev/null; then
14409 lt_cv_prog_compiler__b=yes
14412 lt_cv_prog_compiler__b=yes
14416 LDFLAGS="$save_LDFLAGS"
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14420 $as_echo "$lt_cv_prog_compiler__b" >&6; }
14422 if test x"$lt_cv_prog_compiler__b" = xyes; then
14423 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14425 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14431 if test "$with_gnu_ld" = no; then
14432 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14433 hardcode_libdir_separator=:
14438 hardcode_shlibpath_var=no
14441 hardcode_direct=yes
14442 hardcode_direct_absolute=yes
14443 export_dynamic_flag_spec='${wl}-E'
14445 # hardcode_minus_L: Not really in the search PATH,
14446 # but as the default location of the library.
14447 hardcode_minus_L=yes
14453 irix5* | irix6* | nonstopux*)
14454 if test "$GCC" = yes; then
14455 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'
14456 # Try to use the -exported_symbol ld option, if it does not
14457 # work, assume that -exports_file does not work either and
14458 # implicitly export all symbols.
14459 # This should be the same for all languages, so no per-tag cache variable.
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14461 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14462 if ${lt_cv_irix_exported_symbol+:} false; then :
14463 $as_echo_n "(cached) " >&6
14465 save_LDFLAGS="$LDFLAGS"
14466 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14468 /* end confdefs.h. */
14469 int foo (void) { return 0; }
14471 if ac_fn_c_try_link "$LINENO"; then :
14472 lt_cv_irix_exported_symbol=yes
14474 lt_cv_irix_exported_symbol=no
14476 rm -f core conftest.err conftest.$ac_objext \
14477 conftest$ac_exeext conftest.$ac_ext
14478 LDFLAGS="$save_LDFLAGS"
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14481 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
14482 if test "$lt_cv_irix_exported_symbol" = yes; then
14483 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'
14486 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'
14487 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'
14489 archive_cmds_need_lc='no'
14490 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14491 hardcode_libdir_separator=:
14493 link_all_deplibs=yes
14497 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14498 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14500 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14502 hardcode_libdir_flag_spec='-R$libdir'
14503 hardcode_direct=yes
14504 hardcode_shlibpath_var=no
14508 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14509 hardcode_direct=yes
14510 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14511 hardcode_libdir_separator=:
14512 hardcode_shlibpath_var=no
14519 if test -f /usr/libexec/ld.so; then
14520 hardcode_direct=yes
14521 hardcode_shlibpath_var=no
14522 hardcode_direct_absolute=yes
14523 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14524 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14525 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14526 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14527 export_dynamic_flag_spec='${wl}-E'
14530 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14531 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14532 hardcode_libdir_flag_spec='-R$libdir'
14535 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14536 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14546 hardcode_libdir_flag_spec='-L$libdir'
14547 hardcode_minus_L=yes
14548 allow_undefined_flag=unsupported
14549 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'
14550 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14554 if test "$GCC" = yes; then
14555 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14556 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'
14558 allow_undefined_flag=' -expect_unresolved \*'
14559 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'
14561 archive_cmds_need_lc='no'
14562 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14563 hardcode_libdir_separator=:
14566 osf4* | osf5*) # as osf3* with the addition of -msym flag
14567 if test "$GCC" = yes; then
14568 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14569 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'
14570 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14572 allow_undefined_flag=' -expect_unresolved \*'
14573 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'
14574 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~
14575 $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'
14577 # Both c and cxx compiler support -rpath directly
14578 hardcode_libdir_flag_spec='-rpath $libdir'
14580 archive_cmds_need_lc='no'
14581 hardcode_libdir_separator=:
14585 no_undefined_flag=' -z defs'
14586 if test "$GCC" = yes; then
14588 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14589 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14590 $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'
14592 case `$CC -V 2>&1` in
14595 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14596 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14597 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14601 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14602 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14603 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14607 hardcode_libdir_flag_spec='-R$libdir'
14608 hardcode_shlibpath_var=no
14610 solaris2.[0-5] | solaris2.[0-5].*) ;;
14612 # The compiler driver will combine and reorder linker options,
14613 # but understands `-z linker_flag'. GCC discards it without `$wl',
14614 # but is careful enough not to reorder.
14615 # Supported since Solaris 2.6 (maybe 2.5.1?)
14616 if test "$GCC" = yes; then
14617 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14619 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14623 link_all_deplibs=yes
14627 if test "x$host_vendor" = xsequent; then
14628 # Use $CC to link under sequent, because it throws in some extra .o
14629 # files that make .init and .fini sections work.
14630 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14632 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14634 hardcode_libdir_flag_spec='-L$libdir'
14635 hardcode_direct=yes
14636 hardcode_minus_L=yes
14637 hardcode_shlibpath_var=no
14641 case $host_vendor in
14643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14644 hardcode_direct=yes # is this really true???
14647 ## LD is ld it makes a PLAMLIB
14648 ## CC just makes a GrossModule.
14649 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14650 reload_cmds='$CC -r -o $output$reload_objs'
14654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14655 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14658 runpath_var='LD_RUN_PATH'
14659 hardcode_shlibpath_var=no
14663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14664 hardcode_shlibpath_var=no
14665 export_dynamic_flag_spec='-Bexport'
14669 if test -d /usr/nec; then
14670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14671 hardcode_shlibpath_var=no
14672 runpath_var=LD_RUN_PATH
14673 hardcode_runpath_var=yes
14678 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14679 no_undefined_flag='${wl}-z,text'
14680 archive_cmds_need_lc=no
14681 hardcode_shlibpath_var=no
14682 runpath_var='LD_RUN_PATH'
14684 if test "$GCC" = yes; then
14685 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14686 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14688 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14689 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14693 sysv5* | sco3.2v5* | sco5v6*)
14694 # Note: We can NOT use -z defs as we might desire, because we do not
14695 # link with -lc, and that would cause any symbols used from libc to
14696 # always be unresolved, which means just about no library would
14697 # ever link correctly. If we're not using GNU ld we use -z text
14698 # though, which does catch some bad symbols but isn't as heavy-handed
14700 no_undefined_flag='${wl}-z,text'
14701 allow_undefined_flag='${wl}-z,nodefs'
14702 archive_cmds_need_lc=no
14703 hardcode_shlibpath_var=no
14704 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14705 hardcode_libdir_separator=':'
14706 link_all_deplibs=yes
14707 export_dynamic_flag_spec='${wl}-Bexport'
14708 runpath_var='LD_RUN_PATH'
14710 if test "$GCC" = yes; then
14711 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14712 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14714 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14715 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14721 hardcode_libdir_flag_spec='-L$libdir'
14722 hardcode_shlibpath_var=no
14730 if test x$host_vendor = xsni; then
14732 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14733 export_dynamic_flag_spec='${wl}-Blargedynsym'
14739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14740 $as_echo "$ld_shlibs" >&6; }
14741 test "$ld_shlibs" = no && can_build_shared=no
14743 with_gnu_ld=$with_gnu_ld
14760 # Do we need to explicitly link libc?
14762 case "x$archive_cmds_need_lc" in
14764 # Assume -lc should be added
14765 archive_cmds_need_lc=yes
14767 if test "$enable_shared" = yes && test "$GCC" = yes; then
14768 case $archive_cmds in
14770 # FIXME: we may have to deal with multi-command sequences.
14773 # Test whether the compiler implicitly links with -lc since on some
14774 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14775 # to ld, don't add -lc before -lgcc.
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14777 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14778 if ${lt_cv_archive_cmds_need_lc+:} false; then :
14779 $as_echo_n "(cached) " >&6
14782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14785 (eval $ac_compile) 2>&5
14787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14788 test $ac_status = 0; } 2>conftest.err; then
14791 libobjs=conftest.$ac_objext
14793 wl=$lt_prog_compiler_wl
14794 pic_flag=$lt_prog_compiler_pic
14800 lt_save_allow_undefined_flag=$allow_undefined_flag
14801 allow_undefined_flag=
14802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14803 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14806 test $ac_status = 0; }
14808 lt_cv_archive_cmds_need_lc=no
14810 lt_cv_archive_cmds_need_lc=yes
14812 allow_undefined_flag=$lt_save_allow_undefined_flag
14814 cat conftest.err 1>&5
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14820 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14821 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14985 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14987 if test "$GCC" = yes; then
14989 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14990 *) lt_awk_arg="/^libraries:/" ;;
14993 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14994 *) lt_sed_strip_eq="s,=/,/,g" ;;
14996 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14997 case $lt_search_path_spec in
14999 # if the path contains ";" then we assume it to be the separator
15000 # otherwise default to the standard path separator (i.e. ":") - it is
15001 # assumed that no part of a normal pathname contains ";" but that should
15002 # okay in the real world where ";" in dirpaths is itself problematic.
15003 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15006 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15009 # Ok, now we have the path, separated by spaces, we can step through it
15010 # and add multilib dir if necessary.
15011 lt_tmp_lt_search_path_spec=
15012 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15013 for lt_sys_path in $lt_search_path_spec; do
15014 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15015 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15017 test -d "$lt_sys_path" && \
15018 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15021 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
15022 BEGIN {RS=" "; FS="/|\n";} {
15025 for (lt_i = NF; lt_i > 0; lt_i--) {
15026 if ($lt_i != "" && $lt_i != ".") {
15027 if ($lt_i == "..") {
15030 if (lt_count == 0) {
15031 lt_foo="/" $lt_i lt_foo;
15038 if (lt_foo != "") { lt_freq[lt_foo]++; }
15039 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15041 # AWK program above erroneously prepends '/' to C:/dos/paths
15044 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15045 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15047 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
15049 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15051 library_names_spec=
15052 libname_spec='lib$name'
15056 postuninstall_cmds=
15060 shlibpath_overrides_runpath=unknown
15062 dynamic_linker="$host_os ld.so"
15063 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15064 need_lib_prefix=unknown
15065 hardcode_into_libs=no
15067 # when you set need_version to no, make sure it does not cause -set_version
15068 # flags to be left without arguments
15069 need_version=unknown
15074 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15075 shlibpath_var=LIBPATH
15077 # AIX 3 has no versioning support, so we append a major version to the name.
15078 soname_spec='${libname}${release}${shared_ext}$major'
15085 hardcode_into_libs=yes
15086 if test "$host_cpu" = ia64; then
15087 # AIX 5 supports IA64
15088 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15089 shlibpath_var=LD_LIBRARY_PATH
15091 # With GCC up to 2.95.x, collect2 would create an import file
15092 # for dependence libraries. The import file would start with
15093 # the line `#! .'. This would cause the generated library to
15094 # depend on `.', always an invalid library. This was fixed in
15095 # development snapshots of GCC prior to 3.0.
15097 aix4 | aix4.[01] | aix4.[01].*)
15098 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15100 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15103 can_build_shared=no
15107 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15108 # soname into executable. Probably we can add versioning support to
15109 # collect2, so additional links can be useful in future.
15110 if test "$aix_use_runtimelinking" = yes; then
15111 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15112 # instead of lib<name>.a to let people know that these are not
15113 # typical AIX shared libraries.
15114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15116 # We preserve .a as extension for shared libraries through AIX4.2
15117 # and later when we are not doing run time linking.
15118 library_names_spec='${libname}${release}.a $libname.a'
15119 soname_spec='${libname}${release}${shared_ext}$major'
15121 shlibpath_var=LIBPATH
15128 # Since July 2007 AmigaOS4 officially supports .so libraries.
15129 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15133 library_names_spec='$libname.ixlibrary $libname.a'
15134 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15135 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'
15141 library_names_spec='${libname}${shared_ext}'
15142 dynamic_linker="$host_os ld.so"
15143 shlibpath_var=LIBRARY_PATH
15149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15150 soname_spec='${libname}${release}${shared_ext}$major'
15151 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15152 shlibpath_var=LD_LIBRARY_PATH
15153 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15154 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15155 # the default ld.so.conf also contains /usr/contrib/lib and
15156 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15157 # libtool to hard-code these into programs
15160 cygwin* | mingw* | pw32* | cegcc*)
15161 version_type=windows
15166 case $GCC,$cc_basename in
15169 library_names_spec='$libname.dll.a'
15170 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15171 postinstall_cmds='base_file=`basename \${file}`~
15172 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15173 dldir=$destdir/`dirname \$dlpath`~
15174 test -d \$dldir || mkdir -p \$dldir~
15175 $install_prog $dir/$dlname \$dldir/$dlname~
15176 chmod a+x \$dldir/$dlname~
15177 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15178 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15180 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15181 dlpath=$dir/\$dldll~
15183 shlibpath_overrides_runpath=yes
15187 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15188 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15190 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15193 # MinGW DLLs use traditional 'lib' prefix
15194 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15197 # pw32 DLLs use 'pw' prefix rather than 'lib'
15198 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15201 dynamic_linker='Win32 ld.exe'
15206 libname_spec='$name'
15207 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15208 library_names_spec='${libname}.dll.lib'
15212 sys_lib_search_path_spec=
15215 for lt_path in $LIB
15218 # Let DOS variable expansion print the short 8.3 style file name.
15219 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15220 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15223 # Convert to MSYS style.
15224 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15227 # Convert to unix form, then to dos form, then back to unix form
15228 # but this time dos style (no spaces!) so that the unix form looks
15229 # like /cygdrive/c/PROGRA~1:/cygdr...
15230 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15231 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15232 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15235 sys_lib_search_path_spec="$LIB"
15236 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15237 # It is most probably a Windows format PATH.
15238 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15240 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15242 # FIXME: find the short name or the path components, as spaces are
15243 # common. (e.g. "Program Files" -> "PROGRA~1")
15247 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15248 postinstall_cmds='base_file=`basename \${file}`~
15249 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15250 dldir=$destdir/`dirname \$dlpath`~
15251 test -d \$dldir || mkdir -p \$dldir~
15252 $install_prog $dir/$dlname \$dldir/$dlname'
15253 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15254 dlpath=$dir/\$dldll~
15256 shlibpath_overrides_runpath=yes
15257 dynamic_linker='Win32 link.exe'
15261 # Assume MSVC wrapper
15262 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15263 dynamic_linker='Win32 ld.exe'
15266 # FIXME: first we should search . and the directory the executable is in
15270 darwin* | rhapsody*)
15271 dynamic_linker="$host_os dyld"
15272 version_type=darwin
15275 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15276 soname_spec='${libname}${release}${major}$shared_ext'
15277 shlibpath_overrides_runpath=yes
15278 shlibpath_var=DYLD_LIBRARY_PATH
15279 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15281 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15282 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15290 soname_spec='${libname}${release}${shared_ext}$major'
15291 shlibpath_var=LD_LIBRARY_PATH
15298 freebsd* | dragonfly*)
15299 # DragonFly does not have aout. When/if they implement a new
15300 # versioning mechanism, adjust this.
15301 if test -x /usr/bin/objformat; then
15302 objformat=`/usr/bin/objformat`
15305 freebsd[123]*) objformat=aout ;;
15306 *) objformat=elf ;;
15309 version_type=freebsd-$objformat
15310 case $version_type in
15312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15317 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15321 shlibpath_var=LD_LIBRARY_PATH
15324 shlibpath_overrides_runpath=yes
15326 freebsd3.[01]* | freebsdelf3.[01]*)
15327 shlibpath_overrides_runpath=yes
15328 hardcode_into_libs=yes
15330 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15331 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15332 shlibpath_overrides_runpath=no
15333 hardcode_into_libs=yes
15335 *) # from 4.6 on, and DragonFly
15336 shlibpath_overrides_runpath=yes
15337 hardcode_into_libs=yes
15346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15347 soname_spec='${libname}${release}${shared_ext}$major'
15348 shlibpath_var=LD_LIBRARY_PATH
15349 hardcode_into_libs=yes
15356 dynamic_linker="$host_os runtime_loader"
15357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15358 soname_spec='${libname}${release}${shared_ext}$major'
15359 shlibpath_var=LIBRARY_PATH
15360 shlibpath_overrides_runpath=yes
15361 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15362 hardcode_into_libs=yes
15365 hpux9* | hpux10* | hpux11*)
15366 # Give a soname corresponding to the major version so that dld.sl refuses to
15367 # link against other versions.
15374 hardcode_into_libs=yes
15375 dynamic_linker="$host_os dld.so"
15376 shlibpath_var=LD_LIBRARY_PATH
15377 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15379 soname_spec='${libname}${release}${shared_ext}$major'
15380 if test "X$HPUX_IA64_MODE" = X32; then
15381 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15383 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15385 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15389 hardcode_into_libs=yes
15390 dynamic_linker="$host_os dld.sl"
15391 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15392 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15394 soname_spec='${libname}${release}${shared_ext}$major'
15395 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15396 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15400 dynamic_linker="$host_os dld.sl"
15401 shlibpath_var=SHLIB_PATH
15402 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15404 soname_spec='${libname}${release}${shared_ext}$major'
15407 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15408 postinstall_cmds='chmod 555 $lib'
15409 # or fails outright, so override atomically:
15410 install_override_mode=555
15417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15418 soname_spec='${libname}${release}${shared_ext}$major'
15419 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15420 shlibpath_var=LD_LIBRARY_PATH
15421 shlibpath_overrides_runpath=no
15422 hardcode_into_libs=yes
15425 irix5* | irix6* | nonstopux*)
15427 nonstopux*) version_type=nonstopux ;;
15429 if test "$lt_cv_prog_gnu_ld" = yes; then
15437 soname_spec='${libname}${release}${shared_ext}$major'
15438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15440 irix5* | nonstopux*)
15441 libsuff= shlibsuff=
15444 case $LD in # libtool.m4 will add one of these switches to LD
15445 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15446 libsuff= shlibsuff= libmagic=32-bit;;
15447 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15448 libsuff=32 shlibsuff=N32 libmagic=N32;;
15449 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15450 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15451 *) libsuff= shlibsuff= libmagic=never-match;;
15455 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15456 shlibpath_overrides_runpath=no
15457 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15458 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15459 hardcode_into_libs=yes
15462 # No shared lib support for Linux oldld, aout, or coff.
15463 linux*oldld* | linux*aout* | linux*coff*)
15467 # This must be Linux ELF.
15468 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15473 soname_spec='${libname}${release}${shared_ext}$major'
15474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15475 shlibpath_var=LD_LIBRARY_PATH
15476 shlibpath_overrides_runpath=no
15478 # Some binutils ld are patched to set DT_RUNPATH
15479 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15480 $as_echo_n "(cached) " >&6
15482 lt_cv_shlibpath_overrides_runpath=no
15483 save_LDFLAGS=$LDFLAGS
15484 save_libdir=$libdir
15485 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15486 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15488 /* end confdefs.h. */
15498 if ac_fn_c_try_link "$LINENO"; then :
15499 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15500 lt_cv_shlibpath_overrides_runpath=yes
15503 rm -f core conftest.err conftest.$ac_objext \
15504 conftest$ac_exeext conftest.$ac_ext
15505 LDFLAGS=$save_LDFLAGS
15506 libdir=$save_libdir
15510 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15512 # This implies no fast_install, which is unacceptable.
15513 # Some rework will be needed to allow for fast_install
15514 # before this can be enabled.
15515 hardcode_into_libs=yes
15517 # Add ABI-specific directories to the system library path.
15518 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15520 # Append ld.so.conf contents to the search path
15521 if test -f /etc/ld.so.conf; then
15522 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' ' '`
15523 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15527 # We used to test for /lib/ld.so.1 and disable shared libraries on
15528 # powerpc, because MkLinux only supported shared libraries with the
15529 # GNU dynamic linker. Since this was broken with cross compilers,
15530 # most powerpc-linux boxes support dynamic linking these days and
15531 # people can always --disable-shared, the test was removed, and we
15532 # assume the GNU/Linux dynamic linker is in use.
15533 dynamic_linker='GNU/Linux ld.so'
15540 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15543 dynamic_linker='NetBSD (a.out) ld.so'
15545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15546 soname_spec='${libname}${release}${shared_ext}$major'
15547 dynamic_linker='NetBSD ld.elf_so'
15549 shlibpath_var=LD_LIBRARY_PATH
15550 shlibpath_overrides_runpath=yes
15551 hardcode_into_libs=yes
15556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15557 shlibpath_var=LD_LIBRARY_PATH
15558 shlibpath_overrides_runpath=yes
15565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15566 soname_spec='${libname}${release}${shared_ext}$major'
15567 shlibpath_var=LD_LIBRARY_PATH
15568 shlibpath_overrides_runpath=no
15569 hardcode_into_libs=yes
15570 dynamic_linker='ldqnx.so'
15575 sys_lib_dlsearch_path_spec="/usr/lib"
15577 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15579 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15580 *) need_version=no ;;
15582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15583 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15584 shlibpath_var=LD_LIBRARY_PATH
15585 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15587 openbsd2.[89] | openbsd2.[89].*)
15588 shlibpath_overrides_runpath=no
15591 shlibpath_overrides_runpath=yes
15595 shlibpath_overrides_runpath=yes
15600 libname_spec='$name'
15603 library_names_spec='$libname${shared_ext} $libname.a'
15604 dynamic_linker='OS/2 ld.exe'
15605 shlibpath_var=LIBPATH
15608 osf3* | osf4* | osf5*)
15612 soname_spec='${libname}${release}${shared_ext}$major'
15613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15614 shlibpath_var=LD_LIBRARY_PATH
15615 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15616 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15628 soname_spec='${libname}${release}${shared_ext}$major'
15629 shlibpath_var=LD_LIBRARY_PATH
15630 shlibpath_overrides_runpath=yes
15631 hardcode_into_libs=yes
15632 # ldd complains unless libraries are executable
15633 postinstall_cmds='chmod +x $lib'
15638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15639 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15640 shlibpath_var=LD_LIBRARY_PATH
15641 shlibpath_overrides_runpath=yes
15642 if test "$with_gnu_ld" = yes; then
15650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15651 soname_spec='${libname}${release}${shared_ext}$major'
15652 shlibpath_var=LD_LIBRARY_PATH
15653 case $host_vendor in
15655 shlibpath_overrides_runpath=no
15657 runpath_var=LD_RUN_PATH
15665 shlibpath_overrides_runpath=no
15666 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15672 if test -d /usr/nec ;then
15674 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15675 soname_spec='$libname${shared_ext}.$major'
15676 shlibpath_var=LD_LIBRARY_PATH
15680 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15681 version_type=freebsd-elf
15684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15685 soname_spec='${libname}${release}${shared_ext}$major'
15686 shlibpath_var=LD_LIBRARY_PATH
15687 shlibpath_overrides_runpath=yes
15688 hardcode_into_libs=yes
15689 if test "$with_gnu_ld" = yes; then
15690 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15692 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15695 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15699 sys_lib_dlsearch_path_spec='/usr/lib'
15703 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15708 shlibpath_var=LD_LIBRARY_PATH
15709 shlibpath_overrides_runpath=no
15710 hardcode_into_libs=yes
15715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15716 soname_spec='${libname}${release}${shared_ext}$major'
15717 shlibpath_var=LD_LIBRARY_PATH
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15725 $as_echo "$dynamic_linker" >&6; }
15726 test "$dynamic_linker" = no && can_build_shared=no
15728 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15729 if test "$GCC" = yes; then
15730 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15733 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15734 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15736 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15737 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15832 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15834 if test -n "$hardcode_libdir_flag_spec" ||
15835 test -n "$runpath_var" ||
15836 test "X$hardcode_automatic" = "Xyes" ; then
15838 # We can hardcode non-existent directories.
15839 if test "$hardcode_direct" != no &&
15840 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15841 # have to relink, otherwise we might link with an installed library
15842 # when we should be linking with a yet-to-be-installed one
15843 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15844 test "$hardcode_minus_L" != no; then
15845 # Linking always hardcodes the temporary library directory.
15846 hardcode_action=relink
15848 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15849 hardcode_action=immediate
15852 # We cannot hardcode anything, or else we can only hardcode existing
15854 hardcode_action=unsupported
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15857 $as_echo "$hardcode_action" >&6; }
15859 if test "$hardcode_action" = relink ||
15860 test "$inherit_rpath" = yes; then
15861 # Fast installation is not supported
15862 enable_fast_install=no
15863 elif test "$shlibpath_overrides_runpath" = yes ||
15864 test "$enable_shared" = no; then
15865 # Fast installation is not necessary
15866 enable_fast_install=needless
15874 if test "x$enable_dlopen" != xyes; then
15875 enable_dlopen=unknown
15876 enable_dlopen_self=unknown
15877 enable_dlopen_self_static=unknown
15884 lt_cv_dlopen="load_add_on"
15886 lt_cv_dlopen_self=yes
15889 mingw* | pw32* | cegcc*)
15890 lt_cv_dlopen="LoadLibrary"
15895 lt_cv_dlopen="dlopen"
15900 # if libdl is installed we need to link against it
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15902 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15903 if ${ac_cv_lib_dl_dlopen+:} false; then :
15904 $as_echo_n "(cached) " >&6
15906 ac_check_lib_save_LIBS=$LIBS
15908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15909 /* end confdefs.h. */
15911 /* Override any GCC internal prototype to avoid an error.
15912 Use char because int might match the return type of a GCC
15913 builtin and then its argument prototype would still apply. */
15926 if ac_fn_c_try_link "$LINENO"; then :
15927 ac_cv_lib_dl_dlopen=yes
15929 ac_cv_lib_dl_dlopen=no
15931 rm -f core conftest.err conftest.$ac_objext \
15932 conftest$ac_exeext conftest.$ac_ext
15933 LIBS=$ac_check_lib_save_LIBS
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15936 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15937 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15938 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15941 lt_cv_dlopen="dyld"
15943 lt_cv_dlopen_self=yes
15950 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15951 if test "x$ac_cv_func_shl_load" = xyes; then :
15952 lt_cv_dlopen="shl_load"
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15955 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15956 if ${ac_cv_lib_dld_shl_load+:} false; then :
15957 $as_echo_n "(cached) " >&6
15959 ac_check_lib_save_LIBS=$LIBS
15961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15962 /* end confdefs.h. */
15964 /* Override any GCC internal prototype to avoid an error.
15965 Use char because int might match the return type of a GCC
15966 builtin and then its argument prototype would still apply. */
15974 return shl_load ();
15979 if ac_fn_c_try_link "$LINENO"; then :
15980 ac_cv_lib_dld_shl_load=yes
15982 ac_cv_lib_dld_shl_load=no
15984 rm -f core conftest.err conftest.$ac_objext \
15985 conftest$ac_exeext conftest.$ac_ext
15986 LIBS=$ac_check_lib_save_LIBS
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15989 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15990 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15991 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15993 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15994 if test "x$ac_cv_func_dlopen" = xyes; then :
15995 lt_cv_dlopen="dlopen"
15997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15998 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15999 if ${ac_cv_lib_dl_dlopen+:} false; then :
16000 $as_echo_n "(cached) " >&6
16002 ac_check_lib_save_LIBS=$LIBS
16004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16005 /* end confdefs.h. */
16007 /* Override any GCC internal prototype to avoid an error.
16008 Use char because int might match the return type of a GCC
16009 builtin and then its argument prototype would still apply. */
16022 if ac_fn_c_try_link "$LINENO"; then :
16023 ac_cv_lib_dl_dlopen=yes
16025 ac_cv_lib_dl_dlopen=no
16027 rm -f core conftest.err conftest.$ac_objext \
16028 conftest$ac_exeext conftest.$ac_ext
16029 LIBS=$ac_check_lib_save_LIBS
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16032 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
16033 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
16034 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16037 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16038 if ${ac_cv_lib_svld_dlopen+:} false; then :
16039 $as_echo_n "(cached) " >&6
16041 ac_check_lib_save_LIBS=$LIBS
16042 LIBS="-lsvld $LIBS"
16043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16044 /* end confdefs.h. */
16046 /* Override any GCC internal prototype to avoid an error.
16047 Use char because int might match the return type of a GCC
16048 builtin and then its argument prototype would still apply. */
16061 if ac_fn_c_try_link "$LINENO"; then :
16062 ac_cv_lib_svld_dlopen=yes
16064 ac_cv_lib_svld_dlopen=no
16066 rm -f core conftest.err conftest.$ac_objext \
16067 conftest$ac_exeext conftest.$ac_ext
16068 LIBS=$ac_check_lib_save_LIBS
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16071 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16072 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16073 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16076 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16077 if ${ac_cv_lib_dld_dld_link+:} false; then :
16078 $as_echo_n "(cached) " >&6
16080 ac_check_lib_save_LIBS=$LIBS
16082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16083 /* end confdefs.h. */
16085 /* Override any GCC internal prototype to avoid an error.
16086 Use char because int might match the return type of a GCC
16087 builtin and then its argument prototype would still apply. */
16095 return dld_link ();
16100 if ac_fn_c_try_link "$LINENO"; then :
16101 ac_cv_lib_dld_dld_link=yes
16103 ac_cv_lib_dld_dld_link=no
16105 rm -f core conftest.err conftest.$ac_objext \
16106 conftest$ac_exeext conftest.$ac_ext
16107 LIBS=$ac_check_lib_save_LIBS
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16110 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16111 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16112 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
16133 if test "x$lt_cv_dlopen" != xno; then
16139 case $lt_cv_dlopen in
16141 save_CPPFLAGS="$CPPFLAGS"
16142 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16144 save_LDFLAGS="$LDFLAGS"
16145 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16148 LIBS="$lt_cv_dlopen_libs $LIBS"
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16151 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
16152 if ${lt_cv_dlopen_self+:} false; then :
16153 $as_echo_n "(cached) " >&6
16155 if test "$cross_compiling" = yes; then :
16156 lt_cv_dlopen_self=cross
16158 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16159 lt_status=$lt_dlunknown
16160 cat > conftest.$ac_ext <<_LT_EOF
16161 #line $LINENO "configure"
16162 #include "confdefs.h"
16171 # define LT_DLGLOBAL RTLD_GLOBAL
16174 # define LT_DLGLOBAL DL_GLOBAL
16176 # define LT_DLGLOBAL 0
16180 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16181 find out it does not work in some platform. */
16182 #ifndef LT_DLLAZY_OR_NOW
16184 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16187 # define LT_DLLAZY_OR_NOW DL_LAZY
16190 # define LT_DLLAZY_OR_NOW RTLD_NOW
16193 # define LT_DLLAZY_OR_NOW DL_NOW
16195 # define LT_DLLAZY_OR_NOW 0
16202 /* When -fvisbility=hidden is used, assume the code has been annotated
16203 correspondingly for the symbols needed. */
16204 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16205 int fnord () __attribute__((visibility("default")));
16208 int fnord () { return 42; }
16211 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16212 int status = $lt_dlunknown;
16216 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16219 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16220 else puts (dlerror ());
16222 /* dlclose (self); */
16230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16231 (eval $ac_link) 2>&5
16233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16234 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16235 (./conftest; exit; ) >&5 2>/dev/null
16237 case x$lt_status in
16238 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16239 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16240 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16243 # compilation failed
16244 lt_cv_dlopen_self=no
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16252 $as_echo "$lt_cv_dlopen_self" >&6; }
16254 if test "x$lt_cv_dlopen_self" = xyes; then
16255 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16257 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
16258 if ${lt_cv_dlopen_self_static+:} false; then :
16259 $as_echo_n "(cached) " >&6
16261 if test "$cross_compiling" = yes; then :
16262 lt_cv_dlopen_self_static=cross
16264 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16265 lt_status=$lt_dlunknown
16266 cat > conftest.$ac_ext <<_LT_EOF
16267 #line $LINENO "configure"
16268 #include "confdefs.h"
16277 # define LT_DLGLOBAL RTLD_GLOBAL
16280 # define LT_DLGLOBAL DL_GLOBAL
16282 # define LT_DLGLOBAL 0
16286 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16287 find out it does not work in some platform. */
16288 #ifndef LT_DLLAZY_OR_NOW
16290 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16293 # define LT_DLLAZY_OR_NOW DL_LAZY
16296 # define LT_DLLAZY_OR_NOW RTLD_NOW
16299 # define LT_DLLAZY_OR_NOW DL_NOW
16301 # define LT_DLLAZY_OR_NOW 0
16308 /* When -fvisbility=hidden is used, assume the code has been annotated
16309 correspondingly for the symbols needed. */
16310 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16311 int fnord () __attribute__((visibility("default")));
16314 int fnord () { return 42; }
16317 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16318 int status = $lt_dlunknown;
16322 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16325 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16326 else puts (dlerror ());
16328 /* dlclose (self); */
16336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16337 (eval $ac_link) 2>&5
16339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16340 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16341 (./conftest; exit; ) >&5 2>/dev/null
16343 case x$lt_status in
16344 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16345 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16346 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16349 # compilation failed
16350 lt_cv_dlopen_self_static=no
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16358 $as_echo "$lt_cv_dlopen_self_static" >&6; }
16361 CPPFLAGS="$save_CPPFLAGS"
16362 LDFLAGS="$save_LDFLAGS"
16367 case $lt_cv_dlopen_self in
16368 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16369 *) enable_dlopen_self=unknown ;;
16372 case $lt_cv_dlopen_self_static in
16373 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16374 *) enable_dlopen_self_static=unknown ;;
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16397 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16398 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16399 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16400 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16402 $as_echo "yes" >&6; }
16404 # FIXME - insert some real tests, host_os isn't really good enough
16407 if test -n "$STRIP" ; then
16408 striplib="$STRIP -x"
16409 old_striplib="$STRIP -S"
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16411 $as_echo "yes" >&6; }
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16414 $as_echo "no" >&6; }
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16419 $as_echo "no" >&6; }
16435 # Report which library types will actually be built
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16437 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16439 $as_echo "$can_build_shared" >&6; }
16441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16442 $as_echo_n "checking whether to build shared libraries... " >&6; }
16443 test "$can_build_shared" = "no" && enable_shared=no
16445 # On AIX, shared libraries and static libraries use the same namespace, and
16446 # are all built from PIC.
16449 test "$enable_shared" = yes && enable_static=no
16450 if test -n "$RANLIB"; then
16451 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16452 postinstall_cmds='$RANLIB $lib'
16457 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16458 test "$enable_shared" = yes && enable_static=no
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16463 $as_echo "$enable_shared" >&6; }
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16466 $as_echo_n "checking whether to build static libraries... " >&6; }
16467 # Make sure either enable_shared or enable_static is yes.
16468 test "$enable_shared" = yes || enable_static=yes
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16470 $as_echo "$enable_static" >&6; }
16477 ac_cpp='$CPP $CPPFLAGS'
16478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16484 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
16485 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
16486 (test "X$CXX" != "Xg++"))) ; then
16488 ac_cpp='$CXXCPP $CPPFLAGS'
16489 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16490 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16491 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
16493 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
16494 if test -z "$CXXCPP"; then
16495 if ${ac_cv_prog_CXXCPP+:} false; then :
16496 $as_echo_n "(cached) " >&6
16498 # Double quotes because CXXCPP needs to be expanded
16499 for CXXCPP in "$CXX -E" "/lib/cpp"
16501 ac_preproc_ok=false
16502 for ac_cxx_preproc_warn_flag in '' yes
16504 # Use a header file that comes with gcc, so configuring glibc
16505 # with a fresh cross-compiler works.
16506 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16507 # <limits.h> exists even on freestanding compilers.
16508 # On the NeXT, cc -E runs the code through the compiler's parser,
16509 # not just through cpp. "Syntax error" is here to catch this case.
16510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16511 /* end confdefs.h. */
16513 # include <limits.h>
16515 # include <assert.h>
16519 if ac_fn_cxx_try_cpp "$LINENO"; then :
16522 # Broken: fails on valid input.
16525 rm -f conftest.err conftest.i conftest.$ac_ext
16527 # OK, works on sane cases. Now check whether nonexistent headers
16528 # can be detected and how.
16529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16530 /* end confdefs.h. */
16531 #include <ac_nonexistent.h>
16533 if ac_fn_cxx_try_cpp "$LINENO"; then :
16534 # Broken: success on invalid input.
16537 # Passes both tests.
16541 rm -f conftest.err conftest.i conftest.$ac_ext
16544 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16545 rm -f conftest.i conftest.err conftest.$ac_ext
16546 if $ac_preproc_ok; then :
16551 ac_cv_prog_CXXCPP=$CXXCPP
16554 CXXCPP=$ac_cv_prog_CXXCPP
16556 ac_cv_prog_CXXCPP=$CXXCPP
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
16559 $as_echo "$CXXCPP" >&6; }
16560 ac_preproc_ok=false
16561 for ac_cxx_preproc_warn_flag in '' yes
16563 # Use a header file that comes with gcc, so configuring glibc
16564 # with a fresh cross-compiler works.
16565 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16566 # <limits.h> exists even on freestanding compilers.
16567 # On the NeXT, cc -E runs the code through the compiler's parser,
16568 # not just through cpp. "Syntax error" is here to catch this case.
16569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16570 /* end confdefs.h. */
16572 # include <limits.h>
16574 # include <assert.h>
16578 if ac_fn_cxx_try_cpp "$LINENO"; then :
16581 # Broken: fails on valid input.
16584 rm -f conftest.err conftest.i conftest.$ac_ext
16586 # OK, works on sane cases. Now check whether nonexistent headers
16587 # can be detected and how.
16588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16589 /* end confdefs.h. */
16590 #include <ac_nonexistent.h>
16592 if ac_fn_cxx_try_cpp "$LINENO"; then :
16593 # Broken: success on invalid input.
16596 # Passes both tests.
16600 rm -f conftest.err conftest.i conftest.$ac_ext
16603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
16604 rm -f conftest.i conftest.err conftest.$ac_ext
16605 if $ac_preproc_ok; then :
16608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16610 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
16611 See \`config.log' for more details" "$LINENO" 5; }
16615 ac_cpp='$CPP $CPPFLAGS'
16616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16621 _lt_caught_CXX_error=yes
16625 ac_cpp='$CXXCPP $CPPFLAGS'
16626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16630 archive_cmds_need_lc_CXX=no
16631 allow_undefined_flag_CXX=
16632 always_export_symbols_CXX=no
16633 archive_expsym_cmds_CXX=
16634 compiler_needs_object_CXX=no
16635 export_dynamic_flag_spec_CXX=
16636 hardcode_direct_CXX=no
16637 hardcode_direct_absolute_CXX=no
16638 hardcode_libdir_flag_spec_CXX=
16639 hardcode_libdir_flag_spec_ld_CXX=
16640 hardcode_libdir_separator_CXX=
16641 hardcode_minus_L_CXX=no
16642 hardcode_shlibpath_var_CXX=unsupported
16643 hardcode_automatic_CXX=no
16644 inherit_rpath_CXX=no
16646 module_expsym_cmds_CXX=
16647 link_all_deplibs_CXX=unknown
16648 old_archive_cmds_CXX=$old_archive_cmds
16649 reload_flag_CXX=$reload_flag
16650 reload_cmds_CXX=$reload_cmds
16651 no_undefined_flag_CXX=
16652 whole_archive_flag_spec_CXX=
16653 enable_shared_with_static_runtimes_CXX=no
16655 # Source file extension for C++ test sources.
16658 # Object file extension for compiled C++ test sources.
16662 # No sense in running all these tests if we already determined that
16663 # the CXX compiler isn't working. Some variables (like enable_shared)
16664 # are currently assumed to apply to all compilers on this platform,
16665 # and will be corrupted by setting them based on a non-working compiler.
16666 if test "$_lt_caught_CXX_error" != yes; then
16667 # Code to be used in simple compile tests
16668 lt_simple_compile_test_code="int some_variable = 0;"
16670 # Code to be used in simple link tests
16671 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16673 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16680 # If no C compiler was specified, use CC.
16683 # If no C compiler flags were specified, use CFLAGS.
16684 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16686 # Allow CC to be a program name with arguments.
16690 # save warnings/boilerplate of simple test code
16691 ac_outfile=conftest.$ac_objext
16692 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16693 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16694 _lt_compiler_boilerplate=`cat conftest.err`
16697 ac_outfile=conftest.$ac_objext
16698 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16699 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16700 _lt_linker_boilerplate=`cat conftest.err`
16704 # Allow CC to be a program name with arguments.
16706 lt_save_CFLAGS=$CFLAGS
16710 lt_save_with_gnu_ld=$with_gnu_ld
16711 lt_save_path_LD=$lt_cv_path_LD
16712 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16713 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16715 $as_unset lt_cv_prog_gnu_ld
16717 if test -n "${lt_cv_path_LDCXX+set}"; then
16718 lt_cv_path_LD=$lt_cv_path_LDCXX
16720 $as_unset lt_cv_path_LD
16722 test -z "${LDCXX+set}" || LD=$LDCXX
16727 for cc_temp in $compiler""; do
16729 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16730 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16735 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16738 if test -n "$compiler"; then
16739 # We don't want -fno-exception when compiling C++ code, so set the
16740 # no_builtin_flag separately
16741 if test "$GXX" = yes; then
16742 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16744 lt_prog_compiler_no_builtin_flag_CXX=
16747 if test "$GXX" = yes; then
16748 # Set up default GNU C++ configuration
16752 # Check whether --with-gnu-ld was given.
16753 if test "${with_gnu_ld+set}" = set; then :
16754 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16760 if test "$GCC" = yes; then
16761 # Check if gcc -print-prog-name=ld gives a path.
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16763 $as_echo_n "checking for ld used by $CC... " >&6; }
16766 # gcc leaves a trailing carriage return which upsets mingw
16767 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16769 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16772 # Accept absolute paths.
16774 re_direlt='/[^/][^/]*/\.\./'
16775 # Canonicalize the pathname of ld
16776 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16777 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16778 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16780 test -z "$LD" && LD="$ac_prog"
16783 # If it fails, then pretend we aren't using GCC.
16787 # If it is relative, then search for the first ld in PATH.
16788 with_gnu_ld=unknown
16791 elif test "$with_gnu_ld" = yes; then
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16793 $as_echo_n "checking for GNU ld... " >&6; }
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16796 $as_echo_n "checking for non-GNU ld... " >&6; }
16798 if ${lt_cv_path_LD+:} false; then :
16799 $as_echo_n "(cached) " >&6
16801 if test -z "$LD"; then
16802 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16803 for ac_dir in $PATH; do
16805 test -z "$ac_dir" && ac_dir=.
16806 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16807 lt_cv_path_LD="$ac_dir/$ac_prog"
16808 # Check to see if the program is GNU ld. I'd rather use --version,
16809 # but apparently some variants of GNU ld only accept -v.
16810 # Break only if it was the GNU/non-GNU ld that we prefer.
16811 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16812 *GNU* | *'with BFD'*)
16813 test "$with_gnu_ld" != no && break
16816 test "$with_gnu_ld" != yes && break
16823 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16827 LD="$lt_cv_path_LD"
16828 if test -n "$LD"; then
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16830 $as_echo "$LD" >&6; }
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16833 $as_echo "no" >&6; }
16835 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16837 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16838 if ${lt_cv_prog_gnu_ld+:} false; then :
16839 $as_echo_n "(cached) " >&6
16841 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16842 case `$LD -v 2>&1 </dev/null` in
16843 *GNU* | *'with BFD'*)
16844 lt_cv_prog_gnu_ld=yes
16847 lt_cv_prog_gnu_ld=no
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16852 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16853 with_gnu_ld=$lt_cv_prog_gnu_ld
16861 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16862 # archiving commands below assume that GNU ld is being used.
16863 if test "$with_gnu_ld" = yes; then
16864 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16865 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'
16867 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16868 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16870 # If archive_cmds runs LD, not CC, wlarc should be empty
16871 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16872 # investigate it a little bit more. (MM)
16875 # ancient GNU ld didn't support --whole-archive et. al.
16876 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16877 $GREP 'no-whole-archive' > /dev/null; then
16878 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16880 whole_archive_flag_spec_CXX=
16886 # A generic and very simple default shared library creation
16887 # command for GNU C++ for the case where it uses the native
16888 # linker, instead of GNU ld. If possible, this setting should
16889 # overridden to take advantage of the native linker features on
16890 # the platform it is being used on.
16891 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16894 # Commands to make compiler produce verbose output that lists
16895 # what "hidden" libraries, object files and flags are used when
16896 # linking a shared library.
16897 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16905 # PORTME: fill in a description of your system's C++ link characteristics
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16907 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16911 # FIXME: insert proper C++ library support
16915 if test "$host_cpu" = ia64; then
16916 # On IA64, the linker does run time linking by default, so we don't
16917 # have to do anything special.
16918 aix_use_runtimelinking=no
16919 exp_sym_flag='-Bexport'
16922 aix_use_runtimelinking=no
16924 # Test if we are trying to use run time linking or normal
16925 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16926 # need to do runtime linking.
16927 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16928 for ld_flag in $LDFLAGS; do
16931 aix_use_runtimelinking=yes
16939 exp_sym_flag='-bexport'
16940 no_entry_flag='-bnoentry'
16943 # When large executables or shared objects are built, AIX ld can
16944 # have problems creating the table of contents. If linking a library
16945 # or program results in "error TOC overflow" add -mminimal-toc to
16946 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16947 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16949 archive_cmds_CXX=''
16950 hardcode_direct_CXX=yes
16951 hardcode_direct_absolute_CXX=yes
16952 hardcode_libdir_separator_CXX=':'
16953 link_all_deplibs_CXX=yes
16954 file_list_spec_CXX='${wl}-f,'
16956 if test "$GXX" = yes; then
16957 case $host_os in aix4.[012]|aix4.[012].*)
16958 # We only want to do this on AIX 4.2 and lower, the check
16959 # below for broken collect2 doesn't work under 4.3+
16960 collect2name=`${CC} -print-prog-name=collect2`
16961 if test -f "$collect2name" &&
16962 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16964 # We have reworked collect2
16967 # We have old collect2
16968 hardcode_direct_CXX=unsupported
16969 # It fails to find uninstalled libraries when the uninstalled
16970 # path is not listed in the libpath. Setting hardcode_minus_L
16971 # to unsupported forces relinking
16972 hardcode_minus_L_CXX=yes
16973 hardcode_libdir_flag_spec_CXX='-L$libdir'
16974 hardcode_libdir_separator_CXX=
16977 shared_flag='-shared'
16978 if test "$aix_use_runtimelinking" = yes; then
16979 shared_flag="$shared_flag "'${wl}-G'
16983 if test "$host_cpu" = ia64; then
16984 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16985 # chokes on -Wl,-G. The following line is correct:
16988 if test "$aix_use_runtimelinking" = yes; then
16989 shared_flag='${wl}-G'
16991 shared_flag='${wl}-bM:SRE'
16996 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16997 # It seems that -bexpall does not export symbols beginning with
16998 # underscore (_), so it is better to generate a list of symbols to
17000 always_export_symbols_CXX=yes
17001 if test "$aix_use_runtimelinking" = yes; then
17002 # Warning - without using the other runtime loading flags (-brtl),
17003 # -berok will link without error, but may produce a broken library.
17004 allow_undefined_flag_CXX='-berok'
17005 # Determine the default libpath from the value encoded in an empty
17007 if test "${lt_cv_aix_libpath+set}" = set; then
17008 aix_libpath=$lt_cv_aix_libpath
17010 if ${lt_cv_aix_libpath__CXX+:} false; then :
17011 $as_echo_n "(cached) " >&6
17013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17014 /* end confdefs.h. */
17024 if ac_fn_cxx_try_link "$LINENO"; then :
17026 lt_aix_libpath_sed='
17027 /Import File Strings/,/^$/ {
17029 s/^0 *\([^ ]*\) *$/\1/
17033 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17034 # Check for a 64-bit object if we didn't find anything.
17035 if test -z "$lt_cv_aix_libpath__CXX"; then
17036 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17039 rm -f core conftest.err conftest.$ac_objext \
17040 conftest$ac_exeext conftest.$ac_ext
17041 if test -z "$lt_cv_aix_libpath__CXX"; then
17042 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17047 aix_libpath=$lt_cv_aix_libpath__CXX
17050 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17052 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"
17054 if test "$host_cpu" = ia64; then
17055 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17056 allow_undefined_flag_CXX="-z nodefs"
17057 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"
17059 # Determine the default libpath from the value encoded in an
17060 # empty executable.
17061 if test "${lt_cv_aix_libpath+set}" = set; then
17062 aix_libpath=$lt_cv_aix_libpath
17064 if ${lt_cv_aix_libpath__CXX+:} false; then :
17065 $as_echo_n "(cached) " >&6
17067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17068 /* end confdefs.h. */
17078 if ac_fn_cxx_try_link "$LINENO"; then :
17080 lt_aix_libpath_sed='
17081 /Import File Strings/,/^$/ {
17083 s/^0 *\([^ ]*\) *$/\1/
17087 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17088 # Check for a 64-bit object if we didn't find anything.
17089 if test -z "$lt_cv_aix_libpath__CXX"; then
17090 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17093 rm -f core conftest.err conftest.$ac_objext \
17094 conftest$ac_exeext conftest.$ac_ext
17095 if test -z "$lt_cv_aix_libpath__CXX"; then
17096 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17101 aix_libpath=$lt_cv_aix_libpath__CXX
17104 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17105 # Warning - without using the other run time loading flags,
17106 # -berok will link without error, but may produce a broken library.
17107 no_undefined_flag_CXX=' ${wl}-bernotok'
17108 allow_undefined_flag_CXX=' ${wl}-berok'
17109 if test "$with_gnu_ld" = yes; then
17110 # We only use this code for GNU lds that support --whole-archive.
17111 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17113 # Exported symbols can be pulled into shared objects from archives
17114 whole_archive_flag_spec_CXX='$convenience'
17116 archive_cmds_need_lc_CXX=yes
17117 # This is similar to how AIX traditionally builds its shared
17119 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'
17125 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17126 allow_undefined_flag_CXX=unsupported
17127 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17128 # support --undefined. This deserves some investigation. FIXME
17129 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17136 case $cc_basename in
17138 # FIXME: insert proper C++ library support
17144 cygwin* | mingw* | pw32* | cegcc*)
17145 case $GXX,$cc_basename in
17148 # hardcode_libdir_flag_spec is actually meaningless, as there is
17149 # no search path for DLLs.
17150 hardcode_libdir_flag_spec_CXX=' '
17151 allow_undefined_flag_CXX=unsupported
17152 always_export_symbols_CXX=yes
17153 file_list_spec_CXX='@'
17154 # Tell ltmain to make .lib files, not .a files.
17156 # Tell ltmain to make .dll files, not .so files.
17158 # FIXME: Setting linknames here is a bad hack.
17159 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17160 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17161 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17163 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17165 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17167 # The linker will not automatically build a static lib if we build a DLL.
17168 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
17169 enable_shared_with_static_runtimes_CXX=yes
17171 old_postinstall_cmds_CXX='chmod 644 $oldlib'
17172 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
17173 lt_tool_outputfile="@TOOL_OUTPUT@"~
17174 case $lt_outputfile in
17177 lt_outputfile="$lt_outputfile.exe"
17178 lt_tool_outputfile="$lt_tool_outputfile.exe"
17181 func_to_tool_file "$lt_outputfile"~
17182 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17183 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17184 $RM "$lt_outputfile.manifest";
17189 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
17190 # as there is no search path for DLLs.
17191 hardcode_libdir_flag_spec_CXX='-L$libdir'
17192 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
17193 allow_undefined_flag_CXX=unsupported
17194 always_export_symbols_CXX=no
17195 enable_shared_with_static_runtimes_CXX=yes
17197 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17198 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'
17199 # If the export-symbols file already is a .def file (1st line
17200 # is EXPORTS), use it as is; otherwise, prepend...
17201 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17202 cp $export_symbols $output_objdir/$soname.def;
17204 echo EXPORTS > $output_objdir/$soname.def;
17205 cat $export_symbols >> $output_objdir/$soname.def;
17207 $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'
17214 darwin* | rhapsody*)
17217 archive_cmds_need_lc_CXX=no
17218 hardcode_direct_CXX=no
17219 hardcode_automatic_CXX=yes
17220 hardcode_shlibpath_var_CXX=unsupported
17221 if test "$lt_cv_ld_force_load" = "yes"; then
17222 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\"`'
17224 whole_archive_flag_spec_CXX=''
17226 link_all_deplibs_CXX=yes
17227 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
17228 case $cc_basename in
17229 ifort*) _lt_dar_can_shared=yes ;;
17230 *) _lt_dar_can_shared=$GCC ;;
17232 if test "$_lt_dar_can_shared" = "yes"; then
17233 output_verbose_link_cmd=func_echo_all
17234 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}"
17235 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17236 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}"
17237 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}"
17238 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
17239 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}"
17240 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}"
17250 case $cc_basename in
17252 # FIXME: insert proper C++ library support
17256 # Green Hills C++ Compiler
17257 # FIXME: insert proper C++ library support
17261 # FIXME: insert proper C++ library support
17268 # C++ shared libraries reported to be fairly broken before
17274 archive_cmds_need_lc_CXX=no
17277 freebsd* | dragonfly*)
17278 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
17287 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17288 link_all_deplibs_CXX=yes
17292 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17293 hardcode_libdir_separator_CXX=:
17294 export_dynamic_flag_spec_CXX='${wl}-E'
17295 hardcode_direct_CXX=yes
17296 hardcode_minus_L_CXX=yes # Not in the search PATH,
17297 # but as the default
17298 # location of the library.
17300 case $cc_basename in
17302 # FIXME: insert proper C++ library support
17306 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'
17307 # Commands to make compiler produce verbose output that lists
17308 # what "hidden" libraries, object files and flags are used when
17309 # linking a shared library.
17311 # There doesn't appear to be a way to prevent this compiler from
17312 # explicitly linking system object files so we need to strip them
17313 # from the output so that they don't get included in the library
17315 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"'
17318 if test "$GXX" = yes; then
17319 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'
17321 # FIXME: insert proper C++ library support
17329 if test $with_gnu_ld = no; then
17330 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
17331 hardcode_libdir_separator_CXX=:
17337 export_dynamic_flag_spec_CXX='${wl}-E'
17343 hardcode_direct_CXX=no
17344 hardcode_shlibpath_var_CXX=no
17347 hardcode_direct_CXX=yes
17348 hardcode_direct_absolute_CXX=yes
17349 hardcode_minus_L_CXX=yes # Not in the search PATH,
17350 # but as the default
17351 # location of the library.
17355 case $cc_basename in
17357 # FIXME: insert proper C++ library support
17363 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17366 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17369 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17372 # Commands to make compiler produce verbose output that lists
17373 # what "hidden" libraries, object files and flags are used when
17374 # linking a shared library.
17376 # There doesn't appear to be a way to prevent this compiler from
17377 # explicitly linking system object files so we need to strip them
17378 # from the output so that they don't get included in the library
17380 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"'
17383 if test "$GXX" = yes; then
17384 if test $with_gnu_ld = no; then
17387 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17390 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17393 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'
17398 # FIXME: insert proper C++ library support
17406 hardcode_direct_CXX=no
17407 hardcode_shlibpath_var_CXX=no
17408 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17409 export_dynamic_flag_spec_CXX='${wl}-E'
17410 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17411 # Instead, shared libraries are loaded at an image base (0x10000000 by
17412 # default) and relocated if they conflict, which is a slow very memory
17413 # consuming and fragmenting process. To avoid this, we pick a random,
17414 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17415 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17416 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'
17417 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'
17420 case $cc_basename in
17423 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'
17425 # Archives containing C++ object files must be created using
17426 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
17427 # necessary to make sure instantiated templates are included
17429 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
17432 if test "$GXX" = yes; then
17433 if test "$with_gnu_ld" = no; then
17434 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'
17436 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'
17439 link_all_deplibs_CXX=yes
17442 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17443 hardcode_libdir_separator_CXX=:
17444 inherit_rpath_CXX=yes
17447 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17448 case $cc_basename in
17450 # Kuck and Associates, Inc. (KAI) C++ Compiler
17452 # KCC will only create a shared library if the output file
17453 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17454 # to its proper name (with version) after linking.
17455 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'
17456 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'
17457 # Commands to make compiler produce verbose output that lists
17458 # what "hidden" libraries, object files and flags are used when
17459 # linking a shared library.
17461 # There doesn't appear to be a way to prevent this compiler from
17462 # explicitly linking system object files so we need to strip them
17463 # from the output so that they don't get included in the library
17465 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"'
17467 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17468 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17470 # Archives containing C++ object files must be created using
17471 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
17472 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
17477 # version 8.0 and above of icpc choke on multiply defined symbols
17478 # if we add $predep_objects and $postdep_objects, however 7.1 and
17479 # earlier do not add the objects themselves.
17480 case `$CC -V 2>&1` in
17482 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17483 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'
17485 *) # Version 8.0 or newer
17488 ia64*) tmp_idyn=' -i_dynamic';;
17490 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17491 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'
17494 archive_cmds_need_lc_CXX=no
17495 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17496 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17497 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17500 # Portland Group C++ compiler
17502 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
17503 prelink_cmds_CXX='tpldir=Template.dir~
17505 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
17506 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
17507 old_archive_cmds_CXX='tpldir=Template.dir~
17509 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
17510 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
17512 archive_cmds_CXX='tpldir=Template.dir~
17514 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17515 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17516 archive_expsym_cmds_CXX='tpldir=Template.dir~
17518 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
17519 $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'
17521 *) # Version 6 and above use weak symbols
17522 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
17523 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'
17527 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
17528 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17529 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'
17533 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17534 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'
17536 runpath_var=LD_RUN_PATH
17537 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17538 hardcode_libdir_separator_CXX=:
17540 # Commands to make compiler produce verbose output that lists
17541 # what "hidden" libraries, object files and flags are used when
17542 # linking a shared library.
17544 # There doesn't appear to be a way to prevent this compiler from
17545 # explicitly linking system object files so we need to strip them
17546 # from the output so that they don't get included in the library
17548 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'
17550 xl* | mpixl* | bgxl*)
17551 # IBM XL 8.0 on PPC, with GNU ld
17552 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17553 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17554 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17555 if test "x$supports_anon_versioning" = xyes; then
17556 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17557 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17558 echo "local: *; };" >> $output_objdir/$libname.ver~
17559 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17563 case `$CC -V 2>&1 | sed 5q` in
17566 no_undefined_flag_CXX=' -zdefs'
17567 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17568 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'
17569 hardcode_libdir_flag_spec_CXX='-R$libdir'
17570 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'
17571 compiler_needs_object_CXX=yes
17573 # Not sure whether something based on
17574 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17576 output_verbose_link_cmd='func_echo_all'
17578 # Archives containing C++ object files must be created using
17579 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17580 # necessary to make sure instantiated templates are included
17582 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17590 # FIXME: insert proper C++ library support
17595 # FIXME: insert proper C++ library support
17600 case $cc_basename in
17602 # FIXME: insert proper C++ library support
17606 # FIXME: insert proper C++ library support
17613 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17614 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17616 hardcode_libdir_flag_spec_CXX='-R$libdir'
17617 hardcode_direct_CXX=yes
17618 hardcode_shlibpath_var_CXX=no
17620 # Workaround some broken pre-1.5 toolchains
17621 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17629 # C++ shared libraries are fairly broken
17634 if test -f /usr/libexec/ld.so; then
17635 hardcode_direct_CXX=yes
17636 hardcode_shlibpath_var_CXX=no
17637 hardcode_direct_absolute_CXX=yes
17638 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17639 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17640 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17641 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17642 export_dynamic_flag_spec_CXX='${wl}-E'
17643 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17645 output_verbose_link_cmd=func_echo_all
17651 osf3* | osf4* | osf5*)
17652 case $cc_basename in
17654 # Kuck and Associates, Inc. (KAI) C++ Compiler
17656 # KCC will only create a shared library if the output file
17657 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17658 # to its proper name (with version) after linking.
17659 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'
17661 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17662 hardcode_libdir_separator_CXX=:
17664 # Archives containing C++ object files must be created using
17665 # the KAI C++ compiler.
17667 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17668 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17672 # Rational C++ 2.4.1
17673 # FIXME: insert proper C++ library support
17679 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17680 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'
17681 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17684 allow_undefined_flag_CXX=' -expect_unresolved \*'
17685 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'
17686 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17687 echo "-hidden">> $lib.exp~
17688 $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~
17690 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17694 hardcode_libdir_separator_CXX=:
17696 # Commands to make compiler produce verbose output that lists
17697 # what "hidden" libraries, object files and flags are used when
17698 # linking a shared library.
17700 # There doesn't appear to be a way to prevent this compiler from
17701 # explicitly linking system object files so we need to strip them
17702 # from the output so that they don't get included in the library
17704 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"'
17707 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17708 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17711 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'
17714 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'
17718 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17719 hardcode_libdir_separator_CXX=:
17721 # Commands to make compiler produce verbose output that lists
17722 # what "hidden" libraries, object files and flags are used when
17723 # linking a shared library.
17724 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17727 # FIXME: insert proper C++ library support
17735 # FIXME: insert proper C++ library support
17740 case $cc_basename in
17743 # FIXME: insert proper C++ library support
17748 # FIXME: insert proper C++ library support
17752 # FIXME: insert proper C++ library support
17759 case $cc_basename in
17761 # Sun C++ 4.2, 5.x and Centerline C++
17762 archive_cmds_need_lc_CXX=yes
17763 no_undefined_flag_CXX=' -zdefs'
17764 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17765 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17766 $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'
17768 hardcode_libdir_flag_spec_CXX='-R$libdir'
17769 hardcode_shlibpath_var_CXX=no
17771 solaris2.[0-5] | solaris2.[0-5].*) ;;
17773 # The compiler driver will combine and reorder linker options,
17774 # but understands `-z linker_flag'.
17775 # Supported since Solaris 2.6 (maybe 2.5.1?)
17776 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17779 link_all_deplibs_CXX=yes
17781 output_verbose_link_cmd='func_echo_all'
17783 # Archives containing C++ object files must be created using
17784 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17785 # necessary to make sure instantiated templates are included
17787 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17790 # Green Hills C++ Compiler
17791 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17793 # The C++ compiler must be used to create the archive.
17794 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17797 # GNU C++ compiler with Solaris linker
17798 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17799 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17800 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17801 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17802 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17803 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17805 # Commands to make compiler produce verbose output that lists
17806 # what "hidden" libraries, object files and flags are used when
17807 # linking a shared library.
17808 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17810 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17812 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17813 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17814 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17816 # Commands to make compiler produce verbose output that lists
17817 # what "hidden" libraries, object files and flags are used when
17818 # linking a shared library.
17819 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17822 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17824 solaris2.[0-5] | solaris2.[0-5].*) ;;
17826 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17834 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17835 no_undefined_flag_CXX='${wl}-z,text'
17836 archive_cmds_need_lc_CXX=no
17837 hardcode_shlibpath_var_CXX=no
17838 runpath_var='LD_RUN_PATH'
17840 case $cc_basename in
17842 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17843 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17846 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17847 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17852 sysv5* | sco3.2v5* | sco5v6*)
17853 # Note: We can NOT use -z defs as we might desire, because we do not
17854 # link with -lc, and that would cause any symbols used from libc to
17855 # always be unresolved, which means just about no library would
17856 # ever link correctly. If we're not using GNU ld we use -z text
17857 # though, which does catch some bad symbols but isn't as heavy-handed
17859 no_undefined_flag_CXX='${wl}-z,text'
17860 allow_undefined_flag_CXX='${wl}-z,nodefs'
17861 archive_cmds_need_lc_CXX=no
17862 hardcode_shlibpath_var_CXX=no
17863 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17864 hardcode_libdir_separator_CXX=':'
17865 link_all_deplibs_CXX=yes
17866 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17867 runpath_var='LD_RUN_PATH'
17869 case $cc_basename in
17871 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17872 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17873 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17874 '"$old_archive_cmds_CXX"
17875 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17876 '"$reload_cmds_CXX"
17879 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17880 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17886 case $cc_basename in
17888 # NonStop-UX NCC 3.20
17889 # FIXME: insert proper C++ library support
17893 # FIXME: insert proper C++ library support
17900 # FIXME: insert proper C++ library support
17905 # FIXME: insert proper C++ library support
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17911 $as_echo "$ld_shlibs_CXX" >&6; }
17912 test "$ld_shlibs_CXX" = no && can_build_shared=no
17918 ## There is no encapsulation within the following macros, do not change
17919 ## the running order or otherwise move them around unless you know exactly
17920 ## what you are doing...
17921 # Dependencies to place before and after the object being linked:
17922 predep_objects_CXX=
17923 postdep_objects_CXX=
17926 compiler_lib_search_path_CXX=
17928 cat > conftest.$ac_ext <<_LT_EOF
17932 Foo (void) { a = 0; }
17939 _lt_libdeps_save_CFLAGS=$CFLAGS
17940 case "$CC $CFLAGS " in #(
17941 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
17942 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
17945 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17946 (eval $ac_compile) 2>&5
17948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17949 test $ac_status = 0; }; then
17950 # Parse the compiler output and extract the necessary
17951 # objects, libraries and library flags.
17953 # Sentinel used to keep track of whether or not we are before
17954 # the conftest object file.
17955 pre_test_object_deps_done=no
17957 for p in `eval "$output_verbose_link_cmd"`; do
17958 case ${prev}${p} in
17961 # Some compilers place space between "-{L,R}" and the path.
17962 # Remove the space.
17963 if test $p = "-L" ||
17964 test $p = "-R"; then
17969 # Expand the sysroot to ease extracting the directories later.
17970 if test -z "$prev"; then
17972 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
17973 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
17974 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
17978 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
17980 if test "$pre_test_object_deps_done" = no; then
17983 # Internal compiler library paths should come after those
17984 # provided the user. The postdeps already come after the
17985 # user supplied libs so there is no need to process them.
17986 if test -z "$compiler_lib_search_path_CXX"; then
17987 compiler_lib_search_path_CXX="${prev}${p}"
17989 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17992 # The "-l" case would never come before the object being
17993 # linked, so don't bother handling this case.
17996 if test -z "$postdeps_CXX"; then
17997 postdeps_CXX="${prev}${p}"
17999 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18005 *.lto.$objext) ;; # Ignore GCC LTO objects
18007 # This assumes that the test object file only shows up
18008 # once in the compiler output.
18009 if test "$p" = "conftest.$objext"; then
18010 pre_test_object_deps_done=yes
18014 if test "$pre_test_object_deps_done" = no; then
18015 if test -z "$predep_objects_CXX"; then
18016 predep_objects_CXX="$p"
18018 predep_objects_CXX="$predep_objects_CXX $p"
18021 if test -z "$postdep_objects_CXX"; then
18022 postdep_objects_CXX="$p"
18024 postdep_objects_CXX="$postdep_objects_CXX $p"
18029 *) ;; # Ignore the rest.
18037 echo "libtool.m4: error: problem compiling CXX test program"
18040 $RM -f confest.$objext
18041 CFLAGS=$_lt_libdeps_save_CFLAGS
18043 # PORTME: override above test on systems where it is broken
18046 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18047 # hack all around it, let's just trust "g++" to DTRT.
18048 predep_objects_CXX=
18049 postdep_objects_CXX=
18054 case `$CC -V 2>&1 | sed 5q` in
18058 # The more standards-conforming stlport4 library is
18059 # incompatible with the Cstd library. Avoid specifying
18060 # it if it's in CXXFLAGS. Ignore libCrun as
18061 # -library=stlport4 depends on it.
18062 case " $CXX $CXXFLAGS " in
18063 *" -library=stlport4 "*)
18064 solaris_use_stlport4=yes
18068 if test "$solaris_use_stlport4" != yes; then
18069 postdeps_CXX='-library=Cstd -library=Crun'
18076 case $cc_basename in
18078 # The more standards-conforming stlport4 library is
18079 # incompatible with the Cstd library. Avoid specifying
18080 # it if it's in CXXFLAGS. Ignore libCrun as
18081 # -library=stlport4 depends on it.
18082 case " $CXX $CXXFLAGS " in
18083 *" -library=stlport4 "*)
18084 solaris_use_stlport4=yes
18088 # Adding this requires a known-good setup of shared libraries for
18089 # Sun compiler versions before 5.6, else PIC objects from an old
18090 # archive will be linked into the output, leading to subtle bugs.
18091 if test "$solaris_use_stlport4" != yes; then
18092 postdeps_CXX='-library=Cstd -library=Crun'
18100 case " $postdeps_CXX " in
18101 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
18103 compiler_lib_search_dirs_CXX=
18104 if test -n "${compiler_lib_search_path_CXX}"; then
18105 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
18138 lt_prog_compiler_wl_CXX=
18139 lt_prog_compiler_pic_CXX=
18140 lt_prog_compiler_static_CXX=
18143 # C++ specific cases for pic, static, wl, etc.
18144 if test "$GXX" = yes; then
18145 lt_prog_compiler_wl_CXX='-Wl,'
18146 lt_prog_compiler_static_CXX='-static'
18150 # All AIX code is PIC.
18151 if test "$host_cpu" = ia64; then
18152 # AIX 5 now supports IA64 processor
18153 lt_prog_compiler_static_CXX='-Bstatic'
18160 # see comment about AmigaOS4 .so support
18161 lt_prog_compiler_pic_CXX='-fPIC'
18164 # FIXME: we need at least 68020 code to build shared libraries, but
18165 # adding the `-m68020' flag to GCC prevents building anything better,
18167 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
18172 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18173 # PIC is the default for these OSes.
18175 mingw* | cygwin* | os2* | pw32* | cegcc*)
18176 # This hack is so that the source file can tell whether it is being
18177 # built for inclusion in a dll (and should export symbols for example).
18178 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18179 # (--disable-auto-import) libraries
18180 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18182 darwin* | rhapsody*)
18183 # PIC is the default on this platform
18184 # Common symbols not allowed in MH_DYLIB files
18185 lt_prog_compiler_pic_CXX='-fno-common'
18188 # DJGPP does not support shared libraries at all
18189 lt_prog_compiler_pic_CXX=
18192 # PIC is the default for Haiku.
18193 # The "-static" flag exists, but is broken.
18194 lt_prog_compiler_static_CXX=
18197 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18198 # Instead, we relocate shared libraries at runtime.
18201 if test -d /usr/nec; then
18202 lt_prog_compiler_pic_CXX=-Kconform_pic
18206 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
18207 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
18208 # sets the default TLS model and affects inlining.
18213 lt_prog_compiler_pic_CXX='-fPIC'
18218 # QNX uses GNU C++, but need to define -shared option too, otherwise
18219 # it will coredump.
18220 lt_prog_compiler_pic_CXX='-fPIC -shared'
18223 lt_prog_compiler_pic_CXX='-fPIC'
18229 # All AIX code is PIC.
18230 if test "$host_cpu" = ia64; then
18231 # AIX 5 now supports IA64 processor
18232 lt_prog_compiler_static_CXX='-Bstatic'
18234 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
18238 case $cc_basename in
18240 # Green Hills C++ Compiler
18241 # _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"
18245 mingw* | cygwin* | os2* | pw32* | cegcc*)
18246 # This hack is so that the source file can tell whether it is being
18247 # built for inclusion in a dll (and should export symbols for example).
18248 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
18251 case $cc_basename in
18253 lt_prog_compiler_pic_CXX='-KPIC'
18256 # Green Hills C++ Compiler
18257 lt_prog_compiler_pic_CXX='-pic'
18263 freebsd* | dragonfly*)
18264 # FreeBSD uses GNU C++
18266 hpux9* | hpux10* | hpux11*)
18267 case $cc_basename in
18269 lt_prog_compiler_wl_CXX='-Wl,'
18270 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18271 if test "$host_cpu" != ia64; then
18272 lt_prog_compiler_pic_CXX='+Z'
18276 lt_prog_compiler_wl_CXX='-Wl,'
18277 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
18283 lt_prog_compiler_pic_CXX='+Z'
18292 # This is c89, which is MS Visual C++ (no shared libs)
18293 # Anyone wants to do a port?
18295 irix5* | irix6* | nonstopux*)
18296 case $cc_basename in
18298 lt_prog_compiler_wl_CXX='-Wl,'
18299 lt_prog_compiler_static_CXX='-non_shared'
18300 # CC pic flag -KPIC is the default.
18306 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18307 case $cc_basename in
18310 lt_prog_compiler_wl_CXX='--backend -Wl,'
18311 lt_prog_compiler_pic_CXX='-fPIC'
18314 # old Intel C++ for x86_64 which still supported -KPIC.
18315 lt_prog_compiler_wl_CXX='-Wl,'
18316 lt_prog_compiler_pic_CXX='-KPIC'
18317 lt_prog_compiler_static_CXX='-static'
18320 # Intel C++, used to be incompatible with GCC.
18321 # ICC 10 doesn't accept -KPIC any more.
18322 lt_prog_compiler_wl_CXX='-Wl,'
18323 lt_prog_compiler_pic_CXX='-fPIC'
18324 lt_prog_compiler_static_CXX='-static'
18327 # Portland Group C++ compiler
18328 lt_prog_compiler_wl_CXX='-Wl,'
18329 lt_prog_compiler_pic_CXX='-fpic'
18330 lt_prog_compiler_static_CXX='-Bstatic'
18334 # Make sure the PIC flag is empty. It appears that all Alpha
18335 # Linux and Compaq Tru64 Unix objects are PIC.
18336 lt_prog_compiler_pic_CXX=
18337 lt_prog_compiler_static_CXX='-non_shared'
18339 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
18340 # IBM XL 8.0, 9.0 on PPC and BlueGene
18341 lt_prog_compiler_wl_CXX='-Wl,'
18342 lt_prog_compiler_pic_CXX='-qpic'
18343 lt_prog_compiler_static_CXX='-qstaticlink'
18346 case `$CC -V 2>&1 | sed 5q` in
18349 lt_prog_compiler_pic_CXX='-KPIC'
18350 lt_prog_compiler_static_CXX='-Bstatic'
18351 lt_prog_compiler_wl_CXX='-Qoption ld '
18362 case $cc_basename in
18364 lt_prog_compiler_pic_CXX='-W c,exportall'
18373 # QNX uses GNU C++, but need to define -shared option too, otherwise
18374 # it will coredump.
18375 lt_prog_compiler_pic_CXX='-fPIC -shared'
18377 osf3* | osf4* | osf5*)
18378 case $cc_basename in
18380 lt_prog_compiler_wl_CXX='--backend -Wl,'
18383 # Rational C++ 2.4.1
18384 lt_prog_compiler_pic_CXX='-pic'
18387 # Digital/Compaq C++
18388 lt_prog_compiler_wl_CXX='-Wl,'
18389 # Make sure the PIC flag is empty. It appears that all Alpha
18390 # Linux and Compaq Tru64 Unix objects are PIC.
18391 lt_prog_compiler_pic_CXX=
18392 lt_prog_compiler_static_CXX='-non_shared'
18401 case $cc_basename in
18403 # Sun C++ 4.2, 5.x and Centerline C++
18404 lt_prog_compiler_pic_CXX='-KPIC'
18405 lt_prog_compiler_static_CXX='-Bstatic'
18406 lt_prog_compiler_wl_CXX='-Qoption ld '
18409 # Green Hills C++ Compiler
18410 lt_prog_compiler_pic_CXX='-PIC'
18417 case $cc_basename in
18420 lt_prog_compiler_pic_CXX='-pic'
18421 lt_prog_compiler_static_CXX='-Bstatic'
18425 lt_prog_compiler_pic_CXX='-pic'
18431 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18432 case $cc_basename in
18434 lt_prog_compiler_wl_CXX='-Wl,'
18435 lt_prog_compiler_pic_CXX='-KPIC'
18436 lt_prog_compiler_static_CXX='-Bstatic'
18441 case $cc_basename in
18443 # NonStop-UX NCC 3.20
18444 lt_prog_compiler_pic_CXX='-KPIC'
18453 lt_prog_compiler_can_build_shared_CXX=no
18459 # For platforms which do not support PIC, -DPIC is meaningless:
18461 lt_prog_compiler_pic_CXX=
18464 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
18469 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
18470 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
18471 $as_echo_n "(cached) " >&6
18473 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
18476 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
18477 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
18480 # Check to make sure the PIC flag actually works.
18482 if test -n "$lt_prog_compiler_pic_CXX"; then
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
18484 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
18485 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
18486 $as_echo_n "(cached) " >&6
18488 lt_cv_prog_compiler_pic_works_CXX=no
18489 ac_outfile=conftest.$ac_objext
18490 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18491 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
18492 # Insert the option either (1) after the last *FLAGS variable, or
18493 # (2) before a word containing "conftest.", or (3) at the end.
18494 # Note that $ac_compile itself does not contain backslashes and begins
18495 # with a dollar sign (not a hyphen), so the echo should work correctly.
18496 # The option is referenced via a variable to avoid confusing sed.
18497 lt_compile=`echo "$ac_compile" | $SED \
18498 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18499 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18500 -e 's:$: $lt_compiler_flag:'`
18501 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18502 (eval "$lt_compile" 2>conftest.err)
18504 cat conftest.err >&5
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 if (exit $ac_status) && test -s "$ac_outfile"; then
18507 # The compiler can only warn and ignore the option if not recognized
18508 # So say no if there are warnings other than the usual output.
18509 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
18510 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18511 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18512 lt_cv_prog_compiler_pic_works_CXX=yes
18518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
18519 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
18521 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
18522 case $lt_prog_compiler_pic_CXX in
18524 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
18527 lt_prog_compiler_pic_CXX=
18528 lt_prog_compiler_can_build_shared_CXX=no
18538 # Check to make sure the static flag actually works.
18540 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18542 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18543 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
18544 $as_echo_n "(cached) " >&6
18546 lt_cv_prog_compiler_static_works_CXX=no
18547 save_LDFLAGS="$LDFLAGS"
18548 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18549 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18550 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18551 # The linker can only warn and ignore the option if not recognized
18552 # So say no if there are warnings
18553 if test -s conftest.err; then
18554 # Append any errors to the config.log.
18555 cat conftest.err 1>&5
18556 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
18557 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18558 if diff conftest.exp conftest.er2 >/dev/null; then
18559 lt_cv_prog_compiler_static_works_CXX=yes
18562 lt_cv_prog_compiler_static_works_CXX=yes
18566 LDFLAGS="$save_LDFLAGS"
18569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
18570 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
18572 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18575 lt_prog_compiler_static_CXX=
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18582 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18583 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18584 $as_echo_n "(cached) " >&6
18586 lt_cv_prog_compiler_c_o_CXX=no
18587 $RM -r conftest 2>/dev/null
18591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18593 lt_compiler_flag="-o out/conftest2.$ac_objext"
18594 # Insert the option either (1) after the last *FLAGS variable, or
18595 # (2) before a word containing "conftest.", or (3) at the end.
18596 # Note that $ac_compile itself does not contain backslashes and begins
18597 # with a dollar sign (not a hyphen), so the echo should work correctly.
18598 lt_compile=`echo "$ac_compile" | $SED \
18599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18601 -e 's:$: $lt_compiler_flag:'`
18602 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18603 (eval "$lt_compile" 2>out/conftest.err)
18605 cat out/conftest.err >&5
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18609 # The compiler can only warn and ignore the option if not recognized
18610 # So say no if there are warnings
18611 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18612 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18613 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18614 lt_cv_prog_compiler_c_o_CXX=yes
18619 # SGI C++ compiler will create directory out/ii_files/ for
18620 # template instantiation
18621 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18622 $RM out/* && rmdir out
18628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18629 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18634 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18635 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
18636 $as_echo_n "(cached) " >&6
18638 lt_cv_prog_compiler_c_o_CXX=no
18639 $RM -r conftest 2>/dev/null
18643 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18645 lt_compiler_flag="-o out/conftest2.$ac_objext"
18646 # Insert the option either (1) after the last *FLAGS variable, or
18647 # (2) before a word containing "conftest.", or (3) at the end.
18648 # Note that $ac_compile itself does not contain backslashes and begins
18649 # with a dollar sign (not a hyphen), so the echo should work correctly.
18650 lt_compile=`echo "$ac_compile" | $SED \
18651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18653 -e 's:$: $lt_compiler_flag:'`
18654 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
18655 (eval "$lt_compile" 2>out/conftest.err)
18657 cat out/conftest.err >&5
18658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18661 # The compiler can only warn and ignore the option if not recognized
18662 # So say no if there are warnings
18663 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
18664 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18665 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18666 lt_cv_prog_compiler_c_o_CXX=yes
18671 # SGI C++ compiler will create directory out/ii_files/ for
18672 # template instantiation
18673 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18674 $RM out/* && rmdir out
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18681 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18686 hard_links="nottested"
18687 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18688 # do not overwrite the value of need_locks provided by the user
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18690 $as_echo_n "checking if we can lock with hard links... " >&6; }
18693 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18695 ln conftest.a conftest.b 2>&5 || hard_links=no
18696 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18698 $as_echo "$hard_links" >&6; }
18699 if test "$hard_links" = no; then
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18701 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18711 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18713 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18714 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18717 # If we're using GNU nm, then we don't want the "-C" option.
18718 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18719 # Also, AIX nm treats weak defined symbols like other global defined
18720 # symbols, whereas GNU nm marks them as "W".
18721 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18722 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'
18724 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'
18728 export_symbols_cmds_CXX="$ltdll_cmds"
18730 cygwin* | mingw* | cegcc*)
18731 case $cc_basename in
18734 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'
18735 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
18740 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18745 $as_echo "$ld_shlibs_CXX" >&6; }
18746 test "$ld_shlibs_CXX" = no && can_build_shared=no
18748 with_gnu_ld_CXX=$with_gnu_ld
18756 # Do we need to explicitly link libc?
18758 case "x$archive_cmds_need_lc_CXX" in
18760 # Assume -lc should be added
18761 archive_cmds_need_lc_CXX=yes
18763 if test "$enable_shared" = yes && test "$GCC" = yes; then
18764 case $archive_cmds_CXX in
18766 # FIXME: we may have to deal with multi-command sequences.
18769 # Test whether the compiler implicitly links with -lc since on some
18770 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18771 # to ld, don't add -lc before -lgcc.
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18773 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18774 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
18775 $as_echo_n "(cached) " >&6
18778 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18780 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18781 (eval $ac_compile) 2>&5
18783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18784 test $ac_status = 0; } 2>conftest.err; then
18787 libobjs=conftest.$ac_objext
18789 wl=$lt_prog_compiler_wl_CXX
18790 pic_flag=$lt_prog_compiler_pic_CXX
18796 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18797 allow_undefined_flag_CXX=
18798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18799 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18802 test $ac_status = 0; }
18804 lt_cv_archive_cmds_need_lc_CXX=no
18806 lt_cv_archive_cmds_need_lc_CXX=yes
18808 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18810 cat conftest.err 1>&5
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18816 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18817 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18888 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18890 library_names_spec=
18891 libname_spec='lib$name'
18895 postuninstall_cmds=
18899 shlibpath_overrides_runpath=unknown
18901 dynamic_linker="$host_os ld.so"
18902 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18903 need_lib_prefix=unknown
18904 hardcode_into_libs=no
18906 # when you set need_version to no, make sure it does not cause -set_version
18907 # flags to be left without arguments
18908 need_version=unknown
18913 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18914 shlibpath_var=LIBPATH
18916 # AIX 3 has no versioning support, so we append a major version to the name.
18917 soname_spec='${libname}${release}${shared_ext}$major'
18924 hardcode_into_libs=yes
18925 if test "$host_cpu" = ia64; then
18926 # AIX 5 supports IA64
18927 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18928 shlibpath_var=LD_LIBRARY_PATH
18930 # With GCC up to 2.95.x, collect2 would create an import file
18931 # for dependence libraries. The import file would start with
18932 # the line `#! .'. This would cause the generated library to
18933 # depend on `.', always an invalid library. This was fixed in
18934 # development snapshots of GCC prior to 3.0.
18936 aix4 | aix4.[01] | aix4.[01].*)
18937 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18939 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18942 can_build_shared=no
18946 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18947 # soname into executable. Probably we can add versioning support to
18948 # collect2, so additional links can be useful in future.
18949 if test "$aix_use_runtimelinking" = yes; then
18950 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18951 # instead of lib<name>.a to let people know that these are not
18952 # typical AIX shared libraries.
18953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18955 # We preserve .a as extension for shared libraries through AIX4.2
18956 # and later when we are not doing run time linking.
18957 library_names_spec='${libname}${release}.a $libname.a'
18958 soname_spec='${libname}${release}${shared_ext}$major'
18960 shlibpath_var=LIBPATH
18967 # Since July 2007 AmigaOS4 officially supports .so libraries.
18968 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18972 library_names_spec='$libname.ixlibrary $libname.a'
18973 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18974 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'
18980 library_names_spec='${libname}${shared_ext}'
18981 dynamic_linker="$host_os ld.so"
18982 shlibpath_var=LIBRARY_PATH
18988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18989 soname_spec='${libname}${release}${shared_ext}$major'
18990 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18991 shlibpath_var=LD_LIBRARY_PATH
18992 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18993 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18994 # the default ld.so.conf also contains /usr/contrib/lib and
18995 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18996 # libtool to hard-code these into programs
18999 cygwin* | mingw* | pw32* | cegcc*)
19000 version_type=windows
19005 case $GCC,$cc_basename in
19008 library_names_spec='$libname.dll.a'
19009 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19010 postinstall_cmds='base_file=`basename \${file}`~
19011 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19012 dldir=$destdir/`dirname \$dlpath`~
19013 test -d \$dldir || mkdir -p \$dldir~
19014 $install_prog $dir/$dlname \$dldir/$dlname~
19015 chmod a+x \$dldir/$dlname~
19016 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19017 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19019 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19020 dlpath=$dir/\$dldll~
19022 shlibpath_overrides_runpath=yes
19026 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19027 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19031 # MinGW DLLs use traditional 'lib' prefix
19032 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19035 # pw32 DLLs use 'pw' prefix rather than 'lib'
19036 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19039 dynamic_linker='Win32 ld.exe'
19044 libname_spec='$name'
19045 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19046 library_names_spec='${libname}.dll.lib'
19050 sys_lib_search_path_spec=
19053 for lt_path in $LIB
19056 # Let DOS variable expansion print the short 8.3 style file name.
19057 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
19058 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
19061 # Convert to MSYS style.
19062 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
19065 # Convert to unix form, then to dos form, then back to unix form
19066 # but this time dos style (no spaces!) so that the unix form looks
19067 # like /cygdrive/c/PROGRA~1:/cygdr...
19068 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
19069 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
19070 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19073 sys_lib_search_path_spec="$LIB"
19074 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19075 # It is most probably a Windows format PATH.
19076 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19078 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19080 # FIXME: find the short name or the path components, as spaces are
19081 # common. (e.g. "Program Files" -> "PROGRA~1")
19085 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19086 postinstall_cmds='base_file=`basename \${file}`~
19087 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19088 dldir=$destdir/`dirname \$dlpath`~
19089 test -d \$dldir || mkdir -p \$dldir~
19090 $install_prog $dir/$dlname \$dldir/$dlname'
19091 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19092 dlpath=$dir/\$dldll~
19094 shlibpath_overrides_runpath=yes
19095 dynamic_linker='Win32 link.exe'
19099 # Assume MSVC wrapper
19100 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19101 dynamic_linker='Win32 ld.exe'
19104 # FIXME: first we should search . and the directory the executable is in
19108 darwin* | rhapsody*)
19109 dynamic_linker="$host_os dyld"
19110 version_type=darwin
19113 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19114 soname_spec='${libname}${release}${major}$shared_ext'
19115 shlibpath_overrides_runpath=yes
19116 shlibpath_var=DYLD_LIBRARY_PATH
19117 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19119 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19127 soname_spec='${libname}${release}${shared_ext}$major'
19128 shlibpath_var=LD_LIBRARY_PATH
19135 freebsd* | dragonfly*)
19136 # DragonFly does not have aout. When/if they implement a new
19137 # versioning mechanism, adjust this.
19138 if test -x /usr/bin/objformat; then
19139 objformat=`/usr/bin/objformat`
19142 freebsd[123]*) objformat=aout ;;
19143 *) objformat=elf ;;
19146 version_type=freebsd-$objformat
19147 case $version_type in
19149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19154 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19158 shlibpath_var=LD_LIBRARY_PATH
19161 shlibpath_overrides_runpath=yes
19163 freebsd3.[01]* | freebsdelf3.[01]*)
19164 shlibpath_overrides_runpath=yes
19165 hardcode_into_libs=yes
19167 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19168 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19169 shlibpath_overrides_runpath=no
19170 hardcode_into_libs=yes
19172 *) # from 4.6 on, and DragonFly
19173 shlibpath_overrides_runpath=yes
19174 hardcode_into_libs=yes
19183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19184 soname_spec='${libname}${release}${shared_ext}$major'
19185 shlibpath_var=LD_LIBRARY_PATH
19186 hardcode_into_libs=yes
19193 dynamic_linker="$host_os runtime_loader"
19194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19195 soname_spec='${libname}${release}${shared_ext}$major'
19196 shlibpath_var=LIBRARY_PATH
19197 shlibpath_overrides_runpath=yes
19198 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
19199 hardcode_into_libs=yes
19202 hpux9* | hpux10* | hpux11*)
19203 # Give a soname corresponding to the major version so that dld.sl refuses to
19204 # link against other versions.
19211 hardcode_into_libs=yes
19212 dynamic_linker="$host_os dld.so"
19213 shlibpath_var=LD_LIBRARY_PATH
19214 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19216 soname_spec='${libname}${release}${shared_ext}$major'
19217 if test "X$HPUX_IA64_MODE" = X32; then
19218 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19220 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19222 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19226 hardcode_into_libs=yes
19227 dynamic_linker="$host_os dld.sl"
19228 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19229 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19231 soname_spec='${libname}${release}${shared_ext}$major'
19232 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19233 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19237 dynamic_linker="$host_os dld.sl"
19238 shlibpath_var=SHLIB_PATH
19239 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19241 soname_spec='${libname}${release}${shared_ext}$major'
19244 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
19245 postinstall_cmds='chmod 555 $lib'
19246 # or fails outright, so override atomically:
19247 install_override_mode=555
19254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19255 soname_spec='${libname}${release}${shared_ext}$major'
19256 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19257 shlibpath_var=LD_LIBRARY_PATH
19258 shlibpath_overrides_runpath=no
19259 hardcode_into_libs=yes
19262 irix5* | irix6* | nonstopux*)
19264 nonstopux*) version_type=nonstopux ;;
19266 if test "$lt_cv_prog_gnu_ld" = yes; then
19274 soname_spec='${libname}${release}${shared_ext}$major'
19275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19277 irix5* | nonstopux*)
19278 libsuff= shlibsuff=
19281 case $LD in # libtool.m4 will add one of these switches to LD
19282 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19283 libsuff= shlibsuff= libmagic=32-bit;;
19284 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19285 libsuff=32 shlibsuff=N32 libmagic=N32;;
19286 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19287 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19288 *) libsuff= shlibsuff= libmagic=never-match;;
19292 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19293 shlibpath_overrides_runpath=no
19294 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19295 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19296 hardcode_into_libs=yes
19299 # No shared lib support for Linux oldld, aout, or coff.
19300 linux*oldld* | linux*aout* | linux*coff*)
19304 # This must be Linux ELF.
19305 linux* | k*bsd*-gnu | kopensolaris*-gnu)
19309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19310 soname_spec='${libname}${release}${shared_ext}$major'
19311 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19312 shlibpath_var=LD_LIBRARY_PATH
19313 shlibpath_overrides_runpath=no
19315 # Some binutils ld are patched to set DT_RUNPATH
19316 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
19317 $as_echo_n "(cached) " >&6
19319 lt_cv_shlibpath_overrides_runpath=no
19320 save_LDFLAGS=$LDFLAGS
19321 save_libdir=$libdir
19322 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
19323 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
19324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19325 /* end confdefs.h. */
19335 if ac_fn_cxx_try_link "$LINENO"; then :
19336 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19337 lt_cv_shlibpath_overrides_runpath=yes
19340 rm -f core conftest.err conftest.$ac_objext \
19341 conftest$ac_exeext conftest.$ac_ext
19342 LDFLAGS=$save_LDFLAGS
19343 libdir=$save_libdir
19347 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
19349 # This implies no fast_install, which is unacceptable.
19350 # Some rework will be needed to allow for fast_install
19351 # before this can be enabled.
19352 hardcode_into_libs=yes
19354 # Add ABI-specific directories to the system library path.
19355 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
19357 # Append ld.so.conf contents to the search path
19358 if test -f /etc/ld.so.conf; then
19359 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' ' '`
19360 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
19364 # We used to test for /lib/ld.so.1 and disable shared libraries on
19365 # powerpc, because MkLinux only supported shared libraries with the
19366 # GNU dynamic linker. Since this was broken with cross compilers,
19367 # most powerpc-linux boxes support dynamic linking these days and
19368 # people can always --disable-shared, the test was removed, and we
19369 # assume the GNU/Linux dynamic linker is in use.
19370 dynamic_linker='GNU/Linux ld.so'
19377 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19379 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19380 dynamic_linker='NetBSD (a.out) ld.so'
19382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19383 soname_spec='${libname}${release}${shared_ext}$major'
19384 dynamic_linker='NetBSD ld.elf_so'
19386 shlibpath_var=LD_LIBRARY_PATH
19387 shlibpath_overrides_runpath=yes
19388 hardcode_into_libs=yes
19393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19394 shlibpath_var=LD_LIBRARY_PATH
19395 shlibpath_overrides_runpath=yes
19402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19403 soname_spec='${libname}${release}${shared_ext}$major'
19404 shlibpath_var=LD_LIBRARY_PATH
19405 shlibpath_overrides_runpath=no
19406 hardcode_into_libs=yes
19407 dynamic_linker='ldqnx.so'
19412 sys_lib_dlsearch_path_spec="/usr/lib"
19414 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19416 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19417 *) need_version=no ;;
19419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19421 shlibpath_var=LD_LIBRARY_PATH
19422 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19424 openbsd2.[89] | openbsd2.[89].*)
19425 shlibpath_overrides_runpath=no
19428 shlibpath_overrides_runpath=yes
19432 shlibpath_overrides_runpath=yes
19437 libname_spec='$name'
19440 library_names_spec='$libname${shared_ext} $libname.a'
19441 dynamic_linker='OS/2 ld.exe'
19442 shlibpath_var=LIBPATH
19445 osf3* | osf4* | osf5*)
19449 soname_spec='${libname}${release}${shared_ext}$major'
19450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19451 shlibpath_var=LD_LIBRARY_PATH
19452 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19453 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19465 soname_spec='${libname}${release}${shared_ext}$major'
19466 shlibpath_var=LD_LIBRARY_PATH
19467 shlibpath_overrides_runpath=yes
19468 hardcode_into_libs=yes
19469 # ldd complains unless libraries are executable
19470 postinstall_cmds='chmod +x $lib'
19475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19476 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19477 shlibpath_var=LD_LIBRARY_PATH
19478 shlibpath_overrides_runpath=yes
19479 if test "$with_gnu_ld" = yes; then
19487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19488 soname_spec='${libname}${release}${shared_ext}$major'
19489 shlibpath_var=LD_LIBRARY_PATH
19490 case $host_vendor in
19492 shlibpath_overrides_runpath=no
19494 runpath_var=LD_RUN_PATH
19502 shlibpath_overrides_runpath=no
19503 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19509 if test -d /usr/nec ;then
19511 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19512 soname_spec='$libname${shared_ext}.$major'
19513 shlibpath_var=LD_LIBRARY_PATH
19517 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19518 version_type=freebsd-elf
19521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19522 soname_spec='${libname}${release}${shared_ext}$major'
19523 shlibpath_var=LD_LIBRARY_PATH
19524 shlibpath_overrides_runpath=yes
19525 hardcode_into_libs=yes
19526 if test "$with_gnu_ld" = yes; then
19527 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19529 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19532 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19536 sys_lib_dlsearch_path_spec='/usr/lib'
19540 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19545 shlibpath_var=LD_LIBRARY_PATH
19546 shlibpath_overrides_runpath=no
19547 hardcode_into_libs=yes
19552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19553 soname_spec='${libname}${release}${shared_ext}$major'
19554 shlibpath_var=LD_LIBRARY_PATH
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19562 $as_echo "$dynamic_linker" >&6; }
19563 test "$dynamic_linker" = no && can_build_shared=no
19565 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19566 if test "$GCC" = yes; then
19567 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19570 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19571 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19573 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19574 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19615 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19616 hardcode_action_CXX=
19617 if test -n "$hardcode_libdir_flag_spec_CXX" ||
19618 test -n "$runpath_var_CXX" ||
19619 test "X$hardcode_automatic_CXX" = "Xyes" ; then
19621 # We can hardcode non-existent directories.
19622 if test "$hardcode_direct_CXX" != no &&
19623 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19624 # have to relink, otherwise we might link with an installed library
19625 # when we should be linking with a yet-to-be-installed one
19626 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
19627 test "$hardcode_minus_L_CXX" != no; then
19628 # Linking always hardcodes the temporary library directory.
19629 hardcode_action_CXX=relink
19631 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19632 hardcode_action_CXX=immediate
19635 # We cannot hardcode anything, or else we can only hardcode existing
19637 hardcode_action_CXX=unsupported
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
19640 $as_echo "$hardcode_action_CXX" >&6; }
19642 if test "$hardcode_action_CXX" = relink ||
19643 test "$inherit_rpath_CXX" = yes; then
19644 # Fast installation is not supported
19645 enable_fast_install=no
19646 elif test "$shlibpath_overrides_runpath" = yes ||
19647 test "$enable_shared" = no; then
19648 # Fast installation is not necessary
19649 enable_fast_install=needless
19658 fi # test -n "$compiler"
19661 CFLAGS=$lt_save_CFLAGS
19665 with_gnu_ld=$lt_save_with_gnu_ld
19666 lt_cv_path_LDCXX=$lt_cv_path_LD
19667 lt_cv_path_LD=$lt_save_path_LD
19668 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19669 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19670 fi # test "$_lt_caught_CXX_error" != yes
19673 ac_cpp='$CPP $CPPFLAGS'
19674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19690 ac_config_commands="$ac_config_commands libtool"
19695 # Only expand once:
19701 # Configure libltdl
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19710 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
19711 if ${libltdl_cv_shlibext+:} false; then :
19712 $as_echo_n "(cached) " >&6
19716 eval libltdl_cv_shlibext=$shrext_cmds
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19720 $as_echo "$libltdl_cv_shlibext" >&6; }
19721 if test -n "$libltdl_cv_shlibext"; then
19723 cat >>confdefs.h <<_ACEOF
19724 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
19729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19730 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
19731 if ${lt_cv_module_path_var+:} false; then :
19732 $as_echo_n "(cached) " >&6
19734 lt_cv_module_path_var="$shlibpath_var"
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19737 $as_echo "$lt_cv_module_path_var" >&6; }
19738 if test -n "$lt_cv_module_path_var"; then
19740 cat >>confdefs.h <<_ACEOF
19741 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19747 $as_echo_n "checking for the default library search path... " >&6; }
19748 if ${lt_cv_sys_dlsearch_path+:} false; then :
19749 $as_echo_n "(cached) " >&6
19751 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19754 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19755 if test -n "$lt_cv_sys_dlsearch_path"; then
19757 for dir in $lt_cv_sys_dlsearch_path; do
19758 if test -z "$sys_dlsearch_path"; then
19759 sys_dlsearch_path="$dir"
19761 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19765 cat >>confdefs.h <<_ACEOF
19766 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19776 ac_cpp='$CPP $CPPFLAGS'
19777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19784 $as_echo_n "checking for library containing dlopen... " >&6; }
19785 if ${ac_cv_search_dlopen+:} false; then :
19786 $as_echo_n "(cached) " >&6
19788 ac_func_search_save_LIBS=$LIBS
19789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19790 /* end confdefs.h. */
19792 /* Override any GCC internal prototype to avoid an error.
19793 Use char because int might match the return type of a GCC
19794 builtin and then its argument prototype would still apply. */
19807 for ac_lib in '' dl; do
19808 if test -z "$ac_lib"; then
19809 ac_res="none required"
19812 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19814 if ac_fn_c_try_link "$LINENO"; then :
19815 ac_cv_search_dlopen=$ac_res
19817 rm -f core conftest.err conftest.$ac_objext \
19819 if ${ac_cv_search_dlopen+:} false; then :
19823 if ${ac_cv_search_dlopen+:} false; then :
19826 ac_cv_search_dlopen=no
19828 rm conftest.$ac_ext
19829 LIBS=$ac_func_search_save_LIBS
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19832 $as_echo "$ac_cv_search_dlopen" >&6; }
19833 ac_res=$ac_cv_search_dlopen
19834 if test "$ac_res" != no; then :
19835 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19837 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19839 if test "$ac_cv_search_dlopen" != "none required" ; then
19840 LIBADD_DLOPEN="-ldl"
19842 libltdl_cv_lib_dl_dlopen="yes"
19843 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19846 /* end confdefs.h. */
19848 # include <dlfcn.h>
19859 if ac_fn_c_try_link "$LINENO"; then :
19861 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19863 libltdl_cv_func_dlopen="yes"
19864 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19867 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19868 if ${ac_cv_lib_svld_dlopen+:} false; then :
19869 $as_echo_n "(cached) " >&6
19871 ac_check_lib_save_LIBS=$LIBS
19872 LIBS="-lsvld $LIBS"
19873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19874 /* end confdefs.h. */
19876 /* Override any GCC internal prototype to avoid an error.
19877 Use char because int might match the return type of a GCC
19878 builtin and then its argument prototype would still apply. */
19891 if ac_fn_c_try_link "$LINENO"; then :
19892 ac_cv_lib_svld_dlopen=yes
19894 ac_cv_lib_svld_dlopen=no
19896 rm -f core conftest.err conftest.$ac_objext \
19897 conftest$ac_exeext conftest.$ac_ext
19898 LIBS=$ac_check_lib_save_LIBS
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19901 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19902 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
19904 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19906 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19907 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19911 rm -f core conftest.err conftest.$ac_objext \
19912 conftest$ac_exeext conftest.$ac_ext
19915 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19917 lt_save_LIBS="$LIBS"
19918 LIBS="$LIBS $LIBADD_DLOPEN"
19919 for ac_func in dlerror
19921 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19922 if test "x$ac_cv_func_dlerror" = xyes; then :
19923 cat >>confdefs.h <<_ACEOF
19924 #define HAVE_DLERROR 1
19930 LIBS="$lt_save_LIBS"
19935 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19936 if test "x$ac_cv_func_shl_load" = xyes; then :
19938 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19940 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19943 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19944 if ${ac_cv_lib_dld_shl_load+:} false; then :
19945 $as_echo_n "(cached) " >&6
19947 ac_check_lib_save_LIBS=$LIBS
19949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19950 /* end confdefs.h. */
19952 /* Override any GCC internal prototype to avoid an error.
19953 Use char because int might match the return type of a GCC
19954 builtin and then its argument prototype would still apply. */
19962 return shl_load ();
19967 if ac_fn_c_try_link "$LINENO"; then :
19968 ac_cv_lib_dld_shl_load=yes
19970 ac_cv_lib_dld_shl_load=no
19972 rm -f core conftest.err conftest.$ac_objext \
19973 conftest$ac_exeext conftest.$ac_ext
19974 LIBS=$ac_check_lib_save_LIBS
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19977 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19978 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
19980 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19982 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19983 LIBADD_SHL_LOAD="-ldld"
19992 # We only want this for pre-Mac OS X 10.4.
19993 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19994 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
19996 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
19998 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20003 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20005 cygwin* | mingw* | os2* | pw32*)
20006 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20008 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
20014 cat >>confdefs.h <<_ACEOF
20015 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20018 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20023 $as_echo_n "checking for dld_link in -ldld... " >&6; }
20024 if ${ac_cv_lib_dld_dld_link+:} false; then :
20025 $as_echo_n "(cached) " >&6
20027 ac_check_lib_save_LIBS=$LIBS
20029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20030 /* end confdefs.h. */
20032 /* Override any GCC internal prototype to avoid an error.
20033 Use char because int might match the return type of a GCC
20034 builtin and then its argument prototype would still apply. */
20042 return dld_link ();
20047 if ac_fn_c_try_link "$LINENO"; then :
20048 ac_cv_lib_dld_dld_link=yes
20050 ac_cv_lib_dld_dld_link=no
20052 rm -f core conftest.err conftest.$ac_objext \
20053 conftest$ac_exeext conftest.$ac_ext
20054 LIBS=$ac_check_lib_save_LIBS
20056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
20057 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
20058 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
20060 $as_echo "#define HAVE_DLD 1" >>confdefs.h
20062 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
20069 if test -n "$LT_DLLOADERS"
20071 for lt_loader in $LT_DLLOADERS; do
20072 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
20075 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
20080 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
20084 ac_cpp='$CPP $CPPFLAGS'
20085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
20091 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
20092 if ${lt_cv_sys_symbol_underscore+:} false; then :
20093 $as_echo_n "(cached) " >&6
20095 lt_cv_sys_symbol_underscore=no
20096 cat > conftest.$ac_ext <<_LT_EOF
20097 void nm_test_func(){}
20098 int main(){nm_test_func;return 0;}
20100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20101 (eval $ac_compile) 2>&5
20103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20104 test $ac_status = 0; }; then
20105 # Now try to grab the symbols.
20106 ac_nlist=conftest.nm
20107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
20108 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
20110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20111 test $ac_status = 0; } && test -s "$ac_nlist"; then
20112 # See whether the symbols have a leading underscore.
20113 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
20114 lt_cv_sys_symbol_underscore=yes
20116 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
20119 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
20123 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
20126 echo "configure: failed program was:" >&5
20132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
20133 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
20134 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
20137 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
20138 if test x"$libltdl_cv_func_dlopen" = xyes ||
20139 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
20140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
20141 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
20142 if ${libltdl_cv_need_uscore+:} false; then :
20143 $as_echo_n "(cached) " >&6
20145 libltdl_cv_need_uscore=unknown
20147 LIBS="$LIBS $LIBADD_DLOPEN"
20148 if test "$cross_compiling" = yes; then :
20149 libltdl_cv_need_uscore=cross
20151 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20152 lt_status=$lt_dlunknown
20153 cat > conftest.$ac_ext <<_LT_EOF
20154 #line $LINENO "configure"
20155 #include "confdefs.h"
20164 # define LT_DLGLOBAL RTLD_GLOBAL
20167 # define LT_DLGLOBAL DL_GLOBAL
20169 # define LT_DLGLOBAL 0
20173 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20174 find out it does not work in some platform. */
20175 #ifndef LT_DLLAZY_OR_NOW
20177 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20180 # define LT_DLLAZY_OR_NOW DL_LAZY
20183 # define LT_DLLAZY_OR_NOW RTLD_NOW
20186 # define LT_DLLAZY_OR_NOW DL_NOW
20188 # define LT_DLLAZY_OR_NOW 0
20195 /* When -fvisbility=hidden is used, assume the code has been annotated
20196 correspondingly for the symbols needed. */
20197 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
20198 int fnord () __attribute__((visibility("default")));
20201 int fnord () { return 42; }
20204 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20205 int status = $lt_dlunknown;
20209 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20212 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20213 else puts (dlerror ());
20215 /* dlclose (self); */
20223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
20224 (eval $ac_link) 2>&5
20226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20227 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
20228 (./conftest; exit; ) >&5 2>/dev/null
20230 case x$lt_status in
20231 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
20232 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
20233 x$lt_dlunknown|x*) ;;
20236 # compilation failed
20245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
20246 $as_echo "$libltdl_cv_need_uscore" >&6; }
20250 if test x"$libltdl_cv_need_uscore" = xyes; then
20252 $as_echo "#define NEED_USCORE 1" >>confdefs.h
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
20257 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
20258 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
20259 $as_echo_n "(cached) " >&6
20261 # PORTME does your system automatically load deplibs for dlopen?
20262 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
20263 # For now, we just catch OSes we know something about -- in the
20264 # future, we'll try test this programmatically.
20265 lt_cv_sys_dlopen_deplibs=unknown
20267 aix3*|aix4.1.*|aix4.2.*)
20268 # Unknown whether this is true for these versions of AIX, but
20269 # we want this `case' here to explicitly catch those versions.
20270 lt_cv_sys_dlopen_deplibs=unknown
20273 lt_cv_sys_dlopen_deplibs=yes
20278 lt_cv_sys_dlopen_deplibs=no
20283 # Assuming the user has installed a libdl from somewhere, this is true
20284 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
20285 lt_cv_sys_dlopen_deplibs=yes
20287 freebsd* | dragonfly*)
20288 lt_cv_sys_dlopen_deplibs=yes
20290 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
20291 # GNU and its variants, using gnu ld.so (Glibc)
20292 lt_cv_sys_dlopen_deplibs=yes
20295 lt_cv_sys_dlopen_deplibs=yes
20298 lt_cv_sys_dlopen_deplibs=yes
20300 irix[12345]*|irix6.[01]*)
20301 # Catch all versions of IRIX before 6.2, and indicate that we don't
20302 # know how it worked for any of those versions.
20303 lt_cv_sys_dlopen_deplibs=unknown
20306 # The case above catches anything before 6.2, and it's known that
20307 # at 6.2 and later dlopen does load deplibs.
20308 lt_cv_sys_dlopen_deplibs=yes
20311 lt_cv_sys_dlopen_deplibs=yes
20314 lt_cv_sys_dlopen_deplibs=yes
20317 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
20318 # it did *not* use an RPATH in a shared library to find objects the
20319 # library depends on, so we explicitly say `no'.
20320 lt_cv_sys_dlopen_deplibs=no
20322 osf5.0|osf5.0a|osf5.1)
20323 # dlopen *does* load deplibs and with the right loader patch applied
20324 # it even uses RPATH in a shared library to search for shared objects
20325 # that the library depends on, but there's no easy way to know if that
20326 # patch is installed. Since this is the case, all we can really
20327 # say is unknown -- it depends on the patch being installed. If
20328 # it is, this changes to `yes'. Without it, it would be `no'.
20329 lt_cv_sys_dlopen_deplibs=unknown
20332 # the two cases above should catch all versions of osf <= 5.1. Read
20333 # the comments above for what we know about them.
20334 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
20335 # is used to find them so we can finally say `yes'.
20336 lt_cv_sys_dlopen_deplibs=yes
20339 lt_cv_sys_dlopen_deplibs=yes
20342 lt_cv_sys_dlopen_deplibs=yes
20344 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20345 libltdl_cv_sys_dlopen_deplibs=yes
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
20351 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
20352 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
20354 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
20360 for ac_header in argz.h
20362 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
20364 if test "x$ac_cv_header_argz_h" = xyes; then :
20365 cat >>confdefs.h <<_ACEOF
20366 #define HAVE_ARGZ_H 1
20374 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
20378 if test "x$ac_cv_type_error_t" = xyes; then :
20380 cat >>confdefs.h <<_ACEOF
20381 #define HAVE_ERROR_T 1
20387 $as_echo "#define error_t int" >>confdefs.h
20390 $as_echo "#define __error_t_defined 1" >>confdefs.h
20396 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20397 argz_next argz_stringify
20399 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20400 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20401 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20402 cat >>confdefs.h <<_ACEOF
20403 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20409 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20415 if test -z "$ARGZ_H"; then :
20416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
20417 $as_echo_n "checking if argz actually works... " >&6; }
20418 if ${lt_cv_sys_argz_works+:} false; then :
20419 $as_echo_n "(cached) " >&6
20421 case $host_os in #(
20423 lt_cv_sys_argz_works=no
20424 if test "$cross_compiling" != no; then
20425 lt_cv_sys_argz_works="guessing no"
20427 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20430 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20435 if test "$lt_os_major" -gt 1 \
20436 || { test "$lt_os_major" -eq 1 \
20437 && { test "$lt_os_minor" -gt 5 \
20438 || { test "$lt_os_minor" -eq 5 \
20439 && test "$lt_os_micro" -gt 24; }; }; }; then
20440 lt_cv_sys_argz_works=yes
20444 *) lt_cv_sys_argz_works=yes ;;
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
20448 $as_echo "$lt_cv_sys_argz_works" >&6; }
20449 if test "$lt_cv_sys_argz_works" = yes; then :
20451 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
20457 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
20465 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
20466 if ${libltdl_cv_preloaded_symbols+:} false; then :
20467 $as_echo_n "(cached) " >&6
20469 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20470 libltdl_cv_preloaded_symbols=yes
20472 libltdl_cv_preloaded_symbols=no
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
20477 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20478 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20480 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
20496 # Check whether --with-included_ltdl was given.
20497 if test "${with_included_ltdl+set}" = set; then :
20498 withval=$with_included_ltdl;
20502 if test "x$with_included_ltdl" != xyes; then
20503 # We are not being forced to use the included libltdl sources, so
20504 # decide whether there is a useful installed version we can use.
20505 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
20508 if test "x$ac_cv_header_ltdl_h" = xyes; then :
20509 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
20512 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
20513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
20514 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
20515 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
20516 $as_echo_n "(cached) " >&6
20518 ac_check_lib_save_LIBS=$LIBS
20519 LIBS="-lltdl $LIBS"
20520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20521 /* end confdefs.h. */
20523 /* Override any GCC internal prototype to avoid an error.
20524 Use char because int might match the return type of a GCC
20525 builtin and then its argument prototype would still apply. */
20529 char lt_dladvise_preload ();
20533 return lt_dladvise_preload ();
20538 if ac_fn_c_try_link "$LINENO"; then :
20539 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20541 ac_cv_lib_ltdl_lt_dladvise_preload=no
20543 rm -f core conftest.err conftest.$ac_objext \
20544 conftest$ac_exeext conftest.$ac_ext
20545 LIBS=$ac_check_lib_save_LIBS
20547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20548 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
20549 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
20550 with_included_ltdl=no
20552 with_included_ltdl=yes
20556 with_included_ltdl=yes
20560 with_included_ltdl=yes
20569 # Check whether --with-ltdl_include was given.
20570 if test "${with_ltdl_include+set}" = set; then :
20571 withval=$with_ltdl_include;
20575 if test -n "$with_ltdl_include"; then
20576 if test -f "$with_ltdl_include/ltdl.h"; then :
20578 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
20581 with_ltdl_include=no
20585 # Check whether --with-ltdl_lib was given.
20586 if test "${with_ltdl_lib+set}" = set; then :
20587 withval=$with_ltdl_lib;
20591 if test -n "$with_ltdl_lib"; then
20592 if test -f "$with_ltdl_lib/libltdl.la"; then :
20594 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
20600 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20602 case $enable_ltdl_convenience in
20603 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
20604 "") enable_ltdl_convenience=yes
20605 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20607 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20609 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20615 # For backwards non-gettext consistent compatibility...
20616 INCLTDL="$LTDLINCL"
20621 # If the included ltdl is not to be used, then use the
20622 # preinstalled libltdl we found.
20624 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
20631 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
20633 *) with_included_ltdl=no
20634 LIBLTDL="-L$with_ltdl_lib -lltdl"
20636 LTDLINCL="-I$with_ltdl_include"
20639 INCLTDL="$LTDLINCL"
20641 # Report our decision...
20642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
20643 $as_echo_n "checking where to find libltdl headers... " >&6; }
20644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
20645 $as_echo "$LTDLINCL" >&6; }
20646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
20647 $as_echo_n "checking where to find libltdl library... " >&6; }
20648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
20649 $as_echo "$LIBLTDL" >&6; }
20653 # Check whether --enable-ltdl-install was given.
20654 if test "${enable_ltdl_install+set}" = set; then :
20655 enableval=$enable_ltdl_install;
20659 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20661 *) enable_ltdl_convenience=yes ;;
20664 if test x"${enable_ltdl_install-no}" != xno; then
20666 INSTALL_LTDL_FALSE='#'
20668 INSTALL_LTDL_TRUE='#'
20669 INSTALL_LTDL_FALSE=
20672 if test x"${enable_ltdl_convenience-no}" != xno; then
20673 CONVENIENCE_LTDL_TRUE=
20674 CONVENIENCE_LTDL_FALSE='#'
20676 CONVENIENCE_LTDL_TRUE='#'
20677 CONVENIENCE_LTDL_FALSE=
20685 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20686 # the user used. This is so that ltdl.h can pick up the parent projects
20687 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
20688 # definitions required by ltdl.c.
20689 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20693 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20695 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20696 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20698 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20699 cat >>confdefs.h <<_ACEOF
20700 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20708 for ac_func in closedir opendir readdir
20710 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20711 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20712 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20713 cat >>confdefs.h <<_ACEOF
20714 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20720 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20725 for ac_func in strlcat strlcpy
20727 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20728 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20729 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20730 cat >>confdefs.h <<_ACEOF
20731 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20737 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20744 cat >>confdefs.h <<_ACEOF
20745 #define LT_LIBEXT "$libext"
20750 eval "lt_libprefix=\"$libname_spec\""
20752 cat >>confdefs.h <<_ACEOF
20753 #define LT_LIBPREFIX "$lt_libprefix"
20758 eval "LTDLOPEN=\"$libname_spec\""
20767 # Only expand once:
20771 # Check to see if building shared libraries
20772 libtool_build_shared_libs='no'
20773 if test "$enable_shared" = 'yes'; then
20774 libtool_build_shared_libs='yes'
20777 # Check to see if building static libraries
20778 libtool_build_static_libs='no'
20779 if test "$enable_static" = 'yes'; then
20780 libtool_build_static_libs='yes'
20783 if test "${libtool_build_shared_libs}" = 'yes'; then
20784 WITH_SHARED_LIBS_TRUE=
20785 WITH_SHARED_LIBS_FALSE='#'
20787 WITH_SHARED_LIBS_TRUE='#'
20788 WITH_SHARED_LIBS_FALSE=
20792 # Enable support for building loadable modules
20795 # Check whether --with-modules was given.
20796 if test "${with_modules+set}" = set; then :
20797 withval=$with_modules; with_modules=$withval
20803 # Only allow building loadable modules if we are building shared libraries
20804 if test "$with_modules" != 'no' ; then
20805 if test "$libtool_build_shared_libs" = 'no'; then
20806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
20807 $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20811 if test "$with_modules" != 'no'; then
20813 $as_echo "#define BUILD_MODULES 1" >>confdefs.h
20816 if test "$with_modules" != 'no'; then
20818 WITH_MODULES_FALSE='#'
20820 WITH_MODULES_TRUE='#'
20821 WITH_MODULES_FALSE=
20825 # Enable building/use of libltdl if we are building shared libraries regardless
20826 # of whether modules are built or not.
20828 if test "$libtool_build_shared_libs" != 'no'; then
20832 if test "$with_ltdl" != 'no'; then
20834 WITH_LTDL_FALSE='#'
20840 if test "$with_ltdl" != 'no'; then
20842 $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
20846 if test X"$enable_shared" = Xyes; then
20847 DLLDFLAGS=-export-dynamic
20852 # Enable build using delegate libraries built in subdirectories rather than installed
20853 # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
20854 # Check whether --enable-delegate-build was given.
20855 if test "${enable_delegate_build+set}" = set; then :
20856 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20858 enable_delegate_build='no'
20862 # Check whether --enable-deprecated was given.
20863 if test "${enable_deprecated+set}" = set; then :
20864 enableval=$enable_deprecated; enable_deprecated=$enableval
20866 enable_deprecated='no'
20870 if test "$enable_deprecated" = 'yes'; then
20872 $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
20875 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20878 # Build a version of ImageMagick which operates uninstalled.
20879 # Used to build distributions located via MAGICK_HOME / executable path
20880 # Check whether --enable-installed was given.
20881 if test "${enable_installed+set}" = set; then :
20882 enableval=$enable_installed; enable_installed=$enableval
20884 enable_installed='yes'
20888 if test "$enable_installed" = 'yes'; then
20890 $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
20893 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20896 # Permit enciphering and deciphering image pixels.
20897 # Check whether --enable-cipher was given.
20898 if test "${enable_cipher+set}" = set; then :
20899 enableval=$enable_cipher; enable_cipher=$enableval
20901 enable_cipher='yes'
20905 if test "$enable_cipher" = 'yes'; then
20907 $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
20911 # Build an embeddable version of ImageMagick.
20912 # Check whether --enable-embeddable was given.
20913 if test "${enable_embeddable+set}" = set; then :
20914 enableval=$enable_embeddable; enable_embeddable=$enableval
20916 enable_embeddable='no'
20920 if test "$enable_embeddable" = 'yes'; then
20922 $as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
20926 # Build a high dynamic range version of ImageMagick.
20927 # Check whether --enable-hdri was given.
20928 if test "${enable_hdri+set}" = set; then :
20929 enableval=$enable_hdri; enable_hdri=$enableval
20936 if test "$enable_hdri" = 'yes'; then
20939 $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
20941 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
20944 # Build a version of ImageMagick with assert statements.
20945 # Check whether --enable-assert was given.
20946 if test "${enable_assert+set}" = set; then :
20947 enableval=$enable_assert; enable_assert=$enableval
20949 enable_assert='yes'
20953 if test "$enable_assert" = 'no'; then
20955 $as_echo "#define NDEBUG 1" >>confdefs.h
20959 # Add configure option --enable-maintainer-mode which enables dependency
20960 # checking and generation useful to package maintainers. This is made an
20961 # option to avoid confusing end users.
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20964 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20965 # Check whether --enable-maintainer-mode was given.
20966 if test "${enable_maintainer_mode+set}" = set; then :
20967 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20969 USE_MAINTAINER_MODE=no
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20973 $as_echo "$USE_MAINTAINER_MODE" >&6; }
20974 if test $USE_MAINTAINER_MODE = yes; then
20975 MAINTAINER_MODE_TRUE=
20976 MAINTAINER_MODE_FALSE='#'
20978 MAINTAINER_MODE_TRUE='#'
20979 MAINTAINER_MODE_FALSE=
20982 MAINT=$MAINTAINER_MODE_TRUE
20987 # Enable ccmalloc memory debugging support
20988 # Check whether --enable-ccmalloc was given.
20989 if test "${enable_ccmalloc+set}" = set; then :
20990 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20992 enable_ccmalloc='no'
20996 # Enable Electric Fence memory debugging support
20997 # Check whether --enable-efence was given.
20998 if test "${enable_efence+set}" = set; then :
20999 enableval=$enable_efence; enable_efence=$enableval
21005 # Enable prof-based profiling support
21006 # Check whether --enable-prof was given.
21007 if test "${enable_prof+set}" = set; then :
21008 enableval=$enable_prof; enable_prof=$enableval
21014 # Enable gprof-based profiling support
21015 # Check whether --enable-gprof was given.
21016 if test "${enable_gprof+set}" = set; then :
21017 enableval=$enable_gprof; enable_gprof=$enableval
21023 # Enable gcov-based profiling support
21024 # Check whether --enable-gcov was given.
21025 if test "${enable_gcov+set}" = set; then :
21026 enableval=$enable_gcov; enable_gcov=$enableval
21032 enable_profiling='no'
21033 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21034 enable_profiling='yes'
21035 if test "$libtool_build_shared_libs" = 'yes'; then
21036 echo "Warning: Can not profile code using shared libraries"
21040 # Magick API method prefix
21042 # Check whether --with-method-prefix was given.
21043 if test "${with_method_prefix+set}" = set; then :
21044 withval=$with_method_prefix; with_method_prefix=$enableval
21046 with_method_prefix=''
21050 if test "$with_method_prefix" != ''; then
21052 cat >>confdefs.h <<_ACEOF
21053 #define NAMESPACE_PREFIX $with_method_prefix
21058 # Number of bits in a Quantum
21060 # Check whether --with-quantum-depth was given.
21061 if test "${with_quantum_depth+set}" = set; then :
21062 withval=$with_quantum_depth; with_quantum_depth=$withval
21064 with_quantum_depth=16
21068 if test "$with_quantum_depth" != '8'; then
21069 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21072 case "${with_quantum_depth}" in
21077 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
21079 if test "$enable_hdri" = 'yes'; then
21080 with_quantum_depth=16
21082 QUANTUM_DEPTH="$with_quantum_depth"
21084 cat >>confdefs.h <<_ACEOF
21085 #define QUANTUM_DEPTH $QUANTUM_DEPTH
21089 # Set pixel cache threshold
21091 # Check whether --with-cache was given.
21092 if test "${with_cache+set}" = set; then :
21093 withval=$with_cache; with_cache=$withval
21099 if test "$with_cache" != ''; then
21101 cat >>confdefs.h <<_ACEOF
21102 #define PixelCacheThreshold $with_cache
21105 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21108 # Disable/Enable support for full delegate paths
21110 # Check whether --with-frozenpaths was given.
21111 if test "${with_frozenpaths+set}" = set; then :
21112 withval=$with_frozenpaths; with_frozenpaths=$withval
21114 with_frozenpaths='no'
21118 # Enable build/install of Magick++
21120 # Check whether --with-magick-plus-plus was given.
21121 if test "${with_magick_plus_plus+set}" = set; then :
21122 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21124 with_magick_plus_plus='yes'
21128 # Disable build/install of PerlMagick.
21130 # Check whether --with-perl was given.
21131 if test "${with_perl+set}" = set; then :
21132 withval=$with_perl; with_perl=$withval
21138 # Options to pass when configuring PerlMagick
21140 # Check whether --with-perl-options was given.
21141 if test "${with_perl_options+set}" = set; then :
21142 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
21147 # Enable umem, object-caching memory allocation library.
21149 # Check whether --with-umem was given.
21150 if test "${with_umem+set}" = set; then :
21151 withval=$with_umem; with_umem=$withval
21156 if test "$with_umem" != 'yes' ; then
21157 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21161 # Specify path to shared libstdc++ if not in normal location
21164 # Check whether --with-libstdc was given.
21165 if test "${with_libstdc+set}" = set; then :
21166 withval=$with_libstdc; with_libstdc=$withval
21172 if test "$with_libstdc" != ''; then
21173 if test -d "$with_libstdc"; then
21174 LIBSTDCLDFLAGS="-L$with_libstdc"
21179 # Does gcc required -traditional?
21180 if test $ac_cv_c_compiler_gnu = yes; then
21181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
21182 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
21183 if ${ac_cv_prog_gcc_traditional+:} false; then :
21184 $as_echo_n "(cached) " >&6
21186 ac_pattern="Autoconf.*'x'"
21187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21188 /* end confdefs.h. */
21192 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21193 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21194 ac_cv_prog_gcc_traditional=yes
21196 ac_cv_prog_gcc_traditional=no
21201 if test $ac_cv_prog_gcc_traditional = no; then
21202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21203 /* end confdefs.h. */
21204 #include <termio.h>
21207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21208 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
21209 ac_cv_prog_gcc_traditional=yes
21215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
21216 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21217 if test $ac_cv_prog_gcc_traditional = yes; then
21218 CC="$CC -traditional"
21225 # Set defines required to build DLLs and modules using MinGW
21228 # These options are set for multi-thread DLL module build
21229 # libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21231 # executable/Magick++: _DLL _MAGICKMOD_
21232 MODULE_EXTRA_CPPFLAGS=''
21233 LIBRARY_EXTRA_CPPFLAGS=''
21234 if test "${native_win32_build}" = 'yes'; then
21235 if test "${libtool_build_shared_libs}" = 'yes'; then
21236 CPPFLAGS="$CPPFLAGS -D_DLL"
21237 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21238 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21239 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21240 if test "$with_modules" = 'yes'; then
21241 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21243 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21246 CPPFLAGS="$CPPFLAGS -D_LIB"
21247 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21248 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21250 if test "$with_threads" = 'yes'; then
21251 CPPFLAGS="$CPPFLAGS -D_MT"
21252 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21253 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21259 # Check standard headers
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
21261 $as_echo_n "checking for ANSI C header files... " >&6; }
21262 if ${ac_cv_header_stdc+:} false; then :
21263 $as_echo_n "(cached) " >&6
21265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21266 /* end confdefs.h. */
21267 #include <stdlib.h>
21268 #include <stdarg.h>
21269 #include <string.h>
21280 if ac_fn_c_try_compile "$LINENO"; then :
21281 ac_cv_header_stdc=yes
21283 ac_cv_header_stdc=no
21285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21287 if test $ac_cv_header_stdc = yes; then
21288 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21290 /* end confdefs.h. */
21291 #include <string.h>
21294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21295 $EGREP "memchr" >/dev/null 2>&1; then :
21298 ac_cv_header_stdc=no
21304 if test $ac_cv_header_stdc = yes; then
21305 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21307 /* end confdefs.h. */
21308 #include <stdlib.h>
21311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21312 $EGREP "free" >/dev/null 2>&1; then :
21315 ac_cv_header_stdc=no
21321 if test $ac_cv_header_stdc = yes; then
21322 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21323 if test "$cross_compiling" = yes; then :
21326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21327 /* end confdefs.h. */
21329 #include <stdlib.h>
21330 #if ((' ' & 0x0FF) == 0x020)
21331 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21332 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21334 # define ISLOWER(c) \
21335 (('a' <= (c) && (c) <= 'i') \
21336 || ('j' <= (c) && (c) <= 'r') \
21337 || ('s' <= (c) && (c) <= 'z'))
21338 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21341 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21346 for (i = 0; i < 256; i++)
21347 if (XOR (islower (i), ISLOWER (i))
21348 || toupper (i) != TOUPPER (i))
21353 if ac_fn_c_try_run "$LINENO"; then :
21356 ac_cv_header_stdc=no
21358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21359 conftest.$ac_objext conftest.beam conftest.$ac_ext
21364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21365 $as_echo "$ac_cv_header_stdc" >&6; }
21366 if test $ac_cv_header_stdc = yes; then
21368 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21372 if ! test x"$ac_cv_header_stdc" = x"yes"; then
21373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
21374 header files. Compilation cannot proceed. Please install the ANSI C
21375 headers and rerun this script." >&5
21376 $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21377 header files. Compilation cannot proceed. Please install the ANSI C
21378 headers and rerun this script." >&2;};
21381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21382 $as_echo_n "checking whether to enable assertions... " >&6; }
21383 # Check whether --enable-assert was given.
21384 if test "${enable_assert+set}" = set; then :
21385 enableval=$enable_assert; ac_enable_assert=$enableval
21386 if test "x$enableval" = xno; then :
21388 $as_echo "#define NDEBUG 1" >>confdefs.h
21390 elif test "x$enableval" != xyes; then :
21391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21392 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21393 ac_enable_assert=yes
21396 ac_enable_assert=yes
21399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21400 $as_echo "$ac_enable_assert" >&6; }
21402 ac_header_dirent=no
21403 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21404 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
21406 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21407 if eval \${$as_ac_Header+:} false; then :
21408 $as_echo_n "(cached) " >&6
21410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21411 /* end confdefs.h. */
21412 #include <sys/types.h>
21424 if ac_fn_c_try_compile "$LINENO"; then :
21425 eval "$as_ac_Header=yes"
21427 eval "$as_ac_Header=no"
21429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21431 eval ac_res=\$$as_ac_Header
21432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21433 $as_echo "$ac_res" >&6; }
21434 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21435 cat >>confdefs.h <<_ACEOF
21436 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21439 ac_header_dirent=$ac_hdr; break
21443 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21444 if test $ac_header_dirent = dirent.h; then
21445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21446 $as_echo_n "checking for library containing opendir... " >&6; }
21447 if ${ac_cv_search_opendir+:} false; then :
21448 $as_echo_n "(cached) " >&6
21450 ac_func_search_save_LIBS=$LIBS
21451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21452 /* end confdefs.h. */
21454 /* Override any GCC internal prototype to avoid an error.
21455 Use char because int might match the return type of a GCC
21456 builtin and then its argument prototype would still apply. */
21469 for ac_lib in '' dir; do
21470 if test -z "$ac_lib"; then
21471 ac_res="none required"
21474 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21476 if ac_fn_c_try_link "$LINENO"; then :
21477 ac_cv_search_opendir=$ac_res
21479 rm -f core conftest.err conftest.$ac_objext \
21481 if ${ac_cv_search_opendir+:} false; then :
21485 if ${ac_cv_search_opendir+:} false; then :
21488 ac_cv_search_opendir=no
21490 rm conftest.$ac_ext
21491 LIBS=$ac_func_search_save_LIBS
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21494 $as_echo "$ac_cv_search_opendir" >&6; }
21495 ac_res=$ac_cv_search_opendir
21496 if test "$ac_res" != no; then :
21497 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
21503 $as_echo_n "checking for library containing opendir... " >&6; }
21504 if ${ac_cv_search_opendir+:} false; then :
21505 $as_echo_n "(cached) " >&6
21507 ac_func_search_save_LIBS=$LIBS
21508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21509 /* end confdefs.h. */
21511 /* Override any GCC internal prototype to avoid an error.
21512 Use char because int might match the return type of a GCC
21513 builtin and then its argument prototype would still apply. */
21526 for ac_lib in '' x; do
21527 if test -z "$ac_lib"; then
21528 ac_res="none required"
21531 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21533 if ac_fn_c_try_link "$LINENO"; then :
21534 ac_cv_search_opendir=$ac_res
21536 rm -f core conftest.err conftest.$ac_objext \
21538 if ${ac_cv_search_opendir+:} false; then :
21542 if ${ac_cv_search_opendir+:} false; then :
21545 ac_cv_search_opendir=no
21547 rm conftest.$ac_ext
21548 LIBS=$ac_func_search_save_LIBS
21550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
21551 $as_echo "$ac_cv_search_opendir" >&6; }
21552 ac_res=$ac_cv_search_opendir
21553 if test "$ac_res" != no; then :
21554 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21561 # Check additional headers
21562 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
21564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21565 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21566 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21567 cat >>confdefs.h <<_ACEOF
21568 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21578 # Checks for typedefs, structures, and compiler characteristics.
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
21583 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
21584 if ${ac_cv_header_stdbool_h+:} false; then :
21585 $as_echo_n "(cached) " >&6
21587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21588 /* end confdefs.h. */
21590 #include <stdbool.h>
21592 "error: bool is not defined"
21595 "error: false is not defined"
21598 "error: false is not 0"
21601 "error: true is not defined"
21604 "error: true is not 1"
21606 #ifndef __bool_true_false_are_defined
21607 "error: __bool_true_false_are_defined is not defined"
21610 struct s { _Bool s: 1; _Bool t; } s;
21612 char a[true == 1 ? 1 : -1];
21613 char b[false == 0 ? 1 : -1];
21614 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21615 char d[(bool) 0.5 == true ? 1 : -1];
21616 /* See body of main program for 'e'. */
21617 char f[(_Bool) 0.0 == false ? 1 : -1];
21619 char h[sizeof (_Bool)];
21620 char i[sizeof s.t];
21621 enum { j = false, k = true, l = false * true, m = true * 256 };
21622 /* The following fails for
21623 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21625 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21626 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21627 /* Catch a bug in an HP-UX C compiler. See
21628 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21629 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21641 /* Refer to every declared value, to avoid compiler optimizations. */
21642 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21643 + !m + !n + !o + !p + !q + !pq);
21649 if ac_fn_c_try_compile "$LINENO"; then :
21650 ac_cv_header_stdbool_h=yes
21652 ac_cv_header_stdbool_h=no
21654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21657 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21658 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21659 if test "x$ac_cv_type__Bool" = xyes; then :
21661 cat >>confdefs.h <<_ACEOF
21662 #define HAVE__BOOL 1
21668 if test $ac_cv_header_stdbool_h = yes; then
21670 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
21675 $as_echo_n "checking for working volatile... " >&6; }
21676 if ${ac_cv_c_volatile+:} false; then :
21677 $as_echo_n "(cached) " >&6
21679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21680 /* end confdefs.h. */
21687 int * volatile y = (int *) 0;
21693 if ac_fn_c_try_compile "$LINENO"; then :
21694 ac_cv_c_volatile=yes
21696 ac_cv_c_volatile=no
21698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
21701 $as_echo "$ac_cv_c_volatile" >&6; }
21702 if test $ac_cv_c_volatile = no; then
21704 $as_echo "#define volatile /**/" >>confdefs.h
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
21709 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
21710 if ${ac_cv_c_stringize+:} false; then :
21711 $as_echo_n "(cached) " >&6
21713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21714 /* end confdefs.h. */
21717 char *s = x(teststring);
21719 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21720 $EGREP "#teststring" >/dev/null 2>&1; then :
21721 ac_cv_c_stringize=no
21723 ac_cv_c_stringize=yes
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
21729 $as_echo "$ac_cv_c_stringize" >&6; }
21730 if test $ac_cv_c_stringize = yes; then
21732 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21737 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21738 if ${ac_cv_header_stat_broken+:} false; then :
21739 $as_echo_n "(cached) " >&6
21741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21742 /* end confdefs.h. */
21743 #include <sys/types.h>
21744 #include <sys/stat.h>
21746 #if defined S_ISBLK && defined S_IFDIR
21747 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21750 #if defined S_ISBLK && defined S_IFCHR
21751 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21754 #if defined S_ISLNK && defined S_IFREG
21755 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21758 #if defined S_ISSOCK && defined S_IFREG
21759 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21763 if ac_fn_c_try_compile "$LINENO"; then :
21764 ac_cv_header_stat_broken=no
21766 ac_cv_header_stat_broken=yes
21768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21771 $as_echo "$ac_cv_header_stat_broken" >&6; }
21772 if test $ac_cv_header_stat_broken = yes; then
21774 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21779 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21780 if ${ac_cv_header_time+:} false; then :
21781 $as_echo_n "(cached) " >&6
21783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21784 /* end confdefs.h. */
21785 #include <sys/types.h>
21786 #include <sys/time.h>
21792 if ((struct tm *) 0)
21798 if ac_fn_c_try_compile "$LINENO"; then :
21799 ac_cv_header_time=yes
21801 ac_cv_header_time=no
21803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21806 $as_echo "$ac_cv_header_time" >&6; }
21807 if test $ac_cv_header_time = yes; then
21809 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21814 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21815 if ${ac_cv_struct_tm+:} false; then :
21816 $as_echo_n "(cached) " >&6
21818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21819 /* end confdefs.h. */
21820 #include <sys/types.h>
21827 int *p = &tm.tm_sec;
21833 if ac_fn_c_try_compile "$LINENO"; then :
21834 ac_cv_struct_tm=time.h
21836 ac_cv_struct_tm=sys/time.h
21838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21841 $as_echo "$ac_cv_struct_tm" >&6; }
21842 if test $ac_cv_struct_tm = sys/time.h; then
21844 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21848 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21849 #include <$ac_cv_struct_tm>
21852 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
21854 cat >>confdefs.h <<_ACEOF
21855 #define HAVE_STRUCT_TM_TM_ZONE 1
21861 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21863 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21866 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21868 if test "x$ac_cv_have_decl_tzname" = xyes; then :
21874 cat >>confdefs.h <<_ACEOF
21875 #define HAVE_DECL_TZNAME $ac_have_decl
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21879 $as_echo_n "checking for tzname... " >&6; }
21880 if ${ac_cv_var_tzname+:} false; then :
21881 $as_echo_n "(cached) " >&6
21883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21884 /* end confdefs.h. */
21886 #if !HAVE_DECL_TZNAME
21887 extern char *tzname[];
21893 return tzname[0][0];
21898 if ac_fn_c_try_link "$LINENO"; then :
21899 ac_cv_var_tzname=yes
21901 ac_cv_var_tzname=no
21903 rm -f core conftest.err conftest.$ac_objext \
21904 conftest$ac_exeext conftest.$ac_ext
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21907 $as_echo "$ac_cv_var_tzname" >&6; }
21908 if test $ac_cv_var_tzname = yes; then
21910 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
21916 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
21917 if ${ac_cv_sys_interpreter+:} false; then :
21918 $as_echo_n "(cached) " >&6
21924 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21925 if test $? -ne 69; then
21926 ac_cv_sys_interpreter=yes
21928 ac_cv_sys_interpreter=no
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
21933 $as_echo "$ac_cv_sys_interpreter" >&6; }
21934 interpval=$ac_cv_sys_interpreter
21937 # If the C compiler supports the keyword inline, do nothing. Otherwise
21938 # define inline to __inline__ or __inline if it accepts one of those,
21939 # otherwise define inline to be empty.
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
21941 $as_echo_n "checking for inline... " >&6; }
21942 if ${ac_cv_c_inline+:} false; then :
21943 $as_echo_n "(cached) " >&6
21946 for ac_kw in inline __inline__ __inline; do
21947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21948 /* end confdefs.h. */
21949 #ifndef __cplusplus
21951 static $ac_kw foo_t static_foo () {return 0; }
21952 $ac_kw foo_t foo () {return 0; }
21956 if ac_fn_c_try_compile "$LINENO"; then :
21957 ac_cv_c_inline=$ac_kw
21959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21960 test "$ac_cv_c_inline" != no && break
21964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
21965 $as_echo "$ac_cv_c_inline" >&6; }
21967 case $ac_cv_c_inline in
21970 case $ac_cv_c_inline in
21972 *) ac_val=$ac_cv_c_inline;;
21974 cat >>confdefs.h <<_ACEOF
21975 #ifndef __cplusplus
21976 #define inline $ac_val
21983 # If the C compiler supports the keyword restrict, do nothing. Otherwise
21984 # define restrict to __restrict__ or __restrict if it accepts one of those,
21985 # otherwise define restrict to be empty.
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
21987 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
21988 if ${ac_cv_c_restrict+:} false; then :
21989 $as_echo_n "(cached) " >&6
21991 ac_cv_c_restrict=no
21992 # The order here caters to the fact that C++ does not require restrict.
21993 for ac_kw in __restrict __restrict__ _Restrict restrict; do
21994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21995 /* end confdefs.h. */
21996 typedef int * int_ptr;
21997 int foo (int_ptr $ac_kw ip) {
22004 int * $ac_kw t = s;
22011 if ac_fn_c_try_compile "$LINENO"; then :
22012 ac_cv_c_restrict=$ac_kw
22014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22015 test "$ac_cv_c_restrict" != no && break
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
22020 $as_echo "$ac_cv_c_restrict" >&6; }
22022 case $ac_cv_c_restrict in
22024 no) $as_echo "#define restrict /**/" >>confdefs.h
22026 *) cat >>confdefs.h <<_ACEOF
22027 #define restrict $ac_cv_c_restrict
22033 # If words are stored with the most significant byte first (like
22034 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
22035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22036 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22037 if ${ac_cv_c_bigendian+:} false; then :
22038 $as_echo_n "(cached) " >&6
22040 ac_cv_c_bigendian=unknown
22041 # See if we're dealing with a universal compiler.
22042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22043 /* end confdefs.h. */
22044 #ifndef __APPLE_CC__
22045 not a universal capable compiler
22050 if ac_fn_c_try_compile "$LINENO"; then :
22052 # Check for potential -arch flags. It is not universal unless
22053 # there are at least two -arch flags with different values.
22056 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22057 if test -n "$ac_prev"; then
22059 i?86 | x86_64 | ppc | ppc64)
22060 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22063 ac_cv_c_bigendian=universal
22069 elif test "x$ac_word" = "x-arch"; then
22074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22075 if test $ac_cv_c_bigendian = unknown; then
22076 # See if sys/param.h defines the BYTE_ORDER macro.
22077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22078 /* end confdefs.h. */
22079 #include <sys/types.h>
22080 #include <sys/param.h>
22085 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22086 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22088 bogus endian macros
22095 if ac_fn_c_try_compile "$LINENO"; then :
22096 # It does; now see whether it defined to BIG_ENDIAN or not.
22097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22098 /* end confdefs.h. */
22099 #include <sys/types.h>
22100 #include <sys/param.h>
22105 #if BYTE_ORDER != BIG_ENDIAN
22113 if ac_fn_c_try_compile "$LINENO"; then :
22114 ac_cv_c_bigendian=yes
22116 ac_cv_c_bigendian=no
22118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22122 if test $ac_cv_c_bigendian = unknown; then
22123 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22125 /* end confdefs.h. */
22126 #include <limits.h>
22131 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22132 bogus endian macros
22139 if ac_fn_c_try_compile "$LINENO"; then :
22140 # It does; now see whether it defined to _BIG_ENDIAN or not.
22141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22142 /* end confdefs.h. */
22143 #include <limits.h>
22148 #ifndef _BIG_ENDIAN
22156 if ac_fn_c_try_compile "$LINENO"; then :
22157 ac_cv_c_bigendian=yes
22159 ac_cv_c_bigendian=no
22161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22165 if test $ac_cv_c_bigendian = unknown; then
22166 # Compile a test program.
22167 if test "$cross_compiling" = yes; then :
22168 # Try to guess by grepping values from an object file.
22169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22170 /* end confdefs.h. */
22171 short int ascii_mm[] =
22172 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22173 short int ascii_ii[] =
22174 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22175 int use_ascii (int i) {
22176 return ascii_mm[i] + ascii_ii[i];
22178 short int ebcdic_ii[] =
22179 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22180 short int ebcdic_mm[] =
22181 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22182 int use_ebcdic (int i) {
22183 return ebcdic_mm[i] + ebcdic_ii[i];
22190 return use_ascii (foo) == use_ebcdic (foo);
22195 if ac_fn_c_try_compile "$LINENO"; then :
22196 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22197 ac_cv_c_bigendian=yes
22199 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22200 if test "$ac_cv_c_bigendian" = unknown; then
22201 ac_cv_c_bigendian=no
22203 # finding both strings is unlikely to happen, but who knows?
22204 ac_cv_c_bigendian=unknown
22208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22211 /* end confdefs.h. */
22212 $ac_includes_default
22217 /* Are we little or big endian? From Harbison&Steele. */
22221 char c[sizeof (long int)];
22224 return u.c[sizeof (long int) - 1] == 1;
22230 if ac_fn_c_try_run "$LINENO"; then :
22231 ac_cv_c_bigendian=no
22233 ac_cv_c_bigendian=yes
22235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22236 conftest.$ac_objext conftest.beam conftest.$ac_ext
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
22242 $as_echo "$ac_cv_c_bigendian" >&6; }
22243 case $ac_cv_c_bigendian in #(
22245 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
22251 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22255 as_fn_error $? "unknown endianness
22256 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
22260 # Define mode_t to a suitable type, if standard headers do not define it.
22261 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22262 if test "x$ac_cv_type_mode_t" = xyes; then :
22266 cat >>confdefs.h <<_ACEOF
22273 # Define off_t to a suitable type, if standard headers do not define it.
22274 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22275 if test "x$ac_cv_type_off_t" = xyes; then :
22279 cat >>confdefs.h <<_ACEOF
22280 #define off_t long int
22286 # Define pid_t to a suitable type, if standard headers do not define it.
22287 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22288 if test "x$ac_cv_type_pid_t" = xyes; then :
22292 cat >>confdefs.h <<_ACEOF
22299 # Define size_t to a suitable type, if standard headers do not define it.
22300 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22301 if test "x$ac_cv_type_size_t" = xyes; then :
22305 cat >>confdefs.h <<_ACEOF
22306 #define size_t unsigned int
22312 # Define ssize_t to a suitable type, if standard headers do not define it.
22313 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22314 if test "x$ac_cv_type_ssize_t" = xyes; then :
22318 cat >>confdefs.h <<_ACEOF
22319 #define ssize_t int
22325 # If the C compiler supports a working long double type with more range
22326 # or precision than the double type, define HAVE_LONG_DOUBLE.
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
22329 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
22330 if ${ac_cv_type_long_double_wider+:} false; then :
22331 $as_echo_n "(cached) " >&6
22333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22334 /* end confdefs.h. */
22336 long double const a[] =
22338 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22339 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22344 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22345 + (x ? f (x) : 'c'));
22351 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22352 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22353 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22354 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22355 && (int) LDBL_EPSILON == 0
22363 if ac_fn_c_try_compile "$LINENO"; then :
22364 ac_cv_type_long_double_wider=yes
22366 ac_cv_type_long_double_wider=no
22368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
22371 $as_echo "$ac_cv_type_long_double_wider" >&6; }
22372 if test $ac_cv_type_long_double_wider = yes; then
22374 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
22379 # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
22380 # C compiler predefines it.
22381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
22382 $as_echo_n "checking whether char is unsigned... " >&6; }
22383 if ${ac_cv_c_char_unsigned+:} false; then :
22384 $as_echo_n "(cached) " >&6
22386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22387 /* end confdefs.h. */
22388 $ac_includes_default
22392 static int test_array [1 - 2 * !(((char) -1) < 0)];
22399 if ac_fn_c_try_compile "$LINENO"; then :
22400 ac_cv_c_char_unsigned=no
22402 ac_cv_c_char_unsigned=yes
22404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
22407 $as_echo "$ac_cv_c_char_unsigned" >&6; }
22408 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
22409 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
22414 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
22415 # The cast to long int works around a bug in the HP C Compiler
22416 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22417 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22418 # This bug is HP SR number 8606223364.
22419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
22420 $as_echo_n "checking size of signed short... " >&6; }
22421 if ${ac_cv_sizeof_signed_short+:} false; then :
22422 $as_echo_n "(cached) " >&6
22424 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
22427 if test "$ac_cv_type_signed_short" = yes; then
22428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22430 as_fn_error 77 "cannot compute sizeof (signed short)
22431 See \`config.log' for more details" "$LINENO" 5; }
22433 ac_cv_sizeof_signed_short=0
22438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
22439 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
22443 cat >>confdefs.h <<_ACEOF
22444 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
22449 # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
22450 # The cast to long int works around a bug in the HP C Compiler
22451 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22452 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22453 # This bug is HP SR number 8606223364.
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
22455 $as_echo_n "checking size of unsigned short... " >&6; }
22456 if ${ac_cv_sizeof_unsigned_short+:} false; then :
22457 $as_echo_n "(cached) " >&6
22459 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
22462 if test "$ac_cv_type_unsigned_short" = yes; then
22463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22465 as_fn_error 77 "cannot compute sizeof (unsigned short)
22466 See \`config.log' for more details" "$LINENO" 5; }
22468 ac_cv_sizeof_unsigned_short=0
22473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
22474 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
22478 cat >>confdefs.h <<_ACEOF
22479 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
22484 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
22485 # The cast to long int works around a bug in the HP C Compiler
22486 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22487 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22488 # This bug is HP SR number 8606223364.
22489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
22490 $as_echo_n "checking size of signed int... " >&6; }
22491 if ${ac_cv_sizeof_signed_int+:} false; then :
22492 $as_echo_n "(cached) " >&6
22494 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then :
22497 if test "$ac_cv_type_signed_int" = yes; then
22498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22500 as_fn_error 77 "cannot compute sizeof (signed int)
22501 See \`config.log' for more details" "$LINENO" 5; }
22503 ac_cv_sizeof_signed_int=0
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
22509 $as_echo "$ac_cv_sizeof_signed_int" >&6; }
22513 cat >>confdefs.h <<_ACEOF
22514 #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
22519 # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
22520 # The cast to long int works around a bug in the HP C Compiler
22521 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22522 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22523 # This bug is HP SR number 8606223364.
22524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
22525 $as_echo_n "checking size of unsigned int... " >&6; }
22526 if ${ac_cv_sizeof_unsigned_int+:} false; then :
22527 $as_echo_n "(cached) " >&6
22529 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
22532 if test "$ac_cv_type_unsigned_int" = yes; then
22533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22535 as_fn_error 77 "cannot compute sizeof (unsigned int)
22536 See \`config.log' for more details" "$LINENO" 5; }
22538 ac_cv_sizeof_unsigned_int=0
22543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
22544 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
22548 cat >>confdefs.h <<_ACEOF
22549 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
22554 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
22555 # The cast to long int works around a bug in the HP C Compiler
22556 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22557 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22558 # This bug is HP SR number 8606223364.
22559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
22560 $as_echo_n "checking size of signed long... " >&6; }
22561 if ${ac_cv_sizeof_signed_long+:} false; then :
22562 $as_echo_n "(cached) " >&6
22564 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then :
22567 if test "$ac_cv_type_signed_long" = yes; then
22568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22570 as_fn_error 77 "cannot compute sizeof (signed long)
22571 See \`config.log' for more details" "$LINENO" 5; }
22573 ac_cv_sizeof_signed_long=0
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
22579 $as_echo "$ac_cv_sizeof_signed_long" >&6; }
22583 cat >>confdefs.h <<_ACEOF
22584 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
22589 # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
22590 # The cast to long int works around a bug in the HP C Compiler
22591 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22592 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22593 # This bug is HP SR number 8606223364.
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
22595 $as_echo_n "checking size of unsigned long... " >&6; }
22596 if ${ac_cv_sizeof_unsigned_long+:} false; then :
22597 $as_echo_n "(cached) " >&6
22599 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
22602 if test "$ac_cv_type_unsigned_long" = yes; then
22603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22604 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22605 as_fn_error 77 "cannot compute sizeof (unsigned long)
22606 See \`config.log' for more details" "$LINENO" 5; }
22608 ac_cv_sizeof_unsigned_long=0
22613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
22614 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
22618 cat >>confdefs.h <<_ACEOF
22619 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
22624 # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
22625 # 'signed long long' is not supported then the value defined is zero.
22626 # The cast to long int works around a bug in the HP C Compiler
22627 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22628 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22629 # This bug is HP SR number 8606223364.
22630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
22631 $as_echo_n "checking size of signed long long... " >&6; }
22632 if ${ac_cv_sizeof_signed_long_long+:} false; then :
22633 $as_echo_n "(cached) " >&6
22635 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
22638 if test "$ac_cv_type_signed_long_long" = yes; then
22639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22641 as_fn_error 77 "cannot compute sizeof (signed long long)
22642 See \`config.log' for more details" "$LINENO" 5; }
22644 ac_cv_sizeof_signed_long_long=0
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
22650 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
22654 cat >>confdefs.h <<_ACEOF
22655 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
22660 # Obtain size of a 'unsigned long long' and define as
22661 # SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
22662 # supported then the value defined is zero.
22663 # The cast to long int works around a bug in the HP C Compiler
22664 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22665 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22666 # This bug is HP SR number 8606223364.
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
22668 $as_echo_n "checking size of unsigned long long... " >&6; }
22669 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
22670 $as_echo_n "(cached) " >&6
22672 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
22675 if test "$ac_cv_type_unsigned_long_long" = yes; then
22676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22678 as_fn_error 77 "cannot compute sizeof (unsigned long long)
22679 See \`config.log' for more details" "$LINENO" 5; }
22681 ac_cv_sizeof_unsigned_long_long=0
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
22687 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
22691 cat >>confdefs.h <<_ACEOF
22692 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22697 # Obtain size of off_t and define as SIZEOF_OFF_T
22698 # The cast to long int works around a bug in the HP C Compiler
22699 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22700 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22701 # This bug is HP SR number 8606223364.
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
22703 $as_echo_n "checking size of off_t... " >&6; }
22704 if ${ac_cv_sizeof_off_t+:} false; then :
22705 $as_echo_n "(cached) " >&6
22707 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
22710 if test "$ac_cv_type_off_t" = yes; then
22711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22713 as_fn_error 77 "cannot compute sizeof (off_t)
22714 See \`config.log' for more details" "$LINENO" 5; }
22716 ac_cv_sizeof_off_t=0
22721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
22722 $as_echo "$ac_cv_sizeof_off_t" >&6; }
22726 cat >>confdefs.h <<_ACEOF
22727 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22732 # Obtain size of size_t and define as SIZEOF_SIZE_T
22733 # The cast to long int works around a bug in the HP C Compiler
22734 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22735 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22736 # This bug is HP SR number 8606223364.
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
22738 $as_echo_n "checking size of size_t... " >&6; }
22739 if ${ac_cv_sizeof_size_t+:} false; then :
22740 $as_echo_n "(cached) " >&6
22742 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
22745 if test "$ac_cv_type_size_t" = yes; then
22746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22748 as_fn_error 77 "cannot compute sizeof (size_t)
22749 See \`config.log' for more details" "$LINENO" 5; }
22751 ac_cv_sizeof_size_t=0
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
22757 $as_echo "$ac_cv_sizeof_size_t" >&6; }
22761 cat >>confdefs.h <<_ACEOF
22762 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22767 # Obtain size of ssize_t and define as SIZEOF_SSIZE_T
22768 # The cast to long int works around a bug in the HP C Compiler
22769 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22770 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22771 # This bug is HP SR number 8606223364.
22772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
22773 $as_echo_n "checking size of ssize_t... " >&6; }
22774 if ${ac_cv_sizeof_ssize_t+:} false; then :
22775 $as_echo_n "(cached) " >&6
22777 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
22780 if test "$ac_cv_type_ssize_t" = yes; then
22781 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22783 as_fn_error 77 "cannot compute sizeof (ssize_t)
22784 See \`config.log' for more details" "$LINENO" 5; }
22786 ac_cv_sizeof_ssize_t=0
22791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
22792 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
22796 cat >>confdefs.h <<_ACEOF
22797 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
22802 # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
22803 # The cast to long int works around a bug in the HP C Compiler
22804 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22805 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22806 # This bug is HP SR number 8606223364.
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
22808 $as_echo_n "checking size of unsigned int*... " >&6; }
22809 if ${ac_cv_sizeof_unsigned_intp+:} false; then :
22810 $as_echo_n "(cached) " >&6
22812 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then :
22815 if test "$ac_cv_type_unsigned_intp" = yes; then
22816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22818 as_fn_error 77 "cannot compute sizeof (unsigned int*)
22819 See \`config.log' for more details" "$LINENO" 5; }
22821 ac_cv_sizeof_unsigned_intp=0
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
22827 $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
22831 cat >>confdefs.h <<_ACEOF
22832 #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
22838 # Compute sized types for current CPU and compiler options.
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
22842 $as_echo_n "checking for signed 8-bit type... " >&6; }
22843 INT8_T='signed char'
22844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
22845 $as_echo "$INT8_T" >&6; }
22848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
22849 $as_echo_n "checking for unsigned 8-bit type... " >&6; }
22850 UINT8_T='unsigned char'
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
22852 $as_echo "$UINT8_T" >&6; }
22855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
22856 $as_echo_n "checking for signed 16-bit type... " >&6; }
22857 INT16_T='signed short'
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
22859 $as_echo "$INT16_T" >&6; }
22862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
22863 $as_echo_n "checking for unsigned 16-bit type... " >&6; }
22864 UINT16_T='unsigned short'
22865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
22866 $as_echo "$UINT16_T" >&6; }
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
22870 $as_echo_n "checking for signed 32-bit type... " >&6; }
22872 if test $ac_cv_sizeof_signed_int -eq 4; then
22873 INT32_T='signed int'
22874 elif test $ac_cv_sizeof_signed_long -eq 4; then
22875 INT32_T='signed long'
22877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
22878 $as_echo "$INT32_T" >&6; }
22881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
22882 $as_echo_n "checking for unsigned 32-bit type... " >&6; }
22884 if test $ac_cv_sizeof_unsigned_int -eq 4; then
22885 UINT32_T='unsigned int'
22886 elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22887 UINT32_T='unsigned long'
22889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
22890 $as_echo "$UINT32_T" >&6; }
22893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
22894 $as_echo_n "checking for signed 64-bit type... " >&6; }
22896 if test $ac_cv_sizeof_signed_long -eq 8; then
22897 INT64_T='signed long'
22898 elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22899 INT64_T='signed long long'
22901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
22902 $as_echo "$INT64_T" >&6; }
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
22906 $as_echo_n "checking for unsigned 64-bit type... " >&6; }
22908 if test $ac_cv_sizeof_unsigned_long -eq 8; then
22909 UINT64_T='unsigned long'
22910 elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22911 UINT64_T='unsigned long long'
22913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
22914 $as_echo "$UINT64_T" >&6; }
22917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
22918 $as_echo_n "checking for unsigned maximum type... " >&6; }
22920 if test "$UINT64_T" != 'none'; then
22921 UINTMAX_T=$UINT64_T
22922 elif test "$UINT32_T" != 'none'; then
22923 UINTMAX_T=$UINT32_T
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
22926 $as_echo "$UINTMAX_T" >&6; }
22929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
22930 $as_echo_n "checking for pointer difference type... " >&6; }
22932 if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22933 UINTPTR_T='unsigned long'
22934 elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22935 UINTPTR_T='unsigned long long'
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
22938 $as_echo "$UINTPTR_T" >&6; }
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
22942 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
22943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22944 /* end confdefs.h. */
22949 { const char *func = __func__; return(func != 0 ? 0 : 1); }
22954 if ac_fn_c_try_compile "$LINENO"; then :
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22956 $as_echo "yes" >&6; }
22958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22959 $as_echo "no" >&6; }
22960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
22961 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
22962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22963 /* end confdefs.h. */
22968 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22973 if ac_fn_c_try_compile "$LINENO"; then :
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22975 $as_echo "yes" >&6; }
22977 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
22980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22981 $as_echo "no" >&6; }
22983 $as_echo "#define __func__ __FILE__" >>confdefs.h
22986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22992 # Check for functions
22995 for ac_header in stdlib.h unistd.h
22997 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22998 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22999 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23000 cat >>confdefs.h <<_ACEOF
23001 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23008 for ac_func in getpagesize
23010 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
23011 if test "x$ac_cv_func_getpagesize" = xyes; then :
23012 cat >>confdefs.h <<_ACEOF
23013 #define HAVE_GETPAGESIZE 1
23019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23020 $as_echo_n "checking for working mmap file i/o... " >&6; }
23021 if ${magick_cv_func_mmap_fileio+:} false; then :
23022 $as_echo_n "(cached) " >&6
23024 if test "$cross_compiling" = yes; then :
23025 magick_cv_func_mmap_fileio=no
23027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23028 /* end confdefs.h. */
23029 $ac_includes_default
23030 /* malloc might have been renamed as rpl_malloc. */
23034 This test is derived from GNU Autoconf's similar macro.
23035 The purpose of this test is to verify that files may be memory
23036 mapped, and that memory mapping and file I/O are coherent.
23038 The test creates a test file, memory maps the file, updates
23039 the file using the memory map, and then reads the file using
23040 file I/O to verify that the file contains the updates.
23044 #include <sys/mman.h>
23046 #if !STDC_HEADERS && !HAVE_STDLIB_H
23050 /* This mess was copied from the GNU getpagesize.h. */
23051 #if !HAVE_GETPAGESIZE
23052 /* Assume that all systems that can run configure have sys/param.h. */
23053 # if !HAVE_SYS_PARAM_H
23054 # define HAVE_SYS_PARAM_H 1
23057 # ifdef _SC_PAGESIZE
23058 # define getpagesize() sysconf(_SC_PAGESIZE)
23059 # else /* no _SC_PAGESIZE */
23060 # if HAVE_SYS_PARAM_H
23061 # include <sys/param.h>
23062 # ifdef EXEC_PAGESIZE
23063 # define getpagesize() EXEC_PAGESIZE
23064 # else /* no EXEC_PAGESIZE */
23066 # define getpagesize() NBPG * CLSIZE
23069 # endif /* no CLSIZE */
23070 # else /* no NBPG */
23072 # define getpagesize() NBPC
23073 # else /* no NBPC */
23075 # define getpagesize() PAGESIZE
23076 # endif /* PAGESIZE */
23077 # endif /* no NBPC */
23078 # endif /* no NBPG */
23079 # endif /* no EXEC_PAGESIZE */
23080 # else /* no HAVE_SYS_PARAM_H */
23081 # define getpagesize() 8192 /* punt totally */
23082 # endif /* no HAVE_SYS_PARAM_H */
23083 # endif /* no _SC_PAGESIZE */
23085 #endif /* no HAVE_GETPAGESIZE */
23090 char *data, *data2, *data3;
23094 pagesize = getpagesize ();
23096 /* First, make a file with some known garbage in it. */
23097 data = (char *) malloc (pagesize);
23100 for (i = 0; i < pagesize; ++i)
23101 *(data + i) = rand ();
23103 fd = creat ("conftest.mmap", 0600);
23106 if (write (fd, data, pagesize) != pagesize)
23110 /* Mmap the file as read/write/shared and verify that we see the
23112 fd = open ("conftest.mmap", O_RDWR);
23115 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23118 for (i = 0; i < pagesize; ++i)
23119 if (*(data + i) != *(data2 + i))
23122 /* Finally, make sure that changes to the mapped area
23123 percolate back to the file as seen by read(). */
23124 for (i = 0; i < pagesize; ++i)
23125 *(data2 + i) = *(data2 + i) + 1;
23126 data3 = (char *) malloc (pagesize);
23129 if (read (fd, data3, pagesize) != pagesize)
23131 for (i = 0; i < pagesize; ++i)
23132 if (*(data2 + i) != *(data3 + i))
23138 if ac_fn_c_try_run "$LINENO"; then :
23139 magick_cv_func_mmap_fileio=yes
23141 magick_cv_func_mmap_fileio=no
23143 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23144 conftest.$ac_objext conftest.beam conftest.$ac_ext
23148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23149 $as_echo "$magick_cv_func_mmap_fileio" >&6; }
23150 if test $magick_cv_func_mmap_fileio = yes; then
23152 $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23155 rm -f conftest.mmap
23157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
23158 $as_echo_n "checking whether closedir returns void... " >&6; }
23159 if ${ac_cv_func_closedir_void+:} false; then :
23160 $as_echo_n "(cached) " >&6
23162 if test "$cross_compiling" = yes; then :
23163 ac_cv_func_closedir_void=yes
23165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23166 /* end confdefs.h. */
23167 $ac_includes_default
23168 #include <$ac_header_dirent>
23169 #ifndef __cplusplus
23176 return closedir (opendir (".")) != 0;
23181 if ac_fn_c_try_run "$LINENO"; then :
23182 ac_cv_func_closedir_void=no
23184 ac_cv_func_closedir_void=yes
23186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23187 conftest.$ac_objext conftest.beam conftest.$ac_ext
23191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
23192 $as_echo "$ac_cv_func_closedir_void" >&6; }
23193 if test $ac_cv_func_closedir_void = yes; then
23195 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
23202 for ac_header in $ac_header_list
23204 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23205 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23207 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23208 cat >>confdefs.h <<_ACEOF
23209 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23223 for ac_func in getpagesize
23225 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
23226 if test "x$ac_cv_func_getpagesize" = xyes; then :
23227 cat >>confdefs.h <<_ACEOF
23228 #define HAVE_GETPAGESIZE 1
23234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
23235 $as_echo_n "checking for working mmap... " >&6; }
23236 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
23237 $as_echo_n "(cached) " >&6
23239 if test "$cross_compiling" = yes; then :
23240 ac_cv_func_mmap_fixed_mapped=no
23242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23243 /* end confdefs.h. */
23244 $ac_includes_default
23245 /* malloc might have been renamed as rpl_malloc. */
23248 /* Thanks to Mike Haertel and Jim Avera for this test.
23249 Here is a matrix of mmap possibilities:
23250 mmap private not fixed
23251 mmap private fixed at somewhere currently unmapped
23252 mmap private fixed at somewhere already mapped
23253 mmap shared not fixed
23254 mmap shared fixed at somewhere currently unmapped
23255 mmap shared fixed at somewhere already mapped
23256 For private mappings, we should verify that changes cannot be read()
23257 back from the file, nor mmap's back from the file at a different
23258 address. (There have been systems where private was not correctly
23259 implemented like the infamous i386 svr4.0, and systems where the
23260 VM page cache was not coherent with the file system buffer cache
23261 like early versions of FreeBSD and possibly contemporary NetBSD.)
23262 For shared mappings, we should conversely verify that changes get
23263 propagated back to all the places they're supposed to be.
23265 Grep wants private fixed already mapped.
23266 The main things grep needs to know about mmap are:
23267 * does it exist and is it safe to write into the mmap'd area
23268 * how to use it (BSD variants) */
23271 #include <sys/mman.h>
23273 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
23277 /* This mess was copied from the GNU getpagesize.h. */
23278 #ifndef HAVE_GETPAGESIZE
23279 # ifdef _SC_PAGESIZE
23280 # define getpagesize() sysconf(_SC_PAGESIZE)
23281 # else /* no _SC_PAGESIZE */
23282 # ifdef HAVE_SYS_PARAM_H
23283 # include <sys/param.h>
23284 # ifdef EXEC_PAGESIZE
23285 # define getpagesize() EXEC_PAGESIZE
23286 # else /* no EXEC_PAGESIZE */
23288 # define getpagesize() NBPG * CLSIZE
23291 # endif /* no CLSIZE */
23292 # else /* no NBPG */
23294 # define getpagesize() NBPC
23295 # else /* no NBPC */
23297 # define getpagesize() PAGESIZE
23298 # endif /* PAGESIZE */
23299 # endif /* no NBPC */
23300 # endif /* no NBPG */
23301 # endif /* no EXEC_PAGESIZE */
23302 # else /* no HAVE_SYS_PARAM_H */
23303 # define getpagesize() 8192 /* punt totally */
23304 # endif /* no HAVE_SYS_PARAM_H */
23305 # endif /* no _SC_PAGESIZE */
23307 #endif /* no HAVE_GETPAGESIZE */
23312 char *data, *data2, *data3;
23313 const char *cdata2;
23317 pagesize = getpagesize ();
23319 /* First, make a file with some known garbage in it. */
23320 data = (char *) malloc (pagesize);
23323 for (i = 0; i < pagesize; ++i)
23324 *(data + i) = rand ();
23326 fd = creat ("conftest.mmap", 0600);
23329 if (write (fd, data, pagesize) != pagesize)
23333 /* Next, check that the tail of a page is zero-filled. File must have
23334 non-zero length, otherwise we risk SIGBUS for entire page. */
23335 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
23339 if (write (fd2, cdata2, 1) != 1)
23341 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
23342 if (data2 == MAP_FAILED)
23344 for (i = 0; i < pagesize; ++i)
23348 if (munmap (data2, pagesize))
23351 /* Next, try to mmap the file at a fixed address which already has
23352 something else allocated at it. If we can, also make sure that
23353 we see the same garbage. */
23354 fd = open ("conftest.mmap", O_RDWR);
23357 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
23358 MAP_PRIVATE | MAP_FIXED, fd, 0L))
23360 for (i = 0; i < pagesize; ++i)
23361 if (*(data + i) != *(data2 + i))
23364 /* Finally, make sure that changes to the mapped area do not
23365 percolate back to the file as seen by read(). (This is a bug on
23366 some variants of i386 svr4.0.) */
23367 for (i = 0; i < pagesize; ++i)
23368 *(data2 + i) = *(data2 + i) + 1;
23369 data3 = (char *) malloc (pagesize);
23372 if (read (fd, data3, pagesize) != pagesize)
23374 for (i = 0; i < pagesize; ++i)
23375 if (*(data + i) != *(data3 + i))
23381 if ac_fn_c_try_run "$LINENO"; then :
23382 ac_cv_func_mmap_fixed_mapped=yes
23384 ac_cv_func_mmap_fixed_mapped=no
23386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23387 conftest.$ac_objext conftest.beam conftest.$ac_ext
23391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
23392 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
23393 if test $ac_cv_func_mmap_fixed_mapped = yes; then
23395 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
23398 rm -f conftest.mmap conftest.txt
23400 for ac_header in vfork.h
23402 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
23403 if test "x$ac_cv_header_vfork_h" = xyes; then :
23404 cat >>confdefs.h <<_ACEOF
23405 #define HAVE_VFORK_H 1
23412 for ac_func in fork vfork
23414 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23415 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23416 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23417 cat >>confdefs.h <<_ACEOF
23418 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23424 if test "x$ac_cv_func_fork" = xyes; then
23425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
23426 $as_echo_n "checking for working fork... " >&6; }
23427 if ${ac_cv_func_fork_works+:} false; then :
23428 $as_echo_n "(cached) " >&6
23430 if test "$cross_compiling" = yes; then :
23431 ac_cv_func_fork_works=cross
23433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23434 /* end confdefs.h. */
23435 $ac_includes_default
23440 /* By Ruediger Kuhlmann. */
23441 return fork () < 0;
23447 if ac_fn_c_try_run "$LINENO"; then :
23448 ac_cv_func_fork_works=yes
23450 ac_cv_func_fork_works=no
23452 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23453 conftest.$ac_objext conftest.beam conftest.$ac_ext
23457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
23458 $as_echo "$ac_cv_func_fork_works" >&6; }
23461 ac_cv_func_fork_works=$ac_cv_func_fork
23463 if test "x$ac_cv_func_fork_works" = xcross; then
23465 *-*-amigaos* | *-*-msdosdjgpp*)
23466 # Override, as these systems have only a dummy fork() stub
23467 ac_cv_func_fork_works=no
23470 ac_cv_func_fork_works=yes
23473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23474 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23476 ac_cv_func_vfork_works=$ac_cv_func_vfork
23477 if test "x$ac_cv_func_vfork" = xyes; then
23478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
23479 $as_echo_n "checking for working vfork... " >&6; }
23480 if ${ac_cv_func_vfork_works+:} false; then :
23481 $as_echo_n "(cached) " >&6
23483 if test "$cross_compiling" = yes; then :
23484 ac_cv_func_vfork_works=cross
23486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23487 /* end confdefs.h. */
23488 /* Thanks to Paul Eggert for this test. */
23489 $ac_includes_default
23490 #include <sys/wait.h>
23491 #ifdef HAVE_VFORK_H
23492 # include <vfork.h>
23494 /* On some sparc systems, changes by the child to local and incoming
23495 argument registers are propagated back to the parent. The compiler
23496 is told about this with #include <vfork.h>, but some compilers
23497 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23498 static variable whose address is put into a register that is
23499 clobbered by the vfork. */
23502 sparc_address_test (int arg)
23504 sparc_address_test (arg) int arg;
23507 static pid_t child;
23525 pid_t parent = getpid ();
23528 sparc_address_test (0);
23533 /* Here is another test for sparc vfork register problems. This
23534 test uses lots of local variables, at least as many local
23535 variables as main has allocated so far including compiler
23536 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23537 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23538 reuse the register of parent for one of the local variables,
23539 since it will think that parent can't possibly be used any more
23540 in this routine. Assigning to the local variable will thus
23541 munge parent in the parent process. */
23543 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23544 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23545 /* Convince the compiler that p..p7 are live; otherwise, it might
23546 use the same hardware register for all 8 local variables. */
23547 if (p != p1 || p != p2 || p != p3 || p != p4
23548 || p != p5 || p != p6 || p != p7)
23551 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23552 from child file descriptors. If the child closes a descriptor
23553 before it execs or exits, this munges the parent's descriptor
23554 as well. Test for this by closing stdout in the child. */
23555 _exit(close(fileno(stdout)) != 0);
23560 while (wait(&status) != child)
23563 /* Was there some problem with vforking? */
23566 /* Did the child fail? (This shouldn't happen.) */
23569 /* Did the vfork/compiler bug occur? */
23570 || parent != getpid()
23572 /* Did the file descriptor bug occur? */
23573 || fstat(fileno(stdout), &st) != 0
23578 if ac_fn_c_try_run "$LINENO"; then :
23579 ac_cv_func_vfork_works=yes
23581 ac_cv_func_vfork_works=no
23583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23584 conftest.$ac_objext conftest.beam conftest.$ac_ext
23588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
23589 $as_echo "$ac_cv_func_vfork_works" >&6; }
23592 if test "x$ac_cv_func_fork_works" = xcross; then
23593 ac_cv_func_vfork_works=$ac_cv_func_vfork
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23595 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23598 if test "x$ac_cv_func_vfork_works" = xyes; then
23600 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
23604 $as_echo "#define vfork fork" >>confdefs.h
23607 if test "x$ac_cv_func_fork_works" = xyes; then
23609 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
23613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
23614 $as_echo_n "checking for working memcmp... " >&6; }
23615 if ${ac_cv_func_memcmp_working+:} false; then :
23616 $as_echo_n "(cached) " >&6
23618 if test "$cross_compiling" = yes; then :
23619 ac_cv_func_memcmp_working=no
23621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23622 /* end confdefs.h. */
23623 $ac_includes_default
23628 /* Some versions of memcmp are not 8-bit clean. */
23629 char c0 = '\100', c1 = '\200', c2 = '\201';
23630 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23633 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23634 or more and with at least one buffer not starting on a 4-byte boundary.
23635 William Lewis provided this test program. */
23640 for (i = 0; i < 4; i++)
23644 strcpy (a, "--------01111111");
23645 strcpy (b, "--------10000000");
23646 if (memcmp (a, b, 16) >= 0)
23656 if ac_fn_c_try_run "$LINENO"; then :
23657 ac_cv_func_memcmp_working=yes
23659 ac_cv_func_memcmp_working=no
23661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23662 conftest.$ac_objext conftest.beam conftest.$ac_ext
23666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
23667 $as_echo "$ac_cv_func_memcmp_working" >&6; }
23668 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23669 *" memcmp.$ac_objext "* ) ;;
23670 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23675 for ac_header in sys/select.h sys/socket.h
23677 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23678 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23679 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23680 cat >>confdefs.h <<_ACEOF
23681 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
23689 $as_echo_n "checking types of arguments for select... " >&6; }
23690 if ${ac_cv_func_select_args+:} false; then :
23691 $as_echo_n "(cached) " >&6
23693 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23694 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23695 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
23696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23697 /* end confdefs.h. */
23698 $ac_includes_default
23699 #ifdef HAVE_SYS_SELECT_H
23700 # include <sys/select.h>
23702 #ifdef HAVE_SYS_SOCKET_H
23703 # include <sys/socket.h>
23709 extern int select ($ac_arg1,
23710 $ac_arg234, $ac_arg234, $ac_arg234,
23716 if ac_fn_c_try_compile "$LINENO"; then :
23717 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
23719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23723 # Provide a safe default value.
23724 : "${ac_cv_func_select_args=int,int *,struct timeval *}"
23727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
23728 $as_echo "$ac_cv_func_select_args" >&6; }
23729 ac_save_IFS=$IFS; IFS=','
23730 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23734 cat >>confdefs.h <<_ACEOF
23735 #define SELECT_TYPE_ARG1 $1
23739 cat >>confdefs.h <<_ACEOF
23740 #define SELECT_TYPE_ARG234 ($2)
23744 cat >>confdefs.h <<_ACEOF
23745 #define SELECT_TYPE_ARG5 ($3)
23750 if ${ac_cv_func_setvbuf_reversed+:} false; then :
23751 $as_echo_n "(cached) " >&6
23753 ac_cv_func_setvbuf_reversed=no
23757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
23758 $as_echo_n "checking return type of signal handlers... " >&6; }
23759 if ${ac_cv_type_signal+:} false; then :
23760 $as_echo_n "(cached) " >&6
23762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23763 /* end confdefs.h. */
23764 #include <sys/types.h>
23765 #include <signal.h>
23770 return *(signal (0, 0)) (0) == 1;
23775 if ac_fn_c_try_compile "$LINENO"; then :
23776 ac_cv_type_signal=int
23778 ac_cv_type_signal=void
23780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
23783 $as_echo "$ac_cv_type_signal" >&6; }
23785 cat >>confdefs.h <<_ACEOF
23786 #define RETSIGTYPE $ac_cv_type_signal
23790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
23791 $as_echo_n "checking for working strtod... " >&6; }
23792 if ${ac_cv_func_strtod+:} false; then :
23793 $as_echo_n "(cached) " >&6
23795 if test "$cross_compiling" = yes; then :
23796 ac_cv_func_strtod=no
23798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23799 /* end confdefs.h. */
23801 $ac_includes_default
23809 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
23810 char *string = " +69";
23813 value = strtod (string, &term);
23814 if (value != 69 || term != (string + 4))
23819 /* Under Solaris 2.4, strtod returns the wrong value for the
23820 terminating character under some conditions. */
23821 char *string = "NaN";
23823 strtod (string, &term);
23824 if (term != string && *(term - 1) == 0)
23831 if ac_fn_c_try_run "$LINENO"; then :
23832 ac_cv_func_strtod=yes
23834 ac_cv_func_strtod=no
23836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23837 conftest.$ac_objext conftest.beam conftest.$ac_ext
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
23842 $as_echo "$ac_cv_func_strtod" >&6; }
23843 if test $ac_cv_func_strtod = no; then
23844 case " $LIBOBJS " in
23845 *" strtod.$ac_objext "* ) ;;
23846 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23850 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
23851 if test "x$ac_cv_func_pow" = xyes; then :
23855 if test $ac_cv_func_pow = no; then
23856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
23857 $as_echo_n "checking for pow in -lm... " >&6; }
23858 if ${ac_cv_lib_m_pow+:} false; then :
23859 $as_echo_n "(cached) " >&6
23861 ac_check_lib_save_LIBS=$LIBS
23863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23864 /* end confdefs.h. */
23866 /* Override any GCC internal prototype to avoid an error.
23867 Use char because int might match the return type of a GCC
23868 builtin and then its argument prototype would still apply. */
23881 if ac_fn_c_try_link "$LINENO"; then :
23882 ac_cv_lib_m_pow=yes
23886 rm -f core conftest.err conftest.$ac_objext \
23887 conftest$ac_exeext conftest.$ac_ext
23888 LIBS=$ac_check_lib_save_LIBS
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
23891 $as_echo "$ac_cv_lib_m_pow" >&6; }
23892 if test "x$ac_cv_lib_m_pow" = xyes; then :
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
23896 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23903 for ac_func in vprintf
23905 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23906 if test "x$ac_cv_func_vprintf" = xyes; then :
23907 cat >>confdefs.h <<_ACEOF
23908 #define HAVE_VPRINTF 1
23911 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23912 if test "x$ac_cv_func__doprnt" = xyes; then :
23914 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
23924 # Find math library
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23928 $as_echo_n "checking for sqrt in -lm... " >&6; }
23929 if ${ac_cv_lib_m_sqrt+:} false; then :
23930 $as_echo_n "(cached) " >&6
23932 ac_check_lib_save_LIBS=$LIBS
23934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23935 /* end confdefs.h. */
23937 /* Override any GCC internal prototype to avoid an error.
23938 Use char because int might match the return type of a GCC
23939 builtin and then its argument prototype would still apply. */
23952 if ac_fn_c_try_link "$LINENO"; then :
23953 ac_cv_lib_m_sqrt=yes
23955 ac_cv_lib_m_sqrt=no
23957 rm -f core conftest.err conftest.$ac_objext \
23958 conftest$ac_exeext conftest.$ac_ext
23959 LIBS=$ac_check_lib_save_LIBS
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23962 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
23963 if test "x$ac_cv_lib_m_sqrt" = xyes; then :
23967 LIBS="$MATH_LIBS $LIBS"
23970 for ac_func in 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 _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 strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
23972 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23973 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23974 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23975 cat >>confdefs.h <<_ACEOF
23976 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23984 # Check for clock_gettime().
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
23987 $as_echo_n "checking for library containing clock_gettime... " >&6; }
23988 if ${ac_cv_search_clock_gettime+:} false; then :
23989 $as_echo_n "(cached) " >&6
23991 ac_func_search_save_LIBS=$LIBS
23992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23993 /* end confdefs.h. */
23995 /* Override any GCC internal prototype to avoid an error.
23996 Use char because int might match the return type of a GCC
23997 builtin and then its argument prototype would still apply. */
24001 char clock_gettime ();
24005 return clock_gettime ();
24010 for ac_lib in '' rt; do
24011 if test -z "$ac_lib"; then
24012 ac_res="none required"
24015 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24017 if ac_fn_c_try_link "$LINENO"; then :
24018 ac_cv_search_clock_gettime=$ac_res
24020 rm -f core conftest.err conftest.$ac_objext \
24022 if ${ac_cv_search_clock_gettime+:} false; then :
24026 if ${ac_cv_search_clock_gettime+:} false; then :
24029 ac_cv_search_clock_gettime=no
24031 rm conftest.$ac_ext
24032 LIBS=$ac_func_search_save_LIBS
24034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
24035 $as_echo "$ac_cv_search_clock_gettime" >&6; }
24036 ac_res=$ac_cv_search_clock_gettime
24037 if test "$ac_res" != no; then :
24038 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24041 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
24043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
24044 $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
24045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24046 /* end confdefs.h. */
24052 clockid_t clockType = CLOCK_REALTIME;
24057 if ac_fn_c_try_compile "$LINENO"; then :
24059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24060 $as_echo "yes" >&6; }
24062 $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24067 $as_echo "no" >&6; }
24070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24074 for ac_func in gettimeofday ftime
24076 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24077 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24078 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24079 cat >>confdefs.h <<_ACEOF
24080 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24093 # Check for function prototypes
24097 ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
24098 #include <unistd.h>
24100 if test "x$ac_cv_have_decl_pread" = xyes; then :
24106 cat >>confdefs.h <<_ACEOF
24107 #define HAVE_DECL_PREAD $ac_have_decl
24109 ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
24110 #include <unistd.h>
24112 if test "x$ac_cv_have_decl_pwrite" = xyes; then :
24118 cat >>confdefs.h <<_ACEOF
24119 #define HAVE_DECL_PWRITE $ac_have_decl
24123 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
24124 #include <strings.h>
24126 if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
24132 cat >>confdefs.h <<_ACEOF
24133 #define HAVE_DECL_STRLCPY $ac_have_decl
24137 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
24139 #include <stdarg.h>
24141 if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
24147 cat >>confdefs.h <<_ACEOF
24148 #define HAVE_DECL_VSNPRINTF $ac_have_decl
24154 # C++ Support Tests (For Magick++)
24157 have_magick_plus_plus='no'
24158 if test "$with_magick_plus_plus" = 'yes'; then
24162 ac_cpp='$CXXCPP $CPPFLAGS'
24163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24168 # Full set of headers used...
24169 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
24170 # functional iomanip iosfwd iostream iterator list string strstream utility
24172 ac_cpp='$CXXCPP $CPPFLAGS'
24173 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24174 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24175 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24178 ac_cpp='$CXXCPP $CPPFLAGS'
24179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24182 if test -z "$CXX"; then
24183 if test -n "$CCC"; then
24186 if test -n "$ac_tool_prefix"; then
24187 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24189 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24190 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24192 $as_echo_n "checking for $ac_word... " >&6; }
24193 if ${ac_cv_prog_CXX+:} false; then :
24194 $as_echo_n "(cached) " >&6
24196 if test -n "$CXX"; then
24197 ac_cv_prog_CXX="$CXX" # Let the user override the test.
24199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24200 for as_dir in $PATH
24203 test -z "$as_dir" && as_dir=.
24204 for ac_exec_ext in '' $ac_executable_extensions; do
24205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24206 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
24207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24216 CXX=$ac_cv_prog_CXX
24217 if test -n "$CXX"; then
24218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
24219 $as_echo "$CXX" >&6; }
24221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24222 $as_echo "no" >&6; }
24226 test -n "$CXX" && break
24229 if test -z "$CXX"; then
24231 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
24233 # Extract the first word of "$ac_prog", so it can be a program name with args.
24234 set dummy $ac_prog; ac_word=$2
24235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24236 $as_echo_n "checking for $ac_word... " >&6; }
24237 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
24238 $as_echo_n "(cached) " >&6
24240 if test -n "$ac_ct_CXX"; then
24241 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
24243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24244 for as_dir in $PATH
24247 test -z "$as_dir" && as_dir=.
24248 for ac_exec_ext in '' $ac_executable_extensions; do
24249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24250 ac_cv_prog_ac_ct_CXX="$ac_prog"
24251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24260 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
24261 if test -n "$ac_ct_CXX"; then
24262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
24263 $as_echo "$ac_ct_CXX" >&6; }
24265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24266 $as_echo "no" >&6; }
24270 test -n "$ac_ct_CXX" && break
24273 if test "x$ac_ct_CXX" = x; then
24276 case $cross_compiling:$ac_tool_warned in
24278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24280 ac_tool_warned=yes ;;
24288 # Provide some information about the compiler.
24289 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
24292 for ac_option in --version -v -V -qversion; do
24293 { { ac_try="$ac_compiler $ac_option >&5"
24294 case "(($ac_try" in
24295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24296 *) ac_try_echo=$ac_try;;
24298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
24299 $as_echo "$ac_try_echo"; } >&5
24300 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
24302 if test -s conftest.err; then
24304 ... rest of stderr output deleted ...
24305 10q' conftest.err >conftest.er1
24306 cat conftest.er1 >&5
24308 rm -f conftest.er1 conftest.err
24309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24310 test $ac_status = 0; }
24313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
24314 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
24315 if ${ac_cv_cxx_compiler_gnu+:} false; then :
24316 $as_echo_n "(cached) " >&6
24318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24319 /* end confdefs.h. */
24332 if ac_fn_cxx_try_compile "$LINENO"; then :
24333 ac_compiler_gnu=yes
24337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24338 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
24341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
24342 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
24343 if test $ac_compiler_gnu = yes; then
24348 ac_test_CXXFLAGS=${CXXFLAGS+set}
24349 ac_save_CXXFLAGS=$CXXFLAGS
24350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
24351 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
24352 if ${ac_cv_prog_cxx_g+:} false; then :
24353 $as_echo_n "(cached) " >&6
24355 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
24356 ac_cxx_werror_flag=yes
24357 ac_cv_prog_cxx_g=no
24359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24360 /* end confdefs.h. */
24370 if ac_fn_cxx_try_compile "$LINENO"; then :
24371 ac_cv_prog_cxx_g=yes
24374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24375 /* end confdefs.h. */
24385 if ac_fn_cxx_try_compile "$LINENO"; then :
24388 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
24390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24391 /* end confdefs.h. */
24401 if ac_fn_cxx_try_compile "$LINENO"; then :
24402 ac_cv_prog_cxx_g=yes
24404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24409 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
24411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
24412 $as_echo "$ac_cv_prog_cxx_g" >&6; }
24413 if test "$ac_test_CXXFLAGS" = set; then
24414 CXXFLAGS=$ac_save_CXXFLAGS
24415 elif test $ac_cv_prog_cxx_g = yes; then
24416 if test "$GXX" = yes; then
24422 if test "$GXX" = yes; then
24429 ac_cpp='$CXXCPP $CPPFLAGS'
24430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24434 depcc="$CXX" am_compiler_list=
24436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
24437 $as_echo_n "checking dependency style of $depcc... " >&6; }
24438 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
24439 $as_echo_n "(cached) " >&6
24441 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
24442 # We make a subdir and do the tests there. Otherwise we can end up
24443 # making bogus files that we don't know about and never remove. For
24444 # instance it was reported that on HP-UX the gcc test will end up
24445 # making a dummy file named `D' -- because `-MD' means `put the output
24448 # Copy depcomp to subdir because otherwise we won't find it if we're
24449 # using a relative directory.
24450 cp "$am_depcomp" conftest.dir
24452 # We will build objects and dependencies in a subdirectory because
24453 # it helps to detect inapplicable dependency modes. For instance
24454 # both Tru64's cc and ICC support -MD to output dependencies as a
24455 # side effect of compilation, but ICC will put the dependencies in
24456 # the current directory while Tru64 will put them in the object
24460 am_cv_CXX_dependencies_compiler_type=none
24461 if test "$am_compiler_list" = ""; then
24462 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
24464 am__universal=false
24465 case " $depcc " in #(
24466 *\ -arch\ *\ -arch\ *) am__universal=true ;;
24469 for depmode in $am_compiler_list; do
24470 # Setup a source with many dependencies, because some compilers
24471 # like to wrap large dependency lists on column 80 (with \), and
24472 # we should not choose a depcomp mode which is confused by this.
24474 # We need to recreate these files for each test, as the compiler may
24475 # overwrite some of them when testing with obscure command lines.
24476 # This happens at least with the AIX C compiler.
24478 for i in 1 2 3 4 5 6; do
24479 echo '#include "conftst'$i'.h"' >> sub/conftest.c
24480 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
24481 # Solaris 8's {/usr,}/bin/sh.
24482 touch sub/conftst$i.h
24484 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
24486 # We check with `-c' and `-o' for the sake of the "dashmstdout"
24487 # mode. It turns out that the SunPro C++ compiler does not properly
24488 # handle `-M -o', and we need to detect this. Also, some Intel
24489 # versions had trouble with output in subdirs
24490 am__obj=sub/conftest.${OBJEXT-o}
24491 am__minus_obj="-o $am__obj"
24494 # This depmode causes a compiler race in universal mode.
24495 test "$am__universal" = false || continue
24498 # after this tag, mechanisms are not by side-effect, so they'll
24499 # only be used when explicitly requested
24500 if test "x$enable_dependency_tracking" = xyes; then
24506 msvisualcpp | msvcmsys)
24507 # This compiler won't grok `-c -o', but also, the minuso test has
24508 # not run yet. These depmodes are late enough in the game, and
24509 # so weak that their functioning should not be impacted.
24510 am__obj=conftest.${OBJEXT-o}
24515 if depmode=$depmode \
24516 source=sub/conftest.c object=$am__obj \
24517 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
24518 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
24519 >/dev/null 2>conftest.err &&
24520 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
24521 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
24522 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
24523 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
24524 # icc doesn't choke on unknown options, it will just issue warnings
24525 # or remarks (even with -Werror). So we grep stderr for any message
24526 # that says an option was ignored or not supported.
24527 # When given -MP, icc 7.0 and 7.1 complain thusly:
24528 # icc: Command line warning: ignoring option '-M'; no argument required
24529 # The diagnosis changed in icc 8.0:
24530 # icc: Command line remark: option '-MP' not supported
24531 if (grep 'ignoring option' conftest.err ||
24532 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
24533 am_cv_CXX_dependencies_compiler_type=$depmode
24540 rm -rf conftest.dir
24542 am_cv_CXX_dependencies_compiler_type=none
24546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
24547 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
24548 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
24551 test "x$enable_dependency_tracking" != xno \
24552 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
24553 am__fastdepCXX_TRUE=
24554 am__fastdepCXX_FALSE='#'
24556 am__fastdepCXX_TRUE='#'
24557 am__fastdepCXX_FALSE=
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
24562 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
24563 if ${ax_cv_cxx_bool+:} false; then :
24564 $as_echo_n "(cached) " >&6
24568 ac_cpp='$CXXCPP $CPPFLAGS'
24569 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24570 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24574 /* end confdefs.h. */
24576 int f(int x){return 1;}
24577 int f(char x){return 1;}
24578 int f(bool x){return 1;}
24583 bool b = true; return f(b);
24588 if ac_fn_cxx_try_compile "$LINENO"; then :
24593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24595 ac_cpp='$CXXCPP $CPPFLAGS'
24596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
24603 $as_echo "$ax_cv_cxx_bool" >&6; }
24604 if test "$ax_cv_cxx_bool" = yes; then
24606 $as_echo "#define HAVE_BOOL /**/" >>confdefs.h
24610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
24611 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
24612 if ${ax_cv_cxx_namespaces+:} false; then :
24613 $as_echo_n "(cached) " >&6
24617 ac_cpp='$CXXCPP $CPPFLAGS'
24618 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24619 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24620 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24623 /* end confdefs.h. */
24624 namespace Outer { namespace Inner { int i = 0; }}
24628 using namespace Outer::Inner; return i;
24633 if ac_fn_cxx_try_compile "$LINENO"; then :
24634 ax_cv_cxx_namespaces=yes
24636 ax_cv_cxx_namespaces=no
24638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24640 ac_cpp='$CXXCPP $CPPFLAGS'
24641 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24642 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24643 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
24648 $as_echo "$ax_cv_cxx_namespaces" >&6; }
24649 if test "$ax_cv_cxx_namespaces" = yes; then
24651 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
24657 $as_echo_n "checking if g++ supports namespace std... " >&6; }
24658 if ${ax_cv_cxx_have_std_namespace+:} false; then :
24659 $as_echo_n "(cached) " >&6
24663 ac_cpp='$CXXCPP $CPPFLAGS'
24664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24669 /* end confdefs.h. */
24670 #include <iostream>
24671 std::istream& is = std::cin;
24680 if ac_fn_cxx_try_compile "$LINENO"; then :
24681 ax_cv_cxx_have_std_namespace=yes
24683 ax_cv_cxx_have_std_namespace=no
24685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24687 ac_cpp='$CXXCPP $CPPFLAGS'
24688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
24695 $as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
24696 if test "$ax_cv_cxx_have_std_namespace" = yes; then
24698 $as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
24702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
24703 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
24704 if ${ac_cv_cxx_have_std_libs+:} false; then :
24705 $as_echo_n "(cached) " >&6
24710 ac_cpp='$CXXCPP $CPPFLAGS'
24711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24716 /* end confdefs.h. */
24717 #include <iostream>
24721 #ifdef HAVE_NAMESPACES
24722 using namespace std;
24732 if ac_fn_cxx_try_compile "$LINENO"; then :
24733 ac_cv_cxx_have_std_libs=yes
24735 ac_cv_cxx_have_std_libs=no
24737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24739 ac_cpp='$CXXCPP $CPPFLAGS'
24740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
24747 $as_echo "$ac_cv_cxx_have_std_libs" >&6; }
24748 if test "$ac_cv_cxx_have_std_libs" = yes; then
24750 $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
24756 # Check whether --enable-openmp was given.
24757 if test "${enable_openmp+set}" = set; then :
24758 enableval=$enable_openmp;
24761 if test "$enable_openmp" != no; then
24762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
24763 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
24764 if ${ac_cv_prog_cxx_openmp+:} false; then :
24765 $as_echo_n "(cached) " >&6
24767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24768 /* end confdefs.h. */
24774 int main () { return omp_get_num_threads (); }
24777 if ac_fn_cxx_try_link "$LINENO"; then :
24778 ac_cv_prog_cxx_openmp='none needed'
24780 ac_cv_prog_cxx_openmp='unsupported'
24781 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
24782 ac_save_CXXFLAGS=$CXXFLAGS
24783 CXXFLAGS="$CXXFLAGS $ac_option"
24784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24785 /* end confdefs.h. */
24791 int main () { return omp_get_num_threads (); }
24794 if ac_fn_cxx_try_link "$LINENO"; then :
24795 ac_cv_prog_cxx_openmp=$ac_option
24797 rm -f core conftest.err conftest.$ac_objext \
24798 conftest$ac_exeext conftest.$ac_ext
24799 CXXFLAGS=$ac_save_CXXFLAGS
24800 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
24805 rm -f core conftest.err conftest.$ac_objext \
24806 conftest$ac_exeext conftest.$ac_ext
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
24809 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24810 case $ac_cv_prog_cxx_openmp in #(
24811 "none needed" | unsupported)
24814 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
24820 ac_cpp='$CPP $CPPFLAGS'
24821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
24827 $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24829 test $ax_cv_cxx_bool = 'yes' && \
24830 test $ax_cv_cxx_namespaces = 'yes' && \
24831 test $ac_cv_cxx_have_std_libs = 'yes' && \
24832 test $ax_cv_cxx_have_std_namespace = 'yes'; then
24833 have_magick_plus_plus='yes'
24835 have_magick_plus_plus='no (failed tests)'
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
24838 $as_echo "$have_magick_plus_plus" >&6; }
24841 if test "$have_magick_plus_plus" = 'yes'; then
24842 WITH_MAGICK_PLUS_PLUS_TRUE=
24843 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24845 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24846 WITH_MAGICK_PLUS_PLUS_FALSE=
24850 # Only check for delegate libraries in subdirectories if requested.
24851 if test "$enable_delegate_build" != 'no'; then
24852 # Check for delegate sub-directories and add -I & -L options as required.
24853 # This presumes that delegates are installed as detailed in the ImageMagick
24854 # README. If delegates are installed in a standard location where the
24855 # compiler will automatically find them then these options should not be
24859 # Most delegates have includes in the same directory as the library, but not all...
24862 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
24863 if test -d "$builddir/$dir"; then
24864 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24866 if test -d "$srcdirfull/$dir"; then
24867 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24873 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
24874 if test -d "$builddir/$dir/.libs"; then
24875 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24877 if test -d "$srcdirfull/$dir/.libs"; then
24878 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24881 if test -d "$builddir/$dir"; then
24882 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24884 if test -d "$srcdirfull/$dir"; then
24885 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24891 # Assume that delegate headers reside under same directory as ImageMagick
24892 # installation prefix.
24893 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24896 # Find the X11 RGB database
24898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
24899 $as_echo_n "checking for X11 configure files... " >&6; }
24900 if ${im_cv_x_configure+:} false; then :
24901 $as_echo_n "(cached) " >&6
24903 # Look for the header file in a standard set of common directories.
24904 # Check X11 before X11Rn because it is often a symlink to the current release.
24913 /usr/XFree86/lib/X11 \
24921 /usr/local/X11/lib \
24922 /usr/local/X11R4/lib \
24923 /usr/local/X11R5/lib \
24924 /usr/local/X11R6/lib \
24926 /usr/local/lib/X11 \
24927 /usr/local/lib/X11R4 \
24928 /usr/local/lib/X11R5 \
24929 /usr/local/lib/X11R6 \
24930 /usr/local/lib/X11R7 \
24931 /usr/local/x11r5/lib \
24932 /usr/lpp/Xamples/lib \
24934 /usr/openwin/share/lib \
24935 /usr/unsupported/lib \
24938 if test -f "$ac_dir/X11/rgb.txt"; then
24939 im_cv_x_configure="$ac_dir/X11/"
24941 elif test -f "$ac_dir/rgb.txt"; then
24942 im_cv_x_configure="$ac_dir/"
24948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
24949 $as_echo "$im_cv_x_configure" >&6; }
24950 X11_CONFIGURE_PATH="$im_cv_x_configure"
24951 case "${build_os}" in
24953 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24957 cat >>confdefs.h <<_ACEOF
24958 #define X11_CONFIGURE_PATH "$X11ConfigurePath"
24963 # Find OpenMP library
24966 if test "$enable_openmp" != 'no'; then
24967 if test "${GCC}" = "yes"; then
24968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
24969 $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
24970 if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
24971 $as_echo_n "(cached) " >&6
24973 ac_check_lib_save_LIBS=$LIBS
24974 LIBS="-lgomp $LIBS"
24975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24976 /* end confdefs.h. */
24978 /* Override any GCC internal prototype to avoid an error.
24979 Use char because int might match the return type of a GCC
24980 builtin and then its argument prototype would still apply. */
24984 char GOMP_parallel_start ();
24988 return GOMP_parallel_start ();
24993 if ac_fn_c_try_link "$LINENO"; then :
24994 ac_cv_lib_gomp_GOMP_parallel_start=yes
24996 ac_cv_lib_gomp_GOMP_parallel_start=no
24998 rm -f core conftest.err conftest.$ac_objext \
24999 conftest$ac_exeext conftest.$ac_ext
25000 LIBS=$ac_check_lib_save_LIBS
25002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
25003 $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
25004 if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
25009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
25010 $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
25011 if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
25012 $as_echo_n "(cached) " >&6
25014 ac_check_lib_save_LIBS=$LIBS
25015 LIBS="-lmtsk $LIBS"
25016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25017 /* end confdefs.h. */
25019 /* Override any GCC internal prototype to avoid an error.
25020 Use char because int might match the return type of a GCC
25021 builtin and then its argument prototype would still apply. */
25025 char sunw_mp_register_warn ();
25029 return sunw_mp_register_warn ();
25034 if ac_fn_c_try_link "$LINENO"; then :
25035 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25037 ac_cv_lib_mtsk_sunw_mp_register_warn=no
25039 rm -f core conftest.err conftest.$ac_objext \
25040 conftest$ac_exeext conftest.$ac_ext
25041 LIBS=$ac_check_lib_save_LIBS
25043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
25044 $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
25045 if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
25049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
25050 $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
25051 if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
25052 $as_echo_n "(cached) " >&6
25054 ac_check_lib_save_LIBS=$LIBS
25055 LIBS="-lxlsmp $LIBS"
25056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25057 /* end confdefs.h. */
25059 /* Override any GCC internal prototype to avoid an error.
25060 Use char because int might match the return type of a GCC
25061 builtin and then its argument prototype would still apply. */
25065 char _xlsmpFlush ();
25069 return _xlsmpFlush ();
25074 if ac_fn_c_try_link "$LINENO"; then :
25075 ac_cv_lib_xlsmp__xlsmpFlush=yes
25077 ac_cv_lib_xlsmp__xlsmpFlush=no
25079 rm -f core conftest.err conftest.$ac_objext \
25080 conftest$ac_exeext conftest.$ac_ext
25081 LIBS=$ac_check_lib_save_LIBS
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
25084 $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
25085 if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
25086 GOMP_LIBS="-lxlsmp"
25089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
25090 $as_echo_n "checking for mp_destroy in -lmp... " >&6; }
25091 if ${ac_cv_lib_mp_mp_destroy+:} false; then :
25092 $as_echo_n "(cached) " >&6
25094 ac_check_lib_save_LIBS=$LIBS
25096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25097 /* end confdefs.h. */
25099 /* Override any GCC internal prototype to avoid an error.
25100 Use char because int might match the return type of a GCC
25101 builtin and then its argument prototype would still apply. */
25105 char mp_destroy ();
25109 return mp_destroy ();
25114 if ac_fn_c_try_link "$LINENO"; then :
25115 ac_cv_lib_mp_mp_destroy=yes
25117 ac_cv_lib_mp_mp_destroy=no
25119 rm -f core conftest.err conftest.$ac_objext \
25120 conftest$ac_exeext conftest.$ac_ext
25121 LIBS=$ac_check_lib_save_LIBS
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
25124 $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
25125 if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
25128 # SGI IRIX 6.5 MIPSpro C/C++
25130 LIBS="$GOMP_LIBS $LIBS"
25135 # Find Posix threads library
25138 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
25140 if test "x$PTHREAD_LIBS" = "x"; then
25141 case "${host_cpu}-${host_os}" in
25147 ac_cpp='$CPP $CPPFLAGS'
25148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25152 magick_pthread_lib_ok=no
25158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25159 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
25160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25161 /* end confdefs.h. */
25162 #include <pthread.h>
25167 pthread_join(th, 0);
25168 pthread_attr_init(0);
25169 pthread_cleanup_push(0, 0);
25170 pthread_create(0,0,0,0);
25171 pthread_cleanup_pop(0);
25176 if ac_fn_c_try_link "$LINENO"; then :
25177 magick_pthread_lib_ok=yes
25179 rm -f core conftest.err conftest.$ac_objext \
25180 conftest$ac_exeext conftest.$ac_ext
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25183 $as_echo "${magick_pthread_lib_ok}" >&6; }
25184 if test "$magick_pthread_lib_ok" = yes
25196 ac_cpp='$CPP $CPPFLAGS'
25197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25205 for lib in pthread pthreads; do
25206 if test "x$PTHREAD_LIBS" = "x"; then
25211 ac_cpp='$CPP $CPPFLAGS'
25212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25216 magick_pthread_lib_ok=no
25222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
25223 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
25224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25225 /* end confdefs.h. */
25226 #include <pthread.h>
25231 pthread_join(th, 0);
25232 pthread_attr_init(0);
25233 pthread_cleanup_push(0, 0);
25234 pthread_create(0,0,0,0);
25235 pthread_cleanup_pop(0);
25240 if ac_fn_c_try_link "$LINENO"; then :
25241 magick_pthread_lib_ok=yes
25243 rm -f core conftest.err conftest.$ac_objext \
25244 conftest$ac_exeext conftest.$ac_ext
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
25247 $as_echo "${magick_pthread_lib_ok}" >&6; }
25248 if test "$magick_pthread_lib_ok" = yes
25250 PTHREAD_LIBS=-l$lib
25260 ac_cpp='$CPP $CPPFLAGS'
25261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25269 THREAD_LIBS="$PTHREAD_LIBS"
25270 LIBS="$LIBS $THREAD_LIBS"
25279 if test "$with_umem" != 'no'; then
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
25281 $as_echo_n "checking for UMEM support ... " >&6; }
25282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25286 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
25287 if test "x$ac_cv_header_umem_h" = xyes; then :
25288 passed=`expr $passed + 1`
25290 failed=`expr $failed + 1`
25294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
25295 $as_echo_n "checking for umem_alloc in -lumem... " >&6; }
25296 if ${ac_cv_lib_umem_umem_alloc+:} false; then :
25297 $as_echo_n "(cached) " >&6
25299 ac_check_lib_save_LIBS=$LIBS
25300 LIBS="-lumem $LIBS"
25301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25302 /* end confdefs.h. */
25304 /* Override any GCC internal prototype to avoid an error.
25305 Use char because int might match the return type of a GCC
25306 builtin and then its argument prototype would still apply. */
25310 char umem_alloc ();
25314 return umem_alloc ();
25319 if ac_fn_c_try_link "$LINENO"; then :
25320 ac_cv_lib_umem_umem_alloc=yes
25322 ac_cv_lib_umem_umem_alloc=no
25324 rm -f core conftest.err conftest.$ac_objext \
25325 conftest$ac_exeext conftest.$ac_ext
25326 LIBS=$ac_check_lib_save_LIBS
25328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
25329 $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
25330 if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
25331 passed=`expr $passed + 1`
25333 failed=`expr $failed + 1`
25336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
25337 $as_echo_n "checking for umem_free in -lumem... " >&6; }
25338 if ${ac_cv_lib_umem_umem_free+:} false; then :
25339 $as_echo_n "(cached) " >&6
25341 ac_check_lib_save_LIBS=$LIBS
25342 LIBS="-lumem $LIBS"
25343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25344 /* end confdefs.h. */
25346 /* Override any GCC internal prototype to avoid an error.
25347 Use char because int might match the return type of a GCC
25348 builtin and then its argument prototype would still apply. */
25356 return umem_free ();
25361 if ac_fn_c_try_link "$LINENO"; then :
25362 ac_cv_lib_umem_umem_free=yes
25364 ac_cv_lib_umem_umem_free=no
25366 rm -f core conftest.err conftest.$ac_objext \
25367 conftest$ac_exeext conftest.$ac_ext
25368 LIBS=$ac_check_lib_save_LIBS
25370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
25371 $as_echo "$ac_cv_lib_umem_umem_free" >&6; }
25372 if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
25373 passed=`expr $passed + 1`
25375 failed=`expr $failed + 1`
25378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
25379 $as_echo_n "checking if umem memory allocation library is complete... " >&6; }
25380 if test $passed -gt 0; then
25381 if test $failed -gt 0; then
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25383 $as_echo "no -- some components failed test" >&6; }
25384 have_umem='no (failed tests)'
25387 LIBS="$UMEM_LIBS $LIBS"
25389 $as_echo "#define HasUMEM 1" >>confdefs.h
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25392 $as_echo "yes" >&6; }
25396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25397 $as_echo "no" >&6; }
25400 if test "$have_umem" = 'yes'; then
25411 # Add support for ccmalloc memory debugging library if requested
25415 if test "$enable_ccmalloc" = 'yes'; then
25416 # Extract the first word of "ccmalloc", so it can be a program name with args.
25417 set dummy ccmalloc; ac_word=$2
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25419 $as_echo_n "checking for $ac_word... " >&6; }
25420 if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
25421 $as_echo_n "(cached) " >&6
25423 case $CCMALLOCDelegate in
25425 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
25428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25429 for as_dir in $PATH
25432 test -z "$as_dir" && as_dir=.
25433 for ac_exec_ext in '' $ac_executable_extensions; do
25434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25435 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
25436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25446 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
25447 if test -n "$CCMALLOCDelegate"; then
25448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
25449 $as_echo "$CCMALLOCDelegate" >&6; }
25451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25452 $as_echo "no" >&6; }
25456 if test -n "$CCMALLOCDelegate"; then
25457 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
25459 # Assume that gcc is used with ccmalloc.
25460 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
25461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
25462 $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
25463 if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
25464 $as_echo_n "(cached) " >&6
25466 ac_check_lib_save_LIBS=$LIBS
25467 LIBS="-lccmalloc -ldl $LIBS"
25468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25469 /* end confdefs.h. */
25471 /* Override any GCC internal prototype to avoid an error.
25472 Use char because int might match the return type of a GCC
25473 builtin and then its argument prototype would still apply. */
25477 char ccmalloc_malloc ();
25481 return ccmalloc_malloc ();
25486 if ac_fn_c_try_link "$LINENO"; then :
25487 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
25489 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
25491 rm -f core conftest.err conftest.$ac_objext \
25492 conftest$ac_exeext conftest.$ac_ext
25493 LIBS=$ac_check_lib_save_LIBS
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
25496 $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
25497 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
25498 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
25501 if test -n "$CCMALLOC_LIBS"; then
25503 LIBS="$LIBS $CCMALLOC_LIBS"
25504 have_ccmalloc='yes'
25512 # Add support for efence memory debugging library if requested
25514 if test "$enable_efence" = 'yes'; then
25515 EFENCE_LIBS='-lefence'
25516 LIBS="$EFENCE_LIBS $LIBS"
25525 # Check whether --with-bzlib was given.
25526 if test "${with_bzlib+set}" = set; then :
25527 withval=$with_bzlib; with_bzlib=$withval
25533 if test "$with_bzlib" != 'yes'; then
25534 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
25538 if test "$with_bzlib" != 'no'; then
25540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25541 $as_echo "-------------------------------------------------------------" >&6; }
25542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
25543 $as_echo_n "checking for BZLIB... " >&6; }
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25549 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
25550 if test "x$ac_cv_header_bzlib_h" = xyes; then :
25551 passed=`expr $passed + 1`
25553 failed=`expr $failed + 1`
25557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
25558 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
25559 if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
25560 $as_echo_n "(cached) " >&6
25562 ac_check_lib_save_LIBS=$LIBS
25564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25565 /* end confdefs.h. */
25567 /* Override any GCC internal prototype to avoid an error.
25568 Use char because int might match the return type of a GCC
25569 builtin and then its argument prototype would still apply. */
25573 char BZ2_bzDecompress ();
25577 return BZ2_bzDecompress ();
25582 if ac_fn_c_try_link "$LINENO"; then :
25583 ac_cv_lib_bz2_BZ2_bzDecompress=yes
25585 ac_cv_lib_bz2_BZ2_bzDecompress=no
25587 rm -f core conftest.err conftest.$ac_objext \
25588 conftest$ac_exeext conftest.$ac_ext
25589 LIBS=$ac_check_lib_save_LIBS
25591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
25592 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
25593 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
25594 found_libbz=`expr $found_libbz + 1`
25597 if test "$native_win32_build" = 'yes'; then
25598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
25599 $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
25600 if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
25601 $as_echo_n "(cached) " >&6
25603 ac_check_lib_save_LIBS=$LIBS
25605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25606 /* end confdefs.h. */
25608 /* Override any GCC internal prototype to avoid an error.
25609 Use char because int might match the return type of a GCC
25610 builtin and then its argument prototype would still apply. */
25614 char _imp__BZ2_decompress ();
25618 return _imp__BZ2_decompress ();
25623 if ac_fn_c_try_link "$LINENO"; then :
25624 ac_cv_lib_bz2__imp__BZ2_decompress=yes
25626 ac_cv_lib_bz2__imp__BZ2_decompress=no
25628 rm -f core conftest.err conftest.$ac_objext \
25629 conftest$ac_exeext conftest.$ac_ext
25630 LIBS=$ac_check_lib_save_LIBS
25632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
25633 $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
25634 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
25635 found_libbz=`expr $found_libbz + 1`
25639 if test $found_libbz -gt 0; then
25640 passed=`expr $passed + 1`
25642 failed=`expr $failed + 1`
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
25645 $as_echo_n "checking if BZLIB package is complete... " >&6; }
25646 if test $passed -gt 0; then
25647 if test $failed -gt 0; then
25648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25649 $as_echo "no -- some components failed test" >&6; }
25650 have_bzlib='no (failed tests)'
25653 LIBS="$BZLIB_LIBS $LIBS"
25655 $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
25657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25658 $as_echo "yes" >&6; }
25662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25663 $as_echo "no" >&6; }
25666 if test "$have_bzlib" = 'yes'; then
25667 BZLIB_DELEGATE_TRUE=
25668 BZLIB_DELEGATE_FALSE='#'
25670 BZLIB_DELEGATE_TRUE='#'
25671 BZLIB_DELEGATE_FALSE=
25677 # Find the X11 include and library directories.
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25684 $as_echo_n "checking for X... " >&6; }
25687 # Check whether --with-x was given.
25688 if test "${with_x+set}" = set; then :
25692 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25693 if test "x$with_x" = xno; then
25694 # The user explicitly disabled X.
25697 case $x_includes,$x_libraries in #(
25698 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25699 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25700 $as_echo_n "(cached) " >&6
25702 # One or both of the vars are not set, and there is no cached value.
25703 ac_x_includes=no ac_x_libraries=no
25704 rm -f -r conftest.dir
25705 if mkdir conftest.dir; then
25707 cat >Imakefile <<'_ACEOF'
25709 @echo incroot='${INCROOT}'
25711 @echo usrlibdir='${USRLIBDIR}'
25713 @echo libdir='${LIBDIR}'
25715 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25716 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25717 for ac_var in incroot usrlibdir libdir; do
25718 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25720 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25721 for ac_extension in a so sl dylib la dll; do
25722 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25723 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25724 ac_im_usrlibdir=$ac_im_libdir; break
25727 # Screen out bogus values from the imake configuration. They are
25728 # bogus both because they are the default anyway, and because
25729 # using them would break gcc on systems where it needs fixed includes.
25730 case $ac_im_incroot in
25731 /usr/include) ac_x_includes= ;;
25732 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25734 case $ac_im_usrlibdir in
25735 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25736 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25740 rm -f -r conftest.dir
25743 # Standard set of common directories for X headers.
25744 # Check X11 before X11Rn because it is often a symlink to the current release.
25758 /usr/local/X11/include
25759 /usr/local/X11R7/include
25760 /usr/local/X11R6/include
25761 /usr/local/X11R5/include
25762 /usr/local/X11R4/include
25764 /usr/local/include/X11
25765 /usr/local/include/X11R7
25766 /usr/local/include/X11R6
25767 /usr/local/include/X11R5
25768 /usr/local/include/X11R4
25772 /usr/XFree86/include/X11
25776 /usr/unsupported/include
25777 /usr/athena/include
25778 /usr/local/x11r5/include
25779 /usr/lpp/Xamples/include
25781 /usr/openwin/include
25782 /usr/openwin/share/include'
25784 if test "$ac_x_includes" = no; then
25785 # Guess where to find include files, by looking for Xlib.h.
25786 # First, try using that file with no special directory specified.
25787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25788 /* end confdefs.h. */
25789 #include <X11/Xlib.h>
25791 if ac_fn_c_try_cpp "$LINENO"; then :
25792 # We can compile using X headers with no special include directory.
25795 for ac_dir in $ac_x_header_dirs; do
25796 if test -r "$ac_dir/X11/Xlib.h"; then
25797 ac_x_includes=$ac_dir
25802 rm -f conftest.err conftest.i conftest.$ac_ext
25803 fi # $ac_x_includes = no
25805 if test "$ac_x_libraries" = no; then
25806 # Check for the libraries.
25807 # See if we find them without any special options.
25808 # Don't add to $LIBS permanently.
25811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25812 /* end confdefs.h. */
25813 #include <X11/Xlib.h>
25822 if ac_fn_c_try_link "$LINENO"; then :
25824 # We can link X programs with no special library path.
25828 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25830 # Don't even attempt the hair of trying to link an X program!
25831 for ac_extension in a so sl dylib la dll; do
25832 if test -r "$ac_dir/libX11.$ac_extension"; then
25833 ac_x_libraries=$ac_dir
25839 rm -f core conftest.err conftest.$ac_objext \
25840 conftest$ac_exeext conftest.$ac_ext
25841 fi # $ac_x_libraries = no
25843 case $ac_x_includes,$ac_x_libraries in #(
25844 no,* | *,no | *\'*)
25845 # Didn't find X, or a directory has "'" in its name.
25846 ac_cv_have_x="have_x=no";; #(
25848 # Record where we found X for the cache.
25849 ac_cv_have_x="have_x=yes\
25850 ac_x_includes='$ac_x_includes'\
25851 ac_x_libraries='$ac_x_libraries'"
25857 eval "$ac_cv_have_x"
25860 if test "$have_x" != yes; then
25861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25862 $as_echo "$have_x" >&6; }
25865 # If each of the values was on the command line, it overrides each guess.
25866 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25867 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25868 # Update the cache value to reflect the command line values.
25869 ac_cv_have_x="have_x=yes\
25870 ac_x_includes='$x_includes'\
25871 ac_x_libraries='$x_libraries'"
25872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25873 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25876 if test "$no_x" = yes; then
25877 # Not all programs may use this symbol, but it does not hurt to define it.
25879 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25881 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25883 if test -n "$x_includes"; then
25884 X_CFLAGS="$X_CFLAGS -I$x_includes"
25887 # It would also be nice to do this for all -L options, not just this one.
25888 if test -n "$x_libraries"; then
25889 X_LIBS="$X_LIBS -L$x_libraries"
25890 # For Solaris; some versions of Sun CC require a space after -R and
25891 # others require no space. Words are not sufficient . . . .
25892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25893 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25894 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25895 ac_xsave_c_werror_flag=$ac_c_werror_flag
25896 ac_c_werror_flag=yes
25897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25898 /* end confdefs.h. */
25908 if ac_fn_c_try_link "$LINENO"; then :
25909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25910 $as_echo "no" >&6; }
25911 X_LIBS="$X_LIBS -R$x_libraries"
25913 LIBS="$ac_xsave_LIBS -R $x_libraries"
25914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25915 /* end confdefs.h. */
25925 if ac_fn_c_try_link "$LINENO"; then :
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25927 $as_echo "yes" >&6; }
25928 X_LIBS="$X_LIBS -R $x_libraries"
25930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25931 $as_echo "neither works" >&6; }
25933 rm -f core conftest.err conftest.$ac_objext \
25934 conftest$ac_exeext conftest.$ac_ext
25936 rm -f core conftest.err conftest.$ac_objext \
25937 conftest$ac_exeext conftest.$ac_ext
25938 ac_c_werror_flag=$ac_xsave_c_werror_flag
25939 LIBS=$ac_xsave_LIBS
25942 # Check for system-dependent libraries X programs must link with.
25943 # Do this before checking for the system-independent R6 libraries
25944 # (-lICE), since we may need -lsocket or whatever for X linking.
25946 if test "$ISC" = yes; then
25947 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25949 # Martyn Johnson says this is needed for Ultrix, if the X
25950 # libraries were built with DECnet support. And Karl Berry says
25951 # the Alpha needs dnet_stub (dnet does not exist).
25952 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25954 /* end confdefs.h. */
25956 /* Override any GCC internal prototype to avoid an error.
25957 Use char because int might match the return type of a GCC
25958 builtin and then its argument prototype would still apply. */
25962 char XOpenDisplay ();
25966 return XOpenDisplay ();
25971 if ac_fn_c_try_link "$LINENO"; then :
25974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25975 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25976 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25977 $as_echo_n "(cached) " >&6
25979 ac_check_lib_save_LIBS=$LIBS
25980 LIBS="-ldnet $LIBS"
25981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25982 /* end confdefs.h. */
25984 /* Override any GCC internal prototype to avoid an error.
25985 Use char because int might match the return type of a GCC
25986 builtin and then its argument prototype would still apply. */
25994 return dnet_ntoa ();
25999 if ac_fn_c_try_link "$LINENO"; then :
26000 ac_cv_lib_dnet_dnet_ntoa=yes
26002 ac_cv_lib_dnet_dnet_ntoa=no
26004 rm -f core conftest.err conftest.$ac_objext \
26005 conftest$ac_exeext conftest.$ac_ext
26006 LIBS=$ac_check_lib_save_LIBS
26008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
26009 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
26010 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
26011 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26014 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
26016 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
26017 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
26018 $as_echo_n "(cached) " >&6
26020 ac_check_lib_save_LIBS=$LIBS
26021 LIBS="-ldnet_stub $LIBS"
26022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26023 /* end confdefs.h. */
26025 /* Override any GCC internal prototype to avoid an error.
26026 Use char because int might match the return type of a GCC
26027 builtin and then its argument prototype would still apply. */
26035 return dnet_ntoa ();
26040 if ac_fn_c_try_link "$LINENO"; then :
26041 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26043 ac_cv_lib_dnet_stub_dnet_ntoa=no
26045 rm -f core conftest.err conftest.$ac_objext \
26046 conftest$ac_exeext conftest.$ac_ext
26047 LIBS=$ac_check_lib_save_LIBS
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
26050 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
26051 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
26052 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26057 rm -f core conftest.err conftest.$ac_objext \
26058 conftest$ac_exeext conftest.$ac_ext
26059 LIBS="$ac_xsave_LIBS"
26061 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26062 # to get the SysV transport functions.
26063 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26065 # The nsl library prevents programs from opening the X display
26066 # on Irix 5.2, according to T.E. Dickey.
26067 # The functions gethostbyname, getservbyname, and inet_addr are
26068 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
26069 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
26070 if test "x$ac_cv_func_gethostbyname" = xyes; then :
26074 if test $ac_cv_func_gethostbyname = no; then
26075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
26076 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
26077 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
26078 $as_echo_n "(cached) " >&6
26080 ac_check_lib_save_LIBS=$LIBS
26082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26083 /* end confdefs.h. */
26085 /* Override any GCC internal prototype to avoid an error.
26086 Use char because int might match the return type of a GCC
26087 builtin and then its argument prototype would still apply. */
26091 char gethostbyname ();
26095 return gethostbyname ();
26100 if ac_fn_c_try_link "$LINENO"; then :
26101 ac_cv_lib_nsl_gethostbyname=yes
26103 ac_cv_lib_nsl_gethostbyname=no
26105 rm -f core conftest.err conftest.$ac_objext \
26106 conftest$ac_exeext conftest.$ac_ext
26107 LIBS=$ac_check_lib_save_LIBS
26109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
26110 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
26111 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
26112 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
26115 if test $ac_cv_lib_nsl_gethostbyname = no; then
26116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
26117 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
26118 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
26119 $as_echo_n "(cached) " >&6
26121 ac_check_lib_save_LIBS=$LIBS
26123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26124 /* end confdefs.h. */
26126 /* Override any GCC internal prototype to avoid an error.
26127 Use char because int might match the return type of a GCC
26128 builtin and then its argument prototype would still apply. */
26132 char gethostbyname ();
26136 return gethostbyname ();
26141 if ac_fn_c_try_link "$LINENO"; then :
26142 ac_cv_lib_bsd_gethostbyname=yes
26144 ac_cv_lib_bsd_gethostbyname=no
26146 rm -f core conftest.err conftest.$ac_objext \
26147 conftest$ac_exeext conftest.$ac_ext
26148 LIBS=$ac_check_lib_save_LIBS
26150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
26151 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
26152 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
26153 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
26159 # lieder@skyler.mavd.honeywell.com says without -lsocket,
26160 # socket/setsockopt and other routines are undefined under SCO ODT
26161 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
26162 # on later versions), says Simon Leinen: it contains gethostby*
26163 # variants that don't use the name server (or something). -lsocket
26164 # must be given before -lnsl if both are needed. We assume that
26165 # if connect needs -lnsl, so does gethostbyname.
26166 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
26167 if test "x$ac_cv_func_connect" = xyes; then :
26171 if test $ac_cv_func_connect = no; then
26172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
26173 $as_echo_n "checking for connect in -lsocket... " >&6; }
26174 if ${ac_cv_lib_socket_connect+:} false; then :
26175 $as_echo_n "(cached) " >&6
26177 ac_check_lib_save_LIBS=$LIBS
26178 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
26179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26180 /* end confdefs.h. */
26182 /* Override any GCC internal prototype to avoid an error.
26183 Use char because int might match the return type of a GCC
26184 builtin and then its argument prototype would still apply. */
26197 if ac_fn_c_try_link "$LINENO"; then :
26198 ac_cv_lib_socket_connect=yes
26200 ac_cv_lib_socket_connect=no
26202 rm -f core conftest.err conftest.$ac_objext \
26203 conftest$ac_exeext conftest.$ac_ext
26204 LIBS=$ac_check_lib_save_LIBS
26206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
26207 $as_echo "$ac_cv_lib_socket_connect" >&6; }
26208 if test "x$ac_cv_lib_socket_connect" = xyes; then :
26209 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
26214 # Guillermo Gomez says -lposix is necessary on A/UX.
26215 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
26216 if test "x$ac_cv_func_remove" = xyes; then :
26220 if test $ac_cv_func_remove = no; then
26221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
26222 $as_echo_n "checking for remove in -lposix... " >&6; }
26223 if ${ac_cv_lib_posix_remove+:} false; then :
26224 $as_echo_n "(cached) " >&6
26226 ac_check_lib_save_LIBS=$LIBS
26227 LIBS="-lposix $LIBS"
26228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26229 /* end confdefs.h. */
26231 /* Override any GCC internal prototype to avoid an error.
26232 Use char because int might match the return type of a GCC
26233 builtin and then its argument prototype would still apply. */
26246 if ac_fn_c_try_link "$LINENO"; then :
26247 ac_cv_lib_posix_remove=yes
26249 ac_cv_lib_posix_remove=no
26251 rm -f core conftest.err conftest.$ac_objext \
26252 conftest$ac_exeext conftest.$ac_ext
26253 LIBS=$ac_check_lib_save_LIBS
26255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
26256 $as_echo "$ac_cv_lib_posix_remove" >&6; }
26257 if test "x$ac_cv_lib_posix_remove" = xyes; then :
26258 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
26263 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
26264 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
26265 if test "x$ac_cv_func_shmat" = xyes; then :
26269 if test $ac_cv_func_shmat = no; then
26270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
26271 $as_echo_n "checking for shmat in -lipc... " >&6; }
26272 if ${ac_cv_lib_ipc_shmat+:} false; then :
26273 $as_echo_n "(cached) " >&6
26275 ac_check_lib_save_LIBS=$LIBS
26277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26278 /* end confdefs.h. */
26280 /* Override any GCC internal prototype to avoid an error.
26281 Use char because int might match the return type of a GCC
26282 builtin and then its argument prototype would still apply. */
26295 if ac_fn_c_try_link "$LINENO"; then :
26296 ac_cv_lib_ipc_shmat=yes
26298 ac_cv_lib_ipc_shmat=no
26300 rm -f core conftest.err conftest.$ac_objext \
26301 conftest$ac_exeext conftest.$ac_ext
26302 LIBS=$ac_check_lib_save_LIBS
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
26305 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
26306 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
26307 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
26313 # Check for libraries that X11R6 Xt/Xaw programs need.
26314 ac_save_LDFLAGS=$LDFLAGS
26315 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
26316 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
26317 # check for ICE first), but we must link in the order -lSM -lICE or
26318 # we get undefined symbols. So assume we have SM if we have ICE.
26319 # These have to be linked with before -lX11, unlike the other
26320 # libraries we check for below, so use a different variable.
26321 # John Interrante, Karl Berry
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
26323 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
26324 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
26325 $as_echo_n "(cached) " >&6
26327 ac_check_lib_save_LIBS=$LIBS
26328 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
26329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26330 /* end confdefs.h. */
26332 /* Override any GCC internal prototype to avoid an error.
26333 Use char because int might match the return type of a GCC
26334 builtin and then its argument prototype would still apply. */
26338 char IceConnectionNumber ();
26342 return IceConnectionNumber ();
26347 if ac_fn_c_try_link "$LINENO"; then :
26348 ac_cv_lib_ICE_IceConnectionNumber=yes
26350 ac_cv_lib_ICE_IceConnectionNumber=no
26352 rm -f core conftest.err conftest.$ac_objext \
26353 conftest$ac_exeext conftest.$ac_ext
26354 LIBS=$ac_check_lib_save_LIBS
26356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
26357 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
26358 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
26359 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
26362 LDFLAGS=$ac_save_LDFLAGS
26366 if test "$no_x" != 'yes'; then
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26368 $as_echo "-------------------------------------------------------------" >&6; }
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
26370 $as_echo_n "checking for X11... " >&6; }
26371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26373 LDFLAGS="$LDFLAGS $X_LIBS"
26374 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
26375 LIBS="$X11_LIBS $LIBS"
26376 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
26379 $as_echo "#define X11_DELEGATE 1" >>confdefs.h
26382 # Check for X11 shared memory extension
26384 # shmctl is required to support the shared memory extension
26385 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
26386 if test "x$ac_cv_func_shmctl" = xyes; then :
26390 if test "$have_shmctl" != 'yes'; then
26392 LIBS="$LIBS -lcygipc"
26393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26394 /* end confdefs.h. */
26396 /* Override any GCC internal prototype to avoid an error.
26397 Use char because int might match the return type of a GCC
26398 builtin and then its argument prototype would still apply. */
26411 if ac_fn_c_try_link "$LINENO"; then :
26412 have_shmctl='yes'; IPC_LIBS='-lcygipc'
26414 rm -f core conftest.err conftest.$ac_objext \
26415 conftest$ac_exeext conftest.$ac_ext
26419 if test "$have_shmctl" = 'yes'; then
26420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
26421 $as_echo_n "checking for XShmAttach in -lXext... " >&6; }
26422 if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
26423 $as_echo_n "(cached) " >&6
26425 ac_check_lib_save_LIBS=$LIBS
26426 LIBS="-lXext $LIBS"
26427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26428 /* end confdefs.h. */
26430 /* Override any GCC internal prototype to avoid an error.
26431 Use char because int might match the return type of a GCC
26432 builtin and then its argument prototype would still apply. */
26436 char XShmAttach ();
26440 return XShmAttach ();
26445 if ac_fn_c_try_link "$LINENO"; then :
26446 ac_cv_lib_Xext_XShmAttach=yes
26448 ac_cv_lib_Xext_XShmAttach=no
26450 rm -f core conftest.err conftest.$ac_objext \
26451 conftest$ac_exeext conftest.$ac_ext
26452 LIBS=$ac_check_lib_save_LIBS
26454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
26455 $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
26456 if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
26457 XEXT_LIBS='-lXext' ;
26458 $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
26465 # Check for X11 shape extension
26467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
26468 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
26469 if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
26470 $as_echo_n "(cached) " >&6
26472 ac_check_lib_save_LIBS=$LIBS
26473 LIBS="-lXext $LIBS"
26474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26475 /* end confdefs.h. */
26477 /* Override any GCC internal prototype to avoid an error.
26478 Use char because int might match the return type of a GCC
26479 builtin and then its argument prototype would still apply. */
26483 char XShapeCombineMask ();
26487 return XShapeCombineMask ();
26492 if ac_fn_c_try_link "$LINENO"; then :
26493 ac_cv_lib_Xext_XShapeCombineMask=yes
26495 ac_cv_lib_Xext_XShapeCombineMask=no
26497 rm -f core conftest.err conftest.$ac_objext \
26498 conftest$ac_exeext conftest.$ac_ext
26499 LIBS=$ac_check_lib_save_LIBS
26501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
26502 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
26503 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
26504 XEXT_LIBS='-lXext' ;
26505 $as_echo "#define HAVE_SHAPE 1" >>confdefs.h
26509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
26510 $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
26511 if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
26512 $as_echo_n "(cached) " >&6
26514 ac_check_lib_save_LIBS=$LIBS
26516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26517 /* end confdefs.h. */
26519 /* Override any GCC internal prototype to avoid an error.
26520 Use char because int might match the return type of a GCC
26521 builtin and then its argument prototype would still apply. */
26525 char XtSetEventDispatcher ();
26529 return XtSetEventDispatcher ();
26534 if ac_fn_c_try_link "$LINENO"; then :
26535 ac_cv_lib_Xt_XtSetEventDispatcher=yes
26537 ac_cv_lib_Xt_XtSetEventDispatcher=no
26539 rm -f core conftest.err conftest.$ac_objext \
26540 conftest$ac_exeext conftest.$ac_ext
26541 LIBS=$ac_check_lib_save_LIBS
26543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
26544 $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
26545 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
26549 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
26551 if test "$no_x" != 'yes'; then
26556 if test "$have_x" = 'yes'; then
26558 X11_DELEGATE_FALSE='#'
26560 X11_DELEGATE_TRUE='#'
26561 X11_DELEGATE_FALSE=
26572 # Check whether --with-zlib was given.
26573 if test "${with_zlib+set}" = set; then :
26574 withval=$with_zlib; with_zlib=$withval
26580 if test "$with_zlib" != 'yes'; then
26581 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
26586 if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
26587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26588 $as_echo "-------------------------------------------------------------" >&6; }
26589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
26590 $as_echo_n "checking for ZLIB... " >&6; }
26591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26596 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
26597 if test "x$ac_cv_header_zconf_h" = xyes; then :
26598 passed=`expr $passed + 1`
26600 failed=`expr $failed + 1`
26604 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
26605 if test "x$ac_cv_header_zlib_h" = xyes; then :
26606 passed=`expr $passed + 1`
26608 failed=`expr $failed + 1`
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
26613 $as_echo_n "checking for compress in -lz... " >&6; }
26614 if ${ac_cv_lib_z_compress+:} false; then :
26615 $as_echo_n "(cached) " >&6
26617 ac_check_lib_save_LIBS=$LIBS
26619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26620 /* end confdefs.h. */
26622 /* Override any GCC internal prototype to avoid an error.
26623 Use char because int might match the return type of a GCC
26624 builtin and then its argument prototype would still apply. */
26632 return compress ();
26637 if ac_fn_c_try_link "$LINENO"; then :
26638 ac_cv_lib_z_compress=yes
26640 ac_cv_lib_z_compress=no
26642 rm -f core conftest.err conftest.$ac_objext \
26643 conftest$ac_exeext conftest.$ac_ext
26644 LIBS=$ac_check_lib_save_LIBS
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
26647 $as_echo "$ac_cv_lib_z_compress" >&6; }
26648 if test "x$ac_cv_lib_z_compress" = xyes; then :
26649 passed=`expr $passed + 1`
26651 failed=`expr $failed + 1`
26654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
26655 $as_echo_n "checking for uncompress in -lz... " >&6; }
26656 if ${ac_cv_lib_z_uncompress+:} false; then :
26657 $as_echo_n "(cached) " >&6
26659 ac_check_lib_save_LIBS=$LIBS
26661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26662 /* end confdefs.h. */
26664 /* Override any GCC internal prototype to avoid an error.
26665 Use char because int might match the return type of a GCC
26666 builtin and then its argument prototype would still apply. */
26670 char uncompress ();
26674 return uncompress ();
26679 if ac_fn_c_try_link "$LINENO"; then :
26680 ac_cv_lib_z_uncompress=yes
26682 ac_cv_lib_z_uncompress=no
26684 rm -f core conftest.err conftest.$ac_objext \
26685 conftest$ac_exeext conftest.$ac_ext
26686 LIBS=$ac_check_lib_save_LIBS
26688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
26689 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
26690 if test "x$ac_cv_lib_z_uncompress" = xyes; then :
26691 passed=`expr $passed + 1`
26693 failed=`expr $failed + 1`
26696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
26697 $as_echo_n "checking for deflate in -lz... " >&6; }
26698 if ${ac_cv_lib_z_deflate+:} false; then :
26699 $as_echo_n "(cached) " >&6
26701 ac_check_lib_save_LIBS=$LIBS
26703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26704 /* end confdefs.h. */
26706 /* Override any GCC internal prototype to avoid an error.
26707 Use char because int might match the return type of a GCC
26708 builtin and then its argument prototype would still apply. */
26721 if ac_fn_c_try_link "$LINENO"; then :
26722 ac_cv_lib_z_deflate=yes
26724 ac_cv_lib_z_deflate=no
26726 rm -f core conftest.err conftest.$ac_objext \
26727 conftest$ac_exeext conftest.$ac_ext
26728 LIBS=$ac_check_lib_save_LIBS
26730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
26731 $as_echo "$ac_cv_lib_z_deflate" >&6; }
26732 if test "x$ac_cv_lib_z_deflate" = xyes; then :
26733 passed=`expr $passed + 1`
26735 failed=`expr $failed + 1`
26738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
26739 $as_echo_n "checking for inflate in -lz... " >&6; }
26740 if ${ac_cv_lib_z_inflate+:} false; then :
26741 $as_echo_n "(cached) " >&6
26743 ac_check_lib_save_LIBS=$LIBS
26745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26746 /* end confdefs.h. */
26748 /* Override any GCC internal prototype to avoid an error.
26749 Use char because int might match the return type of a GCC
26750 builtin and then its argument prototype would still apply. */
26763 if ac_fn_c_try_link "$LINENO"; then :
26764 ac_cv_lib_z_inflate=yes
26766 ac_cv_lib_z_inflate=no
26768 rm -f core conftest.err conftest.$ac_objext \
26769 conftest$ac_exeext conftest.$ac_ext
26770 LIBS=$ac_check_lib_save_LIBS
26772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
26773 $as_echo "$ac_cv_lib_z_inflate" >&6; }
26774 if test "x$ac_cv_lib_z_inflate" = xyes; then :
26775 passed=`expr $passed + 1`
26777 failed=`expr $failed + 1`
26780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
26781 $as_echo_n "checking for gzseek in -lz... " >&6; }
26782 if ${ac_cv_lib_z_gzseek+:} false; then :
26783 $as_echo_n "(cached) " >&6
26785 ac_check_lib_save_LIBS=$LIBS
26787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26788 /* end confdefs.h. */
26790 /* Override any GCC internal prototype to avoid an error.
26791 Use char because int might match the return type of a GCC
26792 builtin and then its argument prototype would still apply. */
26805 if ac_fn_c_try_link "$LINENO"; then :
26806 ac_cv_lib_z_gzseek=yes
26808 ac_cv_lib_z_gzseek=no
26810 rm -f core conftest.err conftest.$ac_objext \
26811 conftest$ac_exeext conftest.$ac_ext
26812 LIBS=$ac_check_lib_save_LIBS
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
26815 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
26816 if test "x$ac_cv_lib_z_gzseek" = xyes; then :
26817 passed=`expr $passed + 1`
26819 failed=`expr $failed + 1`
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
26823 $as_echo_n "checking for gztell in -lz... " >&6; }
26824 if ${ac_cv_lib_z_gztell+:} false; then :
26825 $as_echo_n "(cached) " >&6
26827 ac_check_lib_save_LIBS=$LIBS
26829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26830 /* end confdefs.h. */
26832 /* Override any GCC internal prototype to avoid an error.
26833 Use char because int might match the return type of a GCC
26834 builtin and then its argument prototype would still apply. */
26847 if ac_fn_c_try_link "$LINENO"; then :
26848 ac_cv_lib_z_gztell=yes
26850 ac_cv_lib_z_gztell=no
26852 rm -f core conftest.err conftest.$ac_objext \
26853 conftest$ac_exeext conftest.$ac_ext
26854 LIBS=$ac_check_lib_save_LIBS
26856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
26857 $as_echo "$ac_cv_lib_z_gztell" >&6; }
26858 if test "x$ac_cv_lib_z_gztell" = xyes; then :
26859 passed=`expr $passed + 1`
26861 failed=`expr $failed + 1`
26864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
26865 $as_echo_n "checking if ZLIB package is complete... " >&6; }
26866 if test $passed -gt 0; then
26867 if test $failed -gt 0; then
26868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26869 $as_echo "no -- some components failed test" >&6; }
26870 have_zlib='no (failed tests)'
26873 LIBS="$ZLIB_LIBS $LIBS"
26875 $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
26877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26878 $as_echo "yes" >&6; }
26882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26883 $as_echo "no" >&6; }
26886 if test "$have_zlib" = 'yes'; then
26887 ZLIB_DELEGATE_TRUE=
26888 ZLIB_DELEGATE_FALSE='#'
26890 ZLIB_DELEGATE_TRUE='#'
26891 ZLIB_DELEGATE_FALSE=
26897 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26900 if test "$enable_profiling" = 'yes'; then
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
26902 $as_echo_n "checking for dlopen in -ldl... " >&6; }
26903 if ${ac_cv_lib_dl_dlopen+:} false; then :
26904 $as_echo_n "(cached) " >&6
26906 ac_check_lib_save_LIBS=$LIBS
26908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26909 /* end confdefs.h. */
26911 /* Override any GCC internal prototype to avoid an error.
26912 Use char because int might match the return type of a GCC
26913 builtin and then its argument prototype would still apply. */
26926 if ac_fn_c_try_link "$LINENO"; then :
26927 ac_cv_lib_dl_dlopen=yes
26929 ac_cv_lib_dl_dlopen=no
26931 rm -f core conftest.err conftest.$ac_objext \
26932 conftest$ac_exeext conftest.$ac_ext
26933 LIBS=$ac_check_lib_save_LIBS
26935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
26936 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
26937 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
26941 LIBS="$LIB_DL $LIBS"
26947 # Check for Autotrace delegate library.
26950 # Check whether --with-autotrace was given.
26951 if test "${with_autotrace+set}" = set; then :
26952 withval=$with_autotrace; with_autotrace=$withval
26954 with_autotrace='no'
26958 if test "$with_autotrace" != 'yes'; then
26959 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26962 have_autotrace='no'
26963 AUTOTRACE_CFLAGS=""
26966 if test "x$with_autotrace" = "xyes"; then
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26968 $as_echo "-------------------------------------------------------------" >&6; }
26971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
26972 $as_echo_n "checking for AUTOTRACE... " >&6; }
26974 if test -n "$AUTOTRACE_CFLAGS"; then
26975 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26976 elif test -n "$PKG_CONFIG"; then
26977 if test -n "$PKG_CONFIG" && \
26978 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26979 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26982 test $ac_status = 0; }; then
26983 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26990 if test -n "$AUTOTRACE_LIBS"; then
26991 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26992 elif test -n "$PKG_CONFIG"; then
26993 if test -n "$PKG_CONFIG" && \
26994 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26995 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26998 test $ac_status = 0; }; then
26999 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27009 if test $pkg_failed = yes; then
27011 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27012 _pkg_short_errors_supported=yes
27014 _pkg_short_errors_supported=no
27016 if test $_pkg_short_errors_supported = yes; then
27017 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
27019 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
27021 # Put the nasty error message in config.log where it belongs
27022 echo "$AUTOTRACE_PKG_ERRORS" >&5
27024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27025 $as_echo "no" >&6; }
27027 elif test $pkg_failed = untried; then
27030 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
27031 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
27032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27033 $as_echo "yes" >&6; }
27036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27040 if test "$have_autotrace" = 'yes'; then
27043 $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
27045 if test "$with_modules" = 'no'; then
27046 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
27050 if test "$have_autotrace" = 'yes'; then
27051 AUTOTRACE_DELEGATE_TRUE=
27052 AUTOTRACE_DELEGATE_FALSE='#'
27054 AUTOTRACE_DELEGATE_TRUE='#'
27055 AUTOTRACE_DELEGATE_FALSE=
27063 # Check for Display Postscript delegate library.
27066 # Check whether --with-dps was given.
27067 if test "${with_dps+set}" = set; then :
27068 withval=$with_dps; with_dps=$withval
27074 if test "$with_dps" != 'yes'; then
27075 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
27080 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
27081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27082 $as_echo "-------------------------------------------------------------" >&6; }
27083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
27084 $as_echo_n "checking for DPS... " >&6; }
27085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27089 PERSIST_CPPFLAGS="$CPPFLAGS"
27090 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
27091 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
27092 if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
27093 passed=`expr $passed + 1`
27095 failed=`expr $failed + 1`
27100 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
27101 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
27102 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
27103 # ImageMagick itself doesn't use -lXt.
27106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
27107 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
27108 if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
27109 $as_echo_n "(cached) " >&6
27111 ac_check_lib_save_LIBS=$LIBS
27113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27114 /* end confdefs.h. */
27116 /* Override any GCC internal prototype to avoid an error.
27117 Use char because int might match the return type of a GCC
27118 builtin and then its argument prototype would still apply. */
27122 char DPSInitialize ();
27126 return DPSInitialize ();
27131 if ac_fn_c_try_link "$LINENO"; then :
27132 ac_cv_lib_dps_DPSInitialize=yes
27134 ac_cv_lib_dps_DPSInitialize=no
27136 rm -f core conftest.err conftest.$ac_objext \
27137 conftest$ac_exeext conftest.$ac_ext
27138 LIBS=$ac_check_lib_save_LIBS
27140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
27141 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
27142 if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
27148 if test "$have_libdps" != 'yes'; then
27149 # Unset cache variable so we can try again.
27150 unset ac_cv_lib_dps_DPSInitialize
27151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
27152 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
27153 if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
27154 $as_echo_n "(cached) " >&6
27156 ac_check_lib_save_LIBS=$LIBS
27157 LIBS="-ldps -lXt $LIBS"
27158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27159 /* end confdefs.h. */
27161 /* Override any GCC internal prototype to avoid an error.
27162 Use char because int might match the return type of a GCC
27163 builtin and then its argument prototype would still apply. */
27167 char DPSInitialize ();
27171 return DPSInitialize ();
27176 if ac_fn_c_try_link "$LINENO"; then :
27177 ac_cv_lib_dps_DPSInitialize=yes
27179 ac_cv_lib_dps_DPSInitialize=no
27181 rm -f core conftest.err conftest.$ac_objext \
27182 conftest$ac_exeext conftest.$ac_ext
27183 LIBS=$ac_check_lib_save_LIBS
27185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
27186 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
27187 if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
27193 if test "$have_libdps" = 'yes'; then
27197 if test "$have_libdps" = 'yes'; then
27198 passed=`expr $passed + 1`
27200 failed=`expr $failed + 1`
27202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
27203 $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
27204 if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
27205 $as_echo_n "(cached) " >&6
27207 ac_check_lib_save_LIBS=$LIBS
27208 LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
27209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27210 /* end confdefs.h. */
27212 /* Override any GCC internal prototype to avoid an error.
27213 Use char because int might match the return type of a GCC
27214 builtin and then its argument prototype would still apply. */
27218 char XDPSPixelsPerPoint ();
27222 return XDPSPixelsPerPoint ();
27227 if ac_fn_c_try_link "$LINENO"; then :
27228 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
27230 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
27232 rm -f core conftest.err conftest.$ac_objext \
27233 conftest$ac_exeext conftest.$ac_ext
27234 LIBS=$ac_check_lib_save_LIBS
27236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
27237 $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
27238 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
27239 passed=`expr $passed + 1`
27241 failed=`expr $failed + 1`
27244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
27245 $as_echo_n "checking if DPS package is complete... " >&6; }
27246 if test $passed -gt 0; then
27247 if test $failed -gt 0; then
27248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27249 $as_echo "no -- some components failed test" >&6; }
27250 have_dps='no (failed tests)'
27251 CPPFLAGS="$PERSIST_CPPFLAGS"
27253 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
27254 LIBS="$DPS_LIBS $LIBS"
27256 $as_echo "#define DPS_DELEGATE 1" >>confdefs.h
27258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27259 $as_echo "yes" >&6; }
27263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27264 $as_echo "no" >&6; }
27265 CPPFLAGS=$PERSIST_CPPFLAGS
27268 if test "$have_dps" = 'yes'; then
27270 DPS_DELEGATE_FALSE='#'
27272 DPS_DELEGATE_TRUE='#'
27273 DPS_DELEGATE_FALSE=
27280 # Check for DJVU delegate library.
27283 # Check whether --with-djvu was given.
27284 if test "${with_djvu+set}" = set; then :
27285 withval=$with_djvu; with_djvu=$withval
27291 if test "$with_djvu" != 'yes'; then
27292 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
27297 if test "$with_djvu" != 'no'; then
27298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27299 $as_echo "-------------------------------------------------------------" >&6; }
27300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
27301 $as_echo_n "checking for DJVU... " >&6; }
27302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27306 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
27307 if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
27308 passed=`expr $passed + 1`
27310 failed=`expr $failed + 1`
27314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
27315 $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
27316 if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
27317 $as_echo_n "(cached) " >&6
27319 ac_check_lib_save_LIBS=$LIBS
27320 LIBS="-ldjvulibre $LIBS"
27321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27322 /* end confdefs.h. */
27324 /* Override any GCC internal prototype to avoid an error.
27325 Use char because int might match the return type of a GCC
27326 builtin and then its argument prototype would still apply. */
27330 char ddjvu_context_create ();
27334 return ddjvu_context_create ();
27339 if ac_fn_c_try_link "$LINENO"; then :
27340 ac_cv_lib_djvulibre_ddjvu_context_create=yes
27342 ac_cv_lib_djvulibre_ddjvu_context_create=no
27344 rm -f core conftest.err conftest.$ac_objext \
27345 conftest$ac_exeext conftest.$ac_ext
27346 LIBS=$ac_check_lib_save_LIBS
27348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
27349 $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
27350 if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
27351 passed=`expr $passed + 1`
27353 failed=`expr $failed + 1`
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
27357 $as_echo_n "checking if DJVU package is complete... " >&6; }
27358 if test $passed -gt 0; then
27359 if test $failed -gt 0; then
27360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27361 $as_echo "no -- some components failed test" >&6; }
27362 have_djvu='no (failed tests)'
27364 DJVU_LIBS='-ldjvulibre'
27365 LIBS="$DJVU_LIBS $LIBS"
27367 $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
27369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27370 $as_echo "yes" >&6; }
27374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27375 $as_echo "no" >&6; }
27378 if test "$have_djvu" = 'yes'; then
27379 DJVU_DELEGATE_TRUE=
27380 DJVU_DELEGATE_FALSE='#'
27382 DJVU_DELEGATE_TRUE='#'
27383 DJVU_DELEGATE_FALSE=
27390 # Set DejaVu font directory.
27393 # Check whether --with-dejavu-font-dir was given.
27394 if test "${with_dejavu_font_dir+set}" = set; then :
27395 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
27397 with_dejavu_font_dir='default'
27401 if test "$with_dejavu_font_dir" != 'default'; then
27402 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
27407 # Check for FFTW delegate library.
27410 # Check whether --with-fftw was given.
27411 if test "${with_fftw+set}" = set; then :
27412 withval=$with_fftw; with_fftw=$withval
27418 if test "$with_fftw" != 'yes'; then
27419 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
27424 if test "$with_fftw" != 'no'; then
27425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27426 $as_echo "-------------------------------------------------------------" >&6; }
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
27428 $as_echo_n "checking for FFTW... " >&6; }
27429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27433 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
27434 if test "x$ac_cv_header_fftw3_h" = xyes; then :
27435 passed=`expr $passed + 1`
27437 failed=`expr $failed + 1`
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
27442 $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
27443 if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
27444 $as_echo_n "(cached) " >&6
27446 ac_check_lib_save_LIBS=$LIBS
27447 LIBS="-lfftw3 $LIBS"
27448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27449 /* end confdefs.h. */
27451 /* Override any GCC internal prototype to avoid an error.
27452 Use char because int might match the return type of a GCC
27453 builtin and then its argument prototype would still apply. */
27457 char fftw_execute ();
27461 return fftw_execute ();
27466 if ac_fn_c_try_link "$LINENO"; then :
27467 ac_cv_lib_fftw3_fftw_execute=yes
27469 ac_cv_lib_fftw3_fftw_execute=no
27471 rm -f core conftest.err conftest.$ac_objext \
27472 conftest$ac_exeext conftest.$ac_ext
27473 LIBS=$ac_check_lib_save_LIBS
27475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
27476 $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
27477 if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
27478 passed=`expr $passed + 1`
27480 failed=`expr $failed + 1`
27483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
27484 $as_echo_n "checking if FFTW package is complete... " >&6; }
27485 if test $passed -gt 0; then
27486 if test $failed -gt 0; then
27487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27488 $as_echo "no -- some components failed test" >&6; }
27489 have_fftw='no (failed tests)'
27491 FFTW_LIBS='-lfftw3'
27492 LIBS="$FFTW_LIBS $LIBS"
27494 $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
27496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27497 $as_echo "yes" >&6; }
27501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27502 $as_echo "no" >&6; }
27505 if test "$have_fftw" = 'yes'; then
27506 FFTW_DELEGATE_TRUE=
27507 FFTW_DELEGATE_FALSE='#'
27509 FFTW_DELEGATE_TRUE='#'
27510 FFTW_DELEGATE_FALSE=
27517 # Check for FlashPIX delegate library.
27520 # Check whether --with-fpx was given.
27521 if test "${with_fpx+set}" = set; then :
27522 withval=$with_fpx; with_fpx=$withval
27528 if test "$with_fpx" != 'yes'; then
27529 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
27534 if test "$with_fpx" != 'no'; then
27535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27536 $as_echo "-------------------------------------------------------------" >&6; }
27537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
27538 $as_echo_n "checking for FlashPIX... " >&6; }
27539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27544 ac_cpp='$CXXCPP $CPPFLAGS'
27545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27550 ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
27551 if test "x$ac_cv_header_fpxlib_h" = xyes; then :
27552 passed=`expr $passed + 1`
27554 failed=`expr $failed + 1`
27558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
27559 $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
27560 if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
27561 $as_echo_n "(cached) " >&6
27563 ac_check_lib_save_LIBS=$LIBS
27565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27566 /* end confdefs.h. */
27568 /* Override any GCC internal prototype to avoid an error.
27569 Use char because int might match the return type of a GCC
27570 builtin and then its argument prototype would still apply. */
27574 char FPX_OpenImageByFilename ();
27578 return FPX_OpenImageByFilename ();
27583 if ac_fn_cxx_try_link "$LINENO"; then :
27584 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
27586 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
27588 rm -f core conftest.err conftest.$ac_objext \
27589 conftest$ac_exeext conftest.$ac_ext
27590 LIBS=$ac_check_lib_save_LIBS
27592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
27593 $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
27594 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
27595 passed=`expr $passed + 1`
27597 failed=`expr $failed + 1`
27601 ac_cpp='$CPP $CPPFLAGS'
27602 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27603 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27604 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
27607 $as_echo_n "checking if FlashPIX package is complete... " >&6; }
27608 if test $passed -gt 0; then
27609 if test $failed -gt 0; then
27610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27611 $as_echo "no -- some components failed test" >&6; }
27612 have_fpx='no (failed tests)'
27616 $as_echo "#define FPX_DELEGATE 1" >>confdefs.h
27618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27619 $as_echo "yes" >&6; }
27624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27625 $as_echo "no" >&6; }
27628 if test "$have_fpx" = 'yes'; then
27630 FPX_DELEGATE_FALSE='#'
27632 FPX_DELEGATE_TRUE='#'
27633 FPX_DELEGATE_FALSE=
27640 # Check for fontconfig delegate library.
27643 # Check whether --with-fontconfig was given.
27644 if test "${with_fontconfig+set}" = set; then :
27645 withval=$with_fontconfig; with_fontconfig=$withval
27647 with_fontconfig=$have_x
27651 if test "$with_fontconfig" != 'yes'; then
27652 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
27655 have_fontconfig='no'
27656 FONTCONFIG_CFLAGS=""
27659 if test "x$with_fontconfig" = "xyes"; then
27660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27661 $as_echo "-------------------------------------------------------------" >&6; }
27664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
27665 $as_echo_n "checking for FONTCONFIG... " >&6; }
27667 if test -n "$FONTCONFIG_CFLAGS"; then
27668 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
27669 elif test -n "$PKG_CONFIG"; then
27670 if test -n "$PKG_CONFIG" && \
27671 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27672 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27675 test $ac_status = 0; }; then
27676 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
27683 if test -n "$FONTCONFIG_LIBS"; then
27684 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
27685 elif test -n "$PKG_CONFIG"; then
27686 if test -n "$PKG_CONFIG" && \
27687 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27688 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27691 test $ac_status = 0; }; then
27692 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
27702 if test $pkg_failed = yes; then
27704 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27705 _pkg_short_errors_supported=yes
27707 _pkg_short_errors_supported=no
27709 if test $_pkg_short_errors_supported = yes; then
27710 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
27712 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
27714 # Put the nasty error message in config.log where it belongs
27715 echo "$FONTCONFIG_PKG_ERRORS" >&5
27717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27718 $as_echo "no" >&6; }
27720 elif test $pkg_failed = untried; then
27723 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
27724 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
27725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27726 $as_echo "yes" >&6; }
27727 have_fontconfig=yes
27729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27733 if test "$have_fontconfig" = 'yes'; then
27735 $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
27737 if test "$with_modules" = 'no'; then
27738 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
27742 if test "$have_fontconfig" = 'yes'; then
27743 FONTCONFIG_DELEGATE_TRUE=
27744 FONTCONFIG_DELEGATE_FALSE='#'
27746 FONTCONFIG_DELEGATE_TRUE='#'
27747 FONTCONFIG_DELEGATE_FALSE=
27755 # Check for freetype delegate library.
27758 # Check whether --with-freetype was given.
27759 if test "${with_freetype+set}" = set; then :
27760 withval=$with_freetype; with_freetype=$withval
27762 with_freetype='yes'
27767 if test "$with_freetype" != 'yes'; then
27768 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
27773 if test "$with_freetype" != 'no'; then
27774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27775 $as_echo "-------------------------------------------------------------" >&6; }
27776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
27777 $as_echo_n "checking for FreeType 2.0... " >&6; }
27778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27782 PERSIST_LIBS="$LIBS"
27783 PERSIST_CPPFLAGS="$CPPFLAGS"
27784 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
27788 for ac_prog in freetype-config
27790 # Extract the first word of "$ac_prog", so it can be a program name with args.
27791 set dummy $ac_prog; ac_word=$2
27792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27793 $as_echo_n "checking for $ac_word... " >&6; }
27794 if ${ac_cv_prog_freetype_config+:} false; then :
27795 $as_echo_n "(cached) " >&6
27797 if test -n "$freetype_config"; then
27798 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
27800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27801 for as_dir in $PATH
27804 test -z "$as_dir" && as_dir=.
27805 for ac_exec_ext in '' $ac_executable_extensions; do
27806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27807 ac_cv_prog_freetype_config="$ac_prog"
27808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27817 freetype_config=$ac_cv_prog_freetype_config
27818 if test -n "$freetype_config"; then
27819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
27820 $as_echo "$freetype_config" >&6; }
27822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27823 $as_echo "no" >&6; }
27827 test -n "$freetype_config" && break
27829 if test -n "$freetype_config"; then
27830 freetype_cflags=`$freetype_config --cflags`
27831 freetype_libs=`$freetype_config --libs`
27832 LIBS="$LIBS $freetype_libs"
27833 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27837 if test "$FREETYPE_LIBS" = ''; then
27838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
27839 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
27840 if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
27841 $as_echo_n "(cached) " >&6
27843 ac_check_lib_save_LIBS=$LIBS
27844 LIBS="-lfreetype $LIBS"
27845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27846 /* end confdefs.h. */
27848 /* Override any GCC internal prototype to avoid an error.
27849 Use char because int might match the return type of a GCC
27850 builtin and then its argument prototype would still apply. */
27854 char FT_Init_FreeType ();
27858 return FT_Init_FreeType ();
27863 if ac_fn_c_try_link "$LINENO"; then :
27864 ac_cv_lib_freetype_FT_Init_FreeType=yes
27866 ac_cv_lib_freetype_FT_Init_FreeType=no
27868 rm -f core conftest.err conftest.$ac_objext \
27869 conftest$ac_exeext conftest.$ac_ext
27870 LIBS=$ac_check_lib_save_LIBS
27872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
27873 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
27874 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
27875 FREETYPE_LIBS='-lfreetype'
27878 if test "$FREETYPE_LIBS" != ''; then
27879 passed=`expr $passed + 1`
27881 failed=`expr $failed + 1`
27882 LIBS="$PERSIST_LIBS"
27886 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27887 if test "x$ac_cv_header_ft2build_h" = xyes; then :
27888 FT2BUILD_H='#include <ft2build.h>'
27894 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27896 if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
27897 have_freetype_h='yes'
27899 have_freetype_h='no'
27903 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27904 passed=`expr $passed + 1`
27906 failed=`expr $failed + 1`
27907 CPPFLAGS="$PERSIST_CPPFLAGS"
27910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
27911 $as_echo_n "checking if FreeType package is complete... " >&6; }
27912 if test $passed -gt 0; then
27913 if test $failed -gt 0; then
27915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27916 $as_echo "no -- some components failed test" >&6; }
27917 have_freetype='no (failed tests)'
27919 LIBS="$FREETYPE_LIBS $LIBS"
27921 $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
27923 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27925 $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
27928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27929 $as_echo "yes" >&6; }
27930 have_freetype='yes'
27933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27934 $as_echo "no" >&6; }
27937 if test "$have_freetype" = 'yes'; then
27938 FREETYPE_DELEGATE_TRUE=
27939 FREETYPE_DELEGATE_FALSE='#'
27941 FREETYPE_DELEGATE_TRUE='#'
27942 FREETYPE_DELEGATE_FALSE=
27950 # Check for Ghostscript library or framework.
27952 # Test for iapi.h & test for gsapi_new_instance in -lgs
27953 # or -framework Ghostscript
27956 # Check whether --with-gslib was given.
27957 if test "${with_gslib+set}" = set; then :
27958 withval=$with_gslib; with_gslib=$withval
27964 gslib_framework='no'
27965 if test "$with_gslib" != 'yes'; then
27966 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27971 if test "$with_gslib" != 'no'; then
27972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27973 $as_echo "-------------------------------------------------------------" >&6; }
27974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
27975 $as_echo_n "checking for Ghostscript... " >&6; }
27976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27981 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27982 if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
27983 passed=`expr $passed + 1`
27985 failed=`expr $failed + 1`
27989 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27990 if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
27991 passed=`expr $passed + 1`
27993 failed=`expr $failed + 1`
27997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
27998 $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
27999 if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
28000 $as_echo_n "(cached) " >&6
28002 ac_check_framework_save_LIBS=$LIBS
28003 LIBS="-framework Ghostscript $LIBS"
28004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28005 /* end confdefs.h. */
28007 /* Override any GCC internal prototype to avoid an error.
28008 Use char because int might match the return type of a GCC
28009 builtin and then its argument prototype would still apply. */
28013 char gsapi_new_instance ();
28017 return gsapi_new_instance ();
28022 if ac_fn_c_try_link "$LINENO"; then :
28023 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
28025 ac_cv_framework_Ghostscript_gsapi_new_instance=no
28027 rm -f core conftest.err conftest.$ac_objext \
28028 conftest$ac_exeext conftest.$ac_ext
28029 LIBS=$ac_check_framework_save_LIBS
28031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
28032 $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
28033 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
28034 framework=`expr $framework + 1`
28036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
28037 $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
28038 if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
28039 $as_echo_n "(cached) " >&6
28041 ac_check_lib_save_LIBS=$LIBS
28043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28044 /* end confdefs.h. */
28046 /* Override any GCC internal prototype to avoid an error.
28047 Use char because int might match the return type of a GCC
28048 builtin and then its argument prototype would still apply. */
28052 char gsapi_new_instance ();
28056 return gsapi_new_instance ();
28061 if ac_fn_c_try_link "$LINENO"; then :
28062 ac_cv_lib_gs_gsapi_new_instance=yes
28064 ac_cv_lib_gs_gsapi_new_instance=no
28066 rm -f core conftest.err conftest.$ac_objext \
28067 conftest$ac_exeext conftest.$ac_ext
28068 LIBS=$ac_check_lib_save_LIBS
28070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
28071 $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
28072 if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
28073 passed=`expr $passed + 1`
28075 failed=`expr $failed + 1`
28079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
28080 $as_echo_n "checking if Ghostscript package is complete... " >&6; }
28081 if test $passed -gt 0; then
28082 if test $failed -gt 0; then
28083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28084 $as_echo "no -- some components failed test" >&6; }
28085 have_gslib='no (failed tests)'
28087 if test $framework -gt 0; then
28088 GS_LIBS='-framework Ghostscript'
28089 gslib_framework='yes'
28090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
28091 $as_echo "yes, using framework." >&6; }
28093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
28094 $as_echo "yes, using library." >&6; }
28097 LIBS="$GS_LIBS $LIBS"
28099 $as_echo "#define GS_DELEGATE 1" >>confdefs.h
28104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28105 $as_echo "no" >&6; }
28108 if test "$have_gslib" = 'yes'; then
28110 GS_DELEGATE_FALSE='#'
28112 GS_DELEGATE_TRUE='#'
28118 # Set default font search path
28120 # Check whether --with-fontpath was given.
28121 if test "${with_fontpath+set}" = set; then :
28122 withval=$with_fontpath; with_fontpath=$withval
28128 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
28132 cat >>confdefs.h <<_ACEOF
28133 #define MAGICK_FONT_PATH "$with_fontpath"
28137 if test "$with_fontpath=" != ''; then
28138 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
28141 # Set Ghostscript font directory
28143 # Check whether --with-gs-font-dir was given.
28144 if test "${with_gs_font_dir+set}" = set; then :
28145 withval=$with_gs_font_dir; with_gs_font_dir=$withval
28147 with_gs_font_dir='default'
28151 if test "$with_gs_font_dir" != 'default'; then
28152 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
28157 # Check for GVC delegate library.
28160 # Check whether --with-gvc was given.
28161 if test "${with_gvc+set}" = set; then :
28162 withval=$with_gvc; with_gvc=$withval
28168 if test "$with_gvc" != 'yes'; then
28169 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
28173 if test "x$with_gvc" = "xyes"; then
28174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28175 $as_echo "-------------------------------------------------------------" >&6; }
28178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
28179 $as_echo_n "checking for GVC... " >&6; }
28181 if test -n "$GVC_CFLAGS"; then
28182 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
28183 elif test -n "$PKG_CONFIG"; then
28184 if test -n "$PKG_CONFIG" && \
28185 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28186 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28189 test $ac_status = 0; }; then
28190 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
28197 if test -n "$GVC_LIBS"; then
28198 pkg_cv_GVC_LIBS="$GVC_LIBS"
28199 elif test -n "$PKG_CONFIG"; then
28200 if test -n "$PKG_CONFIG" && \
28201 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
28202 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
28204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28205 test $ac_status = 0; }; then
28206 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
28216 if test $pkg_failed = yes; then
28218 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28219 _pkg_short_errors_supported=yes
28221 _pkg_short_errors_supported=no
28223 if test $_pkg_short_errors_supported = yes; then
28224 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
28226 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
28228 # Put the nasty error message in config.log where it belongs
28229 echo "$GVC_PKG_ERRORS" >&5
28231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28232 $as_echo "no" >&6; }
28234 elif test $pkg_failed = untried; then
28237 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
28238 GVC_LIBS=$pkg_cv_GVC_LIBS
28239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28240 $as_echo "yes" >&6; }
28243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28247 if test "$have_gvc" = 'yes'; then
28249 $as_echo "#define GVC_DELEGATE 1" >>confdefs.h
28251 if test "$with_modules" = 'no'; then
28252 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
28256 if test "$have_gvc" = 'yes'; then
28258 GVC_DELEGATE_FALSE='#'
28260 GVC_DELEGATE_TRUE='#'
28261 GVC_DELEGATE_FALSE=
28269 # Check for JBIG delegate library.
28273 # Check whether --with-jbig was given.
28274 if test "${with_jbig+set}" = set; then :
28275 withval=$with_jbig; with_jbig=$withval
28283 if test "$with_jbig" != 'no'; then
28284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28285 $as_echo "-------------------------------------------------------------" >&6; }
28286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
28287 $as_echo_n "checking for JBIG... " >&6; }
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28292 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
28293 if test "x$ac_cv_header_jbig_h" = xyes; then :
28294 passed=`expr $passed + 1`
28296 failed=`expr $failed + 1`
28300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
28301 $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
28302 if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
28303 $as_echo_n "(cached) " >&6
28305 ac_check_lib_save_LIBS=$LIBS
28306 LIBS="-ljbig $LIBS"
28307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28308 /* end confdefs.h. */
28310 /* Override any GCC internal prototype to avoid an error.
28311 Use char because int might match the return type of a GCC
28312 builtin and then its argument prototype would still apply. */
28316 char jbg_dec_init ();
28320 return jbg_dec_init ();
28325 if ac_fn_c_try_link "$LINENO"; then :
28326 ac_cv_lib_jbig_jbg_dec_init=yes
28328 ac_cv_lib_jbig_jbg_dec_init=no
28330 rm -f core conftest.err conftest.$ac_objext \
28331 conftest$ac_exeext conftest.$ac_ext
28332 LIBS=$ac_check_lib_save_LIBS
28334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
28335 $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
28336 if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
28337 passed=`expr $passed + 1`
28339 failed=`expr $failed + 1`
28342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
28343 $as_echo_n "checking if JBIG package is complete... " >&6; }
28344 if test $passed -gt 0; then
28345 if test $failed -gt 0; then
28346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28347 $as_echo "no -- some components failed test" >&6; }
28348 have_jbig='no (failed tests)'
28351 LIBS="$JBIG_LIBS $LIBS"
28353 $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
28355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28356 $as_echo "yes" >&6; }
28360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28361 $as_echo "no" >&6; }
28364 if test "$have_jbig" = 'yes'; then
28365 JBIG_DELEGATE_TRUE=
28366 JBIG_DELEGATE_FALSE='#'
28368 JBIG_DELEGATE_TRUE='#'
28369 JBIG_DELEGATE_FALSE=
28376 # Check for JPEG delegate library.
28379 # Check whether --with-jpeg was given.
28380 if test "${with_jpeg+set}" = set; then :
28381 withval=$with_jpeg; with_jpeg=$withval
28387 if test "$with_jpeg" != 'yes'; then
28388 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
28393 if test "$with_jpeg" != 'no'; then
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28395 $as_echo "-------------------------------------------------------------" >&6; }
28396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
28397 $as_echo_n "checking for JPEG... " >&6; }
28398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28402 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
28403 if test "x$ac_cv_header_jconfig_h" = xyes; then :
28404 passed=`expr $passed + 1`
28406 failed=`expr $failed + 1`
28410 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
28411 if test "x$ac_cv_header_jerror_h" = xyes; then :
28412 passed=`expr $passed + 1`
28414 failed=`expr $failed + 1`
28418 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
28419 if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
28420 passed=`expr $passed + 1`
28422 failed=`expr $failed + 1`
28426 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
28427 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
28428 passed=`expr $passed + 1`
28430 failed=`expr $failed + 1`
28434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
28435 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
28436 if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
28437 $as_echo_n "(cached) " >&6
28439 ac_check_lib_save_LIBS=$LIBS
28440 LIBS="-ljpeg $LIBS"
28441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28442 /* end confdefs.h. */
28444 /* Override any GCC internal prototype to avoid an error.
28445 Use char because int might match the return type of a GCC
28446 builtin and then its argument prototype would still apply. */
28450 char jpeg_read_header ();
28454 return jpeg_read_header ();
28459 if ac_fn_c_try_link "$LINENO"; then :
28460 ac_cv_lib_jpeg_jpeg_read_header=yes
28462 ac_cv_lib_jpeg_jpeg_read_header=no
28464 rm -f core conftest.err conftest.$ac_objext \
28465 conftest$ac_exeext conftest.$ac_ext
28466 LIBS=$ac_check_lib_save_LIBS
28468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
28469 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
28470 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
28471 passed=`expr $passed + 1`
28473 failed=`expr $failed + 1`
28477 # Test for compatible JPEG library
28478 if test "$ac_cv_jpeg_version_ok" != 'yes'; then
28479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
28480 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
28481 if ${ac_cv_jpeg_version_ok+:} false; then :
28482 $as_echo_n "(cached) " >&6
28484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28485 /* end confdefs.h. */
28487 #include <stdlib.h>
28488 #include <jpeglib.h>
28494 #if JPEG_LIB_VERSION < 62
28495 #error IJG JPEG library must be version 6b or newer!
28503 if ac_fn_c_try_compile "$LINENO"; then :
28504 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
28506 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
28508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
28511 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
28513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
28514 $as_echo_n "checking if JPEG package is complete... " >&6; }
28515 if test $passed -gt 0; then
28516 if test $failed -gt 0; then
28517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28518 $as_echo "no -- some components failed test" >&6; }
28519 have_jpeg='no (failed tests)'
28522 LIBS="$JPEG_LIBS $LIBS"
28524 $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
28526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28527 $as_echo "yes" >&6; }
28531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28532 $as_echo "no" >&6; }
28535 if test "$have_jpeg" = 'yes'; then
28536 JPEG_DELEGATE_TRUE=
28537 JPEG_DELEGATE_FALSE='#'
28539 JPEG_DELEGATE_TRUE='#'
28540 JPEG_DELEGATE_FALSE=
28547 # Check for JPEG Version 2 delegate library.
28550 # Check whether --with-jp2 was given.
28551 if test "${with_jp2+set}" = set; then :
28552 withval=$with_jp2; with_jp2=$withval
28558 if test "$with_jp2" != 'yes'; then
28559 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
28564 if test "$with_jp2" != 'no'; then
28565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28566 $as_echo "-------------------------------------------------------------" >&6; }
28567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
28568 $as_echo_n "checking for JPEG Version 2... " >&6; }
28569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28573 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
28574 if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
28575 passed=`expr $passed + 1`
28577 failed=`expr $failed + 1`
28581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
28582 $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
28583 if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
28584 $as_echo_n "(cached) " >&6
28586 ac_check_lib_save_LIBS=$LIBS
28587 LIBS="-ljasper $LIBS"
28588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28589 /* end confdefs.h. */
28591 /* Override any GCC internal prototype to avoid an error.
28592 Use char because int might match the return type of a GCC
28593 builtin and then its argument prototype would still apply. */
28597 char jas_stream_fopen ();
28601 return jas_stream_fopen ();
28606 if ac_fn_c_try_link "$LINENO"; then :
28607 ac_cv_lib_jasper_jas_stream_fopen=yes
28609 ac_cv_lib_jasper_jas_stream_fopen=no
28611 rm -f core conftest.err conftest.$ac_objext \
28612 conftest$ac_exeext conftest.$ac_ext
28613 LIBS=$ac_check_lib_save_LIBS
28615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
28616 $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
28617 if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
28618 passed=`expr $passed + 1`
28620 failed=`expr $failed + 1`
28623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
28624 $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
28625 if test $passed -gt 0; then
28626 if test $failed -gt 0; then
28627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28628 $as_echo "no -- some components failed test" >&6; }
28629 have_jp2='no (failed tests)'
28631 JP2_LIBS='-ljasper'
28632 LIBS="$JP2_LIBS $LIBS"
28634 $as_echo "#define JP2_DELEGATE 1" >>confdefs.h
28636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28637 $as_echo "yes" >&6; }
28641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28642 $as_echo "no" >&6; }
28645 if test "$have_jp2" = 'yes'; then
28647 JP2_DELEGATE_FALSE='#'
28649 JP2_DELEGATE_TRUE='#'
28650 JP2_DELEGATE_FALSE=
28657 # Check for LCMS delegate library.
28661 # Check whether --with-lcms was given.
28662 if test "${with_lcms+set}" = set; then :
28663 withval=$with_lcms; with_lcms=$withval
28668 if test "$with_lcms" != 'yes' ; then
28669 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
28674 # Check whether --with-lcms2 was given.
28675 if test "${with_lcms2+set}" = set; then :
28676 withval=$with_lcms2; with_lcms2=$withval
28681 if test "$with_lcms2" != 'yes' ; then
28682 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
28687 if test "$with_lcms2" != 'no'; then
28688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28689 $as_echo "-------------------------------------------------------------" >&6; }
28690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
28691 $as_echo_n "checking for LCMS v2... " >&6; }
28692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28696 have_lcms_header='no'
28698 # Check for <lcms2.h>
28699 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
28700 if test "x$ac_cv_header_lcms2_h" = xyes; then :
28701 have_lcms_header='yes'
28705 if test "$have_lcms_header" = 'yes'; then
28707 $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
28709 passed=`expr $passed + 1`
28712 # Check for <lcms2/lcms2.h)
28713 if test "$have_lcms_header" != 'yes'; then
28714 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
28715 if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
28716 have_lcms_header='yes'
28720 if test "$have_lcms_header" = 'yes'; then
28721 passed=`expr $passed + 1`
28723 $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
28728 # Failed to find lcms header?
28729 if test "$have_lcms_header" != 'yes'; then
28730 failed=`expr $failed + 1`
28733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
28734 $as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
28735 if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
28736 $as_echo_n "(cached) " >&6
28738 ac_check_lib_save_LIBS=$LIBS
28739 LIBS="-llcms2 $LIBS"
28740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28741 /* end confdefs.h. */
28743 /* Override any GCC internal prototype to avoid an error.
28744 Use char because int might match the return type of a GCC
28745 builtin and then its argument prototype would still apply. */
28749 char cmsSetLogErrorHandler ();
28753 return cmsSetLogErrorHandler ();
28758 if ac_fn_c_try_link "$LINENO"; then :
28759 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
28761 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
28763 rm -f core conftest.err conftest.$ac_objext \
28764 conftest$ac_exeext conftest.$ac_ext
28765 LIBS=$ac_check_lib_save_LIBS
28767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
28768 $as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
28769 if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
28770 passed=`expr $passed + 1`
28772 failed=`expr $failed + 1`
28775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
28776 $as_echo_n "checking if LCMS v2 package is complete... " >&6; }
28777 if test $passed -gt 0; then
28778 if test $failed -gt 0; then
28779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28780 $as_echo "no -- some components failed test" >&6; }
28781 have_lcms2='no (failed tests)'
28783 LCMS_LIBS='-llcms2'
28784 LIBS="$LCMS_LIBS $LIBS"
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28786 $as_echo "yes" >&6; }
28790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28791 $as_echo "no" >&6; }
28796 # Check for LCMS v1 (1.11 or later)
28798 if test $have_lcms2 = 'yes'; then
28803 if test "$with_lcms" != 'no'; then
28804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28805 $as_echo "-------------------------------------------------------------" >&6; }
28806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
28807 $as_echo_n "checking for LCMS v1.1X... " >&6; }
28808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28812 have_lcms_header='no'
28814 # Check for <lcms.h>
28815 if test "$have_lcms_header" != 'yes'; then
28816 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
28817 if test "x$ac_cv_header_lcms_h" = xyes; then :
28818 have_lcms_header='yes'
28822 if test "$have_lcms_header" = 'yes'; then
28823 passed=`expr $passed + 1`
28825 $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
28830 # Check for <lcms/lcms.h>
28831 if test "$have_lcms_header" != 'yes'; then
28832 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
28833 if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
28834 have_lcms_header='yes'
28838 if test "$have_lcms_header" = 'yes'; then
28839 passed=`expr $passed + 1`
28841 $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
28846 # Failed to find lcms header?
28847 if test "$have_lcms_header" != 'yes'; then
28848 failed=`expr $failed + 1`
28851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28852 $as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28853 if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
28854 $as_echo_n "(cached) " >&6
28856 ac_check_lib_save_LIBS=$LIBS
28857 LIBS="-llcms $LIBS"
28858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28859 /* end confdefs.h. */
28861 /* Override any GCC internal prototype to avoid an error.
28862 Use char because int might match the return type of a GCC
28863 builtin and then its argument prototype would still apply. */
28867 char cmsSetErrorHandler ();
28871 return cmsSetErrorHandler ();
28876 if ac_fn_c_try_link "$LINENO"; then :
28877 ac_cv_lib_lcms_cmsSetErrorHandler=yes
28879 ac_cv_lib_lcms_cmsSetErrorHandler=no
28881 rm -f core conftest.err conftest.$ac_objext \
28882 conftest$ac_exeext conftest.$ac_ext
28883 LIBS=$ac_check_lib_save_LIBS
28885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28886 $as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28887 if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
28888 passed=`expr $passed + 1`
28890 failed=`expr $failed + 1`
28893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
28894 $as_echo_n "checking if LCMS package is complete... " >&6; }
28895 if test $passed -gt 0; then
28896 if test $failed -gt 0; then
28897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28898 $as_echo "no -- some components failed test" >&6; }
28899 have_lcms='no (failed tests)'
28902 LIBS="$LCMS_LIBS $LIBS"
28903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28904 $as_echo "yes" >&6; }
28908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28909 $as_echo "no" >&6; }
28913 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28914 LCMS_DELEGATE_TRUE=
28915 LCMS_DELEGATE_FALSE='#'
28917 LCMS_DELEGATE_TRUE='#'
28918 LCMS_DELEGATE_FALSE=
28921 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28923 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28931 # Check for the LQR (Liquid Rescale) delegate library.
28934 # Check whether --with-lqr was given.
28935 if test "${with_lqr+set}" = set; then :
28936 withval=$with_lqr; with_lqr=$withval
28942 if test "$with_lqr" != 'yes'; then
28943 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28950 if test "x$with_lqr" = "xyes"; then
28951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28952 $as_echo "-------------------------------------------------------------" >&6; }
28955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
28956 $as_echo_n "checking for LQR... " >&6; }
28958 if test -n "$LQR_CFLAGS"; then
28959 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28960 elif test -n "$PKG_CONFIG"; then
28961 if test -n "$PKG_CONFIG" && \
28962 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28963 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28966 test $ac_status = 0; }; then
28967 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28974 if test -n "$LQR_LIBS"; then
28975 pkg_cv_LQR_LIBS="$LQR_LIBS"
28976 elif test -n "$PKG_CONFIG"; then
28977 if test -n "$PKG_CONFIG" && \
28978 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28979 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28982 test $ac_status = 0; }; then
28983 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28993 if test $pkg_failed = yes; then
28995 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28996 _pkg_short_errors_supported=yes
28998 _pkg_short_errors_supported=no
29000 if test $_pkg_short_errors_supported = yes; then
29001 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
29003 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
29005 # Put the nasty error message in config.log where it belongs
29006 echo "$LQR_PKG_ERRORS" >&5
29008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29009 $as_echo "no" >&6; }
29011 elif test $pkg_failed = untried; then
29014 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
29015 LQR_LIBS=$pkg_cv_LQR_LIBS
29016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29017 $as_echo "yes" >&6; }
29020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29024 if test "$have_lqr" = 'yes'; then
29026 $as_echo "#define LQR_DELEGATE 1" >>confdefs.h
29028 CFLAGS="$LQR_CFLAGS $CFLAGS"
29031 if test "$have_lqr" = 'yes'; then
29033 LQR_DELEGATE_FALSE='#'
29035 LQR_DELEGATE_TRUE='#'
29036 LQR_DELEGATE_FALSE=
29043 # Disable LZMA (lzma library)
29045 # Check whether --with-lzma was given.
29046 if test "${with_lzma+set}" = set; then :
29047 withval=$with_lzma; with_lzma=$withval
29052 if test "$with_lzma" != 'yes' ; then
29053 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
29061 if test "$with_lzma" != 'no' || test "$with_tiff" != 'no'; then
29062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29063 $as_echo "-------------------------------------------------------------" >&6; }
29064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
29065 $as_echo_n "checking for LZMA... " >&6; }
29066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29070 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
29071 if test "x$ac_cv_header_lzma_h" = xyes; then :
29072 passed=`expr $passed + 1`
29074 failed=`expr $failed + 1`
29078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
29079 $as_echo_n "checking for lzma_code in -llzma... " >&6; }
29080 if ${ac_cv_lib_lzma_lzma_code+:} false; then :
29081 $as_echo_n "(cached) " >&6
29083 ac_check_lib_save_LIBS=$LIBS
29084 LIBS="-llzma $LIBS"
29085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29086 /* end confdefs.h. */
29088 /* Override any GCC internal prototype to avoid an error.
29089 Use char because int might match the return type of a GCC
29090 builtin and then its argument prototype would still apply. */
29098 return lzma_code ();
29103 if ac_fn_c_try_link "$LINENO"; then :
29104 ac_cv_lib_lzma_lzma_code=yes
29106 ac_cv_lib_lzma_lzma_code=no
29108 rm -f core conftest.err conftest.$ac_objext \
29109 conftest$ac_exeext conftest.$ac_ext
29110 LIBS=$ac_check_lib_save_LIBS
29112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
29113 $as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
29114 if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
29115 passed=`expr $passed + 1`
29117 failed=`expr $failed + 1`
29120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LZMA package is complete" >&5
29121 $as_echo_n "checking if LZMA package is complete... " >&6; }
29122 if test $passed -gt 0; then
29123 if test $failed -gt 0; then
29124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29125 $as_echo "no -- some components failed test" >&6; }
29126 have_lzma='no (failed tests)'
29129 LIBS="$LZMA_LIBS $LIBS"
29131 $as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
29133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29134 $as_echo "yes" >&6; }
29138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29139 $as_echo "no" >&6; }
29142 if test "$have_lzma" = 'yes'; then
29143 LZMA_DELEGATE_TRUE=
29144 LZMA_DELEGATE_FALSE='#'
29146 LZMA_DELEGATE_TRUE='#'
29147 LZMA_DELEGATE_FALSE=
29154 # Check for the OpenEXR delegate library.
29157 # Check whether --with-openexr was given.
29158 if test "${with_openexr+set}" = set; then :
29159 withval=$with_openexr; with_openexr=$withval
29165 if test "$with_openexr" != 'yes'; then
29166 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
29173 if test "x$with_openexr" = "xyes"; then
29174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29175 $as_echo "-------------------------------------------------------------" >&6; }
29178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
29179 $as_echo_n "checking for OPENEXR... " >&6; }
29181 if test -n "$OPENEXR_CFLAGS"; then
29182 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
29183 elif test -n "$PKG_CONFIG"; then
29184 if test -n "$PKG_CONFIG" && \
29185 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29186 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29189 test $ac_status = 0; }; then
29190 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
29197 if test -n "$OPENEXR_LIBS"; then
29198 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
29199 elif test -n "$PKG_CONFIG"; then
29200 if test -n "$PKG_CONFIG" && \
29201 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
29202 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
29204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29205 test $ac_status = 0; }; then
29206 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
29216 if test $pkg_failed = yes; then
29218 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29219 _pkg_short_errors_supported=yes
29221 _pkg_short_errors_supported=no
29223 if test $_pkg_short_errors_supported = yes; then
29224 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
29226 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
29228 # Put the nasty error message in config.log where it belongs
29229 echo "$OPENEXR_PKG_ERRORS" >&5
29231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29232 $as_echo "no" >&6; }
29234 elif test $pkg_failed = untried; then
29237 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
29238 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
29239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29240 $as_echo "yes" >&6; }
29243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29247 if test "$have_openexr" = 'yes'; then
29249 $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
29251 if test "$with_modules" = 'no'; then
29252 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
29256 if test "$have_openexr" = 'yes'; then
29257 OPENEXR_DELEGATE_TRUE=
29258 OPENEXR_DELEGATE_FALSE='#'
29260 OPENEXR_DELEGATE_TRUE='#'
29261 OPENEXR_DELEGATE_FALSE=
29269 # Check for PNG delegate library.
29272 # Check whether --with-png was given.
29273 if test "${with_png+set}" = set; then :
29274 withval=$with_png; with_png=$withval
29280 if test "$with_png" != 'yes'; then
29281 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
29286 if test "$with_png" != 'no'; then
29287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29288 $as_echo "-------------------------------------------------------------" >&6; }
29289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
29290 $as_echo_n "checking for PNG... " >&6; }
29291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29295 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
29296 if test "x$ac_cv_header_png_h" = xyes; then :
29297 passed=`expr $passed + 1`
29299 failed=`expr $failed + 1`
29303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
29304 $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
29305 if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
29306 $as_echo_n "(cached) " >&6
29308 ac_check_lib_save_LIBS=$LIBS
29310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29311 /* end confdefs.h. */
29313 /* Override any GCC internal prototype to avoid an error.
29314 Use char because int might match the return type of a GCC
29315 builtin and then its argument prototype would still apply. */
29319 char png_get_io_ptr ();
29323 return png_get_io_ptr ();
29328 if ac_fn_c_try_link "$LINENO"; then :
29329 ac_cv_lib_png_png_get_io_ptr=yes
29331 ac_cv_lib_png_png_get_io_ptr=no
29333 rm -f core conftest.err conftest.$ac_objext \
29334 conftest$ac_exeext conftest.$ac_ext
29335 LIBS=$ac_check_lib_save_LIBS
29337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
29338 $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
29339 if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
29340 passed=`expr $passed + 1`
29342 failed=`expr $failed + 1`
29345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
29346 $as_echo_n "checking if PNG package is complete... " >&6; }
29347 if test $passed -gt 0; then
29348 if test $failed -gt 0; then
29349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29350 $as_echo "no -- some components failed test" >&6; }
29351 have_png='no (failed tests)'
29354 LIBS="$PNG_LIBS $LIBS"
29356 $as_echo "#define PNG_DELEGATE 1" >>confdefs.h
29358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29359 $as_echo "yes" >&6; }
29363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29364 $as_echo "no" >&6; }
29367 if test "$have_png" = 'yes'; then
29369 PNG_DELEGATE_FALSE='#'
29371 PNG_DELEGATE_TRUE='#'
29372 PNG_DELEGATE_FALSE=
29379 # Check for RSVG delegate library.
29382 # Check whether --with-rsvg was given.
29383 if test "${with_rsvg+set}" = set; then :
29384 withval=$with_rsvg; with_rsvg=$withval
29390 if test "$with_rsvg" != 'yes'; then
29391 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
29399 if test "x$with_rsvg" = "xyes"; then
29400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29401 $as_echo "-------------------------------------------------------------" >&6; }
29404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
29405 $as_echo_n "checking for RSVG... " >&6; }
29407 if test -n "$RSVG_CFLAGS"; then
29408 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
29409 elif test -n "$PKG_CONFIG"; then
29410 if test -n "$PKG_CONFIG" && \
29411 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
29412 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
29414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29415 test $ac_status = 0; }; then
29416 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
29423 if test -n "$RSVG_LIBS"; then
29424 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
29425 elif test -n "$PKG_CONFIG"; then
29426 if test -n "$PKG_CONFIG" && \
29427 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
29428 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
29430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29431 test $ac_status = 0; }; then
29432 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
29442 if test $pkg_failed = yes; then
29444 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29445 _pkg_short_errors_supported=yes
29447 _pkg_short_errors_supported=no
29449 if test $_pkg_short_errors_supported = yes; then
29450 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
29452 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
29454 # Put the nasty error message in config.log where it belongs
29455 echo "$RSVG_PKG_ERRORS" >&5
29457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29458 $as_echo "no" >&6; }
29460 elif test $pkg_failed = untried; then
29463 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
29464 RSVG_LIBS=$pkg_cv_RSVG_LIBS
29465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29466 $as_echo "yes" >&6; }
29469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
29474 $as_echo_n "checking for CAIRO_SVG... " >&6; }
29476 if test -n "$CAIRO_SVG_CFLAGS"; then
29477 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
29478 elif test -n "$PKG_CONFIG"; then
29479 if test -n "$PKG_CONFIG" && \
29480 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
29481 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
29483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29484 test $ac_status = 0; }; then
29485 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
29492 if test -n "$CAIRO_SVG_LIBS"; then
29493 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
29494 elif test -n "$PKG_CONFIG"; then
29495 if test -n "$PKG_CONFIG" && \
29496 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
29497 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
29499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29500 test $ac_status = 0; }; then
29501 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
29511 if test $pkg_failed = yes; then
29513 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29514 _pkg_short_errors_supported=yes
29516 _pkg_short_errors_supported=no
29518 if test $_pkg_short_errors_supported = yes; then
29519 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
29521 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
29523 # Put the nasty error message in config.log where it belongs
29524 echo "$CAIRO_SVG_PKG_ERRORS" >&5
29526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29527 $as_echo "no" >&6; }
29529 elif test $pkg_failed = untried; then
29532 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
29533 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
29534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29535 $as_echo "yes" >&6; }
29538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29542 if test "$have_rsvg" = 'yes'; then
29544 $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
29546 if test "$with_modules" = 'no'; then
29547 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
29551 if test "$have_cairo" = 'yes'; then
29553 $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
29555 if test "$with_modules" = 'no'; then
29556 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
29560 if test "$have_rsvg" = 'yes'; then
29561 RSVG_DELEGATE_TRUE=
29562 RSVG_DELEGATE_FALSE='#'
29564 RSVG_DELEGATE_TRUE='#'
29565 RSVG_DELEGATE_FALSE=
29568 if test "$have_cairo" = 'yes'; then
29569 CAIRO_DELEGATE_TRUE=
29570 CAIRO_DELEGATE_FALSE='#'
29572 CAIRO_DELEGATE_TRUE='#'
29573 CAIRO_DELEGATE_FALSE=
29581 # Check for TIFF delegate library.
29584 # Check whether --with-tiff was given.
29585 if test "${with_tiff+set}" = set; then :
29586 withval=$with_tiff; with_tiff=$withval
29592 if test "$with_tiff" != 'yes'; then
29593 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
29598 if test "$with_tiff" != 'no'; then
29599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29600 $as_echo "-------------------------------------------------------------" >&6; }
29601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
29602 $as_echo_n "checking for TIFF... " >&6; }
29603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29607 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
29608 if test "x$ac_cv_header_tiff_h" = xyes; then :
29609 passed=`expr $passed + 1`
29611 failed=`expr $failed + 1`
29615 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
29616 if test "x$ac_cv_header_tiffio_h" = xyes; then :
29617 passed=`expr $passed + 1`
29619 failed=`expr $failed + 1`
29623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
29624 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
29625 if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
29626 $as_echo_n "(cached) " >&6
29628 ac_check_lib_save_LIBS=$LIBS
29629 LIBS="-ltiff $LIBS"
29630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29631 /* end confdefs.h. */
29633 /* Override any GCC internal prototype to avoid an error.
29634 Use char because int might match the return type of a GCC
29635 builtin and then its argument prototype would still apply. */
29643 return TIFFOpen ();
29648 if ac_fn_c_try_link "$LINENO"; then :
29649 ac_cv_lib_tiff_TIFFOpen=yes
29651 ac_cv_lib_tiff_TIFFOpen=no
29653 rm -f core conftest.err conftest.$ac_objext \
29654 conftest$ac_exeext conftest.$ac_ext
29655 LIBS=$ac_check_lib_save_LIBS
29657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
29658 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
29659 if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
29660 passed=`expr $passed + 1`
29662 failed=`expr $failed + 1`
29665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
29666 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
29667 if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
29668 $as_echo_n "(cached) " >&6
29670 ac_check_lib_save_LIBS=$LIBS
29671 LIBS="-ltiff $LIBS"
29672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29673 /* end confdefs.h. */
29675 /* Override any GCC internal prototype to avoid an error.
29676 Use char because int might match the return type of a GCC
29677 builtin and then its argument prototype would still apply. */
29681 char TIFFClientOpen ();
29685 return TIFFClientOpen ();
29690 if ac_fn_c_try_link "$LINENO"; then :
29691 ac_cv_lib_tiff_TIFFClientOpen=yes
29693 ac_cv_lib_tiff_TIFFClientOpen=no
29695 rm -f core conftest.err conftest.$ac_objext \
29696 conftest$ac_exeext conftest.$ac_ext
29697 LIBS=$ac_check_lib_save_LIBS
29699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
29700 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
29701 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
29702 passed=`expr $passed + 1`
29704 failed=`expr $failed + 1`
29707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
29708 $as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
29709 if ${ac_cv_lib_tiff_TIFFIsBigEndian+:} false; then :
29710 $as_echo_n "(cached) " >&6
29712 ac_check_lib_save_LIBS=$LIBS
29713 LIBS="-ltiff $LIBS"
29714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29715 /* end confdefs.h. */
29717 /* Override any GCC internal prototype to avoid an error.
29718 Use char because int might match the return type of a GCC
29719 builtin and then its argument prototype would still apply. */
29723 char TIFFIsBigEndian ();
29727 return TIFFIsBigEndian ();
29732 if ac_fn_c_try_link "$LINENO"; then :
29733 ac_cv_lib_tiff_TIFFIsBigEndian=yes
29735 ac_cv_lib_tiff_TIFFIsBigEndian=no
29737 rm -f core conftest.err conftest.$ac_objext \
29738 conftest$ac_exeext conftest.$ac_ext
29739 LIBS=$ac_check_lib_save_LIBS
29741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
29742 $as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
29743 if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = xyes; then :
29744 passed=`expr $passed + 1`
29746 failed=`expr $failed + 1`
29749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
29750 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
29751 if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
29752 $as_echo_n "(cached) " >&6
29754 ac_check_lib_save_LIBS=$LIBS
29755 LIBS="-ltiff $LIBS"
29756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29757 /* end confdefs.h. */
29759 /* Override any GCC internal prototype to avoid an error.
29760 Use char because int might match the return type of a GCC
29761 builtin and then its argument prototype would still apply. */
29765 char TIFFIsByteSwapped ();
29769 return TIFFIsByteSwapped ();
29774 if ac_fn_c_try_link "$LINENO"; then :
29775 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
29777 ac_cv_lib_tiff_TIFFIsByteSwapped=no
29779 rm -f core conftest.err conftest.$ac_objext \
29780 conftest$ac_exeext conftest.$ac_ext
29781 LIBS=$ac_check_lib_save_LIBS
29783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
29784 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
29785 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
29786 passed=`expr $passed + 1`
29788 failed=`expr $failed + 1`
29791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
29792 $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
29793 if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
29794 $as_echo_n "(cached) " >&6
29796 ac_check_lib_save_LIBS=$LIBS
29797 LIBS="-ltiff $LIBS"
29798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29799 /* end confdefs.h. */
29801 /* Override any GCC internal prototype to avoid an error.
29802 Use char because int might match the return type of a GCC
29803 builtin and then its argument prototype would still apply. */
29807 char TIFFReadRGBATile ();
29811 return TIFFReadRGBATile ();
29816 if ac_fn_c_try_link "$LINENO"; then :
29817 ac_cv_lib_tiff_TIFFReadRGBATile=yes
29819 ac_cv_lib_tiff_TIFFReadRGBATile=no
29821 rm -f core conftest.err conftest.$ac_objext \
29822 conftest$ac_exeext conftest.$ac_ext
29823 LIBS=$ac_check_lib_save_LIBS
29825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
29826 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
29827 if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
29828 passed=`expr $passed + 1`
29830 failed=`expr $failed + 1`
29833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
29834 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
29835 if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
29836 $as_echo_n "(cached) " >&6
29838 ac_check_lib_save_LIBS=$LIBS
29839 LIBS="-ltiff $LIBS"
29840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29841 /* end confdefs.h. */
29843 /* Override any GCC internal prototype to avoid an error.
29844 Use char because int might match the return type of a GCC
29845 builtin and then its argument prototype would still apply. */
29849 char TIFFReadRGBAStrip ();
29853 return TIFFReadRGBAStrip ();
29858 if ac_fn_c_try_link "$LINENO"; then :
29859 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29861 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
29863 rm -f core conftest.err conftest.$ac_objext \
29864 conftest$ac_exeext conftest.$ac_ext
29865 LIBS=$ac_check_lib_save_LIBS
29867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
29868 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
29869 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
29870 passed=`expr $passed + 1`
29872 failed=`expr $failed + 1`
29875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
29876 $as_echo_n "checking if TIFF package is complete... " >&6; }
29877 if test $passed -gt 0; then
29878 if test $failed -gt 0; then
29879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29880 $as_echo "no -- some components failed test" >&6; }
29881 have_tiff='no (failed tests)'
29884 LIBS="$TIFF_LIBS $LIBS"
29886 $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
29888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29889 $as_echo "yes" >&6; }
29891 for ac_header in tiffconf.h
29893 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
29894 if test "x$ac_cv_header_tiffconf_h" = xyes; then :
29895 cat >>confdefs.h <<_ACEOF
29896 #define HAVE_TIFFCONF_H 1
29903 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
29904 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29905 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
29907 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29908 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29909 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29910 cat >>confdefs.h <<_ACEOF
29911 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29920 $as_echo "no" >&6; }
29923 if test "$have_tiff" = 'yes'; then
29924 TIFF_DELEGATE_TRUE=
29925 TIFF_DELEGATE_FALSE='#'
29927 TIFF_DELEGATE_TRUE='#'
29928 TIFF_DELEGATE_FALSE=
29935 # Check for WEBP delegate library.
29938 # Check whether --with-webp was given.
29939 if test "${with_webp+set}" = set; then :
29940 withval=$with_webp; with_webp=$withval
29946 if test "$with_webp" != 'yes'; then
29947 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
29952 if test "$with_webp" != 'no'; then
29953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29954 $as_echo "-------------------------------------------------------------" >&6; }
29955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
29956 $as_echo_n "checking for WEBP... " >&6; }
29957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29961 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
29962 if test "x$ac_cv_header_webp_decode_h" = xyes; then :
29963 passed=`expr $passed + 1`
29965 failed=`expr $failed + 1`
29969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
29970 $as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
29971 if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
29972 $as_echo_n "(cached) " >&6
29974 ac_check_lib_save_LIBS=$LIBS
29975 LIBS="-lwebp $LIBS"
29976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29977 /* end confdefs.h. */
29979 /* Override any GCC internal prototype to avoid an error.
29980 Use char because int might match the return type of a GCC
29981 builtin and then its argument prototype would still apply. */
29985 char WebPDecodeRGB ();
29989 return WebPDecodeRGB ();
29994 if ac_fn_c_try_link "$LINENO"; then :
29995 ac_cv_lib_webp_WebPDecodeRGB=yes
29997 ac_cv_lib_webp_WebPDecodeRGB=no
29999 rm -f core conftest.err conftest.$ac_objext \
30000 conftest$ac_exeext conftest.$ac_ext
30001 LIBS=$ac_check_lib_save_LIBS
30003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
30004 $as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
30005 if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
30006 passed=`expr $passed + 1`
30008 failed=`expr $failed + 1`
30011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
30012 $as_echo_n "checking if WEBP package is complete... " >&6; }
30013 if test $passed -gt 0; then
30014 if test $failed -gt 0; then
30015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30016 $as_echo "no -- some components failed test" >&6; }
30017 have_webp='no (failed tests)'
30020 LIBS="$WEBP_LIBS $LIBS"
30022 $as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
30024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30025 $as_echo "yes" >&6; }
30029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30030 $as_echo "no" >&6; }
30033 if test "$have_webp" = 'yes'; then
30034 WEBP_DELEGATE_TRUE=
30035 WEBP_DELEGATE_FALSE='#'
30037 WEBP_DELEGATE_TRUE='#'
30038 WEBP_DELEGATE_FALSE=
30045 # Set Windows font directory.
30048 # Check whether --with-windows-font-dir was given.
30049 if test "${with_windows_font_dir+set}" = set; then :
30050 withval=$with_windows_font_dir; with_windows_font_dir=$withval
30052 with_windows_font_dir=''
30055 if test "$with_windows_font_dir" != '' ; then
30056 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
30061 # Check for WMF delegate library.
30064 # Check whether --with-wmf was given.
30065 if test "${with_wmf+set}" = set; then :
30066 withval=$with_wmf; with_wmf=$withval
30072 if test "$with_wmf" != 'yes'; then
30073 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
30078 if test "$with_wmf" != 'no'; then
30079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30080 $as_echo "-------------------------------------------------------------" >&6; }
30081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
30082 $as_echo_n "checking for WMF... " >&6; }
30083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30087 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
30088 if test "x$ac_cv_header_libwmf_eps_h" = xyes; then :
30089 passed=`expr $passed + 1`
30091 failed=`expr $failed + 1`
30095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
30096 $as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
30097 if ${ac_cv_lib_wmf_wmf_eps_function+:} false; then :
30098 $as_echo_n "(cached) " >&6
30100 ac_check_lib_save_LIBS=$LIBS
30101 LIBS="-lwmf "-lwmflite" $LIBS"
30102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30103 /* end confdefs.h. */
30105 /* Override any GCC internal prototype to avoid an error.
30106 Use char because int might match the return type of a GCC
30107 builtin and then its argument prototype would still apply. */
30111 char wmf_eps_function ();
30115 return wmf_eps_function ();
30120 if ac_fn_c_try_link "$LINENO"; then :
30121 ac_cv_lib_wmf_wmf_eps_function=yes
30123 ac_cv_lib_wmf_wmf_eps_function=no
30125 rm -f core conftest.err conftest.$ac_objext \
30126 conftest$ac_exeext conftest.$ac_ext
30127 LIBS=$ac_check_lib_save_LIBS
30129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
30130 $as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
30131 if test "x$ac_cv_lib_wmf_wmf_eps_function" = xyes; then :
30132 passed=`expr $passed + 1`
30134 failed=`expr $failed + 1`
30137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
30138 $as_echo_n "checking if WMF package is complete... " >&6; }
30139 if test $passed -gt 0; then
30140 if test $failed -gt 0; then
30141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30142 $as_echo "no -- some components failed test" >&6; }
30143 have_wmf='no (failed tests)'
30145 WMF_LIBS='-lwmf -lwmflite'
30146 LIBS="$WMF_LIBS $LIBS"
30148 $as_echo "#define WMF_DELEGATE 1" >>confdefs.h
30150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30151 $as_echo "yes" >&6; }
30155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30156 $as_echo "no" >&6; }
30159 if test "$have_wmf" = 'yes'; then
30161 WMF_DELEGATE_FALSE='#'
30163 WMF_DELEGATE_TRUE='#'
30164 WMF_DELEGATE_FALSE=
30173 # Check for XML delegate library.
30176 # Check whether --with-xml was given.
30177 if test "${with_xml+set}" = set; then :
30178 withval=$with_xml; with_xml=$withval
30184 if test "$with_xml" != 'yes' ; then
30185 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
30190 if test "$with_xml" != 'no'; then
30191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30192 $as_echo "-------------------------------------------------------------" >&6; }
30193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
30194 $as_echo_n "checking for XML... " >&6; }
30195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30197 PERSIST_LDFLAGS=$LDFLAGS
30198 PERSIST_CPPFLAGS=$CPPFLAGS
30200 for ac_prog in xml2-config
30202 # Extract the first word of "$ac_prog", so it can be a program name with args.
30203 set dummy $ac_prog; ac_word=$2
30204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30205 $as_echo_n "checking for $ac_word... " >&6; }
30206 if ${ac_cv_prog_xml2_config+:} false; then :
30207 $as_echo_n "(cached) " >&6
30209 if test -n "$xml2_config"; then
30210 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
30212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30213 for as_dir in $PATH
30216 test -z "$as_dir" && as_dir=.
30217 for ac_exec_ext in '' $ac_executable_extensions; do
30218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30219 ac_cv_prog_xml2_config="$ac_prog"
30220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30229 xml2_config=$ac_cv_prog_xml2_config
30230 if test -n "$xml2_config"; then
30231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
30232 $as_echo "$xml2_config" >&6; }
30234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30235 $as_echo "no" >&6; }
30239 test -n "$xml2_config" && break
30241 if test -n "$xml2_config"; then
30242 # Debian installs libxml headers under /usr/include/libxml2/libxml with
30243 # the shared library installed under /usr/lib, whereas the package
30244 # installs itself under $prefix/libxml and $prefix/lib.
30245 xml2_prefix=`xml2-config --prefix`
30246 if test -d "${xml2_prefix}/include/libxml2"; then
30247 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
30249 if test "${xml2_prefix}" != '/usr'; then
30250 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
30255 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
30256 if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
30257 passed=`expr $passed + 1`
30259 failed=`expr $failed + 1`
30263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
30264 $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
30265 if ${ac_cv_lib_xml2_xmlParseExternalEntity+:} false; then :
30266 $as_echo_n "(cached) " >&6
30268 ac_check_lib_save_LIBS=$LIBS
30269 LIBS="-lxml2 $LIBS"
30270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30271 /* end confdefs.h. */
30273 /* Override any GCC internal prototype to avoid an error.
30274 Use char because int might match the return type of a GCC
30275 builtin and then its argument prototype would still apply. */
30279 char xmlParseExternalEntity ();
30283 return xmlParseExternalEntity ();
30288 if ac_fn_c_try_link "$LINENO"; then :
30289 ac_cv_lib_xml2_xmlParseExternalEntity=yes
30291 ac_cv_lib_xml2_xmlParseExternalEntity=no
30293 rm -f core conftest.err conftest.$ac_objext \
30294 conftest$ac_exeext conftest.$ac_ext
30295 LIBS=$ac_check_lib_save_LIBS
30297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
30298 $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
30299 if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = xyes; then :
30300 passed=`expr $passed + 1`
30302 failed=`expr $failed + 1`
30305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
30306 $as_echo_n "checking if XML package is complete... " >&6; }
30307 if test $passed -gt 0; then
30308 if test $failed -gt 0; then
30309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
30310 $as_echo "no -- some components failed test" >&6; }
30311 have_xml='no (failed tests)'
30312 LDFLAGS="$PERSIST_LDFLAGS"
30313 CPPFLAGS="$PERSIST_CPPFLAGS"
30316 LIBS="$XML_LIBS $LIBS"
30318 $as_echo "#define XML_DELEGATE 1" >>confdefs.h
30320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30321 $as_echo "yes" >&6; }
30325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30326 $as_echo "no" >&6; }
30329 if test "$have_xml" = 'yes'; then
30331 XML_DELEGATE_FALSE='#'
30333 XML_DELEGATE_TRUE='#'
30334 XML_DELEGATE_FALSE=
30340 # Substitute compiler name to build/link PerlMagick
30345 # Configure install Paths
30348 # Subdirectory under lib to place ImageMagick lib files
30349 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
30351 cat >>confdefs.h <<_ACEOF
30352 #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
30356 # Path to ImageMagick bin directory
30357 EXECUTABLE_PATH="${BIN_DIR}"
30358 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
30359 case "${build_os}" in
30361 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
30365 cat >>confdefs.h <<_ACEOF
30366 #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
30371 # Path to ImageMagick lib
30372 LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
30373 DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
30374 case "${build_os}" in
30376 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
30380 cat >>confdefs.h <<_ACEOF
30381 #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
30387 # Subdirectory under lib to place ImageMagick coder module files
30388 CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
30390 cat >>confdefs.h <<_ACEOF
30391 #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
30394 CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
30395 DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
30396 case "${build_os}" in
30398 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
30402 cat >>confdefs.h <<_ACEOF
30403 #define CODER_PATH "$DEFINE_CODER_PATH"
30409 # Subdirectory under lib to place ImageMagick filter module files
30410 FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
30412 cat >>confdefs.h <<_ACEOF
30413 #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
30416 FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
30417 DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
30418 case "${build_os}" in
30420 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
30424 cat >>confdefs.h <<_ACEOF
30425 #define FILTER_PATH "$DEFINE_FILTER_PATH"
30431 # Path to ImageMagick documentation files
30432 DOCUMENTATION_RELATIVE_PATH=""
30433 DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
30434 DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
30435 case "${build_os}" in
30437 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
30441 cat >>confdefs.h <<_ACEOF
30442 #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
30448 # Path to ImageMagick share files
30449 SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
30450 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
30451 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
30452 case "${build_os}" in
30454 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
30458 cat >>confdefs.h <<_ACEOF
30459 #define SHARE_PATH "$DEFINE_SHARE_PATH"
30464 # Subdirectory to place ImageMagick configuration files
30465 CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
30467 cat >>confdefs.h <<_ACEOF
30468 #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
30471 CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
30472 DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
30473 case "${build_os}" in
30475 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
30479 cat >>confdefs.h <<_ACEOF
30480 #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
30485 # Subdirectory to place ImageMagick configuration files
30486 SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
30488 cat >>confdefs.h <<_ACEOF
30489 #define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
30492 SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
30493 DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
30494 case "${build_os}" in
30496 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
30500 cat >>confdefs.h <<_ACEOF
30501 #define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
30507 # program_transform_name is formed for use in a Makefile, so create a
30508 # modified version for use in a shell script.
30509 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
30511 # Default delegate definitions
30512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30513 $as_echo "-------------------------------------------------------------" >&6; }
30514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
30515 $as_echo_n "checking for ImageMagick delegate programs... " >&6; }
30516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30518 AutotraceDecodeDelegateDefault='autotrace'
30519 BlenderDecodeDelegateDefault='blender'
30520 BZIPDelegateDefault='bzip2'
30521 BrowseDelegateDefault='xdg-open'
30522 CGMDecodeDelegateDefault='ralcgm'
30523 CatDelegateDefault='cat'
30524 DNGDecodeDelegateDefault='ufraw-batch'
30525 GVCDecodeDelegateDefault='dot'
30526 DVIDecodeDelegateDefault='dvips'
30527 EchoDelegateDefault='echo'
30528 EditorDelegateDefault='xterm'
30529 FIGDecodeDelegateDefault='fig2dev'
30530 ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
30531 DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
30532 MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
30533 GnuplotDecodeDelegateDefault='gnuplot'
30534 HPGLDecodeDelegateDefault='hp2xx'
30535 HTMLDecodeDelegateDefault='html2ps'
30536 ILBMDecodeDelegateDefault='ilbmtoppm'
30537 ILBMEncodeDelegateDefault='ppmtoilbm'
30538 LPDelegateDefault='lp'
30539 LPRDelegateDefault='lpr'
30540 LZWDecodeDelegateDefault='uncompress'
30541 LZWEncodeDelegateDefault='compress'
30542 LaunchDelegateDefault='gimp'
30543 MANDelegateDefault='groff'
30544 MPEGDecodeDelegateDefault='ffmpeg'
30545 MPEGEncodeDelegateDefault='ffmpeg'
30546 MrSIDDecodeDelegateDefault='mrsidgeodecode'
30547 MVDelegateDefault='mv'
30548 PCLDelegateDefault='pcl6'
30549 PGPDecodeDelegateDefault='pgpv'
30550 POVDelegateDefault='povray'
30551 if test "$native_win32_build" = 'yes'; then
30552 PSDelegateDefault='gswin32c'
30553 elif test "$gslib_framework" = 'yes'; then
30554 PSDelegateDefault='gsc'
30556 PSDelegateDefault='gs'
30558 RLEEncodeDelegateDefault='rawtorle'
30559 RMDelegateDefault='rm'
30560 RSVGDecodeDelegateDefault='rsvg'
30561 SCANDecodeDelegateDefault='scanimage'
30562 TXTDelegateDefault='enscript'
30563 UniconvertorDelegateDefault='uniconvertor'
30564 WMFDecodeDelegateDefault='wmf2eps'
30565 WWWDecodeDelegateDefault='curl'
30566 XPSDelegateDefault='gxps'
30567 ZipDelegateDefault='gzip'
30569 # Search for delegates
30570 # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
30571 set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
30572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30573 $as_echo_n "checking for $ac_word... " >&6; }
30574 if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
30575 $as_echo_n "(cached) " >&6
30577 case $AutotraceDecodeDelegate in
30579 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
30582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30583 for as_dir in $PATH
30586 test -z "$as_dir" && as_dir=.
30587 for ac_exec_ext in '' $ac_executable_extensions; do
30588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30589 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30597 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
30601 AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
30602 if test -n "$AutotraceDecodeDelegate"; then
30603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
30604 $as_echo "$AutotraceDecodeDelegate" >&6; }
30606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30607 $as_echo "no" >&6; }
30611 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
30612 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
30613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30614 $as_echo_n "checking for $ac_word... " >&6; }
30615 if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
30616 $as_echo_n "(cached) " >&6
30618 case $BlenderDecodeDelegate in
30620 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
30623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30624 for as_dir in $PATH
30627 test -z "$as_dir" && as_dir=.
30628 for ac_exec_ext in '' $ac_executable_extensions; do
30629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30630 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30638 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
30642 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
30643 if test -n "$BlenderDecodeDelegate"; then
30644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
30645 $as_echo "$BlenderDecodeDelegate" >&6; }
30647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30648 $as_echo "no" >&6; }
30652 # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
30653 set dummy "$BZIPDelegateDefault"; ac_word=$2
30654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30655 $as_echo_n "checking for $ac_word... " >&6; }
30656 if ${ac_cv_path_BZIPDelegate+:} false; then :
30657 $as_echo_n "(cached) " >&6
30659 case $BZIPDelegate in
30661 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
30664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30665 for as_dir in $PATH
30668 test -z "$as_dir" && as_dir=.
30669 for ac_exec_ext in '' $ac_executable_extensions; do
30670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30671 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
30672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30679 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
30683 BZIPDelegate=$ac_cv_path_BZIPDelegate
30684 if test -n "$BZIPDelegate"; then
30685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
30686 $as_echo "$BZIPDelegate" >&6; }
30688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30689 $as_echo "no" >&6; }
30693 # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
30694 set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
30695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30696 $as_echo_n "checking for $ac_word... " >&6; }
30697 if ${ac_cv_path_BrowseDelegate+:} false; then :
30698 $as_echo_n "(cached) " >&6
30700 case $BrowseDelegate in
30702 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
30705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30706 for as_dir in $PATH
30709 test -z "$as_dir" && as_dir=.
30710 for ac_exec_ext in '' $ac_executable_extensions; do
30711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30712 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
30713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30720 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
30724 BrowseDelegate=$ac_cv_path_BrowseDelegate
30725 if test -n "$BrowseDelegate"; then
30726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
30727 $as_echo "$BrowseDelegate" >&6; }
30729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30730 $as_echo "no" >&6; }
30734 # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
30735 set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
30736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30737 $as_echo_n "checking for $ac_word... " >&6; }
30738 if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
30739 $as_echo_n "(cached) " >&6
30741 case $CGMDecodeDelegate in
30743 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
30746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30747 for as_dir in $PATH
30750 test -z "$as_dir" && as_dir=.
30751 for ac_exec_ext in '' $ac_executable_extensions; do
30752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30753 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30761 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
30765 CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
30766 if test -n "$CGMDecodeDelegate"; then
30767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
30768 $as_echo "$CGMDecodeDelegate" >&6; }
30770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30771 $as_echo "no" >&6; }
30775 # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
30776 set dummy "$CatDelegateDefault"; ac_word=$2
30777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30778 $as_echo_n "checking for $ac_word... " >&6; }
30779 if ${ac_cv_path_CatDelegate+:} false; then :
30780 $as_echo_n "(cached) " >&6
30782 case $CatDelegate in
30784 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
30787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30788 for as_dir in $PATH
30791 test -z "$as_dir" && as_dir=.
30792 for ac_exec_ext in '' $ac_executable_extensions; do
30793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30794 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
30795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30802 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
30806 CatDelegate=$ac_cv_path_CatDelegate
30807 if test -n "$CatDelegate"; then
30808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
30809 $as_echo "$CatDelegate" >&6; }
30811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30812 $as_echo "no" >&6; }
30816 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
30817 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
30818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30819 $as_echo_n "checking for $ac_word... " >&6; }
30820 if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
30821 $as_echo_n "(cached) " >&6
30823 case $DNGDecodeDelegate in
30825 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
30828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30829 for as_dir in $PATH
30832 test -z "$as_dir" && as_dir=.
30833 for ac_exec_ext in '' $ac_executable_extensions; do
30834 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30835 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30843 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
30847 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
30848 if test -n "$DNGDecodeDelegate"; then
30849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
30850 $as_echo "$DNGDecodeDelegate" >&6; }
30852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30853 $as_echo "no" >&6; }
30857 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
30858 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
30859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30860 $as_echo_n "checking for $ac_word... " >&6; }
30861 if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
30862 $as_echo_n "(cached) " >&6
30864 case $GVCDecodeDelegate in
30866 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
30869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30870 for as_dir in $PATH
30873 test -z "$as_dir" && as_dir=.
30874 for ac_exec_ext in '' $ac_executable_extensions; do
30875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30876 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30884 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
30888 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
30889 if test -n "$GVCDecodeDelegate"; then
30890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
30891 $as_echo "$GVCDecodeDelegate" >&6; }
30893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30894 $as_echo "no" >&6; }
30898 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
30899 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
30900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30901 $as_echo_n "checking for $ac_word... " >&6; }
30902 if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
30903 $as_echo_n "(cached) " >&6
30905 case $DVIDecodeDelegate in
30907 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
30910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30911 for as_dir in $PATH
30914 test -z "$as_dir" && as_dir=.
30915 for ac_exec_ext in '' $ac_executable_extensions; do
30916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30917 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30925 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30929 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30930 if test -n "$DVIDecodeDelegate"; then
30931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
30932 $as_echo "$DVIDecodeDelegate" >&6; }
30934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30935 $as_echo "no" >&6; }
30939 # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30940 set dummy "$EchoDelegateDefault"; ac_word=$2
30941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30942 $as_echo_n "checking for $ac_word... " >&6; }
30943 if ${ac_cv_path_EchoDelegate+:} false; then :
30944 $as_echo_n "(cached) " >&6
30946 case $EchoDelegate in
30948 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30952 for as_dir in $PATH
30955 test -z "$as_dir" && as_dir=.
30956 for ac_exec_ext in '' $ac_executable_extensions; do
30957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30958 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
30959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30966 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30970 EchoDelegate=$ac_cv_path_EchoDelegate
30971 if test -n "$EchoDelegate"; then
30972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
30973 $as_echo "$EchoDelegate" >&6; }
30975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30976 $as_echo "no" >&6; }
30980 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30981 set dummy "$EditorDelegateDefault"; ac_word=$2
30982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30983 $as_echo_n "checking for $ac_word... " >&6; }
30984 if ${ac_cv_path_EditorDelegate+:} false; then :
30985 $as_echo_n "(cached) " >&6
30987 case $EditorDelegate in
30989 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30993 for as_dir in $PATH
30996 test -z "$as_dir" && as_dir=.
30997 for ac_exec_ext in '' $ac_executable_extensions; do
30998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30999 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
31000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31007 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
31011 EditorDelegate=$ac_cv_path_EditorDelegate
31012 if test -n "$EditorDelegate"; then
31013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
31014 $as_echo "$EditorDelegate" >&6; }
31016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31017 $as_echo "no" >&6; }
31021 # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
31022 set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
31023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31024 $as_echo_n "checking for $ac_word... " >&6; }
31025 if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
31026 $as_echo_n "(cached) " >&6
31028 case $FIGDecodeDelegate in
31030 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
31033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31034 for as_dir in $PATH
31037 test -z "$as_dir" && as_dir=.
31038 for ac_exec_ext in '' $ac_executable_extensions; do
31039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31040 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31048 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
31052 FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
31053 if test -n "$FIGDecodeDelegate"; then
31054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
31055 $as_echo "$FIGDecodeDelegate" >&6; }
31057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31058 $as_echo "no" >&6; }
31062 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
31063 set dummy "$ConvertDelegateDefault"; ac_word=$2
31064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31065 $as_echo_n "checking for $ac_word... " >&6; }
31066 if ${ac_cv_path_ConvertDelegate+:} false; then :
31067 $as_echo_n "(cached) " >&6
31069 case $ConvertDelegate in
31071 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
31074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31075 for as_dir in $PATH
31078 test -z "$as_dir" && as_dir=.
31079 for ac_exec_ext in '' $ac_executable_extensions; do
31080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31081 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
31082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31089 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
31093 ConvertDelegate=$ac_cv_path_ConvertDelegate
31094 if test -n "$ConvertDelegate"; then
31095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
31096 $as_echo "$ConvertDelegate" >&6; }
31098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31099 $as_echo "no" >&6; }
31103 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
31104 set dummy "$DisplayDelegateDefault"; ac_word=$2
31105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31106 $as_echo_n "checking for $ac_word... " >&6; }
31107 if ${ac_cv_path_DisplayDelegate+:} false; then :
31108 $as_echo_n "(cached) " >&6
31110 case $DisplayDelegate in
31112 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
31115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31116 for as_dir in $PATH
31119 test -z "$as_dir" && as_dir=.
31120 for ac_exec_ext in '' $ac_executable_extensions; do
31121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31122 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
31123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31130 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
31134 DisplayDelegate=$ac_cv_path_DisplayDelegate
31135 if test -n "$DisplayDelegate"; then
31136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
31137 $as_echo "$DisplayDelegate" >&6; }
31139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31140 $as_echo "no" >&6; }
31144 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
31145 set dummy "$MogrifyDelegateDefault"; ac_word=$2
31146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31147 $as_echo_n "checking for $ac_word... " >&6; }
31148 if ${ac_cv_path_MogrifyDelegate+:} false; then :
31149 $as_echo_n "(cached) " >&6
31151 case $MogrifyDelegate in
31153 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
31156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31157 for as_dir in $PATH
31160 test -z "$as_dir" && as_dir=.
31161 for ac_exec_ext in '' $ac_executable_extensions; do
31162 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31163 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
31164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31171 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
31175 MogrifyDelegate=$ac_cv_path_MogrifyDelegate
31176 if test -n "$MogrifyDelegate"; then
31177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
31178 $as_echo "$MogrifyDelegate" >&6; }
31180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31181 $as_echo "no" >&6; }
31185 # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
31186 set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
31187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31188 $as_echo_n "checking for $ac_word... " >&6; }
31189 if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
31190 $as_echo_n "(cached) " >&6
31192 case $GnuplotDecodeDelegate in
31194 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
31197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31198 for as_dir in $PATH
31201 test -z "$as_dir" && as_dir=.
31202 for ac_exec_ext in '' $ac_executable_extensions; do
31203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31204 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31212 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
31216 GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
31217 if test -n "$GnuplotDecodeDelegate"; then
31218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
31219 $as_echo "$GnuplotDecodeDelegate" >&6; }
31221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31222 $as_echo "no" >&6; }
31226 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
31227 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
31228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31229 $as_echo_n "checking for $ac_word... " >&6; }
31230 if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
31231 $as_echo_n "(cached) " >&6
31233 case $HPGLDecodeDelegate in
31235 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
31238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31239 for as_dir in $PATH
31242 test -z "$as_dir" && as_dir=.
31243 for ac_exec_ext in '' $ac_executable_extensions; do
31244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31245 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31253 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
31257 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
31258 if test -n "$HPGLDecodeDelegate"; then
31259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
31260 $as_echo "$HPGLDecodeDelegate" >&6; }
31262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31263 $as_echo "no" >&6; }
31267 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
31268 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
31269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31270 $as_echo_n "checking for $ac_word... " >&6; }
31271 if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
31272 $as_echo_n "(cached) " >&6
31274 case $HTMLDecodeDelegate in
31276 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
31279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31280 for as_dir in $PATH
31283 test -z "$as_dir" && as_dir=.
31284 for ac_exec_ext in '' $ac_executable_extensions; do
31285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31286 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31294 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
31298 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
31299 if test -n "$HTMLDecodeDelegate"; then
31300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
31301 $as_echo "$HTMLDecodeDelegate" >&6; }
31303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31304 $as_echo "no" >&6; }
31308 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
31309 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
31310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31311 $as_echo_n "checking for $ac_word... " >&6; }
31312 if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
31313 $as_echo_n "(cached) " >&6
31315 case $ILBMDecodeDelegate in
31317 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
31320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31321 for as_dir in $PATH
31324 test -z "$as_dir" && as_dir=.
31325 for ac_exec_ext in '' $ac_executable_extensions; do
31326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31327 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31335 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
31339 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
31340 if test -n "$ILBMDecodeDelegate"; then
31341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
31342 $as_echo "$ILBMDecodeDelegate" >&6; }
31344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31345 $as_echo "no" >&6; }
31349 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
31350 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
31351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31352 $as_echo_n "checking for $ac_word... " >&6; }
31353 if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
31354 $as_echo_n "(cached) " >&6
31356 case $ILBMEncodeDelegate in
31358 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
31361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31362 for as_dir in $PATH
31365 test -z "$as_dir" && as_dir=.
31366 for ac_exec_ext in '' $ac_executable_extensions; do
31367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31368 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31376 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
31380 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
31381 if test -n "$ILBMEncodeDelegate"; then
31382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
31383 $as_echo "$ILBMEncodeDelegate" >&6; }
31385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31386 $as_echo "no" >&6; }
31390 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
31391 set dummy "$LPDelegateDefault"; ac_word=$2
31392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31393 $as_echo_n "checking for $ac_word... " >&6; }
31394 if ${ac_cv_path_LPDelegate+:} false; then :
31395 $as_echo_n "(cached) " >&6
31397 case $LPDelegate in
31399 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
31402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31403 for as_dir in $PATH
31406 test -z "$as_dir" && as_dir=.
31407 for ac_exec_ext in '' $ac_executable_extensions; do
31408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31409 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
31410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31417 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
31421 LPDelegate=$ac_cv_path_LPDelegate
31422 if test -n "$LPDelegate"; then
31423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
31424 $as_echo "$LPDelegate" >&6; }
31426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31427 $as_echo "no" >&6; }
31431 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
31432 set dummy "$LPRDelegateDefault"; ac_word=$2
31433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31434 $as_echo_n "checking for $ac_word... " >&6; }
31435 if ${ac_cv_path_LPRDelegate+:} false; then :
31436 $as_echo_n "(cached) " >&6
31438 case $LPRDelegate in
31440 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
31443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31444 for as_dir in $PATH
31447 test -z "$as_dir" && as_dir=.
31448 for ac_exec_ext in '' $ac_executable_extensions; do
31449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31450 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
31451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31458 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
31462 LPRDelegate=$ac_cv_path_LPRDelegate
31463 if test -n "$LPRDelegate"; then
31464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
31465 $as_echo "$LPRDelegate" >&6; }
31467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31468 $as_echo "no" >&6; }
31472 # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
31473 set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
31474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31475 $as_echo_n "checking for $ac_word... " >&6; }
31476 if ${ac_cv_path_LZWDecodeDelegate+:} false; then :
31477 $as_echo_n "(cached) " >&6
31479 case $LZWDecodeDelegate in
31481 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
31484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31485 for as_dir in $PATH
31488 test -z "$as_dir" && as_dir=.
31489 for ac_exec_ext in '' $ac_executable_extensions; do
31490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31491 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31499 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
31503 LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
31504 if test -n "$LZWDecodeDelegate"; then
31505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
31506 $as_echo "$LZWDecodeDelegate" >&6; }
31508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31509 $as_echo "no" >&6; }
31513 # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
31514 set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
31515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31516 $as_echo_n "checking for $ac_word... " >&6; }
31517 if ${ac_cv_path_LZWEncodeDelegate+:} false; then :
31518 $as_echo_n "(cached) " >&6
31520 case $LZWEncodeDelegate in
31522 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
31525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31526 for as_dir in $PATH
31529 test -z "$as_dir" && as_dir=.
31530 for ac_exec_ext in '' $ac_executable_extensions; do
31531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31532 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31540 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
31544 LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
31545 if test -n "$LZWEncodeDelegate"; then
31546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
31547 $as_echo "$LZWEncodeDelegate" >&6; }
31549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31550 $as_echo "no" >&6; }
31554 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
31555 set dummy "$LaunchDelegateDefault"; ac_word=$2
31556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31557 $as_echo_n "checking for $ac_word... " >&6; }
31558 if ${ac_cv_path_LaunchDelegate+:} false; then :
31559 $as_echo_n "(cached) " >&6
31561 case $LaunchDelegate in
31563 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
31566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31567 for as_dir in $PATH
31570 test -z "$as_dir" && as_dir=.
31571 for ac_exec_ext in '' $ac_executable_extensions; do
31572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31573 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
31574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31581 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
31585 LaunchDelegate=$ac_cv_path_LaunchDelegate
31586 if test -n "$LaunchDelegate"; then
31587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
31588 $as_echo "$LaunchDelegate" >&6; }
31590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31591 $as_echo "no" >&6; }
31595 # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
31596 set dummy "$MANDelegateDefault"; ac_word=$2
31597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31598 $as_echo_n "checking for $ac_word... " >&6; }
31599 if ${ac_cv_path_MANDelegate+:} false; then :
31600 $as_echo_n "(cached) " >&6
31602 case $MANDelegate in
31604 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
31607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31608 for as_dir in $PATH
31611 test -z "$as_dir" && as_dir=.
31612 for ac_exec_ext in '' $ac_executable_extensions; do
31613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31614 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
31615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31622 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
31626 MANDelegate=$ac_cv_path_MANDelegate
31627 if test -n "$MANDelegate"; then
31628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
31629 $as_echo "$MANDelegate" >&6; }
31631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31632 $as_echo "no" >&6; }
31636 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
31637 set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
31638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31639 $as_echo_n "checking for $ac_word... " >&6; }
31640 if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
31641 $as_echo_n "(cached) " >&6
31643 case $MPEGDecodeDelegate in
31645 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
31648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31649 for as_dir in $PATH
31652 test -z "$as_dir" && as_dir=.
31653 for ac_exec_ext in '' $ac_executable_extensions; do
31654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31655 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31663 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
31667 MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
31668 if test -n "$MPEGDecodeDelegate"; then
31669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
31670 $as_echo "$MPEGDecodeDelegate" >&6; }
31672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31673 $as_echo "no" >&6; }
31677 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
31678 set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
31679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31680 $as_echo_n "checking for $ac_word... " >&6; }
31681 if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
31682 $as_echo_n "(cached) " >&6
31684 case $MPEGEncodeDelegate in
31686 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
31689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31690 for as_dir in $PATH
31693 test -z "$as_dir" && as_dir=.
31694 for ac_exec_ext in '' $ac_executable_extensions; do
31695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31696 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31704 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
31708 MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
31709 if test -n "$MPEGEncodeDelegate"; then
31710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
31711 $as_echo "$MPEGEncodeDelegate" >&6; }
31713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31714 $as_echo "no" >&6; }
31718 # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
31719 set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
31720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31721 $as_echo_n "checking for $ac_word... " >&6; }
31722 if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
31723 $as_echo_n "(cached) " >&6
31725 case $MrSIDDecodeDelegate in
31727 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
31730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31731 for as_dir in $PATH
31734 test -z "$as_dir" && as_dir=.
31735 for ac_exec_ext in '' $ac_executable_extensions; do
31736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31737 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31745 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
31749 MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
31750 if test -n "$MrSIDDecodeDelegate"; then
31751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
31752 $as_echo "$MrSIDDecodeDelegate" >&6; }
31754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31755 $as_echo "no" >&6; }
31759 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
31760 set dummy "$MVDelegateDefault"; ac_word=$2
31761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31762 $as_echo_n "checking for $ac_word... " >&6; }
31763 if ${ac_cv_path_MVDelegate+:} false; then :
31764 $as_echo_n "(cached) " >&6
31766 case $MVDelegate in
31768 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
31771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31772 for as_dir in $PATH
31775 test -z "$as_dir" && as_dir=.
31776 for ac_exec_ext in '' $ac_executable_extensions; do
31777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31778 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
31779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31786 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
31790 MVDelegate=$ac_cv_path_MVDelegate
31791 if test -n "$MVDelegate"; then
31792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
31793 $as_echo "$MVDelegate" >&6; }
31795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31796 $as_echo "no" >&6; }
31800 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
31801 set dummy "$PCLDelegateDefault"; ac_word=$2
31802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31803 $as_echo_n "checking for $ac_word... " >&6; }
31804 if ${ac_cv_path_PCLDelegate+:} false; then :
31805 $as_echo_n "(cached) " >&6
31807 case $PCLDelegate in
31809 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
31812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31813 for as_dir in $PATH
31816 test -z "$as_dir" && as_dir=.
31817 for ac_exec_ext in '' $ac_executable_extensions; do
31818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31819 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
31820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31827 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
31831 PCLDelegate=$ac_cv_path_PCLDelegate
31832 if test -n "$PCLDelegate"; then
31833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
31834 $as_echo "$PCLDelegate" >&6; }
31836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31837 $as_echo "no" >&6; }
31841 # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
31842 set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
31843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31844 $as_echo_n "checking for $ac_word... " >&6; }
31845 if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
31846 $as_echo_n "(cached) " >&6
31848 case $PGPDecodeDelegate in
31850 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
31853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31854 for as_dir in $PATH
31857 test -z "$as_dir" && as_dir=.
31858 for ac_exec_ext in '' $ac_executable_extensions; do
31859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31860 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31868 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
31872 PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
31873 if test -n "$PGPDecodeDelegate"; then
31874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
31875 $as_echo "$PGPDecodeDelegate" >&6; }
31877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31878 $as_echo "no" >&6; }
31882 # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
31883 set dummy "$POVDelegateDefault"; ac_word=$2
31884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31885 $as_echo_n "checking for $ac_word... " >&6; }
31886 if ${ac_cv_path_POVDelegate+:} false; then :
31887 $as_echo_n "(cached) " >&6
31889 case $POVDelegate in
31891 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
31894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31895 for as_dir in $PATH
31898 test -z "$as_dir" && as_dir=.
31899 for ac_exec_ext in '' $ac_executable_extensions; do
31900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31901 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
31902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31909 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31913 POVDelegate=$ac_cv_path_POVDelegate
31914 if test -n "$POVDelegate"; then
31915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
31916 $as_echo "$POVDelegate" >&6; }
31918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31919 $as_echo "no" >&6; }
31923 for ac_prog in gsx gsc "$PSDelegateDefault"
31925 # Extract the first word of "$ac_prog", so it can be a program name with args.
31926 set dummy $ac_prog; ac_word=$2
31927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31928 $as_echo_n "checking for $ac_word... " >&6; }
31929 if ${ac_cv_path_PSDelegate+:} false; then :
31930 $as_echo_n "(cached) " >&6
31932 case $PSDelegate in
31934 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31938 for as_dir in $PATH
31941 test -z "$as_dir" && as_dir=.
31942 for ac_exec_ext in '' $ac_executable_extensions; do
31943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31944 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
31945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31955 PSDelegate=$ac_cv_path_PSDelegate
31956 if test -n "$PSDelegate"; then
31957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
31958 $as_echo "$PSDelegate" >&6; }
31960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31961 $as_echo "no" >&6; }
31965 test -n "$PSDelegate" && break
31967 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31969 # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31970 set dummy "$RLEEncodeDelegateDefault"; 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_RLEEncodeDelegate+:} false; then :
31974 $as_echo_n "(cached) " >&6
31976 case $RLEEncodeDelegate in
31978 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # 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_RLEEncodeDelegate="$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_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
32000 RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
32001 if test -n "$RLEEncodeDelegate"; then
32002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
32003 $as_echo "$RLEEncodeDelegate" >&6; }
32005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32006 $as_echo "no" >&6; }
32010 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
32011 set dummy "$RMDelegateDefault"; 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_RMDelegate+:} false; then :
32015 $as_echo_n "(cached) " >&6
32017 case $RMDelegate in
32019 ac_cv_path_RMDelegate="$RMDelegate" # 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_RMDelegate="$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_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
32041 RMDelegate=$ac_cv_path_RMDelegate
32042 if test -n "$RMDelegate"; then
32043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
32044 $as_echo "$RMDelegate" >&6; }
32046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32047 $as_echo "no" >&6; }
32051 # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
32052 set dummy "$RSVGDecodeDelegateDefault"; 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_RSVGDecodeDelegate+:} false; then :
32056 $as_echo_n "(cached) " >&6
32058 case $RSVGDecodeDelegate in
32060 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # 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_RSVGDecodeDelegate="$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_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
32082 RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
32083 if test -n "$RSVGDecodeDelegate"; then
32084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
32085 $as_echo "$RSVGDecodeDelegate" >&6; }
32087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32088 $as_echo "no" >&6; }
32092 # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
32093 set dummy "$SCANDecodeDelegateDefault"; 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_SCANDecodeDelegate+:} false; then :
32097 $as_echo_n "(cached) " >&6
32099 case $SCANDecodeDelegate in
32101 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # 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_SCANDecodeDelegate="$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_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
32123 SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
32124 if test -n "$SCANDecodeDelegate"; then
32125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
32126 $as_echo "$SCANDecodeDelegate" >&6; }
32128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32129 $as_echo "no" >&6; }
32133 # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
32134 set dummy "$TXTDelegateDefault"; 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_TXTDelegate+:} false; then :
32138 $as_echo_n "(cached) " >&6
32140 case $TXTDelegate in
32142 ac_cv_path_TXTDelegate="$TXTDelegate" # 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_TXTDelegate="$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_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
32164 TXTDelegate=$ac_cv_path_TXTDelegate
32165 if test -n "$TXTDelegate"; then
32166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
32167 $as_echo "$TXTDelegate" >&6; }
32169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32170 $as_echo "no" >&6; }
32174 # Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
32175 set dummy "$UniconvertorDelegateDefault"; 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_UniconvertorDelegate+:} false; then :
32179 $as_echo_n "(cached) " >&6
32181 case $UniconvertorDelegate in
32183 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # 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_UniconvertorDelegate="$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_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
32205 UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
32206 if test -n "$UniconvertorDelegate"; then
32207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
32208 $as_echo "$UniconvertorDelegate" >&6; }
32210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32211 $as_echo "no" >&6; }
32215 # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
32216 set dummy "$WMFDecodeDelegateDefault"; 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_WMFDecodeDelegate+:} false; then :
32220 $as_echo_n "(cached) " >&6
32222 case $WMFDecodeDelegate in
32224 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # 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_WMFDecodeDelegate="$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_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
32246 WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
32247 if test -n "$WMFDecodeDelegate"; then
32248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
32249 $as_echo "$WMFDecodeDelegate" >&6; }
32251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32252 $as_echo "no" >&6; }
32256 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
32257 set dummy "$WWWDecodeDelegateDefault"; 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_WWWDecodeDelegate+:} false; then :
32261 $as_echo_n "(cached) " >&6
32263 case $WWWDecodeDelegate in
32265 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # 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_WWWDecodeDelegate="$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_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
32287 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
32288 if test -n "$WWWDecodeDelegate"; then
32289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
32290 $as_echo "$WWWDecodeDelegate" >&6; }
32292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32293 $as_echo "no" >&6; }
32297 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
32298 set dummy "$XPSDelegateDefault"; 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_XPSDelegate+:} false; then :
32302 $as_echo_n "(cached) " >&6
32304 case $XPSDelegate in
32306 ac_cv_path_XPSDelegate="$XPSDelegate" # 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_XPSDelegate="$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_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
32328 XPSDelegate=$ac_cv_path_XPSDelegate
32329 if test -n "$XPSDelegate"; then
32330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
32331 $as_echo "$XPSDelegate" >&6; }
32333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32334 $as_echo "no" >&6; }
32338 # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
32339 set dummy "$ZipDelegateDefault"; 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_ZipDelegate+:} false; then :
32343 $as_echo_n "(cached) " >&6
32345 case $ZipDelegate in
32347 ac_cv_path_ZipDelegate="$ZipDelegate" # 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_ZipDelegate="$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_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
32369 ZipDelegate=$ac_cv_path_ZipDelegate
32370 if test -n "$ZipDelegate"; then
32371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
32372 $as_echo "$ZipDelegate" >&6; }
32374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32375 $as_echo "no" >&6; }
32380 # Prefer lpr to lp; lp needs options tacked on.
32381 if test "$LPRDelegate" != no; then
32382 PrintDelegate="$LPRDelegate"
32384 PrintDelegate="$LPDelegate -c -s"
32388 # Installed ImageMagick utiltity paths
32389 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
32390 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
32391 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
32393 # Set delegate booleans
32394 have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
32395 have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
32396 have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
32397 have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
32398 have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
32399 have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
32400 have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
32401 have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
32402 have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
32403 have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
32406 # Test for font directories
32408 type_include_files=''
32411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
32412 $as_echo_n "checking for Dejavu fonts directory... " >&6; }
32414 if test "${with_dejavu_font_dir}" != 'default'; then
32415 dejavu_font_dir="${with_dejavu_font_dir}/"
32417 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
32418 if test -f "${font_dir}DejaVuSerif.ttf"; then
32419 dejavu_font_dir="${font_dir}"
32424 if test "${dejavu_font_dir}x" != 'x'; then
32425 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
32426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
32427 $as_echo "$dejavu_font_dir" >&6; }
32429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
32430 $as_echo "not found!" >&6; };
32435 windows_font_dir=''
32436 if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
32437 windows_font_dir="${with_windows_font_dir}/"
32439 if test "${windows_font_dir}x" != 'x'; then
32440 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
32441 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
32443 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
32444 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
32446 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
32447 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
32450 if test "${windows_font_dir}x" != 'x'; then
32451 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
32456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
32457 $as_echo_n "checking for Ghostscript fonts directory... " >&6; }
32458 ghostscript_font_dir=''
32459 if test "${with_gs_font_dir}" != 'default'; then
32460 ghostscript_font_dir="${with_gs_font_dir}/"
32462 if test "${native_win32_build}" = 'yes'; then
32463 # Native Windows Build
32464 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
32465 if test -f "${font_dir}a010013l.pfb"; then
32466 ghostscript_font_dir="$font_dir"
32470 if test "${PSDelegate}" != 'gswin32c'; then
32471 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
32474 # Linux / Mac OS X / Unix Build
32475 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
32476 if test -f "${font_dir}a010013l.pfb"; then
32477 ghostscript_font_dir="${font_dir}"
32481 if test "${ghostscript_font_dir}x" = 'x'; then
32482 if test "$PSDelegate" != 'gs'; then
32483 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
32488 if test "${ghostscript_font_dir}x" != 'x'; then
32489 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
32490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
32491 $as_echo "$ghostscript_font_dir" >&6; }
32493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
32494 $as_echo "not found!" >&6; };
32497 case "${build_os}" in
32499 PSDelegate=`$WinPathScript "$PSDelegate" 1`
32506 # Handle case where user doesn't want frozen paths
32508 if test "$with_frozenpaths" != 'yes'; then
32509 # Re-set delegate definitions to default (no paths)
32510 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
32511 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
32512 BZIPDelegate="$BZIPDelegateDefault"
32513 BrowseDelegate="$BrowseDelegateDefault"
32514 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
32515 CatDelegate="$CatDelegateDefault"
32516 ConvertDelegate="$ConvertDelegateDefault"
32517 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
32518 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
32519 EchoDelegate="$EchoDelegateDefault"
32520 EditorDelegate="$EditorDelegateDefault"
32521 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
32522 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
32523 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
32524 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
32525 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
32526 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
32527 LPDelegate="$LPDelegateDefault"
32528 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
32529 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
32530 LaunchDelegate="$LaunchDelegateDefault"
32531 MANDelegate="$MANDelegateDefault"
32532 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
32533 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
32534 MogrifyDelegate="$MogrifyDelegateDefault"
32535 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
32536 MVDelegate="$MVDelegateDefault"
32537 PCLDelegate="$PCLDelegateDefault"
32538 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
32539 POVDelegate="$POVDelegateDefault"
32540 PSDelegate="$PSDelegateDefault"
32541 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
32542 RMDelegate="$RMDelegateDefault"
32543 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
32544 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
32545 ShowImageDelegate="$ShowImageDelegateDefault"
32546 TXTDelegate="$TXTDelegateDefault"
32547 UniconvertorDelegate="$UniconvertorDelegateDefault"
32548 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
32549 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
32550 XPSDelegate="$XPSDelegateDefault"
32551 ZipDelegate="$ZipDelegateDefault"
32554 # Delegate substitutions
32601 for ac_prog in gnutar gtar tar
32603 # Extract the first word of "$ac_prog", so it can be a program name with args.
32604 set dummy $ac_prog; ac_word=$2
32605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32606 $as_echo_n "checking for $ac_word... " >&6; }
32607 if ${ac_cv_prog_TAR+:} false; then :
32608 $as_echo_n "(cached) " >&6
32610 if test -n "$TAR"; then
32611 ac_cv_prog_TAR="$TAR" # Let the user override the test.
32613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32614 for as_dir in $PATH
32617 test -z "$as_dir" && as_dir=.
32618 for ac_exec_ext in '' $ac_executable_extensions; do
32619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32620 ac_cv_prog_TAR="$ac_prog"
32621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32630 TAR=$ac_cv_prog_TAR
32631 if test -n "$TAR"; then
32632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
32633 $as_echo "$TAR" >&6; }
32635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32636 $as_echo "no" >&6; }
32640 test -n "$TAR" && break
32643 for ac_prog in perl
32645 # Extract the first word of "$ac_prog", so it can be a program name with args.
32646 set dummy $ac_prog; ac_word=$2
32647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32648 $as_echo_n "checking for $ac_word... " >&6; }
32649 if ${ac_cv_prog_PERL+:} false; then :
32650 $as_echo_n "(cached) " >&6
32652 if test -n "$PERL"; then
32653 ac_cv_prog_PERL="$PERL" # Let the user override the test.
32655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32656 for as_dir in $PATH
32659 test -z "$as_dir" && as_dir=.
32660 for ac_exec_ext in '' $ac_executable_extensions; do
32661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32662 ac_cv_prog_PERL="$ac_prog"
32663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32672 PERL=$ac_cv_prog_PERL
32673 if test -n "$PERL"; then
32674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
32675 $as_echo "$PERL" >&6; }
32677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32678 $as_echo "no" >&6; }
32682 test -n "$PERL" && break
32685 for ac_prog in rpmbuild rpm
32687 # Extract the first word of "$ac_prog", so it can be a program name with args.
32688 set dummy $ac_prog; ac_word=$2
32689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32690 $as_echo_n "checking for $ac_word... " >&6; }
32691 if ${ac_cv_prog_RPM+:} false; then :
32692 $as_echo_n "(cached) " >&6
32694 if test -n "$RPM"; then
32695 ac_cv_prog_RPM="$RPM" # Let the user override the test.
32697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32698 for as_dir in $PATH
32701 test -z "$as_dir" && as_dir=.
32702 for ac_exec_ext in '' $ac_executable_extensions; do
32703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32704 ac_cv_prog_RPM="$ac_prog"
32705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32714 RPM=$ac_cv_prog_RPM
32715 if test -n "$RPM"; then
32716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
32717 $as_echo "$RPM" >&6; }
32719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32720 $as_echo "no" >&6; }
32724 test -n "$RPM" && break
32728 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
32731 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
32734 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
32737 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
32740 if test "x$RPM" != "x" ; then
32742 RPM_DELEGATE_FALSE='#'
32744 RPM_DELEGATE_TRUE='#'
32745 RPM_DELEGATE_FALSE=
32750 # 7ZIP support (http://p7zip.sourceforge.net/)
32755 # Extract the first word of "$ac_prog", so it can be a program name with args.
32756 set dummy $ac_prog; ac_word=$2
32757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32758 $as_echo_n "checking for $ac_word... " >&6; }
32759 if ${ac_cv_prog_P7ZIP+:} false; then :
32760 $as_echo_n "(cached) " >&6
32762 if test -n "$P7ZIP"; then
32763 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
32765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32766 for as_dir in $PATH
32769 test -z "$as_dir" && as_dir=.
32770 for ac_exec_ext in '' $ac_executable_extensions; do
32771 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32772 ac_cv_prog_P7ZIP="$ac_prog"
32773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32782 P7ZIP=$ac_cv_prog_P7ZIP
32783 if test -n "$P7ZIP"; then
32784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
32785 $as_echo "$P7ZIP" >&6; }
32787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32788 $as_echo "no" >&6; }
32792 test -n "$P7ZIP" && break
32796 if test "x$P7ZIP" != "x" ; then
32797 P7ZIP_DELEGATE_TRUE=
32798 P7ZIP_DELEGATE_FALSE='#'
32800 P7ZIP_DELEGATE_TRUE='#'
32801 P7ZIP_DELEGATE_FALSE=
32806 # ZIP support (http://www.info-zip.org/Zip.html)
32811 # Extract the first word of "$ac_prog", so it can be a program name with args.
32812 set dummy $ac_prog; ac_word=$2
32813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32814 $as_echo_n "checking for $ac_word... " >&6; }
32815 if ${ac_cv_prog_ZIP+:} false; then :
32816 $as_echo_n "(cached) " >&6
32818 if test -n "$ZIP"; then
32819 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
32821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32822 for as_dir in $PATH
32825 test -z "$as_dir" && as_dir=.
32826 for ac_exec_ext in '' $ac_executable_extensions; do
32827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32828 ac_cv_prog_ZIP="$ac_prog"
32829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32838 ZIP=$ac_cv_prog_ZIP
32839 if test -n "$ZIP"; then
32840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
32841 $as_echo "$ZIP" >&6; }
32843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32844 $as_echo "no" >&6; }
32848 test -n "$ZIP" && break
32852 if test "x$ZIP" != "x" ; then
32854 ZIP_DELEGATE_FALSE='#'
32856 ZIP_DELEGATE_TRUE='#'
32857 ZIP_DELEGATE_FALSE=
32862 # GhostPCL related configuration.
32864 PCLColorDevice=ppmraw
32865 PCLCMYKDevice=bmpsep8
32866 PCLMonoDevice=pbmraw
32867 if test -z "$PCLVersion"; then
32868 PCLVersion='unknown'
32870 if test $have_pcl = 'yes'; then
32871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32872 $as_echo "-------------------------------------------------------------" >&6; }
32873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
32874 $as_echo_n "checking for PCL... " >&6; }
32875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
32879 $as_echo_n "checking for pcl color device... " >&6; }
32880 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32883 PCLColorDevice=ppmraw
32885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
32886 $as_echo "$PCLColorDevice" >&6; }
32889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
32890 $as_echo_n "checking for pcl CMYK device... " >&6; }
32891 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32894 PCLCMYKDevice=$PCLColorDevice
32896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
32897 $as_echo "$PCLCMYKDevice" >&6; }
32900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
32901 $as_echo_n "checking for pcl mono device... " >&6; }
32902 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32905 PCLMonoDevice=$PCLColorDevice
32907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
32908 $as_echo "$PCLMonoDevice" >&6; }
32917 # GhostXPS related configuration.
32919 XPSColorDevice=ppmraw
32920 XPSCMYKDevice=bmpsep8
32921 XPSMonoDevice=pbmraw
32922 if test -z "$XPSVersion"; then
32923 XPSVersion='unknown'
32925 if test $have_xps = 'yes'; then
32926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32927 $as_echo "-------------------------------------------------------------" >&6; }
32928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
32929 $as_echo_n "checking for XPS... " >&6; }
32930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
32934 $as_echo_n "checking for xps color device... " >&6; }
32935 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32938 XPSColorDevice=ppmraw
32940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
32941 $as_echo "$XPSColorDevice" >&6; }
32944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
32945 $as_echo_n "checking for xps CMYK device... " >&6; }
32946 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32949 XPSCMYKDevice=$XPSColorDevice
32951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
32952 $as_echo "$XPSCMYKDevice" >&6; }
32955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
32956 $as_echo_n "checking for xps mono device... " >&6; }
32957 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32960 XPSMonoDevice=$XPSColorDevice
32962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
32963 $as_echo "$XPSMonoDevice" >&6; }
32972 # Ghostscript related configuration.
32974 GSAlphaDevice=pngalpha
32975 GSColorDevice=pnmraw
32977 GSMonoDevice=pbmraw
32978 GSPDFDevice=pdfwrite
32980 GSEPSDevice=epswrite
32981 GSVersion='unknown'
32982 if test $have_gs = 'yes'; then
32983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32984 $as_echo "-------------------------------------------------------------" >&6; }
32985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
32986 $as_echo_n "checking for Ghostscript... " >&6; }
32987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
32990 $as_echo_n "checking for Ghostscript version... " >&6; }
32991 if GSVersion=`$PSDelegate --version`; then
32994 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
32997 $as_echo "$GSVersion" >&6; }
33000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
33001 $as_echo_n "checking for gs alpha device... " >&6; }
33002 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33005 GSAlphaDevice=pnmraw
33007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
33008 $as_echo "$GSAlphaDevice" >&6; }
33011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
33012 $as_echo_n "checking for gs color device... " >&6; }
33013 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33016 GSColorDevice=pnmraw
33018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
33019 $as_echo "$GSColorDevice" >&6; }
33022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
33023 $as_echo_n "checking for gs CMYK device... " >&6; }
33024 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33027 GSCMYKDevice=bmpsep8
33029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
33030 $as_echo "$GSCMYKDevice" >&6; }
33033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
33034 $as_echo_n "checking for gs mono device... " >&6; }
33035 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33038 GSMonoDevice=$GSColorDevice
33040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
33041 $as_echo "$GSMonoDevice" >&6; }
33044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
33045 $as_echo_n "checking for gs PDF writing device... " >&6; }
33046 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33049 GSPDFDevice=nodevice
33051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
33052 $as_echo "$GSPDFDevice" >&6; }
33055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
33056 $as_echo_n "checking for gs PS writing device... " >&6; }
33057 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33060 GSPSDevice=nodevice
33062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
33063 $as_echo "$GSPSDevice" >&6; }
33066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
33067 $as_echo_n "checking for gs EPS writing device... " >&6; }
33068 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
33071 GSEPSDevice=nodevice
33073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
33074 $as_echo "$GSEPSDevice" >&6; }
33087 # PerlMagick-related configuration
33090 # Look for PERL if PerlMagick requested
33091 # If name/path of desired PERL interpreter is specified, look for that one first
33093 if test "$with_perl" != 'no'; then
33094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33095 $as_echo "-------------------------------------------------------------" >&6; }
33096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
33097 $as_echo_n "checking for Perl... " >&6; }
33098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
33100 if test "$with_perl" != 'yes'; then
33101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
33102 $as_echo_n "checking for perl... " >&6; }
33103 if ${ac_cv_path_PERL+:} false; then :
33104 $as_echo_n "(cached) " >&6
33106 ac_cv_path_PERL="$with_perl"
33108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
33109 $as_echo "$ac_cv_path_PERL" >&6; };
33110 PERL=$ac_cv_path_PERL
33111 have_perl="$ac_cv_path_PERL"
33113 for ac_prog in perl perl5
33115 # Extract the first word of "$ac_prog", so it can be a program name with args.
33116 set dummy $ac_prog; ac_word=$2
33117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33118 $as_echo_n "checking for $ac_word... " >&6; }
33119 if ${ac_cv_path_PERL+:} false; then :
33120 $as_echo_n "(cached) " >&6
33124 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
33127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33128 for as_dir in $PATH
33131 test -z "$as_dir" && as_dir=.
33132 for ac_exec_ext in '' $ac_executable_extensions; do
33133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33134 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
33135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33145 PERL=$ac_cv_path_PERL
33146 if test -n "$PERL"; then
33147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
33148 $as_echo "$PERL" >&6; }
33150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33151 $as_echo "no" >&6; }
33155 test -n "$PERL" && break
33157 if test "$ac_cv_path_PERL"; then
33158 have_perl="$ac_cv_path_PERL"
33163 if test "$with_perl" != 'yes' ; then
33164 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
33167 PERL_SUPPORTS_DESTDIR='no'
33169 with_perl_static='no'
33170 with_perl_dynamic='no'
33171 if test "$have_perl" != 'no'; then
33172 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
33173 with_perl_static='yes'
33175 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
33176 with_perl_dynamic='yes'
33178 # Is PERL's MakeMaker new enough to support DESTDIR?
33183 if test -n "$PERL"; then :
33185 ax_perl_version="5.8.1"
33187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
33188 $as_echo_n "checking for perl version... " >&6; }
33190 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
33192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
33193 $as_echo "$perl_version" >&6; }
33195 PERL_VERSION=$perl_version
33201 # Used to indicate true or false condition
33202 ax_compare_version=false
33204 # Convert the two version strings to be compared into a format that
33205 # allows a simple string comparison. The end result is that a version
33206 # string of the form 1.12.5-r617 will be converted to the form
33207 # 0001001200050617. In other words, each number is zero padded to four
33208 # digits, and non digits are removed.
33210 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33211 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33212 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33213 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33217 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
33218 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
33219 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
33220 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
33224 ax_compare_version=`echo "x$ax_compare_version_A
33225 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
33229 if test "$ax_compare_version" = "true" ; then
33232 PERL_SUPPORTS_DESTDIR='yes'
33236 PERL_SUPPORTS_DESTDIR='no'
33243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
33244 $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
33245 PERL_SUPPORTS_DESTDIR='no'
33250 if test "$have_perl" != 'no'; then
33252 WITH_PERL_FALSE='#'
33258 if test $with_perl_static = 'yes'; then
33259 WITH_PERL_STATIC_TRUE=
33260 WITH_PERL_STATIC_FALSE='#'
33262 WITH_PERL_STATIC_TRUE='#'
33263 WITH_PERL_STATIC_FALSE=
33266 if test $with_perl_dynamic = 'yes'; then
33267 WITH_PERL_DYNAMIC_TRUE=
33268 WITH_PERL_DYNAMIC_FALSE='#'
33270 WITH_PERL_DYNAMIC_TRUE='#'
33271 WITH_PERL_DYNAMIC_FALSE=
33276 # Determine path to pick up MagickCore library from for use with building PerlMagick
33277 MAGICKCORE_PATH="${LIB_DIR}"
33278 if test $with_perl_static = 'yes'; then
33279 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
33280 libtool_objdir=$objdir
33282 # Linker search path to library, followed by -lMagickCore
33283 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
33287 # Create a simple string containing format names for all delegate libraries
33289 if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
33290 if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
33291 if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
33292 if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
33293 if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
33294 if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
33295 if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
33296 if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
33297 if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
33298 if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
33299 if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
33300 if test "$have_jpeg" = 'yes'; then
33301 DELEGATES="$DELEGATES jpeg";
33302 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
33304 if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
33305 if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
33306 if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
33307 if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
33308 if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
33309 if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
33310 if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
33311 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
33312 if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
33313 if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
33314 if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
33315 if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
33316 if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
33317 if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
33322 # Handle special compiler flags
33325 # Add '-p' if prof source profiling support enabled
33326 if test "$enable_prof" = 'yes'; then
33327 CFLAGS="-p $CFLAGS"
33328 CXXFLAGS="-p $CXXFLAGS"
33329 LDFLAGS="-p $LDFLAGS"
33332 # Add '-pg' if gprof source profiling support enabled
33333 if test "$enable_gprof" = 'yes'; then
33334 CFLAGS="-pg $CFLAGS"
33335 CXXFLAGS="-pg $CXXFLAGS"
33336 LDFLAGS="-pg $LDFLAGS"
33339 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
33340 # This is a gcc-specific feature
33341 if test "$enable_gcov" = 'yes'; then
33342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
33343 $as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
33344 if ${ac_cv_lib_gcov__gcov_init+:} false; then :
33345 $as_echo_n "(cached) " >&6
33347 ac_check_lib_save_LIBS=$LIBS
33348 LIBS="-lgcov $LIBS"
33349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33350 /* end confdefs.h. */
33352 /* Override any GCC internal prototype to avoid an error.
33353 Use char because int might match the return type of a GCC
33354 builtin and then its argument prototype would still apply. */
33358 char _gcov_init ();
33362 return _gcov_init ();
33367 if ac_fn_c_try_link "$LINENO"; then :
33368 ac_cv_lib_gcov__gcov_init=yes
33370 ac_cv_lib_gcov__gcov_init=no
33372 rm -f core conftest.err conftest.$ac_objext \
33373 conftest$ac_exeext conftest.$ac_ext
33374 LIBS=$ac_check_lib_save_LIBS
33376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
33377 $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
33378 if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
33379 cat >>confdefs.h <<_ACEOF
33380 #define HAVE_LIBGCOV 1
33383 LIBS="-lgcov $LIBS"
33387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
33388 $as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
33389 if ${ac_cv_lib_gcov___gcov_init+:} false; then :
33390 $as_echo_n "(cached) " >&6
33392 ac_check_lib_save_LIBS=$LIBS
33393 LIBS="-lgcov $LIBS"
33394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33395 /* end confdefs.h. */
33397 /* Override any GCC internal prototype to avoid an error.
33398 Use char because int might match the return type of a GCC
33399 builtin and then its argument prototype would still apply. */
33403 char __gcov_init ();
33407 return __gcov_init ();
33412 if ac_fn_c_try_link "$LINENO"; then :
33413 ac_cv_lib_gcov___gcov_init=yes
33415 ac_cv_lib_gcov___gcov_init=no
33417 rm -f core conftest.err conftest.$ac_objext \
33418 conftest$ac_exeext conftest.$ac_ext
33419 LIBS=$ac_check_lib_save_LIBS
33421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
33422 $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
33423 if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
33424 cat >>confdefs.h <<_ACEOF
33425 #define HAVE_LIBGCOV 1
33428 LIBS="-lgcov $LIBS"
33432 case "$target_os" in
33434 OSX_GCOV_LDFLAG="-Wl,-single_module"
33441 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
33442 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
33443 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
33447 # Build library dependency list for libMagickCore
33450 MAGICK_LIBLTDL='' # Libltdl for build
33451 MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
33452 MAGICK_LTDLDEPS='' # extra libltdl dependencies
33453 if test "$with_ltdl" != 'no'
33455 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
33456 MAGICK_API_LIBLTDL='-lltdl'
33458 MAGICK_LIBLTDL=${LIBLTDL}
33459 MAGICK_LTDLDEPS=${LTDLDEPS}
33464 if test "$with_modules" != 'no'; then
33465 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"
33467 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"
33472 # Remove extraneous spaces from output variables (asthetic)
33474 X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
33475 X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
33476 X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
33477 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
33479 CC=`echo $CC | sed -e 's/ */ /g'`
33480 CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
33481 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
33482 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
33483 DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
33484 DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
33485 LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
33486 TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
33487 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
33488 #LIBS=`echo $LIBS | sed -e 's/ */ /g'`
33490 # Pass only user-provided LIBS as "global" libraries
33493 #AC_SUBST(CPPFLAGS)
33496 #AC_SUBST(X_PRE_LIBS)
33498 #AC_SUBST(X_EXTRA_LIBS)
33500 MAGICK_CFLAGS=$CFLAGS
33501 MAGICK_CXXFLAGS="$CXXFLAGS"
33502 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
33503 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
33504 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
33505 MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
33515 # Set configured scripts to executable.
33516 ac_config_commands="$ac_config_commands default"
33518 ac_config_commands="$ac_config_commands MagickCore-config.in"
33520 ac_config_commands="$ac_config_commands Magick-config.in"
33522 ac_config_commands="$ac_config_commands MagickWand-config.in"
33524 ac_config_commands="$ac_config_commands Wand-config.in"
33526 ac_config_commands="$ac_config_commands Magick++-config.in"
33528 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
33531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
33532 $as_echo "-------------------------------------------------------------" >&6; }
33533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
33534 $as_echo "Update ImageMagick configuration" >&6; }
33535 cat >confcache <<\_ACEOF
33536 # This file is a shell script that caches the results of configure
33537 # tests run on this system so they can be shared between configure
33538 # scripts and configure runs, see configure's option --config-cache.
33539 # It is not useful on other systems. If it contains results you don't
33540 # want to keep, you may remove or edit it.
33542 # config.status only pays attention to the cache file if you give it
33543 # the --recheck option to rerun configure.
33545 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33546 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33547 # following values.
33551 # The following way of writing the cache mishandles newlines in values,
33552 # but we know of no workaround that is simple, portable, and efficient.
33553 # So, we kill variables containing newlines.
33554 # Ultrix sh set writes to stderr and can't be redirected directly,
33555 # and sets the high bit in the cache file unless we assign to the vars.
33557 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33558 eval ac_val=\$$ac_var
33562 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
33563 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33566 _ | IFS | as_nl) ;; #(
33567 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
33568 *) { eval $ac_var=; unset $ac_var;} ;;
33574 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33575 *${as_nl}ac_space=\ *)
33576 # `set' does not quote correctly, so add quotes: double-quote
33577 # substitution turns \\\\ into \\, and sed turns \\ into \.
33580 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33583 # `set' quotes correctly as required by POSIX, so do not add quotes.
33584 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33593 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33595 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33597 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
33598 if test -w "$cache_file"; then
33599 if test "x$cache_file" != "x/dev/null"; then
33600 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33601 $as_echo "$as_me: updating cache $cache_file" >&6;}
33602 if test ! -f "$cache_file" || test -h "$cache_file"; then
33603 cat confcache >"$cache_file"
33605 case $cache_file in #(
33607 mv -f confcache "$cache_file"$$ &&
33608 mv -f "$cache_file"$$ "$cache_file" ;; #(
33610 mv -f confcache "$cache_file" ;;
33615 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33616 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33621 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33622 # Let make expand exec_prefix.
33623 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33625 DEFS=-DHAVE_CONFIG_H
33630 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33631 # 1. Remove the extension, and $U if already installed.
33632 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
33633 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
33634 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33635 # will be set to the directory where LIBOBJS objects are built.
33636 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33637 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
33639 LIBOBJS=$ac_libobjs
33641 LTLIBOBJS=$ac_ltlibobjs
33644 if test -n "$EXEEXT"; then
33646 am__EXEEXT_FALSE='#'
33648 am__EXEEXT_TRUE='#'
33652 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
33653 as_fn_error $? "conditional \"AMDEP\" was never defined.
33654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33656 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
33657 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
33658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33660 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
33661 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
33662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33664 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
33665 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
33666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33668 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
33669 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
33670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33672 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
33673 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
33674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33676 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
33677 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
33678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33680 if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
33681 as_fn_error $? "conditional \"USING_CL\" was never defined.
33682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33684 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
33685 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
33686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33688 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33689 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
33690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33692 LT_CONFIG_H=config/config.h
33696 if test -n "$_LT_LIBOBJS"; then
33697 # Remove the extension.
33698 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
33699 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
33700 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
33701 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
33704 ltdl_LIBOBJS=$_ltdl_libobjs
33706 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
33709 if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
33710 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
33711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33713 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
33714 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
33715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33717 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
33718 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
33719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33721 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
33722 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
33723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33726 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
33727 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
33728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33730 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
33731 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
33732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33734 if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
33735 as_fn_error $? "conditional \"HasUMEM\" was never defined.
33736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33738 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
33739 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
33740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33742 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
33743 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
33744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33746 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
33747 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
33748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33750 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
33751 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
33752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33754 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
33755 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
33756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33758 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
33759 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
33760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33762 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
33763 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
33764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33766 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
33767 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
33768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33770 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
33771 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
33772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33774 if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
33775 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
33776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33778 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
33779 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
33780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33782 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
33783 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
33784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33786 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
33787 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
33788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33790 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
33791 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
33792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33794 if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
33795 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
33796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33798 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
33799 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
33800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33802 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
33803 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
33804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33806 if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
33807 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
33808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33810 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
33811 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
33812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33814 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
33815 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
33816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33818 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
33819 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
33820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33822 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
33823 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
33824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33826 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
33827 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
33828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33830 if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
33831 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
33832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33834 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
33835 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
33836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33838 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
33839 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
33840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33842 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
33843 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
33844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33846 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
33847 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
33848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33850 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
33851 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
33852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33854 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
33855 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
33856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33858 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
33859 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
33860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33862 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
33863 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
33864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33867 : "${CONFIG_STATUS=./config.status}"
33869 ac_clean_files_save=$ac_clean_files
33870 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33871 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33872 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33874 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33876 # Generated by $as_me.
33877 # Run this file to recreate the current configuration.
33878 # Compiler output produced by configure, useful for debugging
33879 # configure, is in config.log if it exists.
33882 ac_cs_recheck=false
33885 SHELL=\${CONFIG_SHELL-$SHELL}
33888 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33889 ## -------------------- ##
33890 ## M4sh Initialization. ##
33891 ## -------------------- ##
33893 # Be more Bourne compatible
33894 DUALCASE=1; export DUALCASE # for MKS sh
33895 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
33898 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33899 # is contrary to our usage. Disable this feature.
33900 alias -g '${1+"$@"}'='"$@"'
33901 setopt NO_GLOB_SUBST
33903 case `(set -o) 2>/dev/null` in #(
33915 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33916 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33917 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33918 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33919 # Prefer a ksh shell builtin over an external printf program on Solaris,
33920 # but without wasting forks for bash or zsh.
33921 if test -z "$BASH_VERSION$ZSH_VERSION" \
33922 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33923 as_echo='print -r --'
33924 as_echo_n='print -rn --'
33925 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33926 as_echo='printf %s\n'
33927 as_echo_n='printf %s'
33929 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33930 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33931 as_echo_n='/usr/ucb/echo -n'
33933 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33934 as_echo_n_body='eval
33938 expr "X$arg" : "X\\(.*\\)$as_nl";
33939 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33941 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33943 export as_echo_n_body
33944 as_echo_n='sh -c $as_echo_n_body as_echo'
33946 export as_echo_body
33947 as_echo='sh -c $as_echo_body as_echo'
33950 # The user is always right.
33951 if test "${PATH_SEPARATOR+set}" != set; then
33953 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33954 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33961 # We need space, tab and new line, in precisely that order. Quoting is
33962 # there to prevent editors from complaining about space-tab.
33963 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33964 # splitting by setting IFS to empty value.)
33967 # Find who we are. Look in the path if we contain no directory separator.
33970 *[\\/]* ) as_myself=$0 ;;
33971 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33972 for as_dir in $PATH
33975 test -z "$as_dir" && as_dir=.
33976 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33982 # We did not find ourselves, most probably we were run as `sh COMMAND'
33983 # in which case we are not to be found in the path.
33984 if test "x$as_myself" = x; then
33987 if test ! -f "$as_myself"; then
33988 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33992 # Unset variables that we do not need and which cause bugs (e.g. in
33993 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33994 # suppresses any "Segmentation fault" message there. '((' could
33995 # trigger a bug in pdksh 5.2.14.
33996 for as_var in BASH_ENV ENV MAIL MAILPATH
33997 do eval test x\${$as_var+set} = xset \
33998 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
34011 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34014 # as_fn_error STATUS ERROR [LINENO LOG_FD]
34015 # ----------------------------------------
34016 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
34017 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
34018 # script with STATUS, using 1 if that was 0.
34021 as_status=$1; test $as_status -eq 0 && as_status=1
34023 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
34024 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
34026 $as_echo "$as_me: error: $2" >&2
34027 as_fn_exit $as_status
34031 # as_fn_set_status STATUS
34032 # -----------------------
34033 # Set $? to STATUS, without forking.
34034 as_fn_set_status ()
34037 } # as_fn_set_status
34039 # as_fn_exit STATUS
34040 # -----------------
34041 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
34045 as_fn_set_status $1
34051 # Portably unset VAR.
34054 { eval $1=; unset $1;}
34056 as_unset=as_fn_unset
34057 # as_fn_append VAR VALUE
34058 # ----------------------
34059 # Append the text in VALUE to the end of the definition contained in VAR. Take
34060 # advantage of any shell optimizations that allow amortized linear growth over
34061 # repeated appends, instead of the typical quadratic growth present in naive
34063 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
34064 eval 'as_fn_append ()
34075 # as_fn_arith ARG...
34076 # ------------------
34077 # Perform arithmetic evaluation on the ARGs, and store the result in the
34078 # global $as_val. Take advantage of shells that can avoid forks. The arguments
34079 # must be portable across $(()) and expr.
34080 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
34081 eval 'as_fn_arith ()
34088 as_val=`expr "$@" || test $? -eq 1`
34093 if expr a : '\(a\)' >/dev/null 2>&1 &&
34094 test "X`expr 00001 : '.*\(...\)'`" = X001; then
34100 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
34101 as_basename=basename
34106 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
34112 as_me=`$as_basename -- "$0" ||
34113 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
34114 X"$0" : 'X\(//\)$' \| \
34115 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
34117 sed '/^.*\/\([^/][^/]*\)\/*$/{
34131 # Avoid depending upon Character Ranges.
34132 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
34133 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34134 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
34135 as_cr_digits='0123456789'
34136 as_cr_alnum=$as_cr_Letters$as_cr_digits
34138 ECHO_C= ECHO_N= ECHO_T=
34139 case `echo -n x` in #(((((
34141 case `echo 'xy\c'` in
34142 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
34144 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
34151 rm -f conf$$ conf$$.exe conf$$.file
34152 if test -d conf$$.dir; then
34153 rm -f conf$$.dir/conf$$.file
34156 mkdir conf$$.dir 2>/dev/null
34158 if (echo >conf$$.file) 2>/dev/null; then
34159 if ln -s conf$$.file conf$$ 2>/dev/null; then
34161 # ... but there are two gotchas:
34162 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
34163 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
34164 # In both cases, we have to default to `cp -p'.
34165 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
34167 elif ln conf$$.file conf$$ 2>/dev/null; then
34175 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
34176 rmdir conf$$.dir 2>/dev/null
34181 # Create "$as_dir" as a directory, including parents if necessary.
34186 -*) as_dir=./$as_dir;;
34188 test -d "$as_dir" || eval $as_mkdir_p || {
34192 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
34193 *) as_qdir=$as_dir;;
34195 as_dirs="'$as_qdir' $as_dirs"
34196 as_dir=`$as_dirname -- "$as_dir" ||
34197 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34198 X"$as_dir" : 'X\(//\)[^/]' \| \
34199 X"$as_dir" : 'X\(//\)$' \| \
34200 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
34201 $as_echo X"$as_dir" |
34202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34206 /^X\(\/\/\)[^/].*/{
34219 test -d "$as_dir" && break
34221 test -z "$as_dirs" || eval "mkdir $as_dirs"
34222 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
34226 if mkdir -p . 2>/dev/null; then
34227 as_mkdir_p='mkdir -p "$as_dir"'
34229 test -d ./-p && rmdir ./-p
34233 if test -x / >/dev/null 2>&1; then
34234 as_test_x='test -x'
34236 if ls -dL / >/dev/null 2>&1; then
34243 if test -d "$1"; then
34249 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
34250 ???[sx]*):;;*)false;;esac;fi
34254 as_executable_p=$as_test_x
34256 # Sed expression to map a string onto a valid CPP name.
34257 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
34259 # Sed expression to map a string onto a valid variable name.
34260 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
34264 ## ----------------------------------- ##
34265 ## Main body of $CONFIG_STATUS script. ##
34266 ## ----------------------------------- ##
34268 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
34270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34271 # Save the log message, to keep $0 and so on meaningful, and to
34272 # report actual input values of CONFIG_FILES etc. instead of their
34273 # values after options handling.
34275 This file was extended by ImageMagick $as_me 6.6.9, which was
34276 generated by GNU Autoconf 2.68. Invocation command line was
34278 CONFIG_FILES = $CONFIG_FILES
34279 CONFIG_HEADERS = $CONFIG_HEADERS
34280 CONFIG_LINKS = $CONFIG_LINKS
34281 CONFIG_COMMANDS = $CONFIG_COMMANDS
34284 on `(hostname || uname -n) 2>/dev/null | sed 1q`
34289 case $ac_config_files in *"
34290 "*) set x $ac_config_files; shift; ac_config_files=$*;;
34293 case $ac_config_headers in *"
34294 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
34298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34299 # Files that config.status was made for.
34300 config_files="$ac_config_files"
34301 config_headers="$ac_config_headers"
34302 config_commands="$ac_config_commands"
34306 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34308 \`$as_me' instantiates files and other configuration actions
34309 from templates according to the current configuration. Unless the files
34310 and actions are specified as TAGs, all are instantiated by default.
34312 Usage: $0 [OPTION]... [TAG]...
34314 -h, --help print this help, then exit
34315 -V, --version print version number and configuration settings, then exit
34316 --config print configuration, then exit
34317 -q, --quiet, --silent
34318 do not print progress messages
34319 -d, --debug don't remove temporary files
34320 --recheck update $as_me by reconfiguring in the same conditions
34321 --file=FILE[:TEMPLATE]
34322 instantiate the configuration file FILE
34323 --header=FILE[:TEMPLATE]
34324 instantiate the configuration header FILE
34326 Configuration files:
34329 Configuration headers:
34332 Configuration commands:
34335 Report bugs to <http://www.imagemagick.org>."
34338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34339 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
34341 ImageMagick config.status 6.6.9
34342 configured by $0, generated by GNU Autoconf 2.68,
34343 with options \\"\$ac_cs_config\\"
34345 Copyright (C) 2010 Free Software Foundation, Inc.
34346 This config.status script is free software; the Free Software Foundation
34347 gives unlimited permission to copy, distribute and modify it."
34354 test -n "\$AWK" || AWK=awk
34357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34358 # The default lists apply if the user does not specify any file.
34364 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34365 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
34369 ac_option=`expr "X$1" : 'X\([^=]*\)='`
34381 # Handling of the options.
34382 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
34384 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
34385 $as_echo "$ac_cs_version"; exit ;;
34386 --config | --confi | --conf | --con | --co | --c )
34387 $as_echo "$ac_cs_config"; exit ;;
34388 --debug | --debu | --deb | --de | --d | -d )
34390 --file | --fil | --fi | --f )
34393 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34394 '') as_fn_error $? "missing file argument" ;;
34396 as_fn_append CONFIG_FILES " '$ac_optarg'"
34397 ac_need_defaults=false;;
34398 --header | --heade | --head | --hea )
34401 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
34403 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
34404 ac_need_defaults=false;;
34406 # Conflict between --help and --header
34407 as_fn_error $? "ambiguous option: \`$1'
34408 Try \`$0 --help' for more information.";;
34409 --help | --hel | -h )
34410 $as_echo "$ac_cs_usage"; exit ;;
34411 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
34412 | -silent | --silent | --silen | --sile | --sil | --si | --s)
34415 # This is an error.
34416 -*) as_fn_error $? "unrecognized option: \`$1'
34417 Try \`$0 --help' for more information." ;;
34419 *) as_fn_append ac_config_targets " $1"
34420 ac_need_defaults=false ;;
34426 ac_configure_extra_args=
34428 if $ac_cs_silent; then
34430 ac_configure_extra_args="$ac_configure_extra_args --silent"
34434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34435 if \$ac_cs_recheck; then
34436 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
34438 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
34439 CONFIG_SHELL='$SHELL'
34440 export CONFIG_SHELL
34445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34449 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
34450 ## Running $as_me. ##
34456 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34461 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
34464 # The HP-UX ksh and POSIX shell print the target directory to stdout
34465 # if CDPATH is set.
34466 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
34468 sed_quote_subst='$sed_quote_subst'
34469 double_quote_subst='$double_quote_subst'
34470 delay_variable_subst='$delay_variable_subst'
34471 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
34472 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
34473 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34474 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34475 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34476 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
34477 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
34478 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34479 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
34480 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
34481 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
34482 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
34483 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34484 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
34485 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
34486 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
34487 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
34488 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
34489 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
34490 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
34491 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
34492 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
34493 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
34494 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34495 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34496 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34497 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34498 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34499 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34500 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34501 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
34502 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
34503 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
34504 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34505 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34506 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34507 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
34508 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
34509 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
34510 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
34511 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34512 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
34513 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
34514 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34515 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34516 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34517 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34518 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34519 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34520 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34521 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34522 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34523 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34524 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34525 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34526 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34527 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"`'
34528 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
34529 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
34530 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34531 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34532 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
34533 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
34534 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
34535 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34536 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34537 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
34538 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
34539 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34540 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34541 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34542 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34543 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34544 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34545 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34546 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34547 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34548 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34549 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34550 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34551 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34552 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34553 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34554 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34555 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34556 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34557 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34558 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34559 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34560 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34561 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34562 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
34563 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34564 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34565 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34566 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34567 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34568 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34569 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34570 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
34571 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34572 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34573 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34574 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34575 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
34576 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
34577 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34578 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34579 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34580 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34581 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34582 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34583 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34584 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34585 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34586 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34587 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34588 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34589 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34590 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34591 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34592 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34593 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34594 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34595 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
34596 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34597 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34598 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34599 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34600 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34601 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34602 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
34603 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
34604 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
34605 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
34606 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
34607 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
34608 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
34609 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
34610 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34611 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34612 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
34613 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
34614 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
34615 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
34616 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
34617 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
34618 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
34619 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
34620 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
34621 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34622 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34623 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
34624 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34625 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34626 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34627 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34628 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34629 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34630 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
34631 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34632 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
34633 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
34634 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
34635 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
34636 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
34637 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
34638 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
34639 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
34640 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
34641 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
34642 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
34643 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
34644 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34645 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34646 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
34647 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34648 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
34649 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
34650 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
34651 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
34652 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34653 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
34654 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
34655 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
34656 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
34659 LTCFLAGS='$LTCFLAGS'
34660 compiler='$compiler_DEFAULT'
34662 # A function that is used when there is no print builtin or printf.
34663 func_fallback_echo ()
34665 eval 'cat <<_LTECHO_EOF
34670 # Quote evaled strings.
34686 deplibs_check_method \
34690 sharedlib_from_linklib_cmd \
34693 archiver_list_spec \
34699 lt_cv_sys_global_symbol_pipe \
34700 lt_cv_sys_global_symbol_to_cdecl \
34701 lt_cv_sys_global_symbol_to_c_name_address \
34702 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
34703 nm_file_list_spec \
34704 lt_prog_compiler_no_builtin_flag \
34705 lt_prog_compiler_pic \
34706 lt_prog_compiler_wl \
34707 lt_prog_compiler_static \
34708 lt_cv_prog_compiler_c_o \
34717 export_dynamic_flag_spec \
34718 whole_archive_flag_spec \
34719 compiler_needs_object \
34721 allow_undefined_flag \
34722 no_undefined_flag \
34723 hardcode_libdir_flag_spec \
34724 hardcode_libdir_flag_spec_ld \
34725 hardcode_libdir_separator \
34729 variables_saved_for_relink \
34731 library_names_spec \
34733 install_override_mode \
34737 compiler_lib_search_dirs \
34742 compiler_lib_search_path \
34746 lt_prog_compiler_no_builtin_flag_CXX \
34747 lt_prog_compiler_pic_CXX \
34748 lt_prog_compiler_wl_CXX \
34749 lt_prog_compiler_static_CXX \
34750 lt_cv_prog_compiler_c_o_CXX \
34751 export_dynamic_flag_spec_CXX \
34752 whole_archive_flag_spec_CXX \
34753 compiler_needs_object_CXX \
34755 allow_undefined_flag_CXX \
34756 no_undefined_flag_CXX \
34757 hardcode_libdir_flag_spec_CXX \
34758 hardcode_libdir_flag_spec_ld_CXX \
34759 hardcode_libdir_separator_CXX \
34760 exclude_expsyms_CXX \
34761 include_expsyms_CXX \
34762 file_list_spec_CXX \
34763 compiler_lib_search_dirs_CXX \
34764 predep_objects_CXX \
34765 postdep_objects_CXX \
34768 compiler_lib_search_path_CXX; do
34769 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34770 *[\\\\\\\`\\"\\\$]*)
34771 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
34774 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34779 # Double-quote double-evaled strings.
34780 for var in reload_cmds \
34781 old_postinstall_cmds \
34782 old_postuninstall_cmds \
34784 extract_expsyms_cmds \
34785 old_archive_from_new_cmds \
34786 old_archive_from_expsyms_cmds \
34788 archive_expsym_cmds \
34790 module_expsym_cmds \
34791 export_symbols_cmds \
34795 postuninstall_cmds \
34797 sys_lib_search_path_spec \
34798 sys_lib_dlsearch_path_spec \
34800 old_archive_cmds_CXX \
34801 old_archive_from_new_cmds_CXX \
34802 old_archive_from_expsyms_cmds_CXX \
34804 archive_expsym_cmds_CXX \
34806 module_expsym_cmds_CXX \
34807 export_symbols_cmds_CXX \
34809 postlink_cmds_CXX; do
34810 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34811 *[\\\\\\\`\\"\\\$]*)
34812 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
34815 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34820 ac_aux_dir='$ac_aux_dir'
34821 xsi_shell='$xsi_shell'
34822 lt_shell_append='$lt_shell_append'
34824 # See if we are running on zsh, and set the options which allow our
34825 # commands through without removal of \ escapes INIT.
34826 if test -n "\${ZSH_VERSION+set}" ; then
34827 setopt NO_GLOB_SUBST
34833 TIMESTAMP='$TIMESTAMP'
34844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34846 # Handling of arguments.
34847 for ac_config_target in $ac_config_targets
34849 case $ac_config_target in
34850 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
34851 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
34852 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
34853 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
34854 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
34855 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
34856 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
34857 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
34858 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
34859 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
34860 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
34861 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
34862 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
34863 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
34864 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
34865 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
34866 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
34867 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
34868 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
34869 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
34870 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34871 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
34872 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
34873 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
34874 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
34875 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
34876 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
34877 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
34878 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
34879 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
34880 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
34881 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
34882 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
34883 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
34884 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
34885 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
34886 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
34887 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
34888 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
34889 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
34890 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
34891 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34892 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34893 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34894 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
34895 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
34896 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
34897 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
34898 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
34899 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
34901 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34906 # If the user did not use the arguments to specify the items to instantiate,
34907 # then the envvar interface is used. Set only those that are not.
34908 # We use the long form for the default assignment because of an extremely
34909 # bizarre bug on SunOS 4.1.3.
34910 if $ac_need_defaults; then
34911 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34912 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34913 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34916 # Have a temporary directory for convenience. Make it in the build tree
34917 # simply because there is no reason against having it here, and in addition,
34918 # creating and moving files from /tmp can sometimes cause problems.
34919 # Hook for its removal unless debugging.
34920 # Note that there is a small window in which the directory will not be cleaned:
34921 # after its creation but before its name has been assigned to `$tmp'.
34925 trap 'exit_status=$?
34926 : "${ac_tmp:=$tmp}"
34927 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
34929 trap 'as_fn_exit 1' 1 2 13 15
34931 # Create a (secure) tmp directory for tmp files.
34934 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34938 tmp=./conf$$-$RANDOM
34939 (umask 077 && mkdir "$tmp")
34940 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
34943 # Set up the scripts for CONFIG_FILES section.
34944 # No need to generate them if there are no CONFIG_FILES.
34945 # This happens for instance with `./config.status config.h'.
34946 if test -n "$CONFIG_FILES"; then
34949 ac_cr=`echo X | tr X '\015'`
34950 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34951 # But we know of no other shell where ac_cr would be empty at this
34952 # point, so we can use a bashism as a fallback.
34953 if test "x$ac_cr" = x; then
34954 eval ac_cr=\$\'\\r\'
34956 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34957 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34960 ac_cs_awk_cr=$ac_cr
34963 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
34968 echo "cat >conf$$subs.awk <<_ACEOF" &&
34969 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34971 } >conf$$subs.sh ||
34972 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34973 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34975 for ac_last_try in false false false false false :; do
34976 . ./conf$$subs.sh ||
34977 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34979 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34980 if test $ac_delim_n = $ac_delim_num; then
34982 elif $ac_last_try; then
34983 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34985 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34988 rm -f conf$$subs.sh
34990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34991 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
34995 s/^/S["/; s/!.*/"]=/
35005 s/\(.\{148\}\)..*/\1/
35007 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
35012 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35019 s/\(.\{148\}\)..*/\1/
35021 s/["\\]/\\&/g; s/^/"/; s/$/"/
35025 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
35030 ' <conf$$subs.awk | sed '
35035 ' >>$CONFIG_STATUS || ac_write_fail=1
35036 rm -f conf$$subs.awk
35037 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35039 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
35040 for (key in S) S_is_set[key] = 1
35046 nfields = split(line, field, "@")
35048 len = length(field[1])
35049 for (i = 2; i < nfields; i++) {
35051 keylen = length(key)
35052 if (S_is_set[key]) {
35054 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
35055 len += length(value) + length(field[++i])
35066 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35067 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
35068 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
35071 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
35072 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
35075 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
35076 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
35077 # trailing colons and then remove the whole line if VPATH becomes empty
35078 # (actually we leave an empty line to preserve line numbers).
35079 if test "x$srcdir" = x.; then
35080 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
35098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35099 fi # test -n "$CONFIG_FILES"
35101 # Set up the scripts for CONFIG_HEADERS section.
35102 # No need to generate them if there are no CONFIG_HEADERS.
35103 # This happens for instance with `./config.status Makefile'.
35104 if test -n "$CONFIG_HEADERS"; then
35105 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
35109 # Transform confdefs.h into an awk script `defines.awk', embedded as
35110 # here-document in config.status, that substitutes the proper values into
35111 # config.h.in to produce config.h.
35113 # Create a delimiter string that does not exist in confdefs.h, to ease
35114 # handling of long lines.
35116 for ac_last_try in false false :; do
35117 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
35118 if test -z "$ac_tt"; then
35120 elif $ac_last_try; then
35121 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
35123 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
35127 # For the awk script, D is an array of macro values keyed by name,
35128 # likewise P contains macro parameters if any. Preserve backslash
35129 # newline sequences.
35131 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
35133 s/.\{148\}/&'"$ac_delim"'/g
35136 s/^[ ]*#[ ]*define[ ][ ]*/ /
35143 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35145 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
35149 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
35150 D["\1"]=" \3\\\\\\n"\\/p
35152 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
35157 s/.\{148\}/&'"$ac_delim"'/g
35162 s/["\\]/\\&/g; s/^/"/; s/$/"/p
35165 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
35167 ' <confdefs.h | sed '
35168 s/'"$ac_delim"'/"\\\
35169 "/g' >>$CONFIG_STATUS || ac_write_fail=1
35171 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35172 for (key in D) D_is_set[key] = 1
35175 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
35177 split(line, arg, " ")
35178 if (arg[1] == "#") {
35182 defundef = substr(arg[1], 2)
35185 split(mac1, mac2, "(") #)
35187 prefix = substr(line, 1, index(line, defundef) - 1)
35188 if (D_is_set[macro]) {
35189 # Preserve the white space surrounding the "#".
35190 print prefix "define", macro P[macro] D[macro]
35193 # Replace #undef with comments. This is necessary, for example,
35194 # in the case of _POSIX_SOURCE, which is predefined and required
35195 # on some systems where configure will not decide to define it.
35196 if (defundef == "undef") {
35197 print "/*", prefix defundef, macro, "*/"
35205 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35206 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
35207 fi # test -n "$CONFIG_HEADERS"
35210 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
35215 :[FHLC]) ac_mode=$ac_tag; continue;;
35217 case $ac_mode$ac_tag in
35219 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
35220 :[FH]-) ac_tag=-:-;;
35221 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
35238 -) ac_f="$ac_tmp/stdin";;
35239 *) # Look for the file first in the build tree, then in the source tree
35240 # (if the path is not absolute). The absolute path cannot be DOS-style,
35241 # because $ac_f cannot contain `:'.
35245 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
35247 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
35249 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
35250 as_fn_append ac_file_inputs " '$ac_f'"
35253 # Let's still pretend it is `configure' which instantiates (i.e., don't
35254 # use $as_me), people would be surprised to read:
35255 # /* config.h. Generated by config.status. */
35256 configure_input='Generated from '`
35257 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
35259 if test x"$ac_file" != x-; then
35260 configure_input="$ac_file. $configure_input"
35261 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
35262 $as_echo "$as_me: creating $ac_file" >&6;}
35264 # Neutralize special characters interpreted by sed in replacement strings.
35265 case $configure_input in #(
35266 *\&* | *\|* | *\\* )
35267 ac_sed_conf_input=`$as_echo "$configure_input" |
35268 sed 's/[\\\\&|]/\\\\&/g'`;; #(
35269 *) ac_sed_conf_input=$configure_input;;
35273 *:-:* | *:-) cat >"$ac_tmp/stdin" \
35274 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
35279 ac_dir=`$as_dirname -- "$ac_file" ||
35280 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35281 X"$ac_file" : 'X\(//\)[^/]' \| \
35282 X"$ac_file" : 'X\(//\)$' \| \
35283 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
35284 $as_echo X"$ac_file" |
35285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35289 /^X\(\/\/\)[^/].*/{
35302 as_dir="$ac_dir"; as_fn_mkdir_p
35306 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
35308 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
35309 # A ".." for each directory in $ac_dir_suffix.
35310 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
35311 case $ac_top_builddir_sub in
35312 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
35313 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
35316 ac_abs_top_builddir=$ac_pwd
35317 ac_abs_builddir=$ac_pwd$ac_dir_suffix
35318 # for backward compatibility:
35319 ac_top_builddir=$ac_top_build_prefix
35322 .) # We are building in place.
35324 ac_top_srcdir=$ac_top_builddir_sub
35325 ac_abs_top_srcdir=$ac_pwd ;;
35326 [\\/]* | ?:[\\/]* ) # Absolute name.
35327 ac_srcdir=$srcdir$ac_dir_suffix;
35328 ac_top_srcdir=$srcdir
35329 ac_abs_top_srcdir=$srcdir ;;
35330 *) # Relative name.
35331 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
35332 ac_top_srcdir=$ac_top_build_prefix$srcdir
35333 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
35335 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
35345 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
35346 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
35348 ac_MKDIR_P=$MKDIR_P
35350 [\\/$]* | ?:[\\/]* ) ;;
35351 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
35355 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35356 # If the template does not know about datarootdir, expand it.
35357 # FIXME: This hack should be removed a few years after 2.60.
35358 ac_datarootdir_hack=; ac_datarootdir_seen=
35369 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
35370 *datarootdir*) ac_datarootdir_seen=yes;;
35371 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
35372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
35373 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
35375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35376 ac_datarootdir_hack='
35377 s&@datadir@&$datadir&g
35378 s&@docdir@&$docdir&g
35379 s&@infodir@&$infodir&g
35380 s&@localedir@&$localedir&g
35381 s&@mandir@&$mandir&g
35382 s&\\\${datarootdir}&$datarootdir&g' ;;
35386 # Neutralize VPATH when `$srcdir' = `.'.
35387 # Shell code in configure.ac might set extrasub.
35388 # FIXME: do we really want to maintain this feature?
35389 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35390 ac_sed_extra="$ac_vpsub
35393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35395 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
35396 s|@configure_input@|$ac_sed_conf_input|;t t
35397 s&@top_builddir@&$ac_top_builddir_sub&;t t
35398 s&@top_build_prefix@&$ac_top_build_prefix&;t t
35399 s&@srcdir@&$ac_srcdir&;t t
35400 s&@abs_srcdir@&$ac_abs_srcdir&;t t
35401 s&@top_srcdir@&$ac_top_srcdir&;t t
35402 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
35403 s&@builddir@&$ac_builddir&;t t
35404 s&@abs_builddir@&$ac_abs_builddir&;t t
35405 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
35406 s&@INSTALL@&$ac_INSTALL&;t t
35407 s&@MKDIR_P@&$ac_MKDIR_P&;t t
35408 $ac_datarootdir_hack
35410 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
35411 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35413 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
35414 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
35415 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
35416 "$ac_tmp/out"`; test -z "$ac_out"; } &&
35417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35418 which seems to be undefined. Please make sure it is defined" >&5
35419 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
35420 which seems to be undefined. Please make sure it is defined" >&2;}
35422 rm -f "$ac_tmp/stdin"
35424 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
35425 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
35427 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35433 if test x"$ac_file" != x-; then
35435 $as_echo "/* $configure_input */" \
35436 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
35437 } >"$ac_tmp/config.h" \
35438 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35439 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
35440 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
35441 $as_echo "$as_me: $ac_file is unchanged" >&6;}
35444 mv "$ac_tmp/config.h" "$ac_file" \
35445 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
35448 $as_echo "/* $configure_input */" \
35449 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
35450 || as_fn_error $? "could not create -" "$LINENO" 5
35452 # Compute "$ac_file"'s index in $config_headers.
35455 for _am_header in $config_headers :; do
35456 case $_am_header in
35457 $_am_arg | $_am_arg:* )
35460 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
35463 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
35464 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35465 X"$_am_arg" : 'X\(//\)[^/]' \| \
35466 X"$_am_arg" : 'X\(//\)$' \| \
35467 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
35468 $as_echo X"$_am_arg" |
35469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35473 /^X\(\/\/\)[^/].*/{
35485 s/.*/./; q'`/stamp-h$_am_stamp_count
35488 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
35489 $as_echo "$as_me: executing $ac_file commands" >&6;}
35494 case $ac_file$ac_mode in
35495 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
35496 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
35497 ac_prefix_conf_PKG=`echo MagickCore`
35498 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
35499 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
35500 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
35501 if test ".$ac_prefix_conf_INP" = "."; then
35502 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
35504 *.h) ac_prefix_conf_INP=$ac_file ;;
35507 test ".$ac_prefix_conf_INP" != "." && break
35510 if test ".$ac_prefix_conf_INP" = "."; then
35511 case "$ac_prefix_conf_OUT" in
35512 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
35514 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
35516 *) ac_prefix_conf_INP=config.h
35520 if test -z "$ac_prefix_conf_PKG" ; then
35521 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
35523 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
35524 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
35526 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
35527 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
35528 if test -f $ac_prefix_conf_INP ; then
35529 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
35530 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
35531 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
35532 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
35533 $as_echo "#endif/" >> conftest.prefix
35534 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
35535 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
35536 $as_echo "#endif/" >> conftest.prefix
35537 # now executing _script on _DEF input to create _OUT output file
35538 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
35539 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
35540 echo ' ' >>$tmp/pconfig.h
35541 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
35543 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
35544 echo ' ' >>$tmp/pconfig.h
35545 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
35546 echo "#endif" >>$tmp/pconfig.h
35547 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
35548 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
35549 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
35551 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
35552 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35553 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
35554 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
35555 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
35556 $as_echo X"$ac_prefix_conf_OUT" |
35557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35561 /^X\(\/\/\)[^/].*/{
35574 as_dir="$ac_dir"; as_fn_mkdir_p
35575 rm -f "$ac_prefix_conf_OUT"
35576 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
35578 cp conftest.prefix _configs.sed
35580 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
35585 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
35586 # Autoconf 2.62 quotes --file arguments for eval, but not when files
35587 # are listed without --file. Let's play safe and only enable the eval
35588 # if we detect the quoting.
35589 case $CONFIG_FILES in
35590 *\'*) eval set x "$CONFIG_FILES" ;;
35591 *) set x $CONFIG_FILES ;;
35596 # Strip MF so we end up with the name of the file.
35597 mf=`echo "$mf" | sed -e 's/:.*$//'`
35598 # Check whether this is an Automake generated Makefile or not.
35599 # We used to match only the files named `Makefile.in', but
35600 # some people rename them; so instead we look at the file content.
35601 # Grep'ing the first line is not enough: some people post-process
35602 # each Makefile.in and add a new line on top of each file to say so.
35603 # Grep'ing the whole file is not good either: AIX grep has a line
35604 # limit of 2048, but all sed's we know have understand at least 4000.
35605 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
35606 dirpart=`$as_dirname -- "$mf" ||
35607 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35608 X"$mf" : 'X\(//\)[^/]' \| \
35609 X"$mf" : 'X\(//\)$' \| \
35610 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
35612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35616 /^X\(\/\/\)[^/].*/{
35632 # Extract the definition of DEPDIR, am__include, and am__quote
35633 # from the Makefile without running `make'.
35634 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
35635 test -z "$DEPDIR" && continue
35636 am__include=`sed -n 's/^am__include = //p' < "$mf"`
35637 test -z "am__include" && continue
35638 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
35639 # When using ansi2knr, U may be empty or an underscore; expand it
35640 U=`sed -n 's/^U = //p' < "$mf"`
35641 # Find all dependency output files, they are included files with
35642 # $(DEPDIR) in their names. We invoke sed twice because it is the
35643 # simplest approach to changing $(DEPDIR) to its actual value in the
35645 for file in `sed -n "
35646 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35647 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
35648 # Make sure the directory exists.
35649 test -f "$dirpart/$file" && continue
35650 fdir=`$as_dirname -- "$file" ||
35651 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35652 X"$file" : 'X\(//\)[^/]' \| \
35653 X"$file" : 'X\(//\)$' \| \
35654 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35655 $as_echo X"$file" |
35656 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35660 /^X\(\/\/\)[^/].*/{
35673 as_dir=$dirpart/$fdir; as_fn_mkdir_p
35674 # echo "creating $dirpart/$file"
35675 echo '# dummy' > "$dirpart/$file"
35682 # See if we are running on zsh, and set the options which allow our
35683 # commands through without removal of \ escapes.
35684 if test -n "${ZSH_VERSION+set}" ; then
35685 setopt NO_GLOB_SUBST
35688 cfgfile="${ofile}T"
35689 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35692 cat <<_LT_EOF >> "$cfgfile"
35695 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
35696 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
35697 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35698 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
35700 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
35701 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
35703 # Written by Gordon Matzigkeit, 1996
35705 # This file is part of GNU Libtool.
35707 # GNU Libtool is free software; you can redistribute it and/or
35708 # modify it under the terms of the GNU General Public License as
35709 # published by the Free Software Foundation; either version 2 of
35710 # the License, or (at your option) any later version.
35712 # As a special exception to the GNU General Public License,
35713 # if you distribute this file as part of a program or library that
35714 # is built using GNU Libtool, you may include this file under the
35715 # same distribution terms that you use for the rest of that program.
35717 # GNU Libtool is distributed in the hope that it will be useful,
35718 # but WITHOUT ANY WARRANTY; without even the implied warranty of
35719 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35720 # GNU General Public License for more details.
35722 # You should have received a copy of the GNU General Public License
35723 # along with GNU Libtool; see the file COPYING. If not, a copy
35724 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
35725 # obtained by writing to the Free Software Foundation, Inc.,
35726 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
35729 # The names of the tagged configurations supported by this script.
35730 available_tags="CXX "
35732 # ### BEGIN LIBTOOL CONFIG
35734 # A sed program that does not truncate output.
35737 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
35738 Xsed="\$SED -e 1s/^X//"
35740 # A grep program that handles long lines.
35746 # A literal string matcher.
35749 # Shell to use when invoking shell scripts.
35752 # An echo program that protects backslashes.
35755 # Which release of libtool.m4 was used?
35756 macro_version=$macro_version
35757 macro_revision=$macro_revision
35759 # Assembler program.
35762 # DLL creation program.
35763 DLLTOOL=$lt_DLLTOOL
35765 # Object dumper program.
35766 OBJDUMP=$lt_OBJDUMP
35768 # Whether or not to build shared libraries.
35769 build_libtool_libs=$enable_shared
35771 # Whether or not to build static libraries.
35772 build_old_libs=$enable_static
35774 # What type of objects to build.
35777 # Whether or not to optimize for fast installation.
35778 fast_install=$enable_fast_install
35781 host_alias=$host_alias
35785 # The build system.
35786 build_alias=$build_alias
35790 # A BSD- or MS-compatible name lister.
35793 # Whether we need soft or hard links.
35796 # What is the maximum length of a command?
35797 max_cmd_len=$max_cmd_len
35799 # Object file suffix (normally "o").
35802 # Executable file suffix (normally "").
35805 # whether the shell understands "unset".
35808 # turn spaces into newlines.
35811 # turn newlines into spaces.
35814 # convert \$build file names to \$host format.
35815 to_host_file_cmd=$lt_cv_to_host_file_cmd
35817 # convert \$build files to toolchain format.
35818 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
35820 # Method to check whether dependent libraries are shared objects.
35821 deplibs_check_method=$lt_deplibs_check_method
35823 # Command to use when deplibs_check_method = "file_magic".
35824 file_magic_cmd=$lt_file_magic_cmd
35826 # How to find potential files when deplibs_check_method = "file_magic".
35827 file_magic_glob=$lt_file_magic_glob
35829 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
35830 want_nocaseglob=$lt_want_nocaseglob
35832 # Command to associate shared and link libraries.
35833 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
35838 # Flags to create an archive.
35839 AR_FLAGS=$lt_AR_FLAGS
35841 # How to feed a file listing to the archiver.
35842 archiver_list_spec=$lt_archiver_list_spec
35844 # A symbol stripping program.
35847 # Commands used to install an old-style archive.
35849 old_postinstall_cmds=$lt_old_postinstall_cmds
35850 old_postuninstall_cmds=$lt_old_postuninstall_cmds
35852 # Whether to use a lock for old archive extraction.
35853 lock_old_archive_extraction=$lock_old_archive_extraction
35858 # LTCC compiler flags.
35859 LTCFLAGS=$lt_CFLAGS
35861 # Take the output of nm and produce a listing of raw symbols and C names.
35862 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35864 # Transform the output of nm in a proper C declaration.
35865 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35867 # Transform the output of nm in a C name address pair.
35868 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35870 # Transform the output of nm in a C name address pair when lib prefix is needed.
35871 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35873 # Specify filename containing input files for \$NM.
35874 nm_file_list_spec=$lt_nm_file_list_spec
35876 # The root where to search for dependent libraries,and in which our libraries should be installed.
35877 lt_sysroot=$lt_sysroot
35879 # The name of the directory that contains temporary libtool files.
35882 # Used to examine libraries when file_magic_cmd begins with "file".
35883 MAGIC_CMD=$MAGIC_CMD
35885 # Must we lock files when doing compilation?
35886 need_locks=$lt_need_locks
35889 MANIFEST_TOOL=$lt_MANIFEST_TOOL
35891 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35892 DSYMUTIL=$lt_DSYMUTIL
35894 # Tool to change global to local symbols on Mac OS X.
35897 # Tool to manipulate fat objects and archives on Mac OS X.
35900 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
35903 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35904 OTOOL64=$lt_OTOOL64
35906 # Old archive suffix (normally "a").
35909 # Shared library suffix (normally ".so").
35910 shrext_cmds=$lt_shrext_cmds
35912 # The commands to extract the exported symbol list from a shared archive.
35913 extract_expsyms_cmds=$lt_extract_expsyms_cmds
35915 # Variables whose values should be saved in libtool wrapper scripts and
35916 # restored at link time.
35917 variables_saved_for_relink=$lt_variables_saved_for_relink
35919 # Do we need the "lib" prefix for modules?
35920 need_lib_prefix=$need_lib_prefix
35922 # Do we need a version for libraries?
35923 need_version=$need_version
35925 # Library versioning type.
35926 version_type=$version_type
35928 # Shared library runtime path variable.
35929 runpath_var=$runpath_var
35931 # Shared library path variable.
35932 shlibpath_var=$shlibpath_var
35934 # Is shlibpath searched before the hard-coded library search path?
35935 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35937 # Format of library name prefix.
35938 libname_spec=$lt_libname_spec
35940 # List of archive names. First name is the real one, the rest are links.
35941 # The last name is the one that the linker finds with -lNAME
35942 library_names_spec=$lt_library_names_spec
35944 # The coded name of the library, if different from the real name.
35945 soname_spec=$lt_soname_spec
35947 # Permission mode override for installation of shared libraries.
35948 install_override_mode=$lt_install_override_mode
35950 # Command to use after installation of a shared archive.
35951 postinstall_cmds=$lt_postinstall_cmds
35953 # Command to use after uninstallation of a shared archive.
35954 postuninstall_cmds=$lt_postuninstall_cmds
35956 # Commands used to finish a libtool library installation in a directory.
35957 finish_cmds=$lt_finish_cmds
35959 # As "finish_cmds", except a single script fragment to be evaled but
35961 finish_eval=$lt_finish_eval
35963 # Whether we should hardcode library paths into libraries.
35964 hardcode_into_libs=$hardcode_into_libs
35966 # Compile-time system search path for libraries.
35967 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35969 # Run-time system search path for libraries.
35970 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35972 # Whether dlopen is supported.
35973 dlopen_support=$enable_dlopen
35975 # Whether dlopen of programs is supported.
35976 dlopen_self=$enable_dlopen_self
35978 # Whether dlopen of statically linked programs is supported.
35979 dlopen_self_static=$enable_dlopen_self_static
35981 # Commands to strip libraries.
35982 old_striplib=$lt_old_striplib
35983 striplib=$lt_striplib
35986 # The linker used to build libraries.
35989 # How to create reloadable object files.
35990 reload_flag=$lt_reload_flag
35991 reload_cmds=$lt_reload_cmds
35993 # Commands used to build an old-style archive.
35994 old_archive_cmds=$lt_old_archive_cmds
35996 # A language specific compiler.
35999 # Is the compiler the GNU compiler?
36002 # Compiler flag to turn off builtin functions.
36003 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
36005 # Additional compiler flags for building library objects.
36006 pic_flag=$lt_lt_prog_compiler_pic
36008 # How to pass a linker flag through the compiler.
36009 wl=$lt_lt_prog_compiler_wl
36011 # Compiler flag to prevent dynamic linking.
36012 link_static_flag=$lt_lt_prog_compiler_static
36014 # Does compiler simultaneously support -c and -o options?
36015 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
36017 # Whether or not to add -lc for building shared libraries.
36018 build_libtool_need_lc=$archive_cmds_need_lc
36020 # Whether or not to disallow shared libs when runtime libs are static.
36021 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
36023 # Compiler flag to allow reflexive dlopens.
36024 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
36026 # Compiler flag to generate shared objects directly from archives.
36027 whole_archive_flag_spec=$lt_whole_archive_flag_spec
36029 # Whether the compiler copes with passing no objects directly.
36030 compiler_needs_object=$lt_compiler_needs_object
36032 # Create an old-style archive from a shared archive.
36033 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
36035 # Create a temporary old-style archive to link instead of a shared archive.
36036 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
36038 # Commands used to build a shared archive.
36039 archive_cmds=$lt_archive_cmds
36040 archive_expsym_cmds=$lt_archive_expsym_cmds
36042 # Commands used to build a loadable module if different from building
36043 # a shared archive.
36044 module_cmds=$lt_module_cmds
36045 module_expsym_cmds=$lt_module_expsym_cmds
36047 # Whether we are building with GNU ld or not.
36048 with_gnu_ld=$lt_with_gnu_ld
36050 # Flag that allows shared libraries with undefined symbols to be built.
36051 allow_undefined_flag=$lt_allow_undefined_flag
36053 # Flag that enforces no undefined symbols.
36054 no_undefined_flag=$lt_no_undefined_flag
36056 # Flag to hardcode \$libdir into a binary during linking.
36057 # This must work even if \$libdir does not exist
36058 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
36060 # If ld is used when linking, flag to hardcode \$libdir into a binary
36061 # during linking. This must work even if \$libdir does not exist.
36062 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
36064 # Whether we need a single "-rpath" flag with a separated argument.
36065 hardcode_libdir_separator=$lt_hardcode_libdir_separator
36067 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36068 # DIR into the resulting binary.
36069 hardcode_direct=$hardcode_direct
36071 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36072 # DIR into the resulting binary and the resulting library dependency is
36073 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36074 # library is relocated.
36075 hardcode_direct_absolute=$hardcode_direct_absolute
36077 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36078 # into the resulting binary.
36079 hardcode_minus_L=$hardcode_minus_L
36081 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36082 # into the resulting binary.
36083 hardcode_shlibpath_var=$hardcode_shlibpath_var
36085 # Set to "yes" if building a shared library automatically hardcodes DIR
36086 # into the library and all subsequent libraries and executables linked
36088 hardcode_automatic=$hardcode_automatic
36090 # Set to yes if linker adds runtime paths of dependent libraries
36091 # to runtime path list.
36092 inherit_rpath=$inherit_rpath
36094 # Whether libtool must link a program against all its dependency libraries.
36095 link_all_deplibs=$link_all_deplibs
36097 # Set to "yes" if exported symbols are required.
36098 always_export_symbols=$always_export_symbols
36100 # The commands to list exported symbols.
36101 export_symbols_cmds=$lt_export_symbols_cmds
36103 # Symbols that should not be listed in the preloaded symbols.
36104 exclude_expsyms=$lt_exclude_expsyms
36106 # Symbols that must always be exported.
36107 include_expsyms=$lt_include_expsyms
36109 # Commands necessary for linking programs (against libraries) with templates.
36110 prelink_cmds=$lt_prelink_cmds
36112 # Commands necessary for finishing linking programs.
36113 postlink_cmds=$lt_postlink_cmds
36115 # Specify filename containing input files.
36116 file_list_spec=$lt_file_list_spec
36118 # How to hardcode a shared library path into an executable.
36119 hardcode_action=$hardcode_action
36121 # The directories searched by this compiler when creating a shared library.
36122 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
36124 # Dependencies to place before and after the objects being linked to
36125 # create a shared library.
36126 predep_objects=$lt_predep_objects
36127 postdep_objects=$lt_postdep_objects
36128 predeps=$lt_predeps
36129 postdeps=$lt_postdeps
36131 # The library search path used internally by the compiler when linking
36132 # a shared library.
36133 compiler_lib_search_path=$lt_compiler_lib_search_path
36135 # ### END LIBTOOL CONFIG
36141 cat <<\_LT_EOF >> "$cfgfile"
36142 # AIX sometimes has problems with the GCC collect2 program. For some
36143 # reason, if we set the COLLECT_NAMES environment variable, the problems
36144 # vanish in a puff of smoke.
36145 if test "X${COLLECT_NAMES+set}" != Xset; then
36147 export COLLECT_NAMES
36154 ltmain="$ac_aux_dir/ltmain.sh"
36157 # We use sed instead of cat because bash on DJGPP gets confused if
36158 # if finds mixed CR/LF and LF-only lines. Since sed operates in
36159 # text mode, it properly converts lines to CR/LF. This bash problem
36160 # is reportedly fixed, but why not run on old versions too?
36161 sed '$q' "$ltmain" >> "$cfgfile" \
36162 || (rm -f "$cfgfile"; exit 1)
36164 if test x"$xsi_shell" = xyes; then
36165 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
36169 \ */*) func_dirname_result="${1%/*}${2}" ;;\
36170 \ * ) func_dirname_result="${3}" ;;\
36172 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
36173 && mv -f "$cfgfile.tmp" "$cfgfile" \
36174 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36175 test 0 -eq $? || _lt_function_replace_fail=:
36178 sed -e '/^func_basename ()$/,/^} # func_basename /c\
36181 \ func_basename_result="${1##*/}"\
36182 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
36183 && mv -f "$cfgfile.tmp" "$cfgfile" \
36184 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36185 test 0 -eq $? || _lt_function_replace_fail=:
36188 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
36189 func_dirname_and_basename ()\
36192 \ */*) func_dirname_result="${1%/*}${2}" ;;\
36193 \ * ) func_dirname_result="${3}" ;;\
36195 \ func_basename_result="${1##*/}"\
36196 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
36197 && mv -f "$cfgfile.tmp" "$cfgfile" \
36198 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36199 test 0 -eq $? || _lt_function_replace_fail=:
36202 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
36205 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
36206 \ # positional parameters, so assign one to ordinary parameter first.\
36207 \ func_stripname_result=${3}\
36208 \ func_stripname_result=${func_stripname_result#"${1}"}\
36209 \ func_stripname_result=${func_stripname_result%"${2}"}\
36210 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
36211 && mv -f "$cfgfile.tmp" "$cfgfile" \
36212 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36213 test 0 -eq $? || _lt_function_replace_fail=:
36216 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
36217 func_split_long_opt ()\
36219 \ func_split_long_opt_name=${1%%=*}\
36220 \ func_split_long_opt_arg=${1#*=}\
36221 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
36222 && mv -f "$cfgfile.tmp" "$cfgfile" \
36223 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36224 test 0 -eq $? || _lt_function_replace_fail=:
36227 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
36228 func_split_short_opt ()\
36230 \ func_split_short_opt_arg=${1#??}\
36231 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
36232 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
36233 && mv -f "$cfgfile.tmp" "$cfgfile" \
36234 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36235 test 0 -eq $? || _lt_function_replace_fail=:
36238 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
36242 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
36243 \ *) func_lo2o_result=${1} ;;\
36245 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
36246 && mv -f "$cfgfile.tmp" "$cfgfile" \
36247 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36248 test 0 -eq $? || _lt_function_replace_fail=:
36251 sed -e '/^func_xform ()$/,/^} # func_xform /c\
36254 func_xform_result=${1%.*}.lo\
36255 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
36256 && mv -f "$cfgfile.tmp" "$cfgfile" \
36257 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36258 test 0 -eq $? || _lt_function_replace_fail=:
36261 sed -e '/^func_arith ()$/,/^} # func_arith /c\
36264 func_arith_result=$(( $* ))\
36265 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
36266 && mv -f "$cfgfile.tmp" "$cfgfile" \
36267 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36268 test 0 -eq $? || _lt_function_replace_fail=:
36271 sed -e '/^func_len ()$/,/^} # func_len /c\
36274 func_len_result=${#1}\
36275 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
36276 && mv -f "$cfgfile.tmp" "$cfgfile" \
36277 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36278 test 0 -eq $? || _lt_function_replace_fail=:
36282 if test x"$lt_shell_append" = xyes; then
36283 sed -e '/^func_append ()$/,/^} # func_append /c\
36286 eval "${1}+=\\${2}"\
36287 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
36288 && mv -f "$cfgfile.tmp" "$cfgfile" \
36289 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36290 test 0 -eq $? || _lt_function_replace_fail=:
36293 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
36294 func_append_quoted ()\
36296 \ func_quote_for_eval "${2}"\
36297 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
36298 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
36299 && mv -f "$cfgfile.tmp" "$cfgfile" \
36300 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36301 test 0 -eq $? || _lt_function_replace_fail=:
36304 # Save a `func_append' function call where possible by direct use of '+='
36305 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
36306 && mv -f "$cfgfile.tmp" "$cfgfile" \
36307 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36308 test 0 -eq $? || _lt_function_replace_fail=:
36310 # Save a `func_append' function call even when '+=' is not available
36311 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
36312 && mv -f "$cfgfile.tmp" "$cfgfile" \
36313 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
36314 test 0 -eq $? || _lt_function_replace_fail=:
36317 if test x"$_lt_function_replace_fail" = x":"; then
36318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
36319 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
36323 mv -f "$cfgfile" "$ofile" ||
36324 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
36328 cat <<_LT_EOF >> "$ofile"
36330 # ### BEGIN LIBTOOL TAG CONFIG: CXX
36332 # The linker used to build libraries.
36335 # How to create reloadable object files.
36336 reload_flag=$lt_reload_flag_CXX
36337 reload_cmds=$lt_reload_cmds_CXX
36339 # Commands used to build an old-style archive.
36340 old_archive_cmds=$lt_old_archive_cmds_CXX
36342 # A language specific compiler.
36343 CC=$lt_compiler_CXX
36345 # Is the compiler the GNU compiler?
36348 # Compiler flag to turn off builtin functions.
36349 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
36351 # Additional compiler flags for building library objects.
36352 pic_flag=$lt_lt_prog_compiler_pic_CXX
36354 # How to pass a linker flag through the compiler.
36355 wl=$lt_lt_prog_compiler_wl_CXX
36357 # Compiler flag to prevent dynamic linking.
36358 link_static_flag=$lt_lt_prog_compiler_static_CXX
36360 # Does compiler simultaneously support -c and -o options?
36361 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
36363 # Whether or not to add -lc for building shared libraries.
36364 build_libtool_need_lc=$archive_cmds_need_lc_CXX
36366 # Whether or not to disallow shared libs when runtime libs are static.
36367 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
36369 # Compiler flag to allow reflexive dlopens.
36370 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
36372 # Compiler flag to generate shared objects directly from archives.
36373 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
36375 # Whether the compiler copes with passing no objects directly.
36376 compiler_needs_object=$lt_compiler_needs_object_CXX
36378 # Create an old-style archive from a shared archive.
36379 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
36381 # Create a temporary old-style archive to link instead of a shared archive.
36382 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
36384 # Commands used to build a shared archive.
36385 archive_cmds=$lt_archive_cmds_CXX
36386 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
36388 # Commands used to build a loadable module if different from building
36389 # a shared archive.
36390 module_cmds=$lt_module_cmds_CXX
36391 module_expsym_cmds=$lt_module_expsym_cmds_CXX
36393 # Whether we are building with GNU ld or not.
36394 with_gnu_ld=$lt_with_gnu_ld_CXX
36396 # Flag that allows shared libraries with undefined symbols to be built.
36397 allow_undefined_flag=$lt_allow_undefined_flag_CXX
36399 # Flag that enforces no undefined symbols.
36400 no_undefined_flag=$lt_no_undefined_flag_CXX
36402 # Flag to hardcode \$libdir into a binary during linking.
36403 # This must work even if \$libdir does not exist
36404 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
36406 # If ld is used when linking, flag to hardcode \$libdir into a binary
36407 # during linking. This must work even if \$libdir does not exist.
36408 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
36410 # Whether we need a single "-rpath" flag with a separated argument.
36411 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
36413 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36414 # DIR into the resulting binary.
36415 hardcode_direct=$hardcode_direct_CXX
36417 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
36418 # DIR into the resulting binary and the resulting library dependency is
36419 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
36420 # library is relocated.
36421 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
36423 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
36424 # into the resulting binary.
36425 hardcode_minus_L=$hardcode_minus_L_CXX
36427 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
36428 # into the resulting binary.
36429 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
36431 # Set to "yes" if building a shared library automatically hardcodes DIR
36432 # into the library and all subsequent libraries and executables linked
36434 hardcode_automatic=$hardcode_automatic_CXX
36436 # Set to yes if linker adds runtime paths of dependent libraries
36437 # to runtime path list.
36438 inherit_rpath=$inherit_rpath_CXX
36440 # Whether libtool must link a program against all its dependency libraries.
36441 link_all_deplibs=$link_all_deplibs_CXX
36443 # Set to "yes" if exported symbols are required.
36444 always_export_symbols=$always_export_symbols_CXX
36446 # The commands to list exported symbols.
36447 export_symbols_cmds=$lt_export_symbols_cmds_CXX
36449 # Symbols that should not be listed in the preloaded symbols.
36450 exclude_expsyms=$lt_exclude_expsyms_CXX
36452 # Symbols that must always be exported.
36453 include_expsyms=$lt_include_expsyms_CXX
36455 # Commands necessary for linking programs (against libraries) with templates.
36456 prelink_cmds=$lt_prelink_cmds_CXX
36458 # Commands necessary for finishing linking programs.
36459 postlink_cmds=$lt_postlink_cmds_CXX
36461 # Specify filename containing input files.
36462 file_list_spec=$lt_file_list_spec_CXX
36464 # How to hardcode a shared library path into an executable.
36465 hardcode_action=$hardcode_action_CXX
36467 # The directories searched by this compiler when creating a shared library.
36468 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
36470 # Dependencies to place before and after the objects being linked to
36471 # create a shared library.
36472 predep_objects=$lt_predep_objects_CXX
36473 postdep_objects=$lt_postdep_objects_CXX
36474 predeps=$lt_predeps_CXX
36475 postdeps=$lt_postdeps_CXX
36477 # The library search path used internally by the compiler when linking
36478 # a shared library.
36479 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
36481 # ### END LIBTOOL TAG CONFIG: CXX
36485 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
36486 "Magick-config.in":C) chmod +x magick/Magick-config ;;
36487 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
36488 "Wand-config.in":C) chmod +x wand/Wand-config ;;
36489 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
36490 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
36498 ac_clean_files=$ac_clean_files_save
36500 test $ac_write_fail = 0 ||
36501 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
36504 # configure is writing to config.log, and then calls config.status.
36505 # config.status does its own redirection, appending to config.log.
36506 # Unfortunately, on DOS this fails, as config.log is still kept open
36507 # by configure, so config.status won't be able to write to it; its
36508 # output is simply discarded. So we exec the FD to /dev/null,
36509 # effectively closing config.log, so it can be properly (re)opened and
36510 # appended to by config.status. When coming back to configure, we
36511 # need to make the FD available again.
36512 if test "$no_create" != yes; then
36514 ac_config_status_args=
36515 test "$silent" = yes &&
36516 ac_config_status_args="$ac_config_status_args --quiet"
36518 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
36520 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
36521 # would make configure fail if this is the last instruction.
36522 $ac_cs_success || as_fn_exit 1
36524 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
36525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
36526 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
36530 rm -f magick-version
36532 result_dejavu_font_dir='none'
36533 if test "${dejavu_font_dir}x" != 'x'; then
36534 result_dejavu_font_dir=$dejavu_font_dir
36537 result_ghostscript_font_dir='none'
36538 if test "${ghostscript_font_dir}x" != 'x'; then
36539 result_ghostscript_font_dir=$ghostscript_font_dir
36542 result_windows_font_dir='none'
36543 if test "${windows_font_dir}x" != 'x'; then
36544 result_windows_font_dir=${windows_font_dir}
36547 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
36548 ImageMagick is configured as follows. Please verify that this configuration
36549 matches your expectations.
36551 Host system type: $host
36552 Build system type: $build
36555 -------------------------------------------------------------------------------
36556 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
36557 Static libraries --enable-static=$enable_static $libtool_build_static_libs
36558 Module support --with-modules=$with_modules $with_modules
36559 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
36560 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
36561 High Dynamic Range Imagery
36562 --enable-hdri=$enable_hdri $enable_hdri
36564 Delegate Configuration:
36565 BZLIB --with-bzlib=$with_bzlib $have_bzlib
36566 Autotrace --with-autotrace=$with_autotrace $have_autotrace
36567 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
36568 DJVU --with-djvu=$with_djvu $have_djvu
36569 DPS --with-dps=$with_dps $have_dps
36570 FFTW --with-fftw=$with_fftw $have_fftw
36571 FlashPIX --with-fpx=$with_fpx $have_fpx
36572 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
36573 FreeType --with-freetype=$with_freetype $have_freetype
36574 GhostPCL None $PCLDelegate ($PCLVersion)
36575 GhostXPS None $XPSDelegate ($XPSVersion)
36576 Ghostscript None $PSDelegate ($GSVersion)
36577 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
36578 Ghostscript lib --with-gslib=$with_gslib $have_gslib
36579 Graphviz --with-gvc=$with_gvc $have_gvc
36580 JBIG --with-jbig=$with_jbig $have_jbig
36581 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
36582 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
36583 LCMS v1 --with-lcms=$with_lcms $have_lcms
36584 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
36585 LQR --with-lqr=$with_lqr $have_lqr
36586 LZMA --with-lzma=$with_lzma $have_lzma
36587 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
36588 OpenEXR --with-openexr=$with_openexr $have_openexr
36589 PERL --with-perl=$with_perl $have_perl
36590 PNG --with-png=$with_png $have_png
36591 RSVG --with-rsvg=$with_rsvg $have_rsvg
36592 TIFF --with-tiff=$with_tiff $have_tiff
36593 WEBP --with-webp=$with_webp $have_webp
36594 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
36595 WMF --with-wmf=$with_wmf $have_wmf
36596 X11 --with-x=$with_x $have_x
36597 XML --with-xml=$with_xml $have_xml
36598 ZLIB --with-zlib=$with_zlib $have_zlib
36601 X_CFLAGS = $X_CFLAGS
36602 X_PRE_LIBS = $X_PRE_LIBS
36604 X_EXTRA_LIBS = $X_EXTRA_LIBS
36606 Options used to compile and link:
36607 PREFIX = $PREFIX_DIR
36608 EXEC-PREFIX = $EXEC_PREFIX_DIR
36609 VERSION = $PACKAGE_VERSION
36612 CPPFLAGS = $MAGICK_CPPFLAGS
36613 PCFLAGS = $MAGICK_PCFLAGS
36616 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
36617 LIBS = $MAGICK_LIBS
36619 CXXFLAGS = $CXXFLAGS
36620 FEATURES = $MAGICK_FEATURES
36623 ImageMagick is configured as follows. Please verify that this configuration
36624 matches your expectations.
36626 Host system type: $host
36627 Build system type: $build
36630 -------------------------------------------------------------------------------
36631 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
36632 Static libraries --enable-static=$enable_static $libtool_build_static_libs
36633 Module support --with-modules=$with_modules $with_modules
36634 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
36635 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
36636 High Dynamic Range Imagery
36637 --enable-hdri=$enable_hdri $enable_hdri
36639 Delegate Configuration:
36640 BZLIB --with-bzlib=$with_bzlib $have_bzlib
36641 Autotrace --with-autotrace=$with_autotrace $have_autotrace
36642 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
36643 DJVU --with-djvu=$with_djvu $have_djvu
36644 DPS --with-dps=$with_dps $have_dps
36645 FFTW --with-fftw=$with_fftw $have_fftw
36646 FlashPIX --with-fpx=$with_fpx $have_fpx
36647 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
36648 FreeType --with-freetype=$with_freetype $have_freetype
36649 GhostPCL None $PCLDelegate ($PCLVersion)
36650 GhostXPS None $XPSDelegate ($XPSVersion)
36651 Ghostscript None $PSDelegate ($GSVersion)
36652 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
36653 Ghostscript lib --with-gslib=$with_gslib $have_gslib
36654 Graphviz --with-gvc=$with_gvc $have_gvc
36655 JBIG --with-jbig=$with_jbig $have_jbig
36656 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
36657 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
36658 LCMS v1 --with-lcms=$with_lcms $have_lcms
36659 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
36660 LQR --with-lqr=$with_lqr $have_lqr
36661 LZMA --with-lzma=$with_lzma $have_lzma
36662 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
36663 OpenEXR --with-openexr=$with_openexr $have_openexr
36664 PERL --with-perl=$with_perl $have_perl
36665 PNG --with-png=$with_png $have_png
36666 RSVG --with-rsvg=$with_rsvg $have_rsvg
36667 TIFF --with-tiff=$with_tiff $have_tiff
36668 WEBP --with-webp=$with_webp $have_webp
36669 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
36670 WMF --with-wmf=$with_wmf $have_wmf
36671 X11 --with-x=$with_x $have_x
36672 XML --with-xml=$with_xml $have_xml
36673 ZLIB --with-zlib=$with_zlib $have_zlib
36676 X_CFLAGS = $X_CFLAGS
36677 X_PRE_LIBS = $X_PRE_LIBS
36679 X_EXTRA_LIBS = $X_EXTRA_LIBS
36681 Options used to compile and link:
36682 PREFIX = $PREFIX_DIR
36683 EXEC-PREFIX = $EXEC_PREFIX_DIR
36684 VERSION = $PACKAGE_VERSION
36687 CPPFLAGS = $MAGICK_CPPFLAGS
36688 PCFLAGS = $MAGICK_PCFLAGS
36691 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
36692 LIBS = $MAGICK_LIBS
36694 CXXFLAGS = $CXXFLAGS
36695 FEATURES = $MAGICK_FEATURES