2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.66 for ImageMagick 6.6.6.
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.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
185 if (eval "$as_required") 2>/dev/null; then :
190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198 test -z "$as_dir" && as_dir=.
202 for as_base in sh bash ksh sh5; do
203 # Try only shells that exist, to save several forks.
204 as_shell=$as_dir/$as_base
205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 CONFIG_SHELL=$as_shell as_have_required=yes
208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
216 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
218 CONFIG_SHELL=$SHELL as_have_required=yes
223 if test "x$CONFIG_SHELL" != x; then :
224 # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242 $0: http://www.imagemagick.org about your system, including
243 $0: any error possibly output before this message. Then
244 $0: install a modern shell, or manually run the script
245 $0: under such a shell if you do have one."
251 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Unset more variables known to interfere with behavior of common tools.
254 CLICOLOR_FORCE= GREP_OPTIONS=
255 unset CLICOLOR_FORCE GREP_OPTIONS
257 ## --------------------- ##
258 ## M4sh Shell Functions. ##
259 ## --------------------- ##
262 # Portably unset VAR.
265 { eval $1=; unset $1;}
269 # as_fn_set_status STATUS
270 # -----------------------
271 # Set $? to STATUS, without forking.
279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 # Create "$as_dir" as a directory, including parents if necessary.
294 -*) as_dir=./$as_dir;;
296 test -d "$as_dir" || eval $as_mkdir_p || {
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309 $as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
327 test -d "$as_dir" && break
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
334 # as_fn_append VAR VALUE
335 # ----------------------
336 # Append the text in VALUE to the end of the definition contained in VAR. Take
337 # advantage of any shell optimizations that allow amortized linear growth over
338 # repeated appends, instead of the typical quadratic growth present in naive
340 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
354 # Perform arithmetic evaluation on the ARGs, and store the result in the
355 # global $as_val. Take advantage of shells that can avoid forks. The arguments
356 # must be portable across $(()) and expr.
357 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
365 as_val=`expr "$@" || test $? -eq 1`
370 # as_fn_error STATUS ERROR [LINENO LOG_FD]
371 # ----------------------------------------
372 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
374 # script with STATUS, using 1 if that was 0.
377 as_status=$1; test $as_status -eq 0 && as_status=1
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
382 $as_echo "$as_me: error: $2" >&2
383 as_fn_exit $as_status
386 if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
393 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
399 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
405 as_me=`$as_basename -- "$0" ||
406 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
410 sed '/^.*\/\([^/][^/]*\)\/*$/{
424 # Avoid depending upon Character Ranges.
425 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428 as_cr_digits='0123456789'
429 as_cr_alnum=$as_cr_Letters$as_cr_digits
432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
452 chmod +x "$as_me.lineno" ||
453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
463 ECHO_C= ECHO_N= ECHO_T=
464 case `echo -n x` in #(((((
466 case `echo 'xy\c'` in
467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
476 rm -f conf$$ conf$$.exe conf$$.file
477 if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
481 mkdir conf$$.dir 2>/dev/null
483 if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
492 elif ln conf$$.file conf$$ 2>/dev/null; then
500 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501 rmdir conf$$.dir 2>/dev/null
503 if mkdir -p . 2>/dev/null; then
504 as_mkdir_p='mkdir -p "$as_dir"'
506 test -d ./-p && rmdir ./-p
510 if test -x / >/dev/null 2>&1; then
513 if ls -dL / >/dev/null 2>&1; then
520 if test -d "$1"; then
526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
527 ???[sx]*):;;*)false;;esac;fi
531 as_executable_p=$as_test_x
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
539 SHELL=${CONFIG_SHELL-/bin/sh}
543 lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
546 test -n "$DJDIR" || exec 7<&0 </dev/null
550 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
551 # so uname gets run too.
552 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
557 ac_default_prefix=/usr/local
559 ac_config_libobj_dir=.
566 # Identity of this package.
567 PACKAGE_NAME='ImageMagick'
568 PACKAGE_TARNAME='ImageMagick'
569 PACKAGE_VERSION='6.6.6'
570 PACKAGE_STRING='ImageMagick 6.6.6'
571 PACKAGE_BUGREPORT='http://www.imagemagick.org'
574 ac_unique_file="magick/MagickCore.h"
575 ac_config_libobj_dir=ltdl
576 # Factoring default headers for most tests.
577 ac_includes_default="\
579 #ifdef HAVE_SYS_TYPES_H
580 # include <sys/types.h>
582 #ifdef HAVE_SYS_STAT_H
583 # include <sys/stat.h>
589 # ifdef HAVE_STDLIB_H
594 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 #ifdef HAVE_STRINGS_H
600 # include <strings.h>
602 #ifdef HAVE_INTTYPES_H
603 # include <inttypes.h>
613 ac_subst_vars='ltdl_LTLIBOBJS
631 PERL_SUPPORTS_DESTDIR
632 WITH_PERL_DYNAMIC_FALSE
633 WITH_PERL_DYNAMIC_TRUE
634 WITH_PERL_STATIC_FALSE
635 WITH_PERL_STATIC_TRUE
702 GnuplotDecodeDelegate
716 BlenderDecodeDelegate
718 AutotraceDecodeDelegate
749 OPENEXR_DELEGATE_FALSE
750 OPENEXR_DELEGATE_TRUE
777 FREETYPE_DELEGATE_FALSE
778 FREETYPE_DELEGATE_TRUE
780 FONTCONFIG_DELEGATE_FALSE
781 FONTCONFIG_DELEGATE_TRUE
796 AUTOTRACE_DELEGATE_FALSE
797 AUTOTRACE_DELEGATE_TRUE
822 WITH_MAGICK_PLUS_PLUS_FALSE
823 WITH_MAGICK_PLUS_PLUS_TRUE
838 LIBRARY_EXTRA_CPPFLAGS
839 MODULE_EXTRA_CPPFLAGS
844 MAINTAINER_MODE_FALSE
852 WITH_SHARED_LIBS_FALSE
853 WITH_SHARED_LIBS_TRUE
856 CONVENIENCE_LTDL_FALSE
857 CONVENIENCE_LTDL_TRUE
861 sys_symbol_underscore
901 WIN32_NATIVE_BUILD_FALSE
902 WIN32_NATIVE_BUILD_TRUE
903 WINGDI32_DELEGATE_FALSE
904 WINGDI32_DELEGATE_TRUE
937 MAGICK_FILTER_MODULE_PATH
938 MAGICK_CONFIGURE_BUILD_PATH
939 MAGICK_CONFIGURE_SRC_PATH
940 MAGICK_CODER_MODULE_PATH
955 CONFIG_STATUS_DEPENDENCIES
956 MAGICK_LIB_VERSION_NUMBER
957 MAGICK_LIB_VERSION_TEXT
969 INSTALL_STRIP_PROGRAM
984 PACKAGE_VERSION_ADDENDUM
986 PACKAGE_LIB_VERSION_NUMBER
990 MAGICK_LIBRARY_VERSION_INFO
991 MAGICK_LIBRARY_CURRENT_MIN
993 MAGICK_LIBRARY_REVISION
994 MAGICK_LIBRARY_CURRENT
1011 DISTCHECK_CONFIG_FLAGS
1039 program_transform_name
1052 enable_option_checking
1054 enable_dependency_tracking
1057 enable_bounds_checking
1058 enable_osx_universal_binary
1073 enable_delegate_build
1080 enable_maintainer_mode
1090 with_magick_plus_plus
1101 with_dejavu_font_dir
1120 with_windows_font_dir
1124 ac_precious_vars='build_alias
1155 # Initialize some variables set by options.
1157 ac_init_version=false
1158 ac_unrecognized_opts=
1159 ac_unrecognized_sep=
1160 # The variables have the same names as the options, with
1161 # dashes changed to underlines.
1162 cache_file=/dev/null
1169 program_transform_name=s,x,x,
1177 # Installation directory options.
1178 # These are left unexpanded so users can "make install exec_prefix=/foo"
1179 # and all the variables that are supposed to be based on exec_prefix
1180 # by default will actually change.
1181 # Use braces instead of parens because sh, perl, etc. also accept them.
1182 # (The list follows the same order as the GNU Coding Standards.)
1183 bindir='${exec_prefix}/bin'
1184 sbindir='${exec_prefix}/sbin'
1185 libexecdir='${exec_prefix}/libexec'
1186 datarootdir='${prefix}/share'
1187 datadir='${datarootdir}'
1188 sysconfdir='${prefix}/etc'
1189 sharedstatedir='${prefix}/com'
1190 localstatedir='${prefix}/var'
1191 includedir='${prefix}/include'
1192 oldincludedir='/usr/include'
1193 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1194 infodir='${datarootdir}/info'
1199 libdir='${exec_prefix}/lib'
1200 localedir='${datarootdir}/locale'
1201 mandir='${datarootdir}/man'
1207 # If the previous option needs an argument, assign it.
1208 if test -n "$ac_prev"; then
1209 eval $ac_prev=\$ac_option
1215 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1219 # Accept the important Cygnus configure options, so we can diagnose typos.
1221 case $ac_dashdash$ac_option in
1225 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1227 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1228 bindir=$ac_optarg ;;
1230 -build | --build | --buil | --bui | --bu)
1231 ac_prev=build_alias ;;
1232 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1233 build_alias=$ac_optarg ;;
1235 -cache-file | --cache-file | --cache-fil | --cache-fi \
1236 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1237 ac_prev=cache_file ;;
1238 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1239 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1240 cache_file=$ac_optarg ;;
1242 --config-cache | -C)
1243 cache_file=config.cache ;;
1245 -datadir | --datadir | --datadi | --datad)
1247 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1248 datadir=$ac_optarg ;;
1250 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1251 | --dataroo | --dataro | --datar)
1252 ac_prev=datarootdir ;;
1253 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1254 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1255 datarootdir=$ac_optarg ;;
1257 -disable-* | --disable-*)
1258 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1261 as_fn_error $? "invalid feature name: $ac_useropt"
1262 ac_useropt_orig=$ac_useropt
1263 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1266 "enable_$ac_useropt"
1268 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1269 ac_unrecognized_sep=', ';;
1271 eval enable_$ac_useropt=no ;;
1273 -docdir | --docdir | --docdi | --doc | --do)
1275 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1276 docdir=$ac_optarg ;;
1278 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1280 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1281 dvidir=$ac_optarg ;;
1283 -enable-* | --enable-*)
1284 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1285 # Reject names that are not valid shell variable names.
1286 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1287 as_fn_error $? "invalid feature name: $ac_useropt"
1288 ac_useropt_orig=$ac_useropt
1289 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1290 case $ac_user_opts in
1292 "enable_$ac_useropt"
1294 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1295 ac_unrecognized_sep=', ';;
1297 eval enable_$ac_useropt=\$ac_optarg ;;
1299 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1300 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1301 | --exec | --exe | --ex)
1302 ac_prev=exec_prefix ;;
1303 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1304 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1305 | --exec=* | --exe=* | --ex=*)
1306 exec_prefix=$ac_optarg ;;
1308 -gas | --gas | --ga | --g)
1309 # Obsolete; use --with-gas.
1312 -help | --help | --hel | --he | -h)
1313 ac_init_help=long ;;
1314 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1315 ac_init_help=recursive ;;
1316 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1317 ac_init_help=short ;;
1319 -host | --host | --hos | --ho)
1320 ac_prev=host_alias ;;
1321 -host=* | --host=* | --hos=* | --ho=*)
1322 host_alias=$ac_optarg ;;
1324 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1326 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1328 htmldir=$ac_optarg ;;
1330 -includedir | --includedir | --includedi | --included | --include \
1331 | --includ | --inclu | --incl | --inc)
1332 ac_prev=includedir ;;
1333 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1334 | --includ=* | --inclu=* | --incl=* | --inc=*)
1335 includedir=$ac_optarg ;;
1337 -infodir | --infodir | --infodi | --infod | --info | --inf)
1339 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1340 infodir=$ac_optarg ;;
1342 -libdir | --libdir | --libdi | --libd)
1344 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1345 libdir=$ac_optarg ;;
1347 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1348 | --libexe | --libex | --libe)
1349 ac_prev=libexecdir ;;
1350 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1351 | --libexe=* | --libex=* | --libe=*)
1352 libexecdir=$ac_optarg ;;
1354 -localedir | --localedir | --localedi | --localed | --locale)
1355 ac_prev=localedir ;;
1356 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1357 localedir=$ac_optarg ;;
1359 -localstatedir | --localstatedir | --localstatedi | --localstated \
1360 | --localstate | --localstat | --localsta | --localst | --locals)
1361 ac_prev=localstatedir ;;
1362 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1363 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1364 localstatedir=$ac_optarg ;;
1366 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1368 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1369 mandir=$ac_optarg ;;
1371 -nfp | --nfp | --nf)
1372 # Obsolete; use --without-fp.
1375 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1376 | --no-cr | --no-c | -n)
1379 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1380 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1383 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1384 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1385 | --oldin | --oldi | --old | --ol | --o)
1386 ac_prev=oldincludedir ;;
1387 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1388 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1389 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1390 oldincludedir=$ac_optarg ;;
1392 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1394 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1395 prefix=$ac_optarg ;;
1397 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1398 | --program-pre | --program-pr | --program-p)
1399 ac_prev=program_prefix ;;
1400 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1401 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1402 program_prefix=$ac_optarg ;;
1404 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1405 | --program-suf | --program-su | --program-s)
1406 ac_prev=program_suffix ;;
1407 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1408 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1409 program_suffix=$ac_optarg ;;
1411 -program-transform-name | --program-transform-name \
1412 | --program-transform-nam | --program-transform-na \
1413 | --program-transform-n | --program-transform- \
1414 | --program-transform | --program-transfor \
1415 | --program-transfo | --program-transf \
1416 | --program-trans | --program-tran \
1417 | --progr-tra | --program-tr | --program-t)
1418 ac_prev=program_transform_name ;;
1419 -program-transform-name=* | --program-transform-name=* \
1420 | --program-transform-nam=* | --program-transform-na=* \
1421 | --program-transform-n=* | --program-transform-=* \
1422 | --program-transform=* | --program-transfor=* \
1423 | --program-transfo=* | --program-transf=* \
1424 | --program-trans=* | --program-tran=* \
1425 | --progr-tra=* | --program-tr=* | --program-t=*)
1426 program_transform_name=$ac_optarg ;;
1428 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1430 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1431 pdfdir=$ac_optarg ;;
1433 -psdir | --psdir | --psdi | --psd | --ps)
1435 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1438 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1439 | -silent | --silent | --silen | --sile | --sil)
1442 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1444 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1446 sbindir=$ac_optarg ;;
1448 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1449 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1450 | --sharedst | --shareds | --shared | --share | --shar \
1452 ac_prev=sharedstatedir ;;
1453 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1454 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1455 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1457 sharedstatedir=$ac_optarg ;;
1459 -site | --site | --sit)
1461 -site=* | --site=* | --sit=*)
1464 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1466 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1467 srcdir=$ac_optarg ;;
1469 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1470 | --syscon | --sysco | --sysc | --sys | --sy)
1471 ac_prev=sysconfdir ;;
1472 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1473 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1474 sysconfdir=$ac_optarg ;;
1476 -target | --target | --targe | --targ | --tar | --ta | --t)
1477 ac_prev=target_alias ;;
1478 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1479 target_alias=$ac_optarg ;;
1481 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1484 -version | --version | --versio | --versi | --vers | -V)
1485 ac_init_version=: ;;
1488 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1489 # Reject names that are not valid shell variable names.
1490 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1491 as_fn_error $? "invalid package name: $ac_useropt"
1492 ac_useropt_orig=$ac_useropt
1493 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1494 case $ac_user_opts in
1498 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1499 ac_unrecognized_sep=', ';;
1501 eval with_$ac_useropt=\$ac_optarg ;;
1503 -without-* | --without-*)
1504 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1505 # Reject names that are not valid shell variable names.
1506 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1507 as_fn_error $? "invalid package name: $ac_useropt"
1508 ac_useropt_orig=$ac_useropt
1509 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1510 case $ac_user_opts in
1514 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1515 ac_unrecognized_sep=', ';;
1517 eval with_$ac_useropt=no ;;
1520 # Obsolete; use --with-x.
1523 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1524 | --x-incl | --x-inc | --x-in | --x-i)
1525 ac_prev=x_includes ;;
1526 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1527 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1528 x_includes=$ac_optarg ;;
1530 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1531 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1532 ac_prev=x_libraries ;;
1533 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1534 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1535 x_libraries=$ac_optarg ;;
1537 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1538 Try \`$0 --help' for more information"
1542 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1543 # Reject names that are not valid shell variable names.
1544 case $ac_envvar in #(
1545 '' | [0-9]* | *[!_$as_cr_alnum]* )
1546 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1548 eval $ac_envvar=\$ac_optarg
1549 export $ac_envvar ;;
1552 # FIXME: should be removed in autoconf 3.0.
1553 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1554 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1555 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1556 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1562 if test -n "$ac_prev"; then
1563 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1564 as_fn_error $? "missing argument to $ac_option"
1567 if test -n "$ac_unrecognized_opts"; then
1568 case $enable_option_checking in
1570 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1571 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1575 # Check all directory arguments for consistency.
1576 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1577 datadir sysconfdir sharedstatedir localstatedir includedir \
1578 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1579 libdir localedir mandir
1581 eval ac_val=\$$ac_var
1582 # Remove trailing slashes.
1585 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1586 eval $ac_var=\$ac_val;;
1588 # Be sure to have absolute directory names.
1590 [\\/$]* | ?:[\\/]* ) continue;;
1591 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1593 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1596 # There might be people who depend on the old broken behavior: `$host'
1597 # used to hold the argument of --host etc.
1598 # FIXME: To remove some day.
1601 target=$target_alias
1603 # FIXME: To remove some day.
1604 if test "x$host_alias" != x; then
1605 if test "x$build_alias" = x; then
1606 cross_compiling=maybe
1607 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1608 If a cross compiler is detected then cross compile mode will be used" >&2
1609 elif test "x$build_alias" != "x$host_alias"; then
1615 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1617 test "$silent" = yes && exec 6>/dev/null
1620 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1621 ac_ls_di=`ls -di .` &&
1622 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1623 as_fn_error $? "working directory cannot be determined"
1624 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1625 as_fn_error $? "pwd does not report name of working directory"
1628 # Find the source files, if location was not specified.
1629 if test -z "$srcdir"; then
1630 ac_srcdir_defaulted=yes
1631 # Try the directory containing this script, then the parent directory.
1632 ac_confdir=`$as_dirname -- "$as_myself" ||
1633 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1634 X"$as_myself" : 'X\(//\)[^/]' \| \
1635 X"$as_myself" : 'X\(//\)$' \| \
1636 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1637 $as_echo X"$as_myself" |
1638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1656 if test ! -r "$srcdir/$ac_unique_file"; then
1660 ac_srcdir_defaulted=no
1662 if test ! -r "$srcdir/$ac_unique_file"; then
1663 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1664 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1666 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1668 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1670 # When building in place, set srcdir=.
1671 if test "$ac_abs_confdir" = "$ac_pwd"; then
1674 # Remove unnecessary trailing slashes from srcdir.
1675 # Double slashes in file names in object file debugging info
1676 # mess up M-x gdb in Emacs.
1678 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1680 for ac_var in $ac_precious_vars; do
1681 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1682 eval ac_env_${ac_var}_value=\$${ac_var}
1683 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1684 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1688 # Report the --help message.
1690 if test "$ac_init_help" = "long"; then
1691 # Omit some internal or obsolete options to make the list less imposing.
1692 # This message is too long to be a string in the A/UX 3.1 sh.
1694 \`configure' configures ImageMagick 6.6.6 to adapt to many kinds of systems.
1696 Usage: $0 [OPTION]... [VAR=VALUE]...
1698 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1699 VAR=VALUE. See below for descriptions of some of the useful variables.
1701 Defaults for the options are specified in brackets.
1704 -h, --help display this help and exit
1705 --help=short display options specific to this package
1706 --help=recursive display the short help of all the included packages
1707 -V, --version display version information and exit
1708 -q, --quiet, --silent do not print \`checking ...' messages
1709 --cache-file=FILE cache test results in FILE [disabled]
1710 -C, --config-cache alias for \`--cache-file=config.cache'
1711 -n, --no-create do not create output files
1712 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1714 Installation directories:
1715 --prefix=PREFIX install architecture-independent files in PREFIX
1716 [$ac_default_prefix]
1717 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1720 By default, \`make install' will install all the files in
1721 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1722 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1723 for instance \`--prefix=\$HOME'.
1725 For better control, use the options below.
1727 Fine tuning of the installation directories:
1728 --bindir=DIR user executables [EPREFIX/bin]
1729 --sbindir=DIR system admin executables [EPREFIX/sbin]
1730 --libexecdir=DIR program executables [EPREFIX/libexec]
1731 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1732 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1733 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1734 --libdir=DIR object code libraries [EPREFIX/lib]
1735 --includedir=DIR C header files [PREFIX/include]
1736 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1737 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1738 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1739 --infodir=DIR info documentation [DATAROOTDIR/info]
1740 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1741 --mandir=DIR man documentation [DATAROOTDIR/man]
1742 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1743 --htmldir=DIR html documentation [DOCDIR]
1744 --dvidir=DIR dvi documentation [DOCDIR]
1745 --pdfdir=DIR pdf documentation [DOCDIR]
1746 --psdir=DIR ps documentation [DOCDIR]
1752 --program-prefix=PREFIX prepend PREFIX to installed program names
1753 --program-suffix=SUFFIX append SUFFIX to installed program names
1754 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1757 --x-includes=DIR X include files are in DIR
1758 --x-libraries=DIR X library files are in DIR
1761 --build=BUILD configure for building on BUILD [guessed]
1762 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1763 --target=TARGET configure for building compilers for TARGET [HOST]
1767 if test -n "$ac_init_help"; then
1768 case $ac_init_help in
1769 short | recursive ) echo "Configuration of ImageMagick 6.6.6:";;
1774 --disable-option-checking ignore unrecognized --enable/--with options
1775 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1776 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1777 --enable-silent-rules less verbose build output (undo: `make V=1')
1778 --disable-silent-rules verbose build output (undo: `make V=0')
1779 --disable-dependency-tracking speeds up one-time build
1780 --enable-dependency-tracking do not reject slow dependency extractors
1781 --bounds-checking enable run-time bounds-checking
1782 --enable-osx-universal-binary
1783 build universal binary on OS X [[default=no]]
1784 --disable-openmp do not use OpenMP
1785 --disable-opencl do not use OpenCL
1786 --disable-largefile omit support for large files
1787 --enable-shared[=PKGS] build shared libraries [default=yes]
1788 --enable-static[=PKGS] build static libraries [default=yes]
1789 --enable-fast-install[=PKGS]
1790 optimize for fast installation [default=yes]
1791 --disable-libtool-lock avoid locking (might break parallel builds)
1792 --enable-ltdl-install install libltdl
1793 --enable-delegate-build look for delegate libraries in build directory
1794 --disable-deprecated exclude deprecated methods in MagickCore and
1796 --disable-installed Formally install ImageMagick under PREFIX
1797 --disable-cipher disable enciphering and deciphering image pixels
1798 --enable-embeddable enable self-contained, embeddable,
1799 zero-configuration ImageMagick
1800 --enable-hdri accurately represent the wide range of intensity
1801 levels found in real scenes
1802 --disable-assert disable assert() statements in build
1803 --enable-maintainer-mode enable make rules and dependencies not useful
1804 (and sometimes confusing) to the casual installer
1805 --enable-ccmalloc enable 'ccmalloc' memory debug support
1806 --enable-efence enable 'efence' memory debug support
1807 --enable-prof enable 'prof' profiling support
1808 --enable-gprof enable 'gprof' profiling support
1809 --enable-gcov enable 'gcov' profiling support
1810 --disable-assert turn off assertions
1813 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1814 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1815 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1816 --with-dmalloc use dmalloc, as in
1817 http://www.dmalloc.com/dmalloc.tar.gz
1818 --without-threads disable threads support
1819 --with-pic try to use only PIC/non-PIC objects [default=use
1821 --with-included-ltdl use the GNU ltdl sources included here
1822 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1823 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1824 --with-modules enable building dynamically loadable modules
1825 --with-method-prefix=PREFIX
1826 prefix MagickCore API methods
1827 --with-quantum-depth=DEPTH
1828 number of bits in a pixel quantum (default 16)
1829 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1831 --with-frozenpaths freeze delegate paths
1832 --without-magick-plus-plus
1833 disable build/install of Magick++
1834 --with-perl enable build/install of PerlMagick
1835 --with-perl-options=OPTIONS
1836 options to pass on command-line when generating
1837 PerlMagick's build file
1838 --with-umem enable umem memory allocation library support
1839 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1840 --without-bzlib disable BZLIB support
1841 --with-x use the X Window System
1842 --without-zlib disable ZLIB support
1843 --with-autotrace enable autotrace support
1844 --without-dps disable Display Postscript support
1845 --without-djvu disable DjVu support
1846 --with-dejavu-font-dir=DIR
1847 DejaVu font directory
1848 --without-fftw disable FFTW support
1849 --without-fpx disable FlashPIX support
1850 --without-fontconfig disable fontconfig support
1851 --without-freetype disable Freetype support
1852 --without-gslib enable Ghostscript library support
1853 --with-fontpath=DIR prepend to default font search path
1854 --with-gs-font-dir=DIR Ghostscript font directory
1855 --without-gvc disable GVC support
1856 --without-jbig disable JBIG support
1857 --without-jpeg disable JPEG support
1858 --without-jp2 disable JPEG-2000 support
1859 --without-lcms disable lcms (v1.1X) support
1860 --without-lcms2 disable lcms (v2.X) support
1861 --without-lqr disable Liquid Rescale support
1862 --without-openexr disable OpenEXR support
1863 --without-png disable PNG support
1864 --without-rsvg disable RSVG support
1865 --without-tiff disable TIFF support
1866 --with-windows-font-dir=DIR
1867 directory containing MS-Windows fonts
1868 --without-wmf disable WMF support
1869 --without-xml disable XML support
1871 Some influential environment variables:
1872 CC C compiler command
1873 CFLAGS C compiler flags
1874 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1875 nonstandard directory <lib dir>
1876 LIBS libraries to pass to the linker, e.g. -l<library>
1877 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1878 you have headers in a nonstandard directory <include dir>
1880 CXX C++ compiler command
1881 CXXFLAGS C++ compiler flags
1882 PKG_CONFIG path to pkg-config utility
1883 CXXCPP C++ preprocessor
1884 XMKMF Path to xmkmf, Makefile generator for X Window System
1886 C compiler flags for AUTOTRACE, overriding pkg-config
1888 linker flags for AUTOTRACE, overriding pkg-config
1890 C compiler flags for FONTCONFIG, overriding pkg-config
1892 linker flags for FONTCONFIG, overriding pkg-config
1893 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1894 GVC_LIBS linker flags for GVC, overriding pkg-config
1895 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1896 LQR_LIBS linker flags for LQR, overriding pkg-config
1898 C compiler flags for OPENEXR, overriding pkg-config
1900 linker flags for OPENEXR, overriding pkg-config
1901 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1902 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1904 C compiler flags for CAIRO_SVG, overriding pkg-config
1906 linker flags for CAIRO_SVG, overriding pkg-config
1908 Use these variables to override the choices made by `configure' or to help
1909 it to find libraries and programs with nonstandard names/locations.
1911 Report bugs to <http://www.imagemagick.org>.
1916 if test "$ac_init_help" = "recursive"; then
1917 # If there are subdirs, report their specific --help.
1918 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1919 test -d "$ac_dir" ||
1920 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1925 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1927 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1928 # A ".." for each directory in $ac_dir_suffix.
1929 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1930 case $ac_top_builddir_sub in
1931 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1932 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1935 ac_abs_top_builddir=$ac_pwd
1936 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1937 # for backward compatibility:
1938 ac_top_builddir=$ac_top_build_prefix
1941 .) # We are building in place.
1943 ac_top_srcdir=$ac_top_builddir_sub
1944 ac_abs_top_srcdir=$ac_pwd ;;
1945 [\\/]* | ?:[\\/]* ) # Absolute name.
1946 ac_srcdir=$srcdir$ac_dir_suffix;
1947 ac_top_srcdir=$srcdir
1948 ac_abs_top_srcdir=$srcdir ;;
1950 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1951 ac_top_srcdir=$ac_top_build_prefix$srcdir
1952 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1954 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1956 cd "$ac_dir" || { ac_status=$?; continue; }
1957 # Check for guested configure.
1958 if test -f "$ac_srcdir/configure.gnu"; then
1960 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1961 elif test -f "$ac_srcdir/configure"; then
1963 $SHELL "$ac_srcdir/configure" --help=recursive
1965 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1967 cd "$ac_pwd" || { ac_status=$?; break; }
1971 test -n "$ac_init_help" && exit $ac_status
1972 if $ac_init_version; then
1974 ImageMagick configure 6.6.6
1975 generated by GNU Autoconf 2.66
1977 Copyright (C) 2010 Free Software Foundation, Inc.
1978 This configure script is free software; the Free Software Foundation
1979 gives unlimited permission to copy, distribute and modify it.
1984 ## ------------------------ ##
1985 ## Autoconf initialization. ##
1986 ## ------------------------ ##
1988 # ac_fn_c_try_compile LINENO
1989 # --------------------------
1990 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1991 ac_fn_c_try_compile ()
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 rm -f conftest.$ac_objext
1995 if { { ac_try="$ac_compile"
1997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1998 *) ac_try_echo=$ac_try;;
2000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2001 $as_echo "$ac_try_echo"; } >&5
2002 (eval "$ac_compile") 2>conftest.err
2004 if test -s conftest.err; then
2005 grep -v '^ *+' conftest.err >conftest.er1
2006 cat conftest.er1 >&5
2007 mv -f conftest.er1 conftest.err
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; } && {
2011 test -z "$ac_c_werror_flag" ||
2012 test ! -s conftest.err
2013 } && test -s conftest.$ac_objext; then :
2016 $as_echo "$as_me: failed program was:" >&5
2017 sed 's/^/| /' conftest.$ac_ext >&5
2021 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2022 as_fn_set_status $ac_retval
2024 } # ac_fn_c_try_compile
2026 # ac_fn_c_try_cpp LINENO
2027 # ----------------------
2028 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2031 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2032 if { { ac_try="$ac_cpp conftest.$ac_ext"
2034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2035 *) ac_try_echo=$ac_try;;
2037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2038 $as_echo "$ac_try_echo"; } >&5
2039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2041 if test -s conftest.err; then
2042 grep -v '^ *+' conftest.err >conftest.er1
2043 cat conftest.er1 >&5
2044 mv -f conftest.er1 conftest.err
2046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2047 test $ac_status = 0; } >/dev/null && {
2048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2049 test ! -s conftest.err
2053 $as_echo "$as_me: failed program was:" >&5
2054 sed 's/^/| /' conftest.$ac_ext >&5
2058 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2059 as_fn_set_status $ac_retval
2063 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2064 # -------------------------------------------------------
2065 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2066 # the include files in INCLUDES and setting the cache variable VAR
2068 ac_fn_c_check_header_mongrel ()
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 if eval "test \"\${$3+set}\"" = set; then :
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073 $as_echo_n "checking for $2... " >&6; }
2074 if eval "test \"\${$3+set}\"" = set; then :
2075 $as_echo_n "(cached) " >&6
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 $as_echo "$ac_res" >&6; }
2081 # Is the header compilable?
2082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2083 $as_echo_n "checking $2 usability... " >&6; }
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085 /* end confdefs.h. */
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 ac_header_compiler=yes
2092 ac_header_compiler=no
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2096 $as_echo "$ac_header_compiler" >&6; }
2098 # Is the header present?
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2100 $as_echo_n "checking $2 presence... " >&6; }
2101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2102 /* end confdefs.h. */
2105 if ac_fn_c_try_cpp "$LINENO"; then :
2106 ac_header_preproc=yes
2108 ac_header_preproc=no
2110 rm -f conftest.err conftest.$ac_ext
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2112 $as_echo "$ac_header_preproc" >&6; }
2114 # So? What about this header?
2115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2118 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2120 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2124 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2126 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2128 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2130 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2132 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2133 ( $as_echo "## ----------------------------------------- ##
2134 ## Report this to http://www.imagemagick.org ##
2135 ## ----------------------------------------- ##"
2136 ) | sed "s/^/$as_me: WARNING: /" >&2
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2140 $as_echo_n "checking for $2... " >&6; }
2141 if eval "test \"\${$3+set}\"" = set; then :
2142 $as_echo_n "(cached) " >&6
2144 eval "$3=\$ac_header_compiler"
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2148 $as_echo "$ac_res" >&6; }
2150 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2152 } # ac_fn_c_check_header_mongrel
2154 # ac_fn_c_try_run LINENO
2155 # ----------------------
2156 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2157 # that executables *can* be run.
2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161 if { { ac_try="$ac_link"
2163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2164 *) ac_try_echo=$ac_try;;
2166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2167 $as_echo "$ac_try_echo"; } >&5
2168 (eval "$ac_link") 2>&5
2170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2171 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2172 { { case "(($ac_try" in
2173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2174 *) ac_try_echo=$ac_try;;
2176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2177 $as_echo "$ac_try_echo"; } >&5
2178 (eval "$ac_try") 2>&5
2180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2181 test $ac_status = 0; }; }; then :
2184 $as_echo "$as_me: program exited with status $ac_status" >&5
2185 $as_echo "$as_me: failed program was:" >&5
2186 sed 's/^/| /' conftest.$ac_ext >&5
2188 ac_retval=$ac_status
2190 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2191 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2192 as_fn_set_status $ac_retval
2196 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2197 # -------------------------------------------------------
2198 # Tests whether HEADER exists and can be compiled using the include files in
2199 # INCLUDES, setting the cache variable VAR accordingly.
2200 ac_fn_c_check_header_compile ()
2202 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2204 $as_echo_n "checking for $2... " >&6; }
2205 if eval "test \"\${$3+set}\"" = set; then :
2206 $as_echo_n "(cached) " >&6
2208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2209 /* end confdefs.h. */
2213 if ac_fn_c_try_compile "$LINENO"; then :
2218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2222 $as_echo "$ac_res" >&6; }
2223 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2225 } # ac_fn_c_check_header_compile
2227 # ac_fn_cxx_try_compile LINENO
2228 # ----------------------------
2229 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2230 ac_fn_cxx_try_compile ()
2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233 rm -f conftest.$ac_objext
2234 if { { ac_try="$ac_compile"
2236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2237 *) ac_try_echo=$ac_try;;
2239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2240 $as_echo "$ac_try_echo"; } >&5
2241 (eval "$ac_compile") 2>conftest.err
2243 if test -s conftest.err; then
2244 grep -v '^ *+' conftest.err >conftest.er1
2245 cat conftest.er1 >&5
2246 mv -f conftest.er1 conftest.err
2248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2249 test $ac_status = 0; } && {
2250 test -z "$ac_cxx_werror_flag" ||
2251 test ! -s conftest.err
2252 } && test -s conftest.$ac_objext; then :
2255 $as_echo "$as_me: failed program was:" >&5
2256 sed 's/^/| /' conftest.$ac_ext >&5
2260 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2261 as_fn_set_status $ac_retval
2263 } # ac_fn_cxx_try_compile
2265 # ac_fn_c_try_link LINENO
2266 # -----------------------
2267 # Try to link conftest.$ac_ext, and return whether this succeeded.
2270 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2271 rm -f conftest.$ac_objext conftest$ac_exeext
2272 if { { ac_try="$ac_link"
2274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2275 *) ac_try_echo=$ac_try;;
2277 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2278 $as_echo "$ac_try_echo"; } >&5
2279 (eval "$ac_link") 2>conftest.err
2281 if test -s conftest.err; then
2282 grep -v '^ *+' conftest.err >conftest.er1
2283 cat conftest.er1 >&5
2284 mv -f conftest.er1 conftest.err
2286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2287 test $ac_status = 0; } && {
2288 test -z "$ac_c_werror_flag" ||
2289 test ! -s conftest.err
2290 } && test -s conftest$ac_exeext && {
2291 test "$cross_compiling" = yes ||
2292 $as_test_x conftest$ac_exeext
2296 $as_echo "$as_me: failed program was:" >&5
2297 sed 's/^/| /' conftest.$ac_ext >&5
2301 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2302 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2303 # interfere with the next link command; also delete a directory that is
2304 # left behind by Apple's compiler. We do this before executing the actions.
2305 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2306 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2307 as_fn_set_status $ac_retval
2309 } # ac_fn_c_try_link
2311 # ac_fn_c_check_func LINENO FUNC VAR
2312 # ----------------------------------
2313 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2314 ac_fn_c_check_func ()
2316 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2318 $as_echo_n "checking for $2... " >&6; }
2319 if eval "test \"\${$3+set}\"" = set; then :
2320 $as_echo_n "(cached) " >&6
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h. */
2324 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2325 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2326 #define $2 innocuous_$2
2328 /* System header to define __stub macros and hopefully few prototypes,
2329 which can conflict with char $2 (); below.
2330 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2331 <limits.h> exists even on freestanding compilers. */
2334 # include <limits.h>
2336 # include <assert.h>
2341 /* Override any GCC internal prototype to avoid an error.
2342 Use char because int might match the return type of a GCC
2343 builtin and then its argument prototype would still apply. */
2348 /* The GNU C library defines this for functions which it implements
2349 to always fail with ENOSYS. Some functions are actually named
2350 something starting with __ and the normal name is an alias. */
2351 #if defined __stub_$2 || defined __stub___$2
2363 if ac_fn_c_try_link "$LINENO"; then :
2368 rm -f core conftest.err conftest.$ac_objext \
2369 conftest$ac_exeext conftest.$ac_ext
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2373 $as_echo "$ac_res" >&6; }
2374 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2376 } # ac_fn_c_check_func
2378 # ac_fn_cxx_try_cpp LINENO
2379 # ------------------------
2380 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2381 ac_fn_cxx_try_cpp ()
2383 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2384 if { { ac_try="$ac_cpp conftest.$ac_ext"
2386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2387 *) ac_try_echo=$ac_try;;
2389 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2390 $as_echo "$ac_try_echo"; } >&5
2391 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2393 if test -s conftest.err; then
2394 grep -v '^ *+' conftest.err >conftest.er1
2395 cat conftest.er1 >&5
2396 mv -f conftest.er1 conftest.err
2398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2399 test $ac_status = 0; } >/dev/null && {
2400 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2401 test ! -s conftest.err
2405 $as_echo "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2410 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2411 as_fn_set_status $ac_retval
2413 } # ac_fn_cxx_try_cpp
2415 # ac_fn_cxx_try_link LINENO
2416 # -------------------------
2417 # Try to link conftest.$ac_ext, and return whether this succeeded.
2418 ac_fn_cxx_try_link ()
2420 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2421 rm -f conftest.$ac_objext conftest$ac_exeext
2422 if { { ac_try="$ac_link"
2424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2425 *) ac_try_echo=$ac_try;;
2427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2428 $as_echo "$ac_try_echo"; } >&5
2429 (eval "$ac_link") 2>conftest.err
2431 if test -s conftest.err; then
2432 grep -v '^ *+' conftest.err >conftest.er1
2433 cat conftest.er1 >&5
2434 mv -f conftest.er1 conftest.err
2436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2437 test $ac_status = 0; } && {
2438 test -z "$ac_cxx_werror_flag" ||
2439 test ! -s conftest.err
2440 } && test -s conftest$ac_exeext && {
2441 test "$cross_compiling" = yes ||
2442 $as_test_x conftest$ac_exeext
2446 $as_echo "$as_me: failed program was:" >&5
2447 sed 's/^/| /' conftest.$ac_ext >&5
2451 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2452 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2453 # interfere with the next link command; also delete a directory that is
2454 # left behind by Apple's compiler. We do this before executing the actions.
2455 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2456 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2457 as_fn_set_status $ac_retval
2459 } # ac_fn_cxx_try_link
2461 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2462 # ---------------------------------------------
2463 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2465 ac_fn_c_check_decl ()
2467 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2468 as_decl_name=`echo $2|sed 's/ *(.*//'`
2469 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2471 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2472 if eval "test \"\${$3+set}\"" = set; then :
2473 $as_echo_n "(cached) " >&6
2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h. */
2481 #ifndef $as_decl_name
2483 (void) $as_decl_use;
2485 (void) $as_decl_name;
2493 if ac_fn_c_try_compile "$LINENO"; then :
2498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2502 $as_echo "$ac_res" >&6; }
2503 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2505 } # ac_fn_c_check_decl
2507 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2508 # -------------------------------------------
2509 # Tests whether TYPE exists after having included INCLUDES, setting cache
2510 # variable VAR accordingly.
2511 ac_fn_c_check_type ()
2513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2515 $as_echo_n "checking for $2... " >&6; }
2516 if eval "test \"\${$3+set}\"" = set; then :
2517 $as_echo_n "(cached) " >&6
2520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2521 /* end confdefs.h. */
2532 if ac_fn_c_try_compile "$LINENO"; then :
2533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2534 /* end confdefs.h. */
2545 if ac_fn_c_try_compile "$LINENO"; then :
2550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2556 $as_echo "$ac_res" >&6; }
2557 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2559 } # ac_fn_c_check_type
2561 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2562 # ----------------------------------------------------
2563 # Tries to find if the field MEMBER exists in type AGGR, after including
2564 # INCLUDES, setting cache variable VAR accordingly.
2565 ac_fn_c_check_member ()
2567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2569 $as_echo_n "checking for $2.$3... " >&6; }
2570 if eval "test \"\${$4+set}\"" = set; then :
2571 $as_echo_n "(cached) " >&6
2573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574 /* end confdefs.h. */
2586 if ac_fn_c_try_compile "$LINENO"; then :
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590 /* end confdefs.h. */
2596 if (sizeof ac_aggr.$3)
2602 if ac_fn_c_try_compile "$LINENO"; then :
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2613 $as_echo "$ac_res" >&6; }
2614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2616 } # ac_fn_c_check_member
2618 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2619 # --------------------------------------------
2620 # Tries to find the compile-time value of EXPR in a program that includes
2621 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2623 ac_fn_c_compute_int ()
2625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2626 if test "$cross_compiling" = yes; then
2627 # Depending upon the size, compute the lo and hi bounds.
2628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2629 /* end confdefs.h. */
2634 static int test_array [1 - 2 * !(($2) >= 0)];
2641 if ac_fn_c_try_compile "$LINENO"; then :
2644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2645 /* end confdefs.h. */
2650 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2657 if ac_fn_c_try_compile "$LINENO"; then :
2658 ac_hi=$ac_mid; break
2660 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2661 if test $ac_lo -le $ac_mid; then
2665 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2671 /* end confdefs.h. */
2676 static int test_array [1 - 2 * !(($2) < 0)];
2683 if ac_fn_c_try_compile "$LINENO"; then :
2686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2687 /* end confdefs.h. */
2692 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2699 if ac_fn_c_try_compile "$LINENO"; then :
2700 ac_lo=$ac_mid; break
2702 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2703 if test $ac_mid -le $ac_hi; then
2707 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2717 # Binary search between lo and hi bounds.
2718 while test "x$ac_lo" != "x$ac_hi"; do
2719 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2721 /* end confdefs.h. */
2726 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2733 if ac_fn_c_try_compile "$LINENO"; then :
2736 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2741 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2746 /* end confdefs.h. */
2748 static long int longval () { return $2; }
2749 static unsigned long int ulongval () { return $2; }
2756 FILE *f = fopen ("conftest.val", "w");
2761 long int i = longval ();
2764 fprintf (f, "%ld", i);
2768 unsigned long int i = ulongval ();
2771 fprintf (f, "%lu", i);
2773 /* Do not output a trailing newline, as this causes \r\n confusion
2774 on some platforms. */
2775 return ferror (f) || fclose (f) != 0;
2781 if ac_fn_c_try_run "$LINENO"; then :
2782 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2787 conftest.$ac_objext conftest.beam conftest.$ac_ext
2791 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2792 as_fn_set_status $ac_retval
2794 } # ac_fn_c_compute_int
2796 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2797 # ---------------------------------------------------------
2798 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2799 # the include files in INCLUDES and setting the cache variable VAR
2801 ac_fn_cxx_check_header_mongrel ()
2803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2804 if eval "test \"\${$3+set}\"" = set; then :
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2806 $as_echo_n "checking for $2... " >&6; }
2807 if eval "test \"\${$3+set}\"" = set; then :
2808 $as_echo_n "(cached) " >&6
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2812 $as_echo "$ac_res" >&6; }
2814 # Is the header compilable?
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2816 $as_echo_n "checking $2 usability... " >&6; }
2817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2818 /* end confdefs.h. */
2822 if ac_fn_cxx_try_compile "$LINENO"; then :
2823 ac_header_compiler=yes
2825 ac_header_compiler=no
2827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2829 $as_echo "$ac_header_compiler" >&6; }
2831 # Is the header present?
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2833 $as_echo_n "checking $2 presence... " >&6; }
2834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2835 /* end confdefs.h. */
2838 if ac_fn_cxx_try_cpp "$LINENO"; then :
2839 ac_header_preproc=yes
2841 ac_header_preproc=no
2843 rm -f conftest.err conftest.$ac_ext
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2845 $as_echo "$ac_header_preproc" >&6; }
2847 # So? What about this header?
2848 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2851 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2853 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2857 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2859 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2861 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2863 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2865 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2866 ( $as_echo "## ----------------------------------------- ##
2867 ## Report this to http://www.imagemagick.org ##
2868 ## ----------------------------------------- ##"
2869 ) | sed "s/^/$as_me: WARNING: /" >&2
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2873 $as_echo_n "checking for $2... " >&6; }
2874 if eval "test \"\${$3+set}\"" = set; then :
2875 $as_echo_n "(cached) " >&6
2877 eval "$3=\$ac_header_compiler"
2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2881 $as_echo "$ac_res" >&6; }
2883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2885 } # ac_fn_cxx_check_header_mongrel
2886 cat >config.log <<_ACEOF
2887 This file contains any messages produced by compilers while
2888 running configure, to aid debugging if configure makes a mistake.
2890 It was created by ImageMagick $as_me 6.6.6, which was
2891 generated by GNU Autoconf 2.66. Invocation command line was
2903 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2904 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2905 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2906 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2907 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2909 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2910 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2912 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2913 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2914 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2915 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2916 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2917 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2918 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 test -z "$as_dir" && as_dir=.
2927 $as_echo "PATH: $as_dir"
2943 # Keep a trace of the command line.
2944 # Strip out --no-create and --no-recursion so they do not pile up.
2945 # Strip out --silent because we don't want to record it for future runs.
2946 # Also quote any args containing shell meta-characters.
2947 # Make two passes to allow for proper duplicate-argument suppression.
2951 ac_must_keep_next=false
2957 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2958 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2959 | -silent | --silent | --silen | --sile | --sil)
2962 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2965 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2967 as_fn_append ac_configure_args1 " '$ac_arg'"
2968 if test $ac_must_keep_next = true; then
2969 ac_must_keep_next=false # Got value, back to normal.
2972 *=* | --config-cache | -C | -disable-* | --disable-* \
2973 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2974 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2975 | -with-* | --with-* | -without-* | --without-* | --x)
2976 case "$ac_configure_args0 " in
2977 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2980 -* ) ac_must_keep_next=true ;;
2983 as_fn_append ac_configure_args " '$ac_arg'"
2988 { ac_configure_args0=; unset ac_configure_args0;}
2989 { ac_configure_args1=; unset ac_configure_args1;}
2991 # When interrupted or exit'd, cleanup temporary files, and complete
2992 # config.log. We remove comments because anyway the quotes in there
2993 # would cause problems or look ugly.
2994 # WARNING: Use '\'' to represent an apostrophe within the trap.
2995 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2996 trap 'exit_status=$?
2997 # Save into config.log some information that might help in debugging.
3001 $as_echo "## ---------------- ##
3002 ## Cache variables. ##
3003 ## ---------------- ##"
3005 # The following way of writing the cache mishandles newlines in values,
3007 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3008 eval ac_val=\$$ac_var
3012 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3013 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3016 _ | IFS | as_nl) ;; #(
3017 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3018 *) { eval $ac_var=; unset $ac_var;} ;;
3023 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3024 *${as_nl}ac_space=\ *)
3026 "s/'\''/'\''\\\\'\'''\''/g;
3027 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3030 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3037 $as_echo "## ----------------- ##
3038 ## Output variables. ##
3039 ## ----------------- ##"
3041 for ac_var in $ac_subst_vars
3043 eval ac_val=\$$ac_var
3045 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3047 $as_echo "$ac_var='\''$ac_val'\''"
3051 if test -n "$ac_subst_files"; then
3052 $as_echo "## ------------------- ##
3053 ## File substitutions. ##
3054 ## ------------------- ##"
3056 for ac_var in $ac_subst_files
3058 eval ac_val=\$$ac_var
3060 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3062 $as_echo "$ac_var='\''$ac_val'\''"
3067 if test -s confdefs.h; then
3068 $as_echo "## ----------- ##
3075 test "$ac_signal" != 0 &&
3076 $as_echo "$as_me: caught signal $ac_signal"
3077 $as_echo "$as_me: exit $exit_status"
3079 rm -f core *.core core.conftest.* &&
3080 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3083 for ac_signal in 1 2 13 15; do
3084 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3088 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3089 rm -f -r conftest* confdefs.h
3091 $as_echo "/* confdefs.h */" > confdefs.h
3093 # Predefined preprocessor variables.
3095 cat >>confdefs.h <<_ACEOF
3096 #define PACKAGE_NAME "$PACKAGE_NAME"
3099 cat >>confdefs.h <<_ACEOF
3100 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3103 cat >>confdefs.h <<_ACEOF
3104 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3107 cat >>confdefs.h <<_ACEOF
3108 #define PACKAGE_STRING "$PACKAGE_STRING"
3111 cat >>confdefs.h <<_ACEOF
3112 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3115 cat >>confdefs.h <<_ACEOF
3116 #define PACKAGE_URL "$PACKAGE_URL"
3120 # Let the site file select an alternate cache file if it wants to.
3121 # Prefer an explicitly selected file to automatically selected ones.
3124 if test -n "$CONFIG_SITE"; then
3125 # We do not want a PATH search for config.site.
3126 case $CONFIG_SITE in #((
3127 -*) ac_site_file1=./$CONFIG_SITE;;
3128 */*) ac_site_file1=$CONFIG_SITE;;
3129 *) ac_site_file1=./$CONFIG_SITE;;
3131 elif test "x$prefix" != xNONE; then
3132 ac_site_file1=$prefix/share/config.site
3133 ac_site_file2=$prefix/etc/config.site
3135 ac_site_file1=$ac_default_prefix/share/config.site
3136 ac_site_file2=$ac_default_prefix/etc/config.site
3138 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3140 test "x$ac_site_file" = xNONE && continue
3141 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3143 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3144 sed 's/^/| /' "$ac_site_file" >&5
3146 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3148 as_fn_error $? "failed to load site script $ac_site_file
3149 See \`config.log' for more details" "$LINENO" 5; }
3153 if test -r "$cache_file"; then
3154 # Some versions of bash will fail to source /dev/null (special files
3155 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3156 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3158 $as_echo "$as_me: loading cache $cache_file" >&6;}
3160 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3161 *) . "./$cache_file";;
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3166 $as_echo "$as_me: creating cache $cache_file" >&6;}
3170 as_fn_append ac_header_list " stdlib.h"
3171 as_fn_append ac_header_list " unistd.h"
3172 as_fn_append ac_header_list " sys/param.h"
3173 # Check that the precious variables saved in the cache have kept the same
3175 ac_cache_corrupted=false
3176 for ac_var in $ac_precious_vars; do
3177 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3178 eval ac_new_set=\$ac_env_${ac_var}_set
3179 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3180 eval ac_new_val=\$ac_env_${ac_var}_value
3181 case $ac_old_set,$ac_new_set in
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3184 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3185 ac_cache_corrupted=: ;;
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3188 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3189 ac_cache_corrupted=: ;;
3192 if test "x$ac_old_val" != "x$ac_new_val"; then
3193 # differences in whitespace do not lead to failure.
3194 ac_old_val_w=`echo x $ac_old_val`
3195 ac_new_val_w=`echo x $ac_new_val`
3196 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3198 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3199 ac_cache_corrupted=:
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3202 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3203 eval $ac_var=\$ac_old_val
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3206 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3207 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3208 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3211 # Pass precious variables to config.status.
3212 if test "$ac_new_set" = set; then
3214 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3215 *) ac_arg=$ac_var=$ac_new_val ;;
3217 case " $ac_configure_args " in
3218 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3219 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3223 if $ac_cache_corrupted; then
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3225 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3227 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3228 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3230 ## -------------------- ##
3231 ## Main body of script. ##
3232 ## -------------------- ##
3235 ac_cpp='$CPP $CPPFLAGS'
3236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3243 for ac_dir in config "$srcdir"/config; do
3244 if test -f "$ac_dir/install-sh"; then
3246 ac_install_sh="$ac_aux_dir/install-sh -c"
3248 elif test -f "$ac_dir/install.sh"; then
3250 ac_install_sh="$ac_aux_dir/install.sh -c"
3252 elif test -f "$ac_dir/shtool"; then
3254 ac_install_sh="$ac_aux_dir/shtool install -c"
3258 if test -z "$ac_aux_dir"; then
3259 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3262 # These three variables are undocumented and unsupported,
3263 # and are intended to be withdrawn in a future Autoconf release.
3264 # They can cause serious problems if a builder's source tree is in a directory
3265 # whose full name contains unusual characters.
3266 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3267 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3268 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3273 ac_config_headers="$ac_config_headers config/config.h"
3276 ac_config_commands="$ac_config_commands magick/magick-config.h"
3278 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"
3282 # Save initial user-tunable values
3285 for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3286 eval isset=\${$var+set}
3287 if test "$isset" = 'set'; then
3288 eval val=$`echo $var`
3289 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3294 CONFIGURE_ARGS="$0 ${ac_configure_args}"
3297 # Source file containing package/library versioning information.
3298 . ${srcdir}/version.sh
3300 echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3301 # Make sure we can run config.sub.
3302 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3303 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3306 $as_echo_n "checking build system type... " >&6; }
3307 if test "${ac_cv_build+set}" = set; then :
3308 $as_echo_n "(cached) " >&6
3310 ac_build_alias=$build_alias
3311 test "x$ac_build_alias" = x &&
3312 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3313 test "x$ac_build_alias" = x &&
3314 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3315 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3316 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3320 $as_echo "$ac_cv_build" >&6; }
3321 case $ac_cv_build in
3323 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3326 ac_save_IFS=$IFS; IFS='-'
3332 # Remember, the first character of IFS is used to create $*,
3333 # except with old shells:
3336 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3340 $as_echo_n "checking host system type... " >&6; }
3341 if test "${ac_cv_host+set}" = set; then :
3342 $as_echo_n "(cached) " >&6
3344 if test "x$host_alias" = x; then
3345 ac_cv_host=$ac_cv_build
3347 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3348 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3353 $as_echo "$ac_cv_host" >&6; }
3356 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3359 ac_save_IFS=$IFS; IFS='-'
3365 # Remember, the first character of IFS is used to create $*,
3366 # except with old shells:
3369 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3373 $as_echo_n "checking target system type... " >&6; }
3374 if test "${ac_cv_target+set}" = set; then :
3375 $as_echo_n "(cached) " >&6
3377 if test "x$target_alias" = x; then
3378 ac_cv_target=$ac_cv_host
3380 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3381 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3386 $as_echo "$ac_cv_target" >&6; }
3387 case $ac_cv_target in
3389 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3391 target=$ac_cv_target
3392 ac_save_IFS=$IFS; IFS='-'
3398 # Remember, the first character of IFS is used to create $*,
3399 # except with old shells:
3402 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3405 # The aliases save the names the user supplied, while $host etc.
3406 # will get canonicalized.
3407 test -n "$target_alias" &&
3408 test "$program_prefix$program_suffix$program_transform_name" = \
3410 program_prefix=${target_alias}-
3416 MAGICK_TARGET_CPU=$target_cpu
3419 MAGICK_TARGET_VENDOR=$target_vendor
3422 MAGICK_TARGET_OS=$target_os
3425 # Substitute library versioning
3426 MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3428 MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3432 # Ensure that make can run correctly
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3434 $as_echo_n "checking whether build environment is sane... " >&6; }
3437 echo timestamp > conftest.file
3438 # Reject unsafe characters in $srcdir or the absolute working directory
3439 # name. Accept space and tab only in the latter.
3443 *[\\\"\#\$\&\'\`$am_lf]*)
3444 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3447 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3448 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3451 # Do `set' in a subshell so we don't clobber the current shell's
3452 # arguments. Must try -L first in case configure is actually a
3453 # symlink; some systems play weird games with the mod time of symlinks
3454 # (eg FreeBSD returns the mod time of the symlink's containing
3457 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3458 if test "$*" = "X"; then
3460 set X `ls -t "$srcdir/configure" conftest.file`
3463 if test "$*" != "X $srcdir/configure conftest.file" \
3464 && test "$*" != "X conftest.file $srcdir/configure"; then
3466 # If neither matched, then we have a broken ls. This can happen
3467 # if, for instance, CONFIG_SHELL is bash and it inherits a
3468 # broken ls alias from the environment. This has actually
3469 # happened. Such a system could not be considered "sane".
3470 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3471 alias in your environment" "$LINENO" 5
3474 test "$2" = conftest.file
3480 as_fn_error $? "newly created file is older than distributed files!
3481 Check your system clock" "$LINENO" 5
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3484 $as_echo "yes" >&6; }
3486 am__api_version='1.11'
3488 # Find a good install program. We prefer a C program (faster),
3489 # so one script is as good as another. But avoid the broken or
3490 # incompatible versions:
3491 # SysV /etc/install, /usr/sbin/install
3492 # SunOS /usr/etc/install
3493 # IRIX /sbin/install
3495 # AmigaOS /C/install, which installs bootblocks on floppy discs
3496 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3497 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3498 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3499 # OS/2's system install, which has a completely different semantic
3500 # ./install, which can be erroneously created by make from ./install.sh.
3501 # Reject install programs that cannot install multiple files.
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3503 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3504 if test -z "$INSTALL"; then
3505 if test "${ac_cv_path_install+set}" = set; then :
3506 $as_echo_n "(cached) " >&6
3508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3512 test -z "$as_dir" && as_dir=.
3513 # Account for people who put trailing slashes in PATH elements.
3514 case $as_dir/ in #((
3515 ./ | .// | /[cC]/* | \
3516 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3517 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3520 # OSF1 and SCO ODT 3.0 have their own names for install.
3521 # Don't use installbsd from OSF since it installs stuff as root
3523 for ac_prog in ginstall scoinst install; do
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3526 if test $ac_prog = install &&
3527 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3528 # AIX install. It has an incompatible calling convention.
3530 elif test $ac_prog = install &&
3531 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3532 # program-specific install script used by HP pwplus--don't use.
3535 rm -rf conftest.one conftest.two conftest.dir
3536 echo one > conftest.one
3537 echo two > conftest.two
3539 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3540 test -s conftest.one && test -s conftest.two &&
3541 test -s conftest.dir/conftest.one &&
3542 test -s conftest.dir/conftest.two
3544 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3557 rm -rf conftest.one conftest.two conftest.dir
3560 if test "${ac_cv_path_install+set}" = set; then
3561 INSTALL=$ac_cv_path_install
3563 # As a last resort, use the slow shell script. Don't cache a
3564 # value for INSTALL within a source directory, because that will
3565 # break other packages using the cache if that directory is
3566 # removed, or if the value is a relative name.
3567 INSTALL=$ac_install_sh
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3571 $as_echo "$INSTALL" >&6; }
3573 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3574 # It thinks the first close brace ends the variable substitution.
3575 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3577 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3579 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3581 test "$program_prefix" != NONE &&
3582 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3583 # Use a double $ so make ignores it.
3584 test "$program_suffix" != NONE &&
3585 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3586 # Double any \ or $.
3587 # By default was `s,x,x', remove it if useless.
3588 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3589 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3591 # expand $ac_aux_dir to an absolute path
3592 am_aux_dir=`cd $ac_aux_dir && pwd`
3594 if test x"${MISSING+set}" != xset; then
3597 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3599 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3602 # Use eval to expand $SHELL
3603 if eval "$MISSING --run true"; then
3604 am_missing_run="$MISSING --run "
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3608 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3611 if test x"${install_sh}" != xset; then
3614 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3616 install_sh="\${SHELL} $am_aux_dir/install-sh"
3620 # Installed binaries are usually stripped using `strip' when the user
3621 # run `make install-strip'. However `strip' might not be the right
3622 # tool to use in cross-compilation environments, therefore Automake
3623 # will honor the `STRIP' environment variable to overrule this program.
3624 if test "$cross_compiling" != no; then
3625 if test -n "$ac_tool_prefix"; then
3626 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3627 set dummy ${ac_tool_prefix}strip; ac_word=$2
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3629 $as_echo_n "checking for $ac_word... " >&6; }
3630 if test "${ac_cv_prog_STRIP+set}" = set; then :
3631 $as_echo_n "(cached) " >&6
3633 if test -n "$STRIP"; then
3634 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 test -z "$as_dir" && as_dir=.
3641 for ac_exec_ext in '' $ac_executable_extensions; do
3642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3643 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3653 STRIP=$ac_cv_prog_STRIP
3654 if test -n "$STRIP"; then
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3656 $as_echo "$STRIP" >&6; }
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3664 if test -z "$ac_cv_prog_STRIP"; then
3666 # Extract the first word of "strip", so it can be a program name with args.
3667 set dummy strip; ac_word=$2
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3669 $as_echo_n "checking for $ac_word... " >&6; }
3670 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3671 $as_echo_n "(cached) " >&6
3673 if test -n "$ac_ct_STRIP"; then
3674 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3680 test -z "$as_dir" && as_dir=.
3681 for ac_exec_ext in '' $ac_executable_extensions; do
3682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3683 ac_cv_prog_ac_ct_STRIP="strip"
3684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3693 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3694 if test -n "$ac_ct_STRIP"; then
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3696 $as_echo "$ac_ct_STRIP" >&6; }
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3699 $as_echo "no" >&6; }
3702 if test "x$ac_ct_STRIP" = x; then
3705 case $cross_compiling:$ac_tool_warned in
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3708 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3709 ac_tool_warned=yes ;;
3714 STRIP="$ac_cv_prog_STRIP"
3718 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3721 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3722 if test -z "$MKDIR_P"; then
3723 if test "${ac_cv_path_mkdir+set}" = set; then :
3724 $as_echo_n "(cached) " >&6
3726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3727 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3730 test -z "$as_dir" && as_dir=.
3731 for ac_prog in mkdir gmkdir; do
3732 for ac_exec_ext in '' $ac_executable_extensions; do
3733 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3734 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3735 'mkdir (GNU coreutils) '* | \
3736 'mkdir (coreutils) '* | \
3737 'mkdir (fileutils) '4.1*)
3738 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3748 test -d ./--version && rmdir ./--version
3749 if test "${ac_cv_path_mkdir+set}" = set; then
3750 MKDIR_P="$ac_cv_path_mkdir -p"
3752 # As a last resort, use the slow shell script. Don't cache a
3753 # value for MKDIR_P within a source directory, because that will
3754 # break other packages using the cache if that directory is
3755 # removed, or if the value is a relative name.
3756 MKDIR_P="$ac_install_sh -d"
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3760 $as_echo "$MKDIR_P" >&6; }
3764 [\\/$]* | ?:[\\/]*) ;;
3765 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3768 for ac_prog in gawk mawk nawk awk
3770 # Extract the first word of "$ac_prog", so it can be a program name with args.
3771 set dummy $ac_prog; ac_word=$2
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3773 $as_echo_n "checking for $ac_word... " >&6; }
3774 if test "${ac_cv_prog_AWK+set}" = set; then :
3775 $as_echo_n "(cached) " >&6
3777 if test -n "$AWK"; then
3778 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784 test -z "$as_dir" && as_dir=.
3785 for ac_exec_ext in '' $ac_executable_extensions; do
3786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3787 ac_cv_prog_AWK="$ac_prog"
3788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3798 if test -n "$AWK"; then
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3800 $as_echo "$AWK" >&6; }
3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3803 $as_echo "no" >&6; }
3807 test -n "$AWK" && break
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3811 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3813 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3814 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3815 $as_echo_n "(cached) " >&6
3817 cat >conftest.make <<\_ACEOF
3820 @echo '@@@%%%=$(MAKE)=@@@%%%'
3822 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3823 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3825 eval ac_cv_prog_make_${ac_make}_set=yes;;
3827 eval ac_cv_prog_make_${ac_make}_set=no;;
3831 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3833 $as_echo "yes" >&6; }
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3837 $as_echo "no" >&6; }
3838 SET_MAKE="MAKE=${MAKE-make}"
3841 rm -rf .tst 2>/dev/null
3842 mkdir .tst 2>/dev/null
3843 if test -d .tst; then
3848 rmdir .tst 2>/dev/null
3850 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3851 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3852 # is not polluted with repeated "-I."
3853 am__isrc=' -I$(srcdir)'
3854 # test to see if srcdir already configured
3855 if test -f $srcdir/config.status; then
3856 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3860 # test whether we have cygpath
3861 if test -z "$CYGPATH_W"; then
3862 if (cygpath --version) >/dev/null 2>/dev/null; then
3863 CYGPATH_W='cygpath -w'
3870 # Define the identity of the package.
3871 PACKAGE=$PACKAGE_NAME
3872 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3875 # Some tools Automake needs.
3877 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3880 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3883 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3886 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3889 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3891 # We need awk for the "check" target. The system "awk" is bad on
3893 # Always define AMTAR for backward compatibility.
3895 AMTAR=${AMTAR-"${am_missing_run}tar"}
3897 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3904 # Enable support for silent build rules
3905 # Check whether --enable-silent-rules was given.
3906 if test "${enable_silent_rules+set}" = set; then :
3907 enableval=$enable_silent_rules;
3910 case $enable_silent_rules in
3911 yes) AM_DEFAULT_VERBOSITY=0;;
3912 no) AM_DEFAULT_VERBOSITY=1;;
3913 *) AM_DEFAULT_VERBOSITY=0;;
3918 MAGICK_LIB_VERSION="0x"
3919 if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3920 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3922 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3923 if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3924 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3926 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3927 if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3928 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3930 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3933 # Definition used to define MagickLibVersionText in version.h
3934 MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3937 # Definition used to define MagickLibVersionNumber in version.h
3938 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3941 # Regenerate config.status if ChangeLog or version.sh is updated.
3942 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3948 MAGICK_CPPFLAGS=$CPPFLAGS_USER
3949 MAGICK_PCFLAGS=$CPPFLAGS_USER
3955 # Evaluate shell variable equivalents to Makefile directory variables
3957 if test "x$prefix" = xNONE; then
3958 prefix=$ac_default_prefix
3960 # Let make expand exec_prefix.
3961 if test "x$exec_prefix" = xNONE; then
3962 exec_prefix='${prefix}'
3966 eval "eval PREFIX_DIR=${prefix}"
3968 eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3970 eval "eval BIN_DIR=$bindir"
3972 eval "eval SBIN_DIR=$sbindir"
3974 eval "eval LIBEXEC_DIR=$libexecdir"
3976 eval "eval DATA_DIR=$datadir"
3978 eval "eval SYSCONF_DIR=$sysconfdir"
3980 eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3982 eval "eval LOCALSTATE_DIR=$localstatedir"
3984 eval "eval LIB_DIR=$libdir"
3986 eval "eval INCLUDE_DIR=$includedir"
3988 eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
3990 eval "eval INFO_DIR=$infodir"
3992 eval "eval MAN_DIR=$mandir"
3995 # Get full paths to source and build directories
3996 srcdirfull="`cd $srcdir && pwd`"
4000 # Compute variables useful for running uninstalled software.
4002 MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4003 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4004 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4005 MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4007 case "${build_os}" in
4009 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4010 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4011 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4012 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4016 case "${host_os}" in
4029 # Enable OS features.
4031 DEPDIR="${am__leading_dot}deps"
4033 ac_config_commands="$ac_config_commands depfiles"
4036 am_make=${MAKE-make}
4037 cat > confinc << 'END'
4039 @echo this is the am__doit target
4042 # If we don't find an include directive, just comment out the code.
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4044 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4048 # First try GNU make style include.
4049 echo "include confinc" > confmf
4050 # Ignore all kinds of additional output from `make'.
4051 case `$am_make -s -f confmf 2> /dev/null` in #(
4052 *the\ am__doit\ target*)
4058 # Now try BSD make style include.
4059 if test "$am__include" = "#"; then
4060 echo '.include "confinc"' > confmf
4061 case `$am_make -s -f confmf 2> /dev/null` in #(
4062 *the\ am__doit\ target*)
4063 am__include=.include
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4072 $as_echo "$_am_result" >&6; }
4073 rm -f confinc confmf
4075 # Check whether --enable-dependency-tracking was given.
4076 if test "${enable_dependency_tracking+set}" = set; then :
4077 enableval=$enable_dependency_tracking;
4080 if test "x$enable_dependency_tracking" != xno; then
4081 am_depcomp="$ac_aux_dir/depcomp"
4084 if test "x$enable_dependency_tracking" != xno; then
4094 ac_cpp='$CPP $CPPFLAGS'
4095 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4096 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4097 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4098 if test -n "$ac_tool_prefix"; then
4099 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4100 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4102 $as_echo_n "checking for $ac_word... " >&6; }
4103 if test "${ac_cv_prog_CC+set}" = set; then :
4104 $as_echo_n "(cached) " >&6
4106 if test -n "$CC"; then
4107 ac_cv_prog_CC="$CC" # Let the user override the test.
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4116 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4127 if test -n "$CC"; then
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4129 $as_echo "$CC" >&6; }
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132 $as_echo "no" >&6; }
4137 if test -z "$ac_cv_prog_CC"; then
4139 # Extract the first word of "gcc", so it can be a program name with args.
4140 set dummy gcc; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4144 $as_echo_n "(cached) " >&6
4146 if test -n "$ac_ct_CC"; then
4147 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 test -z "$as_dir" && as_dir=.
4154 for ac_exec_ext in '' $ac_executable_extensions; do
4155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4156 ac_cv_prog_ac_ct_CC="gcc"
4157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4166 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4167 if test -n "$ac_ct_CC"; then
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4169 $as_echo "$ac_ct_CC" >&6; }
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4175 if test "x$ac_ct_CC" = x; then
4178 case $cross_compiling:$ac_tool_warned in
4180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4182 ac_tool_warned=yes ;;
4190 if test -z "$CC"; then
4191 if test -n "$ac_tool_prefix"; then
4192 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4193 set dummy ${ac_tool_prefix}cc; ac_word=$2
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4195 $as_echo_n "checking for $ac_word... " >&6; }
4196 if test "${ac_cv_prog_CC+set}" = set; then :
4197 $as_echo_n "(cached) " >&6
4199 if test -n "$CC"; then
4200 ac_cv_prog_CC="$CC" # Let the user override the test.
4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4206 test -z "$as_dir" && as_dir=.
4207 for ac_exec_ext in '' $ac_executable_extensions; do
4208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4209 ac_cv_prog_CC="${ac_tool_prefix}cc"
4210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4220 if test -n "$CC"; then
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4222 $as_echo "$CC" >&6; }
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4225 $as_echo "no" >&6; }
4231 if test -z "$CC"; then
4232 # Extract the first word of "cc", so it can be a program name with args.
4233 set dummy cc; ac_word=$2
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4235 $as_echo_n "checking for $ac_word... " >&6; }
4236 if test "${ac_cv_prog_CC+set}" = set; then :
4237 $as_echo_n "(cached) " >&6
4239 if test -n "$CC"; then
4240 ac_cv_prog_CC="$CC" # Let the user override the test.
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4247 test -z "$as_dir" && as_dir=.
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4250 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4251 ac_prog_rejected=yes
4255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 if test $ac_prog_rejected = yes; then
4263 # We found a bogon in the path, so make sure we never use it.
4264 set dummy $ac_cv_prog_CC
4266 if test $# != 0; then
4267 # We chose a different compiler from the bogus one.
4268 # However, it has the same basename, so the bogon will be chosen
4269 # first if we set CC to just the basename; use the full file name.
4271 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4277 if test -n "$CC"; then
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4279 $as_echo "$CC" >&6; }
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4282 $as_echo "no" >&6; }
4287 if test -z "$CC"; then
4288 if test -n "$ac_tool_prefix"; then
4289 for ac_prog in cl.exe
4291 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4292 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4294 $as_echo_n "checking for $ac_word... " >&6; }
4295 if test "${ac_cv_prog_CC+set}" = set; then :
4296 $as_echo_n "(cached) " >&6
4298 if test -n "$CC"; then
4299 ac_cv_prog_CC="$CC" # Let the user override the test.
4301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 test -z "$as_dir" && as_dir=.
4306 for ac_exec_ext in '' $ac_executable_extensions; do
4307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4308 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4319 if test -n "$CC"; then
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4321 $as_echo "$CC" >&6; }
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 $as_echo "no" >&6; }
4328 test -n "$CC" && break
4331 if test -z "$CC"; then
4333 for ac_prog in cl.exe
4335 # Extract the first word of "$ac_prog", so it can be a program name with args.
4336 set dummy $ac_prog; ac_word=$2
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4338 $as_echo_n "checking for $ac_word... " >&6; }
4339 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4340 $as_echo_n "(cached) " >&6
4342 if test -n "$ac_ct_CC"; then
4343 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4349 test -z "$as_dir" && as_dir=.
4350 for ac_exec_ext in '' $ac_executable_extensions; do
4351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4352 ac_cv_prog_ac_ct_CC="$ac_prog"
4353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4362 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4363 if test -n "$ac_ct_CC"; then
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4365 $as_echo "$ac_ct_CC" >&6; }
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4368 $as_echo "no" >&6; }
4372 test -n "$ac_ct_CC" && break
4375 if test "x$ac_ct_CC" = x; then
4378 case $cross_compiling:$ac_tool_warned in
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4382 ac_tool_warned=yes ;;
4391 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4393 as_fn_error $? "no acceptable C compiler found in \$PATH
4394 See \`config.log' for more details" "$LINENO" 5; }
4396 # Provide some information about the compiler.
4397 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4400 for ac_option in --version -v -V -qversion; do
4401 { { ac_try="$ac_compiler $ac_option >&5"
4403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4404 *) ac_try_echo=$ac_try;;
4406 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4407 $as_echo "$ac_try_echo"; } >&5
4408 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4410 if test -s conftest.err; then
4412 ... rest of stderr output deleted ...
4413 10q' conftest.err >conftest.er1
4414 cat conftest.er1 >&5
4416 rm -f conftest.er1 conftest.err
4417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4418 test $ac_status = 0; }
4421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4422 /* end confdefs.h. */
4432 ac_clean_files_save=$ac_clean_files
4433 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4434 # Try to create an executable without -o first, disregard a.out.
4435 # It will help us diagnose broken compilers, and finding out an intuition
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4438 $as_echo_n "checking whether the C compiler works... " >&6; }
4439 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4441 # The possible output files:
4442 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4445 for ac_file in $ac_files
4448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4449 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4454 if { { ac_try="$ac_link_default"
4456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4457 *) ac_try_echo=$ac_try;;
4459 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4460 $as_echo "$ac_try_echo"; } >&5
4461 (eval "$ac_link_default") 2>&5
4463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4464 test $ac_status = 0; }; then :
4465 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4466 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4467 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4468 # so that the user can short-circuit this test for compilers unknown to
4470 for ac_file in $ac_files ''
4472 test -f "$ac_file" || continue
4474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4477 # We found the default executable, but exeext='' is most
4481 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4483 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4485 # We set ac_cv_exeext here because the later test for it is not
4486 # safe: cross compilers may not add the suffix if given an `-o'
4487 # argument, so we may need to know it at that point already.
4488 # Even if this section looks crufty: it has the advantage of
4495 test "$ac_cv_exeext" = no && ac_cv_exeext=
4500 if test -z "$ac_file"; then :
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502 $as_echo "no" >&6; }
4503 $as_echo "$as_me: failed program was:" >&5
4504 sed 's/^/| /' conftest.$ac_ext >&5
4506 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4508 as_fn_error 77 "C compiler cannot create executables
4509 See \`config.log' for more details" "$LINENO" 5; }
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4512 $as_echo "yes" >&6; }
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4515 $as_echo_n "checking for C compiler default output file name... " >&6; }
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4517 $as_echo "$ac_file" >&6; }
4518 ac_exeext=$ac_cv_exeext
4520 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4521 ac_clean_files=$ac_clean_files_save
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4523 $as_echo_n "checking for suffix of executables... " >&6; }
4524 if { { ac_try="$ac_link"
4526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4527 *) ac_try_echo=$ac_try;;
4529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4530 $as_echo "$ac_try_echo"; } >&5
4531 (eval "$ac_link") 2>&5
4533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4534 test $ac_status = 0; }; then :
4535 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4536 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4537 # work properly (i.e., refer to `conftest.exe'), while it won't with
4539 for ac_file in conftest.exe conftest conftest.*; do
4540 test -f "$ac_file" || continue
4542 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4543 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4551 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4552 See \`config.log' for more details" "$LINENO" 5; }
4554 rm -f conftest conftest$ac_cv_exeext
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4556 $as_echo "$ac_cv_exeext" >&6; }
4558 rm -f conftest.$ac_ext
4559 EXEEXT=$ac_cv_exeext
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4567 FILE *f = fopen ("conftest.out", "w");
4568 return ferror (f) || fclose (f) != 0;
4574 ac_clean_files="$ac_clean_files conftest.out"
4575 # Check that the compiler produces executables we can run. If not, either
4576 # the compiler is broken, or we cross compile.
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4578 $as_echo_n "checking whether we are cross compiling... " >&6; }
4579 if test "$cross_compiling" != yes; then
4580 { { ac_try="$ac_link"
4582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4583 *) ac_try_echo=$ac_try;;
4585 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4586 $as_echo "$ac_try_echo"; } >&5
4587 (eval "$ac_link") 2>&5
4589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4590 test $ac_status = 0; }
4591 if { ac_try='./conftest$ac_cv_exeext'
4592 { { case "(($ac_try" in
4593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594 *) ac_try_echo=$ac_try;;
4596 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4597 $as_echo "$ac_try_echo"; } >&5
4598 (eval "$ac_try") 2>&5
4600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4601 test $ac_status = 0; }; }; then
4604 if test "$cross_compiling" = maybe; then
4607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4609 as_fn_error $? "cannot run C compiled programs.
4610 If you meant to cross compile, use \`--host'.
4611 See \`config.log' for more details" "$LINENO" 5; }
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4616 $as_echo "$cross_compiling" >&6; }
4618 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4619 ac_clean_files=$ac_clean_files_save
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4621 $as_echo_n "checking for suffix of object files... " >&6; }
4622 if test "${ac_cv_objext+set}" = set; then :
4623 $as_echo_n "(cached) " >&6
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626 /* end confdefs.h. */
4636 rm -f conftest.o conftest.obj
4637 if { { ac_try="$ac_compile"
4639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4640 *) ac_try_echo=$ac_try;;
4642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4643 $as_echo "$ac_try_echo"; } >&5
4644 (eval "$ac_compile") 2>&5
4646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4647 test $ac_status = 0; }; then :
4648 for ac_file in conftest.o conftest.obj conftest.*; do
4649 test -f "$ac_file" || continue;
4651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4652 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4657 $as_echo "$as_me: failed program was:" >&5
4658 sed 's/^/| /' conftest.$ac_ext >&5
4660 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4662 as_fn_error $? "cannot compute suffix of object files: cannot compile
4663 See \`config.log' for more details" "$LINENO" 5; }
4665 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4668 $as_echo "$ac_cv_objext" >&6; }
4669 OBJEXT=$ac_cv_objext
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4672 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4673 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4674 $as_echo_n "(cached) " >&6
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h. */
4690 if ac_fn_c_try_compile "$LINENO"; then :
4695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4700 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4701 if test $ac_compiler_gnu = yes; then
4706 ac_test_CFLAGS=${CFLAGS+set}
4707 ac_save_CFLAGS=$CFLAGS
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4709 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4710 if test "${ac_cv_prog_cc_g+set}" = set; then :
4711 $as_echo_n "(cached) " >&6
4713 ac_save_c_werror_flag=$ac_c_werror_flag
4714 ac_c_werror_flag=yes
4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h. */
4728 if ac_fn_c_try_compile "$LINENO"; then :
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4743 if ac_fn_c_try_compile "$LINENO"; then :
4746 ac_c_werror_flag=$ac_save_c_werror_flag
4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4749 /* end confdefs.h. */
4759 if ac_fn_c_try_compile "$LINENO"; then :
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767 ac_c_werror_flag=$ac_save_c_werror_flag
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4770 $as_echo "$ac_cv_prog_cc_g" >&6; }
4771 if test "$ac_test_CFLAGS" = set; then
4772 CFLAGS=$ac_save_CFLAGS
4773 elif test $ac_cv_prog_cc_g = yes; then
4774 if test "$GCC" = yes; then
4780 if test "$GCC" = yes; then
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4787 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4788 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4789 $as_echo_n "(cached) " >&6
4791 ac_cv_prog_cc_c89=no
4793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h. */
4797 #include <sys/types.h>
4798 #include <sys/stat.h>
4799 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4800 struct buf { int x; };
4801 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4802 static char *e (p, i)
4808 static char *f (char * (*g) (char **, int), char **p, ...)
4813 s = g (p, va_arg (v,int));
4818 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4819 function prototypes and stuff, but not '\xHH' hex character constants.
4820 These don't provoke an error unfortunately, instead are silently treated
4821 as 'x'. The following induces an error, until -std is added to get
4822 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4823 array size at least. It's necessary to write '\x00'==0 to get something
4824 that's true only with -std. */
4825 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4827 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4828 inside strings and character constants. */
4830 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4832 int test (int i, double x);
4833 struct s1 {int (*f) (int a);};
4834 struct s2 {int (*f) (double a);};
4835 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4841 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4846 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4847 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4849 CC="$ac_save_CC $ac_arg"
4850 if ac_fn_c_try_compile "$LINENO"; then :
4851 ac_cv_prog_cc_c89=$ac_arg
4853 rm -f core conftest.err conftest.$ac_objext
4854 test "x$ac_cv_prog_cc_c89" != "xno" && break
4856 rm -f conftest.$ac_ext
4861 case "x$ac_cv_prog_cc_c89" in
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4864 $as_echo "none needed" >&6; } ;;
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4867 $as_echo "unsupported" >&6; } ;;
4869 CC="$CC $ac_cv_prog_cc_c89"
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4871 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4873 if test "x$ac_cv_prog_cc_c89" != xno; then :
4878 ac_cpp='$CPP $CPPFLAGS'
4879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4883 depcc="$CC" am_compiler_list=
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4886 $as_echo_n "checking dependency style of $depcc... " >&6; }
4887 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4888 $as_echo_n "(cached) " >&6
4890 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4891 # We make a subdir and do the tests there. Otherwise we can end up
4892 # making bogus files that we don't know about and never remove. For
4893 # instance it was reported that on HP-UX the gcc test will end up
4894 # making a dummy file named `D' -- because `-MD' means `put the output
4897 # Copy depcomp to subdir because otherwise we won't find it if we're
4898 # using a relative directory.
4899 cp "$am_depcomp" conftest.dir
4901 # We will build objects and dependencies in a subdirectory because
4902 # it helps to detect inapplicable dependency modes. For instance
4903 # both Tru64's cc and ICC support -MD to output dependencies as a
4904 # side effect of compilation, but ICC will put the dependencies in
4905 # the current directory while Tru64 will put them in the object
4909 am_cv_CC_dependencies_compiler_type=none
4910 if test "$am_compiler_list" = ""; then
4911 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4914 case " $depcc " in #(
4915 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4918 for depmode in $am_compiler_list; do
4919 # Setup a source with many dependencies, because some compilers
4920 # like to wrap large dependency lists on column 80 (with \), and
4921 # we should not choose a depcomp mode which is confused by this.
4923 # We need to recreate these files for each test, as the compiler may
4924 # overwrite some of them when testing with obscure command lines.
4925 # This happens at least with the AIX C compiler.
4927 for i in 1 2 3 4 5 6; do
4928 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4929 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4930 # Solaris 8's {/usr,}/bin/sh.
4931 touch sub/conftst$i.h
4933 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4935 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4936 # mode. It turns out that the SunPro C++ compiler does not properly
4937 # handle `-M -o', and we need to detect this. Also, some Intel
4938 # versions had trouble with output in subdirs
4939 am__obj=sub/conftest.${OBJEXT-o}
4940 am__minus_obj="-o $am__obj"
4943 # This depmode causes a compiler race in universal mode.
4944 test "$am__universal" = false || continue
4947 # after this tag, mechanisms are not by side-effect, so they'll
4948 # only be used when explicitly requested
4949 if test "x$enable_dependency_tracking" = xyes; then
4955 msvisualcpp | msvcmsys)
4956 # This compiler won't grok `-c -o', but also, the minuso test has
4957 # not run yet. These depmodes are late enough in the game, and
4958 # so weak that their functioning should not be impacted.
4959 am__obj=conftest.${OBJEXT-o}
4964 if depmode=$depmode \
4965 source=sub/conftest.c object=$am__obj \
4966 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4967 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4968 >/dev/null 2>conftest.err &&
4969 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4970 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4971 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4972 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4973 # icc doesn't choke on unknown options, it will just issue warnings
4974 # or remarks (even with -Werror). So we grep stderr for any message
4975 # that says an option was ignored or not supported.
4976 # When given -MP, icc 7.0 and 7.1 complain thusly:
4977 # icc: Command line warning: ignoring option '-M'; no argument required
4978 # The diagnosis changed in icc 8.0:
4979 # icc: Command line remark: option '-MP' not supported
4980 if (grep 'ignoring option' conftest.err ||
4981 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4982 am_cv_CC_dependencies_compiler_type=$depmode
4991 am_cv_CC_dependencies_compiler_type=none
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4996 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4997 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5000 test "x$enable_dependency_tracking" != xno \
5001 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5003 am__fastdepCC_FALSE='#'
5005 am__fastdepCC_TRUE='#'
5006 am__fastdepCC_FALSE=
5012 ac_cpp='$CPP $CPPFLAGS'
5013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5017 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5018 # On Suns, sometimes $CPP names a directory.
5019 if test -n "$CPP" && test -d "$CPP"; then
5022 if test -z "$CPP"; then
5023 if test "${ac_cv_prog_CPP+set}" = set; then :
5024 $as_echo_n "(cached) " >&6
5026 # Double quotes because CPP needs to be expanded
5027 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5030 for ac_c_preproc_warn_flag in '' yes
5032 # Use a header file that comes with gcc, so configuring glibc
5033 # with a fresh cross-compiler works.
5034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5035 # <limits.h> exists even on freestanding compilers.
5036 # On the NeXT, cc -E runs the code through the compiler's parser,
5037 # not just through cpp. "Syntax error" is here to catch this case.
5038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5039 /* end confdefs.h. */
5041 # include <limits.h>
5043 # include <assert.h>
5047 if ac_fn_c_try_cpp "$LINENO"; then :
5050 # Broken: fails on valid input.
5053 rm -f conftest.err conftest.$ac_ext
5055 # OK, works on sane cases. Now check whether nonexistent headers
5056 # can be detected and how.
5057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5058 /* end confdefs.h. */
5059 #include <ac_nonexistent.h>
5061 if ac_fn_c_try_cpp "$LINENO"; then :
5062 # Broken: success on invalid input.
5065 # Passes both tests.
5069 rm -f conftest.err conftest.$ac_ext
5072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5073 rm -f conftest.err conftest.$ac_ext
5074 if $ac_preproc_ok; then :
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5087 $as_echo "$CPP" >&6; }
5089 for ac_c_preproc_warn_flag in '' yes
5091 # Use a header file that comes with gcc, so configuring glibc
5092 # with a fresh cross-compiler works.
5093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5094 # <limits.h> exists even on freestanding compilers.
5095 # On the NeXT, cc -E runs the code through the compiler's parser,
5096 # not just through cpp. "Syntax error" is here to catch this case.
5097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5098 /* end confdefs.h. */
5100 # include <limits.h>
5102 # include <assert.h>
5106 if ac_fn_c_try_cpp "$LINENO"; then :
5109 # Broken: fails on valid input.
5112 rm -f conftest.err conftest.$ac_ext
5114 # OK, works on sane cases. Now check whether nonexistent headers
5115 # can be detected and how.
5116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5117 /* end confdefs.h. */
5118 #include <ac_nonexistent.h>
5120 if ac_fn_c_try_cpp "$LINENO"; then :
5121 # Broken: success on invalid input.
5124 # Passes both tests.
5128 rm -f conftest.err conftest.$ac_ext
5131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5132 rm -f conftest.err conftest.$ac_ext
5133 if $ac_preproc_ok; then :
5136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5138 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5139 See \`config.log' for more details" "$LINENO" 5; }
5143 ac_cpp='$CPP $CPPFLAGS'
5144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5150 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5151 if test "${ac_cv_path_GREP+set}" = set; then :
5152 $as_echo_n "(cached) " >&6
5154 if test -z "$GREP"; then
5155 ac_path_GREP_found=false
5156 # Loop through the user's path and test for each of PROGNAME-LIST
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5161 test -z "$as_dir" && as_dir=.
5162 for ac_prog in grep ggrep; do
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5165 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5166 # Check for GNU ac_path_GREP and select it if it is found.
5167 # Check for GNU $ac_path_GREP
5168 case `"$ac_path_GREP" --version 2>&1` in
5170 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5173 $as_echo_n 0123456789 >"conftest.in"
5176 cat "conftest.in" "conftest.in" >"conftest.tmp"
5177 mv "conftest.tmp" "conftest.in"
5178 cp "conftest.in" "conftest.nl"
5179 $as_echo 'GREP' >> "conftest.nl"
5180 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5181 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5182 as_fn_arith $ac_count + 1 && ac_count=$as_val
5183 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5184 # Best one so far, save it but keep looking for a better one
5185 ac_cv_path_GREP="$ac_path_GREP"
5186 ac_path_GREP_max=$ac_count
5188 # 10*(2^10) chars as input seems more than enough
5189 test $ac_count -gt 10 && break
5191 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5194 $ac_path_GREP_found && break 3
5199 if test -z "$ac_cv_path_GREP"; then
5200 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5203 ac_cv_path_GREP=$GREP
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5208 $as_echo "$ac_cv_path_GREP" >&6; }
5209 GREP="$ac_cv_path_GREP"
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5213 $as_echo_n "checking for egrep... " >&6; }
5214 if test "${ac_cv_path_EGREP+set}" = set; then :
5215 $as_echo_n "(cached) " >&6
5217 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5218 then ac_cv_path_EGREP="$GREP -E"
5220 if test -z "$EGREP"; then
5221 ac_path_EGREP_found=false
5222 # Loop through the user's path and test for each of PROGNAME-LIST
5223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5224 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5227 test -z "$as_dir" && as_dir=.
5228 for ac_prog in egrep; do
5229 for ac_exec_ext in '' $ac_executable_extensions; do
5230 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5231 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5232 # Check for GNU ac_path_EGREP and select it if it is found.
5233 # Check for GNU $ac_path_EGREP
5234 case `"$ac_path_EGREP" --version 2>&1` in
5236 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5239 $as_echo_n 0123456789 >"conftest.in"
5242 cat "conftest.in" "conftest.in" >"conftest.tmp"
5243 mv "conftest.tmp" "conftest.in"
5244 cp "conftest.in" "conftest.nl"
5245 $as_echo 'EGREP' >> "conftest.nl"
5246 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5247 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5248 as_fn_arith $ac_count + 1 && ac_count=$as_val
5249 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5250 # Best one so far, save it but keep looking for a better one
5251 ac_cv_path_EGREP="$ac_path_EGREP"
5252 ac_path_EGREP_max=$ac_count
5254 # 10*(2^10) chars as input seems more than enough
5255 test $ac_count -gt 10 && break
5257 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5260 $ac_path_EGREP_found && break 3
5265 if test -z "$ac_cv_path_EGREP"; then
5266 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5269 ac_cv_path_EGREP=$EGREP
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5275 $as_echo "$ac_cv_path_EGREP" >&6; }
5276 EGREP="$ac_cv_path_EGREP"
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5280 $as_echo_n "checking for ANSI C header files... " >&6; }
5281 if test "${ac_cv_header_stdc+set}" = set; then :
5282 $as_echo_n "(cached) " >&6
5284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5299 if ac_fn_c_try_compile "$LINENO"; then :
5300 ac_cv_header_stdc=yes
5302 ac_cv_header_stdc=no
5304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306 if test $ac_cv_header_stdc = yes; then
5307 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309 /* end confdefs.h. */
5313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5314 $EGREP "memchr" >/dev/null 2>&1; then :
5317 ac_cv_header_stdc=no
5323 if test $ac_cv_header_stdc = yes; then
5324 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5326 /* end confdefs.h. */
5330 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5331 $EGREP "free" >/dev/null 2>&1; then :
5334 ac_cv_header_stdc=no
5340 if test $ac_cv_header_stdc = yes; then
5341 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5342 if test "$cross_compiling" = yes; then :
5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5349 #if ((' ' & 0x0FF) == 0x020)
5350 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5351 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5353 # define ISLOWER(c) \
5354 (('a' <= (c) && (c) <= 'i') \
5355 || ('j' <= (c) && (c) <= 'r') \
5356 || ('s' <= (c) && (c) <= 'z'))
5357 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5360 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5365 for (i = 0; i < 256; i++)
5366 if (XOR (islower (i), ISLOWER (i))
5367 || toupper (i) != TOUPPER (i))
5372 if ac_fn_c_try_run "$LINENO"; then :
5375 ac_cv_header_stdc=no
5377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5378 conftest.$ac_objext conftest.beam conftest.$ac_ext
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5384 $as_echo "$ac_cv_header_stdc" >&6; }
5385 if test $ac_cv_header_stdc = yes; then
5387 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5391 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5392 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5393 inttypes.h stdint.h unistd.h
5395 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5396 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5398 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5399 cat >>confdefs.h <<_ACEOF
5400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5409 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5410 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5417 if test "$MINIX" = yes; then
5419 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5422 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5425 $as_echo "#define _MINIX 1" >>confdefs.h
5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5431 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5432 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5433 $as_echo_n "(cached) " >&6
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436 /* end confdefs.h. */
5438 # define __EXTENSIONS__ 1
5439 $ac_includes_default
5448 if ac_fn_c_try_compile "$LINENO"; then :
5449 ac_cv_safe_to_define___extensions__=yes
5451 ac_cv_safe_to_define___extensions__=no
5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5456 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5457 test $ac_cv_safe_to_define___extensions__ = yes &&
5458 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5460 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5462 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5464 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5466 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5470 # Check for programs
5472 ac_cpp='$CPP $CPPFLAGS'
5473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5476 if test -n "$ac_tool_prefix"; then
5477 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5478 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480 $as_echo_n "checking for $ac_word... " >&6; }
5481 if test "${ac_cv_prog_CC+set}" = set; then :
5482 $as_echo_n "(cached) " >&6
5484 if test -n "$CC"; then
5485 ac_cv_prog_CC="$CC" # Let the user override the test.
5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491 test -z "$as_dir" && as_dir=.
5492 for ac_exec_ext in '' $ac_executable_extensions; do
5493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5494 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 if test -n "$CC"; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5507 $as_echo "$CC" >&6; }
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510 $as_echo "no" >&6; }
5515 if test -z "$ac_cv_prog_CC"; then
5517 # Extract the first word of "gcc", so it can be a program name with args.
5518 set dummy gcc; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5522 $as_echo_n "(cached) " >&6
5524 if test -n "$ac_ct_CC"; then
5525 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5534 ac_cv_prog_ac_ct_CC="gcc"
5535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5544 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5545 if test -n "$ac_ct_CC"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5547 $as_echo "$ac_ct_CC" >&6; }
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 $as_echo "no" >&6; }
5553 if test "x$ac_ct_CC" = x; then
5556 case $cross_compiling:$ac_tool_warned in
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5560 ac_tool_warned=yes ;;
5568 if test -z "$CC"; then
5569 if test -n "$ac_tool_prefix"; then
5570 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5571 set dummy ${ac_tool_prefix}cc; ac_word=$2
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573 $as_echo_n "checking for $ac_word... " >&6; }
5574 if test "${ac_cv_prog_CC+set}" = set; then :
5575 $as_echo_n "(cached) " >&6
5577 if test -n "$CC"; then
5578 ac_cv_prog_CC="$CC" # Let the user override the test.
5580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584 test -z "$as_dir" && as_dir=.
5585 for ac_exec_ext in '' $ac_executable_extensions; do
5586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5587 ac_cv_prog_CC="${ac_tool_prefix}cc"
5588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5598 if test -n "$CC"; then
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5600 $as_echo "$CC" >&6; }
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 $as_echo "no" >&6; }
5609 if test -z "$CC"; then
5610 # Extract the first word of "cc", so it can be a program name with args.
5611 set dummy cc; ac_word=$2
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if test "${ac_cv_prog_CC+set}" = set; then :
5615 $as_echo_n "(cached) " >&6
5617 if test -n "$CC"; then
5618 ac_cv_prog_CC="$CC" # Let the user override the test.
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5625 test -z "$as_dir" && as_dir=.
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5628 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5629 ac_prog_rejected=yes
5633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5640 if test $ac_prog_rejected = yes; then
5641 # We found a bogon in the path, so make sure we never use it.
5642 set dummy $ac_cv_prog_CC
5644 if test $# != 0; then
5645 # We chose a different compiler from the bogus one.
5646 # However, it has the same basename, so the bogon will be chosen
5647 # first if we set CC to just the basename; use the full file name.
5649 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5655 if test -n "$CC"; then
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5657 $as_echo "$CC" >&6; }
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5660 $as_echo "no" >&6; }
5665 if test -z "$CC"; then
5666 if test -n "$ac_tool_prefix"; then
5667 for ac_prog in cl.exe
5669 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5670 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672 $as_echo_n "checking for $ac_word... " >&6; }
5673 if test "${ac_cv_prog_CC+set}" = set; then :
5674 $as_echo_n "(cached) " >&6
5676 if test -n "$CC"; then
5677 ac_cv_prog_CC="$CC" # Let the user override the test.
5679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5683 test -z "$as_dir" && as_dir=.
5684 for ac_exec_ext in '' $ac_executable_extensions; do
5685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5686 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5697 if test -n "$CC"; then
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5699 $as_echo "$CC" >&6; }
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5702 $as_echo "no" >&6; }
5706 test -n "$CC" && break
5709 if test -z "$CC"; then
5711 for ac_prog in cl.exe
5713 # Extract the first word of "$ac_prog", so it can be a program name with args.
5714 set dummy $ac_prog; ac_word=$2
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5716 $as_echo_n "checking for $ac_word... " >&6; }
5717 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5718 $as_echo_n "(cached) " >&6
5720 if test -n "$ac_ct_CC"; then
5721 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 test -z "$as_dir" && as_dir=.
5728 for ac_exec_ext in '' $ac_executable_extensions; do
5729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5730 ac_cv_prog_ac_ct_CC="$ac_prog"
5731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5740 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5741 if test -n "$ac_ct_CC"; then
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5743 $as_echo "$ac_ct_CC" >&6; }
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5746 $as_echo "no" >&6; }
5750 test -n "$ac_ct_CC" && break
5753 if test "x$ac_ct_CC" = x; then
5756 case $cross_compiling:$ac_tool_warned in
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5759 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5760 ac_tool_warned=yes ;;
5769 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5771 as_fn_error $? "no acceptable C compiler found in \$PATH
5772 See \`config.log' for more details" "$LINENO" 5; }
5774 # Provide some information about the compiler.
5775 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5778 for ac_option in --version -v -V -qversion; do
5779 { { ac_try="$ac_compiler $ac_option >&5"
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5785 $as_echo "$ac_try_echo"; } >&5
5786 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5788 if test -s conftest.err; then
5790 ... rest of stderr output deleted ...
5791 10q' conftest.err >conftest.er1
5792 cat conftest.er1 >&5
5794 rm -f conftest.er1 conftest.err
5795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5796 test $ac_status = 0; }
5799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5800 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5801 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5802 $as_echo_n "(cached) " >&6
5804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5805 /* end confdefs.h. */
5818 if ac_fn_c_try_compile "$LINENO"; then :
5823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5824 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5828 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5829 if test $ac_compiler_gnu = yes; then
5834 ac_test_CFLAGS=${CFLAGS+set}
5835 ac_save_CFLAGS=$CFLAGS
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5837 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5838 if test "${ac_cv_prog_cc_g+set}" = set; then :
5839 $as_echo_n "(cached) " >&6
5841 ac_save_c_werror_flag=$ac_c_werror_flag
5842 ac_c_werror_flag=yes
5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5846 /* end confdefs.h. */
5856 if ac_fn_c_try_compile "$LINENO"; then :
5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861 /* end confdefs.h. */
5871 if ac_fn_c_try_compile "$LINENO"; then :
5874 ac_c_werror_flag=$ac_save_c_werror_flag
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5887 if ac_fn_c_try_compile "$LINENO"; then :
5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5895 ac_c_werror_flag=$ac_save_c_werror_flag
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5898 $as_echo "$ac_cv_prog_cc_g" >&6; }
5899 if test "$ac_test_CFLAGS" = set; then
5900 CFLAGS=$ac_save_CFLAGS
5901 elif test $ac_cv_prog_cc_g = yes; then
5902 if test "$GCC" = yes; then
5908 if test "$GCC" = yes; then
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5915 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5916 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5917 $as_echo_n "(cached) " >&6
5919 ac_cv_prog_cc_c89=no
5921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5922 /* end confdefs.h. */
5925 #include <sys/types.h>
5926 #include <sys/stat.h>
5927 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5928 struct buf { int x; };
5929 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5930 static char *e (p, i)
5936 static char *f (char * (*g) (char **, int), char **p, ...)
5941 s = g (p, va_arg (v,int));
5946 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5947 function prototypes and stuff, but not '\xHH' hex character constants.
5948 These don't provoke an error unfortunately, instead are silently treated
5949 as 'x'. The following induces an error, until -std is added to get
5950 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5951 array size at least. It's necessary to write '\x00'==0 to get something
5952 that's true only with -std. */
5953 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5955 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5956 inside strings and character constants. */
5958 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5960 int test (int i, double x);
5961 struct s1 {int (*f) (int a);};
5962 struct s2 {int (*f) (double a);};
5963 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5969 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5974 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5975 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5977 CC="$ac_save_CC $ac_arg"
5978 if ac_fn_c_try_compile "$LINENO"; then :
5979 ac_cv_prog_cc_c89=$ac_arg
5981 rm -f core conftest.err conftest.$ac_objext
5982 test "x$ac_cv_prog_cc_c89" != "xno" && break
5984 rm -f conftest.$ac_ext
5989 case "x$ac_cv_prog_cc_c89" in
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5992 $as_echo "none needed" >&6; } ;;
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5995 $as_echo "unsupported" >&6; } ;;
5997 CC="$CC $ac_cv_prog_cc_c89"
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5999 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6001 if test "x$ac_cv_prog_cc_c89" != xno; then :
6006 ac_cpp='$CPP $CPPFLAGS'
6007 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6008 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6009 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6011 depcc="$CC" am_compiler_list=
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6014 $as_echo_n "checking dependency style of $depcc... " >&6; }
6015 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6016 $as_echo_n "(cached) " >&6
6018 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6019 # We make a subdir and do the tests there. Otherwise we can end up
6020 # making bogus files that we don't know about and never remove. For
6021 # instance it was reported that on HP-UX the gcc test will end up
6022 # making a dummy file named `D' -- because `-MD' means `put the output
6025 # Copy depcomp to subdir because otherwise we won't find it if we're
6026 # using a relative directory.
6027 cp "$am_depcomp" conftest.dir
6029 # We will build objects and dependencies in a subdirectory because
6030 # it helps to detect inapplicable dependency modes. For instance
6031 # both Tru64's cc and ICC support -MD to output dependencies as a
6032 # side effect of compilation, but ICC will put the dependencies in
6033 # the current directory while Tru64 will put them in the object
6037 am_cv_CC_dependencies_compiler_type=none
6038 if test "$am_compiler_list" = ""; then
6039 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6042 case " $depcc " in #(
6043 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6046 for depmode in $am_compiler_list; do
6047 # Setup a source with many dependencies, because some compilers
6048 # like to wrap large dependency lists on column 80 (with \), and
6049 # we should not choose a depcomp mode which is confused by this.
6051 # We need to recreate these files for each test, as the compiler may
6052 # overwrite some of them when testing with obscure command lines.
6053 # This happens at least with the AIX C compiler.
6055 for i in 1 2 3 4 5 6; do
6056 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6057 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6058 # Solaris 8's {/usr,}/bin/sh.
6059 touch sub/conftst$i.h
6061 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6063 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6064 # mode. It turns out that the SunPro C++ compiler does not properly
6065 # handle `-M -o', and we need to detect this. Also, some Intel
6066 # versions had trouble with output in subdirs
6067 am__obj=sub/conftest.${OBJEXT-o}
6068 am__minus_obj="-o $am__obj"
6071 # This depmode causes a compiler race in universal mode.
6072 test "$am__universal" = false || continue
6075 # after this tag, mechanisms are not by side-effect, so they'll
6076 # only be used when explicitly requested
6077 if test "x$enable_dependency_tracking" = xyes; then
6083 msvisualcpp | msvcmsys)
6084 # This compiler won't grok `-c -o', but also, the minuso test has
6085 # not run yet. These depmodes are late enough in the game, and
6086 # so weak that their functioning should not be impacted.
6087 am__obj=conftest.${OBJEXT-o}
6092 if depmode=$depmode \
6093 source=sub/conftest.c object=$am__obj \
6094 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6095 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6096 >/dev/null 2>conftest.err &&
6097 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6098 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6099 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6100 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6101 # icc doesn't choke on unknown options, it will just issue warnings
6102 # or remarks (even with -Werror). So we grep stderr for any message
6103 # that says an option was ignored or not supported.
6104 # When given -MP, icc 7.0 and 7.1 complain thusly:
6105 # icc: Command line warning: ignoring option '-M'; no argument required
6106 # The diagnosis changed in icc 8.0:
6107 # icc: Command line remark: option '-MP' not supported
6108 if (grep 'ignoring option' conftest.err ||
6109 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6110 am_cv_CC_dependencies_compiler_type=$depmode
6119 am_cv_CC_dependencies_compiler_type=none
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6124 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6125 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6128 test "x$enable_dependency_tracking" != xno \
6129 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6131 am__fastdepCC_FALSE='#'
6133 am__fastdepCC_TRUE='#'
6134 am__fastdepCC_FALSE=
6139 ac_cpp='$CXXCPP $CPPFLAGS'
6140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6143 if test -z "$CXX"; then
6144 if test -n "$CCC"; then
6147 if test -n "$ac_tool_prefix"; then
6148 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6150 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6151 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6153 $as_echo_n "checking for $ac_word... " >&6; }
6154 if test "${ac_cv_prog_CXX+set}" = set; then :
6155 $as_echo_n "(cached) " >&6
6157 if test -n "$CXX"; then
6158 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 test -z "$as_dir" && as_dir=.
6165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6167 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6178 if test -n "$CXX"; then
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6180 $as_echo "$CXX" >&6; }
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6183 $as_echo "no" >&6; }
6187 test -n "$CXX" && break
6190 if test -z "$CXX"; then
6192 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6194 # Extract the first word of "$ac_prog", so it can be a program name with args.
6195 set dummy $ac_prog; ac_word=$2
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6197 $as_echo_n "checking for $ac_word... " >&6; }
6198 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6199 $as_echo_n "(cached) " >&6
6201 if test -n "$ac_ct_CXX"; then
6202 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6208 test -z "$as_dir" && as_dir=.
6209 for ac_exec_ext in '' $ac_executable_extensions; do
6210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6211 ac_cv_prog_ac_ct_CXX="$ac_prog"
6212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6222 if test -n "$ac_ct_CXX"; then
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6224 $as_echo "$ac_ct_CXX" >&6; }
6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227 $as_echo "no" >&6; }
6231 test -n "$ac_ct_CXX" && break
6234 if test "x$ac_ct_CXX" = x; then
6237 case $cross_compiling:$ac_tool_warned in
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6241 ac_tool_warned=yes ;;
6249 # Provide some information about the compiler.
6250 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6253 for ac_option in --version -v -V -qversion; do
6254 { { ac_try="$ac_compiler $ac_option >&5"
6256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6257 *) ac_try_echo=$ac_try;;
6259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6260 $as_echo "$ac_try_echo"; } >&5
6261 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6263 if test -s conftest.err; then
6265 ... rest of stderr output deleted ...
6266 10q' conftest.err >conftest.er1
6267 cat conftest.er1 >&5
6269 rm -f conftest.er1 conftest.err
6270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6271 test $ac_status = 0; }
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6275 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6276 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6277 $as_echo_n "(cached) " >&6
6279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280 /* end confdefs.h. */
6293 if ac_fn_cxx_try_compile "$LINENO"; then :
6298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6299 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6303 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6304 if test $ac_compiler_gnu = yes; then
6309 ac_test_CXXFLAGS=${CXXFLAGS+set}
6310 ac_save_CXXFLAGS=$CXXFLAGS
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6312 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6313 if test "${ac_cv_prog_cxx_g+set}" = set; then :
6314 $as_echo_n "(cached) " >&6
6316 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6317 ac_cxx_werror_flag=yes
6320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6321 /* end confdefs.h. */
6331 if ac_fn_cxx_try_compile "$LINENO"; then :
6332 ac_cv_prog_cxx_g=yes
6335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6336 /* end confdefs.h. */
6346 if ac_fn_cxx_try_compile "$LINENO"; then :
6349 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6352 /* end confdefs.h. */
6362 if ac_fn_cxx_try_compile "$LINENO"; then :
6363 ac_cv_prog_cxx_g=yes
6365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6373 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6374 if test "$ac_test_CXXFLAGS" = set; then
6375 CXXFLAGS=$ac_save_CXXFLAGS
6376 elif test $ac_cv_prog_cxx_g = yes; then
6377 if test "$GXX" = yes; then
6383 if test "$GXX" = yes; then
6390 ac_cpp='$CPP $CPPFLAGS'
6391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6395 depcc="$CXX" am_compiler_list=
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6398 $as_echo_n "checking dependency style of $depcc... " >&6; }
6399 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6400 $as_echo_n "(cached) " >&6
6402 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6403 # We make a subdir and do the tests there. Otherwise we can end up
6404 # making bogus files that we don't know about and never remove. For
6405 # instance it was reported that on HP-UX the gcc test will end up
6406 # making a dummy file named `D' -- because `-MD' means `put the output
6409 # Copy depcomp to subdir because otherwise we won't find it if we're
6410 # using a relative directory.
6411 cp "$am_depcomp" conftest.dir
6413 # We will build objects and dependencies in a subdirectory because
6414 # it helps to detect inapplicable dependency modes. For instance
6415 # both Tru64's cc and ICC support -MD to output dependencies as a
6416 # side effect of compilation, but ICC will put the dependencies in
6417 # the current directory while Tru64 will put them in the object
6421 am_cv_CXX_dependencies_compiler_type=none
6422 if test "$am_compiler_list" = ""; then
6423 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6426 case " $depcc " in #(
6427 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6430 for depmode in $am_compiler_list; do
6431 # Setup a source with many dependencies, because some compilers
6432 # like to wrap large dependency lists on column 80 (with \), and
6433 # we should not choose a depcomp mode which is confused by this.
6435 # We need to recreate these files for each test, as the compiler may
6436 # overwrite some of them when testing with obscure command lines.
6437 # This happens at least with the AIX C compiler.
6439 for i in 1 2 3 4 5 6; do
6440 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6441 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6442 # Solaris 8's {/usr,}/bin/sh.
6443 touch sub/conftst$i.h
6445 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6447 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6448 # mode. It turns out that the SunPro C++ compiler does not properly
6449 # handle `-M -o', and we need to detect this. Also, some Intel
6450 # versions had trouble with output in subdirs
6451 am__obj=sub/conftest.${OBJEXT-o}
6452 am__minus_obj="-o $am__obj"
6455 # This depmode causes a compiler race in universal mode.
6456 test "$am__universal" = false || continue
6459 # after this tag, mechanisms are not by side-effect, so they'll
6460 # only be used when explicitly requested
6461 if test "x$enable_dependency_tracking" = xyes; then
6467 msvisualcpp | msvcmsys)
6468 # This compiler won't grok `-c -o', but also, the minuso test has
6469 # not run yet. These depmodes are late enough in the game, and
6470 # so weak that their functioning should not be impacted.
6471 am__obj=conftest.${OBJEXT-o}
6476 if depmode=$depmode \
6477 source=sub/conftest.c object=$am__obj \
6478 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6479 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6480 >/dev/null 2>conftest.err &&
6481 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6482 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6483 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6484 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6485 # icc doesn't choke on unknown options, it will just issue warnings
6486 # or remarks (even with -Werror). So we grep stderr for any message
6487 # that says an option was ignored or not supported.
6488 # When given -MP, icc 7.0 and 7.1 complain thusly:
6489 # icc: Command line warning: ignoring option '-M'; no argument required
6490 # The diagnosis changed in icc 8.0:
6491 # icc: Command line remark: option '-MP' not supported
6492 if (grep 'ignoring option' conftest.err ||
6493 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6494 am_cv_CXX_dependencies_compiler_type=$depmode
6503 am_cv_CXX_dependencies_compiler_type=none
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6508 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6509 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6512 test "x$enable_dependency_tracking" != xno \
6513 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6514 am__fastdepCXX_TRUE=
6515 am__fastdepCXX_FALSE='#'
6517 am__fastdepCXX_TRUE='#'
6518 am__fastdepCXX_FALSE=
6522 case $ac_cv_prog_cc_stdc in #(
6524 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6527 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6528 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6529 $as_echo_n "(cached) " >&6
6531 ac_cv_prog_cc_c99=no
6533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6534 /* end confdefs.h. */
6536 #include <stdbool.h>
6541 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6542 #define debug(...) fprintf (stderr, __VA_ARGS__)
6543 #define showlist(...) puts (#__VA_ARGS__)
6544 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6546 test_varargs_macros (void)
6551 debug ("X = %d\n", x);
6552 showlist (The first, second, and third items.);
6553 report (x>y, "x is %d but y is %d", x, y);
6556 // Check long long types.
6557 #define BIG64 18446744073709551615ull
6558 #define BIG32 4294967295ul
6559 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6561 your preprocessor is broken;
6565 your preprocessor is broken;
6567 static long long int bignum = -9223372036854775807LL;
6568 static unsigned long long int ubignum = BIG64;
6570 struct incomplete_array
6578 const wchar_t *name;
6582 typedef const char *ccp;
6585 test_restrict (ccp restrict text)
6587 // See if C++-style comments work.
6588 // Iterate through items via the restricted pointer.
6589 // Also check for declarations in for loops.
6590 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6595 // Check varargs and va_copy.
6597 test_varargs (const char *format, ...)
6600 va_start (args, format);
6602 va_copy (args_copy, args);
6613 str = va_arg (args_copy, const char *);
6616 number = va_arg (args_copy, int);
6619 fnumber = va_arg (args_copy, double);
6634 _Bool success = false;
6637 if (test_restrict ("String literal") == 0)
6639 char *restrict newvar = "Another string";
6642 test_varargs ("s, d' f .", "string", 65, 34.234);
6643 test_varargs_macros ();
6645 // Check flexible array members.
6646 struct incomplete_array *ia =
6647 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6649 for (int i = 0; i < ia->datasize; ++i)
6650 ia->data[i] = i * 1.234;
6652 // Check named initializers.
6653 struct named_init ni = {
6655 .name = L"Test wide string",
6656 .average = 543.34343,
6661 int dynamic_array[ni.number];
6662 dynamic_array[ni.number - 1] = 543;
6664 // work around unused variable warnings
6665 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6666 || dynamic_array[ni.number - 1] != 543);
6672 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6674 CC="$ac_save_CC $ac_arg"
6675 if ac_fn_c_try_compile "$LINENO"; then :
6676 ac_cv_prog_cc_c99=$ac_arg
6678 rm -f core conftest.err conftest.$ac_objext
6679 test "x$ac_cv_prog_cc_c99" != "xno" && break
6681 rm -f conftest.$ac_ext
6686 case "x$ac_cv_prog_cc_c99" in
6688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6689 $as_echo "none needed" >&6; } ;;
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6692 $as_echo "unsupported" >&6; } ;;
6694 CC="$CC $ac_cv_prog_cc_c99"
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6696 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6698 if test "x$ac_cv_prog_cc_c99" != xno; then :
6699 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6702 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6703 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6704 $as_echo_n "(cached) " >&6
6706 ac_cv_prog_cc_c89=no
6708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6709 /* end confdefs.h. */
6712 #include <sys/types.h>
6713 #include <sys/stat.h>
6714 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6715 struct buf { int x; };
6716 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6717 static char *e (p, i)
6723 static char *f (char * (*g) (char **, int), char **p, ...)
6728 s = g (p, va_arg (v,int));
6733 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6734 function prototypes and stuff, but not '\xHH' hex character constants.
6735 These don't provoke an error unfortunately, instead are silently treated
6736 as 'x'. The following induces an error, until -std is added to get
6737 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6738 array size at least. It's necessary to write '\x00'==0 to get something
6739 that's true only with -std. */
6740 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6742 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6743 inside strings and character constants. */
6745 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6747 int test (int i, double x);
6748 struct s1 {int (*f) (int a);};
6749 struct s2 {int (*f) (double a);};
6750 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6756 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6761 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6762 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6764 CC="$ac_save_CC $ac_arg"
6765 if ac_fn_c_try_compile "$LINENO"; then :
6766 ac_cv_prog_cc_c89=$ac_arg
6768 rm -f core conftest.err conftest.$ac_objext
6769 test "x$ac_cv_prog_cc_c89" != "xno" && break
6771 rm -f conftest.$ac_ext
6776 case "x$ac_cv_prog_cc_c89" in
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6779 $as_echo "none needed" >&6; } ;;
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6782 $as_echo "unsupported" >&6; } ;;
6784 CC="$CC $ac_cv_prog_cc_c89"
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6786 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6788 if test "x$ac_cv_prog_cc_c89" != xno; then :
6789 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6791 ac_cv_prog_cc_stdc=no
6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6798 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6799 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6800 $as_echo_n "(cached) " >&6
6803 case $ac_cv_prog_cc_stdc in #(
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6806 $as_echo "unsupported" >&6; } ;; #(
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6809 $as_echo "none needed" >&6; } ;; #(
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6812 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6816 ac_cpp='$CPP $CPPFLAGS'
6817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6821 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6822 # On Suns, sometimes $CPP names a directory.
6823 if test -n "$CPP" && test -d "$CPP"; then
6826 if test -z "$CPP"; then
6827 if test "${ac_cv_prog_CPP+set}" = set; then :
6828 $as_echo_n "(cached) " >&6
6830 # Double quotes because CPP needs to be expanded
6831 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6834 for ac_c_preproc_warn_flag in '' yes
6836 # Use a header file that comes with gcc, so configuring glibc
6837 # with a fresh cross-compiler works.
6838 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6839 # <limits.h> exists even on freestanding compilers.
6840 # On the NeXT, cc -E runs the code through the compiler's parser,
6841 # not just through cpp. "Syntax error" is here to catch this case.
6842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6843 /* end confdefs.h. */
6845 # include <limits.h>
6847 # include <assert.h>
6851 if ac_fn_c_try_cpp "$LINENO"; then :
6854 # Broken: fails on valid input.
6857 rm -f conftest.err conftest.$ac_ext
6859 # OK, works on sane cases. Now check whether nonexistent headers
6860 # can be detected and how.
6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6863 #include <ac_nonexistent.h>
6865 if ac_fn_c_try_cpp "$LINENO"; then :
6866 # Broken: success on invalid input.
6869 # Passes both tests.
6873 rm -f conftest.err conftest.$ac_ext
6876 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6877 rm -f conftest.err conftest.$ac_ext
6878 if $ac_preproc_ok; then :
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6891 $as_echo "$CPP" >&6; }
6893 for ac_c_preproc_warn_flag in '' yes
6895 # Use a header file that comes with gcc, so configuring glibc
6896 # with a fresh cross-compiler works.
6897 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6898 # <limits.h> exists even on freestanding compilers.
6899 # On the NeXT, cc -E runs the code through the compiler's parser,
6900 # not just through cpp. "Syntax error" is here to catch this case.
6901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6902 /* end confdefs.h. */
6904 # include <limits.h>
6906 # include <assert.h>
6910 if ac_fn_c_try_cpp "$LINENO"; then :
6913 # Broken: fails on valid input.
6916 rm -f conftest.err conftest.$ac_ext
6918 # OK, works on sane cases. Now check whether nonexistent headers
6919 # can be detected and how.
6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6921 /* end confdefs.h. */
6922 #include <ac_nonexistent.h>
6924 if ac_fn_c_try_cpp "$LINENO"; then :
6925 # Broken: success on invalid input.
6928 # Passes both tests.
6932 rm -f conftest.err conftest.$ac_ext
6935 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6936 rm -f conftest.err conftest.$ac_ext
6937 if $ac_preproc_ok; then :
6940 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6941 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6942 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6943 See \`config.log' for more details" "$LINENO" 5; }
6947 ac_cpp='$CPP $CPPFLAGS'
6948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6953 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6954 if test "${ac_cv_path_SED+set}" = set; then :
6955 $as_echo_n "(cached) " >&6
6957 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6958 for ac_i in 1 2 3 4 5 6 7; do
6959 ac_script="$ac_script$as_nl$ac_script"
6961 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6962 { ac_script=; unset ac_script;}
6963 if test -z "$SED"; then
6964 ac_path_SED_found=false
6965 # Loop through the user's path and test for each of PROGNAME-LIST
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6970 test -z "$as_dir" && as_dir=.
6971 for ac_prog in sed gsed; do
6972 for ac_exec_ext in '' $ac_executable_extensions; do
6973 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6974 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6975 # Check for GNU ac_path_SED and select it if it is found.
6976 # Check for GNU $ac_path_SED
6977 case `"$ac_path_SED" --version 2>&1` in
6979 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6982 $as_echo_n 0123456789 >"conftest.in"
6985 cat "conftest.in" "conftest.in" >"conftest.tmp"
6986 mv "conftest.tmp" "conftest.in"
6987 cp "conftest.in" "conftest.nl"
6988 $as_echo '' >> "conftest.nl"
6989 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6990 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6991 as_fn_arith $ac_count + 1 && ac_count=$as_val
6992 if test $ac_count -gt ${ac_path_SED_max-0}; then
6993 # Best one so far, save it but keep looking for a better one
6994 ac_cv_path_SED="$ac_path_SED"
6995 ac_path_SED_max=$ac_count
6997 # 10*(2^10) chars as input seems more than enough
6998 test $ac_count -gt 10 && break
7000 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7003 $ac_path_SED_found && break 3
7008 if test -z "$ac_cv_path_SED"; then
7009 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7017 $as_echo "$ac_cv_path_SED" >&6; }
7018 SED="$ac_cv_path_SED"
7021 test -z "$SED" && SED=sed
7022 Xsed="$SED -e 1s/^X//"
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7035 $as_echo_n "checking for fgrep... " >&6; }
7036 if test "${ac_cv_path_FGREP+set}" = set; then :
7037 $as_echo_n "(cached) " >&6
7039 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7040 then ac_cv_path_FGREP="$GREP -F"
7042 if test -z "$FGREP"; then
7043 ac_path_FGREP_found=false
7044 # Loop through the user's path and test for each of PROGNAME-LIST
7045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7046 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7049 test -z "$as_dir" && as_dir=.
7050 for ac_prog in fgrep; do
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7053 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7054 # Check for GNU ac_path_FGREP and select it if it is found.
7055 # Check for GNU $ac_path_FGREP
7056 case `"$ac_path_FGREP" --version 2>&1` in
7058 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7061 $as_echo_n 0123456789 >"conftest.in"
7064 cat "conftest.in" "conftest.in" >"conftest.tmp"
7065 mv "conftest.tmp" "conftest.in"
7066 cp "conftest.in" "conftest.nl"
7067 $as_echo 'FGREP' >> "conftest.nl"
7068 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7069 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7070 as_fn_arith $ac_count + 1 && ac_count=$as_val
7071 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7072 # Best one so far, save it but keep looking for a better one
7073 ac_cv_path_FGREP="$ac_path_FGREP"
7074 ac_path_FGREP_max=$ac_count
7076 # 10*(2^10) chars as input seems more than enough
7077 test $ac_count -gt 10 && break
7079 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7082 $ac_path_FGREP_found && break 3
7087 if test -z "$ac_cv_path_FGREP"; then
7088 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7091 ac_cv_path_FGREP=$FGREP
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7097 $as_echo "$ac_cv_path_FGREP" >&6; }
7098 FGREP="$ac_cv_path_FGREP"
7101 test -z "$GREP" && GREP=grep
7119 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7120 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7121 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7124 $as_echo_n "checking how to print strings... " >&6; }
7125 # Test print first, because it will be a builtin if present.
7126 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
7127 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7129 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7132 # Use this function as a fallback that always works.
7133 func_fallback_echo ()
7135 eval 'cat <<_LTECHO_EOF
7139 ECHO='func_fallback_echo'
7142 # func_echo_all arg...
7143 # Invoke $ECHO with all args, space-separated.
7150 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7151 $as_echo "printf" >&6; } ;;
7152 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7153 $as_echo "print -r" >&6; } ;;
7154 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7155 $as_echo "cat" >&6; } ;;
7173 # Check whether --with-gnu-ld was given.
7174 if test "${with_gnu_ld+set}" = set; then :
7175 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7181 if test "$GCC" = yes; then
7182 # Check if gcc -print-prog-name=ld gives a path.
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7184 $as_echo_n "checking for ld used by $CC... " >&6; }
7187 # gcc leaves a trailing carriage return which upsets mingw
7188 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7190 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7193 # Accept absolute paths.
7195 re_direlt='/[^/][^/]*/\.\./'
7196 # Canonicalize the pathname of ld
7197 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7198 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7199 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7201 test -z "$LD" && LD="$ac_prog"
7204 # If it fails, then pretend we aren't using GCC.
7208 # If it is relative, then search for the first ld in PATH.
7212 elif test "$with_gnu_ld" = yes; then
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7214 $as_echo_n "checking for GNU ld... " >&6; }
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7217 $as_echo_n "checking for non-GNU ld... " >&6; }
7219 if test "${lt_cv_path_LD+set}" = set; then :
7220 $as_echo_n "(cached) " >&6
7222 if test -z "$LD"; then
7223 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7224 for ac_dir in $PATH; do
7226 test -z "$ac_dir" && ac_dir=.
7227 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7228 lt_cv_path_LD="$ac_dir/$ac_prog"
7229 # Check to see if the program is GNU ld. I'd rather use --version,
7230 # but apparently some variants of GNU ld only accept -v.
7231 # Break only if it was the GNU/non-GNU ld that we prefer.
7232 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7233 *GNU* | *'with BFD'*)
7234 test "$with_gnu_ld" != no && break
7237 test "$with_gnu_ld" != yes && break
7244 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7249 if test -n "$LD"; then
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7251 $as_echo "$LD" >&6; }
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254 $as_echo "no" >&6; }
7256 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7258 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7259 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7260 $as_echo_n "(cached) " >&6
7262 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7263 case `$LD -v 2>&1 </dev/null` in
7264 *GNU* | *'with BFD'*)
7265 lt_cv_prog_gnu_ld=yes
7268 lt_cv_prog_gnu_ld=no
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7273 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7274 with_gnu_ld=$lt_cv_prog_gnu_ld
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7286 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7287 if test "${ac_cv_prog_cc_c99+set}" = set; then :
7288 $as_echo_n "(cached) " >&6
7290 ac_cv_prog_cc_c99=no
7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293 /* end confdefs.h. */
7295 #include <stdbool.h>
7300 // Check varargs macros. These examples are taken from C99 6.10.3.5.
7301 #define debug(...) fprintf (stderr, __VA_ARGS__)
7302 #define showlist(...) puts (#__VA_ARGS__)
7303 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7305 test_varargs_macros (void)
7310 debug ("X = %d\n", x);
7311 showlist (The first, second, and third items.);
7312 report (x>y, "x is %d but y is %d", x, y);
7315 // Check long long types.
7316 #define BIG64 18446744073709551615ull
7317 #define BIG32 4294967295ul
7318 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7320 your preprocessor is broken;
7324 your preprocessor is broken;
7326 static long long int bignum = -9223372036854775807LL;
7327 static unsigned long long int ubignum = BIG64;
7329 struct incomplete_array
7337 const wchar_t *name;
7341 typedef const char *ccp;
7344 test_restrict (ccp restrict text)
7346 // See if C++-style comments work.
7347 // Iterate through items via the restricted pointer.
7348 // Also check for declarations in for loops.
7349 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7354 // Check varargs and va_copy.
7356 test_varargs (const char *format, ...)
7359 va_start (args, format);
7361 va_copy (args_copy, args);
7372 str = va_arg (args_copy, const char *);
7375 number = va_arg (args_copy, int);
7378 fnumber = va_arg (args_copy, double);
7393 _Bool success = false;
7396 if (test_restrict ("String literal") == 0)
7398 char *restrict newvar = "Another string";
7401 test_varargs ("s, d' f .", "string", 65, 34.234);
7402 test_varargs_macros ();
7404 // Check flexible array members.
7405 struct incomplete_array *ia =
7406 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7408 for (int i = 0; i < ia->datasize; ++i)
7409 ia->data[i] = i * 1.234;
7411 // Check named initializers.
7412 struct named_init ni = {
7414 .name = L"Test wide string",
7415 .average = 543.34343,
7420 int dynamic_array[ni.number];
7421 dynamic_array[ni.number - 1] = 543;
7423 // work around unused variable warnings
7424 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7425 || dynamic_array[ni.number - 1] != 543);
7431 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7433 CC="$ac_save_CC $ac_arg"
7434 if ac_fn_c_try_compile "$LINENO"; then :
7435 ac_cv_prog_cc_c99=$ac_arg
7437 rm -f core conftest.err conftest.$ac_objext
7438 test "x$ac_cv_prog_cc_c99" != "xno" && break
7440 rm -f conftest.$ac_ext
7445 case "x$ac_cv_prog_cc_c99" in
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7448 $as_echo "none needed" >&6; } ;;
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7451 $as_echo "unsupported" >&6; } ;;
7453 CC="$CC $ac_cv_prog_cc_c99"
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7455 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7457 if test "x$ac_cv_prog_cc_c99" != xno; then :
7462 if test "x$CC" != xcc; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7464 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7467 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7469 set dummy $CC; ac_cc=`$as_echo "$2" |
7470 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7471 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
7472 $as_echo_n "(cached) " >&6
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7485 # Make sure it works both with $CC and with simple cc.
7486 # We do the test twice because some compilers refuse to overwrite an
7487 # existing .o file with -o, though they will create one.
7488 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7490 if { { case "(($ac_try" in
7491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7492 *) ac_try_echo=$ac_try;;
7494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7495 $as_echo "$ac_try_echo"; } >&5
7496 (eval "$ac_try") 2>&5
7498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7499 test $ac_status = 0; } &&
7500 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7502 *) ac_try_echo=$ac_try;;
7504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7505 $as_echo "$ac_try_echo"; } >&5
7506 (eval "$ac_try") 2>&5
7508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7509 test $ac_status = 0; };
7511 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7512 if test "x$CC" != xcc; then
7513 # Test first that cc exists at all.
7514 if { ac_try='cc -c conftest.$ac_ext >&5'
7515 { { case "(($ac_try" in
7516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7517 *) ac_try_echo=$ac_try;;
7519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7520 $as_echo "$ac_try_echo"; } >&5
7521 (eval "$ac_try") 2>&5
7523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7524 test $ac_status = 0; }; }; then
7525 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7527 if { { case "(($ac_try" in
7528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7529 *) ac_try_echo=$ac_try;;
7531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7532 $as_echo "$ac_try_echo"; } >&5
7533 (eval "$ac_try") 2>&5
7535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7536 test $ac_status = 0; } &&
7537 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7539 *) ac_try_echo=$ac_try;;
7541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7542 $as_echo "$ac_try_echo"; } >&5
7543 (eval "$ac_try") 2>&5
7545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7546 test $ac_status = 0; };
7551 # cc exists but doesn't like -o.
7552 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7557 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7559 rm -f core conftest*
7562 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7564 $as_echo "yes" >&6; }
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7567 $as_echo "no" >&6; }
7569 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7573 # FIXME: we rely on the cache variable name because
7574 # there is no other way.
7576 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7577 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7578 if test "$am_t" != yes; then
7579 # Losing compiler, so override with the script.
7580 # FIXME: It is wrong to rewrite CC.
7581 # But if we don't then we get into trouble of one sort or another.
7582 # A longer-term fix would be to have automake use am__CC in this case,
7583 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7584 CC="$am_aux_dir/compile $CC"
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7589 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7590 if test "${ac_cv_cflags_warn_all+set}" = set; then :
7591 $as_echo_n "(cached) " >&6
7593 ac_cv_cflags_warn_all="no, unknown"
7595 ac_cpp='$CPP $CPPFLAGS'
7596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7600 ac_save_CFLAGS="$CFLAGS"
7601 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" #
7602 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7604 /* end confdefs.h. */
7614 if ac_fn_c_try_compile "$LINENO"; then :
7615 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7619 CFLAGS="$ac_save_CFLAGS"
7621 ac_cpp='$CPP $CPPFLAGS'
7622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7629 $as_echo "$ac_cv_cflags_warn_all" >&6; }
7630 case ".$ac_cv_cflags_warn_all" in
7635 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7636 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7637 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7640 test $ac_status = 0; }
7641 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7642 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7645 test $ac_status = 0; }
7646 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7653 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7655 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7656 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
7657 $as_echo_n "(cached) " >&6
7659 cat >conftest.make <<\_ACEOF
7662 @echo '@@@%%%=$(MAKE)=@@@%%%'
7664 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7665 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7667 eval ac_cv_prog_make_${ac_make}_set=yes;;
7669 eval ac_cv_prog_make_${ac_make}_set=no;;
7673 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7675 $as_echo "yes" >&6; }
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679 $as_echo "no" >&6; }
7680 SET_MAKE="MAKE=${MAKE-make}"
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7684 $as_echo_n "checking whether ln -s works... " >&6; }
7686 if test "$LN_S" = "ln -s"; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7688 $as_echo "yes" >&6; }
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7691 $as_echo "no, using $LN_S" >&6; }
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7695 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
7697 # Check whether --with-dmalloc was given.
7698 if test "${with_dmalloc+set}" = set; then :
7699 withval=$with_dmalloc; if test "$withval" = yes; then
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7701 $as_echo "yes" >&6; }
7703 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7705 LIBS="$LIBS -ldmalloc"
7706 LDFLAGS="$LDFLAGS -g"
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709 $as_echo "no" >&6; }
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713 $as_echo "no" >&6; }
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7719 $as_echo_n "checking for __attribute__... " >&6; }
7720 if test "${ax_cv___attribute__+set}" = set; then :
7721 $as_echo_n "(cached) " >&6
7723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724 /* end confdefs.h. */
7726 static void foo(void) __attribute__ ((unused));
7740 if ac_fn_c_try_compile "$LINENO"; then :
7741 ax_cv___attribute__=yes
7743 ax_cv___attribute__=no
7746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7750 $as_echo "$ax_cv___attribute__" >&6; }
7751 if test "$ax_cv___attribute__" = "yes"; then
7753 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7759 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7760 if test -n "$ac_tool_prefix"; then
7761 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7762 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7766 $as_echo_n "(cached) " >&6
7770 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7777 test -z "$as_dir" && as_dir=.
7778 for ac_exec_ext in '' $ac_executable_extensions; do
7779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7780 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7791 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7792 if test -n "$PKG_CONFIG"; then
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7794 $as_echo "$PKG_CONFIG" >&6; }
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 $as_echo "no" >&6; }
7802 if test -z "$ac_cv_path_PKG_CONFIG"; then
7803 ac_pt_PKG_CONFIG=$PKG_CONFIG
7804 # Extract the first word of "pkg-config", so it can be a program name with args.
7805 set dummy pkg-config; ac_word=$2
7806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 $as_echo_n "checking for $ac_word... " >&6; }
7808 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7809 $as_echo_n "(cached) " >&6
7811 case $ac_pt_PKG_CONFIG in
7813 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7820 test -z "$as_dir" && as_dir=.
7821 for ac_exec_ext in '' $ac_executable_extensions; do
7822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7823 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7834 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7835 if test -n "$ac_pt_PKG_CONFIG"; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7837 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840 $as_echo "no" >&6; }
7843 if test "x$ac_pt_PKG_CONFIG" = x; then
7846 case $cross_compiling:$ac_tool_warned in
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7850 ac_tool_warned=yes ;;
7852 PKG_CONFIG=$ac_pt_PKG_CONFIG
7855 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7859 if test -n "$PKG_CONFIG"; then
7860 _pkg_min_version=0.9.0
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7862 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7863 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7865 $as_echo "yes" >&6; }
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7868 $as_echo "no" >&6; }
7875 # Enable run-time checking.
7877 # Check whether --enable-bounds-checking was given.
7878 if test "${enable_bounds_checking+set}" = set; then :
7879 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7881 enable_bounds_checking='no'
7885 if test "$enable_bounds_checking" = yes; then
7887 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7897 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7898 if test "${ax_cv_c_compiler_ms+set}" = set; then :
7899 $as_echo_n "(cached) " >&6
7901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h. */
7915 if ac_fn_c_try_compile "$LINENO"; then :
7920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7921 ax_cv_c_compiler_ms=$ax_compiler_ms
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7925 $as_echo "$ax_cv_c_compiler_ms" >&6; }
7928 native_win32_build='no'
7930 case "${host_os}" in
7933 GDI32_LIBS='-lgdi32'
7936 native_win32_build='yes'
7937 GDI32_LIBS='-lgdi32'
7940 if test "${GDI32_LIBS}x" != 'x'; then
7942 $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
7946 if test "${GDI32_LIBS}x" != 'x' ; then
7947 WINGDI32_DELEGATE_TRUE=
7948 WINGDI32_DELEGATE_FALSE='#'
7950 WINGDI32_DELEGATE_TRUE='#'
7951 WINGDI32_DELEGATE_FALSE=
7954 if test "${native_win32_build}" = 'yes' ; then
7955 WIN32_NATIVE_BUILD_TRUE=
7956 WIN32_NATIVE_BUILD_FALSE='#'
7958 WIN32_NATIVE_BUILD_TRUE='#'
7959 WIN32_NATIVE_BUILD_FALSE=
7962 if test "${cygwin_build}" = 'yes' ; then
7964 CYGWIN_BUILD_FALSE='#'
7966 CYGWIN_BUILD_TRUE='#'
7970 if test "x${CC}" = 'xcl.exe' ; then
7979 WinPathScript="${srcdirfull}/winpath.sh"
7983 # Compiler flags tweaks
7985 if test "${GCC}" != "yes"; then
7988 # aCC: HP ANSI C++ B3910B A.03.34
7989 CFLAGS="${CFLAGS} -Wp,-H30000"
7990 if test -n "${CXXFLAGS}"; then
7993 CXXFLAGS="${CXXFLAGS} -AA"
7997 # Compaq alphaev68-dec-osf5.1 compiler
7998 if test -n "${CXXFLAGS}"; then
7999 CXXFLAGS='-std strict_ansi -noimplicit_include'
8001 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8006 # Check for lazy-loading.
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
8008 $as_echo_n "checking for linker lazyload option... " >&6; }
8009 if test "${im_cv_ld_lazyload+set}" = set; then :
8010 $as_echo_n "(cached) " >&6
8013 im_cv_ld_lazyload='none'
8015 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8016 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8017 im_cv_ld_lazyload='-Wl,-zlazyload'
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
8024 $as_echo "$im_cv_ld_lazyload" >&6; }
8025 if test "${im_cv_ld_lazyload}" != 'none' ; then
8026 if test -z "${LDFLAGS}" ; then
8027 LDFLAGS="${im_cv_ld_lazyload}"
8029 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8034 *darwin* | *-macos10*)
8035 # Check whether --enable-osx-universal-binary was given.
8036 if test "${enable_osx_universal_binary+set}" = set; then :
8037 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8039 build_osxuniversal=no
8043 if test "${build_osxuniversal}" != no ; then
8044 if test "$enable_dependency_tracking" != no ; then
8045 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
8046 Please re-run configure with these options:
8047 --disable-dependency-tracking --enable-osx-universal-binary
8050 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8051 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8052 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8057 # Enable support for threads
8059 # Check whether --with-threads was given.
8060 if test "${with_threads+set}" = set; then :
8061 withval=$with_threads; with_threads=$withval
8068 if test "$with_threads" != 'no'; then
8073 ac_cpp='$CPP $CPPFLAGS'
8074 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8075 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8076 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8080 # We used to check for pthread.h first, but this fails if pthread.h
8081 # requires special compiler flags (e.g. on True64 or Sequent).
8082 # It gets checked for in the link test anyway.
8084 # First of all, check if the user has set any of the PTHREAD_LIBS,
8085 # etcetera environment variables, and if threads linking works using
8087 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8088 save_CFLAGS="$CFLAGS"
8089 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8091 LIBS="$PTHREAD_LIBS $LIBS"
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8093 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095 /* end confdefs.h. */
8097 /* Override any GCC internal prototype to avoid an error.
8098 Use char because int might match the return type of a GCC
8099 builtin and then its argument prototype would still apply. */
8103 char pthread_join ();
8107 return pthread_join ();
8112 if ac_fn_c_try_link "$LINENO"; then :
8115 rm -f core conftest.err conftest.$ac_objext \
8116 conftest$ac_exeext conftest.$ac_ext
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8118 $as_echo "$ax_pthread_ok" >&6; }
8119 if test x"$ax_pthread_ok" = xno; then
8124 CFLAGS="$save_CFLAGS"
8127 # We must check for the threads library under a number of different
8128 # names; the ordering is very important because some systems
8129 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8130 # libraries is broken (non-POSIX).
8132 # Create a list of thread flags to try. Items starting with a "-" are
8133 # C compiler flags, and other items are library names, except for "none"
8134 # which indicates that we try without any flags at all, and "pthread-config"
8135 # which is a program returning the flags for the Pth emulation library.
8137 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8139 # The ordering *is* (sometimes) important. Some notes on the
8140 # individual items follow:
8142 # pthreads: AIX (must check this before -lpthread)
8143 # none: in case threads are in libc; should be tried before -Kthread and
8144 # other compiler flags to prevent continual compiler warnings
8145 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8146 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8147 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8148 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8149 # -pthreads: Solaris/gcc
8150 # -mthreads: Mingw32/gcc, Lynx/gcc
8151 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8152 # doesn't hurt to check since this sometimes defines pthreads too;
8153 # also defines -D_REENTRANT)
8154 # ... -mt is also the pthreads flag for HP/aCC
8155 # pthread: Linux, etcetera
8156 # --thread-safe: KAI C++
8157 # pthread-config: use pthread-config program (for GNU Pth library)
8159 case "${host_cpu}-${host_os}" in
8162 # On Solaris (at least, for some versions), libc contains stubbed
8163 # (non-functional) versions of the pthreads routines, so link-based
8164 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8165 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8166 # a function called by this macro, so we could check for that, but
8167 # who knows whether they'll stub that too in a future libc.) So,
8168 # we'll just look for -pthreads and -lpthread first:
8170 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8174 ax_pthread_flags="-pthread $ax_pthread_flags"
8178 if test x"$ax_pthread_ok" = xno; then
8179 for flag in $ax_pthread_flags; do
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8184 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8189 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8190 PTHREAD_CFLAGS="$flag"
8194 # Extract the first word of "pthread-config", so it can be a program name with args.
8195 set dummy pthread-config; ac_word=$2
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8197 $as_echo_n "checking for $ac_word... " >&6; }
8198 if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8199 $as_echo_n "(cached) " >&6
8201 if test -n "$ax_pthread_config"; then
8202 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8208 test -z "$as_dir" && as_dir=.
8209 for ac_exec_ext in '' $ac_executable_extensions; do
8210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8211 ac_cv_prog_ax_pthread_config="yes"
8212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8219 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8222 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8223 if test -n "$ax_pthread_config"; then
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8225 $as_echo "$ax_pthread_config" >&6; }
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228 $as_echo "no" >&6; }
8232 if test x"$ax_pthread_config" = xno; then continue; fi
8233 PTHREAD_CFLAGS="`pthread-config --cflags`"
8234 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8239 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8240 PTHREAD_LIBS="-l$flag"
8245 save_CFLAGS="$CFLAGS"
8246 LIBS="$PTHREAD_LIBS $LIBS"
8247 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8249 # Check for various functions. We must include pthread.h,
8250 # since some functions may be macros. (On the Sequent, we
8251 # need a special flag -Kthread to make this header compile.)
8252 # We check for pthread_join because it is in -lpthread on IRIX
8253 # while pthread_create is in libc. We check for pthread_attr_init
8254 # due to DEC craziness with -lpthreads. We check for
8255 # pthread_cleanup_push because it is one of the few pthread
8256 # functions on Solaris that doesn't have a non-functional libc stub.
8257 # We try pthread_create on general principles.
8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259 /* end confdefs.h. */
8260 #include <pthread.h>
8261 static void routine(void* a) {a=0;}
8262 static void* start_routine(void* a) {return a;}
8266 pthread_t th; pthread_attr_t attr;
8267 pthread_create(&th,0,start_routine,0);
8268 pthread_join(th, 0);
8269 pthread_attr_init(&attr);
8270 pthread_cleanup_push(routine, 0);
8271 pthread_cleanup_pop(0);
8276 if ac_fn_c_try_link "$LINENO"; then :
8279 rm -f core conftest.err conftest.$ac_objext \
8280 conftest$ac_exeext conftest.$ac_ext
8283 CFLAGS="$save_CFLAGS"
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8286 $as_echo "$ax_pthread_ok" >&6; }
8287 if test "x$ax_pthread_ok" = xyes; then
8296 # Various other checks:
8297 if test "x$ax_pthread_ok" = xyes; then
8299 LIBS="$PTHREAD_LIBS $LIBS"
8300 save_CFLAGS="$CFLAGS"
8301 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8303 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8305 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8307 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8309 /* end confdefs.h. */
8310 #include <pthread.h>
8314 int attr=$attr; return attr;
8319 if ac_fn_c_try_link "$LINENO"; then :
8320 attr_name=$attr; break
8322 rm -f core conftest.err conftest.$ac_objext \
8323 conftest$ac_exeext conftest.$ac_ext
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8326 $as_echo "$attr_name" >&6; }
8327 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8329 cat >>confdefs.h <<_ACEOF
8330 #define PTHREAD_CREATE_JOINABLE $attr_name
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8336 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8338 case "${host_cpu}-${host_os}" in
8339 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8340 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8343 $as_echo "${flag}" >&6; }
8344 if test "x$flag" != xno; then
8345 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8349 CFLAGS="$save_CFLAGS"
8351 # More AIX lossage: must compile with xlc_r or cc_r
8352 if test x"$GCC" != xyes; then
8353 for ac_prog in xlc_r cc_r
8355 # Extract the first word of "$ac_prog", so it can be a program name with args.
8356 set dummy $ac_prog; ac_word=$2
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358 $as_echo_n "checking for $ac_word... " >&6; }
8359 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8360 $as_echo_n "(cached) " >&6
8362 if test -n "$PTHREAD_CC"; then
8363 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8369 test -z "$as_dir" && as_dir=.
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8372 ac_cv_prog_PTHREAD_CC="$ac_prog"
8373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8383 if test -n "$PTHREAD_CC"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8385 $as_echo "$PTHREAD_CC" >&6; }
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8392 test -n "$PTHREAD_CC" && break
8394 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8407 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8408 if test x"$ax_pthread_ok" = xyes; then
8410 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8418 ac_cpp='$CPP $CPPFLAGS'
8419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8424 if test "$ax_pthread_ok" = yes; then
8426 DEF_THREAD="$PTHREAD_CFLAGS"
8427 CFLAGS="$CFLAGS $DEF_THREAD"
8428 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8429 if test "$CC" != "$PTHREAD_CC"; then
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
8431 $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8435 $as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8440 # Enable support for OpenMP
8441 if test "$have_threads" != 'yes'; then
8442 ac_cv_prog_c_openmp=unsupported
8446 # Check whether --enable-openmp was given.
8447 if test "${enable_openmp+set}" = set; then :
8448 enableval=$enable_openmp;
8451 if test "$enable_openmp" != no; then
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
8453 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
8454 if test "${ac_cv_prog_c_openmp+set}" = set; then :
8455 $as_echo_n "(cached) " >&6
8457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8458 /* end confdefs.h. */
8464 int main () { return omp_get_num_threads (); }
8467 if ac_fn_c_try_link "$LINENO"; then :
8468 ac_cv_prog_c_openmp='none needed'
8470 ac_cv_prog_c_openmp='unsupported'
8471 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8472 ac_save_CFLAGS=$CFLAGS
8473 CFLAGS="$CFLAGS $ac_option"
8474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8475 /* end confdefs.h. */
8481 int main () { return omp_get_num_threads (); }
8484 if ac_fn_c_try_link "$LINENO"; then :
8485 ac_cv_prog_c_openmp=$ac_option
8487 rm -f core conftest.err conftest.$ac_objext \
8488 conftest$ac_exeext conftest.$ac_ext
8489 CFLAGS=$ac_save_CFLAGS
8490 if test "$ac_cv_prog_c_openmp" != unsupported; then
8495 rm -f core conftest.err conftest.$ac_objext \
8496 conftest$ac_exeext conftest.$ac_ext
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
8499 $as_echo "$ac_cv_prog_c_openmp" >&6; }
8500 case $ac_cv_prog_c_openmp in #(
8501 "none needed" | unsupported)
8504 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
8509 CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8510 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8512 if test "$enable_openmp" != no; then
8513 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8514 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8518 # Enable support for OpenCL
8523 ac_cpp='$CPP $CPPFLAGS'
8524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8530 # We used to check for pthread.h first, but this fails if pthread.h
8531 # requires special compiler flags (e.g. on True64 or Sequent).
8532 # It gets checked for in the link test anyway.
8534 # First of all, check if the user has set any of the PTHREAD_LIBS,
8535 # etcetera environment variables, and if threads linking works using
8537 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8538 save_CFLAGS="$CFLAGS"
8539 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8541 LIBS="$PTHREAD_LIBS $LIBS"
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8543 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8545 /* end confdefs.h. */
8547 /* Override any GCC internal prototype to avoid an error.
8548 Use char because int might match the return type of a GCC
8549 builtin and then its argument prototype would still apply. */
8553 char pthread_join ();
8557 return pthread_join ();
8562 if ac_fn_c_try_link "$LINENO"; then :
8565 rm -f core conftest.err conftest.$ac_objext \
8566 conftest$ac_exeext conftest.$ac_ext
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8568 $as_echo "$ax_pthread_ok" >&6; }
8569 if test x"$ax_pthread_ok" = xno; then
8574 CFLAGS="$save_CFLAGS"
8577 # We must check for the threads library under a number of different
8578 # names; the ordering is very important because some systems
8579 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8580 # libraries is broken (non-POSIX).
8582 # Create a list of thread flags to try. Items starting with a "-" are
8583 # C compiler flags, and other items are library names, except for "none"
8584 # which indicates that we try without any flags at all, and "pthread-config"
8585 # which is a program returning the flags for the Pth emulation library.
8587 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8589 # The ordering *is* (sometimes) important. Some notes on the
8590 # individual items follow:
8592 # pthreads: AIX (must check this before -lpthread)
8593 # none: in case threads are in libc; should be tried before -Kthread and
8594 # other compiler flags to prevent continual compiler warnings
8595 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8596 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8597 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8598 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8599 # -pthreads: Solaris/gcc
8600 # -mthreads: Mingw32/gcc, Lynx/gcc
8601 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8602 # doesn't hurt to check since this sometimes defines pthreads too;
8603 # also defines -D_REENTRANT)
8604 # ... -mt is also the pthreads flag for HP/aCC
8605 # pthread: Linux, etcetera
8606 # --thread-safe: KAI C++
8607 # pthread-config: use pthread-config program (for GNU Pth library)
8609 case "${host_cpu}-${host_os}" in
8612 # On Solaris (at least, for some versions), libc contains stubbed
8613 # (non-functional) versions of the pthreads routines, so link-based
8614 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8615 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8616 # a function called by this macro, so we could check for that, but
8617 # who knows whether they'll stub that too in a future libc.) So,
8618 # we'll just look for -pthreads and -lpthread first:
8620 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8624 ax_pthread_flags="-pthread $ax_pthread_flags"
8628 if test x"$ax_pthread_ok" = xno; then
8629 for flag in $ax_pthread_flags; do
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8634 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8639 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8640 PTHREAD_CFLAGS="$flag"
8644 # Extract the first word of "pthread-config", so it can be a program name with args.
8645 set dummy pthread-config; ac_word=$2
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8647 $as_echo_n "checking for $ac_word... " >&6; }
8648 if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8649 $as_echo_n "(cached) " >&6
8651 if test -n "$ax_pthread_config"; then
8652 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658 test -z "$as_dir" && as_dir=.
8659 for ac_exec_ext in '' $ac_executable_extensions; do
8660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8661 ac_cv_prog_ax_pthread_config="yes"
8662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8669 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8672 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8673 if test -n "$ax_pthread_config"; then
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8675 $as_echo "$ax_pthread_config" >&6; }
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8678 $as_echo "no" >&6; }
8682 if test x"$ax_pthread_config" = xno; then continue; fi
8683 PTHREAD_CFLAGS="`pthread-config --cflags`"
8684 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8689 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8690 PTHREAD_LIBS="-l$flag"
8695 save_CFLAGS="$CFLAGS"
8696 LIBS="$PTHREAD_LIBS $LIBS"
8697 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8699 # Check for various functions. We must include pthread.h,
8700 # since some functions may be macros. (On the Sequent, we
8701 # need a special flag -Kthread to make this header compile.)
8702 # We check for pthread_join because it is in -lpthread on IRIX
8703 # while pthread_create is in libc. We check for pthread_attr_init
8704 # due to DEC craziness with -lpthreads. We check for
8705 # pthread_cleanup_push because it is one of the few pthread
8706 # functions on Solaris that doesn't have a non-functional libc stub.
8707 # We try pthread_create on general principles.
8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8709 /* end confdefs.h. */
8710 #include <pthread.h>
8711 static void routine(void* a) {a=0;}
8712 static void* start_routine(void* a) {return a;}
8716 pthread_t th; pthread_attr_t attr;
8717 pthread_create(&th,0,start_routine,0);
8718 pthread_join(th, 0);
8719 pthread_attr_init(&attr);
8720 pthread_cleanup_push(routine, 0);
8721 pthread_cleanup_pop(0);
8726 if ac_fn_c_try_link "$LINENO"; then :
8729 rm -f core conftest.err conftest.$ac_objext \
8730 conftest$ac_exeext conftest.$ac_ext
8733 CFLAGS="$save_CFLAGS"
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8736 $as_echo "$ax_pthread_ok" >&6; }
8737 if test "x$ax_pthread_ok" = xyes; then
8746 # Various other checks:
8747 if test "x$ax_pthread_ok" = xyes; then
8749 LIBS="$PTHREAD_LIBS $LIBS"
8750 save_CFLAGS="$CFLAGS"
8751 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8753 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8755 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8757 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8759 /* end confdefs.h. */
8760 #include <pthread.h>
8764 int attr=$attr; return attr;
8769 if ac_fn_c_try_link "$LINENO"; then :
8770 attr_name=$attr; break
8772 rm -f core conftest.err conftest.$ac_objext \
8773 conftest$ac_exeext conftest.$ac_ext
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8776 $as_echo "$attr_name" >&6; }
8777 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8779 cat >>confdefs.h <<_ACEOF
8780 #define PTHREAD_CREATE_JOINABLE $attr_name
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8786 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8788 case "${host_cpu}-${host_os}" in
8789 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8790 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8793 $as_echo "${flag}" >&6; }
8794 if test "x$flag" != xno; then
8795 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8799 CFLAGS="$save_CFLAGS"
8801 # More AIX lossage: must compile with xlc_r or cc_r
8802 if test x"$GCC" != xyes; then
8803 for ac_prog in xlc_r cc_r
8805 # Extract the first word of "$ac_prog", so it can be a program name with args.
8806 set dummy $ac_prog; ac_word=$2
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8808 $as_echo_n "checking for $ac_word... " >&6; }
8809 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8810 $as_echo_n "(cached) " >&6
8812 if test -n "$PTHREAD_CC"; then
8813 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8819 test -z "$as_dir" && as_dir=.
8820 for ac_exec_ext in '' $ac_executable_extensions; do
8821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8822 ac_cv_prog_PTHREAD_CC="$ac_prog"
8823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8832 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8833 if test -n "$PTHREAD_CC"; then
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8835 $as_echo "$PTHREAD_CC" >&6; }
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8838 $as_echo "no" >&6; }
8842 test -n "$PTHREAD_CC" && break
8844 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8857 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8858 if test x"$ax_pthread_ok" = xyes; then
8860 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8868 ac_cpp='$CPP $CPPFLAGS'
8869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8875 # Check whether --enable-opencl was given.
8876 if test "${enable_opencl+set}" = set; then :
8877 enableval=$enable_opencl; disable_opencl=$enableval
8879 disable_opencl='yes'
8883 if test "$disable_opencl" = 'yes'; then
8885 ac_cpp='$CPP $CPPFLAGS'
8886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8891 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8892 if test "${ax_cv_c_compiler_ms+set}" = set; then :
8893 $as_echo_n "(cached) " >&6
8895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896 /* end confdefs.h. */
8909 if ac_fn_c_try_compile "$LINENO"; then :
8914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8915 ax_cv_c_compiler_ms=$ax_compiler_ms
8918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8919 $as_echo "$ax_cv_c_compiler_ms" >&6; }
8920 if test X$ax_compiler_ms = Xno; then :
8921 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8924 ax_save_CPPFLAGS=$CPPFLAGS
8925 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8926 for ac_header in CL/cl.h OpenCL/cl.h
8928 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8929 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8930 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8931 cat >>confdefs.h <<_ACEOF
8932 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8939 CPPFLAGS=$ax_save_CPPFLAGS
8941 for ac_header in windows.h
8943 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8944 if test "x$ac_cv_header_windows_h" = x""yes; then :
8945 cat >>confdefs.h <<_ACEOF
8946 #define HAVE_WINDOWS_H 1
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
8957 $as_echo_n "checking for OpenCL library... " >&6; }
8958 if test "${ax_cv_check_cl_libcl+set}" = set; then :
8959 $as_echo_n "(cached) " >&6
8961 ax_cv_check_cl_libcl=no
8963 x86_64) ax_check_cl_libdir=lib64 ;;
8964 *) ax_check_cl_libdir=lib ;;
8966 ax_save_CPPFLAGS=$CPPFLAGS
8967 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8970 ax_check_libs="-lOpenCL -lCL -lclparser"
8971 for ax_lib in $ax_check_libs; do
8972 if test X$ax_compiler_ms = Xyes; then :
8973 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8977 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979 /* end confdefs.h. */
8981 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8982 # include <windows.h>
8984 # ifdef HAVE_CL_CL_H
8986 # elif defined(HAVE_OPENCL_CL_H)
8987 # include <OpenCL/cl.h>
8994 clCreateContextFromType(0,0,0,0,0)
8999 if ac_fn_c_try_link "$LINENO"; then :
9000 ax_cv_check_cl_libcl=$ax_try_lib; break
9002 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"
9003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9004 /* end confdefs.h. */
9006 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9007 # include <windows.h>
9009 # ifdef HAVE_CL_CL_H
9011 # elif defined(HAVE_OPENCL_CL_H)
9012 # include <OpenCL/cl.h>
9019 clCreateContextFromType(0,0,0,0,0)
9024 if ac_fn_c_try_link "$LINENO"; then :
9025 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9027 ax_check_cl_dylib_flag='-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"
9028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9029 /* end confdefs.h. */
9031 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9032 # include <windows.h>
9034 # ifdef HAVE_CL_CL_H
9036 # elif defined(HAVE_OPENCL_CL_H)
9037 # include <OpenCL/cl.h>
9044 clCreateContextFromType(0,0,0,0,0)
9049 if ac_fn_c_try_link "$LINENO"; then :
9050 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9052 rm -f core conftest.err conftest.$ac_objext \
9053 conftest$ac_exeext conftest.$ac_ext
9055 rm -f core conftest.err conftest.$ac_objext \
9056 conftest$ac_exeext conftest.$ac_ext
9058 rm -f core conftest.err conftest.$ac_objext \
9059 conftest$ac_exeext conftest.$ac_ext
9062 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
9063 LIBS='-framework OpenCL'
9064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h. */
9067 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9068 # include <windows.h>
9070 # ifdef HAVE_CL_CL_H
9072 # elif defined(HAVE_OPENCL_CL_H)
9073 # include <OpenCL/cl.h>
9080 clCreateContextFromType(0,0,0,0,0)
9085 if ac_fn_c_try_link "$LINENO"; then :
9086 ax_cv_check_cl_libcl=$LIBS
9088 rm -f core conftest.err conftest.$ac_objext \
9089 conftest$ac_exeext conftest.$ac_ext
9093 CPPFLAGS=$ax_save_CPPFLAGS
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9096 $as_echo "$ax_cv_check_cl_libcl" >&6; }
9098 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9099 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9101 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9102 $as_echo "#define _OPENCL 1" >>confdefs.h
9106 ac_cpp='$CPP $CPPFLAGS'
9107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9116 CFLAGS="$CL_CFLAGS $CFLAGS"
9117 LIBS="$CL_LIBS $LIBS"
9119 if test "$enable_opencl" != no; then
9120 if test "_OPENCL" = '1'; then
9121 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9127 # Check for large file support
9130 # Check whether --enable-largefile was given.
9131 if test "${enable_largefile+set}" = set; then :
9132 enableval=$enable_largefile;
9135 if test "$enable_largefile" != no; then
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9138 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9139 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
9140 $as_echo_n "(cached) " >&6
9142 ac_cv_sys_largefile_CC=no
9143 if test "$GCC" != yes; then
9146 # IRIX 6.2 and later do not support large files by default,
9147 # so use the C compiler's -n32 option if that helps.
9148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149 /* end confdefs.h. */
9150 #include <sys/types.h>
9151 /* Check that off_t can represent 2**63 - 1 correctly.
9152 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9153 since some C++ compilers masquerading as C compilers
9154 incorrectly reject 9223372036854775807. */
9155 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9156 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9157 && LARGE_OFF_T % 2147483647 == 1)
9167 if ac_fn_c_try_compile "$LINENO"; then :
9170 rm -f core conftest.err conftest.$ac_objext
9172 if ac_fn_c_try_compile "$LINENO"; then :
9173 ac_cv_sys_largefile_CC=' -n32'; break
9175 rm -f core conftest.err conftest.$ac_objext
9179 rm -f conftest.$ac_ext
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9183 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
9184 if test "$ac_cv_sys_largefile_CC" != no; then
9185 CC=$CC$ac_cv_sys_largefile_CC
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9189 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9190 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
9191 $as_echo_n "(cached) " >&6
9194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9195 /* end confdefs.h. */
9196 #include <sys/types.h>
9197 /* Check that off_t can represent 2**63 - 1 correctly.
9198 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9199 since some C++ compilers masquerading as C compilers
9200 incorrectly reject 9223372036854775807. */
9201 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9202 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9203 && LARGE_OFF_T % 2147483647 == 1)
9213 if ac_fn_c_try_compile "$LINENO"; then :
9214 ac_cv_sys_file_offset_bits=no; break
9216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9218 /* end confdefs.h. */
9219 #define _FILE_OFFSET_BITS 64
9220 #include <sys/types.h>
9221 /* Check that off_t can represent 2**63 - 1 correctly.
9222 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9223 since some C++ compilers masquerading as C compilers
9224 incorrectly reject 9223372036854775807. */
9225 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9226 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9227 && LARGE_OFF_T % 2147483647 == 1)
9237 if ac_fn_c_try_compile "$LINENO"; then :
9238 ac_cv_sys_file_offset_bits=64; break
9240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9241 ac_cv_sys_file_offset_bits=unknown
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9246 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9247 case $ac_cv_sys_file_offset_bits in #(
9250 cat >>confdefs.h <<_ACEOF
9251 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9256 if test $ac_cv_sys_file_offset_bits = unknown; then
9257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9258 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9259 if test "${ac_cv_sys_large_files+set}" = set; then :
9260 $as_echo_n "(cached) " >&6
9263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264 /* end confdefs.h. */
9265 #include <sys/types.h>
9266 /* Check that off_t can represent 2**63 - 1 correctly.
9267 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9268 since some C++ compilers masquerading as C compilers
9269 incorrectly reject 9223372036854775807. */
9270 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9271 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9272 && LARGE_OFF_T % 2147483647 == 1)
9282 if ac_fn_c_try_compile "$LINENO"; then :
9283 ac_cv_sys_large_files=no; break
9285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9287 /* end confdefs.h. */
9288 #define _LARGE_FILES 1
9289 #include <sys/types.h>
9290 /* Check that off_t can represent 2**63 - 1 correctly.
9291 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9292 since some C++ compilers masquerading as C compilers
9293 incorrectly reject 9223372036854775807. */
9294 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9295 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9296 && LARGE_OFF_T % 2147483647 == 1)
9306 if ac_fn_c_try_compile "$LINENO"; then :
9307 ac_cv_sys_large_files=1; break
9309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9310 ac_cv_sys_large_files=unknown
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9315 $as_echo "$ac_cv_sys_large_files" >&6; }
9316 case $ac_cv_sys_large_files in #(
9319 cat >>confdefs.h <<_ACEOF
9320 #define _LARGE_FILES $ac_cv_sys_large_files
9328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9329 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
9330 if test "${ac_cv_sys_largefile_source+set}" = set; then :
9331 $as_echo_n "(cached) " >&6
9334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335 /* end confdefs.h. */
9336 #include <sys/types.h> /* for off_t */
9341 int (*fp) (FILE *, off_t, int) = fseeko;
9342 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9347 if ac_fn_c_try_link "$LINENO"; then :
9348 ac_cv_sys_largefile_source=no; break
9350 rm -f core conftest.err conftest.$ac_objext \
9351 conftest$ac_exeext conftest.$ac_ext
9352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9353 /* end confdefs.h. */
9354 #define _LARGEFILE_SOURCE 1
9355 #include <sys/types.h> /* for off_t */
9360 int (*fp) (FILE *, off_t, int) = fseeko;
9361 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9366 if ac_fn_c_try_link "$LINENO"; then :
9367 ac_cv_sys_largefile_source=1; break
9369 rm -f core conftest.err conftest.$ac_objext \
9370 conftest$ac_exeext conftest.$ac_ext
9371 ac_cv_sys_largefile_source=unknown
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
9376 $as_echo "$ac_cv_sys_largefile_source" >&6; }
9377 case $ac_cv_sys_largefile_source in #(
9380 cat >>confdefs.h <<_ACEOF
9381 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9387 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9388 # in glibc 2.1.3, but that breaks too many other things.
9389 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9390 if test $ac_cv_sys_largefile_source != unknown; then
9392 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
9397 if test "$enable_largefile" != no; then
9398 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9399 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
9402 $as_echo_n "checking for native large file support... " >&6; }
9403 if test "$cross_compiling" = yes; then :
9404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9406 as_fn_error $? "cannot run test program while cross compiling
9407 See \`config.log' for more details" "$LINENO" 5; }
9409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9410 /* end confdefs.h. */
9413 exit(!(sizeof(off_t) == 8));
9416 if ac_fn_c_try_run "$LINENO"; then :
9417 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9420 $as_echo "yes" >&6; }
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9423 $as_echo "no" >&6; }
9425 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9426 conftest.$ac_objext conftest.beam conftest.$ac_ext
9430 if test "$ac_cv_sys_large_files" != 'no'; then
9431 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9433 if test "$ac_cv_sys_largefile_source" != 'no'; then
9434 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9440 # Configure libtool & libltdl
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9450 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9455 macro_version='2.2.10'
9456 macro_revision='1.3175'
9470 ltmain="$ac_aux_dir/ltmain.sh"
9472 # Backslashify metacharacters that are still active within
9473 # double-quoted strings.
9474 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9476 # Same as above, but do not quote variable references.
9477 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9479 # Sed substitution to delay expansion of an escaped shell variable in a
9480 # double_quote_subst'ed string.
9481 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9483 # Sed substitution to delay expansion of an escaped single quote.
9484 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9486 # Sed substitution to avoid accidental globbing in evaled expressions
9487 no_glob_subst='s/\*/\\\*/g'
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9490 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9491 if test "${lt_cv_path_NM+set}" = set; then :
9492 $as_echo_n "(cached) " >&6
9494 if test -n "$NM"; then
9495 # Let the user override the test.
9498 lt_nm_to_check="${ac_tool_prefix}nm"
9499 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9500 lt_nm_to_check="$lt_nm_to_check nm"
9502 for lt_tmp_nm in $lt_nm_to_check; do
9503 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9504 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9506 test -z "$ac_dir" && ac_dir=.
9507 tmp_nm="$ac_dir/$lt_tmp_nm"
9508 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9509 # Check to see if the nm accepts a BSD-compat flag.
9510 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9511 # nm: unknown option "B" ignored
9512 # Tru64's nm complains that /dev/null is an invalid object file
9513 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9514 */dev/null* | *'Invalid file or object type'*)
9515 lt_cv_path_NM="$tmp_nm -B"
9519 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9521 lt_cv_path_NM="$tmp_nm -p"
9525 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9526 continue # so that we can try to find one that supports BSD flags
9535 : ${lt_cv_path_NM=no}
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9539 $as_echo "$lt_cv_path_NM" >&6; }
9540 if test "$lt_cv_path_NM" != "no"; then
9543 # Didn't find any BSD compatible name lister, look for dumpbin.
9544 if test -n "$DUMPBIN"; then :
9545 # Let the user override the test.
9547 if test -n "$ac_tool_prefix"; then
9548 for ac_prog in dumpbin "link -dump"
9550 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9551 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9553 $as_echo_n "checking for $ac_word... " >&6; }
9554 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
9555 $as_echo_n "(cached) " >&6
9557 if test -n "$DUMPBIN"; then
9558 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9564 test -z "$as_dir" && as_dir=.
9565 for ac_exec_ext in '' $ac_executable_extensions; do
9566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9567 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9577 DUMPBIN=$ac_cv_prog_DUMPBIN
9578 if test -n "$DUMPBIN"; then
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9580 $as_echo "$DUMPBIN" >&6; }
9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9583 $as_echo "no" >&6; }
9587 test -n "$DUMPBIN" && break
9590 if test -z "$DUMPBIN"; then
9591 ac_ct_DUMPBIN=$DUMPBIN
9592 for ac_prog in dumpbin "link -dump"
9594 # Extract the first word of "$ac_prog", so it can be a program name with args.
9595 set dummy $ac_prog; ac_word=$2
9596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9597 $as_echo_n "checking for $ac_word... " >&6; }
9598 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
9599 $as_echo_n "(cached) " >&6
9601 if test -n "$ac_ct_DUMPBIN"; then
9602 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9608 test -z "$as_dir" && as_dir=.
9609 for ac_exec_ext in '' $ac_executable_extensions; do
9610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9611 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9621 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9622 if test -n "$ac_ct_DUMPBIN"; then
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9624 $as_echo "$ac_ct_DUMPBIN" >&6; }
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9627 $as_echo "no" >&6; }
9631 test -n "$ac_ct_DUMPBIN" && break
9634 if test "x$ac_ct_DUMPBIN" = x; then
9637 case $cross_compiling:$ac_tool_warned in
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9641 ac_tool_warned=yes ;;
9643 DUMPBIN=$ac_ct_DUMPBIN
9647 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9649 DUMPBIN="$DUMPBIN -symbols"
9657 if test "$DUMPBIN" != ":"; then
9661 test -z "$NM" && NM=nm
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9669 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9670 if test "${lt_cv_nm_interface+set}" = set; then :
9671 $as_echo_n "(cached) " >&6
9673 lt_cv_nm_interface="BSD nm"
9674 echo "int some_variable = 0;" > conftest.$ac_ext
9675 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9676 (eval "$ac_compile" 2>conftest.err)
9677 cat conftest.err >&5
9678 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9679 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9680 cat conftest.err >&5
9681 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9682 cat conftest.out >&5
9683 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9684 lt_cv_nm_interface="MS dumpbin"
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9689 $as_echo "$lt_cv_nm_interface" >&6; }
9691 # find the maximum length of command line arguments
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9693 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9694 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
9695 $as_echo_n "(cached) " >&6
9702 # On DJGPP, this test can blow up pretty badly due to problems in libc
9703 # (any single argument exceeding 2000 bytes causes a buffer overrun
9704 # during glob expansion). Even if it were fixed, the result of this
9705 # check would be larger than it should be.
9706 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9710 # Under GNU Hurd, this test is not required because there is
9711 # no limit to the length of command line arguments.
9712 # Libtool will interpret -1 as no limit whatsoever
9713 lt_cv_sys_max_cmd_len=-1;
9716 cygwin* | mingw* | cegcc*)
9717 # On Win9x/ME, this test blows up -- it succeeds, but takes
9718 # about 5 minutes as the teststring grows exponentially.
9719 # Worse, since 9x/ME are not pre-emptively multitasking,
9720 # you end up with a "frozen" computer, even though with patience
9721 # the test eventually succeeds (with a max line length of 256k).
9722 # Instead, let's just punt: use the minimum linelength reported by
9723 # all of the supported platforms: 8192 (on NT/2K/XP).
9724 lt_cv_sys_max_cmd_len=8192;
9728 # On MiNT this can take a long time and run out of memory.
9729 lt_cv_sys_max_cmd_len=8192;
9733 # On AmigaOS with pdksh, this test takes hours, literally.
9734 # So we just punt and use a minimum line length of 8192.
9735 lt_cv_sys_max_cmd_len=8192;
9738 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9739 # This has been around since 386BSD, at least. Likely further.
9740 if test -x /sbin/sysctl; then
9741 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9742 elif test -x /usr/sbin/sysctl; then
9743 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9745 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9747 # And add a safety zone
9748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9753 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9754 lt_cv_sys_max_cmd_len=196608
9758 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9759 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9760 # nice to cause kernel panics so lets avoid the loop below.
9761 # First set a reasonable default.
9762 lt_cv_sys_max_cmd_len=16384
9764 if test -x /sbin/sysconfig; then
9765 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9766 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9771 lt_cv_sys_max_cmd_len=102400
9773 sysv5* | sco5v6* | sysv4.2uw2*)
9774 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9775 if test -n "$kargmax"; then
9776 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9778 lt_cv_sys_max_cmd_len=32768
9782 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9783 if test -n "$lt_cv_sys_max_cmd_len"; then
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`
9787 # Make teststring a little bigger before we do anything with it.
9788 # a 1K string should be a reasonable start.
9789 for i in 1 2 3 4 5 6 7 8 ; do
9790 teststring=$teststring$teststring
9792 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9793 # If test is not a shell built-in, we'll probably end up computing a
9794 # maximum length that is only half of the actual maximum length, but
9796 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9797 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9798 test $i != 17 # 1/2 MB should be enough
9801 teststring=$teststring$teststring
9803 # Only check the string length outside the loop.
9804 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9806 # Add a significant safety factor because C++ compilers can tack on
9807 # massive amounts of additional arguments before passing them to the
9808 # linker. It appears as though 1/2 is a usable value.
9809 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9816 if test -n $lt_cv_sys_max_cmd_len ; then
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9818 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9821 $as_echo "none" >&6; }
9823 max_cmd_len=$lt_cv_sys_max_cmd_len
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9835 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9836 # Try some XSI features
9839 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9841 && eval 'test $(( 1 + 1 )) -eq 2 \
9842 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9845 $as_echo "$xsi_shell" >&6; }
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9849 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9851 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9853 && lt_shell_append=yes
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9855 $as_echo "$lt_shell_append" >&6; }
9858 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9868 # test EBCDIC or ASCII
9869 case `echo X|tr X '\101'` in
9870 A) # ASCII based system
9871 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9872 lt_SP2NL='tr \040 \012'
9873 lt_NL2SP='tr \015\012 \040\040'
9875 *) # EBCDIC based system
9876 lt_SP2NL='tr \100 \n'
9877 lt_NL2SP='tr \r\n \100\100'
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9890 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9891 if test "${lt_cv_ld_reload_flag+set}" = set; then :
9892 $as_echo_n "(cached) " >&6
9894 lt_cv_ld_reload_flag='-r'
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9897 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9898 reload_flag=$lt_cv_ld_reload_flag
9899 case $reload_flag in
9901 *) reload_flag=" $reload_flag" ;;
9903 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9906 if test "$GCC" = yes; then
9907 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9909 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9922 if test -n "$ac_tool_prefix"; then
9923 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9924 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9926 $as_echo_n "checking for $ac_word... " >&6; }
9927 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9928 $as_echo_n "(cached) " >&6
9930 if test -n "$OBJDUMP"; then
9931 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9937 test -z "$as_dir" && as_dir=.
9938 for ac_exec_ext in '' $ac_executable_extensions; do
9939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9940 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9950 OBJDUMP=$ac_cv_prog_OBJDUMP
9951 if test -n "$OBJDUMP"; then
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9953 $as_echo "$OBJDUMP" >&6; }
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9956 $as_echo "no" >&6; }
9961 if test -z "$ac_cv_prog_OBJDUMP"; then
9962 ac_ct_OBJDUMP=$OBJDUMP
9963 # Extract the first word of "objdump", so it can be a program name with args.
9964 set dummy objdump; ac_word=$2
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9966 $as_echo_n "checking for $ac_word... " >&6; }
9967 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
9968 $as_echo_n "(cached) " >&6
9970 if test -n "$ac_ct_OBJDUMP"; then
9971 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9977 test -z "$as_dir" && as_dir=.
9978 for ac_exec_ext in '' $ac_executable_extensions; do
9979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9980 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9990 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9991 if test -n "$ac_ct_OBJDUMP"; then
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9993 $as_echo "$ac_ct_OBJDUMP" >&6; }
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9996 $as_echo "no" >&6; }
9999 if test "x$ac_ct_OBJDUMP" = x; then
10002 case $cross_compiling:$ac_tool_warned in
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10005 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10006 ac_tool_warned=yes ;;
10008 OBJDUMP=$ac_ct_OBJDUMP
10011 OBJDUMP="$ac_cv_prog_OBJDUMP"
10014 test -z "$OBJDUMP" && OBJDUMP=objdump
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10022 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10023 if test "${lt_cv_deplibs_check_method+set}" = set; then :
10024 $as_echo_n "(cached) " >&6
10026 lt_cv_file_magic_cmd='$MAGIC_CMD'
10027 lt_cv_file_magic_test_file=
10028 lt_cv_deplibs_check_method='unknown'
10029 # Need to set the preceding variable on all platforms that support
10030 # interlibrary dependencies.
10031 # 'none' -- dependencies not supported.
10032 # `unknown' -- same as none, but documents that we really don't know.
10033 # 'pass_all' -- all dependencies passed with no checks.
10034 # 'test_compile' -- check by making test program.
10035 # 'file_magic [[regex]]' -- check by looking for files in library path
10036 # which responds to the $file_magic_cmd with a given extended regex.
10037 # If you have `file' or equivalent on your system and you're not sure
10038 # whether `pass_all' will *always* work, you probably want this one.
10042 lt_cv_deplibs_check_method=pass_all
10046 lt_cv_deplibs_check_method=pass_all
10050 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10051 lt_cv_file_magic_cmd='/usr/bin/file -L'
10052 lt_cv_file_magic_test_file=/shlib/libc.so
10056 # func_win32_libid is a shell function defined in ltmain.sh
10057 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10058 lt_cv_file_magic_cmd='func_win32_libid'
10062 # Base MSYS/MinGW do not provide the 'file' command needed by
10063 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10064 # unless we find 'file', for example because we are cross-compiling.
10065 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10066 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
10067 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10068 lt_cv_file_magic_cmd='func_win32_libid'
10070 # Keep this pattern in sync with the one in func_win32_libid.
10071 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10072 lt_cv_file_magic_cmd='$OBJDUMP -f'
10077 # use the weaker test based on 'objdump'. See mingw*.
10078 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10079 lt_cv_file_magic_cmd='$OBJDUMP -f'
10082 darwin* | rhapsody*)
10083 lt_cv_deplibs_check_method=pass_all
10086 freebsd* | dragonfly*)
10087 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10090 # Not sure whether the presence of OpenBSD here was a mistake.
10091 # Let's accept both of them until this is cleared up.
10092 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10093 lt_cv_file_magic_cmd=/usr/bin/file
10094 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10098 lt_cv_deplibs_check_method=pass_all
10103 lt_cv_deplibs_check_method=pass_all
10107 lt_cv_deplibs_check_method=pass_all
10110 hpux10.20* | hpux11*)
10111 lt_cv_file_magic_cmd=/usr/bin/file
10114 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10115 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10118 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]'
10119 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10122 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10123 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10129 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10130 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10133 irix5* | irix6* | nonstopux*)
10135 *-32|*"-32 ") libmagic=32-bit;;
10136 *-n32|*"-n32 ") libmagic=N32;;
10137 *-64|*"-64 ") libmagic=64-bit;;
10138 *) libmagic=never-match;;
10140 lt_cv_deplibs_check_method=pass_all
10143 # This must be Linux ELF.
10144 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10145 lt_cv_deplibs_check_method=pass_all
10149 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10150 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10152 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10157 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10158 lt_cv_file_magic_cmd=/usr/bin/file
10159 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10163 lt_cv_deplibs_check_method=pass_all
10167 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10168 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10170 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10174 osf3* | osf4* | osf5*)
10175 lt_cv_deplibs_check_method=pass_all
10179 lt_cv_deplibs_check_method=pass_all
10183 lt_cv_deplibs_check_method=pass_all
10186 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10187 lt_cv_deplibs_check_method=pass_all
10191 case $host_vendor in
10193 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]'
10194 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10197 lt_cv_deplibs_check_method=pass_all
10200 lt_cv_file_magic_cmd='/bin/file'
10201 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10204 lt_cv_file_magic_cmd='/bin/file'
10205 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10206 lt_cv_file_magic_test_file=/lib/libc.so
10209 lt_cv_deplibs_check_method=pass_all
10212 lt_cv_deplibs_check_method=pass_all
10218 lt_cv_deplibs_check_method=pass_all
10223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10224 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10225 file_magic_cmd=$lt_cv_file_magic_cmd
10226 deplibs_check_method=$lt_cv_deplibs_check_method
10227 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10240 if test -n "$ac_tool_prefix"; then
10241 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10242 set dummy ${ac_tool_prefix}ar; ac_word=$2
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10244 $as_echo_n "checking for $ac_word... " >&6; }
10245 if test "${ac_cv_prog_AR+set}" = set; then :
10246 $as_echo_n "(cached) " >&6
10248 if test -n "$AR"; then
10249 ac_cv_prog_AR="$AR" # Let the user override the test.
10251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10252 for as_dir in $PATH
10255 test -z "$as_dir" && as_dir=.
10256 for ac_exec_ext in '' $ac_executable_extensions; do
10257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10258 ac_cv_prog_AR="${ac_tool_prefix}ar"
10259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10269 if test -n "$AR"; then
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10271 $as_echo "$AR" >&6; }
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10274 $as_echo "no" >&6; }
10279 if test -z "$ac_cv_prog_AR"; then
10281 # Extract the first word of "ar", so it can be a program name with args.
10282 set dummy ar; ac_word=$2
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10284 $as_echo_n "checking for $ac_word... " >&6; }
10285 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10286 $as_echo_n "(cached) " >&6
10288 if test -n "$ac_ct_AR"; then
10289 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10292 for as_dir in $PATH
10295 test -z "$as_dir" && as_dir=.
10296 for ac_exec_ext in '' $ac_executable_extensions; do
10297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10298 ac_cv_prog_ac_ct_AR="ar"
10299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10308 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10309 if test -n "$ac_ct_AR"; then
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10311 $as_echo "$ac_ct_AR" >&6; }
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10314 $as_echo "no" >&6; }
10317 if test "x$ac_ct_AR" = x; then
10320 case $cross_compiling:$ac_tool_warned in
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10323 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10324 ac_tool_warned=yes ;;
10329 AR="$ac_cv_prog_AR"
10332 test -z "$AR" && AR=ar
10333 test -z "$AR_FLAGS" && AR_FLAGS=cru
10345 if test -n "$ac_tool_prefix"; then
10346 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10347 set dummy ${ac_tool_prefix}strip; ac_word=$2
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10349 $as_echo_n "checking for $ac_word... " >&6; }
10350 if test "${ac_cv_prog_STRIP+set}" = set; then :
10351 $as_echo_n "(cached) " >&6
10353 if test -n "$STRIP"; then
10354 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10357 for as_dir in $PATH
10360 test -z "$as_dir" && as_dir=.
10361 for ac_exec_ext in '' $ac_executable_extensions; do
10362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10363 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10373 STRIP=$ac_cv_prog_STRIP
10374 if test -n "$STRIP"; then
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10376 $as_echo "$STRIP" >&6; }
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10379 $as_echo "no" >&6; }
10384 if test -z "$ac_cv_prog_STRIP"; then
10386 # Extract the first word of "strip", so it can be a program name with args.
10387 set dummy strip; ac_word=$2
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10389 $as_echo_n "checking for $ac_word... " >&6; }
10390 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10391 $as_echo_n "(cached) " >&6
10393 if test -n "$ac_ct_STRIP"; then
10394 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10397 for as_dir in $PATH
10400 test -z "$as_dir" && as_dir=.
10401 for ac_exec_ext in '' $ac_executable_extensions; do
10402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10403 ac_cv_prog_ac_ct_STRIP="strip"
10404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10413 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10414 if test -n "$ac_ct_STRIP"; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10416 $as_echo "$ac_ct_STRIP" >&6; }
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10419 $as_echo "no" >&6; }
10422 if test "x$ac_ct_STRIP" = x; then
10425 case $cross_compiling:$ac_tool_warned in
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10428 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10429 ac_tool_warned=yes ;;
10434 STRIP="$ac_cv_prog_STRIP"
10437 test -z "$STRIP" && STRIP=:
10444 if test -n "$ac_tool_prefix"; then
10445 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10446 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10448 $as_echo_n "checking for $ac_word... " >&6; }
10449 if test "${ac_cv_prog_RANLIB+set}" = set; then :
10450 $as_echo_n "(cached) " >&6
10452 if test -n "$RANLIB"; then
10453 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10456 for as_dir in $PATH
10459 test -z "$as_dir" && as_dir=.
10460 for ac_exec_ext in '' $ac_executable_extensions; do
10461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10462 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10472 RANLIB=$ac_cv_prog_RANLIB
10473 if test -n "$RANLIB"; then
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10475 $as_echo "$RANLIB" >&6; }
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10478 $as_echo "no" >&6; }
10483 if test -z "$ac_cv_prog_RANLIB"; then
10484 ac_ct_RANLIB=$RANLIB
10485 # Extract the first word of "ranlib", so it can be a program name with args.
10486 set dummy ranlib; ac_word=$2
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10488 $as_echo_n "checking for $ac_word... " >&6; }
10489 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10490 $as_echo_n "(cached) " >&6
10492 if test -n "$ac_ct_RANLIB"; then
10493 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10496 for as_dir in $PATH
10499 test -z "$as_dir" && as_dir=.
10500 for ac_exec_ext in '' $ac_executable_extensions; do
10501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10502 ac_cv_prog_ac_ct_RANLIB="ranlib"
10503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10512 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10513 if test -n "$ac_ct_RANLIB"; then
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10515 $as_echo "$ac_ct_RANLIB" >&6; }
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10518 $as_echo "no" >&6; }
10521 if test "x$ac_ct_RANLIB" = x; then
10524 case $cross_compiling:$ac_tool_warned in
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10528 ac_tool_warned=yes ;;
10530 RANLIB=$ac_ct_RANLIB
10533 RANLIB="$ac_cv_prog_RANLIB"
10536 test -z "$RANLIB" && RANLIB=:
10543 # Determine commands to create old-style static archives.
10544 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10545 old_postinstall_cmds='chmod 644 $oldlib'
10546 old_postuninstall_cmds=
10548 if test -n "$RANLIB"; then
10551 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10554 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10557 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10562 lock_old_archive_extraction=yes ;;
10564 lock_old_archive_extraction=no ;;
10605 # If no C compiler was specified, use CC.
10608 # If no C compiler flags were specified, use CFLAGS.
10609 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10611 # Allow CC to be a program name with arguments.
10615 # Check for command to grab the raw symbol name followed by C symbol from nm.
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10617 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10618 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
10619 $as_echo_n "(cached) " >&6
10622 # These are sane defaults that work on at least a few old systems.
10623 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10625 # Character class describing NM global symbol codes.
10626 symcode='[BCDEGRST]'
10628 # Regexp to match symbols that can be accessed directly from C.
10629 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10631 # Define system-specific variables.
10636 cygwin* | mingw* | pw32* | cegcc*)
10637 symcode='[ABCDGISTW]'
10640 if test "$host_cpu" = ia64; then
10641 symcode='[ABCDEGRST]'
10644 irix* | nonstopux*)
10645 symcode='[BCDEGRST]'
10648 symcode='[BCDEGQRST]'
10659 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10667 # If we're using GNU nm, then use its standard symbol codes.
10668 case `$NM -V 2>&1` in
10669 *GNU* | *'with BFD'*)
10670 symcode='[ABCDGIRSTW]' ;;
10673 # Transform an extracted symbol line into a proper C declaration.
10674 # Some systems (esp. on ia64) link data and code symbols differently,
10675 # so use this general approach.
10676 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10678 # Transform an extracted symbol line into symbol name and symbol address
10679 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10680 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'"
10682 # Handle CRLF in mingw tool chain
10686 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10690 # Try without a prefix underscore, then with it.
10691 for ac_symprfx in "" "_"; do
10693 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10694 symxfrm="\\1 $ac_symprfx\\2 \\2"
10696 # Write the raw and C identifiers.
10697 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10698 # Fake it for dumpbin and say T for any non-static function
10699 # and D for any global variable.
10700 # Also find C++ and __fastcall symbols from MSVC++,
10701 # which start with @ or ?.
10702 lt_cv_sys_global_symbol_pipe="$AWK '"\
10703 " {last_section=section; section=\$ 3};"\
10704 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10705 " \$ 0!~/External *\|/{next};"\
10706 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10707 " {if(hide[section]) next};"\
10708 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10709 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10710 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
10711 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10712 " ' prfx=^$ac_symprfx"
10714 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10717 # Check to see that the pipe works correctly.
10721 cat > conftest.$ac_ext <<_LT_EOF
10726 void nm_test_func(void);
10727 void nm_test_func(void){}
10731 int main(){nm_test_var='a';nm_test_func();return(0);}
10734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10735 (eval $ac_compile) 2>&5
10737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10738 test $ac_status = 0; }; then
10739 # Now try to grab the symbols.
10741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10742 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10745 test $ac_status = 0; } && test -s "$nlist"; then
10746 # Try sorting and uniquifying the output.
10747 if sort "$nlist" | uniq > "$nlist"T; then
10748 mv -f "$nlist"T "$nlist"
10753 # Make sure that we snagged all the symbols we need.
10754 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10755 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10756 cat <<_LT_EOF > conftest.$ac_ext
10762 # Now generate the symbol file.
10763 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10765 cat <<_LT_EOF >> conftest.$ac_ext
10767 /* The mapping between symbol names and symbols. */
10772 lt__PROGRAM__LTX_preloaded_symbols[] =
10774 { "@PROGRAM@", (void *) 0 },
10776 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10777 cat <<\_LT_EOF >> conftest.$ac_ext
10781 /* This works around a problem in FreeBSD linker */
10782 #ifdef FREEBSD_WORKAROUND
10783 static const void *lt_preloaded_setup() {
10784 return lt__PROGRAM__LTX_preloaded_symbols;
10792 # Now try linking the two files.
10793 mv conftest.$ac_objext conftstm.$ac_objext
10794 lt_save_LIBS="$LIBS"
10795 lt_save_CFLAGS="$CFLAGS"
10796 LIBS="conftstm.$ac_objext"
10797 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10799 (eval $ac_link) 2>&5
10801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10802 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10805 LIBS="$lt_save_LIBS"
10806 CFLAGS="$lt_save_CFLAGS"
10808 echo "cannot find nm_test_func in $nlist" >&5
10811 echo "cannot find nm_test_var in $nlist" >&5
10814 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10817 echo "$progname: failed program was:" >&5
10818 cat conftest.$ac_ext >&5
10820 rm -rf conftest* conftst*
10822 # Do not use the global_symbol_pipe unless it works.
10823 if test "$pipe_works" = yes; then
10826 lt_cv_sys_global_symbol_pipe=
10832 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10833 lt_cv_sys_global_symbol_to_cdecl=
10835 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10837 $as_echo "failed" >&6; }
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10840 $as_echo "ok" >&6; }
10864 # Check whether --enable-libtool-lock was given.
10865 if test "${enable_libtool_lock+set}" = set; then :
10866 enableval=$enable_libtool_lock;
10869 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10871 # Some flags need to be propagated to the compiler or linker for good
10875 # Find out which ABI we are using.
10876 echo 'int i;' > conftest.$ac_ext
10877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10878 (eval $ac_compile) 2>&5
10880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10881 test $ac_status = 0; }; then
10882 case `/usr/bin/file conftest.$ac_objext` in
10884 HPUX_IA64_MODE="32"
10887 HPUX_IA64_MODE="64"
10894 # Find out which ABI we are using.
10895 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10897 (eval $ac_compile) 2>&5
10899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10900 test $ac_status = 0; }; then
10901 if test "$lt_cv_prog_gnu_ld" = yes; then
10902 case `/usr/bin/file conftest.$ac_objext` in
10904 LD="${LD-ld} -melf32bsmip"
10907 LD="${LD-ld} -melf32bmipn32"
10910 LD="${LD-ld} -melf64bmip"
10914 case `/usr/bin/file conftest.$ac_objext` in
10930 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10931 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10932 # Find out which ABI we are using.
10933 echo 'int i;' > conftest.$ac_ext
10934 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10935 (eval $ac_compile) 2>&5
10937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10938 test $ac_status = 0; }; then
10939 case `/usr/bin/file conftest.o` in
10942 x86_64-*kfreebsd*-gnu)
10943 LD="${LD-ld} -m elf_i386_fbsd"
10946 LD="${LD-ld} -m elf_i386"
10948 ppc64-*linux*|powerpc64-*linux*)
10949 LD="${LD-ld} -m elf32ppclinux"
10952 LD="${LD-ld} -m elf_s390"
10955 LD="${LD-ld} -m elf32_sparc"
10961 x86_64-*kfreebsd*-gnu)
10962 LD="${LD-ld} -m elf_x86_64_fbsd"
10965 LD="${LD-ld} -m elf_x86_64"
10967 ppc*-*linux*|powerpc*-*linux*)
10968 LD="${LD-ld} -m elf64ppc"
10970 s390*-*linux*|s390*-*tpf*)
10971 LD="${LD-ld} -m elf64_s390"
10974 LD="${LD-ld} -m elf64_sparc"
10984 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10985 SAVE_CFLAGS="$CFLAGS"
10986 CFLAGS="$CFLAGS -belf"
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10988 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10989 if test "${lt_cv_cc_needs_belf+set}" = set; then :
10990 $as_echo_n "(cached) " >&6
10993 ac_cpp='$CPP $CPPFLAGS'
10994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10999 /* end confdefs.h. */
11009 if ac_fn_c_try_link "$LINENO"; then :
11010 lt_cv_cc_needs_belf=yes
11012 lt_cv_cc_needs_belf=no
11014 rm -f core conftest.err conftest.$ac_objext \
11015 conftest$ac_exeext conftest.$ac_ext
11017 ac_cpp='$CPP $CPPFLAGS'
11018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11024 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11025 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11026 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11027 CFLAGS="$SAVE_CFLAGS"
11031 # Find out which ABI we are using.
11032 echo 'int i;' > conftest.$ac_ext
11033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11034 (eval $ac_compile) 2>&5
11036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11037 test $ac_status = 0; }; then
11038 case `/usr/bin/file conftest.o` in
11040 case $lt_cv_prog_gnu_ld in
11041 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11043 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11055 need_locks="$enable_libtool_lock"
11059 rhapsody* | darwin*)
11060 if test -n "$ac_tool_prefix"; then
11061 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11062 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11064 $as_echo_n "checking for $ac_word... " >&6; }
11065 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
11066 $as_echo_n "(cached) " >&6
11068 if test -n "$DSYMUTIL"; then
11069 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11072 for as_dir in $PATH
11075 test -z "$as_dir" && as_dir=.
11076 for ac_exec_ext in '' $ac_executable_extensions; do
11077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11078 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11088 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11089 if test -n "$DSYMUTIL"; then
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11091 $as_echo "$DSYMUTIL" >&6; }
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094 $as_echo "no" >&6; }
11099 if test -z "$ac_cv_prog_DSYMUTIL"; then
11100 ac_ct_DSYMUTIL=$DSYMUTIL
11101 # Extract the first word of "dsymutil", so it can be a program name with args.
11102 set dummy dsymutil; ac_word=$2
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11104 $as_echo_n "checking for $ac_word... " >&6; }
11105 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
11106 $as_echo_n "(cached) " >&6
11108 if test -n "$ac_ct_DSYMUTIL"; then
11109 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11112 for as_dir in $PATH
11115 test -z "$as_dir" && as_dir=.
11116 for ac_exec_ext in '' $ac_executable_extensions; do
11117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11118 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11128 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11129 if test -n "$ac_ct_DSYMUTIL"; then
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11131 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11134 $as_echo "no" >&6; }
11137 if test "x$ac_ct_DSYMUTIL" = x; then
11140 case $cross_compiling:$ac_tool_warned in
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11144 ac_tool_warned=yes ;;
11146 DSYMUTIL=$ac_ct_DSYMUTIL
11149 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11152 if test -n "$ac_tool_prefix"; then
11153 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11154 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11156 $as_echo_n "checking for $ac_word... " >&6; }
11157 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
11158 $as_echo_n "(cached) " >&6
11160 if test -n "$NMEDIT"; then
11161 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11164 for as_dir in $PATH
11167 test -z "$as_dir" && as_dir=.
11168 for ac_exec_ext in '' $ac_executable_extensions; do
11169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11170 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11180 NMEDIT=$ac_cv_prog_NMEDIT
11181 if test -n "$NMEDIT"; then
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11183 $as_echo "$NMEDIT" >&6; }
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11186 $as_echo "no" >&6; }
11191 if test -z "$ac_cv_prog_NMEDIT"; then
11192 ac_ct_NMEDIT=$NMEDIT
11193 # Extract the first word of "nmedit", so it can be a program name with args.
11194 set dummy nmedit; ac_word=$2
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11196 $as_echo_n "checking for $ac_word... " >&6; }
11197 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
11198 $as_echo_n "(cached) " >&6
11200 if test -n "$ac_ct_NMEDIT"; then
11201 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11204 for as_dir in $PATH
11207 test -z "$as_dir" && as_dir=.
11208 for ac_exec_ext in '' $ac_executable_extensions; do
11209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11210 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11220 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11221 if test -n "$ac_ct_NMEDIT"; then
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11223 $as_echo "$ac_ct_NMEDIT" >&6; }
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11226 $as_echo "no" >&6; }
11229 if test "x$ac_ct_NMEDIT" = x; then
11232 case $cross_compiling:$ac_tool_warned in
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11236 ac_tool_warned=yes ;;
11238 NMEDIT=$ac_ct_NMEDIT
11241 NMEDIT="$ac_cv_prog_NMEDIT"
11244 if test -n "$ac_tool_prefix"; then
11245 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11246 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11248 $as_echo_n "checking for $ac_word... " >&6; }
11249 if test "${ac_cv_prog_LIPO+set}" = set; then :
11250 $as_echo_n "(cached) " >&6
11252 if test -n "$LIPO"; then
11253 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11256 for as_dir in $PATH
11259 test -z "$as_dir" && as_dir=.
11260 for ac_exec_ext in '' $ac_executable_extensions; do
11261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11262 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11272 LIPO=$ac_cv_prog_LIPO
11273 if test -n "$LIPO"; then
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11275 $as_echo "$LIPO" >&6; }
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11278 $as_echo "no" >&6; }
11283 if test -z "$ac_cv_prog_LIPO"; then
11285 # Extract the first word of "lipo", so it can be a program name with args.
11286 set dummy lipo; ac_word=$2
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11288 $as_echo_n "checking for $ac_word... " >&6; }
11289 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
11290 $as_echo_n "(cached) " >&6
11292 if test -n "$ac_ct_LIPO"; then
11293 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11296 for as_dir in $PATH
11299 test -z "$as_dir" && as_dir=.
11300 for ac_exec_ext in '' $ac_executable_extensions; do
11301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11302 ac_cv_prog_ac_ct_LIPO="lipo"
11303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11312 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11313 if test -n "$ac_ct_LIPO"; then
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11315 $as_echo "$ac_ct_LIPO" >&6; }
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11318 $as_echo "no" >&6; }
11321 if test "x$ac_ct_LIPO" = x; then
11324 case $cross_compiling:$ac_tool_warned in
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11328 ac_tool_warned=yes ;;
11333 LIPO="$ac_cv_prog_LIPO"
11336 if test -n "$ac_tool_prefix"; then
11337 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11338 set dummy ${ac_tool_prefix}otool; ac_word=$2
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11340 $as_echo_n "checking for $ac_word... " >&6; }
11341 if test "${ac_cv_prog_OTOOL+set}" = set; then :
11342 $as_echo_n "(cached) " >&6
11344 if test -n "$OTOOL"; then
11345 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11348 for as_dir in $PATH
11351 test -z "$as_dir" && as_dir=.
11352 for ac_exec_ext in '' $ac_executable_extensions; do
11353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11354 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11364 OTOOL=$ac_cv_prog_OTOOL
11365 if test -n "$OTOOL"; then
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11367 $as_echo "$OTOOL" >&6; }
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11370 $as_echo "no" >&6; }
11375 if test -z "$ac_cv_prog_OTOOL"; then
11377 # Extract the first word of "otool", so it can be a program name with args.
11378 set dummy otool; ac_word=$2
11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11380 $as_echo_n "checking for $ac_word... " >&6; }
11381 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
11382 $as_echo_n "(cached) " >&6
11384 if test -n "$ac_ct_OTOOL"; then
11385 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11388 for as_dir in $PATH
11391 test -z "$as_dir" && as_dir=.
11392 for ac_exec_ext in '' $ac_executable_extensions; do
11393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11394 ac_cv_prog_ac_ct_OTOOL="otool"
11395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11404 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11405 if test -n "$ac_ct_OTOOL"; then
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11407 $as_echo "$ac_ct_OTOOL" >&6; }
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410 $as_echo "no" >&6; }
11413 if test "x$ac_ct_OTOOL" = x; then
11416 case $cross_compiling:$ac_tool_warned in
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11420 ac_tool_warned=yes ;;
11425 OTOOL="$ac_cv_prog_OTOOL"
11428 if test -n "$ac_tool_prefix"; then
11429 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11430 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11432 $as_echo_n "checking for $ac_word... " >&6; }
11433 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
11434 $as_echo_n "(cached) " >&6
11436 if test -n "$OTOOL64"; then
11437 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11440 for as_dir in $PATH
11443 test -z "$as_dir" && as_dir=.
11444 for ac_exec_ext in '' $ac_executable_extensions; do
11445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11446 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11456 OTOOL64=$ac_cv_prog_OTOOL64
11457 if test -n "$OTOOL64"; then
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11459 $as_echo "$OTOOL64" >&6; }
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11462 $as_echo "no" >&6; }
11467 if test -z "$ac_cv_prog_OTOOL64"; then
11468 ac_ct_OTOOL64=$OTOOL64
11469 # Extract the first word of "otool64", so it can be a program name with args.
11470 set dummy otool64; ac_word=$2
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11472 $as_echo_n "checking for $ac_word... " >&6; }
11473 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
11474 $as_echo_n "(cached) " >&6
11476 if test -n "$ac_ct_OTOOL64"; then
11477 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11480 for as_dir in $PATH
11483 test -z "$as_dir" && as_dir=.
11484 for ac_exec_ext in '' $ac_executable_extensions; do
11485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11486 ac_cv_prog_ac_ct_OTOOL64="otool64"
11487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11496 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11497 if test -n "$ac_ct_OTOOL64"; then
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11499 $as_echo "$ac_ct_OTOOL64" >&6; }
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502 $as_echo "no" >&6; }
11505 if test "x$ac_ct_OTOOL64" = x; then
11508 case $cross_compiling:$ac_tool_warned in
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11512 ac_tool_warned=yes ;;
11514 OTOOL64=$ac_ct_OTOOL64
11517 OTOOL64="$ac_cv_prog_OTOOL64"
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11547 $as_echo_n "checking for -single_module linker flag... " >&6; }
11548 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
11549 $as_echo_n "(cached) " >&6
11551 lt_cv_apple_cc_single_mod=no
11552 if test -z "${LT_MULTI_MODULE}"; then
11553 # By default we will add the -single_module flag. You can override
11554 # by either setting the environment variable LT_MULTI_MODULE
11555 # non-empty at configure time, or by adding -multi_module to the
11557 rm -rf libconftest.dylib*
11558 echo "int foo(void){return 1;}" > conftest.c
11559 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11560 -dynamiclib -Wl,-single_module conftest.c" >&5
11561 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11562 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11564 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11565 lt_cv_apple_cc_single_mod=yes
11567 cat conftest.err >&5
11569 rm -rf libconftest.dylib*
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11574 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11576 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11577 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
11578 $as_echo_n "(cached) " >&6
11580 lt_cv_ld_exported_symbols_list=no
11581 save_LDFLAGS=$LDFLAGS
11582 echo "_main" > conftest.sym
11583 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11585 /* end confdefs.h. */
11595 if ac_fn_c_try_link "$LINENO"; then :
11596 lt_cv_ld_exported_symbols_list=yes
11598 lt_cv_ld_exported_symbols_list=no
11600 rm -f core conftest.err conftest.$ac_objext \
11601 conftest$ac_exeext conftest.$ac_ext
11602 LDFLAGS="$save_LDFLAGS"
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11606 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11608 $as_echo_n "checking for -force_load linker flag... " >&6; }
11609 if test "${lt_cv_ld_force_load+set}" = set; then :
11610 $as_echo_n "(cached) " >&6
11612 lt_cv_ld_force_load=no
11613 cat > conftest.c << _LT_EOF
11614 int forced_loaded() { return 2;}
11616 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11617 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11618 echo "$AR cru libconftest.a conftest.o" >&5
11619 $AR cru libconftest.a conftest.o 2>&5
11620 echo "$RANLIB libconftest.a" >&5
11621 $RANLIB libconftest.a 2>&5
11622 cat > conftest.c << _LT_EOF
11623 int main() { return 0;}
11625 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11626 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11628 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11629 lt_cv_ld_force_load=yes
11631 cat conftest.err >&5
11633 rm -f conftest.err libconftest.a conftest conftest.c
11634 rm -rf conftest.dSYM
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11638 $as_echo "$lt_cv_ld_force_load" >&6; }
11640 rhapsody* | darwin1.[012])
11641 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11643 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11644 darwin*) # darwin 5.x on
11645 # if running on 10.5 or later, the deployment target defaults
11646 # to the OS version, if on x86, and 10.4, the deployment
11647 # target defaults to 10.4. Don't you love it?
11648 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11649 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11650 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11652 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11654 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11658 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11659 _lt_dar_single_mod='$single_module'
11661 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11662 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11664 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11666 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
11667 _lt_dsymutil='~$DSYMUTIL $lib || :'
11674 for ac_header in dlfcn.h
11676 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11678 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11679 cat >>confdefs.h <<_ACEOF
11680 #define HAVE_DLFCN_H 1
11693 enable_win32_dll=yes
11696 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11697 if test -n "$ac_tool_prefix"; then
11698 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11699 set dummy ${ac_tool_prefix}as; ac_word=$2
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11701 $as_echo_n "checking for $ac_word... " >&6; }
11702 if test "${ac_cv_prog_AS+set}" = set; then :
11703 $as_echo_n "(cached) " >&6
11705 if test -n "$AS"; then
11706 ac_cv_prog_AS="$AS" # Let the user override the test.
11708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709 for as_dir in $PATH
11712 test -z "$as_dir" && as_dir=.
11713 for ac_exec_ext in '' $ac_executable_extensions; do
11714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11715 ac_cv_prog_AS="${ac_tool_prefix}as"
11716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11726 if test -n "$AS"; then
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11728 $as_echo "$AS" >&6; }
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731 $as_echo "no" >&6; }
11736 if test -z "$ac_cv_prog_AS"; then
11738 # Extract the first word of "as", so it can be a program name with args.
11739 set dummy as; ac_word=$2
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11741 $as_echo_n "checking for $ac_word... " >&6; }
11742 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
11743 $as_echo_n "(cached) " >&6
11745 if test -n "$ac_ct_AS"; then
11746 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11749 for as_dir in $PATH
11752 test -z "$as_dir" && as_dir=.
11753 for ac_exec_ext in '' $ac_executable_extensions; do
11754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11755 ac_cv_prog_ac_ct_AS="as"
11756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11765 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11766 if test -n "$ac_ct_AS"; then
11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11768 $as_echo "$ac_ct_AS" >&6; }
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11771 $as_echo "no" >&6; }
11774 if test "x$ac_ct_AS" = x; then
11777 case $cross_compiling:$ac_tool_warned in
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11781 ac_tool_warned=yes ;;
11786 AS="$ac_cv_prog_AS"
11789 if test -n "$ac_tool_prefix"; then
11790 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11791 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11793 $as_echo_n "checking for $ac_word... " >&6; }
11794 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
11795 $as_echo_n "(cached) " >&6
11797 if test -n "$DLLTOOL"; then
11798 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11801 for as_dir in $PATH
11804 test -z "$as_dir" && as_dir=.
11805 for ac_exec_ext in '' $ac_executable_extensions; do
11806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11807 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11817 DLLTOOL=$ac_cv_prog_DLLTOOL
11818 if test -n "$DLLTOOL"; then
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11820 $as_echo "$DLLTOOL" >&6; }
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11823 $as_echo "no" >&6; }
11828 if test -z "$ac_cv_prog_DLLTOOL"; then
11829 ac_ct_DLLTOOL=$DLLTOOL
11830 # Extract the first word of "dlltool", so it can be a program name with args.
11831 set dummy dlltool; ac_word=$2
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11833 $as_echo_n "checking for $ac_word... " >&6; }
11834 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
11835 $as_echo_n "(cached) " >&6
11837 if test -n "$ac_ct_DLLTOOL"; then
11838 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11841 for as_dir in $PATH
11844 test -z "$as_dir" && as_dir=.
11845 for ac_exec_ext in '' $ac_executable_extensions; do
11846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11847 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11857 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11858 if test -n "$ac_ct_DLLTOOL"; then
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11860 $as_echo "$ac_ct_DLLTOOL" >&6; }
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11863 $as_echo "no" >&6; }
11866 if test "x$ac_ct_DLLTOOL" = x; then
11869 case $cross_compiling:$ac_tool_warned in
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11873 ac_tool_warned=yes ;;
11875 DLLTOOL=$ac_ct_DLLTOOL
11878 DLLTOOL="$ac_cv_prog_DLLTOOL"
11881 if test -n "$ac_tool_prefix"; then
11882 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11883 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11885 $as_echo_n "checking for $ac_word... " >&6; }
11886 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11887 $as_echo_n "(cached) " >&6
11889 if test -n "$OBJDUMP"; then
11890 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11893 for as_dir in $PATH
11896 test -z "$as_dir" && as_dir=.
11897 for ac_exec_ext in '' $ac_executable_extensions; do
11898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11899 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11909 OBJDUMP=$ac_cv_prog_OBJDUMP
11910 if test -n "$OBJDUMP"; then
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11912 $as_echo "$OBJDUMP" >&6; }
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 $as_echo "no" >&6; }
11920 if test -z "$ac_cv_prog_OBJDUMP"; then
11921 ac_ct_OBJDUMP=$OBJDUMP
11922 # Extract the first word of "objdump", so it can be a program name with args.
11923 set dummy objdump; ac_word=$2
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11925 $as_echo_n "checking for $ac_word... " >&6; }
11926 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11927 $as_echo_n "(cached) " >&6
11929 if test -n "$ac_ct_OBJDUMP"; then
11930 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11933 for as_dir in $PATH
11936 test -z "$as_dir" && as_dir=.
11937 for ac_exec_ext in '' $ac_executable_extensions; do
11938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11939 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11949 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11950 if test -n "$ac_ct_OBJDUMP"; then
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11952 $as_echo "$ac_ct_OBJDUMP" >&6; }
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11955 $as_echo "no" >&6; }
11958 if test "x$ac_ct_OBJDUMP" = x; then
11961 case $cross_compiling:$ac_tool_warned in
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11964 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11965 ac_tool_warned=yes ;;
11967 OBJDUMP=$ac_ct_OBJDUMP
11970 OBJDUMP="$ac_cv_prog_OBJDUMP"
11976 test -z "$AS" && AS=as
11982 test -z "$DLLTOOL" && DLLTOOL=dlltool
11988 test -z "$OBJDUMP" && OBJDUMP=objdump
11998 # Check whether --enable-shared was given.
11999 if test "${enable_shared+set}" = set; then :
12000 enableval=$enable_shared; p=${PACKAGE-default}
12002 yes) enable_shared=yes ;;
12003 no) enable_shared=no ;;
12006 # Look at the argument we got. We use all the common list separators.
12007 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12008 for pkg in $enableval; do
12010 if test "X$pkg" = "X$p"; then
12029 # Check whether --enable-static was given.
12030 if test "${enable_static+set}" = set; then :
12031 enableval=$enable_static; p=${PACKAGE-default}
12033 yes) enable_static=yes ;;
12034 no) enable_static=no ;;
12037 # Look at the argument we got. We use all the common list separators.
12038 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12039 for pkg in $enableval; do
12041 if test "X$pkg" = "X$p"; then
12061 # Check whether --with-pic was given.
12062 if test "${with_pic+set}" = set; then :
12063 withval=$with_pic; pic_mode="$withval"
12069 test -z "$pic_mode" && pic_mode=default
12077 # Check whether --enable-fast-install was given.
12078 if test "${enable_fast_install+set}" = set; then :
12079 enableval=$enable_fast_install; p=${PACKAGE-default}
12081 yes) enable_fast_install=yes ;;
12082 no) enable_fast_install=no ;;
12084 enable_fast_install=no
12085 # Look at the argument we got. We use all the common list separators.
12086 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12087 for pkg in $enableval; do
12089 if test "X$pkg" = "X$p"; then
12090 enable_fast_install=yes
12097 enable_fast_install=yes
12110 # This can be used to rebuild libtool when needed
12111 LIBTOOL_DEPS="$ltmain"
12113 # Always use our own libtool.
12114 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12141 test -z "$LN_S" && LN_S="ln -s"
12156 if test -n "${ZSH_VERSION+set}" ; then
12157 setopt NO_GLOB_SUBST
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12161 $as_echo_n "checking for objdir... " >&6; }
12162 if test "${lt_cv_objdir+set}" = set; then :
12163 $as_echo_n "(cached) " >&6
12165 rm -f .libs 2>/dev/null
12166 mkdir .libs 2>/dev/null
12167 if test -d .libs; then
12170 # MS-DOS does not allow filenames that begin with a dot.
12173 rmdir .libs 2>/dev/null
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12176 $as_echo "$lt_cv_objdir" >&6; }
12177 objdir=$lt_cv_objdir
12183 cat >>confdefs.h <<_ACEOF
12184 #define LT_OBJDIR "$lt_cv_objdir/"
12192 # AIX sometimes has problems with the GCC collect2 program. For some
12193 # reason, if we set the COLLECT_NAMES environment variable, the problems
12194 # vanish in a puff of smoke.
12195 if test "X${COLLECT_NAMES+set}" != Xset; then
12197 export COLLECT_NAMES
12202 # Global variables:
12204 can_build_shared=yes
12206 # All known linkers require a `.a' archive for static linking (except MSVC,
12207 # which needs '.lib').
12210 with_gnu_ld="$lt_cv_prog_gnu_ld"
12213 old_CFLAGS="$CFLAGS"
12215 # Set sane defaults for various variables
12216 test -z "$CC" && CC=cc
12217 test -z "$LTCC" && LTCC=$CC
12218 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12219 test -z "$LD" && LD=ld
12220 test -z "$ac_objext" && ac_objext=o
12222 for cc_temp in $compiler""; do
12224 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12225 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12230 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12233 # Only perform the check for file, if the check method requires it
12234 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12235 case $deplibs_check_method in
12237 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12239 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12240 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12241 $as_echo_n "(cached) " >&6
12245 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12248 lt_save_MAGIC_CMD="$MAGIC_CMD"
12249 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12250 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12251 for ac_dir in $ac_dummy; do
12253 test -z "$ac_dir" && ac_dir=.
12254 if test -f $ac_dir/${ac_tool_prefix}file; then
12255 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12256 if test -n "$file_magic_test_file"; then
12257 case $deplibs_check_method in
12259 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12260 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12261 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12262 $EGREP "$file_magic_regex" > /dev/null; then
12267 *** Warning: the command libtool uses to detect shared libraries,
12268 *** $file_magic_cmd, produces output that libtool cannot recognize.
12269 *** The result is that libtool may fail to recognize shared libraries
12270 *** as such. This will affect the creation of libtool libraries that
12271 *** depend on shared libraries, but programs linked with such libtool
12272 *** libraries will work regardless of this problem. Nevertheless, you
12273 *** may want to report the problem to your system manager and/or to
12274 *** bug-libtool@gnu.org
12284 MAGIC_CMD="$lt_save_MAGIC_CMD"
12289 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12290 if test -n "$MAGIC_CMD"; then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12292 $as_echo "$MAGIC_CMD" >&6; }
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295 $as_echo "no" >&6; }
12302 if test -z "$lt_cv_path_MAGIC_CMD"; then
12303 if test -n "$ac_tool_prefix"; then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12305 $as_echo_n "checking for file... " >&6; }
12306 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12307 $as_echo_n "(cached) " >&6
12311 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12314 lt_save_MAGIC_CMD="$MAGIC_CMD"
12315 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12316 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12317 for ac_dir in $ac_dummy; do
12319 test -z "$ac_dir" && ac_dir=.
12320 if test -f $ac_dir/file; then
12321 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12322 if test -n "$file_magic_test_file"; then
12323 case $deplibs_check_method in
12325 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12326 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12327 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12328 $EGREP "$file_magic_regex" > /dev/null; then
12333 *** Warning: the command libtool uses to detect shared libraries,
12334 *** $file_magic_cmd, produces output that libtool cannot recognize.
12335 *** The result is that libtool may fail to recognize shared libraries
12336 *** as such. This will affect the creation of libtool libraries that
12337 *** depend on shared libraries, but programs linked with such libtool
12338 *** libraries will work regardless of this problem. Nevertheless, you
12339 *** may want to report the problem to your system manager and/or to
12340 *** bug-libtool@gnu.org
12350 MAGIC_CMD="$lt_save_MAGIC_CMD"
12355 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12356 if test -n "$MAGIC_CMD"; then
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12358 $as_echo "$MAGIC_CMD" >&6; }
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12361 $as_echo "no" >&6; }
12374 # Use C for the default configuration in the libtool script
12378 ac_cpp='$CPP $CPPFLAGS'
12379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12384 # Source file extension for C test sources.
12387 # Object file extension for compiled C test sources.
12391 # Code to be used in simple compile tests
12392 lt_simple_compile_test_code="int some_variable = 0;"
12394 # Code to be used in simple link tests
12395 lt_simple_link_test_code='int main(){return(0);}'
12403 # If no C compiler was specified, use CC.
12406 # If no C compiler flags were specified, use CFLAGS.
12407 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12409 # Allow CC to be a program name with arguments.
12412 # Save the default compiler, since it gets overwritten when the other
12413 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12414 compiler_DEFAULT=$CC
12416 # save warnings/boilerplate of simple test code
12417 ac_outfile=conftest.$ac_objext
12418 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12419 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12420 _lt_compiler_boilerplate=`cat conftest.err`
12423 ac_outfile=conftest.$ac_objext
12424 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12425 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12426 _lt_linker_boilerplate=`cat conftest.err`
12431 ## There is no encapsulation within the following macros, do not change
12432 ## the running order or otherwise move them around unless you know exactly
12433 ## what you are doing...
12434 if test -n "$compiler"; then
12436 lt_prog_compiler_no_builtin_flag=
12438 if test "$GCC" = yes; then
12439 case $cc_basename in
12441 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12443 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12447 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12448 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
12449 $as_echo_n "(cached) " >&6
12451 lt_cv_prog_compiler_rtti_exceptions=no
12452 ac_outfile=conftest.$ac_objext
12453 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12454 lt_compiler_flag="-fno-rtti -fno-exceptions"
12455 # Insert the option either (1) after the last *FLAGS variable, or
12456 # (2) before a word containing "conftest.", or (3) at the end.
12457 # Note that $ac_compile itself does not contain backslashes and begins
12458 # with a dollar sign (not a hyphen), so the echo should work correctly.
12459 # The option is referenced via a variable to avoid confusing sed.
12460 lt_compile=`echo "$ac_compile" | $SED \
12461 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12462 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12463 -e 's:$: $lt_compiler_flag:'`
12464 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12465 (eval "$lt_compile" 2>conftest.err)
12467 cat conftest.err >&5
12468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12469 if (exit $ac_status) && test -s "$ac_outfile"; then
12470 # The compiler can only warn and ignore the option if not recognized
12471 # So say no if there are warnings other than the usual output.
12472 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12474 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12475 lt_cv_prog_compiler_rtti_exceptions=yes
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12482 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12484 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12485 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12497 lt_prog_compiler_wl=
12498 lt_prog_compiler_pic=
12499 lt_prog_compiler_static=
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12502 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12504 if test "$GCC" = yes; then
12505 lt_prog_compiler_wl='-Wl,'
12506 lt_prog_compiler_static='-static'
12510 # All AIX code is PIC.
12511 if test "$host_cpu" = ia64; then
12512 # AIX 5 now supports IA64 processor
12513 lt_prog_compiler_static='-Bstatic'
12520 # see comment about AmigaOS4 .so support
12521 lt_prog_compiler_pic='-fPIC'
12524 # FIXME: we need at least 68020 code to build shared libraries, but
12525 # adding the `-m68020' flag to GCC prevents building anything better,
12527 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12532 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12533 # PIC is the default for these OSes.
12536 mingw* | cygwin* | pw32* | os2* | cegcc*)
12537 # This hack is so that the source file can tell whether it is being
12538 # built for inclusion in a dll (and should export symbols for example).
12539 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12540 # (--disable-auto-import) libraries
12541 lt_prog_compiler_pic='-DDLL_EXPORT'
12544 darwin* | rhapsody*)
12545 # PIC is the default on this platform
12546 # Common symbols not allowed in MH_DYLIB files
12547 lt_prog_compiler_pic='-fno-common'
12551 # PIC is the default for Haiku.
12552 # The "-static" flag exists, but is broken.
12553 lt_prog_compiler_static=
12557 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12558 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12559 # sets the default TLS model and affects inlining.
12565 lt_prog_compiler_pic='-fPIC'
12571 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12572 # Instead, we relocate shared libraries at runtime.
12576 # Just because we use GCC doesn't mean we suddenly get shared libraries
12577 # on systems that don't support them.
12578 lt_prog_compiler_can_build_shared=no
12583 # QNX uses GNU C++, but need to define -shared option too, otherwise
12584 # it will coredump.
12585 lt_prog_compiler_pic='-fPIC -shared'
12589 if test -d /usr/nec; then
12590 lt_prog_compiler_pic=-Kconform_pic
12595 lt_prog_compiler_pic='-fPIC'
12599 case $cc_basename in
12600 nvcc*) # Cuda Compiler Driver 2.2
12601 lt_prog_compiler_wl='-Xlinker '
12602 lt_prog_compiler_pic='-Xcompiler -fPIC'
12606 # PORTME Check for flag to pass linker flags through the system compiler.
12609 lt_prog_compiler_wl='-Wl,'
12610 if test "$host_cpu" = ia64; then
12611 # AIX 5 now supports IA64 processor
12612 lt_prog_compiler_static='-Bstatic'
12614 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12618 mingw* | cygwin* | pw32* | os2* | cegcc*)
12619 # This hack is so that the source file can tell whether it is being
12620 # built for inclusion in a dll (and should export symbols for example).
12621 lt_prog_compiler_pic='-DDLL_EXPORT'
12624 hpux9* | hpux10* | hpux11*)
12625 lt_prog_compiler_wl='-Wl,'
12626 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12627 # not for PA HP-UX.
12633 lt_prog_compiler_pic='+Z'
12636 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12637 lt_prog_compiler_static='${wl}-a ${wl}archive'
12640 irix5* | irix6* | nonstopux*)
12641 lt_prog_compiler_wl='-Wl,'
12642 # PIC (with -KPIC) is the default.
12643 lt_prog_compiler_static='-non_shared'
12646 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12647 case $cc_basename in
12648 # old Intel for x86_64 which still supported -KPIC.
12650 lt_prog_compiler_wl='-Wl,'
12651 lt_prog_compiler_pic='-KPIC'
12652 lt_prog_compiler_static='-static'
12654 # icc used to be incompatible with GCC.
12655 # ICC 10 doesn't accept -KPIC any more.
12657 lt_prog_compiler_wl='-Wl,'
12658 lt_prog_compiler_pic='-fPIC'
12659 lt_prog_compiler_static='-static'
12661 # Lahey Fortran 8.1.
12663 lt_prog_compiler_wl='-Wl,'
12664 lt_prog_compiler_pic='--shared'
12665 lt_prog_compiler_static='--static'
12667 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12668 # Portland Group compilers (*not* the Pentium gcc compiler,
12669 # which looks to be a dead project)
12670 lt_prog_compiler_wl='-Wl,'
12671 lt_prog_compiler_pic='-fpic'
12672 lt_prog_compiler_static='-Bstatic'
12675 lt_prog_compiler_wl='-Wl,'
12676 # All Alpha code is PIC.
12677 lt_prog_compiler_static='-non_shared'
12679 xl* | bgxl* | bgf* | mpixl*)
12680 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12681 lt_prog_compiler_wl='-Wl,'
12682 lt_prog_compiler_pic='-qpic'
12683 lt_prog_compiler_static='-qstaticlink'
12686 case `$CC -V 2>&1 | sed 5q` in
12687 *Sun\ F* | *Sun*Fortran*)
12688 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12689 lt_prog_compiler_pic='-KPIC'
12690 lt_prog_compiler_static='-Bstatic'
12691 lt_prog_compiler_wl=''
12695 lt_prog_compiler_pic='-KPIC'
12696 lt_prog_compiler_static='-Bstatic'
12697 lt_prog_compiler_wl='-Wl,'
12705 lt_prog_compiler_pic='-KPIC'
12706 lt_prog_compiler_static='-Bstatic'
12710 # QNX uses GNU C++, but need to define -shared option too, otherwise
12711 # it will coredump.
12712 lt_prog_compiler_pic='-fPIC -shared'
12715 osf3* | osf4* | osf5*)
12716 lt_prog_compiler_wl='-Wl,'
12717 # All OSF/1 code is PIC.
12718 lt_prog_compiler_static='-non_shared'
12722 lt_prog_compiler_static='-non_shared'
12726 lt_prog_compiler_pic='-KPIC'
12727 lt_prog_compiler_static='-Bstatic'
12728 case $cc_basename in
12729 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12730 lt_prog_compiler_wl='-Qoption ld ';;
12732 lt_prog_compiler_wl='-Wl,';;
12737 lt_prog_compiler_wl='-Qoption ld '
12738 lt_prog_compiler_pic='-PIC'
12739 lt_prog_compiler_static='-Bstatic'
12742 sysv4 | sysv4.2uw2* | sysv4.3*)
12743 lt_prog_compiler_wl='-Wl,'
12744 lt_prog_compiler_pic='-KPIC'
12745 lt_prog_compiler_static='-Bstatic'
12749 if test -d /usr/nec ;then
12750 lt_prog_compiler_pic='-Kconform_pic'
12751 lt_prog_compiler_static='-Bstatic'
12755 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12756 lt_prog_compiler_wl='-Wl,'
12757 lt_prog_compiler_pic='-KPIC'
12758 lt_prog_compiler_static='-Bstatic'
12762 lt_prog_compiler_wl='-Wl,'
12763 lt_prog_compiler_can_build_shared=no
12767 lt_prog_compiler_pic='-pic'
12768 lt_prog_compiler_static='-Bstatic'
12772 lt_prog_compiler_can_build_shared=no
12778 # For platforms which do not support PIC, -DPIC is meaningless:
12780 lt_prog_compiler_pic=
12783 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
12787 $as_echo "$lt_prog_compiler_pic" >&6; }
12795 # Check to make sure the PIC flag actually works.
12797 if test -n "$lt_prog_compiler_pic"; then
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12799 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12800 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
12801 $as_echo_n "(cached) " >&6
12803 lt_cv_prog_compiler_pic_works=no
12804 ac_outfile=conftest.$ac_objext
12805 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12806 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12807 # Insert the option either (1) after the last *FLAGS variable, or
12808 # (2) before a word containing "conftest.", or (3) at the end.
12809 # Note that $ac_compile itself does not contain backslashes and begins
12810 # with a dollar sign (not a hyphen), so the echo should work correctly.
12811 # The option is referenced via a variable to avoid confusing sed.
12812 lt_compile=`echo "$ac_compile" | $SED \
12813 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12815 -e 's:$: $lt_compiler_flag:'`
12816 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12817 (eval "$lt_compile" 2>conftest.err)
12819 cat conftest.err >&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 if (exit $ac_status) && test -s "$ac_outfile"; then
12822 # The compiler can only warn and ignore the option if not recognized
12823 # So say no if there are warnings other than the usual output.
12824 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12826 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12827 lt_cv_prog_compiler_pic_works=yes
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12834 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12836 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12837 case $lt_prog_compiler_pic in
12839 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12842 lt_prog_compiler_pic=
12843 lt_prog_compiler_can_build_shared=no
12854 # Check to make sure the static flag actually works.
12856 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12858 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12859 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
12860 $as_echo_n "(cached) " >&6
12862 lt_cv_prog_compiler_static_works=no
12863 save_LDFLAGS="$LDFLAGS"
12864 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12865 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12866 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12867 # The linker can only warn and ignore the option if not recognized
12868 # So say no if there are warnings
12869 if test -s conftest.err; then
12870 # Append any errors to the config.log.
12871 cat conftest.err 1>&5
12872 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12874 if diff conftest.exp conftest.er2 >/dev/null; then
12875 lt_cv_prog_compiler_static_works=yes
12878 lt_cv_prog_compiler_static_works=yes
12882 LDFLAGS="$save_LDFLAGS"
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12886 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12888 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12891 lt_prog_compiler_static=
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12901 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12902 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12903 $as_echo_n "(cached) " >&6
12905 lt_cv_prog_compiler_c_o=no
12906 $RM -r conftest 2>/dev/null
12910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12912 lt_compiler_flag="-o out/conftest2.$ac_objext"
12913 # Insert the option either (1) after the last *FLAGS variable, or
12914 # (2) before a word containing "conftest.", or (3) at the end.
12915 # Note that $ac_compile itself does not contain backslashes and begins
12916 # with a dollar sign (not a hyphen), so the echo should work correctly.
12917 lt_compile=`echo "$ac_compile" | $SED \
12918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12920 -e 's:$: $lt_compiler_flag:'`
12921 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12922 (eval "$lt_compile" 2>out/conftest.err)
12924 cat out/conftest.err >&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12928 # The compiler can only warn and ignore the option if not recognized
12929 # So say no if there are warnings
12930 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12931 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12932 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12933 lt_cv_prog_compiler_c_o=yes
12938 # SGI C++ compiler will create directory out/ii_files/ for
12939 # template instantiation
12940 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12941 $RM out/* && rmdir out
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12948 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12956 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12957 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12958 $as_echo_n "(cached) " >&6
12960 lt_cv_prog_compiler_c_o=no
12961 $RM -r conftest 2>/dev/null
12965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12967 lt_compiler_flag="-o out/conftest2.$ac_objext"
12968 # Insert the option either (1) after the last *FLAGS variable, or
12969 # (2) before a word containing "conftest.", or (3) at the end.
12970 # Note that $ac_compile itself does not contain backslashes and begins
12971 # with a dollar sign (not a hyphen), so the echo should work correctly.
12972 lt_compile=`echo "$ac_compile" | $SED \
12973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12975 -e 's:$: $lt_compiler_flag:'`
12976 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12977 (eval "$lt_compile" 2>out/conftest.err)
12979 cat out/conftest.err >&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12983 # The compiler can only warn and ignore the option if not recognized
12984 # So say no if there are warnings
12985 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12986 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12987 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12988 lt_cv_prog_compiler_c_o=yes
12993 # SGI C++ compiler will create directory out/ii_files/ for
12994 # template instantiation
12995 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12996 $RM out/* && rmdir out
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13003 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13008 hard_links="nottested"
13009 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13010 # do not overwrite the value of need_locks provided by the user
13011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13012 $as_echo_n "checking if we can lock with hard links... " >&6; }
13015 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13017 ln conftest.a conftest.b 2>&5 || hard_links=no
13018 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13020 $as_echo "$hard_links" >&6; }
13021 if test "$hard_links" = no; then
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13023 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13036 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13039 allow_undefined_flag=
13040 always_export_symbols=no
13042 archive_expsym_cmds=
13043 compiler_needs_object=no
13044 enable_shared_with_static_runtimes=no
13045 export_dynamic_flag_spec=
13046 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13047 hardcode_automatic=no
13049 hardcode_direct_absolute=no
13050 hardcode_libdir_flag_spec=
13051 hardcode_libdir_flag_spec_ld=
13052 hardcode_libdir_separator=
13053 hardcode_minus_L=no
13054 hardcode_shlibpath_var=unsupported
13056 link_all_deplibs=unknown
13058 module_expsym_cmds=
13059 old_archive_from_new_cmds=
13060 old_archive_from_expsyms_cmds=
13061 thread_safe_flag_spec=
13062 whole_archive_flag_spec=
13063 # include_expsyms should be a list of space-separated symbols to be *always*
13064 # included in the symbol list
13066 # exclude_expsyms can be an extended regexp of symbols to exclude
13067 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13068 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13069 # as well as any symbol that contains `d'.
13070 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13071 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13072 # platforms (ab)use it in PIC code, but their linkers get confused if
13073 # the symbol is explicitly referenced. Since portable code cannot
13074 # rely on this symbol name, it's probably fine to never include it in
13075 # preloaded symbol tables.
13076 # Exclude shared library initialization/finalization symbols.
13077 extract_expsyms_cmds=
13080 cygwin* | mingw* | pw32* | cegcc*)
13081 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13082 # When not using gcc, we currently assume that we are using
13083 # Microsoft Visual C++.
13084 if test "$GCC" != yes; then
13089 # we just hope/assume this is gcc and not c89 (= MSVC++)
13099 # On some targets, GNU ld is compatible enough with the native linker
13100 # that we're better off using the native interface for both.
13101 lt_use_gnu_ld_interface=no
13102 if test "$with_gnu_ld" = yes; then
13105 # The AIX port of GNU ld has always aspired to compatibility
13106 # with the native linker. However, as the warning in the GNU ld
13107 # block says, versions before 2.19.5* couldn't really create working
13108 # shared libraries, regardless of the interface used.
13109 case `$LD -v 2>&1` in
13110 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13111 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13112 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13114 lt_use_gnu_ld_interface=yes
13119 lt_use_gnu_ld_interface=yes
13124 if test "$lt_use_gnu_ld_interface" = yes; then
13125 # If archive_cmds runs LD, not CC, wlarc should be empty
13128 # Set some defaults for GNU ld with shared library support. These
13129 # are reset later if shared libraries are not supported. Putting them
13130 # here allows them to be overridden if necessary.
13131 runpath_var=LD_RUN_PATH
13132 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13133 export_dynamic_flag_spec='${wl}--export-dynamic'
13134 # ancient GNU ld didn't support --whole-archive et. al.
13135 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13136 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13138 whole_archive_flag_spec=
13140 supports_anon_versioning=no
13141 case `$LD -v 2>&1` in
13142 *GNU\ gold*) supports_anon_versioning=yes ;;
13143 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13144 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13145 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13146 *\ 2.11.*) ;; # other 2.11 versions
13147 *) supports_anon_versioning=yes ;;
13150 # See if GNU ld supports shared libraries.
13153 # On AIX/PPC, the GNU linker is very broken
13154 if test "$host_cpu" != ia64; then
13158 *** Warning: the GNU linker, at least up to release 2.19, is reported
13159 *** to be unable to reliably create shared libraries on AIX.
13160 *** Therefore, libtool is disabling shared libraries support. If you
13161 *** really care for shared libraries, you may want to install binutils
13162 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13163 *** You will then need to restart the configuration process.
13172 # see comment about AmigaOS4 .so support
13173 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13174 archive_expsym_cmds=''
13177 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)'
13178 hardcode_libdir_flag_spec='-L$libdir'
13179 hardcode_minus_L=yes
13185 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13186 allow_undefined_flag=unsupported
13187 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13188 # support --undefined. This deserves some investigation. FIXME
13189 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13195 cygwin* | mingw* | pw32* | cegcc*)
13196 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13197 # as there is no search path for DLLs.
13198 hardcode_libdir_flag_spec='-L$libdir'
13199 export_dynamic_flag_spec='${wl}--export-all-symbols'
13200 allow_undefined_flag=unsupported
13201 always_export_symbols=no
13202 enable_shared_with_static_runtimes=yes
13203 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13205 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13207 # If the export-symbols file already is a .def file (1st line
13208 # is EXPORTS), use it as is; otherwise, prepend...
13209 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13210 cp $export_symbols $output_objdir/$soname.def;
13212 echo EXPORTS > $output_objdir/$soname.def;
13213 cat $export_symbols >> $output_objdir/$soname.def;
13215 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13223 link_all_deplibs=yes
13228 hardcode_shlibpath_var=no
13229 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13230 export_dynamic_flag_spec='${wl}-E'
13231 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13232 # Instead, shared libraries are loaded at an image base (0x10000000 by
13233 # default) and relocated if they conflict, which is a slow very memory
13234 # consuming and fragmenting process. To avoid this, we pick a random,
13235 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13236 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13237 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13238 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'
13241 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13243 if test "$host_os" = linux-dietlibc; then
13244 case $cc_basename in
13245 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13248 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13249 && test "$tmp_diet" = no
13252 tmp_sharedflag='-shared'
13253 case $cc_basename,$host_cpu in
13254 pgcc*) # Portland Group C compiler
13255 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'
13256 tmp_addflag=' $pic_flag'
13258 pgf77* | pgf90* | pgf95* | pgfortran*)
13259 # Portland Group f77 and f90 compilers
13260 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'
13261 tmp_addflag=' $pic_flag -Mnomain' ;;
13262 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13263 tmp_addflag=' -i_dynamic' ;;
13264 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13265 tmp_addflag=' -i_dynamic -nofor_main' ;;
13266 ifc* | ifort*) # Intel Fortran compiler
13267 tmp_addflag=' -nofor_main' ;;
13268 lf95*) # Lahey Fortran 8.1
13269 whole_archive_flag_spec=
13270 tmp_sharedflag='--shared' ;;
13271 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13272 tmp_sharedflag='-qmkshrobj'
13274 nvcc*) # Cuda Compiler Driver 2.2
13275 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'
13276 compiler_needs_object=yes
13279 case `$CC -V 2>&1 | sed 5q` in
13280 *Sun\ C*) # Sun C 5.9
13281 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'
13282 compiler_needs_object=yes
13283 tmp_sharedflag='-G' ;;
13284 *Sun\ F*) # Sun Fortran 8.3
13285 tmp_sharedflag='-G' ;;
13287 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13289 if test "x$supports_anon_versioning" = xyes; then
13290 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13291 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13292 echo "local: *; };" >> $output_objdir/$libname.ver~
13293 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13296 case $cc_basename in
13297 xlf* | bgf* | bgxlf* | mpixlf*)
13298 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13299 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13300 hardcode_libdir_flag_spec=
13301 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13302 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13303 if test "x$supports_anon_versioning" = xyes; then
13304 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13305 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13306 echo "local: *; };" >> $output_objdir/$libname.ver~
13307 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13317 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13318 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13321 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13322 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13327 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13331 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13332 *** create shared libraries on Solaris systems. Therefore, libtool
13333 *** is disabling shared libraries support. We urge you to upgrade GNU
13334 *** binutils to release 2.9.1 or newer. Another option is to modify
13335 *** your PATH or compiler configuration so that the native linker is
13336 *** used, and then restart.
13339 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13340 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13341 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13347 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13348 case `$LD -v 2>&1` in
13349 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13353 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13354 *** reliably create shared libraries on SCO systems. Therefore, libtool
13355 *** is disabling shared libraries support. We urge you to upgrade GNU
13356 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13357 *** your PATH or compiler configuration so that the native linker is
13358 *** used, and then restart.
13363 # For security reasons, it is highly recommended that you always
13364 # use absolute paths for naming shared libraries, and exclude the
13365 # DT_RUNPATH tag from executables and libraries. But doing so
13366 # requires that you compile everything twice, which is a pain.
13367 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13368 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13369 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13370 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13379 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13381 hardcode_direct=yes
13382 hardcode_shlibpath_var=no
13386 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13387 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13388 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13395 if test "$ld_shlibs" = no; then
13397 hardcode_libdir_flag_spec=
13398 export_dynamic_flag_spec=
13399 whole_archive_flag_spec=
13402 # PORTME fill in a description of your system's linker (not GNU ld)
13405 allow_undefined_flag=unsupported
13406 always_export_symbols=yes
13407 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'
13408 # Note: this linker hardcodes the directories in LIBPATH if there
13409 # are no directories specified by -L.
13410 hardcode_minus_L=yes
13411 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13412 # Neither direct hardcoding nor static linking is supported with a
13414 hardcode_direct=unsupported
13419 if test "$host_cpu" = ia64; then
13420 # On IA64, the linker does run time linking by default, so we don't
13421 # have to do anything special.
13422 aix_use_runtimelinking=no
13423 exp_sym_flag='-Bexport'
13426 # If we're using GNU nm, then we don't want the "-C" option.
13427 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13428 # Also, AIX nm treats weak defined symbols like other global
13429 # defined symbols, whereas GNU nm marks them as "W".
13430 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13431 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'
13433 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'
13435 aix_use_runtimelinking=no
13437 # Test if we are trying to use run time linking or normal
13438 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13439 # need to do runtime linking.
13440 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13441 for ld_flag in $LDFLAGS; do
13442 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13443 aix_use_runtimelinking=yes
13450 exp_sym_flag='-bexport'
13451 no_entry_flag='-bnoentry'
13454 # When large executables or shared objects are built, AIX ld can
13455 # have problems creating the table of contents. If linking a library
13456 # or program results in "error TOC overflow" add -mminimal-toc to
13457 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13458 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13461 hardcode_direct=yes
13462 hardcode_direct_absolute=yes
13463 hardcode_libdir_separator=':'
13464 link_all_deplibs=yes
13465 file_list_spec='${wl}-f,'
13467 if test "$GCC" = yes; then
13468 case $host_os in aix4.[012]|aix4.[012].*)
13469 # We only want to do this on AIX 4.2 and lower, the check
13470 # below for broken collect2 doesn't work under 4.3+
13471 collect2name=`${CC} -print-prog-name=collect2`
13472 if test -f "$collect2name" &&
13473 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13475 # We have reworked collect2
13478 # We have old collect2
13479 hardcode_direct=unsupported
13480 # It fails to find uninstalled libraries when the uninstalled
13481 # path is not listed in the libpath. Setting hardcode_minus_L
13482 # to unsupported forces relinking
13483 hardcode_minus_L=yes
13484 hardcode_libdir_flag_spec='-L$libdir'
13485 hardcode_libdir_separator=
13489 shared_flag='-shared'
13490 if test "$aix_use_runtimelinking" = yes; then
13491 shared_flag="$shared_flag "'${wl}-G'
13495 if test "$host_cpu" = ia64; then
13496 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13497 # chokes on -Wl,-G. The following line is correct:
13500 if test "$aix_use_runtimelinking" = yes; then
13501 shared_flag='${wl}-G'
13503 shared_flag='${wl}-bM:SRE'
13508 export_dynamic_flag_spec='${wl}-bexpall'
13509 # It seems that -bexpall does not export symbols beginning with
13510 # underscore (_), so it is better to generate a list of symbols to export.
13511 always_export_symbols=yes
13512 if test "$aix_use_runtimelinking" = yes; then
13513 # Warning - without using the other runtime loading flags (-brtl),
13514 # -berok will link without error, but may produce a broken library.
13515 allow_undefined_flag='-berok'
13516 # Determine the default libpath from the value encoded in an
13517 # empty executable.
13518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519 /* end confdefs.h. */
13529 if ac_fn_c_try_link "$LINENO"; then :
13531 lt_aix_libpath_sed='
13532 /Import File Strings/,/^$/ {
13538 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13539 # Check for a 64-bit object if we didn't find anything.
13540 if test -z "$aix_libpath"; then
13541 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13544 rm -f core conftest.err conftest.$ac_objext \
13545 conftest$ac_exeext conftest.$ac_ext
13546 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13548 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13549 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"
13551 if test "$host_cpu" = ia64; then
13552 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13553 allow_undefined_flag="-z nodefs"
13554 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"
13556 # Determine the default libpath from the value encoded in an
13557 # empty executable.
13558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13559 /* end confdefs.h. */
13569 if ac_fn_c_try_link "$LINENO"; then :
13571 lt_aix_libpath_sed='
13572 /Import File Strings/,/^$/ {
13578 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13579 # Check for a 64-bit object if we didn't find anything.
13580 if test -z "$aix_libpath"; then
13581 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13584 rm -f core conftest.err conftest.$ac_objext \
13585 conftest$ac_exeext conftest.$ac_ext
13586 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13588 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13589 # Warning - without using the other run time loading flags,
13590 # -berok will link without error, but may produce a broken library.
13591 no_undefined_flag=' ${wl}-bernotok'
13592 allow_undefined_flag=' ${wl}-berok'
13593 if test "$with_gnu_ld" = yes; then
13594 # We only use this code for GNU lds that support --whole-archive.
13595 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13597 # Exported symbols can be pulled into shared objects from archives
13598 whole_archive_flag_spec='$convenience'
13600 archive_cmds_need_lc=yes
13601 # This is similar to how AIX traditionally builds its shared libraries.
13602 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'
13610 # see comment about AmigaOS4 .so support
13611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13612 archive_expsym_cmds=''
13615 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)'
13616 hardcode_libdir_flag_spec='-L$libdir'
13617 hardcode_minus_L=yes
13623 export_dynamic_flag_spec=-rdynamic
13626 cygwin* | mingw* | pw32* | cegcc*)
13627 # When not using gcc, we currently assume that we are using
13628 # Microsoft Visual C++.
13629 # hardcode_libdir_flag_spec is actually meaningless, as there is
13630 # no search path for DLLs.
13631 hardcode_libdir_flag_spec=' '
13632 allow_undefined_flag=unsupported
13633 # Tell ltmain to make .lib files, not .a files.
13635 # Tell ltmain to make .dll files, not .so files.
13637 # FIXME: Setting linknames here is a bad hack.
13638 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13639 # The linker will automatically build a .lib file if we build a DLL.
13640 old_archive_from_new_cmds='true'
13641 # FIXME: Should let the user specify the lib program.
13642 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13643 fix_srcfile_path='`cygpath -w "$srcfile"`'
13644 enable_shared_with_static_runtimes=yes
13647 darwin* | rhapsody*)
13650 archive_cmds_need_lc=no
13652 hardcode_automatic=yes
13653 hardcode_shlibpath_var=unsupported
13654 if test "$lt_cv_ld_force_load" = "yes"; then
13655 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\"`'
13657 whole_archive_flag_spec=''
13659 link_all_deplibs=yes
13660 allow_undefined_flag="$_lt_dar_allow_undefined"
13661 case $cc_basename in
13662 ifort*) _lt_dar_can_shared=yes ;;
13663 *) _lt_dar_can_shared=$GCC ;;
13665 if test "$_lt_dar_can_shared" = "yes"; then
13666 output_verbose_link_cmd=func_echo_all
13667 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13668 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13669 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}"
13670 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}"
13679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13680 hardcode_libdir_flag_spec='-L$libdir'
13681 hardcode_shlibpath_var=no
13688 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13689 # support. Future versions do this automatically, but an explicit c++rt0.o
13690 # does not break anything, and helps significantly (at the cost of a little
13693 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13694 hardcode_libdir_flag_spec='-R$libdir'
13695 hardcode_direct=yes
13696 hardcode_shlibpath_var=no
13699 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13701 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13702 hardcode_direct=yes
13703 hardcode_minus_L=yes
13704 hardcode_shlibpath_var=no
13707 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13708 freebsd* | dragonfly*)
13709 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13710 hardcode_libdir_flag_spec='-R$libdir'
13711 hardcode_direct=yes
13712 hardcode_shlibpath_var=no
13716 if test "$GCC" = yes; then
13717 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13719 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'
13721 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13722 hardcode_libdir_separator=:
13723 hardcode_direct=yes
13725 # hardcode_minus_L: Not really in the search PATH,
13726 # but as the default location of the library.
13727 hardcode_minus_L=yes
13728 export_dynamic_flag_spec='${wl}-E'
13732 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13733 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13735 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13737 if test "$with_gnu_ld" = no; then
13738 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13739 hardcode_libdir_flag_spec_ld='+b $libdir'
13740 hardcode_libdir_separator=:
13741 hardcode_direct=yes
13742 hardcode_direct_absolute=yes
13743 export_dynamic_flag_spec='${wl}-E'
13744 # hardcode_minus_L: Not really in the search PATH,
13745 # but as the default location of the library.
13746 hardcode_minus_L=yes
13751 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13754 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13757 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13760 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13766 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13769 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13773 # Older versions of the 11.00 compiler do not understand -b yet
13774 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13776 $as_echo_n "checking if $CC understands -b... " >&6; }
13777 if test "${lt_cv_prog_compiler__b+set}" = set; then :
13778 $as_echo_n "(cached) " >&6
13780 lt_cv_prog_compiler__b=no
13781 save_LDFLAGS="$LDFLAGS"
13782 LDFLAGS="$LDFLAGS -b"
13783 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13784 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13785 # The linker can only warn and ignore the option if not recognized
13786 # So say no if there are warnings
13787 if test -s conftest.err; then
13788 # Append any errors to the config.log.
13789 cat conftest.err 1>&5
13790 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13791 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13792 if diff conftest.exp conftest.er2 >/dev/null; then
13793 lt_cv_prog_compiler__b=yes
13796 lt_cv_prog_compiler__b=yes
13800 LDFLAGS="$save_LDFLAGS"
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13804 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13806 if test x"$lt_cv_prog_compiler__b" = xyes; then
13807 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13809 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13815 if test "$with_gnu_ld" = no; then
13816 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13817 hardcode_libdir_separator=:
13822 hardcode_shlibpath_var=no
13825 hardcode_direct=yes
13826 hardcode_direct_absolute=yes
13827 export_dynamic_flag_spec='${wl}-E'
13829 # hardcode_minus_L: Not really in the search PATH,
13830 # but as the default location of the library.
13831 hardcode_minus_L=yes
13837 irix5* | irix6* | nonstopux*)
13838 if test "$GCC" = yes; then
13839 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13840 # Try to use the -exported_symbol ld option, if it does not
13841 # work, assume that -exports_file does not work either and
13842 # implicitly export all symbols.
13843 save_LDFLAGS="$LDFLAGS"
13844 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13846 /* end confdefs.h. */
13849 if ac_fn_c_try_link "$LINENO"; then :
13850 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
13853 rm -f core conftest.err conftest.$ac_objext \
13854 conftest$ac_exeext conftest.$ac_ext
13855 LDFLAGS="$save_LDFLAGS"
13857 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'
13858 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'
13860 archive_cmds_need_lc='no'
13861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13862 hardcode_libdir_separator=:
13864 link_all_deplibs=yes
13868 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13869 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13871 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13873 hardcode_libdir_flag_spec='-R$libdir'
13874 hardcode_direct=yes
13875 hardcode_shlibpath_var=no
13879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13880 hardcode_direct=yes
13881 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13882 hardcode_libdir_separator=:
13883 hardcode_shlibpath_var=no
13890 if test -f /usr/libexec/ld.so; then
13891 hardcode_direct=yes
13892 hardcode_shlibpath_var=no
13893 hardcode_direct_absolute=yes
13894 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13895 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13896 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13897 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13898 export_dynamic_flag_spec='${wl}-E'
13901 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13902 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13903 hardcode_libdir_flag_spec='-R$libdir'
13906 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13907 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13917 hardcode_libdir_flag_spec='-L$libdir'
13918 hardcode_minus_L=yes
13919 allow_undefined_flag=unsupported
13920 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'
13921 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13925 if test "$GCC" = yes; then
13926 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13927 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'
13929 allow_undefined_flag=' -expect_unresolved \*'
13930 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'
13932 archive_cmds_need_lc='no'
13933 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13934 hardcode_libdir_separator=:
13937 osf4* | osf5*) # as osf3* with the addition of -msym flag
13938 if test "$GCC" = yes; then
13939 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13940 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13941 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13943 allow_undefined_flag=' -expect_unresolved \*'
13944 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'
13945 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~
13946 $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'
13948 # Both c and cxx compiler support -rpath directly
13949 hardcode_libdir_flag_spec='-rpath $libdir'
13951 archive_cmds_need_lc='no'
13952 hardcode_libdir_separator=:
13956 no_undefined_flag=' -z defs'
13957 if test "$GCC" = yes; then
13959 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13960 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13961 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13963 case `$CC -V 2>&1` in
13966 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13967 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13968 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13972 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13973 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13974 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13978 hardcode_libdir_flag_spec='-R$libdir'
13979 hardcode_shlibpath_var=no
13981 solaris2.[0-5] | solaris2.[0-5].*) ;;
13983 # The compiler driver will combine and reorder linker options,
13984 # but understands `-z linker_flag'. GCC discards it without `$wl',
13985 # but is careful enough not to reorder.
13986 # Supported since Solaris 2.6 (maybe 2.5.1?)
13987 if test "$GCC" = yes; then
13988 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13990 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13994 link_all_deplibs=yes
13998 if test "x$host_vendor" = xsequent; then
13999 # Use $CC to link under sequent, because it throws in some extra .o
14000 # files that make .init and .fini sections work.
14001 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14003 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14005 hardcode_libdir_flag_spec='-L$libdir'
14006 hardcode_direct=yes
14007 hardcode_minus_L=yes
14008 hardcode_shlibpath_var=no
14012 case $host_vendor in
14014 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14015 hardcode_direct=yes # is this really true???
14018 ## LD is ld it makes a PLAMLIB
14019 ## CC just makes a GrossModule.
14020 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14021 reload_cmds='$CC -r -o $output$reload_objs'
14025 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14026 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14029 runpath_var='LD_RUN_PATH'
14030 hardcode_shlibpath_var=no
14034 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14035 hardcode_shlibpath_var=no
14036 export_dynamic_flag_spec='-Bexport'
14040 if test -d /usr/nec; then
14041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14042 hardcode_shlibpath_var=no
14043 runpath_var=LD_RUN_PATH
14044 hardcode_runpath_var=yes
14049 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14050 no_undefined_flag='${wl}-z,text'
14051 archive_cmds_need_lc=no
14052 hardcode_shlibpath_var=no
14053 runpath_var='LD_RUN_PATH'
14055 if test "$GCC" = yes; then
14056 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14057 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14059 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14060 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14064 sysv5* | sco3.2v5* | sco5v6*)
14065 # Note: We can NOT use -z defs as we might desire, because we do not
14066 # link with -lc, and that would cause any symbols used from libc to
14067 # always be unresolved, which means just about no library would
14068 # ever link correctly. If we're not using GNU ld we use -z text
14069 # though, which does catch some bad symbols but isn't as heavy-handed
14071 no_undefined_flag='${wl}-z,text'
14072 allow_undefined_flag='${wl}-z,nodefs'
14073 archive_cmds_need_lc=no
14074 hardcode_shlibpath_var=no
14075 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14076 hardcode_libdir_separator=':'
14077 link_all_deplibs=yes
14078 export_dynamic_flag_spec='${wl}-Bexport'
14079 runpath_var='LD_RUN_PATH'
14081 if test "$GCC" = yes; then
14082 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14083 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14085 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14086 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14092 hardcode_libdir_flag_spec='-L$libdir'
14093 hardcode_shlibpath_var=no
14101 if test x$host_vendor = xsni; then
14103 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14104 export_dynamic_flag_spec='${wl}-Blargedynsym'
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14111 $as_echo "$ld_shlibs" >&6; }
14112 test "$ld_shlibs" = no && can_build_shared=no
14114 with_gnu_ld=$with_gnu_ld
14131 # Do we need to explicitly link libc?
14133 case "x$archive_cmds_need_lc" in
14135 # Assume -lc should be added
14136 archive_cmds_need_lc=yes
14138 if test "$enable_shared" = yes && test "$GCC" = yes; then
14139 case $archive_cmds in
14141 # FIXME: we may have to deal with multi-command sequences.
14144 # Test whether the compiler implicitly links with -lc since on some
14145 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14146 # to ld, don't add -lc before -lgcc.
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14148 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14149 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
14150 $as_echo_n "(cached) " >&6
14153 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14156 (eval $ac_compile) 2>&5
14158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14159 test $ac_status = 0; } 2>conftest.err; then
14162 libobjs=conftest.$ac_objext
14164 wl=$lt_prog_compiler_wl
14165 pic_flag=$lt_prog_compiler_pic
14171 lt_save_allow_undefined_flag=$allow_undefined_flag
14172 allow_undefined_flag=
14173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14174 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14177 test $ac_status = 0; }
14179 lt_cv_archive_cmds_need_lc=no
14181 lt_cv_archive_cmds_need_lc=yes
14183 allow_undefined_flag=$lt_save_allow_undefined_flag
14185 cat conftest.err 1>&5
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14191 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14192 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14356 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14358 if test "$GCC" = yes; then
14360 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14361 *) lt_awk_arg="/^libraries:/" ;;
14364 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14365 *) lt_sed_strip_eq="s,=/,/,g" ;;
14367 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14368 case $lt_search_path_spec in
14370 # if the path contains ";" then we assume it to be the separator
14371 # otherwise default to the standard path separator (i.e. ":") - it is
14372 # assumed that no part of a normal pathname contains ";" but that should
14373 # okay in the real world where ";" in dirpaths is itself problematic.
14374 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14377 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14380 # Ok, now we have the path, separated by spaces, we can step through it
14381 # and add multilib dir if necessary.
14382 lt_tmp_lt_search_path_spec=
14383 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14384 for lt_sys_path in $lt_search_path_spec; do
14385 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14386 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14388 test -d "$lt_sys_path" && \
14389 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14392 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14393 BEGIN {RS=" "; FS="/|\n";} {
14396 for (lt_i = NF; lt_i > 0; lt_i--) {
14397 if ($lt_i != "" && $lt_i != ".") {
14398 if ($lt_i == "..") {
14401 if (lt_count == 0) {
14402 lt_foo="/" $lt_i lt_foo;
14409 if (lt_foo != "") { lt_freq[lt_foo]++; }
14410 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14412 # AWK program above erroneously prepends '/' to C:/dos/paths
14415 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14416 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14418 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14420 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14422 library_names_spec=
14423 libname_spec='lib$name'
14427 postuninstall_cmds=
14431 shlibpath_overrides_runpath=unknown
14433 dynamic_linker="$host_os ld.so"
14434 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14435 need_lib_prefix=unknown
14436 hardcode_into_libs=no
14438 # when you set need_version to no, make sure it does not cause -set_version
14439 # flags to be left without arguments
14440 need_version=unknown
14445 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14446 shlibpath_var=LIBPATH
14448 # AIX 3 has no versioning support, so we append a major version to the name.
14449 soname_spec='${libname}${release}${shared_ext}$major'
14456 hardcode_into_libs=yes
14457 if test "$host_cpu" = ia64; then
14458 # AIX 5 supports IA64
14459 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14460 shlibpath_var=LD_LIBRARY_PATH
14462 # With GCC up to 2.95.x, collect2 would create an import file
14463 # for dependence libraries. The import file would start with
14464 # the line `#! .'. This would cause the generated library to
14465 # depend on `.', always an invalid library. This was fixed in
14466 # development snapshots of GCC prior to 3.0.
14468 aix4 | aix4.[01] | aix4.[01].*)
14469 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14471 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14474 can_build_shared=no
14478 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14479 # soname into executable. Probably we can add versioning support to
14480 # collect2, so additional links can be useful in future.
14481 if test "$aix_use_runtimelinking" = yes; then
14482 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14483 # instead of lib<name>.a to let people know that these are not
14484 # typical AIX shared libraries.
14485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14487 # We preserve .a as extension for shared libraries through AIX4.2
14488 # and later when we are not doing run time linking.
14489 library_names_spec='${libname}${release}.a $libname.a'
14490 soname_spec='${libname}${release}${shared_ext}$major'
14492 shlibpath_var=LIBPATH
14499 # Since July 2007 AmigaOS4 officially supports .so libraries.
14500 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14504 library_names_spec='$libname.ixlibrary $libname.a'
14505 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14506 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'
14512 library_names_spec='${libname}${shared_ext}'
14513 dynamic_linker="$host_os ld.so"
14514 shlibpath_var=LIBRARY_PATH
14520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14521 soname_spec='${libname}${release}${shared_ext}$major'
14522 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14523 shlibpath_var=LD_LIBRARY_PATH
14524 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14525 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14526 # the default ld.so.conf also contains /usr/contrib/lib and
14527 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14528 # libtool to hard-code these into programs
14531 cygwin* | mingw* | pw32* | cegcc*)
14532 version_type=windows
14537 case $GCC,$host_os in
14538 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14539 library_names_spec='$libname.dll.a'
14540 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14541 postinstall_cmds='base_file=`basename \${file}`~
14542 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14543 dldir=$destdir/`dirname \$dlpath`~
14544 test -d \$dldir || mkdir -p \$dldir~
14545 $install_prog $dir/$dlname \$dldir/$dlname~
14546 chmod a+x \$dldir/$dlname~
14547 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14548 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14550 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14551 dlpath=$dir/\$dldll~
14553 shlibpath_overrides_runpath=yes
14557 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14558 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14560 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14563 # MinGW DLLs use traditional 'lib' prefix
14564 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14567 # pw32 DLLs use 'pw' prefix rather than 'lib'
14568 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14574 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14577 dynamic_linker='Win32 ld.exe'
14578 # FIXME: first we should search . and the directory the executable is in
14582 darwin* | rhapsody*)
14583 dynamic_linker="$host_os dyld"
14584 version_type=darwin
14587 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14588 soname_spec='${libname}${release}${major}$shared_ext'
14589 shlibpath_overrides_runpath=yes
14590 shlibpath_var=DYLD_LIBRARY_PATH
14591 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14593 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14594 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14602 soname_spec='${libname}${release}${shared_ext}$major'
14603 shlibpath_var=LD_LIBRARY_PATH
14610 freebsd* | dragonfly*)
14611 # DragonFly does not have aout. When/if they implement a new
14612 # versioning mechanism, adjust this.
14613 if test -x /usr/bin/objformat; then
14614 objformat=`/usr/bin/objformat`
14617 freebsd[123]*) objformat=aout ;;
14618 *) objformat=elf ;;
14621 version_type=freebsd-$objformat
14622 case $version_type in
14624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14629 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14633 shlibpath_var=LD_LIBRARY_PATH
14636 shlibpath_overrides_runpath=yes
14638 freebsd3.[01]* | freebsdelf3.[01]*)
14639 shlibpath_overrides_runpath=yes
14640 hardcode_into_libs=yes
14642 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14643 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14644 shlibpath_overrides_runpath=no
14645 hardcode_into_libs=yes
14647 *) # from 4.6 on, and DragonFly
14648 shlibpath_overrides_runpath=yes
14649 hardcode_into_libs=yes
14658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14659 soname_spec='${libname}${release}${shared_ext}$major'
14660 shlibpath_var=LD_LIBRARY_PATH
14661 hardcode_into_libs=yes
14668 dynamic_linker="$host_os runtime_loader"
14669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14670 soname_spec='${libname}${release}${shared_ext}$major'
14671 shlibpath_var=LIBRARY_PATH
14672 shlibpath_overrides_runpath=yes
14673 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14674 hardcode_into_libs=yes
14677 hpux9* | hpux10* | hpux11*)
14678 # Give a soname corresponding to the major version so that dld.sl refuses to
14679 # link against other versions.
14686 hardcode_into_libs=yes
14687 dynamic_linker="$host_os dld.so"
14688 shlibpath_var=LD_LIBRARY_PATH
14689 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14691 soname_spec='${libname}${release}${shared_ext}$major'
14692 if test "X$HPUX_IA64_MODE" = X32; then
14693 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14695 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14697 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14701 hardcode_into_libs=yes
14702 dynamic_linker="$host_os dld.sl"
14703 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14704 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14706 soname_spec='${libname}${release}${shared_ext}$major'
14707 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14708 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14712 dynamic_linker="$host_os dld.sl"
14713 shlibpath_var=SHLIB_PATH
14714 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14716 soname_spec='${libname}${release}${shared_ext}$major'
14719 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14720 postinstall_cmds='chmod 555 $lib'
14721 # or fails outright, so override atomically:
14722 install_override_mode=555
14729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14730 soname_spec='${libname}${release}${shared_ext}$major'
14731 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14732 shlibpath_var=LD_LIBRARY_PATH
14733 shlibpath_overrides_runpath=no
14734 hardcode_into_libs=yes
14737 irix5* | irix6* | nonstopux*)
14739 nonstopux*) version_type=nonstopux ;;
14741 if test "$lt_cv_prog_gnu_ld" = yes; then
14749 soname_spec='${libname}${release}${shared_ext}$major'
14750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14752 irix5* | nonstopux*)
14753 libsuff= shlibsuff=
14756 case $LD in # libtool.m4 will add one of these switches to LD
14757 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14758 libsuff= shlibsuff= libmagic=32-bit;;
14759 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14760 libsuff=32 shlibsuff=N32 libmagic=N32;;
14761 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14762 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14763 *) libsuff= shlibsuff= libmagic=never-match;;
14767 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14768 shlibpath_overrides_runpath=no
14769 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14770 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14771 hardcode_into_libs=yes
14774 # No shared lib support for Linux oldld, aout, or coff.
14775 linux*oldld* | linux*aout* | linux*coff*)
14779 # This must be Linux ELF.
14780 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14785 soname_spec='${libname}${release}${shared_ext}$major'
14786 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14787 shlibpath_var=LD_LIBRARY_PATH
14788 shlibpath_overrides_runpath=no
14790 # Some binutils ld are patched to set DT_RUNPATH
14791 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14792 $as_echo_n "(cached) " >&6
14794 lt_cv_shlibpath_overrides_runpath=no
14795 save_LDFLAGS=$LDFLAGS
14796 save_libdir=$libdir
14797 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14798 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14800 /* end confdefs.h. */
14810 if ac_fn_c_try_link "$LINENO"; then :
14811 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14812 lt_cv_shlibpath_overrides_runpath=yes
14815 rm -f core conftest.err conftest.$ac_objext \
14816 conftest$ac_exeext conftest.$ac_ext
14817 LDFLAGS=$save_LDFLAGS
14818 libdir=$save_libdir
14822 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14824 # This implies no fast_install, which is unacceptable.
14825 # Some rework will be needed to allow for fast_install
14826 # before this can be enabled.
14827 hardcode_into_libs=yes
14829 # Add ABI-specific directories to the system library path.
14830 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14832 # Append ld.so.conf contents to the search path
14833 if test -f /etc/ld.so.conf; then
14834 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' ' '`
14835 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14839 # We used to test for /lib/ld.so.1 and disable shared libraries on
14840 # powerpc, because MkLinux only supported shared libraries with the
14841 # GNU dynamic linker. Since this was broken with cross compilers,
14842 # most powerpc-linux boxes support dynamic linking these days and
14843 # people can always --disable-shared, the test was removed, and we
14844 # assume the GNU/Linux dynamic linker is in use.
14845 dynamic_linker='GNU/Linux ld.so'
14852 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14855 dynamic_linker='NetBSD (a.out) ld.so'
14857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14858 soname_spec='${libname}${release}${shared_ext}$major'
14859 dynamic_linker='NetBSD ld.elf_so'
14861 shlibpath_var=LD_LIBRARY_PATH
14862 shlibpath_overrides_runpath=yes
14863 hardcode_into_libs=yes
14868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14869 shlibpath_var=LD_LIBRARY_PATH
14870 shlibpath_overrides_runpath=yes
14877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14878 soname_spec='${libname}${release}${shared_ext}$major'
14879 shlibpath_var=LD_LIBRARY_PATH
14880 shlibpath_overrides_runpath=no
14881 hardcode_into_libs=yes
14882 dynamic_linker='ldqnx.so'
14887 sys_lib_dlsearch_path_spec="/usr/lib"
14889 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14891 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14892 *) need_version=no ;;
14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14895 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14896 shlibpath_var=LD_LIBRARY_PATH
14897 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14899 openbsd2.[89] | openbsd2.[89].*)
14900 shlibpath_overrides_runpath=no
14903 shlibpath_overrides_runpath=yes
14907 shlibpath_overrides_runpath=yes
14912 libname_spec='$name'
14915 library_names_spec='$libname${shared_ext} $libname.a'
14916 dynamic_linker='OS/2 ld.exe'
14917 shlibpath_var=LIBPATH
14920 osf3* | osf4* | osf5*)
14924 soname_spec='${libname}${release}${shared_ext}$major'
14925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14926 shlibpath_var=LD_LIBRARY_PATH
14927 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14928 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14940 soname_spec='${libname}${release}${shared_ext}$major'
14941 shlibpath_var=LD_LIBRARY_PATH
14942 shlibpath_overrides_runpath=yes
14943 hardcode_into_libs=yes
14944 # ldd complains unless libraries are executable
14945 postinstall_cmds='chmod +x $lib'
14950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14951 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14952 shlibpath_var=LD_LIBRARY_PATH
14953 shlibpath_overrides_runpath=yes
14954 if test "$with_gnu_ld" = yes; then
14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14963 soname_spec='${libname}${release}${shared_ext}$major'
14964 shlibpath_var=LD_LIBRARY_PATH
14965 case $host_vendor in
14967 shlibpath_overrides_runpath=no
14969 runpath_var=LD_RUN_PATH
14977 shlibpath_overrides_runpath=no
14978 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14984 if test -d /usr/nec ;then
14986 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14987 soname_spec='$libname${shared_ext}.$major'
14988 shlibpath_var=LD_LIBRARY_PATH
14992 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14993 version_type=freebsd-elf
14996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14997 soname_spec='${libname}${release}${shared_ext}$major'
14998 shlibpath_var=LD_LIBRARY_PATH
14999 shlibpath_overrides_runpath=yes
15000 hardcode_into_libs=yes
15001 if test "$with_gnu_ld" = yes; then
15002 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15004 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15007 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15011 sys_lib_dlsearch_path_spec='/usr/lib'
15015 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15020 shlibpath_var=LD_LIBRARY_PATH
15021 shlibpath_overrides_runpath=no
15022 hardcode_into_libs=yes
15027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15028 soname_spec='${libname}${release}${shared_ext}$major'
15029 shlibpath_var=LD_LIBRARY_PATH
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15037 $as_echo "$dynamic_linker" >&6; }
15038 test "$dynamic_linker" = no && can_build_shared=no
15040 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15041 if test "$GCC" = yes; then
15042 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15045 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15046 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15048 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15049 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15144 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15146 if test -n "$hardcode_libdir_flag_spec" ||
15147 test -n "$runpath_var" ||
15148 test "X$hardcode_automatic" = "Xyes" ; then
15150 # We can hardcode non-existent directories.
15151 if test "$hardcode_direct" != no &&
15152 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15153 # have to relink, otherwise we might link with an installed library
15154 # when we should be linking with a yet-to-be-installed one
15155 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15156 test "$hardcode_minus_L" != no; then
15157 # Linking always hardcodes the temporary library directory.
15158 hardcode_action=relink
15160 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15161 hardcode_action=immediate
15164 # We cannot hardcode anything, or else we can only hardcode existing
15166 hardcode_action=unsupported
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15169 $as_echo "$hardcode_action" >&6; }
15171 if test "$hardcode_action" = relink ||
15172 test "$inherit_rpath" = yes; then
15173 # Fast installation is not supported
15174 enable_fast_install=no
15175 elif test "$shlibpath_overrides_runpath" = yes ||
15176 test "$enable_shared" = no; then
15177 # Fast installation is not necessary
15178 enable_fast_install=needless
15186 if test "x$enable_dlopen" != xyes; then
15187 enable_dlopen=unknown
15188 enable_dlopen_self=unknown
15189 enable_dlopen_self_static=unknown
15196 lt_cv_dlopen="load_add_on"
15198 lt_cv_dlopen_self=yes
15201 mingw* | pw32* | cegcc*)
15202 lt_cv_dlopen="LoadLibrary"
15207 lt_cv_dlopen="dlopen"
15212 # if libdl is installed we need to link against it
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15214 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15215 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15216 $as_echo_n "(cached) " >&6
15218 ac_check_lib_save_LIBS=$LIBS
15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221 /* end confdefs.h. */
15223 /* Override any GCC internal prototype to avoid an error.
15224 Use char because int might match the return type of a GCC
15225 builtin and then its argument prototype would still apply. */
15238 if ac_fn_c_try_link "$LINENO"; then :
15239 ac_cv_lib_dl_dlopen=yes
15241 ac_cv_lib_dl_dlopen=no
15243 rm -f core conftest.err conftest.$ac_objext \
15244 conftest$ac_exeext conftest.$ac_ext
15245 LIBS=$ac_check_lib_save_LIBS
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15248 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15249 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15250 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15253 lt_cv_dlopen="dyld"
15255 lt_cv_dlopen_self=yes
15262 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15263 if test "x$ac_cv_func_shl_load" = x""yes; then :
15264 lt_cv_dlopen="shl_load"
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15267 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15268 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
15269 $as_echo_n "(cached) " >&6
15271 ac_check_lib_save_LIBS=$LIBS
15273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15274 /* end confdefs.h. */
15276 /* Override any GCC internal prototype to avoid an error.
15277 Use char because int might match the return type of a GCC
15278 builtin and then its argument prototype would still apply. */
15286 return shl_load ();
15291 if ac_fn_c_try_link "$LINENO"; then :
15292 ac_cv_lib_dld_shl_load=yes
15294 ac_cv_lib_dld_shl_load=no
15296 rm -f core conftest.err conftest.$ac_objext \
15297 conftest$ac_exeext conftest.$ac_ext
15298 LIBS=$ac_check_lib_save_LIBS
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15301 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15302 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
15303 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15305 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15306 if test "x$ac_cv_func_dlopen" = x""yes; then :
15307 lt_cv_dlopen="dlopen"
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15310 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15311 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15312 $as_echo_n "(cached) " >&6
15314 ac_check_lib_save_LIBS=$LIBS
15316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15317 /* end confdefs.h. */
15319 /* Override any GCC internal prototype to avoid an error.
15320 Use char because int might match the return type of a GCC
15321 builtin and then its argument prototype would still apply. */
15334 if ac_fn_c_try_link "$LINENO"; then :
15335 ac_cv_lib_dl_dlopen=yes
15337 ac_cv_lib_dl_dlopen=no
15339 rm -f core conftest.err conftest.$ac_objext \
15340 conftest$ac_exeext conftest.$ac_ext
15341 LIBS=$ac_check_lib_save_LIBS
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15344 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15345 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15346 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15349 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15350 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
15351 $as_echo_n "(cached) " >&6
15353 ac_check_lib_save_LIBS=$LIBS
15354 LIBS="-lsvld $LIBS"
15355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15356 /* end confdefs.h. */
15358 /* Override any GCC internal prototype to avoid an error.
15359 Use char because int might match the return type of a GCC
15360 builtin and then its argument prototype would still apply. */
15373 if ac_fn_c_try_link "$LINENO"; then :
15374 ac_cv_lib_svld_dlopen=yes
15376 ac_cv_lib_svld_dlopen=no
15378 rm -f core conftest.err conftest.$ac_objext \
15379 conftest$ac_exeext conftest.$ac_ext
15380 LIBS=$ac_check_lib_save_LIBS
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15383 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15384 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
15385 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15388 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15389 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
15390 $as_echo_n "(cached) " >&6
15392 ac_check_lib_save_LIBS=$LIBS
15394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15395 /* end confdefs.h. */
15397 /* Override any GCC internal prototype to avoid an error.
15398 Use char because int might match the return type of a GCC
15399 builtin and then its argument prototype would still apply. */
15407 return dld_link ();
15412 if ac_fn_c_try_link "$LINENO"; then :
15413 ac_cv_lib_dld_dld_link=yes
15415 ac_cv_lib_dld_dld_link=no
15417 rm -f core conftest.err conftest.$ac_objext \
15418 conftest$ac_exeext conftest.$ac_ext
15419 LIBS=$ac_check_lib_save_LIBS
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15422 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15423 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
15424 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15445 if test "x$lt_cv_dlopen" != xno; then
15451 case $lt_cv_dlopen in
15453 save_CPPFLAGS="$CPPFLAGS"
15454 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15456 save_LDFLAGS="$LDFLAGS"
15457 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15460 LIBS="$lt_cv_dlopen_libs $LIBS"
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15463 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15464 if test "${lt_cv_dlopen_self+set}" = set; then :
15465 $as_echo_n "(cached) " >&6
15467 if test "$cross_compiling" = yes; then :
15468 lt_cv_dlopen_self=cross
15470 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15471 lt_status=$lt_dlunknown
15472 cat > conftest.$ac_ext <<_LT_EOF
15473 #line $LINENO "configure"
15474 #include "confdefs.h"
15483 # define LT_DLGLOBAL RTLD_GLOBAL
15486 # define LT_DLGLOBAL DL_GLOBAL
15488 # define LT_DLGLOBAL 0
15492 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15493 find out it does not work in some platform. */
15494 #ifndef LT_DLLAZY_OR_NOW
15496 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15499 # define LT_DLLAZY_OR_NOW DL_LAZY
15502 # define LT_DLLAZY_OR_NOW RTLD_NOW
15505 # define LT_DLLAZY_OR_NOW DL_NOW
15507 # define LT_DLLAZY_OR_NOW 0
15514 /* When -fvisbility=hidden is used, assume the code has been annotated
15515 correspondingly for the symbols needed. */
15516 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15517 void fnord () __attribute__((visibility("default")));
15520 void fnord () { int i=42; }
15523 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15524 int status = $lt_dlunknown;
15528 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15531 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15532 else puts (dlerror ());
15534 /* dlclose (self); */
15542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15543 (eval $ac_link) 2>&5
15545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15546 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15547 (./conftest; exit; ) >&5 2>/dev/null
15549 case x$lt_status in
15550 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15551 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15552 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15555 # compilation failed
15556 lt_cv_dlopen_self=no
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15564 $as_echo "$lt_cv_dlopen_self" >&6; }
15566 if test "x$lt_cv_dlopen_self" = xyes; then
15567 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15569 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15570 if test "${lt_cv_dlopen_self_static+set}" = set; then :
15571 $as_echo_n "(cached) " >&6
15573 if test "$cross_compiling" = yes; then :
15574 lt_cv_dlopen_self_static=cross
15576 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15577 lt_status=$lt_dlunknown
15578 cat > conftest.$ac_ext <<_LT_EOF
15579 #line $LINENO "configure"
15580 #include "confdefs.h"
15589 # define LT_DLGLOBAL RTLD_GLOBAL
15592 # define LT_DLGLOBAL DL_GLOBAL
15594 # define LT_DLGLOBAL 0
15598 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15599 find out it does not work in some platform. */
15600 #ifndef LT_DLLAZY_OR_NOW
15602 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15605 # define LT_DLLAZY_OR_NOW DL_LAZY
15608 # define LT_DLLAZY_OR_NOW RTLD_NOW
15611 # define LT_DLLAZY_OR_NOW DL_NOW
15613 # define LT_DLLAZY_OR_NOW 0
15620 /* When -fvisbility=hidden is used, assume the code has been annotated
15621 correspondingly for the symbols needed. */
15622 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15623 void fnord () __attribute__((visibility("default")));
15626 void fnord () { int i=42; }
15629 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15630 int status = $lt_dlunknown;
15634 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15637 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15638 else puts (dlerror ());
15640 /* dlclose (self); */
15648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15649 (eval $ac_link) 2>&5
15651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15652 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15653 (./conftest; exit; ) >&5 2>/dev/null
15655 case x$lt_status in
15656 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15657 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15658 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15661 # compilation failed
15662 lt_cv_dlopen_self_static=no
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15670 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15673 CPPFLAGS="$save_CPPFLAGS"
15674 LDFLAGS="$save_LDFLAGS"
15679 case $lt_cv_dlopen_self in
15680 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15681 *) enable_dlopen_self=unknown ;;
15684 case $lt_cv_dlopen_self_static in
15685 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15686 *) enable_dlopen_self_static=unknown ;;
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15709 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15710 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15711 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15712 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15714 $as_echo "yes" >&6; }
15716 # FIXME - insert some real tests, host_os isn't really good enough
15719 if test -n "$STRIP" ; then
15720 striplib="$STRIP -x"
15721 old_striplib="$STRIP -S"
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15723 $as_echo "yes" >&6; }
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15726 $as_echo "no" >&6; }
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15731 $as_echo "no" >&6; }
15747 # Report which library types will actually be built
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15749 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15751 $as_echo "$can_build_shared" >&6; }
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15754 $as_echo_n "checking whether to build shared libraries... " >&6; }
15755 test "$can_build_shared" = "no" && enable_shared=no
15757 # On AIX, shared libraries and static libraries use the same namespace, and
15758 # are all built from PIC.
15761 test "$enable_shared" = yes && enable_static=no
15762 if test -n "$RANLIB"; then
15763 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15764 postinstall_cmds='$RANLIB $lib'
15769 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15770 test "$enable_shared" = yes && enable_static=no
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15775 $as_echo "$enable_shared" >&6; }
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15778 $as_echo_n "checking whether to build static libraries... " >&6; }
15779 # Make sure either enable_shared or enable_static is yes.
15780 test "$enable_shared" = yes || enable_static=yes
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15782 $as_echo "$enable_static" >&6; }
15789 ac_cpp='$CPP $CPPFLAGS'
15790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15796 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15797 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15798 (test "X$CXX" != "Xg++"))) ; then
15800 ac_cpp='$CXXCPP $CPPFLAGS'
15801 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15802 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15803 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15805 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15806 if test -z "$CXXCPP"; then
15807 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
15808 $as_echo_n "(cached) " >&6
15810 # Double quotes because CXXCPP needs to be expanded
15811 for CXXCPP in "$CXX -E" "/lib/cpp"
15813 ac_preproc_ok=false
15814 for ac_cxx_preproc_warn_flag in '' yes
15816 # Use a header file that comes with gcc, so configuring glibc
15817 # with a fresh cross-compiler works.
15818 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15819 # <limits.h> exists even on freestanding compilers.
15820 # On the NeXT, cc -E runs the code through the compiler's parser,
15821 # not just through cpp. "Syntax error" is here to catch this case.
15822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15823 /* end confdefs.h. */
15825 # include <limits.h>
15827 # include <assert.h>
15831 if ac_fn_cxx_try_cpp "$LINENO"; then :
15834 # Broken: fails on valid input.
15837 rm -f conftest.err conftest.$ac_ext
15839 # OK, works on sane cases. Now check whether nonexistent headers
15840 # can be detected and how.
15841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15842 /* end confdefs.h. */
15843 #include <ac_nonexistent.h>
15845 if ac_fn_cxx_try_cpp "$LINENO"; then :
15846 # Broken: success on invalid input.
15849 # Passes both tests.
15853 rm -f conftest.err conftest.$ac_ext
15856 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15857 rm -f conftest.err conftest.$ac_ext
15858 if $ac_preproc_ok; then :
15863 ac_cv_prog_CXXCPP=$CXXCPP
15866 CXXCPP=$ac_cv_prog_CXXCPP
15868 ac_cv_prog_CXXCPP=$CXXCPP
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15871 $as_echo "$CXXCPP" >&6; }
15872 ac_preproc_ok=false
15873 for ac_cxx_preproc_warn_flag in '' yes
15875 # Use a header file that comes with gcc, so configuring glibc
15876 # with a fresh cross-compiler works.
15877 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15878 # <limits.h> exists even on freestanding compilers.
15879 # On the NeXT, cc -E runs the code through the compiler's parser,
15880 # not just through cpp. "Syntax error" is here to catch this case.
15881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15882 /* end confdefs.h. */
15884 # include <limits.h>
15886 # include <assert.h>
15890 if ac_fn_cxx_try_cpp "$LINENO"; then :
15893 # Broken: fails on valid input.
15896 rm -f conftest.err conftest.$ac_ext
15898 # OK, works on sane cases. Now check whether nonexistent headers
15899 # can be detected and how.
15900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15901 /* end confdefs.h. */
15902 #include <ac_nonexistent.h>
15904 if ac_fn_cxx_try_cpp "$LINENO"; then :
15905 # Broken: success on invalid input.
15908 # Passes both tests.
15912 rm -f conftest.err conftest.$ac_ext
15915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15916 rm -f conftest.err conftest.$ac_ext
15917 if $ac_preproc_ok; then :
15920 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15922 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15923 See \`config.log' for more details" "$LINENO" 5; }
15927 ac_cpp='$CPP $CPPFLAGS'
15928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15933 _lt_caught_CXX_error=yes
15937 ac_cpp='$CXXCPP $CPPFLAGS'
15938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15942 archive_cmds_need_lc_CXX=no
15943 allow_undefined_flag_CXX=
15944 always_export_symbols_CXX=no
15945 archive_expsym_cmds_CXX=
15946 compiler_needs_object_CXX=no
15947 export_dynamic_flag_spec_CXX=
15948 hardcode_direct_CXX=no
15949 hardcode_direct_absolute_CXX=no
15950 hardcode_libdir_flag_spec_CXX=
15951 hardcode_libdir_flag_spec_ld_CXX=
15952 hardcode_libdir_separator_CXX=
15953 hardcode_minus_L_CXX=no
15954 hardcode_shlibpath_var_CXX=unsupported
15955 hardcode_automatic_CXX=no
15956 inherit_rpath_CXX=no
15958 module_expsym_cmds_CXX=
15959 link_all_deplibs_CXX=unknown
15960 old_archive_cmds_CXX=$old_archive_cmds
15961 reload_flag_CXX=$reload_flag
15962 reload_cmds_CXX=$reload_cmds
15963 no_undefined_flag_CXX=
15964 whole_archive_flag_spec_CXX=
15965 enable_shared_with_static_runtimes_CXX=no
15967 # Source file extension for C++ test sources.
15970 # Object file extension for compiled C++ test sources.
15974 # No sense in running all these tests if we already determined that
15975 # the CXX compiler isn't working. Some variables (like enable_shared)
15976 # are currently assumed to apply to all compilers on this platform,
15977 # and will be corrupted by setting them based on a non-working compiler.
15978 if test "$_lt_caught_CXX_error" != yes; then
15979 # Code to be used in simple compile tests
15980 lt_simple_compile_test_code="int some_variable = 0;"
15982 # Code to be used in simple link tests
15983 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15985 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15992 # If no C compiler was specified, use CC.
15995 # If no C compiler flags were specified, use CFLAGS.
15996 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15998 # Allow CC to be a program name with arguments.
16002 # save warnings/boilerplate of simple test code
16003 ac_outfile=conftest.$ac_objext
16004 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16005 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16006 _lt_compiler_boilerplate=`cat conftest.err`
16009 ac_outfile=conftest.$ac_objext
16010 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16011 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16012 _lt_linker_boilerplate=`cat conftest.err`
16016 # Allow CC to be a program name with arguments.
16021 lt_save_with_gnu_ld=$with_gnu_ld
16022 lt_save_path_LD=$lt_cv_path_LD
16023 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16024 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16026 $as_unset lt_cv_prog_gnu_ld
16028 if test -n "${lt_cv_path_LDCXX+set}"; then
16029 lt_cv_path_LD=$lt_cv_path_LDCXX
16031 $as_unset lt_cv_path_LD
16033 test -z "${LDCXX+set}" || LD=$LDCXX
16037 for cc_temp in $compiler""; do
16039 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16040 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16045 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16048 if test -n "$compiler"; then
16049 # We don't want -fno-exception when compiling C++ code, so set the
16050 # no_builtin_flag separately
16051 if test "$GXX" = yes; then
16052 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16054 lt_prog_compiler_no_builtin_flag_CXX=
16057 if test "$GXX" = yes; then
16058 # Set up default GNU C++ configuration
16062 # Check whether --with-gnu-ld was given.
16063 if test "${with_gnu_ld+set}" = set; then :
16064 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16070 if test "$GCC" = yes; then
16071 # Check if gcc -print-prog-name=ld gives a path.
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16073 $as_echo_n "checking for ld used by $CC... " >&6; }
16076 # gcc leaves a trailing carriage return which upsets mingw
16077 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16079 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16082 # Accept absolute paths.
16084 re_direlt='/[^/][^/]*/\.\./'
16085 # Canonicalize the pathname of ld
16086 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16087 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16088 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16090 test -z "$LD" && LD="$ac_prog"
16093 # If it fails, then pretend we aren't using GCC.
16097 # If it is relative, then search for the first ld in PATH.
16098 with_gnu_ld=unknown
16101 elif test "$with_gnu_ld" = yes; then
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16103 $as_echo_n "checking for GNU ld... " >&6; }
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16106 $as_echo_n "checking for non-GNU ld... " >&6; }
16108 if test "${lt_cv_path_LD+set}" = set; then :
16109 $as_echo_n "(cached) " >&6
16111 if test -z "$LD"; then
16112 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16113 for ac_dir in $PATH; do
16115 test -z "$ac_dir" && ac_dir=.
16116 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16117 lt_cv_path_LD="$ac_dir/$ac_prog"
16118 # Check to see if the program is GNU ld. I'd rather use --version,
16119 # but apparently some variants of GNU ld only accept -v.
16120 # Break only if it was the GNU/non-GNU ld that we prefer.
16121 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16122 *GNU* | *'with BFD'*)
16123 test "$with_gnu_ld" != no && break
16126 test "$with_gnu_ld" != yes && break
16133 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16137 LD="$lt_cv_path_LD"
16138 if test -n "$LD"; then
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16140 $as_echo "$LD" >&6; }
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16143 $as_echo "no" >&6; }
16145 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16147 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16148 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16149 $as_echo_n "(cached) " >&6
16151 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16152 case `$LD -v 2>&1 </dev/null` in
16153 *GNU* | *'with BFD'*)
16154 lt_cv_prog_gnu_ld=yes
16157 lt_cv_prog_gnu_ld=no
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16162 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16163 with_gnu_ld=$lt_cv_prog_gnu_ld
16171 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16172 # archiving commands below assume that GNU ld is being used.
16173 if test "$with_gnu_ld" = yes; then
16174 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16175 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16177 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16178 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16180 # If archive_cmds runs LD, not CC, wlarc should be empty
16181 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16182 # investigate it a little bit more. (MM)
16185 # ancient GNU ld didn't support --whole-archive et. al.
16186 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16187 $GREP 'no-whole-archive' > /dev/null; then
16188 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16190 whole_archive_flag_spec_CXX=
16196 # A generic and very simple default shared library creation
16197 # command for GNU C++ for the case where it uses the native
16198 # linker, instead of GNU ld. If possible, this setting should
16199 # overridden to take advantage of the native linker features on
16200 # the platform it is being used on.
16201 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16204 # Commands to make compiler produce verbose output that lists
16205 # what "hidden" libraries, object files and flags are used when
16206 # linking a shared library.
16207 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16215 # PORTME: fill in a description of your system's C++ link characteristics
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16217 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16221 # FIXME: insert proper C++ library support
16225 if test "$host_cpu" = ia64; then
16226 # On IA64, the linker does run time linking by default, so we don't
16227 # have to do anything special.
16228 aix_use_runtimelinking=no
16229 exp_sym_flag='-Bexport'
16232 aix_use_runtimelinking=no
16234 # Test if we are trying to use run time linking or normal
16235 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16236 # need to do runtime linking.
16237 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16238 for ld_flag in $LDFLAGS; do
16241 aix_use_runtimelinking=yes
16249 exp_sym_flag='-bexport'
16250 no_entry_flag='-bnoentry'
16253 # When large executables or shared objects are built, AIX ld can
16254 # have problems creating the table of contents. If linking a library
16255 # or program results in "error TOC overflow" add -mminimal-toc to
16256 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16257 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16259 archive_cmds_CXX=''
16260 hardcode_direct_CXX=yes
16261 hardcode_direct_absolute_CXX=yes
16262 hardcode_libdir_separator_CXX=':'
16263 link_all_deplibs_CXX=yes
16264 file_list_spec_CXX='${wl}-f,'
16266 if test "$GXX" = yes; then
16267 case $host_os in aix4.[012]|aix4.[012].*)
16268 # We only want to do this on AIX 4.2 and lower, the check
16269 # below for broken collect2 doesn't work under 4.3+
16270 collect2name=`${CC} -print-prog-name=collect2`
16271 if test -f "$collect2name" &&
16272 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16274 # We have reworked collect2
16277 # We have old collect2
16278 hardcode_direct_CXX=unsupported
16279 # It fails to find uninstalled libraries when the uninstalled
16280 # path is not listed in the libpath. Setting hardcode_minus_L
16281 # to unsupported forces relinking
16282 hardcode_minus_L_CXX=yes
16283 hardcode_libdir_flag_spec_CXX='-L$libdir'
16284 hardcode_libdir_separator_CXX=
16287 shared_flag='-shared'
16288 if test "$aix_use_runtimelinking" = yes; then
16289 shared_flag="$shared_flag "'${wl}-G'
16293 if test "$host_cpu" = ia64; then
16294 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16295 # chokes on -Wl,-G. The following line is correct:
16298 if test "$aix_use_runtimelinking" = yes; then
16299 shared_flag='${wl}-G'
16301 shared_flag='${wl}-bM:SRE'
16306 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16307 # It seems that -bexpall does not export symbols beginning with
16308 # underscore (_), so it is better to generate a list of symbols to
16310 always_export_symbols_CXX=yes
16311 if test "$aix_use_runtimelinking" = yes; then
16312 # Warning - without using the other runtime loading flags (-brtl),
16313 # -berok will link without error, but may produce a broken library.
16314 allow_undefined_flag_CXX='-berok'
16315 # Determine the default libpath from the value encoded in an empty
16317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16318 /* end confdefs.h. */
16328 if ac_fn_cxx_try_link "$LINENO"; then :
16330 lt_aix_libpath_sed='
16331 /Import File Strings/,/^$/ {
16337 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16338 # Check for a 64-bit object if we didn't find anything.
16339 if test -z "$aix_libpath"; then
16340 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16343 rm -f core conftest.err conftest.$ac_objext \
16344 conftest$ac_exeext conftest.$ac_ext
16345 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16347 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16349 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"
16351 if test "$host_cpu" = ia64; then
16352 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16353 allow_undefined_flag_CXX="-z nodefs"
16354 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"
16356 # Determine the default libpath from the value encoded in an
16357 # empty executable.
16358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16359 /* end confdefs.h. */
16369 if ac_fn_cxx_try_link "$LINENO"; then :
16371 lt_aix_libpath_sed='
16372 /Import File Strings/,/^$/ {
16378 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16379 # Check for a 64-bit object if we didn't find anything.
16380 if test -z "$aix_libpath"; then
16381 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16384 rm -f core conftest.err conftest.$ac_objext \
16385 conftest$ac_exeext conftest.$ac_ext
16386 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16388 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16389 # Warning - without using the other run time loading flags,
16390 # -berok will link without error, but may produce a broken library.
16391 no_undefined_flag_CXX=' ${wl}-bernotok'
16392 allow_undefined_flag_CXX=' ${wl}-berok'
16393 if test "$with_gnu_ld" = yes; then
16394 # We only use this code for GNU lds that support --whole-archive.
16395 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16397 # Exported symbols can be pulled into shared objects from archives
16398 whole_archive_flag_spec_CXX='$convenience'
16400 archive_cmds_need_lc_CXX=yes
16401 # This is similar to how AIX traditionally builds its shared
16403 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'
16409 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16410 allow_undefined_flag_CXX=unsupported
16411 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16412 # support --undefined. This deserves some investigation. FIXME
16413 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16420 case $cc_basename in
16422 # FIXME: insert proper C++ library support
16428 cygwin* | mingw* | pw32* | cegcc*)
16429 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16430 # as there is no search path for DLLs.
16431 hardcode_libdir_flag_spec_CXX='-L$libdir'
16432 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
16433 allow_undefined_flag_CXX=unsupported
16434 always_export_symbols_CXX=no
16435 enable_shared_with_static_runtimes_CXX=yes
16437 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16438 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'
16439 # If the export-symbols file already is a .def file (1st line
16440 # is EXPORTS), use it as is; otherwise, prepend...
16441 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16442 cp $export_symbols $output_objdir/$soname.def;
16444 echo EXPORTS > $output_objdir/$soname.def;
16445 cat $export_symbols >> $output_objdir/$soname.def;
16447 $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'
16452 darwin* | rhapsody*)
16455 archive_cmds_need_lc_CXX=no
16456 hardcode_direct_CXX=no
16457 hardcode_automatic_CXX=yes
16458 hardcode_shlibpath_var_CXX=unsupported
16459 if test "$lt_cv_ld_force_load" = "yes"; then
16460 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\"`'
16462 whole_archive_flag_spec_CXX=''
16464 link_all_deplibs_CXX=yes
16465 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16466 case $cc_basename in
16467 ifort*) _lt_dar_can_shared=yes ;;
16468 *) _lt_dar_can_shared=$GCC ;;
16470 if test "$_lt_dar_can_shared" = "yes"; then
16471 output_verbose_link_cmd=func_echo_all
16472 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}"
16473 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16474 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}"
16475 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}"
16476 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16477 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}"
16478 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}"
16488 case $cc_basename in
16490 # FIXME: insert proper C++ library support
16494 # Green Hills C++ Compiler
16495 # FIXME: insert proper C++ library support
16499 # FIXME: insert proper C++ library support
16506 # C++ shared libraries reported to be fairly broken before
16512 archive_cmds_need_lc_CXX=no
16515 freebsd* | dragonfly*)
16516 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16525 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16526 link_all_deplibs_CXX=yes
16530 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16531 hardcode_libdir_separator_CXX=:
16532 export_dynamic_flag_spec_CXX='${wl}-E'
16533 hardcode_direct_CXX=yes
16534 hardcode_minus_L_CXX=yes # Not in the search PATH,
16535 # but as the default
16536 # location of the library.
16538 case $cc_basename in
16540 # FIXME: insert proper C++ library support
16544 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'
16545 # Commands to make compiler produce verbose output that lists
16546 # what "hidden" libraries, object files and flags are used when
16547 # linking a shared library.
16549 # There doesn't appear to be a way to prevent this compiler from
16550 # explicitly linking system object files so we need to strip them
16551 # from the output so that they don't get included in the library
16553 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"'
16556 if test "$GXX" = yes; then
16557 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16559 # FIXME: insert proper C++ library support
16567 if test $with_gnu_ld = no; then
16568 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16569 hardcode_libdir_separator_CXX=:
16575 export_dynamic_flag_spec_CXX='${wl}-E'
16581 hardcode_direct_CXX=no
16582 hardcode_shlibpath_var_CXX=no
16585 hardcode_direct_CXX=yes
16586 hardcode_direct_absolute_CXX=yes
16587 hardcode_minus_L_CXX=yes # Not in the search PATH,
16588 # but as the default
16589 # location of the library.
16593 case $cc_basename in
16595 # FIXME: insert proper C++ library support
16601 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16604 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16607 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16610 # Commands to make compiler produce verbose output that lists
16611 # what "hidden" libraries, object files and flags are used when
16612 # linking a shared library.
16614 # There doesn't appear to be a way to prevent this compiler from
16615 # explicitly linking system object files so we need to strip them
16616 # from the output so that they don't get included in the library
16618 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"'
16621 if test "$GXX" = yes; then
16622 if test $with_gnu_ld = no; then
16625 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16628 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16631 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16636 # FIXME: insert proper C++ library support
16644 hardcode_direct_CXX=no
16645 hardcode_shlibpath_var_CXX=no
16646 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16647 export_dynamic_flag_spec_CXX='${wl}-E'
16648 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16649 # Instead, shared libraries are loaded at an image base (0x10000000 by
16650 # default) and relocated if they conflict, which is a slow very memory
16651 # consuming and fragmenting process. To avoid this, we pick a random,
16652 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16653 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16654 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'
16655 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'
16658 case $cc_basename in
16661 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'
16663 # Archives containing C++ object files must be created using
16664 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16665 # necessary to make sure instantiated templates are included
16667 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16670 if test "$GXX" = yes; then
16671 if test "$with_gnu_ld" = no; then
16672 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16674 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
16677 link_all_deplibs_CXX=yes
16680 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16681 hardcode_libdir_separator_CXX=:
16682 inherit_rpath_CXX=yes
16685 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16686 case $cc_basename in
16688 # Kuck and Associates, Inc. (KAI) C++ Compiler
16690 # KCC will only create a shared library if the output file
16691 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16692 # to its proper name (with version) after linking.
16693 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'
16694 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'
16695 # Commands to make compiler produce verbose output that lists
16696 # what "hidden" libraries, object files and flags are used when
16697 # linking a shared library.
16699 # There doesn't appear to be a way to prevent this compiler from
16700 # explicitly linking system object files so we need to strip them
16701 # from the output so that they don't get included in the library
16703 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"'
16705 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16706 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16708 # Archives containing C++ object files must be created using
16709 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16710 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16715 # version 8.0 and above of icpc choke on multiply defined symbols
16716 # if we add $predep_objects and $postdep_objects, however 7.1 and
16717 # earlier do not add the objects themselves.
16718 case `$CC -V 2>&1` in
16720 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16721 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'
16723 *) # Version 8.0 or newer
16726 ia64*) tmp_idyn=' -i_dynamic';;
16728 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16729 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'
16732 archive_cmds_need_lc_CXX=no
16733 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16734 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16735 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16738 # Portland Group C++ compiler
16740 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16741 prelink_cmds_CXX='tpldir=Template.dir~
16743 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16744 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16745 old_archive_cmds_CXX='tpldir=Template.dir~
16747 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16748 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16750 archive_cmds_CXX='tpldir=Template.dir~
16752 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16753 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16754 archive_expsym_cmds_CXX='tpldir=Template.dir~
16756 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16757 $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'
16759 *) # Version 6 and above use weak symbols
16760 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16761 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'
16765 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16766 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16767 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'
16771 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16772 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'
16774 runpath_var=LD_RUN_PATH
16775 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16776 hardcode_libdir_separator_CXX=:
16778 # Commands to make compiler produce verbose output that lists
16779 # what "hidden" libraries, object files and flags are used when
16780 # linking a shared library.
16782 # There doesn't appear to be a way to prevent this compiler from
16783 # explicitly linking system object files so we need to strip them
16784 # from the output so that they don't get included in the library
16786 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'
16788 xl* | mpixl* | bgxl*)
16789 # IBM XL 8.0 on PPC, with GNU ld
16790 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16791 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16792 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16793 if test "x$supports_anon_versioning" = xyes; then
16794 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16795 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16796 echo "local: *; };" >> $output_objdir/$libname.ver~
16797 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16801 case `$CC -V 2>&1 | sed 5q` in
16804 no_undefined_flag_CXX=' -zdefs'
16805 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16806 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'
16807 hardcode_libdir_flag_spec_CXX='-R$libdir'
16808 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'
16809 compiler_needs_object_CXX=yes
16811 # Not sure whether something based on
16812 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16814 output_verbose_link_cmd='func_echo_all'
16816 # Archives containing C++ object files must be created using
16817 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16818 # necessary to make sure instantiated templates are included
16820 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16828 # FIXME: insert proper C++ library support
16833 # FIXME: insert proper C++ library support
16838 case $cc_basename in
16840 # FIXME: insert proper C++ library support
16844 # FIXME: insert proper C++ library support
16851 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16852 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16854 hardcode_libdir_flag_spec_CXX='-R$libdir'
16855 hardcode_direct_CXX=yes
16856 hardcode_shlibpath_var_CXX=no
16858 # Workaround some broken pre-1.5 toolchains
16859 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16867 # C++ shared libraries are fairly broken
16872 if test -f /usr/libexec/ld.so; then
16873 hardcode_direct_CXX=yes
16874 hardcode_shlibpath_var_CXX=no
16875 hardcode_direct_absolute_CXX=yes
16876 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16877 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16878 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16879 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16880 export_dynamic_flag_spec_CXX='${wl}-E'
16881 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16883 output_verbose_link_cmd=func_echo_all
16889 osf3* | osf4* | osf5*)
16890 case $cc_basename in
16892 # Kuck and Associates, Inc. (KAI) C++ Compiler
16894 # KCC will only create a shared library if the output file
16895 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16896 # to its proper name (with version) after linking.
16897 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'
16899 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16900 hardcode_libdir_separator_CXX=:
16902 # Archives containing C++ object files must be created using
16903 # the KAI C++ compiler.
16905 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16906 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16910 # Rational C++ 2.4.1
16911 # FIXME: insert proper C++ library support
16917 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16918 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'
16919 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16922 allow_undefined_flag_CXX=' -expect_unresolved \*'
16923 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'
16924 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16925 echo "-hidden">> $lib.exp~
16926 $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~
16928 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16932 hardcode_libdir_separator_CXX=:
16934 # Commands to make compiler produce verbose output that lists
16935 # what "hidden" libraries, object files and flags are used when
16936 # linking a shared library.
16938 # There doesn't appear to be a way to prevent this compiler from
16939 # explicitly linking system object files so we need to strip them
16940 # from the output so that they don't get included in the library
16942 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"'
16945 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16946 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16949 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'
16952 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16956 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16957 hardcode_libdir_separator_CXX=:
16959 # Commands to make compiler produce verbose output that lists
16960 # what "hidden" libraries, object files and flags are used when
16961 # linking a shared library.
16962 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16965 # FIXME: insert proper C++ library support
16973 # FIXME: insert proper C++ library support
16978 case $cc_basename in
16981 # FIXME: insert proper C++ library support
16986 # FIXME: insert proper C++ library support
16990 # FIXME: insert proper C++ library support
16997 case $cc_basename in
16999 # Sun C++ 4.2, 5.x and Centerline C++
17000 archive_cmds_need_lc_CXX=yes
17001 no_undefined_flag_CXX=' -zdefs'
17002 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17003 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17004 $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'
17006 hardcode_libdir_flag_spec_CXX='-R$libdir'
17007 hardcode_shlibpath_var_CXX=no
17009 solaris2.[0-5] | solaris2.[0-5].*) ;;
17011 # The compiler driver will combine and reorder linker options,
17012 # but understands `-z linker_flag'.
17013 # Supported since Solaris 2.6 (maybe 2.5.1?)
17014 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17017 link_all_deplibs_CXX=yes
17019 output_verbose_link_cmd='func_echo_all'
17021 # Archives containing C++ object files must be created using
17022 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17023 # necessary to make sure instantiated templates are included
17025 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17028 # Green Hills C++ Compiler
17029 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17031 # The C++ compiler must be used to create the archive.
17032 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17035 # GNU C++ compiler with Solaris linker
17036 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17037 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17038 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17039 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17040 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17041 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17043 # Commands to make compiler produce verbose output that lists
17044 # what "hidden" libraries, object files and flags are used when
17045 # linking a shared library.
17046 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17048 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17050 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17051 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17052 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17054 # Commands to make compiler produce verbose output that lists
17055 # what "hidden" libraries, object files and flags are used when
17056 # linking a shared library.
17057 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17060 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17062 solaris2.[0-5] | solaris2.[0-5].*) ;;
17064 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17072 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17073 no_undefined_flag_CXX='${wl}-z,text'
17074 archive_cmds_need_lc_CXX=no
17075 hardcode_shlibpath_var_CXX=no
17076 runpath_var='LD_RUN_PATH'
17078 case $cc_basename in
17080 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17081 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17084 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17085 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17090 sysv5* | sco3.2v5* | sco5v6*)
17091 # Note: We can NOT use -z defs as we might desire, because we do not
17092 # link with -lc, and that would cause any symbols used from libc to
17093 # always be unresolved, which means just about no library would
17094 # ever link correctly. If we're not using GNU ld we use -z text
17095 # though, which does catch some bad symbols but isn't as heavy-handed
17097 no_undefined_flag_CXX='${wl}-z,text'
17098 allow_undefined_flag_CXX='${wl}-z,nodefs'
17099 archive_cmds_need_lc_CXX=no
17100 hardcode_shlibpath_var_CXX=no
17101 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17102 hardcode_libdir_separator_CXX=':'
17103 link_all_deplibs_CXX=yes
17104 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17105 runpath_var='LD_RUN_PATH'
17107 case $cc_basename in
17109 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17110 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17111 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17112 '"$old_archive_cmds_CXX"
17113 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17114 '"$reload_cmds_CXX"
17117 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17118 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17124 case $cc_basename in
17126 # NonStop-UX NCC 3.20
17127 # FIXME: insert proper C++ library support
17131 # FIXME: insert proper C++ library support
17138 # FIXME: insert proper C++ library support
17143 # FIXME: insert proper C++ library support
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17149 $as_echo "$ld_shlibs_CXX" >&6; }
17150 test "$ld_shlibs_CXX" = no && can_build_shared=no
17156 ## There is no encapsulation within the following macros, do not change
17157 ## the running order or otherwise move them around unless you know exactly
17158 ## what you are doing...
17159 # Dependencies to place before and after the object being linked:
17160 predep_objects_CXX=
17161 postdep_objects_CXX=
17164 compiler_lib_search_path_CXX=
17166 cat > conftest.$ac_ext <<_LT_EOF
17170 Foo (void) { a = 0; }
17176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17177 (eval $ac_compile) 2>&5
17179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17180 test $ac_status = 0; }; then
17181 # Parse the compiler output and extract the necessary
17182 # objects, libraries and library flags.
17184 # Sentinel used to keep track of whether or not we are before
17185 # the conftest object file.
17186 pre_test_object_deps_done=no
17188 for p in `eval "$output_verbose_link_cmd"`; do
17192 # Some compilers place space between "-{L,R}" and the path.
17193 # Remove the space.
17194 if test $p = "-L" ||
17195 test $p = "-R"; then
17202 if test "$pre_test_object_deps_done" = no; then
17205 # Internal compiler library paths should come after those
17206 # provided the user. The postdeps already come after the
17207 # user supplied libs so there is no need to process them.
17208 if test -z "$compiler_lib_search_path_CXX"; then
17209 compiler_lib_search_path_CXX="${prev}${p}"
17211 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17214 # The "-l" case would never come before the object being
17215 # linked, so don't bother handling this case.
17218 if test -z "$postdeps_CXX"; then
17219 postdeps_CXX="${prev}${p}"
17221 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17227 # This assumes that the test object file only shows up
17228 # once in the compiler output.
17229 if test "$p" = "conftest.$objext"; then
17230 pre_test_object_deps_done=yes
17234 if test "$pre_test_object_deps_done" = no; then
17235 if test -z "$predep_objects_CXX"; then
17236 predep_objects_CXX="$p"
17238 predep_objects_CXX="$predep_objects_CXX $p"
17241 if test -z "$postdep_objects_CXX"; then
17242 postdep_objects_CXX="$p"
17244 postdep_objects_CXX="$postdep_objects_CXX $p"
17249 *) ;; # Ignore the rest.
17257 echo "libtool.m4: error: problem compiling CXX test program"
17260 $RM -f confest.$objext
17262 # PORTME: override above test on systems where it is broken
17265 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17266 # hack all around it, let's just trust "g++" to DTRT.
17267 predep_objects_CXX=
17268 postdep_objects_CXX=
17273 case `$CC -V 2>&1 | sed 5q` in
17277 # The more standards-conforming stlport4 library is
17278 # incompatible with the Cstd library. Avoid specifying
17279 # it if it's in CXXFLAGS. Ignore libCrun as
17280 # -library=stlport4 depends on it.
17281 case " $CXX $CXXFLAGS " in
17282 *" -library=stlport4 "*)
17283 solaris_use_stlport4=yes
17287 if test "$solaris_use_stlport4" != yes; then
17288 postdeps_CXX='-library=Cstd -library=Crun'
17295 case $cc_basename in
17297 # The more standards-conforming stlport4 library is
17298 # incompatible with the Cstd library. Avoid specifying
17299 # it if it's in CXXFLAGS. Ignore libCrun as
17300 # -library=stlport4 depends on it.
17301 case " $CXX $CXXFLAGS " in
17302 *" -library=stlport4 "*)
17303 solaris_use_stlport4=yes
17307 # Adding this requires a known-good setup of shared libraries for
17308 # Sun compiler versions before 5.6, else PIC objects from an old
17309 # archive will be linked into the output, leading to subtle bugs.
17310 if test "$solaris_use_stlport4" != yes; then
17311 postdeps_CXX='-library=Cstd -library=Crun'
17319 case " $postdeps_CXX " in
17320 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17322 compiler_lib_search_dirs_CXX=
17323 if test -n "${compiler_lib_search_path_CXX}"; then
17324 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17357 lt_prog_compiler_wl_CXX=
17358 lt_prog_compiler_pic_CXX=
17359 lt_prog_compiler_static_CXX=
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17362 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17364 # C++ specific cases for pic, static, wl, etc.
17365 if test "$GXX" = yes; then
17366 lt_prog_compiler_wl_CXX='-Wl,'
17367 lt_prog_compiler_static_CXX='-static'
17371 # All AIX code is PIC.
17372 if test "$host_cpu" = ia64; then
17373 # AIX 5 now supports IA64 processor
17374 lt_prog_compiler_static_CXX='-Bstatic'
17381 # see comment about AmigaOS4 .so support
17382 lt_prog_compiler_pic_CXX='-fPIC'
17385 # FIXME: we need at least 68020 code to build shared libraries, but
17386 # adding the `-m68020' flag to GCC prevents building anything better,
17388 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17393 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17394 # PIC is the default for these OSes.
17396 mingw* | cygwin* | os2* | pw32* | cegcc*)
17397 # This hack is so that the source file can tell whether it is being
17398 # built for inclusion in a dll (and should export symbols for example).
17399 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17400 # (--disable-auto-import) libraries
17401 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17403 darwin* | rhapsody*)
17404 # PIC is the default on this platform
17405 # Common symbols not allowed in MH_DYLIB files
17406 lt_prog_compiler_pic_CXX='-fno-common'
17409 # DJGPP does not support shared libraries at all
17410 lt_prog_compiler_pic_CXX=
17413 # PIC is the default for Haiku.
17414 # The "-static" flag exists, but is broken.
17415 lt_prog_compiler_static_CXX=
17418 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17419 # Instead, we relocate shared libraries at runtime.
17422 if test -d /usr/nec; then
17423 lt_prog_compiler_pic_CXX=-Kconform_pic
17427 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17428 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17429 # sets the default TLS model and affects inlining.
17434 lt_prog_compiler_pic_CXX='-fPIC'
17439 # QNX uses GNU C++, but need to define -shared option too, otherwise
17440 # it will coredump.
17441 lt_prog_compiler_pic_CXX='-fPIC -shared'
17444 lt_prog_compiler_pic_CXX='-fPIC'
17450 # All AIX code is PIC.
17451 if test "$host_cpu" = ia64; then
17452 # AIX 5 now supports IA64 processor
17453 lt_prog_compiler_static_CXX='-Bstatic'
17455 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17459 case $cc_basename in
17461 # Green Hills C++ Compiler
17462 # _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"
17467 case $cc_basename in
17469 lt_prog_compiler_pic_CXX='-KPIC'
17472 # Green Hills C++ Compiler
17473 lt_prog_compiler_pic_CXX='-pic'
17479 freebsd* | dragonfly*)
17480 # FreeBSD uses GNU C++
17482 hpux9* | hpux10* | hpux11*)
17483 case $cc_basename in
17485 lt_prog_compiler_wl_CXX='-Wl,'
17486 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17487 if test "$host_cpu" != ia64; then
17488 lt_prog_compiler_pic_CXX='+Z'
17492 lt_prog_compiler_wl_CXX='-Wl,'
17493 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17499 lt_prog_compiler_pic_CXX='+Z'
17508 # This is c89, which is MS Visual C++ (no shared libs)
17509 # Anyone wants to do a port?
17511 irix5* | irix6* | nonstopux*)
17512 case $cc_basename in
17514 lt_prog_compiler_wl_CXX='-Wl,'
17515 lt_prog_compiler_static_CXX='-non_shared'
17516 # CC pic flag -KPIC is the default.
17522 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17523 case $cc_basename in
17526 lt_prog_compiler_wl_CXX='--backend -Wl,'
17527 lt_prog_compiler_pic_CXX='-fPIC'
17530 # old Intel C++ for x86_64 which still supported -KPIC.
17531 lt_prog_compiler_wl_CXX='-Wl,'
17532 lt_prog_compiler_pic_CXX='-KPIC'
17533 lt_prog_compiler_static_CXX='-static'
17536 # Intel C++, used to be incompatible with GCC.
17537 # ICC 10 doesn't accept -KPIC any more.
17538 lt_prog_compiler_wl_CXX='-Wl,'
17539 lt_prog_compiler_pic_CXX='-fPIC'
17540 lt_prog_compiler_static_CXX='-static'
17543 # Portland Group C++ compiler
17544 lt_prog_compiler_wl_CXX='-Wl,'
17545 lt_prog_compiler_pic_CXX='-fpic'
17546 lt_prog_compiler_static_CXX='-Bstatic'
17550 # Make sure the PIC flag is empty. It appears that all Alpha
17551 # Linux and Compaq Tru64 Unix objects are PIC.
17552 lt_prog_compiler_pic_CXX=
17553 lt_prog_compiler_static_CXX='-non_shared'
17555 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17556 # IBM XL 8.0, 9.0 on PPC and BlueGene
17557 lt_prog_compiler_wl_CXX='-Wl,'
17558 lt_prog_compiler_pic_CXX='-qpic'
17559 lt_prog_compiler_static_CXX='-qstaticlink'
17562 case `$CC -V 2>&1 | sed 5q` in
17565 lt_prog_compiler_pic_CXX='-KPIC'
17566 lt_prog_compiler_static_CXX='-Bstatic'
17567 lt_prog_compiler_wl_CXX='-Qoption ld '
17578 case $cc_basename in
17580 lt_prog_compiler_pic_CXX='-W c,exportall'
17589 # QNX uses GNU C++, but need to define -shared option too, otherwise
17590 # it will coredump.
17591 lt_prog_compiler_pic_CXX='-fPIC -shared'
17593 osf3* | osf4* | osf5*)
17594 case $cc_basename in
17596 lt_prog_compiler_wl_CXX='--backend -Wl,'
17599 # Rational C++ 2.4.1
17600 lt_prog_compiler_pic_CXX='-pic'
17603 # Digital/Compaq C++
17604 lt_prog_compiler_wl_CXX='-Wl,'
17605 # Make sure the PIC flag is empty. It appears that all Alpha
17606 # Linux and Compaq Tru64 Unix objects are PIC.
17607 lt_prog_compiler_pic_CXX=
17608 lt_prog_compiler_static_CXX='-non_shared'
17617 case $cc_basename in
17619 # Sun C++ 4.2, 5.x and Centerline C++
17620 lt_prog_compiler_pic_CXX='-KPIC'
17621 lt_prog_compiler_static_CXX='-Bstatic'
17622 lt_prog_compiler_wl_CXX='-Qoption ld '
17625 # Green Hills C++ Compiler
17626 lt_prog_compiler_pic_CXX='-PIC'
17633 case $cc_basename in
17636 lt_prog_compiler_pic_CXX='-pic'
17637 lt_prog_compiler_static_CXX='-Bstatic'
17641 lt_prog_compiler_pic_CXX='-pic'
17647 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17648 case $cc_basename in
17650 lt_prog_compiler_wl_CXX='-Wl,'
17651 lt_prog_compiler_pic_CXX='-KPIC'
17652 lt_prog_compiler_static_CXX='-Bstatic'
17657 case $cc_basename in
17659 # NonStop-UX NCC 3.20
17660 lt_prog_compiler_pic_CXX='-KPIC'
17669 lt_prog_compiler_can_build_shared_CXX=no
17675 # For platforms which do not support PIC, -DPIC is meaningless:
17677 lt_prog_compiler_pic_CXX=
17680 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
17684 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17689 # Check to make sure the PIC flag actually works.
17691 if test -n "$lt_prog_compiler_pic_CXX"; then
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17693 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17694 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
17695 $as_echo_n "(cached) " >&6
17697 lt_cv_prog_compiler_pic_works_CXX=no
17698 ac_outfile=conftest.$ac_objext
17699 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17700 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17701 # Insert the option either (1) after the last *FLAGS variable, or
17702 # (2) before a word containing "conftest.", or (3) at the end.
17703 # Note that $ac_compile itself does not contain backslashes and begins
17704 # with a dollar sign (not a hyphen), so the echo should work correctly.
17705 # The option is referenced via a variable to avoid confusing sed.
17706 lt_compile=`echo "$ac_compile" | $SED \
17707 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17708 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17709 -e 's:$: $lt_compiler_flag:'`
17710 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17711 (eval "$lt_compile" 2>conftest.err)
17713 cat conftest.err >&5
17714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17715 if (exit $ac_status) && test -s "$ac_outfile"; then
17716 # The compiler can only warn and ignore the option if not recognized
17717 # So say no if there are warnings other than the usual output.
17718 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17720 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17721 lt_cv_prog_compiler_pic_works_CXX=yes
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17728 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17730 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17731 case $lt_prog_compiler_pic_CXX in
17733 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17736 lt_prog_compiler_pic_CXX=
17737 lt_prog_compiler_can_build_shared_CXX=no
17745 # Check to make sure the static flag actually works.
17747 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17749 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17750 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
17751 $as_echo_n "(cached) " >&6
17753 lt_cv_prog_compiler_static_works_CXX=no
17754 save_LDFLAGS="$LDFLAGS"
17755 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17756 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17757 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17758 # The linker can only warn and ignore the option if not recognized
17759 # So say no if there are warnings
17760 if test -s conftest.err; then
17761 # Append any errors to the config.log.
17762 cat conftest.err 1>&5
17763 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17764 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17765 if diff conftest.exp conftest.er2 >/dev/null; then
17766 lt_cv_prog_compiler_static_works_CXX=yes
17769 lt_cv_prog_compiler_static_works_CXX=yes
17773 LDFLAGS="$save_LDFLAGS"
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17777 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17779 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17782 lt_prog_compiler_static_CXX=
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17789 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17790 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17791 $as_echo_n "(cached) " >&6
17793 lt_cv_prog_compiler_c_o_CXX=no
17794 $RM -r conftest 2>/dev/null
17798 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17800 lt_compiler_flag="-o out/conftest2.$ac_objext"
17801 # Insert the option either (1) after the last *FLAGS variable, or
17802 # (2) before a word containing "conftest.", or (3) at the end.
17803 # Note that $ac_compile itself does not contain backslashes and begins
17804 # with a dollar sign (not a hyphen), so the echo should work correctly.
17805 lt_compile=`echo "$ac_compile" | $SED \
17806 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17808 -e 's:$: $lt_compiler_flag:'`
17809 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17810 (eval "$lt_compile" 2>out/conftest.err)
17812 cat out/conftest.err >&5
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17816 # The compiler can only warn and ignore the option if not recognized
17817 # So say no if there are warnings
17818 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17819 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17820 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17821 lt_cv_prog_compiler_c_o_CXX=yes
17826 # SGI C++ compiler will create directory out/ii_files/ for
17827 # template instantiation
17828 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17829 $RM out/* && rmdir out
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17836 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17841 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17842 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17843 $as_echo_n "(cached) " >&6
17845 lt_cv_prog_compiler_c_o_CXX=no
17846 $RM -r conftest 2>/dev/null
17850 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17852 lt_compiler_flag="-o out/conftest2.$ac_objext"
17853 # Insert the option either (1) after the last *FLAGS variable, or
17854 # (2) before a word containing "conftest.", or (3) at the end.
17855 # Note that $ac_compile itself does not contain backslashes and begins
17856 # with a dollar sign (not a hyphen), so the echo should work correctly.
17857 lt_compile=`echo "$ac_compile" | $SED \
17858 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17860 -e 's:$: $lt_compiler_flag:'`
17861 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17862 (eval "$lt_compile" 2>out/conftest.err)
17864 cat out/conftest.err >&5
17865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17866 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17868 # The compiler can only warn and ignore the option if not recognized
17869 # So say no if there are warnings
17870 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17871 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17872 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17873 lt_cv_prog_compiler_c_o_CXX=yes
17878 # SGI C++ compiler will create directory out/ii_files/ for
17879 # template instantiation
17880 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17881 $RM out/* && rmdir out
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17888 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17893 hard_links="nottested"
17894 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17895 # do not overwrite the value of need_locks provided by the user
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17897 $as_echo_n "checking if we can lock with hard links... " >&6; }
17900 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17902 ln conftest.a conftest.b 2>&5 || hard_links=no
17903 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17905 $as_echo "$hard_links" >&6; }
17906 if test "$hard_links" = no; then
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17908 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17918 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17920 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17923 # If we're using GNU nm, then we don't want the "-C" option.
17924 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17925 # Also, AIX nm treats weak defined symbols like other global defined
17926 # symbols, whereas GNU nm marks them as "W".
17927 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17928 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'
17930 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'
17934 export_symbols_cmds_CXX="$ltdll_cmds"
17936 cygwin* | mingw* | cegcc*)
17937 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17940 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17943 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17946 $as_echo "$ld_shlibs_CXX" >&6; }
17947 test "$ld_shlibs_CXX" = no && can_build_shared=no
17949 with_gnu_ld_CXX=$with_gnu_ld
17957 # Do we need to explicitly link libc?
17959 case "x$archive_cmds_need_lc_CXX" in
17961 # Assume -lc should be added
17962 archive_cmds_need_lc_CXX=yes
17964 if test "$enable_shared" = yes && test "$GCC" = yes; then
17965 case $archive_cmds_CXX in
17967 # FIXME: we may have to deal with multi-command sequences.
17970 # Test whether the compiler implicitly links with -lc since on some
17971 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17972 # to ld, don't add -lc before -lgcc.
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17974 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17975 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
17976 $as_echo_n "(cached) " >&6
17979 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17982 (eval $ac_compile) 2>&5
17984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17985 test $ac_status = 0; } 2>conftest.err; then
17988 libobjs=conftest.$ac_objext
17990 wl=$lt_prog_compiler_wl_CXX
17991 pic_flag=$lt_prog_compiler_pic_CXX
17997 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17998 allow_undefined_flag_CXX=
17999 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18000 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18003 test $ac_status = 0; }
18005 lt_cv_archive_cmds_need_lc_CXX=no
18007 lt_cv_archive_cmds_need_lc_CXX=yes
18009 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18011 cat conftest.err 1>&5
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18017 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18018 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18089 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18091 library_names_spec=
18092 libname_spec='lib$name'
18096 postuninstall_cmds=
18100 shlibpath_overrides_runpath=unknown
18102 dynamic_linker="$host_os ld.so"
18103 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18104 need_lib_prefix=unknown
18105 hardcode_into_libs=no
18107 # when you set need_version to no, make sure it does not cause -set_version
18108 # flags to be left without arguments
18109 need_version=unknown
18114 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18115 shlibpath_var=LIBPATH
18117 # AIX 3 has no versioning support, so we append a major version to the name.
18118 soname_spec='${libname}${release}${shared_ext}$major'
18125 hardcode_into_libs=yes
18126 if test "$host_cpu" = ia64; then
18127 # AIX 5 supports IA64
18128 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18129 shlibpath_var=LD_LIBRARY_PATH
18131 # With GCC up to 2.95.x, collect2 would create an import file
18132 # for dependence libraries. The import file would start with
18133 # the line `#! .'. This would cause the generated library to
18134 # depend on `.', always an invalid library. This was fixed in
18135 # development snapshots of GCC prior to 3.0.
18137 aix4 | aix4.[01] | aix4.[01].*)
18138 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18140 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18143 can_build_shared=no
18147 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18148 # soname into executable. Probably we can add versioning support to
18149 # collect2, so additional links can be useful in future.
18150 if test "$aix_use_runtimelinking" = yes; then
18151 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18152 # instead of lib<name>.a to let people know that these are not
18153 # typical AIX shared libraries.
18154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18156 # We preserve .a as extension for shared libraries through AIX4.2
18157 # and later when we are not doing run time linking.
18158 library_names_spec='${libname}${release}.a $libname.a'
18159 soname_spec='${libname}${release}${shared_ext}$major'
18161 shlibpath_var=LIBPATH
18168 # Since July 2007 AmigaOS4 officially supports .so libraries.
18169 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18173 library_names_spec='$libname.ixlibrary $libname.a'
18174 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18175 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'
18181 library_names_spec='${libname}${shared_ext}'
18182 dynamic_linker="$host_os ld.so"
18183 shlibpath_var=LIBRARY_PATH
18189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18190 soname_spec='${libname}${release}${shared_ext}$major'
18191 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18192 shlibpath_var=LD_LIBRARY_PATH
18193 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18194 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18195 # the default ld.so.conf also contains /usr/contrib/lib and
18196 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18197 # libtool to hard-code these into programs
18200 cygwin* | mingw* | pw32* | cegcc*)
18201 version_type=windows
18206 case $GCC,$host_os in
18207 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18208 library_names_spec='$libname.dll.a'
18209 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18210 postinstall_cmds='base_file=`basename \${file}`~
18211 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18212 dldir=$destdir/`dirname \$dlpath`~
18213 test -d \$dldir || mkdir -p \$dldir~
18214 $install_prog $dir/$dlname \$dldir/$dlname~
18215 chmod a+x \$dldir/$dlname~
18216 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18217 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18219 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18220 dlpath=$dir/\$dldll~
18222 shlibpath_overrides_runpath=yes
18226 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18227 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18231 # MinGW DLLs use traditional 'lib' prefix
18232 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18235 # pw32 DLLs use 'pw' prefix rather than 'lib'
18236 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18242 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18245 dynamic_linker='Win32 ld.exe'
18246 # FIXME: first we should search . and the directory the executable is in
18250 darwin* | rhapsody*)
18251 dynamic_linker="$host_os dyld"
18252 version_type=darwin
18255 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18256 soname_spec='${libname}${release}${major}$shared_ext'
18257 shlibpath_overrides_runpath=yes
18258 shlibpath_var=DYLD_LIBRARY_PATH
18259 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18261 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18269 soname_spec='${libname}${release}${shared_ext}$major'
18270 shlibpath_var=LD_LIBRARY_PATH
18277 freebsd* | dragonfly*)
18278 # DragonFly does not have aout. When/if they implement a new
18279 # versioning mechanism, adjust this.
18280 if test -x /usr/bin/objformat; then
18281 objformat=`/usr/bin/objformat`
18284 freebsd[123]*) objformat=aout ;;
18285 *) objformat=elf ;;
18288 version_type=freebsd-$objformat
18289 case $version_type in
18291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18296 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18300 shlibpath_var=LD_LIBRARY_PATH
18303 shlibpath_overrides_runpath=yes
18305 freebsd3.[01]* | freebsdelf3.[01]*)
18306 shlibpath_overrides_runpath=yes
18307 hardcode_into_libs=yes
18309 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18310 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18311 shlibpath_overrides_runpath=no
18312 hardcode_into_libs=yes
18314 *) # from 4.6 on, and DragonFly
18315 shlibpath_overrides_runpath=yes
18316 hardcode_into_libs=yes
18325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18326 soname_spec='${libname}${release}${shared_ext}$major'
18327 shlibpath_var=LD_LIBRARY_PATH
18328 hardcode_into_libs=yes
18335 dynamic_linker="$host_os runtime_loader"
18336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18337 soname_spec='${libname}${release}${shared_ext}$major'
18338 shlibpath_var=LIBRARY_PATH
18339 shlibpath_overrides_runpath=yes
18340 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18341 hardcode_into_libs=yes
18344 hpux9* | hpux10* | hpux11*)
18345 # Give a soname corresponding to the major version so that dld.sl refuses to
18346 # link against other versions.
18353 hardcode_into_libs=yes
18354 dynamic_linker="$host_os dld.so"
18355 shlibpath_var=LD_LIBRARY_PATH
18356 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18358 soname_spec='${libname}${release}${shared_ext}$major'
18359 if test "X$HPUX_IA64_MODE" = X32; then
18360 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18362 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18364 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18368 hardcode_into_libs=yes
18369 dynamic_linker="$host_os dld.sl"
18370 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18371 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18373 soname_spec='${libname}${release}${shared_ext}$major'
18374 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18375 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18379 dynamic_linker="$host_os dld.sl"
18380 shlibpath_var=SHLIB_PATH
18381 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18383 soname_spec='${libname}${release}${shared_ext}$major'
18386 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18387 postinstall_cmds='chmod 555 $lib'
18388 # or fails outright, so override atomically:
18389 install_override_mode=555
18396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18397 soname_spec='${libname}${release}${shared_ext}$major'
18398 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18399 shlibpath_var=LD_LIBRARY_PATH
18400 shlibpath_overrides_runpath=no
18401 hardcode_into_libs=yes
18404 irix5* | irix6* | nonstopux*)
18406 nonstopux*) version_type=nonstopux ;;
18408 if test "$lt_cv_prog_gnu_ld" = yes; then
18416 soname_spec='${libname}${release}${shared_ext}$major'
18417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18419 irix5* | nonstopux*)
18420 libsuff= shlibsuff=
18423 case $LD in # libtool.m4 will add one of these switches to LD
18424 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18425 libsuff= shlibsuff= libmagic=32-bit;;
18426 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18427 libsuff=32 shlibsuff=N32 libmagic=N32;;
18428 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18429 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18430 *) libsuff= shlibsuff= libmagic=never-match;;
18434 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18435 shlibpath_overrides_runpath=no
18436 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18437 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18438 hardcode_into_libs=yes
18441 # No shared lib support for Linux oldld, aout, or coff.
18442 linux*oldld* | linux*aout* | linux*coff*)
18446 # This must be Linux ELF.
18447 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18452 soname_spec='${libname}${release}${shared_ext}$major'
18453 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18454 shlibpath_var=LD_LIBRARY_PATH
18455 shlibpath_overrides_runpath=no
18457 # Some binutils ld are patched to set DT_RUNPATH
18458 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
18459 $as_echo_n "(cached) " >&6
18461 lt_cv_shlibpath_overrides_runpath=no
18462 save_LDFLAGS=$LDFLAGS
18463 save_libdir=$libdir
18464 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18465 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18467 /* end confdefs.h. */
18477 if ac_fn_cxx_try_link "$LINENO"; then :
18478 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18479 lt_cv_shlibpath_overrides_runpath=yes
18482 rm -f core conftest.err conftest.$ac_objext \
18483 conftest$ac_exeext conftest.$ac_ext
18484 LDFLAGS=$save_LDFLAGS
18485 libdir=$save_libdir
18489 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18491 # This implies no fast_install, which is unacceptable.
18492 # Some rework will be needed to allow for fast_install
18493 # before this can be enabled.
18494 hardcode_into_libs=yes
18496 # Add ABI-specific directories to the system library path.
18497 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18499 # Append ld.so.conf contents to the search path
18500 if test -f /etc/ld.so.conf; then
18501 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' ' '`
18502 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18506 # We used to test for /lib/ld.so.1 and disable shared libraries on
18507 # powerpc, because MkLinux only supported shared libraries with the
18508 # GNU dynamic linker. Since this was broken with cross compilers,
18509 # most powerpc-linux boxes support dynamic linking these days and
18510 # people can always --disable-shared, the test was removed, and we
18511 # assume the GNU/Linux dynamic linker is in use.
18512 dynamic_linker='GNU/Linux ld.so'
18519 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18521 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18522 dynamic_linker='NetBSD (a.out) ld.so'
18524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18525 soname_spec='${libname}${release}${shared_ext}$major'
18526 dynamic_linker='NetBSD ld.elf_so'
18528 shlibpath_var=LD_LIBRARY_PATH
18529 shlibpath_overrides_runpath=yes
18530 hardcode_into_libs=yes
18535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18536 shlibpath_var=LD_LIBRARY_PATH
18537 shlibpath_overrides_runpath=yes
18544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18545 soname_spec='${libname}${release}${shared_ext}$major'
18546 shlibpath_var=LD_LIBRARY_PATH
18547 shlibpath_overrides_runpath=no
18548 hardcode_into_libs=yes
18549 dynamic_linker='ldqnx.so'
18554 sys_lib_dlsearch_path_spec="/usr/lib"
18556 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18558 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18559 *) need_version=no ;;
18561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18562 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18563 shlibpath_var=LD_LIBRARY_PATH
18564 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18566 openbsd2.[89] | openbsd2.[89].*)
18567 shlibpath_overrides_runpath=no
18570 shlibpath_overrides_runpath=yes
18574 shlibpath_overrides_runpath=yes
18579 libname_spec='$name'
18582 library_names_spec='$libname${shared_ext} $libname.a'
18583 dynamic_linker='OS/2 ld.exe'
18584 shlibpath_var=LIBPATH
18587 osf3* | osf4* | osf5*)
18591 soname_spec='${libname}${release}${shared_ext}$major'
18592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18593 shlibpath_var=LD_LIBRARY_PATH
18594 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18595 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18607 soname_spec='${libname}${release}${shared_ext}$major'
18608 shlibpath_var=LD_LIBRARY_PATH
18609 shlibpath_overrides_runpath=yes
18610 hardcode_into_libs=yes
18611 # ldd complains unless libraries are executable
18612 postinstall_cmds='chmod +x $lib'
18617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18618 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18619 shlibpath_var=LD_LIBRARY_PATH
18620 shlibpath_overrides_runpath=yes
18621 if test "$with_gnu_ld" = yes; then
18629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18630 soname_spec='${libname}${release}${shared_ext}$major'
18631 shlibpath_var=LD_LIBRARY_PATH
18632 case $host_vendor in
18634 shlibpath_overrides_runpath=no
18636 runpath_var=LD_RUN_PATH
18644 shlibpath_overrides_runpath=no
18645 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18651 if test -d /usr/nec ;then
18653 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18654 soname_spec='$libname${shared_ext}.$major'
18655 shlibpath_var=LD_LIBRARY_PATH
18659 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18660 version_type=freebsd-elf
18663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18664 soname_spec='${libname}${release}${shared_ext}$major'
18665 shlibpath_var=LD_LIBRARY_PATH
18666 shlibpath_overrides_runpath=yes
18667 hardcode_into_libs=yes
18668 if test "$with_gnu_ld" = yes; then
18669 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18671 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18674 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18678 sys_lib_dlsearch_path_spec='/usr/lib'
18682 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18687 shlibpath_var=LD_LIBRARY_PATH
18688 shlibpath_overrides_runpath=no
18689 hardcode_into_libs=yes
18694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18695 soname_spec='${libname}${release}${shared_ext}$major'
18696 shlibpath_var=LD_LIBRARY_PATH
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18704 $as_echo "$dynamic_linker" >&6; }
18705 test "$dynamic_linker" = no && can_build_shared=no
18707 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18708 if test "$GCC" = yes; then
18709 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18712 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18713 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18715 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18716 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18757 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18758 hardcode_action_CXX=
18759 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18760 test -n "$runpath_var_CXX" ||
18761 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18763 # We can hardcode non-existent directories.
18764 if test "$hardcode_direct_CXX" != no &&
18765 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18766 # have to relink, otherwise we might link with an installed library
18767 # when we should be linking with a yet-to-be-installed one
18768 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18769 test "$hardcode_minus_L_CXX" != no; then
18770 # Linking always hardcodes the temporary library directory.
18771 hardcode_action_CXX=relink
18773 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18774 hardcode_action_CXX=immediate
18777 # We cannot hardcode anything, or else we can only hardcode existing
18779 hardcode_action_CXX=unsupported
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18782 $as_echo "$hardcode_action_CXX" >&6; }
18784 if test "$hardcode_action_CXX" = relink ||
18785 test "$inherit_rpath_CXX" = yes; then
18786 # Fast installation is not supported
18787 enable_fast_install=no
18788 elif test "$shlibpath_overrides_runpath" = yes ||
18789 test "$enable_shared" = no; then
18790 # Fast installation is not necessary
18791 enable_fast_install=needless
18800 fi # test -n "$compiler"
18806 with_gnu_ld=$lt_save_with_gnu_ld
18807 lt_cv_path_LDCXX=$lt_cv_path_LD
18808 lt_cv_path_LD=$lt_save_path_LD
18809 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18810 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18811 fi # test "$_lt_caught_CXX_error" != yes
18814 ac_cpp='$CPP $CPPFLAGS'
18815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18831 ac_config_commands="$ac_config_commands libtool"
18836 # Only expand once:
18842 # Configure libltdl
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
18851 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
18852 if test "${libltdl_cv_shlibext+set}" = set; then :
18853 $as_echo_n "(cached) " >&6
18857 eval libltdl_cv_shlibext=$shrext_cmds
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
18861 $as_echo "$libltdl_cv_shlibext" >&6; }
18862 if test -n "$libltdl_cv_shlibext"; then
18864 cat >>confdefs.h <<_ACEOF
18865 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
18870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
18871 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
18872 if test "${lt_cv_module_path_var+set}" = set; then :
18873 $as_echo_n "(cached) " >&6
18875 lt_cv_module_path_var="$shlibpath_var"
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
18878 $as_echo "$lt_cv_module_path_var" >&6; }
18879 if test -n "$lt_cv_module_path_var"; then
18881 cat >>confdefs.h <<_ACEOF
18882 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
18888 $as_echo_n "checking for the default library search path... " >&6; }
18889 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
18890 $as_echo_n "(cached) " >&6
18892 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
18895 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18896 if test -n "$lt_cv_sys_dlsearch_path"; then
18898 for dir in $lt_cv_sys_dlsearch_path; do
18899 if test -z "$sys_dlsearch_path"; then
18900 sys_dlsearch_path="$dir"
18902 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18906 cat >>confdefs.h <<_ACEOF
18907 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18917 ac_cpp='$CPP $CPPFLAGS'
18918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18925 $as_echo_n "checking for library containing dlopen... " >&6; }
18926 if test "${ac_cv_search_dlopen+set}" = set; then :
18927 $as_echo_n "(cached) " >&6
18929 ac_func_search_save_LIBS=$LIBS
18930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18931 /* end confdefs.h. */
18933 /* Override any GCC internal prototype to avoid an error.
18934 Use char because int might match the return type of a GCC
18935 builtin and then its argument prototype would still apply. */
18948 for ac_lib in '' dl; do
18949 if test -z "$ac_lib"; then
18950 ac_res="none required"
18953 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18955 if ac_fn_c_try_link "$LINENO"; then :
18956 ac_cv_search_dlopen=$ac_res
18958 rm -f core conftest.err conftest.$ac_objext \
18960 if test "${ac_cv_search_dlopen+set}" = set; then :
18964 if test "${ac_cv_search_dlopen+set}" = set; then :
18967 ac_cv_search_dlopen=no
18969 rm conftest.$ac_ext
18970 LIBS=$ac_func_search_save_LIBS
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18973 $as_echo "$ac_cv_search_dlopen" >&6; }
18974 ac_res=$ac_cv_search_dlopen
18975 if test "$ac_res" != no; then :
18976 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18978 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
18980 if test "$ac_cv_search_dlopen" != "none required" ; then
18981 LIBADD_DLOPEN="-ldl"
18983 libltdl_cv_lib_dl_dlopen="yes"
18984 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18987 /* end confdefs.h. */
18989 # include <dlfcn.h>
19000 if ac_fn_c_try_link "$LINENO"; then :
19002 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19004 libltdl_cv_func_dlopen="yes"
19005 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19008 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19009 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
19010 $as_echo_n "(cached) " >&6
19012 ac_check_lib_save_LIBS=$LIBS
19013 LIBS="-lsvld $LIBS"
19014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19015 /* end confdefs.h. */
19017 /* Override any GCC internal prototype to avoid an error.
19018 Use char because int might match the return type of a GCC
19019 builtin and then its argument prototype would still apply. */
19032 if ac_fn_c_try_link "$LINENO"; then :
19033 ac_cv_lib_svld_dlopen=yes
19035 ac_cv_lib_svld_dlopen=no
19037 rm -f core conftest.err conftest.$ac_objext \
19038 conftest$ac_exeext conftest.$ac_ext
19039 LIBS=$ac_check_lib_save_LIBS
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19042 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19043 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
19045 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19047 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19048 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19052 rm -f core conftest.err conftest.$ac_objext \
19053 conftest$ac_exeext conftest.$ac_ext
19056 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19058 lt_save_LIBS="$LIBS"
19059 LIBS="$LIBS $LIBADD_DLOPEN"
19060 for ac_func in dlerror
19062 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19063 if test "x$ac_cv_func_dlerror" = x""yes; then :
19064 cat >>confdefs.h <<_ACEOF
19065 #define HAVE_DLERROR 1
19071 LIBS="$lt_save_LIBS"
19076 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19077 if test "x$ac_cv_func_shl_load" = x""yes; then :
19079 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19081 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19084 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19085 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
19086 $as_echo_n "(cached) " >&6
19088 ac_check_lib_save_LIBS=$LIBS
19090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19091 /* end confdefs.h. */
19093 /* Override any GCC internal prototype to avoid an error.
19094 Use char because int might match the return type of a GCC
19095 builtin and then its argument prototype would still apply. */
19103 return shl_load ();
19108 if ac_fn_c_try_link "$LINENO"; then :
19109 ac_cv_lib_dld_shl_load=yes
19111 ac_cv_lib_dld_shl_load=no
19113 rm -f core conftest.err conftest.$ac_objext \
19114 conftest$ac_exeext conftest.$ac_ext
19115 LIBS=$ac_check_lib_save_LIBS
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19118 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19119 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
19121 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19123 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19124 LIBADD_SHL_LOAD="-ldld"
19133 # We only want this for pre-Mac OS X 10.4.
19134 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19135 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
19137 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
19139 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19144 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19146 cygwin* | mingw* | os2* | pw32*)
19147 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19149 if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19155 cat >>confdefs.h <<_ACEOF
19156 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
19159 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19164 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19165 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
19166 $as_echo_n "(cached) " >&6
19168 ac_check_lib_save_LIBS=$LIBS
19170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19171 /* end confdefs.h. */
19173 /* Override any GCC internal prototype to avoid an error.
19174 Use char because int might match the return type of a GCC
19175 builtin and then its argument prototype would still apply. */
19183 return dld_link ();
19188 if ac_fn_c_try_link "$LINENO"; then :
19189 ac_cv_lib_dld_dld_link=yes
19191 ac_cv_lib_dld_dld_link=no
19193 rm -f core conftest.err conftest.$ac_objext \
19194 conftest$ac_exeext conftest.$ac_ext
19195 LIBS=$ac_check_lib_save_LIBS
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19198 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19199 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
19201 $as_echo "#define HAVE_DLD 1" >>confdefs.h
19203 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19210 if test -n "$LT_DLLOADERS"
19212 for lt_loader in $LT_DLLOADERS; do
19213 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19216 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
19221 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19225 ac_cpp='$CPP $CPPFLAGS'
19226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
19232 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
19233 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
19234 $as_echo_n "(cached) " >&6
19236 lt_cv_sys_symbol_underscore=no
19237 cat > conftest.$ac_ext <<_LT_EOF
19238 void nm_test_func(){}
19239 int main(){nm_test_func;return 0;}
19241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19242 (eval $ac_compile) 2>&5
19244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19245 test $ac_status = 0; }; then
19246 # Now try to grab the symbols.
19247 ac_nlist=conftest.nm
19248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
19249 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19252 test $ac_status = 0; } && test -s "$ac_nlist"; then
19253 # See whether the symbols have a leading underscore.
19254 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19255 lt_cv_sys_symbol_underscore=yes
19257 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19260 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19264 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19267 echo "configure: failed program was:" >&5
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
19274 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19275 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19278 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19279 if test x"$libltdl_cv_func_dlopen" = xyes ||
19280 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
19282 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
19283 if test "${libltdl_cv_need_uscore+set}" = set; then :
19284 $as_echo_n "(cached) " >&6
19286 libltdl_cv_need_uscore=unknown
19288 LIBS="$LIBS $LIBADD_DLOPEN"
19289 if test "$cross_compiling" = yes; then :
19290 libltdl_cv_need_uscore=cross
19292 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19293 lt_status=$lt_dlunknown
19294 cat > conftest.$ac_ext <<_LT_EOF
19295 #line $LINENO "configure"
19296 #include "confdefs.h"
19305 # define LT_DLGLOBAL RTLD_GLOBAL
19308 # define LT_DLGLOBAL DL_GLOBAL
19310 # define LT_DLGLOBAL 0
19314 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19315 find out it does not work in some platform. */
19316 #ifndef LT_DLLAZY_OR_NOW
19318 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19321 # define LT_DLLAZY_OR_NOW DL_LAZY
19324 # define LT_DLLAZY_OR_NOW RTLD_NOW
19327 # define LT_DLLAZY_OR_NOW DL_NOW
19329 # define LT_DLLAZY_OR_NOW 0
19336 /* When -fvisbility=hidden is used, assume the code has been annotated
19337 correspondingly for the symbols needed. */
19338 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19339 void fnord () __attribute__((visibility("default")));
19342 void fnord () { int i=42; }
19345 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19346 int status = $lt_dlunknown;
19350 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19353 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19354 else puts (dlerror ());
19356 /* dlclose (self); */
19364 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19365 (eval $ac_link) 2>&5
19367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19368 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19369 (./conftest; exit; ) >&5 2>/dev/null
19371 case x$lt_status in
19372 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19373 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19374 x$lt_dlunknown|x*) ;;
19377 # compilation failed
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
19387 $as_echo "$libltdl_cv_need_uscore" >&6; }
19391 if test x"$libltdl_cv_need_uscore" = xyes; then
19393 $as_echo "#define NEED_USCORE 1" >>confdefs.h
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
19398 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
19399 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
19400 $as_echo_n "(cached) " >&6
19402 # PORTME does your system automatically load deplibs for dlopen?
19403 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19404 # For now, we just catch OSes we know something about -- in the
19405 # future, we'll try test this programmatically.
19406 lt_cv_sys_dlopen_deplibs=unknown
19408 aix3*|aix4.1.*|aix4.2.*)
19409 # Unknown whether this is true for these versions of AIX, but
19410 # we want this `case' here to explicitly catch those versions.
19411 lt_cv_sys_dlopen_deplibs=unknown
19414 lt_cv_sys_dlopen_deplibs=yes
19419 lt_cv_sys_dlopen_deplibs=no
19424 # Assuming the user has installed a libdl from somewhere, this is true
19425 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19426 lt_cv_sys_dlopen_deplibs=yes
19428 freebsd* | dragonfly*)
19429 lt_cv_sys_dlopen_deplibs=yes
19431 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
19432 # GNU and its variants, using gnu ld.so (Glibc)
19433 lt_cv_sys_dlopen_deplibs=yes
19436 lt_cv_sys_dlopen_deplibs=yes
19439 lt_cv_sys_dlopen_deplibs=yes
19441 irix[12345]*|irix6.[01]*)
19442 # Catch all versions of IRIX before 6.2, and indicate that we don't
19443 # know how it worked for any of those versions.
19444 lt_cv_sys_dlopen_deplibs=unknown
19447 # The case above catches anything before 6.2, and it's known that
19448 # at 6.2 and later dlopen does load deplibs.
19449 lt_cv_sys_dlopen_deplibs=yes
19452 lt_cv_sys_dlopen_deplibs=yes
19455 lt_cv_sys_dlopen_deplibs=yes
19458 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19459 # it did *not* use an RPATH in a shared library to find objects the
19460 # library depends on, so we explicitly say `no'.
19461 lt_cv_sys_dlopen_deplibs=no
19463 osf5.0|osf5.0a|osf5.1)
19464 # dlopen *does* load deplibs and with the right loader patch applied
19465 # it even uses RPATH in a shared library to search for shared objects
19466 # that the library depends on, but there's no easy way to know if that
19467 # patch is installed. Since this is the case, all we can really
19468 # say is unknown -- it depends on the patch being installed. If
19469 # it is, this changes to `yes'. Without it, it would be `no'.
19470 lt_cv_sys_dlopen_deplibs=unknown
19473 # the two cases above should catch all versions of osf <= 5.1. Read
19474 # the comments above for what we know about them.
19475 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19476 # is used to find them so we can finally say `yes'.
19477 lt_cv_sys_dlopen_deplibs=yes
19480 lt_cv_sys_dlopen_deplibs=yes
19483 lt_cv_sys_dlopen_deplibs=yes
19485 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19486 libltdl_cv_sys_dlopen_deplibs=yes
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
19492 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19493 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19495 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
19501 for ac_header in argz.h
19503 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19505 if test "x$ac_cv_header_argz_h" = x""yes; then :
19506 cat >>confdefs.h <<_ACEOF
19507 #define HAVE_ARGZ_H 1
19515 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
19519 if test "x$ac_cv_type_error_t" = x""yes; then :
19521 cat >>confdefs.h <<_ACEOF
19522 #define HAVE_ERROR_T 1
19528 $as_echo "#define error_t int" >>confdefs.h
19531 $as_echo "#define __error_t_defined 1" >>confdefs.h
19537 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19538 argz_next argz_stringify
19540 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19541 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19542 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19543 cat >>confdefs.h <<_ACEOF
19544 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19550 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19556 if test -z "$ARGZ_H"; then :
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
19558 $as_echo_n "checking if argz actually works... " >&6; }
19559 if test "${lt_cv_sys_argz_works+set}" = set; then :
19560 $as_echo_n "(cached) " >&6
19562 case $host_os in #(
19564 lt_cv_sys_argz_works=no
19565 if test "$cross_compiling" != no; then
19566 lt_cv_sys_argz_works="guessing no"
19568 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19571 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19576 if test "$lt_os_major" -gt 1 \
19577 || { test "$lt_os_major" -eq 1 \
19578 && { test "$lt_os_minor" -gt 5 \
19579 || { test "$lt_os_minor" -eq 5 \
19580 && test "$lt_os_micro" -gt 24; }; }; }; then
19581 lt_cv_sys_argz_works=yes
19585 *) lt_cv_sys_argz_works=yes ;;
19588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
19589 $as_echo "$lt_cv_sys_argz_works" >&6; }
19590 if test $lt_cv_sys_argz_works = yes; then :
19592 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
19598 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
19606 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
19607 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
19608 $as_echo_n "(cached) " >&6
19610 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19611 libltdl_cv_preloaded_symbols=yes
19613 libltdl_cv_preloaded_symbols=no
19617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
19618 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19619 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19621 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
19637 # Check whether --with-included_ltdl was given.
19638 if test "${with_included_ltdl+set}" = set; then :
19639 withval=$with_included_ltdl;
19643 if test "x$with_included_ltdl" != xyes; then
19644 # We are not being forced to use the included libltdl sources, so
19645 # decide whether there is a useful installed version we can use.
19646 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
19649 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19650 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
19653 if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
19655 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
19656 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
19657 $as_echo_n "(cached) " >&6
19659 ac_check_lib_save_LIBS=$LIBS
19660 LIBS="-lltdl $LIBS"
19661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19662 /* end confdefs.h. */
19664 /* Override any GCC internal prototype to avoid an error.
19665 Use char because int might match the return type of a GCC
19666 builtin and then its argument prototype would still apply. */
19670 char lt_dladvise_preload ();
19674 return lt_dladvise_preload ();
19679 if ac_fn_c_try_link "$LINENO"; then :
19680 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19682 ac_cv_lib_ltdl_lt_dladvise_preload=no
19684 rm -f core conftest.err conftest.$ac_objext \
19685 conftest$ac_exeext conftest.$ac_ext
19686 LIBS=$ac_check_lib_save_LIBS
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
19689 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
19690 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
19691 with_included_ltdl=no
19693 with_included_ltdl=yes
19697 with_included_ltdl=yes
19701 with_included_ltdl=yes
19710 # Check whether --with-ltdl_include was given.
19711 if test "${with_ltdl_include+set}" = set; then :
19712 withval=$with_ltdl_include;
19716 if test -n "$with_ltdl_include"; then
19717 if test -f "$with_ltdl_include/ltdl.h"; then :
19719 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
19722 with_ltdl_include=no
19726 # Check whether --with-ltdl_lib was given.
19727 if test "${with_ltdl_lib+set}" = set; then :
19728 withval=$with_ltdl_lib;
19732 if test -n "$with_ltdl_lib"; then
19733 if test -f "$with_ltdl_lib/libltdl.la"; then :
19735 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
19741 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19743 case $enable_ltdl_convenience in
19744 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
19745 "") enable_ltdl_convenience=yes
19746 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19748 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19750 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19756 # For backwards non-gettext consistent compatibility...
19757 INCLTDL="$LTDLINCL"
19762 # If the included ltdl is not to be used, then use the
19763 # preinstalled libltdl we found.
19765 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
19772 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
19774 *) with_included_ltdl=no
19775 LIBLTDL="-L$with_ltdl_lib -lltdl"
19777 LTDLINCL="-I$with_ltdl_include"
19780 INCLTDL="$LTDLINCL"
19782 # Report our decision...
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
19784 $as_echo_n "checking where to find libltdl headers... " >&6; }
19785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
19786 $as_echo "$LTDLINCL" >&6; }
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
19788 $as_echo_n "checking where to find libltdl library... " >&6; }
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
19790 $as_echo "$LIBLTDL" >&6; }
19794 # Check whether --enable-ltdl-install was given.
19795 if test "${enable_ltdl_install+set}" = set; then :
19796 enableval=$enable_ltdl_install;
19800 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19802 *) enable_ltdl_convenience=yes ;;
19805 if test x"${enable_ltdl_install-no}" != xno; then
19807 INSTALL_LTDL_FALSE='#'
19809 INSTALL_LTDL_TRUE='#'
19810 INSTALL_LTDL_FALSE=
19813 if test x"${enable_ltdl_convenience-no}" != xno; then
19814 CONVENIENCE_LTDL_TRUE=
19815 CONVENIENCE_LTDL_FALSE='#'
19817 CONVENIENCE_LTDL_TRUE='#'
19818 CONVENIENCE_LTDL_FALSE=
19826 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19827 # the user used. This is so that ltdl.h can pick up the parent projects
19828 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
19829 # definitions required by ltdl.c.
19830 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19834 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
19836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19837 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19839 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19840 cat >>confdefs.h <<_ACEOF
19841 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19849 for ac_func in closedir opendir readdir
19851 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19852 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19853 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19854 cat >>confdefs.h <<_ACEOF
19855 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19861 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19866 for ac_func in strlcat strlcpy
19868 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19869 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19870 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19871 cat >>confdefs.h <<_ACEOF
19872 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19878 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19885 cat >>confdefs.h <<_ACEOF
19886 #define LT_LIBEXT "$libext"
19891 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19900 # Only expand once:
19904 # Check to see if building shared libraries
19905 libtool_build_shared_libs='no'
19906 if test "$enable_shared" = 'yes'; then
19907 libtool_build_shared_libs='yes'
19910 # Check to see if building static libraries
19911 libtool_build_static_libs='no'
19912 if test "$enable_static" = 'yes'; then
19913 libtool_build_static_libs='yes'
19916 if test "${libtool_build_shared_libs}" = 'yes'; then
19917 WITH_SHARED_LIBS_TRUE=
19918 WITH_SHARED_LIBS_FALSE='#'
19920 WITH_SHARED_LIBS_TRUE='#'
19921 WITH_SHARED_LIBS_FALSE=
19925 # Enable support for building loadable modules
19928 # Check whether --with-modules was given.
19929 if test "${with_modules+set}" = set; then :
19930 withval=$with_modules; with_modules=$withval
19936 # Only allow building loadable modules if we are building shared libraries
19937 if test "$with_modules" != 'no' ; then
19938 if test "$libtool_build_shared_libs" = 'no'; then
19939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
19940 $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19944 if test "$with_modules" != 'no'; then
19946 $as_echo "#define BUILD_MODULES 1" >>confdefs.h
19949 if test "$with_modules" != 'no'; then
19951 WITH_MODULES_FALSE='#'
19953 WITH_MODULES_TRUE='#'
19954 WITH_MODULES_FALSE=
19958 # Enable building/use of libltdl if we are building shared libraries regardless
19959 # of whether modules are built or not.
19961 if test "$libtool_build_shared_libs" != 'no'; then
19965 if test "$with_ltdl" != 'no'; then
19967 WITH_LTDL_FALSE='#'
19973 if test "$with_ltdl" != 'no'; then
19975 $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
19979 if test X"$enable_shared" = Xyes; then
19980 DLLDFLAGS=-export-dynamic
19985 # Enable build using delegate libraries built in subdirectories rather than installed
19986 # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
19987 # Check whether --enable-delegate-build was given.
19988 if test "${enable_delegate_build+set}" = set; then :
19989 enableval=$enable_delegate_build; enable_delegate_build=$enableval
19991 enable_delegate_build='no'
19995 # Check whether --enable-deprecated was given.
19996 if test "${enable_deprecated+set}" = set; then :
19997 enableval=$enable_deprecated; enable_deprecated=$enableval
19999 enable_deprecated='no'
20003 if test "$enable_deprecated" = 'yes'; then
20005 $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
20008 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20011 # Build a version of ImageMagick which operates uninstalled.
20012 # Used to build distributions located via MAGICK_HOME / executable path
20013 # Check whether --enable-installed was given.
20014 if test "${enable_installed+set}" = set; then :
20015 enableval=$enable_installed; enable_installed=$enableval
20017 enable_installed='yes'
20021 if test "$enable_installed" = 'yes'; then
20023 $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
20026 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20029 # Permit enciphering and deciphering image pixels.
20030 # Check whether --enable-cipher was given.
20031 if test "${enable_cipher+set}" = set; then :
20032 enableval=$enable_cipher; enable_cipher=$enableval
20034 enable_cipher='yes'
20038 if test "$enable_cipher" = 'yes'; then
20040 $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
20044 # Build an embeddable version of ImageMagick.
20045 # Check whether --enable-embeddable was given.
20046 if test "${enable_embeddable+set}" = set; then :
20047 enableval=$enable_embeddable; enable_embeddable=$enableval
20049 enable_embeddable='no'
20053 if test "$enable_embeddable" = 'yes'; then
20055 $as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
20059 # Build a high dynamic range version of ImageMagick.
20060 # Check whether --enable-hdri was given.
20061 if test "${enable_hdri+set}" = set; then :
20062 enableval=$enable_hdri; enable_hdri=$enableval
20069 if test "$enable_hdri" = 'yes'; then
20072 $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
20074 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
20077 # Build a version of ImageMagick with assert statements.
20078 # Check whether --enable-assert was given.
20079 if test "${enable_assert+set}" = set; then :
20080 enableval=$enable_assert; enable_assert=$enableval
20082 enable_assert='yes'
20086 if test "$enable_assert" = 'no'; then
20088 $as_echo "#define NDEBUG 1" >>confdefs.h
20092 # Add configure option --enable-maintainer-mode which enables dependency
20093 # checking and generation useful to package maintainers. This is made an
20094 # option to avoid confusing end users.
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20097 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20098 # Check whether --enable-maintainer-mode was given.
20099 if test "${enable_maintainer_mode+set}" = set; then :
20100 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20102 USE_MAINTAINER_MODE=no
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20106 $as_echo "$USE_MAINTAINER_MODE" >&6; }
20107 if test $USE_MAINTAINER_MODE = yes; then
20108 MAINTAINER_MODE_TRUE=
20109 MAINTAINER_MODE_FALSE='#'
20111 MAINTAINER_MODE_TRUE='#'
20112 MAINTAINER_MODE_FALSE=
20115 MAINT=$MAINTAINER_MODE_TRUE
20120 # Enable ccmalloc memory debugging support
20121 # Check whether --enable-ccmalloc was given.
20122 if test "${enable_ccmalloc+set}" = set; then :
20123 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20125 enable_ccmalloc='no'
20129 # Enable Electric Fence memory debugging support
20130 # Check whether --enable-efence was given.
20131 if test "${enable_efence+set}" = set; then :
20132 enableval=$enable_efence; enable_efence=$enableval
20138 # Enable prof-based profiling support
20139 # Check whether --enable-prof was given.
20140 if test "${enable_prof+set}" = set; then :
20141 enableval=$enable_prof; enable_prof=$enableval
20147 # Enable gprof-based profiling support
20148 # Check whether --enable-gprof was given.
20149 if test "${enable_gprof+set}" = set; then :
20150 enableval=$enable_gprof; enable_gprof=$enableval
20156 # Enable gcov-based profiling support
20157 # Check whether --enable-gcov was given.
20158 if test "${enable_gcov+set}" = set; then :
20159 enableval=$enable_gcov; enable_gcov=$enableval
20165 enable_profiling='no'
20166 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20167 enable_profiling='yes'
20168 if test "$libtool_build_shared_libs" = 'yes'; then
20169 echo "Warning: Can not profile code using shared libraries"
20173 # Magick API method prefix
20175 # Check whether --with-method-prefix was given.
20176 if test "${with_method_prefix+set}" = set; then :
20177 withval=$with_method_prefix; with_method_prefix=$enableval
20179 with_method_prefix=''
20183 if test "$with_method_prefix" != ''; then
20185 cat >>confdefs.h <<_ACEOF
20186 #define NAMESPACE_PREFIX $with_method_prefix
20191 # Number of bits in a Quantum
20193 # Check whether --with-quantum-depth was given.
20194 if test "${with_quantum_depth+set}" = set; then :
20195 withval=$with_quantum_depth; with_quantum_depth=$withval
20197 with_quantum_depth=16
20201 if test "$with_quantum_depth" != '8'; then
20202 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20205 case "${with_quantum_depth}" in
20210 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
20212 if test "$enable_hdri" = 'yes'; then
20213 with_quantum_depth=16
20215 QUANTUM_DEPTH="$with_quantum_depth"
20217 cat >>confdefs.h <<_ACEOF
20218 #define QUANTUM_DEPTH $QUANTUM_DEPTH
20222 # Set pixel cache threshold
20224 # Check whether --with-cache was given.
20225 if test "${with_cache+set}" = set; then :
20226 withval=$with_cache; with_cache=$withval
20232 if test "$with_cache" != ''; then
20234 cat >>confdefs.h <<_ACEOF
20235 #define PixelCacheThreshold $with_cache
20238 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20241 # Disable/Enable support for full delegate paths
20243 # Check whether --with-frozenpaths was given.
20244 if test "${with_frozenpaths+set}" = set; then :
20245 withval=$with_frozenpaths; with_frozenpaths=$withval
20247 with_frozenpaths='no'
20251 # Enable build/install of Magick++
20253 # Check whether --with-magick-plus-plus was given.
20254 if test "${with_magick_plus_plus+set}" = set; then :
20255 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20257 with_magick_plus_plus='yes'
20261 # Disable build/install of PerlMagick.
20263 # Check whether --with-perl was given.
20264 if test "${with_perl+set}" = set; then :
20265 withval=$with_perl; with_perl=$withval
20271 # Options to pass when configuring PerlMagick
20273 # Check whether --with-perl-options was given.
20274 if test "${with_perl_options+set}" = set; then :
20275 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
20280 # Enable umem, object-caching memory allocation library.
20282 # Check whether --with-umem was given.
20283 if test "${with_umem+set}" = set; then :
20284 withval=$with_umem; with_umem=$withval
20289 if test "$with_umem" != 'yes' ; then
20290 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20294 # Specify path to shared libstdc++ if not in normal location
20297 # Check whether --with-libstdc was given.
20298 if test "${with_libstdc+set}" = set; then :
20299 withval=$with_libstdc; with_libstdc=$withval
20305 if test "$with_libstdc" != ''; then
20306 if test -d "$with_libstdc"; then
20307 LIBSTDCLDFLAGS="-L$with_libstdc"
20312 # Does gcc required -traditional?
20313 if test $ac_cv_c_compiler_gnu = yes; then
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
20315 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
20316 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
20317 $as_echo_n "(cached) " >&6
20319 ac_pattern="Autoconf.*'x'"
20320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20321 /* end confdefs.h. */
20325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20326 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20327 ac_cv_prog_gcc_traditional=yes
20329 ac_cv_prog_gcc_traditional=no
20334 if test $ac_cv_prog_gcc_traditional = no; then
20335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20336 /* end confdefs.h. */
20337 #include <termio.h>
20340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20341 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20342 ac_cv_prog_gcc_traditional=yes
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
20349 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20350 if test $ac_cv_prog_gcc_traditional = yes; then
20351 CC="$CC -traditional"
20358 # Set defines required to build DLLs and modules using MinGW
20361 # These options are set for multi-thread DLL module build
20362 # libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20364 # executable/Magick++: _DLL _MAGICKMOD_
20365 MODULE_EXTRA_CPPFLAGS=''
20366 LIBRARY_EXTRA_CPPFLAGS=''
20367 if test "${native_win32_build}" = 'yes'; then
20368 if test "${libtool_build_shared_libs}" = 'yes'; then
20369 CPPFLAGS="$CPPFLAGS -D_DLL"
20370 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20371 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20372 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20373 if test "$with_modules" = 'yes'; then
20374 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20376 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20379 CPPFLAGS="$CPPFLAGS -D_LIB"
20380 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20381 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20383 if test "$with_threads" = 'yes'; then
20384 CPPFLAGS="$CPPFLAGS -D_MT"
20385 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20386 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20392 # Check standard headers
20393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20394 $as_echo_n "checking for ANSI C header files... " >&6; }
20395 if test "${ac_cv_header_stdc+set}" = set; then :
20396 $as_echo_n "(cached) " >&6
20398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20399 /* end confdefs.h. */
20400 #include <stdlib.h>
20401 #include <stdarg.h>
20402 #include <string.h>
20413 if ac_fn_c_try_compile "$LINENO"; then :
20414 ac_cv_header_stdc=yes
20416 ac_cv_header_stdc=no
20418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20420 if test $ac_cv_header_stdc = yes; then
20421 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20423 /* end confdefs.h. */
20424 #include <string.h>
20427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20428 $EGREP "memchr" >/dev/null 2>&1; then :
20431 ac_cv_header_stdc=no
20437 if test $ac_cv_header_stdc = yes; then
20438 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20440 /* end confdefs.h. */
20441 #include <stdlib.h>
20444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20445 $EGREP "free" >/dev/null 2>&1; then :
20448 ac_cv_header_stdc=no
20454 if test $ac_cv_header_stdc = yes; then
20455 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20456 if test "$cross_compiling" = yes; then :
20459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20460 /* end confdefs.h. */
20462 #include <stdlib.h>
20463 #if ((' ' & 0x0FF) == 0x020)
20464 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20465 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20467 # define ISLOWER(c) \
20468 (('a' <= (c) && (c) <= 'i') \
20469 || ('j' <= (c) && (c) <= 'r') \
20470 || ('s' <= (c) && (c) <= 'z'))
20471 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20474 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20479 for (i = 0; i < 256; i++)
20480 if (XOR (islower (i), ISLOWER (i))
20481 || toupper (i) != TOUPPER (i))
20486 if ac_fn_c_try_run "$LINENO"; then :
20489 ac_cv_header_stdc=no
20491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20492 conftest.$ac_objext conftest.beam conftest.$ac_ext
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20498 $as_echo "$ac_cv_header_stdc" >&6; }
20499 if test $ac_cv_header_stdc = yes; then
20501 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20505 if ! test x"$ac_cv_header_stdc" = x"yes"; then
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
20507 header files. Compilation cannot proceed. Please install the ANSI C
20508 headers and rerun this script." >&5
20509 $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20510 header files. Compilation cannot proceed. Please install the ANSI C
20511 headers and rerun this script." >&2;};
20514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20515 $as_echo_n "checking whether to enable assertions... " >&6; }
20516 # Check whether --enable-assert was given.
20517 if test "${enable_assert+set}" = set; then :
20518 enableval=$enable_assert; ac_enable_assert=$enableval
20519 if test "x$enableval" = xno; then :
20521 $as_echo "#define NDEBUG 1" >>confdefs.h
20523 elif test "x$enableval" != xyes; then :
20524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20525 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20526 ac_enable_assert=yes
20529 ac_enable_assert=yes
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20533 $as_echo "$ac_enable_assert" >&6; }
20535 ac_header_dirent=no
20536 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20537 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20539 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20540 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
20541 $as_echo_n "(cached) " >&6
20543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20544 /* end confdefs.h. */
20545 #include <sys/types.h>
20557 if ac_fn_c_try_compile "$LINENO"; then :
20558 eval "$as_ac_Header=yes"
20560 eval "$as_ac_Header=no"
20562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20564 eval ac_res=\$$as_ac_Header
20565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20566 $as_echo "$ac_res" >&6; }
20567 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20568 cat >>confdefs.h <<_ACEOF
20569 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20572 ac_header_dirent=$ac_hdr; break
20576 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20577 if test $ac_header_dirent = dirent.h; then
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20579 $as_echo_n "checking for library containing opendir... " >&6; }
20580 if test "${ac_cv_search_opendir+set}" = set; then :
20581 $as_echo_n "(cached) " >&6
20583 ac_func_search_save_LIBS=$LIBS
20584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20585 /* end confdefs.h. */
20587 /* Override any GCC internal prototype to avoid an error.
20588 Use char because int might match the return type of a GCC
20589 builtin and then its argument prototype would still apply. */
20602 for ac_lib in '' dir; do
20603 if test -z "$ac_lib"; then
20604 ac_res="none required"
20607 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20609 if ac_fn_c_try_link "$LINENO"; then :
20610 ac_cv_search_opendir=$ac_res
20612 rm -f core conftest.err conftest.$ac_objext \
20614 if test "${ac_cv_search_opendir+set}" = set; then :
20618 if test "${ac_cv_search_opendir+set}" = set; then :
20621 ac_cv_search_opendir=no
20623 rm conftest.$ac_ext
20624 LIBS=$ac_func_search_save_LIBS
20626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20627 $as_echo "$ac_cv_search_opendir" >&6; }
20628 ac_res=$ac_cv_search_opendir
20629 if test "$ac_res" != no; then :
20630 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20636 $as_echo_n "checking for library containing opendir... " >&6; }
20637 if test "${ac_cv_search_opendir+set}" = set; then :
20638 $as_echo_n "(cached) " >&6
20640 ac_func_search_save_LIBS=$LIBS
20641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20642 /* end confdefs.h. */
20644 /* Override any GCC internal prototype to avoid an error.
20645 Use char because int might match the return type of a GCC
20646 builtin and then its argument prototype would still apply. */
20659 for ac_lib in '' x; do
20660 if test -z "$ac_lib"; then
20661 ac_res="none required"
20664 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20666 if ac_fn_c_try_link "$LINENO"; then :
20667 ac_cv_search_opendir=$ac_res
20669 rm -f core conftest.err conftest.$ac_objext \
20671 if test "${ac_cv_search_opendir+set}" = set; then :
20675 if test "${ac_cv_search_opendir+set}" = set; then :
20678 ac_cv_search_opendir=no
20680 rm conftest.$ac_ext
20681 LIBS=$ac_func_search_save_LIBS
20683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20684 $as_echo "$ac_cv_search_opendir" >&6; }
20685 ac_res=$ac_cv_search_opendir
20686 if test "$ac_res" != no; then :
20687 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20694 # Check additional headers
20695 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
20697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20698 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20699 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20700 cat >>confdefs.h <<_ACEOF
20701 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20711 # Checks for typedefs, structures, and compiler characteristics.
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20716 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20717 if test "${ac_cv_header_stdbool_h+set}" = set; then :
20718 $as_echo_n "(cached) " >&6
20720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20721 /* end confdefs.h. */
20723 #include <stdbool.h>
20725 "error: bool is not defined"
20728 "error: false is not defined"
20731 "error: false is not 0"
20734 "error: true is not defined"
20737 "error: true is not 1"
20739 #ifndef __bool_true_false_are_defined
20740 "error: __bool_true_false_are_defined is not defined"
20743 struct s { _Bool s: 1; _Bool t; } s;
20745 char a[true == 1 ? 1 : -1];
20746 char b[false == 0 ? 1 : -1];
20747 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20748 char d[(bool) 0.5 == true ? 1 : -1];
20750 char f[(_Bool) 0.0 == false ? 1 : -1];
20752 char h[sizeof (_Bool)];
20753 char i[sizeof s.t];
20754 enum { j = false, k = true, l = false * true, m = true * 256 };
20755 /* The following fails for
20756 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20758 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20759 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20760 # if defined __xlc__ || defined __GNUC__
20761 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20762 reported by James Lemley on 2005-10-05; see
20763 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20764 This test is not quite right, since xlc is allowed to
20765 reject this program, as the initializer for xlcbug is
20766 not one of the forms that C requires support for.
20767 However, doing the test right would require a runtime
20768 test, and that would make cross-compilation harder.
20769 Let us hope that IBM fixes the xlc bug, and also adds
20770 support for this kind of constant expression. In the
20771 meantime, this test will reject xlc, which is OK, since
20772 our stdbool.h substitute should suffice. We also test
20773 this with GCC, where it should work, to detect more
20774 quickly whether someone messes up the test in the
20776 char digs[] = "0123456789";
20777 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20779 /* Catch a bug in an HP-UX C compiler. See
20780 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20781 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20792 /* Refer to every declared value, to avoid compiler optimizations. */
20793 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20794 + !m + !n + !o + !p + !q + !pq);
20800 if ac_fn_c_try_compile "$LINENO"; then :
20801 ac_cv_header_stdbool_h=yes
20803 ac_cv_header_stdbool_h=no
20805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20808 $as_echo "$ac_cv_header_stdbool_h" >&6; }
20809 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20810 if test "x$ac_cv_type__Bool" = x""yes; then :
20812 cat >>confdefs.h <<_ACEOF
20813 #define HAVE__BOOL 1
20819 if test $ac_cv_header_stdbool_h = yes; then
20821 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
20825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
20826 $as_echo_n "checking for working volatile... " >&6; }
20827 if test "${ac_cv_c_volatile+set}" = set; then :
20828 $as_echo_n "(cached) " >&6
20830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20831 /* end confdefs.h. */
20838 int * volatile y = (int *) 0;
20844 if ac_fn_c_try_compile "$LINENO"; then :
20845 ac_cv_c_volatile=yes
20847 ac_cv_c_volatile=no
20849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
20852 $as_echo "$ac_cv_c_volatile" >&6; }
20853 if test $ac_cv_c_volatile = no; then
20855 $as_echo "#define volatile /**/" >>confdefs.h
20859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
20860 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
20861 if test "${ac_cv_c_stringize+set}" = set; then :
20862 $as_echo_n "(cached) " >&6
20864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20865 /* end confdefs.h. */
20868 char *s = x(teststring);
20870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20871 $EGREP "#teststring" >/dev/null 2>&1; then :
20872 ac_cv_c_stringize=no
20874 ac_cv_c_stringize=yes
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
20880 $as_echo "$ac_cv_c_stringize" >&6; }
20881 if test $ac_cv_c_stringize = yes; then
20883 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
20887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20888 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20889 if test "${ac_cv_header_stat_broken+set}" = set; then :
20890 $as_echo_n "(cached) " >&6
20892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20893 /* end confdefs.h. */
20894 #include <sys/types.h>
20895 #include <sys/stat.h>
20897 #if defined S_ISBLK && defined S_IFDIR
20898 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20901 #if defined S_ISBLK && defined S_IFCHR
20902 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20905 #if defined S_ISLNK && defined S_IFREG
20906 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20909 #if defined S_ISSOCK && defined S_IFREG
20910 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20914 if ac_fn_c_try_compile "$LINENO"; then :
20915 ac_cv_header_stat_broken=no
20917 ac_cv_header_stat_broken=yes
20919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20922 $as_echo "$ac_cv_header_stat_broken" >&6; }
20923 if test $ac_cv_header_stat_broken = yes; then
20925 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20930 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20931 if test "${ac_cv_header_time+set}" = set; then :
20932 $as_echo_n "(cached) " >&6
20934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20935 /* end confdefs.h. */
20936 #include <sys/types.h>
20937 #include <sys/time.h>
20943 if ((struct tm *) 0)
20949 if ac_fn_c_try_compile "$LINENO"; then :
20950 ac_cv_header_time=yes
20952 ac_cv_header_time=no
20954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20957 $as_echo "$ac_cv_header_time" >&6; }
20958 if test $ac_cv_header_time = yes; then
20960 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20965 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20966 if test "${ac_cv_struct_tm+set}" = set; then :
20967 $as_echo_n "(cached) " >&6
20969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20970 /* end confdefs.h. */
20971 #include <sys/types.h>
20978 int *p = &tm.tm_sec;
20984 if ac_fn_c_try_compile "$LINENO"; then :
20985 ac_cv_struct_tm=time.h
20987 ac_cv_struct_tm=sys/time.h
20989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20992 $as_echo "$ac_cv_struct_tm" >&6; }
20993 if test $ac_cv_struct_tm = sys/time.h; then
20995 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20999 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21000 #include <$ac_cv_struct_tm>
21003 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21005 cat >>confdefs.h <<_ACEOF
21006 #define HAVE_STRUCT_TM_TM_ZONE 1
21012 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21014 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21017 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21019 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21025 cat >>confdefs.h <<_ACEOF
21026 #define HAVE_DECL_TZNAME $ac_have_decl
21029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21030 $as_echo_n "checking for tzname... " >&6; }
21031 if test "${ac_cv_var_tzname+set}" = set; then :
21032 $as_echo_n "(cached) " >&6
21034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21035 /* end confdefs.h. */
21037 #if !HAVE_DECL_TZNAME
21038 extern char *tzname[];
21044 return tzname[0][0];
21049 if ac_fn_c_try_link "$LINENO"; then :
21050 ac_cv_var_tzname=yes
21052 ac_cv_var_tzname=no
21054 rm -f core conftest.err conftest.$ac_objext \
21055 conftest$ac_exeext conftest.$ac_ext
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21058 $as_echo "$ac_cv_var_tzname" >&6; }
21059 if test $ac_cv_var_tzname = yes; then
21061 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
21067 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
21068 if test "${ac_cv_sys_interpreter+set}" = set; then :
21069 $as_echo_n "(cached) " >&6
21075 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21076 if test $? -ne 69; then
21077 ac_cv_sys_interpreter=yes
21079 ac_cv_sys_interpreter=no
21083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
21084 $as_echo "$ac_cv_sys_interpreter" >&6; }
21085 interpval=$ac_cv_sys_interpreter
21088 # If the C compiler supports the keyword inline, do nothing. Otherwise
21089 # define inline to __inline__ or __inline if it accepts one of those,
21090 # otherwise define inline to be empty.
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
21092 $as_echo_n "checking for inline... " >&6; }
21093 if test "${ac_cv_c_inline+set}" = set; then :
21094 $as_echo_n "(cached) " >&6
21097 for ac_kw in inline __inline__ __inline; do
21098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21099 /* end confdefs.h. */
21100 #ifndef __cplusplus
21102 static $ac_kw foo_t static_foo () {return 0; }
21103 $ac_kw foo_t foo () {return 0; }
21107 if ac_fn_c_try_compile "$LINENO"; then :
21108 ac_cv_c_inline=$ac_kw
21110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21111 test "$ac_cv_c_inline" != no && break
21115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
21116 $as_echo "$ac_cv_c_inline" >&6; }
21118 case $ac_cv_c_inline in
21121 case $ac_cv_c_inline in
21123 *) ac_val=$ac_cv_c_inline;;
21125 cat >>confdefs.h <<_ACEOF
21126 #ifndef __cplusplus
21127 #define inline $ac_val
21134 # If the C compiler supports the keyword restrict, do nothing. Otherwise
21135 # define restrict to __restrict__ or __restrict if it accepts one of those,
21136 # otherwise define restrict to be empty.
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
21138 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
21139 if test "${ac_cv_c_restrict+set}" = set; then :
21140 $as_echo_n "(cached) " >&6
21142 ac_cv_c_restrict=no
21143 # The order here caters to the fact that C++ does not require restrict.
21144 for ac_kw in __restrict __restrict__ _Restrict restrict; do
21145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21146 /* end confdefs.h. */
21147 typedef int * int_ptr;
21148 int foo (int_ptr $ac_kw ip) {
21155 int * $ac_kw t = s;
21162 if ac_fn_c_try_compile "$LINENO"; then :
21163 ac_cv_c_restrict=$ac_kw
21165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21166 test "$ac_cv_c_restrict" != no && break
21170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
21171 $as_echo "$ac_cv_c_restrict" >&6; }
21173 case $ac_cv_c_restrict in
21175 no) $as_echo "#define restrict /**/" >>confdefs.h
21177 *) cat >>confdefs.h <<_ACEOF
21178 #define restrict $ac_cv_c_restrict
21184 # If words are stored with the most significant byte first (like
21185 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
21186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
21187 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
21188 if test "${ac_cv_c_bigendian+set}" = set; then :
21189 $as_echo_n "(cached) " >&6
21191 ac_cv_c_bigendian=unknown
21192 # See if we're dealing with a universal compiler.
21193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21194 /* end confdefs.h. */
21195 #ifndef __APPLE_CC__
21196 not a universal capable compiler
21201 if ac_fn_c_try_compile "$LINENO"; then :
21203 # Check for potential -arch flags. It is not universal unless
21204 # there are at least two -arch flags with different values.
21207 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21208 if test -n "$ac_prev"; then
21210 i?86 | x86_64 | ppc | ppc64)
21211 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21214 ac_cv_c_bigendian=universal
21220 elif test "x$ac_word" = "x-arch"; then
21225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21226 if test $ac_cv_c_bigendian = unknown; then
21227 # See if sys/param.h defines the BYTE_ORDER macro.
21228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21229 /* end confdefs.h. */
21230 #include <sys/types.h>
21231 #include <sys/param.h>
21236 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21237 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21239 bogus endian macros
21246 if ac_fn_c_try_compile "$LINENO"; then :
21247 # It does; now see whether it defined to BIG_ENDIAN or not.
21248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21249 /* end confdefs.h. */
21250 #include <sys/types.h>
21251 #include <sys/param.h>
21256 #if BYTE_ORDER != BIG_ENDIAN
21264 if ac_fn_c_try_compile "$LINENO"; then :
21265 ac_cv_c_bigendian=yes
21267 ac_cv_c_bigendian=no
21269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21273 if test $ac_cv_c_bigendian = unknown; then
21274 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21276 /* end confdefs.h. */
21277 #include <limits.h>
21282 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21283 bogus endian macros
21290 if ac_fn_c_try_compile "$LINENO"; then :
21291 # It does; now see whether it defined to _BIG_ENDIAN or not.
21292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21293 /* end confdefs.h. */
21294 #include <limits.h>
21299 #ifndef _BIG_ENDIAN
21307 if ac_fn_c_try_compile "$LINENO"; then :
21308 ac_cv_c_bigendian=yes
21310 ac_cv_c_bigendian=no
21312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21316 if test $ac_cv_c_bigendian = unknown; then
21317 # Compile a test program.
21318 if test "$cross_compiling" = yes; then :
21319 # Try to guess by grepping values from an object file.
21320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21321 /* end confdefs.h. */
21322 short int ascii_mm[] =
21323 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21324 short int ascii_ii[] =
21325 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21326 int use_ascii (int i) {
21327 return ascii_mm[i] + ascii_ii[i];
21329 short int ebcdic_ii[] =
21330 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21331 short int ebcdic_mm[] =
21332 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21333 int use_ebcdic (int i) {
21334 return ebcdic_mm[i] + ebcdic_ii[i];
21341 return use_ascii (foo) == use_ebcdic (foo);
21346 if ac_fn_c_try_compile "$LINENO"; then :
21347 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21348 ac_cv_c_bigendian=yes
21350 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21351 if test "$ac_cv_c_bigendian" = unknown; then
21352 ac_cv_c_bigendian=no
21354 # finding both strings is unlikely to happen, but who knows?
21355 ac_cv_c_bigendian=unknown
21359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21362 /* end confdefs.h. */
21363 $ac_includes_default
21368 /* Are we little or big endian? From Harbison&Steele. */
21372 char c[sizeof (long int)];
21375 return u.c[sizeof (long int) - 1] == 1;
21381 if ac_fn_c_try_run "$LINENO"; then :
21382 ac_cv_c_bigendian=no
21384 ac_cv_c_bigendian=yes
21386 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21387 conftest.$ac_objext conftest.beam conftest.$ac_ext
21392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
21393 $as_echo "$ac_cv_c_bigendian" >&6; }
21394 case $ac_cv_c_bigendian in #(
21396 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
21402 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21406 as_fn_error $? "unknown endianness
21407 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
21411 # Define mode_t to a suitable type, if standard headers do not define it.
21412 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21413 if test "x$ac_cv_type_mode_t" = x""yes; then :
21417 cat >>confdefs.h <<_ACEOF
21424 # Define off_t to a suitable type, if standard headers do not define it.
21425 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21426 if test "x$ac_cv_type_off_t" = x""yes; then :
21430 cat >>confdefs.h <<_ACEOF
21431 #define off_t long int
21437 # Define pid_t to a suitable type, if standard headers do not define it.
21438 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21439 if test "x$ac_cv_type_pid_t" = x""yes; then :
21443 cat >>confdefs.h <<_ACEOF
21450 # Define size_t to a suitable type, if standard headers do not define it.
21451 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21452 if test "x$ac_cv_type_size_t" = x""yes; then :
21456 cat >>confdefs.h <<_ACEOF
21457 #define size_t unsigned int
21463 # Define ssize_t to a suitable type, if standard headers do not define it.
21464 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21465 if test "x$ac_cv_type_ssize_t" = x""yes; then :
21469 cat >>confdefs.h <<_ACEOF
21470 #define ssize_t int
21476 # If the C compiler supports a working long double type with more range
21477 # or precision than the double type, define HAVE_LONG_DOUBLE.
21479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
21480 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
21481 if test "${ac_cv_type_long_double_wider+set}" = set; then :
21482 $as_echo_n "(cached) " >&6
21484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21485 /* end confdefs.h. */
21487 long double const a[] =
21489 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21490 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21495 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21496 + (x ? f (x) : 'c'));
21502 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21503 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21504 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21505 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21506 && (int) LDBL_EPSILON == 0
21514 if ac_fn_c_try_compile "$LINENO"; then :
21515 ac_cv_type_long_double_wider=yes
21517 ac_cv_type_long_double_wider=no
21519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
21522 $as_echo "$ac_cv_type_long_double_wider" >&6; }
21523 if test $ac_cv_type_long_double_wider = yes; then
21525 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
21530 # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21531 # C compiler predefines it.
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
21533 $as_echo_n "checking whether char is unsigned... " >&6; }
21534 if test "${ac_cv_c_char_unsigned+set}" = set; then :
21535 $as_echo_n "(cached) " >&6
21537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21538 /* end confdefs.h. */
21539 $ac_includes_default
21543 static int test_array [1 - 2 * !(((char) -1) < 0)];
21550 if ac_fn_c_try_compile "$LINENO"; then :
21551 ac_cv_c_char_unsigned=no
21553 ac_cv_c_char_unsigned=yes
21555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
21558 $as_echo "$ac_cv_c_char_unsigned" >&6; }
21559 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21560 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
21565 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21566 # The cast to long int works around a bug in the HP C Compiler
21567 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21568 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21569 # This bug is HP SR number 8606223364.
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
21571 $as_echo_n "checking size of signed short... " >&6; }
21572 if test "${ac_cv_sizeof_signed_short+set}" = set; then :
21573 $as_echo_n "(cached) " >&6
21575 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
21578 if test "$ac_cv_type_signed_short" = yes; then
21579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21581 as_fn_error 77 "cannot compute sizeof (signed short)
21582 See \`config.log' for more details" "$LINENO" 5; }
21584 ac_cv_sizeof_signed_short=0
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
21590 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
21594 cat >>confdefs.h <<_ACEOF
21595 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21600 # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21601 # The cast to long int works around a bug in the HP C Compiler
21602 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21603 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21604 # This bug is HP SR number 8606223364.
21605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
21606 $as_echo_n "checking size of unsigned short... " >&6; }
21607 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
21608 $as_echo_n "(cached) " >&6
21610 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
21613 if test "$ac_cv_type_unsigned_short" = yes; then
21614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21616 as_fn_error 77 "cannot compute sizeof (unsigned short)
21617 See \`config.log' for more details" "$LINENO" 5; }
21619 ac_cv_sizeof_unsigned_short=0
21624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
21625 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21629 cat >>confdefs.h <<_ACEOF
21630 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21635 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21636 # The cast to long int works around a bug in the HP C Compiler
21637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21639 # This bug is HP SR number 8606223364.
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
21641 $as_echo_n "checking size of signed int... " >&6; }
21642 if test "${ac_cv_sizeof_signed_int+set}" = set; then :
21643 $as_echo_n "(cached) " >&6
21645 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then :
21648 if test "$ac_cv_type_signed_int" = yes; then
21649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21651 as_fn_error 77 "cannot compute sizeof (signed int)
21652 See \`config.log' for more details" "$LINENO" 5; }
21654 ac_cv_sizeof_signed_int=0
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
21660 $as_echo "$ac_cv_sizeof_signed_int" >&6; }
21664 cat >>confdefs.h <<_ACEOF
21665 #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21670 # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21671 # The cast to long int works around a bug in the HP C Compiler
21672 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21673 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21674 # This bug is HP SR number 8606223364.
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
21676 $as_echo_n "checking size of unsigned int... " >&6; }
21677 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
21678 $as_echo_n "(cached) " >&6
21680 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
21683 if test "$ac_cv_type_unsigned_int" = yes; then
21684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21686 as_fn_error 77 "cannot compute sizeof (unsigned int)
21687 See \`config.log' for more details" "$LINENO" 5; }
21689 ac_cv_sizeof_unsigned_int=0
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
21695 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21699 cat >>confdefs.h <<_ACEOF
21700 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21705 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21706 # The cast to long int works around a bug in the HP C Compiler
21707 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21708 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21709 # This bug is HP SR number 8606223364.
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
21711 $as_echo_n "checking size of signed long... " >&6; }
21712 if test "${ac_cv_sizeof_signed_long+set}" = set; then :
21713 $as_echo_n "(cached) " >&6
21715 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then :
21718 if test "$ac_cv_type_signed_long" = yes; then
21719 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21720 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21721 as_fn_error 77 "cannot compute sizeof (signed long)
21722 See \`config.log' for more details" "$LINENO" 5; }
21724 ac_cv_sizeof_signed_long=0
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
21730 $as_echo "$ac_cv_sizeof_signed_long" >&6; }
21734 cat >>confdefs.h <<_ACEOF
21735 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21740 # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21741 # The cast to long int works around a bug in the HP C Compiler
21742 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21743 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21744 # This bug is HP SR number 8606223364.
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
21746 $as_echo_n "checking size of unsigned long... " >&6; }
21747 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
21748 $as_echo_n "(cached) " >&6
21750 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
21753 if test "$ac_cv_type_unsigned_long" = yes; then
21754 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21755 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21756 as_fn_error 77 "cannot compute sizeof (unsigned long)
21757 See \`config.log' for more details" "$LINENO" 5; }
21759 ac_cv_sizeof_unsigned_long=0
21764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
21765 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21769 cat >>confdefs.h <<_ACEOF
21770 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21775 # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21776 # 'signed long long' is not supported then the value defined is zero.
21777 # The cast to long int works around a bug in the HP C Compiler
21778 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21779 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21780 # This bug is HP SR number 8606223364.
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
21782 $as_echo_n "checking size of signed long long... " >&6; }
21783 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
21784 $as_echo_n "(cached) " >&6
21786 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
21789 if test "$ac_cv_type_signed_long_long" = yes; then
21790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21792 as_fn_error 77 "cannot compute sizeof (signed long long)
21793 See \`config.log' for more details" "$LINENO" 5; }
21795 ac_cv_sizeof_signed_long_long=0
21800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
21801 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21805 cat >>confdefs.h <<_ACEOF
21806 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21811 # Obtain size of a 'unsigned long long' and define as
21812 # SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21813 # supported then the value defined is zero.
21814 # The cast to long int works around a bug in the HP C Compiler
21815 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21816 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21817 # This bug is HP SR number 8606223364.
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
21819 $as_echo_n "checking size of unsigned long long... " >&6; }
21820 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
21821 $as_echo_n "(cached) " >&6
21823 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
21826 if test "$ac_cv_type_unsigned_long_long" = yes; then
21827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21829 as_fn_error 77 "cannot compute sizeof (unsigned long long)
21830 See \`config.log' for more details" "$LINENO" 5; }
21832 ac_cv_sizeof_unsigned_long_long=0
21837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
21838 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21842 cat >>confdefs.h <<_ACEOF
21843 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21848 # Obtain size of off_t and define as SIZEOF_OFF_T
21849 # The cast to long int works around a bug in the HP C Compiler
21850 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21851 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21852 # This bug is HP SR number 8606223364.
21853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
21854 $as_echo_n "checking size of off_t... " >&6; }
21855 if test "${ac_cv_sizeof_off_t+set}" = set; then :
21856 $as_echo_n "(cached) " >&6
21858 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
21861 if test "$ac_cv_type_off_t" = yes; then
21862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21864 as_fn_error 77 "cannot compute sizeof (off_t)
21865 See \`config.log' for more details" "$LINENO" 5; }
21867 ac_cv_sizeof_off_t=0
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
21873 $as_echo "$ac_cv_sizeof_off_t" >&6; }
21877 cat >>confdefs.h <<_ACEOF
21878 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21883 # Obtain size of size_t and define as SIZEOF_SIZE_T
21884 # The cast to long int works around a bug in the HP C Compiler
21885 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21886 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21887 # This bug is HP SR number 8606223364.
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
21889 $as_echo_n "checking size of size_t... " >&6; }
21890 if test "${ac_cv_sizeof_size_t+set}" = set; then :
21891 $as_echo_n "(cached) " >&6
21893 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
21896 if test "$ac_cv_type_size_t" = yes; then
21897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21899 as_fn_error 77 "cannot compute sizeof (size_t)
21900 See \`config.log' for more details" "$LINENO" 5; }
21902 ac_cv_sizeof_size_t=0
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
21908 $as_echo "$ac_cv_sizeof_size_t" >&6; }
21912 cat >>confdefs.h <<_ACEOF
21913 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21918 # Obtain size of ssize_t and define as SIZEOF_SSIZE_T
21919 # The cast to long int works around a bug in the HP C Compiler
21920 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21921 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21922 # This bug is HP SR number 8606223364.
21923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
21924 $as_echo_n "checking size of ssize_t... " >&6; }
21925 if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
21926 $as_echo_n "(cached) " >&6
21928 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
21931 if test "$ac_cv_type_ssize_t" = yes; then
21932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21934 as_fn_error 77 "cannot compute sizeof (ssize_t)
21935 See \`config.log' for more details" "$LINENO" 5; }
21937 ac_cv_sizeof_ssize_t=0
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
21943 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
21947 cat >>confdefs.h <<_ACEOF
21948 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
21953 # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21954 # The cast to long int works around a bug in the HP C Compiler
21955 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21956 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21957 # This bug is HP SR number 8606223364.
21958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
21959 $as_echo_n "checking size of unsigned int*... " >&6; }
21960 if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
21961 $as_echo_n "(cached) " >&6
21963 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then :
21966 if test "$ac_cv_type_unsigned_intp" = yes; then
21967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21969 as_fn_error 77 "cannot compute sizeof (unsigned int*)
21970 See \`config.log' for more details" "$LINENO" 5; }
21972 ac_cv_sizeof_unsigned_intp=0
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
21978 $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21982 cat >>confdefs.h <<_ACEOF
21983 #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
21989 # Compute sized types for current CPU and compiler options.
21992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
21993 $as_echo_n "checking for signed 8-bit type... " >&6; }
21994 INT8_T='signed char'
21995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
21996 $as_echo "$INT8_T" >&6; }
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
22000 $as_echo_n "checking for unsigned 8-bit type... " >&6; }
22001 UINT8_T='unsigned char'
22002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
22003 $as_echo "$UINT8_T" >&6; }
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
22007 $as_echo_n "checking for signed 16-bit type... " >&6; }
22008 INT16_T='signed short'
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
22010 $as_echo "$INT16_T" >&6; }
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
22014 $as_echo_n "checking for unsigned 16-bit type... " >&6; }
22015 UINT16_T='unsigned short'
22016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
22017 $as_echo "$UINT16_T" >&6; }
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
22021 $as_echo_n "checking for signed 32-bit type... " >&6; }
22023 if test $ac_cv_sizeof_signed_int -eq 4; then
22024 INT32_T='signed int'
22025 elif test $ac_cv_sizeof_signed_long -eq 4; then
22026 INT32_T='signed long'
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
22029 $as_echo "$INT32_T" >&6; }
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
22033 $as_echo_n "checking for unsigned 32-bit type... " >&6; }
22035 if test $ac_cv_sizeof_unsigned_int -eq 4; then
22036 UINT32_T='unsigned int'
22037 elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22038 UINT32_T='unsigned long'
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
22041 $as_echo "$UINT32_T" >&6; }
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
22045 $as_echo_n "checking for signed 64-bit type... " >&6; }
22047 if test $ac_cv_sizeof_signed_long -eq 8; then
22048 INT64_T='signed long'
22049 elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22050 INT64_T='signed long long'
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
22053 $as_echo "$INT64_T" >&6; }
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
22057 $as_echo_n "checking for unsigned 64-bit type... " >&6; }
22059 if test $ac_cv_sizeof_unsigned_long -eq 8; then
22060 UINT64_T='unsigned long'
22061 elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22062 UINT64_T='unsigned long long'
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
22065 $as_echo "$UINT64_T" >&6; }
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
22069 $as_echo_n "checking for unsigned maximum type... " >&6; }
22071 if test "$UINT64_T" != 'none'; then
22072 UINTMAX_T=$UINT64_T
22073 elif test "$UINT32_T" != 'none'; then
22074 UINTMAX_T=$UINT32_T
22076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
22077 $as_echo "$UINTMAX_T" >&6; }
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
22081 $as_echo_n "checking for pointer difference type... " >&6; }
22083 if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22084 UINTPTR_T='unsigned long'
22085 elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22086 UINTPTR_T='unsigned long long'
22088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
22089 $as_echo "$UINTPTR_T" >&6; }
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
22093 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
22094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22095 /* end confdefs.h. */
22100 { const char *func = __func__; return(func != 0 ? 0 : 1); }
22105 if ac_fn_c_try_compile "$LINENO"; then :
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22107 $as_echo "yes" >&6; }
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22110 $as_echo "no" >&6; }
22111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
22112 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
22113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22114 /* end confdefs.h. */
22119 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22124 if ac_fn_c_try_compile "$LINENO"; then :
22125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22126 $as_echo "yes" >&6; }
22128 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22132 $as_echo "no" >&6; }
22134 $as_echo "#define __func__ __FILE__" >>confdefs.h
22137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22143 # Check for functions
22146 for ac_header in stdlib.h unistd.h
22148 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22149 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22150 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22151 cat >>confdefs.h <<_ACEOF
22152 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22159 for ac_func in getpagesize
22161 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22162 if test "x$ac_cv_func_getpagesize" = x""yes; then :
22163 cat >>confdefs.h <<_ACEOF
22164 #define HAVE_GETPAGESIZE 1
22170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
22171 $as_echo_n "checking for working mmap file i/o... " >&6; }
22172 if test "${magick_cv_func_mmap_fileio+set}" = set; then :
22173 $as_echo_n "(cached) " >&6
22175 if test "$cross_compiling" = yes; then :
22176 magick_cv_func_mmap_fileio=no
22178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22179 /* end confdefs.h. */
22180 $ac_includes_default
22181 /* malloc might have been renamed as rpl_malloc. */
22185 This test is derived from GNU Autoconf's similar macro.
22186 The purpose of this test is to verify that files may be memory
22187 mapped, and that memory mapping and file I/O are coherent.
22189 The test creates a test file, memory maps the file, updates
22190 the file using the memory map, and then reads the file using
22191 file I/O to verify that the file contains the updates.
22195 #include <sys/mman.h>
22197 #if !STDC_HEADERS && !HAVE_STDLIB_H
22201 /* This mess was copied from the GNU getpagesize.h. */
22202 #if !HAVE_GETPAGESIZE
22203 /* Assume that all systems that can run configure have sys/param.h. */
22204 # if !HAVE_SYS_PARAM_H
22205 # define HAVE_SYS_PARAM_H 1
22208 # ifdef _SC_PAGESIZE
22209 # define getpagesize() sysconf(_SC_PAGESIZE)
22210 # else /* no _SC_PAGESIZE */
22211 # if HAVE_SYS_PARAM_H
22212 # include <sys/param.h>
22213 # ifdef EXEC_PAGESIZE
22214 # define getpagesize() EXEC_PAGESIZE
22215 # else /* no EXEC_PAGESIZE */
22217 # define getpagesize() NBPG * CLSIZE
22220 # endif /* no CLSIZE */
22221 # else /* no NBPG */
22223 # define getpagesize() NBPC
22224 # else /* no NBPC */
22226 # define getpagesize() PAGESIZE
22227 # endif /* PAGESIZE */
22228 # endif /* no NBPC */
22229 # endif /* no NBPG */
22230 # endif /* no EXEC_PAGESIZE */
22231 # else /* no HAVE_SYS_PARAM_H */
22232 # define getpagesize() 8192 /* punt totally */
22233 # endif /* no HAVE_SYS_PARAM_H */
22234 # endif /* no _SC_PAGESIZE */
22236 #endif /* no HAVE_GETPAGESIZE */
22241 char *data, *data2, *data3;
22245 pagesize = getpagesize ();
22247 /* First, make a file with some known garbage in it. */
22248 data = (char *) malloc (pagesize);
22251 for (i = 0; i < pagesize; ++i)
22252 *(data + i) = rand ();
22254 fd = creat ("conftest.mmap", 0600);
22257 if (write (fd, data, pagesize) != pagesize)
22261 /* Mmap the file as read/write/shared and verify that we see the
22263 fd = open ("conftest.mmap", O_RDWR);
22266 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22269 for (i = 0; i < pagesize; ++i)
22270 if (*(data + i) != *(data2 + i))
22273 /* Finally, make sure that changes to the mapped area
22274 percolate back to the file as seen by read(). */
22275 for (i = 0; i < pagesize; ++i)
22276 *(data2 + i) = *(data2 + i) + 1;
22277 data3 = (char *) malloc (pagesize);
22280 if (read (fd, data3, pagesize) != pagesize)
22282 for (i = 0; i < pagesize; ++i)
22283 if (*(data2 + i) != *(data3 + i))
22289 if ac_fn_c_try_run "$LINENO"; then :
22290 magick_cv_func_mmap_fileio=yes
22292 magick_cv_func_mmap_fileio=no
22294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22295 conftest.$ac_objext conftest.beam conftest.$ac_ext
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
22300 $as_echo "$magick_cv_func_mmap_fileio" >&6; }
22301 if test $magick_cv_func_mmap_fileio = yes; then
22303 $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
22306 rm -f conftest.mmap
22308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
22309 $as_echo_n "checking whether closedir returns void... " >&6; }
22310 if test "${ac_cv_func_closedir_void+set}" = set; then :
22311 $as_echo_n "(cached) " >&6
22313 if test "$cross_compiling" = yes; then :
22314 ac_cv_func_closedir_void=yes
22316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22317 /* end confdefs.h. */
22318 $ac_includes_default
22319 #include <$ac_header_dirent>
22320 #ifndef __cplusplus
22327 return closedir (opendir (".")) != 0;
22332 if ac_fn_c_try_run "$LINENO"; then :
22333 ac_cv_func_closedir_void=no
22335 ac_cv_func_closedir_void=yes
22337 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22338 conftest.$ac_objext conftest.beam conftest.$ac_ext
22342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
22343 $as_echo "$ac_cv_func_closedir_void" >&6; }
22344 if test $ac_cv_func_closedir_void = yes; then
22346 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
22353 for ac_header in $ac_header_list
22355 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22356 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22358 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22359 cat >>confdefs.h <<_ACEOF
22360 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22374 for ac_func in getpagesize
22376 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22377 if test "x$ac_cv_func_getpagesize" = x""yes; then :
22378 cat >>confdefs.h <<_ACEOF
22379 #define HAVE_GETPAGESIZE 1
22385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
22386 $as_echo_n "checking for working mmap... " >&6; }
22387 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
22388 $as_echo_n "(cached) " >&6
22390 if test "$cross_compiling" = yes; then :
22391 ac_cv_func_mmap_fixed_mapped=no
22393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22394 /* end confdefs.h. */
22395 $ac_includes_default
22396 /* malloc might have been renamed as rpl_malloc. */
22399 /* Thanks to Mike Haertel and Jim Avera for this test.
22400 Here is a matrix of mmap possibilities:
22401 mmap private not fixed
22402 mmap private fixed at somewhere currently unmapped
22403 mmap private fixed at somewhere already mapped
22404 mmap shared not fixed
22405 mmap shared fixed at somewhere currently unmapped
22406 mmap shared fixed at somewhere already mapped
22407 For private mappings, we should verify that changes cannot be read()
22408 back from the file, nor mmap's back from the file at a different
22409 address. (There have been systems where private was not correctly
22410 implemented like the infamous i386 svr4.0, and systems where the
22411 VM page cache was not coherent with the file system buffer cache
22412 like early versions of FreeBSD and possibly contemporary NetBSD.)
22413 For shared mappings, we should conversely verify that changes get
22414 propagated back to all the places they're supposed to be.
22416 Grep wants private fixed already mapped.
22417 The main things grep needs to know about mmap are:
22418 * does it exist and is it safe to write into the mmap'd area
22419 * how to use it (BSD variants) */
22422 #include <sys/mman.h>
22424 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22428 /* This mess was copied from the GNU getpagesize.h. */
22429 #ifndef HAVE_GETPAGESIZE
22430 # ifdef _SC_PAGESIZE
22431 # define getpagesize() sysconf(_SC_PAGESIZE)
22432 # else /* no _SC_PAGESIZE */
22433 # ifdef HAVE_SYS_PARAM_H
22434 # include <sys/param.h>
22435 # ifdef EXEC_PAGESIZE
22436 # define getpagesize() EXEC_PAGESIZE
22437 # else /* no EXEC_PAGESIZE */
22439 # define getpagesize() NBPG * CLSIZE
22442 # endif /* no CLSIZE */
22443 # else /* no NBPG */
22445 # define getpagesize() NBPC
22446 # else /* no NBPC */
22448 # define getpagesize() PAGESIZE
22449 # endif /* PAGESIZE */
22450 # endif /* no NBPC */
22451 # endif /* no NBPG */
22452 # endif /* no EXEC_PAGESIZE */
22453 # else /* no HAVE_SYS_PARAM_H */
22454 # define getpagesize() 8192 /* punt totally */
22455 # endif /* no HAVE_SYS_PARAM_H */
22456 # endif /* no _SC_PAGESIZE */
22458 #endif /* no HAVE_GETPAGESIZE */
22463 char *data, *data2, *data3;
22464 const char *cdata2;
22468 pagesize = getpagesize ();
22470 /* First, make a file with some known garbage in it. */
22471 data = (char *) malloc (pagesize);
22474 for (i = 0; i < pagesize; ++i)
22475 *(data + i) = rand ();
22477 fd = creat ("conftest.mmap", 0600);
22480 if (write (fd, data, pagesize) != pagesize)
22484 /* Next, check that the tail of a page is zero-filled. File must have
22485 non-zero length, otherwise we risk SIGBUS for entire page. */
22486 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22490 if (write (fd2, cdata2, 1) != 1)
22492 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
22493 if (data2 == MAP_FAILED)
22495 for (i = 0; i < pagesize; ++i)
22499 if (munmap (data2, pagesize))
22502 /* Next, try to mmap the file at a fixed address which already has
22503 something else allocated at it. If we can, also make sure that
22504 we see the same garbage. */
22505 fd = open ("conftest.mmap", O_RDWR);
22508 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22509 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22511 for (i = 0; i < pagesize; ++i)
22512 if (*(data + i) != *(data2 + i))
22515 /* Finally, make sure that changes to the mapped area do not
22516 percolate back to the file as seen by read(). (This is a bug on
22517 some variants of i386 svr4.0.) */
22518 for (i = 0; i < pagesize; ++i)
22519 *(data2 + i) = *(data2 + i) + 1;
22520 data3 = (char *) malloc (pagesize);
22523 if (read (fd, data3, pagesize) != pagesize)
22525 for (i = 0; i < pagesize; ++i)
22526 if (*(data + i) != *(data3 + i))
22532 if ac_fn_c_try_run "$LINENO"; then :
22533 ac_cv_func_mmap_fixed_mapped=yes
22535 ac_cv_func_mmap_fixed_mapped=no
22537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22538 conftest.$ac_objext conftest.beam conftest.$ac_ext
22542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
22543 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22544 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22546 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
22549 rm -f conftest.mmap conftest.txt
22551 for ac_header in vfork.h
22553 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22554 if test "x$ac_cv_header_vfork_h" = x""yes; then :
22555 cat >>confdefs.h <<_ACEOF
22556 #define HAVE_VFORK_H 1
22563 for ac_func in fork vfork
22565 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22566 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22567 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22568 cat >>confdefs.h <<_ACEOF
22569 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22575 if test "x$ac_cv_func_fork" = xyes; then
22576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
22577 $as_echo_n "checking for working fork... " >&6; }
22578 if test "${ac_cv_func_fork_works+set}" = set; then :
22579 $as_echo_n "(cached) " >&6
22581 if test "$cross_compiling" = yes; then :
22582 ac_cv_func_fork_works=cross
22584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22585 /* end confdefs.h. */
22586 $ac_includes_default
22591 /* By Ruediger Kuhlmann. */
22592 return fork () < 0;
22598 if ac_fn_c_try_run "$LINENO"; then :
22599 ac_cv_func_fork_works=yes
22601 ac_cv_func_fork_works=no
22603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22604 conftest.$ac_objext conftest.beam conftest.$ac_ext
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
22609 $as_echo "$ac_cv_func_fork_works" >&6; }
22612 ac_cv_func_fork_works=$ac_cv_func_fork
22614 if test "x$ac_cv_func_fork_works" = xcross; then
22616 *-*-amigaos* | *-*-msdosdjgpp*)
22617 # Override, as these systems have only a dummy fork() stub
22618 ac_cv_func_fork_works=no
22621 ac_cv_func_fork_works=yes
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22625 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22627 ac_cv_func_vfork_works=$ac_cv_func_vfork
22628 if test "x$ac_cv_func_vfork" = xyes; then
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
22630 $as_echo_n "checking for working vfork... " >&6; }
22631 if test "${ac_cv_func_vfork_works+set}" = set; then :
22632 $as_echo_n "(cached) " >&6
22634 if test "$cross_compiling" = yes; then :
22635 ac_cv_func_vfork_works=cross
22637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22638 /* end confdefs.h. */
22639 /* Thanks to Paul Eggert for this test. */
22640 $ac_includes_default
22641 #include <sys/wait.h>
22642 #ifdef HAVE_VFORK_H
22643 # include <vfork.h>
22645 /* On some sparc systems, changes by the child to local and incoming
22646 argument registers are propagated back to the parent. The compiler
22647 is told about this with #include <vfork.h>, but some compilers
22648 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22649 static variable whose address is put into a register that is
22650 clobbered by the vfork. */
22653 sparc_address_test (int arg)
22655 sparc_address_test (arg) int arg;
22658 static pid_t child;
22676 pid_t parent = getpid ();
22679 sparc_address_test (0);
22684 /* Here is another test for sparc vfork register problems. This
22685 test uses lots of local variables, at least as many local
22686 variables as main has allocated so far including compiler
22687 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22688 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22689 reuse the register of parent for one of the local variables,
22690 since it will think that parent can't possibly be used any more
22691 in this routine. Assigning to the local variable will thus
22692 munge parent in the parent process. */
22694 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22695 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22696 /* Convince the compiler that p..p7 are live; otherwise, it might
22697 use the same hardware register for all 8 local variables. */
22698 if (p != p1 || p != p2 || p != p3 || p != p4
22699 || p != p5 || p != p6 || p != p7)
22702 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22703 from child file descriptors. If the child closes a descriptor
22704 before it execs or exits, this munges the parent's descriptor
22705 as well. Test for this by closing stdout in the child. */
22706 _exit(close(fileno(stdout)) != 0);
22711 while (wait(&status) != child)
22714 /* Was there some problem with vforking? */
22717 /* Did the child fail? (This shouldn't happen.) */
22720 /* Did the vfork/compiler bug occur? */
22721 || parent != getpid()
22723 /* Did the file descriptor bug occur? */
22724 || fstat(fileno(stdout), &st) != 0
22729 if ac_fn_c_try_run "$LINENO"; then :
22730 ac_cv_func_vfork_works=yes
22732 ac_cv_func_vfork_works=no
22734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22735 conftest.$ac_objext conftest.beam conftest.$ac_ext
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
22740 $as_echo "$ac_cv_func_vfork_works" >&6; }
22743 if test "x$ac_cv_func_fork_works" = xcross; then
22744 ac_cv_func_vfork_works=$ac_cv_func_vfork
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22746 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22749 if test "x$ac_cv_func_vfork_works" = xyes; then
22751 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
22755 $as_echo "#define vfork fork" >>confdefs.h
22758 if test "x$ac_cv_func_fork_works" = xyes; then
22760 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
22764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
22765 $as_echo_n "checking for working memcmp... " >&6; }
22766 if test "${ac_cv_func_memcmp_working+set}" = set; then :
22767 $as_echo_n "(cached) " >&6
22769 if test "$cross_compiling" = yes; then :
22770 ac_cv_func_memcmp_working=no
22772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22773 /* end confdefs.h. */
22774 $ac_includes_default
22779 /* Some versions of memcmp are not 8-bit clean. */
22780 char c0 = '\100', c1 = '\200', c2 = '\201';
22781 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22784 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22785 or more and with at least one buffer not starting on a 4-byte boundary.
22786 William Lewis provided this test program. */
22791 for (i = 0; i < 4; i++)
22795 strcpy (a, "--------01111111");
22796 strcpy (b, "--------10000000");
22797 if (memcmp (a, b, 16) >= 0)
22807 if ac_fn_c_try_run "$LINENO"; then :
22808 ac_cv_func_memcmp_working=yes
22810 ac_cv_func_memcmp_working=no
22812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22813 conftest.$ac_objext conftest.beam conftest.$ac_ext
22817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
22818 $as_echo "$ac_cv_func_memcmp_working" >&6; }
22819 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22820 *" memcmp.$ac_objext "* ) ;;
22821 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22826 for ac_header in sys/select.h sys/socket.h
22828 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22829 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22830 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22831 cat >>confdefs.h <<_ACEOF
22832 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
22840 $as_echo_n "checking types of arguments for select... " >&6; }
22841 if test "${ac_cv_func_select_args+set}" = set; then :
22842 $as_echo_n "(cached) " >&6
22844 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22845 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22846 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
22847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22848 /* end confdefs.h. */
22849 $ac_includes_default
22850 #ifdef HAVE_SYS_SELECT_H
22851 # include <sys/select.h>
22853 #ifdef HAVE_SYS_SOCKET_H
22854 # include <sys/socket.h>
22860 extern int select ($ac_arg1,
22861 $ac_arg234, $ac_arg234, $ac_arg234,
22867 if ac_fn_c_try_compile "$LINENO"; then :
22868 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
22870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22874 # Provide a safe default value.
22875 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
22878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
22879 $as_echo "$ac_cv_func_select_args" >&6; }
22880 ac_save_IFS=$IFS; IFS=','
22881 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22885 cat >>confdefs.h <<_ACEOF
22886 #define SELECT_TYPE_ARG1 $1
22890 cat >>confdefs.h <<_ACEOF
22891 #define SELECT_TYPE_ARG234 ($2)
22895 cat >>confdefs.h <<_ACEOF
22896 #define SELECT_TYPE_ARG5 ($3)
22901 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
22902 $as_echo_n "(cached) " >&6
22904 ac_cv_func_setvbuf_reversed=no
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
22909 $as_echo_n "checking return type of signal handlers... " >&6; }
22910 if test "${ac_cv_type_signal+set}" = set; then :
22911 $as_echo_n "(cached) " >&6
22913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22914 /* end confdefs.h. */
22915 #include <sys/types.h>
22916 #include <signal.h>
22921 return *(signal (0, 0)) (0) == 1;
22926 if ac_fn_c_try_compile "$LINENO"; then :
22927 ac_cv_type_signal=int
22929 ac_cv_type_signal=void
22931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
22934 $as_echo "$ac_cv_type_signal" >&6; }
22936 cat >>confdefs.h <<_ACEOF
22937 #define RETSIGTYPE $ac_cv_type_signal
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
22942 $as_echo_n "checking for working strtod... " >&6; }
22943 if test "${ac_cv_func_strtod+set}" = set; then :
22944 $as_echo_n "(cached) " >&6
22946 if test "$cross_compiling" = yes; then :
22947 ac_cv_func_strtod=no
22949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22950 /* end confdefs.h. */
22952 $ac_includes_default
22960 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
22961 char *string = " +69";
22964 value = strtod (string, &term);
22965 if (value != 69 || term != (string + 4))
22970 /* Under Solaris 2.4, strtod returns the wrong value for the
22971 terminating character under some conditions. */
22972 char *string = "NaN";
22974 strtod (string, &term);
22975 if (term != string && *(term - 1) == 0)
22982 if ac_fn_c_try_run "$LINENO"; then :
22983 ac_cv_func_strtod=yes
22985 ac_cv_func_strtod=no
22987 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22988 conftest.$ac_objext conftest.beam conftest.$ac_ext
22992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
22993 $as_echo "$ac_cv_func_strtod" >&6; }
22994 if test $ac_cv_func_strtod = no; then
22995 case " $LIBOBJS " in
22996 *" strtod.$ac_objext "* ) ;;
22997 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23001 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
23002 if test "x$ac_cv_func_pow" = x""yes; then :
23006 if test $ac_cv_func_pow = no; then
23007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
23008 $as_echo_n "checking for pow in -lm... " >&6; }
23009 if test "${ac_cv_lib_m_pow+set}" = set; then :
23010 $as_echo_n "(cached) " >&6
23012 ac_check_lib_save_LIBS=$LIBS
23014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23015 /* end confdefs.h. */
23017 /* Override any GCC internal prototype to avoid an error.
23018 Use char because int might match the return type of a GCC
23019 builtin and then its argument prototype would still apply. */
23032 if ac_fn_c_try_link "$LINENO"; then :
23033 ac_cv_lib_m_pow=yes
23037 rm -f core conftest.err conftest.$ac_objext \
23038 conftest$ac_exeext conftest.$ac_ext
23039 LIBS=$ac_check_lib_save_LIBS
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
23042 $as_echo "$ac_cv_lib_m_pow" >&6; }
23043 if test "x$ac_cv_lib_m_pow" = x""yes; then :
23046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
23047 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23054 for ac_func in vprintf
23056 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23057 if test "x$ac_cv_func_vprintf" = x""yes; then :
23058 cat >>confdefs.h <<_ACEOF
23059 #define HAVE_VPRINTF 1
23062 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23063 if test "x$ac_cv_func__doprnt" = x""yes; then :
23065 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
23075 # Find math library
23078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23079 $as_echo_n "checking for sqrt in -lm... " >&6; }
23080 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23081 $as_echo_n "(cached) " >&6
23083 ac_check_lib_save_LIBS=$LIBS
23085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23086 /* end confdefs.h. */
23088 /* Override any GCC internal prototype to avoid an error.
23089 Use char because int might match the return type of a GCC
23090 builtin and then its argument prototype would still apply. */
23103 if ac_fn_c_try_link "$LINENO"; then :
23104 ac_cv_lib_m_sqrt=yes
23106 ac_cv_lib_m_sqrt=no
23108 rm -f core conftest.err conftest.$ac_objext \
23109 conftest$ac_exeext conftest.$ac_ext
23110 LIBS=$ac_check_lib_save_LIBS
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23113 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
23114 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23118 LIBS="$MATH_LIBS $LIBS"
23121 for ac_func in atoll atexit cimag 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
23123 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23124 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23125 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23126 cat >>confdefs.h <<_ACEOF
23127 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23135 # Check for clock_gettime().
23137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
23138 $as_echo_n "checking for library containing clock_gettime... " >&6; }
23139 if test "${ac_cv_search_clock_gettime+set}" = set; then :
23140 $as_echo_n "(cached) " >&6
23142 ac_func_search_save_LIBS=$LIBS
23143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23144 /* end confdefs.h. */
23146 /* Override any GCC internal prototype to avoid an error.
23147 Use char because int might match the return type of a GCC
23148 builtin and then its argument prototype would still apply. */
23152 char clock_gettime ();
23156 return clock_gettime ();
23161 for ac_lib in '' rt; do
23162 if test -z "$ac_lib"; then
23163 ac_res="none required"
23166 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23168 if ac_fn_c_try_link "$LINENO"; then :
23169 ac_cv_search_clock_gettime=$ac_res
23171 rm -f core conftest.err conftest.$ac_objext \
23173 if test "${ac_cv_search_clock_gettime+set}" = set; then :
23177 if test "${ac_cv_search_clock_gettime+set}" = set; then :
23180 ac_cv_search_clock_gettime=no
23182 rm conftest.$ac_ext
23183 LIBS=$ac_func_search_save_LIBS
23185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
23186 $as_echo "$ac_cv_search_clock_gettime" >&6; }
23187 ac_res=$ac_cv_search_clock_gettime
23188 if test "$ac_res" != no; then :
23189 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23192 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
23194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
23195 $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
23196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23197 /* end confdefs.h. */
23202 clockid_t clockType = CLOCK_REALTIME;
23207 if ac_fn_c_try_compile "$LINENO"; then :
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23210 $as_echo "yes" >&6; }
23212 $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
23216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23217 $as_echo "no" >&6; }
23220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23224 for ac_func in gettimeofday ftime
23226 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23227 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23228 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23229 cat >>confdefs.h <<_ACEOF
23230 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23243 # Check for function prototypes
23247 ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
23248 #include <unistd.h>
23250 if test "x$ac_cv_have_decl_pread" = x""yes; then :
23256 cat >>confdefs.h <<_ACEOF
23257 #define HAVE_DECL_PREAD $ac_have_decl
23259 ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
23260 #include <unistd.h>
23262 if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23268 cat >>confdefs.h <<_ACEOF
23269 #define HAVE_DECL_PWRITE $ac_have_decl
23273 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
23274 #include <strings.h>
23276 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23282 cat >>confdefs.h <<_ACEOF
23283 #define HAVE_DECL_STRLCPY $ac_have_decl
23287 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
23289 #include <stdarg.h>
23291 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23297 cat >>confdefs.h <<_ACEOF
23298 #define HAVE_DECL_VSNPRINTF $ac_have_decl
23304 # C++ Support Tests (For Magick++)
23307 have_magick_plus_plus='no'
23308 if test "$with_magick_plus_plus" = 'yes'; then
23312 ac_cpp='$CXXCPP $CPPFLAGS'
23313 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23314 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23315 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23318 # Full set of headers used...
23319 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23320 # functional iomanip iosfwd iostream iterator list string strstream utility
23322 ac_cpp='$CXXCPP $CPPFLAGS'
23323 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23324 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23325 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23328 ac_cpp='$CXXCPP $CPPFLAGS'
23329 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23330 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23331 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23332 if test -z "$CXX"; then
23333 if test -n "$CCC"; then
23336 if test -n "$ac_tool_prefix"; then
23337 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23339 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23340 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23342 $as_echo_n "checking for $ac_word... " >&6; }
23343 if test "${ac_cv_prog_CXX+set}" = set; then :
23344 $as_echo_n "(cached) " >&6
23346 if test -n "$CXX"; then
23347 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23350 for as_dir in $PATH
23353 test -z "$as_dir" && as_dir=.
23354 for ac_exec_ext in '' $ac_executable_extensions; do
23355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23356 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
23357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23366 CXX=$ac_cv_prog_CXX
23367 if test -n "$CXX"; then
23368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
23369 $as_echo "$CXX" >&6; }
23371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23372 $as_echo "no" >&6; }
23376 test -n "$CXX" && break
23379 if test -z "$CXX"; then
23381 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23383 # Extract the first word of "$ac_prog", so it can be a program name with args.
23384 set dummy $ac_prog; ac_word=$2
23385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23386 $as_echo_n "checking for $ac_word... " >&6; }
23387 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
23388 $as_echo_n "(cached) " >&6
23390 if test -n "$ac_ct_CXX"; then
23391 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23394 for as_dir in $PATH
23397 test -z "$as_dir" && as_dir=.
23398 for ac_exec_ext in '' $ac_executable_extensions; do
23399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23400 ac_cv_prog_ac_ct_CXX="$ac_prog"
23401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23410 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23411 if test -n "$ac_ct_CXX"; then
23412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
23413 $as_echo "$ac_ct_CXX" >&6; }
23415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23416 $as_echo "no" >&6; }
23420 test -n "$ac_ct_CXX" && break
23423 if test "x$ac_ct_CXX" = x; then
23426 case $cross_compiling:$ac_tool_warned in
23428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23430 ac_tool_warned=yes ;;
23438 # Provide some information about the compiler.
23439 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
23442 for ac_option in --version -v -V -qversion; do
23443 { { ac_try="$ac_compiler $ac_option >&5"
23444 case "(($ac_try" in
23445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23446 *) ac_try_echo=$ac_try;;
23448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23449 $as_echo "$ac_try_echo"; } >&5
23450 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
23452 if test -s conftest.err; then
23454 ... rest of stderr output deleted ...
23455 10q' conftest.err >conftest.er1
23456 cat conftest.er1 >&5
23458 rm -f conftest.er1 conftest.err
23459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23460 test $ac_status = 0; }
23463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
23464 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
23465 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
23466 $as_echo_n "(cached) " >&6
23468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23469 /* end confdefs.h. */
23482 if ac_fn_cxx_try_compile "$LINENO"; then :
23483 ac_compiler_gnu=yes
23487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23488 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
23492 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23493 if test $ac_compiler_gnu = yes; then
23498 ac_test_CXXFLAGS=${CXXFLAGS+set}
23499 ac_save_CXXFLAGS=$CXXFLAGS
23500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
23501 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
23502 if test "${ac_cv_prog_cxx_g+set}" = set; then :
23503 $as_echo_n "(cached) " >&6
23505 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23506 ac_cxx_werror_flag=yes
23507 ac_cv_prog_cxx_g=no
23509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23510 /* end confdefs.h. */
23520 if ac_fn_cxx_try_compile "$LINENO"; then :
23521 ac_cv_prog_cxx_g=yes
23524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23525 /* end confdefs.h. */
23535 if ac_fn_cxx_try_compile "$LINENO"; then :
23538 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23541 /* end confdefs.h. */
23551 if ac_fn_cxx_try_compile "$LINENO"; then :
23552 ac_cv_prog_cxx_g=yes
23554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23559 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
23562 $as_echo "$ac_cv_prog_cxx_g" >&6; }
23563 if test "$ac_test_CXXFLAGS" = set; then
23564 CXXFLAGS=$ac_save_CXXFLAGS
23565 elif test $ac_cv_prog_cxx_g = yes; then
23566 if test "$GXX" = yes; then
23572 if test "$GXX" = yes; then
23579 ac_cpp='$CXXCPP $CPPFLAGS'
23580 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23581 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23582 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23584 depcc="$CXX" am_compiler_list=
23586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23587 $as_echo_n "checking dependency style of $depcc... " >&6; }
23588 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
23589 $as_echo_n "(cached) " >&6
23591 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23592 # We make a subdir and do the tests there. Otherwise we can end up
23593 # making bogus files that we don't know about and never remove. For
23594 # instance it was reported that on HP-UX the gcc test will end up
23595 # making a dummy file named `D' -- because `-MD' means `put the output
23598 # Copy depcomp to subdir because otherwise we won't find it if we're
23599 # using a relative directory.
23600 cp "$am_depcomp" conftest.dir
23602 # We will build objects and dependencies in a subdirectory because
23603 # it helps to detect inapplicable dependency modes. For instance
23604 # both Tru64's cc and ICC support -MD to output dependencies as a
23605 # side effect of compilation, but ICC will put the dependencies in
23606 # the current directory while Tru64 will put them in the object
23610 am_cv_CXX_dependencies_compiler_type=none
23611 if test "$am_compiler_list" = ""; then
23612 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23614 am__universal=false
23615 case " $depcc " in #(
23616 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23619 for depmode in $am_compiler_list; do
23620 # Setup a source with many dependencies, because some compilers
23621 # like to wrap large dependency lists on column 80 (with \), and
23622 # we should not choose a depcomp mode which is confused by this.
23624 # We need to recreate these files for each test, as the compiler may
23625 # overwrite some of them when testing with obscure command lines.
23626 # This happens at least with the AIX C compiler.
23628 for i in 1 2 3 4 5 6; do
23629 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23630 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23631 # Solaris 8's {/usr,}/bin/sh.
23632 touch sub/conftst$i.h
23634 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23636 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23637 # mode. It turns out that the SunPro C++ compiler does not properly
23638 # handle `-M -o', and we need to detect this. Also, some Intel
23639 # versions had trouble with output in subdirs
23640 am__obj=sub/conftest.${OBJEXT-o}
23641 am__minus_obj="-o $am__obj"
23644 # This depmode causes a compiler race in universal mode.
23645 test "$am__universal" = false || continue
23648 # after this tag, mechanisms are not by side-effect, so they'll
23649 # only be used when explicitly requested
23650 if test "x$enable_dependency_tracking" = xyes; then
23656 msvisualcpp | msvcmsys)
23657 # This compiler won't grok `-c -o', but also, the minuso test has
23658 # not run yet. These depmodes are late enough in the game, and
23659 # so weak that their functioning should not be impacted.
23660 am__obj=conftest.${OBJEXT-o}
23665 if depmode=$depmode \
23666 source=sub/conftest.c object=$am__obj \
23667 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23668 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23669 >/dev/null 2>conftest.err &&
23670 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23671 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23672 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23673 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23674 # icc doesn't choke on unknown options, it will just issue warnings
23675 # or remarks (even with -Werror). So we grep stderr for any message
23676 # that says an option was ignored or not supported.
23677 # When given -MP, icc 7.0 and 7.1 complain thusly:
23678 # icc: Command line warning: ignoring option '-M'; no argument required
23679 # The diagnosis changed in icc 8.0:
23680 # icc: Command line remark: option '-MP' not supported
23681 if (grep 'ignoring option' conftest.err ||
23682 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23683 am_cv_CXX_dependencies_compiler_type=$depmode
23690 rm -rf conftest.dir
23692 am_cv_CXX_dependencies_compiler_type=none
23696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
23697 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23698 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23701 test "x$enable_dependency_tracking" != xno \
23702 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23703 am__fastdepCXX_TRUE=
23704 am__fastdepCXX_FALSE='#'
23706 am__fastdepCXX_TRUE='#'
23707 am__fastdepCXX_FALSE=
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
23712 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
23713 if test "${ax_cv_cxx_bool+set}" = set; then :
23714 $as_echo_n "(cached) " >&6
23718 ac_cpp='$CXXCPP $CPPFLAGS'
23719 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23720 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23721 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23724 /* end confdefs.h. */
23726 int f(int x){return 1;}
23727 int f(char x){return 1;}
23728 int f(bool x){return 1;}
23733 bool b = true; return f(b);
23738 if ac_fn_cxx_try_compile "$LINENO"; then :
23743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23745 ac_cpp='$CXXCPP $CPPFLAGS'
23746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23753 $as_echo "$ax_cv_cxx_bool" >&6; }
23754 if test "$ax_cv_cxx_bool" = yes; then
23756 $as_echo "#define HAVE_BOOL /**/" >>confdefs.h
23760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
23761 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
23762 if test "${ax_cv_cxx_namespaces+set}" = set; then :
23763 $as_echo_n "(cached) " >&6
23767 ac_cpp='$CXXCPP $CPPFLAGS'
23768 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23769 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23770 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23773 /* end confdefs.h. */
23774 namespace Outer { namespace Inner { int i = 0; }}
23778 using namespace Outer::Inner; return i;
23783 if ac_fn_cxx_try_compile "$LINENO"; then :
23784 ax_cv_cxx_namespaces=yes
23786 ax_cv_cxx_namespaces=no
23788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23790 ac_cpp='$CXXCPP $CPPFLAGS'
23791 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23792 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23793 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23798 $as_echo "$ax_cv_cxx_namespaces" >&6; }
23799 if test "$ax_cv_cxx_namespaces" = yes; then
23801 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
23807 $as_echo_n "checking if g++ supports namespace std... " >&6; }
23808 if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
23809 $as_echo_n "(cached) " >&6
23813 ac_cpp='$CXXCPP $CPPFLAGS'
23814 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23815 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23816 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23819 /* end confdefs.h. */
23820 #include <iostream>
23821 std::istream& is = std::cin;
23830 if ac_fn_cxx_try_compile "$LINENO"; then :
23831 ax_cv_cxx_have_std_namespace=yes
23833 ax_cv_cxx_have_std_namespace=no
23835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23837 ac_cpp='$CXXCPP $CPPFLAGS'
23838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
23845 $as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
23846 if test "$ax_cv_cxx_have_std_namespace" = yes; then
23848 $as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
23852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
23853 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
23854 if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
23855 $as_echo_n "(cached) " >&6
23860 ac_cpp='$CXXCPP $CPPFLAGS'
23861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23866 /* end confdefs.h. */
23867 #include <iostream>
23871 #ifdef HAVE_NAMESPACES
23872 using namespace std;
23882 if ac_fn_cxx_try_compile "$LINENO"; then :
23883 ac_cv_cxx_have_std_libs=yes
23885 ac_cv_cxx_have_std_libs=no
23887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23889 ac_cpp='$CXXCPP $CPPFLAGS'
23890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
23897 $as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23898 if test "$ac_cv_cxx_have_std_libs" = yes; then
23900 $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
23905 $as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
23906 if test "${ac_cv_cxx_have_lstring+set}" = set; then :
23907 $as_echo_n "(cached) " >&6
23911 ac_cpp='$CXXCPP $CPPFLAGS'
23912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23917 /* end confdefs.h. */
23918 const wchar_t* s=L"wide string";
23920 if ac_fn_cxx_try_compile "$LINENO"; then :
23921 ac_cv_cxx_have_lstring=yes
23923 ac_cv_cxx_have_lstring=no
23925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23927 ac_cpp='$CXXCPP $CPPFLAGS'
23928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
23935 $as_echo "$ac_cv_cxx_have_lstring" >&6; }
23936 if test "$ac_cv_cxx_have_lstring" = yes; then
23938 $as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
23944 # Check whether --enable-openmp was given.
23945 if test "${enable_openmp+set}" = set; then :
23946 enableval=$enable_openmp;
23949 if test "$enable_openmp" != no; then
23950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23951 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
23952 if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
23953 $as_echo_n "(cached) " >&6
23955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23956 /* end confdefs.h. */
23962 int main () { return omp_get_num_threads (); }
23965 if ac_fn_cxx_try_link "$LINENO"; then :
23966 ac_cv_prog_cxx_openmp='none needed'
23968 ac_cv_prog_cxx_openmp='unsupported'
23969 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23970 ac_save_CXXFLAGS=$CXXFLAGS
23971 CXXFLAGS="$CXXFLAGS $ac_option"
23972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23973 /* end confdefs.h. */
23979 int main () { return omp_get_num_threads (); }
23982 if ac_fn_cxx_try_link "$LINENO"; then :
23983 ac_cv_prog_cxx_openmp=$ac_option
23985 rm -f core conftest.err conftest.$ac_objext \
23986 conftest$ac_exeext conftest.$ac_ext
23987 CXXFLAGS=$ac_save_CXXFLAGS
23988 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
23993 rm -f core conftest.err conftest.$ac_objext \
23994 conftest$ac_exeext conftest.$ac_ext
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
23997 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
23998 case $ac_cv_prog_cxx_openmp in #(
23999 "none needed" | unsupported)
24002 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
24008 ac_cpp='$CPP $CPPFLAGS'
24009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
24015 $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24017 test $ax_cv_cxx_bool = 'yes' && \
24018 test $ac_cv_cxx_have_lstring = 'yes' && \
24019 test $ax_cv_cxx_namespaces = 'yes' && \
24020 test $ac_cv_cxx_have_std_libs = 'yes' && \
24021 test $ax_cv_cxx_have_std_namespace = 'yes'; then
24022 have_magick_plus_plus='yes'
24024 have_magick_plus_plus='no (failed tests)'
24026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
24027 $as_echo "$have_magick_plus_plus" >&6; }
24030 if test "$have_magick_plus_plus" = 'yes'; then
24031 WITH_MAGICK_PLUS_PLUS_TRUE=
24032 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24034 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24035 WITH_MAGICK_PLUS_PLUS_FALSE=
24039 # Only check for delegate libraries in subdirectories if requested.
24040 if test "$enable_delegate_build" != 'no'; then
24041 # Check for delegate sub-directories and add -I & -L options as required.
24042 # This presumes that delegates are installed as detailed in the ImageMagick
24043 # README. If delegates are installed in a standard location where the
24044 # compiler will automatically find them then these options should not be
24048 # Most delegates have includes in the same directory as the library, but not all...
24051 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
24052 if test -d "$builddir/$dir"; then
24053 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24055 if test -d "$srcdirfull/$dir"; then
24056 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24062 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
24063 if test -d "$builddir/$dir/.libs"; then
24064 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24066 if test -d "$srcdirfull/$dir/.libs"; then
24067 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24070 if test -d "$builddir/$dir"; then
24071 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24073 if test -d "$srcdirfull/$dir"; then
24074 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24080 # Assume that delegate headers reside under same directory as ImageMagick
24081 # installation prefix.
24082 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24085 # Find the X11 RGB database
24087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
24088 $as_echo_n "checking for X11 configure files... " >&6; }
24089 if test "${im_cv_x_configure+set}" = set; then :
24090 $as_echo_n "(cached) " >&6
24092 # Look for the header file in a standard set of common directories.
24093 # Check X11 before X11Rn because it is often a symlink to the current release.
24102 /usr/XFree86/lib/X11 \
24110 /usr/local/X11/lib \
24111 /usr/local/X11R4/lib \
24112 /usr/local/X11R5/lib \
24113 /usr/local/X11R6/lib \
24115 /usr/local/lib/X11 \
24116 /usr/local/lib/X11R4 \
24117 /usr/local/lib/X11R5 \
24118 /usr/local/lib/X11R6 \
24119 /usr/local/lib/X11R7 \
24120 /usr/local/x11r5/lib \
24121 /usr/lpp/Xamples/lib \
24123 /usr/openwin/share/lib \
24124 /usr/unsupported/lib \
24127 if test -f "$ac_dir/X11/rgb.txt"; then
24128 im_cv_x_configure="$ac_dir/X11/"
24130 elif test -f "$ac_dir/rgb.txt"; then
24131 im_cv_x_configure="$ac_dir/"
24137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
24138 $as_echo "$im_cv_x_configure" >&6; }
24139 X11_CONFIGURE_PATH="$im_cv_x_configure"
24140 case "${build_os}" in
24142 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24146 cat >>confdefs.h <<_ACEOF
24147 #define X11_CONFIGURE_PATH "$X11ConfigurePath"
24152 # Find OpenMP library
24155 if test "$enable_openmp" != 'no'; then
24156 if test "${GCC}" = "yes"; then
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
24158 $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
24159 if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
24160 $as_echo_n "(cached) " >&6
24162 ac_check_lib_save_LIBS=$LIBS
24163 LIBS="-lgomp $LIBS"
24164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24165 /* end confdefs.h. */
24167 /* Override any GCC internal prototype to avoid an error.
24168 Use char because int might match the return type of a GCC
24169 builtin and then its argument prototype would still apply. */
24173 char GOMP_parallel_start ();
24177 return GOMP_parallel_start ();
24182 if ac_fn_c_try_link "$LINENO"; then :
24183 ac_cv_lib_gomp_GOMP_parallel_start=yes
24185 ac_cv_lib_gomp_GOMP_parallel_start=no
24187 rm -f core conftest.err conftest.$ac_objext \
24188 conftest$ac_exeext conftest.$ac_ext
24189 LIBS=$ac_check_lib_save_LIBS
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
24192 $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
24193 if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
24198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
24199 $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
24200 if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
24201 $as_echo_n "(cached) " >&6
24203 ac_check_lib_save_LIBS=$LIBS
24204 LIBS="-lmtsk $LIBS"
24205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24206 /* end confdefs.h. */
24208 /* Override any GCC internal prototype to avoid an error.
24209 Use char because int might match the return type of a GCC
24210 builtin and then its argument prototype would still apply. */
24214 char sunw_mp_register_warn ();
24218 return sunw_mp_register_warn ();
24223 if ac_fn_c_try_link "$LINENO"; then :
24224 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24226 ac_cv_lib_mtsk_sunw_mp_register_warn=no
24228 rm -f core conftest.err conftest.$ac_objext \
24229 conftest$ac_exeext conftest.$ac_ext
24230 LIBS=$ac_check_lib_save_LIBS
24232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
24233 $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
24234 if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
24238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
24239 $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
24240 if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
24241 $as_echo_n "(cached) " >&6
24243 ac_check_lib_save_LIBS=$LIBS
24244 LIBS="-lxlsmp $LIBS"
24245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24246 /* end confdefs.h. */
24248 /* Override any GCC internal prototype to avoid an error.
24249 Use char because int might match the return type of a GCC
24250 builtin and then its argument prototype would still apply. */
24254 char _xlsmpFlush ();
24258 return _xlsmpFlush ();
24263 if ac_fn_c_try_link "$LINENO"; then :
24264 ac_cv_lib_xlsmp__xlsmpFlush=yes
24266 ac_cv_lib_xlsmp__xlsmpFlush=no
24268 rm -f core conftest.err conftest.$ac_objext \
24269 conftest$ac_exeext conftest.$ac_ext
24270 LIBS=$ac_check_lib_save_LIBS
24272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
24273 $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
24274 if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
24275 GOMP_LIBS="-lxlsmp"
24278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
24279 $as_echo_n "checking for mp_destroy in -lmp... " >&6; }
24280 if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
24281 $as_echo_n "(cached) " >&6
24283 ac_check_lib_save_LIBS=$LIBS
24285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24286 /* end confdefs.h. */
24288 /* Override any GCC internal prototype to avoid an error.
24289 Use char because int might match the return type of a GCC
24290 builtin and then its argument prototype would still apply. */
24294 char mp_destroy ();
24298 return mp_destroy ();
24303 if ac_fn_c_try_link "$LINENO"; then :
24304 ac_cv_lib_mp_mp_destroy=yes
24306 ac_cv_lib_mp_mp_destroy=no
24308 rm -f core conftest.err conftest.$ac_objext \
24309 conftest$ac_exeext conftest.$ac_ext
24310 LIBS=$ac_check_lib_save_LIBS
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
24313 $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
24314 if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
24317 # SGI IRIX 6.5 MIPSpro C/C++
24319 LIBS="$GOMP_LIBS $LIBS"
24324 # Find Posix threads library
24327 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24329 if test "x$PTHREAD_LIBS" = "x"; then
24330 case "${host_cpu}-${host_os}" in
24336 ac_cpp='$CPP $CPPFLAGS'
24337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24341 magick_pthread_lib_ok=no
24347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24348 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
24349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24350 /* end confdefs.h. */
24351 #include <pthread.h>
24356 pthread_join(th, 0);
24357 pthread_attr_init(0);
24358 pthread_cleanup_push(0, 0);
24359 pthread_create(0,0,0,0);
24360 pthread_cleanup_pop(0);
24365 if ac_fn_c_try_link "$LINENO"; then :
24366 magick_pthread_lib_ok=yes
24368 rm -f core conftest.err conftest.$ac_objext \
24369 conftest$ac_exeext conftest.$ac_ext
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24372 $as_echo "${magick_pthread_lib_ok}" >&6; }
24373 if test "$magick_pthread_lib_ok" = yes
24385 ac_cpp='$CPP $CPPFLAGS'
24386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24394 for lib in pthread pthreads; do
24395 if test "x$PTHREAD_LIBS" = "x"; then
24400 ac_cpp='$CPP $CPPFLAGS'
24401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24405 magick_pthread_lib_ok=no
24411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24412 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
24413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24414 /* end confdefs.h. */
24415 #include <pthread.h>
24420 pthread_join(th, 0);
24421 pthread_attr_init(0);
24422 pthread_cleanup_push(0, 0);
24423 pthread_create(0,0,0,0);
24424 pthread_cleanup_pop(0);
24429 if ac_fn_c_try_link "$LINENO"; then :
24430 magick_pthread_lib_ok=yes
24432 rm -f core conftest.err conftest.$ac_objext \
24433 conftest$ac_exeext conftest.$ac_ext
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24436 $as_echo "${magick_pthread_lib_ok}" >&6; }
24437 if test "$magick_pthread_lib_ok" = yes
24439 PTHREAD_LIBS=-l$lib
24449 ac_cpp='$CPP $CPPFLAGS'
24450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24458 THREAD_LIBS="$PTHREAD_LIBS"
24459 LIBS="$LIBS $THREAD_LIBS"
24468 if test "$with_umem" != 'no'; then
24469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
24470 $as_echo_n "checking for UMEM support ... " >&6; }
24471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24475 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24476 if test "x$ac_cv_header_umem_h" = x""yes; then :
24477 passed=`expr $passed + 1`
24479 failed=`expr $failed + 1`
24483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
24484 $as_echo_n "checking for umem_alloc in -lumem... " >&6; }
24485 if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
24486 $as_echo_n "(cached) " >&6
24488 ac_check_lib_save_LIBS=$LIBS
24489 LIBS="-lumem $LIBS"
24490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24491 /* end confdefs.h. */
24493 /* Override any GCC internal prototype to avoid an error.
24494 Use char because int might match the return type of a GCC
24495 builtin and then its argument prototype would still apply. */
24499 char umem_alloc ();
24503 return umem_alloc ();
24508 if ac_fn_c_try_link "$LINENO"; then :
24509 ac_cv_lib_umem_umem_alloc=yes
24511 ac_cv_lib_umem_umem_alloc=no
24513 rm -f core conftest.err conftest.$ac_objext \
24514 conftest$ac_exeext conftest.$ac_ext
24515 LIBS=$ac_check_lib_save_LIBS
24517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
24518 $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
24519 if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
24520 passed=`expr $passed + 1`
24522 failed=`expr $failed + 1`
24525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
24526 $as_echo_n "checking for umem_free in -lumem... " >&6; }
24527 if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
24528 $as_echo_n "(cached) " >&6
24530 ac_check_lib_save_LIBS=$LIBS
24531 LIBS="-lumem $LIBS"
24532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24533 /* end confdefs.h. */
24535 /* Override any GCC internal prototype to avoid an error.
24536 Use char because int might match the return type of a GCC
24537 builtin and then its argument prototype would still apply. */
24545 return umem_free ();
24550 if ac_fn_c_try_link "$LINENO"; then :
24551 ac_cv_lib_umem_umem_free=yes
24553 ac_cv_lib_umem_umem_free=no
24555 rm -f core conftest.err conftest.$ac_objext \
24556 conftest$ac_exeext conftest.$ac_ext
24557 LIBS=$ac_check_lib_save_LIBS
24559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
24560 $as_echo "$ac_cv_lib_umem_umem_free" >&6; }
24561 if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
24562 passed=`expr $passed + 1`
24564 failed=`expr $failed + 1`
24567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
24568 $as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24569 if test $passed -gt 0; then
24570 if test $failed -gt 0; then
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
24572 $as_echo "no -- some components failed test" >&6; }
24573 have_umem='no (failed tests)'
24576 LIBS="$UMEM_LIBS $LIBS"
24578 $as_echo "#define HasUMEM 1" >>confdefs.h
24580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24581 $as_echo "yes" >&6; }
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24586 $as_echo "no" >&6; }
24589 if test "$have_umem" = 'yes'; then
24600 # Add support for ccmalloc memory debugging library if requested
24604 if test "$enable_ccmalloc" = 'yes'; then
24605 # Extract the first word of "ccmalloc", so it can be a program name with args.
24606 set dummy ccmalloc; ac_word=$2
24607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24608 $as_echo_n "checking for $ac_word... " >&6; }
24609 if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
24610 $as_echo_n "(cached) " >&6
24612 case $CCMALLOCDelegate in
24614 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24618 for as_dir in $PATH
24621 test -z "$as_dir" && as_dir=.
24622 for ac_exec_ext in '' $ac_executable_extensions; do
24623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24624 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
24625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24635 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24636 if test -n "$CCMALLOCDelegate"; then
24637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
24638 $as_echo "$CCMALLOCDelegate" >&6; }
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24641 $as_echo "no" >&6; }
24645 if test -n "$CCMALLOCDelegate"; then
24646 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24648 # Assume that gcc is used with ccmalloc.
24649 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
24650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
24651 $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
24652 if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
24653 $as_echo_n "(cached) " >&6
24655 ac_check_lib_save_LIBS=$LIBS
24656 LIBS="-lccmalloc -ldl $LIBS"
24657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24658 /* end confdefs.h. */
24660 /* Override any GCC internal prototype to avoid an error.
24661 Use char because int might match the return type of a GCC
24662 builtin and then its argument prototype would still apply. */
24666 char ccmalloc_malloc ();
24670 return ccmalloc_malloc ();
24675 if ac_fn_c_try_link "$LINENO"; then :
24676 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24678 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
24680 rm -f core conftest.err conftest.$ac_objext \
24681 conftest$ac_exeext conftest.$ac_ext
24682 LIBS=$ac_check_lib_save_LIBS
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
24685 $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
24686 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
24687 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24690 if test -n "$CCMALLOC_LIBS"; then
24692 LIBS="$LIBS $CCMALLOC_LIBS"
24693 have_ccmalloc='yes'
24701 # Add support for efence memory debugging library if requested
24703 if test "$enable_efence" = 'yes'; then
24704 EFENCE_LIBS='-lefence'
24705 LIBS="$EFENCE_LIBS $LIBS"
24714 # Check whether --with-bzlib was given.
24715 if test "${with_bzlib+set}" = set; then :
24716 withval=$with_bzlib; with_bzlib=$withval
24722 if test "$with_bzlib" != 'yes'; then
24723 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24727 if test "$with_bzlib" != 'no'; then
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24730 $as_echo "-------------------------------------------------------------" >&6; }
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
24732 $as_echo_n "checking for BZLIB... " >&6; }
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24738 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24739 if test "x$ac_cv_header_bzlib_h" = x""yes; then :
24740 passed=`expr $passed + 1`
24742 failed=`expr $failed + 1`
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
24747 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
24748 if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
24749 $as_echo_n "(cached) " >&6
24751 ac_check_lib_save_LIBS=$LIBS
24753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24754 /* end confdefs.h. */
24756 /* Override any GCC internal prototype to avoid an error.
24757 Use char because int might match the return type of a GCC
24758 builtin and then its argument prototype would still apply. */
24762 char BZ2_bzDecompress ();
24766 return BZ2_bzDecompress ();
24771 if ac_fn_c_try_link "$LINENO"; then :
24772 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24774 ac_cv_lib_bz2_BZ2_bzDecompress=no
24776 rm -f core conftest.err conftest.$ac_objext \
24777 conftest$ac_exeext conftest.$ac_ext
24778 LIBS=$ac_check_lib_save_LIBS
24780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
24781 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
24782 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
24783 found_libbz=`expr $found_libbz + 1`
24786 if test "$native_win32_build" = 'yes'; then
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
24788 $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
24789 if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
24790 $as_echo_n "(cached) " >&6
24792 ac_check_lib_save_LIBS=$LIBS
24794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24795 /* end confdefs.h. */
24797 /* Override any GCC internal prototype to avoid an error.
24798 Use char because int might match the return type of a GCC
24799 builtin and then its argument prototype would still apply. */
24803 char _imp__BZ2_decompress ();
24807 return _imp__BZ2_decompress ();
24812 if ac_fn_c_try_link "$LINENO"; then :
24813 ac_cv_lib_bz2__imp__BZ2_decompress=yes
24815 ac_cv_lib_bz2__imp__BZ2_decompress=no
24817 rm -f core conftest.err conftest.$ac_objext \
24818 conftest$ac_exeext conftest.$ac_ext
24819 LIBS=$ac_check_lib_save_LIBS
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
24822 $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
24823 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
24824 found_libbz=`expr $found_libbz + 1`
24828 if test $found_libbz -gt 0; then
24829 passed=`expr $passed + 1`
24831 failed=`expr $failed + 1`
24833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
24834 $as_echo_n "checking if BZLIB package is complete... " >&6; }
24835 if test $passed -gt 0; then
24836 if test $failed -gt 0; then
24837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
24838 $as_echo "no -- some components failed test" >&6; }
24839 have_bzlib='no (failed tests)'
24842 LIBS="$BZLIB_LIBS $LIBS"
24844 $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
24846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24847 $as_echo "yes" >&6; }
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24852 $as_echo "no" >&6; }
24855 if test "$have_bzlib" = 'yes'; then
24856 BZLIB_DELEGATE_TRUE=
24857 BZLIB_DELEGATE_FALSE='#'
24859 BZLIB_DELEGATE_TRUE='#'
24860 BZLIB_DELEGATE_FALSE=
24866 # Find the X11 include and library directories.
24872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24873 $as_echo_n "checking for X... " >&6; }
24876 # Check whether --with-x was given.
24877 if test "${with_x+set}" = set; then :
24881 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24882 if test "x$with_x" = xno; then
24883 # The user explicitly disabled X.
24886 case $x_includes,$x_libraries in #(
24887 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24888 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24889 $as_echo_n "(cached) " >&6
24891 # One or both of the vars are not set, and there is no cached value.
24892 ac_x_includes=no ac_x_libraries=no
24893 rm -f -r conftest.dir
24894 if mkdir conftest.dir; then
24896 cat >Imakefile <<'_ACEOF'
24898 @echo incroot='${INCROOT}'
24900 @echo usrlibdir='${USRLIBDIR}'
24902 @echo libdir='${LIBDIR}'
24904 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24905 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24906 for ac_var in incroot usrlibdir libdir; do
24907 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24909 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24910 for ac_extension in a so sl dylib la dll; do
24911 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24912 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24913 ac_im_usrlibdir=$ac_im_libdir; break
24916 # Screen out bogus values from the imake configuration. They are
24917 # bogus both because they are the default anyway, and because
24918 # using them would break gcc on systems where it needs fixed includes.
24919 case $ac_im_incroot in
24920 /usr/include) ac_x_includes= ;;
24921 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24923 case $ac_im_usrlibdir in
24924 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24925 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24929 rm -f -r conftest.dir
24932 # Standard set of common directories for X headers.
24933 # Check X11 before X11Rn because it is often a symlink to the current release.
24947 /usr/local/X11/include
24948 /usr/local/X11R7/include
24949 /usr/local/X11R6/include
24950 /usr/local/X11R5/include
24951 /usr/local/X11R4/include
24953 /usr/local/include/X11
24954 /usr/local/include/X11R7
24955 /usr/local/include/X11R6
24956 /usr/local/include/X11R5
24957 /usr/local/include/X11R4
24961 /usr/XFree86/include/X11
24965 /usr/unsupported/include
24966 /usr/athena/include
24967 /usr/local/x11r5/include
24968 /usr/lpp/Xamples/include
24970 /usr/openwin/include
24971 /usr/openwin/share/include'
24973 if test "$ac_x_includes" = no; then
24974 # Guess where to find include files, by looking for Xlib.h.
24975 # First, try using that file with no special directory specified.
24976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24977 /* end confdefs.h. */
24978 #include <X11/Xlib.h>
24980 if ac_fn_c_try_cpp "$LINENO"; then :
24981 # We can compile using X headers with no special include directory.
24984 for ac_dir in $ac_x_header_dirs; do
24985 if test -r "$ac_dir/X11/Xlib.h"; then
24986 ac_x_includes=$ac_dir
24991 rm -f conftest.err conftest.$ac_ext
24992 fi # $ac_x_includes = no
24994 if test "$ac_x_libraries" = no; then
24995 # Check for the libraries.
24996 # See if we find them without any special options.
24997 # Don't add to $LIBS permanently.
25000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25001 /* end confdefs.h. */
25002 #include <X11/Xlib.h>
25011 if ac_fn_c_try_link "$LINENO"; then :
25013 # We can link X programs with no special library path.
25017 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25019 # Don't even attempt the hair of trying to link an X program!
25020 for ac_extension in a so sl dylib la dll; do
25021 if test -r "$ac_dir/libX11.$ac_extension"; then
25022 ac_x_libraries=$ac_dir
25028 rm -f core conftest.err conftest.$ac_objext \
25029 conftest$ac_exeext conftest.$ac_ext
25030 fi # $ac_x_libraries = no
25032 case $ac_x_includes,$ac_x_libraries in #(
25033 no,* | *,no | *\'*)
25034 # Didn't find X, or a directory has "'" in its name.
25035 ac_cv_have_x="have_x=no";; #(
25037 # Record where we found X for the cache.
25038 ac_cv_have_x="have_x=yes\
25039 ac_x_includes='$ac_x_includes'\
25040 ac_x_libraries='$ac_x_libraries'"
25046 eval "$ac_cv_have_x"
25049 if test "$have_x" != yes; then
25050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25051 $as_echo "$have_x" >&6; }
25054 # If each of the values was on the command line, it overrides each guess.
25055 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25056 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25057 # Update the cache value to reflect the command line values.
25058 ac_cv_have_x="have_x=yes\
25059 ac_x_includes='$x_includes'\
25060 ac_x_libraries='$x_libraries'"
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25062 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25065 if test "$no_x" = yes; then
25066 # Not all programs may use this symbol, but it does not hurt to define it.
25068 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25070 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25072 if test -n "$x_includes"; then
25073 X_CFLAGS="$X_CFLAGS -I$x_includes"
25076 # It would also be nice to do this for all -L options, not just this one.
25077 if test -n "$x_libraries"; then
25078 X_LIBS="$X_LIBS -L$x_libraries"
25079 # For Solaris; some versions of Sun CC require a space after -R and
25080 # others require no space. Words are not sufficient . . . .
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25082 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25083 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25084 ac_xsave_c_werror_flag=$ac_c_werror_flag
25085 ac_c_werror_flag=yes
25086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25087 /* end confdefs.h. */
25097 if ac_fn_c_try_link "$LINENO"; then :
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25099 $as_echo "no" >&6; }
25100 X_LIBS="$X_LIBS -R$x_libraries"
25102 LIBS="$ac_xsave_LIBS -R $x_libraries"
25103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25104 /* end confdefs.h. */
25114 if ac_fn_c_try_link "$LINENO"; then :
25115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25116 $as_echo "yes" >&6; }
25117 X_LIBS="$X_LIBS -R $x_libraries"
25119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25120 $as_echo "neither works" >&6; }
25122 rm -f core conftest.err conftest.$ac_objext \
25123 conftest$ac_exeext conftest.$ac_ext
25125 rm -f core conftest.err conftest.$ac_objext \
25126 conftest$ac_exeext conftest.$ac_ext
25127 ac_c_werror_flag=$ac_xsave_c_werror_flag
25128 LIBS=$ac_xsave_LIBS
25131 # Check for system-dependent libraries X programs must link with.
25132 # Do this before checking for the system-independent R6 libraries
25133 # (-lICE), since we may need -lsocket or whatever for X linking.
25135 if test "$ISC" = yes; then
25136 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25138 # Martyn Johnson says this is needed for Ultrix, if the X
25139 # libraries were built with DECnet support. And Karl Berry says
25140 # the Alpha needs dnet_stub (dnet does not exist).
25141 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25143 /* end confdefs.h. */
25145 /* Override any GCC internal prototype to avoid an error.
25146 Use char because int might match the return type of a GCC
25147 builtin and then its argument prototype would still apply. */
25151 char XOpenDisplay ();
25155 return XOpenDisplay ();
25160 if ac_fn_c_try_link "$LINENO"; then :
25163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25164 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25165 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
25166 $as_echo_n "(cached) " >&6
25168 ac_check_lib_save_LIBS=$LIBS
25169 LIBS="-ldnet $LIBS"
25170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25171 /* end confdefs.h. */
25173 /* Override any GCC internal prototype to avoid an error.
25174 Use char because int might match the return type of a GCC
25175 builtin and then its argument prototype would still apply. */
25183 return dnet_ntoa ();
25188 if ac_fn_c_try_link "$LINENO"; then :
25189 ac_cv_lib_dnet_dnet_ntoa=yes
25191 ac_cv_lib_dnet_dnet_ntoa=no
25193 rm -f core conftest.err conftest.$ac_objext \
25194 conftest$ac_exeext conftest.$ac_ext
25195 LIBS=$ac_check_lib_save_LIBS
25197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25198 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25199 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
25200 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25203 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25205 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25206 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
25207 $as_echo_n "(cached) " >&6
25209 ac_check_lib_save_LIBS=$LIBS
25210 LIBS="-ldnet_stub $LIBS"
25211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25212 /* end confdefs.h. */
25214 /* Override any GCC internal prototype to avoid an error.
25215 Use char because int might match the return type of a GCC
25216 builtin and then its argument prototype would still apply. */
25224 return dnet_ntoa ();
25229 if ac_fn_c_try_link "$LINENO"; then :
25230 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25232 ac_cv_lib_dnet_stub_dnet_ntoa=no
25234 rm -f core conftest.err conftest.$ac_objext \
25235 conftest$ac_exeext conftest.$ac_ext
25236 LIBS=$ac_check_lib_save_LIBS
25238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25239 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25240 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
25241 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25246 rm -f core conftest.err conftest.$ac_objext \
25247 conftest$ac_exeext conftest.$ac_ext
25248 LIBS="$ac_xsave_LIBS"
25250 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25251 # to get the SysV transport functions.
25252 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25254 # The nsl library prevents programs from opening the X display
25255 # on Irix 5.2, according to T.E. Dickey.
25256 # The functions gethostbyname, getservbyname, and inet_addr are
25257 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25258 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25259 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
25263 if test $ac_cv_func_gethostbyname = no; then
25264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25265 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25266 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
25267 $as_echo_n "(cached) " >&6
25269 ac_check_lib_save_LIBS=$LIBS
25271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25272 /* end confdefs.h. */
25274 /* Override any GCC internal prototype to avoid an error.
25275 Use char because int might match the return type of a GCC
25276 builtin and then its argument prototype would still apply. */
25280 char gethostbyname ();
25284 return gethostbyname ();
25289 if ac_fn_c_try_link "$LINENO"; then :
25290 ac_cv_lib_nsl_gethostbyname=yes
25292 ac_cv_lib_nsl_gethostbyname=no
25294 rm -f core conftest.err conftest.$ac_objext \
25295 conftest$ac_exeext conftest.$ac_ext
25296 LIBS=$ac_check_lib_save_LIBS
25298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25299 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25300 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
25301 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25304 if test $ac_cv_lib_nsl_gethostbyname = no; then
25305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25306 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25307 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
25308 $as_echo_n "(cached) " >&6
25310 ac_check_lib_save_LIBS=$LIBS
25312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25313 /* end confdefs.h. */
25315 /* Override any GCC internal prototype to avoid an error.
25316 Use char because int might match the return type of a GCC
25317 builtin and then its argument prototype would still apply. */
25321 char gethostbyname ();
25325 return gethostbyname ();
25330 if ac_fn_c_try_link "$LINENO"; then :
25331 ac_cv_lib_bsd_gethostbyname=yes
25333 ac_cv_lib_bsd_gethostbyname=no
25335 rm -f core conftest.err conftest.$ac_objext \
25336 conftest$ac_exeext conftest.$ac_ext
25337 LIBS=$ac_check_lib_save_LIBS
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25340 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25341 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
25342 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25348 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25349 # socket/setsockopt and other routines are undefined under SCO ODT
25350 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25351 # on later versions), says Simon Leinen: it contains gethostby*
25352 # variants that don't use the name server (or something). -lsocket
25353 # must be given before -lnsl if both are needed. We assume that
25354 # if connect needs -lnsl, so does gethostbyname.
25355 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25356 if test "x$ac_cv_func_connect" = x""yes; then :
25360 if test $ac_cv_func_connect = no; then
25361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25362 $as_echo_n "checking for connect in -lsocket... " >&6; }
25363 if test "${ac_cv_lib_socket_connect+set}" = set; then :
25364 $as_echo_n "(cached) " >&6
25366 ac_check_lib_save_LIBS=$LIBS
25367 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25369 /* end confdefs.h. */
25371 /* Override any GCC internal prototype to avoid an error.
25372 Use char because int might match the return type of a GCC
25373 builtin and then its argument prototype would still apply. */
25386 if ac_fn_c_try_link "$LINENO"; then :
25387 ac_cv_lib_socket_connect=yes
25389 ac_cv_lib_socket_connect=no
25391 rm -f core conftest.err conftest.$ac_objext \
25392 conftest$ac_exeext conftest.$ac_ext
25393 LIBS=$ac_check_lib_save_LIBS
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25396 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25397 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
25398 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25403 # Guillermo Gomez says -lposix is necessary on A/UX.
25404 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25405 if test "x$ac_cv_func_remove" = x""yes; then :
25409 if test $ac_cv_func_remove = no; then
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25411 $as_echo_n "checking for remove in -lposix... " >&6; }
25412 if test "${ac_cv_lib_posix_remove+set}" = set; then :
25413 $as_echo_n "(cached) " >&6
25415 ac_check_lib_save_LIBS=$LIBS
25416 LIBS="-lposix $LIBS"
25417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25418 /* end confdefs.h. */
25420 /* Override any GCC internal prototype to avoid an error.
25421 Use char because int might match the return type of a GCC
25422 builtin and then its argument prototype would still apply. */
25435 if ac_fn_c_try_link "$LINENO"; then :
25436 ac_cv_lib_posix_remove=yes
25438 ac_cv_lib_posix_remove=no
25440 rm -f core conftest.err conftest.$ac_objext \
25441 conftest$ac_exeext conftest.$ac_ext
25442 LIBS=$ac_check_lib_save_LIBS
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25445 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25446 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
25447 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25452 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25453 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25454 if test "x$ac_cv_func_shmat" = x""yes; then :
25458 if test $ac_cv_func_shmat = no; then
25459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25460 $as_echo_n "checking for shmat in -lipc... " >&6; }
25461 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
25462 $as_echo_n "(cached) " >&6
25464 ac_check_lib_save_LIBS=$LIBS
25466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25467 /* end confdefs.h. */
25469 /* Override any GCC internal prototype to avoid an error.
25470 Use char because int might match the return type of a GCC
25471 builtin and then its argument prototype would still apply. */
25484 if ac_fn_c_try_link "$LINENO"; then :
25485 ac_cv_lib_ipc_shmat=yes
25487 ac_cv_lib_ipc_shmat=no
25489 rm -f core conftest.err conftest.$ac_objext \
25490 conftest$ac_exeext conftest.$ac_ext
25491 LIBS=$ac_check_lib_save_LIBS
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25494 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25495 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
25496 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25502 # Check for libraries that X11R6 Xt/Xaw programs need.
25503 ac_save_LDFLAGS=$LDFLAGS
25504 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25505 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25506 # check for ICE first), but we must link in the order -lSM -lICE or
25507 # we get undefined symbols. So assume we have SM if we have ICE.
25508 # These have to be linked with before -lX11, unlike the other
25509 # libraries we check for below, so use a different variable.
25510 # John Interrante, Karl Berry
25511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25512 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25513 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
25514 $as_echo_n "(cached) " >&6
25516 ac_check_lib_save_LIBS=$LIBS
25517 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25519 /* end confdefs.h. */
25521 /* Override any GCC internal prototype to avoid an error.
25522 Use char because int might match the return type of a GCC
25523 builtin and then its argument prototype would still apply. */
25527 char IceConnectionNumber ();
25531 return IceConnectionNumber ();
25536 if ac_fn_c_try_link "$LINENO"; then :
25537 ac_cv_lib_ICE_IceConnectionNumber=yes
25539 ac_cv_lib_ICE_IceConnectionNumber=no
25541 rm -f core conftest.err conftest.$ac_objext \
25542 conftest$ac_exeext conftest.$ac_ext
25543 LIBS=$ac_check_lib_save_LIBS
25545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25546 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25547 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
25548 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25551 LDFLAGS=$ac_save_LDFLAGS
25555 if test "$no_x" != 'yes'; then
25556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25557 $as_echo "-------------------------------------------------------------" >&6; }
25558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
25559 $as_echo_n "checking for X11... " >&6; }
25560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25562 LDFLAGS="$LDFLAGS $X_LIBS"
25563 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25564 LIBS="$X11_LIBS $LIBS"
25565 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25568 $as_echo "#define X11_DELEGATE 1" >>confdefs.h
25571 # Check for X11 shared memory extension
25573 # shmctl is required to support the shared memory extension
25574 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25575 if test "x$ac_cv_func_shmctl" = x""yes; then :
25579 if test "$have_shmctl" != 'yes'; then
25581 LIBS="$LIBS -lcygipc"
25582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25583 /* end confdefs.h. */
25585 /* Override any GCC internal prototype to avoid an error.
25586 Use char because int might match the return type of a GCC
25587 builtin and then its argument prototype would still apply. */
25600 if ac_fn_c_try_link "$LINENO"; then :
25601 have_shmctl='yes'; IPC_LIBS='-lcygipc'
25603 rm -f core conftest.err conftest.$ac_objext \
25604 conftest$ac_exeext conftest.$ac_ext
25608 if test "$have_shmctl" = 'yes'; then
25609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
25610 $as_echo_n "checking for XShmAttach in -lXext... " >&6; }
25611 if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
25612 $as_echo_n "(cached) " >&6
25614 ac_check_lib_save_LIBS=$LIBS
25615 LIBS="-lXext $LIBS"
25616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25617 /* end confdefs.h. */
25619 /* Override any GCC internal prototype to avoid an error.
25620 Use char because int might match the return type of a GCC
25621 builtin and then its argument prototype would still apply. */
25625 char XShmAttach ();
25629 return XShmAttach ();
25634 if ac_fn_c_try_link "$LINENO"; then :
25635 ac_cv_lib_Xext_XShmAttach=yes
25637 ac_cv_lib_Xext_XShmAttach=no
25639 rm -f core conftest.err conftest.$ac_objext \
25640 conftest$ac_exeext conftest.$ac_ext
25641 LIBS=$ac_check_lib_save_LIBS
25643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
25644 $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
25645 if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
25646 XEXT_LIBS='-lXext' ;
25647 $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
25654 # Check for X11 shape extension
25656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
25657 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
25658 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
25659 $as_echo_n "(cached) " >&6
25661 ac_check_lib_save_LIBS=$LIBS
25662 LIBS="-lXext $LIBS"
25663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25664 /* end confdefs.h. */
25666 /* Override any GCC internal prototype to avoid an error.
25667 Use char because int might match the return type of a GCC
25668 builtin and then its argument prototype would still apply. */
25672 char XShapeCombineMask ();
25676 return XShapeCombineMask ();
25681 if ac_fn_c_try_link "$LINENO"; then :
25682 ac_cv_lib_Xext_XShapeCombineMask=yes
25684 ac_cv_lib_Xext_XShapeCombineMask=no
25686 rm -f core conftest.err conftest.$ac_objext \
25687 conftest$ac_exeext conftest.$ac_ext
25688 LIBS=$ac_check_lib_save_LIBS
25690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
25691 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
25692 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
25693 XEXT_LIBS='-lXext' ;
25694 $as_echo "#define HAVE_SHAPE 1" >>confdefs.h
25698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
25699 $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
25700 if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
25701 $as_echo_n "(cached) " >&6
25703 ac_check_lib_save_LIBS=$LIBS
25705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25706 /* end confdefs.h. */
25708 /* Override any GCC internal prototype to avoid an error.
25709 Use char because int might match the return type of a GCC
25710 builtin and then its argument prototype would still apply. */
25714 char XtSetEventDispatcher ();
25718 return XtSetEventDispatcher ();
25723 if ac_fn_c_try_link "$LINENO"; then :
25724 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25726 ac_cv_lib_Xt_XtSetEventDispatcher=no
25728 rm -f core conftest.err conftest.$ac_objext \
25729 conftest$ac_exeext conftest.$ac_ext
25730 LIBS=$ac_check_lib_save_LIBS
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
25733 $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
25734 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
25738 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25740 if test "$no_x" != 'yes'; then
25745 if test "$have_x" = 'yes'; then
25747 X11_DELEGATE_FALSE='#'
25749 X11_DELEGATE_TRUE='#'
25750 X11_DELEGATE_FALSE=
25761 # Check whether --with-zlib was given.
25762 if test "${with_zlib+set}" = set; then :
25763 withval=$with_zlib; with_zlib=$withval
25769 if test "$with_zlib" != 'yes'; then
25770 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25775 if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
25776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25777 $as_echo "-------------------------------------------------------------" >&6; }
25778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
25779 $as_echo_n "checking for ZLIB... " >&6; }
25780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25785 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25786 if test "x$ac_cv_header_zconf_h" = x""yes; then :
25787 passed=`expr $passed + 1`
25789 failed=`expr $failed + 1`
25793 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25794 if test "x$ac_cv_header_zlib_h" = x""yes; then :
25795 passed=`expr $passed + 1`
25797 failed=`expr $failed + 1`
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
25802 $as_echo_n "checking for compress in -lz... " >&6; }
25803 if test "${ac_cv_lib_z_compress+set}" = set; then :
25804 $as_echo_n "(cached) " >&6
25806 ac_check_lib_save_LIBS=$LIBS
25808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25809 /* end confdefs.h. */
25811 /* Override any GCC internal prototype to avoid an error.
25812 Use char because int might match the return type of a GCC
25813 builtin and then its argument prototype would still apply. */
25821 return compress ();
25826 if ac_fn_c_try_link "$LINENO"; then :
25827 ac_cv_lib_z_compress=yes
25829 ac_cv_lib_z_compress=no
25831 rm -f core conftest.err conftest.$ac_objext \
25832 conftest$ac_exeext conftest.$ac_ext
25833 LIBS=$ac_check_lib_save_LIBS
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
25836 $as_echo "$ac_cv_lib_z_compress" >&6; }
25837 if test "x$ac_cv_lib_z_compress" = x""yes; then :
25838 passed=`expr $passed + 1`
25840 failed=`expr $failed + 1`
25843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
25844 $as_echo_n "checking for uncompress in -lz... " >&6; }
25845 if test "${ac_cv_lib_z_uncompress+set}" = set; then :
25846 $as_echo_n "(cached) " >&6
25848 ac_check_lib_save_LIBS=$LIBS
25850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25851 /* end confdefs.h. */
25853 /* Override any GCC internal prototype to avoid an error.
25854 Use char because int might match the return type of a GCC
25855 builtin and then its argument prototype would still apply. */
25859 char uncompress ();
25863 return uncompress ();
25868 if ac_fn_c_try_link "$LINENO"; then :
25869 ac_cv_lib_z_uncompress=yes
25871 ac_cv_lib_z_uncompress=no
25873 rm -f core conftest.err conftest.$ac_objext \
25874 conftest$ac_exeext conftest.$ac_ext
25875 LIBS=$ac_check_lib_save_LIBS
25877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
25878 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
25879 if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
25880 passed=`expr $passed + 1`
25882 failed=`expr $failed + 1`
25885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
25886 $as_echo_n "checking for deflate in -lz... " >&6; }
25887 if test "${ac_cv_lib_z_deflate+set}" = set; then :
25888 $as_echo_n "(cached) " >&6
25890 ac_check_lib_save_LIBS=$LIBS
25892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25893 /* end confdefs.h. */
25895 /* Override any GCC internal prototype to avoid an error.
25896 Use char because int might match the return type of a GCC
25897 builtin and then its argument prototype would still apply. */
25910 if ac_fn_c_try_link "$LINENO"; then :
25911 ac_cv_lib_z_deflate=yes
25913 ac_cv_lib_z_deflate=no
25915 rm -f core conftest.err conftest.$ac_objext \
25916 conftest$ac_exeext conftest.$ac_ext
25917 LIBS=$ac_check_lib_save_LIBS
25919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
25920 $as_echo "$ac_cv_lib_z_deflate" >&6; }
25921 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
25922 passed=`expr $passed + 1`
25924 failed=`expr $failed + 1`
25927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
25928 $as_echo_n "checking for inflate in -lz... " >&6; }
25929 if test "${ac_cv_lib_z_inflate+set}" = set; then :
25930 $as_echo_n "(cached) " >&6
25932 ac_check_lib_save_LIBS=$LIBS
25934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25935 /* end confdefs.h. */
25937 /* Override any GCC internal prototype to avoid an error.
25938 Use char because int might match the return type of a GCC
25939 builtin and then its argument prototype would still apply. */
25952 if ac_fn_c_try_link "$LINENO"; then :
25953 ac_cv_lib_z_inflate=yes
25955 ac_cv_lib_z_inflate=no
25957 rm -f core conftest.err conftest.$ac_objext \
25958 conftest$ac_exeext conftest.$ac_ext
25959 LIBS=$ac_check_lib_save_LIBS
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
25962 $as_echo "$ac_cv_lib_z_inflate" >&6; }
25963 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
25964 passed=`expr $passed + 1`
25966 failed=`expr $failed + 1`
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
25970 $as_echo_n "checking for gzseek in -lz... " >&6; }
25971 if test "${ac_cv_lib_z_gzseek+set}" = set; then :
25972 $as_echo_n "(cached) " >&6
25974 ac_check_lib_save_LIBS=$LIBS
25976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25977 /* end confdefs.h. */
25979 /* Override any GCC internal prototype to avoid an error.
25980 Use char because int might match the return type of a GCC
25981 builtin and then its argument prototype would still apply. */
25994 if ac_fn_c_try_link "$LINENO"; then :
25995 ac_cv_lib_z_gzseek=yes
25997 ac_cv_lib_z_gzseek=no
25999 rm -f core conftest.err conftest.$ac_objext \
26000 conftest$ac_exeext conftest.$ac_ext
26001 LIBS=$ac_check_lib_save_LIBS
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
26004 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
26005 if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
26006 passed=`expr $passed + 1`
26008 failed=`expr $failed + 1`
26011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
26012 $as_echo_n "checking for gztell in -lz... " >&6; }
26013 if test "${ac_cv_lib_z_gztell+set}" = set; then :
26014 $as_echo_n "(cached) " >&6
26016 ac_check_lib_save_LIBS=$LIBS
26018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26019 /* end confdefs.h. */
26021 /* Override any GCC internal prototype to avoid an error.
26022 Use char because int might match the return type of a GCC
26023 builtin and then its argument prototype would still apply. */
26036 if ac_fn_c_try_link "$LINENO"; then :
26037 ac_cv_lib_z_gztell=yes
26039 ac_cv_lib_z_gztell=no
26041 rm -f core conftest.err conftest.$ac_objext \
26042 conftest$ac_exeext conftest.$ac_ext
26043 LIBS=$ac_check_lib_save_LIBS
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
26046 $as_echo "$ac_cv_lib_z_gztell" >&6; }
26047 if test "x$ac_cv_lib_z_gztell" = x""yes; then :
26048 passed=`expr $passed + 1`
26050 failed=`expr $failed + 1`
26053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
26054 $as_echo_n "checking if ZLIB package is complete... " >&6; }
26055 if test $passed -gt 0; then
26056 if test $failed -gt 0; then
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26058 $as_echo "no -- some components failed test" >&6; }
26059 have_zlib='no (failed tests)'
26062 LIBS="$ZLIB_LIBS $LIBS"
26064 $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
26066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26067 $as_echo "yes" >&6; }
26071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26072 $as_echo "no" >&6; }
26075 if test "$have_zlib" = 'yes'; then
26076 ZLIB_DELEGATE_TRUE=
26077 ZLIB_DELEGATE_FALSE='#'
26079 ZLIB_DELEGATE_TRUE='#'
26080 ZLIB_DELEGATE_FALSE=
26086 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26089 if test "$enable_profiling" = 'yes'; then
26090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
26091 $as_echo_n "checking for dlopen in -ldl... " >&6; }
26092 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
26093 $as_echo_n "(cached) " >&6
26095 ac_check_lib_save_LIBS=$LIBS
26097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26098 /* end confdefs.h. */
26100 /* Override any GCC internal prototype to avoid an error.
26101 Use char because int might match the return type of a GCC
26102 builtin and then its argument prototype would still apply. */
26115 if ac_fn_c_try_link "$LINENO"; then :
26116 ac_cv_lib_dl_dlopen=yes
26118 ac_cv_lib_dl_dlopen=no
26120 rm -f core conftest.err conftest.$ac_objext \
26121 conftest$ac_exeext conftest.$ac_ext
26122 LIBS=$ac_check_lib_save_LIBS
26124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
26125 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
26126 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
26130 LIBS="$LIB_DL $LIBS"
26136 # Check for Autotrace delegate library.
26139 # Check whether --with-autotrace was given.
26140 if test "${with_autotrace+set}" = set; then :
26141 withval=$with_autotrace; with_autotrace=$withval
26143 with_autotrace='no'
26147 if test "$with_autotrace" != 'yes'; then
26148 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26151 have_autotrace='no'
26152 AUTOTRACE_CFLAGS=""
26155 if test "x$with_autotrace" = "xyes"; then
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26157 $as_echo "-------------------------------------------------------------" >&6; }
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
26161 $as_echo_n "checking for AUTOTRACE... " >&6; }
26163 if test -n "$AUTOTRACE_CFLAGS"; then
26164 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26165 elif test -n "$PKG_CONFIG"; then
26166 if test -n "$PKG_CONFIG" && \
26167 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26168 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26171 test $ac_status = 0; }; then
26172 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26179 if test -n "$AUTOTRACE_LIBS"; then
26180 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26181 elif test -n "$PKG_CONFIG"; then
26182 if test -n "$PKG_CONFIG" && \
26183 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26184 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26187 test $ac_status = 0; }; then
26188 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26198 if test $pkg_failed = yes; then
26200 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26201 _pkg_short_errors_supported=yes
26203 _pkg_short_errors_supported=no
26205 if test $_pkg_short_errors_supported = yes; then
26206 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26208 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26210 # Put the nasty error message in config.log where it belongs
26211 echo "$AUTOTRACE_PKG_ERRORS" >&5
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26214 $as_echo "no" >&6; }
26216 elif test $pkg_failed = untried; then
26219 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26220 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
26221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26222 $as_echo "yes" >&6; }
26225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26229 if test "$have_autotrace" = 'yes'; then
26232 $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
26234 if test "$with_modules" = 'no'; then
26235 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26239 if test "$have_autotrace" = 'yes'; then
26240 AUTOTRACE_DELEGATE_TRUE=
26241 AUTOTRACE_DELEGATE_FALSE='#'
26243 AUTOTRACE_DELEGATE_TRUE='#'
26244 AUTOTRACE_DELEGATE_FALSE=
26252 # Check for Display Postscript delegate library.
26255 # Check whether --with-dps was given.
26256 if test "${with_dps+set}" = set; then :
26257 withval=$with_dps; with_dps=$withval
26263 if test "$with_dps" != 'yes'; then
26264 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26269 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
26270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26271 $as_echo "-------------------------------------------------------------" >&6; }
26272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
26273 $as_echo_n "checking for DPS... " >&6; }
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26278 PERSIST_CPPFLAGS="$CPPFLAGS"
26279 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
26280 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26281 if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
26282 passed=`expr $passed + 1`
26284 failed=`expr $failed + 1`
26289 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26290 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26291 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26292 # ImageMagick itself doesn't use -lXt.
26295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
26296 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
26297 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
26298 $as_echo_n "(cached) " >&6
26300 ac_check_lib_save_LIBS=$LIBS
26302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26303 /* end confdefs.h. */
26305 /* Override any GCC internal prototype to avoid an error.
26306 Use char because int might match the return type of a GCC
26307 builtin and then its argument prototype would still apply. */
26311 char DPSInitialize ();
26315 return DPSInitialize ();
26320 if ac_fn_c_try_link "$LINENO"; then :
26321 ac_cv_lib_dps_DPSInitialize=yes
26323 ac_cv_lib_dps_DPSInitialize=no
26325 rm -f core conftest.err conftest.$ac_objext \
26326 conftest$ac_exeext conftest.$ac_ext
26327 LIBS=$ac_check_lib_save_LIBS
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
26330 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
26331 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
26337 if test "$have_libdps" != 'yes'; then
26338 # Unset cache variable so we can try again.
26339 unset ac_cv_lib_dps_DPSInitialize
26340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
26341 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
26342 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
26343 $as_echo_n "(cached) " >&6
26345 ac_check_lib_save_LIBS=$LIBS
26346 LIBS="-ldps -lXt $LIBS"
26347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26348 /* end confdefs.h. */
26350 /* Override any GCC internal prototype to avoid an error.
26351 Use char because int might match the return type of a GCC
26352 builtin and then its argument prototype would still apply. */
26356 char DPSInitialize ();
26360 return DPSInitialize ();
26365 if ac_fn_c_try_link "$LINENO"; then :
26366 ac_cv_lib_dps_DPSInitialize=yes
26368 ac_cv_lib_dps_DPSInitialize=no
26370 rm -f core conftest.err conftest.$ac_objext \
26371 conftest$ac_exeext conftest.$ac_ext
26372 LIBS=$ac_check_lib_save_LIBS
26374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
26375 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
26376 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
26382 if test "$have_libdps" = 'yes'; then
26386 if test "$have_libdps" = 'yes'; then
26387 passed=`expr $passed + 1`
26389 failed=`expr $failed + 1`
26391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
26392 $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
26393 if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
26394 $as_echo_n "(cached) " >&6
26396 ac_check_lib_save_LIBS=$LIBS
26397 LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
26398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26399 /* end confdefs.h. */
26401 /* Override any GCC internal prototype to avoid an error.
26402 Use char because int might match the return type of a GCC
26403 builtin and then its argument prototype would still apply. */
26407 char XDPSPixelsPerPoint ();
26411 return XDPSPixelsPerPoint ();
26416 if ac_fn_c_try_link "$LINENO"; then :
26417 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26419 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
26421 rm -f core conftest.err conftest.$ac_objext \
26422 conftest$ac_exeext conftest.$ac_ext
26423 LIBS=$ac_check_lib_save_LIBS
26425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
26426 $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
26427 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
26428 passed=`expr $passed + 1`
26430 failed=`expr $failed + 1`
26433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
26434 $as_echo_n "checking if DPS package is complete... " >&6; }
26435 if test $passed -gt 0; then
26436 if test $failed -gt 0; then
26437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26438 $as_echo "no -- some components failed test" >&6; }
26439 have_dps='no (failed tests)'
26440 CPPFLAGS="$PERSIST_CPPFLAGS"
26442 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26443 LIBS="$DPS_LIBS $LIBS"
26445 $as_echo "#define DPS_DELEGATE 1" >>confdefs.h
26447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26448 $as_echo "yes" >&6; }
26452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26453 $as_echo "no" >&6; }
26454 CPPFLAGS=$PERSIST_CPPFLAGS
26457 if test "$have_dps" = 'yes'; then
26459 DPS_DELEGATE_FALSE='#'
26461 DPS_DELEGATE_TRUE='#'
26462 DPS_DELEGATE_FALSE=
26469 # Check for DJVU delegate library.
26472 # Check whether --with-djvu was given.
26473 if test "${with_djvu+set}" = set; then :
26474 withval=$with_djvu; with_djvu=$withval
26480 if test "$with_djvu" != 'yes'; then
26481 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26486 if test "$with_djvu" != 'no'; then
26487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26488 $as_echo "-------------------------------------------------------------" >&6; }
26489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
26490 $as_echo_n "checking for DJVU... " >&6; }
26491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26495 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26496 if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
26497 passed=`expr $passed + 1`
26499 failed=`expr $failed + 1`
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
26504 $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
26505 if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
26506 $as_echo_n "(cached) " >&6
26508 ac_check_lib_save_LIBS=$LIBS
26509 LIBS="-ldjvulibre $LIBS"
26510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26511 /* end confdefs.h. */
26513 /* Override any GCC internal prototype to avoid an error.
26514 Use char because int might match the return type of a GCC
26515 builtin and then its argument prototype would still apply. */
26519 char ddjvu_context_create ();
26523 return ddjvu_context_create ();
26528 if ac_fn_c_try_link "$LINENO"; then :
26529 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26531 ac_cv_lib_djvulibre_ddjvu_context_create=no
26533 rm -f core conftest.err conftest.$ac_objext \
26534 conftest$ac_exeext conftest.$ac_ext
26535 LIBS=$ac_check_lib_save_LIBS
26537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
26538 $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
26539 if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
26540 passed=`expr $passed + 1`
26542 failed=`expr $failed + 1`
26545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
26546 $as_echo_n "checking if DJVU package is complete... " >&6; }
26547 if test $passed -gt 0; then
26548 if test $failed -gt 0; then
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26550 $as_echo "no -- some components failed test" >&6; }
26551 have_djvu='no (failed tests)'
26553 DJVU_LIBS='-ldjvulibre'
26554 LIBS="$DJVU_LIBS $LIBS"
26556 $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
26558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26559 $as_echo "yes" >&6; }
26563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26564 $as_echo "no" >&6; }
26567 if test "$have_djvu" = 'yes'; then
26568 DJVU_DELEGATE_TRUE=
26569 DJVU_DELEGATE_FALSE='#'
26571 DJVU_DELEGATE_TRUE='#'
26572 DJVU_DELEGATE_FALSE=
26579 # Set DejaVu font directory.
26582 # Check whether --with-dejavu-font-dir was given.
26583 if test "${with_dejavu_font_dir+set}" = set; then :
26584 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26586 with_dejavu_font_dir='default'
26590 if test "$with_dejavu_font_dir" != 'default'; then
26591 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26596 # Check for FFTW delegate library.
26599 # Check whether --with-fftw was given.
26600 if test "${with_fftw+set}" = set; then :
26601 withval=$with_fftw; with_fftw=$withval
26607 if test "$with_fftw" != 'yes'; then
26608 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26613 if test "$with_fftw" != 'no'; then
26614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26615 $as_echo "-------------------------------------------------------------" >&6; }
26616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
26617 $as_echo_n "checking for FFTW... " >&6; }
26618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26622 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26623 if test "x$ac_cv_header_fftw3_h" = x""yes; then :
26624 passed=`expr $passed + 1`
26626 failed=`expr $failed + 1`
26630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
26631 $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
26632 if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
26633 $as_echo_n "(cached) " >&6
26635 ac_check_lib_save_LIBS=$LIBS
26636 LIBS="-lfftw3 $LIBS"
26637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26638 /* end confdefs.h. */
26640 /* Override any GCC internal prototype to avoid an error.
26641 Use char because int might match the return type of a GCC
26642 builtin and then its argument prototype would still apply. */
26646 char fftw_execute ();
26650 return fftw_execute ();
26655 if ac_fn_c_try_link "$LINENO"; then :
26656 ac_cv_lib_fftw3_fftw_execute=yes
26658 ac_cv_lib_fftw3_fftw_execute=no
26660 rm -f core conftest.err conftest.$ac_objext \
26661 conftest$ac_exeext conftest.$ac_ext
26662 LIBS=$ac_check_lib_save_LIBS
26664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
26665 $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
26666 if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
26667 passed=`expr $passed + 1`
26669 failed=`expr $failed + 1`
26672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
26673 $as_echo_n "checking if FFTW package is complete... " >&6; }
26674 if test $passed -gt 0; then
26675 if test $failed -gt 0; then
26676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26677 $as_echo "no -- some components failed test" >&6; }
26678 have_fftw='no (failed tests)'
26680 FFTW_LIBS='-lfftw3'
26681 LIBS="$FFTW_LIBS $LIBS"
26683 $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
26685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26686 $as_echo "yes" >&6; }
26690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26691 $as_echo "no" >&6; }
26694 if test "$have_fftw" = 'yes'; then
26695 FFTW_DELEGATE_TRUE=
26696 FFTW_DELEGATE_FALSE='#'
26698 FFTW_DELEGATE_TRUE='#'
26699 FFTW_DELEGATE_FALSE=
26706 # Check for FlashPIX delegate library.
26709 # Check whether --with-fpx was given.
26710 if test "${with_fpx+set}" = set; then :
26711 withval=$with_fpx; with_fpx=$withval
26717 if test "$with_fpx" != 'yes'; then
26718 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26723 if test "$with_fpx" != 'no'; then
26724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26725 $as_echo "-------------------------------------------------------------" >&6; }
26726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
26727 $as_echo_n "checking for FlashPIX... " >&6; }
26728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26733 ac_cpp='$CXXCPP $CPPFLAGS'
26734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26739 ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26740 if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
26741 passed=`expr $passed + 1`
26743 failed=`expr $failed + 1`
26747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
26748 $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
26749 if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
26750 $as_echo_n "(cached) " >&6
26752 ac_check_lib_save_LIBS=$LIBS
26754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26755 /* end confdefs.h. */
26757 /* Override any GCC internal prototype to avoid an error.
26758 Use char because int might match the return type of a GCC
26759 builtin and then its argument prototype would still apply. */
26763 char FPX_OpenImageByFilename ();
26767 return FPX_OpenImageByFilename ();
26772 if ac_fn_cxx_try_link "$LINENO"; then :
26773 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26775 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
26777 rm -f core conftest.err conftest.$ac_objext \
26778 conftest$ac_exeext conftest.$ac_ext
26779 LIBS=$ac_check_lib_save_LIBS
26781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
26782 $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
26783 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
26784 passed=`expr $passed + 1`
26786 failed=`expr $failed + 1`
26790 ac_cpp='$CPP $CPPFLAGS'
26791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
26796 $as_echo_n "checking if FlashPIX package is complete... " >&6; }
26797 if test $passed -gt 0; then
26798 if test $failed -gt 0; then
26799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26800 $as_echo "no -- some components failed test" >&6; }
26801 have_fpx='no (failed tests)'
26805 $as_echo "#define FPX_DELEGATE 1" >>confdefs.h
26807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26808 $as_echo "yes" >&6; }
26813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26814 $as_echo "no" >&6; }
26817 if test "$have_fpx" = 'yes'; then
26819 FPX_DELEGATE_FALSE='#'
26821 FPX_DELEGATE_TRUE='#'
26822 FPX_DELEGATE_FALSE=
26829 # Check for fontconfig delegate library.
26832 # Check whether --with-fontconfig was given.
26833 if test "${with_fontconfig+set}" = set; then :
26834 withval=$with_fontconfig; with_fontconfig=$withval
26836 with_fontconfig=$have_x
26840 if test "$with_fontconfig" != 'yes'; then
26841 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26844 have_fontconfig='no'
26845 FONTCONFIG_CFLAGS=""
26848 if test "x$with_fontconfig" = "xyes"; then
26849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26850 $as_echo "-------------------------------------------------------------" >&6; }
26853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
26854 $as_echo_n "checking for FONTCONFIG... " >&6; }
26856 if test -n "$FONTCONFIG_CFLAGS"; then
26857 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26858 elif test -n "$PKG_CONFIG"; then
26859 if test -n "$PKG_CONFIG" && \
26860 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
26861 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26864 test $ac_status = 0; }; then
26865 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26872 if test -n "$FONTCONFIG_LIBS"; then
26873 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26874 elif test -n "$PKG_CONFIG"; then
26875 if test -n "$PKG_CONFIG" && \
26876 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
26877 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26880 test $ac_status = 0; }; then
26881 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26891 if test $pkg_failed = yes; then
26893 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26894 _pkg_short_errors_supported=yes
26896 _pkg_short_errors_supported=no
26898 if test $_pkg_short_errors_supported = yes; then
26899 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26901 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26903 # Put the nasty error message in config.log where it belongs
26904 echo "$FONTCONFIG_PKG_ERRORS" >&5
26906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26907 $as_echo "no" >&6; }
26909 elif test $pkg_failed = untried; then
26912 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26913 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
26914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26915 $as_echo "yes" >&6; }
26916 have_fontconfig=yes
26918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26922 if test "$have_fontconfig" = 'yes'; then
26924 $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
26926 if test "$with_modules" = 'no'; then
26927 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
26931 if test "$have_fontconfig" = 'yes'; then
26932 FONTCONFIG_DELEGATE_TRUE=
26933 FONTCONFIG_DELEGATE_FALSE='#'
26935 FONTCONFIG_DELEGATE_TRUE='#'
26936 FONTCONFIG_DELEGATE_FALSE=
26944 # Check for freetype delegate library.
26947 # Check whether --with-freetype was given.
26948 if test "${with_freetype+set}" = set; then :
26949 withval=$with_freetype; with_freetype=$withval
26951 with_freetype='yes'
26956 if test "$with_freetype" != 'yes'; then
26957 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26962 if test "$with_freetype" != 'no'; then
26963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26964 $as_echo "-------------------------------------------------------------" >&6; }
26965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
26966 $as_echo_n "checking for FreeType 2.0... " >&6; }
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26971 PERSIST_LIBS="$LIBS"
26972 PERSIST_CPPFLAGS="$CPPFLAGS"
26973 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26977 for ac_prog in freetype-config
26979 # Extract the first word of "$ac_prog", so it can be a program name with args.
26980 set dummy $ac_prog; ac_word=$2
26981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26982 $as_echo_n "checking for $ac_word... " >&6; }
26983 if test "${ac_cv_prog_freetype_config+set}" = set; then :
26984 $as_echo_n "(cached) " >&6
26986 if test -n "$freetype_config"; then
26987 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
26989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26990 for as_dir in $PATH
26993 test -z "$as_dir" && as_dir=.
26994 for ac_exec_ext in '' $ac_executable_extensions; do
26995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26996 ac_cv_prog_freetype_config="$ac_prog"
26997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27006 freetype_config=$ac_cv_prog_freetype_config
27007 if test -n "$freetype_config"; then
27008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
27009 $as_echo "$freetype_config" >&6; }
27011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27012 $as_echo "no" >&6; }
27016 test -n "$freetype_config" && break
27018 if test -n "$freetype_config"; then
27019 freetype_cflags=`$freetype_config --cflags`
27020 freetype_libs=`$freetype_config --libs`
27021 LIBS="$LIBS $freetype_libs"
27022 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27026 if test "$FREETYPE_LIBS" = ''; then
27027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
27028 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
27029 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
27030 $as_echo_n "(cached) " >&6
27032 ac_check_lib_save_LIBS=$LIBS
27033 LIBS="-lfreetype $LIBS"
27034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27035 /* end confdefs.h. */
27037 /* Override any GCC internal prototype to avoid an error.
27038 Use char because int might match the return type of a GCC
27039 builtin and then its argument prototype would still apply. */
27043 char FT_Init_FreeType ();
27047 return FT_Init_FreeType ();
27052 if ac_fn_c_try_link "$LINENO"; then :
27053 ac_cv_lib_freetype_FT_Init_FreeType=yes
27055 ac_cv_lib_freetype_FT_Init_FreeType=no
27057 rm -f core conftest.err conftest.$ac_objext \
27058 conftest$ac_exeext conftest.$ac_ext
27059 LIBS=$ac_check_lib_save_LIBS
27061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
27062 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
27063 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
27064 FREETYPE_LIBS='-lfreetype'
27067 if test "$FREETYPE_LIBS" != ''; then
27068 passed=`expr $passed + 1`
27070 failed=`expr $failed + 1`
27071 LIBS="$PERSIST_LIBS"
27075 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27076 if test "x$ac_cv_header_ft2build_h" = x""yes; then :
27077 FT2BUILD_H='#include <ft2build.h>'
27083 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27085 if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
27086 have_freetype_h='yes'
27088 have_freetype_h='no'
27092 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27093 passed=`expr $passed + 1`
27095 failed=`expr $failed + 1`
27096 CPPFLAGS="$PERSIST_CPPFLAGS"
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
27100 $as_echo_n "checking if FreeType package is complete... " >&6; }
27101 if test $passed -gt 0; then
27102 if test $failed -gt 0; then
27104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27105 $as_echo "no -- some components failed test" >&6; }
27106 have_freetype='no (failed tests)'
27108 LIBS="$FREETYPE_LIBS $LIBS"
27110 $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
27112 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27114 $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
27117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27118 $as_echo "yes" >&6; }
27119 have_freetype='yes'
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27123 $as_echo "no" >&6; }
27126 if test "$have_freetype" = 'yes'; then
27127 FREETYPE_DELEGATE_TRUE=
27128 FREETYPE_DELEGATE_FALSE='#'
27130 FREETYPE_DELEGATE_TRUE='#'
27131 FREETYPE_DELEGATE_FALSE=
27139 # Check for Ghostscript library or framework.
27141 # Test for iapi.h & test for gsapi_new_instance in -lgs
27142 # or -framework Ghostscript
27145 # Check whether --with-gslib was given.
27146 if test "${with_gslib+set}" = set; then :
27147 withval=$with_gslib; with_gslib=$withval
27153 gslib_framework='no'
27154 if test "$with_gslib" != 'yes'; then
27155 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27160 if test "$with_gslib" != 'no'; then
27161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27162 $as_echo "-------------------------------------------------------------" >&6; }
27163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
27164 $as_echo_n "checking for Ghostscript... " >&6; }
27165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27170 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27171 if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
27172 passed=`expr $passed + 1`
27174 failed=`expr $failed + 1`
27178 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27179 if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
27180 passed=`expr $passed + 1`
27182 failed=`expr $failed + 1`
27186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
27187 $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
27188 if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
27189 $as_echo_n "(cached) " >&6
27191 ac_check_framework_save_LIBS=$LIBS
27192 LIBS="-framework Ghostscript $LIBS"
27193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27194 /* end confdefs.h. */
27196 /* Override any GCC internal prototype to avoid an error.
27197 Use char because int might match the return type of a GCC
27198 builtin and then its argument prototype would still apply. */
27202 char gsapi_new_instance ();
27206 return gsapi_new_instance ();
27211 if ac_fn_c_try_link "$LINENO"; then :
27212 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27214 ac_cv_framework_Ghostscript_gsapi_new_instance=no
27216 rm -f core conftest.err conftest.$ac_objext \
27217 conftest$ac_exeext conftest.$ac_ext
27218 LIBS=$ac_check_framework_save_LIBS
27220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
27221 $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
27222 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
27223 framework=`expr $framework + 1`
27225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
27226 $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
27227 if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
27228 $as_echo_n "(cached) " >&6
27230 ac_check_lib_save_LIBS=$LIBS
27232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27233 /* end confdefs.h. */
27235 /* Override any GCC internal prototype to avoid an error.
27236 Use char because int might match the return type of a GCC
27237 builtin and then its argument prototype would still apply. */
27241 char gsapi_new_instance ();
27245 return gsapi_new_instance ();
27250 if ac_fn_c_try_link "$LINENO"; then :
27251 ac_cv_lib_gs_gsapi_new_instance=yes
27253 ac_cv_lib_gs_gsapi_new_instance=no
27255 rm -f core conftest.err conftest.$ac_objext \
27256 conftest$ac_exeext conftest.$ac_ext
27257 LIBS=$ac_check_lib_save_LIBS
27259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
27260 $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
27261 if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
27262 passed=`expr $passed + 1`
27264 failed=`expr $failed + 1`
27268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
27269 $as_echo_n "checking if Ghostscript package is complete... " >&6; }
27270 if test $passed -gt 0; then
27271 if test $failed -gt 0; then
27272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27273 $as_echo "no -- some components failed test" >&6; }
27274 have_gslib='no (failed tests)'
27276 if test $framework -gt 0; then
27277 GS_LIBS='-framework Ghostscript'
27278 gslib_framework='yes'
27279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
27280 $as_echo "yes, using framework." >&6; }
27282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
27283 $as_echo "yes, using library." >&6; }
27286 LIBS="$GS_LIBS $LIBS"
27288 $as_echo "#define GS_DELEGATE 1" >>confdefs.h
27293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27294 $as_echo "no" >&6; }
27297 if test "$have_gslib" = 'yes'; then
27299 GS_DELEGATE_FALSE='#'
27301 GS_DELEGATE_TRUE='#'
27307 # Set default font search path
27309 # Check whether --with-fontpath was given.
27310 if test "${with_fontpath+set}" = set; then :
27311 withval=$with_fontpath; with_fontpath=$withval
27317 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27321 cat >>confdefs.h <<_ACEOF
27322 #define MAGICK_FONT_PATH "$with_fontpath"
27326 if test "$with_fontpath=" != ''; then
27327 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27330 # Set Ghostscript font directory
27332 # Check whether --with-gs-font-dir was given.
27333 if test "${with_gs_font_dir+set}" = set; then :
27334 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27336 with_gs_font_dir='default'
27340 if test "$with_gs_font_dir" != 'default'; then
27341 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27346 # Check for GVC delegate library.
27349 # Check whether --with-gvc was given.
27350 if test "${with_gvc+set}" = set; then :
27351 withval=$with_gvc; with_gvc=$withval
27357 if test "$with_gvc" != 'yes'; then
27358 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27362 if test "x$with_gvc" = "xyes"; then
27363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27364 $as_echo "-------------------------------------------------------------" >&6; }
27367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
27368 $as_echo_n "checking for GVC... " >&6; }
27370 if test -n "$GVC_CFLAGS"; then
27371 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27372 elif test -n "$PKG_CONFIG"; then
27373 if test -n "$PKG_CONFIG" && \
27374 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27375 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27378 test $ac_status = 0; }; then
27379 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27386 if test -n "$GVC_LIBS"; then
27387 pkg_cv_GVC_LIBS="$GVC_LIBS"
27388 elif test -n "$PKG_CONFIG"; then
27389 if test -n "$PKG_CONFIG" && \
27390 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27391 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27394 test $ac_status = 0; }; then
27395 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27405 if test $pkg_failed = yes; then
27407 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27408 _pkg_short_errors_supported=yes
27410 _pkg_short_errors_supported=no
27412 if test $_pkg_short_errors_supported = yes; then
27413 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27415 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27417 # Put the nasty error message in config.log where it belongs
27418 echo "$GVC_PKG_ERRORS" >&5
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27421 $as_echo "no" >&6; }
27423 elif test $pkg_failed = untried; then
27426 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27427 GVC_LIBS=$pkg_cv_GVC_LIBS
27428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27429 $as_echo "yes" >&6; }
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27436 if test "$have_gvc" = 'yes'; then
27438 $as_echo "#define GVC_DELEGATE 1" >>confdefs.h
27440 if test "$with_modules" = 'no'; then
27441 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27445 if test "$have_gvc" = 'yes'; then
27447 GVC_DELEGATE_FALSE='#'
27449 GVC_DELEGATE_TRUE='#'
27450 GVC_DELEGATE_FALSE=
27458 # Check for JBIG delegate library.
27462 # Check whether --with-jbig was given.
27463 if test "${with_jbig+set}" = set; then :
27464 withval=$with_jbig; with_jbig=$withval
27472 if test "$with_jbig" != 'no'; then
27473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27474 $as_echo "-------------------------------------------------------------" >&6; }
27475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
27476 $as_echo_n "checking for JBIG... " >&6; }
27477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27481 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27482 if test "x$ac_cv_header_jbig_h" = x""yes; then :
27483 passed=`expr $passed + 1`
27485 failed=`expr $failed + 1`
27489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
27490 $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
27491 if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
27492 $as_echo_n "(cached) " >&6
27494 ac_check_lib_save_LIBS=$LIBS
27495 LIBS="-ljbig $LIBS"
27496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27497 /* end confdefs.h. */
27499 /* Override any GCC internal prototype to avoid an error.
27500 Use char because int might match the return type of a GCC
27501 builtin and then its argument prototype would still apply. */
27505 char jbg_dec_init ();
27509 return jbg_dec_init ();
27514 if ac_fn_c_try_link "$LINENO"; then :
27515 ac_cv_lib_jbig_jbg_dec_init=yes
27517 ac_cv_lib_jbig_jbg_dec_init=no
27519 rm -f core conftest.err conftest.$ac_objext \
27520 conftest$ac_exeext conftest.$ac_ext
27521 LIBS=$ac_check_lib_save_LIBS
27523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
27524 $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
27525 if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
27526 passed=`expr $passed + 1`
27528 failed=`expr $failed + 1`
27531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
27532 $as_echo_n "checking if JBIG package is complete... " >&6; }
27533 if test $passed -gt 0; then
27534 if test $failed -gt 0; then
27535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27536 $as_echo "no -- some components failed test" >&6; }
27537 have_jbig='no (failed tests)'
27540 LIBS="$JBIG_LIBS $LIBS"
27542 $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
27544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27545 $as_echo "yes" >&6; }
27549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27550 $as_echo "no" >&6; }
27553 if test "$have_jbig" = 'yes'; then
27554 JBIG_DELEGATE_TRUE=
27555 JBIG_DELEGATE_FALSE='#'
27557 JBIG_DELEGATE_TRUE='#'
27558 JBIG_DELEGATE_FALSE=
27565 # Check for JPEG delegate library.
27568 # Check whether --with-jpeg was given.
27569 if test "${with_jpeg+set}" = set; then :
27570 withval=$with_jpeg; with_jpeg=$withval
27576 if test "$with_jpeg" != 'yes'; then
27577 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27582 if test "$with_jpeg" != 'no'; then
27583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27584 $as_echo "-------------------------------------------------------------" >&6; }
27585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
27586 $as_echo_n "checking for JPEG... " >&6; }
27587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27591 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27592 if test "x$ac_cv_header_jconfig_h" = x""yes; then :
27593 passed=`expr $passed + 1`
27595 failed=`expr $failed + 1`
27599 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27600 if test "x$ac_cv_header_jerror_h" = x""yes; then :
27601 passed=`expr $passed + 1`
27603 failed=`expr $failed + 1`
27607 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27608 if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
27609 passed=`expr $passed + 1`
27611 failed=`expr $failed + 1`
27615 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27616 if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
27617 passed=`expr $passed + 1`
27619 failed=`expr $failed + 1`
27623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
27624 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
27625 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
27626 $as_echo_n "(cached) " >&6
27628 ac_check_lib_save_LIBS=$LIBS
27629 LIBS="-ljpeg $LIBS"
27630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27631 /* end confdefs.h. */
27633 /* Override any GCC internal prototype to avoid an error.
27634 Use char because int might match the return type of a GCC
27635 builtin and then its argument prototype would still apply. */
27639 char jpeg_read_header ();
27643 return jpeg_read_header ();
27648 if ac_fn_c_try_link "$LINENO"; then :
27649 ac_cv_lib_jpeg_jpeg_read_header=yes
27651 ac_cv_lib_jpeg_jpeg_read_header=no
27653 rm -f core conftest.err conftest.$ac_objext \
27654 conftest$ac_exeext conftest.$ac_ext
27655 LIBS=$ac_check_lib_save_LIBS
27657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
27658 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
27659 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
27660 passed=`expr $passed + 1`
27662 failed=`expr $failed + 1`
27666 # Test for compatible JPEG library
27667 if test "$ac_cv_jpeg_version_ok" != 'yes'; then
27668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
27669 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
27670 if test "${ac_cv_jpeg_version_ok+set}" = set; then :
27671 $as_echo_n "(cached) " >&6
27673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27674 /* end confdefs.h. */
27676 #include <stdlib.h>
27677 #include <jpeglib.h>
27683 #if JPEG_LIB_VERSION < 62
27684 #error IJG JPEG library must be version 6b or newer!
27692 if ac_fn_c_try_compile "$LINENO"; then :
27693 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27695 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
27697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
27700 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
27702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
27703 $as_echo_n "checking if JPEG package is complete... " >&6; }
27704 if test $passed -gt 0; then
27705 if test $failed -gt 0; then
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27707 $as_echo "no -- some components failed test" >&6; }
27708 have_jpeg='no (failed tests)'
27711 LIBS="$JPEG_LIBS $LIBS"
27713 $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27716 $as_echo "yes" >&6; }
27720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27721 $as_echo "no" >&6; }
27724 if test "$have_jpeg" = 'yes'; then
27725 JPEG_DELEGATE_TRUE=
27726 JPEG_DELEGATE_FALSE='#'
27728 JPEG_DELEGATE_TRUE='#'
27729 JPEG_DELEGATE_FALSE=
27736 # Check for JPEG Version 2 delegate library.
27739 # Check whether --with-jp2 was given.
27740 if test "${with_jp2+set}" = set; then :
27741 withval=$with_jp2; with_jp2=$withval
27747 if test "$with_jp2" != 'yes'; then
27748 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27753 if test "$with_jp2" != 'no'; then
27754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27755 $as_echo "-------------------------------------------------------------" >&6; }
27756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
27757 $as_echo_n "checking for JPEG Version 2... " >&6; }
27758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27762 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27763 if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
27764 passed=`expr $passed + 1`
27766 failed=`expr $failed + 1`
27770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
27771 $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
27772 if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
27773 $as_echo_n "(cached) " >&6
27775 ac_check_lib_save_LIBS=$LIBS
27776 LIBS="-ljasper $LIBS"
27777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27778 /* end confdefs.h. */
27780 /* Override any GCC internal prototype to avoid an error.
27781 Use char because int might match the return type of a GCC
27782 builtin and then its argument prototype would still apply. */
27786 char jas_stream_fopen ();
27790 return jas_stream_fopen ();
27795 if ac_fn_c_try_link "$LINENO"; then :
27796 ac_cv_lib_jasper_jas_stream_fopen=yes
27798 ac_cv_lib_jasper_jas_stream_fopen=no
27800 rm -f core conftest.err conftest.$ac_objext \
27801 conftest$ac_exeext conftest.$ac_ext
27802 LIBS=$ac_check_lib_save_LIBS
27804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
27805 $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
27806 if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
27807 passed=`expr $passed + 1`
27809 failed=`expr $failed + 1`
27812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
27813 $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27814 if test $passed -gt 0; then
27815 if test $failed -gt 0; then
27816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27817 $as_echo "no -- some components failed test" >&6; }
27818 have_jp2='no (failed tests)'
27820 JP2_LIBS='-ljasper'
27821 LIBS="$JP2_LIBS $LIBS"
27823 $as_echo "#define JP2_DELEGATE 1" >>confdefs.h
27825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27826 $as_echo "yes" >&6; }
27830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27831 $as_echo "no" >&6; }
27834 if test "$have_jp2" = 'yes'; then
27836 JP2_DELEGATE_FALSE='#'
27838 JP2_DELEGATE_TRUE='#'
27839 JP2_DELEGATE_FALSE=
27846 # Check for LCMS delegate library.
27850 # Check whether --with-lcms was given.
27851 if test "${with_lcms+set}" = set; then :
27852 withval=$with_lcms; with_lcms=$withval
27857 if test "$with_lcms" != 'yes' ; then
27858 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27863 # Check whether --with-lcms2 was given.
27864 if test "${with_lcms2+set}" = set; then :
27865 withval=$with_lcms2; with_lcms2=$withval
27870 if test "$with_lcms2" != 'yes' ; then
27871 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
27876 if test "$with_lcms2" != 'no'; then
27877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27878 $as_echo "-------------------------------------------------------------" >&6; }
27879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
27880 $as_echo_n "checking for LCMS v2... " >&6; }
27881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27885 have_lcms_header='no'
27887 # Check for <lcms2.h>
27888 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
27889 if test "x$ac_cv_header_lcms2_h" = x""yes; then :
27890 have_lcms_header='yes'
27894 if test "$have_lcms_header" = 'yes'; then
27896 $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
27898 passed=`expr $passed + 1`
27901 # Check for <lcms2/lcms2.h)
27902 if test "$have_lcms_header" != 'yes'; then
27903 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
27904 if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
27905 have_lcms_header='yes'
27909 if test "$have_lcms_header" = 'yes'; then
27910 passed=`expr $passed + 1`
27912 $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
27917 # Failed to find lcms header?
27918 if test "$have_lcms_header" != 'yes'; then
27919 failed=`expr $failed + 1`
27922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
27923 $as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
27924 if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
27925 $as_echo_n "(cached) " >&6
27927 ac_check_lib_save_LIBS=$LIBS
27928 LIBS="-llcms2 $LIBS"
27929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27930 /* end confdefs.h. */
27932 /* Override any GCC internal prototype to avoid an error.
27933 Use char because int might match the return type of a GCC
27934 builtin and then its argument prototype would still apply. */
27938 char cmsSetLogErrorHandler ();
27942 return cmsSetLogErrorHandler ();
27947 if ac_fn_c_try_link "$LINENO"; then :
27948 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
27950 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
27952 rm -f core conftest.err conftest.$ac_objext \
27953 conftest$ac_exeext conftest.$ac_ext
27954 LIBS=$ac_check_lib_save_LIBS
27956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
27957 $as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
27958 if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
27959 passed=`expr $passed + 1`
27961 failed=`expr $failed + 1`
27964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
27965 $as_echo_n "checking if LCMS v2 package is complete... " >&6; }
27966 if test $passed -gt 0; then
27967 if test $failed -gt 0; then
27968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27969 $as_echo "no -- some components failed test" >&6; }
27970 have_lcms2='no (failed tests)'
27972 LCMS_LIBS='-llcms2'
27973 LIBS="$LCMS_LIBS $LIBS"
27974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27975 $as_echo "yes" >&6; }
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27980 $as_echo "no" >&6; }
27985 # Check for LCMS v1 (1.11 or later)
27987 if test $have_lcms2 = 'yes'; then
27992 if test "$with_lcms" != 'no'; then
27993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27994 $as_echo "-------------------------------------------------------------" >&6; }
27995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
27996 $as_echo_n "checking for LCMS v1.1X... " >&6; }
27997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28001 have_lcms_header='no'
28003 # Check for <lcms.h>
28004 if test "$have_lcms_header" != 'yes'; then
28005 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
28006 if test "x$ac_cv_header_lcms_h" = x""yes; then :
28007 have_lcms_header='yes'
28011 if test "$have_lcms_header" = 'yes'; then
28012 passed=`expr $passed + 1`
28014 $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
28019 # Check for <lcms/lcms.h>
28020 if test "$have_lcms_header" != 'yes'; then
28021 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
28022 if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
28023 have_lcms_header='yes'
28027 if test "$have_lcms_header" = 'yes'; then
28028 passed=`expr $passed + 1`
28030 $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
28035 # Failed to find lcms header?
28036 if test "$have_lcms_header" != 'yes'; then
28037 failed=`expr $failed + 1`
28040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28041 $as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28042 if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
28043 $as_echo_n "(cached) " >&6
28045 ac_check_lib_save_LIBS=$LIBS
28046 LIBS="-llcms $LIBS"
28047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28048 /* end confdefs.h. */
28050 /* Override any GCC internal prototype to avoid an error.
28051 Use char because int might match the return type of a GCC
28052 builtin and then its argument prototype would still apply. */
28056 char cmsSetErrorHandler ();
28060 return cmsSetErrorHandler ();
28065 if ac_fn_c_try_link "$LINENO"; then :
28066 ac_cv_lib_lcms_cmsSetErrorHandler=yes
28068 ac_cv_lib_lcms_cmsSetErrorHandler=no
28070 rm -f core conftest.err conftest.$ac_objext \
28071 conftest$ac_exeext conftest.$ac_ext
28072 LIBS=$ac_check_lib_save_LIBS
28074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28075 $as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28076 if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
28077 passed=`expr $passed + 1`
28079 failed=`expr $failed + 1`
28082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
28083 $as_echo_n "checking if LCMS package is complete... " >&6; }
28084 if test $passed -gt 0; then
28085 if test $failed -gt 0; then
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28087 $as_echo "no -- some components failed test" >&6; }
28088 have_lcms='no (failed tests)'
28091 LIBS="$LCMS_LIBS $LIBS"
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28093 $as_echo "yes" >&6; }
28097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28098 $as_echo "no" >&6; }
28102 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28103 LCMS_DELEGATE_TRUE=
28104 LCMS_DELEGATE_FALSE='#'
28106 LCMS_DELEGATE_TRUE='#'
28107 LCMS_DELEGATE_FALSE=
28110 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28112 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28120 # Check for the LQR (Liquid Rescale) delegate library.
28123 # Check whether --with-lqr was given.
28124 if test "${with_lqr+set}" = set; then :
28125 withval=$with_lqr; with_lqr=$withval
28131 if test "$with_lqr" != 'yes'; then
28132 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28139 if test "x$with_lqr" = "xyes"; then
28140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28141 $as_echo "-------------------------------------------------------------" >&6; }
28144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
28145 $as_echo_n "checking for LQR... " >&6; }
28147 if test -n "$LQR_CFLAGS"; then
28148 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28149 elif test -n "$PKG_CONFIG"; then
28150 if test -n "$PKG_CONFIG" && \
28151 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28152 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28155 test $ac_status = 0; }; then
28156 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28163 if test -n "$LQR_LIBS"; then
28164 pkg_cv_LQR_LIBS="$LQR_LIBS"
28165 elif test -n "$PKG_CONFIG"; then
28166 if test -n "$PKG_CONFIG" && \
28167 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28168 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28171 test $ac_status = 0; }; then
28172 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28182 if test $pkg_failed = yes; then
28184 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28185 _pkg_short_errors_supported=yes
28187 _pkg_short_errors_supported=no
28189 if test $_pkg_short_errors_supported = yes; then
28190 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28192 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28194 # Put the nasty error message in config.log where it belongs
28195 echo "$LQR_PKG_ERRORS" >&5
28197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28198 $as_echo "no" >&6; }
28200 elif test $pkg_failed = untried; then
28203 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28204 LQR_LIBS=$pkg_cv_LQR_LIBS
28205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28206 $as_echo "yes" >&6; }
28209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28213 if test "$have_lqr" = 'yes'; then
28215 $as_echo "#define LQR_DELEGATE 1" >>confdefs.h
28217 CFLAGS="$LQR_CFLAGS $CFLAGS"
28220 if test "$have_lqr" = 'yes'; then
28222 LQR_DELEGATE_FALSE='#'
28224 LQR_DELEGATE_TRUE='#'
28225 LQR_DELEGATE_FALSE=
28233 # Check for the OpenEXR delegate library.
28236 # Check whether --with-openexr was given.
28237 if test "${with_openexr+set}" = set; then :
28238 withval=$with_openexr; with_openexr=$withval
28244 if test "$with_openexr" != 'yes'; then
28245 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28252 if test "x$with_openexr" = "xyes"; then
28253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28254 $as_echo "-------------------------------------------------------------" >&6; }
28257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
28258 $as_echo_n "checking for OPENEXR... " >&6; }
28260 if test -n "$OPENEXR_CFLAGS"; then
28261 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28262 elif test -n "$PKG_CONFIG"; then
28263 if test -n "$PKG_CONFIG" && \
28264 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28265 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28268 test $ac_status = 0; }; then
28269 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28276 if test -n "$OPENEXR_LIBS"; then
28277 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28278 elif test -n "$PKG_CONFIG"; then
28279 if test -n "$PKG_CONFIG" && \
28280 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28281 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28284 test $ac_status = 0; }; then
28285 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28295 if test $pkg_failed = yes; then
28297 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28298 _pkg_short_errors_supported=yes
28300 _pkg_short_errors_supported=no
28302 if test $_pkg_short_errors_supported = yes; then
28303 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28305 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28307 # Put the nasty error message in config.log where it belongs
28308 echo "$OPENEXR_PKG_ERRORS" >&5
28310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28311 $as_echo "no" >&6; }
28313 elif test $pkg_failed = untried; then
28316 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28317 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
28318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28319 $as_echo "yes" >&6; }
28322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28326 if test "$have_openexr" = 'yes'; then
28328 $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
28330 if test "$with_modules" = 'no'; then
28331 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28335 if test "$have_openexr" = 'yes'; then
28336 OPENEXR_DELEGATE_TRUE=
28337 OPENEXR_DELEGATE_FALSE='#'
28339 OPENEXR_DELEGATE_TRUE='#'
28340 OPENEXR_DELEGATE_FALSE=
28348 # Check for PNG delegate library.
28351 # Check whether --with-png was given.
28352 if test "${with_png+set}" = set; then :
28353 withval=$with_png; with_png=$withval
28359 if test "$with_png" != 'yes'; then
28360 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28365 if test "$with_png" != 'no'; then
28366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28367 $as_echo "-------------------------------------------------------------" >&6; }
28368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
28369 $as_echo_n "checking for PNG... " >&6; }
28370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28374 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28375 if test "x$ac_cv_header_png_h" = x""yes; then :
28376 passed=`expr $passed + 1`
28378 failed=`expr $failed + 1`
28382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
28383 $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
28384 if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
28385 $as_echo_n "(cached) " >&6
28387 ac_check_lib_save_LIBS=$LIBS
28389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28390 /* end confdefs.h. */
28392 /* Override any GCC internal prototype to avoid an error.
28393 Use char because int might match the return type of a GCC
28394 builtin and then its argument prototype would still apply. */
28398 char png_get_io_ptr ();
28402 return png_get_io_ptr ();
28407 if ac_fn_c_try_link "$LINENO"; then :
28408 ac_cv_lib_png_png_get_io_ptr=yes
28410 ac_cv_lib_png_png_get_io_ptr=no
28412 rm -f core conftest.err conftest.$ac_objext \
28413 conftest$ac_exeext conftest.$ac_ext
28414 LIBS=$ac_check_lib_save_LIBS
28416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
28417 $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
28418 if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
28419 passed=`expr $passed + 1`
28421 failed=`expr $failed + 1`
28424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
28425 $as_echo_n "checking if PNG package is complete... " >&6; }
28426 if test $passed -gt 0; then
28427 if test $failed -gt 0; then
28428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28429 $as_echo "no -- some components failed test" >&6; }
28430 have_png='no (failed tests)'
28433 LIBS="$PNG_LIBS $LIBS"
28435 $as_echo "#define PNG_DELEGATE 1" >>confdefs.h
28437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28438 $as_echo "yes" >&6; }
28442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28443 $as_echo "no" >&6; }
28446 if test "$have_png" = 'yes'; then
28448 PNG_DELEGATE_FALSE='#'
28450 PNG_DELEGATE_TRUE='#'
28451 PNG_DELEGATE_FALSE=
28458 # Check for RSVG delegate library.
28461 # Check whether --with-rsvg was given.
28462 if test "${with_rsvg+set}" = set; then :
28463 withval=$with_rsvg; with_rsvg=$withval
28469 if test "$with_rsvg" != 'yes'; then
28470 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28478 if test "x$with_rsvg" = "xyes"; then
28479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28480 $as_echo "-------------------------------------------------------------" >&6; }
28483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
28484 $as_echo_n "checking for RSVG... " >&6; }
28486 if test -n "$RSVG_CFLAGS"; then
28487 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28488 elif test -n "$PKG_CONFIG"; then
28489 if test -n "$PKG_CONFIG" && \
28490 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28491 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28494 test $ac_status = 0; }; then
28495 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28502 if test -n "$RSVG_LIBS"; then
28503 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28504 elif test -n "$PKG_CONFIG"; then
28505 if test -n "$PKG_CONFIG" && \
28506 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28507 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28510 test $ac_status = 0; }; then
28511 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28521 if test $pkg_failed = yes; then
28523 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28524 _pkg_short_errors_supported=yes
28526 _pkg_short_errors_supported=no
28528 if test $_pkg_short_errors_supported = yes; then
28529 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28531 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28533 # Put the nasty error message in config.log where it belongs
28534 echo "$RSVG_PKG_ERRORS" >&5
28536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28537 $as_echo "no" >&6; }
28539 elif test $pkg_failed = untried; then
28542 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28543 RSVG_LIBS=$pkg_cv_RSVG_LIBS
28544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28545 $as_echo "yes" >&6; }
28548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
28553 $as_echo_n "checking for CAIRO_SVG... " >&6; }
28555 if test -n "$CAIRO_SVG_CFLAGS"; then
28556 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28557 elif test -n "$PKG_CONFIG"; then
28558 if test -n "$PKG_CONFIG" && \
28559 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28560 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28563 test $ac_status = 0; }; then
28564 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28571 if test -n "$CAIRO_SVG_LIBS"; then
28572 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28573 elif test -n "$PKG_CONFIG"; then
28574 if test -n "$PKG_CONFIG" && \
28575 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28576 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28579 test $ac_status = 0; }; then
28580 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28590 if test $pkg_failed = yes; then
28592 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28593 _pkg_short_errors_supported=yes
28595 _pkg_short_errors_supported=no
28597 if test $_pkg_short_errors_supported = yes; then
28598 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28600 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28602 # Put the nasty error message in config.log where it belongs
28603 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28606 $as_echo "no" >&6; }
28608 elif test $pkg_failed = untried; then
28611 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28612 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
28613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28614 $as_echo "yes" >&6; }
28617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28621 if test "$have_rsvg" = 'yes'; then
28623 $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
28625 if test "$with_modules" = 'no'; then
28626 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28630 if test "$have_cairo" = 'yes'; then
28632 $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
28634 if test "$with_modules" = 'no'; then
28635 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28639 if test "$have_rsvg" = 'yes'; then
28640 RSVG_DELEGATE_TRUE=
28641 RSVG_DELEGATE_FALSE='#'
28643 RSVG_DELEGATE_TRUE='#'
28644 RSVG_DELEGATE_FALSE=
28647 if test "$have_cairo" = 'yes'; then
28648 CAIRO_DELEGATE_TRUE=
28649 CAIRO_DELEGATE_FALSE='#'
28651 CAIRO_DELEGATE_TRUE='#'
28652 CAIRO_DELEGATE_FALSE=
28660 # Check for TIFF delegate library.
28663 # Check whether --with-tiff was given.
28664 if test "${with_tiff+set}" = set; then :
28665 withval=$with_tiff; with_tiff=$withval
28671 if test "$with_tiff" != 'yes'; then
28672 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28677 if test "$with_tiff" != 'no'; then
28678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28679 $as_echo "-------------------------------------------------------------" >&6; }
28680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
28681 $as_echo_n "checking for TIFF... " >&6; }
28682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28686 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28687 if test "x$ac_cv_header_tiff_h" = x""yes; then :
28688 passed=`expr $passed + 1`
28690 failed=`expr $failed + 1`
28694 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28695 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
28696 passed=`expr $passed + 1`
28698 failed=`expr $failed + 1`
28702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
28703 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
28704 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
28705 $as_echo_n "(cached) " >&6
28707 ac_check_lib_save_LIBS=$LIBS
28708 LIBS="-ltiff $LIBS"
28709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28710 /* end confdefs.h. */
28712 /* Override any GCC internal prototype to avoid an error.
28713 Use char because int might match the return type of a GCC
28714 builtin and then its argument prototype would still apply. */
28722 return TIFFOpen ();
28727 if ac_fn_c_try_link "$LINENO"; then :
28728 ac_cv_lib_tiff_TIFFOpen=yes
28730 ac_cv_lib_tiff_TIFFOpen=no
28732 rm -f core conftest.err conftest.$ac_objext \
28733 conftest$ac_exeext conftest.$ac_ext
28734 LIBS=$ac_check_lib_save_LIBS
28736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
28737 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
28738 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
28739 passed=`expr $passed + 1`
28741 failed=`expr $failed + 1`
28744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
28745 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
28746 if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
28747 $as_echo_n "(cached) " >&6
28749 ac_check_lib_save_LIBS=$LIBS
28750 LIBS="-ltiff $LIBS"
28751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28752 /* end confdefs.h. */
28754 /* Override any GCC internal prototype to avoid an error.
28755 Use char because int might match the return type of a GCC
28756 builtin and then its argument prototype would still apply. */
28760 char TIFFClientOpen ();
28764 return TIFFClientOpen ();
28769 if ac_fn_c_try_link "$LINENO"; then :
28770 ac_cv_lib_tiff_TIFFClientOpen=yes
28772 ac_cv_lib_tiff_TIFFClientOpen=no
28774 rm -f core conftest.err conftest.$ac_objext \
28775 conftest$ac_exeext conftest.$ac_ext
28776 LIBS=$ac_check_lib_save_LIBS
28778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
28779 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
28780 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
28781 passed=`expr $passed + 1`
28783 failed=`expr $failed + 1`
28786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
28787 $as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
28788 if test "${ac_cv_lib_tiff_TIFFIsBigEndian+set}" = set; then :
28789 $as_echo_n "(cached) " >&6
28791 ac_check_lib_save_LIBS=$LIBS
28792 LIBS="-ltiff $LIBS"
28793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28794 /* end confdefs.h. */
28796 /* Override any GCC internal prototype to avoid an error.
28797 Use char because int might match the return type of a GCC
28798 builtin and then its argument prototype would still apply. */
28802 char TIFFIsBigEndian ();
28806 return TIFFIsBigEndian ();
28811 if ac_fn_c_try_link "$LINENO"; then :
28812 ac_cv_lib_tiff_TIFFIsBigEndian=yes
28814 ac_cv_lib_tiff_TIFFIsBigEndian=no
28816 rm -f core conftest.err conftest.$ac_objext \
28817 conftest$ac_exeext conftest.$ac_ext
28818 LIBS=$ac_check_lib_save_LIBS
28820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
28821 $as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
28822 if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = x""yes; then :
28823 passed=`expr $passed + 1`
28825 failed=`expr $failed + 1`
28828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
28829 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
28830 if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
28831 $as_echo_n "(cached) " >&6
28833 ac_check_lib_save_LIBS=$LIBS
28834 LIBS="-ltiff $LIBS"
28835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28836 /* end confdefs.h. */
28838 /* Override any GCC internal prototype to avoid an error.
28839 Use char because int might match the return type of a GCC
28840 builtin and then its argument prototype would still apply. */
28844 char TIFFIsByteSwapped ();
28848 return TIFFIsByteSwapped ();
28853 if ac_fn_c_try_link "$LINENO"; then :
28854 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28856 ac_cv_lib_tiff_TIFFIsByteSwapped=no
28858 rm -f core conftest.err conftest.$ac_objext \
28859 conftest$ac_exeext conftest.$ac_ext
28860 LIBS=$ac_check_lib_save_LIBS
28862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
28863 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
28864 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
28865 passed=`expr $passed + 1`
28867 failed=`expr $failed + 1`
28870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
28871 $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
28872 if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
28873 $as_echo_n "(cached) " >&6
28875 ac_check_lib_save_LIBS=$LIBS
28876 LIBS="-ltiff $LIBS"
28877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28878 /* end confdefs.h. */
28880 /* Override any GCC internal prototype to avoid an error.
28881 Use char because int might match the return type of a GCC
28882 builtin and then its argument prototype would still apply. */
28886 char TIFFReadRGBATile ();
28890 return TIFFReadRGBATile ();
28895 if ac_fn_c_try_link "$LINENO"; then :
28896 ac_cv_lib_tiff_TIFFReadRGBATile=yes
28898 ac_cv_lib_tiff_TIFFReadRGBATile=no
28900 rm -f core conftest.err conftest.$ac_objext \
28901 conftest$ac_exeext conftest.$ac_ext
28902 LIBS=$ac_check_lib_save_LIBS
28904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
28905 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
28906 if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
28907 passed=`expr $passed + 1`
28909 failed=`expr $failed + 1`
28912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
28913 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
28914 if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
28915 $as_echo_n "(cached) " >&6
28917 ac_check_lib_save_LIBS=$LIBS
28918 LIBS="-ltiff $LIBS"
28919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28920 /* end confdefs.h. */
28922 /* Override any GCC internal prototype to avoid an error.
28923 Use char because int might match the return type of a GCC
28924 builtin and then its argument prototype would still apply. */
28928 char TIFFReadRGBAStrip ();
28932 return TIFFReadRGBAStrip ();
28937 if ac_fn_c_try_link "$LINENO"; then :
28938 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
28940 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
28942 rm -f core conftest.err conftest.$ac_objext \
28943 conftest$ac_exeext conftest.$ac_ext
28944 LIBS=$ac_check_lib_save_LIBS
28946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
28947 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
28948 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
28949 passed=`expr $passed + 1`
28951 failed=`expr $failed + 1`
28954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
28955 $as_echo_n "checking if TIFF package is complete... " >&6; }
28956 if test $passed -gt 0; then
28957 if test $failed -gt 0; then
28958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28959 $as_echo "no -- some components failed test" >&6; }
28960 have_tiff='no (failed tests)'
28963 LIBS="$TIFF_LIBS $LIBS"
28965 $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
28967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28968 $as_echo "yes" >&6; }
28970 for ac_header in tiffconf.h
28972 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
28973 if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
28974 cat >>confdefs.h <<_ACEOF
28975 #define HAVE_TIFFCONF_H 1
28982 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
28983 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
28984 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
28986 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28987 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28988 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28989 cat >>confdefs.h <<_ACEOF
28990 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28999 $as_echo "no" >&6; }
29002 if test "$have_tiff" = 'yes'; then
29003 TIFF_DELEGATE_TRUE=
29004 TIFF_DELEGATE_FALSE='#'
29006 TIFF_DELEGATE_TRUE='#'
29007 TIFF_DELEGATE_FALSE=
29014 # Set Windows font directory.
29017 # Check whether --with-windows-font-dir was given.
29018 if test "${with_windows_font_dir+set}" = set; then :
29019 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29021 with_windows_font_dir=''
29024 if test "$with_windows_font_dir" != '' ; then
29025 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29030 # Check for WMF delegate library.
29033 # Check whether --with-wmf was given.
29034 if test "${with_wmf+set}" = set; then :
29035 withval=$with_wmf; with_wmf=$withval
29041 if test "$with_wmf" != 'yes'; then
29042 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29047 if test "$with_wmf" != 'no'; then
29048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29049 $as_echo "-------------------------------------------------------------" >&6; }
29050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
29051 $as_echo_n "checking for WMF... " >&6; }
29052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29056 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29057 if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29058 passed=`expr $passed + 1`
29060 failed=`expr $failed + 1`
29064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29065 $as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29066 if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
29067 $as_echo_n "(cached) " >&6
29069 ac_check_lib_save_LIBS=$LIBS
29070 LIBS="-lwmf "-lwmflite" $LIBS"
29071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29072 /* end confdefs.h. */
29074 /* Override any GCC internal prototype to avoid an error.
29075 Use char because int might match the return type of a GCC
29076 builtin and then its argument prototype would still apply. */
29080 char wmf_eps_function ();
29084 return wmf_eps_function ();
29089 if ac_fn_c_try_link "$LINENO"; then :
29090 ac_cv_lib_wmf_wmf_eps_function=yes
29092 ac_cv_lib_wmf_wmf_eps_function=no
29094 rm -f core conftest.err conftest.$ac_objext \
29095 conftest$ac_exeext conftest.$ac_ext
29096 LIBS=$ac_check_lib_save_LIBS
29098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29099 $as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29100 if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29101 passed=`expr $passed + 1`
29103 failed=`expr $failed + 1`
29106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29107 $as_echo_n "checking if WMF package is complete... " >&6; }
29108 if test $passed -gt 0; then
29109 if test $failed -gt 0; then
29110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29111 $as_echo "no -- some components failed test" >&6; }
29112 have_wmf='no (failed tests)'
29114 WMF_LIBS='-lwmf -lwmflite'
29115 LIBS="$WMF_LIBS $LIBS"
29117 $as_echo "#define WMF_DELEGATE 1" >>confdefs.h
29119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29120 $as_echo "yes" >&6; }
29124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29125 $as_echo "no" >&6; }
29128 if test "$have_wmf" = 'yes'; then
29130 WMF_DELEGATE_FALSE='#'
29132 WMF_DELEGATE_TRUE='#'
29133 WMF_DELEGATE_FALSE=
29142 # Check for XML delegate library.
29145 # Check whether --with-xml was given.
29146 if test "${with_xml+set}" = set; then :
29147 withval=$with_xml; with_xml=$withval
29153 if test "$with_xml" != 'yes' ; then
29154 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29159 if test "$with_xml" != 'no'; then
29160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29161 $as_echo "-------------------------------------------------------------" >&6; }
29162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
29163 $as_echo_n "checking for XML... " >&6; }
29164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29166 PERSIST_LDFLAGS=$LDFLAGS
29167 PERSIST_CPPFLAGS=$CPPFLAGS
29169 for ac_prog in xml2-config
29171 # Extract the first word of "$ac_prog", so it can be a program name with args.
29172 set dummy $ac_prog; ac_word=$2
29173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29174 $as_echo_n "checking for $ac_word... " >&6; }
29175 if test "${ac_cv_prog_xml2_config+set}" = set; then :
29176 $as_echo_n "(cached) " >&6
29178 if test -n "$xml2_config"; then
29179 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29182 for as_dir in $PATH
29185 test -z "$as_dir" && as_dir=.
29186 for ac_exec_ext in '' $ac_executable_extensions; do
29187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29188 ac_cv_prog_xml2_config="$ac_prog"
29189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29198 xml2_config=$ac_cv_prog_xml2_config
29199 if test -n "$xml2_config"; then
29200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
29201 $as_echo "$xml2_config" >&6; }
29203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29204 $as_echo "no" >&6; }
29208 test -n "$xml2_config" && break
29210 if test -n "$xml2_config"; then
29211 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29212 # the shared library installed under /usr/lib, whereas the package
29213 # installs itself under $prefix/libxml and $prefix/lib.
29214 xml2_prefix=`xml2-config --prefix`
29215 if test -d "${xml2_prefix}/include/libxml2"; then
29216 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29218 if test "${xml2_prefix}" != '/usr'; then
29219 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29224 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29225 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
29226 passed=`expr $passed + 1`
29228 failed=`expr $failed + 1`
29232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
29233 $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
29234 if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
29235 $as_echo_n "(cached) " >&6
29237 ac_check_lib_save_LIBS=$LIBS
29238 LIBS="-lxml2 $LIBS"
29239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29240 /* end confdefs.h. */
29242 /* Override any GCC internal prototype to avoid an error.
29243 Use char because int might match the return type of a GCC
29244 builtin and then its argument prototype would still apply. */
29248 char xmlParseExternalEntity ();
29252 return xmlParseExternalEntity ();
29257 if ac_fn_c_try_link "$LINENO"; then :
29258 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29260 ac_cv_lib_xml2_xmlParseExternalEntity=no
29262 rm -f core conftest.err conftest.$ac_objext \
29263 conftest$ac_exeext conftest.$ac_ext
29264 LIBS=$ac_check_lib_save_LIBS
29266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
29267 $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
29268 if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
29269 passed=`expr $passed + 1`
29271 failed=`expr $failed + 1`
29274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
29275 $as_echo_n "checking if XML package is complete... " >&6; }
29276 if test $passed -gt 0; then
29277 if test $failed -gt 0; then
29278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29279 $as_echo "no -- some components failed test" >&6; }
29280 have_xml='no (failed tests)'
29281 LDFLAGS="$PERSIST_LDFLAGS"
29282 CPPFLAGS="$PERSIST_CPPFLAGS"
29285 LIBS="$XML_LIBS $LIBS"
29287 $as_echo "#define XML_DELEGATE 1" >>confdefs.h
29289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29290 $as_echo "yes" >&6; }
29294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29295 $as_echo "no" >&6; }
29298 if test "$have_xml" = 'yes'; then
29300 XML_DELEGATE_FALSE='#'
29302 XML_DELEGATE_TRUE='#'
29303 XML_DELEGATE_FALSE=
29309 # Substitute compiler name to build/link PerlMagick
29314 # Configure install Paths
29317 # Subdirectory under lib to place ImageMagick lib files
29318 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29320 cat >>confdefs.h <<_ACEOF
29321 #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29325 # Path to ImageMagick bin directory
29326 EXECUTABLE_PATH="${BIN_DIR}"
29327 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29328 case "${build_os}" in
29330 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29334 cat >>confdefs.h <<_ACEOF
29335 #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29340 # Path to ImageMagick lib
29341 LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29342 DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29343 case "${build_os}" in
29345 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29349 cat >>confdefs.h <<_ACEOF
29350 #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29355 # Subdirectory under lib to place ImageMagick configuration files
29356 CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29358 cat >>confdefs.h <<_ACEOF
29359 #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29362 CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29363 DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29364 case "${build_os}" in
29366 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29370 cat >>confdefs.h <<_ACEOF
29371 #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29377 # Subdirectory under lib to place ImageMagick coder module files
29378 CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29380 cat >>confdefs.h <<_ACEOF
29381 #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29384 CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29385 DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29386 case "${build_os}" in
29388 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29392 cat >>confdefs.h <<_ACEOF
29393 #define CODER_PATH "$DEFINE_CODER_PATH"
29399 # Subdirectory under lib to place ImageMagick filter module files
29400 FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29402 cat >>confdefs.h <<_ACEOF
29403 #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29406 FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29407 DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29408 case "${build_os}" in
29410 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29414 cat >>confdefs.h <<_ACEOF
29415 #define FILTER_PATH "$DEFINE_FILTER_PATH"
29421 # Path to ImageMagick documentation files
29422 DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29423 DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29424 DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29425 case "${build_os}" in
29427 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29431 cat >>confdefs.h <<_ACEOF
29432 #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29438 # Path to ImageMagick share files
29439 SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29440 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29441 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29442 case "${build_os}" in
29444 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29448 cat >>confdefs.h <<_ACEOF
29449 #define SHARE_PATH "$DEFINE_SHARE_PATH"
29454 # Subdirectory under share to place ImageMagick configuration files
29455 SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29457 cat >>confdefs.h <<_ACEOF
29458 #define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29461 SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29462 DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29463 case "${build_os}" in
29465 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29469 cat >>confdefs.h <<_ACEOF
29470 #define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29476 # program_transform_name is formed for use in a Makefile, so create a
29477 # modified version for use in a shell script.
29478 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29480 # Default delegate definitions
29481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29482 $as_echo "-------------------------------------------------------------" >&6; }
29483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
29484 $as_echo_n "checking for ImageMagick delegate programs... " >&6; }
29485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29487 AutotraceDecodeDelegateDefault='autotrace'
29488 AVIDecodeDelegateDefault='mplayer'
29489 BlenderDecodeDelegateDefault='blender'
29490 BZIPDelegateDefault='bzip2'
29491 BrowseDelegateDefault='xdg-open'
29492 CGMDecodeDelegateDefault='ralcgm'
29493 CatDelegateDefault='cat'
29494 DNGDecodeDelegateDefault='ufraw-batch'
29495 GVCDecodeDelegateDefault='dot'
29496 DVIDecodeDelegateDefault='dvips'
29497 EchoDelegateDefault='echo'
29498 EditorDelegateDefault='xterm'
29499 FIGDecodeDelegateDefault='fig2dev'
29500 ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29501 DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29502 MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29503 GnuplotDecodeDelegateDefault='gnuplot'
29504 HDRDecodeDelegateDefault='ra_pfm'
29505 HPGLDecodeDelegateDefault='hp2xx'
29506 HTMLDecodeDelegateDefault='html2ps'
29507 ILBMDecodeDelegateDefault='ilbmtoppm'
29508 ILBMEncodeDelegateDefault='ppmtoilbm'
29509 LPDelegateDefault='lp'
29510 LPRDelegateDefault='lpr'
29511 LZWDecodeDelegateDefault='uncompress'
29512 LZWEncodeDelegateDefault='compress'
29513 LaunchDelegateDefault='gimp'
29514 MANDelegateDefault='groff'
29515 MPEGDecodeDelegateDefault='ffmpeg'
29516 MPEGEncodeDelegateDefault='ffmpeg'
29517 MrSIDDecodeDelegateDefault='mrsidgeodecode'
29518 MVDelegateDefault='mv'
29519 PCLDelegateDefault='pcl6'
29520 PGPDecodeDelegateDefault='pgpv'
29521 POVDelegateDefault='povray'
29522 if test "$native_win32_build" = 'yes'; then
29523 PSDelegateDefault='gswin32c'
29524 elif test "$gslib_framework" = 'yes'; then
29525 PSDelegateDefault='gsc'
29527 PSDelegateDefault='gs'
29529 RLEEncodeDelegateDefault='rawtorle'
29530 RMDelegateDefault='rm'
29531 RSVGDecodeDelegateDefault='rsvg'
29532 SCANDecodeDelegateDefault='scanimage'
29533 TXTDelegateDefault='enscript'
29534 UniconvertorDelegateDefault='uniconvertor'
29535 WEBPDelegateDefault='webpconv'
29536 WMFDecodeDelegateDefault='wmf2eps'
29537 WWWDecodeDelegateDefault='curl'
29538 XPSDelegateDefault='gxps'
29539 ZipDelegateDefault='gzip'
29541 # Search for delegates
29542 # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29543 set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
29544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29545 $as_echo_n "checking for $ac_word... " >&6; }
29546 if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
29547 $as_echo_n "(cached) " >&6
29549 case $AutotraceDecodeDelegate in
29551 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29555 for as_dir in $PATH
29558 test -z "$as_dir" && as_dir=.
29559 for ac_exec_ext in '' $ac_executable_extensions; do
29560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29561 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29569 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29573 AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29574 if test -n "$AutotraceDecodeDelegate"; then
29575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
29576 $as_echo "$AutotraceDecodeDelegate" >&6; }
29578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29579 $as_echo "no" >&6; }
29583 # Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29584 set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
29585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29586 $as_echo_n "checking for $ac_word... " >&6; }
29587 if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
29588 $as_echo_n "(cached) " >&6
29590 case $AVIDecodeDelegate in
29592 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29596 for as_dir in $PATH
29599 test -z "$as_dir" && as_dir=.
29600 for ac_exec_ext in '' $ac_executable_extensions; do
29601 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29602 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29610 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29614 AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29615 if test -n "$AVIDecodeDelegate"; then
29616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
29617 $as_echo "$AVIDecodeDelegate" >&6; }
29619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29620 $as_echo "no" >&6; }
29624 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29625 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
29626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29627 $as_echo_n "checking for $ac_word... " >&6; }
29628 if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
29629 $as_echo_n "(cached) " >&6
29631 case $BlenderDecodeDelegate in
29633 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29637 for as_dir in $PATH
29640 test -z "$as_dir" && as_dir=.
29641 for ac_exec_ext in '' $ac_executable_extensions; do
29642 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29643 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29651 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29655 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29656 if test -n "$BlenderDecodeDelegate"; then
29657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
29658 $as_echo "$BlenderDecodeDelegate" >&6; }
29660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29661 $as_echo "no" >&6; }
29665 # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29666 set dummy "$BZIPDelegateDefault"; ac_word=$2
29667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29668 $as_echo_n "checking for $ac_word... " >&6; }
29669 if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
29670 $as_echo_n "(cached) " >&6
29672 case $BZIPDelegate in
29674 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29678 for as_dir in $PATH
29681 test -z "$as_dir" && as_dir=.
29682 for ac_exec_ext in '' $ac_executable_extensions; do
29683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29684 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
29685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29692 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29696 BZIPDelegate=$ac_cv_path_BZIPDelegate
29697 if test -n "$BZIPDelegate"; then
29698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
29699 $as_echo "$BZIPDelegate" >&6; }
29701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29702 $as_echo "no" >&6; }
29706 # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29707 set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
29708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29709 $as_echo_n "checking for $ac_word... " >&6; }
29710 if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
29711 $as_echo_n "(cached) " >&6
29713 case $BrowseDelegate in
29715 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29719 for as_dir in $PATH
29722 test -z "$as_dir" && as_dir=.
29723 for ac_exec_ext in '' $ac_executable_extensions; do
29724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29725 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
29726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29733 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29737 BrowseDelegate=$ac_cv_path_BrowseDelegate
29738 if test -n "$BrowseDelegate"; then
29739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
29740 $as_echo "$BrowseDelegate" >&6; }
29742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29743 $as_echo "no" >&6; }
29747 # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29748 set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
29749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29750 $as_echo_n "checking for $ac_word... " >&6; }
29751 if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
29752 $as_echo_n "(cached) " >&6
29754 case $CGMDecodeDelegate in
29756 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29760 for as_dir in $PATH
29763 test -z "$as_dir" && as_dir=.
29764 for ac_exec_ext in '' $ac_executable_extensions; do
29765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29766 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29774 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29778 CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29779 if test -n "$CGMDecodeDelegate"; then
29780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
29781 $as_echo "$CGMDecodeDelegate" >&6; }
29783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29784 $as_echo "no" >&6; }
29788 # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29789 set dummy "$CatDelegateDefault"; ac_word=$2
29790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29791 $as_echo_n "checking for $ac_word... " >&6; }
29792 if test "${ac_cv_path_CatDelegate+set}" = set; then :
29793 $as_echo_n "(cached) " >&6
29795 case $CatDelegate in
29797 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29801 for as_dir in $PATH
29804 test -z "$as_dir" && as_dir=.
29805 for ac_exec_ext in '' $ac_executable_extensions; do
29806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29807 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
29808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29815 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29819 CatDelegate=$ac_cv_path_CatDelegate
29820 if test -n "$CatDelegate"; then
29821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
29822 $as_echo "$CatDelegate" >&6; }
29824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29825 $as_echo "no" >&6; }
29829 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29830 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
29831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29832 $as_echo_n "checking for $ac_word... " >&6; }
29833 if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
29834 $as_echo_n "(cached) " >&6
29836 case $DNGDecodeDelegate in
29838 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29842 for as_dir in $PATH
29845 test -z "$as_dir" && as_dir=.
29846 for ac_exec_ext in '' $ac_executable_extensions; do
29847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29848 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29856 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29860 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29861 if test -n "$DNGDecodeDelegate"; then
29862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
29863 $as_echo "$DNGDecodeDelegate" >&6; }
29865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29866 $as_echo "no" >&6; }
29870 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29871 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
29872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29873 $as_echo_n "checking for $ac_word... " >&6; }
29874 if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
29875 $as_echo_n "(cached) " >&6
29877 case $GVCDecodeDelegate in
29879 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29883 for as_dir in $PATH
29886 test -z "$as_dir" && as_dir=.
29887 for ac_exec_ext in '' $ac_executable_extensions; do
29888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29889 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29897 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29901 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29902 if test -n "$GVCDecodeDelegate"; then
29903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
29904 $as_echo "$GVCDecodeDelegate" >&6; }
29906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29907 $as_echo "no" >&6; }
29911 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29912 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
29913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29914 $as_echo_n "checking for $ac_word... " >&6; }
29915 if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
29916 $as_echo_n "(cached) " >&6
29918 case $DVIDecodeDelegate in
29920 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29924 for as_dir in $PATH
29927 test -z "$as_dir" && as_dir=.
29928 for ac_exec_ext in '' $ac_executable_extensions; do
29929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29930 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29938 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
29942 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
29943 if test -n "$DVIDecodeDelegate"; then
29944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
29945 $as_echo "$DVIDecodeDelegate" >&6; }
29947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29948 $as_echo "no" >&6; }
29952 # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
29953 set dummy "$EchoDelegateDefault"; ac_word=$2
29954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29955 $as_echo_n "checking for $ac_word... " >&6; }
29956 if test "${ac_cv_path_EchoDelegate+set}" = set; then :
29957 $as_echo_n "(cached) " >&6
29959 case $EchoDelegate in
29961 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
29964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29965 for as_dir in $PATH
29968 test -z "$as_dir" && as_dir=.
29969 for ac_exec_ext in '' $ac_executable_extensions; do
29970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29971 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
29972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29979 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
29983 EchoDelegate=$ac_cv_path_EchoDelegate
29984 if test -n "$EchoDelegate"; then
29985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
29986 $as_echo "$EchoDelegate" >&6; }
29988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29989 $as_echo "no" >&6; }
29993 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
29994 set dummy "$EditorDelegateDefault"; ac_word=$2
29995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29996 $as_echo_n "checking for $ac_word... " >&6; }
29997 if test "${ac_cv_path_EditorDelegate+set}" = set; then :
29998 $as_echo_n "(cached) " >&6
30000 case $EditorDelegate in
30002 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30006 for as_dir in $PATH
30009 test -z "$as_dir" && as_dir=.
30010 for ac_exec_ext in '' $ac_executable_extensions; do
30011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30012 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
30013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30020 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30024 EditorDelegate=$ac_cv_path_EditorDelegate
30025 if test -n "$EditorDelegate"; then
30026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
30027 $as_echo "$EditorDelegate" >&6; }
30029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30030 $as_echo "no" >&6; }
30034 # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30035 set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
30036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30037 $as_echo_n "checking for $ac_word... " >&6; }
30038 if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
30039 $as_echo_n "(cached) " >&6
30041 case $FIGDecodeDelegate in
30043 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30047 for as_dir in $PATH
30050 test -z "$as_dir" && as_dir=.
30051 for ac_exec_ext in '' $ac_executable_extensions; do
30052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30053 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30061 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30065 FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30066 if test -n "$FIGDecodeDelegate"; then
30067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
30068 $as_echo "$FIGDecodeDelegate" >&6; }
30070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30071 $as_echo "no" >&6; }
30075 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30076 set dummy "$ConvertDelegateDefault"; ac_word=$2
30077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30078 $as_echo_n "checking for $ac_word... " >&6; }
30079 if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
30080 $as_echo_n "(cached) " >&6
30082 case $ConvertDelegate in
30084 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30088 for as_dir in $PATH
30091 test -z "$as_dir" && as_dir=.
30092 for ac_exec_ext in '' $ac_executable_extensions; do
30093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30094 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
30095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30102 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30106 ConvertDelegate=$ac_cv_path_ConvertDelegate
30107 if test -n "$ConvertDelegate"; then
30108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
30109 $as_echo "$ConvertDelegate" >&6; }
30111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30112 $as_echo "no" >&6; }
30116 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30117 set dummy "$DisplayDelegateDefault"; ac_word=$2
30118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30119 $as_echo_n "checking for $ac_word... " >&6; }
30120 if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
30121 $as_echo_n "(cached) " >&6
30123 case $DisplayDelegate in
30125 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30129 for as_dir in $PATH
30132 test -z "$as_dir" && as_dir=.
30133 for ac_exec_ext in '' $ac_executable_extensions; do
30134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30135 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
30136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30143 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30147 DisplayDelegate=$ac_cv_path_DisplayDelegate
30148 if test -n "$DisplayDelegate"; then
30149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
30150 $as_echo "$DisplayDelegate" >&6; }
30152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30153 $as_echo "no" >&6; }
30157 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30158 set dummy "$MogrifyDelegateDefault"; ac_word=$2
30159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30160 $as_echo_n "checking for $ac_word... " >&6; }
30161 if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
30162 $as_echo_n "(cached) " >&6
30164 case $MogrifyDelegate in
30166 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30170 for as_dir in $PATH
30173 test -z "$as_dir" && as_dir=.
30174 for ac_exec_ext in '' $ac_executable_extensions; do
30175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30176 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
30177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30184 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30188 MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30189 if test -n "$MogrifyDelegate"; then
30190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
30191 $as_echo "$MogrifyDelegate" >&6; }
30193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30194 $as_echo "no" >&6; }
30198 # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30199 set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
30200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30201 $as_echo_n "checking for $ac_word... " >&6; }
30202 if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
30203 $as_echo_n "(cached) " >&6
30205 case $GnuplotDecodeDelegate in
30207 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30211 for as_dir in $PATH
30214 test -z "$as_dir" && as_dir=.
30215 for ac_exec_ext in '' $ac_executable_extensions; do
30216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30217 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30225 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30229 GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30230 if test -n "$GnuplotDecodeDelegate"; then
30231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
30232 $as_echo "$GnuplotDecodeDelegate" >&6; }
30234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30235 $as_echo "no" >&6; }
30239 # Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30240 set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
30241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30242 $as_echo_n "checking for $ac_word... " >&6; }
30243 if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
30244 $as_echo_n "(cached) " >&6
30246 case $HDRDecodeDelegate in
30248 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30252 for as_dir in $PATH
30255 test -z "$as_dir" && as_dir=.
30256 for ac_exec_ext in '' $ac_executable_extensions; do
30257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30258 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30266 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30270 HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30271 if test -n "$HDRDecodeDelegate"; then
30272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
30273 $as_echo "$HDRDecodeDelegate" >&6; }
30275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30276 $as_echo "no" >&6; }
30280 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30281 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
30282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30283 $as_echo_n "checking for $ac_word... " >&6; }
30284 if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
30285 $as_echo_n "(cached) " >&6
30287 case $HPGLDecodeDelegate in
30289 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30293 for as_dir in $PATH
30296 test -z "$as_dir" && as_dir=.
30297 for ac_exec_ext in '' $ac_executable_extensions; do
30298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30299 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30307 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30311 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30312 if test -n "$HPGLDecodeDelegate"; then
30313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
30314 $as_echo "$HPGLDecodeDelegate" >&6; }
30316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30317 $as_echo "no" >&6; }
30321 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30322 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
30323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30324 $as_echo_n "checking for $ac_word... " >&6; }
30325 if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
30326 $as_echo_n "(cached) " >&6
30328 case $HTMLDecodeDelegate in
30330 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30334 for as_dir in $PATH
30337 test -z "$as_dir" && as_dir=.
30338 for ac_exec_ext in '' $ac_executable_extensions; do
30339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30340 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30348 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30352 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30353 if test -n "$HTMLDecodeDelegate"; then
30354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
30355 $as_echo "$HTMLDecodeDelegate" >&6; }
30357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30358 $as_echo "no" >&6; }
30362 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30363 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
30364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30365 $as_echo_n "checking for $ac_word... " >&6; }
30366 if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
30367 $as_echo_n "(cached) " >&6
30369 case $ILBMDecodeDelegate in
30371 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30375 for as_dir in $PATH
30378 test -z "$as_dir" && as_dir=.
30379 for ac_exec_ext in '' $ac_executable_extensions; do
30380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30381 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30389 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30393 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30394 if test -n "$ILBMDecodeDelegate"; then
30395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
30396 $as_echo "$ILBMDecodeDelegate" >&6; }
30398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30399 $as_echo "no" >&6; }
30403 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30404 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
30405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30406 $as_echo_n "checking for $ac_word... " >&6; }
30407 if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
30408 $as_echo_n "(cached) " >&6
30410 case $ILBMEncodeDelegate in
30412 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30416 for as_dir in $PATH
30419 test -z "$as_dir" && as_dir=.
30420 for ac_exec_ext in '' $ac_executable_extensions; do
30421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30422 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30430 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30434 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30435 if test -n "$ILBMEncodeDelegate"; then
30436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
30437 $as_echo "$ILBMEncodeDelegate" >&6; }
30439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30440 $as_echo "no" >&6; }
30444 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30445 set dummy "$LPDelegateDefault"; ac_word=$2
30446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30447 $as_echo_n "checking for $ac_word... " >&6; }
30448 if test "${ac_cv_path_LPDelegate+set}" = set; then :
30449 $as_echo_n "(cached) " >&6
30451 case $LPDelegate in
30453 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30457 for as_dir in $PATH
30460 test -z "$as_dir" && as_dir=.
30461 for ac_exec_ext in '' $ac_executable_extensions; do
30462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30463 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
30464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30471 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30475 LPDelegate=$ac_cv_path_LPDelegate
30476 if test -n "$LPDelegate"; then
30477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
30478 $as_echo "$LPDelegate" >&6; }
30480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30481 $as_echo "no" >&6; }
30485 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30486 set dummy "$LPRDelegateDefault"; ac_word=$2
30487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30488 $as_echo_n "checking for $ac_word... " >&6; }
30489 if test "${ac_cv_path_LPRDelegate+set}" = set; then :
30490 $as_echo_n "(cached) " >&6
30492 case $LPRDelegate in
30494 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30498 for as_dir in $PATH
30501 test -z "$as_dir" && as_dir=.
30502 for ac_exec_ext in '' $ac_executable_extensions; do
30503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30504 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
30505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30512 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30516 LPRDelegate=$ac_cv_path_LPRDelegate
30517 if test -n "$LPRDelegate"; then
30518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
30519 $as_echo "$LPRDelegate" >&6; }
30521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30522 $as_echo "no" >&6; }
30526 # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30527 set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
30528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30529 $as_echo_n "checking for $ac_word... " >&6; }
30530 if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
30531 $as_echo_n "(cached) " >&6
30533 case $LZWDecodeDelegate in
30535 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30539 for as_dir in $PATH
30542 test -z "$as_dir" && as_dir=.
30543 for ac_exec_ext in '' $ac_executable_extensions; do
30544 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30545 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30553 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30557 LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30558 if test -n "$LZWDecodeDelegate"; then
30559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
30560 $as_echo "$LZWDecodeDelegate" >&6; }
30562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30563 $as_echo "no" >&6; }
30567 # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30568 set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
30569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30570 $as_echo_n "checking for $ac_word... " >&6; }
30571 if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
30572 $as_echo_n "(cached) " >&6
30574 case $LZWEncodeDelegate in
30576 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30580 for as_dir in $PATH
30583 test -z "$as_dir" && as_dir=.
30584 for ac_exec_ext in '' $ac_executable_extensions; do
30585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30586 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30594 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30598 LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30599 if test -n "$LZWEncodeDelegate"; then
30600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
30601 $as_echo "$LZWEncodeDelegate" >&6; }
30603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30604 $as_echo "no" >&6; }
30608 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30609 set dummy "$LaunchDelegateDefault"; ac_word=$2
30610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30611 $as_echo_n "checking for $ac_word... " >&6; }
30612 if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
30613 $as_echo_n "(cached) " >&6
30615 case $LaunchDelegate in
30617 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30621 for as_dir in $PATH
30624 test -z "$as_dir" && as_dir=.
30625 for ac_exec_ext in '' $ac_executable_extensions; do
30626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30627 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
30628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30635 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30639 LaunchDelegate=$ac_cv_path_LaunchDelegate
30640 if test -n "$LaunchDelegate"; then
30641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
30642 $as_echo "$LaunchDelegate" >&6; }
30644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30645 $as_echo "no" >&6; }
30649 # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30650 set dummy "$MANDelegateDefault"; ac_word=$2
30651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30652 $as_echo_n "checking for $ac_word... " >&6; }
30653 if test "${ac_cv_path_MANDelegate+set}" = set; then :
30654 $as_echo_n "(cached) " >&6
30656 case $MANDelegate in
30658 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30662 for as_dir in $PATH
30665 test -z "$as_dir" && as_dir=.
30666 for ac_exec_ext in '' $ac_executable_extensions; do
30667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30668 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
30669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30676 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30680 MANDelegate=$ac_cv_path_MANDelegate
30681 if test -n "$MANDelegate"; then
30682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
30683 $as_echo "$MANDelegate" >&6; }
30685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30686 $as_echo "no" >&6; }
30690 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30691 set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
30692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30693 $as_echo_n "checking for $ac_word... " >&6; }
30694 if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
30695 $as_echo_n "(cached) " >&6
30697 case $MPEGDecodeDelegate in
30699 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30703 for as_dir in $PATH
30706 test -z "$as_dir" && as_dir=.
30707 for ac_exec_ext in '' $ac_executable_extensions; do
30708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30709 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30717 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30721 MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30722 if test -n "$MPEGDecodeDelegate"; then
30723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
30724 $as_echo "$MPEGDecodeDelegate" >&6; }
30726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30727 $as_echo "no" >&6; }
30731 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30732 set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
30733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30734 $as_echo_n "checking for $ac_word... " >&6; }
30735 if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
30736 $as_echo_n "(cached) " >&6
30738 case $MPEGEncodeDelegate in
30740 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30744 for as_dir in $PATH
30747 test -z "$as_dir" && as_dir=.
30748 for ac_exec_ext in '' $ac_executable_extensions; do
30749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30750 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30758 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30762 MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30763 if test -n "$MPEGEncodeDelegate"; then
30764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
30765 $as_echo "$MPEGEncodeDelegate" >&6; }
30767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30768 $as_echo "no" >&6; }
30772 # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30773 set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30775 $as_echo_n "checking for $ac_word... " >&6; }
30776 if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30777 $as_echo_n "(cached) " >&6
30779 case $MrSIDDecodeDelegate in
30781 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30785 for as_dir in $PATH
30788 test -z "$as_dir" && as_dir=.
30789 for ac_exec_ext in '' $ac_executable_extensions; do
30790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30791 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30799 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
30803 MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
30804 if test -n "$MrSIDDecodeDelegate"; then
30805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
30806 $as_echo "$MrSIDDecodeDelegate" >&6; }
30808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30809 $as_echo "no" >&6; }
30813 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30814 set dummy "$MVDelegateDefault"; ac_word=$2
30815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30816 $as_echo_n "checking for $ac_word... " >&6; }
30817 if test "${ac_cv_path_MVDelegate+set}" = set; then :
30818 $as_echo_n "(cached) " >&6
30820 case $MVDelegate in
30822 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30826 for as_dir in $PATH
30829 test -z "$as_dir" && as_dir=.
30830 for ac_exec_ext in '' $ac_executable_extensions; do
30831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30832 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
30833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30840 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30844 MVDelegate=$ac_cv_path_MVDelegate
30845 if test -n "$MVDelegate"; then
30846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
30847 $as_echo "$MVDelegate" >&6; }
30849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30850 $as_echo "no" >&6; }
30854 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30855 set dummy "$PCLDelegateDefault"; ac_word=$2
30856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30857 $as_echo_n "checking for $ac_word... " >&6; }
30858 if test "${ac_cv_path_PCLDelegate+set}" = set; then :
30859 $as_echo_n "(cached) " >&6
30861 case $PCLDelegate in
30863 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30867 for as_dir in $PATH
30870 test -z "$as_dir" && as_dir=.
30871 for ac_exec_ext in '' $ac_executable_extensions; do
30872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30873 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
30874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30881 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30885 PCLDelegate=$ac_cv_path_PCLDelegate
30886 if test -n "$PCLDelegate"; then
30887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
30888 $as_echo "$PCLDelegate" >&6; }
30890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30891 $as_echo "no" >&6; }
30895 # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30896 set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
30897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30898 $as_echo_n "checking for $ac_word... " >&6; }
30899 if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
30900 $as_echo_n "(cached) " >&6
30902 case $PGPDecodeDelegate in
30904 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30908 for as_dir in $PATH
30911 test -z "$as_dir" && as_dir=.
30912 for ac_exec_ext in '' $ac_executable_extensions; do
30913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30914 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30922 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30926 PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30927 if test -n "$PGPDecodeDelegate"; then
30928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
30929 $as_echo "$PGPDecodeDelegate" >&6; }
30931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30932 $as_echo "no" >&6; }
30936 # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
30937 set dummy "$POVDelegateDefault"; ac_word=$2
30938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30939 $as_echo_n "checking for $ac_word... " >&6; }
30940 if test "${ac_cv_path_POVDelegate+set}" = set; then :
30941 $as_echo_n "(cached) " >&6
30943 case $POVDelegate in
30945 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
30948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30949 for as_dir in $PATH
30952 test -z "$as_dir" && as_dir=.
30953 for ac_exec_ext in '' $ac_executable_extensions; do
30954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30955 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
30956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30963 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
30967 POVDelegate=$ac_cv_path_POVDelegate
30968 if test -n "$POVDelegate"; then
30969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
30970 $as_echo "$POVDelegate" >&6; }
30972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30973 $as_echo "no" >&6; }
30977 for ac_prog in gsx gsc "$PSDelegateDefault"
30979 # Extract the first word of "$ac_prog", so it can be a program name with args.
30980 set dummy $ac_prog; ac_word=$2
30981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30982 $as_echo_n "checking for $ac_word... " >&6; }
30983 if test "${ac_cv_path_PSDelegate+set}" = set; then :
30984 $as_echo_n "(cached) " >&6
30986 case $PSDelegate in
30988 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
30991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30992 for as_dir in $PATH
30995 test -z "$as_dir" && as_dir=.
30996 for ac_exec_ext in '' $ac_executable_extensions; do
30997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30998 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
30999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31009 PSDelegate=$ac_cv_path_PSDelegate
31010 if test -n "$PSDelegate"; then
31011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
31012 $as_echo "$PSDelegate" >&6; }
31014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31015 $as_echo "no" >&6; }
31019 test -n "$PSDelegate" && break
31021 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31023 # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31024 set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
31025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31026 $as_echo_n "checking for $ac_word... " >&6; }
31027 if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
31028 $as_echo_n "(cached) " >&6
31030 case $RLEEncodeDelegate in
31032 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31036 for as_dir in $PATH
31039 test -z "$as_dir" && as_dir=.
31040 for ac_exec_ext in '' $ac_executable_extensions; do
31041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31042 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31050 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31054 RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31055 if test -n "$RLEEncodeDelegate"; then
31056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
31057 $as_echo "$RLEEncodeDelegate" >&6; }
31059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31060 $as_echo "no" >&6; }
31064 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31065 set dummy "$RMDelegateDefault"; ac_word=$2
31066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31067 $as_echo_n "checking for $ac_word... " >&6; }
31068 if test "${ac_cv_path_RMDelegate+set}" = set; then :
31069 $as_echo_n "(cached) " >&6
31071 case $RMDelegate in
31073 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31077 for as_dir in $PATH
31080 test -z "$as_dir" && as_dir=.
31081 for ac_exec_ext in '' $ac_executable_extensions; do
31082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31083 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
31084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31091 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31095 RMDelegate=$ac_cv_path_RMDelegate
31096 if test -n "$RMDelegate"; then
31097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
31098 $as_echo "$RMDelegate" >&6; }
31100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31101 $as_echo "no" >&6; }
31105 # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31106 set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31108 $as_echo_n "checking for $ac_word... " >&6; }
31109 if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31110 $as_echo_n "(cached) " >&6
31112 case $RSVGDecodeDelegate in
31114 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31118 for as_dir in $PATH
31121 test -z "$as_dir" && as_dir=.
31122 for ac_exec_ext in '' $ac_executable_extensions; do
31123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31124 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31132 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31136 RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31137 if test -n "$RSVGDecodeDelegate"; then
31138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31139 $as_echo "$RSVGDecodeDelegate" >&6; }
31141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31142 $as_echo "no" >&6; }
31146 # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31147 set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
31148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31149 $as_echo_n "checking for $ac_word... " >&6; }
31150 if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
31151 $as_echo_n "(cached) " >&6
31153 case $SCANDecodeDelegate in
31155 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31159 for as_dir in $PATH
31162 test -z "$as_dir" && as_dir=.
31163 for ac_exec_ext in '' $ac_executable_extensions; do
31164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31165 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31173 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31177 SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31178 if test -n "$SCANDecodeDelegate"; then
31179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
31180 $as_echo "$SCANDecodeDelegate" >&6; }
31182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31183 $as_echo "no" >&6; }
31187 # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31188 set dummy "$TXTDelegateDefault"; ac_word=$2
31189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31190 $as_echo_n "checking for $ac_word... " >&6; }
31191 if test "${ac_cv_path_TXTDelegate+set}" = set; then :
31192 $as_echo_n "(cached) " >&6
31194 case $TXTDelegate in
31196 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31200 for as_dir in $PATH
31203 test -z "$as_dir" && as_dir=.
31204 for ac_exec_ext in '' $ac_executable_extensions; do
31205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31206 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
31207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31214 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31218 TXTDelegate=$ac_cv_path_TXTDelegate
31219 if test -n "$TXTDelegate"; then
31220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
31221 $as_echo "$TXTDelegate" >&6; }
31223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31224 $as_echo "no" >&6; }
31228 # Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
31229 set dummy "$UniconvertorDelegateDefault"; ac_word=$2
31230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31231 $as_echo_n "checking for $ac_word... " >&6; }
31232 if test "${ac_cv_path_UniconvertorDelegate+set}" = set; then :
31233 $as_echo_n "(cached) " >&6
31235 case $UniconvertorDelegate in
31237 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
31240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31241 for as_dir in $PATH
31244 test -z "$as_dir" && as_dir=.
31245 for ac_exec_ext in '' $ac_executable_extensions; do
31246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31247 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
31248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31255 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
31259 UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
31260 if test -n "$UniconvertorDelegate"; then
31261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
31262 $as_echo "$UniconvertorDelegate" >&6; }
31264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31265 $as_echo "no" >&6; }
31269 # Extract the first word of ""$WEBPDelegateDefault"", so it can be a program name with args.
31270 set dummy "$WEBPDelegateDefault"; ac_word=$2
31271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31272 $as_echo_n "checking for $ac_word... " >&6; }
31273 if test "${ac_cv_path_WEBPDelegate+set}" = set; then :
31274 $as_echo_n "(cached) " >&6
31276 case $WEBPDelegate in
31278 ac_cv_path_WEBPDelegate="$WEBPDelegate" # Let the user override the test with a path.
31281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31282 for as_dir in $PATH
31285 test -z "$as_dir" && as_dir=.
31286 for ac_exec_ext in '' $ac_executable_extensions; do
31287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31288 ac_cv_path_WEBPDelegate="$as_dir/$ac_word$ac_exec_ext"
31289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31296 test -z "$ac_cv_path_WEBPDelegate" && ac_cv_path_WEBPDelegate=""$WEBPDelegateDefault""
31300 WEBPDelegate=$ac_cv_path_WEBPDelegate
31301 if test -n "$WEBPDelegate"; then
31302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WEBPDelegate" >&5
31303 $as_echo "$WEBPDelegate" >&6; }
31305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31306 $as_echo "no" >&6; }
31310 # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31311 set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
31312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31313 $as_echo_n "checking for $ac_word... " >&6; }
31314 if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
31315 $as_echo_n "(cached) " >&6
31317 case $WMFDecodeDelegate in
31319 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31323 for as_dir in $PATH
31326 test -z "$as_dir" && as_dir=.
31327 for ac_exec_ext in '' $ac_executable_extensions; do
31328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31329 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31337 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31341 WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31342 if test -n "$WMFDecodeDelegate"; then
31343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
31344 $as_echo "$WMFDecodeDelegate" >&6; }
31346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31347 $as_echo "no" >&6; }
31351 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31352 set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
31353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31354 $as_echo_n "checking for $ac_word... " >&6; }
31355 if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
31356 $as_echo_n "(cached) " >&6
31358 case $WWWDecodeDelegate in
31360 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31364 for as_dir in $PATH
31367 test -z "$as_dir" && as_dir=.
31368 for ac_exec_ext in '' $ac_executable_extensions; do
31369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31370 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31378 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31382 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31383 if test -n "$WWWDecodeDelegate"; then
31384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
31385 $as_echo "$WWWDecodeDelegate" >&6; }
31387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31388 $as_echo "no" >&6; }
31392 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31393 set dummy "$XPSDelegateDefault"; ac_word=$2
31394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31395 $as_echo_n "checking for $ac_word... " >&6; }
31396 if test "${ac_cv_path_XPSDelegate+set}" = set; then :
31397 $as_echo_n "(cached) " >&6
31399 case $XPSDelegate in
31401 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31405 for as_dir in $PATH
31408 test -z "$as_dir" && as_dir=.
31409 for ac_exec_ext in '' $ac_executable_extensions; do
31410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31411 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
31412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31419 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31423 XPSDelegate=$ac_cv_path_XPSDelegate
31424 if test -n "$XPSDelegate"; then
31425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
31426 $as_echo "$XPSDelegate" >&6; }
31428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31429 $as_echo "no" >&6; }
31433 # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31434 set dummy "$ZipDelegateDefault"; ac_word=$2
31435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31436 $as_echo_n "checking for $ac_word... " >&6; }
31437 if test "${ac_cv_path_ZipDelegate+set}" = set; then :
31438 $as_echo_n "(cached) " >&6
31440 case $ZipDelegate in
31442 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31446 for as_dir in $PATH
31449 test -z "$as_dir" && as_dir=.
31450 for ac_exec_ext in '' $ac_executable_extensions; do
31451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31452 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
31453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31460 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31464 ZipDelegate=$ac_cv_path_ZipDelegate
31465 if test -n "$ZipDelegate"; then
31466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
31467 $as_echo "$ZipDelegate" >&6; }
31469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31470 $as_echo "no" >&6; }
31475 # Prefer lpr to lp; lp needs options tacked on.
31476 if test "$LPRDelegate" != no; then
31477 PrintDelegate="$LPRDelegate"
31479 PrintDelegate="$LPDelegate -c -s"
31483 # Installed ImageMagick utiltity paths
31484 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31485 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31486 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31488 # Set delegate booleans
31489 have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31490 have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31491 have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31492 have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31493 have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31494 have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
31495 have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
31496 have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31497 have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31498 have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31499 have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31500 have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31503 # Test for font directories
31505 type_include_files=''
31508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31509 $as_echo_n "checking for Dejavu fonts directory... " >&6; }
31511 if test "${with_dejavu_font_dir}" != 'default'; then
31512 dejavu_font_dir="${with_dejavu_font_dir}/"
31514 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31515 if test -f "${font_dir}DejaVuSerif.ttf"; then
31516 dejavu_font_dir="${font_dir}"
31521 if test "${dejavu_font_dir}x" != 'x'; then
31522 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31524 $as_echo "$dejavu_font_dir" >&6; }
31526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31527 $as_echo "not found!" >&6; };
31532 windows_font_dir=''
31533 if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31534 windows_font_dir="${with_windows_font_dir}/"
31536 if test "${windows_font_dir}x" != 'x'; then
31537 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31538 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31540 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31541 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31543 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31544 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31547 if test "${windows_font_dir}x" != 'x'; then
31548 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
31554 $as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31555 ghostscript_font_dir=''
31556 if test "${with_gs_font_dir}" != 'default'; then
31557 ghostscript_font_dir="${with_gs_font_dir}/"
31559 if test "${native_win32_build}" = 'yes'; then
31560 # Native Windows Build
31561 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31562 if test -f "${font_dir}a010013l.pfb"; then
31563 ghostscript_font_dir="$font_dir"
31567 if test "${PSDelegate}" != 'gswin32c'; then
31568 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31571 # Linux / Mac OS X / Unix Build
31572 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
31573 if test -f "${font_dir}a010013l.pfb"; then
31574 ghostscript_font_dir="${font_dir}"
31578 if test "${ghostscript_font_dir}x" = 'x'; then
31579 if test "$PSDelegate" != 'gs'; then
31580 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31585 if test "${ghostscript_font_dir}x" != 'x'; then
31586 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
31587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
31588 $as_echo "$ghostscript_font_dir" >&6; }
31590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31591 $as_echo "not found!" >&6; };
31594 case "${build_os}" in
31596 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31603 # Handle case where user doesn't want frozen paths
31605 if test "$with_frozenpaths" != 'yes'; then
31606 # Re-set delegate definitions to default (no paths)
31607 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31608 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31609 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31610 BZIPDelegate="$BZIPDelegateDefault"
31611 BrowseDelegate="$BrowseDelegateDefault"
31612 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31613 CatDelegate="$CatDelegateDefault"
31614 ConvertDelegate="$ConvertDelegateDefault"
31615 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31616 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31617 EchoDelegate="$EchoDelegateDefault"
31618 EditorDelegate="$EditorDelegateDefault"
31619 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31620 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31621 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31622 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31623 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31624 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31625 LPDelegate="$LPDelegateDefault"
31626 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31627 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31628 LaunchDelegate="$LaunchDelegateDefault"
31629 MANDelegate="$MANDelegateDefault"
31630 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31631 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
31632 MogrifyDelegate="$MogrifyDelegateDefault"
31633 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31634 MVDelegate="$MVDelegateDefault"
31635 PCLDelegate="$PCLDelegateDefault"
31636 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31637 POVDelegate="$POVDelegateDefault"
31638 PSDelegate="$PSDelegateDefault"
31639 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31640 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31641 RMDelegate="$RMDelegateDefault"
31642 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
31643 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31644 ShowImageDelegate="$ShowImageDelegateDefault"
31645 TXTDelegate="$TXTDelegateDefault"
31646 UniconvertorDelegate="$UniconvertorDelegateDefault"
31647 WEBPDelegate="$WEBPDelegateDefault"
31648 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31649 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31650 XPSDelegate="$XPSDelegateDefault"
31651 ZipDelegate="$ZipDelegateDefault"
31654 # Delegate substitutions
31704 for ac_prog in gnutar gtar tar
31706 # Extract the first word of "$ac_prog", so it can be a program name with args.
31707 set dummy $ac_prog; ac_word=$2
31708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31709 $as_echo_n "checking for $ac_word... " >&6; }
31710 if test "${ac_cv_prog_TAR+set}" = set; then :
31711 $as_echo_n "(cached) " >&6
31713 if test -n "$TAR"; then
31714 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31717 for as_dir in $PATH
31720 test -z "$as_dir" && as_dir=.
31721 for ac_exec_ext in '' $ac_executable_extensions; do
31722 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31723 ac_cv_prog_TAR="$ac_prog"
31724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31733 TAR=$ac_cv_prog_TAR
31734 if test -n "$TAR"; then
31735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
31736 $as_echo "$TAR" >&6; }
31738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31739 $as_echo "no" >&6; }
31743 test -n "$TAR" && break
31746 for ac_prog in perl
31748 # Extract the first word of "$ac_prog", so it can be a program name with args.
31749 set dummy $ac_prog; ac_word=$2
31750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31751 $as_echo_n "checking for $ac_word... " >&6; }
31752 if test "${ac_cv_prog_PERL+set}" = set; then :
31753 $as_echo_n "(cached) " >&6
31755 if test -n "$PERL"; then
31756 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31759 for as_dir in $PATH
31762 test -z "$as_dir" && as_dir=.
31763 for ac_exec_ext in '' $ac_executable_extensions; do
31764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31765 ac_cv_prog_PERL="$ac_prog"
31766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31775 PERL=$ac_cv_prog_PERL
31776 if test -n "$PERL"; then
31777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
31778 $as_echo "$PERL" >&6; }
31780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31781 $as_echo "no" >&6; }
31785 test -n "$PERL" && break
31788 for ac_prog in rpmbuild rpm
31790 # Extract the first word of "$ac_prog", so it can be a program name with args.
31791 set dummy $ac_prog; ac_word=$2
31792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31793 $as_echo_n "checking for $ac_word... " >&6; }
31794 if test "${ac_cv_prog_RPM+set}" = set; then :
31795 $as_echo_n "(cached) " >&6
31797 if test -n "$RPM"; then
31798 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31801 for as_dir in $PATH
31804 test -z "$as_dir" && as_dir=.
31805 for ac_exec_ext in '' $ac_executable_extensions; do
31806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31807 ac_cv_prog_RPM="$ac_prog"
31808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31817 RPM=$ac_cv_prog_RPM
31818 if test -n "$RPM"; then
31819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
31820 $as_echo "$RPM" >&6; }
31822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31823 $as_echo "no" >&6; }
31827 test -n "$RPM" && break
31831 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31834 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31837 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31840 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31843 if test "x$RPM" != "x" ; then
31845 RPM_DELEGATE_FALSE='#'
31847 RPM_DELEGATE_TRUE='#'
31848 RPM_DELEGATE_FALSE=
31853 # 7ZIP support (http://p7zip.sourceforge.net/)
31858 # Extract the first word of "$ac_prog", so it can be a program name with args.
31859 set dummy $ac_prog; ac_word=$2
31860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31861 $as_echo_n "checking for $ac_word... " >&6; }
31862 if test "${ac_cv_prog_P7ZIP+set}" = set; then :
31863 $as_echo_n "(cached) " >&6
31865 if test -n "$P7ZIP"; then
31866 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31869 for as_dir in $PATH
31872 test -z "$as_dir" && as_dir=.
31873 for ac_exec_ext in '' $ac_executable_extensions; do
31874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31875 ac_cv_prog_P7ZIP="$ac_prog"
31876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31885 P7ZIP=$ac_cv_prog_P7ZIP
31886 if test -n "$P7ZIP"; then
31887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
31888 $as_echo "$P7ZIP" >&6; }
31890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31891 $as_echo "no" >&6; }
31895 test -n "$P7ZIP" && break
31899 if test "x$P7ZIP" != "x" ; then
31900 P7ZIP_DELEGATE_TRUE=
31901 P7ZIP_DELEGATE_FALSE='#'
31903 P7ZIP_DELEGATE_TRUE='#'
31904 P7ZIP_DELEGATE_FALSE=
31909 # ZIP support (http://www.info-zip.org/Zip.html)
31914 # Extract the first word of "$ac_prog", so it can be a program name with args.
31915 set dummy $ac_prog; ac_word=$2
31916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31917 $as_echo_n "checking for $ac_word... " >&6; }
31918 if test "${ac_cv_prog_ZIP+set}" = set; then :
31919 $as_echo_n "(cached) " >&6
31921 if test -n "$ZIP"; then
31922 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31925 for as_dir in $PATH
31928 test -z "$as_dir" && as_dir=.
31929 for ac_exec_ext in '' $ac_executable_extensions; do
31930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31931 ac_cv_prog_ZIP="$ac_prog"
31932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31941 ZIP=$ac_cv_prog_ZIP
31942 if test -n "$ZIP"; then
31943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
31944 $as_echo "$ZIP" >&6; }
31946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31947 $as_echo "no" >&6; }
31951 test -n "$ZIP" && break
31955 if test "x$ZIP" != "x" ; then
31957 ZIP_DELEGATE_FALSE='#'
31959 ZIP_DELEGATE_TRUE='#'
31960 ZIP_DELEGATE_FALSE=
31965 # GhostPCL related configuration.
31967 PCLColorDevice=ppmraw
31968 PCLCMYKDevice=bmpsep8
31969 PCLMonoDevice=pbmraw
31970 if test -z "$PCLVersion"; then
31971 PCLVersion='unknown'
31973 if test $have_pcl = 'yes'; then
31974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31975 $as_echo "-------------------------------------------------------------" >&6; }
31976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
31977 $as_echo_n "checking for PCL... " >&6; }
31978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
31982 $as_echo_n "checking for pcl color device... " >&6; }
31983 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31986 PCLColorDevice=ppmraw
31988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
31989 $as_echo "$PCLColorDevice" >&6; }
31992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
31993 $as_echo_n "checking for pcl CMYK device... " >&6; }
31994 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31997 PCLCMYKDevice=$PCLColorDevice
31999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
32000 $as_echo "$PCLCMYKDevice" >&6; }
32003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
32004 $as_echo_n "checking for pcl mono device... " >&6; }
32005 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32008 PCLMonoDevice=$PCLColorDevice
32010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
32011 $as_echo "$PCLMonoDevice" >&6; }
32020 # GhostXPS related configuration.
32022 XPSColorDevice=ppmraw
32023 XPSCMYKDevice=bmpsep8
32024 XPSMonoDevice=pbmraw
32025 if test -z "$XPSVersion"; then
32026 XPSVersion='unknown'
32028 if test $have_xps = 'yes'; then
32029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32030 $as_echo "-------------------------------------------------------------" >&6; }
32031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
32032 $as_echo_n "checking for XPS... " >&6; }
32033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
32037 $as_echo_n "checking for xps color device... " >&6; }
32038 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32041 XPSColorDevice=ppmraw
32043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
32044 $as_echo "$XPSColorDevice" >&6; }
32047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
32048 $as_echo_n "checking for xps CMYK device... " >&6; }
32049 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32052 XPSCMYKDevice=$XPSColorDevice
32054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
32055 $as_echo "$XPSCMYKDevice" >&6; }
32058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
32059 $as_echo_n "checking for xps mono device... " >&6; }
32060 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32063 XPSMonoDevice=$XPSColorDevice
32065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
32066 $as_echo "$XPSMonoDevice" >&6; }
32075 # Ghostscript related configuration.
32077 if test "$have_png" = 'yes'; then
32078 GSAlphaDevice=pngalpha
32080 GSAlphaDevice=pnmraw
32082 GSColorDevice=pnmraw
32084 GSMonoDevice=pbmraw
32085 GSPDFDevice=pdfwrite
32087 GSEPSDevice=epswrite
32088 GSVersion='unknown'
32089 if test $have_gs = 'yes'; then
32090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32091 $as_echo "-------------------------------------------------------------" >&6; }
32092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
32093 $as_echo_n "checking for Ghostscript... " >&6; }
32094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
32097 $as_echo_n "checking for Ghostscript version... " >&6; }
32098 if GSVersion=`$PSDelegate --version`; then
32101 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
32104 $as_echo "$GSVersion" >&6; }
32107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
32108 $as_echo_n "checking for gs alpha device... " >&6; }
32109 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32112 GSAlphaDevice=pnmraw
32114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
32115 $as_echo "$GSAlphaDevice" >&6; }
32118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
32119 $as_echo_n "checking for gs color device... " >&6; }
32120 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32123 GSColorDevice=pnmraw
32125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
32126 $as_echo "$GSColorDevice" >&6; }
32129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
32130 $as_echo_n "checking for gs CMYK device... " >&6; }
32131 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32134 GSCMYKDevice=bmpsep8
32136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
32137 $as_echo "$GSCMYKDevice" >&6; }
32140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
32141 $as_echo_n "checking for gs mono device... " >&6; }
32142 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32145 GSMonoDevice=$GSColorDevice
32147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
32148 $as_echo "$GSMonoDevice" >&6; }
32151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
32152 $as_echo_n "checking for gs PDF writing device... " >&6; }
32153 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32156 GSPDFDevice=nodevice
32158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
32159 $as_echo "$GSPDFDevice" >&6; }
32162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
32163 $as_echo_n "checking for gs PS writing device... " >&6; }
32164 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32167 GSPSDevice=nodevice
32169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
32170 $as_echo "$GSPSDevice" >&6; }
32173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
32174 $as_echo_n "checking for gs EPS writing device... " >&6; }
32175 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32178 GSEPSDevice=nodevice
32180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
32181 $as_echo "$GSEPSDevice" >&6; }
32194 # PerlMagick-related configuration
32197 # Look for PERL if PerlMagick requested
32198 # If name/path of desired PERL interpreter is specified, look for that one first
32200 if test "$with_perl" != 'no'; then
32201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32202 $as_echo "-------------------------------------------------------------" >&6; }
32203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
32204 $as_echo_n "checking for Perl... " >&6; }
32205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32207 if test "$with_perl" != 'yes'; then
32208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
32209 $as_echo_n "checking for perl... " >&6; }
32210 if test "${ac_cv_path_PERL+set}" = set; then :
32211 $as_echo_n "(cached) " >&6
32213 ac_cv_path_PERL="$with_perl"
32215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
32216 $as_echo "$ac_cv_path_PERL" >&6; };
32217 PERL=$ac_cv_path_PERL
32218 have_perl="$ac_cv_path_PERL"
32220 for ac_prog in perl perl5
32222 # Extract the first word of "$ac_prog", so it can be a program name with args.
32223 set dummy $ac_prog; ac_word=$2
32224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32225 $as_echo_n "checking for $ac_word... " >&6; }
32226 if test "${ac_cv_path_PERL+set}" = set; then :
32227 $as_echo_n "(cached) " >&6
32231 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32235 for as_dir in $PATH
32238 test -z "$as_dir" && as_dir=.
32239 for ac_exec_ext in '' $ac_executable_extensions; do
32240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32241 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
32242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32252 PERL=$ac_cv_path_PERL
32253 if test -n "$PERL"; then
32254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
32255 $as_echo "$PERL" >&6; }
32257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32258 $as_echo "no" >&6; }
32262 test -n "$PERL" && break
32264 if test "$ac_cv_path_PERL"; then
32265 have_perl="$ac_cv_path_PERL"
32270 if test "$with_perl" != 'yes' ; then
32271 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32274 PERL_SUPPORTS_DESTDIR='no'
32276 with_perl_static='no'
32277 with_perl_dynamic='no'
32278 if test "$have_perl" != 'no'; then
32279 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32280 with_perl_static='yes'
32282 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32283 with_perl_dynamic='yes'
32285 # Is PERL's MakeMaker new enough to support DESTDIR?
32290 if test -n "$PERL"; then :
32292 ax_perl_version="5.8.1"
32294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32295 $as_echo_n "checking for perl version... " >&6; }
32297 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32300 $as_echo "$perl_version" >&6; }
32302 PERL_VERSION=$perl_version
32308 # Used to indicate true or false condition
32309 ax_compare_version=false
32311 # Convert the two version strings to be compared into a format that
32312 # allows a simple string comparison. The end result is that a version
32313 # string of the form 1.12.5-r617 will be converted to the form
32314 # 0001001200050617. In other words, each number is zero padded to four
32315 # digits, and non digits are removed.
32317 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32318 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32319 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32320 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32324 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32325 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32326 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32327 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32331 ax_compare_version=`echo "x$ax_compare_version_A
32332 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32336 if test "$ax_compare_version" = "true" ; then
32339 PERL_SUPPORTS_DESTDIR='yes'
32343 PERL_SUPPORTS_DESTDIR='no'
32350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32351 $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32352 PERL_SUPPORTS_DESTDIR='no'
32357 if test "$have_perl" != 'no'; then
32359 WITH_PERL_FALSE='#'
32365 if test $with_perl_static = 'yes'; then
32366 WITH_PERL_STATIC_TRUE=
32367 WITH_PERL_STATIC_FALSE='#'
32369 WITH_PERL_STATIC_TRUE='#'
32370 WITH_PERL_STATIC_FALSE=
32373 if test $with_perl_dynamic = 'yes'; then
32374 WITH_PERL_DYNAMIC_TRUE=
32375 WITH_PERL_DYNAMIC_FALSE='#'
32377 WITH_PERL_DYNAMIC_TRUE='#'
32378 WITH_PERL_DYNAMIC_FALSE=
32383 # Determine path to pick up MagickCore library from for use with building PerlMagick
32384 MAGICKCORE_PATH="${LIB_DIR}"
32385 if test $with_perl_static = 'yes'; then
32386 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32387 libtool_objdir=$objdir
32389 # Linker search path to library, followed by -lMagickCore
32390 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32394 # Create a simple string containing format names for all delegate libraries
32396 if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32397 if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32398 if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32399 if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32400 if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32401 if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32402 if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32403 if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32404 if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32405 if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32406 if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32407 if test "$have_jpeg" = 'yes'; then
32408 DELEGATES="$DELEGATES jpeg";
32409 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32411 if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
32412 if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
32413 if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32414 if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32415 if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32416 if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32417 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32418 if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32419 if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32420 if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32421 if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32422 if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32423 if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32428 # Handle special compiler flags
32431 # Add '-p' if prof source profiling support enabled
32432 if test "$enable_prof" = 'yes'; then
32433 CFLAGS="-p $CFLAGS"
32434 CXXFLAGS="-p $CXXFLAGS"
32435 LDFLAGS="-p $LDFLAGS"
32438 # Add '-pg' if gprof source profiling support enabled
32439 if test "$enable_gprof" = 'yes'; then
32440 CFLAGS="-pg $CFLAGS"
32441 CXXFLAGS="-pg $CXXFLAGS"
32442 LDFLAGS="-pg $LDFLAGS"
32445 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32446 # This is a gcc-specific feature
32447 if test "$enable_gcov" = 'yes'; then
32448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
32449 $as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
32450 if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
32451 $as_echo_n "(cached) " >&6
32453 ac_check_lib_save_LIBS=$LIBS
32454 LIBS="-lgcov $LIBS"
32455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32456 /* end confdefs.h. */
32458 /* Override any GCC internal prototype to avoid an error.
32459 Use char because int might match the return type of a GCC
32460 builtin and then its argument prototype would still apply. */
32464 char _gcov_init ();
32468 return _gcov_init ();
32473 if ac_fn_c_try_link "$LINENO"; then :
32474 ac_cv_lib_gcov__gcov_init=yes
32476 ac_cv_lib_gcov__gcov_init=no
32478 rm -f core conftest.err conftest.$ac_objext \
32479 conftest$ac_exeext conftest.$ac_ext
32480 LIBS=$ac_check_lib_save_LIBS
32482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
32483 $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
32484 if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
32485 cat >>confdefs.h <<_ACEOF
32486 #define HAVE_LIBGCOV 1
32489 LIBS="-lgcov $LIBS"
32493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
32494 $as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
32495 if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
32496 $as_echo_n "(cached) " >&6
32498 ac_check_lib_save_LIBS=$LIBS
32499 LIBS="-lgcov $LIBS"
32500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32501 /* end confdefs.h. */
32503 /* Override any GCC internal prototype to avoid an error.
32504 Use char because int might match the return type of a GCC
32505 builtin and then its argument prototype would still apply. */
32509 char __gcov_init ();
32513 return __gcov_init ();
32518 if ac_fn_c_try_link "$LINENO"; then :
32519 ac_cv_lib_gcov___gcov_init=yes
32521 ac_cv_lib_gcov___gcov_init=no
32523 rm -f core conftest.err conftest.$ac_objext \
32524 conftest$ac_exeext conftest.$ac_ext
32525 LIBS=$ac_check_lib_save_LIBS
32527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
32528 $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
32529 if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
32530 cat >>confdefs.h <<_ACEOF
32531 #define HAVE_LIBGCOV 1
32534 LIBS="-lgcov $LIBS"
32538 case "$target_os" in
32540 OSX_GCOV_LDFLAG="-Wl,-single_module"
32547 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32548 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32549 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32553 # Build library dependency list for libMagickCore
32556 MAGICK_LIBLTDL='' # Libltdl for build
32557 MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32558 MAGICK_LTDLDEPS='' # extra libltdl dependencies
32559 if test "$with_ltdl" != 'no'
32561 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32562 MAGICK_API_LIBLTDL='-lltdl'
32564 MAGICK_LIBLTDL=${LIBLTDL}
32565 MAGICK_LTDLDEPS=${LTDLDEPS}
32570 if test "$with_modules" != 'no'; then
32571 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 $BZLIB_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $CCMALLOC_LIBS $EFENCE_LIBS $UMEM_LIBS $GOMP_LIBS $CL_LIBS $THREAD_LIBS"
32573 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 $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_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"
32578 # Remove extraneous spaces from output variables (asthetic)
32580 X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32581 X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32582 X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32583 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32585 CC=`echo $CC | sed -e 's/ */ /g'`
32586 CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32587 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32588 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32589 DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32590 DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32591 LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32592 TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32593 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32594 #LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32596 # Pass only user-provided LIBS as "global" libraries
32599 #AC_SUBST(CPPFLAGS)
32602 #AC_SUBST(X_PRE_LIBS)
32604 #AC_SUBST(X_EXTRA_LIBS)
32606 MAGICK_CFLAGS=$CFLAGS
32607 MAGICK_CXXFLAGS="$CXXFLAGS"
32608 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32609 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32610 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32611 MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32621 # Set configured scripts to executable.
32622 ac_config_commands="$ac_config_commands default"
32624 ac_config_commands="$ac_config_commands MagickCore-config.in"
32626 ac_config_commands="$ac_config_commands Magick-config.in"
32628 ac_config_commands="$ac_config_commands MagickWand-config.in"
32630 ac_config_commands="$ac_config_commands Wand-config.in"
32632 ac_config_commands="$ac_config_commands Magick++-config.in"
32634 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32638 $as_echo "-------------------------------------------------------------" >&6; }
32639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
32640 $as_echo "Update ImageMagick configuration" >&6; }
32641 cat >confcache <<\_ACEOF
32642 # This file is a shell script that caches the results of configure
32643 # tests run on this system so they can be shared between configure
32644 # scripts and configure runs, see configure's option --config-cache.
32645 # It is not useful on other systems. If it contains results you don't
32646 # want to keep, you may remove or edit it.
32648 # config.status only pays attention to the cache file if you give it
32649 # the --recheck option to rerun configure.
32651 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32652 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32653 # following values.
32657 # The following way of writing the cache mishandles newlines in values,
32658 # but we know of no workaround that is simple, portable, and efficient.
32659 # So, we kill variables containing newlines.
32660 # Ultrix sh set writes to stderr and can't be redirected directly,
32661 # and sets the high bit in the cache file unless we assign to the vars.
32663 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32664 eval ac_val=\$$ac_var
32668 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32669 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32672 _ | IFS | as_nl) ;; #(
32673 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32674 *) { eval $ac_var=; unset $ac_var;} ;;
32680 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32681 *${as_nl}ac_space=\ *)
32682 # `set' does not quote correctly, so add quotes: double-quote
32683 # substitution turns \\\\ into \\, and sed turns \\ into \.
32686 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32689 # `set' quotes correctly as required by POSIX, so do not add quotes.
32690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32699 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32701 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32703 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32704 if test -w "$cache_file"; then
32705 test "x$cache_file" != "x/dev/null" &&
32706 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32707 $as_echo "$as_me: updating cache $cache_file" >&6;}
32708 cat confcache >$cache_file
32710 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32711 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32716 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32717 # Let make expand exec_prefix.
32718 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32720 DEFS=-DHAVE_CONFIG_H
32725 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32726 # 1. Remove the extension, and $U if already installed.
32727 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32728 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32729 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32730 # will be set to the directory where LIBOBJS objects are built.
32731 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32732 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32734 LIBOBJS=$ac_libobjs
32736 LTLIBOBJS=$ac_ltlibobjs
32739 if test -n "$EXEEXT"; then
32741 am__EXEEXT_FALSE='#'
32743 am__EXEEXT_TRUE='#'
32747 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32748 as_fn_error $? "conditional \"AMDEP\" was never defined.
32749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32751 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32752 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
32753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32755 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32756 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
32757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32759 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32760 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32763 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
32764 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
32765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32767 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
32768 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
32769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32771 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
32772 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
32773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32775 if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
32776 as_fn_error $? "conditional \"USING_CL\" was never defined.
32777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32779 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32780 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
32781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32783 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32784 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
32785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32787 LT_CONFIG_H=config/config.h
32791 if test -n "$_LT_LIBOBJS"; then
32792 # Remove the extension.
32793 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32794 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32795 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32796 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32799 ltdl_LIBOBJS=$_ltdl_libobjs
32801 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32804 if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
32805 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
32806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32808 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
32809 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
32810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32812 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
32813 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
32814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32816 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
32817 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
32818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32821 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32822 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32825 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
32826 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
32827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32829 if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
32830 as_fn_error $? "conditional \"HasUMEM\" was never defined.
32831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32833 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
32834 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
32835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32837 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
32838 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
32839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32841 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
32842 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
32843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32845 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
32846 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
32847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32849 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
32850 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
32851 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32853 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
32854 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
32855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32857 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
32858 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
32859 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32861 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
32862 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
32863 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32865 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
32866 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
32867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32869 if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
32870 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
32871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32873 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
32874 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
32875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32877 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
32878 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
32879 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32881 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
32882 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
32883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32885 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
32886 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
32887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32889 if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
32890 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
32891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32893 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
32894 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
32895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32897 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
32898 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
32899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32901 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
32902 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
32903 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32905 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
32906 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
32907 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32909 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
32910 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
32911 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32913 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
32914 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
32915 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32917 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
32918 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
32919 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32921 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
32922 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
32923 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32925 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
32926 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
32927 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32929 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
32930 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
32931 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32933 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
32934 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
32935 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32937 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
32938 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
32939 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32941 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
32942 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
32943 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32945 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
32946 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
32947 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32949 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
32950 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
32951 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32954 : ${CONFIG_STATUS=./config.status}
32956 ac_clean_files_save=$ac_clean_files
32957 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32958 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32959 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32961 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32963 # Generated by $as_me.
32964 # Run this file to recreate the current configuration.
32965 # Compiler output produced by configure, useful for debugging
32966 # configure, is in config.log if it exists.
32969 ac_cs_recheck=false
32972 SHELL=\${CONFIG_SHELL-$SHELL}
32975 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32976 ## -------------------- ##
32977 ## M4sh Initialization. ##
32978 ## -------------------- ##
32980 # Be more Bourne compatible
32981 DUALCASE=1; export DUALCASE # for MKS sh
32982 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32985 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32986 # is contrary to our usage. Disable this feature.
32987 alias -g '${1+"$@"}'='"$@"'
32988 setopt NO_GLOB_SUBST
32990 case `(set -o) 2>/dev/null` in #(
33002 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33003 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33004 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33005 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33006 # Prefer a ksh shell builtin over an external printf program on Solaris,
33007 # but without wasting forks for bash or zsh.
33008 if test -z "$BASH_VERSION$ZSH_VERSION" \
33009 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33010 as_echo='print -r --'
33011 as_echo_n='print -rn --'
33012 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33013 as_echo='printf %s\n'
33014 as_echo_n='printf %s'
33016 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33017 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33018 as_echo_n='/usr/ucb/echo -n'
33020 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33021 as_echo_n_body='eval
33025 expr "X$arg" : "X\\(.*\\)$as_nl";
33026 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33028 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33030 export as_echo_n_body
33031 as_echo_n='sh -c $as_echo_n_body as_echo'
33033 export as_echo_body
33034 as_echo='sh -c $as_echo_body as_echo'
33037 # The user is always right.
33038 if test "${PATH_SEPARATOR+set}" != set; then
33040 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33041 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33048 # We need space, tab and new line, in precisely that order. Quoting is
33049 # there to prevent editors from complaining about space-tab.
33050 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33051 # splitting by setting IFS to empty value.)
33054 # Find who we are. Look in the path if we contain no directory separator.
33056 *[\\/]* ) as_myself=$0 ;;
33057 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33058 for as_dir in $PATH
33061 test -z "$as_dir" && as_dir=.
33062 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33068 # We did not find ourselves, most probably we were run as `sh COMMAND'
33069 # in which case we are not to be found in the path.
33070 if test "x$as_myself" = x; then
33073 if test ! -f "$as_myself"; then
33074 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33078 # Unset variables that we do not need and which cause bugs (e.g. in
33079 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33080 # suppresses any "Segmentation fault" message there. '((' could
33081 # trigger a bug in pdksh 5.2.14.
33082 for as_var in BASH_ENV ENV MAIL MAILPATH
33083 do eval test x\${$as_var+set} = xset \
33084 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33097 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33100 # as_fn_error STATUS ERROR [LINENO LOG_FD]
33101 # ----------------------------------------
33102 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33103 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33104 # script with STATUS, using 1 if that was 0.
33107 as_status=$1; test $as_status -eq 0 && as_status=1
33109 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33110 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33112 $as_echo "$as_me: error: $2" >&2
33113 as_fn_exit $as_status
33117 # as_fn_set_status STATUS
33118 # -----------------------
33119 # Set $? to STATUS, without forking.
33120 as_fn_set_status ()
33123 } # as_fn_set_status
33125 # as_fn_exit STATUS
33126 # -----------------
33127 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33131 as_fn_set_status $1
33137 # Portably unset VAR.
33140 { eval $1=; unset $1;}
33142 as_unset=as_fn_unset
33143 # as_fn_append VAR VALUE
33144 # ----------------------
33145 # Append the text in VALUE to the end of the definition contained in VAR. Take
33146 # advantage of any shell optimizations that allow amortized linear growth over
33147 # repeated appends, instead of the typical quadratic growth present in naive
33149 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33150 eval 'as_fn_append ()
33161 # as_fn_arith ARG...
33162 # ------------------
33163 # Perform arithmetic evaluation on the ARGs, and store the result in the
33164 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33165 # must be portable across $(()) and expr.
33166 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33167 eval 'as_fn_arith ()
33174 as_val=`expr "$@" || test $? -eq 1`
33179 if expr a : '\(a\)' >/dev/null 2>&1 &&
33180 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33186 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33187 as_basename=basename
33192 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33198 as_me=`$as_basename -- "$0" ||
33199 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33200 X"$0" : 'X\(//\)$' \| \
33201 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33203 sed '/^.*\/\([^/][^/]*\)\/*$/{
33217 # Avoid depending upon Character Ranges.
33218 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33219 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33220 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33221 as_cr_digits='0123456789'
33222 as_cr_alnum=$as_cr_Letters$as_cr_digits
33224 ECHO_C= ECHO_N= ECHO_T=
33225 case `echo -n x` in #(((((
33227 case `echo 'xy\c'` in
33228 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33230 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33237 rm -f conf$$ conf$$.exe conf$$.file
33238 if test -d conf$$.dir; then
33239 rm -f conf$$.dir/conf$$.file
33242 mkdir conf$$.dir 2>/dev/null
33244 if (echo >conf$$.file) 2>/dev/null; then
33245 if ln -s conf$$.file conf$$ 2>/dev/null; then
33247 # ... but there are two gotchas:
33248 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33249 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33250 # In both cases, we have to default to `cp -p'.
33251 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33253 elif ln conf$$.file conf$$ 2>/dev/null; then
33261 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33262 rmdir conf$$.dir 2>/dev/null
33267 # Create "$as_dir" as a directory, including parents if necessary.
33272 -*) as_dir=./$as_dir;;
33274 test -d "$as_dir" || eval $as_mkdir_p || {
33278 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33279 *) as_qdir=$as_dir;;
33281 as_dirs="'$as_qdir' $as_dirs"
33282 as_dir=`$as_dirname -- "$as_dir" ||
33283 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33284 X"$as_dir" : 'X\(//\)[^/]' \| \
33285 X"$as_dir" : 'X\(//\)$' \| \
33286 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33287 $as_echo X"$as_dir" |
33288 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33292 /^X\(\/\/\)[^/].*/{
33305 test -d "$as_dir" && break
33307 test -z "$as_dirs" || eval "mkdir $as_dirs"
33308 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33312 if mkdir -p . 2>/dev/null; then
33313 as_mkdir_p='mkdir -p "$as_dir"'
33315 test -d ./-p && rmdir ./-p
33319 if test -x / >/dev/null 2>&1; then
33320 as_test_x='test -x'
33322 if ls -dL / >/dev/null 2>&1; then
33329 if test -d "$1"; then
33335 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
33336 ???[sx]*):;;*)false;;esac;fi
33340 as_executable_p=$as_test_x
33342 # Sed expression to map a string onto a valid CPP name.
33343 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33345 # Sed expression to map a string onto a valid variable name.
33346 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33350 ## ----------------------------------- ##
33351 ## Main body of $CONFIG_STATUS script. ##
33352 ## ----------------------------------- ##
33354 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33356 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33357 # Save the log message, to keep $0 and so on meaningful, and to
33358 # report actual input values of CONFIG_FILES etc. instead of their
33359 # values after options handling.
33361 This file was extended by ImageMagick $as_me 6.6.6, which was
33362 generated by GNU Autoconf 2.66. Invocation command line was
33364 CONFIG_FILES = $CONFIG_FILES
33365 CONFIG_HEADERS = $CONFIG_HEADERS
33366 CONFIG_LINKS = $CONFIG_LINKS
33367 CONFIG_COMMANDS = $CONFIG_COMMANDS
33370 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33375 case $ac_config_files in *"
33376 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33379 case $ac_config_headers in *"
33380 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33385 # Files that config.status was made for.
33386 config_files="$ac_config_files"
33387 config_headers="$ac_config_headers"
33388 config_commands="$ac_config_commands"
33392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33394 \`$as_me' instantiates files and other configuration actions
33395 from templates according to the current configuration. Unless the files
33396 and actions are specified as TAGs, all are instantiated by default.
33398 Usage: $0 [OPTION]... [TAG]...
33400 -h, --help print this help, then exit
33401 -V, --version print version number and configuration settings, then exit
33402 --config print configuration, then exit
33403 -q, --quiet, --silent
33404 do not print progress messages
33405 -d, --debug don't remove temporary files
33406 --recheck update $as_me by reconfiguring in the same conditions
33407 --file=FILE[:TEMPLATE]
33408 instantiate the configuration file FILE
33409 --header=FILE[:TEMPLATE]
33410 instantiate the configuration header FILE
33412 Configuration files:
33415 Configuration headers:
33418 Configuration commands:
33421 Report bugs to <http://www.imagemagick.org>."
33424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33425 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33427 ImageMagick config.status 6.6.6
33428 configured by $0, generated by GNU Autoconf 2.66,
33429 with options \\"\$ac_cs_config\\"
33431 Copyright (C) 2010 Free Software Foundation, Inc.
33432 This config.status script is free software; the Free Software Foundation
33433 gives unlimited permission to copy, distribute and modify it."
33440 test -n "\$AWK" || AWK=awk
33443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33444 # The default lists apply if the user does not specify any file.
33450 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33451 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33462 # Handling of the options.
33463 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33465 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33466 $as_echo "$ac_cs_version"; exit ;;
33467 --config | --confi | --conf | --con | --co | --c )
33468 $as_echo "$ac_cs_config"; exit ;;
33469 --debug | --debu | --deb | --de | --d | -d )
33471 --file | --fil | --fi | --f )
33474 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33476 as_fn_append CONFIG_FILES " '$ac_optarg'"
33477 ac_need_defaults=false;;
33478 --header | --heade | --head | --hea )
33481 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33483 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33484 ac_need_defaults=false;;
33486 # Conflict between --help and --header
33487 as_fn_error $? "ambiguous option: \`$1'
33488 Try \`$0 --help' for more information.";;
33489 --help | --hel | -h )
33490 $as_echo "$ac_cs_usage"; exit ;;
33491 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33492 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33495 # This is an error.
33496 -*) as_fn_error $? "unrecognized option: \`$1'
33497 Try \`$0 --help' for more information." ;;
33499 *) as_fn_append ac_config_targets " $1"
33500 ac_need_defaults=false ;;
33506 ac_configure_extra_args=
33508 if $ac_cs_silent; then
33510 ac_configure_extra_args="$ac_configure_extra_args --silent"
33514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33515 if \$ac_cs_recheck; then
33516 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33518 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33519 CONFIG_SHELL='$SHELL'
33520 export CONFIG_SHELL
33525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33529 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33530 ## Running $as_me. ##
33536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33541 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33544 # The HP-UX ksh and POSIX shell print the target directory to stdout
33545 # if CDPATH is set.
33546 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33548 sed_quote_subst='$sed_quote_subst'
33549 double_quote_subst='$double_quote_subst'
33550 delay_variable_subst='$delay_variable_subst'
33551 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33552 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33553 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33554 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33555 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33556 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33557 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33558 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33559 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33560 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33561 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33562 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33563 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33564 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33565 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33566 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33567 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33568 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33569 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33570 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33571 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33572 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33573 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33574 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33575 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33576 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33577 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33578 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33579 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33580 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33581 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33582 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33583 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33584 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33585 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33586 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33587 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33588 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33589 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33590 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33591 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33592 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
33593 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
33594 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
33595 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
33596 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
33597 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
33598 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
33599 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33600 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33601 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"`'
33602 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33603 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33604 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33605 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33606 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33607 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33608 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33609 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33610 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33611 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33612 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33613 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
33614 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
33615 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
33616 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
33617 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33618 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
33619 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
33620 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
33621 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
33622 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
33623 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
33624 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33625 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
33626 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33627 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
33628 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33629 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
33630 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
33631 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
33632 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
33633 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
33634 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
33635 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
33636 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
33637 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
33638 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
33639 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33640 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33641 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33642 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
33643 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33644 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33645 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33646 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33647 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33648 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33649 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33650 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33651 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
33652 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
33653 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
33654 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
33655 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
33656 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
33657 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
33658 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
33659 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
33660 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33661 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33662 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
33663 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
33664 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
33665 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
33666 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
33667 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
33668 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
33669 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
33670 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
33671 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
33672 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
33673 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
33674 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
33675 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
33676 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
33677 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
33678 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
33679 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
33680 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
33681 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33682 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33683 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
33684 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
33685 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
33686 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
33687 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
33688 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
33689 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
33690 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
33691 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
33692 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33693 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33694 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
33695 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33696 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33697 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33698 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33699 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33700 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33701 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
33702 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33703 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33704 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33705 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
33706 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
33707 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
33708 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
33709 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
33710 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
33711 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
33712 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
33713 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
33714 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
33715 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
33716 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33717 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33718 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33719 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33720 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
33721 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
33722 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
33723 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33724 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33725 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
33726 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
33727 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
33730 LTCFLAGS='$LTCFLAGS'
33731 compiler='$compiler_DEFAULT'
33733 # A function that is used when there is no print builtin or printf.
33734 func_fallback_echo ()
33736 eval 'cat <<_LTECHO_EOF
33741 # Quote evaled strings.
33757 deplibs_check_method \
33766 lt_cv_sys_global_symbol_pipe \
33767 lt_cv_sys_global_symbol_to_cdecl \
33768 lt_cv_sys_global_symbol_to_c_name_address \
33769 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33770 lt_prog_compiler_no_builtin_flag \
33771 lt_prog_compiler_wl \
33772 lt_prog_compiler_pic \
33773 lt_prog_compiler_static \
33774 lt_cv_prog_compiler_c_o \
33782 export_dynamic_flag_spec \
33783 whole_archive_flag_spec \
33784 compiler_needs_object \
33786 allow_undefined_flag \
33787 no_undefined_flag \
33788 hardcode_libdir_flag_spec \
33789 hardcode_libdir_flag_spec_ld \
33790 hardcode_libdir_separator \
33795 variables_saved_for_relink \
33797 library_names_spec \
33799 install_override_mode \
33803 compiler_lib_search_dirs \
33808 compiler_lib_search_path \
33812 lt_prog_compiler_no_builtin_flag_CXX \
33813 lt_prog_compiler_wl_CXX \
33814 lt_prog_compiler_pic_CXX \
33815 lt_prog_compiler_static_CXX \
33816 lt_cv_prog_compiler_c_o_CXX \
33817 export_dynamic_flag_spec_CXX \
33818 whole_archive_flag_spec_CXX \
33819 compiler_needs_object_CXX \
33821 allow_undefined_flag_CXX \
33822 no_undefined_flag_CXX \
33823 hardcode_libdir_flag_spec_CXX \
33824 hardcode_libdir_flag_spec_ld_CXX \
33825 hardcode_libdir_separator_CXX \
33826 fix_srcfile_path_CXX \
33827 exclude_expsyms_CXX \
33828 include_expsyms_CXX \
33829 file_list_spec_CXX \
33830 compiler_lib_search_dirs_CXX \
33831 predep_objects_CXX \
33832 postdep_objects_CXX \
33835 compiler_lib_search_path_CXX; do
33836 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33837 *[\\\\\\\`\\"\\\$]*)
33838 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
33841 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33846 # Double-quote double-evaled strings.
33847 for var in reload_cmds \
33848 old_postinstall_cmds \
33849 old_postuninstall_cmds \
33851 extract_expsyms_cmds \
33852 old_archive_from_new_cmds \
33853 old_archive_from_expsyms_cmds \
33855 archive_expsym_cmds \
33857 module_expsym_cmds \
33858 export_symbols_cmds \
33861 postuninstall_cmds \
33863 sys_lib_search_path_spec \
33864 sys_lib_dlsearch_path_spec \
33866 old_archive_cmds_CXX \
33867 old_archive_from_new_cmds_CXX \
33868 old_archive_from_expsyms_cmds_CXX \
33870 archive_expsym_cmds_CXX \
33872 module_expsym_cmds_CXX \
33873 export_symbols_cmds_CXX \
33874 prelink_cmds_CXX; do
33875 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33876 *[\\\\\\\`\\"\\\$]*)
33877 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
33880 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33885 ac_aux_dir='$ac_aux_dir'
33886 xsi_shell='$xsi_shell'
33887 lt_shell_append='$lt_shell_append'
33889 # See if we are running on zsh, and set the options which allow our
33890 # commands through without removal of \ escapes INIT.
33891 if test -n "\${ZSH_VERSION+set}" ; then
33892 setopt NO_GLOB_SUBST
33898 TIMESTAMP='$TIMESTAMP'
33909 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33911 # Handling of arguments.
33912 for ac_config_target in $ac_config_targets
33914 case $ac_config_target in
33915 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33916 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33917 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33918 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33919 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33920 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33921 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
33922 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
33923 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33924 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33925 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33926 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33927 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33928 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33929 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33930 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33931 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33932 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33933 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33934 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33935 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33936 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33937 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33938 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33939 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33940 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33941 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33942 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33943 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33944 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33945 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33946 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33947 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33948 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33949 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33950 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33951 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33952 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33953 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33954 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33955 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33956 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33957 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33958 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33959 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33960 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33961 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33962 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33963 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33964 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33966 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33971 # If the user did not use the arguments to specify the items to instantiate,
33972 # then the envvar interface is used. Set only those that are not.
33973 # We use the long form for the default assignment because of an extremely
33974 # bizarre bug on SunOS 4.1.3.
33975 if $ac_need_defaults; then
33976 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33977 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33978 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33981 # Have a temporary directory for convenience. Make it in the build tree
33982 # simply because there is no reason against having it here, and in addition,
33983 # creating and moving files from /tmp can sometimes cause problems.
33984 # Hook for its removal unless debugging.
33985 # Note that there is a small window in which the directory will not be cleaned:
33986 # after its creation but before its name has been assigned to `$tmp'.
33990 trap 'exit_status=$?
33991 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33993 trap 'as_fn_exit 1' 1 2 13 15
33995 # Create a (secure) tmp directory for tmp files.
33998 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33999 test -n "$tmp" && test -d "$tmp"
34002 tmp=./conf$$-$RANDOM
34003 (umask 077 && mkdir "$tmp")
34004 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
34006 # Set up the scripts for CONFIG_FILES section.
34007 # No need to generate them if there are no CONFIG_FILES.
34008 # This happens for instance with `./config.status config.h'.
34009 if test -n "$CONFIG_FILES"; then
34012 ac_cr=`echo X | tr X '\015'`
34013 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34014 # But we know of no other shell where ac_cr would be empty at this
34015 # point, so we can use a bashism as a fallback.
34016 if test "x$ac_cr" = x; then
34017 eval ac_cr=\$\'\\r\'
34019 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34020 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34023 ac_cs_awk_cr=$ac_cr
34026 echo 'BEGIN {' >"$tmp/subs1.awk" &&
34031 echo "cat >conf$$subs.awk <<_ACEOF" &&
34032 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34034 } >conf$$subs.sh ||
34035 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34036 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34038 for ac_last_try in false false false false false :; do
34039 . ./conf$$subs.sh ||
34040 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34042 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34043 if test $ac_delim_n = $ac_delim_num; then
34045 elif $ac_last_try; then
34046 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
34048 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34051 rm -f conf$$subs.sh
34053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34054 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34058 s/^/S["/; s/!.*/"]=/
34068 s/\(.\{148\}\)..*/\1/
34070 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34075 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34082 s/\(.\{148\}\)..*/\1/
34084 s/["\\]/\\&/g; s/^/"/; s/$/"/
34088 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34093 ' <conf$$subs.awk | sed '
34098 ' >>$CONFIG_STATUS || ac_write_fail=1
34099 rm -f conf$$subs.awk
34100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34102 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34103 for (key in S) S_is_set[key] = 1
34109 nfields = split(line, field, "@")
34111 len = length(field[1])
34112 for (i = 2; i < nfields; i++) {
34114 keylen = length(key)
34115 if (S_is_set[key]) {
34117 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34118 len += length(value) + length(field[++i])
34129 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34130 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34131 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34134 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
34135 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34138 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34139 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34140 # trailing colons and then remove the whole line if VPATH becomes empty
34141 # (actually we leave an empty line to preserve line numbers).
34142 if test "x$srcdir" = x.; then
34143 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34162 fi # test -n "$CONFIG_FILES"
34164 # Set up the scripts for CONFIG_HEADERS section.
34165 # No need to generate them if there are no CONFIG_HEADERS.
34166 # This happens for instance with `./config.status Makefile'.
34167 if test -n "$CONFIG_HEADERS"; then
34168 cat >"$tmp/defines.awk" <<\_ACAWK ||
34172 # Transform confdefs.h into an awk script `defines.awk', embedded as
34173 # here-document in config.status, that substitutes the proper values into
34174 # config.h.in to produce config.h.
34176 # Create a delimiter string that does not exist in confdefs.h, to ease
34177 # handling of long lines.
34179 for ac_last_try in false false :; do
34180 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34181 if test -z "$ac_t"; then
34183 elif $ac_last_try; then
34184 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34186 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34190 # For the awk script, D is an array of macro values keyed by name,
34191 # likewise P contains macro parameters if any. Preserve backslash
34192 # newline sequences.
34194 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34196 s/.\{148\}/&'"$ac_delim"'/g
34199 s/^[ ]*#[ ]*define[ ][ ]*/ /
34206 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34208 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34212 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34213 D["\1"]=" \3\\\\\\n"\\/p
34215 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34220 s/.\{148\}/&'"$ac_delim"'/g
34225 s/["\\]/\\&/g; s/^/"/; s/$/"/p
34228 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34230 ' <confdefs.h | sed '
34231 s/'"$ac_delim"'/"\\\
34232 "/g' >>$CONFIG_STATUS || ac_write_fail=1
34234 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34235 for (key in D) D_is_set[key] = 1
34238 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34240 split(line, arg, " ")
34241 if (arg[1] == "#") {
34245 defundef = substr(arg[1], 2)
34248 split(mac1, mac2, "(") #)
34250 prefix = substr(line, 1, index(line, defundef) - 1)
34251 if (D_is_set[macro]) {
34252 # Preserve the white space surrounding the "#".
34253 print prefix "define", macro P[macro] D[macro]
34256 # Replace #undef with comments. This is necessary, for example,
34257 # in the case of _POSIX_SOURCE, which is predefined and required
34258 # on some systems where configure will not decide to define it.
34259 if (defundef == "undef") {
34260 print "/*", prefix defundef, macro, "*/"
34268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34269 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
34270 fi # test -n "$CONFIG_HEADERS"
34273 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34278 :[FHLC]) ac_mode=$ac_tag; continue;;
34280 case $ac_mode$ac_tag in
34282 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
34283 :[FH]-) ac_tag=-:-;;
34284 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34301 -) ac_f="$tmp/stdin";;
34302 *) # Look for the file first in the build tree, then in the source tree
34303 # (if the path is not absolute). The absolute path cannot be DOS-style,
34304 # because $ac_f cannot contain `:'.
34308 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34310 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34312 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34313 as_fn_append ac_file_inputs " '$ac_f'"
34316 # Let's still pretend it is `configure' which instantiates (i.e., don't
34317 # use $as_me), people would be surprised to read:
34318 # /* config.h. Generated by config.status. */
34319 configure_input='Generated from '`
34320 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34322 if test x"$ac_file" != x-; then
34323 configure_input="$ac_file. $configure_input"
34324 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34325 $as_echo "$as_me: creating $ac_file" >&6;}
34327 # Neutralize special characters interpreted by sed in replacement strings.
34328 case $configure_input in #(
34329 *\&* | *\|* | *\\* )
34330 ac_sed_conf_input=`$as_echo "$configure_input" |
34331 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34332 *) ac_sed_conf_input=$configure_input;;
34336 *:-:* | *:-) cat >"$tmp/stdin" \
34337 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34342 ac_dir=`$as_dirname -- "$ac_file" ||
34343 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34344 X"$ac_file" : 'X\(//\)[^/]' \| \
34345 X"$ac_file" : 'X\(//\)$' \| \
34346 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34347 $as_echo X"$ac_file" |
34348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34352 /^X\(\/\/\)[^/].*/{
34365 as_dir="$ac_dir"; as_fn_mkdir_p
34369 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34371 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34372 # A ".." for each directory in $ac_dir_suffix.
34373 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34374 case $ac_top_builddir_sub in
34375 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34376 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34379 ac_abs_top_builddir=$ac_pwd
34380 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34381 # for backward compatibility:
34382 ac_top_builddir=$ac_top_build_prefix
34385 .) # We are building in place.
34387 ac_top_srcdir=$ac_top_builddir_sub
34388 ac_abs_top_srcdir=$ac_pwd ;;
34389 [\\/]* | ?:[\\/]* ) # Absolute name.
34390 ac_srcdir=$srcdir$ac_dir_suffix;
34391 ac_top_srcdir=$srcdir
34392 ac_abs_top_srcdir=$srcdir ;;
34393 *) # Relative name.
34394 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34395 ac_top_srcdir=$ac_top_build_prefix$srcdir
34396 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34398 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34408 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34409 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34411 ac_MKDIR_P=$MKDIR_P
34413 [\\/$]* | ?:[\\/]* ) ;;
34414 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34419 # If the template does not know about datarootdir, expand it.
34420 # FIXME: This hack should be removed a few years after 2.60.
34421 ac_datarootdir_hack=; ac_datarootdir_seen=
34432 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34433 *datarootdir*) ac_datarootdir_seen=yes;;
34434 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34436 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34439 ac_datarootdir_hack='
34440 s&@datadir@&$datadir&g
34441 s&@docdir@&$docdir&g
34442 s&@infodir@&$infodir&g
34443 s&@localedir@&$localedir&g
34444 s&@mandir@&$mandir&g
34445 s&\\\${datarootdir}&$datarootdir&g' ;;
34449 # Neutralize VPATH when `$srcdir' = `.'.
34450 # Shell code in configure.ac might set extrasub.
34451 # FIXME: do we really want to maintain this feature?
34452 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34453 ac_sed_extra="$ac_vpsub
34456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34458 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34459 s|@configure_input@|$ac_sed_conf_input|;t t
34460 s&@top_builddir@&$ac_top_builddir_sub&;t t
34461 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34462 s&@srcdir@&$ac_srcdir&;t t
34463 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34464 s&@top_srcdir@&$ac_top_srcdir&;t t
34465 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34466 s&@builddir@&$ac_builddir&;t t
34467 s&@abs_builddir@&$ac_abs_builddir&;t t
34468 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34469 s&@INSTALL@&$ac_INSTALL&;t t
34470 s&@MKDIR_P@&$ac_MKDIR_P&;t t
34471 $ac_datarootdir_hack
34473 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
34474 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34476 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34477 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34478 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34480 which seems to be undefined. Please make sure it is defined" >&5
34481 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34482 which seems to be undefined. Please make sure it is defined" >&2;}
34486 -) cat "$tmp/out" && rm -f "$tmp/out";;
34487 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34489 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34495 if test x"$ac_file" != x-; then
34497 $as_echo "/* $configure_input */" \
34498 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34499 } >"$tmp/config.h" \
34500 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34501 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
34502 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34503 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34506 mv "$tmp/config.h" "$ac_file" \
34507 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34510 $as_echo "/* $configure_input */" \
34511 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
34512 || as_fn_error $? "could not create -" "$LINENO" 5
34514 # Compute "$ac_file"'s index in $config_headers.
34517 for _am_header in $config_headers :; do
34518 case $_am_header in
34519 $_am_arg | $_am_arg:* )
34522 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34525 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34526 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34527 X"$_am_arg" : 'X\(//\)[^/]' \| \
34528 X"$_am_arg" : 'X\(//\)$' \| \
34529 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34530 $as_echo X"$_am_arg" |
34531 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34535 /^X\(\/\/\)[^/].*/{
34547 s/.*/./; q'`/stamp-h$_am_stamp_count
34550 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34551 $as_echo "$as_me: executing $ac_file commands" >&6;}
34556 case $ac_file$ac_mode in
34557 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34558 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34559 ac_prefix_conf_PKG=`echo MagickCore`
34560 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34561 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34562 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34563 if test ".$ac_prefix_conf_INP" = "."; then
34564 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34566 *.h) ac_prefix_conf_INP=$ac_file ;;
34569 test ".$ac_prefix_conf_INP" != "." && break
34572 if test ".$ac_prefix_conf_INP" = "."; then
34573 case "$ac_prefix_conf_OUT" in
34574 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34576 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34578 *) ac_prefix_conf_INP=config.h
34582 if test -z "$ac_prefix_conf_PKG" ; then
34583 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
34585 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34586 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34588 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
34589 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34590 if test -f $ac_prefix_conf_INP ; then
34591 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34592 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
34593 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34594 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
34595 $as_echo "#endif/" >> conftest.prefix
34596 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34597 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
34598 $as_echo "#endif/" >> conftest.prefix
34599 # now executing _script on _DEF input to create _OUT output file
34600 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34601 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34602 echo ' ' >>$tmp/pconfig.h
34603 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34605 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34606 echo ' ' >>$tmp/pconfig.h
34607 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34608 echo "#endif" >>$tmp/pconfig.h
34609 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
34610 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
34611 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34613 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34614 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34615 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34616 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34617 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34618 $as_echo X"$ac_prefix_conf_OUT" |
34619 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34623 /^X\(\/\/\)[^/].*/{
34636 as_dir="$ac_dir"; as_fn_mkdir_p
34637 rm -f "$ac_prefix_conf_OUT"
34638 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34640 cp conftest.prefix _configs.sed
34642 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
34647 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34648 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34649 # are listed without --file. Let's play safe and only enable the eval
34650 # if we detect the quoting.
34651 case $CONFIG_FILES in
34652 *\'*) eval set x "$CONFIG_FILES" ;;
34653 *) set x $CONFIG_FILES ;;
34658 # Strip MF so we end up with the name of the file.
34659 mf=`echo "$mf" | sed -e 's/:.*$//'`
34660 # Check whether this is an Automake generated Makefile or not.
34661 # We used to match only the files named `Makefile.in', but
34662 # some people rename them; so instead we look at the file content.
34663 # Grep'ing the first line is not enough: some people post-process
34664 # each Makefile.in and add a new line on top of each file to say so.
34665 # Grep'ing the whole file is not good either: AIX grep has a line
34666 # limit of 2048, but all sed's we know have understand at least 4000.
34667 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34668 dirpart=`$as_dirname -- "$mf" ||
34669 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34670 X"$mf" : 'X\(//\)[^/]' \| \
34671 X"$mf" : 'X\(//\)$' \| \
34672 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34678 /^X\(\/\/\)[^/].*/{
34694 # Extract the definition of DEPDIR, am__include, and am__quote
34695 # from the Makefile without running `make'.
34696 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34697 test -z "$DEPDIR" && continue
34698 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34699 test -z "am__include" && continue
34700 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34701 # When using ansi2knr, U may be empty or an underscore; expand it
34702 U=`sed -n 's/^U = //p' < "$mf"`
34703 # Find all dependency output files, they are included files with
34704 # $(DEPDIR) in their names. We invoke sed twice because it is the
34705 # simplest approach to changing $(DEPDIR) to its actual value in the
34707 for file in `sed -n "
34708 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34709 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34710 # Make sure the directory exists.
34711 test -f "$dirpart/$file" && continue
34712 fdir=`$as_dirname -- "$file" ||
34713 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34714 X"$file" : 'X\(//\)[^/]' \| \
34715 X"$file" : 'X\(//\)$' \| \
34716 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34717 $as_echo X"$file" |
34718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34722 /^X\(\/\/\)[^/].*/{
34735 as_dir=$dirpart/$fdir; as_fn_mkdir_p
34736 # echo "creating $dirpart/$file"
34737 echo '# dummy' > "$dirpart/$file"
34744 # See if we are running on zsh, and set the options which allow our
34745 # commands through without removal of \ escapes.
34746 if test -n "${ZSH_VERSION+set}" ; then
34747 setopt NO_GLOB_SUBST
34750 cfgfile="${ofile}T"
34751 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34754 cat <<_LT_EOF >> "$cfgfile"
34757 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34758 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34759 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34760 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
34762 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34763 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
34765 # Written by Gordon Matzigkeit, 1996
34767 # This file is part of GNU Libtool.
34769 # GNU Libtool is free software; you can redistribute it and/or
34770 # modify it under the terms of the GNU General Public License as
34771 # published by the Free Software Foundation; either version 2 of
34772 # the License, or (at your option) any later version.
34774 # As a special exception to the GNU General Public License,
34775 # if you distribute this file as part of a program or library that
34776 # is built using GNU Libtool, you may include this file under the
34777 # same distribution terms that you use for the rest of that program.
34779 # GNU Libtool is distributed in the hope that it will be useful,
34780 # but WITHOUT ANY WARRANTY; without even the implied warranty of
34781 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34782 # GNU General Public License for more details.
34784 # You should have received a copy of the GNU General Public License
34785 # along with GNU Libtool; see the file COPYING. If not, a copy
34786 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34787 # obtained by writing to the Free Software Foundation, Inc.,
34788 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34791 # The names of the tagged configurations supported by this script.
34792 available_tags="CXX "
34794 # ### BEGIN LIBTOOL CONFIG
34796 # A sed program that does not truncate output.
34799 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
34800 Xsed="\$SED -e 1s/^X//"
34802 # A grep program that handles long lines.
34808 # A literal string matcher.
34811 # Shell to use when invoking shell scripts.
34814 # An echo program that protects backslashes.
34817 # Which release of libtool.m4 was used?
34818 macro_version=$macro_version
34819 macro_revision=$macro_revision
34821 # Assembler program.
34824 # DLL creation program.
34825 DLLTOOL=$lt_DLLTOOL
34827 # Object dumper program.
34828 OBJDUMP=$lt_OBJDUMP
34830 # Whether or not to build shared libraries.
34831 build_libtool_libs=$enable_shared
34833 # Whether or not to build static libraries.
34834 build_old_libs=$enable_static
34836 # What type of objects to build.
34839 # Whether or not to optimize for fast installation.
34840 fast_install=$enable_fast_install
34843 host_alias=$host_alias
34847 # The build system.
34848 build_alias=$build_alias
34852 # A BSD- or MS-compatible name lister.
34855 # Whether we need soft or hard links.
34858 # What is the maximum length of a command?
34859 max_cmd_len=$max_cmd_len
34861 # Object file suffix (normally "o").
34864 # Executable file suffix (normally "").
34867 # whether the shell understands "unset".
34870 # turn spaces into newlines.
34873 # turn newlines into spaces.
34876 # Method to check whether dependent libraries are shared objects.
34877 deplibs_check_method=$lt_deplibs_check_method
34879 # Command to use when deplibs_check_method == "file_magic".
34880 file_magic_cmd=$lt_file_magic_cmd
34884 AR_FLAGS=$lt_AR_FLAGS
34886 # A symbol stripping program.
34889 # Commands used to install an old-style archive.
34891 old_postinstall_cmds=$lt_old_postinstall_cmds
34892 old_postuninstall_cmds=$lt_old_postuninstall_cmds
34894 # Whether to use a lock for old archive extraction.
34895 lock_old_archive_extraction=$lock_old_archive_extraction
34900 # LTCC compiler flags.
34901 LTCFLAGS=$lt_CFLAGS
34903 # Take the output of nm and produce a listing of raw symbols and C names.
34904 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34906 # Transform the output of nm in a proper C declaration.
34907 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34909 # Transform the output of nm in a C name address pair.
34910 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34912 # Transform the output of nm in a C name address pair when lib prefix is needed.
34913 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34915 # The name of the directory that contains temporary libtool files.
34918 # Used to examine libraries when file_magic_cmd begins with "file".
34919 MAGIC_CMD=$MAGIC_CMD
34921 # Must we lock files when doing compilation?
34922 need_locks=$lt_need_locks
34924 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34925 DSYMUTIL=$lt_DSYMUTIL
34927 # Tool to change global to local symbols on Mac OS X.
34930 # Tool to manipulate fat objects and archives on Mac OS X.
34933 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
34936 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34937 OTOOL64=$lt_OTOOL64
34939 # Old archive suffix (normally "a").
34942 # Shared library suffix (normally ".so").
34943 shrext_cmds=$lt_shrext_cmds
34945 # The commands to extract the exported symbol list from a shared archive.
34946 extract_expsyms_cmds=$lt_extract_expsyms_cmds
34948 # Variables whose values should be saved in libtool wrapper scripts and
34949 # restored at link time.
34950 variables_saved_for_relink=$lt_variables_saved_for_relink
34952 # Do we need the "lib" prefix for modules?
34953 need_lib_prefix=$need_lib_prefix
34955 # Do we need a version for libraries?
34956 need_version=$need_version
34958 # Library versioning type.
34959 version_type=$version_type
34961 # Shared library runtime path variable.
34962 runpath_var=$runpath_var
34964 # Shared library path variable.
34965 shlibpath_var=$shlibpath_var
34967 # Is shlibpath searched before the hard-coded library search path?
34968 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34970 # Format of library name prefix.
34971 libname_spec=$lt_libname_spec
34973 # List of archive names. First name is the real one, the rest are links.
34974 # The last name is the one that the linker finds with -lNAME
34975 library_names_spec=$lt_library_names_spec
34977 # The coded name of the library, if different from the real name.
34978 soname_spec=$lt_soname_spec
34980 # Permission mode override for installation of shared libraries.
34981 install_override_mode=$lt_install_override_mode
34983 # Command to use after installation of a shared archive.
34984 postinstall_cmds=$lt_postinstall_cmds
34986 # Command to use after uninstallation of a shared archive.
34987 postuninstall_cmds=$lt_postuninstall_cmds
34989 # Commands used to finish a libtool library installation in a directory.
34990 finish_cmds=$lt_finish_cmds
34992 # As "finish_cmds", except a single script fragment to be evaled but
34994 finish_eval=$lt_finish_eval
34996 # Whether we should hardcode library paths into libraries.
34997 hardcode_into_libs=$hardcode_into_libs
34999 # Compile-time system search path for libraries.
35000 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35002 # Run-time system search path for libraries.
35003 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35005 # Whether dlopen is supported.
35006 dlopen_support=$enable_dlopen
35008 # Whether dlopen of programs is supported.
35009 dlopen_self=$enable_dlopen_self
35011 # Whether dlopen of statically linked programs is supported.
35012 dlopen_self_static=$enable_dlopen_self_static
35014 # Commands to strip libraries.
35015 old_striplib=$lt_old_striplib
35016 striplib=$lt_striplib
35019 # The linker used to build libraries.
35022 # How to create reloadable object files.
35023 reload_flag=$lt_reload_flag
35024 reload_cmds=$lt_reload_cmds
35026 # Commands used to build an old-style archive.
35027 old_archive_cmds=$lt_old_archive_cmds
35029 # A language specific compiler.
35032 # Is the compiler the GNU compiler?
35035 # Compiler flag to turn off builtin functions.
35036 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35038 # How to pass a linker flag through the compiler.
35039 wl=$lt_lt_prog_compiler_wl
35041 # Additional compiler flags for building library objects.
35042 pic_flag=$lt_lt_prog_compiler_pic
35044 # Compiler flag to prevent dynamic linking.
35045 link_static_flag=$lt_lt_prog_compiler_static
35047 # Does compiler simultaneously support -c and -o options?
35048 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35050 # Whether or not to add -lc for building shared libraries.
35051 build_libtool_need_lc=$archive_cmds_need_lc
35053 # Whether or not to disallow shared libs when runtime libs are static.
35054 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35056 # Compiler flag to allow reflexive dlopens.
35057 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35059 # Compiler flag to generate shared objects directly from archives.
35060 whole_archive_flag_spec=$lt_whole_archive_flag_spec
35062 # Whether the compiler copes with passing no objects directly.
35063 compiler_needs_object=$lt_compiler_needs_object
35065 # Create an old-style archive from a shared archive.
35066 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35068 # Create a temporary old-style archive to link instead of a shared archive.
35069 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35071 # Commands used to build a shared archive.
35072 archive_cmds=$lt_archive_cmds
35073 archive_expsym_cmds=$lt_archive_expsym_cmds
35075 # Commands used to build a loadable module if different from building
35076 # a shared archive.
35077 module_cmds=$lt_module_cmds
35078 module_expsym_cmds=$lt_module_expsym_cmds
35080 # Whether we are building with GNU ld or not.
35081 with_gnu_ld=$lt_with_gnu_ld
35083 # Flag that allows shared libraries with undefined symbols to be built.
35084 allow_undefined_flag=$lt_allow_undefined_flag
35086 # Flag that enforces no undefined symbols.
35087 no_undefined_flag=$lt_no_undefined_flag
35089 # Flag to hardcode \$libdir into a binary during linking.
35090 # This must work even if \$libdir does not exist
35091 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35093 # If ld is used when linking, flag to hardcode \$libdir into a binary
35094 # during linking. This must work even if \$libdir does not exist.
35095 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35097 # Whether we need a single "-rpath" flag with a separated argument.
35098 hardcode_libdir_separator=$lt_hardcode_libdir_separator
35100 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35101 # DIR into the resulting binary.
35102 hardcode_direct=$hardcode_direct
35104 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35105 # DIR into the resulting binary and the resulting library dependency is
35106 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35107 # library is relocated.
35108 hardcode_direct_absolute=$hardcode_direct_absolute
35110 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35111 # into the resulting binary.
35112 hardcode_minus_L=$hardcode_minus_L
35114 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35115 # into the resulting binary.
35116 hardcode_shlibpath_var=$hardcode_shlibpath_var
35118 # Set to "yes" if building a shared library automatically hardcodes DIR
35119 # into the library and all subsequent libraries and executables linked
35121 hardcode_automatic=$hardcode_automatic
35123 # Set to yes if linker adds runtime paths of dependent libraries
35124 # to runtime path list.
35125 inherit_rpath=$inherit_rpath
35127 # Whether libtool must link a program against all its dependency libraries.
35128 link_all_deplibs=$link_all_deplibs
35130 # Fix the shell variable \$srcfile for the compiler.
35131 fix_srcfile_path=$lt_fix_srcfile_path
35133 # Set to "yes" if exported symbols are required.
35134 always_export_symbols=$always_export_symbols
35136 # The commands to list exported symbols.
35137 export_symbols_cmds=$lt_export_symbols_cmds
35139 # Symbols that should not be listed in the preloaded symbols.
35140 exclude_expsyms=$lt_exclude_expsyms
35142 # Symbols that must always be exported.
35143 include_expsyms=$lt_include_expsyms
35145 # Commands necessary for linking programs (against libraries) with templates.
35146 prelink_cmds=$lt_prelink_cmds
35148 # Specify filename containing input files.
35149 file_list_spec=$lt_file_list_spec
35151 # How to hardcode a shared library path into an executable.
35152 hardcode_action=$hardcode_action
35154 # The directories searched by this compiler when creating a shared library.
35155 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35157 # Dependencies to place before and after the objects being linked to
35158 # create a shared library.
35159 predep_objects=$lt_predep_objects
35160 postdep_objects=$lt_postdep_objects
35161 predeps=$lt_predeps
35162 postdeps=$lt_postdeps
35164 # The library search path used internally by the compiler when linking
35165 # a shared library.
35166 compiler_lib_search_path=$lt_compiler_lib_search_path
35168 # ### END LIBTOOL CONFIG
35174 cat <<\_LT_EOF >> "$cfgfile"
35175 # AIX sometimes has problems with the GCC collect2 program. For some
35176 # reason, if we set the COLLECT_NAMES environment variable, the problems
35177 # vanish in a puff of smoke.
35178 if test "X${COLLECT_NAMES+set}" != Xset; then
35180 export COLLECT_NAMES
35187 ltmain="$ac_aux_dir/ltmain.sh"
35190 # We use sed instead of cat because bash on DJGPP gets confused if
35191 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35192 # text mode, it properly converts lines to CR/LF. This bash problem
35193 # is reportedly fixed, but why not run on old versions too?
35194 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35195 || (rm -f "$cfgfile"; exit 1)
35199 cat << \_LT_EOF >> "$cfgfile"
35201 # func_dirname file append nondir_replacement
35202 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
35203 # otherwise set result to NONDIR_REPLACEMENT.
35207 */*) func_dirname_result="${1%/*}${2}" ;;
35208 * ) func_dirname_result="${3}" ;;
35212 # func_basename file
35215 func_basename_result="${1##*/}"
35218 # func_dirname_and_basename file append nondir_replacement
35219 # perform func_basename and func_dirname in a single function
35221 # dirname: Compute the dirname of FILE. If nonempty,
35222 # add APPEND to the result, otherwise set result
35223 # to NONDIR_REPLACEMENT.
35224 # value returned in "$func_dirname_result"
35225 # basename: Compute filename of FILE.
35226 # value retuned in "$func_basename_result"
35227 # Implementation must be kept synchronized with func_dirname
35228 # and func_basename. For efficiency, we do not delegate to
35229 # those functions but instead duplicate the functionality here.
35230 func_dirname_and_basename ()
35233 */*) func_dirname_result="${1%/*}${2}" ;;
35234 * ) func_dirname_result="${3}" ;;
35236 func_basename_result="${1##*/}"
35239 # func_stripname prefix suffix name
35240 # strip PREFIX and SUFFIX off of NAME.
35241 # PREFIX and SUFFIX must not contain globbing or regex special
35242 # characters, hashes, percent signs, but SUFFIX may contain a leading
35243 # dot (in which case that matches only a dot).
35246 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35247 # positional parameters, so assign one to ordinary parameter first.
35248 func_stripname_result=${3}
35249 func_stripname_result=${func_stripname_result#"${1}"}
35250 func_stripname_result=${func_stripname_result%"${2}"}
35256 func_opt_split_opt=${1%%=*}
35257 func_opt_split_arg=${1#*=}
35264 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35265 *) func_lo2o_result=${1} ;;
35269 # func_xform libobj-or-source
35272 func_xform_result=${1%.*}.lo
35275 # func_arith arithmetic-term...
35278 func_arith_result=$(( $* ))
35282 # STRING may not start with a hyphen.
35285 func_len_result=${#1}
35290 *) # Bourne compatible functions.
35291 cat << \_LT_EOF >> "$cfgfile"
35293 # func_dirname file append nondir_replacement
35294 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
35295 # otherwise set result to NONDIR_REPLACEMENT.
35298 # Extract subdirectory from the argument.
35299 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
35300 if test "X$func_dirname_result" = "X${1}"; then
35301 func_dirname_result="${3}"
35303 func_dirname_result="$func_dirname_result${2}"
35307 # func_basename file
35310 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
35314 # func_stripname prefix suffix name
35315 # strip PREFIX and SUFFIX off of NAME.
35316 # PREFIX and SUFFIX must not contain globbing or regex special
35317 # characters, hashes, percent signs, but SUFFIX may contain a leading
35318 # dot (in which case that matches only a dot).
35319 # func_strip_suffix prefix name
35323 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
35324 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
35329 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35330 my_sed_long_arg='1s/^-[^=]*=//'
35335 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
35336 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
35342 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
35345 # func_xform libobj-or-source
35348 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
35351 # func_arith arithmetic-term...
35354 func_arith_result=`expr "$@"`
35358 # STRING may not start with a hyphen.
35361 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35367 case $lt_shell_append in
35369 cat << \_LT_EOF >> "$cfgfile"
35371 # func_append var value
35372 # Append VALUE to the end of shell variable VAR.
35380 cat << \_LT_EOF >> "$cfgfile"
35382 # func_append var value
35383 # Append VALUE to the end of shell variable VAR.
35394 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35395 || (rm -f "$cfgfile"; exit 1)
35397 mv -f "$cfgfile" "$ofile" ||
35398 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35402 cat <<_LT_EOF >> "$ofile"
35404 # ### BEGIN LIBTOOL TAG CONFIG: CXX
35406 # The linker used to build libraries.
35409 # How to create reloadable object files.
35410 reload_flag=$lt_reload_flag_CXX
35411 reload_cmds=$lt_reload_cmds_CXX
35413 # Commands used to build an old-style archive.
35414 old_archive_cmds=$lt_old_archive_cmds_CXX
35416 # A language specific compiler.
35417 CC=$lt_compiler_CXX
35419 # Is the compiler the GNU compiler?
35422 # Compiler flag to turn off builtin functions.
35423 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35425 # How to pass a linker flag through the compiler.
35426 wl=$lt_lt_prog_compiler_wl_CXX
35428 # Additional compiler flags for building library objects.
35429 pic_flag=$lt_lt_prog_compiler_pic_CXX
35431 # Compiler flag to prevent dynamic linking.
35432 link_static_flag=$lt_lt_prog_compiler_static_CXX
35434 # Does compiler simultaneously support -c and -o options?
35435 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35437 # Whether or not to add -lc for building shared libraries.
35438 build_libtool_need_lc=$archive_cmds_need_lc_CXX
35440 # Whether or not to disallow shared libs when runtime libs are static.
35441 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35443 # Compiler flag to allow reflexive dlopens.
35444 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35446 # Compiler flag to generate shared objects directly from archives.
35447 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35449 # Whether the compiler copes with passing no objects directly.
35450 compiler_needs_object=$lt_compiler_needs_object_CXX
35452 # Create an old-style archive from a shared archive.
35453 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35455 # Create a temporary old-style archive to link instead of a shared archive.
35456 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35458 # Commands used to build a shared archive.
35459 archive_cmds=$lt_archive_cmds_CXX
35460 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35462 # Commands used to build a loadable module if different from building
35463 # a shared archive.
35464 module_cmds=$lt_module_cmds_CXX
35465 module_expsym_cmds=$lt_module_expsym_cmds_CXX
35467 # Whether we are building with GNU ld or not.
35468 with_gnu_ld=$lt_with_gnu_ld_CXX
35470 # Flag that allows shared libraries with undefined symbols to be built.
35471 allow_undefined_flag=$lt_allow_undefined_flag_CXX
35473 # Flag that enforces no undefined symbols.
35474 no_undefined_flag=$lt_no_undefined_flag_CXX
35476 # Flag to hardcode \$libdir into a binary during linking.
35477 # This must work even if \$libdir does not exist
35478 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35480 # If ld is used when linking, flag to hardcode \$libdir into a binary
35481 # during linking. This must work even if \$libdir does not exist.
35482 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35484 # Whether we need a single "-rpath" flag with a separated argument.
35485 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35487 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35488 # DIR into the resulting binary.
35489 hardcode_direct=$hardcode_direct_CXX
35491 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35492 # DIR into the resulting binary and the resulting library dependency is
35493 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35494 # library is relocated.
35495 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35497 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35498 # into the resulting binary.
35499 hardcode_minus_L=$hardcode_minus_L_CXX
35501 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35502 # into the resulting binary.
35503 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35505 # Set to "yes" if building a shared library automatically hardcodes DIR
35506 # into the library and all subsequent libraries and executables linked
35508 hardcode_automatic=$hardcode_automatic_CXX
35510 # Set to yes if linker adds runtime paths of dependent libraries
35511 # to runtime path list.
35512 inherit_rpath=$inherit_rpath_CXX
35514 # Whether libtool must link a program against all its dependency libraries.
35515 link_all_deplibs=$link_all_deplibs_CXX
35517 # Fix the shell variable \$srcfile for the compiler.
35518 fix_srcfile_path=$lt_fix_srcfile_path_CXX
35520 # Set to "yes" if exported symbols are required.
35521 always_export_symbols=$always_export_symbols_CXX
35523 # The commands to list exported symbols.
35524 export_symbols_cmds=$lt_export_symbols_cmds_CXX
35526 # Symbols that should not be listed in the preloaded symbols.
35527 exclude_expsyms=$lt_exclude_expsyms_CXX
35529 # Symbols that must always be exported.
35530 include_expsyms=$lt_include_expsyms_CXX
35532 # Commands necessary for linking programs (against libraries) with templates.
35533 prelink_cmds=$lt_prelink_cmds_CXX
35535 # Specify filename containing input files.
35536 file_list_spec=$lt_file_list_spec_CXX
35538 # How to hardcode a shared library path into an executable.
35539 hardcode_action=$hardcode_action_CXX
35541 # The directories searched by this compiler when creating a shared library.
35542 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35544 # Dependencies to place before and after the objects being linked to
35545 # create a shared library.
35546 predep_objects=$lt_predep_objects_CXX
35547 postdep_objects=$lt_postdep_objects_CXX
35548 predeps=$lt_predeps_CXX
35549 postdeps=$lt_postdeps_CXX
35551 # The library search path used internally by the compiler when linking
35552 # a shared library.
35553 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35555 # ### END LIBTOOL TAG CONFIG: CXX
35559 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35560 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35561 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35562 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35563 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35564 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35572 ac_clean_files=$ac_clean_files_save
35574 test $ac_write_fail = 0 ||
35575 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
35578 # configure is writing to config.log, and then calls config.status.
35579 # config.status does its own redirection, appending to config.log.
35580 # Unfortunately, on DOS this fails, as config.log is still kept open
35581 # by configure, so config.status won't be able to write to it; its
35582 # output is simply discarded. So we exec the FD to /dev/null,
35583 # effectively closing config.log, so it can be properly (re)opened and
35584 # appended to by config.status. When coming back to configure, we
35585 # need to make the FD available again.
35586 if test "$no_create" != yes; then
35588 ac_config_status_args=
35589 test "$silent" = yes &&
35590 ac_config_status_args="$ac_config_status_args --quiet"
35592 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35594 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35595 # would make configure fail if this is the last instruction.
35596 $ac_cs_success || as_fn_exit 1
35598 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35599 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35600 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35604 rm -f magick-version
35606 result_dejavu_font_dir='none'
35607 if test "${dejavu_font_dir}x" != 'x'; then
35608 result_dejavu_font_dir=$dejavu_font_dir
35611 result_ghostscript_font_dir='none'
35612 if test "${ghostscript_font_dir}x" != 'x'; then
35613 result_ghostscript_font_dir=$ghostscript_font_dir
35616 result_windows_font_dir='none'
35617 if test "${windows_font_dir}x" != 'x'; then
35618 result_windows_font_dir=${windows_font_dir}
35621 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
35622 ImageMagick is configured as follows. Please verify that this configuration
35623 matches your expectations.
35625 Host system type: $host
35626 Build system type: $build
35629 -------------------------------------------------------------------------------
35630 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35631 Static libraries --enable-static=$enable_static $libtool_build_static_libs
35632 Module support --with-modules=$with_modules $with_modules
35633 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35634 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35635 High Dynamic Range Imagery
35636 --enable-hdri=$enable_hdri $enable_hdri
35638 Delegate Configuration:
35639 BZLIB --with-bzlib=$with_bzlib $have_bzlib
35640 Autotrace --with-autotrace=$with_autotrace $have_autotrace
35641 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
35642 DJVU --with-djvu=$with_djvu $have_djvu
35643 DPS --with-dps=$with_dps $have_dps
35644 FFTW --with-fftw=$with_fftw $have_fftw
35645 FlashPIX --with-fpx=$with_fpx $have_fpx
35646 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35647 FreeType --with-freetype=$with_freetype $have_freetype
35648 GhostPCL None $PCLDelegate ($PCLVersion)
35649 GhostXPS None $XPSDelegate ($XPSVersion)
35650 Ghostscript None $PSDelegate ($GSVersion)
35651 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35652 Ghostscript lib --with-gslib=$with_gslib $have_gslib
35653 Graphviz --with-gvc=$with_gvc $have_gvc
35654 JBIG --with-jbig=$with_jbig $have_jbig
35655 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35656 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
35657 LCMS v1 --with-lcms=$with_lcms $have_lcms
35658 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
35659 LQR --with-lqr=$with_lqr $have_lqr
35660 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35661 OpenEXR --with-openexr=$with_openexr $have_openexr
35662 PERL --with-perl=$with_perl $have_perl
35663 PNG --with-png=$with_png $have_png
35664 RSVG --with-rsvg=$with_rsvg $have_rsvg
35665 TIFF --with-tiff=$with_tiff $have_tiff
35666 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35667 WMF --with-wmf=$with_wmf $have_wmf
35668 X11 --with-x=$with_x $have_x
35669 XML --with-xml=$with_xml $have_xml
35670 ZLIB --with-zlib=$with_zlib $have_zlib
35673 X_CFLAGS = $X_CFLAGS
35674 X_PRE_LIBS = $X_PRE_LIBS
35676 X_EXTRA_LIBS = $X_EXTRA_LIBS
35678 Options used to compile and link:
35679 PREFIX = $PREFIX_DIR
35680 EXEC-PREFIX = $EXEC_PREFIX_DIR
35681 VERSION = $PACKAGE_VERSION
35684 CPPFLAGS = $MAGICK_CPPFLAGS
35685 PCFLAGS = $MAGICK_PCFLAGS
35688 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35689 LIBS = $MAGICK_LIBS
35691 CXXFLAGS = $CXXFLAGS
35692 FEATURES = $MAGICK_FEATURES
35695 ImageMagick is configured as follows. Please verify that this configuration
35696 matches your expectations.
35698 Host system type: $host
35699 Build system type: $build
35702 -------------------------------------------------------------------------------
35703 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35704 Static libraries --enable-static=$enable_static $libtool_build_static_libs
35705 Module support --with-modules=$with_modules $with_modules
35706 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35707 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35708 High Dynamic Range Imagery
35709 --enable-hdri=$enable_hdri $enable_hdri
35711 Delegate Configuration:
35712 BZLIB --with-bzlib=$with_bzlib $have_bzlib
35713 Autotrace --with-autotrace=$with_autotrace $have_autotrace
35714 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
35715 DJVU --with-djvu=$with_djvu $have_djvu
35716 DPS --with-dps=$with_dps $have_dps
35717 FFTW --with-fftw=$with_fftw $have_fftw
35718 FlashPIX --with-fpx=$with_fpx $have_fpx
35719 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35720 FreeType --with-freetype=$with_freetype $have_freetype
35721 GhostPCL None $PCLDelegate ($PCLVersion)
35722 GhostXPS None $XPSDelegate ($XPSVersion)
35723 Ghostscript None $PSDelegate ($GSVersion)
35724 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35725 Ghostscript lib --with-gslib=$with_gslib $have_gslib
35726 Graphviz --with-gvc=$with_gvc $have_gvc
35727 JBIG --with-jbig=$with_jbig $have_jbig
35728 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35729 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
35730 LCMS v1 --with-lcms=$with_lcms $have_lcms
35731 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
35732 LQR --with-lqr=$with_lqr $have_lqr
35733 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35734 OpenEXR --with-openexr=$with_openexr $have_openexr
35735 PERL --with-perl=$with_perl $have_perl
35736 PNG --with-png=$with_png $have_png
35737 RSVG --with-rsvg=$with_rsvg $have_rsvg
35738 TIFF --with-tiff=$with_tiff $have_tiff
35739 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35740 WMF --with-wmf=$with_wmf $have_wmf
35741 X11 --with-x=$with_x $have_x
35742 XML --with-xml=$with_xml $have_xml
35743 ZLIB --with-zlib=$with_zlib $have_zlib
35746 X_CFLAGS = $X_CFLAGS
35747 X_PRE_LIBS = $X_PRE_LIBS
35749 X_EXTRA_LIBS = $X_EXTRA_LIBS
35751 Options used to compile and link:
35752 PREFIX = $PREFIX_DIR
35753 EXEC-PREFIX = $EXEC_PREFIX_DIR
35754 VERSION = $PACKAGE_VERSION
35757 CPPFLAGS = $MAGICK_CPPFLAGS
35758 PCFLAGS = $MAGICK_PCFLAGS
35761 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35762 LIBS = $MAGICK_LIBS
35764 CXXFLAGS = $CXXFLAGS
35765 FEATURES = $MAGICK_FEATURES