2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.66 for ImageMagick 6.6.3.
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.3'
570 PACKAGE_STRING='ImageMagick 6.6.3'
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
701 GnuplotDecodeDelegate
715 BlenderDecodeDelegate
717 AutotraceDecodeDelegate
748 OPENEXR_DELEGATE_FALSE
749 OPENEXR_DELEGATE_TRUE
776 FREETYPE_DELEGATE_FALSE
777 FREETYPE_DELEGATE_TRUE
779 FONTCONFIG_DELEGATE_FALSE
780 FONTCONFIG_DELEGATE_TRUE
795 AUTOTRACE_DELEGATE_FALSE
796 AUTOTRACE_DELEGATE_TRUE
821 WITH_MAGICK_PLUS_PLUS_FALSE
822 WITH_MAGICK_PLUS_PLUS_TRUE
837 LIBRARY_EXTRA_CPPFLAGS
838 MODULE_EXTRA_CPPFLAGS
843 MAINTAINER_MODE_FALSE
851 WITH_SHARED_LIBS_FALSE
852 WITH_SHARED_LIBS_TRUE
855 CONVENIENCE_LTDL_FALSE
856 CONVENIENCE_LTDL_TRUE
860 sys_symbol_underscore
900 WIN32_NATIVE_BUILD_FALSE
901 WIN32_NATIVE_BUILD_TRUE
902 WINGDI32_DELEGATE_FALSE
903 WINGDI32_DELEGATE_TRUE
936 MAGICK_FILTER_MODULE_PATH
937 MAGICK_CONFIGURE_BUILD_PATH
938 MAGICK_CONFIGURE_SRC_PATH
939 MAGICK_CODER_MODULE_PATH
954 CONFIG_STATUS_DEPENDENCIES
955 MAGICK_LIB_VERSION_NUMBER
956 MAGICK_LIB_VERSION_TEXT
968 INSTALL_STRIP_PROGRAM
983 PACKAGE_VERSION_ADDENDUM
985 PACKAGE_LIB_VERSION_NUMBER
989 MAGICK_LIBRARY_VERSION_INFO
990 MAGICK_LIBRARY_CURRENT_MIN
992 MAGICK_LIBRARY_REVISION
993 MAGICK_LIBRARY_CURRENT
1010 DISTCHECK_CONFIG_FLAGS
1038 program_transform_name
1051 enable_option_checking
1053 enable_dependency_tracking
1056 enable_bounds_checking
1057 enable_osx_universal_binary
1072 enable_delegate_build
1079 enable_maintainer_mode
1089 with_magick_plus_plus
1100 with_dejavu_font_dir
1119 with_windows_font_dir
1123 ac_precious_vars='build_alias
1154 # Initialize some variables set by options.
1156 ac_init_version=false
1157 ac_unrecognized_opts=
1158 ac_unrecognized_sep=
1159 # The variables have the same names as the options, with
1160 # dashes changed to underlines.
1161 cache_file=/dev/null
1168 program_transform_name=s,x,x,
1176 # Installation directory options.
1177 # These are left unexpanded so users can "make install exec_prefix=/foo"
1178 # and all the variables that are supposed to be based on exec_prefix
1179 # by default will actually change.
1180 # Use braces instead of parens because sh, perl, etc. also accept them.
1181 # (The list follows the same order as the GNU Coding Standards.)
1182 bindir='${exec_prefix}/bin'
1183 sbindir='${exec_prefix}/sbin'
1184 libexecdir='${exec_prefix}/libexec'
1185 datarootdir='${prefix}/share'
1186 datadir='${datarootdir}'
1187 sysconfdir='${prefix}/etc'
1188 sharedstatedir='${prefix}/com'
1189 localstatedir='${prefix}/var'
1190 includedir='${prefix}/include'
1191 oldincludedir='/usr/include'
1192 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1193 infodir='${datarootdir}/info'
1198 libdir='${exec_prefix}/lib'
1199 localedir='${datarootdir}/locale'
1200 mandir='${datarootdir}/man'
1206 # If the previous option needs an argument, assign it.
1207 if test -n "$ac_prev"; then
1208 eval $ac_prev=\$ac_option
1214 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1218 # Accept the important Cygnus configure options, so we can diagnose typos.
1220 case $ac_dashdash$ac_option in
1224 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1226 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1227 bindir=$ac_optarg ;;
1229 -build | --build | --buil | --bui | --bu)
1230 ac_prev=build_alias ;;
1231 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1232 build_alias=$ac_optarg ;;
1234 -cache-file | --cache-file | --cache-fil | --cache-fi \
1235 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1236 ac_prev=cache_file ;;
1237 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1238 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1239 cache_file=$ac_optarg ;;
1241 --config-cache | -C)
1242 cache_file=config.cache ;;
1244 -datadir | --datadir | --datadi | --datad)
1246 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1247 datadir=$ac_optarg ;;
1249 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1250 | --dataroo | --dataro | --datar)
1251 ac_prev=datarootdir ;;
1252 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1253 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1254 datarootdir=$ac_optarg ;;
1256 -disable-* | --disable-*)
1257 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1260 as_fn_error $? "invalid feature name: $ac_useropt"
1261 ac_useropt_orig=$ac_useropt
1262 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1265 "enable_$ac_useropt"
1267 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1268 ac_unrecognized_sep=', ';;
1270 eval enable_$ac_useropt=no ;;
1272 -docdir | --docdir | --docdi | --doc | --do)
1274 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1275 docdir=$ac_optarg ;;
1277 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1279 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1280 dvidir=$ac_optarg ;;
1282 -enable-* | --enable-*)
1283 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1284 # Reject names that are not valid shell variable names.
1285 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1286 as_fn_error $? "invalid feature name: $ac_useropt"
1287 ac_useropt_orig=$ac_useropt
1288 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1289 case $ac_user_opts in
1291 "enable_$ac_useropt"
1293 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1294 ac_unrecognized_sep=', ';;
1296 eval enable_$ac_useropt=\$ac_optarg ;;
1298 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1299 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1300 | --exec | --exe | --ex)
1301 ac_prev=exec_prefix ;;
1302 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1303 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1304 | --exec=* | --exe=* | --ex=*)
1305 exec_prefix=$ac_optarg ;;
1307 -gas | --gas | --ga | --g)
1308 # Obsolete; use --with-gas.
1311 -help | --help | --hel | --he | -h)
1312 ac_init_help=long ;;
1313 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1314 ac_init_help=recursive ;;
1315 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1316 ac_init_help=short ;;
1318 -host | --host | --hos | --ho)
1319 ac_prev=host_alias ;;
1320 -host=* | --host=* | --hos=* | --ho=*)
1321 host_alias=$ac_optarg ;;
1323 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1325 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1327 htmldir=$ac_optarg ;;
1329 -includedir | --includedir | --includedi | --included | --include \
1330 | --includ | --inclu | --incl | --inc)
1331 ac_prev=includedir ;;
1332 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1333 | --includ=* | --inclu=* | --incl=* | --inc=*)
1334 includedir=$ac_optarg ;;
1336 -infodir | --infodir | --infodi | --infod | --info | --inf)
1338 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1339 infodir=$ac_optarg ;;
1341 -libdir | --libdir | --libdi | --libd)
1343 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1344 libdir=$ac_optarg ;;
1346 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1347 | --libexe | --libex | --libe)
1348 ac_prev=libexecdir ;;
1349 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1350 | --libexe=* | --libex=* | --libe=*)
1351 libexecdir=$ac_optarg ;;
1353 -localedir | --localedir | --localedi | --localed | --locale)
1354 ac_prev=localedir ;;
1355 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1356 localedir=$ac_optarg ;;
1358 -localstatedir | --localstatedir | --localstatedi | --localstated \
1359 | --localstate | --localstat | --localsta | --localst | --locals)
1360 ac_prev=localstatedir ;;
1361 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1362 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1363 localstatedir=$ac_optarg ;;
1365 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1367 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1368 mandir=$ac_optarg ;;
1370 -nfp | --nfp | --nf)
1371 # Obsolete; use --without-fp.
1374 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1375 | --no-cr | --no-c | -n)
1378 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1379 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1382 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1383 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1384 | --oldin | --oldi | --old | --ol | --o)
1385 ac_prev=oldincludedir ;;
1386 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1387 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1388 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1389 oldincludedir=$ac_optarg ;;
1391 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1393 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1394 prefix=$ac_optarg ;;
1396 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1397 | --program-pre | --program-pr | --program-p)
1398 ac_prev=program_prefix ;;
1399 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1400 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1401 program_prefix=$ac_optarg ;;
1403 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1404 | --program-suf | --program-su | --program-s)
1405 ac_prev=program_suffix ;;
1406 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1407 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1408 program_suffix=$ac_optarg ;;
1410 -program-transform-name | --program-transform-name \
1411 | --program-transform-nam | --program-transform-na \
1412 | --program-transform-n | --program-transform- \
1413 | --program-transform | --program-transfor \
1414 | --program-transfo | --program-transf \
1415 | --program-trans | --program-tran \
1416 | --progr-tra | --program-tr | --program-t)
1417 ac_prev=program_transform_name ;;
1418 -program-transform-name=* | --program-transform-name=* \
1419 | --program-transform-nam=* | --program-transform-na=* \
1420 | --program-transform-n=* | --program-transform-=* \
1421 | --program-transform=* | --program-transfor=* \
1422 | --program-transfo=* | --program-transf=* \
1423 | --program-trans=* | --program-tran=* \
1424 | --progr-tra=* | --program-tr=* | --program-t=*)
1425 program_transform_name=$ac_optarg ;;
1427 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1429 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1430 pdfdir=$ac_optarg ;;
1432 -psdir | --psdir | --psdi | --psd | --ps)
1434 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1438 | -silent | --silent | --silen | --sile | --sil)
1441 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1443 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1445 sbindir=$ac_optarg ;;
1447 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1448 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1449 | --sharedst | --shareds | --shared | --share | --shar \
1451 ac_prev=sharedstatedir ;;
1452 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1453 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1454 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1456 sharedstatedir=$ac_optarg ;;
1458 -site | --site | --sit)
1460 -site=* | --site=* | --sit=*)
1463 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1465 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1466 srcdir=$ac_optarg ;;
1468 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1469 | --syscon | --sysco | --sysc | --sys | --sy)
1470 ac_prev=sysconfdir ;;
1471 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1472 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1473 sysconfdir=$ac_optarg ;;
1475 -target | --target | --targe | --targ | --tar | --ta | --t)
1476 ac_prev=target_alias ;;
1477 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1478 target_alias=$ac_optarg ;;
1480 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1483 -version | --version | --versio | --versi | --vers | -V)
1484 ac_init_version=: ;;
1487 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1488 # Reject names that are not valid shell variable names.
1489 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1490 as_fn_error $? "invalid package name: $ac_useropt"
1491 ac_useropt_orig=$ac_useropt
1492 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1493 case $ac_user_opts in
1497 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1498 ac_unrecognized_sep=', ';;
1500 eval with_$ac_useropt=\$ac_optarg ;;
1502 -without-* | --without-*)
1503 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1504 # Reject names that are not valid shell variable names.
1505 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1506 as_fn_error $? "invalid package name: $ac_useropt"
1507 ac_useropt_orig=$ac_useropt
1508 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1509 case $ac_user_opts in
1513 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1514 ac_unrecognized_sep=', ';;
1516 eval with_$ac_useropt=no ;;
1519 # Obsolete; use --with-x.
1522 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1523 | --x-incl | --x-inc | --x-in | --x-i)
1524 ac_prev=x_includes ;;
1525 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1526 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1527 x_includes=$ac_optarg ;;
1529 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1530 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1531 ac_prev=x_libraries ;;
1532 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1533 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1534 x_libraries=$ac_optarg ;;
1536 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1537 Try \`$0 --help' for more information"
1541 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1542 # Reject names that are not valid shell variable names.
1543 case $ac_envvar in #(
1544 '' | [0-9]* | *[!_$as_cr_alnum]* )
1545 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1547 eval $ac_envvar=\$ac_optarg
1548 export $ac_envvar ;;
1551 # FIXME: should be removed in autoconf 3.0.
1552 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1553 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1554 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1555 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1561 if test -n "$ac_prev"; then
1562 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1563 as_fn_error $? "missing argument to $ac_option"
1566 if test -n "$ac_unrecognized_opts"; then
1567 case $enable_option_checking in
1569 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1570 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1574 # Check all directory arguments for consistency.
1575 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1576 datadir sysconfdir sharedstatedir localstatedir includedir \
1577 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1578 libdir localedir mandir
1580 eval ac_val=\$$ac_var
1581 # Remove trailing slashes.
1584 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1585 eval $ac_var=\$ac_val;;
1587 # Be sure to have absolute directory names.
1589 [\\/$]* | ?:[\\/]* ) continue;;
1590 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1592 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1595 # There might be people who depend on the old broken behavior: `$host'
1596 # used to hold the argument of --host etc.
1597 # FIXME: To remove some day.
1600 target=$target_alias
1602 # FIXME: To remove some day.
1603 if test "x$host_alias" != x; then
1604 if test "x$build_alias" = x; then
1605 cross_compiling=maybe
1606 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1607 If a cross compiler is detected then cross compile mode will be used" >&2
1608 elif test "x$build_alias" != "x$host_alias"; then
1614 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1616 test "$silent" = yes && exec 6>/dev/null
1619 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1620 ac_ls_di=`ls -di .` &&
1621 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1622 as_fn_error $? "working directory cannot be determined"
1623 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1624 as_fn_error $? "pwd does not report name of working directory"
1627 # Find the source files, if location was not specified.
1628 if test -z "$srcdir"; then
1629 ac_srcdir_defaulted=yes
1630 # Try the directory containing this script, then the parent directory.
1631 ac_confdir=`$as_dirname -- "$as_myself" ||
1632 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1633 X"$as_myself" : 'X\(//\)[^/]' \| \
1634 X"$as_myself" : 'X\(//\)$' \| \
1635 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1636 $as_echo X"$as_myself" |
1637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1655 if test ! -r "$srcdir/$ac_unique_file"; then
1659 ac_srcdir_defaulted=no
1661 if test ! -r "$srcdir/$ac_unique_file"; then
1662 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1663 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1665 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1667 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1669 # When building in place, set srcdir=.
1670 if test "$ac_abs_confdir" = "$ac_pwd"; then
1673 # Remove unnecessary trailing slashes from srcdir.
1674 # Double slashes in file names in object file debugging info
1675 # mess up M-x gdb in Emacs.
1677 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1679 for ac_var in $ac_precious_vars; do
1680 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1681 eval ac_env_${ac_var}_value=\$${ac_var}
1682 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1683 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1687 # Report the --help message.
1689 if test "$ac_init_help" = "long"; then
1690 # Omit some internal or obsolete options to make the list less imposing.
1691 # This message is too long to be a string in the A/UX 3.1 sh.
1693 \`configure' configures ImageMagick 6.6.3 to adapt to many kinds of systems.
1695 Usage: $0 [OPTION]... [VAR=VALUE]...
1697 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1698 VAR=VALUE. See below for descriptions of some of the useful variables.
1700 Defaults for the options are specified in brackets.
1703 -h, --help display this help and exit
1704 --help=short display options specific to this package
1705 --help=recursive display the short help of all the included packages
1706 -V, --version display version information and exit
1707 -q, --quiet, --silent do not print \`checking ...' messages
1708 --cache-file=FILE cache test results in FILE [disabled]
1709 -C, --config-cache alias for \`--cache-file=config.cache'
1710 -n, --no-create do not create output files
1711 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1713 Installation directories:
1714 --prefix=PREFIX install architecture-independent files in PREFIX
1715 [$ac_default_prefix]
1716 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1719 By default, \`make install' will install all the files in
1720 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1721 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1722 for instance \`--prefix=\$HOME'.
1724 For better control, use the options below.
1726 Fine tuning of the installation directories:
1727 --bindir=DIR user executables [EPREFIX/bin]
1728 --sbindir=DIR system admin executables [EPREFIX/sbin]
1729 --libexecdir=DIR program executables [EPREFIX/libexec]
1730 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1731 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1732 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1733 --libdir=DIR object code libraries [EPREFIX/lib]
1734 --includedir=DIR C header files [PREFIX/include]
1735 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1736 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1737 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1738 --infodir=DIR info documentation [DATAROOTDIR/info]
1739 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1740 --mandir=DIR man documentation [DATAROOTDIR/man]
1741 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1742 --htmldir=DIR html documentation [DOCDIR]
1743 --dvidir=DIR dvi documentation [DOCDIR]
1744 --pdfdir=DIR pdf documentation [DOCDIR]
1745 --psdir=DIR ps documentation [DOCDIR]
1751 --program-prefix=PREFIX prepend PREFIX to installed program names
1752 --program-suffix=SUFFIX append SUFFIX to installed program names
1753 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1756 --x-includes=DIR X include files are in DIR
1757 --x-libraries=DIR X library files are in DIR
1760 --build=BUILD configure for building on BUILD [guessed]
1761 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1762 --target=TARGET configure for building compilers for TARGET [HOST]
1766 if test -n "$ac_init_help"; then
1767 case $ac_init_help in
1768 short | recursive ) echo "Configuration of ImageMagick 6.6.3:";;
1773 --disable-option-checking ignore unrecognized --enable/--with options
1774 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1775 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1776 --enable-silent-rules less verbose build output (undo: `make V=1')
1777 --disable-silent-rules verbose build output (undo: `make V=0')
1778 --disable-dependency-tracking speeds up one-time build
1779 --enable-dependency-tracking do not reject slow dependency extractors
1780 --bounds-checking enable run-time bounds-checking
1781 --enable-osx-universal-binary
1782 build universal binary on OS X [[default=no]]
1783 --disable-openmp do not use OpenMP
1784 --disable-opencl do not use OpenCL
1785 --disable-largefile omit support for large files
1786 --enable-shared[=PKGS] build shared libraries [default=yes]
1787 --enable-static[=PKGS] build static libraries [default=yes]
1788 --enable-fast-install[=PKGS]
1789 optimize for fast installation [default=yes]
1790 --disable-libtool-lock avoid locking (might break parallel builds)
1791 --enable-ltdl-install install libltdl
1792 --enable-delegate-build look for delegate libraries in build directory
1793 --disable-deprecated exclude deprecated methods in MagickCore and
1795 --disable-installed Formally install ImageMagick under PREFIX
1796 --disable-cipher disable enciphering and deciphering image pixels
1797 --enable-embeddable enable self-contained, embeddable,
1798 zero-configuration ImageMagick
1799 --enable-hdri accurately represent the wide range of intensity
1800 levels found in real scenes
1801 --disable-assert disable assert() statements in build
1802 --enable-maintainer-mode enable make rules and dependencies not useful
1803 (and sometimes confusing) to the casual installer
1804 --enable-ccmalloc enable 'ccmalloc' memory debug support
1805 --enable-efence enable 'efence' memory debug support
1806 --enable-prof enable 'prof' profiling support
1807 --enable-gprof enable 'gprof' profiling support
1808 --enable-gcov enable 'gcov' profiling support
1809 --disable-assert turn off assertions
1812 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1813 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1814 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1815 --with-dmalloc use dmalloc, as in
1816 http://www.dmalloc.com/dmalloc.tar.gz
1817 --without-threads disable threads support
1818 --with-pic try to use only PIC/non-PIC objects [default=use
1820 --with-included-ltdl use the GNU ltdl sources included here
1821 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1822 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1823 --with-modules enable building dynamically loadable modules
1824 --with-method-prefix=PREFIX
1825 prefix MagickCore API methods
1826 --with-quantum-depth=DEPTH
1827 number of bits in a pixel quantum (default 16)
1828 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1830 --with-frozenpaths freeze delegate paths
1831 --without-magick-plus-plus
1832 disable build/install of Magick++
1833 --with-perl enable build/install of PerlMagick
1834 --with-perl-options=OPTIONS
1835 options to pass on command-line when generating
1836 PerlMagick's build file
1837 --with-umem enable umem memory allocation library support
1838 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1839 --without-bzlib disable BZLIB support
1840 --with-x use the X Window System
1841 --without-zlib disable ZLIB support
1842 --with-autotrace enable autotrace support
1843 --without-dps disable Display Postscript support
1844 --without-djvu disable DjVu support
1845 --with-dejavu-font-dir=DIR
1846 DejaVu font directory
1847 --without-fftw disable FFTW support
1848 --without-fpx disable FlashPIX support
1849 --without-fontconfig disable fontconfig support
1850 --without-freetype disable Freetype support
1851 --without-gslib enable Ghostscript library support
1852 --with-fontpath=DIR prepend to default font search path
1853 --with-gs-font-dir=DIR Ghostscript font directory
1854 --without-gvc disable GVC support
1855 --without-jbig disable JBIG support
1856 --without-jpeg disable JPEG support
1857 --without-jp2 disable JPEG-2000 support
1858 --without-lcms disable lcms (v1.1X) support
1859 --without-lcms2 disable lcms (v2.X) support
1860 --without-lqr disable Liquid Rescale support
1861 --without-openexr disable OpenEXR support
1862 --without-png disable PNG support
1863 --without-rsvg disable RSVG support
1864 --without-tiff disable TIFF support
1865 --with-windows-font-dir=DIR
1866 directory containing MS-Windows fonts
1867 --without-wmf disable WMF support
1868 --without-xml disable XML support
1870 Some influential environment variables:
1871 CC C compiler command
1872 CFLAGS C compiler flags
1873 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1874 nonstandard directory <lib dir>
1875 LIBS libraries to pass to the linker, e.g. -l<library>
1876 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1877 you have headers in a nonstandard directory <include dir>
1879 CXX C++ compiler command
1880 CXXFLAGS C++ compiler flags
1881 PKG_CONFIG path to pkg-config utility
1882 CXXCPP C++ preprocessor
1883 XMKMF Path to xmkmf, Makefile generator for X Window System
1885 C compiler flags for AUTOTRACE, overriding pkg-config
1887 linker flags for AUTOTRACE, overriding pkg-config
1889 C compiler flags for FONTCONFIG, overriding pkg-config
1891 linker flags for FONTCONFIG, overriding pkg-config
1892 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1893 GVC_LIBS linker flags for GVC, overriding pkg-config
1894 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1895 LQR_LIBS linker flags for LQR, overriding pkg-config
1897 C compiler flags for OPENEXR, overriding pkg-config
1899 linker flags for OPENEXR, overriding pkg-config
1900 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1901 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1903 C compiler flags for CAIRO_SVG, overriding pkg-config
1905 linker flags for CAIRO_SVG, overriding pkg-config
1907 Use these variables to override the choices made by `configure' or to help
1908 it to find libraries and programs with nonstandard names/locations.
1910 Report bugs to <http://www.imagemagick.org>.
1915 if test "$ac_init_help" = "recursive"; then
1916 # If there are subdirs, report their specific --help.
1917 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1918 test -d "$ac_dir" ||
1919 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1924 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1926 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1927 # A ".." for each directory in $ac_dir_suffix.
1928 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1929 case $ac_top_builddir_sub in
1930 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1931 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1934 ac_abs_top_builddir=$ac_pwd
1935 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1936 # for backward compatibility:
1937 ac_top_builddir=$ac_top_build_prefix
1940 .) # We are building in place.
1942 ac_top_srcdir=$ac_top_builddir_sub
1943 ac_abs_top_srcdir=$ac_pwd ;;
1944 [\\/]* | ?:[\\/]* ) # Absolute name.
1945 ac_srcdir=$srcdir$ac_dir_suffix;
1946 ac_top_srcdir=$srcdir
1947 ac_abs_top_srcdir=$srcdir ;;
1949 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1950 ac_top_srcdir=$ac_top_build_prefix$srcdir
1951 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1953 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1955 cd "$ac_dir" || { ac_status=$?; continue; }
1956 # Check for guested configure.
1957 if test -f "$ac_srcdir/configure.gnu"; then
1959 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1960 elif test -f "$ac_srcdir/configure"; then
1962 $SHELL "$ac_srcdir/configure" --help=recursive
1964 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1966 cd "$ac_pwd" || { ac_status=$?; break; }
1970 test -n "$ac_init_help" && exit $ac_status
1971 if $ac_init_version; then
1973 ImageMagick configure 6.6.3
1974 generated by GNU Autoconf 2.66
1976 Copyright (C) 2010 Free Software Foundation, Inc.
1977 This configure script is free software; the Free Software Foundation
1978 gives unlimited permission to copy, distribute and modify it.
1983 ## ------------------------ ##
1984 ## Autoconf initialization. ##
1985 ## ------------------------ ##
1987 # ac_fn_c_try_compile LINENO
1988 # --------------------------
1989 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1990 ac_fn_c_try_compile ()
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 rm -f conftest.$ac_objext
1994 if { { ac_try="$ac_compile"
1996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_compile") 2>conftest.err
2003 if test -s conftest.err; then
2004 grep -v '^ *+' conftest.err >conftest.er1
2005 cat conftest.er1 >&5
2006 mv -f conftest.er1 conftest.err
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } && {
2010 test -z "$ac_c_werror_flag" ||
2011 test ! -s conftest.err
2012 } && test -s conftest.$ac_objext; then :
2015 $as_echo "$as_me: failed program was:" >&5
2016 sed 's/^/| /' conftest.$ac_ext >&5
2020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2021 as_fn_set_status $ac_retval
2023 } # ac_fn_c_try_compile
2025 # ac_fn_c_try_cpp LINENO
2026 # ----------------------
2027 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 if { { ac_try="$ac_cpp conftest.$ac_ext"
2033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2034 *) ac_try_echo=$ac_try;;
2036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2037 $as_echo "$ac_try_echo"; } >&5
2038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2040 if test -s conftest.err; then
2041 grep -v '^ *+' conftest.err >conftest.er1
2042 cat conftest.er1 >&5
2043 mv -f conftest.er1 conftest.err
2045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2046 test $ac_status = 0; } >/dev/null && {
2047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2048 test ! -s conftest.err
2052 $as_echo "$as_me: failed program was:" >&5
2053 sed 's/^/| /' conftest.$ac_ext >&5
2057 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058 as_fn_set_status $ac_retval
2062 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2063 # -------------------------------------------------------
2064 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2065 # the include files in INCLUDES and setting the cache variable VAR
2067 ac_fn_c_check_header_mongrel ()
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 if eval "test \"\${$3+set}\"" = set; then :
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval "test \"\${$3+set}\"" = set; then :
2074 $as_echo_n "(cached) " >&6
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2080 # Is the header compilable?
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2082 $as_echo_n "checking $2 usability... " >&6; }
2083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2084 /* end confdefs.h. */
2088 if ac_fn_c_try_compile "$LINENO"; then :
2089 ac_header_compiler=yes
2091 ac_header_compiler=no
2093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2095 $as_echo "$ac_header_compiler" >&6; }
2097 # Is the header present?
2098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2099 $as_echo_n "checking $2 presence... " >&6; }
2100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2101 /* end confdefs.h. */
2104 if ac_fn_c_try_cpp "$LINENO"; then :
2105 ac_header_preproc=yes
2107 ac_header_preproc=no
2109 rm -f conftest.err conftest.$ac_ext
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2111 $as_echo "$ac_header_preproc" >&6; }
2113 # So? What about this header?
2114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2117 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2119 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2123 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2125 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2127 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2129 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2131 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2132 ( $as_echo "## ----------------------------------------- ##
2133 ## Report this to http://www.imagemagick.org ##
2134 ## ----------------------------------------- ##"
2135 ) | sed "s/^/$as_me: WARNING: /" >&2
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139 $as_echo_n "checking for $2... " >&6; }
2140 if eval "test \"\${$3+set}\"" = set; then :
2141 $as_echo_n "(cached) " >&6
2143 eval "$3=\$ac_header_compiler"
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147 $as_echo "$ac_res" >&6; }
2149 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2151 } # ac_fn_c_check_header_mongrel
2153 # ac_fn_c_try_run LINENO
2154 # ----------------------
2155 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2156 # that executables *can* be run.
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2160 if { { ac_try="$ac_link"
2162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2163 *) ac_try_echo=$ac_try;;
2165 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2166 $as_echo "$ac_try_echo"; } >&5
2167 (eval "$ac_link") 2>&5
2169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2170 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2171 { { case "(($ac_try" in
2172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2173 *) ac_try_echo=$ac_try;;
2175 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2176 $as_echo "$ac_try_echo"; } >&5
2177 (eval "$ac_try") 2>&5
2179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2180 test $ac_status = 0; }; }; then :
2183 $as_echo "$as_me: program exited with status $ac_status" >&5
2184 $as_echo "$as_me: failed program was:" >&5
2185 sed 's/^/| /' conftest.$ac_ext >&5
2187 ac_retval=$ac_status
2189 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2190 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2191 as_fn_set_status $ac_retval
2195 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2196 # -------------------------------------------------------
2197 # Tests whether HEADER exists and can be compiled using the include files in
2198 # INCLUDES, setting the cache variable VAR accordingly.
2199 ac_fn_c_check_header_compile ()
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2203 $as_echo_n "checking for $2... " >&6; }
2204 if eval "test \"\${$3+set}\"" = set; then :
2205 $as_echo_n "(cached) " >&6
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2212 if ac_fn_c_try_compile "$LINENO"; then :
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2221 $as_echo "$ac_res" >&6; }
2222 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2224 } # ac_fn_c_check_header_compile
2226 # ac_fn_cxx_try_compile LINENO
2227 # ----------------------------
2228 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2229 ac_fn_cxx_try_compile ()
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 rm -f conftest.$ac_objext
2233 if { { ac_try="$ac_compile"
2235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2236 *) ac_try_echo=$ac_try;;
2238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2239 $as_echo "$ac_try_echo"; } >&5
2240 (eval "$ac_compile") 2>conftest.err
2242 if test -s conftest.err; then
2243 grep -v '^ *+' conftest.err >conftest.er1
2244 cat conftest.er1 >&5
2245 mv -f conftest.er1 conftest.err
2247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2248 test $ac_status = 0; } && {
2249 test -z "$ac_cxx_werror_flag" ||
2250 test ! -s conftest.err
2251 } && test -s conftest.$ac_objext; then :
2254 $as_echo "$as_me: failed program was:" >&5
2255 sed 's/^/| /' conftest.$ac_ext >&5
2259 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2260 as_fn_set_status $ac_retval
2262 } # ac_fn_cxx_try_compile
2264 # ac_fn_c_try_link LINENO
2265 # -----------------------
2266 # Try to link conftest.$ac_ext, and return whether this succeeded.
2269 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2270 rm -f conftest.$ac_objext conftest$ac_exeext
2271 if { { ac_try="$ac_link"
2273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2274 *) ac_try_echo=$ac_try;;
2276 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2277 $as_echo "$ac_try_echo"; } >&5
2278 (eval "$ac_link") 2>conftest.err
2280 if test -s conftest.err; then
2281 grep -v '^ *+' conftest.err >conftest.er1
2282 cat conftest.er1 >&5
2283 mv -f conftest.er1 conftest.err
2285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2286 test $ac_status = 0; } && {
2287 test -z "$ac_c_werror_flag" ||
2288 test ! -s conftest.err
2289 } && test -s conftest$ac_exeext && {
2290 test "$cross_compiling" = yes ||
2291 $as_test_x conftest$ac_exeext
2295 $as_echo "$as_me: failed program was:" >&5
2296 sed 's/^/| /' conftest.$ac_ext >&5
2300 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2301 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2302 # interfere with the next link command; also delete a directory that is
2303 # left behind by Apple's compiler. We do this before executing the actions.
2304 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2305 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2306 as_fn_set_status $ac_retval
2308 } # ac_fn_c_try_link
2310 # ac_fn_c_check_func LINENO FUNC VAR
2311 # ----------------------------------
2312 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2313 ac_fn_c_check_func ()
2315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2317 $as_echo_n "checking for $2... " >&6; }
2318 if eval "test \"\${$3+set}\"" = set; then :
2319 $as_echo_n "(cached) " >&6
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h. */
2323 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2324 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2325 #define $2 innocuous_$2
2327 /* System header to define __stub macros and hopefully few prototypes,
2328 which can conflict with char $2 (); below.
2329 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2330 <limits.h> exists even on freestanding compilers. */
2333 # include <limits.h>
2335 # include <assert.h>
2340 /* Override any GCC internal prototype to avoid an error.
2341 Use char because int might match the return type of a GCC
2342 builtin and then its argument prototype would still apply. */
2347 /* The GNU C library defines this for functions which it implements
2348 to always fail with ENOSYS. Some functions are actually named
2349 something starting with __ and the normal name is an alias. */
2350 #if defined __stub_$2 || defined __stub___$2
2362 if ac_fn_c_try_link "$LINENO"; then :
2367 rm -f core conftest.err conftest.$ac_objext \
2368 conftest$ac_exeext conftest.$ac_ext
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2372 $as_echo "$ac_res" >&6; }
2373 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2375 } # ac_fn_c_check_func
2377 # ac_fn_cxx_try_cpp LINENO
2378 # ------------------------
2379 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2380 ac_fn_cxx_try_cpp ()
2382 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2383 if { { ac_try="$ac_cpp conftest.$ac_ext"
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2389 $as_echo "$ac_try_echo"; } >&5
2390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2392 if test -s conftest.err; then
2393 grep -v '^ *+' conftest.err >conftest.er1
2394 cat conftest.er1 >&5
2395 mv -f conftest.er1 conftest.err
2397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2398 test $ac_status = 0; } >/dev/null && {
2399 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2400 test ! -s conftest.err
2404 $as_echo "$as_me: failed program was:" >&5
2405 sed 's/^/| /' conftest.$ac_ext >&5
2409 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2410 as_fn_set_status $ac_retval
2412 } # ac_fn_cxx_try_cpp
2414 # ac_fn_cxx_try_link LINENO
2415 # -------------------------
2416 # Try to link conftest.$ac_ext, and return whether this succeeded.
2417 ac_fn_cxx_try_link ()
2419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420 rm -f conftest.$ac_objext conftest$ac_exeext
2421 if { { ac_try="$ac_link"
2423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2424 *) ac_try_echo=$ac_try;;
2426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2427 $as_echo "$ac_try_echo"; } >&5
2428 (eval "$ac_link") 2>conftest.err
2430 if test -s conftest.err; then
2431 grep -v '^ *+' conftest.err >conftest.er1
2432 cat conftest.er1 >&5
2433 mv -f conftest.er1 conftest.err
2435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2436 test $ac_status = 0; } && {
2437 test -z "$ac_cxx_werror_flag" ||
2438 test ! -s conftest.err
2439 } && test -s conftest$ac_exeext && {
2440 test "$cross_compiling" = yes ||
2441 $as_test_x conftest$ac_exeext
2445 $as_echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2450 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2451 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2452 # interfere with the next link command; also delete a directory that is
2453 # left behind by Apple's compiler. We do this before executing the actions.
2454 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2455 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2456 as_fn_set_status $ac_retval
2458 } # ac_fn_cxx_try_link
2460 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2461 # ---------------------------------------------
2462 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2464 ac_fn_c_check_decl ()
2466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2467 as_decl_name=`echo $2|sed 's/ *(.*//'`
2468 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2470 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2471 if eval "test \"\${$3+set}\"" = set; then :
2472 $as_echo_n "(cached) " >&6
2474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2475 /* end confdefs.h. */
2480 #ifndef $as_decl_name
2482 (void) $as_decl_use;
2484 (void) $as_decl_name;
2492 if ac_fn_c_try_compile "$LINENO"; then :
2497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2501 $as_echo "$ac_res" >&6; }
2502 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2504 } # ac_fn_c_check_decl
2506 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2507 # -------------------------------------------
2508 # Tests whether TYPE exists after having included INCLUDES, setting cache
2509 # variable VAR accordingly.
2510 ac_fn_c_check_type ()
2512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2514 $as_echo_n "checking for $2... " >&6; }
2515 if eval "test \"\${$3+set}\"" = set; then :
2516 $as_echo_n "(cached) " >&6
2519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520 /* end confdefs.h. */
2531 if ac_fn_c_try_compile "$LINENO"; then :
2532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2533 /* end confdefs.h. */
2544 if ac_fn_c_try_compile "$LINENO"; then :
2549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2555 $as_echo "$ac_res" >&6; }
2556 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2558 } # ac_fn_c_check_type
2560 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2561 # ----------------------------------------------------
2562 # Tries to find if the field MEMBER exists in type AGGR, after including
2563 # INCLUDES, setting cache variable VAR accordingly.
2564 ac_fn_c_check_member ()
2566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2568 $as_echo_n "checking for $2.$3... " >&6; }
2569 if eval "test \"\${$4+set}\"" = set; then :
2570 $as_echo_n "(cached) " >&6
2572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h. */
2585 if ac_fn_c_try_compile "$LINENO"; then :
2588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589 /* end confdefs.h. */
2595 if (sizeof ac_aggr.$3)
2601 if ac_fn_c_try_compile "$LINENO"; then :
2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2612 $as_echo "$ac_res" >&6; }
2613 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2615 } # ac_fn_c_check_member
2617 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2618 # --------------------------------------------
2619 # Tries to find the compile-time value of EXPR in a program that includes
2620 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2622 ac_fn_c_compute_int ()
2624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2625 if test "$cross_compiling" = yes; then
2626 # Depending upon the size, compute the lo and hi bounds.
2627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2628 /* end confdefs.h. */
2633 static int test_array [1 - 2 * !(($2) >= 0)];
2640 if ac_fn_c_try_compile "$LINENO"; then :
2643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2644 /* end confdefs.h. */
2649 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2656 if ac_fn_c_try_compile "$LINENO"; then :
2657 ac_hi=$ac_mid; break
2659 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2660 if test $ac_lo -le $ac_mid; then
2664 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2670 /* end confdefs.h. */
2675 static int test_array [1 - 2 * !(($2) < 0)];
2682 if ac_fn_c_try_compile "$LINENO"; then :
2685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2686 /* end confdefs.h. */
2691 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2698 if ac_fn_c_try_compile "$LINENO"; then :
2699 ac_lo=$ac_mid; break
2701 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2702 if test $ac_mid -le $ac_hi; then
2706 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2716 # Binary search between lo and hi bounds.
2717 while test "x$ac_lo" != "x$ac_hi"; do
2718 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720 /* end confdefs.h. */
2725 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2732 if ac_fn_c_try_compile "$LINENO"; then :
2735 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2745 /* end confdefs.h. */
2747 static long int longval () { return $2; }
2748 static unsigned long int ulongval () { return $2; }
2755 FILE *f = fopen ("conftest.val", "w");
2760 long int i = longval ();
2763 fprintf (f, "%ld", i);
2767 unsigned long int i = ulongval ();
2770 fprintf (f, "%lu", i);
2772 /* Do not output a trailing newline, as this causes \r\n confusion
2773 on some platforms. */
2774 return ferror (f) || fclose (f) != 0;
2780 if ac_fn_c_try_run "$LINENO"; then :
2781 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2786 conftest.$ac_objext conftest.beam conftest.$ac_ext
2790 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2791 as_fn_set_status $ac_retval
2793 } # ac_fn_c_compute_int
2795 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2796 # ---------------------------------------------------------
2797 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2798 # the include files in INCLUDES and setting the cache variable VAR
2800 ac_fn_cxx_check_header_mongrel ()
2802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2803 if eval "test \"\${$3+set}\"" = set; then :
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2805 $as_echo_n "checking for $2... " >&6; }
2806 if eval "test \"\${$3+set}\"" = set; then :
2807 $as_echo_n "(cached) " >&6
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2811 $as_echo "$ac_res" >&6; }
2813 # Is the header compilable?
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2815 $as_echo_n "checking $2 usability... " >&6; }
2816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2817 /* end confdefs.h. */
2821 if ac_fn_cxx_try_compile "$LINENO"; then :
2822 ac_header_compiler=yes
2824 ac_header_compiler=no
2826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2828 $as_echo "$ac_header_compiler" >&6; }
2830 # Is the header present?
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2832 $as_echo_n "checking $2 presence... " >&6; }
2833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2834 /* end confdefs.h. */
2837 if ac_fn_cxx_try_cpp "$LINENO"; then :
2838 ac_header_preproc=yes
2840 ac_header_preproc=no
2842 rm -f conftest.err conftest.$ac_ext
2843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2844 $as_echo "$ac_header_preproc" >&6; }
2846 # So? What about this header?
2847 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2850 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2852 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2856 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2858 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2860 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2862 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2864 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2865 ( $as_echo "## ----------------------------------------- ##
2866 ## Report this to http://www.imagemagick.org ##
2867 ## ----------------------------------------- ##"
2868 ) | sed "s/^/$as_me: WARNING: /" >&2
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2872 $as_echo_n "checking for $2... " >&6; }
2873 if eval "test \"\${$3+set}\"" = set; then :
2874 $as_echo_n "(cached) " >&6
2876 eval "$3=\$ac_header_compiler"
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2880 $as_echo "$ac_res" >&6; }
2882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2884 } # ac_fn_cxx_check_header_mongrel
2885 cat >config.log <<_ACEOF
2886 This file contains any messages produced by compilers while
2887 running configure, to aid debugging if configure makes a mistake.
2889 It was created by ImageMagick $as_me 6.6.3, which was
2890 generated by GNU Autoconf 2.66. Invocation command line was
2902 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2903 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2904 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2905 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2906 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2908 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2909 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2911 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2912 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2913 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2914 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2915 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2916 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2917 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 test -z "$as_dir" && as_dir=.
2926 $as_echo "PATH: $as_dir"
2942 # Keep a trace of the command line.
2943 # Strip out --no-create and --no-recursion so they do not pile up.
2944 # Strip out --silent because we don't want to record it for future runs.
2945 # Also quote any args containing shell meta-characters.
2946 # Make two passes to allow for proper duplicate-argument suppression.
2950 ac_must_keep_next=false
2956 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2957 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2958 | -silent | --silent | --silen | --sile | --sil)
2961 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2964 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2966 as_fn_append ac_configure_args1 " '$ac_arg'"
2967 if test $ac_must_keep_next = true; then
2968 ac_must_keep_next=false # Got value, back to normal.
2971 *=* | --config-cache | -C | -disable-* | --disable-* \
2972 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2973 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2974 | -with-* | --with-* | -without-* | --without-* | --x)
2975 case "$ac_configure_args0 " in
2976 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2979 -* ) ac_must_keep_next=true ;;
2982 as_fn_append ac_configure_args " '$ac_arg'"
2987 { ac_configure_args0=; unset ac_configure_args0;}
2988 { ac_configure_args1=; unset ac_configure_args1;}
2990 # When interrupted or exit'd, cleanup temporary files, and complete
2991 # config.log. We remove comments because anyway the quotes in there
2992 # would cause problems or look ugly.
2993 # WARNING: Use '\'' to represent an apostrophe within the trap.
2994 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2995 trap 'exit_status=$?
2996 # Save into config.log some information that might help in debugging.
3000 $as_echo "## ---------------- ##
3001 ## Cache variables. ##
3002 ## ---------------- ##"
3004 # The following way of writing the cache mishandles newlines in values,
3006 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3007 eval ac_val=\$$ac_var
3011 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3012 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3015 _ | IFS | as_nl) ;; #(
3016 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3017 *) { eval $ac_var=; unset $ac_var;} ;;
3022 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3023 *${as_nl}ac_space=\ *)
3025 "s/'\''/'\''\\\\'\'''\''/g;
3026 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3029 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3036 $as_echo "## ----------------- ##
3037 ## Output variables. ##
3038 ## ----------------- ##"
3040 for ac_var in $ac_subst_vars
3042 eval ac_val=\$$ac_var
3044 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3046 $as_echo "$ac_var='\''$ac_val'\''"
3050 if test -n "$ac_subst_files"; then
3051 $as_echo "## ------------------- ##
3052 ## File substitutions. ##
3053 ## ------------------- ##"
3055 for ac_var in $ac_subst_files
3057 eval ac_val=\$$ac_var
3059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3061 $as_echo "$ac_var='\''$ac_val'\''"
3066 if test -s confdefs.h; then
3067 $as_echo "## ----------- ##
3074 test "$ac_signal" != 0 &&
3075 $as_echo "$as_me: caught signal $ac_signal"
3076 $as_echo "$as_me: exit $exit_status"
3078 rm -f core *.core core.conftest.* &&
3079 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3082 for ac_signal in 1 2 13 15; do
3083 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3087 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3088 rm -f -r conftest* confdefs.h
3090 $as_echo "/* confdefs.h */" > confdefs.h
3092 # Predefined preprocessor variables.
3094 cat >>confdefs.h <<_ACEOF
3095 #define PACKAGE_NAME "$PACKAGE_NAME"
3098 cat >>confdefs.h <<_ACEOF
3099 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3102 cat >>confdefs.h <<_ACEOF
3103 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3106 cat >>confdefs.h <<_ACEOF
3107 #define PACKAGE_STRING "$PACKAGE_STRING"
3110 cat >>confdefs.h <<_ACEOF
3111 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3114 cat >>confdefs.h <<_ACEOF
3115 #define PACKAGE_URL "$PACKAGE_URL"
3119 # Let the site file select an alternate cache file if it wants to.
3120 # Prefer an explicitly selected file to automatically selected ones.
3123 if test -n "$CONFIG_SITE"; then
3124 # We do not want a PATH search for config.site.
3125 case $CONFIG_SITE in #((
3126 -*) ac_site_file1=./$CONFIG_SITE;;
3127 */*) ac_site_file1=$CONFIG_SITE;;
3128 *) ac_site_file1=./$CONFIG_SITE;;
3130 elif test "x$prefix" != xNONE; then
3131 ac_site_file1=$prefix/share/config.site
3132 ac_site_file2=$prefix/etc/config.site
3134 ac_site_file1=$ac_default_prefix/share/config.site
3135 ac_site_file2=$ac_default_prefix/etc/config.site
3137 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3139 test "x$ac_site_file" = xNONE && continue
3140 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3142 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3143 sed 's/^/| /' "$ac_site_file" >&5
3145 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3147 as_fn_error $? "failed to load site script $ac_site_file
3148 See \`config.log' for more details" "$LINENO" 5; }
3152 if test -r "$cache_file"; then
3153 # Some versions of bash will fail to source /dev/null (special files
3154 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3155 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3157 $as_echo "$as_me: loading cache $cache_file" >&6;}
3159 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3160 *) . "./$cache_file";;
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3165 $as_echo "$as_me: creating cache $cache_file" >&6;}
3169 as_fn_append ac_header_list " stdlib.h"
3170 as_fn_append ac_header_list " unistd.h"
3171 as_fn_append ac_header_list " sys/param.h"
3172 # Check that the precious variables saved in the cache have kept the same
3174 ac_cache_corrupted=false
3175 for ac_var in $ac_precious_vars; do
3176 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3177 eval ac_new_set=\$ac_env_${ac_var}_set
3178 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3179 eval ac_new_val=\$ac_env_${ac_var}_value
3180 case $ac_old_set,$ac_new_set in
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3183 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3184 ac_cache_corrupted=: ;;
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3187 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3188 ac_cache_corrupted=: ;;
3191 if test "x$ac_old_val" != "x$ac_new_val"; then
3192 # differences in whitespace do not lead to failure.
3193 ac_old_val_w=`echo x $ac_old_val`
3194 ac_new_val_w=`echo x $ac_new_val`
3195 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3197 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3198 ac_cache_corrupted=:
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3201 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3202 eval $ac_var=\$ac_old_val
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3205 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3206 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3207 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3210 # Pass precious variables to config.status.
3211 if test "$ac_new_set" = set; then
3213 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3214 *) ac_arg=$ac_var=$ac_new_val ;;
3216 case " $ac_configure_args " in
3217 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3218 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3222 if $ac_cache_corrupted; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3224 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3226 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3227 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3229 ## -------------------- ##
3230 ## Main body of script. ##
3231 ## -------------------- ##
3234 ac_cpp='$CPP $CPPFLAGS'
3235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3242 for ac_dir in config "$srcdir"/config; do
3243 if test -f "$ac_dir/install-sh"; then
3245 ac_install_sh="$ac_aux_dir/install-sh -c"
3247 elif test -f "$ac_dir/install.sh"; then
3249 ac_install_sh="$ac_aux_dir/install.sh -c"
3251 elif test -f "$ac_dir/shtool"; then
3253 ac_install_sh="$ac_aux_dir/shtool install -c"
3257 if test -z "$ac_aux_dir"; then
3258 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3261 # These three variables are undocumented and unsupported,
3262 # and are intended to be withdrawn in a future Autoconf release.
3263 # They can cause serious problems if a builder's source tree is in a directory
3264 # whose full name contains unusual characters.
3265 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3266 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3267 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3272 ac_config_headers="$ac_config_headers config/config.h"
3274 ac_config_commands="$ac_config_commands magick/magick-config.h"
3276 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"
3280 # Save initial user-tunable values
3283 for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3284 eval isset=\${$var+set}
3285 if test "$isset" = 'set'; then
3286 eval val=$`echo $var`
3287 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3292 CONFIGURE_ARGS="$0 ${ac_configure_args}"
3295 # Source file containing package/library versioning information.
3296 . ${srcdir}/version.sh
3298 echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3299 # Make sure we can run config.sub.
3300 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3301 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3304 $as_echo_n "checking build system type... " >&6; }
3305 if test "${ac_cv_build+set}" = set; then :
3306 $as_echo_n "(cached) " >&6
3308 ac_build_alias=$build_alias
3309 test "x$ac_build_alias" = x &&
3310 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3311 test "x$ac_build_alias" = x &&
3312 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3313 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3314 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3318 $as_echo "$ac_cv_build" >&6; }
3319 case $ac_cv_build in
3321 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3324 ac_save_IFS=$IFS; IFS='-'
3330 # Remember, the first character of IFS is used to create $*,
3331 # except with old shells:
3334 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3338 $as_echo_n "checking host system type... " >&6; }
3339 if test "${ac_cv_host+set}" = set; then :
3340 $as_echo_n "(cached) " >&6
3342 if test "x$host_alias" = x; then
3343 ac_cv_host=$ac_cv_build
3345 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3346 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3351 $as_echo "$ac_cv_host" >&6; }
3354 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3357 ac_save_IFS=$IFS; IFS='-'
3363 # Remember, the first character of IFS is used to create $*,
3364 # except with old shells:
3367 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3371 $as_echo_n "checking target system type... " >&6; }
3372 if test "${ac_cv_target+set}" = set; then :
3373 $as_echo_n "(cached) " >&6
3375 if test "x$target_alias" = x; then
3376 ac_cv_target=$ac_cv_host
3378 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3379 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3384 $as_echo "$ac_cv_target" >&6; }
3385 case $ac_cv_target in
3387 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3389 target=$ac_cv_target
3390 ac_save_IFS=$IFS; IFS='-'
3396 # Remember, the first character of IFS is used to create $*,
3397 # except with old shells:
3400 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3403 # The aliases save the names the user supplied, while $host etc.
3404 # will get canonicalized.
3405 test -n "$target_alias" &&
3406 test "$program_prefix$program_suffix$program_transform_name" = \
3408 program_prefix=${target_alias}-
3414 MAGICK_TARGET_CPU=$target_cpu
3417 MAGICK_TARGET_VENDOR=$target_vendor
3420 MAGICK_TARGET_OS=$target_os
3423 # Substitute library versioning
3424 MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3426 MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3430 # Ensure that make can run correctly
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3432 $as_echo_n "checking whether build environment is sane... " >&6; }
3435 echo timestamp > conftest.file
3436 # Reject unsafe characters in $srcdir or the absolute working directory
3437 # name. Accept space and tab only in the latter.
3441 *[\\\"\#\$\&\'\`$am_lf]*)
3442 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3445 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3446 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3449 # Do `set' in a subshell so we don't clobber the current shell's
3450 # arguments. Must try -L first in case configure is actually a
3451 # symlink; some systems play weird games with the mod time of symlinks
3452 # (eg FreeBSD returns the mod time of the symlink's containing
3455 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3456 if test "$*" = "X"; then
3458 set X `ls -t "$srcdir/configure" conftest.file`
3461 if test "$*" != "X $srcdir/configure conftest.file" \
3462 && test "$*" != "X conftest.file $srcdir/configure"; then
3464 # If neither matched, then we have a broken ls. This can happen
3465 # if, for instance, CONFIG_SHELL is bash and it inherits a
3466 # broken ls alias from the environment. This has actually
3467 # happened. Such a system could not be considered "sane".
3468 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3469 alias in your environment" "$LINENO" 5
3472 test "$2" = conftest.file
3478 as_fn_error $? "newly created file is older than distributed files!
3479 Check your system clock" "$LINENO" 5
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3482 $as_echo "yes" >&6; }
3484 am__api_version='1.11'
3486 # Find a good install program. We prefer a C program (faster),
3487 # so one script is as good as another. But avoid the broken or
3488 # incompatible versions:
3489 # SysV /etc/install, /usr/sbin/install
3490 # SunOS /usr/etc/install
3491 # IRIX /sbin/install
3493 # AmigaOS /C/install, which installs bootblocks on floppy discs
3494 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3495 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3496 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3497 # OS/2's system install, which has a completely different semantic
3498 # ./install, which can be erroneously created by make from ./install.sh.
3499 # Reject install programs that cannot install multiple files.
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3501 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3502 if test -z "$INSTALL"; then
3503 if test "${ac_cv_path_install+set}" = set; then :
3504 $as_echo_n "(cached) " >&6
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 test -z "$as_dir" && as_dir=.
3511 # Account for people who put trailing slashes in PATH elements.
3512 case $as_dir/ in #((
3513 ./ | .// | /[cC]/* | \
3514 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3515 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3518 # OSF1 and SCO ODT 3.0 have their own names for install.
3519 # Don't use installbsd from OSF since it installs stuff as root
3521 for ac_prog in ginstall scoinst install; do
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3524 if test $ac_prog = install &&
3525 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3526 # AIX install. It has an incompatible calling convention.
3528 elif test $ac_prog = install &&
3529 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3530 # program-specific install script used by HP pwplus--don't use.
3533 rm -rf conftest.one conftest.two conftest.dir
3534 echo one > conftest.one
3535 echo two > conftest.two
3537 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3538 test -s conftest.one && test -s conftest.two &&
3539 test -s conftest.dir/conftest.one &&
3540 test -s conftest.dir/conftest.two
3542 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3555 rm -rf conftest.one conftest.two conftest.dir
3558 if test "${ac_cv_path_install+set}" = set; then
3559 INSTALL=$ac_cv_path_install
3561 # As a last resort, use the slow shell script. Don't cache a
3562 # value for INSTALL within a source directory, because that will
3563 # break other packages using the cache if that directory is
3564 # removed, or if the value is a relative name.
3565 INSTALL=$ac_install_sh
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3569 $as_echo "$INSTALL" >&6; }
3571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3572 # It thinks the first close brace ends the variable substitution.
3573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3575 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3577 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3579 test "$program_prefix" != NONE &&
3580 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3581 # Use a double $ so make ignores it.
3582 test "$program_suffix" != NONE &&
3583 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3584 # Double any \ or $.
3585 # By default was `s,x,x', remove it if useless.
3586 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3587 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3589 # expand $ac_aux_dir to an absolute path
3590 am_aux_dir=`cd $ac_aux_dir && pwd`
3592 if test x"${MISSING+set}" != xset; then
3595 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3597 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3600 # Use eval to expand $SHELL
3601 if eval "$MISSING --run true"; then
3602 am_missing_run="$MISSING --run "
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3606 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3609 if test x"${install_sh}" != xset; then
3612 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3614 install_sh="\${SHELL} $am_aux_dir/install-sh"
3618 # Installed binaries are usually stripped using `strip' when the user
3619 # run `make install-strip'. However `strip' might not be the right
3620 # tool to use in cross-compilation environments, therefore Automake
3621 # will honor the `STRIP' environment variable to overrule this program.
3622 if test "$cross_compiling" != no; then
3623 if test -n "$ac_tool_prefix"; then
3624 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3625 set dummy ${ac_tool_prefix}strip; ac_word=$2
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3627 $as_echo_n "checking for $ac_word... " >&6; }
3628 if test "${ac_cv_prog_STRIP+set}" = set; then :
3629 $as_echo_n "(cached) " >&6
3631 if test -n "$STRIP"; then
3632 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3638 test -z "$as_dir" && as_dir=.
3639 for ac_exec_ext in '' $ac_executable_extensions; do
3640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3641 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3651 STRIP=$ac_cv_prog_STRIP
3652 if test -n "$STRIP"; then
3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3654 $as_echo "$STRIP" >&6; }
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 $as_echo "no" >&6; }
3662 if test -z "$ac_cv_prog_STRIP"; then
3664 # Extract the first word of "strip", so it can be a program name with args.
3665 set dummy strip; ac_word=$2
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3667 $as_echo_n "checking for $ac_word... " >&6; }
3668 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3669 $as_echo_n "(cached) " >&6
3671 if test -n "$ac_ct_STRIP"; then
3672 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 test -z "$as_dir" && as_dir=.
3679 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681 ac_cv_prog_ac_ct_STRIP="strip"
3682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3691 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3692 if test -n "$ac_ct_STRIP"; then
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3694 $as_echo "$ac_ct_STRIP" >&6; }
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3697 $as_echo "no" >&6; }
3700 if test "x$ac_ct_STRIP" = x; then
3703 case $cross_compiling:$ac_tool_warned in
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3707 ac_tool_warned=yes ;;
3712 STRIP="$ac_cv_prog_STRIP"
3716 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3719 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3720 if test -z "$MKDIR_P"; then
3721 if test "${ac_cv_path_mkdir+set}" = set; then :
3722 $as_echo_n "(cached) " >&6
3724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3728 test -z "$as_dir" && as_dir=.
3729 for ac_prog in mkdir gmkdir; do
3730 for ac_exec_ext in '' $ac_executable_extensions; do
3731 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3732 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3733 'mkdir (GNU coreutils) '* | \
3734 'mkdir (coreutils) '* | \
3735 'mkdir (fileutils) '4.1*)
3736 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3746 test -d ./--version && rmdir ./--version
3747 if test "${ac_cv_path_mkdir+set}" = set; then
3748 MKDIR_P="$ac_cv_path_mkdir -p"
3750 # As a last resort, use the slow shell script. Don't cache a
3751 # value for MKDIR_P within a source directory, because that will
3752 # break other packages using the cache if that directory is
3753 # removed, or if the value is a relative name.
3754 MKDIR_P="$ac_install_sh -d"
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3758 $as_echo "$MKDIR_P" >&6; }
3762 [\\/$]* | ?:[\\/]*) ;;
3763 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3766 for ac_prog in gawk mawk nawk awk
3768 # Extract the first word of "$ac_prog", so it can be a program name with args.
3769 set dummy $ac_prog; ac_word=$2
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3771 $as_echo_n "checking for $ac_word... " >&6; }
3772 if test "${ac_cv_prog_AWK+set}" = set; then :
3773 $as_echo_n "(cached) " >&6
3775 if test -n "$AWK"; then
3776 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 test -z "$as_dir" && as_dir=.
3783 for ac_exec_ext in '' $ac_executable_extensions; do
3784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3785 ac_cv_prog_AWK="$ac_prog"
3786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3796 if test -n "$AWK"; then
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3798 $as_echo "$AWK" >&6; }
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801 $as_echo "no" >&6; }
3805 test -n "$AWK" && break
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3809 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3811 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3812 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3813 $as_echo_n "(cached) " >&6
3815 cat >conftest.make <<\_ACEOF
3818 @echo '@@@%%%=$(MAKE)=@@@%%%'
3820 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3821 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3823 eval ac_cv_prog_make_${ac_make}_set=yes;;
3825 eval ac_cv_prog_make_${ac_make}_set=no;;
3829 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3831 $as_echo "yes" >&6; }
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835 $as_echo "no" >&6; }
3836 SET_MAKE="MAKE=${MAKE-make}"
3839 rm -rf .tst 2>/dev/null
3840 mkdir .tst 2>/dev/null
3841 if test -d .tst; then
3846 rmdir .tst 2>/dev/null
3848 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3849 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3850 # is not polluted with repeated "-I."
3851 am__isrc=' -I$(srcdir)'
3852 # test to see if srcdir already configured
3853 if test -f $srcdir/config.status; then
3854 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3858 # test whether we have cygpath
3859 if test -z "$CYGPATH_W"; then
3860 if (cygpath --version) >/dev/null 2>/dev/null; then
3861 CYGPATH_W='cygpath -w'
3868 # Define the identity of the package.
3869 PACKAGE=$PACKAGE_NAME
3870 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3873 # Some tools Automake needs.
3875 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3878 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3881 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3884 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3887 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3889 # We need awk for the "check" target. The system "awk" is bad on
3891 # Always define AMTAR for backward compatibility.
3893 AMTAR=${AMTAR-"${am_missing_run}tar"}
3895 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3902 # Enable support for silent build rules
3903 # Check whether --enable-silent-rules was given.
3904 if test "${enable_silent_rules+set}" = set; then :
3905 enableval=$enable_silent_rules;
3908 case $enable_silent_rules in
3909 yes) AM_DEFAULT_VERBOSITY=0;;
3910 no) AM_DEFAULT_VERBOSITY=1;;
3911 *) AM_DEFAULT_VERBOSITY=0;;
3916 MAGICK_LIB_VERSION="0x"
3917 if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3918 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3920 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3921 if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3922 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3924 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3925 if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3926 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3928 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3931 # Definition used to define MagickLibVersionText in version.h
3932 MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3935 # Definition used to define MagickLibVersionNumber in version.h
3936 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3939 # Regenerate config.status if ChangeLog or version.sh is updated.
3940 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3946 MAGICK_CPPFLAGS=$CPPFLAGS_USER
3947 MAGICK_PCFLAGS=$CPPFLAGS_USER
3953 # Evaluate shell variable equivalents to Makefile directory variables
3955 if test "x$prefix" = xNONE; then
3956 prefix=$ac_default_prefix
3958 # Let make expand exec_prefix.
3959 if test "x$exec_prefix" = xNONE; then
3960 exec_prefix='${prefix}'
3964 eval "eval PREFIX_DIR=${prefix}"
3966 eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3968 eval "eval BIN_DIR=$bindir"
3970 eval "eval SBIN_DIR=$sbindir"
3972 eval "eval LIBEXEC_DIR=$libexecdir"
3974 eval "eval DATA_DIR=$datadir"
3976 eval "eval SYSCONF_DIR=$sysconfdir"
3978 eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3980 eval "eval LOCALSTATE_DIR=$localstatedir"
3982 eval "eval LIB_DIR=$libdir"
3984 eval "eval INCLUDE_DIR=$includedir"
3986 eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
3988 eval "eval INFO_DIR=$infodir"
3990 eval "eval MAN_DIR=$mandir"
3993 # Get full paths to source and build directories
3994 srcdirfull="`cd $srcdir && pwd`"
3998 # Compute variables useful for running uninstalled software.
4000 MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4001 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4002 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4003 MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4005 case "${build_os}" in
4007 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4008 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4009 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4010 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4014 case "${host_os}" in
4027 # Enable OS features.
4029 DEPDIR="${am__leading_dot}deps"
4031 ac_config_commands="$ac_config_commands depfiles"
4034 am_make=${MAKE-make}
4035 cat > confinc << 'END'
4037 @echo this is the am__doit target
4040 # If we don't find an include directive, just comment out the code.
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4042 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4046 # First try GNU make style include.
4047 echo "include confinc" > confmf
4048 # Ignore all kinds of additional output from `make'.
4049 case `$am_make -s -f confmf 2> /dev/null` in #(
4050 *the\ am__doit\ target*)
4056 # Now try BSD make style include.
4057 if test "$am__include" = "#"; then
4058 echo '.include "confinc"' > confmf
4059 case `$am_make -s -f confmf 2> /dev/null` in #(
4060 *the\ am__doit\ target*)
4061 am__include=.include
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4070 $as_echo "$_am_result" >&6; }
4071 rm -f confinc confmf
4073 # Check whether --enable-dependency-tracking was given.
4074 if test "${enable_dependency_tracking+set}" = set; then :
4075 enableval=$enable_dependency_tracking;
4078 if test "x$enable_dependency_tracking" != xno; then
4079 am_depcomp="$ac_aux_dir/depcomp"
4082 if test "x$enable_dependency_tracking" != xno; then
4092 ac_cpp='$CPP $CPPFLAGS'
4093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4096 if test -n "$ac_tool_prefix"; then
4097 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4098 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100 $as_echo_n "checking for $ac_word... " >&6; }
4101 if test "${ac_cv_prog_CC+set}" = set; then :
4102 $as_echo_n "(cached) " >&6
4104 if test -n "$CC"; then
4105 ac_cv_prog_CC="$CC" # Let the user override the test.
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4114 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 if test -n "$CC"; then
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4127 $as_echo "$CC" >&6; }
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130 $as_echo "no" >&6; }
4135 if test -z "$ac_cv_prog_CC"; then
4137 # Extract the first word of "gcc", so it can be a program name with args.
4138 set dummy gcc; ac_word=$2
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140 $as_echo_n "checking for $ac_word... " >&6; }
4141 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4142 $as_echo_n "(cached) " >&6
4144 if test -n "$ac_ct_CC"; then
4145 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 test -z "$as_dir" && as_dir=.
4152 for ac_exec_ext in '' $ac_executable_extensions; do
4153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4154 ac_cv_prog_ac_ct_CC="gcc"
4155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4164 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4165 if test -n "$ac_ct_CC"; then
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4167 $as_echo "$ac_ct_CC" >&6; }
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170 $as_echo "no" >&6; }
4173 if test "x$ac_ct_CC" = x; then
4176 case $cross_compiling:$ac_tool_warned in
4178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4180 ac_tool_warned=yes ;;
4188 if test -z "$CC"; then
4189 if test -n "$ac_tool_prefix"; then
4190 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4191 set dummy ${ac_tool_prefix}cc; ac_word=$2
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4193 $as_echo_n "checking for $ac_word... " >&6; }
4194 if test "${ac_cv_prog_CC+set}" = set; then :
4195 $as_echo_n "(cached) " >&6
4197 if test -n "$CC"; then
4198 ac_cv_prog_CC="$CC" # Let the user override the test.
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 test -z "$as_dir" && as_dir=.
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4207 ac_cv_prog_CC="${ac_tool_prefix}cc"
4208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4218 if test -n "$CC"; then
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4220 $as_echo "$CC" >&6; }
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4223 $as_echo "no" >&6; }
4229 if test -z "$CC"; then
4230 # Extract the first word of "cc", so it can be a program name with args.
4231 set dummy cc; ac_word=$2
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4233 $as_echo_n "checking for $ac_word... " >&6; }
4234 if test "${ac_cv_prog_CC+set}" = set; then :
4235 $as_echo_n "(cached) " >&6
4237 if test -n "$CC"; then
4238 ac_cv_prog_CC="$CC" # Let the user override the test.
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 test -z "$as_dir" && as_dir=.
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4248 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4249 ac_prog_rejected=yes
4253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4260 if test $ac_prog_rejected = yes; then
4261 # We found a bogon in the path, so make sure we never use it.
4262 set dummy $ac_cv_prog_CC
4264 if test $# != 0; then
4265 # We chose a different compiler from the bogus one.
4266 # However, it has the same basename, so the bogon will be chosen
4267 # first if we set CC to just the basename; use the full file name.
4269 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4275 if test -n "$CC"; then
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4277 $as_echo "$CC" >&6; }
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4280 $as_echo "no" >&6; }
4285 if test -z "$CC"; then
4286 if test -n "$ac_tool_prefix"; then
4287 for ac_prog in cl.exe
4289 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4290 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4292 $as_echo_n "checking for $ac_word... " >&6; }
4293 if test "${ac_cv_prog_CC+set}" = set; then :
4294 $as_echo_n "(cached) " >&6
4296 if test -n "$CC"; then
4297 ac_cv_prog_CC="$CC" # Let the user override the test.
4299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4303 test -z "$as_dir" && as_dir=.
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4306 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4317 if test -n "$CC"; then
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4319 $as_echo "$CC" >&6; }
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 $as_echo "no" >&6; }
4326 test -n "$CC" && break
4329 if test -z "$CC"; then
4331 for ac_prog in cl.exe
4333 # Extract the first word of "$ac_prog", so it can be a program name with args.
4334 set dummy $ac_prog; ac_word=$2
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336 $as_echo_n "checking for $ac_word... " >&6; }
4337 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4338 $as_echo_n "(cached) " >&6
4340 if test -n "$ac_ct_CC"; then
4341 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4347 test -z "$as_dir" && as_dir=.
4348 for ac_exec_ext in '' $ac_executable_extensions; do
4349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4350 ac_cv_prog_ac_ct_CC="$ac_prog"
4351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4360 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4361 if test -n "$ac_ct_CC"; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4363 $as_echo "$ac_ct_CC" >&6; }
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4370 test -n "$ac_ct_CC" && break
4373 if test "x$ac_ct_CC" = x; then
4376 case $cross_compiling:$ac_tool_warned in
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4380 ac_tool_warned=yes ;;
4389 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4390 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4391 as_fn_error $? "no acceptable C compiler found in \$PATH
4392 See \`config.log' for more details" "$LINENO" 5; }
4394 # Provide some information about the compiler.
4395 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4398 for ac_option in --version -v -V -qversion; do
4399 { { ac_try="$ac_compiler $ac_option >&5"
4401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4402 *) ac_try_echo=$ac_try;;
4404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4405 $as_echo "$ac_try_echo"; } >&5
4406 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4408 if test -s conftest.err; then
4410 ... rest of stderr output deleted ...
4411 10q' conftest.err >conftest.er1
4412 cat conftest.er1 >&5
4414 rm -f conftest.er1 conftest.err
4415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4416 test $ac_status = 0; }
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420 /* end confdefs.h. */
4430 ac_clean_files_save=$ac_clean_files
4431 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4432 # Try to create an executable without -o first, disregard a.out.
4433 # It will help us diagnose broken compilers, and finding out an intuition
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4436 $as_echo_n "checking whether the C compiler works... " >&6; }
4437 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4439 # The possible output files:
4440 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4443 for ac_file in $ac_files
4446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4447 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4452 if { { ac_try="$ac_link_default"
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4458 $as_echo "$ac_try_echo"; } >&5
4459 (eval "$ac_link_default") 2>&5
4461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4462 test $ac_status = 0; }; then :
4463 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4464 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4465 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4466 # so that the user can short-circuit this test for compilers unknown to
4468 for ac_file in $ac_files ''
4470 test -f "$ac_file" || continue
4472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4475 # We found the default executable, but exeext='' is most
4479 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4481 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4483 # We set ac_cv_exeext here because the later test for it is not
4484 # safe: cross compilers may not add the suffix if given an `-o'
4485 # argument, so we may need to know it at that point already.
4486 # Even if this section looks crufty: it has the advantage of
4493 test "$ac_cv_exeext" = no && ac_cv_exeext=
4498 if test -z "$ac_file"; then :
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4500 $as_echo "no" >&6; }
4501 $as_echo "$as_me: failed program was:" >&5
4502 sed 's/^/| /' conftest.$ac_ext >&5
4504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4505 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4506 as_fn_error 77 "C compiler cannot create executables
4507 See \`config.log' for more details" "$LINENO" 5; }
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4510 $as_echo "yes" >&6; }
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4513 $as_echo_n "checking for C compiler default output file name... " >&6; }
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4515 $as_echo "$ac_file" >&6; }
4516 ac_exeext=$ac_cv_exeext
4518 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4519 ac_clean_files=$ac_clean_files_save
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4521 $as_echo_n "checking for suffix of executables... " >&6; }
4522 if { { ac_try="$ac_link"
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4528 $as_echo "$ac_try_echo"; } >&5
4529 (eval "$ac_link") 2>&5
4531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4532 test $ac_status = 0; }; then :
4533 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4534 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4535 # work properly (i.e., refer to `conftest.exe'), while it won't with
4537 for ac_file in conftest.exe conftest conftest.*; do
4538 test -f "$ac_file" || continue
4540 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4541 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4549 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4550 See \`config.log' for more details" "$LINENO" 5; }
4552 rm -f conftest conftest$ac_cv_exeext
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4554 $as_echo "$ac_cv_exeext" >&6; }
4556 rm -f conftest.$ac_ext
4557 EXEEXT=$ac_cv_exeext
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4565 FILE *f = fopen ("conftest.out", "w");
4566 return ferror (f) || fclose (f) != 0;
4572 ac_clean_files="$ac_clean_files conftest.out"
4573 # Check that the compiler produces executables we can run. If not, either
4574 # the compiler is broken, or we cross compile.
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4576 $as_echo_n "checking whether we are cross compiling... " >&6; }
4577 if test "$cross_compiling" != yes; then
4578 { { ac_try="$ac_link"
4580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4581 *) ac_try_echo=$ac_try;;
4583 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4584 $as_echo "$ac_try_echo"; } >&5
4585 (eval "$ac_link") 2>&5
4587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4588 test $ac_status = 0; }
4589 if { ac_try='./conftest$ac_cv_exeext'
4590 { { case "(($ac_try" in
4591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4594 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4595 $as_echo "$ac_try_echo"; } >&5
4596 (eval "$ac_try") 2>&5
4598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4599 test $ac_status = 0; }; }; then
4602 if test "$cross_compiling" = maybe; then
4605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4607 as_fn_error $? "cannot run C compiled programs.
4608 If you meant to cross compile, use \`--host'.
4609 See \`config.log' for more details" "$LINENO" 5; }
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4614 $as_echo "$cross_compiling" >&6; }
4616 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4617 ac_clean_files=$ac_clean_files_save
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4619 $as_echo_n "checking for suffix of object files... " >&6; }
4620 if test "${ac_cv_objext+set}" = set; then :
4621 $as_echo_n "(cached) " >&6
4623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h. */
4634 rm -f conftest.o conftest.obj
4635 if { { ac_try="$ac_compile"
4637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638 *) ac_try_echo=$ac_try;;
4640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4641 $as_echo "$ac_try_echo"; } >&5
4642 (eval "$ac_compile") 2>&5
4644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4645 test $ac_status = 0; }; then :
4646 for ac_file in conftest.o conftest.obj conftest.*; do
4647 test -f "$ac_file" || continue;
4649 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4650 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4655 $as_echo "$as_me: failed program was:" >&5
4656 sed 's/^/| /' conftest.$ac_ext >&5
4658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4660 as_fn_error $? "cannot compute suffix of object files: cannot compile
4661 See \`config.log' for more details" "$LINENO" 5; }
4663 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4666 $as_echo "$ac_cv_objext" >&6; }
4667 OBJEXT=$ac_cv_objext
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4670 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4671 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4672 $as_echo_n "(cached) " >&6
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4688 if ac_fn_c_try_compile "$LINENO"; then :
4693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4694 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4698 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4699 if test $ac_compiler_gnu = yes; then
4704 ac_test_CFLAGS=${CFLAGS+set}
4705 ac_save_CFLAGS=$CFLAGS
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4707 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4708 if test "${ac_cv_prog_cc_g+set}" = set; then :
4709 $as_echo_n "(cached) " >&6
4711 ac_save_c_werror_flag=$ac_c_werror_flag
4712 ac_c_werror_flag=yes
4715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h. */
4726 if ac_fn_c_try_compile "$LINENO"; then :
4730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4731 /* end confdefs.h. */
4741 if ac_fn_c_try_compile "$LINENO"; then :
4744 ac_c_werror_flag=$ac_save_c_werror_flag
4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4747 /* end confdefs.h. */
4757 if ac_fn_c_try_compile "$LINENO"; then :
4760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4765 ac_c_werror_flag=$ac_save_c_werror_flag
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4768 $as_echo "$ac_cv_prog_cc_g" >&6; }
4769 if test "$ac_test_CFLAGS" = set; then
4770 CFLAGS=$ac_save_CFLAGS
4771 elif test $ac_cv_prog_cc_g = yes; then
4772 if test "$GCC" = yes; then
4778 if test "$GCC" = yes; then
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4785 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4786 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4787 $as_echo_n "(cached) " >&6
4789 ac_cv_prog_cc_c89=no
4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792 /* end confdefs.h. */
4795 #include <sys/types.h>
4796 #include <sys/stat.h>
4797 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4798 struct buf { int x; };
4799 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4800 static char *e (p, i)
4806 static char *f (char * (*g) (char **, int), char **p, ...)
4811 s = g (p, va_arg (v,int));
4816 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4817 function prototypes and stuff, but not '\xHH' hex character constants.
4818 These don't provoke an error unfortunately, instead are silently treated
4819 as 'x'. The following induces an error, until -std is added to get
4820 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4821 array size at least. It's necessary to write '\x00'==0 to get something
4822 that's true only with -std. */
4823 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4825 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4826 inside strings and character constants. */
4828 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4830 int test (int i, double x);
4831 struct s1 {int (*f) (int a);};
4832 struct s2 {int (*f) (double a);};
4833 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4839 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4844 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4845 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4847 CC="$ac_save_CC $ac_arg"
4848 if ac_fn_c_try_compile "$LINENO"; then :
4849 ac_cv_prog_cc_c89=$ac_arg
4851 rm -f core conftest.err conftest.$ac_objext
4852 test "x$ac_cv_prog_cc_c89" != "xno" && break
4854 rm -f conftest.$ac_ext
4859 case "x$ac_cv_prog_cc_c89" in
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4862 $as_echo "none needed" >&6; } ;;
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4865 $as_echo "unsupported" >&6; } ;;
4867 CC="$CC $ac_cv_prog_cc_c89"
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4869 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4871 if test "x$ac_cv_prog_cc_c89" != xno; then :
4876 ac_cpp='$CPP $CPPFLAGS'
4877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4881 depcc="$CC" am_compiler_list=
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4884 $as_echo_n "checking dependency style of $depcc... " >&6; }
4885 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4886 $as_echo_n "(cached) " >&6
4888 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4889 # We make a subdir and do the tests there. Otherwise we can end up
4890 # making bogus files that we don't know about and never remove. For
4891 # instance it was reported that on HP-UX the gcc test will end up
4892 # making a dummy file named `D' -- because `-MD' means `put the output
4895 # Copy depcomp to subdir because otherwise we won't find it if we're
4896 # using a relative directory.
4897 cp "$am_depcomp" conftest.dir
4899 # We will build objects and dependencies in a subdirectory because
4900 # it helps to detect inapplicable dependency modes. For instance
4901 # both Tru64's cc and ICC support -MD to output dependencies as a
4902 # side effect of compilation, but ICC will put the dependencies in
4903 # the current directory while Tru64 will put them in the object
4907 am_cv_CC_dependencies_compiler_type=none
4908 if test "$am_compiler_list" = ""; then
4909 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4912 case " $depcc " in #(
4913 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4916 for depmode in $am_compiler_list; do
4917 # Setup a source with many dependencies, because some compilers
4918 # like to wrap large dependency lists on column 80 (with \), and
4919 # we should not choose a depcomp mode which is confused by this.
4921 # We need to recreate these files for each test, as the compiler may
4922 # overwrite some of them when testing with obscure command lines.
4923 # This happens at least with the AIX C compiler.
4925 for i in 1 2 3 4 5 6; do
4926 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4927 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4928 # Solaris 8's {/usr,}/bin/sh.
4929 touch sub/conftst$i.h
4931 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4933 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4934 # mode. It turns out that the SunPro C++ compiler does not properly
4935 # handle `-M -o', and we need to detect this. Also, some Intel
4936 # versions had trouble with output in subdirs
4937 am__obj=sub/conftest.${OBJEXT-o}
4938 am__minus_obj="-o $am__obj"
4941 # This depmode causes a compiler race in universal mode.
4942 test "$am__universal" = false || continue
4945 # after this tag, mechanisms are not by side-effect, so they'll
4946 # only be used when explicitly requested
4947 if test "x$enable_dependency_tracking" = xyes; then
4953 msvisualcpp | msvcmsys)
4954 # This compiler won't grok `-c -o', but also, the minuso test has
4955 # not run yet. These depmodes are late enough in the game, and
4956 # so weak that their functioning should not be impacted.
4957 am__obj=conftest.${OBJEXT-o}
4962 if depmode=$depmode \
4963 source=sub/conftest.c object=$am__obj \
4964 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4965 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4966 >/dev/null 2>conftest.err &&
4967 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4968 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4969 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4970 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4971 # icc doesn't choke on unknown options, it will just issue warnings
4972 # or remarks (even with -Werror). So we grep stderr for any message
4973 # that says an option was ignored or not supported.
4974 # When given -MP, icc 7.0 and 7.1 complain thusly:
4975 # icc: Command line warning: ignoring option '-M'; no argument required
4976 # The diagnosis changed in icc 8.0:
4977 # icc: Command line remark: option '-MP' not supported
4978 if (grep 'ignoring option' conftest.err ||
4979 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4980 am_cv_CC_dependencies_compiler_type=$depmode
4989 am_cv_CC_dependencies_compiler_type=none
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4994 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4995 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4998 test "x$enable_dependency_tracking" != xno \
4999 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5001 am__fastdepCC_FALSE='#'
5003 am__fastdepCC_TRUE='#'
5004 am__fastdepCC_FALSE=
5010 ac_cpp='$CPP $CPPFLAGS'
5011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5015 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5016 # On Suns, sometimes $CPP names a directory.
5017 if test -n "$CPP" && test -d "$CPP"; then
5020 if test -z "$CPP"; then
5021 if test "${ac_cv_prog_CPP+set}" = set; then :
5022 $as_echo_n "(cached) " >&6
5024 # Double quotes because CPP needs to be expanded
5025 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5028 for ac_c_preproc_warn_flag in '' yes
5030 # Use a header file that comes with gcc, so configuring glibc
5031 # with a fresh cross-compiler works.
5032 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5033 # <limits.h> exists even on freestanding compilers.
5034 # On the NeXT, cc -E runs the code through the compiler's parser,
5035 # not just through cpp. "Syntax error" is here to catch this case.
5036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5037 /* end confdefs.h. */
5039 # include <limits.h>
5041 # include <assert.h>
5045 if ac_fn_c_try_cpp "$LINENO"; then :
5048 # Broken: fails on valid input.
5051 rm -f conftest.err conftest.$ac_ext
5053 # OK, works on sane cases. Now check whether nonexistent headers
5054 # can be detected and how.
5055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5056 /* end confdefs.h. */
5057 #include <ac_nonexistent.h>
5059 if ac_fn_c_try_cpp "$LINENO"; then :
5060 # Broken: success on invalid input.
5063 # Passes both tests.
5067 rm -f conftest.err conftest.$ac_ext
5070 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5071 rm -f conftest.err conftest.$ac_ext
5072 if $ac_preproc_ok; then :
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5085 $as_echo "$CPP" >&6; }
5087 for ac_c_preproc_warn_flag in '' yes
5089 # Use a header file that comes with gcc, so configuring glibc
5090 # with a fresh cross-compiler works.
5091 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5092 # <limits.h> exists even on freestanding compilers.
5093 # On the NeXT, cc -E runs the code through the compiler's parser,
5094 # not just through cpp. "Syntax error" is here to catch this case.
5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096 /* end confdefs.h. */
5098 # include <limits.h>
5100 # include <assert.h>
5104 if ac_fn_c_try_cpp "$LINENO"; then :
5107 # Broken: fails on valid input.
5110 rm -f conftest.err conftest.$ac_ext
5112 # OK, works on sane cases. Now check whether nonexistent headers
5113 # can be detected and how.
5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115 /* end confdefs.h. */
5116 #include <ac_nonexistent.h>
5118 if ac_fn_c_try_cpp "$LINENO"; then :
5119 # Broken: success on invalid input.
5122 # Passes both tests.
5126 rm -f conftest.err conftest.$ac_ext
5129 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5130 rm -f conftest.err conftest.$ac_ext
5131 if $ac_preproc_ok; then :
5134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5135 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5136 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5137 See \`config.log' for more details" "$LINENO" 5; }
5141 ac_cpp='$CPP $CPPFLAGS'
5142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5148 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5149 if test "${ac_cv_path_GREP+set}" = set; then :
5150 $as_echo_n "(cached) " >&6
5152 if test -z "$GREP"; then
5153 ac_path_GREP_found=false
5154 # Loop through the user's path and test for each of PROGNAME-LIST
5155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5156 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5159 test -z "$as_dir" && as_dir=.
5160 for ac_prog in grep ggrep; do
5161 for ac_exec_ext in '' $ac_executable_extensions; do
5162 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5163 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5164 # Check for GNU ac_path_GREP and select it if it is found.
5165 # Check for GNU $ac_path_GREP
5166 case `"$ac_path_GREP" --version 2>&1` in
5168 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5171 $as_echo_n 0123456789 >"conftest.in"
5174 cat "conftest.in" "conftest.in" >"conftest.tmp"
5175 mv "conftest.tmp" "conftest.in"
5176 cp "conftest.in" "conftest.nl"
5177 $as_echo 'GREP' >> "conftest.nl"
5178 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5179 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5180 as_fn_arith $ac_count + 1 && ac_count=$as_val
5181 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5182 # Best one so far, save it but keep looking for a better one
5183 ac_cv_path_GREP="$ac_path_GREP"
5184 ac_path_GREP_max=$ac_count
5186 # 10*(2^10) chars as input seems more than enough
5187 test $ac_count -gt 10 && break
5189 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5192 $ac_path_GREP_found && break 3
5197 if test -z "$ac_cv_path_GREP"; then
5198 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5201 ac_cv_path_GREP=$GREP
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5206 $as_echo "$ac_cv_path_GREP" >&6; }
5207 GREP="$ac_cv_path_GREP"
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5211 $as_echo_n "checking for egrep... " >&6; }
5212 if test "${ac_cv_path_EGREP+set}" = set; then :
5213 $as_echo_n "(cached) " >&6
5215 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5216 then ac_cv_path_EGREP="$GREP -E"
5218 if test -z "$EGREP"; then
5219 ac_path_EGREP_found=false
5220 # Loop through the user's path and test for each of PROGNAME-LIST
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5225 test -z "$as_dir" && as_dir=.
5226 for ac_prog in egrep; do
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5229 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5230 # Check for GNU ac_path_EGREP and select it if it is found.
5231 # Check for GNU $ac_path_EGREP
5232 case `"$ac_path_EGREP" --version 2>&1` in
5234 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5237 $as_echo_n 0123456789 >"conftest.in"
5240 cat "conftest.in" "conftest.in" >"conftest.tmp"
5241 mv "conftest.tmp" "conftest.in"
5242 cp "conftest.in" "conftest.nl"
5243 $as_echo 'EGREP' >> "conftest.nl"
5244 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5246 as_fn_arith $ac_count + 1 && ac_count=$as_val
5247 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5248 # Best one so far, save it but keep looking for a better one
5249 ac_cv_path_EGREP="$ac_path_EGREP"
5250 ac_path_EGREP_max=$ac_count
5252 # 10*(2^10) chars as input seems more than enough
5253 test $ac_count -gt 10 && break
5255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5258 $ac_path_EGREP_found && break 3
5263 if test -z "$ac_cv_path_EGREP"; then
5264 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5267 ac_cv_path_EGREP=$EGREP
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5273 $as_echo "$ac_cv_path_EGREP" >&6; }
5274 EGREP="$ac_cv_path_EGREP"
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5278 $as_echo_n "checking for ANSI C header files... " >&6; }
5279 if test "${ac_cv_header_stdc+set}" = set; then :
5280 $as_echo_n "(cached) " >&6
5282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5283 /* end confdefs.h. */
5297 if ac_fn_c_try_compile "$LINENO"; then :
5298 ac_cv_header_stdc=yes
5300 ac_cv_header_stdc=no
5302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304 if test $ac_cv_header_stdc = yes; then
5305 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h. */
5311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5312 $EGREP "memchr" >/dev/null 2>&1; then :
5315 ac_cv_header_stdc=no
5321 if test $ac_cv_header_stdc = yes; then
5322 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5324 /* end confdefs.h. */
5328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5329 $EGREP "free" >/dev/null 2>&1; then :
5332 ac_cv_header_stdc=no
5338 if test $ac_cv_header_stdc = yes; then
5339 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5340 if test "$cross_compiling" = yes; then :
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5347 #if ((' ' & 0x0FF) == 0x020)
5348 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5349 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5351 # define ISLOWER(c) \
5352 (('a' <= (c) && (c) <= 'i') \
5353 || ('j' <= (c) && (c) <= 'r') \
5354 || ('s' <= (c) && (c) <= 'z'))
5355 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5358 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5363 for (i = 0; i < 256; i++)
5364 if (XOR (islower (i), ISLOWER (i))
5365 || toupper (i) != TOUPPER (i))
5370 if ac_fn_c_try_run "$LINENO"; then :
5373 ac_cv_header_stdc=no
5375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5376 conftest.$ac_objext conftest.beam conftest.$ac_ext
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5382 $as_echo "$ac_cv_header_stdc" >&6; }
5383 if test $ac_cv_header_stdc = yes; then
5385 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5389 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5390 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5391 inttypes.h stdint.h unistd.h
5393 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5394 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5396 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5397 cat >>confdefs.h <<_ACEOF
5398 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5407 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5408 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5415 if test "$MINIX" = yes; then
5417 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5420 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5423 $as_echo "#define _MINIX 1" >>confdefs.h
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5429 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5430 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5431 $as_echo_n "(cached) " >&6
5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5434 /* end confdefs.h. */
5436 # define __EXTENSIONS__ 1
5437 $ac_includes_default
5446 if ac_fn_c_try_compile "$LINENO"; then :
5447 ac_cv_safe_to_define___extensions__=yes
5449 ac_cv_safe_to_define___extensions__=no
5451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5454 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5455 test $ac_cv_safe_to_define___extensions__ = yes &&
5456 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5458 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5460 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5462 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5464 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5468 # Check for programs
5470 ac_cpp='$CPP $CPPFLAGS'
5471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5474 if test -n "$ac_tool_prefix"; then
5475 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5476 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478 $as_echo_n "checking for $ac_word... " >&6; }
5479 if test "${ac_cv_prog_CC+set}" = set; then :
5480 $as_echo_n "(cached) " >&6
5482 if test -n "$CC"; then
5483 ac_cv_prog_CC="$CC" # Let the user override the test.
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5503 if test -n "$CC"; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5505 $as_echo "$CC" >&6; }
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5513 if test -z "$ac_cv_prog_CC"; then
5515 # Extract the first word of "gcc", so it can be a program name with args.
5516 set dummy gcc; ac_word=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5520 $as_echo_n "(cached) " >&6
5522 if test -n "$ac_ct_CC"; then
5523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5532 ac_cv_prog_ac_ct_CC="gcc"
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5543 if test -n "$ac_ct_CC"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5545 $as_echo "$ac_ct_CC" >&6; }
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5551 if test "x$ac_ct_CC" = x; then
5554 case $cross_compiling:$ac_tool_warned in
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5558 ac_tool_warned=yes ;;
5566 if test -z "$CC"; then
5567 if test -n "$ac_tool_prefix"; then
5568 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5569 set dummy ${ac_tool_prefix}cc; ac_word=$2
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5571 $as_echo_n "checking for $ac_word... " >&6; }
5572 if test "${ac_cv_prog_CC+set}" = set; then :
5573 $as_echo_n "(cached) " >&6
5575 if test -n "$CC"; then
5576 ac_cv_prog_CC="$CC" # Let the user override the test.
5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 test -z "$as_dir" && as_dir=.
5583 for ac_exec_ext in '' $ac_executable_extensions; do
5584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5585 ac_cv_prog_CC="${ac_tool_prefix}cc"
5586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5596 if test -n "$CC"; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5598 $as_echo "$CC" >&6; }
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601 $as_echo "no" >&6; }
5607 if test -z "$CC"; then
5608 # Extract the first word of "cc", so it can be a program name with args.
5609 set dummy cc; ac_word=$2
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5611 $as_echo_n "checking for $ac_word... " >&6; }
5612 if test "${ac_cv_prog_CC+set}" = set; then :
5613 $as_echo_n "(cached) " >&6
5615 if test -n "$CC"; then
5616 ac_cv_prog_CC="$CC" # Let the user override the test.
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623 test -z "$as_dir" && as_dir=.
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5626 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5627 ac_prog_rejected=yes
5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5638 if test $ac_prog_rejected = yes; then
5639 # We found a bogon in the path, so make sure we never use it.
5640 set dummy $ac_cv_prog_CC
5642 if test $# != 0; then
5643 # We chose a different compiler from the bogus one.
5644 # However, it has the same basename, so the bogon will be chosen
5645 # first if we set CC to just the basename; use the full file name.
5647 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5653 if test -n "$CC"; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5655 $as_echo "$CC" >&6; }
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }
5663 if test -z "$CC"; then
5664 if test -n "$ac_tool_prefix"; then
5665 for ac_prog in cl.exe
5667 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5668 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670 $as_echo_n "checking for $ac_word... " >&6; }
5671 if test "${ac_cv_prog_CC+set}" = set; then :
5672 $as_echo_n "(cached) " >&6
5674 if test -n "$CC"; then
5675 ac_cv_prog_CC="$CC" # Let the user override the test.
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 test -z "$as_dir" && as_dir=.
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5684 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5695 if test -n "$CC"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5697 $as_echo "$CC" >&6; }
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5704 test -n "$CC" && break
5707 if test -z "$CC"; then
5709 for ac_prog in cl.exe
5711 # Extract the first word of "$ac_prog", so it can be a program name with args.
5712 set dummy $ac_prog; ac_word=$2
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714 $as_echo_n "checking for $ac_word... " >&6; }
5715 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5716 $as_echo_n "(cached) " >&6
5718 if test -n "$ac_ct_CC"; then
5719 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5725 test -z "$as_dir" && as_dir=.
5726 for ac_exec_ext in '' $ac_executable_extensions; do
5727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5728 ac_cv_prog_ac_ct_CC="$ac_prog"
5729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5738 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5739 if test -n "$ac_ct_CC"; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5741 $as_echo "$ac_ct_CC" >&6; }
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744 $as_echo "no" >&6; }
5748 test -n "$ac_ct_CC" && break
5751 if test "x$ac_ct_CC" = x; then
5754 case $cross_compiling:$ac_tool_warned in
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5758 ac_tool_warned=yes ;;
5767 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5768 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5769 as_fn_error $? "no acceptable C compiler found in \$PATH
5770 See \`config.log' for more details" "$LINENO" 5; }
5772 # Provide some information about the compiler.
5773 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5776 for ac_option in --version -v -V -qversion; do
5777 { { ac_try="$ac_compiler $ac_option >&5"
5779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5780 *) ac_try_echo=$ac_try;;
5782 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5783 $as_echo "$ac_try_echo"; } >&5
5784 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5786 if test -s conftest.err; then
5788 ... rest of stderr output deleted ...
5789 10q' conftest.err >conftest.er1
5790 cat conftest.er1 >&5
5792 rm -f conftest.er1 conftest.err
5793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5794 test $ac_status = 0; }
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5798 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5799 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5800 $as_echo_n "(cached) " >&6
5802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5803 /* end confdefs.h. */
5816 if ac_fn_c_try_compile "$LINENO"; then :
5821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5822 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5826 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5827 if test $ac_compiler_gnu = yes; then
5832 ac_test_CFLAGS=${CFLAGS+set}
5833 ac_save_CFLAGS=$CFLAGS
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5835 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5836 if test "${ac_cv_prog_cc_g+set}" = set; then :
5837 $as_echo_n "(cached) " >&6
5839 ac_save_c_werror_flag=$ac_c_werror_flag
5840 ac_c_werror_flag=yes
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844 /* end confdefs.h. */
5854 if ac_fn_c_try_compile "$LINENO"; then :
5858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5859 /* end confdefs.h. */
5869 if ac_fn_c_try_compile "$LINENO"; then :
5872 ac_c_werror_flag=$ac_save_c_werror_flag
5874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h. */
5885 if ac_fn_c_try_compile "$LINENO"; then :
5888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5893 ac_c_werror_flag=$ac_save_c_werror_flag
5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5896 $as_echo "$ac_cv_prog_cc_g" >&6; }
5897 if test "$ac_test_CFLAGS" = set; then
5898 CFLAGS=$ac_save_CFLAGS
5899 elif test $ac_cv_prog_cc_g = yes; then
5900 if test "$GCC" = yes; then
5906 if test "$GCC" = yes; then
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5913 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5914 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5915 $as_echo_n "(cached) " >&6
5917 ac_cv_prog_cc_c89=no
5919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5923 #include <sys/types.h>
5924 #include <sys/stat.h>
5925 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5926 struct buf { int x; };
5927 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5928 static char *e (p, i)
5934 static char *f (char * (*g) (char **, int), char **p, ...)
5939 s = g (p, va_arg (v,int));
5944 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5945 function prototypes and stuff, but not '\xHH' hex character constants.
5946 These don't provoke an error unfortunately, instead are silently treated
5947 as 'x'. The following induces an error, until -std is added to get
5948 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5949 array size at least. It's necessary to write '\x00'==0 to get something
5950 that's true only with -std. */
5951 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5953 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5954 inside strings and character constants. */
5956 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5958 int test (int i, double x);
5959 struct s1 {int (*f) (int a);};
5960 struct s2 {int (*f) (double a);};
5961 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5967 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5972 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5973 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5975 CC="$ac_save_CC $ac_arg"
5976 if ac_fn_c_try_compile "$LINENO"; then :
5977 ac_cv_prog_cc_c89=$ac_arg
5979 rm -f core conftest.err conftest.$ac_objext
5980 test "x$ac_cv_prog_cc_c89" != "xno" && break
5982 rm -f conftest.$ac_ext
5987 case "x$ac_cv_prog_cc_c89" in
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5990 $as_echo "none needed" >&6; } ;;
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5993 $as_echo "unsupported" >&6; } ;;
5995 CC="$CC $ac_cv_prog_cc_c89"
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5997 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5999 if test "x$ac_cv_prog_cc_c89" != xno; then :
6004 ac_cpp='$CPP $CPPFLAGS'
6005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6009 depcc="$CC" am_compiler_list=
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6012 $as_echo_n "checking dependency style of $depcc... " >&6; }
6013 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6014 $as_echo_n "(cached) " >&6
6016 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6017 # We make a subdir and do the tests there. Otherwise we can end up
6018 # making bogus files that we don't know about and never remove. For
6019 # instance it was reported that on HP-UX the gcc test will end up
6020 # making a dummy file named `D' -- because `-MD' means `put the output
6023 # Copy depcomp to subdir because otherwise we won't find it if we're
6024 # using a relative directory.
6025 cp "$am_depcomp" conftest.dir
6027 # We will build objects and dependencies in a subdirectory because
6028 # it helps to detect inapplicable dependency modes. For instance
6029 # both Tru64's cc and ICC support -MD to output dependencies as a
6030 # side effect of compilation, but ICC will put the dependencies in
6031 # the current directory while Tru64 will put them in the object
6035 am_cv_CC_dependencies_compiler_type=none
6036 if test "$am_compiler_list" = ""; then
6037 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6040 case " $depcc " in #(
6041 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6044 for depmode in $am_compiler_list; do
6045 # Setup a source with many dependencies, because some compilers
6046 # like to wrap large dependency lists on column 80 (with \), and
6047 # we should not choose a depcomp mode which is confused by this.
6049 # We need to recreate these files for each test, as the compiler may
6050 # overwrite some of them when testing with obscure command lines.
6051 # This happens at least with the AIX C compiler.
6053 for i in 1 2 3 4 5 6; do
6054 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6055 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6056 # Solaris 8's {/usr,}/bin/sh.
6057 touch sub/conftst$i.h
6059 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6061 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6062 # mode. It turns out that the SunPro C++ compiler does not properly
6063 # handle `-M -o', and we need to detect this. Also, some Intel
6064 # versions had trouble with output in subdirs
6065 am__obj=sub/conftest.${OBJEXT-o}
6066 am__minus_obj="-o $am__obj"
6069 # This depmode causes a compiler race in universal mode.
6070 test "$am__universal" = false || continue
6073 # after this tag, mechanisms are not by side-effect, so they'll
6074 # only be used when explicitly requested
6075 if test "x$enable_dependency_tracking" = xyes; then
6081 msvisualcpp | msvcmsys)
6082 # This compiler won't grok `-c -o', but also, the minuso test has
6083 # not run yet. These depmodes are late enough in the game, and
6084 # so weak that their functioning should not be impacted.
6085 am__obj=conftest.${OBJEXT-o}
6090 if depmode=$depmode \
6091 source=sub/conftest.c object=$am__obj \
6092 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6093 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6094 >/dev/null 2>conftest.err &&
6095 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6096 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6097 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6098 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6099 # icc doesn't choke on unknown options, it will just issue warnings
6100 # or remarks (even with -Werror). So we grep stderr for any message
6101 # that says an option was ignored or not supported.
6102 # When given -MP, icc 7.0 and 7.1 complain thusly:
6103 # icc: Command line warning: ignoring option '-M'; no argument required
6104 # The diagnosis changed in icc 8.0:
6105 # icc: Command line remark: option '-MP' not supported
6106 if (grep 'ignoring option' conftest.err ||
6107 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6108 am_cv_CC_dependencies_compiler_type=$depmode
6117 am_cv_CC_dependencies_compiler_type=none
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6122 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6123 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6126 test "x$enable_dependency_tracking" != xno \
6127 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6129 am__fastdepCC_FALSE='#'
6131 am__fastdepCC_TRUE='#'
6132 am__fastdepCC_FALSE=
6137 ac_cpp='$CXXCPP $CPPFLAGS'
6138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6141 if test -z "$CXX"; then
6142 if test -n "$CCC"; then
6145 if test -n "$ac_tool_prefix"; then
6146 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6151 $as_echo_n "checking for $ac_word... " >&6; }
6152 if test "${ac_cv_prog_CXX+set}" = set; then :
6153 $as_echo_n "(cached) " >&6
6155 if test -n "$CXX"; then
6156 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 test -z "$as_dir" && as_dir=.
6163 for ac_exec_ext in '' $ac_executable_extensions; do
6164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6165 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6176 if test -n "$CXX"; then
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6178 $as_echo "$CXX" >&6; }
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6181 $as_echo "no" >&6; }
6185 test -n "$CXX" && break
6188 if test -z "$CXX"; then
6190 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6192 # Extract the first word of "$ac_prog", so it can be a program name with args.
6193 set dummy $ac_prog; ac_word=$2
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195 $as_echo_n "checking for $ac_word... " >&6; }
6196 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6197 $as_echo_n "(cached) " >&6
6199 if test -n "$ac_ct_CXX"; then
6200 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6209 ac_cv_prog_ac_ct_CXX="$ac_prog"
6210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6219 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6220 if test -n "$ac_ct_CXX"; then
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6222 $as_echo "$ac_ct_CXX" >&6; }
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6225 $as_echo "no" >&6; }
6229 test -n "$ac_ct_CXX" && break
6232 if test "x$ac_ct_CXX" = x; then
6235 case $cross_compiling:$ac_tool_warned in
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6238 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6239 ac_tool_warned=yes ;;
6247 # Provide some information about the compiler.
6248 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6251 for ac_option in --version -v -V -qversion; do
6252 { { ac_try="$ac_compiler $ac_option >&5"
6254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6255 *) ac_try_echo=$ac_try;;
6257 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6258 $as_echo "$ac_try_echo"; } >&5
6259 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6261 if test -s conftest.err; then
6263 ... rest of stderr output deleted ...
6264 10q' conftest.err >conftest.er1
6265 cat conftest.er1 >&5
6267 rm -f conftest.er1 conftest.err
6268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6269 test $ac_status = 0; }
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6273 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6274 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6275 $as_echo_n "(cached) " >&6
6277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6278 /* end confdefs.h. */
6291 if ac_fn_cxx_try_compile "$LINENO"; then :
6296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6297 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6301 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6302 if test $ac_compiler_gnu = yes; then
6307 ac_test_CXXFLAGS=${CXXFLAGS+set}
6308 ac_save_CXXFLAGS=$CXXFLAGS
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6310 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6311 if test "${ac_cv_prog_cxx_g+set}" = set; then :
6312 $as_echo_n "(cached) " >&6
6314 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6315 ac_cxx_werror_flag=yes
6318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6319 /* end confdefs.h. */
6329 if ac_fn_cxx_try_compile "$LINENO"; then :
6330 ac_cv_prog_cxx_g=yes
6333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6334 /* end confdefs.h. */
6344 if ac_fn_cxx_try_compile "$LINENO"; then :
6347 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6350 /* end confdefs.h. */
6360 if ac_fn_cxx_try_compile "$LINENO"; then :
6361 ac_cv_prog_cxx_g=yes
6363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6368 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6371 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6372 if test "$ac_test_CXXFLAGS" = set; then
6373 CXXFLAGS=$ac_save_CXXFLAGS
6374 elif test $ac_cv_prog_cxx_g = yes; then
6375 if test "$GXX" = yes; then
6381 if test "$GXX" = yes; then
6388 ac_cpp='$CPP $CPPFLAGS'
6389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6393 depcc="$CXX" am_compiler_list=
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6396 $as_echo_n "checking dependency style of $depcc... " >&6; }
6397 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6398 $as_echo_n "(cached) " >&6
6400 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6401 # We make a subdir and do the tests there. Otherwise we can end up
6402 # making bogus files that we don't know about and never remove. For
6403 # instance it was reported that on HP-UX the gcc test will end up
6404 # making a dummy file named `D' -- because `-MD' means `put the output
6407 # Copy depcomp to subdir because otherwise we won't find it if we're
6408 # using a relative directory.
6409 cp "$am_depcomp" conftest.dir
6411 # We will build objects and dependencies in a subdirectory because
6412 # it helps to detect inapplicable dependency modes. For instance
6413 # both Tru64's cc and ICC support -MD to output dependencies as a
6414 # side effect of compilation, but ICC will put the dependencies in
6415 # the current directory while Tru64 will put them in the object
6419 am_cv_CXX_dependencies_compiler_type=none
6420 if test "$am_compiler_list" = ""; then
6421 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6424 case " $depcc " in #(
6425 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6428 for depmode in $am_compiler_list; do
6429 # Setup a source with many dependencies, because some compilers
6430 # like to wrap large dependency lists on column 80 (with \), and
6431 # we should not choose a depcomp mode which is confused by this.
6433 # We need to recreate these files for each test, as the compiler may
6434 # overwrite some of them when testing with obscure command lines.
6435 # This happens at least with the AIX C compiler.
6437 for i in 1 2 3 4 5 6; do
6438 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6439 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6440 # Solaris 8's {/usr,}/bin/sh.
6441 touch sub/conftst$i.h
6443 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6445 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6446 # mode. It turns out that the SunPro C++ compiler does not properly
6447 # handle `-M -o', and we need to detect this. Also, some Intel
6448 # versions had trouble with output in subdirs
6449 am__obj=sub/conftest.${OBJEXT-o}
6450 am__minus_obj="-o $am__obj"
6453 # This depmode causes a compiler race in universal mode.
6454 test "$am__universal" = false || continue
6457 # after this tag, mechanisms are not by side-effect, so they'll
6458 # only be used when explicitly requested
6459 if test "x$enable_dependency_tracking" = xyes; then
6465 msvisualcpp | msvcmsys)
6466 # This compiler won't grok `-c -o', but also, the minuso test has
6467 # not run yet. These depmodes are late enough in the game, and
6468 # so weak that their functioning should not be impacted.
6469 am__obj=conftest.${OBJEXT-o}
6474 if depmode=$depmode \
6475 source=sub/conftest.c object=$am__obj \
6476 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6477 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6478 >/dev/null 2>conftest.err &&
6479 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6480 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6481 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6482 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6483 # icc doesn't choke on unknown options, it will just issue warnings
6484 # or remarks (even with -Werror). So we grep stderr for any message
6485 # that says an option was ignored or not supported.
6486 # When given -MP, icc 7.0 and 7.1 complain thusly:
6487 # icc: Command line warning: ignoring option '-M'; no argument required
6488 # The diagnosis changed in icc 8.0:
6489 # icc: Command line remark: option '-MP' not supported
6490 if (grep 'ignoring option' conftest.err ||
6491 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6492 am_cv_CXX_dependencies_compiler_type=$depmode
6501 am_cv_CXX_dependencies_compiler_type=none
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6506 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6507 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6510 test "x$enable_dependency_tracking" != xno \
6511 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6512 am__fastdepCXX_TRUE=
6513 am__fastdepCXX_FALSE='#'
6515 am__fastdepCXX_TRUE='#'
6516 am__fastdepCXX_FALSE=
6520 case $ac_cv_prog_cc_stdc in #(
6522 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6525 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6526 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6527 $as_echo_n "(cached) " >&6
6529 ac_cv_prog_cc_c99=no
6531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h. */
6534 #include <stdbool.h>
6539 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6540 #define debug(...) fprintf (stderr, __VA_ARGS__)
6541 #define showlist(...) puts (#__VA_ARGS__)
6542 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6544 test_varargs_macros (void)
6549 debug ("X = %d\n", x);
6550 showlist (The first, second, and third items.);
6551 report (x>y, "x is %d but y is %d", x, y);
6554 // Check long long types.
6555 #define BIG64 18446744073709551615ull
6556 #define BIG32 4294967295ul
6557 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6559 your preprocessor is broken;
6563 your preprocessor is broken;
6565 static long long int bignum = -9223372036854775807LL;
6566 static unsigned long long int ubignum = BIG64;
6568 struct incomplete_array
6576 const wchar_t *name;
6580 typedef const char *ccp;
6583 test_restrict (ccp restrict text)
6585 // See if C++-style comments work.
6586 // Iterate through items via the restricted pointer.
6587 // Also check for declarations in for loops.
6588 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6593 // Check varargs and va_copy.
6595 test_varargs (const char *format, ...)
6598 va_start (args, format);
6600 va_copy (args_copy, args);
6611 str = va_arg (args_copy, const char *);
6614 number = va_arg (args_copy, int);
6617 fnumber = va_arg (args_copy, double);
6632 _Bool success = false;
6635 if (test_restrict ("String literal") == 0)
6637 char *restrict newvar = "Another string";
6640 test_varargs ("s, d' f .", "string", 65, 34.234);
6641 test_varargs_macros ();
6643 // Check flexible array members.
6644 struct incomplete_array *ia =
6645 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6647 for (int i = 0; i < ia->datasize; ++i)
6648 ia->data[i] = i * 1.234;
6650 // Check named initializers.
6651 struct named_init ni = {
6653 .name = L"Test wide string",
6654 .average = 543.34343,
6659 int dynamic_array[ni.number];
6660 dynamic_array[ni.number - 1] = 543;
6662 // work around unused variable warnings
6663 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6664 || dynamic_array[ni.number - 1] != 543);
6670 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6672 CC="$ac_save_CC $ac_arg"
6673 if ac_fn_c_try_compile "$LINENO"; then :
6674 ac_cv_prog_cc_c99=$ac_arg
6676 rm -f core conftest.err conftest.$ac_objext
6677 test "x$ac_cv_prog_cc_c99" != "xno" && break
6679 rm -f conftest.$ac_ext
6684 case "x$ac_cv_prog_cc_c99" in
6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6687 $as_echo "none needed" >&6; } ;;
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6690 $as_echo "unsupported" >&6; } ;;
6692 CC="$CC $ac_cv_prog_cc_c99"
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6694 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6696 if test "x$ac_cv_prog_cc_c99" != xno; then :
6697 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6700 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6701 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6702 $as_echo_n "(cached) " >&6
6704 ac_cv_prog_cc_c89=no
6706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6707 /* end confdefs.h. */
6710 #include <sys/types.h>
6711 #include <sys/stat.h>
6712 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6713 struct buf { int x; };
6714 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6715 static char *e (p, i)
6721 static char *f (char * (*g) (char **, int), char **p, ...)
6726 s = g (p, va_arg (v,int));
6731 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6732 function prototypes and stuff, but not '\xHH' hex character constants.
6733 These don't provoke an error unfortunately, instead are silently treated
6734 as 'x'. The following induces an error, until -std is added to get
6735 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6736 array size at least. It's necessary to write '\x00'==0 to get something
6737 that's true only with -std. */
6738 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6740 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6741 inside strings and character constants. */
6743 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6745 int test (int i, double x);
6746 struct s1 {int (*f) (int a);};
6747 struct s2 {int (*f) (double a);};
6748 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6754 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6759 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6760 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6762 CC="$ac_save_CC $ac_arg"
6763 if ac_fn_c_try_compile "$LINENO"; then :
6764 ac_cv_prog_cc_c89=$ac_arg
6766 rm -f core conftest.err conftest.$ac_objext
6767 test "x$ac_cv_prog_cc_c89" != "xno" && break
6769 rm -f conftest.$ac_ext
6774 case "x$ac_cv_prog_cc_c89" in
6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6777 $as_echo "none needed" >&6; } ;;
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6780 $as_echo "unsupported" >&6; } ;;
6782 CC="$CC $ac_cv_prog_cc_c89"
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6784 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6786 if test "x$ac_cv_prog_cc_c89" != xno; then :
6787 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6789 ac_cv_prog_cc_stdc=no
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6796 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6797 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6798 $as_echo_n "(cached) " >&6
6801 case $ac_cv_prog_cc_stdc in #(
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6804 $as_echo "unsupported" >&6; } ;; #(
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6807 $as_echo "none needed" >&6; } ;; #(
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6810 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6814 ac_cpp='$CPP $CPPFLAGS'
6815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6819 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6820 # On Suns, sometimes $CPP names a directory.
6821 if test -n "$CPP" && test -d "$CPP"; then
6824 if test -z "$CPP"; then
6825 if test "${ac_cv_prog_CPP+set}" = set; then :
6826 $as_echo_n "(cached) " >&6
6828 # Double quotes because CPP needs to be expanded
6829 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6832 for ac_c_preproc_warn_flag in '' yes
6834 # Use a header file that comes with gcc, so configuring glibc
6835 # with a fresh cross-compiler works.
6836 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6837 # <limits.h> exists even on freestanding compilers.
6838 # On the NeXT, cc -E runs the code through the compiler's parser,
6839 # not just through cpp. "Syntax error" is here to catch this case.
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6843 # include <limits.h>
6845 # include <assert.h>
6849 if ac_fn_c_try_cpp "$LINENO"; then :
6852 # Broken: fails on valid input.
6855 rm -f conftest.err conftest.$ac_ext
6857 # OK, works on sane cases. Now check whether nonexistent headers
6858 # can be detected and how.
6859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860 /* end confdefs.h. */
6861 #include <ac_nonexistent.h>
6863 if ac_fn_c_try_cpp "$LINENO"; then :
6864 # Broken: success on invalid input.
6867 # Passes both tests.
6871 rm -f conftest.err conftest.$ac_ext
6874 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6875 rm -f conftest.err conftest.$ac_ext
6876 if $ac_preproc_ok; then :
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6889 $as_echo "$CPP" >&6; }
6891 for ac_c_preproc_warn_flag in '' yes
6893 # Use a header file that comes with gcc, so configuring glibc
6894 # with a fresh cross-compiler works.
6895 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6896 # <limits.h> exists even on freestanding compilers.
6897 # On the NeXT, cc -E runs the code through the compiler's parser,
6898 # not just through cpp. "Syntax error" is here to catch this case.
6899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6900 /* end confdefs.h. */
6902 # include <limits.h>
6904 # include <assert.h>
6908 if ac_fn_c_try_cpp "$LINENO"; then :
6911 # Broken: fails on valid input.
6914 rm -f conftest.err conftest.$ac_ext
6916 # OK, works on sane cases. Now check whether nonexistent headers
6917 # can be detected and how.
6918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h. */
6920 #include <ac_nonexistent.h>
6922 if ac_fn_c_try_cpp "$LINENO"; then :
6923 # Broken: success on invalid input.
6926 # Passes both tests.
6930 rm -f conftest.err conftest.$ac_ext
6933 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6934 rm -f conftest.err conftest.$ac_ext
6935 if $ac_preproc_ok; then :
6938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6940 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6941 See \`config.log' for more details" "$LINENO" 5; }
6945 ac_cpp='$CPP $CPPFLAGS'
6946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6951 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6952 if test "${ac_cv_path_SED+set}" = set; then :
6953 $as_echo_n "(cached) " >&6
6955 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6956 for ac_i in 1 2 3 4 5 6 7; do
6957 ac_script="$ac_script$as_nl$ac_script"
6959 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6960 { ac_script=; unset ac_script;}
6961 if test -z "$SED"; then
6962 ac_path_SED_found=false
6963 # Loop through the user's path and test for each of PROGNAME-LIST
6964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 test -z "$as_dir" && as_dir=.
6969 for ac_prog in sed gsed; do
6970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6972 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6973 # Check for GNU ac_path_SED and select it if it is found.
6974 # Check for GNU $ac_path_SED
6975 case `"$ac_path_SED" --version 2>&1` in
6977 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6980 $as_echo_n 0123456789 >"conftest.in"
6983 cat "conftest.in" "conftest.in" >"conftest.tmp"
6984 mv "conftest.tmp" "conftest.in"
6985 cp "conftest.in" "conftest.nl"
6986 $as_echo '' >> "conftest.nl"
6987 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6988 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6989 as_fn_arith $ac_count + 1 && ac_count=$as_val
6990 if test $ac_count -gt ${ac_path_SED_max-0}; then
6991 # Best one so far, save it but keep looking for a better one
6992 ac_cv_path_SED="$ac_path_SED"
6993 ac_path_SED_max=$ac_count
6995 # 10*(2^10) chars as input seems more than enough
6996 test $ac_count -gt 10 && break
6998 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7001 $ac_path_SED_found && break 3
7006 if test -z "$ac_cv_path_SED"; then
7007 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7015 $as_echo "$ac_cv_path_SED" >&6; }
7016 SED="$ac_cv_path_SED"
7019 test -z "$SED" && SED=sed
7020 Xsed="$SED -e 1s/^X//"
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7033 $as_echo_n "checking for fgrep... " >&6; }
7034 if test "${ac_cv_path_FGREP+set}" = set; then :
7035 $as_echo_n "(cached) " >&6
7037 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7038 then ac_cv_path_FGREP="$GREP -F"
7040 if test -z "$FGREP"; then
7041 ac_path_FGREP_found=false
7042 # Loop through the user's path and test for each of PROGNAME-LIST
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7047 test -z "$as_dir" && as_dir=.
7048 for ac_prog in fgrep; do
7049 for ac_exec_ext in '' $ac_executable_extensions; do
7050 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7051 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7052 # Check for GNU ac_path_FGREP and select it if it is found.
7053 # Check for GNU $ac_path_FGREP
7054 case `"$ac_path_FGREP" --version 2>&1` in
7056 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7059 $as_echo_n 0123456789 >"conftest.in"
7062 cat "conftest.in" "conftest.in" >"conftest.tmp"
7063 mv "conftest.tmp" "conftest.in"
7064 cp "conftest.in" "conftest.nl"
7065 $as_echo 'FGREP' >> "conftest.nl"
7066 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7067 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7068 as_fn_arith $ac_count + 1 && ac_count=$as_val
7069 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7070 # Best one so far, save it but keep looking for a better one
7071 ac_cv_path_FGREP="$ac_path_FGREP"
7072 ac_path_FGREP_max=$ac_count
7074 # 10*(2^10) chars as input seems more than enough
7075 test $ac_count -gt 10 && break
7077 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7080 $ac_path_FGREP_found && break 3
7085 if test -z "$ac_cv_path_FGREP"; then
7086 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7089 ac_cv_path_FGREP=$FGREP
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7095 $as_echo "$ac_cv_path_FGREP" >&6; }
7096 FGREP="$ac_cv_path_FGREP"
7099 test -z "$GREP" && GREP=grep
7117 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7118 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7119 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7122 $as_echo_n "checking how to print strings... " >&6; }
7123 # Test print first, because it will be a builtin if present.
7124 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
7125 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7127 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7130 # Use this function as a fallback that always works.
7131 func_fallback_echo ()
7133 eval 'cat <<_LTECHO_EOF
7137 ECHO='func_fallback_echo'
7140 # func_echo_all arg...
7141 # Invoke $ECHO with all args, space-separated.
7148 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7149 $as_echo "printf" >&6; } ;;
7150 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7151 $as_echo "print -r" >&6; } ;;
7152 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7153 $as_echo "cat" >&6; } ;;
7171 # Check whether --with-gnu-ld was given.
7172 if test "${with_gnu_ld+set}" = set; then :
7173 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7179 if test "$GCC" = yes; then
7180 # Check if gcc -print-prog-name=ld gives a path.
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7182 $as_echo_n "checking for ld used by $CC... " >&6; }
7185 # gcc leaves a trailing carriage return which upsets mingw
7186 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7188 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7191 # Accept absolute paths.
7193 re_direlt='/[^/][^/]*/\.\./'
7194 # Canonicalize the pathname of ld
7195 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7196 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7197 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7199 test -z "$LD" && LD="$ac_prog"
7202 # If it fails, then pretend we aren't using GCC.
7206 # If it is relative, then search for the first ld in PATH.
7210 elif test "$with_gnu_ld" = yes; then
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7212 $as_echo_n "checking for GNU ld... " >&6; }
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7215 $as_echo_n "checking for non-GNU ld... " >&6; }
7217 if test "${lt_cv_path_LD+set}" = set; then :
7218 $as_echo_n "(cached) " >&6
7220 if test -z "$LD"; then
7221 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7222 for ac_dir in $PATH; do
7224 test -z "$ac_dir" && ac_dir=.
7225 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7226 lt_cv_path_LD="$ac_dir/$ac_prog"
7227 # Check to see if the program is GNU ld. I'd rather use --version,
7228 # but apparently some variants of GNU ld only accept -v.
7229 # Break only if it was the GNU/non-GNU ld that we prefer.
7230 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7231 *GNU* | *'with BFD'*)
7232 test "$with_gnu_ld" != no && break
7235 test "$with_gnu_ld" != yes && break
7242 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7247 if test -n "$LD"; then
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7249 $as_echo "$LD" >&6; }
7251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7252 $as_echo "no" >&6; }
7254 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7256 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7257 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7258 $as_echo_n "(cached) " >&6
7260 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7261 case `$LD -v 2>&1 </dev/null` in
7262 *GNU* | *'with BFD'*)
7263 lt_cv_prog_gnu_ld=yes
7266 lt_cv_prog_gnu_ld=no
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7271 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7272 with_gnu_ld=$lt_cv_prog_gnu_ld
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7284 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7285 if test "${ac_cv_prog_cc_c99+set}" = set; then :
7286 $as_echo_n "(cached) " >&6
7288 ac_cv_prog_cc_c99=no
7290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7291 /* end confdefs.h. */
7293 #include <stdbool.h>
7298 // Check varargs macros. These examples are taken from C99 6.10.3.5.
7299 #define debug(...) fprintf (stderr, __VA_ARGS__)
7300 #define showlist(...) puts (#__VA_ARGS__)
7301 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7303 test_varargs_macros (void)
7308 debug ("X = %d\n", x);
7309 showlist (The first, second, and third items.);
7310 report (x>y, "x is %d but y is %d", x, y);
7313 // Check long long types.
7314 #define BIG64 18446744073709551615ull
7315 #define BIG32 4294967295ul
7316 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7318 your preprocessor is broken;
7322 your preprocessor is broken;
7324 static long long int bignum = -9223372036854775807LL;
7325 static unsigned long long int ubignum = BIG64;
7327 struct incomplete_array
7335 const wchar_t *name;
7339 typedef const char *ccp;
7342 test_restrict (ccp restrict text)
7344 // See if C++-style comments work.
7345 // Iterate through items via the restricted pointer.
7346 // Also check for declarations in for loops.
7347 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7352 // Check varargs and va_copy.
7354 test_varargs (const char *format, ...)
7357 va_start (args, format);
7359 va_copy (args_copy, args);
7370 str = va_arg (args_copy, const char *);
7373 number = va_arg (args_copy, int);
7376 fnumber = va_arg (args_copy, double);
7391 _Bool success = false;
7394 if (test_restrict ("String literal") == 0)
7396 char *restrict newvar = "Another string";
7399 test_varargs ("s, d' f .", "string", 65, 34.234);
7400 test_varargs_macros ();
7402 // Check flexible array members.
7403 struct incomplete_array *ia =
7404 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7406 for (int i = 0; i < ia->datasize; ++i)
7407 ia->data[i] = i * 1.234;
7409 // Check named initializers.
7410 struct named_init ni = {
7412 .name = L"Test wide string",
7413 .average = 543.34343,
7418 int dynamic_array[ni.number];
7419 dynamic_array[ni.number - 1] = 543;
7421 // work around unused variable warnings
7422 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7423 || dynamic_array[ni.number - 1] != 543);
7429 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7431 CC="$ac_save_CC $ac_arg"
7432 if ac_fn_c_try_compile "$LINENO"; then :
7433 ac_cv_prog_cc_c99=$ac_arg
7435 rm -f core conftest.err conftest.$ac_objext
7436 test "x$ac_cv_prog_cc_c99" != "xno" && break
7438 rm -f conftest.$ac_ext
7443 case "x$ac_cv_prog_cc_c99" in
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7446 $as_echo "none needed" >&6; } ;;
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7449 $as_echo "unsupported" >&6; } ;;
7451 CC="$CC $ac_cv_prog_cc_c99"
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7453 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7455 if test "x$ac_cv_prog_cc_c99" != xno; then :
7460 if test "x$CC" != xcc; then
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7462 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7465 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7467 set dummy $CC; ac_cc=`$as_echo "$2" |
7468 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7469 if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
7470 $as_echo_n "(cached) " >&6
7472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7473 /* end confdefs.h. */
7483 # Make sure it works both with $CC and with simple cc.
7484 # We do the test twice because some compilers refuse to overwrite an
7485 # existing .o file with -o, though they will create one.
7486 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7488 if { { case "(($ac_try" in
7489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7490 *) ac_try_echo=$ac_try;;
7492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7493 $as_echo "$ac_try_echo"; } >&5
7494 (eval "$ac_try") 2>&5
7496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7497 test $ac_status = 0; } &&
7498 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7500 *) ac_try_echo=$ac_try;;
7502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7503 $as_echo "$ac_try_echo"; } >&5
7504 (eval "$ac_try") 2>&5
7506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7507 test $ac_status = 0; };
7509 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7510 if test "x$CC" != xcc; then
7511 # Test first that cc exists at all.
7512 if { ac_try='cc -c conftest.$ac_ext >&5'
7513 { { case "(($ac_try" in
7514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7515 *) ac_try_echo=$ac_try;;
7517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7518 $as_echo "$ac_try_echo"; } >&5
7519 (eval "$ac_try") 2>&5
7521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7522 test $ac_status = 0; }; }; then
7523 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7525 if { { case "(($ac_try" in
7526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7527 *) ac_try_echo=$ac_try;;
7529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7530 $as_echo "$ac_try_echo"; } >&5
7531 (eval "$ac_try") 2>&5
7533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7534 test $ac_status = 0; } &&
7535 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7537 *) ac_try_echo=$ac_try;;
7539 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7540 $as_echo "$ac_try_echo"; } >&5
7541 (eval "$ac_try") 2>&5
7543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7544 test $ac_status = 0; };
7549 # cc exists but doesn't like -o.
7550 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7555 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7557 rm -f core conftest*
7560 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7562 $as_echo "yes" >&6; }
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7565 $as_echo "no" >&6; }
7567 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7571 # FIXME: we rely on the cache variable name because
7572 # there is no other way.
7574 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7575 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7576 if test "$am_t" != yes; then
7577 # Losing compiler, so override with the script.
7578 # FIXME: It is wrong to rewrite CC.
7579 # But if we don't then we get into trouble of one sort or another.
7580 # A longer-term fix would be to have automake use am__CC in this case,
7581 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7582 CC="$am_aux_dir/compile $CC"
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7587 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7588 if test "${ac_cv_cflags_warn_all+set}" = set; then :
7589 $as_echo_n "(cached) " >&6
7591 ac_cv_cflags_warn_all="no, unknown"
7594 ac_cpp='$CPP $CPPFLAGS'
7595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7599 ac_save_CFLAGS="$CFLAGS"
7600 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" #
7601 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7613 if ac_fn_c_try_compile "$LINENO"; then :
7614 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7618 CFLAGS="$ac_save_CFLAGS"
7620 ac_cpp='$CPP $CPPFLAGS'
7621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7628 $as_echo "$ac_cv_cflags_warn_all" >&6; }
7629 case ".$ac_cv_cflags_warn_all" in
7634 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7635 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7636 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7639 test $ac_status = 0; }
7640 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7641 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7644 test $ac_status = 0; }
7645 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7652 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7654 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7655 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
7656 $as_echo_n "(cached) " >&6
7658 cat >conftest.make <<\_ACEOF
7661 @echo '@@@%%%=$(MAKE)=@@@%%%'
7663 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7664 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7666 eval ac_cv_prog_make_${ac_make}_set=yes;;
7668 eval ac_cv_prog_make_${ac_make}_set=no;;
7672 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7674 $as_echo "yes" >&6; }
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7678 $as_echo "no" >&6; }
7679 SET_MAKE="MAKE=${MAKE-make}"
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7683 $as_echo_n "checking whether ln -s works... " >&6; }
7685 if test "$LN_S" = "ln -s"; then
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7687 $as_echo "yes" >&6; }
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7690 $as_echo "no, using $LN_S" >&6; }
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7694 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
7696 # Check whether --with-dmalloc was given.
7697 if test "${with_dmalloc+set}" = set; then :
7698 withval=$with_dmalloc; if test "$withval" = yes; then
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7700 $as_echo "yes" >&6; }
7702 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7704 LIBS="$LIBS -ldmalloc"
7705 LDFLAGS="$LDFLAGS -g"
7707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7708 $as_echo "no" >&6; }
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7712 $as_echo "no" >&6; }
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7718 $as_echo_n "checking for __attribute__... " >&6; }
7719 if test "${ax_cv___attribute__+set}" = set; then :
7720 $as_echo_n "(cached) " >&6
7722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7723 /* end confdefs.h. */
7725 static void foo(void) __attribute__ ((unused));
7739 if ac_fn_c_try_compile "$LINENO"; then :
7740 ax_cv___attribute__=yes
7742 ax_cv___attribute__=no
7745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7749 $as_echo "$ax_cv___attribute__" >&6; }
7750 if test "$ax_cv___attribute__" = "yes"; then
7752 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7758 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7759 if test -n "$ac_tool_prefix"; then
7760 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7761 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763 $as_echo_n "checking for $ac_word... " >&6; }
7764 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7765 $as_echo_n "(cached) " >&6
7769 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 test -z "$as_dir" && as_dir=.
7777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7779 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7790 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7791 if test -n "$PKG_CONFIG"; then
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7793 $as_echo "$PKG_CONFIG" >&6; }
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796 $as_echo "no" >&6; }
7801 if test -z "$ac_cv_path_PKG_CONFIG"; then
7802 ac_pt_PKG_CONFIG=$PKG_CONFIG
7803 # Extract the first word of "pkg-config", so it can be a program name with args.
7804 set dummy pkg-config; ac_word=$2
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7806 $as_echo_n "checking for $ac_word... " >&6; }
7807 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7808 $as_echo_n "(cached) " >&6
7810 case $ac_pt_PKG_CONFIG in
7812 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7819 test -z "$as_dir" && as_dir=.
7820 for ac_exec_ext in '' $ac_executable_extensions; do
7821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7822 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7833 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7834 if test -n "$ac_pt_PKG_CONFIG"; then
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7836 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839 $as_echo "no" >&6; }
7842 if test "x$ac_pt_PKG_CONFIG" = x; then
7845 case $cross_compiling:$ac_tool_warned in
7847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7848 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7849 ac_tool_warned=yes ;;
7851 PKG_CONFIG=$ac_pt_PKG_CONFIG
7854 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7858 if test -n "$PKG_CONFIG"; then
7859 _pkg_min_version=0.9.0
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7861 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7862 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7864 $as_echo "yes" >&6; }
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7867 $as_echo "no" >&6; }
7874 # Enable run-time checking.
7876 # Check whether --enable-bounds-checking was given.
7877 if test "${enable_bounds_checking+set}" = set; then :
7878 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7880 enable_bounds_checking='no'
7884 if test "$enable_bounds_checking" = yes; then
7886 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7896 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7897 if test "${ax_cv_c_compiler_ms+set}" = set; then :
7898 $as_echo_n "(cached) " >&6
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h. */
7914 if ac_fn_c_try_compile "$LINENO"; then :
7919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7920 ax_cv_c_compiler_ms=$ax_compiler_ms
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7924 $as_echo "$ax_cv_c_compiler_ms" >&6; }
7927 native_win32_build='no'
7929 case "${host_os}" in
7932 GDI32_LIBS='-lgdi32'
7935 native_win32_build='yes'
7936 GDI32_LIBS='-lgdi32'
7939 if test "${GDI32_LIBS}x" != 'x'; then
7941 $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
7945 if test "${GDI32_LIBS}x" != 'x' ; then
7946 WINGDI32_DELEGATE_TRUE=
7947 WINGDI32_DELEGATE_FALSE='#'
7949 WINGDI32_DELEGATE_TRUE='#'
7950 WINGDI32_DELEGATE_FALSE=
7953 if test "${native_win32_build}" = 'yes' ; then
7954 WIN32_NATIVE_BUILD_TRUE=
7955 WIN32_NATIVE_BUILD_FALSE='#'
7957 WIN32_NATIVE_BUILD_TRUE='#'
7958 WIN32_NATIVE_BUILD_FALSE=
7961 if test "${cygwin_build}" = 'yes' ; then
7963 CYGWIN_BUILD_FALSE='#'
7965 CYGWIN_BUILD_TRUE='#'
7969 if test "x${CC}" = 'xcl.exe' ; then
7978 WinPathScript="${srcdirfull}/winpath.sh"
7982 # Compiler flags tweaks
7984 if test "${GCC}" != "yes"; then
7987 # aCC: HP ANSI C++ B3910B A.03.34
7988 CFLAGS="${CFLAGS} -Wp,-H30000"
7989 if test -n "${CXXFLAGS}"; then
7992 CXXFLAGS="${CXXFLAGS} -AA"
7996 # Compaq alphaev68-dec-osf5.1 compiler
7997 if test -n "${CXXFLAGS}"; then
7998 CXXFLAGS='-std strict_ansi -noimplicit_include'
8000 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8005 # Check for lazy-loading.
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
8007 $as_echo_n "checking for linker lazyload option... " >&6; }
8008 if test "${im_cv_ld_lazyload+set}" = set; then :
8009 $as_echo_n "(cached) " >&6
8012 im_cv_ld_lazyload='none'
8014 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8015 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8016 im_cv_ld_lazyload='-Wl,-zlazyload'
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
8023 $as_echo "$im_cv_ld_lazyload" >&6; }
8024 if test "${im_cv_ld_lazyload}" != 'none' ; then
8025 if test -z "${LDFLAGS}" ; then
8026 LDFLAGS="${im_cv_ld_lazyload}"
8028 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8033 *darwin* | *-macos10*)
8034 # Check whether --enable-osx-universal-binary was given.
8035 if test "${enable_osx_universal_binary+set}" = set; then :
8036 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8038 build_osxuniversal=no
8042 if test "${build_osxuniversal}" != no ; then
8043 if test "$enable_dependency_tracking" != no ; then
8044 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
8045 Please re-run configure with these options:
8046 --disable-dependency-tracking --enable-osx-universal-binary
8049 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8050 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8051 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8056 # Enable support for threads
8058 # Check whether --with-threads was given.
8059 if test "${with_threads+set}" = set; then :
8060 withval=$with_threads; with_threads=$withval
8067 if test "$with_threads" != 'no'; then
8072 ac_cpp='$CPP $CPPFLAGS'
8073 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8074 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8075 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8079 # We used to check for pthread.h first, but this fails if pthread.h
8080 # requires special compiler flags (e.g. on True64 or Sequent).
8081 # It gets checked for in the link test anyway.
8083 # First of all, check if the user has set any of the PTHREAD_LIBS,
8084 # etcetera environment variables, and if threads linking works using
8086 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8087 save_CFLAGS="$CFLAGS"
8088 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8090 LIBS="$PTHREAD_LIBS $LIBS"
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8092 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8096 /* Override any GCC internal prototype to avoid an error.
8097 Use char because int might match the return type of a GCC
8098 builtin and then its argument prototype would still apply. */
8102 char pthread_join ();
8106 return pthread_join ();
8111 if ac_fn_c_try_link "$LINENO"; then :
8114 rm -f core conftest.err conftest.$ac_objext \
8115 conftest$ac_exeext conftest.$ac_ext
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8117 $as_echo "$ax_pthread_ok" >&6; }
8118 if test x"$ax_pthread_ok" = xno; then
8123 CFLAGS="$save_CFLAGS"
8126 # We must check for the threads library under a number of different
8127 # names; the ordering is very important because some systems
8128 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8129 # libraries is broken (non-POSIX).
8131 # Create a list of thread flags to try. Items starting with a "-" are
8132 # C compiler flags, and other items are library names, except for "none"
8133 # which indicates that we try without any flags at all, and "pthread-config"
8134 # which is a program returning the flags for the Pth emulation library.
8136 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8138 # The ordering *is* (sometimes) important. Some notes on the
8139 # individual items follow:
8141 # pthreads: AIX (must check this before -lpthread)
8142 # none: in case threads are in libc; should be tried before -Kthread and
8143 # other compiler flags to prevent continual compiler warnings
8144 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8145 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8146 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8147 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8148 # -pthreads: Solaris/gcc
8149 # -mthreads: Mingw32/gcc, Lynx/gcc
8150 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8151 # doesn't hurt to check since this sometimes defines pthreads too;
8152 # also defines -D_REENTRANT)
8153 # ... -mt is also the pthreads flag for HP/aCC
8154 # pthread: Linux, etcetera
8155 # --thread-safe: KAI C++
8156 # pthread-config: use pthread-config program (for GNU Pth library)
8158 case "${host_cpu}-${host_os}" in
8161 # On Solaris (at least, for some versions), libc contains stubbed
8162 # (non-functional) versions of the pthreads routines, so link-based
8163 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8164 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8165 # a function called by this macro, so we could check for that, but
8166 # who knows whether they'll stub that too in a future libc.) So,
8167 # we'll just look for -pthreads and -lpthread first:
8169 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8173 acx_pthread_flags="-pthread $acx_pthread_flags"
8177 if test x"$ax_pthread_ok" = xno; then
8178 for flag in $ax_pthread_flags; do
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8183 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8188 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8189 PTHREAD_CFLAGS="$flag"
8193 # Extract the first word of "pthread-config", so it can be a program name with args.
8194 set dummy pthread-config; ac_word=$2
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196 $as_echo_n "checking for $ac_word... " >&6; }
8197 if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8198 $as_echo_n "(cached) " >&6
8200 if test -n "$ax_pthread_config"; then
8201 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207 test -z "$as_dir" && as_dir=.
8208 for ac_exec_ext in '' $ac_executable_extensions; do
8209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8210 ac_cv_prog_ax_pthread_config="yes"
8211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8218 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8221 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8222 if test -n "$ax_pthread_config"; then
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8224 $as_echo "$ax_pthread_config" >&6; }
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8227 $as_echo "no" >&6; }
8231 if test x"$ax_pthread_config" = xno; then continue; fi
8232 PTHREAD_CFLAGS="`pthread-config --cflags`"
8233 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8238 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8239 PTHREAD_LIBS="-l$flag"
8244 save_CFLAGS="$CFLAGS"
8245 LIBS="$PTHREAD_LIBS $LIBS"
8246 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8248 # Check for various functions. We must include pthread.h,
8249 # since some functions may be macros. (On the Sequent, we
8250 # need a special flag -Kthread to make this header compile.)
8251 # We check for pthread_join because it is in -lpthread on IRIX
8252 # while pthread_create is in libc. We check for pthread_attr_init
8253 # due to DEC craziness with -lpthreads. We check for
8254 # pthread_cleanup_push because it is one of the few pthread
8255 # functions on Solaris that doesn't have a non-functional libc stub.
8256 # We try pthread_create on general principles.
8257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8258 /* end confdefs.h. */
8259 #include <pthread.h>
8260 static void routine(void* a) {a=0;}
8261 static void* start_routine(void* a) {return a;}
8265 pthread_t th; pthread_attr_t attr;
8266 pthread_join(th, 0);
8267 pthread_attr_init(&attr);
8268 pthread_cleanup_push(routine, 0);
8269 pthread_create(&th,0,start_routine,0);
8270 pthread_cleanup_pop(0);
8275 if ac_fn_c_try_link "$LINENO"; then :
8278 rm -f core conftest.err conftest.$ac_objext \
8279 conftest$ac_exeext conftest.$ac_ext
8282 CFLAGS="$save_CFLAGS"
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8285 $as_echo "$ax_pthread_ok" >&6; }
8286 if test "x$ax_pthread_ok" = xyes; then
8295 # Various other checks:
8296 if test "x$ax_pthread_ok" = xyes; then
8298 LIBS="$PTHREAD_LIBS $LIBS"
8299 save_CFLAGS="$CFLAGS"
8300 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8302 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8304 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8306 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8308 /* end confdefs.h. */
8309 #include <pthread.h>
8313 int attr=$attr; return attr;
8318 if ac_fn_c_try_link "$LINENO"; then :
8319 attr_name=$attr; break
8321 rm -f core conftest.err conftest.$ac_objext \
8322 conftest$ac_exeext conftest.$ac_ext
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8325 $as_echo "$attr_name" >&6; }
8326 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8328 cat >>confdefs.h <<_ACEOF
8329 #define PTHREAD_CREATE_JOINABLE $attr_name
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8335 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8337 case "${host_cpu}-${host_os}" in
8338 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8339 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8342 $as_echo "${flag}" >&6; }
8343 if test "x$flag" != xno; then
8344 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8348 CFLAGS="$save_CFLAGS"
8350 # More AIX lossage: must compile with xlc_r or cc_r
8351 if test x"$GCC" != xyes; then
8352 for ac_prog in xlc_r cc_r
8354 # Extract the first word of "$ac_prog", so it can be a program name with args.
8355 set dummy $ac_prog; ac_word=$2
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357 $as_echo_n "checking for $ac_word... " >&6; }
8358 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8359 $as_echo_n "(cached) " >&6
8361 if test -n "$PTHREAD_CC"; then
8362 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371 ac_cv_prog_PTHREAD_CC="$ac_prog"
8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8381 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8382 if test -n "$PTHREAD_CC"; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8384 $as_echo "$PTHREAD_CC" >&6; }
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8391 test -n "$PTHREAD_CC" && break
8393 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8406 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8407 if test x"$ax_pthread_ok" = xyes; then
8409 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8417 ac_cpp='$CPP $CPPFLAGS'
8418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8423 if test "$ax_pthread_ok" = yes; then
8425 DEF_THREAD="$PTHREAD_CFLAGS"
8426 CFLAGS="$CFLAGS $DEF_THREAD"
8427 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8428 if test "$CC" != "$PTHREAD_CC"; then
8429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
8430 $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8436 # Enable support for OpenMP
8437 if test "$have_threads" != 'yes'; then
8438 ac_cv_prog_c_openmp=unsupported
8442 # Check whether --enable-openmp was given.
8443 if test "${enable_openmp+set}" = set; then :
8444 enableval=$enable_openmp;
8447 if test "$enable_openmp" != no; then
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
8449 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
8450 if test "${ac_cv_prog_c_openmp+set}" = set; then :
8451 $as_echo_n "(cached) " >&6
8453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8454 /* end confdefs.h. */
8460 int main () { return omp_get_num_threads (); }
8463 if ac_fn_c_try_link "$LINENO"; then :
8464 ac_cv_prog_c_openmp='none needed'
8466 ac_cv_prog_c_openmp='unsupported'
8467 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8468 ac_save_CFLAGS=$CFLAGS
8469 CFLAGS="$CFLAGS $ac_option"
8470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471 /* end confdefs.h. */
8477 int main () { return omp_get_num_threads (); }
8480 if ac_fn_c_try_link "$LINENO"; then :
8481 ac_cv_prog_c_openmp=$ac_option
8483 rm -f core conftest.err conftest.$ac_objext \
8484 conftest$ac_exeext conftest.$ac_ext
8485 CFLAGS=$ac_save_CFLAGS
8486 if test "$ac_cv_prog_c_openmp" != unsupported; then
8491 rm -f core conftest.err conftest.$ac_objext \
8492 conftest$ac_exeext conftest.$ac_ext
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
8495 $as_echo "$ac_cv_prog_c_openmp" >&6; }
8496 case $ac_cv_prog_c_openmp in #(
8497 "none needed" | unsupported)
8500 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
8505 CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8506 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8508 case $ac_cv_prog_c_openmp in #(
8509 "none needed" | unsupported)
8512 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8515 # Enable support for OpenCL
8520 ac_cpp='$CPP $CPPFLAGS'
8521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8527 # We used to check for pthread.h first, but this fails if pthread.h
8528 # requires special compiler flags (e.g. on True64 or Sequent).
8529 # It gets checked for in the link test anyway.
8531 # First of all, check if the user has set any of the PTHREAD_LIBS,
8532 # etcetera environment variables, and if threads linking works using
8534 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8535 save_CFLAGS="$CFLAGS"
8536 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8538 LIBS="$PTHREAD_LIBS $LIBS"
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8540 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8542 /* end confdefs.h. */
8544 /* Override any GCC internal prototype to avoid an error.
8545 Use char because int might match the return type of a GCC
8546 builtin and then its argument prototype would still apply. */
8550 char pthread_join ();
8554 return pthread_join ();
8559 if ac_fn_c_try_link "$LINENO"; then :
8562 rm -f core conftest.err conftest.$ac_objext \
8563 conftest$ac_exeext conftest.$ac_ext
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8565 $as_echo "$ax_pthread_ok" >&6; }
8566 if test x"$ax_pthread_ok" = xno; then
8571 CFLAGS="$save_CFLAGS"
8574 # We must check for the threads library under a number of different
8575 # names; the ordering is very important because some systems
8576 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8577 # libraries is broken (non-POSIX).
8579 # Create a list of thread flags to try. Items starting with a "-" are
8580 # C compiler flags, and other items are library names, except for "none"
8581 # which indicates that we try without any flags at all, and "pthread-config"
8582 # which is a program returning the flags for the Pth emulation library.
8584 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8586 # The ordering *is* (sometimes) important. Some notes on the
8587 # individual items follow:
8589 # pthreads: AIX (must check this before -lpthread)
8590 # none: in case threads are in libc; should be tried before -Kthread and
8591 # other compiler flags to prevent continual compiler warnings
8592 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8593 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8594 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8595 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8596 # -pthreads: Solaris/gcc
8597 # -mthreads: Mingw32/gcc, Lynx/gcc
8598 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8599 # doesn't hurt to check since this sometimes defines pthreads too;
8600 # also defines -D_REENTRANT)
8601 # ... -mt is also the pthreads flag for HP/aCC
8602 # pthread: Linux, etcetera
8603 # --thread-safe: KAI C++
8604 # pthread-config: use pthread-config program (for GNU Pth library)
8606 case "${host_cpu}-${host_os}" in
8609 # On Solaris (at least, for some versions), libc contains stubbed
8610 # (non-functional) versions of the pthreads routines, so link-based
8611 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8612 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8613 # a function called by this macro, so we could check for that, but
8614 # who knows whether they'll stub that too in a future libc.) So,
8615 # we'll just look for -pthreads and -lpthread first:
8617 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8621 acx_pthread_flags="-pthread $acx_pthread_flags"
8625 if test x"$ax_pthread_ok" = xno; then
8626 for flag in $ax_pthread_flags; do
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8631 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8636 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8637 PTHREAD_CFLAGS="$flag"
8641 # Extract the first word of "pthread-config", so it can be a program name with args.
8642 set dummy pthread-config; ac_word=$2
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8644 $as_echo_n "checking for $ac_word... " >&6; }
8645 if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8646 $as_echo_n "(cached) " >&6
8648 if test -n "$ax_pthread_config"; then
8649 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655 test -z "$as_dir" && as_dir=.
8656 for ac_exec_ext in '' $ac_executable_extensions; do
8657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8658 ac_cv_prog_ax_pthread_config="yes"
8659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8666 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8669 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8670 if test -n "$ax_pthread_config"; then
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8672 $as_echo "$ax_pthread_config" >&6; }
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8675 $as_echo "no" >&6; }
8679 if test x"$ax_pthread_config" = xno; then continue; fi
8680 PTHREAD_CFLAGS="`pthread-config --cflags`"
8681 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8686 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8687 PTHREAD_LIBS="-l$flag"
8692 save_CFLAGS="$CFLAGS"
8693 LIBS="$PTHREAD_LIBS $LIBS"
8694 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8696 # Check for various functions. We must include pthread.h,
8697 # since some functions may be macros. (On the Sequent, we
8698 # need a special flag -Kthread to make this header compile.)
8699 # We check for pthread_join because it is in -lpthread on IRIX
8700 # while pthread_create is in libc. We check for pthread_attr_init
8701 # due to DEC craziness with -lpthreads. We check for
8702 # pthread_cleanup_push because it is one of the few pthread
8703 # functions on Solaris that doesn't have a non-functional libc stub.
8704 # We try pthread_create on general principles.
8705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8706 /* end confdefs.h. */
8707 #include <pthread.h>
8708 static void routine(void* a) {a=0;}
8709 static void* start_routine(void* a) {return a;}
8713 pthread_t th; pthread_attr_t attr;
8714 pthread_join(th, 0);
8715 pthread_attr_init(&attr);
8716 pthread_cleanup_push(routine, 0);
8717 pthread_create(&th,0,start_routine,0);
8718 pthread_cleanup_pop(0);
8723 if ac_fn_c_try_link "$LINENO"; then :
8726 rm -f core conftest.err conftest.$ac_objext \
8727 conftest$ac_exeext conftest.$ac_ext
8730 CFLAGS="$save_CFLAGS"
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8733 $as_echo "$ax_pthread_ok" >&6; }
8734 if test "x$ax_pthread_ok" = xyes; then
8743 # Various other checks:
8744 if test "x$ax_pthread_ok" = xyes; then
8746 LIBS="$PTHREAD_LIBS $LIBS"
8747 save_CFLAGS="$CFLAGS"
8748 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8750 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8752 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8754 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8756 /* end confdefs.h. */
8757 #include <pthread.h>
8761 int attr=$attr; return attr;
8766 if ac_fn_c_try_link "$LINENO"; then :
8767 attr_name=$attr; break
8769 rm -f core conftest.err conftest.$ac_objext \
8770 conftest$ac_exeext conftest.$ac_ext
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8773 $as_echo "$attr_name" >&6; }
8774 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8776 cat >>confdefs.h <<_ACEOF
8777 #define PTHREAD_CREATE_JOINABLE $attr_name
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8783 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8785 case "${host_cpu}-${host_os}" in
8786 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8787 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8790 $as_echo "${flag}" >&6; }
8791 if test "x$flag" != xno; then
8792 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8796 CFLAGS="$save_CFLAGS"
8798 # More AIX lossage: must compile with xlc_r or cc_r
8799 if test x"$GCC" != xyes; then
8800 for ac_prog in xlc_r cc_r
8802 # Extract the first word of "$ac_prog", so it can be a program name with args.
8803 set dummy $ac_prog; ac_word=$2
8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8805 $as_echo_n "checking for $ac_word... " >&6; }
8806 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8807 $as_echo_n "(cached) " >&6
8809 if test -n "$PTHREAD_CC"; then
8810 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8816 test -z "$as_dir" && as_dir=.
8817 for ac_exec_ext in '' $ac_executable_extensions; do
8818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8819 ac_cv_prog_PTHREAD_CC="$ac_prog"
8820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8829 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8830 if test -n "$PTHREAD_CC"; then
8831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8832 $as_echo "$PTHREAD_CC" >&6; }
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8835 $as_echo "no" >&6; }
8839 test -n "$PTHREAD_CC" && break
8841 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8854 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8855 if test x"$ax_pthread_ok" = xyes; then
8857 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8865 ac_cpp='$CPP $CPPFLAGS'
8866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8872 # Check whether --enable-opencl was given.
8873 if test "${enable_opencl+set}" = set; then :
8874 enableval=$enable_opencl; disable_opencl=$enableval
8876 disable_opencl='yes'
8880 if test "$disable_opencl" = 'yes'; then
8882 ac_cpp='$CPP $CPPFLAGS'
8883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8888 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8889 if test "${ax_cv_c_compiler_ms+set}" = set; then :
8890 $as_echo_n "(cached) " >&6
8892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8893 /* end confdefs.h. */
8906 if ac_fn_c_try_compile "$LINENO"; then :
8911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8912 ax_cv_c_compiler_ms=$ax_compiler_ms
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8916 $as_echo "$ax_cv_c_compiler_ms" >&6; }
8917 if test X$ax_compiler_ms = Xno; then :
8918 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
8921 ax_save_CPPFLAGS=$CPPFLAGS
8922 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8923 for ac_header in CL/cl.h OpenCL/cl.h
8925 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8926 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
8927 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8928 cat >>confdefs.h <<_ACEOF
8929 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8936 CPPFLAGS=$ax_save_CPPFLAGS
8938 for ac_header in windows.h
8940 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8941 if test "x$ac_cv_header_windows_h" = x""yes; then :
8942 cat >>confdefs.h <<_ACEOF
8943 #define HAVE_WINDOWS_H 1
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
8954 $as_echo_n "checking for OpenCL library... " >&6; }
8955 if test "${ax_cv_check_cl_libcl+set}" = set; then :
8956 $as_echo_n "(cached) " >&6
8958 ax_cv_check_cl_libcl=no
8960 x86_64) ax_check_cl_libdir=lib64 ;;
8961 *) ax_check_cl_libdir=lib ;;
8963 ax_save_CPPFLAGS=$CPPFLAGS
8964 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
8967 ax_check_libs="-lOpenCL -lCL -lclparser"
8968 for ax_lib in $ax_check_libs; do
8969 if test X$ax_compiler_ms = Xyes; then :
8970 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8974 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h. */
8978 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8979 # include <windows.h>
8981 # ifdef HAVE_CL_CL_H
8983 # elif defined(HAVE_OPENCL_CL_H)
8984 # include <OpenCL/cl.h>
8991 clCreateContextFromType(0,0,0,0,0)
8996 if ac_fn_c_try_link "$LINENO"; then :
8997 ax_cv_check_cl_libcl=$ax_try_lib; break
8999 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"
9000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9001 /* end confdefs.h. */
9003 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9004 # include <windows.h>
9006 # ifdef HAVE_CL_CL_H
9008 # elif defined(HAVE_OPENCL_CL_H)
9009 # include <OpenCL/cl.h>
9016 clCreateContextFromType(0,0,0,0,0)
9021 if ac_fn_c_try_link "$LINENO"; then :
9022 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9024 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"
9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h. */
9028 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9029 # include <windows.h>
9031 # ifdef HAVE_CL_CL_H
9033 # elif defined(HAVE_OPENCL_CL_H)
9034 # include <OpenCL/cl.h>
9041 clCreateContextFromType(0,0,0,0,0)
9046 if ac_fn_c_try_link "$LINENO"; then :
9047 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9049 rm -f core conftest.err conftest.$ac_objext \
9050 conftest$ac_exeext conftest.$ac_ext
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
9059 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
9060 LIBS='-framework OpenCL'
9061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9062 /* end confdefs.h. */
9064 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9065 # include <windows.h>
9067 # ifdef HAVE_CL_CL_H
9069 # elif defined(HAVE_OPENCL_CL_H)
9070 # include <OpenCL/cl.h>
9077 clCreateContextFromType(0,0,0,0,0)
9082 if ac_fn_c_try_link "$LINENO"; then :
9083 ax_cv_check_cl_libcl=$LIBS
9085 rm -f core conftest.err conftest.$ac_objext \
9086 conftest$ac_exeext conftest.$ac_ext
9090 CPPFLAGS=$ax_save_CPPFLAGS
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9093 $as_echo "$ax_cv_check_cl_libcl" >&6; }
9095 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9096 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9098 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9099 $as_echo "#define _OPENCL 1" >>confdefs.h
9103 ac_cpp='$CPP $CPPFLAGS'
9104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9113 CFLAGS="$CL_CFLAGS $CFLAGS"
9114 LIBS="$CL_LIBS $LIBS"
9116 if test "_OPENCL" = '1'; then
9117 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9122 # Check for large file support
9125 # Check whether --enable-largefile was given.
9126 if test "${enable_largefile+set}" = set; then :
9127 enableval=$enable_largefile;
9130 if test "$enable_largefile" != no; then
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9133 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9134 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
9135 $as_echo_n "(cached) " >&6
9137 ac_cv_sys_largefile_CC=no
9138 if test "$GCC" != yes; then
9141 # IRIX 6.2 and later do not support large files by default,
9142 # so use the C compiler's -n32 option if that helps.
9143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9144 /* end confdefs.h. */
9145 #include <sys/types.h>
9146 /* Check that off_t can represent 2**63 - 1 correctly.
9147 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9148 since some C++ compilers masquerading as C compilers
9149 incorrectly reject 9223372036854775807. */
9150 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9151 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9152 && LARGE_OFF_T % 2147483647 == 1)
9162 if ac_fn_c_try_compile "$LINENO"; then :
9165 rm -f core conftest.err conftest.$ac_objext
9167 if ac_fn_c_try_compile "$LINENO"; then :
9168 ac_cv_sys_largefile_CC=' -n32'; break
9170 rm -f core conftest.err conftest.$ac_objext
9174 rm -f conftest.$ac_ext
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9178 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
9179 if test "$ac_cv_sys_largefile_CC" != no; then
9180 CC=$CC$ac_cv_sys_largefile_CC
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9184 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9185 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
9186 $as_echo_n "(cached) " >&6
9189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9190 /* end confdefs.h. */
9191 #include <sys/types.h>
9192 /* Check that off_t can represent 2**63 - 1 correctly.
9193 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9194 since some C++ compilers masquerading as C compilers
9195 incorrectly reject 9223372036854775807. */
9196 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9197 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9198 && LARGE_OFF_T % 2147483647 == 1)
9208 if ac_fn_c_try_compile "$LINENO"; then :
9209 ac_cv_sys_file_offset_bits=no; break
9211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9213 /* end confdefs.h. */
9214 #define _FILE_OFFSET_BITS 64
9215 #include <sys/types.h>
9216 /* Check that off_t can represent 2**63 - 1 correctly.
9217 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9218 since some C++ compilers masquerading as C compilers
9219 incorrectly reject 9223372036854775807. */
9220 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9221 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9222 && LARGE_OFF_T % 2147483647 == 1)
9232 if ac_fn_c_try_compile "$LINENO"; then :
9233 ac_cv_sys_file_offset_bits=64; break
9235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9236 ac_cv_sys_file_offset_bits=unknown
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9241 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9242 case $ac_cv_sys_file_offset_bits in #(
9245 cat >>confdefs.h <<_ACEOF
9246 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9251 if test $ac_cv_sys_file_offset_bits = unknown; then
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9253 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9254 if test "${ac_cv_sys_large_files+set}" = set; then :
9255 $as_echo_n "(cached) " >&6
9258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9259 /* end confdefs.h. */
9260 #include <sys/types.h>
9261 /* Check that off_t can represent 2**63 - 1 correctly.
9262 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9263 since some C++ compilers masquerading as C compilers
9264 incorrectly reject 9223372036854775807. */
9265 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9266 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9267 && LARGE_OFF_T % 2147483647 == 1)
9277 if ac_fn_c_try_compile "$LINENO"; then :
9278 ac_cv_sys_large_files=no; break
9280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9282 /* end confdefs.h. */
9283 #define _LARGE_FILES 1
9284 #include <sys/types.h>
9285 /* Check that off_t can represent 2**63 - 1 correctly.
9286 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9287 since some C++ compilers masquerading as C compilers
9288 incorrectly reject 9223372036854775807. */
9289 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9290 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9291 && LARGE_OFF_T % 2147483647 == 1)
9301 if ac_fn_c_try_compile "$LINENO"; then :
9302 ac_cv_sys_large_files=1; break
9304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9305 ac_cv_sys_large_files=unknown
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9310 $as_echo "$ac_cv_sys_large_files" >&6; }
9311 case $ac_cv_sys_large_files in #(
9314 cat >>confdefs.h <<_ACEOF
9315 #define _LARGE_FILES $ac_cv_sys_large_files
9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9324 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
9325 if test "${ac_cv_sys_largefile_source+set}" = set; then :
9326 $as_echo_n "(cached) " >&6
9329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9330 /* end confdefs.h. */
9331 #include <sys/types.h> /* for off_t */
9336 int (*fp) (FILE *, off_t, int) = fseeko;
9337 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9342 if ac_fn_c_try_link "$LINENO"; then :
9343 ac_cv_sys_largefile_source=no; break
9345 rm -f core conftest.err conftest.$ac_objext \
9346 conftest$ac_exeext conftest.$ac_ext
9347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9348 /* end confdefs.h. */
9349 #define _LARGEFILE_SOURCE 1
9350 #include <sys/types.h> /* for off_t */
9355 int (*fp) (FILE *, off_t, int) = fseeko;
9356 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9361 if ac_fn_c_try_link "$LINENO"; then :
9362 ac_cv_sys_largefile_source=1; break
9364 rm -f core conftest.err conftest.$ac_objext \
9365 conftest$ac_exeext conftest.$ac_ext
9366 ac_cv_sys_largefile_source=unknown
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
9371 $as_echo "$ac_cv_sys_largefile_source" >&6; }
9372 case $ac_cv_sys_largefile_source in #(
9375 cat >>confdefs.h <<_ACEOF
9376 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9382 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9383 # in glibc 2.1.3, but that breaks too many other things.
9384 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9385 if test $ac_cv_sys_largefile_source != unknown; then
9387 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
9392 if test "$enable_largefile" != no; then
9393 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9394 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
9397 $as_echo_n "checking for native large file support... " >&6; }
9398 if test "$cross_compiling" = yes; then :
9399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9401 as_fn_error $? "cannot run test program while cross compiling
9402 See \`config.log' for more details" "$LINENO" 5; }
9404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405 /* end confdefs.h. */
9408 exit(!(sizeof(off_t) == 8));
9411 if ac_fn_c_try_run "$LINENO"; then :
9412 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9415 $as_echo "yes" >&6; }
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9418 $as_echo "no" >&6; }
9420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9421 conftest.$ac_objext conftest.beam conftest.$ac_ext
9425 if test "$ac_cv_sys_large_files" != 'no'; then
9426 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9428 if test "$ac_cv_sys_largefile_source" != 'no'; then
9429 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9435 # Configure libtool & libltdl
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9445 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9450 macro_version='2.2.10'
9451 macro_revision='1.3175'
9465 ltmain="$ac_aux_dir/ltmain.sh"
9467 # Backslashify metacharacters that are still active within
9468 # double-quoted strings.
9469 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
9471 # Same as above, but do not quote variable references.
9472 double_quote_subst='s/\(["`\\]\)/\\\1/g'
9474 # Sed substitution to delay expansion of an escaped shell variable in a
9475 # double_quote_subst'ed string.
9476 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
9478 # Sed substitution to delay expansion of an escaped single quote.
9479 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
9481 # Sed substitution to avoid accidental globbing in evaled expressions
9482 no_glob_subst='s/\*/\\\*/g'
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9485 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9486 if test "${lt_cv_path_NM+set}" = set; then :
9487 $as_echo_n "(cached) " >&6
9489 if test -n "$NM"; then
9490 # Let the user override the test.
9493 lt_nm_to_check="${ac_tool_prefix}nm"
9494 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9495 lt_nm_to_check="$lt_nm_to_check nm"
9497 for lt_tmp_nm in $lt_nm_to_check; do
9498 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9499 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9501 test -z "$ac_dir" && ac_dir=.
9502 tmp_nm="$ac_dir/$lt_tmp_nm"
9503 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9504 # Check to see if the nm accepts a BSD-compat flag.
9505 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9506 # nm: unknown option "B" ignored
9507 # Tru64's nm complains that /dev/null is an invalid object file
9508 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9509 */dev/null* | *'Invalid file or object type'*)
9510 lt_cv_path_NM="$tmp_nm -B"
9514 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9516 lt_cv_path_NM="$tmp_nm -p"
9520 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9521 continue # so that we can try to find one that supports BSD flags
9530 : ${lt_cv_path_NM=no}
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9534 $as_echo "$lt_cv_path_NM" >&6; }
9535 if test "$lt_cv_path_NM" != "no"; then
9538 # Didn't find any BSD compatible name lister, look for dumpbin.
9539 if test -n "$DUMPBIN"; then :
9540 # Let the user override the test.
9542 if test -n "$ac_tool_prefix"; then
9543 for ac_prog in dumpbin "link -dump"
9545 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9546 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9548 $as_echo_n "checking for $ac_word... " >&6; }
9549 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
9550 $as_echo_n "(cached) " >&6
9552 if test -n "$DUMPBIN"; then
9553 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9559 test -z "$as_dir" && as_dir=.
9560 for ac_exec_ext in '' $ac_executable_extensions; do
9561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9562 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9572 DUMPBIN=$ac_cv_prog_DUMPBIN
9573 if test -n "$DUMPBIN"; then
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9575 $as_echo "$DUMPBIN" >&6; }
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9578 $as_echo "no" >&6; }
9582 test -n "$DUMPBIN" && break
9585 if test -z "$DUMPBIN"; then
9586 ac_ct_DUMPBIN=$DUMPBIN
9587 for ac_prog in dumpbin "link -dump"
9589 # Extract the first word of "$ac_prog", so it can be a program name with args.
9590 set dummy $ac_prog; ac_word=$2
9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9592 $as_echo_n "checking for $ac_word... " >&6; }
9593 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
9594 $as_echo_n "(cached) " >&6
9596 if test -n "$ac_ct_DUMPBIN"; then
9597 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9603 test -z "$as_dir" && as_dir=.
9604 for ac_exec_ext in '' $ac_executable_extensions; do
9605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9606 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9616 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9617 if test -n "$ac_ct_DUMPBIN"; then
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9619 $as_echo "$ac_ct_DUMPBIN" >&6; }
9621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9622 $as_echo "no" >&6; }
9626 test -n "$ac_ct_DUMPBIN" && break
9629 if test "x$ac_ct_DUMPBIN" = x; then
9632 case $cross_compiling:$ac_tool_warned in
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9635 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9636 ac_tool_warned=yes ;;
9638 DUMPBIN=$ac_ct_DUMPBIN
9642 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
9644 DUMPBIN="$DUMPBIN -symbols"
9652 if test "$DUMPBIN" != ":"; then
9656 test -z "$NM" && NM=nm
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9664 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9665 if test "${lt_cv_nm_interface+set}" = set; then :
9666 $as_echo_n "(cached) " >&6
9668 lt_cv_nm_interface="BSD nm"
9669 echo "int some_variable = 0;" > conftest.$ac_ext
9670 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
9671 (eval "$ac_compile" 2>conftest.err)
9672 cat conftest.err >&5
9673 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9674 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9675 cat conftest.err >&5
9676 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
9677 cat conftest.out >&5
9678 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9679 lt_cv_nm_interface="MS dumpbin"
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9684 $as_echo "$lt_cv_nm_interface" >&6; }
9686 # find the maximum length of command line arguments
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9688 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9689 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
9690 $as_echo_n "(cached) " >&6
9697 # On DJGPP, this test can blow up pretty badly due to problems in libc
9698 # (any single argument exceeding 2000 bytes causes a buffer overrun
9699 # during glob expansion). Even if it were fixed, the result of this
9700 # check would be larger than it should be.
9701 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9705 # Under GNU Hurd, this test is not required because there is
9706 # no limit to the length of command line arguments.
9707 # Libtool will interpret -1 as no limit whatsoever
9708 lt_cv_sys_max_cmd_len=-1;
9711 cygwin* | mingw* | cegcc*)
9712 # On Win9x/ME, this test blows up -- it succeeds, but takes
9713 # about 5 minutes as the teststring grows exponentially.
9714 # Worse, since 9x/ME are not pre-emptively multitasking,
9715 # you end up with a "frozen" computer, even though with patience
9716 # the test eventually succeeds (with a max line length of 256k).
9717 # Instead, let's just punt: use the minimum linelength reported by
9718 # all of the supported platforms: 8192 (on NT/2K/XP).
9719 lt_cv_sys_max_cmd_len=8192;
9723 # On MiNT this can take a long time and run out of memory.
9724 lt_cv_sys_max_cmd_len=8192;
9728 # On AmigaOS with pdksh, this test takes hours, literally.
9729 # So we just punt and use a minimum line length of 8192.
9730 lt_cv_sys_max_cmd_len=8192;
9733 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9734 # This has been around since 386BSD, at least. Likely further.
9735 if test -x /sbin/sysctl; then
9736 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9737 elif test -x /usr/sbin/sysctl; then
9738 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9740 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9742 # And add a safety zone
9743 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9744 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9748 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9749 lt_cv_sys_max_cmd_len=196608
9753 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9754 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9755 # nice to cause kernel panics so lets avoid the loop below.
9756 # First set a reasonable default.
9757 lt_cv_sys_max_cmd_len=16384
9759 if test -x /sbin/sysconfig; then
9760 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9761 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9766 lt_cv_sys_max_cmd_len=102400
9768 sysv5* | sco5v6* | sysv4.2uw2*)
9769 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9770 if test -n "$kargmax"; then
9771 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9773 lt_cv_sys_max_cmd_len=32768
9777 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9778 if test -n "$lt_cv_sys_max_cmd_len"; then
9779 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9780 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9782 # Make teststring a little bigger before we do anything with it.
9783 # a 1K string should be a reasonable start.
9784 for i in 1 2 3 4 5 6 7 8 ; do
9785 teststring=$teststring$teststring
9787 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9788 # If test is not a shell built-in, we'll probably end up computing a
9789 # maximum length that is only half of the actual maximum length, but
9791 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9792 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9793 test $i != 17 # 1/2 MB should be enough
9796 teststring=$teststring$teststring
9798 # Only check the string length outside the loop.
9799 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9801 # Add a significant safety factor because C++ compilers can tack on
9802 # massive amounts of additional arguments before passing them to the
9803 # linker. It appears as though 1/2 is a usable value.
9804 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9811 if test -n $lt_cv_sys_max_cmd_len ; then
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9813 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9816 $as_echo "none" >&6; }
9818 max_cmd_len=$lt_cv_sys_max_cmd_len
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9830 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9831 # Try some XSI features
9834 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9836 && eval 'test $(( 1 + 1 )) -eq 2 \
9837 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9840 $as_echo "$xsi_shell" >&6; }
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9844 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9846 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9848 && lt_shell_append=yes
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9850 $as_echo "$lt_shell_append" >&6; }
9853 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9863 # test EBCDIC or ASCII
9864 case `echo X|tr X '\101'` in
9865 A) # ASCII based system
9866 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9867 lt_SP2NL='tr \040 \012'
9868 lt_NL2SP='tr \015\012 \040\040'
9870 *) # EBCDIC based system
9871 lt_SP2NL='tr \100 \n'
9872 lt_NL2SP='tr \r\n \100\100'
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9885 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9886 if test "${lt_cv_ld_reload_flag+set}" = set; then :
9887 $as_echo_n "(cached) " >&6
9889 lt_cv_ld_reload_flag='-r'
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9892 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9893 reload_flag=$lt_cv_ld_reload_flag
9894 case $reload_flag in
9896 *) reload_flag=" $reload_flag" ;;
9898 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9901 if test "$GCC" = yes; then
9902 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9904 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9917 if test -n "$ac_tool_prefix"; then
9918 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9919 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9921 $as_echo_n "checking for $ac_word... " >&6; }
9922 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9923 $as_echo_n "(cached) " >&6
9925 if test -n "$OBJDUMP"; then
9926 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9932 test -z "$as_dir" && as_dir=.
9933 for ac_exec_ext in '' $ac_executable_extensions; do
9934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9935 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9945 OBJDUMP=$ac_cv_prog_OBJDUMP
9946 if test -n "$OBJDUMP"; then
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9948 $as_echo "$OBJDUMP" >&6; }
9950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9951 $as_echo "no" >&6; }
9956 if test -z "$ac_cv_prog_OBJDUMP"; then
9957 ac_ct_OBJDUMP=$OBJDUMP
9958 # Extract the first word of "objdump", so it can be a program name with args.
9959 set dummy objdump; ac_word=$2
9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9961 $as_echo_n "checking for $ac_word... " >&6; }
9962 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
9963 $as_echo_n "(cached) " >&6
9965 if test -n "$ac_ct_OBJDUMP"; then
9966 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9972 test -z "$as_dir" && as_dir=.
9973 for ac_exec_ext in '' $ac_executable_extensions; do
9974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9975 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9985 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9986 if test -n "$ac_ct_OBJDUMP"; then
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9988 $as_echo "$ac_ct_OBJDUMP" >&6; }
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9991 $as_echo "no" >&6; }
9994 if test "x$ac_ct_OBJDUMP" = x; then
9997 case $cross_compiling:$ac_tool_warned in
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10001 ac_tool_warned=yes ;;
10003 OBJDUMP=$ac_ct_OBJDUMP
10006 OBJDUMP="$ac_cv_prog_OBJDUMP"
10009 test -z "$OBJDUMP" && OBJDUMP=objdump
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10017 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10018 if test "${lt_cv_deplibs_check_method+set}" = set; then :
10019 $as_echo_n "(cached) " >&6
10021 lt_cv_file_magic_cmd='$MAGIC_CMD'
10022 lt_cv_file_magic_test_file=
10023 lt_cv_deplibs_check_method='unknown'
10024 # Need to set the preceding variable on all platforms that support
10025 # interlibrary dependencies.
10026 # 'none' -- dependencies not supported.
10027 # `unknown' -- same as none, but documents that we really don't know.
10028 # 'pass_all' -- all dependencies passed with no checks.
10029 # 'test_compile' -- check by making test program.
10030 # 'file_magic [[regex]]' -- check by looking for files in library path
10031 # which responds to the $file_magic_cmd with a given extended regex.
10032 # If you have `file' or equivalent on your system and you're not sure
10033 # whether `pass_all' will *always* work, you probably want this one.
10037 lt_cv_deplibs_check_method=pass_all
10041 lt_cv_deplibs_check_method=pass_all
10045 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10046 lt_cv_file_magic_cmd='/usr/bin/file -L'
10047 lt_cv_file_magic_test_file=/shlib/libc.so
10051 # func_win32_libid is a shell function defined in ltmain.sh
10052 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10053 lt_cv_file_magic_cmd='func_win32_libid'
10057 # Base MSYS/MinGW do not provide the 'file' command needed by
10058 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10059 # unless we find 'file', for example because we are cross-compiling.
10060 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
10061 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
10062 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10063 lt_cv_file_magic_cmd='func_win32_libid'
10065 # Keep this pattern in sync with the one in func_win32_libid.
10066 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
10067 lt_cv_file_magic_cmd='$OBJDUMP -f'
10072 # use the weaker test based on 'objdump'. See mingw*.
10073 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10074 lt_cv_file_magic_cmd='$OBJDUMP -f'
10077 darwin* | rhapsody*)
10078 lt_cv_deplibs_check_method=pass_all
10081 freebsd* | dragonfly*)
10082 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10085 # Not sure whether the presence of OpenBSD here was a mistake.
10086 # Let's accept both of them until this is cleared up.
10087 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10088 lt_cv_file_magic_cmd=/usr/bin/file
10089 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10093 lt_cv_deplibs_check_method=pass_all
10098 lt_cv_deplibs_check_method=pass_all
10102 lt_cv_deplibs_check_method=pass_all
10105 hpux10.20* | hpux11*)
10106 lt_cv_file_magic_cmd=/usr/bin/file
10109 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10110 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10113 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]'
10114 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10117 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
10118 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10124 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10128 irix5* | irix6* | nonstopux*)
10130 *-32|*"-32 ") libmagic=32-bit;;
10131 *-n32|*"-n32 ") libmagic=N32;;
10132 *-64|*"-64 ") libmagic=64-bit;;
10133 *) libmagic=never-match;;
10135 lt_cv_deplibs_check_method=pass_all
10138 # This must be Linux ELF.
10139 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10140 lt_cv_deplibs_check_method=pass_all
10144 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10145 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10147 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10152 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10153 lt_cv_file_magic_cmd=/usr/bin/file
10154 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10158 lt_cv_deplibs_check_method=pass_all
10162 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10163 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10165 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10169 osf3* | osf4* | osf5*)
10170 lt_cv_deplibs_check_method=pass_all
10174 lt_cv_deplibs_check_method=pass_all
10178 lt_cv_deplibs_check_method=pass_all
10181 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10182 lt_cv_deplibs_check_method=pass_all
10186 case $host_vendor in
10188 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]'
10189 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10192 lt_cv_deplibs_check_method=pass_all
10195 lt_cv_file_magic_cmd='/bin/file'
10196 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10199 lt_cv_file_magic_cmd='/bin/file'
10200 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10201 lt_cv_file_magic_test_file=/lib/libc.so
10204 lt_cv_deplibs_check_method=pass_all
10207 lt_cv_deplibs_check_method=pass_all
10213 lt_cv_deplibs_check_method=pass_all
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10219 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10220 file_magic_cmd=$lt_cv_file_magic_cmd
10221 deplibs_check_method=$lt_cv_deplibs_check_method
10222 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10235 if test -n "$ac_tool_prefix"; then
10236 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10237 set dummy ${ac_tool_prefix}ar; ac_word=$2
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10239 $as_echo_n "checking for $ac_word... " >&6; }
10240 if test "${ac_cv_prog_AR+set}" = set; then :
10241 $as_echo_n "(cached) " >&6
10243 if test -n "$AR"; then
10244 ac_cv_prog_AR="$AR" # Let the user override the test.
10246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10247 for as_dir in $PATH
10250 test -z "$as_dir" && as_dir=.
10251 for ac_exec_ext in '' $ac_executable_extensions; do
10252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10253 ac_cv_prog_AR="${ac_tool_prefix}ar"
10254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10264 if test -n "$AR"; then
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10266 $as_echo "$AR" >&6; }
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10269 $as_echo "no" >&6; }
10274 if test -z "$ac_cv_prog_AR"; then
10276 # Extract the first word of "ar", so it can be a program name with args.
10277 set dummy ar; ac_word=$2
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10279 $as_echo_n "checking for $ac_word... " >&6; }
10280 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10281 $as_echo_n "(cached) " >&6
10283 if test -n "$ac_ct_AR"; then
10284 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10287 for as_dir in $PATH
10290 test -z "$as_dir" && as_dir=.
10291 for ac_exec_ext in '' $ac_executable_extensions; do
10292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10293 ac_cv_prog_ac_ct_AR="ar"
10294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10303 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10304 if test -n "$ac_ct_AR"; then
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10306 $as_echo "$ac_ct_AR" >&6; }
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10309 $as_echo "no" >&6; }
10312 if test "x$ac_ct_AR" = x; then
10315 case $cross_compiling:$ac_tool_warned in
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10319 ac_tool_warned=yes ;;
10324 AR="$ac_cv_prog_AR"
10327 test -z "$AR" && AR=ar
10328 test -z "$AR_FLAGS" && AR_FLAGS=cru
10340 if test -n "$ac_tool_prefix"; then
10341 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10342 set dummy ${ac_tool_prefix}strip; ac_word=$2
10343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10344 $as_echo_n "checking for $ac_word... " >&6; }
10345 if test "${ac_cv_prog_STRIP+set}" = set; then :
10346 $as_echo_n "(cached) " >&6
10348 if test -n "$STRIP"; then
10349 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10352 for as_dir in $PATH
10355 test -z "$as_dir" && as_dir=.
10356 for ac_exec_ext in '' $ac_executable_extensions; do
10357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10358 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10368 STRIP=$ac_cv_prog_STRIP
10369 if test -n "$STRIP"; then
10370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10371 $as_echo "$STRIP" >&6; }
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10374 $as_echo "no" >&6; }
10379 if test -z "$ac_cv_prog_STRIP"; then
10381 # Extract the first word of "strip", so it can be a program name with args.
10382 set dummy strip; ac_word=$2
10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10384 $as_echo_n "checking for $ac_word... " >&6; }
10385 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10386 $as_echo_n "(cached) " >&6
10388 if test -n "$ac_ct_STRIP"; then
10389 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10392 for as_dir in $PATH
10395 test -z "$as_dir" && as_dir=.
10396 for ac_exec_ext in '' $ac_executable_extensions; do
10397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10398 ac_cv_prog_ac_ct_STRIP="strip"
10399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10408 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10409 if test -n "$ac_ct_STRIP"; then
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10411 $as_echo "$ac_ct_STRIP" >&6; }
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10414 $as_echo "no" >&6; }
10417 if test "x$ac_ct_STRIP" = x; then
10420 case $cross_compiling:$ac_tool_warned in
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10424 ac_tool_warned=yes ;;
10429 STRIP="$ac_cv_prog_STRIP"
10432 test -z "$STRIP" && STRIP=:
10439 if test -n "$ac_tool_prefix"; then
10440 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10441 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10443 $as_echo_n "checking for $ac_word... " >&6; }
10444 if test "${ac_cv_prog_RANLIB+set}" = set; then :
10445 $as_echo_n "(cached) " >&6
10447 if test -n "$RANLIB"; then
10448 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10451 for as_dir in $PATH
10454 test -z "$as_dir" && as_dir=.
10455 for ac_exec_ext in '' $ac_executable_extensions; do
10456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10457 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10467 RANLIB=$ac_cv_prog_RANLIB
10468 if test -n "$RANLIB"; then
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10470 $as_echo "$RANLIB" >&6; }
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10473 $as_echo "no" >&6; }
10478 if test -z "$ac_cv_prog_RANLIB"; then
10479 ac_ct_RANLIB=$RANLIB
10480 # Extract the first word of "ranlib", so it can be a program name with args.
10481 set dummy ranlib; ac_word=$2
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10483 $as_echo_n "checking for $ac_word... " >&6; }
10484 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10485 $as_echo_n "(cached) " >&6
10487 if test -n "$ac_ct_RANLIB"; then
10488 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10491 for as_dir in $PATH
10494 test -z "$as_dir" && as_dir=.
10495 for ac_exec_ext in '' $ac_executable_extensions; do
10496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10497 ac_cv_prog_ac_ct_RANLIB="ranlib"
10498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10507 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10508 if test -n "$ac_ct_RANLIB"; then
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10510 $as_echo "$ac_ct_RANLIB" >&6; }
10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10513 $as_echo "no" >&6; }
10516 if test "x$ac_ct_RANLIB" = x; then
10519 case $cross_compiling:$ac_tool_warned in
10521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10523 ac_tool_warned=yes ;;
10525 RANLIB=$ac_ct_RANLIB
10528 RANLIB="$ac_cv_prog_RANLIB"
10531 test -z "$RANLIB" && RANLIB=:
10538 # Determine commands to create old-style static archives.
10539 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10540 old_postinstall_cmds='chmod 644 $oldlib'
10541 old_postuninstall_cmds=
10543 if test -n "$RANLIB"; then
10546 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10549 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10552 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10557 lock_old_archive_extraction=yes ;;
10559 lock_old_archive_extraction=no ;;
10600 # If no C compiler was specified, use CC.
10603 # If no C compiler flags were specified, use CFLAGS.
10604 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10606 # Allow CC to be a program name with arguments.
10610 # Check for command to grab the raw symbol name followed by C symbol from nm.
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10612 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10613 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
10614 $as_echo_n "(cached) " >&6
10617 # These are sane defaults that work on at least a few old systems.
10618 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10620 # Character class describing NM global symbol codes.
10621 symcode='[BCDEGRST]'
10623 # Regexp to match symbols that can be accessed directly from C.
10624 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10626 # Define system-specific variables.
10631 cygwin* | mingw* | pw32* | cegcc*)
10632 symcode='[ABCDGISTW]'
10635 if test "$host_cpu" = ia64; then
10636 symcode='[ABCDEGRST]'
10639 irix* | nonstopux*)
10640 symcode='[BCDEGRST]'
10643 symcode='[BCDEGQRST]'
10654 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10662 # If we're using GNU nm, then use its standard symbol codes.
10663 case `$NM -V 2>&1` in
10664 *GNU* | *'with BFD'*)
10665 symcode='[ABCDGIRSTW]' ;;
10668 # Transform an extracted symbol line into a proper C declaration.
10669 # Some systems (esp. on ia64) link data and code symbols differently,
10670 # so use this general approach.
10671 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10673 # Transform an extracted symbol line into symbol name and symbol address
10674 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10675 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'"
10677 # Handle CRLF in mingw tool chain
10681 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10685 # Try without a prefix underscore, then with it.
10686 for ac_symprfx in "" "_"; do
10688 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10689 symxfrm="\\1 $ac_symprfx\\2 \\2"
10691 # Write the raw and C identifiers.
10692 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10693 # Fake it for dumpbin and say T for any non-static function
10694 # and D for any global variable.
10695 # Also find C++ and __fastcall symbols from MSVC++,
10696 # which start with @ or ?.
10697 lt_cv_sys_global_symbol_pipe="$AWK '"\
10698 " {last_section=section; section=\$ 3};"\
10699 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10700 " \$ 0!~/External *\|/{next};"\
10701 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10702 " {if(hide[section]) next};"\
10703 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10704 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10705 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
10706 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10707 " ' prfx=^$ac_symprfx"
10709 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10712 # Check to see that the pipe works correctly.
10716 cat > conftest.$ac_ext <<_LT_EOF
10721 void nm_test_func(void);
10722 void nm_test_func(void){}
10726 int main(){nm_test_var='a';nm_test_func();return(0);}
10729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10730 (eval $ac_compile) 2>&5
10732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10733 test $ac_status = 0; }; then
10734 # Now try to grab the symbols.
10736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10737 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10740 test $ac_status = 0; } && test -s "$nlist"; then
10741 # Try sorting and uniquifying the output.
10742 if sort "$nlist" | uniq > "$nlist"T; then
10743 mv -f "$nlist"T "$nlist"
10748 # Make sure that we snagged all the symbols we need.
10749 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10750 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10751 cat <<_LT_EOF > conftest.$ac_ext
10757 # Now generate the symbol file.
10758 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10760 cat <<_LT_EOF >> conftest.$ac_ext
10762 /* The mapping between symbol names and symbols. */
10767 lt__PROGRAM__LTX_preloaded_symbols[] =
10769 { "@PROGRAM@", (void *) 0 },
10771 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10772 cat <<\_LT_EOF >> conftest.$ac_ext
10776 /* This works around a problem in FreeBSD linker */
10777 #ifdef FREEBSD_WORKAROUND
10778 static const void *lt_preloaded_setup() {
10779 return lt__PROGRAM__LTX_preloaded_symbols;
10787 # Now try linking the two files.
10788 mv conftest.$ac_objext conftstm.$ac_objext
10789 lt_save_LIBS="$LIBS"
10790 lt_save_CFLAGS="$CFLAGS"
10791 LIBS="conftstm.$ac_objext"
10792 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10794 (eval $ac_link) 2>&5
10796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10797 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10800 LIBS="$lt_save_LIBS"
10801 CFLAGS="$lt_save_CFLAGS"
10803 echo "cannot find nm_test_func in $nlist" >&5
10806 echo "cannot find nm_test_var in $nlist" >&5
10809 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10812 echo "$progname: failed program was:" >&5
10813 cat conftest.$ac_ext >&5
10815 rm -rf conftest* conftst*
10817 # Do not use the global_symbol_pipe unless it works.
10818 if test "$pipe_works" = yes; then
10821 lt_cv_sys_global_symbol_pipe=
10827 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10828 lt_cv_sys_global_symbol_to_cdecl=
10830 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10832 $as_echo "failed" >&6; }
10834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10835 $as_echo "ok" >&6; }
10859 # Check whether --enable-libtool-lock was given.
10860 if test "${enable_libtool_lock+set}" = set; then :
10861 enableval=$enable_libtool_lock;
10864 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10866 # Some flags need to be propagated to the compiler or linker for good
10870 # Find out which ABI we are using.
10871 echo 'int i;' > conftest.$ac_ext
10872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10873 (eval $ac_compile) 2>&5
10875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10876 test $ac_status = 0; }; then
10877 case `/usr/bin/file conftest.$ac_objext` in
10879 HPUX_IA64_MODE="32"
10882 HPUX_IA64_MODE="64"
10889 # Find out which ABI we are using.
10890 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10892 (eval $ac_compile) 2>&5
10894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10895 test $ac_status = 0; }; then
10896 if test "$lt_cv_prog_gnu_ld" = yes; then
10897 case `/usr/bin/file conftest.$ac_objext` in
10899 LD="${LD-ld} -melf32bsmip"
10902 LD="${LD-ld} -melf32bmipn32"
10905 LD="${LD-ld} -melf64bmip"
10909 case `/usr/bin/file conftest.$ac_objext` in
10925 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10926 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10927 # Find out which ABI we are using.
10928 echo 'int i;' > conftest.$ac_ext
10929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10930 (eval $ac_compile) 2>&5
10932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10933 test $ac_status = 0; }; then
10934 case `/usr/bin/file conftest.o` in
10937 x86_64-*kfreebsd*-gnu)
10938 LD="${LD-ld} -m elf_i386_fbsd"
10941 LD="${LD-ld} -m elf_i386"
10943 ppc64-*linux*|powerpc64-*linux*)
10944 LD="${LD-ld} -m elf32ppclinux"
10947 LD="${LD-ld} -m elf_s390"
10950 LD="${LD-ld} -m elf32_sparc"
10956 x86_64-*kfreebsd*-gnu)
10957 LD="${LD-ld} -m elf_x86_64_fbsd"
10960 LD="${LD-ld} -m elf_x86_64"
10962 ppc*-*linux*|powerpc*-*linux*)
10963 LD="${LD-ld} -m elf64ppc"
10965 s390*-*linux*|s390*-*tpf*)
10966 LD="${LD-ld} -m elf64_s390"
10969 LD="${LD-ld} -m elf64_sparc"
10979 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10980 SAVE_CFLAGS="$CFLAGS"
10981 CFLAGS="$CFLAGS -belf"
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10983 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10984 if test "${lt_cv_cc_needs_belf+set}" = set; then :
10985 $as_echo_n "(cached) " >&6
10988 ac_cpp='$CPP $CPPFLAGS'
10989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10994 /* end confdefs.h. */
11004 if ac_fn_c_try_link "$LINENO"; then :
11005 lt_cv_cc_needs_belf=yes
11007 lt_cv_cc_needs_belf=no
11009 rm -f core conftest.err conftest.$ac_objext \
11010 conftest$ac_exeext conftest.$ac_ext
11012 ac_cpp='$CPP $CPPFLAGS'
11013 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11014 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11015 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11019 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11020 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11021 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11022 CFLAGS="$SAVE_CFLAGS"
11026 # Find out which ABI we are using.
11027 echo 'int i;' > conftest.$ac_ext
11028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11029 (eval $ac_compile) 2>&5
11031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11032 test $ac_status = 0; }; then
11033 case `/usr/bin/file conftest.o` in
11035 case $lt_cv_prog_gnu_ld in
11036 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11038 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11050 need_locks="$enable_libtool_lock"
11054 rhapsody* | darwin*)
11055 if test -n "$ac_tool_prefix"; then
11056 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11057 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11059 $as_echo_n "checking for $ac_word... " >&6; }
11060 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
11061 $as_echo_n "(cached) " >&6
11063 if test -n "$DSYMUTIL"; then
11064 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11067 for as_dir in $PATH
11070 test -z "$as_dir" && as_dir=.
11071 for ac_exec_ext in '' $ac_executable_extensions; do
11072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11073 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11083 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11084 if test -n "$DSYMUTIL"; then
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11086 $as_echo "$DSYMUTIL" >&6; }
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11089 $as_echo "no" >&6; }
11094 if test -z "$ac_cv_prog_DSYMUTIL"; then
11095 ac_ct_DSYMUTIL=$DSYMUTIL
11096 # Extract the first word of "dsymutil", so it can be a program name with args.
11097 set dummy dsymutil; ac_word=$2
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11099 $as_echo_n "checking for $ac_word... " >&6; }
11100 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
11101 $as_echo_n "(cached) " >&6
11103 if test -n "$ac_ct_DSYMUTIL"; then
11104 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107 for as_dir in $PATH
11110 test -z "$as_dir" && as_dir=.
11111 for ac_exec_ext in '' $ac_executable_extensions; do
11112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11113 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11123 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11124 if test -n "$ac_ct_DSYMUTIL"; then
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11126 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11129 $as_echo "no" >&6; }
11132 if test "x$ac_ct_DSYMUTIL" = x; then
11135 case $cross_compiling:$ac_tool_warned in
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11138 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11139 ac_tool_warned=yes ;;
11141 DSYMUTIL=$ac_ct_DSYMUTIL
11144 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11147 if test -n "$ac_tool_prefix"; then
11148 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11149 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11151 $as_echo_n "checking for $ac_word... " >&6; }
11152 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
11153 $as_echo_n "(cached) " >&6
11155 if test -n "$NMEDIT"; then
11156 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11159 for as_dir in $PATH
11162 test -z "$as_dir" && as_dir=.
11163 for ac_exec_ext in '' $ac_executable_extensions; do
11164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11165 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11175 NMEDIT=$ac_cv_prog_NMEDIT
11176 if test -n "$NMEDIT"; then
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11178 $as_echo "$NMEDIT" >&6; }
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11181 $as_echo "no" >&6; }
11186 if test -z "$ac_cv_prog_NMEDIT"; then
11187 ac_ct_NMEDIT=$NMEDIT
11188 # Extract the first word of "nmedit", so it can be a program name with args.
11189 set dummy nmedit; ac_word=$2
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11191 $as_echo_n "checking for $ac_word... " >&6; }
11192 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
11193 $as_echo_n "(cached) " >&6
11195 if test -n "$ac_ct_NMEDIT"; then
11196 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11199 for as_dir in $PATH
11202 test -z "$as_dir" && as_dir=.
11203 for ac_exec_ext in '' $ac_executable_extensions; do
11204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11205 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11215 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11216 if test -n "$ac_ct_NMEDIT"; then
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11218 $as_echo "$ac_ct_NMEDIT" >&6; }
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11221 $as_echo "no" >&6; }
11224 if test "x$ac_ct_NMEDIT" = x; then
11227 case $cross_compiling:$ac_tool_warned in
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11231 ac_tool_warned=yes ;;
11233 NMEDIT=$ac_ct_NMEDIT
11236 NMEDIT="$ac_cv_prog_NMEDIT"
11239 if test -n "$ac_tool_prefix"; then
11240 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11241 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11243 $as_echo_n "checking for $ac_word... " >&6; }
11244 if test "${ac_cv_prog_LIPO+set}" = set; then :
11245 $as_echo_n "(cached) " >&6
11247 if test -n "$LIPO"; then
11248 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11251 for as_dir in $PATH
11254 test -z "$as_dir" && as_dir=.
11255 for ac_exec_ext in '' $ac_executable_extensions; do
11256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11257 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11267 LIPO=$ac_cv_prog_LIPO
11268 if test -n "$LIPO"; then
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11270 $as_echo "$LIPO" >&6; }
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11273 $as_echo "no" >&6; }
11278 if test -z "$ac_cv_prog_LIPO"; then
11280 # Extract the first word of "lipo", so it can be a program name with args.
11281 set dummy lipo; ac_word=$2
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11283 $as_echo_n "checking for $ac_word... " >&6; }
11284 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
11285 $as_echo_n "(cached) " >&6
11287 if test -n "$ac_ct_LIPO"; then
11288 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11291 for as_dir in $PATH
11294 test -z "$as_dir" && as_dir=.
11295 for ac_exec_ext in '' $ac_executable_extensions; do
11296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11297 ac_cv_prog_ac_ct_LIPO="lipo"
11298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11307 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11308 if test -n "$ac_ct_LIPO"; then
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11310 $as_echo "$ac_ct_LIPO" >&6; }
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11313 $as_echo "no" >&6; }
11316 if test "x$ac_ct_LIPO" = x; then
11319 case $cross_compiling:$ac_tool_warned in
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11322 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11323 ac_tool_warned=yes ;;
11328 LIPO="$ac_cv_prog_LIPO"
11331 if test -n "$ac_tool_prefix"; then
11332 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11333 set dummy ${ac_tool_prefix}otool; ac_word=$2
11334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11335 $as_echo_n "checking for $ac_word... " >&6; }
11336 if test "${ac_cv_prog_OTOOL+set}" = set; then :
11337 $as_echo_n "(cached) " >&6
11339 if test -n "$OTOOL"; then
11340 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11343 for as_dir in $PATH
11346 test -z "$as_dir" && as_dir=.
11347 for ac_exec_ext in '' $ac_executable_extensions; do
11348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11349 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11359 OTOOL=$ac_cv_prog_OTOOL
11360 if test -n "$OTOOL"; then
11361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11362 $as_echo "$OTOOL" >&6; }
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11365 $as_echo "no" >&6; }
11370 if test -z "$ac_cv_prog_OTOOL"; then
11372 # Extract the first word of "otool", so it can be a program name with args.
11373 set dummy otool; ac_word=$2
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11375 $as_echo_n "checking for $ac_word... " >&6; }
11376 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
11377 $as_echo_n "(cached) " >&6
11379 if test -n "$ac_ct_OTOOL"; then
11380 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11383 for as_dir in $PATH
11386 test -z "$as_dir" && as_dir=.
11387 for ac_exec_ext in '' $ac_executable_extensions; do
11388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11389 ac_cv_prog_ac_ct_OTOOL="otool"
11390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11399 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11400 if test -n "$ac_ct_OTOOL"; then
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11402 $as_echo "$ac_ct_OTOOL" >&6; }
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11405 $as_echo "no" >&6; }
11408 if test "x$ac_ct_OTOOL" = x; then
11411 case $cross_compiling:$ac_tool_warned in
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11415 ac_tool_warned=yes ;;
11420 OTOOL="$ac_cv_prog_OTOOL"
11423 if test -n "$ac_tool_prefix"; then
11424 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11425 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11427 $as_echo_n "checking for $ac_word... " >&6; }
11428 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
11429 $as_echo_n "(cached) " >&6
11431 if test -n "$OTOOL64"; then
11432 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11435 for as_dir in $PATH
11438 test -z "$as_dir" && as_dir=.
11439 for ac_exec_ext in '' $ac_executable_extensions; do
11440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11441 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11451 OTOOL64=$ac_cv_prog_OTOOL64
11452 if test -n "$OTOOL64"; then
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11454 $as_echo "$OTOOL64" >&6; }
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11457 $as_echo "no" >&6; }
11462 if test -z "$ac_cv_prog_OTOOL64"; then
11463 ac_ct_OTOOL64=$OTOOL64
11464 # Extract the first word of "otool64", so it can be a program name with args.
11465 set dummy otool64; ac_word=$2
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11467 $as_echo_n "checking for $ac_word... " >&6; }
11468 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
11469 $as_echo_n "(cached) " >&6
11471 if test -n "$ac_ct_OTOOL64"; then
11472 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11475 for as_dir in $PATH
11478 test -z "$as_dir" && as_dir=.
11479 for ac_exec_ext in '' $ac_executable_extensions; do
11480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11481 ac_cv_prog_ac_ct_OTOOL64="otool64"
11482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11491 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11492 if test -n "$ac_ct_OTOOL64"; then
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11494 $as_echo "$ac_ct_OTOOL64" >&6; }
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11497 $as_echo "no" >&6; }
11500 if test "x$ac_ct_OTOOL64" = x; then
11503 case $cross_compiling:$ac_tool_warned in
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11507 ac_tool_warned=yes ;;
11509 OTOOL64=$ac_ct_OTOOL64
11512 OTOOL64="$ac_cv_prog_OTOOL64"
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11542 $as_echo_n "checking for -single_module linker flag... " >&6; }
11543 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
11544 $as_echo_n "(cached) " >&6
11546 lt_cv_apple_cc_single_mod=no
11547 if test -z "${LT_MULTI_MODULE}"; then
11548 # By default we will add the -single_module flag. You can override
11549 # by either setting the environment variable LT_MULTI_MODULE
11550 # non-empty at configure time, or by adding -multi_module to the
11552 rm -rf libconftest.dylib*
11553 echo "int foo(void){return 1;}" > conftest.c
11554 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11555 -dynamiclib -Wl,-single_module conftest.c" >&5
11556 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11557 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11559 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11560 lt_cv_apple_cc_single_mod=yes
11562 cat conftest.err >&5
11564 rm -rf libconftest.dylib*
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11569 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11571 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11572 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
11573 $as_echo_n "(cached) " >&6
11575 lt_cv_ld_exported_symbols_list=no
11576 save_LDFLAGS=$LDFLAGS
11577 echo "_main" > conftest.sym
11578 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11580 /* end confdefs.h. */
11590 if ac_fn_c_try_link "$LINENO"; then :
11591 lt_cv_ld_exported_symbols_list=yes
11593 lt_cv_ld_exported_symbols_list=no
11595 rm -f core conftest.err conftest.$ac_objext \
11596 conftest$ac_exeext conftest.$ac_ext
11597 LDFLAGS="$save_LDFLAGS"
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11601 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11603 $as_echo_n "checking for -force_load linker flag... " >&6; }
11604 if test "${lt_cv_ld_force_load+set}" = set; then :
11605 $as_echo_n "(cached) " >&6
11607 lt_cv_ld_force_load=no
11608 cat > conftest.c << _LT_EOF
11609 int forced_loaded() { return 2;}
11611 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11612 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11613 echo "$AR cru libconftest.a conftest.o" >&5
11614 $AR cru libconftest.a conftest.o 2>&5
11615 echo "$RANLIB libconftest.a" >&5
11616 $RANLIB libconftest.a 2>&5
11617 cat > conftest.c << _LT_EOF
11618 int main() { return 0;}
11620 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11621 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11623 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
11624 lt_cv_ld_force_load=yes
11626 cat conftest.err >&5
11628 rm -f conftest.err libconftest.a conftest conftest.c
11629 rm -rf conftest.dSYM
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11633 $as_echo "$lt_cv_ld_force_load" >&6; }
11635 rhapsody* | darwin1.[012])
11636 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11638 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11639 darwin*) # darwin 5.x on
11640 # if running on 10.5 or later, the deployment target defaults
11641 # to the OS version, if on x86, and 10.4, the deployment
11642 # target defaults to 10.4. Don't you love it?
11643 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11644 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11645 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11647 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11649 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11653 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11654 _lt_dar_single_mod='$single_module'
11656 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11657 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11659 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11661 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
11662 _lt_dsymutil='~$DSYMUTIL $lib || :'
11669 for ac_header in dlfcn.h
11671 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11673 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11674 cat >>confdefs.h <<_ACEOF
11675 #define HAVE_DLFCN_H 1
11688 enable_win32_dll=yes
11691 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11692 if test -n "$ac_tool_prefix"; then
11693 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11694 set dummy ${ac_tool_prefix}as; ac_word=$2
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11696 $as_echo_n "checking for $ac_word... " >&6; }
11697 if test "${ac_cv_prog_AS+set}" = set; then :
11698 $as_echo_n "(cached) " >&6
11700 if test -n "$AS"; then
11701 ac_cv_prog_AS="$AS" # Let the user override the test.
11703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11704 for as_dir in $PATH
11707 test -z "$as_dir" && as_dir=.
11708 for ac_exec_ext in '' $ac_executable_extensions; do
11709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11710 ac_cv_prog_AS="${ac_tool_prefix}as"
11711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11721 if test -n "$AS"; then
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11723 $as_echo "$AS" >&6; }
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726 $as_echo "no" >&6; }
11731 if test -z "$ac_cv_prog_AS"; then
11733 # Extract the first word of "as", so it can be a program name with args.
11734 set dummy as; ac_word=$2
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11736 $as_echo_n "checking for $ac_word... " >&6; }
11737 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
11738 $as_echo_n "(cached) " >&6
11740 if test -n "$ac_ct_AS"; then
11741 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11744 for as_dir in $PATH
11747 test -z "$as_dir" && as_dir=.
11748 for ac_exec_ext in '' $ac_executable_extensions; do
11749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11750 ac_cv_prog_ac_ct_AS="as"
11751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11760 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11761 if test -n "$ac_ct_AS"; then
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11763 $as_echo "$ac_ct_AS" >&6; }
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11766 $as_echo "no" >&6; }
11769 if test "x$ac_ct_AS" = x; then
11772 case $cross_compiling:$ac_tool_warned in
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11775 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11776 ac_tool_warned=yes ;;
11781 AS="$ac_cv_prog_AS"
11784 if test -n "$ac_tool_prefix"; then
11785 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11786 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11788 $as_echo_n "checking for $ac_word... " >&6; }
11789 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
11790 $as_echo_n "(cached) " >&6
11792 if test -n "$DLLTOOL"; then
11793 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11796 for as_dir in $PATH
11799 test -z "$as_dir" && as_dir=.
11800 for ac_exec_ext in '' $ac_executable_extensions; do
11801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11802 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11812 DLLTOOL=$ac_cv_prog_DLLTOOL
11813 if test -n "$DLLTOOL"; then
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11815 $as_echo "$DLLTOOL" >&6; }
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11818 $as_echo "no" >&6; }
11823 if test -z "$ac_cv_prog_DLLTOOL"; then
11824 ac_ct_DLLTOOL=$DLLTOOL
11825 # Extract the first word of "dlltool", so it can be a program name with args.
11826 set dummy dlltool; ac_word=$2
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11828 $as_echo_n "checking for $ac_word... " >&6; }
11829 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
11830 $as_echo_n "(cached) " >&6
11832 if test -n "$ac_ct_DLLTOOL"; then
11833 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11836 for as_dir in $PATH
11839 test -z "$as_dir" && as_dir=.
11840 for ac_exec_ext in '' $ac_executable_extensions; do
11841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11842 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11852 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11853 if test -n "$ac_ct_DLLTOOL"; then
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11855 $as_echo "$ac_ct_DLLTOOL" >&6; }
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11858 $as_echo "no" >&6; }
11861 if test "x$ac_ct_DLLTOOL" = x; then
11864 case $cross_compiling:$ac_tool_warned in
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11867 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11868 ac_tool_warned=yes ;;
11870 DLLTOOL=$ac_ct_DLLTOOL
11873 DLLTOOL="$ac_cv_prog_DLLTOOL"
11876 if test -n "$ac_tool_prefix"; then
11877 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11878 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11880 $as_echo_n "checking for $ac_word... " >&6; }
11881 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11882 $as_echo_n "(cached) " >&6
11884 if test -n "$OBJDUMP"; then
11885 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11888 for as_dir in $PATH
11891 test -z "$as_dir" && as_dir=.
11892 for ac_exec_ext in '' $ac_executable_extensions; do
11893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11894 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11904 OBJDUMP=$ac_cv_prog_OBJDUMP
11905 if test -n "$OBJDUMP"; then
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11907 $as_echo "$OBJDUMP" >&6; }
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910 $as_echo "no" >&6; }
11915 if test -z "$ac_cv_prog_OBJDUMP"; then
11916 ac_ct_OBJDUMP=$OBJDUMP
11917 # Extract the first word of "objdump", so it can be a program name with args.
11918 set dummy objdump; ac_word=$2
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11920 $as_echo_n "checking for $ac_word... " >&6; }
11921 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11922 $as_echo_n "(cached) " >&6
11924 if test -n "$ac_ct_OBJDUMP"; then
11925 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928 for as_dir in $PATH
11931 test -z "$as_dir" && as_dir=.
11932 for ac_exec_ext in '' $ac_executable_extensions; do
11933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11934 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11944 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11945 if test -n "$ac_ct_OBJDUMP"; then
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11947 $as_echo "$ac_ct_OBJDUMP" >&6; }
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11950 $as_echo "no" >&6; }
11953 if test "x$ac_ct_OBJDUMP" = x; then
11956 case $cross_compiling:$ac_tool_warned in
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11960 ac_tool_warned=yes ;;
11962 OBJDUMP=$ac_ct_OBJDUMP
11965 OBJDUMP="$ac_cv_prog_OBJDUMP"
11971 test -z "$AS" && AS=as
11977 test -z "$DLLTOOL" && DLLTOOL=dlltool
11983 test -z "$OBJDUMP" && OBJDUMP=objdump
11993 # Check whether --enable-shared was given.
11994 if test "${enable_shared+set}" = set; then :
11995 enableval=$enable_shared; p=${PACKAGE-default}
11997 yes) enable_shared=yes ;;
11998 no) enable_shared=no ;;
12001 # Look at the argument we got. We use all the common list separators.
12002 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12003 for pkg in $enableval; do
12005 if test "X$pkg" = "X$p"; then
12024 # Check whether --enable-static was given.
12025 if test "${enable_static+set}" = set; then :
12026 enableval=$enable_static; p=${PACKAGE-default}
12028 yes) enable_static=yes ;;
12029 no) enable_static=no ;;
12032 # Look at the argument we got. We use all the common list separators.
12033 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12034 for pkg in $enableval; do
12036 if test "X$pkg" = "X$p"; then
12056 # Check whether --with-pic was given.
12057 if test "${with_pic+set}" = set; then :
12058 withval=$with_pic; pic_mode="$withval"
12064 test -z "$pic_mode" && pic_mode=default
12072 # Check whether --enable-fast-install was given.
12073 if test "${enable_fast_install+set}" = set; then :
12074 enableval=$enable_fast_install; p=${PACKAGE-default}
12076 yes) enable_fast_install=yes ;;
12077 no) enable_fast_install=no ;;
12079 enable_fast_install=no
12080 # Look at the argument we got. We use all the common list separators.
12081 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12082 for pkg in $enableval; do
12084 if test "X$pkg" = "X$p"; then
12085 enable_fast_install=yes
12092 enable_fast_install=yes
12105 # This can be used to rebuild libtool when needed
12106 LIBTOOL_DEPS="$ltmain"
12108 # Always use our own libtool.
12109 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12136 test -z "$LN_S" && LN_S="ln -s"
12151 if test -n "${ZSH_VERSION+set}" ; then
12152 setopt NO_GLOB_SUBST
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12156 $as_echo_n "checking for objdir... " >&6; }
12157 if test "${lt_cv_objdir+set}" = set; then :
12158 $as_echo_n "(cached) " >&6
12160 rm -f .libs 2>/dev/null
12161 mkdir .libs 2>/dev/null
12162 if test -d .libs; then
12165 # MS-DOS does not allow filenames that begin with a dot.
12168 rmdir .libs 2>/dev/null
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12171 $as_echo "$lt_cv_objdir" >&6; }
12172 objdir=$lt_cv_objdir
12178 cat >>confdefs.h <<_ACEOF
12179 #define LT_OBJDIR "$lt_cv_objdir/"
12187 # AIX sometimes has problems with the GCC collect2 program. For some
12188 # reason, if we set the COLLECT_NAMES environment variable, the problems
12189 # vanish in a puff of smoke.
12190 if test "X${COLLECT_NAMES+set}" != Xset; then
12192 export COLLECT_NAMES
12197 # Global variables:
12199 can_build_shared=yes
12201 # All known linkers require a `.a' archive for static linking (except MSVC,
12202 # which needs '.lib').
12205 with_gnu_ld="$lt_cv_prog_gnu_ld"
12208 old_CFLAGS="$CFLAGS"
12210 # Set sane defaults for various variables
12211 test -z "$CC" && CC=cc
12212 test -z "$LTCC" && LTCC=$CC
12213 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12214 test -z "$LD" && LD=ld
12215 test -z "$ac_objext" && ac_objext=o
12217 for cc_temp in $compiler""; do
12219 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12220 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12225 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12228 # Only perform the check for file, if the check method requires it
12229 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12230 case $deplibs_check_method in
12232 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12234 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12235 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12236 $as_echo_n "(cached) " >&6
12240 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12243 lt_save_MAGIC_CMD="$MAGIC_CMD"
12244 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12245 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12246 for ac_dir in $ac_dummy; do
12248 test -z "$ac_dir" && ac_dir=.
12249 if test -f $ac_dir/${ac_tool_prefix}file; then
12250 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12251 if test -n "$file_magic_test_file"; then
12252 case $deplibs_check_method in
12254 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12255 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12256 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12257 $EGREP "$file_magic_regex" > /dev/null; then
12262 *** Warning: the command libtool uses to detect shared libraries,
12263 *** $file_magic_cmd, produces output that libtool cannot recognize.
12264 *** The result is that libtool may fail to recognize shared libraries
12265 *** as such. This will affect the creation of libtool libraries that
12266 *** depend on shared libraries, but programs linked with such libtool
12267 *** libraries will work regardless of this problem. Nevertheless, you
12268 *** may want to report the problem to your system manager and/or to
12269 *** bug-libtool@gnu.org
12279 MAGIC_CMD="$lt_save_MAGIC_CMD"
12284 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12285 if test -n "$MAGIC_CMD"; then
12286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12287 $as_echo "$MAGIC_CMD" >&6; }
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12290 $as_echo "no" >&6; }
12297 if test -z "$lt_cv_path_MAGIC_CMD"; then
12298 if test -n "$ac_tool_prefix"; then
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12300 $as_echo_n "checking for file... " >&6; }
12301 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12302 $as_echo_n "(cached) " >&6
12306 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12309 lt_save_MAGIC_CMD="$MAGIC_CMD"
12310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12311 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12312 for ac_dir in $ac_dummy; do
12314 test -z "$ac_dir" && ac_dir=.
12315 if test -f $ac_dir/file; then
12316 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12317 if test -n "$file_magic_test_file"; then
12318 case $deplibs_check_method in
12320 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12321 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12322 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12323 $EGREP "$file_magic_regex" > /dev/null; then
12328 *** Warning: the command libtool uses to detect shared libraries,
12329 *** $file_magic_cmd, produces output that libtool cannot recognize.
12330 *** The result is that libtool may fail to recognize shared libraries
12331 *** as such. This will affect the creation of libtool libraries that
12332 *** depend on shared libraries, but programs linked with such libtool
12333 *** libraries will work regardless of this problem. Nevertheless, you
12334 *** may want to report the problem to your system manager and/or to
12335 *** bug-libtool@gnu.org
12345 MAGIC_CMD="$lt_save_MAGIC_CMD"
12350 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12351 if test -n "$MAGIC_CMD"; then
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12353 $as_echo "$MAGIC_CMD" >&6; }
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12356 $as_echo "no" >&6; }
12369 # Use C for the default configuration in the libtool script
12373 ac_cpp='$CPP $CPPFLAGS'
12374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12379 # Source file extension for C test sources.
12382 # Object file extension for compiled C test sources.
12386 # Code to be used in simple compile tests
12387 lt_simple_compile_test_code="int some_variable = 0;"
12389 # Code to be used in simple link tests
12390 lt_simple_link_test_code='int main(){return(0);}'
12398 # If no C compiler was specified, use CC.
12401 # If no C compiler flags were specified, use CFLAGS.
12402 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12404 # Allow CC to be a program name with arguments.
12407 # Save the default compiler, since it gets overwritten when the other
12408 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12409 compiler_DEFAULT=$CC
12411 # save warnings/boilerplate of simple test code
12412 ac_outfile=conftest.$ac_objext
12413 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12414 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12415 _lt_compiler_boilerplate=`cat conftest.err`
12418 ac_outfile=conftest.$ac_objext
12419 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12420 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12421 _lt_linker_boilerplate=`cat conftest.err`
12426 ## There is no encapsulation within the following macros, do not change
12427 ## the running order or otherwise move them around unless you know exactly
12428 ## what you are doing...
12429 if test -n "$compiler"; then
12431 lt_prog_compiler_no_builtin_flag=
12433 if test "$GCC" = yes; then
12434 case $cc_basename in
12436 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12438 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12442 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12443 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
12444 $as_echo_n "(cached) " >&6
12446 lt_cv_prog_compiler_rtti_exceptions=no
12447 ac_outfile=conftest.$ac_objext
12448 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12449 lt_compiler_flag="-fno-rtti -fno-exceptions"
12450 # Insert the option either (1) after the last *FLAGS variable, or
12451 # (2) before a word containing "conftest.", or (3) at the end.
12452 # Note that $ac_compile itself does not contain backslashes and begins
12453 # with a dollar sign (not a hyphen), so the echo should work correctly.
12454 # The option is referenced via a variable to avoid confusing sed.
12455 lt_compile=`echo "$ac_compile" | $SED \
12456 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12457 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12458 -e 's:$: $lt_compiler_flag:'`
12459 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12460 (eval "$lt_compile" 2>conftest.err)
12462 cat conftest.err >&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 if (exit $ac_status) && test -s "$ac_outfile"; then
12465 # The compiler can only warn and ignore the option if not recognized
12466 # So say no if there are warnings other than the usual output.
12467 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12468 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12469 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12470 lt_cv_prog_compiler_rtti_exceptions=yes
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12477 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12479 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12480 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12492 lt_prog_compiler_wl=
12493 lt_prog_compiler_pic=
12494 lt_prog_compiler_static=
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12497 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12499 if test "$GCC" = yes; then
12500 lt_prog_compiler_wl='-Wl,'
12501 lt_prog_compiler_static='-static'
12505 # All AIX code is PIC.
12506 if test "$host_cpu" = ia64; then
12507 # AIX 5 now supports IA64 processor
12508 lt_prog_compiler_static='-Bstatic'
12515 # see comment about AmigaOS4 .so support
12516 lt_prog_compiler_pic='-fPIC'
12519 # FIXME: we need at least 68020 code to build shared libraries, but
12520 # adding the `-m68020' flag to GCC prevents building anything better,
12522 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12527 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12528 # PIC is the default for these OSes.
12531 mingw* | cygwin* | pw32* | os2* | cegcc*)
12532 # This hack is so that the source file can tell whether it is being
12533 # built for inclusion in a dll (and should export symbols for example).
12534 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12535 # (--disable-auto-import) libraries
12536 lt_prog_compiler_pic='-DDLL_EXPORT'
12539 darwin* | rhapsody*)
12540 # PIC is the default on this platform
12541 # Common symbols not allowed in MH_DYLIB files
12542 lt_prog_compiler_pic='-fno-common'
12546 # PIC is the default for Haiku.
12547 # The "-static" flag exists, but is broken.
12548 lt_prog_compiler_static=
12552 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12553 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12554 # sets the default TLS model and affects inlining.
12560 lt_prog_compiler_pic='-fPIC'
12566 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12567 # Instead, we relocate shared libraries at runtime.
12571 # Just because we use GCC doesn't mean we suddenly get shared libraries
12572 # on systems that don't support them.
12573 lt_prog_compiler_can_build_shared=no
12578 # QNX uses GNU C++, but need to define -shared option too, otherwise
12579 # it will coredump.
12580 lt_prog_compiler_pic='-fPIC -shared'
12584 if test -d /usr/nec; then
12585 lt_prog_compiler_pic=-Kconform_pic
12590 lt_prog_compiler_pic='-fPIC'
12594 case $cc_basename in
12595 nvcc*) # Cuda Compiler Driver 2.2
12596 lt_prog_compiler_wl='-Xlinker '
12597 lt_prog_compiler_pic='-Xcompiler -fPIC'
12601 # PORTME Check for flag to pass linker flags through the system compiler.
12604 lt_prog_compiler_wl='-Wl,'
12605 if test "$host_cpu" = ia64; then
12606 # AIX 5 now supports IA64 processor
12607 lt_prog_compiler_static='-Bstatic'
12609 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12613 mingw* | cygwin* | pw32* | os2* | cegcc*)
12614 # This hack is so that the source file can tell whether it is being
12615 # built for inclusion in a dll (and should export symbols for example).
12616 lt_prog_compiler_pic='-DDLL_EXPORT'
12619 hpux9* | hpux10* | hpux11*)
12620 lt_prog_compiler_wl='-Wl,'
12621 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12622 # not for PA HP-UX.
12628 lt_prog_compiler_pic='+Z'
12631 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12632 lt_prog_compiler_static='${wl}-a ${wl}archive'
12635 irix5* | irix6* | nonstopux*)
12636 lt_prog_compiler_wl='-Wl,'
12637 # PIC (with -KPIC) is the default.
12638 lt_prog_compiler_static='-non_shared'
12641 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12642 case $cc_basename in
12643 # old Intel for x86_64 which still supported -KPIC.
12645 lt_prog_compiler_wl='-Wl,'
12646 lt_prog_compiler_pic='-KPIC'
12647 lt_prog_compiler_static='-static'
12649 # icc used to be incompatible with GCC.
12650 # ICC 10 doesn't accept -KPIC any more.
12652 lt_prog_compiler_wl='-Wl,'
12653 lt_prog_compiler_pic='-fPIC'
12654 lt_prog_compiler_static='-static'
12656 # Lahey Fortran 8.1.
12658 lt_prog_compiler_wl='-Wl,'
12659 lt_prog_compiler_pic='--shared'
12660 lt_prog_compiler_static='--static'
12662 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12663 # Portland Group compilers (*not* the Pentium gcc compiler,
12664 # which looks to be a dead project)
12665 lt_prog_compiler_wl='-Wl,'
12666 lt_prog_compiler_pic='-fpic'
12667 lt_prog_compiler_static='-Bstatic'
12670 lt_prog_compiler_wl='-Wl,'
12671 # All Alpha code is PIC.
12672 lt_prog_compiler_static='-non_shared'
12674 xl* | bgxl* | bgf* | mpixl*)
12675 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12676 lt_prog_compiler_wl='-Wl,'
12677 lt_prog_compiler_pic='-qpic'
12678 lt_prog_compiler_static='-qstaticlink'
12681 case `$CC -V 2>&1 | sed 5q` in
12682 *Sun\ F* | *Sun*Fortran*)
12683 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12684 lt_prog_compiler_pic='-KPIC'
12685 lt_prog_compiler_static='-Bstatic'
12686 lt_prog_compiler_wl=''
12690 lt_prog_compiler_pic='-KPIC'
12691 lt_prog_compiler_static='-Bstatic'
12692 lt_prog_compiler_wl='-Wl,'
12700 lt_prog_compiler_pic='-KPIC'
12701 lt_prog_compiler_static='-Bstatic'
12705 # QNX uses GNU C++, but need to define -shared option too, otherwise
12706 # it will coredump.
12707 lt_prog_compiler_pic='-fPIC -shared'
12710 osf3* | osf4* | osf5*)
12711 lt_prog_compiler_wl='-Wl,'
12712 # All OSF/1 code is PIC.
12713 lt_prog_compiler_static='-non_shared'
12717 lt_prog_compiler_static='-non_shared'
12721 lt_prog_compiler_pic='-KPIC'
12722 lt_prog_compiler_static='-Bstatic'
12723 case $cc_basename in
12724 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12725 lt_prog_compiler_wl='-Qoption ld ';;
12727 lt_prog_compiler_wl='-Wl,';;
12732 lt_prog_compiler_wl='-Qoption ld '
12733 lt_prog_compiler_pic='-PIC'
12734 lt_prog_compiler_static='-Bstatic'
12737 sysv4 | sysv4.2uw2* | sysv4.3*)
12738 lt_prog_compiler_wl='-Wl,'
12739 lt_prog_compiler_pic='-KPIC'
12740 lt_prog_compiler_static='-Bstatic'
12744 if test -d /usr/nec ;then
12745 lt_prog_compiler_pic='-Kconform_pic'
12746 lt_prog_compiler_static='-Bstatic'
12750 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12751 lt_prog_compiler_wl='-Wl,'
12752 lt_prog_compiler_pic='-KPIC'
12753 lt_prog_compiler_static='-Bstatic'
12757 lt_prog_compiler_wl='-Wl,'
12758 lt_prog_compiler_can_build_shared=no
12762 lt_prog_compiler_pic='-pic'
12763 lt_prog_compiler_static='-Bstatic'
12767 lt_prog_compiler_can_build_shared=no
12773 # For platforms which do not support PIC, -DPIC is meaningless:
12775 lt_prog_compiler_pic=
12778 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
12782 $as_echo "$lt_prog_compiler_pic" >&6; }
12790 # Check to make sure the PIC flag actually works.
12792 if test -n "$lt_prog_compiler_pic"; then
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12794 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12795 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
12796 $as_echo_n "(cached) " >&6
12798 lt_cv_prog_compiler_pic_works=no
12799 ac_outfile=conftest.$ac_objext
12800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12801 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12802 # Insert the option either (1) after the last *FLAGS variable, or
12803 # (2) before a word containing "conftest.", or (3) at the end.
12804 # Note that $ac_compile itself does not contain backslashes and begins
12805 # with a dollar sign (not a hyphen), so the echo should work correctly.
12806 # The option is referenced via a variable to avoid confusing sed.
12807 lt_compile=`echo "$ac_compile" | $SED \
12808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12810 -e 's:$: $lt_compiler_flag:'`
12811 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12812 (eval "$lt_compile" 2>conftest.err)
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 if (exit $ac_status) && test -s "$ac_outfile"; then
12817 # The compiler can only warn and ignore the option if not recognized
12818 # So say no if there are warnings other than the usual output.
12819 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12820 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12821 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12822 lt_cv_prog_compiler_pic_works=yes
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12829 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12831 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12832 case $lt_prog_compiler_pic in
12834 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12837 lt_prog_compiler_pic=
12838 lt_prog_compiler_can_build_shared=no
12849 # Check to make sure the static flag actually works.
12851 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12853 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12854 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
12855 $as_echo_n "(cached) " >&6
12857 lt_cv_prog_compiler_static_works=no
12858 save_LDFLAGS="$LDFLAGS"
12859 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12860 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12861 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12862 # The linker can only warn and ignore the option if not recognized
12863 # So say no if there are warnings
12864 if test -s conftest.err; then
12865 # Append any errors to the config.log.
12866 cat conftest.err 1>&5
12867 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12868 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12869 if diff conftest.exp conftest.er2 >/dev/null; then
12870 lt_cv_prog_compiler_static_works=yes
12873 lt_cv_prog_compiler_static_works=yes
12877 LDFLAGS="$save_LDFLAGS"
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12881 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12883 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12886 lt_prog_compiler_static=
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12896 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12897 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12898 $as_echo_n "(cached) " >&6
12900 lt_cv_prog_compiler_c_o=no
12901 $RM -r conftest 2>/dev/null
12905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12907 lt_compiler_flag="-o out/conftest2.$ac_objext"
12908 # Insert the option either (1) after the last *FLAGS variable, or
12909 # (2) before a word containing "conftest.", or (3) at the end.
12910 # Note that $ac_compile itself does not contain backslashes and begins
12911 # with a dollar sign (not a hyphen), so the echo should work correctly.
12912 lt_compile=`echo "$ac_compile" | $SED \
12913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12915 -e 's:$: $lt_compiler_flag:'`
12916 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12917 (eval "$lt_compile" 2>out/conftest.err)
12919 cat out/conftest.err >&5
12920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12921 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12923 # The compiler can only warn and ignore the option if not recognized
12924 # So say no if there are warnings
12925 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12926 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12927 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12928 lt_cv_prog_compiler_c_o=yes
12933 # SGI C++ compiler will create directory out/ii_files/ for
12934 # template instantiation
12935 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12936 $RM out/* && rmdir out
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12943 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12951 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12952 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12953 $as_echo_n "(cached) " >&6
12955 lt_cv_prog_compiler_c_o=no
12956 $RM -r conftest 2>/dev/null
12960 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12962 lt_compiler_flag="-o out/conftest2.$ac_objext"
12963 # Insert the option either (1) after the last *FLAGS variable, or
12964 # (2) before a word containing "conftest.", or (3) at the end.
12965 # Note that $ac_compile itself does not contain backslashes and begins
12966 # with a dollar sign (not a hyphen), so the echo should work correctly.
12967 lt_compile=`echo "$ac_compile" | $SED \
12968 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12969 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12970 -e 's:$: $lt_compiler_flag:'`
12971 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12972 (eval "$lt_compile" 2>out/conftest.err)
12974 cat out/conftest.err >&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12978 # The compiler can only warn and ignore the option if not recognized
12979 # So say no if there are warnings
12980 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12981 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12982 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12983 lt_cv_prog_compiler_c_o=yes
12988 # SGI C++ compiler will create directory out/ii_files/ for
12989 # template instantiation
12990 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12991 $RM out/* && rmdir out
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12998 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13003 hard_links="nottested"
13004 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13005 # do not overwrite the value of need_locks provided by the user
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13007 $as_echo_n "checking if we can lock with hard links... " >&6; }
13010 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13012 ln conftest.a conftest.b 2>&5 || hard_links=no
13013 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13015 $as_echo "$hard_links" >&6; }
13016 if test "$hard_links" = no; then
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13018 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13031 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13034 allow_undefined_flag=
13035 always_export_symbols=no
13037 archive_expsym_cmds=
13038 compiler_needs_object=no
13039 enable_shared_with_static_runtimes=no
13040 export_dynamic_flag_spec=
13041 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13042 hardcode_automatic=no
13044 hardcode_direct_absolute=no
13045 hardcode_libdir_flag_spec=
13046 hardcode_libdir_flag_spec_ld=
13047 hardcode_libdir_separator=
13048 hardcode_minus_L=no
13049 hardcode_shlibpath_var=unsupported
13051 link_all_deplibs=unknown
13053 module_expsym_cmds=
13054 old_archive_from_new_cmds=
13055 old_archive_from_expsyms_cmds=
13056 thread_safe_flag_spec=
13057 whole_archive_flag_spec=
13058 # include_expsyms should be a list of space-separated symbols to be *always*
13059 # included in the symbol list
13061 # exclude_expsyms can be an extended regexp of symbols to exclude
13062 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13063 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13064 # as well as any symbol that contains `d'.
13065 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13066 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13067 # platforms (ab)use it in PIC code, but their linkers get confused if
13068 # the symbol is explicitly referenced. Since portable code cannot
13069 # rely on this symbol name, it's probably fine to never include it in
13070 # preloaded symbol tables.
13071 # Exclude shared library initialization/finalization symbols.
13072 extract_expsyms_cmds=
13075 cygwin* | mingw* | pw32* | cegcc*)
13076 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13077 # When not using gcc, we currently assume that we are using
13078 # Microsoft Visual C++.
13079 if test "$GCC" != yes; then
13084 # we just hope/assume this is gcc and not c89 (= MSVC++)
13094 # On some targets, GNU ld is compatible enough with the native linker
13095 # that we're better off using the native interface for both.
13096 lt_use_gnu_ld_interface=no
13097 if test "$with_gnu_ld" = yes; then
13100 # The AIX port of GNU ld has always aspired to compatibility
13101 # with the native linker. However, as the warning in the GNU ld
13102 # block says, versions before 2.19.5* couldn't really create working
13103 # shared libraries, regardless of the interface used.
13104 case `$LD -v 2>&1` in
13105 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13106 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13107 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13109 lt_use_gnu_ld_interface=yes
13114 lt_use_gnu_ld_interface=yes
13119 if test "$lt_use_gnu_ld_interface" = yes; then
13120 # If archive_cmds runs LD, not CC, wlarc should be empty
13123 # Set some defaults for GNU ld with shared library support. These
13124 # are reset later if shared libraries are not supported. Putting them
13125 # here allows them to be overridden if necessary.
13126 runpath_var=LD_RUN_PATH
13127 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13128 export_dynamic_flag_spec='${wl}--export-dynamic'
13129 # ancient GNU ld didn't support --whole-archive et. al.
13130 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13131 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13133 whole_archive_flag_spec=
13135 supports_anon_versioning=no
13136 case `$LD -v 2>&1` in
13137 *GNU\ gold*) supports_anon_versioning=yes ;;
13138 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13139 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13140 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13141 *\ 2.11.*) ;; # other 2.11 versions
13142 *) supports_anon_versioning=yes ;;
13145 # See if GNU ld supports shared libraries.
13148 # On AIX/PPC, the GNU linker is very broken
13149 if test "$host_cpu" != ia64; then
13153 *** Warning: the GNU linker, at least up to release 2.19, is reported
13154 *** to be unable to reliably create shared libraries on AIX.
13155 *** Therefore, libtool is disabling shared libraries support. If you
13156 *** really care for shared libraries, you may want to install binutils
13157 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13158 *** You will then need to restart the configuration process.
13167 # see comment about AmigaOS4 .so support
13168 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13169 archive_expsym_cmds=''
13172 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)'
13173 hardcode_libdir_flag_spec='-L$libdir'
13174 hardcode_minus_L=yes
13180 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13181 allow_undefined_flag=unsupported
13182 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13183 # support --undefined. This deserves some investigation. FIXME
13184 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13190 cygwin* | mingw* | pw32* | cegcc*)
13191 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13192 # as there is no search path for DLLs.
13193 hardcode_libdir_flag_spec='-L$libdir'
13194 export_dynamic_flag_spec='${wl}--export-all-symbols'
13195 allow_undefined_flag=unsupported
13196 always_export_symbols=no
13197 enable_shared_with_static_runtimes=yes
13198 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13200 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13201 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13202 # If the export-symbols file already is a .def file (1st line
13203 # is EXPORTS), use it as is; otherwise, prepend...
13204 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13205 cp $export_symbols $output_objdir/$soname.def;
13207 echo EXPORTS > $output_objdir/$soname.def;
13208 cat $export_symbols >> $output_objdir/$soname.def;
13210 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13217 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13218 link_all_deplibs=yes
13223 hardcode_shlibpath_var=no
13224 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13225 export_dynamic_flag_spec='${wl}-E'
13226 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13227 # Instead, shared libraries are loaded at an image base (0x10000000 by
13228 # default) and relocated if they conflict, which is a slow very memory
13229 # consuming and fragmenting process. To avoid this, we pick a random,
13230 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13231 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13232 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13233 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'
13236 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13238 if test "$host_os" = linux-dietlibc; then
13239 case $cc_basename in
13240 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13243 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13244 && test "$tmp_diet" = no
13247 tmp_sharedflag='-shared'
13248 case $cc_basename,$host_cpu in
13249 pgcc*) # Portland Group C compiler
13250 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'
13251 tmp_addflag=' $pic_flag'
13253 pgf77* | pgf90* | pgf95* | pgfortran*)
13254 # Portland Group f77 and f90 compilers
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 -Mnomain' ;;
13257 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13258 tmp_addflag=' -i_dynamic' ;;
13259 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13260 tmp_addflag=' -i_dynamic -nofor_main' ;;
13261 ifc* | ifort*) # Intel Fortran compiler
13262 tmp_addflag=' -nofor_main' ;;
13263 lf95*) # Lahey Fortran 8.1
13264 whole_archive_flag_spec=
13265 tmp_sharedflag='--shared' ;;
13266 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13267 tmp_sharedflag='-qmkshrobj'
13269 nvcc*) # Cuda Compiler Driver 2.2
13270 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'
13271 compiler_needs_object=yes
13274 case `$CC -V 2>&1 | sed 5q` in
13275 *Sun\ C*) # Sun C 5.9
13276 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'
13277 compiler_needs_object=yes
13278 tmp_sharedflag='-G' ;;
13279 *Sun\ F*) # Sun Fortran 8.3
13280 tmp_sharedflag='-G' ;;
13282 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13284 if test "x$supports_anon_versioning" = xyes; then
13285 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13286 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13287 echo "local: *; };" >> $output_objdir/$libname.ver~
13288 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13291 case $cc_basename in
13292 xlf* | bgf* | bgxlf* | mpixlf*)
13293 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13294 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13295 hardcode_libdir_flag_spec=
13296 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13297 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13298 if test "x$supports_anon_versioning" = xyes; then
13299 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13300 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13301 echo "local: *; };" >> $output_objdir/$libname.ver~
13302 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13312 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13313 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13316 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13317 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13322 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13326 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13327 *** create shared libraries on Solaris systems. Therefore, libtool
13328 *** is disabling shared libraries support. We urge you to upgrade GNU
13329 *** binutils to release 2.9.1 or newer. Another option is to modify
13330 *** your PATH or compiler configuration so that the native linker is
13331 *** used, and then restart.
13334 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13336 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13342 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13343 case `$LD -v 2>&1` in
13344 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13348 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13349 *** reliably create shared libraries on SCO systems. Therefore, libtool
13350 *** is disabling shared libraries support. We urge you to upgrade GNU
13351 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13352 *** your PATH or compiler configuration so that the native linker is
13353 *** used, and then restart.
13358 # For security reasons, it is highly recommended that you always
13359 # use absolute paths for naming shared libraries, and exclude the
13360 # DT_RUNPATH tag from executables and libraries. But doing so
13361 # requires that you compile everything twice, which is a pain.
13362 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13363 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13364 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13365 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13374 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13376 hardcode_direct=yes
13377 hardcode_shlibpath_var=no
13381 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13383 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13390 if test "$ld_shlibs" = no; then
13392 hardcode_libdir_flag_spec=
13393 export_dynamic_flag_spec=
13394 whole_archive_flag_spec=
13397 # PORTME fill in a description of your system's linker (not GNU ld)
13400 allow_undefined_flag=unsupported
13401 always_export_symbols=yes
13402 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'
13403 # Note: this linker hardcodes the directories in LIBPATH if there
13404 # are no directories specified by -L.
13405 hardcode_minus_L=yes
13406 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13407 # Neither direct hardcoding nor static linking is supported with a
13409 hardcode_direct=unsupported
13414 if test "$host_cpu" = ia64; then
13415 # On IA64, the linker does run time linking by default, so we don't
13416 # have to do anything special.
13417 aix_use_runtimelinking=no
13418 exp_sym_flag='-Bexport'
13421 # If we're using GNU nm, then we don't want the "-C" option.
13422 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13423 # Also, AIX nm treats weak defined symbols like other global
13424 # defined symbols, whereas GNU nm marks them as "W".
13425 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13426 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'
13428 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'
13430 aix_use_runtimelinking=no
13432 # Test if we are trying to use run time linking or normal
13433 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13434 # need to do runtime linking.
13435 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13436 for ld_flag in $LDFLAGS; do
13437 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13438 aix_use_runtimelinking=yes
13445 exp_sym_flag='-bexport'
13446 no_entry_flag='-bnoentry'
13449 # When large executables or shared objects are built, AIX ld can
13450 # have problems creating the table of contents. If linking a library
13451 # or program results in "error TOC overflow" add -mminimal-toc to
13452 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13453 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13456 hardcode_direct=yes
13457 hardcode_direct_absolute=yes
13458 hardcode_libdir_separator=':'
13459 link_all_deplibs=yes
13460 file_list_spec='${wl}-f,'
13462 if test "$GCC" = yes; then
13463 case $host_os in aix4.[012]|aix4.[012].*)
13464 # We only want to do this on AIX 4.2 and lower, the check
13465 # below for broken collect2 doesn't work under 4.3+
13466 collect2name=`${CC} -print-prog-name=collect2`
13467 if test -f "$collect2name" &&
13468 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13470 # We have reworked collect2
13473 # We have old collect2
13474 hardcode_direct=unsupported
13475 # It fails to find uninstalled libraries when the uninstalled
13476 # path is not listed in the libpath. Setting hardcode_minus_L
13477 # to unsupported forces relinking
13478 hardcode_minus_L=yes
13479 hardcode_libdir_flag_spec='-L$libdir'
13480 hardcode_libdir_separator=
13484 shared_flag='-shared'
13485 if test "$aix_use_runtimelinking" = yes; then
13486 shared_flag="$shared_flag "'${wl}-G'
13490 if test "$host_cpu" = ia64; then
13491 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13492 # chokes on -Wl,-G. The following line is correct:
13495 if test "$aix_use_runtimelinking" = yes; then
13496 shared_flag='${wl}-G'
13498 shared_flag='${wl}-bM:SRE'
13503 export_dynamic_flag_spec='${wl}-bexpall'
13504 # It seems that -bexpall does not export symbols beginning with
13505 # underscore (_), so it is better to generate a list of symbols to export.
13506 always_export_symbols=yes
13507 if test "$aix_use_runtimelinking" = yes; then
13508 # Warning - without using the other runtime loading flags (-brtl),
13509 # -berok will link without error, but may produce a broken library.
13510 allow_undefined_flag='-berok'
13511 # Determine the default libpath from the value encoded in an
13512 # empty executable.
13513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13514 /* end confdefs.h. */
13524 if ac_fn_c_try_link "$LINENO"; then :
13526 lt_aix_libpath_sed='
13527 /Import File Strings/,/^$/ {
13533 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13534 # Check for a 64-bit object if we didn't find anything.
13535 if test -z "$aix_libpath"; then
13536 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13539 rm -f core conftest.err conftest.$ac_objext \
13540 conftest$ac_exeext conftest.$ac_ext
13541 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13543 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13544 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"
13546 if test "$host_cpu" = ia64; then
13547 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13548 allow_undefined_flag="-z nodefs"
13549 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"
13551 # Determine the default libpath from the value encoded in an
13552 # empty executable.
13553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13554 /* end confdefs.h. */
13564 if ac_fn_c_try_link "$LINENO"; then :
13566 lt_aix_libpath_sed='
13567 /Import File Strings/,/^$/ {
13573 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13574 # Check for a 64-bit object if we didn't find anything.
13575 if test -z "$aix_libpath"; then
13576 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13579 rm -f core conftest.err conftest.$ac_objext \
13580 conftest$ac_exeext conftest.$ac_ext
13581 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13583 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13584 # Warning - without using the other run time loading flags,
13585 # -berok will link without error, but may produce a broken library.
13586 no_undefined_flag=' ${wl}-bernotok'
13587 allow_undefined_flag=' ${wl}-berok'
13588 if test "$with_gnu_ld" = yes; then
13589 # We only use this code for GNU lds that support --whole-archive.
13590 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13592 # Exported symbols can be pulled into shared objects from archives
13593 whole_archive_flag_spec='$convenience'
13595 archive_cmds_need_lc=yes
13596 # This is similar to how AIX traditionally builds its shared libraries.
13597 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'
13605 # see comment about AmigaOS4 .so support
13606 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13607 archive_expsym_cmds=''
13610 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)'
13611 hardcode_libdir_flag_spec='-L$libdir'
13612 hardcode_minus_L=yes
13618 export_dynamic_flag_spec=-rdynamic
13621 cygwin* | mingw* | pw32* | cegcc*)
13622 # When not using gcc, we currently assume that we are using
13623 # Microsoft Visual C++.
13624 # hardcode_libdir_flag_spec is actually meaningless, as there is
13625 # no search path for DLLs.
13626 hardcode_libdir_flag_spec=' '
13627 allow_undefined_flag=unsupported
13628 # Tell ltmain to make .lib files, not .a files.
13630 # Tell ltmain to make .dll files, not .so files.
13632 # FIXME: Setting linknames here is a bad hack.
13633 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13634 # The linker will automatically build a .lib file if we build a DLL.
13635 old_archive_from_new_cmds='true'
13636 # FIXME: Should let the user specify the lib program.
13637 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13638 fix_srcfile_path='`cygpath -w "$srcfile"`'
13639 enable_shared_with_static_runtimes=yes
13642 darwin* | rhapsody*)
13645 archive_cmds_need_lc=no
13647 hardcode_automatic=yes
13648 hardcode_shlibpath_var=unsupported
13649 if test "$lt_cv_ld_force_load" = "yes"; then
13650 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\"`'
13652 whole_archive_flag_spec=''
13654 link_all_deplibs=yes
13655 allow_undefined_flag="$_lt_dar_allow_undefined"
13656 case $cc_basename in
13657 ifort*) _lt_dar_can_shared=yes ;;
13658 *) _lt_dar_can_shared=$GCC ;;
13660 if test "$_lt_dar_can_shared" = "yes"; then
13661 output_verbose_link_cmd=func_echo_all
13662 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13663 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13664 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}"
13665 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}"
13674 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13675 hardcode_libdir_flag_spec='-L$libdir'
13676 hardcode_shlibpath_var=no
13683 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13684 # support. Future versions do this automatically, but an explicit c++rt0.o
13685 # does not break anything, and helps significantly (at the cost of a little
13688 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13689 hardcode_libdir_flag_spec='-R$libdir'
13690 hardcode_direct=yes
13691 hardcode_shlibpath_var=no
13694 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13696 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13697 hardcode_direct=yes
13698 hardcode_minus_L=yes
13699 hardcode_shlibpath_var=no
13702 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13703 freebsd* | dragonfly*)
13704 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13705 hardcode_libdir_flag_spec='-R$libdir'
13706 hardcode_direct=yes
13707 hardcode_shlibpath_var=no
13711 if test "$GCC" = yes; then
13712 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'
13714 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'
13716 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13717 hardcode_libdir_separator=:
13718 hardcode_direct=yes
13720 # hardcode_minus_L: Not really in the search PATH,
13721 # but as the default location of the library.
13722 hardcode_minus_L=yes
13723 export_dynamic_flag_spec='${wl}-E'
13727 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13728 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13730 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13732 if test "$with_gnu_ld" = no; then
13733 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13734 hardcode_libdir_flag_spec_ld='+b $libdir'
13735 hardcode_libdir_separator=:
13736 hardcode_direct=yes
13737 hardcode_direct_absolute=yes
13738 export_dynamic_flag_spec='${wl}-E'
13739 # hardcode_minus_L: Not really in the search PATH,
13740 # but as the default location of the library.
13741 hardcode_minus_L=yes
13746 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13749 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13752 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13755 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13761 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13764 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13768 # Older versions of the 11.00 compiler do not understand -b yet
13769 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13771 $as_echo_n "checking if $CC understands -b... " >&6; }
13772 if test "${lt_cv_prog_compiler__b+set}" = set; then :
13773 $as_echo_n "(cached) " >&6
13775 lt_cv_prog_compiler__b=no
13776 save_LDFLAGS="$LDFLAGS"
13777 LDFLAGS="$LDFLAGS -b"
13778 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13779 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13780 # The linker can only warn and ignore the option if not recognized
13781 # So say no if there are warnings
13782 if test -s conftest.err; then
13783 # Append any errors to the config.log.
13784 cat conftest.err 1>&5
13785 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13786 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13787 if diff conftest.exp conftest.er2 >/dev/null; then
13788 lt_cv_prog_compiler__b=yes
13791 lt_cv_prog_compiler__b=yes
13795 LDFLAGS="$save_LDFLAGS"
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13799 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13801 if test x"$lt_cv_prog_compiler__b" = xyes; then
13802 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13804 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13810 if test "$with_gnu_ld" = no; then
13811 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13812 hardcode_libdir_separator=:
13817 hardcode_shlibpath_var=no
13820 hardcode_direct=yes
13821 hardcode_direct_absolute=yes
13822 export_dynamic_flag_spec='${wl}-E'
13824 # hardcode_minus_L: Not really in the search PATH,
13825 # but as the default location of the library.
13826 hardcode_minus_L=yes
13832 irix5* | irix6* | nonstopux*)
13833 if test "$GCC" = yes; then
13834 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'
13835 # Try to use the -exported_symbol ld option, if it does not
13836 # work, assume that -exports_file does not work either and
13837 # implicitly export all symbols.
13838 save_LDFLAGS="$LDFLAGS"
13839 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13841 /* end confdefs.h. */
13844 if ac_fn_c_try_link "$LINENO"; then :
13845 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'
13848 rm -f core conftest.err conftest.$ac_objext \
13849 conftest$ac_exeext conftest.$ac_ext
13850 LDFLAGS="$save_LDFLAGS"
13852 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'
13853 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'
13855 archive_cmds_need_lc='no'
13856 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13857 hardcode_libdir_separator=:
13859 link_all_deplibs=yes
13863 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13864 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13866 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13868 hardcode_libdir_flag_spec='-R$libdir'
13869 hardcode_direct=yes
13870 hardcode_shlibpath_var=no
13874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13875 hardcode_direct=yes
13876 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13877 hardcode_libdir_separator=:
13878 hardcode_shlibpath_var=no
13885 if test -f /usr/libexec/ld.so; then
13886 hardcode_direct=yes
13887 hardcode_shlibpath_var=no
13888 hardcode_direct_absolute=yes
13889 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13890 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13891 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13892 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13893 export_dynamic_flag_spec='${wl}-E'
13896 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13897 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13898 hardcode_libdir_flag_spec='-R$libdir'
13901 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13902 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13912 hardcode_libdir_flag_spec='-L$libdir'
13913 hardcode_minus_L=yes
13914 allow_undefined_flag=unsupported
13915 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'
13916 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13920 if test "$GCC" = yes; then
13921 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13922 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'
13924 allow_undefined_flag=' -expect_unresolved \*'
13925 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'
13927 archive_cmds_need_lc='no'
13928 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13929 hardcode_libdir_separator=:
13932 osf4* | osf5*) # as osf3* with the addition of -msym flag
13933 if test "$GCC" = yes; then
13934 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13935 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'
13936 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13938 allow_undefined_flag=' -expect_unresolved \*'
13939 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'
13940 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~
13941 $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'
13943 # Both c and cxx compiler support -rpath directly
13944 hardcode_libdir_flag_spec='-rpath $libdir'
13946 archive_cmds_need_lc='no'
13947 hardcode_libdir_separator=:
13951 no_undefined_flag=' -z defs'
13952 if test "$GCC" = yes; then
13954 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13955 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13956 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13958 case `$CC -V 2>&1` in
13961 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13962 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13963 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13967 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13968 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13969 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13973 hardcode_libdir_flag_spec='-R$libdir'
13974 hardcode_shlibpath_var=no
13976 solaris2.[0-5] | solaris2.[0-5].*) ;;
13978 # The compiler driver will combine and reorder linker options,
13979 # but understands `-z linker_flag'. GCC discards it without `$wl',
13980 # but is careful enough not to reorder.
13981 # Supported since Solaris 2.6 (maybe 2.5.1?)
13982 if test "$GCC" = yes; then
13983 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13985 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13989 link_all_deplibs=yes
13993 if test "x$host_vendor" = xsequent; then
13994 # Use $CC to link under sequent, because it throws in some extra .o
13995 # files that make .init and .fini sections work.
13996 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13998 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14000 hardcode_libdir_flag_spec='-L$libdir'
14001 hardcode_direct=yes
14002 hardcode_minus_L=yes
14003 hardcode_shlibpath_var=no
14007 case $host_vendor in
14009 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14010 hardcode_direct=yes # is this really true???
14013 ## LD is ld it makes a PLAMLIB
14014 ## CC just makes a GrossModule.
14015 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14016 reload_cmds='$CC -r -o $output$reload_objs'
14020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14021 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14024 runpath_var='LD_RUN_PATH'
14025 hardcode_shlibpath_var=no
14029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14030 hardcode_shlibpath_var=no
14031 export_dynamic_flag_spec='-Bexport'
14035 if test -d /usr/nec; then
14036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14037 hardcode_shlibpath_var=no
14038 runpath_var=LD_RUN_PATH
14039 hardcode_runpath_var=yes
14044 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14045 no_undefined_flag='${wl}-z,text'
14046 archive_cmds_need_lc=no
14047 hardcode_shlibpath_var=no
14048 runpath_var='LD_RUN_PATH'
14050 if test "$GCC" = yes; then
14051 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14052 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14054 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14055 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14059 sysv5* | sco3.2v5* | sco5v6*)
14060 # Note: We can NOT use -z defs as we might desire, because we do not
14061 # link with -lc, and that would cause any symbols used from libc to
14062 # always be unresolved, which means just about no library would
14063 # ever link correctly. If we're not using GNU ld we use -z text
14064 # though, which does catch some bad symbols but isn't as heavy-handed
14066 no_undefined_flag='${wl}-z,text'
14067 allow_undefined_flag='${wl}-z,nodefs'
14068 archive_cmds_need_lc=no
14069 hardcode_shlibpath_var=no
14070 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14071 hardcode_libdir_separator=':'
14072 link_all_deplibs=yes
14073 export_dynamic_flag_spec='${wl}-Bexport'
14074 runpath_var='LD_RUN_PATH'
14076 if test "$GCC" = yes; then
14077 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14078 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14080 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14081 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14087 hardcode_libdir_flag_spec='-L$libdir'
14088 hardcode_shlibpath_var=no
14096 if test x$host_vendor = xsni; then
14098 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14099 export_dynamic_flag_spec='${wl}-Blargedynsym'
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14106 $as_echo "$ld_shlibs" >&6; }
14107 test "$ld_shlibs" = no && can_build_shared=no
14109 with_gnu_ld=$with_gnu_ld
14126 # Do we need to explicitly link libc?
14128 case "x$archive_cmds_need_lc" in
14130 # Assume -lc should be added
14131 archive_cmds_need_lc=yes
14133 if test "$enable_shared" = yes && test "$GCC" = yes; then
14134 case $archive_cmds in
14136 # FIXME: we may have to deal with multi-command sequences.
14139 # Test whether the compiler implicitly links with -lc since on some
14140 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14141 # to ld, don't add -lc before -lgcc.
14142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14143 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14144 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
14145 $as_echo_n "(cached) " >&6
14148 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14150 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14151 (eval $ac_compile) 2>&5
14153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14154 test $ac_status = 0; } 2>conftest.err; then
14157 libobjs=conftest.$ac_objext
14159 wl=$lt_prog_compiler_wl
14160 pic_flag=$lt_prog_compiler_pic
14166 lt_save_allow_undefined_flag=$allow_undefined_flag
14167 allow_undefined_flag=
14168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14169 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14172 test $ac_status = 0; }
14174 lt_cv_archive_cmds_need_lc=no
14176 lt_cv_archive_cmds_need_lc=yes
14178 allow_undefined_flag=$lt_save_allow_undefined_flag
14180 cat conftest.err 1>&5
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14186 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
14187 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14351 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14353 if test "$GCC" = yes; then
14355 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14356 *) lt_awk_arg="/^libraries:/" ;;
14359 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
14360 *) lt_sed_strip_eq="s,=/,/,g" ;;
14362 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14363 case $lt_search_path_spec in
14365 # if the path contains ";" then we assume it to be the separator
14366 # otherwise default to the standard path separator (i.e. ":") - it is
14367 # assumed that no part of a normal pathname contains ";" but that should
14368 # okay in the real world where ";" in dirpaths is itself problematic.
14369 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14372 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14375 # Ok, now we have the path, separated by spaces, we can step through it
14376 # and add multilib dir if necessary.
14377 lt_tmp_lt_search_path_spec=
14378 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14379 for lt_sys_path in $lt_search_path_spec; do
14380 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14381 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14383 test -d "$lt_sys_path" && \
14384 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14387 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14388 BEGIN {RS=" "; FS="/|\n";} {
14391 for (lt_i = NF; lt_i > 0; lt_i--) {
14392 if ($lt_i != "" && $lt_i != ".") {
14393 if ($lt_i == "..") {
14396 if (lt_count == 0) {
14397 lt_foo="/" $lt_i lt_foo;
14404 if (lt_foo != "") { lt_freq[lt_foo]++; }
14405 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14407 # AWK program above erroneously prepends '/' to C:/dos/paths
14410 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14411 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
14413 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14415 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14417 library_names_spec=
14418 libname_spec='lib$name'
14422 postuninstall_cmds=
14426 shlibpath_overrides_runpath=unknown
14428 dynamic_linker="$host_os ld.so"
14429 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14430 need_lib_prefix=unknown
14431 hardcode_into_libs=no
14433 # when you set need_version to no, make sure it does not cause -set_version
14434 # flags to be left without arguments
14435 need_version=unknown
14440 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14441 shlibpath_var=LIBPATH
14443 # AIX 3 has no versioning support, so we append a major version to the name.
14444 soname_spec='${libname}${release}${shared_ext}$major'
14451 hardcode_into_libs=yes
14452 if test "$host_cpu" = ia64; then
14453 # AIX 5 supports IA64
14454 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14455 shlibpath_var=LD_LIBRARY_PATH
14457 # With GCC up to 2.95.x, collect2 would create an import file
14458 # for dependence libraries. The import file would start with
14459 # the line `#! .'. This would cause the generated library to
14460 # depend on `.', always an invalid library. This was fixed in
14461 # development snapshots of GCC prior to 3.0.
14463 aix4 | aix4.[01] | aix4.[01].*)
14464 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14466 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14469 can_build_shared=no
14473 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14474 # soname into executable. Probably we can add versioning support to
14475 # collect2, so additional links can be useful in future.
14476 if test "$aix_use_runtimelinking" = yes; then
14477 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14478 # instead of lib<name>.a to let people know that these are not
14479 # typical AIX shared libraries.
14480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14482 # We preserve .a as extension for shared libraries through AIX4.2
14483 # and later when we are not doing run time linking.
14484 library_names_spec='${libname}${release}.a $libname.a'
14485 soname_spec='${libname}${release}${shared_ext}$major'
14487 shlibpath_var=LIBPATH
14494 # Since July 2007 AmigaOS4 officially supports .so libraries.
14495 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14499 library_names_spec='$libname.ixlibrary $libname.a'
14500 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14501 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'
14507 library_names_spec='${libname}${shared_ext}'
14508 dynamic_linker="$host_os ld.so"
14509 shlibpath_var=LIBRARY_PATH
14515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14516 soname_spec='${libname}${release}${shared_ext}$major'
14517 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14518 shlibpath_var=LD_LIBRARY_PATH
14519 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14520 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14521 # the default ld.so.conf also contains /usr/contrib/lib and
14522 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14523 # libtool to hard-code these into programs
14526 cygwin* | mingw* | pw32* | cegcc*)
14527 version_type=windows
14532 case $GCC,$host_os in
14533 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14534 library_names_spec='$libname.dll.a'
14535 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14536 postinstall_cmds='base_file=`basename \${file}`~
14537 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14538 dldir=$destdir/`dirname \$dlpath`~
14539 test -d \$dldir || mkdir -p \$dldir~
14540 $install_prog $dir/$dlname \$dldir/$dlname~
14541 chmod a+x \$dldir/$dlname~
14542 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14543 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14545 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14546 dlpath=$dir/\$dldll~
14548 shlibpath_overrides_runpath=yes
14552 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14553 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14555 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14558 # MinGW DLLs use traditional 'lib' prefix
14559 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14562 # pw32 DLLs use 'pw' prefix rather than 'lib'
14563 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14569 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14572 dynamic_linker='Win32 ld.exe'
14573 # FIXME: first we should search . and the directory the executable is in
14577 darwin* | rhapsody*)
14578 dynamic_linker="$host_os dyld"
14579 version_type=darwin
14582 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14583 soname_spec='${libname}${release}${major}$shared_ext'
14584 shlibpath_overrides_runpath=yes
14585 shlibpath_var=DYLD_LIBRARY_PATH
14586 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14588 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14589 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14597 soname_spec='${libname}${release}${shared_ext}$major'
14598 shlibpath_var=LD_LIBRARY_PATH
14605 freebsd* | dragonfly*)
14606 # DragonFly does not have aout. When/if they implement a new
14607 # versioning mechanism, adjust this.
14608 if test -x /usr/bin/objformat; then
14609 objformat=`/usr/bin/objformat`
14612 freebsd[123]*) objformat=aout ;;
14613 *) objformat=elf ;;
14616 version_type=freebsd-$objformat
14617 case $version_type in
14619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14624 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14628 shlibpath_var=LD_LIBRARY_PATH
14631 shlibpath_overrides_runpath=yes
14633 freebsd3.[01]* | freebsdelf3.[01]*)
14634 shlibpath_overrides_runpath=yes
14635 hardcode_into_libs=yes
14637 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14638 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14639 shlibpath_overrides_runpath=no
14640 hardcode_into_libs=yes
14642 *) # from 4.6 on, and DragonFly
14643 shlibpath_overrides_runpath=yes
14644 hardcode_into_libs=yes
14653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14654 soname_spec='${libname}${release}${shared_ext}$major'
14655 shlibpath_var=LD_LIBRARY_PATH
14656 hardcode_into_libs=yes
14663 dynamic_linker="$host_os runtime_loader"
14664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14665 soname_spec='${libname}${release}${shared_ext}$major'
14666 shlibpath_var=LIBRARY_PATH
14667 shlibpath_overrides_runpath=yes
14668 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14669 hardcode_into_libs=yes
14672 hpux9* | hpux10* | hpux11*)
14673 # Give a soname corresponding to the major version so that dld.sl refuses to
14674 # link against other versions.
14681 hardcode_into_libs=yes
14682 dynamic_linker="$host_os dld.so"
14683 shlibpath_var=LD_LIBRARY_PATH
14684 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14686 soname_spec='${libname}${release}${shared_ext}$major'
14687 if test "X$HPUX_IA64_MODE" = X32; then
14688 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14690 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14692 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14696 hardcode_into_libs=yes
14697 dynamic_linker="$host_os dld.sl"
14698 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14699 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14700 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14701 soname_spec='${libname}${release}${shared_ext}$major'
14702 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14703 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14707 dynamic_linker="$host_os dld.sl"
14708 shlibpath_var=SHLIB_PATH
14709 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14711 soname_spec='${libname}${release}${shared_ext}$major'
14714 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14715 postinstall_cmds='chmod 555 $lib'
14716 # or fails outright, so override atomically:
14717 install_override_mode=555
14724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14725 soname_spec='${libname}${release}${shared_ext}$major'
14726 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14727 shlibpath_var=LD_LIBRARY_PATH
14728 shlibpath_overrides_runpath=no
14729 hardcode_into_libs=yes
14732 irix5* | irix6* | nonstopux*)
14734 nonstopux*) version_type=nonstopux ;;
14736 if test "$lt_cv_prog_gnu_ld" = yes; then
14744 soname_spec='${libname}${release}${shared_ext}$major'
14745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14747 irix5* | nonstopux*)
14748 libsuff= shlibsuff=
14751 case $LD in # libtool.m4 will add one of these switches to LD
14752 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14753 libsuff= shlibsuff= libmagic=32-bit;;
14754 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14755 libsuff=32 shlibsuff=N32 libmagic=N32;;
14756 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14757 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14758 *) libsuff= shlibsuff= libmagic=never-match;;
14762 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14763 shlibpath_overrides_runpath=no
14764 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14765 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14766 hardcode_into_libs=yes
14769 # No shared lib support for Linux oldld, aout, or coff.
14770 linux*oldld* | linux*aout* | linux*coff*)
14774 # This must be Linux ELF.
14775 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14780 soname_spec='${libname}${release}${shared_ext}$major'
14781 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14782 shlibpath_var=LD_LIBRARY_PATH
14783 shlibpath_overrides_runpath=no
14785 # Some binutils ld are patched to set DT_RUNPATH
14786 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14787 $as_echo_n "(cached) " >&6
14789 lt_cv_shlibpath_overrides_runpath=no
14790 save_LDFLAGS=$LDFLAGS
14791 save_libdir=$libdir
14792 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14793 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14795 /* end confdefs.h. */
14805 if ac_fn_c_try_link "$LINENO"; then :
14806 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14807 lt_cv_shlibpath_overrides_runpath=yes
14810 rm -f core conftest.err conftest.$ac_objext \
14811 conftest$ac_exeext conftest.$ac_ext
14812 LDFLAGS=$save_LDFLAGS
14813 libdir=$save_libdir
14817 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14819 # This implies no fast_install, which is unacceptable.
14820 # Some rework will be needed to allow for fast_install
14821 # before this can be enabled.
14822 hardcode_into_libs=yes
14824 # Add ABI-specific directories to the system library path.
14825 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14827 # Append ld.so.conf contents to the search path
14828 if test -f /etc/ld.so.conf; then
14829 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' ' '`
14830 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14834 # We used to test for /lib/ld.so.1 and disable shared libraries on
14835 # powerpc, because MkLinux only supported shared libraries with the
14836 # GNU dynamic linker. Since this was broken with cross compilers,
14837 # most powerpc-linux boxes support dynamic linking these days and
14838 # people can always --disable-shared, the test was removed, and we
14839 # assume the GNU/Linux dynamic linker is in use.
14840 dynamic_linker='GNU/Linux ld.so'
14847 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14850 dynamic_linker='NetBSD (a.out) ld.so'
14852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14853 soname_spec='${libname}${release}${shared_ext}$major'
14854 dynamic_linker='NetBSD ld.elf_so'
14856 shlibpath_var=LD_LIBRARY_PATH
14857 shlibpath_overrides_runpath=yes
14858 hardcode_into_libs=yes
14863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14864 shlibpath_var=LD_LIBRARY_PATH
14865 shlibpath_overrides_runpath=yes
14872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14873 soname_spec='${libname}${release}${shared_ext}$major'
14874 shlibpath_var=LD_LIBRARY_PATH
14875 shlibpath_overrides_runpath=no
14876 hardcode_into_libs=yes
14877 dynamic_linker='ldqnx.so'
14882 sys_lib_dlsearch_path_spec="/usr/lib"
14884 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14886 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14887 *) need_version=no ;;
14889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14890 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14891 shlibpath_var=LD_LIBRARY_PATH
14892 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14894 openbsd2.[89] | openbsd2.[89].*)
14895 shlibpath_overrides_runpath=no
14898 shlibpath_overrides_runpath=yes
14902 shlibpath_overrides_runpath=yes
14907 libname_spec='$name'
14910 library_names_spec='$libname${shared_ext} $libname.a'
14911 dynamic_linker='OS/2 ld.exe'
14912 shlibpath_var=LIBPATH
14915 osf3* | osf4* | osf5*)
14919 soname_spec='${libname}${release}${shared_ext}$major'
14920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14921 shlibpath_var=LD_LIBRARY_PATH
14922 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14923 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14935 soname_spec='${libname}${release}${shared_ext}$major'
14936 shlibpath_var=LD_LIBRARY_PATH
14937 shlibpath_overrides_runpath=yes
14938 hardcode_into_libs=yes
14939 # ldd complains unless libraries are executable
14940 postinstall_cmds='chmod +x $lib'
14945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14946 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14947 shlibpath_var=LD_LIBRARY_PATH
14948 shlibpath_overrides_runpath=yes
14949 if test "$with_gnu_ld" = yes; then
14957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14958 soname_spec='${libname}${release}${shared_ext}$major'
14959 shlibpath_var=LD_LIBRARY_PATH
14960 case $host_vendor in
14962 shlibpath_overrides_runpath=no
14964 runpath_var=LD_RUN_PATH
14972 shlibpath_overrides_runpath=no
14973 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14979 if test -d /usr/nec ;then
14981 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14982 soname_spec='$libname${shared_ext}.$major'
14983 shlibpath_var=LD_LIBRARY_PATH
14987 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14988 version_type=freebsd-elf
14991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14992 soname_spec='${libname}${release}${shared_ext}$major'
14993 shlibpath_var=LD_LIBRARY_PATH
14994 shlibpath_overrides_runpath=yes
14995 hardcode_into_libs=yes
14996 if test "$with_gnu_ld" = yes; then
14997 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14999 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15002 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15006 sys_lib_dlsearch_path_spec='/usr/lib'
15010 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15015 shlibpath_var=LD_LIBRARY_PATH
15016 shlibpath_overrides_runpath=no
15017 hardcode_into_libs=yes
15022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15023 soname_spec='${libname}${release}${shared_ext}$major'
15024 shlibpath_var=LD_LIBRARY_PATH
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15032 $as_echo "$dynamic_linker" >&6; }
15033 test "$dynamic_linker" = no && can_build_shared=no
15035 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15036 if test "$GCC" = yes; then
15037 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15040 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15041 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15043 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15044 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15139 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15141 if test -n "$hardcode_libdir_flag_spec" ||
15142 test -n "$runpath_var" ||
15143 test "X$hardcode_automatic" = "Xyes" ; then
15145 # We can hardcode non-existent directories.
15146 if test "$hardcode_direct" != no &&
15147 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15148 # have to relink, otherwise we might link with an installed library
15149 # when we should be linking with a yet-to-be-installed one
15150 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15151 test "$hardcode_minus_L" != no; then
15152 # Linking always hardcodes the temporary library directory.
15153 hardcode_action=relink
15155 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15156 hardcode_action=immediate
15159 # We cannot hardcode anything, or else we can only hardcode existing
15161 hardcode_action=unsupported
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15164 $as_echo "$hardcode_action" >&6; }
15166 if test "$hardcode_action" = relink ||
15167 test "$inherit_rpath" = yes; then
15168 # Fast installation is not supported
15169 enable_fast_install=no
15170 elif test "$shlibpath_overrides_runpath" = yes ||
15171 test "$enable_shared" = no; then
15172 # Fast installation is not necessary
15173 enable_fast_install=needless
15181 if test "x$enable_dlopen" != xyes; then
15182 enable_dlopen=unknown
15183 enable_dlopen_self=unknown
15184 enable_dlopen_self_static=unknown
15191 lt_cv_dlopen="load_add_on"
15193 lt_cv_dlopen_self=yes
15196 mingw* | pw32* | cegcc*)
15197 lt_cv_dlopen="LoadLibrary"
15202 lt_cv_dlopen="dlopen"
15207 # if libdl is installed we need to link against it
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15209 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15210 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15211 $as_echo_n "(cached) " >&6
15213 ac_check_lib_save_LIBS=$LIBS
15215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216 /* end confdefs.h. */
15218 /* Override any GCC internal prototype to avoid an error.
15219 Use char because int might match the return type of a GCC
15220 builtin and then its argument prototype would still apply. */
15233 if ac_fn_c_try_link "$LINENO"; then :
15234 ac_cv_lib_dl_dlopen=yes
15236 ac_cv_lib_dl_dlopen=no
15238 rm -f core conftest.err conftest.$ac_objext \
15239 conftest$ac_exeext conftest.$ac_ext
15240 LIBS=$ac_check_lib_save_LIBS
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15243 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15244 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15245 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15248 lt_cv_dlopen="dyld"
15250 lt_cv_dlopen_self=yes
15257 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15258 if test "x$ac_cv_func_shl_load" = x""yes; then :
15259 lt_cv_dlopen="shl_load"
15261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15262 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15263 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
15264 $as_echo_n "(cached) " >&6
15266 ac_check_lib_save_LIBS=$LIBS
15268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15269 /* end confdefs.h. */
15271 /* Override any GCC internal prototype to avoid an error.
15272 Use char because int might match the return type of a GCC
15273 builtin and then its argument prototype would still apply. */
15281 return shl_load ();
15286 if ac_fn_c_try_link "$LINENO"; then :
15287 ac_cv_lib_dld_shl_load=yes
15289 ac_cv_lib_dld_shl_load=no
15291 rm -f core conftest.err conftest.$ac_objext \
15292 conftest$ac_exeext conftest.$ac_ext
15293 LIBS=$ac_check_lib_save_LIBS
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15296 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15297 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
15298 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15300 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15301 if test "x$ac_cv_func_dlopen" = x""yes; then :
15302 lt_cv_dlopen="dlopen"
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15305 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15306 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15307 $as_echo_n "(cached) " >&6
15309 ac_check_lib_save_LIBS=$LIBS
15311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15314 /* Override any GCC internal prototype to avoid an error.
15315 Use char because int might match the return type of a GCC
15316 builtin and then its argument prototype would still apply. */
15329 if ac_fn_c_try_link "$LINENO"; then :
15330 ac_cv_lib_dl_dlopen=yes
15332 ac_cv_lib_dl_dlopen=no
15334 rm -f core conftest.err conftest.$ac_objext \
15335 conftest$ac_exeext conftest.$ac_ext
15336 LIBS=$ac_check_lib_save_LIBS
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15339 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15340 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15341 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15344 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15345 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
15346 $as_echo_n "(cached) " >&6
15348 ac_check_lib_save_LIBS=$LIBS
15349 LIBS="-lsvld $LIBS"
15350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15351 /* end confdefs.h. */
15353 /* Override any GCC internal prototype to avoid an error.
15354 Use char because int might match the return type of a GCC
15355 builtin and then its argument prototype would still apply. */
15368 if ac_fn_c_try_link "$LINENO"; then :
15369 ac_cv_lib_svld_dlopen=yes
15371 ac_cv_lib_svld_dlopen=no
15373 rm -f core conftest.err conftest.$ac_objext \
15374 conftest$ac_exeext conftest.$ac_ext
15375 LIBS=$ac_check_lib_save_LIBS
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15378 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15379 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
15380 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15383 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15384 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
15385 $as_echo_n "(cached) " >&6
15387 ac_check_lib_save_LIBS=$LIBS
15389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15390 /* end confdefs.h. */
15392 /* Override any GCC internal prototype to avoid an error.
15393 Use char because int might match the return type of a GCC
15394 builtin and then its argument prototype would still apply. */
15402 return dld_link ();
15407 if ac_fn_c_try_link "$LINENO"; then :
15408 ac_cv_lib_dld_dld_link=yes
15410 ac_cv_lib_dld_dld_link=no
15412 rm -f core conftest.err conftest.$ac_objext \
15413 conftest$ac_exeext conftest.$ac_ext
15414 LIBS=$ac_check_lib_save_LIBS
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15417 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15418 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
15419 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15440 if test "x$lt_cv_dlopen" != xno; then
15446 case $lt_cv_dlopen in
15448 save_CPPFLAGS="$CPPFLAGS"
15449 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15451 save_LDFLAGS="$LDFLAGS"
15452 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15455 LIBS="$lt_cv_dlopen_libs $LIBS"
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15458 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15459 if test "${lt_cv_dlopen_self+set}" = set; then :
15460 $as_echo_n "(cached) " >&6
15462 if test "$cross_compiling" = yes; then :
15463 lt_cv_dlopen_self=cross
15465 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15466 lt_status=$lt_dlunknown
15467 cat > conftest.$ac_ext <<_LT_EOF
15468 #line $LINENO "configure"
15469 #include "confdefs.h"
15478 # define LT_DLGLOBAL RTLD_GLOBAL
15481 # define LT_DLGLOBAL DL_GLOBAL
15483 # define LT_DLGLOBAL 0
15487 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15488 find out it does not work in some platform. */
15489 #ifndef LT_DLLAZY_OR_NOW
15491 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15494 # define LT_DLLAZY_OR_NOW DL_LAZY
15497 # define LT_DLLAZY_OR_NOW RTLD_NOW
15500 # define LT_DLLAZY_OR_NOW DL_NOW
15502 # define LT_DLLAZY_OR_NOW 0
15509 /* When -fvisbility=hidden is used, assume the code has been annotated
15510 correspondingly for the symbols needed. */
15511 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15512 void fnord () __attribute__((visibility("default")));
15515 void fnord () { int i=42; }
15518 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15519 int status = $lt_dlunknown;
15523 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15526 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15527 else puts (dlerror ());
15529 /* dlclose (self); */
15537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15538 (eval $ac_link) 2>&5
15540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15541 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15542 (./conftest; exit; ) >&5 2>/dev/null
15544 case x$lt_status in
15545 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15546 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15547 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15550 # compilation failed
15551 lt_cv_dlopen_self=no
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15559 $as_echo "$lt_cv_dlopen_self" >&6; }
15561 if test "x$lt_cv_dlopen_self" = xyes; then
15562 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15564 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15565 if test "${lt_cv_dlopen_self_static+set}" = set; then :
15566 $as_echo_n "(cached) " >&6
15568 if test "$cross_compiling" = yes; then :
15569 lt_cv_dlopen_self_static=cross
15571 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15572 lt_status=$lt_dlunknown
15573 cat > conftest.$ac_ext <<_LT_EOF
15574 #line $LINENO "configure"
15575 #include "confdefs.h"
15584 # define LT_DLGLOBAL RTLD_GLOBAL
15587 # define LT_DLGLOBAL DL_GLOBAL
15589 # define LT_DLGLOBAL 0
15593 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15594 find out it does not work in some platform. */
15595 #ifndef LT_DLLAZY_OR_NOW
15597 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15600 # define LT_DLLAZY_OR_NOW DL_LAZY
15603 # define LT_DLLAZY_OR_NOW RTLD_NOW
15606 # define LT_DLLAZY_OR_NOW DL_NOW
15608 # define LT_DLLAZY_OR_NOW 0
15615 /* When -fvisbility=hidden is used, assume the code has been annotated
15616 correspondingly for the symbols needed. */
15617 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15618 void fnord () __attribute__((visibility("default")));
15621 void fnord () { int i=42; }
15624 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15625 int status = $lt_dlunknown;
15629 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15632 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15633 else puts (dlerror ());
15635 /* dlclose (self); */
15643 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15644 (eval $ac_link) 2>&5
15646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15647 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15648 (./conftest; exit; ) >&5 2>/dev/null
15650 case x$lt_status in
15651 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15652 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15653 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15656 # compilation failed
15657 lt_cv_dlopen_self_static=no
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15665 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15668 CPPFLAGS="$save_CPPFLAGS"
15669 LDFLAGS="$save_LDFLAGS"
15674 case $lt_cv_dlopen_self in
15675 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15676 *) enable_dlopen_self=unknown ;;
15679 case $lt_cv_dlopen_self_static in
15680 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15681 *) enable_dlopen_self_static=unknown ;;
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15704 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15705 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15706 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15707 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15709 $as_echo "yes" >&6; }
15711 # FIXME - insert some real tests, host_os isn't really good enough
15714 if test -n "$STRIP" ; then
15715 striplib="$STRIP -x"
15716 old_striplib="$STRIP -S"
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15718 $as_echo "yes" >&6; }
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15721 $as_echo "no" >&6; }
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15726 $as_echo "no" >&6; }
15742 # Report which library types will actually be built
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15744 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15746 $as_echo "$can_build_shared" >&6; }
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15749 $as_echo_n "checking whether to build shared libraries... " >&6; }
15750 test "$can_build_shared" = "no" && enable_shared=no
15752 # On AIX, shared libraries and static libraries use the same namespace, and
15753 # are all built from PIC.
15756 test "$enable_shared" = yes && enable_static=no
15757 if test -n "$RANLIB"; then
15758 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15759 postinstall_cmds='$RANLIB $lib'
15764 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15765 test "$enable_shared" = yes && enable_static=no
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15770 $as_echo "$enable_shared" >&6; }
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15773 $as_echo_n "checking whether to build static libraries... " >&6; }
15774 # Make sure either enable_shared or enable_static is yes.
15775 test "$enable_shared" = yes || enable_static=yes
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15777 $as_echo "$enable_static" >&6; }
15784 ac_cpp='$CPP $CPPFLAGS'
15785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15791 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15792 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15793 (test "X$CXX" != "Xg++"))) ; then
15795 ac_cpp='$CXXCPP $CPPFLAGS'
15796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15800 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15801 if test -z "$CXXCPP"; then
15802 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
15803 $as_echo_n "(cached) " >&6
15805 # Double quotes because CXXCPP needs to be expanded
15806 for CXXCPP in "$CXX -E" "/lib/cpp"
15808 ac_preproc_ok=false
15809 for ac_cxx_preproc_warn_flag in '' yes
15811 # Use a header file that comes with gcc, so configuring glibc
15812 # with a fresh cross-compiler works.
15813 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15814 # <limits.h> exists even on freestanding compilers.
15815 # On the NeXT, cc -E runs the code through the compiler's parser,
15816 # not just through cpp. "Syntax error" is here to catch this case.
15817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15818 /* end confdefs.h. */
15820 # include <limits.h>
15822 # include <assert.h>
15826 if ac_fn_cxx_try_cpp "$LINENO"; then :
15829 # Broken: fails on valid input.
15832 rm -f conftest.err conftest.$ac_ext
15834 # OK, works on sane cases. Now check whether nonexistent headers
15835 # can be detected and how.
15836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15837 /* end confdefs.h. */
15838 #include <ac_nonexistent.h>
15840 if ac_fn_cxx_try_cpp "$LINENO"; then :
15841 # Broken: success on invalid input.
15844 # Passes both tests.
15848 rm -f conftest.err conftest.$ac_ext
15851 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15852 rm -f conftest.err conftest.$ac_ext
15853 if $ac_preproc_ok; then :
15858 ac_cv_prog_CXXCPP=$CXXCPP
15861 CXXCPP=$ac_cv_prog_CXXCPP
15863 ac_cv_prog_CXXCPP=$CXXCPP
15865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15866 $as_echo "$CXXCPP" >&6; }
15867 ac_preproc_ok=false
15868 for ac_cxx_preproc_warn_flag in '' yes
15870 # Use a header file that comes with gcc, so configuring glibc
15871 # with a fresh cross-compiler works.
15872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15873 # <limits.h> exists even on freestanding compilers.
15874 # On the NeXT, cc -E runs the code through the compiler's parser,
15875 # not just through cpp. "Syntax error" is here to catch this case.
15876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15877 /* end confdefs.h. */
15879 # include <limits.h>
15881 # include <assert.h>
15885 if ac_fn_cxx_try_cpp "$LINENO"; then :
15888 # Broken: fails on valid input.
15891 rm -f conftest.err conftest.$ac_ext
15893 # OK, works on sane cases. Now check whether nonexistent headers
15894 # can be detected and how.
15895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15896 /* end confdefs.h. */
15897 #include <ac_nonexistent.h>
15899 if ac_fn_cxx_try_cpp "$LINENO"; then :
15900 # Broken: success on invalid input.
15903 # Passes both tests.
15907 rm -f conftest.err conftest.$ac_ext
15910 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15911 rm -f conftest.err conftest.$ac_ext
15912 if $ac_preproc_ok; then :
15915 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15917 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15918 See \`config.log' for more details" "$LINENO" 5; }
15922 ac_cpp='$CPP $CPPFLAGS'
15923 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15924 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15925 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15928 _lt_caught_CXX_error=yes
15932 ac_cpp='$CXXCPP $CPPFLAGS'
15933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15937 archive_cmds_need_lc_CXX=no
15938 allow_undefined_flag_CXX=
15939 always_export_symbols_CXX=no
15940 archive_expsym_cmds_CXX=
15941 compiler_needs_object_CXX=no
15942 export_dynamic_flag_spec_CXX=
15943 hardcode_direct_CXX=no
15944 hardcode_direct_absolute_CXX=no
15945 hardcode_libdir_flag_spec_CXX=
15946 hardcode_libdir_flag_spec_ld_CXX=
15947 hardcode_libdir_separator_CXX=
15948 hardcode_minus_L_CXX=no
15949 hardcode_shlibpath_var_CXX=unsupported
15950 hardcode_automatic_CXX=no
15951 inherit_rpath_CXX=no
15953 module_expsym_cmds_CXX=
15954 link_all_deplibs_CXX=unknown
15955 old_archive_cmds_CXX=$old_archive_cmds
15956 reload_flag_CXX=$reload_flag
15957 reload_cmds_CXX=$reload_cmds
15958 no_undefined_flag_CXX=
15959 whole_archive_flag_spec_CXX=
15960 enable_shared_with_static_runtimes_CXX=no
15962 # Source file extension for C++ test sources.
15965 # Object file extension for compiled C++ test sources.
15969 # No sense in running all these tests if we already determined that
15970 # the CXX compiler isn't working. Some variables (like enable_shared)
15971 # are currently assumed to apply to all compilers on this platform,
15972 # and will be corrupted by setting them based on a non-working compiler.
15973 if test "$_lt_caught_CXX_error" != yes; then
15974 # Code to be used in simple compile tests
15975 lt_simple_compile_test_code="int some_variable = 0;"
15977 # Code to be used in simple link tests
15978 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15980 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15987 # If no C compiler was specified, use CC.
15990 # If no C compiler flags were specified, use CFLAGS.
15991 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15993 # Allow CC to be a program name with arguments.
15997 # save warnings/boilerplate of simple test code
15998 ac_outfile=conftest.$ac_objext
15999 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16000 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16001 _lt_compiler_boilerplate=`cat conftest.err`
16004 ac_outfile=conftest.$ac_objext
16005 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16006 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16007 _lt_linker_boilerplate=`cat conftest.err`
16011 # Allow CC to be a program name with arguments.
16016 lt_save_with_gnu_ld=$with_gnu_ld
16017 lt_save_path_LD=$lt_cv_path_LD
16018 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16019 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16021 $as_unset lt_cv_prog_gnu_ld
16023 if test -n "${lt_cv_path_LDCXX+set}"; then
16024 lt_cv_path_LD=$lt_cv_path_LDCXX
16026 $as_unset lt_cv_path_LD
16028 test -z "${LDCXX+set}" || LD=$LDCXX
16032 for cc_temp in $compiler""; do
16034 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16035 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16040 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16043 if test -n "$compiler"; then
16044 # We don't want -fno-exception when compiling C++ code, so set the
16045 # no_builtin_flag separately
16046 if test "$GXX" = yes; then
16047 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16049 lt_prog_compiler_no_builtin_flag_CXX=
16052 if test "$GXX" = yes; then
16053 # Set up default GNU C++ configuration
16057 # Check whether --with-gnu-ld was given.
16058 if test "${with_gnu_ld+set}" = set; then :
16059 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16065 if test "$GCC" = yes; then
16066 # Check if gcc -print-prog-name=ld gives a path.
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16068 $as_echo_n "checking for ld used by $CC... " >&6; }
16071 # gcc leaves a trailing carriage return which upsets mingw
16072 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16074 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16077 # Accept absolute paths.
16079 re_direlt='/[^/][^/]*/\.\./'
16080 # Canonicalize the pathname of ld
16081 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16082 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16083 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16085 test -z "$LD" && LD="$ac_prog"
16088 # If it fails, then pretend we aren't using GCC.
16092 # If it is relative, then search for the first ld in PATH.
16093 with_gnu_ld=unknown
16096 elif test "$with_gnu_ld" = yes; then
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16098 $as_echo_n "checking for GNU ld... " >&6; }
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16101 $as_echo_n "checking for non-GNU ld... " >&6; }
16103 if test "${lt_cv_path_LD+set}" = set; then :
16104 $as_echo_n "(cached) " >&6
16106 if test -z "$LD"; then
16107 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16108 for ac_dir in $PATH; do
16110 test -z "$ac_dir" && ac_dir=.
16111 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16112 lt_cv_path_LD="$ac_dir/$ac_prog"
16113 # Check to see if the program is GNU ld. I'd rather use --version,
16114 # but apparently some variants of GNU ld only accept -v.
16115 # Break only if it was the GNU/non-GNU ld that we prefer.
16116 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16117 *GNU* | *'with BFD'*)
16118 test "$with_gnu_ld" != no && break
16121 test "$with_gnu_ld" != yes && break
16128 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16132 LD="$lt_cv_path_LD"
16133 if test -n "$LD"; then
16134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16135 $as_echo "$LD" >&6; }
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16138 $as_echo "no" >&6; }
16140 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16142 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16143 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16144 $as_echo_n "(cached) " >&6
16146 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16147 case `$LD -v 2>&1 </dev/null` in
16148 *GNU* | *'with BFD'*)
16149 lt_cv_prog_gnu_ld=yes
16152 lt_cv_prog_gnu_ld=no
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16157 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16158 with_gnu_ld=$lt_cv_prog_gnu_ld
16166 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16167 # archiving commands below assume that GNU ld is being used.
16168 if test "$with_gnu_ld" = yes; then
16169 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16170 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'
16172 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16173 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16175 # If archive_cmds runs LD, not CC, wlarc should be empty
16176 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16177 # investigate it a little bit more. (MM)
16180 # ancient GNU ld didn't support --whole-archive et. al.
16181 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16182 $GREP 'no-whole-archive' > /dev/null; then
16183 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16185 whole_archive_flag_spec_CXX=
16191 # A generic and very simple default shared library creation
16192 # command for GNU C++ for the case where it uses the native
16193 # linker, instead of GNU ld. If possible, this setting should
16194 # overridden to take advantage of the native linker features on
16195 # the platform it is being used on.
16196 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16199 # Commands to make compiler produce verbose output that lists
16200 # what "hidden" libraries, object files and flags are used when
16201 # linking a shared library.
16202 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16210 # PORTME: fill in a description of your system's C++ link characteristics
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16212 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16216 # FIXME: insert proper C++ library support
16220 if test "$host_cpu" = ia64; then
16221 # On IA64, the linker does run time linking by default, so we don't
16222 # have to do anything special.
16223 aix_use_runtimelinking=no
16224 exp_sym_flag='-Bexport'
16227 aix_use_runtimelinking=no
16229 # Test if we are trying to use run time linking or normal
16230 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16231 # need to do runtime linking.
16232 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16233 for ld_flag in $LDFLAGS; do
16236 aix_use_runtimelinking=yes
16244 exp_sym_flag='-bexport'
16245 no_entry_flag='-bnoentry'
16248 # When large executables or shared objects are built, AIX ld can
16249 # have problems creating the table of contents. If linking a library
16250 # or program results in "error TOC overflow" add -mminimal-toc to
16251 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16252 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16254 archive_cmds_CXX=''
16255 hardcode_direct_CXX=yes
16256 hardcode_direct_absolute_CXX=yes
16257 hardcode_libdir_separator_CXX=':'
16258 link_all_deplibs_CXX=yes
16259 file_list_spec_CXX='${wl}-f,'
16261 if test "$GXX" = yes; then
16262 case $host_os in aix4.[012]|aix4.[012].*)
16263 # We only want to do this on AIX 4.2 and lower, the check
16264 # below for broken collect2 doesn't work under 4.3+
16265 collect2name=`${CC} -print-prog-name=collect2`
16266 if test -f "$collect2name" &&
16267 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16269 # We have reworked collect2
16272 # We have old collect2
16273 hardcode_direct_CXX=unsupported
16274 # It fails to find uninstalled libraries when the uninstalled
16275 # path is not listed in the libpath. Setting hardcode_minus_L
16276 # to unsupported forces relinking
16277 hardcode_minus_L_CXX=yes
16278 hardcode_libdir_flag_spec_CXX='-L$libdir'
16279 hardcode_libdir_separator_CXX=
16282 shared_flag='-shared'
16283 if test "$aix_use_runtimelinking" = yes; then
16284 shared_flag="$shared_flag "'${wl}-G'
16288 if test "$host_cpu" = ia64; then
16289 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16290 # chokes on -Wl,-G. The following line is correct:
16293 if test "$aix_use_runtimelinking" = yes; then
16294 shared_flag='${wl}-G'
16296 shared_flag='${wl}-bM:SRE'
16301 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16302 # It seems that -bexpall does not export symbols beginning with
16303 # underscore (_), so it is better to generate a list of symbols to
16305 always_export_symbols_CXX=yes
16306 if test "$aix_use_runtimelinking" = yes; then
16307 # Warning - without using the other runtime loading flags (-brtl),
16308 # -berok will link without error, but may produce a broken library.
16309 allow_undefined_flag_CXX='-berok'
16310 # Determine the default libpath from the value encoded in an empty
16312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16313 /* end confdefs.h. */
16323 if ac_fn_cxx_try_link "$LINENO"; then :
16325 lt_aix_libpath_sed='
16326 /Import File Strings/,/^$/ {
16332 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16333 # Check for a 64-bit object if we didn't find anything.
16334 if test -z "$aix_libpath"; then
16335 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16338 rm -f core conftest.err conftest.$ac_objext \
16339 conftest$ac_exeext conftest.$ac_ext
16340 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16342 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16344 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"
16346 if test "$host_cpu" = ia64; then
16347 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16348 allow_undefined_flag_CXX="-z nodefs"
16349 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"
16351 # Determine the default libpath from the value encoded in an
16352 # empty executable.
16353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16354 /* end confdefs.h. */
16364 if ac_fn_cxx_try_link "$LINENO"; then :
16366 lt_aix_libpath_sed='
16367 /Import File Strings/,/^$/ {
16373 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16374 # Check for a 64-bit object if we didn't find anything.
16375 if test -z "$aix_libpath"; then
16376 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16379 rm -f core conftest.err conftest.$ac_objext \
16380 conftest$ac_exeext conftest.$ac_ext
16381 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16383 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16384 # Warning - without using the other run time loading flags,
16385 # -berok will link without error, but may produce a broken library.
16386 no_undefined_flag_CXX=' ${wl}-bernotok'
16387 allow_undefined_flag_CXX=' ${wl}-berok'
16388 if test "$with_gnu_ld" = yes; then
16389 # We only use this code for GNU lds that support --whole-archive.
16390 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16392 # Exported symbols can be pulled into shared objects from archives
16393 whole_archive_flag_spec_CXX='$convenience'
16395 archive_cmds_need_lc_CXX=yes
16396 # This is similar to how AIX traditionally builds its shared
16398 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'
16404 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16405 allow_undefined_flag_CXX=unsupported
16406 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16407 # support --undefined. This deserves some investigation. FIXME
16408 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16415 case $cc_basename in
16417 # FIXME: insert proper C++ library support
16423 cygwin* | mingw* | pw32* | cegcc*)
16424 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16425 # as there is no search path for DLLs.
16426 hardcode_libdir_flag_spec_CXX='-L$libdir'
16427 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
16428 allow_undefined_flag_CXX=unsupported
16429 always_export_symbols_CXX=no
16430 enable_shared_with_static_runtimes_CXX=yes
16432 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16433 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'
16434 # If the export-symbols file already is a .def file (1st line
16435 # is EXPORTS), use it as is; otherwise, prepend...
16436 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16437 cp $export_symbols $output_objdir/$soname.def;
16439 echo EXPORTS > $output_objdir/$soname.def;
16440 cat $export_symbols >> $output_objdir/$soname.def;
16442 $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'
16447 darwin* | rhapsody*)
16450 archive_cmds_need_lc_CXX=no
16451 hardcode_direct_CXX=no
16452 hardcode_automatic_CXX=yes
16453 hardcode_shlibpath_var_CXX=unsupported
16454 if test "$lt_cv_ld_force_load" = "yes"; then
16455 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\"`'
16457 whole_archive_flag_spec_CXX=''
16459 link_all_deplibs_CXX=yes
16460 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16461 case $cc_basename in
16462 ifort*) _lt_dar_can_shared=yes ;;
16463 *) _lt_dar_can_shared=$GCC ;;
16465 if test "$_lt_dar_can_shared" = "yes"; then
16466 output_verbose_link_cmd=func_echo_all
16467 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}"
16468 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16469 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}"
16470 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}"
16471 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16472 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}"
16473 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}"
16483 case $cc_basename in
16485 # FIXME: insert proper C++ library support
16489 # Green Hills C++ Compiler
16490 # FIXME: insert proper C++ library support
16494 # FIXME: insert proper C++ library support
16501 # C++ shared libraries reported to be fairly broken before
16507 archive_cmds_need_lc_CXX=no
16510 freebsd* | dragonfly*)
16511 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16520 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16521 link_all_deplibs_CXX=yes
16525 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16526 hardcode_libdir_separator_CXX=:
16527 export_dynamic_flag_spec_CXX='${wl}-E'
16528 hardcode_direct_CXX=yes
16529 hardcode_minus_L_CXX=yes # Not in the search PATH,
16530 # but as the default
16531 # location of the library.
16533 case $cc_basename in
16535 # FIXME: insert proper C++ library support
16539 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'
16540 # Commands to make compiler produce verbose output that lists
16541 # what "hidden" libraries, object files and flags are used when
16542 # linking a shared library.
16544 # There doesn't appear to be a way to prevent this compiler from
16545 # explicitly linking system object files so we need to strip them
16546 # from the output so that they don't get included in the library
16548 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"'
16551 if test "$GXX" = yes; then
16552 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'
16554 # FIXME: insert proper C++ library support
16562 if test $with_gnu_ld = no; then
16563 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16564 hardcode_libdir_separator_CXX=:
16570 export_dynamic_flag_spec_CXX='${wl}-E'
16576 hardcode_direct_CXX=no
16577 hardcode_shlibpath_var_CXX=no
16580 hardcode_direct_CXX=yes
16581 hardcode_direct_absolute_CXX=yes
16582 hardcode_minus_L_CXX=yes # Not in the search PATH,
16583 # but as the default
16584 # location of the library.
16588 case $cc_basename in
16590 # FIXME: insert proper C++ library support
16596 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16599 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16602 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16605 # Commands to make compiler produce verbose output that lists
16606 # what "hidden" libraries, object files and flags are used when
16607 # linking a shared library.
16609 # There doesn't appear to be a way to prevent this compiler from
16610 # explicitly linking system object files so we need to strip them
16611 # from the output so that they don't get included in the library
16613 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"'
16616 if test "$GXX" = yes; then
16617 if test $with_gnu_ld = no; then
16620 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16623 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16626 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'
16631 # FIXME: insert proper C++ library support
16639 hardcode_direct_CXX=no
16640 hardcode_shlibpath_var_CXX=no
16641 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16642 export_dynamic_flag_spec_CXX='${wl}-E'
16643 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16644 # Instead, shared libraries are loaded at an image base (0x10000000 by
16645 # default) and relocated if they conflict, which is a slow very memory
16646 # consuming and fragmenting process. To avoid this, we pick a random,
16647 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16648 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16649 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'
16650 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'
16653 case $cc_basename in
16656 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'
16658 # Archives containing C++ object files must be created using
16659 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16660 # necessary to make sure instantiated templates are included
16662 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16665 if test "$GXX" = yes; then
16666 if test "$with_gnu_ld" = no; then
16667 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'
16669 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'
16672 link_all_deplibs_CXX=yes
16675 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16676 hardcode_libdir_separator_CXX=:
16677 inherit_rpath_CXX=yes
16680 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16681 case $cc_basename in
16683 # Kuck and Associates, Inc. (KAI) C++ Compiler
16685 # KCC will only create a shared library if the output file
16686 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16687 # to its proper name (with version) after linking.
16688 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'
16689 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'
16690 # Commands to make compiler produce verbose output that lists
16691 # what "hidden" libraries, object files and flags are used when
16692 # linking a shared library.
16694 # There doesn't appear to be a way to prevent this compiler from
16695 # explicitly linking system object files so we need to strip them
16696 # from the output so that they don't get included in the library
16698 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"'
16700 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16701 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16703 # Archives containing C++ object files must be created using
16704 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16705 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16710 # version 8.0 and above of icpc choke on multiply defined symbols
16711 # if we add $predep_objects and $postdep_objects, however 7.1 and
16712 # earlier do not add the objects themselves.
16713 case `$CC -V 2>&1` in
16715 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16716 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'
16718 *) # Version 8.0 or newer
16721 ia64*) tmp_idyn=' -i_dynamic';;
16723 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16724 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'
16727 archive_cmds_need_lc_CXX=no
16728 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16729 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16730 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16733 # Portland Group C++ compiler
16735 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16736 prelink_cmds_CXX='tpldir=Template.dir~
16738 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16739 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16740 old_archive_cmds_CXX='tpldir=Template.dir~
16742 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16743 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16745 archive_cmds_CXX='tpldir=Template.dir~
16747 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16748 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16749 archive_expsym_cmds_CXX='tpldir=Template.dir~
16751 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16752 $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'
16754 *) # Version 6 and above use weak symbols
16755 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16756 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'
16760 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16761 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16762 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'
16766 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16767 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'
16769 runpath_var=LD_RUN_PATH
16770 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16771 hardcode_libdir_separator_CXX=:
16773 # Commands to make compiler produce verbose output that lists
16774 # what "hidden" libraries, object files and flags are used when
16775 # linking a shared library.
16777 # There doesn't appear to be a way to prevent this compiler from
16778 # explicitly linking system object files so we need to strip them
16779 # from the output so that they don't get included in the library
16781 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'
16783 xl* | mpixl* | bgxl*)
16784 # IBM XL 8.0 on PPC, with GNU ld
16785 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16786 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16787 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16788 if test "x$supports_anon_versioning" = xyes; then
16789 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16790 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16791 echo "local: *; };" >> $output_objdir/$libname.ver~
16792 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16796 case `$CC -V 2>&1 | sed 5q` in
16799 no_undefined_flag_CXX=' -zdefs'
16800 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16801 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'
16802 hardcode_libdir_flag_spec_CXX='-R$libdir'
16803 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'
16804 compiler_needs_object_CXX=yes
16806 # Not sure whether something based on
16807 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16809 output_verbose_link_cmd='func_echo_all'
16811 # Archives containing C++ object files must be created using
16812 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16813 # necessary to make sure instantiated templates are included
16815 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16823 # FIXME: insert proper C++ library support
16828 # FIXME: insert proper C++ library support
16833 case $cc_basename in
16835 # FIXME: insert proper C++ library support
16839 # FIXME: insert proper C++ library support
16846 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16847 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16849 hardcode_libdir_flag_spec_CXX='-R$libdir'
16850 hardcode_direct_CXX=yes
16851 hardcode_shlibpath_var_CXX=no
16853 # Workaround some broken pre-1.5 toolchains
16854 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16862 # C++ shared libraries are fairly broken
16867 if test -f /usr/libexec/ld.so; then
16868 hardcode_direct_CXX=yes
16869 hardcode_shlibpath_var_CXX=no
16870 hardcode_direct_absolute_CXX=yes
16871 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16872 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16873 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16874 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16875 export_dynamic_flag_spec_CXX='${wl}-E'
16876 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16878 output_verbose_link_cmd=func_echo_all
16884 osf3* | osf4* | osf5*)
16885 case $cc_basename in
16887 # Kuck and Associates, Inc. (KAI) C++ Compiler
16889 # KCC will only create a shared library if the output file
16890 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16891 # to its proper name (with version) after linking.
16892 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'
16894 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16895 hardcode_libdir_separator_CXX=:
16897 # Archives containing C++ object files must be created using
16898 # the KAI C++ compiler.
16900 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16901 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16905 # Rational C++ 2.4.1
16906 # FIXME: insert proper C++ library support
16912 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16913 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'
16914 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16917 allow_undefined_flag_CXX=' -expect_unresolved \*'
16918 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'
16919 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16920 echo "-hidden">> $lib.exp~
16921 $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~
16923 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16927 hardcode_libdir_separator_CXX=:
16929 # Commands to make compiler produce verbose output that lists
16930 # what "hidden" libraries, object files and flags are used when
16931 # linking a shared library.
16933 # There doesn't appear to be a way to prevent this compiler from
16934 # explicitly linking system object files so we need to strip them
16935 # from the output so that they don't get included in the library
16937 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"'
16940 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16941 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16944 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'
16947 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'
16951 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16952 hardcode_libdir_separator_CXX=:
16954 # Commands to make compiler produce verbose output that lists
16955 # what "hidden" libraries, object files and flags are used when
16956 # linking a shared library.
16957 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16960 # FIXME: insert proper C++ library support
16968 # FIXME: insert proper C++ library support
16973 case $cc_basename in
16976 # FIXME: insert proper C++ library support
16981 # FIXME: insert proper C++ library support
16985 # FIXME: insert proper C++ library support
16992 case $cc_basename in
16994 # Sun C++ 4.2, 5.x and Centerline C++
16995 archive_cmds_need_lc_CXX=yes
16996 no_undefined_flag_CXX=' -zdefs'
16997 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16998 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16999 $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'
17001 hardcode_libdir_flag_spec_CXX='-R$libdir'
17002 hardcode_shlibpath_var_CXX=no
17004 solaris2.[0-5] | solaris2.[0-5].*) ;;
17006 # The compiler driver will combine and reorder linker options,
17007 # but understands `-z linker_flag'.
17008 # Supported since Solaris 2.6 (maybe 2.5.1?)
17009 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17012 link_all_deplibs_CXX=yes
17014 output_verbose_link_cmd='func_echo_all'
17016 # Archives containing C++ object files must be created using
17017 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17018 # necessary to make sure instantiated templates are included
17020 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17023 # Green Hills C++ Compiler
17024 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17026 # The C++ compiler must be used to create the archive.
17027 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17030 # GNU C++ compiler with Solaris linker
17031 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17032 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17033 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17034 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17035 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17036 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17038 # Commands to make compiler produce verbose output that lists
17039 # what "hidden" libraries, object files and flags are used when
17040 # linking a shared library.
17041 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17043 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17045 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17046 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17047 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17049 # Commands to make compiler produce verbose output that lists
17050 # what "hidden" libraries, object files and flags are used when
17051 # linking a shared library.
17052 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
17055 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17057 solaris2.[0-5] | solaris2.[0-5].*) ;;
17059 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17067 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17068 no_undefined_flag_CXX='${wl}-z,text'
17069 archive_cmds_need_lc_CXX=no
17070 hardcode_shlibpath_var_CXX=no
17071 runpath_var='LD_RUN_PATH'
17073 case $cc_basename in
17075 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17076 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17079 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17080 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17085 sysv5* | sco3.2v5* | sco5v6*)
17086 # Note: We can NOT use -z defs as we might desire, because we do not
17087 # link with -lc, and that would cause any symbols used from libc to
17088 # always be unresolved, which means just about no library would
17089 # ever link correctly. If we're not using GNU ld we use -z text
17090 # though, which does catch some bad symbols but isn't as heavy-handed
17092 no_undefined_flag_CXX='${wl}-z,text'
17093 allow_undefined_flag_CXX='${wl}-z,nodefs'
17094 archive_cmds_need_lc_CXX=no
17095 hardcode_shlibpath_var_CXX=no
17096 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17097 hardcode_libdir_separator_CXX=':'
17098 link_all_deplibs_CXX=yes
17099 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17100 runpath_var='LD_RUN_PATH'
17102 case $cc_basename in
17104 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17105 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17106 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
17107 '"$old_archive_cmds_CXX"
17108 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
17109 '"$reload_cmds_CXX"
17112 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17113 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17119 case $cc_basename in
17121 # NonStop-UX NCC 3.20
17122 # FIXME: insert proper C++ library support
17126 # FIXME: insert proper C++ library support
17133 # FIXME: insert proper C++ library support
17138 # FIXME: insert proper C++ library support
17143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17144 $as_echo "$ld_shlibs_CXX" >&6; }
17145 test "$ld_shlibs_CXX" = no && can_build_shared=no
17151 ## There is no encapsulation within the following macros, do not change
17152 ## the running order or otherwise move them around unless you know exactly
17153 ## what you are doing...
17154 # Dependencies to place before and after the object being linked:
17155 predep_objects_CXX=
17156 postdep_objects_CXX=
17159 compiler_lib_search_path_CXX=
17161 cat > conftest.$ac_ext <<_LT_EOF
17165 Foo (void) { a = 0; }
17171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17172 (eval $ac_compile) 2>&5
17174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17175 test $ac_status = 0; }; then
17176 # Parse the compiler output and extract the necessary
17177 # objects, libraries and library flags.
17179 # Sentinel used to keep track of whether or not we are before
17180 # the conftest object file.
17181 pre_test_object_deps_done=no
17183 for p in `eval "$output_verbose_link_cmd"`; do
17187 # Some compilers place space between "-{L,R}" and the path.
17188 # Remove the space.
17189 if test $p = "-L" ||
17190 test $p = "-R"; then
17197 if test "$pre_test_object_deps_done" = no; then
17200 # Internal compiler library paths should come after those
17201 # provided the user. The postdeps already come after the
17202 # user supplied libs so there is no need to process them.
17203 if test -z "$compiler_lib_search_path_CXX"; then
17204 compiler_lib_search_path_CXX="${prev}${p}"
17206 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17209 # The "-l" case would never come before the object being
17210 # linked, so don't bother handling this case.
17213 if test -z "$postdeps_CXX"; then
17214 postdeps_CXX="${prev}${p}"
17216 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17222 # This assumes that the test object file only shows up
17223 # once in the compiler output.
17224 if test "$p" = "conftest.$objext"; then
17225 pre_test_object_deps_done=yes
17229 if test "$pre_test_object_deps_done" = no; then
17230 if test -z "$predep_objects_CXX"; then
17231 predep_objects_CXX="$p"
17233 predep_objects_CXX="$predep_objects_CXX $p"
17236 if test -z "$postdep_objects_CXX"; then
17237 postdep_objects_CXX="$p"
17239 postdep_objects_CXX="$postdep_objects_CXX $p"
17244 *) ;; # Ignore the rest.
17252 echo "libtool.m4: error: problem compiling CXX test program"
17255 $RM -f confest.$objext
17257 # PORTME: override above test on systems where it is broken
17260 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17261 # hack all around it, let's just trust "g++" to DTRT.
17262 predep_objects_CXX=
17263 postdep_objects_CXX=
17268 case `$CC -V 2>&1 | sed 5q` in
17272 # The more standards-conforming stlport4 library is
17273 # incompatible with the Cstd library. Avoid specifying
17274 # it if it's in CXXFLAGS. Ignore libCrun as
17275 # -library=stlport4 depends on it.
17276 case " $CXX $CXXFLAGS " in
17277 *" -library=stlport4 "*)
17278 solaris_use_stlport4=yes
17282 if test "$solaris_use_stlport4" != yes; then
17283 postdeps_CXX='-library=Cstd -library=Crun'
17290 case $cc_basename in
17292 # The more standards-conforming stlport4 library is
17293 # incompatible with the Cstd library. Avoid specifying
17294 # it if it's in CXXFLAGS. Ignore libCrun as
17295 # -library=stlport4 depends on it.
17296 case " $CXX $CXXFLAGS " in
17297 *" -library=stlport4 "*)
17298 solaris_use_stlport4=yes
17302 # Adding this requires a known-good setup of shared libraries for
17303 # Sun compiler versions before 5.6, else PIC objects from an old
17304 # archive will be linked into the output, leading to subtle bugs.
17305 if test "$solaris_use_stlport4" != yes; then
17306 postdeps_CXX='-library=Cstd -library=Crun'
17314 case " $postdeps_CXX " in
17315 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17317 compiler_lib_search_dirs_CXX=
17318 if test -n "${compiler_lib_search_path_CXX}"; then
17319 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17352 lt_prog_compiler_wl_CXX=
17353 lt_prog_compiler_pic_CXX=
17354 lt_prog_compiler_static_CXX=
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17357 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17359 # C++ specific cases for pic, static, wl, etc.
17360 if test "$GXX" = yes; then
17361 lt_prog_compiler_wl_CXX='-Wl,'
17362 lt_prog_compiler_static_CXX='-static'
17366 # All AIX code is PIC.
17367 if test "$host_cpu" = ia64; then
17368 # AIX 5 now supports IA64 processor
17369 lt_prog_compiler_static_CXX='-Bstatic'
17376 # see comment about AmigaOS4 .so support
17377 lt_prog_compiler_pic_CXX='-fPIC'
17380 # FIXME: we need at least 68020 code to build shared libraries, but
17381 # adding the `-m68020' flag to GCC prevents building anything better,
17383 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17388 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17389 # PIC is the default for these OSes.
17391 mingw* | cygwin* | os2* | pw32* | cegcc*)
17392 # This hack is so that the source file can tell whether it is being
17393 # built for inclusion in a dll (and should export symbols for example).
17394 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17395 # (--disable-auto-import) libraries
17396 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17398 darwin* | rhapsody*)
17399 # PIC is the default on this platform
17400 # Common symbols not allowed in MH_DYLIB files
17401 lt_prog_compiler_pic_CXX='-fno-common'
17404 # DJGPP does not support shared libraries at all
17405 lt_prog_compiler_pic_CXX=
17408 # PIC is the default for Haiku.
17409 # The "-static" flag exists, but is broken.
17410 lt_prog_compiler_static_CXX=
17413 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17414 # Instead, we relocate shared libraries at runtime.
17417 if test -d /usr/nec; then
17418 lt_prog_compiler_pic_CXX=-Kconform_pic
17422 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17423 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17424 # sets the default TLS model and affects inlining.
17429 lt_prog_compiler_pic_CXX='-fPIC'
17434 # QNX uses GNU C++, but need to define -shared option too, otherwise
17435 # it will coredump.
17436 lt_prog_compiler_pic_CXX='-fPIC -shared'
17439 lt_prog_compiler_pic_CXX='-fPIC'
17445 # All AIX code is PIC.
17446 if test "$host_cpu" = ia64; then
17447 # AIX 5 now supports IA64 processor
17448 lt_prog_compiler_static_CXX='-Bstatic'
17450 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17454 case $cc_basename in
17456 # Green Hills C++ Compiler
17457 # _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"
17462 case $cc_basename in
17464 lt_prog_compiler_pic_CXX='-KPIC'
17467 # Green Hills C++ Compiler
17468 lt_prog_compiler_pic_CXX='-pic'
17474 freebsd* | dragonfly*)
17475 # FreeBSD uses GNU C++
17477 hpux9* | hpux10* | hpux11*)
17478 case $cc_basename in
17480 lt_prog_compiler_wl_CXX='-Wl,'
17481 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17482 if test "$host_cpu" != ia64; then
17483 lt_prog_compiler_pic_CXX='+Z'
17487 lt_prog_compiler_wl_CXX='-Wl,'
17488 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17494 lt_prog_compiler_pic_CXX='+Z'
17503 # This is c89, which is MS Visual C++ (no shared libs)
17504 # Anyone wants to do a port?
17506 irix5* | irix6* | nonstopux*)
17507 case $cc_basename in
17509 lt_prog_compiler_wl_CXX='-Wl,'
17510 lt_prog_compiler_static_CXX='-non_shared'
17511 # CC pic flag -KPIC is the default.
17517 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17518 case $cc_basename in
17521 lt_prog_compiler_wl_CXX='--backend -Wl,'
17522 lt_prog_compiler_pic_CXX='-fPIC'
17525 # old Intel C++ for x86_64 which still supported -KPIC.
17526 lt_prog_compiler_wl_CXX='-Wl,'
17527 lt_prog_compiler_pic_CXX='-KPIC'
17528 lt_prog_compiler_static_CXX='-static'
17531 # Intel C++, used to be incompatible with GCC.
17532 # ICC 10 doesn't accept -KPIC any more.
17533 lt_prog_compiler_wl_CXX='-Wl,'
17534 lt_prog_compiler_pic_CXX='-fPIC'
17535 lt_prog_compiler_static_CXX='-static'
17538 # Portland Group C++ compiler
17539 lt_prog_compiler_wl_CXX='-Wl,'
17540 lt_prog_compiler_pic_CXX='-fpic'
17541 lt_prog_compiler_static_CXX='-Bstatic'
17545 # Make sure the PIC flag is empty. It appears that all Alpha
17546 # Linux and Compaq Tru64 Unix objects are PIC.
17547 lt_prog_compiler_pic_CXX=
17548 lt_prog_compiler_static_CXX='-non_shared'
17550 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17551 # IBM XL 8.0, 9.0 on PPC and BlueGene
17552 lt_prog_compiler_wl_CXX='-Wl,'
17553 lt_prog_compiler_pic_CXX='-qpic'
17554 lt_prog_compiler_static_CXX='-qstaticlink'
17557 case `$CC -V 2>&1 | sed 5q` in
17560 lt_prog_compiler_pic_CXX='-KPIC'
17561 lt_prog_compiler_static_CXX='-Bstatic'
17562 lt_prog_compiler_wl_CXX='-Qoption ld '
17573 case $cc_basename in
17575 lt_prog_compiler_pic_CXX='-W c,exportall'
17584 # QNX uses GNU C++, but need to define -shared option too, otherwise
17585 # it will coredump.
17586 lt_prog_compiler_pic_CXX='-fPIC -shared'
17588 osf3* | osf4* | osf5*)
17589 case $cc_basename in
17591 lt_prog_compiler_wl_CXX='--backend -Wl,'
17594 # Rational C++ 2.4.1
17595 lt_prog_compiler_pic_CXX='-pic'
17598 # Digital/Compaq C++
17599 lt_prog_compiler_wl_CXX='-Wl,'
17600 # Make sure the PIC flag is empty. It appears that all Alpha
17601 # Linux and Compaq Tru64 Unix objects are PIC.
17602 lt_prog_compiler_pic_CXX=
17603 lt_prog_compiler_static_CXX='-non_shared'
17612 case $cc_basename in
17614 # Sun C++ 4.2, 5.x and Centerline C++
17615 lt_prog_compiler_pic_CXX='-KPIC'
17616 lt_prog_compiler_static_CXX='-Bstatic'
17617 lt_prog_compiler_wl_CXX='-Qoption ld '
17620 # Green Hills C++ Compiler
17621 lt_prog_compiler_pic_CXX='-PIC'
17628 case $cc_basename in
17631 lt_prog_compiler_pic_CXX='-pic'
17632 lt_prog_compiler_static_CXX='-Bstatic'
17636 lt_prog_compiler_pic_CXX='-pic'
17642 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17643 case $cc_basename in
17645 lt_prog_compiler_wl_CXX='-Wl,'
17646 lt_prog_compiler_pic_CXX='-KPIC'
17647 lt_prog_compiler_static_CXX='-Bstatic'
17652 case $cc_basename in
17654 # NonStop-UX NCC 3.20
17655 lt_prog_compiler_pic_CXX='-KPIC'
17664 lt_prog_compiler_can_build_shared_CXX=no
17670 # For platforms which do not support PIC, -DPIC is meaningless:
17672 lt_prog_compiler_pic_CXX=
17675 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
17679 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17684 # Check to make sure the PIC flag actually works.
17686 if test -n "$lt_prog_compiler_pic_CXX"; then
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17688 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17689 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
17690 $as_echo_n "(cached) " >&6
17692 lt_cv_prog_compiler_pic_works_CXX=no
17693 ac_outfile=conftest.$ac_objext
17694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17695 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17696 # Insert the option either (1) after the last *FLAGS variable, or
17697 # (2) before a word containing "conftest.", or (3) at the end.
17698 # Note that $ac_compile itself does not contain backslashes and begins
17699 # with a dollar sign (not a hyphen), so the echo should work correctly.
17700 # The option is referenced via a variable to avoid confusing sed.
17701 lt_compile=`echo "$ac_compile" | $SED \
17702 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17704 -e 's:$: $lt_compiler_flag:'`
17705 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17706 (eval "$lt_compile" 2>conftest.err)
17708 cat conftest.err >&5
17709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17710 if (exit $ac_status) && test -s "$ac_outfile"; then
17711 # The compiler can only warn and ignore the option if not recognized
17712 # So say no if there are warnings other than the usual output.
17713 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17715 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17716 lt_cv_prog_compiler_pic_works_CXX=yes
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17723 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17725 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17726 case $lt_prog_compiler_pic_CXX in
17728 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17731 lt_prog_compiler_pic_CXX=
17732 lt_prog_compiler_can_build_shared_CXX=no
17740 # Check to make sure the static flag actually works.
17742 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17744 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17745 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
17746 $as_echo_n "(cached) " >&6
17748 lt_cv_prog_compiler_static_works_CXX=no
17749 save_LDFLAGS="$LDFLAGS"
17750 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17751 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17752 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17753 # The linker can only warn and ignore the option if not recognized
17754 # So say no if there are warnings
17755 if test -s conftest.err; then
17756 # Append any errors to the config.log.
17757 cat conftest.err 1>&5
17758 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17760 if diff conftest.exp conftest.er2 >/dev/null; then
17761 lt_cv_prog_compiler_static_works_CXX=yes
17764 lt_cv_prog_compiler_static_works_CXX=yes
17768 LDFLAGS="$save_LDFLAGS"
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17772 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17774 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17777 lt_prog_compiler_static_CXX=
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17784 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17785 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17786 $as_echo_n "(cached) " >&6
17788 lt_cv_prog_compiler_c_o_CXX=no
17789 $RM -r conftest 2>/dev/null
17793 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17795 lt_compiler_flag="-o out/conftest2.$ac_objext"
17796 # Insert the option either (1) after the last *FLAGS variable, or
17797 # (2) before a word containing "conftest.", or (3) at the end.
17798 # Note that $ac_compile itself does not contain backslashes and begins
17799 # with a dollar sign (not a hyphen), so the echo should work correctly.
17800 lt_compile=`echo "$ac_compile" | $SED \
17801 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17802 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17803 -e 's:$: $lt_compiler_flag:'`
17804 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17805 (eval "$lt_compile" 2>out/conftest.err)
17807 cat out/conftest.err >&5
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17811 # The compiler can only warn and ignore the option if not recognized
17812 # So say no if there are warnings
17813 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17814 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17815 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17816 lt_cv_prog_compiler_c_o_CXX=yes
17821 # SGI C++ compiler will create directory out/ii_files/ for
17822 # template instantiation
17823 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17824 $RM out/* && rmdir out
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17831 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17836 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17837 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
17838 $as_echo_n "(cached) " >&6
17840 lt_cv_prog_compiler_c_o_CXX=no
17841 $RM -r conftest 2>/dev/null
17845 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17847 lt_compiler_flag="-o out/conftest2.$ac_objext"
17848 # Insert the option either (1) after the last *FLAGS variable, or
17849 # (2) before a word containing "conftest.", or (3) at the end.
17850 # Note that $ac_compile itself does not contain backslashes and begins
17851 # with a dollar sign (not a hyphen), so the echo should work correctly.
17852 lt_compile=`echo "$ac_compile" | $SED \
17853 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17854 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17855 -e 's:$: $lt_compiler_flag:'`
17856 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17857 (eval "$lt_compile" 2>out/conftest.err)
17859 cat out/conftest.err >&5
17860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17861 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17863 # The compiler can only warn and ignore the option if not recognized
17864 # So say no if there are warnings
17865 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17866 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17867 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17868 lt_cv_prog_compiler_c_o_CXX=yes
17873 # SGI C++ compiler will create directory out/ii_files/ for
17874 # template instantiation
17875 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17876 $RM out/* && rmdir out
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17883 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17888 hard_links="nottested"
17889 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17890 # do not overwrite the value of need_locks provided by the user
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17892 $as_echo_n "checking if we can lock with hard links... " >&6; }
17895 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17897 ln conftest.a conftest.b 2>&5 || hard_links=no
17898 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17900 $as_echo "$hard_links" >&6; }
17901 if test "$hard_links" = no; then
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17903 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17913 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17915 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17918 # If we're using GNU nm, then we don't want the "-C" option.
17919 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17920 # Also, AIX nm treats weak defined symbols like other global defined
17921 # symbols, whereas GNU nm marks them as "W".
17922 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17923 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'
17925 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'
17929 export_symbols_cmds_CXX="$ltdll_cmds"
17931 cygwin* | mingw* | cegcc*)
17932 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'
17935 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17938 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17941 $as_echo "$ld_shlibs_CXX" >&6; }
17942 test "$ld_shlibs_CXX" = no && can_build_shared=no
17944 with_gnu_ld_CXX=$with_gnu_ld
17952 # Do we need to explicitly link libc?
17954 case "x$archive_cmds_need_lc_CXX" in
17956 # Assume -lc should be added
17957 archive_cmds_need_lc_CXX=yes
17959 if test "$enable_shared" = yes && test "$GCC" = yes; then
17960 case $archive_cmds_CXX in
17962 # FIXME: we may have to deal with multi-command sequences.
17965 # Test whether the compiler implicitly links with -lc since on some
17966 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17967 # to ld, don't add -lc before -lgcc.
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17969 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17970 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
17971 $as_echo_n "(cached) " >&6
17974 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17977 (eval $ac_compile) 2>&5
17979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17980 test $ac_status = 0; } 2>conftest.err; then
17983 libobjs=conftest.$ac_objext
17985 wl=$lt_prog_compiler_wl_CXX
17986 pic_flag=$lt_prog_compiler_pic_CXX
17992 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17993 allow_undefined_flag_CXX=
17994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17995 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17998 test $ac_status = 0; }
18000 lt_cv_archive_cmds_need_lc_CXX=no
18002 lt_cv_archive_cmds_need_lc_CXX=yes
18004 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18006 cat conftest.err 1>&5
18011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
18012 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
18013 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18084 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18086 library_names_spec=
18087 libname_spec='lib$name'
18091 postuninstall_cmds=
18095 shlibpath_overrides_runpath=unknown
18097 dynamic_linker="$host_os ld.so"
18098 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18099 need_lib_prefix=unknown
18100 hardcode_into_libs=no
18102 # when you set need_version to no, make sure it does not cause -set_version
18103 # flags to be left without arguments
18104 need_version=unknown
18109 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18110 shlibpath_var=LIBPATH
18112 # AIX 3 has no versioning support, so we append a major version to the name.
18113 soname_spec='${libname}${release}${shared_ext}$major'
18120 hardcode_into_libs=yes
18121 if test "$host_cpu" = ia64; then
18122 # AIX 5 supports IA64
18123 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18124 shlibpath_var=LD_LIBRARY_PATH
18126 # With GCC up to 2.95.x, collect2 would create an import file
18127 # for dependence libraries. The import file would start with
18128 # the line `#! .'. This would cause the generated library to
18129 # depend on `.', always an invalid library. This was fixed in
18130 # development snapshots of GCC prior to 3.0.
18132 aix4 | aix4.[01] | aix4.[01].*)
18133 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18135 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18138 can_build_shared=no
18142 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18143 # soname into executable. Probably we can add versioning support to
18144 # collect2, so additional links can be useful in future.
18145 if test "$aix_use_runtimelinking" = yes; then
18146 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18147 # instead of lib<name>.a to let people know that these are not
18148 # typical AIX shared libraries.
18149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18151 # We preserve .a as extension for shared libraries through AIX4.2
18152 # and later when we are not doing run time linking.
18153 library_names_spec='${libname}${release}.a $libname.a'
18154 soname_spec='${libname}${release}${shared_ext}$major'
18156 shlibpath_var=LIBPATH
18163 # Since July 2007 AmigaOS4 officially supports .so libraries.
18164 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18168 library_names_spec='$libname.ixlibrary $libname.a'
18169 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18170 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'
18176 library_names_spec='${libname}${shared_ext}'
18177 dynamic_linker="$host_os ld.so"
18178 shlibpath_var=LIBRARY_PATH
18184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18185 soname_spec='${libname}${release}${shared_ext}$major'
18186 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18187 shlibpath_var=LD_LIBRARY_PATH
18188 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18189 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18190 # the default ld.so.conf also contains /usr/contrib/lib and
18191 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18192 # libtool to hard-code these into programs
18195 cygwin* | mingw* | pw32* | cegcc*)
18196 version_type=windows
18201 case $GCC,$host_os in
18202 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18203 library_names_spec='$libname.dll.a'
18204 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18205 postinstall_cmds='base_file=`basename \${file}`~
18206 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18207 dldir=$destdir/`dirname \$dlpath`~
18208 test -d \$dldir || mkdir -p \$dldir~
18209 $install_prog $dir/$dlname \$dldir/$dlname~
18210 chmod a+x \$dldir/$dlname~
18211 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18212 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18214 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18215 dlpath=$dir/\$dldll~
18217 shlibpath_overrides_runpath=yes
18221 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18222 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18226 # MinGW DLLs use traditional 'lib' prefix
18227 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18230 # pw32 DLLs use 'pw' prefix rather than 'lib'
18231 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18237 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18240 dynamic_linker='Win32 ld.exe'
18241 # FIXME: first we should search . and the directory the executable is in
18245 darwin* | rhapsody*)
18246 dynamic_linker="$host_os dyld"
18247 version_type=darwin
18250 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18251 soname_spec='${libname}${release}${major}$shared_ext'
18252 shlibpath_overrides_runpath=yes
18253 shlibpath_var=DYLD_LIBRARY_PATH
18254 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18256 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18264 soname_spec='${libname}${release}${shared_ext}$major'
18265 shlibpath_var=LD_LIBRARY_PATH
18272 freebsd* | dragonfly*)
18273 # DragonFly does not have aout. When/if they implement a new
18274 # versioning mechanism, adjust this.
18275 if test -x /usr/bin/objformat; then
18276 objformat=`/usr/bin/objformat`
18279 freebsd[123]*) objformat=aout ;;
18280 *) objformat=elf ;;
18283 version_type=freebsd-$objformat
18284 case $version_type in
18286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18291 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18295 shlibpath_var=LD_LIBRARY_PATH
18298 shlibpath_overrides_runpath=yes
18300 freebsd3.[01]* | freebsdelf3.[01]*)
18301 shlibpath_overrides_runpath=yes
18302 hardcode_into_libs=yes
18304 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18305 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18306 shlibpath_overrides_runpath=no
18307 hardcode_into_libs=yes
18309 *) # from 4.6 on, and DragonFly
18310 shlibpath_overrides_runpath=yes
18311 hardcode_into_libs=yes
18320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18321 soname_spec='${libname}${release}${shared_ext}$major'
18322 shlibpath_var=LD_LIBRARY_PATH
18323 hardcode_into_libs=yes
18330 dynamic_linker="$host_os runtime_loader"
18331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18332 soname_spec='${libname}${release}${shared_ext}$major'
18333 shlibpath_var=LIBRARY_PATH
18334 shlibpath_overrides_runpath=yes
18335 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18336 hardcode_into_libs=yes
18339 hpux9* | hpux10* | hpux11*)
18340 # Give a soname corresponding to the major version so that dld.sl refuses to
18341 # link against other versions.
18348 hardcode_into_libs=yes
18349 dynamic_linker="$host_os dld.so"
18350 shlibpath_var=LD_LIBRARY_PATH
18351 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18353 soname_spec='${libname}${release}${shared_ext}$major'
18354 if test "X$HPUX_IA64_MODE" = X32; then
18355 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18357 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18359 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18363 hardcode_into_libs=yes
18364 dynamic_linker="$host_os dld.sl"
18365 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18366 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18368 soname_spec='${libname}${release}${shared_ext}$major'
18369 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18370 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18374 dynamic_linker="$host_os dld.sl"
18375 shlibpath_var=SHLIB_PATH
18376 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18378 soname_spec='${libname}${release}${shared_ext}$major'
18381 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18382 postinstall_cmds='chmod 555 $lib'
18383 # or fails outright, so override atomically:
18384 install_override_mode=555
18391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18392 soname_spec='${libname}${release}${shared_ext}$major'
18393 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18394 shlibpath_var=LD_LIBRARY_PATH
18395 shlibpath_overrides_runpath=no
18396 hardcode_into_libs=yes
18399 irix5* | irix6* | nonstopux*)
18401 nonstopux*) version_type=nonstopux ;;
18403 if test "$lt_cv_prog_gnu_ld" = yes; then
18411 soname_spec='${libname}${release}${shared_ext}$major'
18412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18414 irix5* | nonstopux*)
18415 libsuff= shlibsuff=
18418 case $LD in # libtool.m4 will add one of these switches to LD
18419 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18420 libsuff= shlibsuff= libmagic=32-bit;;
18421 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18422 libsuff=32 shlibsuff=N32 libmagic=N32;;
18423 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18424 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18425 *) libsuff= shlibsuff= libmagic=never-match;;
18429 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18430 shlibpath_overrides_runpath=no
18431 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18432 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18433 hardcode_into_libs=yes
18436 # No shared lib support for Linux oldld, aout, or coff.
18437 linux*oldld* | linux*aout* | linux*coff*)
18441 # This must be Linux ELF.
18442 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18447 soname_spec='${libname}${release}${shared_ext}$major'
18448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18449 shlibpath_var=LD_LIBRARY_PATH
18450 shlibpath_overrides_runpath=no
18452 # Some binutils ld are patched to set DT_RUNPATH
18453 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
18454 $as_echo_n "(cached) " >&6
18456 lt_cv_shlibpath_overrides_runpath=no
18457 save_LDFLAGS=$LDFLAGS
18458 save_libdir=$libdir
18459 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18460 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18462 /* end confdefs.h. */
18472 if ac_fn_cxx_try_link "$LINENO"; then :
18473 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18474 lt_cv_shlibpath_overrides_runpath=yes
18477 rm -f core conftest.err conftest.$ac_objext \
18478 conftest$ac_exeext conftest.$ac_ext
18479 LDFLAGS=$save_LDFLAGS
18480 libdir=$save_libdir
18484 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18486 # This implies no fast_install, which is unacceptable.
18487 # Some rework will be needed to allow for fast_install
18488 # before this can be enabled.
18489 hardcode_into_libs=yes
18491 # Add ABI-specific directories to the system library path.
18492 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18494 # Append ld.so.conf contents to the search path
18495 if test -f /etc/ld.so.conf; then
18496 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' ' '`
18497 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18501 # We used to test for /lib/ld.so.1 and disable shared libraries on
18502 # powerpc, because MkLinux only supported shared libraries with the
18503 # GNU dynamic linker. Since this was broken with cross compilers,
18504 # most powerpc-linux boxes support dynamic linking these days and
18505 # people can always --disable-shared, the test was removed, and we
18506 # assume the GNU/Linux dynamic linker is in use.
18507 dynamic_linker='GNU/Linux ld.so'
18514 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18516 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18517 dynamic_linker='NetBSD (a.out) ld.so'
18519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18520 soname_spec='${libname}${release}${shared_ext}$major'
18521 dynamic_linker='NetBSD ld.elf_so'
18523 shlibpath_var=LD_LIBRARY_PATH
18524 shlibpath_overrides_runpath=yes
18525 hardcode_into_libs=yes
18530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18531 shlibpath_var=LD_LIBRARY_PATH
18532 shlibpath_overrides_runpath=yes
18539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18540 soname_spec='${libname}${release}${shared_ext}$major'
18541 shlibpath_var=LD_LIBRARY_PATH
18542 shlibpath_overrides_runpath=no
18543 hardcode_into_libs=yes
18544 dynamic_linker='ldqnx.so'
18549 sys_lib_dlsearch_path_spec="/usr/lib"
18551 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18553 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18554 *) need_version=no ;;
18556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18557 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18558 shlibpath_var=LD_LIBRARY_PATH
18559 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18561 openbsd2.[89] | openbsd2.[89].*)
18562 shlibpath_overrides_runpath=no
18565 shlibpath_overrides_runpath=yes
18569 shlibpath_overrides_runpath=yes
18574 libname_spec='$name'
18577 library_names_spec='$libname${shared_ext} $libname.a'
18578 dynamic_linker='OS/2 ld.exe'
18579 shlibpath_var=LIBPATH
18582 osf3* | osf4* | osf5*)
18586 soname_spec='${libname}${release}${shared_ext}$major'
18587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18588 shlibpath_var=LD_LIBRARY_PATH
18589 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18590 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18602 soname_spec='${libname}${release}${shared_ext}$major'
18603 shlibpath_var=LD_LIBRARY_PATH
18604 shlibpath_overrides_runpath=yes
18605 hardcode_into_libs=yes
18606 # ldd complains unless libraries are executable
18607 postinstall_cmds='chmod +x $lib'
18612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18613 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18614 shlibpath_var=LD_LIBRARY_PATH
18615 shlibpath_overrides_runpath=yes
18616 if test "$with_gnu_ld" = yes; then
18624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18625 soname_spec='${libname}${release}${shared_ext}$major'
18626 shlibpath_var=LD_LIBRARY_PATH
18627 case $host_vendor in
18629 shlibpath_overrides_runpath=no
18631 runpath_var=LD_RUN_PATH
18639 shlibpath_overrides_runpath=no
18640 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18646 if test -d /usr/nec ;then
18648 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18649 soname_spec='$libname${shared_ext}.$major'
18650 shlibpath_var=LD_LIBRARY_PATH
18654 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18655 version_type=freebsd-elf
18658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18659 soname_spec='${libname}${release}${shared_ext}$major'
18660 shlibpath_var=LD_LIBRARY_PATH
18661 shlibpath_overrides_runpath=yes
18662 hardcode_into_libs=yes
18663 if test "$with_gnu_ld" = yes; then
18664 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18666 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18669 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18673 sys_lib_dlsearch_path_spec='/usr/lib'
18677 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18682 shlibpath_var=LD_LIBRARY_PATH
18683 shlibpath_overrides_runpath=no
18684 hardcode_into_libs=yes
18689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18690 soname_spec='${libname}${release}${shared_ext}$major'
18691 shlibpath_var=LD_LIBRARY_PATH
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18699 $as_echo "$dynamic_linker" >&6; }
18700 test "$dynamic_linker" = no && can_build_shared=no
18702 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18703 if test "$GCC" = yes; then
18704 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18707 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18708 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18710 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18711 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18752 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18753 hardcode_action_CXX=
18754 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18755 test -n "$runpath_var_CXX" ||
18756 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18758 # We can hardcode non-existent directories.
18759 if test "$hardcode_direct_CXX" != no &&
18760 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18761 # have to relink, otherwise we might link with an installed library
18762 # when we should be linking with a yet-to-be-installed one
18763 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18764 test "$hardcode_minus_L_CXX" != no; then
18765 # Linking always hardcodes the temporary library directory.
18766 hardcode_action_CXX=relink
18768 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18769 hardcode_action_CXX=immediate
18772 # We cannot hardcode anything, or else we can only hardcode existing
18774 hardcode_action_CXX=unsupported
18776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18777 $as_echo "$hardcode_action_CXX" >&6; }
18779 if test "$hardcode_action_CXX" = relink ||
18780 test "$inherit_rpath_CXX" = yes; then
18781 # Fast installation is not supported
18782 enable_fast_install=no
18783 elif test "$shlibpath_overrides_runpath" = yes ||
18784 test "$enable_shared" = no; then
18785 # Fast installation is not necessary
18786 enable_fast_install=needless
18795 fi # test -n "$compiler"
18801 with_gnu_ld=$lt_save_with_gnu_ld
18802 lt_cv_path_LDCXX=$lt_cv_path_LD
18803 lt_cv_path_LD=$lt_save_path_LD
18804 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18805 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18806 fi # test "$_lt_caught_CXX_error" != yes
18809 ac_cpp='$CPP $CPPFLAGS'
18810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18826 ac_config_commands="$ac_config_commands libtool"
18831 # Only expand once:
18837 # Configure libltdl
18845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
18846 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
18847 if test "${libltdl_cv_shlibext+set}" = set; then :
18848 $as_echo_n "(cached) " >&6
18852 eval libltdl_cv_shlibext=$shrext_cmds
18855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
18856 $as_echo "$libltdl_cv_shlibext" >&6; }
18857 if test -n "$libltdl_cv_shlibext"; then
18859 cat >>confdefs.h <<_ACEOF
18860 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
18866 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
18867 if test "${lt_cv_module_path_var+set}" = set; then :
18868 $as_echo_n "(cached) " >&6
18870 lt_cv_module_path_var="$shlibpath_var"
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
18873 $as_echo "$lt_cv_module_path_var" >&6; }
18874 if test -n "$lt_cv_module_path_var"; then
18876 cat >>confdefs.h <<_ACEOF
18877 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
18883 $as_echo_n "checking for the default library search path... " >&6; }
18884 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
18885 $as_echo_n "(cached) " >&6
18887 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
18890 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18891 if test -n "$lt_cv_sys_dlsearch_path"; then
18893 for dir in $lt_cv_sys_dlsearch_path; do
18894 if test -z "$sys_dlsearch_path"; then
18895 sys_dlsearch_path="$dir"
18897 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18901 cat >>confdefs.h <<_ACEOF
18902 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18912 ac_cpp='$CPP $CPPFLAGS'
18913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
18920 $as_echo_n "checking for library containing dlopen... " >&6; }
18921 if test "${ac_cv_search_dlopen+set}" = set; then :
18922 $as_echo_n "(cached) " >&6
18924 ac_func_search_save_LIBS=$LIBS
18925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18926 /* end confdefs.h. */
18928 /* Override any GCC internal prototype to avoid an error.
18929 Use char because int might match the return type of a GCC
18930 builtin and then its argument prototype would still apply. */
18943 for ac_lib in '' dl; do
18944 if test -z "$ac_lib"; then
18945 ac_res="none required"
18948 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18950 if ac_fn_c_try_link "$LINENO"; then :
18951 ac_cv_search_dlopen=$ac_res
18953 rm -f core conftest.err conftest.$ac_objext \
18955 if test "${ac_cv_search_dlopen+set}" = set; then :
18959 if test "${ac_cv_search_dlopen+set}" = set; then :
18962 ac_cv_search_dlopen=no
18964 rm conftest.$ac_ext
18965 LIBS=$ac_func_search_save_LIBS
18967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
18968 $as_echo "$ac_cv_search_dlopen" >&6; }
18969 ac_res=$ac_cv_search_dlopen
18970 if test "$ac_res" != no; then :
18971 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18973 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
18975 if test "$ac_cv_search_dlopen" != "none required" ; then
18976 LIBADD_DLOPEN="-ldl"
18978 libltdl_cv_lib_dl_dlopen="yes"
18979 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18982 /* end confdefs.h. */
18984 # include <dlfcn.h>
18995 if ac_fn_c_try_link "$LINENO"; then :
18997 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
18999 libltdl_cv_func_dlopen="yes"
19000 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19003 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19004 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
19005 $as_echo_n "(cached) " >&6
19007 ac_check_lib_save_LIBS=$LIBS
19008 LIBS="-lsvld $LIBS"
19009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19010 /* end confdefs.h. */
19012 /* Override any GCC internal prototype to avoid an error.
19013 Use char because int might match the return type of a GCC
19014 builtin and then its argument prototype would still apply. */
19027 if ac_fn_c_try_link "$LINENO"; then :
19028 ac_cv_lib_svld_dlopen=yes
19030 ac_cv_lib_svld_dlopen=no
19032 rm -f core conftest.err conftest.$ac_objext \
19033 conftest$ac_exeext conftest.$ac_ext
19034 LIBS=$ac_check_lib_save_LIBS
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19037 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19038 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
19040 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19042 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19043 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19047 rm -f core conftest.err conftest.$ac_objext \
19048 conftest$ac_exeext conftest.$ac_ext
19051 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19053 lt_save_LIBS="$LIBS"
19054 LIBS="$LIBS $LIBADD_DLOPEN"
19055 for ac_func in dlerror
19057 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19058 if test "x$ac_cv_func_dlerror" = x""yes; then :
19059 cat >>confdefs.h <<_ACEOF
19060 #define HAVE_DLERROR 1
19066 LIBS="$lt_save_LIBS"
19071 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19072 if test "x$ac_cv_func_shl_load" = x""yes; then :
19074 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19076 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19079 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19080 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
19081 $as_echo_n "(cached) " >&6
19083 ac_check_lib_save_LIBS=$LIBS
19085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19086 /* end confdefs.h. */
19088 /* Override any GCC internal prototype to avoid an error.
19089 Use char because int might match the return type of a GCC
19090 builtin and then its argument prototype would still apply. */
19098 return shl_load ();
19103 if ac_fn_c_try_link "$LINENO"; then :
19104 ac_cv_lib_dld_shl_load=yes
19106 ac_cv_lib_dld_shl_load=no
19108 rm -f core conftest.err conftest.$ac_objext \
19109 conftest$ac_exeext conftest.$ac_ext
19110 LIBS=$ac_check_lib_save_LIBS
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19113 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19114 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
19116 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19118 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19119 LIBADD_SHL_LOAD="-ldld"
19128 # We only want this for pre-Mac OS X 10.4.
19129 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19130 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
19132 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
19134 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19139 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19141 cygwin* | mingw* | os2* | pw32*)
19142 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19144 if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19150 cat >>confdefs.h <<_ACEOF
19151 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
19154 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19159 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19160 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
19161 $as_echo_n "(cached) " >&6
19163 ac_check_lib_save_LIBS=$LIBS
19165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19166 /* end confdefs.h. */
19168 /* Override any GCC internal prototype to avoid an error.
19169 Use char because int might match the return type of a GCC
19170 builtin and then its argument prototype would still apply. */
19178 return dld_link ();
19183 if ac_fn_c_try_link "$LINENO"; then :
19184 ac_cv_lib_dld_dld_link=yes
19186 ac_cv_lib_dld_dld_link=no
19188 rm -f core conftest.err conftest.$ac_objext \
19189 conftest$ac_exeext conftest.$ac_ext
19190 LIBS=$ac_check_lib_save_LIBS
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19193 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19194 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
19196 $as_echo "#define HAVE_DLD 1" >>confdefs.h
19198 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19205 if test -n "$LT_DLLOADERS"
19207 for lt_loader in $LT_DLLOADERS; do
19208 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19211 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
19216 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19220 ac_cpp='$CPP $CPPFLAGS'
19221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
19227 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
19228 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
19229 $as_echo_n "(cached) " >&6
19231 lt_cv_sys_symbol_underscore=no
19232 cat > conftest.$ac_ext <<_LT_EOF
19233 void nm_test_func(){}
19234 int main(){nm_test_func;return 0;}
19236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19237 (eval $ac_compile) 2>&5
19239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19240 test $ac_status = 0; }; then
19241 # Now try to grab the symbols.
19242 ac_nlist=conftest.nm
19243 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
19244 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19247 test $ac_status = 0; } && test -s "$ac_nlist"; then
19248 # See whether the symbols have a leading underscore.
19249 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19250 lt_cv_sys_symbol_underscore=yes
19252 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19255 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19259 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19262 echo "configure: failed program was:" >&5
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
19269 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19270 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19273 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19274 if test x"$libltdl_cv_func_dlopen" = xyes ||
19275 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
19277 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
19278 if test "${libltdl_cv_need_uscore+set}" = set; then :
19279 $as_echo_n "(cached) " >&6
19281 libltdl_cv_need_uscore=unknown
19283 LIBS="$LIBS $LIBADD_DLOPEN"
19284 if test "$cross_compiling" = yes; then :
19285 libltdl_cv_need_uscore=cross
19287 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19288 lt_status=$lt_dlunknown
19289 cat > conftest.$ac_ext <<_LT_EOF
19290 #line $LINENO "configure"
19291 #include "confdefs.h"
19300 # define LT_DLGLOBAL RTLD_GLOBAL
19303 # define LT_DLGLOBAL DL_GLOBAL
19305 # define LT_DLGLOBAL 0
19309 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19310 find out it does not work in some platform. */
19311 #ifndef LT_DLLAZY_OR_NOW
19313 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19316 # define LT_DLLAZY_OR_NOW DL_LAZY
19319 # define LT_DLLAZY_OR_NOW RTLD_NOW
19322 # define LT_DLLAZY_OR_NOW DL_NOW
19324 # define LT_DLLAZY_OR_NOW 0
19331 /* When -fvisbility=hidden is used, assume the code has been annotated
19332 correspondingly for the symbols needed. */
19333 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
19334 void fnord () __attribute__((visibility("default")));
19337 void fnord () { int i=42; }
19340 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19341 int status = $lt_dlunknown;
19345 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19348 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19349 else puts (dlerror ());
19351 /* dlclose (self); */
19359 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19360 (eval $ac_link) 2>&5
19362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19363 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19364 (./conftest; exit; ) >&5 2>/dev/null
19366 case x$lt_status in
19367 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19368 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19369 x$lt_dlunknown|x*) ;;
19372 # compilation failed
19381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
19382 $as_echo "$libltdl_cv_need_uscore" >&6; }
19386 if test x"$libltdl_cv_need_uscore" = xyes; then
19388 $as_echo "#define NEED_USCORE 1" >>confdefs.h
19392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
19393 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
19394 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
19395 $as_echo_n "(cached) " >&6
19397 # PORTME does your system automatically load deplibs for dlopen?
19398 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19399 # For now, we just catch OSes we know something about -- in the
19400 # future, we'll try test this programmatically.
19401 lt_cv_sys_dlopen_deplibs=unknown
19403 aix3*|aix4.1.*|aix4.2.*)
19404 # Unknown whether this is true for these versions of AIX, but
19405 # we want this `case' here to explicitly catch those versions.
19406 lt_cv_sys_dlopen_deplibs=unknown
19409 lt_cv_sys_dlopen_deplibs=yes
19414 lt_cv_sys_dlopen_deplibs=no
19419 # Assuming the user has installed a libdl from somewhere, this is true
19420 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19421 lt_cv_sys_dlopen_deplibs=yes
19423 freebsd* | dragonfly*)
19424 lt_cv_sys_dlopen_deplibs=yes
19426 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
19427 # GNU and its variants, using gnu ld.so (Glibc)
19428 lt_cv_sys_dlopen_deplibs=yes
19431 lt_cv_sys_dlopen_deplibs=yes
19434 lt_cv_sys_dlopen_deplibs=yes
19436 irix[12345]*|irix6.[01]*)
19437 # Catch all versions of IRIX before 6.2, and indicate that we don't
19438 # know how it worked for any of those versions.
19439 lt_cv_sys_dlopen_deplibs=unknown
19442 # The case above catches anything before 6.2, and it's known that
19443 # at 6.2 and later dlopen does load deplibs.
19444 lt_cv_sys_dlopen_deplibs=yes
19447 lt_cv_sys_dlopen_deplibs=yes
19450 lt_cv_sys_dlopen_deplibs=yes
19453 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19454 # it did *not* use an RPATH in a shared library to find objects the
19455 # library depends on, so we explicitly say `no'.
19456 lt_cv_sys_dlopen_deplibs=no
19458 osf5.0|osf5.0a|osf5.1)
19459 # dlopen *does* load deplibs and with the right loader patch applied
19460 # it even uses RPATH in a shared library to search for shared objects
19461 # that the library depends on, but there's no easy way to know if that
19462 # patch is installed. Since this is the case, all we can really
19463 # say is unknown -- it depends on the patch being installed. If
19464 # it is, this changes to `yes'. Without it, it would be `no'.
19465 lt_cv_sys_dlopen_deplibs=unknown
19468 # the two cases above should catch all versions of osf <= 5.1. Read
19469 # the comments above for what we know about them.
19470 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19471 # is used to find them so we can finally say `yes'.
19472 lt_cv_sys_dlopen_deplibs=yes
19475 lt_cv_sys_dlopen_deplibs=yes
19478 lt_cv_sys_dlopen_deplibs=yes
19480 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19481 libltdl_cv_sys_dlopen_deplibs=yes
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
19487 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19488 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19490 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
19496 for ac_header in argz.h
19498 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19500 if test "x$ac_cv_header_argz_h" = x""yes; then :
19501 cat >>confdefs.h <<_ACEOF
19502 #define HAVE_ARGZ_H 1
19510 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
19514 if test "x$ac_cv_type_error_t" = x""yes; then :
19516 cat >>confdefs.h <<_ACEOF
19517 #define HAVE_ERROR_T 1
19523 $as_echo "#define error_t int" >>confdefs.h
19526 $as_echo "#define __error_t_defined 1" >>confdefs.h
19532 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19533 argz_next argz_stringify
19535 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19536 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19537 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19538 cat >>confdefs.h <<_ACEOF
19539 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19545 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19551 if test -z "$ARGZ_H"; then :
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
19553 $as_echo_n "checking if argz actually works... " >&6; }
19554 if test "${lt_cv_sys_argz_works+set}" = set; then :
19555 $as_echo_n "(cached) " >&6
19557 case $host_os in #(
19559 lt_cv_sys_argz_works=no
19560 if test "$cross_compiling" != no; then
19561 lt_cv_sys_argz_works="guessing no"
19563 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19566 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19571 if test "$lt_os_major" -gt 1 \
19572 || { test "$lt_os_major" -eq 1 \
19573 && { test "$lt_os_minor" -gt 5 \
19574 || { test "$lt_os_minor" -eq 5 \
19575 && test "$lt_os_micro" -gt 24; }; }; }; then
19576 lt_cv_sys_argz_works=yes
19580 *) lt_cv_sys_argz_works=yes ;;
19583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
19584 $as_echo "$lt_cv_sys_argz_works" >&6; }
19585 if test $lt_cv_sys_argz_works = yes; then :
19587 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
19593 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
19601 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
19602 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
19603 $as_echo_n "(cached) " >&6
19605 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19606 libltdl_cv_preloaded_symbols=yes
19608 libltdl_cv_preloaded_symbols=no
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
19613 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19614 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19616 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
19632 # Check whether --with-included_ltdl was given.
19633 if test "${with_included_ltdl+set}" = set; then :
19634 withval=$with_included_ltdl;
19638 if test "x$with_included_ltdl" != xyes; then
19639 # We are not being forced to use the included libltdl sources, so
19640 # decide whether there is a useful installed version we can use.
19641 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
19644 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19645 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
19648 if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
19650 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
19651 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
19652 $as_echo_n "(cached) " >&6
19654 ac_check_lib_save_LIBS=$LIBS
19655 LIBS="-lltdl $LIBS"
19656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19657 /* end confdefs.h. */
19659 /* Override any GCC internal prototype to avoid an error.
19660 Use char because int might match the return type of a GCC
19661 builtin and then its argument prototype would still apply. */
19665 char lt_dladvise_preload ();
19669 return lt_dladvise_preload ();
19674 if ac_fn_c_try_link "$LINENO"; then :
19675 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19677 ac_cv_lib_ltdl_lt_dladvise_preload=no
19679 rm -f core conftest.err conftest.$ac_objext \
19680 conftest$ac_exeext conftest.$ac_ext
19681 LIBS=$ac_check_lib_save_LIBS
19683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
19684 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
19685 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
19686 with_included_ltdl=no
19688 with_included_ltdl=yes
19692 with_included_ltdl=yes
19696 with_included_ltdl=yes
19705 # Check whether --with-ltdl_include was given.
19706 if test "${with_ltdl_include+set}" = set; then :
19707 withval=$with_ltdl_include;
19711 if test -n "$with_ltdl_include"; then
19712 if test -f "$with_ltdl_include/ltdl.h"; then :
19714 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
19717 with_ltdl_include=no
19721 # Check whether --with-ltdl_lib was given.
19722 if test "${with_ltdl_lib+set}" = set; then :
19723 withval=$with_ltdl_lib;
19727 if test -n "$with_ltdl_lib"; then
19728 if test -f "$with_ltdl_lib/libltdl.la"; then :
19730 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
19736 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19738 case $enable_ltdl_convenience in
19739 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
19740 "") enable_ltdl_convenience=yes
19741 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19743 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19745 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19751 # For backwards non-gettext consistent compatibility...
19752 INCLTDL="$LTDLINCL"
19757 # If the included ltdl is not to be used, then use the
19758 # preinstalled libltdl we found.
19760 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
19767 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
19769 *) with_included_ltdl=no
19770 LIBLTDL="-L$with_ltdl_lib -lltdl"
19772 LTDLINCL="-I$with_ltdl_include"
19775 INCLTDL="$LTDLINCL"
19777 # Report our decision...
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
19779 $as_echo_n "checking where to find libltdl headers... " >&6; }
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
19781 $as_echo "$LTDLINCL" >&6; }
19782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
19783 $as_echo_n "checking where to find libltdl library... " >&6; }
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
19785 $as_echo "$LIBLTDL" >&6; }
19789 # Check whether --enable-ltdl-install was given.
19790 if test "${enable_ltdl_install+set}" = set; then :
19791 enableval=$enable_ltdl_install;
19795 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19797 *) enable_ltdl_convenience=yes ;;
19800 if test x"${enable_ltdl_install-no}" != xno; then
19802 INSTALL_LTDL_FALSE='#'
19804 INSTALL_LTDL_TRUE='#'
19805 INSTALL_LTDL_FALSE=
19808 if test x"${enable_ltdl_convenience-no}" != xno; then
19809 CONVENIENCE_LTDL_TRUE=
19810 CONVENIENCE_LTDL_FALSE='#'
19812 CONVENIENCE_LTDL_TRUE='#'
19813 CONVENIENCE_LTDL_FALSE=
19821 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
19822 # the user used. This is so that ltdl.h can pick up the parent projects
19823 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
19824 # definitions required by ltdl.c.
19825 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
19829 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
19831 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19832 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19834 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19835 cat >>confdefs.h <<_ACEOF
19836 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19844 for ac_func in closedir opendir readdir
19846 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19847 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19848 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19849 cat >>confdefs.h <<_ACEOF
19850 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19856 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
19861 for ac_func in strlcat strlcpy
19863 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19864 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19865 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19866 cat >>confdefs.h <<_ACEOF
19867 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19873 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
19880 cat >>confdefs.h <<_ACEOF
19881 #define LT_LIBEXT "$libext"
19886 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
19895 # Only expand once:
19899 # Check to see if building shared libraries
19900 libtool_build_shared_libs='no'
19901 if test "$enable_shared" = 'yes'; then
19902 libtool_build_shared_libs='yes'
19905 # Check to see if building static libraries
19906 libtool_build_static_libs='no'
19907 if test "$enable_static" = 'yes'; then
19908 libtool_build_static_libs='yes'
19911 if test "${libtool_build_shared_libs}" = 'yes'; then
19912 WITH_SHARED_LIBS_TRUE=
19913 WITH_SHARED_LIBS_FALSE='#'
19915 WITH_SHARED_LIBS_TRUE='#'
19916 WITH_SHARED_LIBS_FALSE=
19920 # Enable support for building loadable modules
19923 # Check whether --with-modules was given.
19924 if test "${with_modules+set}" = set; then :
19925 withval=$with_modules; with_modules=$withval
19931 # Only allow building loadable modules if we are building shared libraries
19932 if test "$with_modules" != 'no' ; then
19933 if test "$libtool_build_shared_libs" = 'no'; then
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
19935 $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
19939 if test "$with_modules" != 'no'; then
19941 $as_echo "#define BUILD_MODULES 1" >>confdefs.h
19944 if test "$with_modules" != 'no'; then
19946 WITH_MODULES_FALSE='#'
19948 WITH_MODULES_TRUE='#'
19949 WITH_MODULES_FALSE=
19953 # Enable building/use of libltdl if we are building shared libraries regardless
19954 # of whether modules are built or not.
19956 if test "$libtool_build_shared_libs" != 'no'; then
19960 if test "$with_ltdl" != 'no'; then
19962 WITH_LTDL_FALSE='#'
19968 if test "$with_ltdl" != 'no'; then
19970 $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
19974 if test X"$enable_shared" = Xyes; then
19975 DLLDFLAGS=-export-dynamic
19980 # Enable build using delegate libraries built in subdirectories rather than installed
19981 # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
19982 # Check whether --enable-delegate-build was given.
19983 if test "${enable_delegate_build+set}" = set; then :
19984 enableval=$enable_delegate_build; enable_delegate_build=$enableval
19986 enable_delegate_build='no'
19990 # Check whether --enable-deprecated was given.
19991 if test "${enable_deprecated+set}" = set; then :
19992 enableval=$enable_deprecated; enable_deprecated=$enableval
19994 enable_deprecated='no'
19998 if test "$enable_deprecated" = 'yes'; then
20000 $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
20003 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20006 # Build a version of ImageMagick which operates uninstalled.
20007 # Used to build distributions located via MAGICK_HOME / executable path
20008 # Check whether --enable-installed was given.
20009 if test "${enable_installed+set}" = set; then :
20010 enableval=$enable_installed; enable_installed=$enableval
20012 enable_installed='yes'
20016 if test "$enable_installed" = 'yes'; then
20018 $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
20021 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20024 # Permit enciphering and deciphering image pixels.
20025 # Check whether --enable-cipher was given.
20026 if test "${enable_cipher+set}" = set; then :
20027 enableval=$enable_cipher; enable_cipher=$enableval
20029 enable_cipher='yes'
20033 if test "$enable_cipher" = 'yes'; then
20035 $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
20039 # Build an embeddable version of ImageMagick.
20040 # Check whether --enable-embeddable was given.
20041 if test "${enable_embeddable+set}" = set; then :
20042 enableval=$enable_embeddable; enable_embeddable=$enableval
20044 enable_embeddable='no'
20048 if test "$enable_embeddable" = 'yes'; then
20050 $as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
20054 # Build a high dynamic range version of ImageMagick.
20055 # Check whether --enable-hdri was given.
20056 if test "${enable_hdri+set}" = set; then :
20057 enableval=$enable_hdri; enable_hdri=$enableval
20064 if test "$enable_hdri" = 'yes'; then
20067 $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
20069 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
20072 # Build a version of ImageMagick with assert statements.
20073 # Check whether --enable-assert was given.
20074 if test "${enable_assert+set}" = set; then :
20075 enableval=$enable_assert; enable_assert=$enableval
20077 enable_assert='yes'
20081 if test "$enable_assert" = 'no'; then
20083 $as_echo "#define NDEBUG 1" >>confdefs.h
20087 # Add configure option --enable-maintainer-mode which enables dependency
20088 # checking and generation useful to package maintainers. This is made an
20089 # option to avoid confusing end users.
20091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20092 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20093 # Check whether --enable-maintainer-mode was given.
20094 if test "${enable_maintainer_mode+set}" = set; then :
20095 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20097 USE_MAINTAINER_MODE=no
20100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20101 $as_echo "$USE_MAINTAINER_MODE" >&6; }
20102 if test $USE_MAINTAINER_MODE = yes; then
20103 MAINTAINER_MODE_TRUE=
20104 MAINTAINER_MODE_FALSE='#'
20106 MAINTAINER_MODE_TRUE='#'
20107 MAINTAINER_MODE_FALSE=
20110 MAINT=$MAINTAINER_MODE_TRUE
20115 # Enable ccmalloc memory debugging support
20116 # Check whether --enable-ccmalloc was given.
20117 if test "${enable_ccmalloc+set}" = set; then :
20118 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20120 enable_ccmalloc='no'
20124 # Enable Electric Fence memory debugging support
20125 # Check whether --enable-efence was given.
20126 if test "${enable_efence+set}" = set; then :
20127 enableval=$enable_efence; enable_efence=$enableval
20133 # Enable prof-based profiling support
20134 # Check whether --enable-prof was given.
20135 if test "${enable_prof+set}" = set; then :
20136 enableval=$enable_prof; enable_prof=$enableval
20142 # Enable gprof-based profiling support
20143 # Check whether --enable-gprof was given.
20144 if test "${enable_gprof+set}" = set; then :
20145 enableval=$enable_gprof; enable_gprof=$enableval
20151 # Enable gcov-based profiling support
20152 # Check whether --enable-gcov was given.
20153 if test "${enable_gcov+set}" = set; then :
20154 enableval=$enable_gcov; enable_gcov=$enableval
20160 enable_profiling='no'
20161 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20162 enable_profiling='yes'
20163 if test "$libtool_build_shared_libs" = 'yes'; then
20164 echo "Warning: Can not profile code using shared libraries"
20168 # Magick API method prefix
20170 # Check whether --with-method-prefix was given.
20171 if test "${with_method_prefix+set}" = set; then :
20172 withval=$with_method_prefix; with_method_prefix=$enableval
20174 with_method_prefix=''
20178 if test "$with_method_prefix" != ''; then
20180 cat >>confdefs.h <<_ACEOF
20181 #define NAMESPACE_PREFIX $with_method_prefix
20186 # Number of bits in a Quantum
20188 # Check whether --with-quantum-depth was given.
20189 if test "${with_quantum_depth+set}" = set; then :
20190 withval=$with_quantum_depth; with_quantum_depth=$withval
20192 with_quantum_depth=16
20196 if test "$with_quantum_depth" != '8'; then
20197 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20200 case "${with_quantum_depth}" in
20205 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
20207 QUANTUM_DEPTH="$with_quantum_depth"
20209 cat >>confdefs.h <<_ACEOF
20210 #define QUANTUM_DEPTH $QUANTUM_DEPTH
20214 # Set pixel cache threshold
20216 # Check whether --with-cache was given.
20217 if test "${with_cache+set}" = set; then :
20218 withval=$with_cache; with_cache=$withval
20224 if test "$with_cache" != ''; then
20226 cat >>confdefs.h <<_ACEOF
20227 #define PixelCacheThreshold $with_cache
20230 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20233 # Disable/Enable support for full delegate paths
20235 # Check whether --with-frozenpaths was given.
20236 if test "${with_frozenpaths+set}" = set; then :
20237 withval=$with_frozenpaths; with_frozenpaths=$withval
20239 with_frozenpaths='no'
20243 # Enable build/install of Magick++
20245 # Check whether --with-magick-plus-plus was given.
20246 if test "${with_magick_plus_plus+set}" = set; then :
20247 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20249 with_magick_plus_plus='yes'
20253 # Disable build/install of PerlMagick.
20255 # Check whether --with-perl was given.
20256 if test "${with_perl+set}" = set; then :
20257 withval=$with_perl; with_perl=$withval
20263 # Options to pass when configuring PerlMagick
20265 # Check whether --with-perl-options was given.
20266 if test "${with_perl_options+set}" = set; then :
20267 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
20272 # Enable umem, object-caching memory allocation library.
20274 # Check whether --with-umem was given.
20275 if test "${with_umem+set}" = set; then :
20276 withval=$with_umem; with_umem=$withval
20281 if test "$with_umem" != 'yes' ; then
20282 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20286 # Specify path to shared libstdc++ if not in normal location
20289 # Check whether --with-libstdc was given.
20290 if test "${with_libstdc+set}" = set; then :
20291 withval=$with_libstdc; with_libstdc=$withval
20297 if test "$with_libstdc" != ''; then
20298 if test -d "$with_libstdc"; then
20299 LIBSTDCLDFLAGS="-L$with_libstdc"
20304 # Does gcc required -traditional?
20305 if test $ac_cv_c_compiler_gnu = yes; then
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
20307 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
20308 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
20309 $as_echo_n "(cached) " >&6
20311 ac_pattern="Autoconf.*'x'"
20312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20313 /* end confdefs.h. */
20317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20318 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20319 ac_cv_prog_gcc_traditional=yes
20321 ac_cv_prog_gcc_traditional=no
20326 if test $ac_cv_prog_gcc_traditional = no; then
20327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20328 /* end confdefs.h. */
20329 #include <termio.h>
20332 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20333 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20334 ac_cv_prog_gcc_traditional=yes
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
20341 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20342 if test $ac_cv_prog_gcc_traditional = yes; then
20343 CC="$CC -traditional"
20350 # Set defines required to build DLLs and modules using MinGW
20353 # These options are set for multi-thread DLL module build
20354 # libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20356 # executable/Magick++: _DLL _MAGICKMOD_
20357 MODULE_EXTRA_CPPFLAGS=''
20358 LIBRARY_EXTRA_CPPFLAGS=''
20359 if test "${native_win32_build}" = 'yes'; then
20360 if test "${libtool_build_shared_libs}" = 'yes'; then
20361 CPPFLAGS="$CPPFLAGS -D_DLL"
20362 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20363 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20364 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20365 if test "$with_modules" = 'yes'; then
20366 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20368 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20371 CPPFLAGS="$CPPFLAGS -D_LIB"
20372 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20373 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20375 if test "$with_threads" = 'yes'; then
20376 CPPFLAGS="$CPPFLAGS -D_MT"
20377 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20378 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20384 # Check standard headers
20385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20386 $as_echo_n "checking for ANSI C header files... " >&6; }
20387 if test "${ac_cv_header_stdc+set}" = set; then :
20388 $as_echo_n "(cached) " >&6
20390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20391 /* end confdefs.h. */
20392 #include <stdlib.h>
20393 #include <stdarg.h>
20394 #include <string.h>
20405 if ac_fn_c_try_compile "$LINENO"; then :
20406 ac_cv_header_stdc=yes
20408 ac_cv_header_stdc=no
20410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20412 if test $ac_cv_header_stdc = yes; then
20413 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20415 /* end confdefs.h. */
20416 #include <string.h>
20419 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20420 $EGREP "memchr" >/dev/null 2>&1; then :
20423 ac_cv_header_stdc=no
20429 if test $ac_cv_header_stdc = yes; then
20430 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20432 /* end confdefs.h. */
20433 #include <stdlib.h>
20436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20437 $EGREP "free" >/dev/null 2>&1; then :
20440 ac_cv_header_stdc=no
20446 if test $ac_cv_header_stdc = yes; then
20447 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20448 if test "$cross_compiling" = yes; then :
20451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20452 /* end confdefs.h. */
20454 #include <stdlib.h>
20455 #if ((' ' & 0x0FF) == 0x020)
20456 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20457 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20459 # define ISLOWER(c) \
20460 (('a' <= (c) && (c) <= 'i') \
20461 || ('j' <= (c) && (c) <= 'r') \
20462 || ('s' <= (c) && (c) <= 'z'))
20463 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20466 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20471 for (i = 0; i < 256; i++)
20472 if (XOR (islower (i), ISLOWER (i))
20473 || toupper (i) != TOUPPER (i))
20478 if ac_fn_c_try_run "$LINENO"; then :
20481 ac_cv_header_stdc=no
20483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20484 conftest.$ac_objext conftest.beam conftest.$ac_ext
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20490 $as_echo "$ac_cv_header_stdc" >&6; }
20491 if test $ac_cv_header_stdc = yes; then
20493 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20497 if ! test x"$ac_cv_header_stdc" = x"yes"; then
20498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
20499 header files. Compilation cannot proceed. Please install the ANSI C
20500 headers and rerun this script." >&5
20501 $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20502 header files. Compilation cannot proceed. Please install the ANSI C
20503 headers and rerun this script." >&2;};
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20507 $as_echo_n "checking whether to enable assertions... " >&6; }
20508 # Check whether --enable-assert was given.
20509 if test "${enable_assert+set}" = set; then :
20510 enableval=$enable_assert; ac_enable_assert=$enableval
20511 if test "x$enableval" = xno; then :
20513 $as_echo "#define NDEBUG 1" >>confdefs.h
20515 elif test "x$enableval" != xyes; then :
20516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20517 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20518 ac_enable_assert=yes
20521 ac_enable_assert=yes
20524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20525 $as_echo "$ac_enable_assert" >&6; }
20527 ac_header_dirent=no
20528 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20529 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20531 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20532 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
20533 $as_echo_n "(cached) " >&6
20535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20536 /* end confdefs.h. */
20537 #include <sys/types.h>
20549 if ac_fn_c_try_compile "$LINENO"; then :
20550 eval "$as_ac_Header=yes"
20552 eval "$as_ac_Header=no"
20554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20556 eval ac_res=\$$as_ac_Header
20557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20558 $as_echo "$ac_res" >&6; }
20559 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20560 cat >>confdefs.h <<_ACEOF
20561 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20564 ac_header_dirent=$ac_hdr; break
20568 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20569 if test $ac_header_dirent = dirent.h; then
20570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20571 $as_echo_n "checking for library containing opendir... " >&6; }
20572 if test "${ac_cv_search_opendir+set}" = set; then :
20573 $as_echo_n "(cached) " >&6
20575 ac_func_search_save_LIBS=$LIBS
20576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20577 /* end confdefs.h. */
20579 /* Override any GCC internal prototype to avoid an error.
20580 Use char because int might match the return type of a GCC
20581 builtin and then its argument prototype would still apply. */
20594 for ac_lib in '' dir; do
20595 if test -z "$ac_lib"; then
20596 ac_res="none required"
20599 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20601 if ac_fn_c_try_link "$LINENO"; then :
20602 ac_cv_search_opendir=$ac_res
20604 rm -f core conftest.err conftest.$ac_objext \
20606 if test "${ac_cv_search_opendir+set}" = set; then :
20610 if test "${ac_cv_search_opendir+set}" = set; then :
20613 ac_cv_search_opendir=no
20615 rm conftest.$ac_ext
20616 LIBS=$ac_func_search_save_LIBS
20618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20619 $as_echo "$ac_cv_search_opendir" >&6; }
20620 ac_res=$ac_cv_search_opendir
20621 if test "$ac_res" != no; then :
20622 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20628 $as_echo_n "checking for library containing opendir... " >&6; }
20629 if test "${ac_cv_search_opendir+set}" = set; then :
20630 $as_echo_n "(cached) " >&6
20632 ac_func_search_save_LIBS=$LIBS
20633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20634 /* end confdefs.h. */
20636 /* Override any GCC internal prototype to avoid an error.
20637 Use char because int might match the return type of a GCC
20638 builtin and then its argument prototype would still apply. */
20651 for ac_lib in '' x; do
20652 if test -z "$ac_lib"; then
20653 ac_res="none required"
20656 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20658 if ac_fn_c_try_link "$LINENO"; then :
20659 ac_cv_search_opendir=$ac_res
20661 rm -f core conftest.err conftest.$ac_objext \
20663 if test "${ac_cv_search_opendir+set}" = set; then :
20667 if test "${ac_cv_search_opendir+set}" = set; then :
20670 ac_cv_search_opendir=no
20672 rm conftest.$ac_ext
20673 LIBS=$ac_func_search_save_LIBS
20675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20676 $as_echo "$ac_cv_search_opendir" >&6; }
20677 ac_res=$ac_cv_search_opendir
20678 if test "$ac_res" != no; then :
20679 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20686 # Check additional headers
20687 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
20689 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20690 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20691 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20692 cat >>confdefs.h <<_ACEOF
20693 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20703 # Checks for typedefs, structures, and compiler characteristics.
20707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20708 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20709 if test "${ac_cv_header_stdbool_h+set}" = set; then :
20710 $as_echo_n "(cached) " >&6
20712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20713 /* end confdefs.h. */
20715 #include <stdbool.h>
20717 "error: bool is not defined"
20720 "error: false is not defined"
20723 "error: false is not 0"
20726 "error: true is not defined"
20729 "error: true is not 1"
20731 #ifndef __bool_true_false_are_defined
20732 "error: __bool_true_false_are_defined is not defined"
20735 struct s { _Bool s: 1; _Bool t; } s;
20737 char a[true == 1 ? 1 : -1];
20738 char b[false == 0 ? 1 : -1];
20739 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20740 char d[(bool) 0.5 == true ? 1 : -1];
20742 char f[(_Bool) 0.0 == false ? 1 : -1];
20744 char h[sizeof (_Bool)];
20745 char i[sizeof s.t];
20746 enum { j = false, k = true, l = false * true, m = true * 256 };
20747 /* The following fails for
20748 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20750 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20751 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20752 # if defined __xlc__ || defined __GNUC__
20753 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20754 reported by James Lemley on 2005-10-05; see
20755 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20756 This test is not quite right, since xlc is allowed to
20757 reject this program, as the initializer for xlcbug is
20758 not one of the forms that C requires support for.
20759 However, doing the test right would require a runtime
20760 test, and that would make cross-compilation harder.
20761 Let us hope that IBM fixes the xlc bug, and also adds
20762 support for this kind of constant expression. In the
20763 meantime, this test will reject xlc, which is OK, since
20764 our stdbool.h substitute should suffice. We also test
20765 this with GCC, where it should work, to detect more
20766 quickly whether someone messes up the test in the
20768 char digs[] = "0123456789";
20769 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20771 /* Catch a bug in an HP-UX C compiler. See
20772 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20773 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20784 /* Refer to every declared value, to avoid compiler optimizations. */
20785 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20786 + !m + !n + !o + !p + !q + !pq);
20792 if ac_fn_c_try_compile "$LINENO"; then :
20793 ac_cv_header_stdbool_h=yes
20795 ac_cv_header_stdbool_h=no
20797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
20800 $as_echo "$ac_cv_header_stdbool_h" >&6; }
20801 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
20802 if test "x$ac_cv_type__Bool" = x""yes; then :
20804 cat >>confdefs.h <<_ACEOF
20805 #define HAVE__BOOL 1
20811 if test $ac_cv_header_stdbool_h = yes; then
20813 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
20817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
20818 $as_echo_n "checking for working volatile... " >&6; }
20819 if test "${ac_cv_c_volatile+set}" = set; then :
20820 $as_echo_n "(cached) " >&6
20822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20823 /* end confdefs.h. */
20830 int * volatile y = (int *) 0;
20836 if ac_fn_c_try_compile "$LINENO"; then :
20837 ac_cv_c_volatile=yes
20839 ac_cv_c_volatile=no
20841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
20844 $as_echo "$ac_cv_c_volatile" >&6; }
20845 if test $ac_cv_c_volatile = no; then
20847 $as_echo "#define volatile /**/" >>confdefs.h
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
20852 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
20853 if test "${ac_cv_c_stringize+set}" = set; then :
20854 $as_echo_n "(cached) " >&6
20856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20857 /* end confdefs.h. */
20860 char *s = x(teststring);
20862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20863 $EGREP "#teststring" >/dev/null 2>&1; then :
20864 ac_cv_c_stringize=no
20866 ac_cv_c_stringize=yes
20871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
20872 $as_echo "$ac_cv_c_stringize" >&6; }
20873 if test $ac_cv_c_stringize = yes; then
20875 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
20880 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
20881 if test "${ac_cv_header_stat_broken+set}" = set; then :
20882 $as_echo_n "(cached) " >&6
20884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20885 /* end confdefs.h. */
20886 #include <sys/types.h>
20887 #include <sys/stat.h>
20889 #if defined S_ISBLK && defined S_IFDIR
20890 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
20893 #if defined S_ISBLK && defined S_IFCHR
20894 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
20897 #if defined S_ISLNK && defined S_IFREG
20898 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
20901 #if defined S_ISSOCK && defined S_IFREG
20902 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
20906 if ac_fn_c_try_compile "$LINENO"; then :
20907 ac_cv_header_stat_broken=no
20909 ac_cv_header_stat_broken=yes
20911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
20914 $as_echo "$ac_cv_header_stat_broken" >&6; }
20915 if test $ac_cv_header_stat_broken = yes; then
20917 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20922 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20923 if test "${ac_cv_header_time+set}" = set; then :
20924 $as_echo_n "(cached) " >&6
20926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20927 /* end confdefs.h. */
20928 #include <sys/types.h>
20929 #include <sys/time.h>
20935 if ((struct tm *) 0)
20941 if ac_fn_c_try_compile "$LINENO"; then :
20942 ac_cv_header_time=yes
20944 ac_cv_header_time=no
20946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20949 $as_echo "$ac_cv_header_time" >&6; }
20950 if test $ac_cv_header_time = yes; then
20952 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
20957 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
20958 if test "${ac_cv_struct_tm+set}" = set; then :
20959 $as_echo_n "(cached) " >&6
20961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20962 /* end confdefs.h. */
20963 #include <sys/types.h>
20970 int *p = &tm.tm_sec;
20976 if ac_fn_c_try_compile "$LINENO"; then :
20977 ac_cv_struct_tm=time.h
20979 ac_cv_struct_tm=sys/time.h
20981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
20984 $as_echo "$ac_cv_struct_tm" >&6; }
20985 if test $ac_cv_struct_tm = sys/time.h; then
20987 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
20991 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
20992 #include <$ac_cv_struct_tm>
20995 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
20997 cat >>confdefs.h <<_ACEOF
20998 #define HAVE_STRUCT_TM_TM_ZONE 1
21004 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21006 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21009 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21011 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21017 cat >>confdefs.h <<_ACEOF
21018 #define HAVE_DECL_TZNAME $ac_have_decl
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21022 $as_echo_n "checking for tzname... " >&6; }
21023 if test "${ac_cv_var_tzname+set}" = set; then :
21024 $as_echo_n "(cached) " >&6
21026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21027 /* end confdefs.h. */
21029 #if !HAVE_DECL_TZNAME
21030 extern char *tzname[];
21036 return tzname[0][0];
21041 if ac_fn_c_try_link "$LINENO"; then :
21042 ac_cv_var_tzname=yes
21044 ac_cv_var_tzname=no
21046 rm -f core conftest.err conftest.$ac_objext \
21047 conftest$ac_exeext conftest.$ac_ext
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21050 $as_echo "$ac_cv_var_tzname" >&6; }
21051 if test $ac_cv_var_tzname = yes; then
21053 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
21059 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
21060 if test "${ac_cv_sys_interpreter+set}" = set; then :
21061 $as_echo_n "(cached) " >&6
21067 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21068 if test $? -ne 69; then
21069 ac_cv_sys_interpreter=yes
21071 ac_cv_sys_interpreter=no
21075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
21076 $as_echo "$ac_cv_sys_interpreter" >&6; }
21077 interpval=$ac_cv_sys_interpreter
21080 # If the C compiler supports the keyword inline, do nothing. Otherwise
21081 # define inline to __inline__ or __inline if it accepts one of those,
21082 # otherwise define inline to be empty.
21083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
21084 $as_echo_n "checking for inline... " >&6; }
21085 if test "${ac_cv_c_inline+set}" = set; then :
21086 $as_echo_n "(cached) " >&6
21089 for ac_kw in inline __inline__ __inline; do
21090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21091 /* end confdefs.h. */
21092 #ifndef __cplusplus
21094 static $ac_kw foo_t static_foo () {return 0; }
21095 $ac_kw foo_t foo () {return 0; }
21099 if ac_fn_c_try_compile "$LINENO"; then :
21100 ac_cv_c_inline=$ac_kw
21102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21103 test "$ac_cv_c_inline" != no && break
21107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
21108 $as_echo "$ac_cv_c_inline" >&6; }
21110 case $ac_cv_c_inline in
21113 case $ac_cv_c_inline in
21115 *) ac_val=$ac_cv_c_inline;;
21117 cat >>confdefs.h <<_ACEOF
21118 #ifndef __cplusplus
21119 #define inline $ac_val
21126 # If the C compiler supports the keyword restrict, do nothing. Otherwise
21127 # define restrict to __restrict__ or __restrict if it accepts one of those,
21128 # otherwise define restrict to be empty.
21129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
21130 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
21131 if test "${ac_cv_c_restrict+set}" = set; then :
21132 $as_echo_n "(cached) " >&6
21134 ac_cv_c_restrict=no
21135 # The order here caters to the fact that C++ does not require restrict.
21136 for ac_kw in __restrict __restrict__ _Restrict restrict; do
21137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21138 /* end confdefs.h. */
21139 typedef int * int_ptr;
21140 int foo (int_ptr $ac_kw ip) {
21147 int * $ac_kw t = s;
21154 if ac_fn_c_try_compile "$LINENO"; then :
21155 ac_cv_c_restrict=$ac_kw
21157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21158 test "$ac_cv_c_restrict" != no && break
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
21163 $as_echo "$ac_cv_c_restrict" >&6; }
21165 case $ac_cv_c_restrict in
21167 no) $as_echo "#define restrict /**/" >>confdefs.h
21169 *) cat >>confdefs.h <<_ACEOF
21170 #define restrict $ac_cv_c_restrict
21176 # If words are stored with the most significant byte first (like
21177 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
21178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
21179 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
21180 if test "${ac_cv_c_bigendian+set}" = set; then :
21181 $as_echo_n "(cached) " >&6
21183 ac_cv_c_bigendian=unknown
21184 # See if we're dealing with a universal compiler.
21185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21186 /* end confdefs.h. */
21187 #ifndef __APPLE_CC__
21188 not a universal capable compiler
21193 if ac_fn_c_try_compile "$LINENO"; then :
21195 # Check for potential -arch flags. It is not universal unless
21196 # there are at least two -arch flags with different values.
21199 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21200 if test -n "$ac_prev"; then
21202 i?86 | x86_64 | ppc | ppc64)
21203 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21206 ac_cv_c_bigendian=universal
21212 elif test "x$ac_word" = "x-arch"; then
21217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21218 if test $ac_cv_c_bigendian = unknown; then
21219 # See if sys/param.h defines the BYTE_ORDER macro.
21220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21221 /* end confdefs.h. */
21222 #include <sys/types.h>
21223 #include <sys/param.h>
21228 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21229 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21231 bogus endian macros
21238 if ac_fn_c_try_compile "$LINENO"; then :
21239 # It does; now see whether it defined to BIG_ENDIAN or not.
21240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21241 /* end confdefs.h. */
21242 #include <sys/types.h>
21243 #include <sys/param.h>
21248 #if BYTE_ORDER != BIG_ENDIAN
21256 if ac_fn_c_try_compile "$LINENO"; then :
21257 ac_cv_c_bigendian=yes
21259 ac_cv_c_bigendian=no
21261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21265 if test $ac_cv_c_bigendian = unknown; then
21266 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21268 /* end confdefs.h. */
21269 #include <limits.h>
21274 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21275 bogus endian macros
21282 if ac_fn_c_try_compile "$LINENO"; then :
21283 # It does; now see whether it defined to _BIG_ENDIAN or not.
21284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21285 /* end confdefs.h. */
21286 #include <limits.h>
21291 #ifndef _BIG_ENDIAN
21299 if ac_fn_c_try_compile "$LINENO"; then :
21300 ac_cv_c_bigendian=yes
21302 ac_cv_c_bigendian=no
21304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21308 if test $ac_cv_c_bigendian = unknown; then
21309 # Compile a test program.
21310 if test "$cross_compiling" = yes; then :
21311 # Try to guess by grepping values from an object file.
21312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21313 /* end confdefs.h. */
21314 short int ascii_mm[] =
21315 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21316 short int ascii_ii[] =
21317 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21318 int use_ascii (int i) {
21319 return ascii_mm[i] + ascii_ii[i];
21321 short int ebcdic_ii[] =
21322 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21323 short int ebcdic_mm[] =
21324 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21325 int use_ebcdic (int i) {
21326 return ebcdic_mm[i] + ebcdic_ii[i];
21333 return use_ascii (foo) == use_ebcdic (foo);
21338 if ac_fn_c_try_compile "$LINENO"; then :
21339 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21340 ac_cv_c_bigendian=yes
21342 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21343 if test "$ac_cv_c_bigendian" = unknown; then
21344 ac_cv_c_bigendian=no
21346 # finding both strings is unlikely to happen, but who knows?
21347 ac_cv_c_bigendian=unknown
21351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21354 /* end confdefs.h. */
21355 $ac_includes_default
21360 /* Are we little or big endian? From Harbison&Steele. */
21364 char c[sizeof (long int)];
21367 return u.c[sizeof (long int) - 1] == 1;
21373 if ac_fn_c_try_run "$LINENO"; then :
21374 ac_cv_c_bigendian=no
21376 ac_cv_c_bigendian=yes
21378 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21379 conftest.$ac_objext conftest.beam conftest.$ac_ext
21384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
21385 $as_echo "$ac_cv_c_bigendian" >&6; }
21386 case $ac_cv_c_bigendian in #(
21388 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
21394 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21398 as_fn_error $? "unknown endianness
21399 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
21403 # Define mode_t to a suitable type, if standard headers do not define it.
21404 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21405 if test "x$ac_cv_type_mode_t" = x""yes; then :
21409 cat >>confdefs.h <<_ACEOF
21416 # Define off_t to a suitable type, if standard headers do not define it.
21417 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21418 if test "x$ac_cv_type_off_t" = x""yes; then :
21422 cat >>confdefs.h <<_ACEOF
21423 #define off_t long int
21429 # Define pid_t to a suitable type, if standard headers do not define it.
21430 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21431 if test "x$ac_cv_type_pid_t" = x""yes; then :
21435 cat >>confdefs.h <<_ACEOF
21442 # Define size_t to a suitable type, if standard headers do not define it.
21443 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21444 if test "x$ac_cv_type_size_t" = x""yes; then :
21448 cat >>confdefs.h <<_ACEOF
21449 #define size_t unsigned int
21455 # Define ssize_t to a suitable type, if standard headers do not define it.
21456 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21457 if test "x$ac_cv_type_ssize_t" = x""yes; then :
21461 cat >>confdefs.h <<_ACEOF
21462 #define ssize_t int
21468 # If the C compiler supports a working long double type with more range
21469 # or precision than the double type, define HAVE_LONG_DOUBLE.
21471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
21472 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
21473 if test "${ac_cv_type_long_double_wider+set}" = set; then :
21474 $as_echo_n "(cached) " >&6
21476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21477 /* end confdefs.h. */
21479 long double const a[] =
21481 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21482 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21487 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21488 + (x ? f (x) : 'c'));
21494 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21495 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21496 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21497 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21498 && (int) LDBL_EPSILON == 0
21506 if ac_fn_c_try_compile "$LINENO"; then :
21507 ac_cv_type_long_double_wider=yes
21509 ac_cv_type_long_double_wider=no
21511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
21514 $as_echo "$ac_cv_type_long_double_wider" >&6; }
21515 if test $ac_cv_type_long_double_wider = yes; then
21517 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
21522 # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21523 # C compiler predefines it.
21524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
21525 $as_echo_n "checking whether char is unsigned... " >&6; }
21526 if test "${ac_cv_c_char_unsigned+set}" = set; then :
21527 $as_echo_n "(cached) " >&6
21529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21530 /* end confdefs.h. */
21531 $ac_includes_default
21535 static int test_array [1 - 2 * !(((char) -1) < 0)];
21542 if ac_fn_c_try_compile "$LINENO"; then :
21543 ac_cv_c_char_unsigned=no
21545 ac_cv_c_char_unsigned=yes
21547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
21550 $as_echo "$ac_cv_c_char_unsigned" >&6; }
21551 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21552 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
21557 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21558 # The cast to long int works around a bug in the HP C Compiler
21559 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21560 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21561 # This bug is HP SR number 8606223364.
21562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
21563 $as_echo_n "checking size of signed short... " >&6; }
21564 if test "${ac_cv_sizeof_signed_short+set}" = set; then :
21565 $as_echo_n "(cached) " >&6
21567 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
21570 if test "$ac_cv_type_signed_short" = yes; then
21571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21573 as_fn_error 77 "cannot compute sizeof (signed short)
21574 See \`config.log' for more details" "$LINENO" 5; }
21576 ac_cv_sizeof_signed_short=0
21581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
21582 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
21586 cat >>confdefs.h <<_ACEOF
21587 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21592 # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21593 # The cast to long int works around a bug in the HP C Compiler
21594 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21595 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21596 # This bug is HP SR number 8606223364.
21597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
21598 $as_echo_n "checking size of unsigned short... " >&6; }
21599 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
21600 $as_echo_n "(cached) " >&6
21602 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
21605 if test "$ac_cv_type_unsigned_short" = yes; then
21606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21608 as_fn_error 77 "cannot compute sizeof (unsigned short)
21609 See \`config.log' for more details" "$LINENO" 5; }
21611 ac_cv_sizeof_unsigned_short=0
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
21617 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21621 cat >>confdefs.h <<_ACEOF
21622 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21627 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21628 # The cast to long int works around a bug in the HP C Compiler
21629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21631 # This bug is HP SR number 8606223364.
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
21633 $as_echo_n "checking size of signed int... " >&6; }
21634 if test "${ac_cv_sizeof_signed_int+set}" = set; then :
21635 $as_echo_n "(cached) " >&6
21637 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then :
21640 if test "$ac_cv_type_signed_int" = yes; then
21641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21643 as_fn_error 77 "cannot compute sizeof (signed int)
21644 See \`config.log' for more details" "$LINENO" 5; }
21646 ac_cv_sizeof_signed_int=0
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
21652 $as_echo "$ac_cv_sizeof_signed_int" >&6; }
21656 cat >>confdefs.h <<_ACEOF
21657 #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21662 # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21663 # The cast to long int works around a bug in the HP C Compiler
21664 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21665 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21666 # This bug is HP SR number 8606223364.
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
21668 $as_echo_n "checking size of unsigned int... " >&6; }
21669 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
21670 $as_echo_n "(cached) " >&6
21672 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
21675 if test "$ac_cv_type_unsigned_int" = yes; then
21676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21678 as_fn_error 77 "cannot compute sizeof (unsigned int)
21679 See \`config.log' for more details" "$LINENO" 5; }
21681 ac_cv_sizeof_unsigned_int=0
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
21687 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21691 cat >>confdefs.h <<_ACEOF
21692 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21697 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21698 # The cast to long int works around a bug in the HP C Compiler
21699 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21700 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21701 # This bug is HP SR number 8606223364.
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
21703 $as_echo_n "checking size of signed long... " >&6; }
21704 if test "${ac_cv_sizeof_signed_long+set}" = set; then :
21705 $as_echo_n "(cached) " >&6
21707 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then :
21710 if test "$ac_cv_type_signed_long" = yes; then
21711 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21712 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21713 as_fn_error 77 "cannot compute sizeof (signed long)
21714 See \`config.log' for more details" "$LINENO" 5; }
21716 ac_cv_sizeof_signed_long=0
21721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
21722 $as_echo "$ac_cv_sizeof_signed_long" >&6; }
21726 cat >>confdefs.h <<_ACEOF
21727 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21732 # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21733 # The cast to long int works around a bug in the HP C Compiler
21734 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21735 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21736 # This bug is HP SR number 8606223364.
21737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
21738 $as_echo_n "checking size of unsigned long... " >&6; }
21739 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
21740 $as_echo_n "(cached) " >&6
21742 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
21745 if test "$ac_cv_type_unsigned_long" = yes; then
21746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21748 as_fn_error 77 "cannot compute sizeof (unsigned long)
21749 See \`config.log' for more details" "$LINENO" 5; }
21751 ac_cv_sizeof_unsigned_long=0
21756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
21757 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21761 cat >>confdefs.h <<_ACEOF
21762 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21767 # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21768 # 'signed long long' is not supported then the value defined is zero.
21769 # The cast to long int works around a bug in the HP C Compiler
21770 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21771 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21772 # This bug is HP SR number 8606223364.
21773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
21774 $as_echo_n "checking size of signed long long... " >&6; }
21775 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
21776 $as_echo_n "(cached) " >&6
21778 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
21781 if test "$ac_cv_type_signed_long_long" = yes; then
21782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21784 as_fn_error 77 "cannot compute sizeof (signed long long)
21785 See \`config.log' for more details" "$LINENO" 5; }
21787 ac_cv_sizeof_signed_long_long=0
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
21793 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
21797 cat >>confdefs.h <<_ACEOF
21798 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
21803 # Obtain size of a 'unsigned long long' and define as
21804 # SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
21805 # supported then the value defined is zero.
21806 # The cast to long int works around a bug in the HP C Compiler
21807 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21808 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21809 # This bug is HP SR number 8606223364.
21810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
21811 $as_echo_n "checking size of unsigned long long... " >&6; }
21812 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
21813 $as_echo_n "(cached) " >&6
21815 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
21818 if test "$ac_cv_type_unsigned_long_long" = yes; then
21819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21821 as_fn_error 77 "cannot compute sizeof (unsigned long long)
21822 See \`config.log' for more details" "$LINENO" 5; }
21824 ac_cv_sizeof_unsigned_long_long=0
21829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
21830 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
21834 cat >>confdefs.h <<_ACEOF
21835 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
21840 # Obtain size of off_t and define as SIZEOF_OFF_T
21841 # The cast to long int works around a bug in the HP C Compiler
21842 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21843 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21844 # This bug is HP SR number 8606223364.
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
21846 $as_echo_n "checking size of off_t... " >&6; }
21847 if test "${ac_cv_sizeof_off_t+set}" = set; then :
21848 $as_echo_n "(cached) " >&6
21850 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
21853 if test "$ac_cv_type_off_t" = yes; then
21854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21856 as_fn_error 77 "cannot compute sizeof (off_t)
21857 See \`config.log' for more details" "$LINENO" 5; }
21859 ac_cv_sizeof_off_t=0
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
21865 $as_echo "$ac_cv_sizeof_off_t" >&6; }
21869 cat >>confdefs.h <<_ACEOF
21870 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
21875 # Obtain size of size_t and define as SIZEOF_SIZE_T
21876 # The cast to long int works around a bug in the HP C Compiler
21877 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21878 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21879 # This bug is HP SR number 8606223364.
21880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
21881 $as_echo_n "checking size of size_t... " >&6; }
21882 if test "${ac_cv_sizeof_size_t+set}" = set; then :
21883 $as_echo_n "(cached) " >&6
21885 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
21888 if test "$ac_cv_type_size_t" = yes; then
21889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21891 as_fn_error 77 "cannot compute sizeof (size_t)
21892 See \`config.log' for more details" "$LINENO" 5; }
21894 ac_cv_sizeof_size_t=0
21899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
21900 $as_echo "$ac_cv_sizeof_size_t" >&6; }
21904 cat >>confdefs.h <<_ACEOF
21905 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
21910 # Obtain size of ssize_t and define as SIZEOF_SSIZE_T
21911 # The cast to long int works around a bug in the HP C Compiler
21912 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21913 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21914 # This bug is HP SR number 8606223364.
21915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
21916 $as_echo_n "checking size of ssize_t... " >&6; }
21917 if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
21918 $as_echo_n "(cached) " >&6
21920 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
21923 if test "$ac_cv_type_ssize_t" = yes; then
21924 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21925 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21926 as_fn_error 77 "cannot compute sizeof (ssize_t)
21927 See \`config.log' for more details" "$LINENO" 5; }
21929 ac_cv_sizeof_ssize_t=0
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
21935 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
21939 cat >>confdefs.h <<_ACEOF
21940 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
21945 # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
21946 # The cast to long int works around a bug in the HP C Compiler
21947 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21948 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21949 # This bug is HP SR number 8606223364.
21950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
21951 $as_echo_n "checking size of unsigned int*... " >&6; }
21952 if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
21953 $as_echo_n "(cached) " >&6
21955 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then :
21958 if test "$ac_cv_type_unsigned_intp" = yes; then
21959 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21961 as_fn_error 77 "cannot compute sizeof (unsigned int*)
21962 See \`config.log' for more details" "$LINENO" 5; }
21964 ac_cv_sizeof_unsigned_intp=0
21969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
21970 $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
21974 cat >>confdefs.h <<_ACEOF
21975 #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
21981 # Compute sized types for current CPU and compiler options.
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
21985 $as_echo_n "checking for signed 8-bit type... " >&6; }
21986 INT8_T='signed char'
21987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
21988 $as_echo "$INT8_T" >&6; }
21991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
21992 $as_echo_n "checking for unsigned 8-bit type... " >&6; }
21993 UINT8_T='unsigned char'
21994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
21995 $as_echo "$UINT8_T" >&6; }
21998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
21999 $as_echo_n "checking for signed 16-bit type... " >&6; }
22000 INT16_T='signed short'
22001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
22002 $as_echo "$INT16_T" >&6; }
22005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
22006 $as_echo_n "checking for unsigned 16-bit type... " >&6; }
22007 UINT16_T='unsigned short'
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
22009 $as_echo "$UINT16_T" >&6; }
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
22013 $as_echo_n "checking for signed 32-bit type... " >&6; }
22015 if test $ac_cv_sizeof_signed_int -eq 4; then
22016 INT32_T='signed int'
22017 elif test $ac_cv_sizeof_signed_long -eq 4; then
22018 INT32_T='signed long'
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
22021 $as_echo "$INT32_T" >&6; }
22024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
22025 $as_echo_n "checking for unsigned 32-bit type... " >&6; }
22027 if test $ac_cv_sizeof_unsigned_int -eq 4; then
22028 UINT32_T='unsigned int'
22029 elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22030 UINT32_T='unsigned long'
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
22033 $as_echo "$UINT32_T" >&6; }
22036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
22037 $as_echo_n "checking for signed 64-bit type... " >&6; }
22039 if test $ac_cv_sizeof_signed_long -eq 8; then
22040 INT64_T='signed long'
22041 elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22042 INT64_T='signed long long'
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
22045 $as_echo "$INT64_T" >&6; }
22048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
22049 $as_echo_n "checking for unsigned 64-bit type... " >&6; }
22051 if test $ac_cv_sizeof_unsigned_long -eq 8; then
22052 UINT64_T='unsigned long'
22053 elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22054 UINT64_T='unsigned long long'
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
22057 $as_echo "$UINT64_T" >&6; }
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
22061 $as_echo_n "checking for unsigned maximum type... " >&6; }
22063 if test "$UINT64_T" != 'none'; then
22064 UINTMAX_T=$UINT64_T
22065 elif test "$UINT32_T" != 'none'; then
22066 UINTMAX_T=$UINT32_T
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
22069 $as_echo "$UINTMAX_T" >&6; }
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
22073 $as_echo_n "checking for pointer difference type... " >&6; }
22075 if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22076 UINTPTR_T='unsigned long'
22077 elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22078 UINTPTR_T='unsigned long long'
22080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
22081 $as_echo "$UINTPTR_T" >&6; }
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
22085 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
22086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22087 /* end confdefs.h. */
22092 { const char *func = __func__; return(func != 0 ? 0 : 1); }
22097 if ac_fn_c_try_compile "$LINENO"; then :
22098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22099 $as_echo "yes" >&6; }
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22102 $as_echo "no" >&6; }
22103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
22104 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
22105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22106 /* end confdefs.h. */
22111 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22116 if ac_fn_c_try_compile "$LINENO"; then :
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22118 $as_echo "yes" >&6; }
22120 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
22123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22124 $as_echo "no" >&6; }
22126 $as_echo "#define __func__ __FILE__" >>confdefs.h
22129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22135 # Check for functions
22138 for ac_header in stdlib.h unistd.h
22140 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22141 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22142 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22143 cat >>confdefs.h <<_ACEOF
22144 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22151 for ac_func in getpagesize
22153 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22154 if test "x$ac_cv_func_getpagesize" = x""yes; then :
22155 cat >>confdefs.h <<_ACEOF
22156 #define HAVE_GETPAGESIZE 1
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
22163 $as_echo_n "checking for working mmap file i/o... " >&6; }
22164 if test "${magick_cv_func_mmap_fileio+set}" = set; then :
22165 $as_echo_n "(cached) " >&6
22167 if test "$cross_compiling" = yes; then :
22168 magick_cv_func_mmap_fileio=no
22170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22171 /* end confdefs.h. */
22172 $ac_includes_default
22173 /* malloc might have been renamed as rpl_malloc. */
22177 This test is derived from GNU Autoconf's similar macro.
22178 The purpose of this test is to verify that files may be memory
22179 mapped, and that memory mapping and file I/O are coherent.
22181 The test creates a test file, memory maps the file, updates
22182 the file using the memory map, and then reads the file using
22183 file I/O to verify that the file contains the updates.
22187 #include <sys/mman.h>
22189 #if !STDC_HEADERS && !HAVE_STDLIB_H
22193 /* This mess was copied from the GNU getpagesize.h. */
22194 #if !HAVE_GETPAGESIZE
22195 /* Assume that all systems that can run configure have sys/param.h. */
22196 # if !HAVE_SYS_PARAM_H
22197 # define HAVE_SYS_PARAM_H 1
22200 # ifdef _SC_PAGESIZE
22201 # define getpagesize() sysconf(_SC_PAGESIZE)
22202 # else /* no _SC_PAGESIZE */
22203 # if HAVE_SYS_PARAM_H
22204 # include <sys/param.h>
22205 # ifdef EXEC_PAGESIZE
22206 # define getpagesize() EXEC_PAGESIZE
22207 # else /* no EXEC_PAGESIZE */
22209 # define getpagesize() NBPG * CLSIZE
22212 # endif /* no CLSIZE */
22213 # else /* no NBPG */
22215 # define getpagesize() NBPC
22216 # else /* no NBPC */
22218 # define getpagesize() PAGESIZE
22219 # endif /* PAGESIZE */
22220 # endif /* no NBPC */
22221 # endif /* no NBPG */
22222 # endif /* no EXEC_PAGESIZE */
22223 # else /* no HAVE_SYS_PARAM_H */
22224 # define getpagesize() 8192 /* punt totally */
22225 # endif /* no HAVE_SYS_PARAM_H */
22226 # endif /* no _SC_PAGESIZE */
22228 #endif /* no HAVE_GETPAGESIZE */
22233 char *data, *data2, *data3;
22237 pagesize = getpagesize ();
22239 /* First, make a file with some known garbage in it. */
22240 data = (char *) malloc (pagesize);
22243 for (i = 0; i < pagesize; ++i)
22244 *(data + i) = rand ();
22246 fd = creat ("conftest.mmap", 0600);
22249 if (write (fd, data, pagesize) != pagesize)
22253 /* Mmap the file as read/write/shared and verify that we see the
22255 fd = open ("conftest.mmap", O_RDWR);
22258 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22261 for (i = 0; i < pagesize; ++i)
22262 if (*(data + i) != *(data2 + i))
22265 /* Finally, make sure that changes to the mapped area
22266 percolate back to the file as seen by read(). */
22267 for (i = 0; i < pagesize; ++i)
22268 *(data2 + i) = *(data2 + i) + 1;
22269 data3 = (char *) malloc (pagesize);
22272 if (read (fd, data3, pagesize) != pagesize)
22274 for (i = 0; i < pagesize; ++i)
22275 if (*(data2 + i) != *(data3 + i))
22281 if ac_fn_c_try_run "$LINENO"; then :
22282 magick_cv_func_mmap_fileio=yes
22284 magick_cv_func_mmap_fileio=no
22286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22287 conftest.$ac_objext conftest.beam conftest.$ac_ext
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
22292 $as_echo "$magick_cv_func_mmap_fileio" >&6; }
22293 if test $magick_cv_func_mmap_fileio = yes; then
22295 $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
22298 rm -f conftest.mmap
22300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
22301 $as_echo_n "checking whether closedir returns void... " >&6; }
22302 if test "${ac_cv_func_closedir_void+set}" = set; then :
22303 $as_echo_n "(cached) " >&6
22305 if test "$cross_compiling" = yes; then :
22306 ac_cv_func_closedir_void=yes
22308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22309 /* end confdefs.h. */
22310 $ac_includes_default
22311 #include <$ac_header_dirent>
22312 #ifndef __cplusplus
22319 return closedir (opendir (".")) != 0;
22324 if ac_fn_c_try_run "$LINENO"; then :
22325 ac_cv_func_closedir_void=no
22327 ac_cv_func_closedir_void=yes
22329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22330 conftest.$ac_objext conftest.beam conftest.$ac_ext
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
22335 $as_echo "$ac_cv_func_closedir_void" >&6; }
22336 if test $ac_cv_func_closedir_void = yes; then
22338 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
22345 for ac_header in $ac_header_list
22347 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22348 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22350 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22351 cat >>confdefs.h <<_ACEOF
22352 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22366 for ac_func in getpagesize
22368 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22369 if test "x$ac_cv_func_getpagesize" = x""yes; then :
22370 cat >>confdefs.h <<_ACEOF
22371 #define HAVE_GETPAGESIZE 1
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
22378 $as_echo_n "checking for working mmap... " >&6; }
22379 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
22380 $as_echo_n "(cached) " >&6
22382 if test "$cross_compiling" = yes; then :
22383 ac_cv_func_mmap_fixed_mapped=no
22385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22386 /* end confdefs.h. */
22387 $ac_includes_default
22388 /* malloc might have been renamed as rpl_malloc. */
22391 /* Thanks to Mike Haertel and Jim Avera for this test.
22392 Here is a matrix of mmap possibilities:
22393 mmap private not fixed
22394 mmap private fixed at somewhere currently unmapped
22395 mmap private fixed at somewhere already mapped
22396 mmap shared not fixed
22397 mmap shared fixed at somewhere currently unmapped
22398 mmap shared fixed at somewhere already mapped
22399 For private mappings, we should verify that changes cannot be read()
22400 back from the file, nor mmap's back from the file at a different
22401 address. (There have been systems where private was not correctly
22402 implemented like the infamous i386 svr4.0, and systems where the
22403 VM page cache was not coherent with the file system buffer cache
22404 like early versions of FreeBSD and possibly contemporary NetBSD.)
22405 For shared mappings, we should conversely verify that changes get
22406 propagated back to all the places they're supposed to be.
22408 Grep wants private fixed already mapped.
22409 The main things grep needs to know about mmap are:
22410 * does it exist and is it safe to write into the mmap'd area
22411 * how to use it (BSD variants) */
22414 #include <sys/mman.h>
22416 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22420 /* This mess was copied from the GNU getpagesize.h. */
22421 #ifndef HAVE_GETPAGESIZE
22422 # ifdef _SC_PAGESIZE
22423 # define getpagesize() sysconf(_SC_PAGESIZE)
22424 # else /* no _SC_PAGESIZE */
22425 # ifdef HAVE_SYS_PARAM_H
22426 # include <sys/param.h>
22427 # ifdef EXEC_PAGESIZE
22428 # define getpagesize() EXEC_PAGESIZE
22429 # else /* no EXEC_PAGESIZE */
22431 # define getpagesize() NBPG * CLSIZE
22434 # endif /* no CLSIZE */
22435 # else /* no NBPG */
22437 # define getpagesize() NBPC
22438 # else /* no NBPC */
22440 # define getpagesize() PAGESIZE
22441 # endif /* PAGESIZE */
22442 # endif /* no NBPC */
22443 # endif /* no NBPG */
22444 # endif /* no EXEC_PAGESIZE */
22445 # else /* no HAVE_SYS_PARAM_H */
22446 # define getpagesize() 8192 /* punt totally */
22447 # endif /* no HAVE_SYS_PARAM_H */
22448 # endif /* no _SC_PAGESIZE */
22450 #endif /* no HAVE_GETPAGESIZE */
22455 char *data, *data2, *data3;
22456 const char *cdata2;
22460 pagesize = getpagesize ();
22462 /* First, make a file with some known garbage in it. */
22463 data = (char *) malloc (pagesize);
22466 for (i = 0; i < pagesize; ++i)
22467 *(data + i) = rand ();
22469 fd = creat ("conftest.mmap", 0600);
22472 if (write (fd, data, pagesize) != pagesize)
22476 /* Next, check that the tail of a page is zero-filled. File must have
22477 non-zero length, otherwise we risk SIGBUS for entire page. */
22478 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22482 if (write (fd2, cdata2, 1) != 1)
22484 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
22485 if (data2 == MAP_FAILED)
22487 for (i = 0; i < pagesize; ++i)
22491 if (munmap (data2, pagesize))
22494 /* Next, try to mmap the file at a fixed address which already has
22495 something else allocated at it. If we can, also make sure that
22496 we see the same garbage. */
22497 fd = open ("conftest.mmap", O_RDWR);
22500 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22501 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22503 for (i = 0; i < pagesize; ++i)
22504 if (*(data + i) != *(data2 + i))
22507 /* Finally, make sure that changes to the mapped area do not
22508 percolate back to the file as seen by read(). (This is a bug on
22509 some variants of i386 svr4.0.) */
22510 for (i = 0; i < pagesize; ++i)
22511 *(data2 + i) = *(data2 + i) + 1;
22512 data3 = (char *) malloc (pagesize);
22515 if (read (fd, data3, pagesize) != pagesize)
22517 for (i = 0; i < pagesize; ++i)
22518 if (*(data + i) != *(data3 + i))
22524 if ac_fn_c_try_run "$LINENO"; then :
22525 ac_cv_func_mmap_fixed_mapped=yes
22527 ac_cv_func_mmap_fixed_mapped=no
22529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22530 conftest.$ac_objext conftest.beam conftest.$ac_ext
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
22535 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22536 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22538 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
22541 rm -f conftest.mmap conftest.txt
22543 for ac_header in vfork.h
22545 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22546 if test "x$ac_cv_header_vfork_h" = x""yes; then :
22547 cat >>confdefs.h <<_ACEOF
22548 #define HAVE_VFORK_H 1
22555 for ac_func in fork vfork
22557 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22558 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22559 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22560 cat >>confdefs.h <<_ACEOF
22561 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22567 if test "x$ac_cv_func_fork" = xyes; then
22568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
22569 $as_echo_n "checking for working fork... " >&6; }
22570 if test "${ac_cv_func_fork_works+set}" = set; then :
22571 $as_echo_n "(cached) " >&6
22573 if test "$cross_compiling" = yes; then :
22574 ac_cv_func_fork_works=cross
22576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22577 /* end confdefs.h. */
22578 $ac_includes_default
22583 /* By Ruediger Kuhlmann. */
22584 return fork () < 0;
22590 if ac_fn_c_try_run "$LINENO"; then :
22591 ac_cv_func_fork_works=yes
22593 ac_cv_func_fork_works=no
22595 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22596 conftest.$ac_objext conftest.beam conftest.$ac_ext
22600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
22601 $as_echo "$ac_cv_func_fork_works" >&6; }
22604 ac_cv_func_fork_works=$ac_cv_func_fork
22606 if test "x$ac_cv_func_fork_works" = xcross; then
22608 *-*-amigaos* | *-*-msdosdjgpp*)
22609 # Override, as these systems have only a dummy fork() stub
22610 ac_cv_func_fork_works=no
22613 ac_cv_func_fork_works=yes
22616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22617 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22619 ac_cv_func_vfork_works=$ac_cv_func_vfork
22620 if test "x$ac_cv_func_vfork" = xyes; then
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
22622 $as_echo_n "checking for working vfork... " >&6; }
22623 if test "${ac_cv_func_vfork_works+set}" = set; then :
22624 $as_echo_n "(cached) " >&6
22626 if test "$cross_compiling" = yes; then :
22627 ac_cv_func_vfork_works=cross
22629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22630 /* end confdefs.h. */
22631 /* Thanks to Paul Eggert for this test. */
22632 $ac_includes_default
22633 #include <sys/wait.h>
22634 #ifdef HAVE_VFORK_H
22635 # include <vfork.h>
22637 /* On some sparc systems, changes by the child to local and incoming
22638 argument registers are propagated back to the parent. The compiler
22639 is told about this with #include <vfork.h>, but some compilers
22640 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22641 static variable whose address is put into a register that is
22642 clobbered by the vfork. */
22645 sparc_address_test (int arg)
22647 sparc_address_test (arg) int arg;
22650 static pid_t child;
22668 pid_t parent = getpid ();
22671 sparc_address_test (0);
22676 /* Here is another test for sparc vfork register problems. This
22677 test uses lots of local variables, at least as many local
22678 variables as main has allocated so far including compiler
22679 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22680 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22681 reuse the register of parent for one of the local variables,
22682 since it will think that parent can't possibly be used any more
22683 in this routine. Assigning to the local variable will thus
22684 munge parent in the parent process. */
22686 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22687 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22688 /* Convince the compiler that p..p7 are live; otherwise, it might
22689 use the same hardware register for all 8 local variables. */
22690 if (p != p1 || p != p2 || p != p3 || p != p4
22691 || p != p5 || p != p6 || p != p7)
22694 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22695 from child file descriptors. If the child closes a descriptor
22696 before it execs or exits, this munges the parent's descriptor
22697 as well. Test for this by closing stdout in the child. */
22698 _exit(close(fileno(stdout)) != 0);
22703 while (wait(&status) != child)
22706 /* Was there some problem with vforking? */
22709 /* Did the child fail? (This shouldn't happen.) */
22712 /* Did the vfork/compiler bug occur? */
22713 || parent != getpid()
22715 /* Did the file descriptor bug occur? */
22716 || fstat(fileno(stdout), &st) != 0
22721 if ac_fn_c_try_run "$LINENO"; then :
22722 ac_cv_func_vfork_works=yes
22724 ac_cv_func_vfork_works=no
22726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22727 conftest.$ac_objext conftest.beam conftest.$ac_ext
22731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
22732 $as_echo "$ac_cv_func_vfork_works" >&6; }
22735 if test "x$ac_cv_func_fork_works" = xcross; then
22736 ac_cv_func_vfork_works=$ac_cv_func_vfork
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22738 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22741 if test "x$ac_cv_func_vfork_works" = xyes; then
22743 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
22747 $as_echo "#define vfork fork" >>confdefs.h
22750 if test "x$ac_cv_func_fork_works" = xyes; then
22752 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
22757 $as_echo_n "checking for working memcmp... " >&6; }
22758 if test "${ac_cv_func_memcmp_working+set}" = set; then :
22759 $as_echo_n "(cached) " >&6
22761 if test "$cross_compiling" = yes; then :
22762 ac_cv_func_memcmp_working=no
22764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22765 /* end confdefs.h. */
22766 $ac_includes_default
22771 /* Some versions of memcmp are not 8-bit clean. */
22772 char c0 = '\100', c1 = '\200', c2 = '\201';
22773 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22776 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22777 or more and with at least one buffer not starting on a 4-byte boundary.
22778 William Lewis provided this test program. */
22783 for (i = 0; i < 4; i++)
22787 strcpy (a, "--------01111111");
22788 strcpy (b, "--------10000000");
22789 if (memcmp (a, b, 16) >= 0)
22799 if ac_fn_c_try_run "$LINENO"; then :
22800 ac_cv_func_memcmp_working=yes
22802 ac_cv_func_memcmp_working=no
22804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22805 conftest.$ac_objext conftest.beam conftest.$ac_ext
22809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
22810 $as_echo "$ac_cv_func_memcmp_working" >&6; }
22811 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
22812 *" memcmp.$ac_objext "* ) ;;
22813 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
22818 for ac_header in sys/select.h sys/socket.h
22820 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22821 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22822 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22823 cat >>confdefs.h <<_ACEOF
22824 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
22832 $as_echo_n "checking types of arguments for select... " >&6; }
22833 if test "${ac_cv_func_select_args+set}" = set; then :
22834 $as_echo_n "(cached) " >&6
22836 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
22837 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
22838 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
22839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22840 /* end confdefs.h. */
22841 $ac_includes_default
22842 #ifdef HAVE_SYS_SELECT_H
22843 # include <sys/select.h>
22845 #ifdef HAVE_SYS_SOCKET_H
22846 # include <sys/socket.h>
22852 extern int select ($ac_arg1,
22853 $ac_arg234, $ac_arg234, $ac_arg234,
22859 if ac_fn_c_try_compile "$LINENO"; then :
22860 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
22862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22866 # Provide a safe default value.
22867 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
22870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
22871 $as_echo "$ac_cv_func_select_args" >&6; }
22872 ac_save_IFS=$IFS; IFS=','
22873 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
22877 cat >>confdefs.h <<_ACEOF
22878 #define SELECT_TYPE_ARG1 $1
22882 cat >>confdefs.h <<_ACEOF
22883 #define SELECT_TYPE_ARG234 ($2)
22887 cat >>confdefs.h <<_ACEOF
22888 #define SELECT_TYPE_ARG5 ($3)
22893 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
22894 $as_echo_n "(cached) " >&6
22896 ac_cv_func_setvbuf_reversed=no
22900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
22901 $as_echo_n "checking return type of signal handlers... " >&6; }
22902 if test "${ac_cv_type_signal+set}" = set; then :
22903 $as_echo_n "(cached) " >&6
22905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22906 /* end confdefs.h. */
22907 #include <sys/types.h>
22908 #include <signal.h>
22913 return *(signal (0, 0)) (0) == 1;
22918 if ac_fn_c_try_compile "$LINENO"; then :
22919 ac_cv_type_signal=int
22921 ac_cv_type_signal=void
22923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
22926 $as_echo "$ac_cv_type_signal" >&6; }
22928 cat >>confdefs.h <<_ACEOF
22929 #define RETSIGTYPE $ac_cv_type_signal
22933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
22934 $as_echo_n "checking for working strtod... " >&6; }
22935 if test "${ac_cv_func_strtod+set}" = set; then :
22936 $as_echo_n "(cached) " >&6
22938 if test "$cross_compiling" = yes; then :
22939 ac_cv_func_strtod=no
22941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22942 /* end confdefs.h. */
22944 $ac_includes_default
22952 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
22953 char *string = " +69";
22956 value = strtod (string, &term);
22957 if (value != 69 || term != (string + 4))
22962 /* Under Solaris 2.4, strtod returns the wrong value for the
22963 terminating character under some conditions. */
22964 char *string = "NaN";
22966 strtod (string, &term);
22967 if (term != string && *(term - 1) == 0)
22974 if ac_fn_c_try_run "$LINENO"; then :
22975 ac_cv_func_strtod=yes
22977 ac_cv_func_strtod=no
22979 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22980 conftest.$ac_objext conftest.beam conftest.$ac_ext
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
22985 $as_echo "$ac_cv_func_strtod" >&6; }
22986 if test $ac_cv_func_strtod = no; then
22987 case " $LIBOBJS " in
22988 *" strtod.$ac_objext "* ) ;;
22989 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
22993 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
22994 if test "x$ac_cv_func_pow" = x""yes; then :
22998 if test $ac_cv_func_pow = no; then
22999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
23000 $as_echo_n "checking for pow in -lm... " >&6; }
23001 if test "${ac_cv_lib_m_pow+set}" = set; then :
23002 $as_echo_n "(cached) " >&6
23004 ac_check_lib_save_LIBS=$LIBS
23006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23007 /* end confdefs.h. */
23009 /* Override any GCC internal prototype to avoid an error.
23010 Use char because int might match the return type of a GCC
23011 builtin and then its argument prototype would still apply. */
23024 if ac_fn_c_try_link "$LINENO"; then :
23025 ac_cv_lib_m_pow=yes
23029 rm -f core conftest.err conftest.$ac_objext \
23030 conftest$ac_exeext conftest.$ac_ext
23031 LIBS=$ac_check_lib_save_LIBS
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
23034 $as_echo "$ac_cv_lib_m_pow" >&6; }
23035 if test "x$ac_cv_lib_m_pow" = x""yes; then :
23038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
23039 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23046 for ac_func in vprintf
23048 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23049 if test "x$ac_cv_func_vprintf" = x""yes; then :
23050 cat >>confdefs.h <<_ACEOF
23051 #define HAVE_VPRINTF 1
23054 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23055 if test "x$ac_cv_func__doprnt" = x""yes; then :
23057 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
23067 # Find math library
23070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23071 $as_echo_n "checking for sqrt in -lm... " >&6; }
23072 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23073 $as_echo_n "(cached) " >&6
23075 ac_check_lib_save_LIBS=$LIBS
23077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23078 /* end confdefs.h. */
23080 /* Override any GCC internal prototype to avoid an error.
23081 Use char because int might match the return type of a GCC
23082 builtin and then its argument prototype would still apply. */
23095 if ac_fn_c_try_link "$LINENO"; then :
23096 ac_cv_lib_m_sqrt=yes
23098 ac_cv_lib_m_sqrt=no
23100 rm -f core conftest.err conftest.$ac_objext \
23101 conftest$ac_exeext conftest.$ac_ext
23102 LIBS=$ac_check_lib_save_LIBS
23104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23105 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
23106 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23110 LIBS="$MATH_LIBS $LIBS"
23113 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
23115 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23116 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23117 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23118 cat >>confdefs.h <<_ACEOF
23119 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23127 # Check for clock_gettime().
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
23130 $as_echo_n "checking for library containing clock_gettime... " >&6; }
23131 if test "${ac_cv_search_clock_gettime+set}" = set; then :
23132 $as_echo_n "(cached) " >&6
23134 ac_func_search_save_LIBS=$LIBS
23135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23136 /* end confdefs.h. */
23138 /* Override any GCC internal prototype to avoid an error.
23139 Use char because int might match the return type of a GCC
23140 builtin and then its argument prototype would still apply. */
23144 char clock_gettime ();
23148 return clock_gettime ();
23153 for ac_lib in '' rt; do
23154 if test -z "$ac_lib"; then
23155 ac_res="none required"
23158 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23160 if ac_fn_c_try_link "$LINENO"; then :
23161 ac_cv_search_clock_gettime=$ac_res
23163 rm -f core conftest.err conftest.$ac_objext \
23165 if test "${ac_cv_search_clock_gettime+set}" = set; then :
23169 if test "${ac_cv_search_clock_gettime+set}" = set; then :
23172 ac_cv_search_clock_gettime=no
23174 rm conftest.$ac_ext
23175 LIBS=$ac_func_search_save_LIBS
23177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
23178 $as_echo "$ac_cv_search_clock_gettime" >&6; }
23179 ac_res=$ac_cv_search_clock_gettime
23180 if test "$ac_res" != no; then :
23181 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23184 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
23186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
23187 $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
23188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23189 /* end confdefs.h. */
23194 clockid_t clockType = CLOCK_REALTIME;
23199 if ac_fn_c_try_compile "$LINENO"; then :
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23202 $as_echo "yes" >&6; }
23204 $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
23208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23209 $as_echo "no" >&6; }
23212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23216 for ac_func in gettimeofday ftime
23218 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23219 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23220 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23221 cat >>confdefs.h <<_ACEOF
23222 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23235 # Check for function prototypes
23239 ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
23240 #include <unistd.h>
23242 if test "x$ac_cv_have_decl_pread" = x""yes; then :
23248 cat >>confdefs.h <<_ACEOF
23249 #define HAVE_DECL_PREAD $ac_have_decl
23251 ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
23252 #include <unistd.h>
23254 if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23260 cat >>confdefs.h <<_ACEOF
23261 #define HAVE_DECL_PWRITE $ac_have_decl
23265 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
23266 #include <strings.h>
23268 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23274 cat >>confdefs.h <<_ACEOF
23275 #define HAVE_DECL_STRLCPY $ac_have_decl
23279 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
23281 #include <stdarg.h>
23283 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23289 cat >>confdefs.h <<_ACEOF
23290 #define HAVE_DECL_VSNPRINTF $ac_have_decl
23296 # C++ Support Tests (For Magick++)
23299 have_magick_plus_plus='no'
23300 if test "$with_magick_plus_plus" = 'yes'; then
23304 ac_cpp='$CXXCPP $CPPFLAGS'
23305 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23306 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23307 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23310 # Full set of headers used...
23311 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23312 # functional iomanip iosfwd iostream iterator list string strstream utility
23314 ac_cpp='$CXXCPP $CPPFLAGS'
23315 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23316 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23317 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23320 ac_cpp='$CXXCPP $CPPFLAGS'
23321 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23322 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23323 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23324 if test -z "$CXX"; then
23325 if test -n "$CCC"; then
23328 if test -n "$ac_tool_prefix"; then
23329 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23334 $as_echo_n "checking for $ac_word... " >&6; }
23335 if test "${ac_cv_prog_CXX+set}" = set; then :
23336 $as_echo_n "(cached) " >&6
23338 if test -n "$CXX"; then
23339 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23342 for as_dir in $PATH
23345 test -z "$as_dir" && as_dir=.
23346 for ac_exec_ext in '' $ac_executable_extensions; do
23347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23348 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
23349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23358 CXX=$ac_cv_prog_CXX
23359 if test -n "$CXX"; then
23360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
23361 $as_echo "$CXX" >&6; }
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23364 $as_echo "no" >&6; }
23368 test -n "$CXX" && break
23371 if test -z "$CXX"; then
23373 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23375 # Extract the first word of "$ac_prog", so it can be a program name with args.
23376 set dummy $ac_prog; ac_word=$2
23377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23378 $as_echo_n "checking for $ac_word... " >&6; }
23379 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
23380 $as_echo_n "(cached) " >&6
23382 if test -n "$ac_ct_CXX"; then
23383 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23386 for as_dir in $PATH
23389 test -z "$as_dir" && as_dir=.
23390 for ac_exec_ext in '' $ac_executable_extensions; do
23391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23392 ac_cv_prog_ac_ct_CXX="$ac_prog"
23393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23402 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23403 if test -n "$ac_ct_CXX"; then
23404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
23405 $as_echo "$ac_ct_CXX" >&6; }
23407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23408 $as_echo "no" >&6; }
23412 test -n "$ac_ct_CXX" && break
23415 if test "x$ac_ct_CXX" = x; then
23418 case $cross_compiling:$ac_tool_warned in
23420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23422 ac_tool_warned=yes ;;
23430 # Provide some information about the compiler.
23431 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
23434 for ac_option in --version -v -V -qversion; do
23435 { { ac_try="$ac_compiler $ac_option >&5"
23436 case "(($ac_try" in
23437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23438 *) ac_try_echo=$ac_try;;
23440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23441 $as_echo "$ac_try_echo"; } >&5
23442 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
23444 if test -s conftest.err; then
23446 ... rest of stderr output deleted ...
23447 10q' conftest.err >conftest.er1
23448 cat conftest.er1 >&5
23450 rm -f conftest.er1 conftest.err
23451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23452 test $ac_status = 0; }
23455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
23456 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
23457 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
23458 $as_echo_n "(cached) " >&6
23460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23461 /* end confdefs.h. */
23474 if ac_fn_cxx_try_compile "$LINENO"; then :
23475 ac_compiler_gnu=yes
23479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23480 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
23484 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23485 if test $ac_compiler_gnu = yes; then
23490 ac_test_CXXFLAGS=${CXXFLAGS+set}
23491 ac_save_CXXFLAGS=$CXXFLAGS
23492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
23493 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
23494 if test "${ac_cv_prog_cxx_g+set}" = set; then :
23495 $as_echo_n "(cached) " >&6
23497 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23498 ac_cxx_werror_flag=yes
23499 ac_cv_prog_cxx_g=no
23501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23502 /* end confdefs.h. */
23512 if ac_fn_cxx_try_compile "$LINENO"; then :
23513 ac_cv_prog_cxx_g=yes
23516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23517 /* end confdefs.h. */
23527 if ac_fn_cxx_try_compile "$LINENO"; then :
23530 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23533 /* end confdefs.h. */
23543 if ac_fn_cxx_try_compile "$LINENO"; then :
23544 ac_cv_prog_cxx_g=yes
23546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23551 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
23554 $as_echo "$ac_cv_prog_cxx_g" >&6; }
23555 if test "$ac_test_CXXFLAGS" = set; then
23556 CXXFLAGS=$ac_save_CXXFLAGS
23557 elif test $ac_cv_prog_cxx_g = yes; then
23558 if test "$GXX" = yes; then
23564 if test "$GXX" = yes; then
23571 ac_cpp='$CXXCPP $CPPFLAGS'
23572 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23573 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23574 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23576 depcc="$CXX" am_compiler_list=
23578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23579 $as_echo_n "checking dependency style of $depcc... " >&6; }
23580 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
23581 $as_echo_n "(cached) " >&6
23583 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23584 # We make a subdir and do the tests there. Otherwise we can end up
23585 # making bogus files that we don't know about and never remove. For
23586 # instance it was reported that on HP-UX the gcc test will end up
23587 # making a dummy file named `D' -- because `-MD' means `put the output
23590 # Copy depcomp to subdir because otherwise we won't find it if we're
23591 # using a relative directory.
23592 cp "$am_depcomp" conftest.dir
23594 # We will build objects and dependencies in a subdirectory because
23595 # it helps to detect inapplicable dependency modes. For instance
23596 # both Tru64's cc and ICC support -MD to output dependencies as a
23597 # side effect of compilation, but ICC will put the dependencies in
23598 # the current directory while Tru64 will put them in the object
23602 am_cv_CXX_dependencies_compiler_type=none
23603 if test "$am_compiler_list" = ""; then
23604 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23606 am__universal=false
23607 case " $depcc " in #(
23608 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23611 for depmode in $am_compiler_list; do
23612 # Setup a source with many dependencies, because some compilers
23613 # like to wrap large dependency lists on column 80 (with \), and
23614 # we should not choose a depcomp mode which is confused by this.
23616 # We need to recreate these files for each test, as the compiler may
23617 # overwrite some of them when testing with obscure command lines.
23618 # This happens at least with the AIX C compiler.
23620 for i in 1 2 3 4 5 6; do
23621 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23622 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23623 # Solaris 8's {/usr,}/bin/sh.
23624 touch sub/conftst$i.h
23626 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23628 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23629 # mode. It turns out that the SunPro C++ compiler does not properly
23630 # handle `-M -o', and we need to detect this. Also, some Intel
23631 # versions had trouble with output in subdirs
23632 am__obj=sub/conftest.${OBJEXT-o}
23633 am__minus_obj="-o $am__obj"
23636 # This depmode causes a compiler race in universal mode.
23637 test "$am__universal" = false || continue
23640 # after this tag, mechanisms are not by side-effect, so they'll
23641 # only be used when explicitly requested
23642 if test "x$enable_dependency_tracking" = xyes; then
23648 msvisualcpp | msvcmsys)
23649 # This compiler won't grok `-c -o', but also, the minuso test has
23650 # not run yet. These depmodes are late enough in the game, and
23651 # so weak that their functioning should not be impacted.
23652 am__obj=conftest.${OBJEXT-o}
23657 if depmode=$depmode \
23658 source=sub/conftest.c object=$am__obj \
23659 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23660 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23661 >/dev/null 2>conftest.err &&
23662 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23663 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23664 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23665 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23666 # icc doesn't choke on unknown options, it will just issue warnings
23667 # or remarks (even with -Werror). So we grep stderr for any message
23668 # that says an option was ignored or not supported.
23669 # When given -MP, icc 7.0 and 7.1 complain thusly:
23670 # icc: Command line warning: ignoring option '-M'; no argument required
23671 # The diagnosis changed in icc 8.0:
23672 # icc: Command line remark: option '-MP' not supported
23673 if (grep 'ignoring option' conftest.err ||
23674 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23675 am_cv_CXX_dependencies_compiler_type=$depmode
23682 rm -rf conftest.dir
23684 am_cv_CXX_dependencies_compiler_type=none
23688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
23689 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23690 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23693 test "x$enable_dependency_tracking" != xno \
23694 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23695 am__fastdepCXX_TRUE=
23696 am__fastdepCXX_FALSE='#'
23698 am__fastdepCXX_TRUE='#'
23699 am__fastdepCXX_FALSE=
23703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
23704 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
23705 if test "${ax_cv_cxx_bool+set}" = set; then :
23706 $as_echo_n "(cached) " >&6
23710 ac_cpp='$CXXCPP $CPPFLAGS'
23711 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23712 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23713 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23716 /* end confdefs.h. */
23718 int f(int x){return 1;}
23719 int f(char x){return 1;}
23720 int f(bool x){return 1;}
23725 bool b = true; return f(b);
23730 if ac_fn_cxx_try_compile "$LINENO"; then :
23735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23737 ac_cpp='$CXXCPP $CPPFLAGS'
23738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23745 $as_echo "$ax_cv_cxx_bool" >&6; }
23746 if test "$ax_cv_cxx_bool" = yes; then
23748 $as_echo "#define HAVE_BOOL /**/" >>confdefs.h
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
23753 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
23754 if test "${ax_cv_cxx_namespaces+set}" = set; then :
23755 $as_echo_n "(cached) " >&6
23759 ac_cpp='$CXXCPP $CPPFLAGS'
23760 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23761 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23762 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23765 /* end confdefs.h. */
23766 namespace Outer { namespace Inner { int i = 0; }}
23770 using namespace Outer::Inner; return i;
23775 if ac_fn_cxx_try_compile "$LINENO"; then :
23776 ax_cv_cxx_namespaces=yes
23778 ax_cv_cxx_namespaces=no
23780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23782 ac_cpp='$CXXCPP $CPPFLAGS'
23783 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23784 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23785 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
23790 $as_echo "$ax_cv_cxx_namespaces" >&6; }
23791 if test "$ax_cv_cxx_namespaces" = yes; then
23793 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
23799 $as_echo_n "checking if g++ supports namespace std... " >&6; }
23800 if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
23801 $as_echo_n "(cached) " >&6
23805 ac_cpp='$CXXCPP $CPPFLAGS'
23806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23811 /* end confdefs.h. */
23812 #include <iostream>
23813 std::istream& is = std::cin;
23822 if ac_fn_cxx_try_compile "$LINENO"; then :
23823 ax_cv_cxx_have_std_namespace=yes
23825 ax_cv_cxx_have_std_namespace=no
23827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23829 ac_cpp='$CXXCPP $CPPFLAGS'
23830 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23831 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23832 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
23837 $as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
23838 if test "$ax_cv_cxx_have_std_namespace" = yes; then
23840 $as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
23845 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
23846 if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
23847 $as_echo_n "(cached) " >&6
23852 ac_cpp='$CXXCPP $CPPFLAGS'
23853 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23854 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23855 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23858 /* end confdefs.h. */
23859 #include <iostream>
23863 #ifdef HAVE_NAMESPACES
23864 using namespace std;
23874 if ac_fn_cxx_try_compile "$LINENO"; then :
23875 ac_cv_cxx_have_std_libs=yes
23877 ac_cv_cxx_have_std_libs=no
23879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23881 ac_cpp='$CXXCPP $CPPFLAGS'
23882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
23889 $as_echo "$ac_cv_cxx_have_std_libs" >&6; }
23890 if test "$ac_cv_cxx_have_std_libs" = yes; then
23892 $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
23897 $as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
23898 if test "${ac_cv_cxx_have_lstring+set}" = set; then :
23899 $as_echo_n "(cached) " >&6
23903 ac_cpp='$CXXCPP $CPPFLAGS'
23904 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23905 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23906 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23909 /* end confdefs.h. */
23910 const wchar_t* s=L"wide string";
23912 if ac_fn_cxx_try_compile "$LINENO"; then :
23913 ac_cv_cxx_have_lstring=yes
23915 ac_cv_cxx_have_lstring=no
23917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23919 ac_cpp='$CXXCPP $CPPFLAGS'
23920 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23921 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23922 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
23927 $as_echo "$ac_cv_cxx_have_lstring" >&6; }
23928 if test "$ac_cv_cxx_have_lstring" = yes; then
23930 $as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
23936 # Check whether --enable-openmp was given.
23937 if test "${enable_openmp+set}" = set; then :
23938 enableval=$enable_openmp;
23941 if test "$enable_openmp" != no; then
23942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
23943 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
23944 if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
23945 $as_echo_n "(cached) " >&6
23947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23948 /* end confdefs.h. */
23954 int main () { return omp_get_num_threads (); }
23957 if ac_fn_cxx_try_link "$LINENO"; then :
23958 ac_cv_prog_cxx_openmp='none needed'
23960 ac_cv_prog_cxx_openmp='unsupported'
23961 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
23962 ac_save_CXXFLAGS=$CXXFLAGS
23963 CXXFLAGS="$CXXFLAGS $ac_option"
23964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23965 /* end confdefs.h. */
23971 int main () { return omp_get_num_threads (); }
23974 if ac_fn_cxx_try_link "$LINENO"; then :
23975 ac_cv_prog_cxx_openmp=$ac_option
23977 rm -f core conftest.err conftest.$ac_objext \
23978 conftest$ac_exeext conftest.$ac_ext
23979 CXXFLAGS=$ac_save_CXXFLAGS
23980 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
23985 rm -f core conftest.err conftest.$ac_objext \
23986 conftest$ac_exeext conftest.$ac_ext
23988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
23989 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
23990 case $ac_cv_prog_cxx_openmp in #(
23991 "none needed" | unsupported)
23994 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
24000 ac_cpp='$CPP $CPPFLAGS'
24001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
24007 $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24009 test $ax_cv_cxx_bool = 'yes' && \
24010 test $ac_cv_cxx_have_lstring = 'yes' && \
24011 test $ax_cv_cxx_namespaces = 'yes' && \
24012 test $ac_cv_cxx_have_std_libs = 'yes' && \
24013 test $ax_cv_cxx_have_std_namespace = 'yes'; then
24014 have_magick_plus_plus='yes'
24016 have_magick_plus_plus='no (failed tests)'
24018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
24019 $as_echo "$have_magick_plus_plus" >&6; }
24022 if test "$have_magick_plus_plus" = 'yes'; then
24023 WITH_MAGICK_PLUS_PLUS_TRUE=
24024 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24026 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24027 WITH_MAGICK_PLUS_PLUS_FALSE=
24031 # Only check for delegate libraries in subdirectories if requested.
24032 if test "$enable_delegate_build" != 'no'; then
24033 # Check for delegate sub-directories and add -I & -L options as required.
24034 # This presumes that delegates are installed as detailed in the ImageMagick
24035 # README. If delegates are installed in a standard location where the
24036 # compiler will automatically find them then these options should not be
24040 # Most delegates have includes in the same directory as the library, but not all...
24043 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
24044 if test -d "$builddir/$dir"; then
24045 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24047 if test -d "$srcdirfull/$dir"; then
24048 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24054 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
24055 if test -d "$builddir/$dir/.libs"; then
24056 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24058 if test -d "$srcdirfull/$dir/.libs"; then
24059 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24062 if test -d "$builddir/$dir"; then
24063 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24065 if test -d "$srcdirfull/$dir"; then
24066 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24072 # Assume that delegate headers reside under same directory as ImageMagick
24073 # installation prefix.
24074 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24077 # Find the X11 RGB database
24079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
24080 $as_echo_n "checking for X11 configure files... " >&6; }
24081 if test "${im_cv_x_configure+set}" = set; then :
24082 $as_echo_n "(cached) " >&6
24084 # Look for the header file in a standard set of common directories.
24085 # Check X11 before X11Rn because it is often a symlink to the current release.
24094 /usr/XFree86/lib/X11 \
24102 /usr/local/X11/lib \
24103 /usr/local/X11R4/lib \
24104 /usr/local/X11R5/lib \
24105 /usr/local/X11R6/lib \
24107 /usr/local/lib/X11 \
24108 /usr/local/lib/X11R4 \
24109 /usr/local/lib/X11R5 \
24110 /usr/local/lib/X11R6 \
24111 /usr/local/lib/X11R7 \
24112 /usr/local/x11r5/lib \
24113 /usr/lpp/Xamples/lib \
24115 /usr/openwin/share/lib \
24116 /usr/unsupported/lib \
24119 if test -f "$ac_dir/X11/rgb.txt"; then
24120 im_cv_x_configure="$ac_dir/X11/"
24122 elif test -f "$ac_dir/rgb.txt"; then
24123 im_cv_x_configure="$ac_dir/"
24129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
24130 $as_echo "$im_cv_x_configure" >&6; }
24131 X11_CONFIGURE_PATH="$im_cv_x_configure"
24132 case "${build_os}" in
24134 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24138 cat >>confdefs.h <<_ACEOF
24139 #define X11_CONFIGURE_PATH "$X11ConfigurePath"
24144 # Find OpenMP library
24147 if test "$enable_openmp" != 'no'; then
24148 if test "${GCC}" = "yes"; then
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
24150 $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
24151 if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
24152 $as_echo_n "(cached) " >&6
24154 ac_check_lib_save_LIBS=$LIBS
24155 LIBS="-lgomp $LIBS"
24156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24157 /* end confdefs.h. */
24159 /* Override any GCC internal prototype to avoid an error.
24160 Use char because int might match the return type of a GCC
24161 builtin and then its argument prototype would still apply. */
24165 char GOMP_parallel_start ();
24169 return GOMP_parallel_start ();
24174 if ac_fn_c_try_link "$LINENO"; then :
24175 ac_cv_lib_gomp_GOMP_parallel_start=yes
24177 ac_cv_lib_gomp_GOMP_parallel_start=no
24179 rm -f core conftest.err conftest.$ac_objext \
24180 conftest$ac_exeext conftest.$ac_ext
24181 LIBS=$ac_check_lib_save_LIBS
24183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
24184 $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
24185 if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
24190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
24191 $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
24192 if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
24193 $as_echo_n "(cached) " >&6
24195 ac_check_lib_save_LIBS=$LIBS
24196 LIBS="-lmtsk $LIBS"
24197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24198 /* end confdefs.h. */
24200 /* Override any GCC internal prototype to avoid an error.
24201 Use char because int might match the return type of a GCC
24202 builtin and then its argument prototype would still apply. */
24206 char sunw_mp_register_warn ();
24210 return sunw_mp_register_warn ();
24215 if ac_fn_c_try_link "$LINENO"; then :
24216 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24218 ac_cv_lib_mtsk_sunw_mp_register_warn=no
24220 rm -f core conftest.err conftest.$ac_objext \
24221 conftest$ac_exeext conftest.$ac_ext
24222 LIBS=$ac_check_lib_save_LIBS
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
24225 $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
24226 if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
24230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
24231 $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
24232 if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
24233 $as_echo_n "(cached) " >&6
24235 ac_check_lib_save_LIBS=$LIBS
24236 LIBS="-lxlsmp $LIBS"
24237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24238 /* end confdefs.h. */
24240 /* Override any GCC internal prototype to avoid an error.
24241 Use char because int might match the return type of a GCC
24242 builtin and then its argument prototype would still apply. */
24246 char _xlsmpFlush ();
24250 return _xlsmpFlush ();
24255 if ac_fn_c_try_link "$LINENO"; then :
24256 ac_cv_lib_xlsmp__xlsmpFlush=yes
24258 ac_cv_lib_xlsmp__xlsmpFlush=no
24260 rm -f core conftest.err conftest.$ac_objext \
24261 conftest$ac_exeext conftest.$ac_ext
24262 LIBS=$ac_check_lib_save_LIBS
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
24265 $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
24266 if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
24267 GOMP_LIBS="-lxlsmp"
24270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
24271 $as_echo_n "checking for mp_destroy in -lmp... " >&6; }
24272 if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
24273 $as_echo_n "(cached) " >&6
24275 ac_check_lib_save_LIBS=$LIBS
24277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24278 /* end confdefs.h. */
24280 /* Override any GCC internal prototype to avoid an error.
24281 Use char because int might match the return type of a GCC
24282 builtin and then its argument prototype would still apply. */
24286 char mp_destroy ();
24290 return mp_destroy ();
24295 if ac_fn_c_try_link "$LINENO"; then :
24296 ac_cv_lib_mp_mp_destroy=yes
24298 ac_cv_lib_mp_mp_destroy=no
24300 rm -f core conftest.err conftest.$ac_objext \
24301 conftest$ac_exeext conftest.$ac_ext
24302 LIBS=$ac_check_lib_save_LIBS
24304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
24305 $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
24306 if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
24309 # SGI IRIX 6.5 MIPSpro C/C++
24311 LIBS="$GOMP_LIBS $LIBS"
24316 # Find Posix threads library
24319 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24321 if test "x$PTHREAD_LIBS" = "x"; then
24322 case "${host_cpu}-${host_os}" in
24328 ac_cpp='$CPP $CPPFLAGS'
24329 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24330 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24331 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24333 magick_pthread_lib_ok=no
24339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24340 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
24341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24342 /* end confdefs.h. */
24343 #include <pthread.h>
24348 pthread_join(th, 0);
24349 pthread_attr_init(0);
24350 pthread_cleanup_push(0, 0);
24351 pthread_create(0,0,0,0);
24352 pthread_cleanup_pop(0);
24357 if ac_fn_c_try_link "$LINENO"; then :
24358 magick_pthread_lib_ok=yes
24360 rm -f core conftest.err conftest.$ac_objext \
24361 conftest$ac_exeext conftest.$ac_ext
24363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24364 $as_echo "${magick_pthread_lib_ok}" >&6; }
24365 if test "$magick_pthread_lib_ok" = yes
24377 ac_cpp='$CPP $CPPFLAGS'
24378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24386 for lib in pthread pthreads; do
24387 if test "x$PTHREAD_LIBS" = "x"; then
24392 ac_cpp='$CPP $CPPFLAGS'
24393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24397 magick_pthread_lib_ok=no
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24404 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
24405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24406 /* end confdefs.h. */
24407 #include <pthread.h>
24412 pthread_join(th, 0);
24413 pthread_attr_init(0);
24414 pthread_cleanup_push(0, 0);
24415 pthread_create(0,0,0,0);
24416 pthread_cleanup_pop(0);
24421 if ac_fn_c_try_link "$LINENO"; then :
24422 magick_pthread_lib_ok=yes
24424 rm -f core conftest.err conftest.$ac_objext \
24425 conftest$ac_exeext conftest.$ac_ext
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24428 $as_echo "${magick_pthread_lib_ok}" >&6; }
24429 if test "$magick_pthread_lib_ok" = yes
24431 PTHREAD_LIBS=-l$lib
24441 ac_cpp='$CPP $CPPFLAGS'
24442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24450 THREAD_LIBS="$PTHREAD_LIBS"
24451 LIBS="$LIBS $THREAD_LIBS"
24460 if test "$with_umem" != 'no'; then
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
24462 $as_echo_n "checking for UMEM support ... " >&6; }
24463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24467 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24468 if test "x$ac_cv_header_umem_h" = x""yes; then :
24469 passed=`expr $passed + 1`
24471 failed=`expr $failed + 1`
24475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
24476 $as_echo_n "checking for umem_alloc in -lumem... " >&6; }
24477 if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
24478 $as_echo_n "(cached) " >&6
24480 ac_check_lib_save_LIBS=$LIBS
24481 LIBS="-lumem $LIBS"
24482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24483 /* end confdefs.h. */
24485 /* Override any GCC internal prototype to avoid an error.
24486 Use char because int might match the return type of a GCC
24487 builtin and then its argument prototype would still apply. */
24491 char umem_alloc ();
24495 return umem_alloc ();
24500 if ac_fn_c_try_link "$LINENO"; then :
24501 ac_cv_lib_umem_umem_alloc=yes
24503 ac_cv_lib_umem_umem_alloc=no
24505 rm -f core conftest.err conftest.$ac_objext \
24506 conftest$ac_exeext conftest.$ac_ext
24507 LIBS=$ac_check_lib_save_LIBS
24509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
24510 $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
24511 if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
24512 passed=`expr $passed + 1`
24514 failed=`expr $failed + 1`
24517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
24518 $as_echo_n "checking for umem_free in -lumem... " >&6; }
24519 if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
24520 $as_echo_n "(cached) " >&6
24522 ac_check_lib_save_LIBS=$LIBS
24523 LIBS="-lumem $LIBS"
24524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24525 /* end confdefs.h. */
24527 /* Override any GCC internal prototype to avoid an error.
24528 Use char because int might match the return type of a GCC
24529 builtin and then its argument prototype would still apply. */
24537 return umem_free ();
24542 if ac_fn_c_try_link "$LINENO"; then :
24543 ac_cv_lib_umem_umem_free=yes
24545 ac_cv_lib_umem_umem_free=no
24547 rm -f core conftest.err conftest.$ac_objext \
24548 conftest$ac_exeext conftest.$ac_ext
24549 LIBS=$ac_check_lib_save_LIBS
24551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
24552 $as_echo "$ac_cv_lib_umem_umem_free" >&6; }
24553 if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
24554 passed=`expr $passed + 1`
24556 failed=`expr $failed + 1`
24559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
24560 $as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24561 if test $passed -gt 0; then
24562 if test $failed -gt 0; then
24563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
24564 $as_echo "no -- some components failed test" >&6; }
24565 have_umem='no (failed tests)'
24568 LIBS="$UMEM_LIBS $LIBS"
24570 $as_echo "#define HasUMEM 1" >>confdefs.h
24572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24573 $as_echo "yes" >&6; }
24577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24578 $as_echo "no" >&6; }
24581 if test "$have_umem" = 'yes'; then
24592 # Add support for ccmalloc memory debugging library if requested
24596 if test "$enable_ccmalloc" = 'yes'; then
24597 # Extract the first word of "ccmalloc", so it can be a program name with args.
24598 set dummy ccmalloc; ac_word=$2
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24600 $as_echo_n "checking for $ac_word... " >&6; }
24601 if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
24602 $as_echo_n "(cached) " >&6
24604 case $CCMALLOCDelegate in
24606 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24610 for as_dir in $PATH
24613 test -z "$as_dir" && as_dir=.
24614 for ac_exec_ext in '' $ac_executable_extensions; do
24615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24616 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
24617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24627 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24628 if test -n "$CCMALLOCDelegate"; then
24629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
24630 $as_echo "$CCMALLOCDelegate" >&6; }
24632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24633 $as_echo "no" >&6; }
24637 if test -n "$CCMALLOCDelegate"; then
24638 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24640 # Assume that gcc is used with ccmalloc.
24641 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
24642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
24643 $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
24644 if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
24645 $as_echo_n "(cached) " >&6
24647 ac_check_lib_save_LIBS=$LIBS
24648 LIBS="-lccmalloc -ldl $LIBS"
24649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24650 /* end confdefs.h. */
24652 /* Override any GCC internal prototype to avoid an error.
24653 Use char because int might match the return type of a GCC
24654 builtin and then its argument prototype would still apply. */
24658 char ccmalloc_malloc ();
24662 return ccmalloc_malloc ();
24667 if ac_fn_c_try_link "$LINENO"; then :
24668 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24670 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
24672 rm -f core conftest.err conftest.$ac_objext \
24673 conftest$ac_exeext conftest.$ac_ext
24674 LIBS=$ac_check_lib_save_LIBS
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
24677 $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
24678 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
24679 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24682 if test -n "$CCMALLOC_LIBS"; then
24684 LIBS="$LIBS $CCMALLOC_LIBS"
24685 have_ccmalloc='yes'
24693 # Add support for efence memory debugging library if requested
24695 if test "$enable_efence" = 'yes'; then
24696 EFENCE_LIBS='-lefence'
24697 LIBS="$EFENCE_LIBS $LIBS"
24706 # Check whether --with-bzlib was given.
24707 if test "${with_bzlib+set}" = set; then :
24708 withval=$with_bzlib; with_bzlib=$withval
24714 if test "$with_bzlib" != 'yes'; then
24715 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24719 if test "$with_bzlib" != 'no'; then
24721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24722 $as_echo "-------------------------------------------------------------" >&6; }
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
24724 $as_echo_n "checking for BZLIB... " >&6; }
24725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24730 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24731 if test "x$ac_cv_header_bzlib_h" = x""yes; then :
24732 passed=`expr $passed + 1`
24734 failed=`expr $failed + 1`
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
24739 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
24740 if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
24741 $as_echo_n "(cached) " >&6
24743 ac_check_lib_save_LIBS=$LIBS
24745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24746 /* end confdefs.h. */
24748 /* Override any GCC internal prototype to avoid an error.
24749 Use char because int might match the return type of a GCC
24750 builtin and then its argument prototype would still apply. */
24754 char BZ2_bzDecompress ();
24758 return BZ2_bzDecompress ();
24763 if ac_fn_c_try_link "$LINENO"; then :
24764 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24766 ac_cv_lib_bz2_BZ2_bzDecompress=no
24768 rm -f core conftest.err conftest.$ac_objext \
24769 conftest$ac_exeext conftest.$ac_ext
24770 LIBS=$ac_check_lib_save_LIBS
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
24773 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
24774 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
24775 found_libbz=`expr $found_libbz + 1`
24778 if test "$native_win32_build" = 'yes'; then
24779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
24780 $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
24781 if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
24782 $as_echo_n "(cached) " >&6
24784 ac_check_lib_save_LIBS=$LIBS
24786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24787 /* end confdefs.h. */
24789 /* Override any GCC internal prototype to avoid an error.
24790 Use char because int might match the return type of a GCC
24791 builtin and then its argument prototype would still apply. */
24795 char _imp__BZ2_decompress ();
24799 return _imp__BZ2_decompress ();
24804 if ac_fn_c_try_link "$LINENO"; then :
24805 ac_cv_lib_bz2__imp__BZ2_decompress=yes
24807 ac_cv_lib_bz2__imp__BZ2_decompress=no
24809 rm -f core conftest.err conftest.$ac_objext \
24810 conftest$ac_exeext conftest.$ac_ext
24811 LIBS=$ac_check_lib_save_LIBS
24813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
24814 $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
24815 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
24816 found_libbz=`expr $found_libbz + 1`
24820 if test $found_libbz -gt 0; then
24821 passed=`expr $passed + 1`
24823 failed=`expr $failed + 1`
24825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
24826 $as_echo_n "checking if BZLIB package is complete... " >&6; }
24827 if test $passed -gt 0; then
24828 if test $failed -gt 0; then
24829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
24830 $as_echo "no -- some components failed test" >&6; }
24831 have_bzlib='no (failed tests)'
24834 LIBS="$BZLIB_LIBS $LIBS"
24836 $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24839 $as_echo "yes" >&6; }
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24844 $as_echo "no" >&6; }
24847 if test "$have_bzlib" = 'yes'; then
24848 BZLIB_DELEGATE_TRUE=
24849 BZLIB_DELEGATE_FALSE='#'
24851 BZLIB_DELEGATE_TRUE='#'
24852 BZLIB_DELEGATE_FALSE=
24858 # Find the X11 include and library directories.
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24865 $as_echo_n "checking for X... " >&6; }
24868 # Check whether --with-x was given.
24869 if test "${with_x+set}" = set; then :
24873 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24874 if test "x$with_x" = xno; then
24875 # The user explicitly disabled X.
24878 case $x_includes,$x_libraries in #(
24879 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
24880 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24881 $as_echo_n "(cached) " >&6
24883 # One or both of the vars are not set, and there is no cached value.
24884 ac_x_includes=no ac_x_libraries=no
24885 rm -f -r conftest.dir
24886 if mkdir conftest.dir; then
24888 cat >Imakefile <<'_ACEOF'
24890 @echo incroot='${INCROOT}'
24892 @echo usrlibdir='${USRLIBDIR}'
24894 @echo libdir='${LIBDIR}'
24896 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24897 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
24898 for ac_var in incroot usrlibdir libdir; do
24899 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24901 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24902 for ac_extension in a so sl dylib la dll; do
24903 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24904 test -f "$ac_im_libdir/libX11.$ac_extension"; then
24905 ac_im_usrlibdir=$ac_im_libdir; break
24908 # Screen out bogus values from the imake configuration. They are
24909 # bogus both because they are the default anyway, and because
24910 # using them would break gcc on systems where it needs fixed includes.
24911 case $ac_im_incroot in
24912 /usr/include) ac_x_includes= ;;
24913 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24915 case $ac_im_usrlibdir in
24916 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24917 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24921 rm -f -r conftest.dir
24924 # Standard set of common directories for X headers.
24925 # Check X11 before X11Rn because it is often a symlink to the current release.
24939 /usr/local/X11/include
24940 /usr/local/X11R7/include
24941 /usr/local/X11R6/include
24942 /usr/local/X11R5/include
24943 /usr/local/X11R4/include
24945 /usr/local/include/X11
24946 /usr/local/include/X11R7
24947 /usr/local/include/X11R6
24948 /usr/local/include/X11R5
24949 /usr/local/include/X11R4
24953 /usr/XFree86/include/X11
24957 /usr/unsupported/include
24958 /usr/athena/include
24959 /usr/local/x11r5/include
24960 /usr/lpp/Xamples/include
24962 /usr/openwin/include
24963 /usr/openwin/share/include'
24965 if test "$ac_x_includes" = no; then
24966 # Guess where to find include files, by looking for Xlib.h.
24967 # First, try using that file with no special directory specified.
24968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24969 /* end confdefs.h. */
24970 #include <X11/Xlib.h>
24972 if ac_fn_c_try_cpp "$LINENO"; then :
24973 # We can compile using X headers with no special include directory.
24976 for ac_dir in $ac_x_header_dirs; do
24977 if test -r "$ac_dir/X11/Xlib.h"; then
24978 ac_x_includes=$ac_dir
24983 rm -f conftest.err conftest.$ac_ext
24984 fi # $ac_x_includes = no
24986 if test "$ac_x_libraries" = no; then
24987 # Check for the libraries.
24988 # See if we find them without any special options.
24989 # Don't add to $LIBS permanently.
24992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24993 /* end confdefs.h. */
24994 #include <X11/Xlib.h>
25003 if ac_fn_c_try_link "$LINENO"; then :
25005 # We can link X programs with no special library path.
25009 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25011 # Don't even attempt the hair of trying to link an X program!
25012 for ac_extension in a so sl dylib la dll; do
25013 if test -r "$ac_dir/libX11.$ac_extension"; then
25014 ac_x_libraries=$ac_dir
25020 rm -f core conftest.err conftest.$ac_objext \
25021 conftest$ac_exeext conftest.$ac_ext
25022 fi # $ac_x_libraries = no
25024 case $ac_x_includes,$ac_x_libraries in #(
25025 no,* | *,no | *\'*)
25026 # Didn't find X, or a directory has "'" in its name.
25027 ac_cv_have_x="have_x=no";; #(
25029 # Record where we found X for the cache.
25030 ac_cv_have_x="have_x=yes\
25031 ac_x_includes='$ac_x_includes'\
25032 ac_x_libraries='$ac_x_libraries'"
25038 eval "$ac_cv_have_x"
25041 if test "$have_x" != yes; then
25042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25043 $as_echo "$have_x" >&6; }
25046 # If each of the values was on the command line, it overrides each guess.
25047 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25048 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25049 # Update the cache value to reflect the command line values.
25050 ac_cv_have_x="have_x=yes\
25051 ac_x_includes='$x_includes'\
25052 ac_x_libraries='$x_libraries'"
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25054 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25057 if test "$no_x" = yes; then
25058 # Not all programs may use this symbol, but it does not hurt to define it.
25060 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25062 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25064 if test -n "$x_includes"; then
25065 X_CFLAGS="$X_CFLAGS -I$x_includes"
25068 # It would also be nice to do this for all -L options, not just this one.
25069 if test -n "$x_libraries"; then
25070 X_LIBS="$X_LIBS -L$x_libraries"
25071 # For Solaris; some versions of Sun CC require a space after -R and
25072 # others require no space. Words are not sufficient . . . .
25073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25074 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25075 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25076 ac_xsave_c_werror_flag=$ac_c_werror_flag
25077 ac_c_werror_flag=yes
25078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25079 /* end confdefs.h. */
25089 if ac_fn_c_try_link "$LINENO"; then :
25090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25091 $as_echo "no" >&6; }
25092 X_LIBS="$X_LIBS -R$x_libraries"
25094 LIBS="$ac_xsave_LIBS -R $x_libraries"
25095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25096 /* end confdefs.h. */
25106 if ac_fn_c_try_link "$LINENO"; then :
25107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25108 $as_echo "yes" >&6; }
25109 X_LIBS="$X_LIBS -R $x_libraries"
25111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25112 $as_echo "neither works" >&6; }
25114 rm -f core conftest.err conftest.$ac_objext \
25115 conftest$ac_exeext conftest.$ac_ext
25117 rm -f core conftest.err conftest.$ac_objext \
25118 conftest$ac_exeext conftest.$ac_ext
25119 ac_c_werror_flag=$ac_xsave_c_werror_flag
25120 LIBS=$ac_xsave_LIBS
25123 # Check for system-dependent libraries X programs must link with.
25124 # Do this before checking for the system-independent R6 libraries
25125 # (-lICE), since we may need -lsocket or whatever for X linking.
25127 if test "$ISC" = yes; then
25128 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25130 # Martyn Johnson says this is needed for Ultrix, if the X
25131 # libraries were built with DECnet support. And Karl Berry says
25132 # the Alpha needs dnet_stub (dnet does not exist).
25133 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25135 /* end confdefs.h. */
25137 /* Override any GCC internal prototype to avoid an error.
25138 Use char because int might match the return type of a GCC
25139 builtin and then its argument prototype would still apply. */
25143 char XOpenDisplay ();
25147 return XOpenDisplay ();
25152 if ac_fn_c_try_link "$LINENO"; then :
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25156 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25157 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
25158 $as_echo_n "(cached) " >&6
25160 ac_check_lib_save_LIBS=$LIBS
25161 LIBS="-ldnet $LIBS"
25162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25163 /* end confdefs.h. */
25165 /* Override any GCC internal prototype to avoid an error.
25166 Use char because int might match the return type of a GCC
25167 builtin and then its argument prototype would still apply. */
25175 return dnet_ntoa ();
25180 if ac_fn_c_try_link "$LINENO"; then :
25181 ac_cv_lib_dnet_dnet_ntoa=yes
25183 ac_cv_lib_dnet_dnet_ntoa=no
25185 rm -f core conftest.err conftest.$ac_objext \
25186 conftest$ac_exeext conftest.$ac_ext
25187 LIBS=$ac_check_lib_save_LIBS
25189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25190 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25191 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
25192 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25195 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25197 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25198 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
25199 $as_echo_n "(cached) " >&6
25201 ac_check_lib_save_LIBS=$LIBS
25202 LIBS="-ldnet_stub $LIBS"
25203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25204 /* end confdefs.h. */
25206 /* Override any GCC internal prototype to avoid an error.
25207 Use char because int might match the return type of a GCC
25208 builtin and then its argument prototype would still apply. */
25216 return dnet_ntoa ();
25221 if ac_fn_c_try_link "$LINENO"; then :
25222 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25224 ac_cv_lib_dnet_stub_dnet_ntoa=no
25226 rm -f core conftest.err conftest.$ac_objext \
25227 conftest$ac_exeext conftest.$ac_ext
25228 LIBS=$ac_check_lib_save_LIBS
25230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25231 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25232 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
25233 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25238 rm -f core conftest.err conftest.$ac_objext \
25239 conftest$ac_exeext conftest.$ac_ext
25240 LIBS="$ac_xsave_LIBS"
25242 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25243 # to get the SysV transport functions.
25244 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25246 # The nsl library prevents programs from opening the X display
25247 # on Irix 5.2, according to T.E. Dickey.
25248 # The functions gethostbyname, getservbyname, and inet_addr are
25249 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25250 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25251 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
25255 if test $ac_cv_func_gethostbyname = no; then
25256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25257 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25258 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
25259 $as_echo_n "(cached) " >&6
25261 ac_check_lib_save_LIBS=$LIBS
25263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25264 /* end confdefs.h. */
25266 /* Override any GCC internal prototype to avoid an error.
25267 Use char because int might match the return type of a GCC
25268 builtin and then its argument prototype would still apply. */
25272 char gethostbyname ();
25276 return gethostbyname ();
25281 if ac_fn_c_try_link "$LINENO"; then :
25282 ac_cv_lib_nsl_gethostbyname=yes
25284 ac_cv_lib_nsl_gethostbyname=no
25286 rm -f core conftest.err conftest.$ac_objext \
25287 conftest$ac_exeext conftest.$ac_ext
25288 LIBS=$ac_check_lib_save_LIBS
25290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25291 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25292 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
25293 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25296 if test $ac_cv_lib_nsl_gethostbyname = no; then
25297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25298 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25299 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
25300 $as_echo_n "(cached) " >&6
25302 ac_check_lib_save_LIBS=$LIBS
25304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25305 /* end confdefs.h. */
25307 /* Override any GCC internal prototype to avoid an error.
25308 Use char because int might match the return type of a GCC
25309 builtin and then its argument prototype would still apply. */
25313 char gethostbyname ();
25317 return gethostbyname ();
25322 if ac_fn_c_try_link "$LINENO"; then :
25323 ac_cv_lib_bsd_gethostbyname=yes
25325 ac_cv_lib_bsd_gethostbyname=no
25327 rm -f core conftest.err conftest.$ac_objext \
25328 conftest$ac_exeext conftest.$ac_ext
25329 LIBS=$ac_check_lib_save_LIBS
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25332 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25333 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
25334 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25340 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25341 # socket/setsockopt and other routines are undefined under SCO ODT
25342 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25343 # on later versions), says Simon Leinen: it contains gethostby*
25344 # variants that don't use the name server (or something). -lsocket
25345 # must be given before -lnsl if both are needed. We assume that
25346 # if connect needs -lnsl, so does gethostbyname.
25347 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25348 if test "x$ac_cv_func_connect" = x""yes; then :
25352 if test $ac_cv_func_connect = no; then
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25354 $as_echo_n "checking for connect in -lsocket... " >&6; }
25355 if test "${ac_cv_lib_socket_connect+set}" = set; then :
25356 $as_echo_n "(cached) " >&6
25358 ac_check_lib_save_LIBS=$LIBS
25359 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25361 /* end confdefs.h. */
25363 /* Override any GCC internal prototype to avoid an error.
25364 Use char because int might match the return type of a GCC
25365 builtin and then its argument prototype would still apply. */
25378 if ac_fn_c_try_link "$LINENO"; then :
25379 ac_cv_lib_socket_connect=yes
25381 ac_cv_lib_socket_connect=no
25383 rm -f core conftest.err conftest.$ac_objext \
25384 conftest$ac_exeext conftest.$ac_ext
25385 LIBS=$ac_check_lib_save_LIBS
25387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25388 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25389 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
25390 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25395 # Guillermo Gomez says -lposix is necessary on A/UX.
25396 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25397 if test "x$ac_cv_func_remove" = x""yes; then :
25401 if test $ac_cv_func_remove = no; then
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25403 $as_echo_n "checking for remove in -lposix... " >&6; }
25404 if test "${ac_cv_lib_posix_remove+set}" = set; then :
25405 $as_echo_n "(cached) " >&6
25407 ac_check_lib_save_LIBS=$LIBS
25408 LIBS="-lposix $LIBS"
25409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25410 /* end confdefs.h. */
25412 /* Override any GCC internal prototype to avoid an error.
25413 Use char because int might match the return type of a GCC
25414 builtin and then its argument prototype would still apply. */
25427 if ac_fn_c_try_link "$LINENO"; then :
25428 ac_cv_lib_posix_remove=yes
25430 ac_cv_lib_posix_remove=no
25432 rm -f core conftest.err conftest.$ac_objext \
25433 conftest$ac_exeext conftest.$ac_ext
25434 LIBS=$ac_check_lib_save_LIBS
25436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25437 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25438 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
25439 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25444 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25445 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25446 if test "x$ac_cv_func_shmat" = x""yes; then :
25450 if test $ac_cv_func_shmat = no; then
25451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25452 $as_echo_n "checking for shmat in -lipc... " >&6; }
25453 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
25454 $as_echo_n "(cached) " >&6
25456 ac_check_lib_save_LIBS=$LIBS
25458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25459 /* end confdefs.h. */
25461 /* Override any GCC internal prototype to avoid an error.
25462 Use char because int might match the return type of a GCC
25463 builtin and then its argument prototype would still apply. */
25476 if ac_fn_c_try_link "$LINENO"; then :
25477 ac_cv_lib_ipc_shmat=yes
25479 ac_cv_lib_ipc_shmat=no
25481 rm -f core conftest.err conftest.$ac_objext \
25482 conftest$ac_exeext conftest.$ac_ext
25483 LIBS=$ac_check_lib_save_LIBS
25485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25486 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25487 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
25488 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25494 # Check for libraries that X11R6 Xt/Xaw programs need.
25495 ac_save_LDFLAGS=$LDFLAGS
25496 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25497 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25498 # check for ICE first), but we must link in the order -lSM -lICE or
25499 # we get undefined symbols. So assume we have SM if we have ICE.
25500 # These have to be linked with before -lX11, unlike the other
25501 # libraries we check for below, so use a different variable.
25502 # John Interrante, Karl Berry
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25504 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25505 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
25506 $as_echo_n "(cached) " >&6
25508 ac_check_lib_save_LIBS=$LIBS
25509 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25511 /* end confdefs.h. */
25513 /* Override any GCC internal prototype to avoid an error.
25514 Use char because int might match the return type of a GCC
25515 builtin and then its argument prototype would still apply. */
25519 char IceConnectionNumber ();
25523 return IceConnectionNumber ();
25528 if ac_fn_c_try_link "$LINENO"; then :
25529 ac_cv_lib_ICE_IceConnectionNumber=yes
25531 ac_cv_lib_ICE_IceConnectionNumber=no
25533 rm -f core conftest.err conftest.$ac_objext \
25534 conftest$ac_exeext conftest.$ac_ext
25535 LIBS=$ac_check_lib_save_LIBS
25537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25538 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25539 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
25540 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25543 LDFLAGS=$ac_save_LDFLAGS
25547 if test "$no_x" != 'yes'; then
25548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25549 $as_echo "-------------------------------------------------------------" >&6; }
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
25551 $as_echo_n "checking for X11... " >&6; }
25552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25554 LDFLAGS="$LDFLAGS $X_LIBS"
25555 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25556 LIBS="$X11_LIBS $LIBS"
25557 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25560 $as_echo "#define X11_DELEGATE 1" >>confdefs.h
25563 # Check for X11 shared memory extension
25565 # shmctl is required to support the shared memory extension
25566 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25567 if test "x$ac_cv_func_shmctl" = x""yes; then :
25571 if test "$have_shmctl" != 'yes'; then
25573 LIBS="$LIBS -lcygipc"
25574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25575 /* end confdefs.h. */
25577 /* Override any GCC internal prototype to avoid an error.
25578 Use char because int might match the return type of a GCC
25579 builtin and then its argument prototype would still apply. */
25592 if ac_fn_c_try_link "$LINENO"; then :
25593 have_shmctl='yes'; IPC_LIBS='-lcygipc'
25595 rm -f core conftest.err conftest.$ac_objext \
25596 conftest$ac_exeext conftest.$ac_ext
25600 if test "$have_shmctl" = 'yes'; then
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
25602 $as_echo_n "checking for XShmAttach in -lXext... " >&6; }
25603 if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
25604 $as_echo_n "(cached) " >&6
25606 ac_check_lib_save_LIBS=$LIBS
25607 LIBS="-lXext $LIBS"
25608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25609 /* end confdefs.h. */
25611 /* Override any GCC internal prototype to avoid an error.
25612 Use char because int might match the return type of a GCC
25613 builtin and then its argument prototype would still apply. */
25617 char XShmAttach ();
25621 return XShmAttach ();
25626 if ac_fn_c_try_link "$LINENO"; then :
25627 ac_cv_lib_Xext_XShmAttach=yes
25629 ac_cv_lib_Xext_XShmAttach=no
25631 rm -f core conftest.err conftest.$ac_objext \
25632 conftest$ac_exeext conftest.$ac_ext
25633 LIBS=$ac_check_lib_save_LIBS
25635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
25636 $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
25637 if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
25638 XEXT_LIBS='-lXext' ;
25639 $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
25646 # Check for X11 shape extension
25648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
25649 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
25650 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
25651 $as_echo_n "(cached) " >&6
25653 ac_check_lib_save_LIBS=$LIBS
25654 LIBS="-lXext $LIBS"
25655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25656 /* end confdefs.h. */
25658 /* Override any GCC internal prototype to avoid an error.
25659 Use char because int might match the return type of a GCC
25660 builtin and then its argument prototype would still apply. */
25664 char XShapeCombineMask ();
25668 return XShapeCombineMask ();
25673 if ac_fn_c_try_link "$LINENO"; then :
25674 ac_cv_lib_Xext_XShapeCombineMask=yes
25676 ac_cv_lib_Xext_XShapeCombineMask=no
25678 rm -f core conftest.err conftest.$ac_objext \
25679 conftest$ac_exeext conftest.$ac_ext
25680 LIBS=$ac_check_lib_save_LIBS
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
25683 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
25684 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
25685 XEXT_LIBS='-lXext' ;
25686 $as_echo "#define HAVE_SHAPE 1" >>confdefs.h
25690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
25691 $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
25692 if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
25693 $as_echo_n "(cached) " >&6
25695 ac_check_lib_save_LIBS=$LIBS
25697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25698 /* end confdefs.h. */
25700 /* Override any GCC internal prototype to avoid an error.
25701 Use char because int might match the return type of a GCC
25702 builtin and then its argument prototype would still apply. */
25706 char XtSetEventDispatcher ();
25710 return XtSetEventDispatcher ();
25715 if ac_fn_c_try_link "$LINENO"; then :
25716 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25718 ac_cv_lib_Xt_XtSetEventDispatcher=no
25720 rm -f core conftest.err conftest.$ac_objext \
25721 conftest$ac_exeext conftest.$ac_ext
25722 LIBS=$ac_check_lib_save_LIBS
25724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
25725 $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
25726 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
25730 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25732 if test "$no_x" != 'yes'; then
25737 if test "$have_x" = 'yes'; then
25739 X11_DELEGATE_FALSE='#'
25741 X11_DELEGATE_TRUE='#'
25742 X11_DELEGATE_FALSE=
25753 # Check whether --with-zlib was given.
25754 if test "${with_zlib+set}" = set; then :
25755 withval=$with_zlib; with_zlib=$withval
25761 if test "$with_zlib" != 'yes'; then
25762 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25767 if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
25768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25769 $as_echo "-------------------------------------------------------------" >&6; }
25770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
25771 $as_echo_n "checking for ZLIB... " >&6; }
25772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25777 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
25778 if test "x$ac_cv_header_zconf_h" = x""yes; then :
25779 passed=`expr $passed + 1`
25781 failed=`expr $failed + 1`
25785 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
25786 if test "x$ac_cv_header_zlib_h" = x""yes; then :
25787 passed=`expr $passed + 1`
25789 failed=`expr $failed + 1`
25793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
25794 $as_echo_n "checking for compress in -lz... " >&6; }
25795 if test "${ac_cv_lib_z_compress+set}" = set; then :
25796 $as_echo_n "(cached) " >&6
25798 ac_check_lib_save_LIBS=$LIBS
25800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25801 /* end confdefs.h. */
25803 /* Override any GCC internal prototype to avoid an error.
25804 Use char because int might match the return type of a GCC
25805 builtin and then its argument prototype would still apply. */
25813 return compress ();
25818 if ac_fn_c_try_link "$LINENO"; then :
25819 ac_cv_lib_z_compress=yes
25821 ac_cv_lib_z_compress=no
25823 rm -f core conftest.err conftest.$ac_objext \
25824 conftest$ac_exeext conftest.$ac_ext
25825 LIBS=$ac_check_lib_save_LIBS
25827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
25828 $as_echo "$ac_cv_lib_z_compress" >&6; }
25829 if test "x$ac_cv_lib_z_compress" = x""yes; then :
25830 passed=`expr $passed + 1`
25832 failed=`expr $failed + 1`
25835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
25836 $as_echo_n "checking for uncompress in -lz... " >&6; }
25837 if test "${ac_cv_lib_z_uncompress+set}" = set; then :
25838 $as_echo_n "(cached) " >&6
25840 ac_check_lib_save_LIBS=$LIBS
25842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25843 /* end confdefs.h. */
25845 /* Override any GCC internal prototype to avoid an error.
25846 Use char because int might match the return type of a GCC
25847 builtin and then its argument prototype would still apply. */
25851 char uncompress ();
25855 return uncompress ();
25860 if ac_fn_c_try_link "$LINENO"; then :
25861 ac_cv_lib_z_uncompress=yes
25863 ac_cv_lib_z_uncompress=no
25865 rm -f core conftest.err conftest.$ac_objext \
25866 conftest$ac_exeext conftest.$ac_ext
25867 LIBS=$ac_check_lib_save_LIBS
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
25870 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
25871 if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
25872 passed=`expr $passed + 1`
25874 failed=`expr $failed + 1`
25877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
25878 $as_echo_n "checking for deflate in -lz... " >&6; }
25879 if test "${ac_cv_lib_z_deflate+set}" = set; then :
25880 $as_echo_n "(cached) " >&6
25882 ac_check_lib_save_LIBS=$LIBS
25884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25885 /* end confdefs.h. */
25887 /* Override any GCC internal prototype to avoid an error.
25888 Use char because int might match the return type of a GCC
25889 builtin and then its argument prototype would still apply. */
25902 if ac_fn_c_try_link "$LINENO"; then :
25903 ac_cv_lib_z_deflate=yes
25905 ac_cv_lib_z_deflate=no
25907 rm -f core conftest.err conftest.$ac_objext \
25908 conftest$ac_exeext conftest.$ac_ext
25909 LIBS=$ac_check_lib_save_LIBS
25911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
25912 $as_echo "$ac_cv_lib_z_deflate" >&6; }
25913 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
25914 passed=`expr $passed + 1`
25916 failed=`expr $failed + 1`
25919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
25920 $as_echo_n "checking for inflate in -lz... " >&6; }
25921 if test "${ac_cv_lib_z_inflate+set}" = set; then :
25922 $as_echo_n "(cached) " >&6
25924 ac_check_lib_save_LIBS=$LIBS
25926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25927 /* end confdefs.h. */
25929 /* Override any GCC internal prototype to avoid an error.
25930 Use char because int might match the return type of a GCC
25931 builtin and then its argument prototype would still apply. */
25944 if ac_fn_c_try_link "$LINENO"; then :
25945 ac_cv_lib_z_inflate=yes
25947 ac_cv_lib_z_inflate=no
25949 rm -f core conftest.err conftest.$ac_objext \
25950 conftest$ac_exeext conftest.$ac_ext
25951 LIBS=$ac_check_lib_save_LIBS
25953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
25954 $as_echo "$ac_cv_lib_z_inflate" >&6; }
25955 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
25956 passed=`expr $passed + 1`
25958 failed=`expr $failed + 1`
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
25962 $as_echo_n "checking for gzseek in -lz... " >&6; }
25963 if test "${ac_cv_lib_z_gzseek+set}" = set; then :
25964 $as_echo_n "(cached) " >&6
25966 ac_check_lib_save_LIBS=$LIBS
25968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25969 /* end confdefs.h. */
25971 /* Override any GCC internal prototype to avoid an error.
25972 Use char because int might match the return type of a GCC
25973 builtin and then its argument prototype would still apply. */
25986 if ac_fn_c_try_link "$LINENO"; then :
25987 ac_cv_lib_z_gzseek=yes
25989 ac_cv_lib_z_gzseek=no
25991 rm -f core conftest.err conftest.$ac_objext \
25992 conftest$ac_exeext conftest.$ac_ext
25993 LIBS=$ac_check_lib_save_LIBS
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
25996 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
25997 if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
25998 passed=`expr $passed + 1`
26000 failed=`expr $failed + 1`
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
26004 $as_echo_n "checking for gztell in -lz... " >&6; }
26005 if test "${ac_cv_lib_z_gztell+set}" = set; then :
26006 $as_echo_n "(cached) " >&6
26008 ac_check_lib_save_LIBS=$LIBS
26010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26011 /* end confdefs.h. */
26013 /* Override any GCC internal prototype to avoid an error.
26014 Use char because int might match the return type of a GCC
26015 builtin and then its argument prototype would still apply. */
26028 if ac_fn_c_try_link "$LINENO"; then :
26029 ac_cv_lib_z_gztell=yes
26031 ac_cv_lib_z_gztell=no
26033 rm -f core conftest.err conftest.$ac_objext \
26034 conftest$ac_exeext conftest.$ac_ext
26035 LIBS=$ac_check_lib_save_LIBS
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
26038 $as_echo "$ac_cv_lib_z_gztell" >&6; }
26039 if test "x$ac_cv_lib_z_gztell" = x""yes; then :
26040 passed=`expr $passed + 1`
26042 failed=`expr $failed + 1`
26045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
26046 $as_echo_n "checking if ZLIB package is complete... " >&6; }
26047 if test $passed -gt 0; then
26048 if test $failed -gt 0; then
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26050 $as_echo "no -- some components failed test" >&6; }
26051 have_zlib='no (failed tests)'
26054 LIBS="$ZLIB_LIBS $LIBS"
26056 $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
26058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26059 $as_echo "yes" >&6; }
26063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26064 $as_echo "no" >&6; }
26067 if test "$have_zlib" = 'yes'; then
26068 ZLIB_DELEGATE_TRUE=
26069 ZLIB_DELEGATE_FALSE='#'
26071 ZLIB_DELEGATE_TRUE='#'
26072 ZLIB_DELEGATE_FALSE=
26078 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26081 if test "$enable_profiling" = 'yes'; then
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
26083 $as_echo_n "checking for dlopen in -ldl... " >&6; }
26084 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
26085 $as_echo_n "(cached) " >&6
26087 ac_check_lib_save_LIBS=$LIBS
26089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26090 /* end confdefs.h. */
26092 /* Override any GCC internal prototype to avoid an error.
26093 Use char because int might match the return type of a GCC
26094 builtin and then its argument prototype would still apply. */
26107 if ac_fn_c_try_link "$LINENO"; then :
26108 ac_cv_lib_dl_dlopen=yes
26110 ac_cv_lib_dl_dlopen=no
26112 rm -f core conftest.err conftest.$ac_objext \
26113 conftest$ac_exeext conftest.$ac_ext
26114 LIBS=$ac_check_lib_save_LIBS
26116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
26117 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
26118 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
26122 LIBS="$LIB_DL $LIBS"
26128 # Check for Autotrace delegate library.
26131 # Check whether --with-autotrace was given.
26132 if test "${with_autotrace+set}" = set; then :
26133 withval=$with_autotrace; with_autotrace=$withval
26135 with_autotrace='no'
26139 if test "$with_autotrace" != 'yes'; then
26140 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26143 have_autotrace='no'
26144 AUTOTRACE_CFLAGS=""
26147 if test "x$with_autotrace" = "xyes"; then
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26149 $as_echo "-------------------------------------------------------------" >&6; }
26152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
26153 $as_echo_n "checking for AUTOTRACE... " >&6; }
26155 if test -n "$AUTOTRACE_CFLAGS"; then
26156 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26157 elif test -n "$PKG_CONFIG"; then
26158 if test -n "$PKG_CONFIG" && \
26159 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26160 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26163 test $ac_status = 0; }; then
26164 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26171 if test -n "$AUTOTRACE_LIBS"; then
26172 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26173 elif test -n "$PKG_CONFIG"; then
26174 if test -n "$PKG_CONFIG" && \
26175 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26176 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26179 test $ac_status = 0; }; then
26180 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26190 if test $pkg_failed = yes; then
26192 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26193 _pkg_short_errors_supported=yes
26195 _pkg_short_errors_supported=no
26197 if test $_pkg_short_errors_supported = yes; then
26198 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26200 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26202 # Put the nasty error message in config.log where it belongs
26203 echo "$AUTOTRACE_PKG_ERRORS" >&5
26205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26206 $as_echo "no" >&6; }
26208 elif test $pkg_failed = untried; then
26211 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26212 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26214 $as_echo "yes" >&6; }
26217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26221 if test "$have_autotrace" = 'yes'; then
26224 $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
26226 if test "$with_modules" = 'no'; then
26227 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26231 if test "$have_autotrace" = 'yes'; then
26232 AUTOTRACE_DELEGATE_TRUE=
26233 AUTOTRACE_DELEGATE_FALSE='#'
26235 AUTOTRACE_DELEGATE_TRUE='#'
26236 AUTOTRACE_DELEGATE_FALSE=
26244 # Check for Display Postscript delegate library.
26247 # Check whether --with-dps was given.
26248 if test "${with_dps+set}" = set; then :
26249 withval=$with_dps; with_dps=$withval
26255 if test "$with_dps" != 'yes'; then
26256 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26261 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
26262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26263 $as_echo "-------------------------------------------------------------" >&6; }
26264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
26265 $as_echo_n "checking for DPS... " >&6; }
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26270 PERSIST_CPPFLAGS="$CPPFLAGS"
26271 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
26272 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26273 if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
26274 passed=`expr $passed + 1`
26276 failed=`expr $failed + 1`
26281 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26282 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26283 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26284 # ImageMagick itself doesn't use -lXt.
26287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
26288 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
26289 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
26290 $as_echo_n "(cached) " >&6
26292 ac_check_lib_save_LIBS=$LIBS
26294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26295 /* end confdefs.h. */
26297 /* Override any GCC internal prototype to avoid an error.
26298 Use char because int might match the return type of a GCC
26299 builtin and then its argument prototype would still apply. */
26303 char DPSInitialize ();
26307 return DPSInitialize ();
26312 if ac_fn_c_try_link "$LINENO"; then :
26313 ac_cv_lib_dps_DPSInitialize=yes
26315 ac_cv_lib_dps_DPSInitialize=no
26317 rm -f core conftest.err conftest.$ac_objext \
26318 conftest$ac_exeext conftest.$ac_ext
26319 LIBS=$ac_check_lib_save_LIBS
26321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
26322 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
26323 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
26329 if test "$have_libdps" != 'yes'; then
26330 # Unset cache variable so we can try again.
26331 unset ac_cv_lib_dps_DPSInitialize
26332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
26333 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
26334 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
26335 $as_echo_n "(cached) " >&6
26337 ac_check_lib_save_LIBS=$LIBS
26338 LIBS="-ldps -lXt $LIBS"
26339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26340 /* end confdefs.h. */
26342 /* Override any GCC internal prototype to avoid an error.
26343 Use char because int might match the return type of a GCC
26344 builtin and then its argument prototype would still apply. */
26348 char DPSInitialize ();
26352 return DPSInitialize ();
26357 if ac_fn_c_try_link "$LINENO"; then :
26358 ac_cv_lib_dps_DPSInitialize=yes
26360 ac_cv_lib_dps_DPSInitialize=no
26362 rm -f core conftest.err conftest.$ac_objext \
26363 conftest$ac_exeext conftest.$ac_ext
26364 LIBS=$ac_check_lib_save_LIBS
26366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
26367 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
26368 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
26374 if test "$have_libdps" = 'yes'; then
26378 if test "$have_libdps" = 'yes'; then
26379 passed=`expr $passed + 1`
26381 failed=`expr $failed + 1`
26383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
26384 $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
26385 if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
26386 $as_echo_n "(cached) " >&6
26388 ac_check_lib_save_LIBS=$LIBS
26389 LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
26390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26391 /* end confdefs.h. */
26393 /* Override any GCC internal prototype to avoid an error.
26394 Use char because int might match the return type of a GCC
26395 builtin and then its argument prototype would still apply. */
26399 char XDPSPixelsPerPoint ();
26403 return XDPSPixelsPerPoint ();
26408 if ac_fn_c_try_link "$LINENO"; then :
26409 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26411 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
26413 rm -f core conftest.err conftest.$ac_objext \
26414 conftest$ac_exeext conftest.$ac_ext
26415 LIBS=$ac_check_lib_save_LIBS
26417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
26418 $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
26419 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
26420 passed=`expr $passed + 1`
26422 failed=`expr $failed + 1`
26425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
26426 $as_echo_n "checking if DPS package is complete... " >&6; }
26427 if test $passed -gt 0; then
26428 if test $failed -gt 0; then
26429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26430 $as_echo "no -- some components failed test" >&6; }
26431 have_dps='no (failed tests)'
26432 CPPFLAGS="$PERSIST_CPPFLAGS"
26434 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26435 LIBS="$DPS_LIBS $LIBS"
26437 $as_echo "#define DPS_DELEGATE 1" >>confdefs.h
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26440 $as_echo "yes" >&6; }
26444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26445 $as_echo "no" >&6; }
26446 CPPFLAGS=$PERSIST_CPPFLAGS
26449 if test "$have_dps" = 'yes'; then
26451 DPS_DELEGATE_FALSE='#'
26453 DPS_DELEGATE_TRUE='#'
26454 DPS_DELEGATE_FALSE=
26461 # Check for DJVU delegate library.
26464 # Check whether --with-djvu was given.
26465 if test "${with_djvu+set}" = set; then :
26466 withval=$with_djvu; with_djvu=$withval
26472 if test "$with_djvu" != 'yes'; then
26473 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26478 if test "$with_djvu" != 'no'; then
26479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26480 $as_echo "-------------------------------------------------------------" >&6; }
26481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
26482 $as_echo_n "checking for DJVU... " >&6; }
26483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26487 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26488 if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
26489 passed=`expr $passed + 1`
26491 failed=`expr $failed + 1`
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
26496 $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
26497 if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
26498 $as_echo_n "(cached) " >&6
26500 ac_check_lib_save_LIBS=$LIBS
26501 LIBS="-ldjvulibre $LIBS"
26502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26503 /* end confdefs.h. */
26505 /* Override any GCC internal prototype to avoid an error.
26506 Use char because int might match the return type of a GCC
26507 builtin and then its argument prototype would still apply. */
26511 char ddjvu_context_create ();
26515 return ddjvu_context_create ();
26520 if ac_fn_c_try_link "$LINENO"; then :
26521 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26523 ac_cv_lib_djvulibre_ddjvu_context_create=no
26525 rm -f core conftest.err conftest.$ac_objext \
26526 conftest$ac_exeext conftest.$ac_ext
26527 LIBS=$ac_check_lib_save_LIBS
26529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
26530 $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
26531 if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
26532 passed=`expr $passed + 1`
26534 failed=`expr $failed + 1`
26537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
26538 $as_echo_n "checking if DJVU package is complete... " >&6; }
26539 if test $passed -gt 0; then
26540 if test $failed -gt 0; then
26541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26542 $as_echo "no -- some components failed test" >&6; }
26543 have_djvu='no (failed tests)'
26545 DJVU_LIBS='-ldjvulibre'
26546 LIBS="$DJVU_LIBS $LIBS"
26548 $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
26550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26551 $as_echo "yes" >&6; }
26555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26556 $as_echo "no" >&6; }
26559 if test "$have_djvu" = 'yes'; then
26560 DJVU_DELEGATE_TRUE=
26561 DJVU_DELEGATE_FALSE='#'
26563 DJVU_DELEGATE_TRUE='#'
26564 DJVU_DELEGATE_FALSE=
26571 # Set DejaVu font directory.
26574 # Check whether --with-dejavu-font-dir was given.
26575 if test "${with_dejavu_font_dir+set}" = set; then :
26576 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26578 with_dejavu_font_dir='default'
26582 if test "$with_dejavu_font_dir" != 'default'; then
26583 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26588 # Check for FFTW delegate library.
26591 # Check whether --with-fftw was given.
26592 if test "${with_fftw+set}" = set; then :
26593 withval=$with_fftw; with_fftw=$withval
26599 if test "$with_fftw" != 'yes'; then
26600 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26605 if test "$with_fftw" != 'no'; then
26606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26607 $as_echo "-------------------------------------------------------------" >&6; }
26608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
26609 $as_echo_n "checking for FFTW... " >&6; }
26610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26614 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26615 if test "x$ac_cv_header_fftw3_h" = x""yes; then :
26616 passed=`expr $passed + 1`
26618 failed=`expr $failed + 1`
26622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
26623 $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
26624 if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
26625 $as_echo_n "(cached) " >&6
26627 ac_check_lib_save_LIBS=$LIBS
26628 LIBS="-lfftw3 $LIBS"
26629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26630 /* end confdefs.h. */
26632 /* Override any GCC internal prototype to avoid an error.
26633 Use char because int might match the return type of a GCC
26634 builtin and then its argument prototype would still apply. */
26638 char fftw_execute ();
26642 return fftw_execute ();
26647 if ac_fn_c_try_link "$LINENO"; then :
26648 ac_cv_lib_fftw3_fftw_execute=yes
26650 ac_cv_lib_fftw3_fftw_execute=no
26652 rm -f core conftest.err conftest.$ac_objext \
26653 conftest$ac_exeext conftest.$ac_ext
26654 LIBS=$ac_check_lib_save_LIBS
26656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
26657 $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
26658 if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
26659 passed=`expr $passed + 1`
26661 failed=`expr $failed + 1`
26664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
26665 $as_echo_n "checking if FFTW package is complete... " >&6; }
26666 if test $passed -gt 0; then
26667 if test $failed -gt 0; then
26668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26669 $as_echo "no -- some components failed test" >&6; }
26670 have_fftw='no (failed tests)'
26672 FFTW_LIBS='-lfftw3'
26673 LIBS="$FFTW_LIBS $LIBS"
26675 $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
26677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26678 $as_echo "yes" >&6; }
26682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26683 $as_echo "no" >&6; }
26686 if test "$have_fftw" = 'yes'; then
26687 FFTW_DELEGATE_TRUE=
26688 FFTW_DELEGATE_FALSE='#'
26690 FFTW_DELEGATE_TRUE='#'
26691 FFTW_DELEGATE_FALSE=
26698 # Check for FlashPIX delegate library.
26701 # Check whether --with-fpx was given.
26702 if test "${with_fpx+set}" = set; then :
26703 withval=$with_fpx; with_fpx=$withval
26709 if test "$with_fpx" != 'yes'; then
26710 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26715 if test "$with_fpx" != 'no'; then
26716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26717 $as_echo "-------------------------------------------------------------" >&6; }
26718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
26719 $as_echo_n "checking for FlashPIX... " >&6; }
26720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26725 ac_cpp='$CXXCPP $CPPFLAGS'
26726 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26727 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26728 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26731 ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26732 if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
26733 passed=`expr $passed + 1`
26735 failed=`expr $failed + 1`
26739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
26740 $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
26741 if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
26742 $as_echo_n "(cached) " >&6
26744 ac_check_lib_save_LIBS=$LIBS
26746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26747 /* end confdefs.h. */
26749 /* Override any GCC internal prototype to avoid an error.
26750 Use char because int might match the return type of a GCC
26751 builtin and then its argument prototype would still apply. */
26755 char FPX_OpenImageByFilename ();
26759 return FPX_OpenImageByFilename ();
26764 if ac_fn_cxx_try_link "$LINENO"; then :
26765 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26767 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
26769 rm -f core conftest.err conftest.$ac_objext \
26770 conftest$ac_exeext conftest.$ac_ext
26771 LIBS=$ac_check_lib_save_LIBS
26773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
26774 $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
26775 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
26776 passed=`expr $passed + 1`
26778 failed=`expr $failed + 1`
26782 ac_cpp='$CPP $CPPFLAGS'
26783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
26788 $as_echo_n "checking if FlashPIX package is complete... " >&6; }
26789 if test $passed -gt 0; then
26790 if test $failed -gt 0; then
26791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26792 $as_echo "no -- some components failed test" >&6; }
26793 have_fpx='no (failed tests)'
26797 $as_echo "#define FPX_DELEGATE 1" >>confdefs.h
26799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26800 $as_echo "yes" >&6; }
26805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26806 $as_echo "no" >&6; }
26809 if test "$have_fpx" = 'yes'; then
26811 FPX_DELEGATE_FALSE='#'
26813 FPX_DELEGATE_TRUE='#'
26814 FPX_DELEGATE_FALSE=
26821 # Check for fontconfig delegate library.
26824 # Check whether --with-fontconfig was given.
26825 if test "${with_fontconfig+set}" = set; then :
26826 withval=$with_fontconfig; with_fontconfig=$withval
26828 with_fontconfig=$have_x
26832 if test "$with_fontconfig" != 'yes'; then
26833 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
26836 have_fontconfig='no'
26837 FONTCONFIG_CFLAGS=""
26840 if test "x$with_fontconfig" = "xyes"; then
26841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26842 $as_echo "-------------------------------------------------------------" >&6; }
26845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
26846 $as_echo_n "checking for FONTCONFIG... " >&6; }
26848 if test -n "$FONTCONFIG_CFLAGS"; then
26849 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
26850 elif test -n "$PKG_CONFIG"; then
26851 if test -n "$PKG_CONFIG" && \
26852 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
26853 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26856 test $ac_status = 0; }; then
26857 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
26864 if test -n "$FONTCONFIG_LIBS"; then
26865 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
26866 elif test -n "$PKG_CONFIG"; then
26867 if test -n "$PKG_CONFIG" && \
26868 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
26869 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
26871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26872 test $ac_status = 0; }; then
26873 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
26883 if test $pkg_failed = yes; then
26885 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26886 _pkg_short_errors_supported=yes
26888 _pkg_short_errors_supported=no
26890 if test $_pkg_short_errors_supported = yes; then
26891 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
26893 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
26895 # Put the nasty error message in config.log where it belongs
26896 echo "$FONTCONFIG_PKG_ERRORS" >&5
26898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26899 $as_echo "no" >&6; }
26901 elif test $pkg_failed = untried; then
26904 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
26905 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
26906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26907 $as_echo "yes" >&6; }
26908 have_fontconfig=yes
26910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26914 if test "$have_fontconfig" = 'yes'; then
26916 $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
26918 if test "$with_modules" = 'no'; then
26919 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
26923 if test "$have_fontconfig" = 'yes'; then
26924 FONTCONFIG_DELEGATE_TRUE=
26925 FONTCONFIG_DELEGATE_FALSE='#'
26927 FONTCONFIG_DELEGATE_TRUE='#'
26928 FONTCONFIG_DELEGATE_FALSE=
26936 # Check for freetype delegate library.
26939 # Check whether --with-freetype was given.
26940 if test "${with_freetype+set}" = set; then :
26941 withval=$with_freetype; with_freetype=$withval
26943 with_freetype='yes'
26948 if test "$with_freetype" != 'yes'; then
26949 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
26954 if test "$with_freetype" != 'no'; then
26955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26956 $as_echo "-------------------------------------------------------------" >&6; }
26957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
26958 $as_echo_n "checking for FreeType 2.0... " >&6; }
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26963 PERSIST_LIBS="$LIBS"
26964 PERSIST_CPPFLAGS="$CPPFLAGS"
26965 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
26969 for ac_prog in freetype-config
26971 # Extract the first word of "$ac_prog", so it can be a program name with args.
26972 set dummy $ac_prog; ac_word=$2
26973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26974 $as_echo_n "checking for $ac_word... " >&6; }
26975 if test "${ac_cv_prog_freetype_config+set}" = set; then :
26976 $as_echo_n "(cached) " >&6
26978 if test -n "$freetype_config"; then
26979 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
26981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26982 for as_dir in $PATH
26985 test -z "$as_dir" && as_dir=.
26986 for ac_exec_ext in '' $ac_executable_extensions; do
26987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
26988 ac_cv_prog_freetype_config="$ac_prog"
26989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26998 freetype_config=$ac_cv_prog_freetype_config
26999 if test -n "$freetype_config"; then
27000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
27001 $as_echo "$freetype_config" >&6; }
27003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27004 $as_echo "no" >&6; }
27008 test -n "$freetype_config" && break
27010 if test -n "$freetype_config"; then
27011 freetype_cflags=`$freetype_config --cflags`
27012 freetype_libs=`$freetype_config --libs`
27013 LIBS="$LIBS $freetype_libs"
27014 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27018 if test "$FREETYPE_LIBS" = ''; then
27019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
27020 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
27021 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
27022 $as_echo_n "(cached) " >&6
27024 ac_check_lib_save_LIBS=$LIBS
27025 LIBS="-lfreetype $LIBS"
27026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27027 /* end confdefs.h. */
27029 /* Override any GCC internal prototype to avoid an error.
27030 Use char because int might match the return type of a GCC
27031 builtin and then its argument prototype would still apply. */
27035 char FT_Init_FreeType ();
27039 return FT_Init_FreeType ();
27044 if ac_fn_c_try_link "$LINENO"; then :
27045 ac_cv_lib_freetype_FT_Init_FreeType=yes
27047 ac_cv_lib_freetype_FT_Init_FreeType=no
27049 rm -f core conftest.err conftest.$ac_objext \
27050 conftest$ac_exeext conftest.$ac_ext
27051 LIBS=$ac_check_lib_save_LIBS
27053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
27054 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
27055 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
27056 FREETYPE_LIBS='-lfreetype'
27059 if test "$FREETYPE_LIBS" != ''; then
27060 passed=`expr $passed + 1`
27062 failed=`expr $failed + 1`
27063 LIBS="$PERSIST_LIBS"
27067 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27068 if test "x$ac_cv_header_ft2build_h" = x""yes; then :
27069 FT2BUILD_H='#include <ft2build.h>'
27075 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27077 if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
27078 have_freetype_h='yes'
27080 have_freetype_h='no'
27084 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27085 passed=`expr $passed + 1`
27087 failed=`expr $failed + 1`
27088 CPPFLAGS="$PERSIST_CPPFLAGS"
27091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
27092 $as_echo_n "checking if FreeType package is complete... " >&6; }
27093 if test $passed -gt 0; then
27094 if test $failed -gt 0; then
27096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27097 $as_echo "no -- some components failed test" >&6; }
27098 have_freetype='no (failed tests)'
27100 LIBS="$FREETYPE_LIBS $LIBS"
27102 $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
27104 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27106 $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27110 $as_echo "yes" >&6; }
27111 have_freetype='yes'
27114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27115 $as_echo "no" >&6; }
27118 if test "$have_freetype" = 'yes'; then
27119 FREETYPE_DELEGATE_TRUE=
27120 FREETYPE_DELEGATE_FALSE='#'
27122 FREETYPE_DELEGATE_TRUE='#'
27123 FREETYPE_DELEGATE_FALSE=
27131 # Check for Ghostscript library or framework.
27133 # Test for iapi.h & test for gsapi_new_instance in -lgs
27134 # or -framework Ghostscript
27137 # Check whether --with-gslib was given.
27138 if test "${with_gslib+set}" = set; then :
27139 withval=$with_gslib; with_gslib=$withval
27145 gslib_framework='no'
27146 if test "$with_gslib" != 'yes'; then
27147 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27152 if test "$with_gslib" != 'no'; then
27153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27154 $as_echo "-------------------------------------------------------------" >&6; }
27155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
27156 $as_echo_n "checking for Ghostscript... " >&6; }
27157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27162 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27163 if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
27164 passed=`expr $passed + 1`
27166 failed=`expr $failed + 1`
27170 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27171 if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
27172 passed=`expr $passed + 1`
27174 failed=`expr $failed + 1`
27178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
27179 $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
27180 if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
27181 $as_echo_n "(cached) " >&6
27183 ac_check_framework_save_LIBS=$LIBS
27184 LIBS="-framework Ghostscript $LIBS"
27185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27186 /* end confdefs.h. */
27188 /* Override any GCC internal prototype to avoid an error.
27189 Use char because int might match the return type of a GCC
27190 builtin and then its argument prototype would still apply. */
27194 char gsapi_new_instance ();
27198 return gsapi_new_instance ();
27203 if ac_fn_c_try_link "$LINENO"; then :
27204 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27206 ac_cv_framework_Ghostscript_gsapi_new_instance=no
27208 rm -f core conftest.err conftest.$ac_objext \
27209 conftest$ac_exeext conftest.$ac_ext
27210 LIBS=$ac_check_framework_save_LIBS
27212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
27213 $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
27214 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
27215 framework=`expr $framework + 1`
27217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
27218 $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
27219 if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
27220 $as_echo_n "(cached) " >&6
27222 ac_check_lib_save_LIBS=$LIBS
27224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27225 /* end confdefs.h. */
27227 /* Override any GCC internal prototype to avoid an error.
27228 Use char because int might match the return type of a GCC
27229 builtin and then its argument prototype would still apply. */
27233 char gsapi_new_instance ();
27237 return gsapi_new_instance ();
27242 if ac_fn_c_try_link "$LINENO"; then :
27243 ac_cv_lib_gs_gsapi_new_instance=yes
27245 ac_cv_lib_gs_gsapi_new_instance=no
27247 rm -f core conftest.err conftest.$ac_objext \
27248 conftest$ac_exeext conftest.$ac_ext
27249 LIBS=$ac_check_lib_save_LIBS
27251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
27252 $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
27253 if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
27254 passed=`expr $passed + 1`
27256 failed=`expr $failed + 1`
27260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
27261 $as_echo_n "checking if Ghostscript package is complete... " >&6; }
27262 if test $passed -gt 0; then
27263 if test $failed -gt 0; then
27264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27265 $as_echo "no -- some components failed test" >&6; }
27266 have_gslib='no (failed tests)'
27268 if test $framework -gt 0; then
27269 GS_LIBS='-framework Ghostscript'
27270 gslib_framework='yes'
27271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
27272 $as_echo "yes, using framework." >&6; }
27274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
27275 $as_echo "yes, using library." >&6; }
27278 LIBS="$GS_LIBS $LIBS"
27280 $as_echo "#define GS_DELEGATE 1" >>confdefs.h
27285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27286 $as_echo "no" >&6; }
27289 if test "$have_gslib" = 'yes'; then
27291 GS_DELEGATE_FALSE='#'
27293 GS_DELEGATE_TRUE='#'
27299 # Set default font search path
27301 # Check whether --with-fontpath was given.
27302 if test "${with_fontpath+set}" = set; then :
27303 withval=$with_fontpath; with_fontpath=$withval
27309 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27313 cat >>confdefs.h <<_ACEOF
27314 #define MAGICK_FONT_PATH "$with_fontpath"
27318 if test "$with_fontpath=" != ''; then
27319 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27322 # Set Ghostscript font directory
27324 # Check whether --with-gs-font-dir was given.
27325 if test "${with_gs_font_dir+set}" = set; then :
27326 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27328 with_gs_font_dir='default'
27332 if test "$with_gs_font_dir" != 'default'; then
27333 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27338 # Check for GVC delegate library.
27341 # Check whether --with-gvc was given.
27342 if test "${with_gvc+set}" = set; then :
27343 withval=$with_gvc; with_gvc=$withval
27349 if test "$with_gvc" != 'yes'; then
27350 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27354 if test "x$with_gvc" = "xyes"; then
27355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27356 $as_echo "-------------------------------------------------------------" >&6; }
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
27360 $as_echo_n "checking for GVC... " >&6; }
27362 if test -n "$GVC_CFLAGS"; then
27363 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27364 elif test -n "$PKG_CONFIG"; then
27365 if test -n "$PKG_CONFIG" && \
27366 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27367 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27370 test $ac_status = 0; }; then
27371 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27378 if test -n "$GVC_LIBS"; then
27379 pkg_cv_GVC_LIBS="$GVC_LIBS"
27380 elif test -n "$PKG_CONFIG"; then
27381 if test -n "$PKG_CONFIG" && \
27382 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27383 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27386 test $ac_status = 0; }; then
27387 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27397 if test $pkg_failed = yes; then
27399 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27400 _pkg_short_errors_supported=yes
27402 _pkg_short_errors_supported=no
27404 if test $_pkg_short_errors_supported = yes; then
27405 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27407 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27409 # Put the nasty error message in config.log where it belongs
27410 echo "$GVC_PKG_ERRORS" >&5
27412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27413 $as_echo "no" >&6; }
27415 elif test $pkg_failed = untried; then
27418 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27419 GVC_LIBS=$pkg_cv_GVC_LIBS
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27421 $as_echo "yes" >&6; }
27424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27428 if test "$have_gvc" = 'yes'; then
27430 $as_echo "#define GVC_DELEGATE 1" >>confdefs.h
27432 if test "$with_modules" = 'no'; then
27433 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27437 if test "$have_gvc" = 'yes'; then
27439 GVC_DELEGATE_FALSE='#'
27441 GVC_DELEGATE_TRUE='#'
27442 GVC_DELEGATE_FALSE=
27450 # Check for JBIG delegate library.
27454 # Check whether --with-jbig was given.
27455 if test "${with_jbig+set}" = set; then :
27456 withval=$with_jbig; with_jbig=$withval
27464 if test "$with_jbig" != 'no'; then
27465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27466 $as_echo "-------------------------------------------------------------" >&6; }
27467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
27468 $as_echo_n "checking for JBIG... " >&6; }
27469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27473 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27474 if test "x$ac_cv_header_jbig_h" = x""yes; then :
27475 passed=`expr $passed + 1`
27477 failed=`expr $failed + 1`
27481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
27482 $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
27483 if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
27484 $as_echo_n "(cached) " >&6
27486 ac_check_lib_save_LIBS=$LIBS
27487 LIBS="-ljbig $LIBS"
27488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27489 /* end confdefs.h. */
27491 /* Override any GCC internal prototype to avoid an error.
27492 Use char because int might match the return type of a GCC
27493 builtin and then its argument prototype would still apply. */
27497 char jbg_dec_init ();
27501 return jbg_dec_init ();
27506 if ac_fn_c_try_link "$LINENO"; then :
27507 ac_cv_lib_jbig_jbg_dec_init=yes
27509 ac_cv_lib_jbig_jbg_dec_init=no
27511 rm -f core conftest.err conftest.$ac_objext \
27512 conftest$ac_exeext conftest.$ac_ext
27513 LIBS=$ac_check_lib_save_LIBS
27515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
27516 $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
27517 if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
27518 passed=`expr $passed + 1`
27520 failed=`expr $failed + 1`
27523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
27524 $as_echo_n "checking if JBIG package is complete... " >&6; }
27525 if test $passed -gt 0; then
27526 if test $failed -gt 0; then
27527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27528 $as_echo "no -- some components failed test" >&6; }
27529 have_jbig='no (failed tests)'
27532 LIBS="$JBIG_LIBS $LIBS"
27534 $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
27536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27537 $as_echo "yes" >&6; }
27541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27542 $as_echo "no" >&6; }
27545 if test "$have_jbig" = 'yes'; then
27546 JBIG_DELEGATE_TRUE=
27547 JBIG_DELEGATE_FALSE='#'
27549 JBIG_DELEGATE_TRUE='#'
27550 JBIG_DELEGATE_FALSE=
27557 # Check for JPEG delegate library.
27560 # Check whether --with-jpeg was given.
27561 if test "${with_jpeg+set}" = set; then :
27562 withval=$with_jpeg; with_jpeg=$withval
27568 if test "$with_jpeg" != 'yes'; then
27569 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27574 if test "$with_jpeg" != 'no'; then
27575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27576 $as_echo "-------------------------------------------------------------" >&6; }
27577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
27578 $as_echo_n "checking for JPEG... " >&6; }
27579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27583 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27584 if test "x$ac_cv_header_jconfig_h" = x""yes; then :
27585 passed=`expr $passed + 1`
27587 failed=`expr $failed + 1`
27591 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27592 if test "x$ac_cv_header_jerror_h" = x""yes; then :
27593 passed=`expr $passed + 1`
27595 failed=`expr $failed + 1`
27599 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27600 if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
27601 passed=`expr $passed + 1`
27603 failed=`expr $failed + 1`
27607 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27608 if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
27609 passed=`expr $passed + 1`
27611 failed=`expr $failed + 1`
27615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
27616 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
27617 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
27618 $as_echo_n "(cached) " >&6
27620 ac_check_lib_save_LIBS=$LIBS
27621 LIBS="-ljpeg $LIBS"
27622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27623 /* end confdefs.h. */
27625 /* Override any GCC internal prototype to avoid an error.
27626 Use char because int might match the return type of a GCC
27627 builtin and then its argument prototype would still apply. */
27631 char jpeg_read_header ();
27635 return jpeg_read_header ();
27640 if ac_fn_c_try_link "$LINENO"; then :
27641 ac_cv_lib_jpeg_jpeg_read_header=yes
27643 ac_cv_lib_jpeg_jpeg_read_header=no
27645 rm -f core conftest.err conftest.$ac_objext \
27646 conftest$ac_exeext conftest.$ac_ext
27647 LIBS=$ac_check_lib_save_LIBS
27649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
27650 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
27651 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
27652 passed=`expr $passed + 1`
27654 failed=`expr $failed + 1`
27658 # Test for compatible JPEG library
27659 if test "$ac_cv_jpeg_version_ok" != 'yes'; then
27660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
27661 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
27662 if test "${ac_cv_jpeg_version_ok+set}" = set; then :
27663 $as_echo_n "(cached) " >&6
27665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27666 /* end confdefs.h. */
27668 #include <stdlib.h>
27669 #include <jpeglib.h>
27675 #if JPEG_LIB_VERSION < 62
27676 #error IJG JPEG library must be version 6b or newer!
27684 if ac_fn_c_try_compile "$LINENO"; then :
27685 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27687 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
27689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
27692 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
27694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
27695 $as_echo_n "checking if JPEG package is complete... " >&6; }
27696 if test $passed -gt 0; then
27697 if test $failed -gt 0; then
27698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27699 $as_echo "no -- some components failed test" >&6; }
27700 have_jpeg='no (failed tests)'
27703 LIBS="$JPEG_LIBS $LIBS"
27705 $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
27707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27708 $as_echo "yes" >&6; }
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27713 $as_echo "no" >&6; }
27716 if test "$have_jpeg" = 'yes'; then
27717 JPEG_DELEGATE_TRUE=
27718 JPEG_DELEGATE_FALSE='#'
27720 JPEG_DELEGATE_TRUE='#'
27721 JPEG_DELEGATE_FALSE=
27728 # Check for JPEG Version 2 delegate library.
27731 # Check whether --with-jp2 was given.
27732 if test "${with_jp2+set}" = set; then :
27733 withval=$with_jp2; with_jp2=$withval
27739 if test "$with_jp2" != 'yes'; then
27740 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27745 if test "$with_jp2" != 'no'; then
27746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27747 $as_echo "-------------------------------------------------------------" >&6; }
27748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
27749 $as_echo_n "checking for JPEG Version 2... " >&6; }
27750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27754 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27755 if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
27756 passed=`expr $passed + 1`
27758 failed=`expr $failed + 1`
27762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
27763 $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
27764 if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
27765 $as_echo_n "(cached) " >&6
27767 ac_check_lib_save_LIBS=$LIBS
27768 LIBS="-ljasper $LIBS"
27769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27770 /* end confdefs.h. */
27772 /* Override any GCC internal prototype to avoid an error.
27773 Use char because int might match the return type of a GCC
27774 builtin and then its argument prototype would still apply. */
27778 char jas_stream_fopen ();
27782 return jas_stream_fopen ();
27787 if ac_fn_c_try_link "$LINENO"; then :
27788 ac_cv_lib_jasper_jas_stream_fopen=yes
27790 ac_cv_lib_jasper_jas_stream_fopen=no
27792 rm -f core conftest.err conftest.$ac_objext \
27793 conftest$ac_exeext conftest.$ac_ext
27794 LIBS=$ac_check_lib_save_LIBS
27796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
27797 $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
27798 if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
27799 passed=`expr $passed + 1`
27801 failed=`expr $failed + 1`
27804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
27805 $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
27806 if test $passed -gt 0; then
27807 if test $failed -gt 0; then
27808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27809 $as_echo "no -- some components failed test" >&6; }
27810 have_jp2='no (failed tests)'
27812 JP2_LIBS='-ljasper'
27813 LIBS="$JP2_LIBS $LIBS"
27815 $as_echo "#define JP2_DELEGATE 1" >>confdefs.h
27817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27818 $as_echo "yes" >&6; }
27822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27823 $as_echo "no" >&6; }
27826 if test "$have_jp2" = 'yes'; then
27828 JP2_DELEGATE_FALSE='#'
27830 JP2_DELEGATE_TRUE='#'
27831 JP2_DELEGATE_FALSE=
27838 # Check for LCMS delegate library.
27842 # Check whether --with-lcms was given.
27843 if test "${with_lcms+set}" = set; then :
27844 withval=$with_lcms; with_lcms=$withval
27849 if test "$with_lcms" != 'yes' ; then
27850 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
27855 # Check whether --with-lcms2 was given.
27856 if test "${with_lcms2+set}" = set; then :
27857 withval=$with_lcms2; with_lcms2=$withval
27862 if test "$with_lcms2" != 'yes' ; then
27863 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
27868 if test "$with_lcms2" != 'no'; then
27869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27870 $as_echo "-------------------------------------------------------------" >&6; }
27871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
27872 $as_echo_n "checking for LCMS v2... " >&6; }
27873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27877 have_lcms_header='no'
27879 # Check for <lcms2.h>
27880 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
27881 if test "x$ac_cv_header_lcms2_h" = x""yes; then :
27882 have_lcms_header='yes'
27886 if test "$have_lcms_header" = 'yes'; then
27888 $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
27890 passed=`expr $passed + 1`
27893 # Check for <lcms2/lcms2.h)
27894 if test "$have_lcms_header" != 'yes'; then
27895 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
27896 if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
27897 have_lcms_header='yes'
27901 if test "$have_lcms_header" = 'yes'; then
27902 passed=`expr $passed + 1`
27904 $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
27909 # Failed to find lcms header?
27910 if test "$have_lcms_header" != 'yes'; then
27911 failed=`expr $failed + 1`
27914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
27915 $as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
27916 if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
27917 $as_echo_n "(cached) " >&6
27919 ac_check_lib_save_LIBS=$LIBS
27920 LIBS="-llcms2 $LIBS"
27921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27922 /* end confdefs.h. */
27924 /* Override any GCC internal prototype to avoid an error.
27925 Use char because int might match the return type of a GCC
27926 builtin and then its argument prototype would still apply. */
27930 char cmsSetLogErrorHandler ();
27934 return cmsSetLogErrorHandler ();
27939 if ac_fn_c_try_link "$LINENO"; then :
27940 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
27942 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
27944 rm -f core conftest.err conftest.$ac_objext \
27945 conftest$ac_exeext conftest.$ac_ext
27946 LIBS=$ac_check_lib_save_LIBS
27948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
27949 $as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
27950 if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
27951 passed=`expr $passed + 1`
27953 failed=`expr $failed + 1`
27956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
27957 $as_echo_n "checking if LCMS v2 package is complete... " >&6; }
27958 if test $passed -gt 0; then
27959 if test $failed -gt 0; then
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27961 $as_echo "no -- some components failed test" >&6; }
27962 have_lcms2='no (failed tests)'
27964 LCMS_LIBS='-llcms2'
27965 LIBS="$LCMS_LIBS $LIBS"
27966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27967 $as_echo "yes" >&6; }
27971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27972 $as_echo "no" >&6; }
27977 # Check for LCMS v1 (1.11 or later)
27979 if test $have_lcms2 = 'yes'; then
27984 if test "$with_lcms" != 'no'; then
27985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27986 $as_echo "-------------------------------------------------------------" >&6; }
27987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
27988 $as_echo_n "checking for LCMS v1.1X... " >&6; }
27989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27993 have_lcms_header='no'
27995 # Check for <lcms.h>
27996 if test "$have_lcms_header" != 'yes'; then
27997 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
27998 if test "x$ac_cv_header_lcms_h" = x""yes; then :
27999 have_lcms_header='yes'
28003 if test "$have_lcms_header" = 'yes'; then
28004 passed=`expr $passed + 1`
28006 $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
28011 # Check for <lcms/lcms.h>
28012 if test "$have_lcms_header" != 'yes'; then
28013 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
28014 if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
28015 have_lcms_header='yes'
28019 if test "$have_lcms_header" = 'yes'; then
28020 passed=`expr $passed + 1`
28022 $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
28027 # Failed to find lcms header?
28028 if test "$have_lcms_header" != 'yes'; then
28029 failed=`expr $failed + 1`
28032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28033 $as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28034 if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
28035 $as_echo_n "(cached) " >&6
28037 ac_check_lib_save_LIBS=$LIBS
28038 LIBS="-llcms $LIBS"
28039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28040 /* end confdefs.h. */
28042 /* Override any GCC internal prototype to avoid an error.
28043 Use char because int might match the return type of a GCC
28044 builtin and then its argument prototype would still apply. */
28048 char cmsSetErrorHandler ();
28052 return cmsSetErrorHandler ();
28057 if ac_fn_c_try_link "$LINENO"; then :
28058 ac_cv_lib_lcms_cmsSetErrorHandler=yes
28060 ac_cv_lib_lcms_cmsSetErrorHandler=no
28062 rm -f core conftest.err conftest.$ac_objext \
28063 conftest$ac_exeext conftest.$ac_ext
28064 LIBS=$ac_check_lib_save_LIBS
28066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28067 $as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28068 if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
28069 passed=`expr $passed + 1`
28071 failed=`expr $failed + 1`
28074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
28075 $as_echo_n "checking if LCMS package is complete... " >&6; }
28076 if test $passed -gt 0; then
28077 if test $failed -gt 0; then
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28079 $as_echo "no -- some components failed test" >&6; }
28080 have_lcms='no (failed tests)'
28083 LIBS="$LCMS_LIBS $LIBS"
28084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28085 $as_echo "yes" >&6; }
28089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28090 $as_echo "no" >&6; }
28094 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28095 LCMS_DELEGATE_TRUE=
28096 LCMS_DELEGATE_FALSE='#'
28098 LCMS_DELEGATE_TRUE='#'
28099 LCMS_DELEGATE_FALSE=
28102 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28104 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28112 # Check for the LQR (Liquid Rescale) delegate library.
28115 # Check whether --with-lqr was given.
28116 if test "${with_lqr+set}" = set; then :
28117 withval=$with_lqr; with_lqr=$withval
28123 if test "$with_lqr" != 'yes'; then
28124 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28131 if test "x$with_lqr" = "xyes"; then
28132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28133 $as_echo "-------------------------------------------------------------" >&6; }
28136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
28137 $as_echo_n "checking for LQR... " >&6; }
28139 if test -n "$LQR_CFLAGS"; then
28140 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28141 elif test -n "$PKG_CONFIG"; then
28142 if test -n "$PKG_CONFIG" && \
28143 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28144 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28147 test $ac_status = 0; }; then
28148 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28155 if test -n "$LQR_LIBS"; then
28156 pkg_cv_LQR_LIBS="$LQR_LIBS"
28157 elif test -n "$PKG_CONFIG"; then
28158 if test -n "$PKG_CONFIG" && \
28159 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28160 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28163 test $ac_status = 0; }; then
28164 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28174 if test $pkg_failed = yes; then
28176 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28177 _pkg_short_errors_supported=yes
28179 _pkg_short_errors_supported=no
28181 if test $_pkg_short_errors_supported = yes; then
28182 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28184 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28186 # Put the nasty error message in config.log where it belongs
28187 echo "$LQR_PKG_ERRORS" >&5
28189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28190 $as_echo "no" >&6; }
28192 elif test $pkg_failed = untried; then
28195 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28196 LQR_LIBS=$pkg_cv_LQR_LIBS
28197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28198 $as_echo "yes" >&6; }
28201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28205 if test "$have_lqr" = 'yes'; then
28207 $as_echo "#define LQR_DELEGATE 1" >>confdefs.h
28209 CFLAGS="$LQR_CFLAGS $CFLAGS"
28212 if test "$have_lqr" = 'yes'; then
28214 LQR_DELEGATE_FALSE='#'
28216 LQR_DELEGATE_TRUE='#'
28217 LQR_DELEGATE_FALSE=
28225 # Check for the OpenEXR delegate library.
28228 # Check whether --with-openexr was given.
28229 if test "${with_openexr+set}" = set; then :
28230 withval=$with_openexr; with_openexr=$withval
28236 if test "$with_openexr" != 'yes'; then
28237 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28244 if test "x$with_openexr" = "xyes"; then
28245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28246 $as_echo "-------------------------------------------------------------" >&6; }
28249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
28250 $as_echo_n "checking for OPENEXR... " >&6; }
28252 if test -n "$OPENEXR_CFLAGS"; then
28253 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28254 elif test -n "$PKG_CONFIG"; then
28255 if test -n "$PKG_CONFIG" && \
28256 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28257 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28260 test $ac_status = 0; }; then
28261 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28268 if test -n "$OPENEXR_LIBS"; then
28269 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28270 elif test -n "$PKG_CONFIG"; then
28271 if test -n "$PKG_CONFIG" && \
28272 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28273 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28276 test $ac_status = 0; }; then
28277 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28287 if test $pkg_failed = yes; then
28289 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28290 _pkg_short_errors_supported=yes
28292 _pkg_short_errors_supported=no
28294 if test $_pkg_short_errors_supported = yes; then
28295 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28297 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28299 # Put the nasty error message in config.log where it belongs
28300 echo "$OPENEXR_PKG_ERRORS" >&5
28302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28303 $as_echo "no" >&6; }
28305 elif test $pkg_failed = untried; then
28308 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28309 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
28310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28311 $as_echo "yes" >&6; }
28314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28318 if test "$have_openexr" = 'yes'; then
28320 $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
28322 if test "$with_modules" = 'no'; then
28323 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28327 if test "$have_openexr" = 'yes'; then
28328 OPENEXR_DELEGATE_TRUE=
28329 OPENEXR_DELEGATE_FALSE='#'
28331 OPENEXR_DELEGATE_TRUE='#'
28332 OPENEXR_DELEGATE_FALSE=
28340 # Check for PNG delegate library.
28343 # Check whether --with-png was given.
28344 if test "${with_png+set}" = set; then :
28345 withval=$with_png; with_png=$withval
28351 if test "$with_png" != 'yes'; then
28352 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28357 if test "$with_png" != 'no'; then
28358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28359 $as_echo "-------------------------------------------------------------" >&6; }
28360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
28361 $as_echo_n "checking for PNG... " >&6; }
28362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28366 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28367 if test "x$ac_cv_header_png_h" = x""yes; then :
28368 passed=`expr $passed + 1`
28370 failed=`expr $failed + 1`
28374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
28375 $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
28376 if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
28377 $as_echo_n "(cached) " >&6
28379 ac_check_lib_save_LIBS=$LIBS
28381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28382 /* end confdefs.h. */
28384 /* Override any GCC internal prototype to avoid an error.
28385 Use char because int might match the return type of a GCC
28386 builtin and then its argument prototype would still apply. */
28390 char png_get_io_ptr ();
28394 return png_get_io_ptr ();
28399 if ac_fn_c_try_link "$LINENO"; then :
28400 ac_cv_lib_png_png_get_io_ptr=yes
28402 ac_cv_lib_png_png_get_io_ptr=no
28404 rm -f core conftest.err conftest.$ac_objext \
28405 conftest$ac_exeext conftest.$ac_ext
28406 LIBS=$ac_check_lib_save_LIBS
28408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
28409 $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
28410 if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
28411 passed=`expr $passed + 1`
28413 failed=`expr $failed + 1`
28416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
28417 $as_echo_n "checking if PNG package is complete... " >&6; }
28418 if test $passed -gt 0; then
28419 if test $failed -gt 0; then
28420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28421 $as_echo "no -- some components failed test" >&6; }
28422 have_png='no (failed tests)'
28425 LIBS="$PNG_LIBS $LIBS"
28427 $as_echo "#define PNG_DELEGATE 1" >>confdefs.h
28429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28430 $as_echo "yes" >&6; }
28434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28435 $as_echo "no" >&6; }
28438 if test "$have_png" = 'yes'; then
28440 PNG_DELEGATE_FALSE='#'
28442 PNG_DELEGATE_TRUE='#'
28443 PNG_DELEGATE_FALSE=
28450 # Check for RSVG delegate library.
28453 # Check whether --with-rsvg was given.
28454 if test "${with_rsvg+set}" = set; then :
28455 withval=$with_rsvg; with_rsvg=$withval
28461 if test "$with_rsvg" != 'yes'; then
28462 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28470 if test "x$with_rsvg" = "xyes"; then
28471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28472 $as_echo "-------------------------------------------------------------" >&6; }
28475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
28476 $as_echo_n "checking for RSVG... " >&6; }
28478 if test -n "$RSVG_CFLAGS"; then
28479 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28480 elif test -n "$PKG_CONFIG"; then
28481 if test -n "$PKG_CONFIG" && \
28482 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28483 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28486 test $ac_status = 0; }; then
28487 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28494 if test -n "$RSVG_LIBS"; then
28495 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28496 elif test -n "$PKG_CONFIG"; then
28497 if test -n "$PKG_CONFIG" && \
28498 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28499 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28502 test $ac_status = 0; }; then
28503 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28513 if test $pkg_failed = yes; then
28515 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28516 _pkg_short_errors_supported=yes
28518 _pkg_short_errors_supported=no
28520 if test $_pkg_short_errors_supported = yes; then
28521 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28523 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28525 # Put the nasty error message in config.log where it belongs
28526 echo "$RSVG_PKG_ERRORS" >&5
28528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28529 $as_echo "no" >&6; }
28531 elif test $pkg_failed = untried; then
28534 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28535 RSVG_LIBS=$pkg_cv_RSVG_LIBS
28536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28537 $as_echo "yes" >&6; }
28540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
28545 $as_echo_n "checking for CAIRO_SVG... " >&6; }
28547 if test -n "$CAIRO_SVG_CFLAGS"; then
28548 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28549 elif test -n "$PKG_CONFIG"; then
28550 if test -n "$PKG_CONFIG" && \
28551 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28552 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28555 test $ac_status = 0; }; then
28556 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28563 if test -n "$CAIRO_SVG_LIBS"; then
28564 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28565 elif test -n "$PKG_CONFIG"; then
28566 if test -n "$PKG_CONFIG" && \
28567 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28568 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28571 test $ac_status = 0; }; then
28572 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28582 if test $pkg_failed = yes; then
28584 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28585 _pkg_short_errors_supported=yes
28587 _pkg_short_errors_supported=no
28589 if test $_pkg_short_errors_supported = yes; then
28590 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28592 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28594 # Put the nasty error message in config.log where it belongs
28595 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28598 $as_echo "no" >&6; }
28600 elif test $pkg_failed = untried; then
28603 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28604 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
28605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28606 $as_echo "yes" >&6; }
28609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28613 if test "$have_rsvg" = 'yes'; then
28615 $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
28617 if test "$with_modules" = 'no'; then
28618 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28622 if test "$have_cairo" = 'yes'; then
28624 $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
28626 if test "$with_modules" = 'no'; then
28627 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28631 if test "$have_rsvg" = 'yes'; then
28632 RSVG_DELEGATE_TRUE=
28633 RSVG_DELEGATE_FALSE='#'
28635 RSVG_DELEGATE_TRUE='#'
28636 RSVG_DELEGATE_FALSE=
28639 if test "$have_cairo" = 'yes'; then
28640 CAIRO_DELEGATE_TRUE=
28641 CAIRO_DELEGATE_FALSE='#'
28643 CAIRO_DELEGATE_TRUE='#'
28644 CAIRO_DELEGATE_FALSE=
28652 # Check for TIFF delegate library.
28655 # Check whether --with-tiff was given.
28656 if test "${with_tiff+set}" = set; then :
28657 withval=$with_tiff; with_tiff=$withval
28663 if test "$with_tiff" != 'yes'; then
28664 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28669 if test "$with_tiff" != 'no'; then
28670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28671 $as_echo "-------------------------------------------------------------" >&6; }
28672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
28673 $as_echo_n "checking for TIFF... " >&6; }
28674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28678 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28679 if test "x$ac_cv_header_tiff_h" = x""yes; then :
28680 passed=`expr $passed + 1`
28682 failed=`expr $failed + 1`
28686 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28687 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
28688 passed=`expr $passed + 1`
28690 failed=`expr $failed + 1`
28694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
28695 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
28696 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
28697 $as_echo_n "(cached) " >&6
28699 ac_check_lib_save_LIBS=$LIBS
28700 LIBS="-ltiff $LIBS"
28701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28702 /* end confdefs.h. */
28704 /* Override any GCC internal prototype to avoid an error.
28705 Use char because int might match the return type of a GCC
28706 builtin and then its argument prototype would still apply. */
28714 return TIFFOpen ();
28719 if ac_fn_c_try_link "$LINENO"; then :
28720 ac_cv_lib_tiff_TIFFOpen=yes
28722 ac_cv_lib_tiff_TIFFOpen=no
28724 rm -f core conftest.err conftest.$ac_objext \
28725 conftest$ac_exeext conftest.$ac_ext
28726 LIBS=$ac_check_lib_save_LIBS
28728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
28729 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
28730 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
28731 passed=`expr $passed + 1`
28733 failed=`expr $failed + 1`
28736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
28737 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
28738 if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
28739 $as_echo_n "(cached) " >&6
28741 ac_check_lib_save_LIBS=$LIBS
28742 LIBS="-ltiff $LIBS"
28743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28744 /* end confdefs.h. */
28746 /* Override any GCC internal prototype to avoid an error.
28747 Use char because int might match the return type of a GCC
28748 builtin and then its argument prototype would still apply. */
28752 char TIFFClientOpen ();
28756 return TIFFClientOpen ();
28761 if ac_fn_c_try_link "$LINENO"; then :
28762 ac_cv_lib_tiff_TIFFClientOpen=yes
28764 ac_cv_lib_tiff_TIFFClientOpen=no
28766 rm -f core conftest.err conftest.$ac_objext \
28767 conftest$ac_exeext conftest.$ac_ext
28768 LIBS=$ac_check_lib_save_LIBS
28770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
28771 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
28772 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
28773 passed=`expr $passed + 1`
28775 failed=`expr $failed + 1`
28778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
28779 $as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
28780 if test "${ac_cv_lib_tiff_TIFFIsBigEndian+set}" = set; then :
28781 $as_echo_n "(cached) " >&6
28783 ac_check_lib_save_LIBS=$LIBS
28784 LIBS="-ltiff $LIBS"
28785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28786 /* end confdefs.h. */
28788 /* Override any GCC internal prototype to avoid an error.
28789 Use char because int might match the return type of a GCC
28790 builtin and then its argument prototype would still apply. */
28794 char TIFFIsBigEndian ();
28798 return TIFFIsBigEndian ();
28803 if ac_fn_c_try_link "$LINENO"; then :
28804 ac_cv_lib_tiff_TIFFIsBigEndian=yes
28806 ac_cv_lib_tiff_TIFFIsBigEndian=no
28808 rm -f core conftest.err conftest.$ac_objext \
28809 conftest$ac_exeext conftest.$ac_ext
28810 LIBS=$ac_check_lib_save_LIBS
28812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
28813 $as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
28814 if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = x""yes; then :
28815 passed=`expr $passed + 1`
28817 failed=`expr $failed + 1`
28820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
28821 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
28822 if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
28823 $as_echo_n "(cached) " >&6
28825 ac_check_lib_save_LIBS=$LIBS
28826 LIBS="-ltiff $LIBS"
28827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28828 /* end confdefs.h. */
28830 /* Override any GCC internal prototype to avoid an error.
28831 Use char because int might match the return type of a GCC
28832 builtin and then its argument prototype would still apply. */
28836 char TIFFIsByteSwapped ();
28840 return TIFFIsByteSwapped ();
28845 if ac_fn_c_try_link "$LINENO"; then :
28846 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
28848 ac_cv_lib_tiff_TIFFIsByteSwapped=no
28850 rm -f core conftest.err conftest.$ac_objext \
28851 conftest$ac_exeext conftest.$ac_ext
28852 LIBS=$ac_check_lib_save_LIBS
28854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
28855 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
28856 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
28857 passed=`expr $passed + 1`
28859 failed=`expr $failed + 1`
28862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
28863 $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
28864 if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
28865 $as_echo_n "(cached) " >&6
28867 ac_check_lib_save_LIBS=$LIBS
28868 LIBS="-ltiff $LIBS"
28869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28870 /* end confdefs.h. */
28872 /* Override any GCC internal prototype to avoid an error.
28873 Use char because int might match the return type of a GCC
28874 builtin and then its argument prototype would still apply. */
28878 char TIFFReadRGBATile ();
28882 return TIFFReadRGBATile ();
28887 if ac_fn_c_try_link "$LINENO"; then :
28888 ac_cv_lib_tiff_TIFFReadRGBATile=yes
28890 ac_cv_lib_tiff_TIFFReadRGBATile=no
28892 rm -f core conftest.err conftest.$ac_objext \
28893 conftest$ac_exeext conftest.$ac_ext
28894 LIBS=$ac_check_lib_save_LIBS
28896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
28897 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
28898 if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
28899 passed=`expr $passed + 1`
28901 failed=`expr $failed + 1`
28904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
28905 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
28906 if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
28907 $as_echo_n "(cached) " >&6
28909 ac_check_lib_save_LIBS=$LIBS
28910 LIBS="-ltiff $LIBS"
28911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28912 /* end confdefs.h. */
28914 /* Override any GCC internal prototype to avoid an error.
28915 Use char because int might match the return type of a GCC
28916 builtin and then its argument prototype would still apply. */
28920 char TIFFReadRGBAStrip ();
28924 return TIFFReadRGBAStrip ();
28929 if ac_fn_c_try_link "$LINENO"; then :
28930 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
28932 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
28934 rm -f core conftest.err conftest.$ac_objext \
28935 conftest$ac_exeext conftest.$ac_ext
28936 LIBS=$ac_check_lib_save_LIBS
28938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
28939 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
28940 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
28941 passed=`expr $passed + 1`
28943 failed=`expr $failed + 1`
28946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
28947 $as_echo_n "checking if TIFF package is complete... " >&6; }
28948 if test $passed -gt 0; then
28949 if test $failed -gt 0; then
28950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28951 $as_echo "no -- some components failed test" >&6; }
28952 have_tiff='no (failed tests)'
28955 LIBS="$TIFF_LIBS $LIBS"
28957 $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
28959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28960 $as_echo "yes" >&6; }
28962 for ac_header in tiffconf.h
28964 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
28965 if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
28966 cat >>confdefs.h <<_ACEOF
28967 #define HAVE_TIFFCONF_H 1
28974 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
28975 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
28976 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
28978 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28979 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28980 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28981 cat >>confdefs.h <<_ACEOF
28982 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28991 $as_echo "no" >&6; }
28994 if test "$have_tiff" = 'yes'; then
28995 TIFF_DELEGATE_TRUE=
28996 TIFF_DELEGATE_FALSE='#'
28998 TIFF_DELEGATE_TRUE='#'
28999 TIFF_DELEGATE_FALSE=
29006 # Set Windows font directory.
29009 # Check whether --with-windows-font-dir was given.
29010 if test "${with_windows_font_dir+set}" = set; then :
29011 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29013 with_windows_font_dir=''
29016 if test "$with_windows_font_dir" != '' ; then
29017 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29022 # Check for WMF delegate library.
29025 # Check whether --with-wmf was given.
29026 if test "${with_wmf+set}" = set; then :
29027 withval=$with_wmf; with_wmf=$withval
29033 if test "$with_wmf" != 'yes'; then
29034 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29039 if test "$with_wmf" != 'no'; then
29040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29041 $as_echo "-------------------------------------------------------------" >&6; }
29042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
29043 $as_echo_n "checking for WMF... " >&6; }
29044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29048 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29049 if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29050 passed=`expr $passed + 1`
29052 failed=`expr $failed + 1`
29056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29057 $as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29058 if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
29059 $as_echo_n "(cached) " >&6
29061 ac_check_lib_save_LIBS=$LIBS
29062 LIBS="-lwmf "-lwmflite" $LIBS"
29063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29064 /* end confdefs.h. */
29066 /* Override any GCC internal prototype to avoid an error.
29067 Use char because int might match the return type of a GCC
29068 builtin and then its argument prototype would still apply. */
29072 char wmf_eps_function ();
29076 return wmf_eps_function ();
29081 if ac_fn_c_try_link "$LINENO"; then :
29082 ac_cv_lib_wmf_wmf_eps_function=yes
29084 ac_cv_lib_wmf_wmf_eps_function=no
29086 rm -f core conftest.err conftest.$ac_objext \
29087 conftest$ac_exeext conftest.$ac_ext
29088 LIBS=$ac_check_lib_save_LIBS
29090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29091 $as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29092 if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29093 passed=`expr $passed + 1`
29095 failed=`expr $failed + 1`
29098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29099 $as_echo_n "checking if WMF package is complete... " >&6; }
29100 if test $passed -gt 0; then
29101 if test $failed -gt 0; then
29102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29103 $as_echo "no -- some components failed test" >&6; }
29104 have_wmf='no (failed tests)'
29106 WMF_LIBS='-lwmf -lwmflite'
29107 LIBS="$WMF_LIBS $LIBS"
29109 $as_echo "#define WMF_DELEGATE 1" >>confdefs.h
29111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29112 $as_echo "yes" >&6; }
29116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29117 $as_echo "no" >&6; }
29120 if test "$have_wmf" = 'yes'; then
29122 WMF_DELEGATE_FALSE='#'
29124 WMF_DELEGATE_TRUE='#'
29125 WMF_DELEGATE_FALSE=
29134 # Check for XML delegate library.
29137 # Check whether --with-xml was given.
29138 if test "${with_xml+set}" = set; then :
29139 withval=$with_xml; with_xml=$withval
29145 if test "$with_xml" != 'yes' ; then
29146 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29151 if test "$with_xml" != 'no'; then
29152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29153 $as_echo "-------------------------------------------------------------" >&6; }
29154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
29155 $as_echo_n "checking for XML... " >&6; }
29156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29158 PERSIST_LDFLAGS=$LDFLAGS
29159 PERSIST_CPPFLAGS=$CPPFLAGS
29161 for ac_prog in xml2-config
29163 # Extract the first word of "$ac_prog", so it can be a program name with args.
29164 set dummy $ac_prog; ac_word=$2
29165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29166 $as_echo_n "checking for $ac_word... " >&6; }
29167 if test "${ac_cv_prog_xml2_config+set}" = set; then :
29168 $as_echo_n "(cached) " >&6
29170 if test -n "$xml2_config"; then
29171 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29174 for as_dir in $PATH
29177 test -z "$as_dir" && as_dir=.
29178 for ac_exec_ext in '' $ac_executable_extensions; do
29179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29180 ac_cv_prog_xml2_config="$ac_prog"
29181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29190 xml2_config=$ac_cv_prog_xml2_config
29191 if test -n "$xml2_config"; then
29192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
29193 $as_echo "$xml2_config" >&6; }
29195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29196 $as_echo "no" >&6; }
29200 test -n "$xml2_config" && break
29202 if test -n "$xml2_config"; then
29203 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29204 # the shared library installed under /usr/lib, whereas the package
29205 # installs itself under $prefix/libxml and $prefix/lib.
29206 xml2_prefix=`xml2-config --prefix`
29207 if test -d "${xml2_prefix}/include/libxml2"; then
29208 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29210 if test "${xml2_prefix}" != '/usr'; then
29211 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29216 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29217 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
29218 passed=`expr $passed + 1`
29220 failed=`expr $failed + 1`
29224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
29225 $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
29226 if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
29227 $as_echo_n "(cached) " >&6
29229 ac_check_lib_save_LIBS=$LIBS
29230 LIBS="-lxml2 $LIBS"
29231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29232 /* end confdefs.h. */
29234 /* Override any GCC internal prototype to avoid an error.
29235 Use char because int might match the return type of a GCC
29236 builtin and then its argument prototype would still apply. */
29240 char xmlParseExternalEntity ();
29244 return xmlParseExternalEntity ();
29249 if ac_fn_c_try_link "$LINENO"; then :
29250 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29252 ac_cv_lib_xml2_xmlParseExternalEntity=no
29254 rm -f core conftest.err conftest.$ac_objext \
29255 conftest$ac_exeext conftest.$ac_ext
29256 LIBS=$ac_check_lib_save_LIBS
29258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
29259 $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
29260 if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
29261 passed=`expr $passed + 1`
29263 failed=`expr $failed + 1`
29266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
29267 $as_echo_n "checking if XML package is complete... " >&6; }
29268 if test $passed -gt 0; then
29269 if test $failed -gt 0; then
29270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29271 $as_echo "no -- some components failed test" >&6; }
29272 have_xml='no (failed tests)'
29273 LDFLAGS="$PERSIST_LDFLAGS"
29274 CPPFLAGS="$PERSIST_CPPFLAGS"
29277 LIBS="$XML_LIBS $LIBS"
29279 $as_echo "#define XML_DELEGATE 1" >>confdefs.h
29281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29282 $as_echo "yes" >&6; }
29286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29287 $as_echo "no" >&6; }
29290 if test "$have_xml" = 'yes'; then
29292 XML_DELEGATE_FALSE='#'
29294 XML_DELEGATE_TRUE='#'
29295 XML_DELEGATE_FALSE=
29301 # Substitute compiler name to build/link PerlMagick
29306 # Configure install Paths
29309 # Subdirectory under lib to place ImageMagick lib files
29310 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29312 cat >>confdefs.h <<_ACEOF
29313 #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29317 # Path to ImageMagick bin directory
29318 EXECUTABLE_PATH="${BIN_DIR}"
29319 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29320 case "${build_os}" in
29322 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29326 cat >>confdefs.h <<_ACEOF
29327 #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29332 # Path to ImageMagick lib
29333 LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29334 DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29335 case "${build_os}" in
29337 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29341 cat >>confdefs.h <<_ACEOF
29342 #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29347 # Subdirectory under lib to place ImageMagick configuration files
29348 CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29350 cat >>confdefs.h <<_ACEOF
29351 #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29354 CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29355 DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29356 case "${build_os}" in
29358 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29362 cat >>confdefs.h <<_ACEOF
29363 #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29369 # Subdirectory under lib to place ImageMagick coder module files
29370 CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29372 cat >>confdefs.h <<_ACEOF
29373 #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29376 CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29377 DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29378 case "${build_os}" in
29380 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29384 cat >>confdefs.h <<_ACEOF
29385 #define CODER_PATH "$DEFINE_CODER_PATH"
29391 # Subdirectory under lib to place ImageMagick filter module files
29392 FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29394 cat >>confdefs.h <<_ACEOF
29395 #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29398 FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29399 DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29400 case "${build_os}" in
29402 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29406 cat >>confdefs.h <<_ACEOF
29407 #define FILTER_PATH "$DEFINE_FILTER_PATH"
29413 # Path to ImageMagick documentation files
29414 DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29415 DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29416 DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29417 case "${build_os}" in
29419 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29423 cat >>confdefs.h <<_ACEOF
29424 #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29430 # Path to ImageMagick share files
29431 SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29432 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29433 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29434 case "${build_os}" in
29436 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29440 cat >>confdefs.h <<_ACEOF
29441 #define SHARE_PATH "$DEFINE_SHARE_PATH"
29446 # Subdirectory under share to place ImageMagick configuration files
29447 SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29449 cat >>confdefs.h <<_ACEOF
29450 #define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29453 SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29454 DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29455 case "${build_os}" in
29457 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29461 cat >>confdefs.h <<_ACEOF
29462 #define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29468 # program_transform_name is formed for use in a Makefile, so create a
29469 # modified version for use in a shell script.
29470 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29472 # Default delegate definitions
29473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29474 $as_echo "-------------------------------------------------------------" >&6; }
29475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
29476 $as_echo_n "checking for ImageMagick delegate programs... " >&6; }
29477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29479 AutotraceDecodeDelegateDefault='autotrace'
29480 AVIDecodeDelegateDefault='mplayer'
29481 BlenderDecodeDelegateDefault='blender'
29482 BZIPDelegateDefault='bzip2'
29483 BrowseDelegateDefault='xdg-open'
29484 CGMDecodeDelegateDefault='ralcgm'
29485 CatDelegateDefault='cat'
29486 DNGDecodeDelegateDefault='ufraw-batch'
29487 GVCDecodeDelegateDefault='dot'
29488 DVIDecodeDelegateDefault='dvips'
29489 EchoDelegateDefault='echo'
29490 EditorDelegateDefault='xterm'
29491 FIGDecodeDelegateDefault='fig2dev'
29492 ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29493 DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29494 MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29495 GnuplotDecodeDelegateDefault='gnuplot'
29496 HDRDecodeDelegateDefault='ra_pfm'
29497 HPGLDecodeDelegateDefault='hp2xx'
29498 HTMLDecodeDelegateDefault='html2ps'
29499 ILBMDecodeDelegateDefault='ilbmtoppm'
29500 ILBMEncodeDelegateDefault='ppmtoilbm'
29501 LPDelegateDefault='lp'
29502 LPRDelegateDefault='lpr'
29503 LZWDecodeDelegateDefault='uncompress'
29504 LZWEncodeDelegateDefault='compress'
29505 LaunchDelegateDefault='gimp'
29506 MANDelegateDefault='groff'
29507 MPEGDecodeDelegateDefault='ffmpeg'
29508 MPEGEncodeDelegateDefault='ffmpeg'
29509 MrSIDDecodeDelegateDefault='mrsidgeodecode'
29510 MVDelegateDefault='mv'
29511 PCLDelegateDefault='pcl6'
29512 PGPDecodeDelegateDefault='pgpv'
29513 POVDelegateDefault='povray'
29514 if test "$native_win32_build" = 'yes'; then
29515 PSDelegateDefault='gswin32c'
29516 elif test "$gslib_framework" = 'yes'; then
29517 PSDelegateDefault='gsc'
29519 PSDelegateDefault='gs'
29521 RLEEncodeDelegateDefault='rawtorle'
29522 RMDelegateDefault='rm'
29523 RSVGDecodeDelegateDefault='rsvg'
29524 SCANDecodeDelegateDefault='scanimage'
29525 TXTDelegateDefault='enscript'
29526 UniconvertorDelegateDefault='uniconvertor'
29527 WMFDecodeDelegateDefault='wmf2eps'
29528 WWWDecodeDelegateDefault='curl'
29529 XPSDelegateDefault='gxps'
29530 ZipDelegateDefault='gzip'
29532 # Search for delegates
29533 # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29534 set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
29535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29536 $as_echo_n "checking for $ac_word... " >&6; }
29537 if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
29538 $as_echo_n "(cached) " >&6
29540 case $AutotraceDecodeDelegate in
29542 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29546 for as_dir in $PATH
29549 test -z "$as_dir" && as_dir=.
29550 for ac_exec_ext in '' $ac_executable_extensions; do
29551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29552 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29560 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29564 AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29565 if test -n "$AutotraceDecodeDelegate"; then
29566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
29567 $as_echo "$AutotraceDecodeDelegate" >&6; }
29569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29570 $as_echo "no" >&6; }
29574 # Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29575 set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
29576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29577 $as_echo_n "checking for $ac_word... " >&6; }
29578 if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
29579 $as_echo_n "(cached) " >&6
29581 case $AVIDecodeDelegate in
29583 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29587 for as_dir in $PATH
29590 test -z "$as_dir" && as_dir=.
29591 for ac_exec_ext in '' $ac_executable_extensions; do
29592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29593 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29601 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29605 AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29606 if test -n "$AVIDecodeDelegate"; then
29607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
29608 $as_echo "$AVIDecodeDelegate" >&6; }
29610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29611 $as_echo "no" >&6; }
29615 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29616 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
29617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29618 $as_echo_n "checking for $ac_word... " >&6; }
29619 if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
29620 $as_echo_n "(cached) " >&6
29622 case $BlenderDecodeDelegate in
29624 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29628 for as_dir in $PATH
29631 test -z "$as_dir" && as_dir=.
29632 for ac_exec_ext in '' $ac_executable_extensions; do
29633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29634 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29642 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29646 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29647 if test -n "$BlenderDecodeDelegate"; then
29648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
29649 $as_echo "$BlenderDecodeDelegate" >&6; }
29651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29652 $as_echo "no" >&6; }
29656 # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29657 set dummy "$BZIPDelegateDefault"; ac_word=$2
29658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29659 $as_echo_n "checking for $ac_word... " >&6; }
29660 if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
29661 $as_echo_n "(cached) " >&6
29663 case $BZIPDelegate in
29665 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29669 for as_dir in $PATH
29672 test -z "$as_dir" && as_dir=.
29673 for ac_exec_ext in '' $ac_executable_extensions; do
29674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29675 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
29676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29683 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29687 BZIPDelegate=$ac_cv_path_BZIPDelegate
29688 if test -n "$BZIPDelegate"; then
29689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
29690 $as_echo "$BZIPDelegate" >&6; }
29692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29693 $as_echo "no" >&6; }
29697 # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29698 set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
29699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29700 $as_echo_n "checking for $ac_word... " >&6; }
29701 if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
29702 $as_echo_n "(cached) " >&6
29704 case $BrowseDelegate in
29706 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29710 for as_dir in $PATH
29713 test -z "$as_dir" && as_dir=.
29714 for ac_exec_ext in '' $ac_executable_extensions; do
29715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29716 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
29717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29724 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29728 BrowseDelegate=$ac_cv_path_BrowseDelegate
29729 if test -n "$BrowseDelegate"; then
29730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
29731 $as_echo "$BrowseDelegate" >&6; }
29733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29734 $as_echo "no" >&6; }
29738 # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29739 set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
29740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29741 $as_echo_n "checking for $ac_word... " >&6; }
29742 if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
29743 $as_echo_n "(cached) " >&6
29745 case $CGMDecodeDelegate in
29747 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29751 for as_dir in $PATH
29754 test -z "$as_dir" && as_dir=.
29755 for ac_exec_ext in '' $ac_executable_extensions; do
29756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29757 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29765 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29769 CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29770 if test -n "$CGMDecodeDelegate"; then
29771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
29772 $as_echo "$CGMDecodeDelegate" >&6; }
29774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29775 $as_echo "no" >&6; }
29779 # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
29780 set dummy "$CatDelegateDefault"; ac_word=$2
29781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29782 $as_echo_n "checking for $ac_word... " >&6; }
29783 if test "${ac_cv_path_CatDelegate+set}" = set; then :
29784 $as_echo_n "(cached) " >&6
29786 case $CatDelegate in
29788 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
29791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29792 for as_dir in $PATH
29795 test -z "$as_dir" && as_dir=.
29796 for ac_exec_ext in '' $ac_executable_extensions; do
29797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29798 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
29799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29806 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
29810 CatDelegate=$ac_cv_path_CatDelegate
29811 if test -n "$CatDelegate"; then
29812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
29813 $as_echo "$CatDelegate" >&6; }
29815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29816 $as_echo "no" >&6; }
29820 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
29821 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
29822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29823 $as_echo_n "checking for $ac_word... " >&6; }
29824 if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
29825 $as_echo_n "(cached) " >&6
29827 case $DNGDecodeDelegate in
29829 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
29832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29833 for as_dir in $PATH
29836 test -z "$as_dir" && as_dir=.
29837 for ac_exec_ext in '' $ac_executable_extensions; do
29838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29839 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29847 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
29851 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
29852 if test -n "$DNGDecodeDelegate"; then
29853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
29854 $as_echo "$DNGDecodeDelegate" >&6; }
29856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29857 $as_echo "no" >&6; }
29861 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
29862 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
29863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29864 $as_echo_n "checking for $ac_word... " >&6; }
29865 if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
29866 $as_echo_n "(cached) " >&6
29868 case $GVCDecodeDelegate in
29870 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
29873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29874 for as_dir in $PATH
29877 test -z "$as_dir" && as_dir=.
29878 for ac_exec_ext in '' $ac_executable_extensions; do
29879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29880 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29888 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
29892 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
29893 if test -n "$GVCDecodeDelegate"; then
29894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
29895 $as_echo "$GVCDecodeDelegate" >&6; }
29897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29898 $as_echo "no" >&6; }
29902 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
29903 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
29904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29905 $as_echo_n "checking for $ac_word... " >&6; }
29906 if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
29907 $as_echo_n "(cached) " >&6
29909 case $DVIDecodeDelegate in
29911 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
29914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29915 for as_dir in $PATH
29918 test -z "$as_dir" && as_dir=.
29919 for ac_exec_ext in '' $ac_executable_extensions; do
29920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29921 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29929 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
29933 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
29934 if test -n "$DVIDecodeDelegate"; then
29935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
29936 $as_echo "$DVIDecodeDelegate" >&6; }
29938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29939 $as_echo "no" >&6; }
29943 # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
29944 set dummy "$EchoDelegateDefault"; ac_word=$2
29945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29946 $as_echo_n "checking for $ac_word... " >&6; }
29947 if test "${ac_cv_path_EchoDelegate+set}" = set; then :
29948 $as_echo_n "(cached) " >&6
29950 case $EchoDelegate in
29952 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
29955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29956 for as_dir in $PATH
29959 test -z "$as_dir" && as_dir=.
29960 for ac_exec_ext in '' $ac_executable_extensions; do
29961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29962 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
29963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29970 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
29974 EchoDelegate=$ac_cv_path_EchoDelegate
29975 if test -n "$EchoDelegate"; then
29976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
29977 $as_echo "$EchoDelegate" >&6; }
29979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29980 $as_echo "no" >&6; }
29984 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
29985 set dummy "$EditorDelegateDefault"; ac_word=$2
29986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29987 $as_echo_n "checking for $ac_word... " >&6; }
29988 if test "${ac_cv_path_EditorDelegate+set}" = set; then :
29989 $as_echo_n "(cached) " >&6
29991 case $EditorDelegate in
29993 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
29996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29997 for as_dir in $PATH
30000 test -z "$as_dir" && as_dir=.
30001 for ac_exec_ext in '' $ac_executable_extensions; do
30002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30003 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
30004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30011 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30015 EditorDelegate=$ac_cv_path_EditorDelegate
30016 if test -n "$EditorDelegate"; then
30017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
30018 $as_echo "$EditorDelegate" >&6; }
30020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30021 $as_echo "no" >&6; }
30025 # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30026 set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
30027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30028 $as_echo_n "checking for $ac_word... " >&6; }
30029 if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
30030 $as_echo_n "(cached) " >&6
30032 case $FIGDecodeDelegate in
30034 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30038 for as_dir in $PATH
30041 test -z "$as_dir" && as_dir=.
30042 for ac_exec_ext in '' $ac_executable_extensions; do
30043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30044 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30052 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30056 FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30057 if test -n "$FIGDecodeDelegate"; then
30058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
30059 $as_echo "$FIGDecodeDelegate" >&6; }
30061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30062 $as_echo "no" >&6; }
30066 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30067 set dummy "$ConvertDelegateDefault"; ac_word=$2
30068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30069 $as_echo_n "checking for $ac_word... " >&6; }
30070 if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
30071 $as_echo_n "(cached) " >&6
30073 case $ConvertDelegate in
30075 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30079 for as_dir in $PATH
30082 test -z "$as_dir" && as_dir=.
30083 for ac_exec_ext in '' $ac_executable_extensions; do
30084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30085 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
30086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30093 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30097 ConvertDelegate=$ac_cv_path_ConvertDelegate
30098 if test -n "$ConvertDelegate"; then
30099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
30100 $as_echo "$ConvertDelegate" >&6; }
30102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30103 $as_echo "no" >&6; }
30107 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30108 set dummy "$DisplayDelegateDefault"; ac_word=$2
30109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30110 $as_echo_n "checking for $ac_word... " >&6; }
30111 if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
30112 $as_echo_n "(cached) " >&6
30114 case $DisplayDelegate in
30116 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30120 for as_dir in $PATH
30123 test -z "$as_dir" && as_dir=.
30124 for ac_exec_ext in '' $ac_executable_extensions; do
30125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30126 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
30127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30134 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30138 DisplayDelegate=$ac_cv_path_DisplayDelegate
30139 if test -n "$DisplayDelegate"; then
30140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
30141 $as_echo "$DisplayDelegate" >&6; }
30143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30144 $as_echo "no" >&6; }
30148 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30149 set dummy "$MogrifyDelegateDefault"; ac_word=$2
30150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30151 $as_echo_n "checking for $ac_word... " >&6; }
30152 if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
30153 $as_echo_n "(cached) " >&6
30155 case $MogrifyDelegate in
30157 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30161 for as_dir in $PATH
30164 test -z "$as_dir" && as_dir=.
30165 for ac_exec_ext in '' $ac_executable_extensions; do
30166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30167 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
30168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30175 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30179 MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30180 if test -n "$MogrifyDelegate"; then
30181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
30182 $as_echo "$MogrifyDelegate" >&6; }
30184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30185 $as_echo "no" >&6; }
30189 # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30190 set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
30191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30192 $as_echo_n "checking for $ac_word... " >&6; }
30193 if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
30194 $as_echo_n "(cached) " >&6
30196 case $GnuplotDecodeDelegate in
30198 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30202 for as_dir in $PATH
30205 test -z "$as_dir" && as_dir=.
30206 for ac_exec_ext in '' $ac_executable_extensions; do
30207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30208 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30216 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30220 GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30221 if test -n "$GnuplotDecodeDelegate"; then
30222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
30223 $as_echo "$GnuplotDecodeDelegate" >&6; }
30225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30226 $as_echo "no" >&6; }
30230 # Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30231 set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
30232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30233 $as_echo_n "checking for $ac_word... " >&6; }
30234 if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
30235 $as_echo_n "(cached) " >&6
30237 case $HDRDecodeDelegate in
30239 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30243 for as_dir in $PATH
30246 test -z "$as_dir" && as_dir=.
30247 for ac_exec_ext in '' $ac_executable_extensions; do
30248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30249 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30257 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30261 HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30262 if test -n "$HDRDecodeDelegate"; then
30263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
30264 $as_echo "$HDRDecodeDelegate" >&6; }
30266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30267 $as_echo "no" >&6; }
30271 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30272 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
30273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30274 $as_echo_n "checking for $ac_word... " >&6; }
30275 if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
30276 $as_echo_n "(cached) " >&6
30278 case $HPGLDecodeDelegate in
30280 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30284 for as_dir in $PATH
30287 test -z "$as_dir" && as_dir=.
30288 for ac_exec_ext in '' $ac_executable_extensions; do
30289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30290 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30298 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30302 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30303 if test -n "$HPGLDecodeDelegate"; then
30304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
30305 $as_echo "$HPGLDecodeDelegate" >&6; }
30307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30308 $as_echo "no" >&6; }
30312 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30313 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
30314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30315 $as_echo_n "checking for $ac_word... " >&6; }
30316 if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
30317 $as_echo_n "(cached) " >&6
30319 case $HTMLDecodeDelegate in
30321 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30325 for as_dir in $PATH
30328 test -z "$as_dir" && as_dir=.
30329 for ac_exec_ext in '' $ac_executable_extensions; do
30330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30331 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30339 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30343 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30344 if test -n "$HTMLDecodeDelegate"; then
30345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
30346 $as_echo "$HTMLDecodeDelegate" >&6; }
30348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30349 $as_echo "no" >&6; }
30353 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30354 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
30355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30356 $as_echo_n "checking for $ac_word... " >&6; }
30357 if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
30358 $as_echo_n "(cached) " >&6
30360 case $ILBMDecodeDelegate in
30362 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30366 for as_dir in $PATH
30369 test -z "$as_dir" && as_dir=.
30370 for ac_exec_ext in '' $ac_executable_extensions; do
30371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30372 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30380 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30384 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30385 if test -n "$ILBMDecodeDelegate"; then
30386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
30387 $as_echo "$ILBMDecodeDelegate" >&6; }
30389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30390 $as_echo "no" >&6; }
30394 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30395 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
30396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30397 $as_echo_n "checking for $ac_word... " >&6; }
30398 if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
30399 $as_echo_n "(cached) " >&6
30401 case $ILBMEncodeDelegate in
30403 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30407 for as_dir in $PATH
30410 test -z "$as_dir" && as_dir=.
30411 for ac_exec_ext in '' $ac_executable_extensions; do
30412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30413 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30421 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30425 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30426 if test -n "$ILBMEncodeDelegate"; then
30427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
30428 $as_echo "$ILBMEncodeDelegate" >&6; }
30430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30431 $as_echo "no" >&6; }
30435 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30436 set dummy "$LPDelegateDefault"; ac_word=$2
30437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30438 $as_echo_n "checking for $ac_word... " >&6; }
30439 if test "${ac_cv_path_LPDelegate+set}" = set; then :
30440 $as_echo_n "(cached) " >&6
30442 case $LPDelegate in
30444 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30448 for as_dir in $PATH
30451 test -z "$as_dir" && as_dir=.
30452 for ac_exec_ext in '' $ac_executable_extensions; do
30453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30454 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
30455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30462 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30466 LPDelegate=$ac_cv_path_LPDelegate
30467 if test -n "$LPDelegate"; then
30468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
30469 $as_echo "$LPDelegate" >&6; }
30471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30472 $as_echo "no" >&6; }
30476 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30477 set dummy "$LPRDelegateDefault"; ac_word=$2
30478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30479 $as_echo_n "checking for $ac_word... " >&6; }
30480 if test "${ac_cv_path_LPRDelegate+set}" = set; then :
30481 $as_echo_n "(cached) " >&6
30483 case $LPRDelegate in
30485 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30489 for as_dir in $PATH
30492 test -z "$as_dir" && as_dir=.
30493 for ac_exec_ext in '' $ac_executable_extensions; do
30494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30495 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
30496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30503 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30507 LPRDelegate=$ac_cv_path_LPRDelegate
30508 if test -n "$LPRDelegate"; then
30509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
30510 $as_echo "$LPRDelegate" >&6; }
30512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30513 $as_echo "no" >&6; }
30517 # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30518 set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
30519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30520 $as_echo_n "checking for $ac_word... " >&6; }
30521 if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
30522 $as_echo_n "(cached) " >&6
30524 case $LZWDecodeDelegate in
30526 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30530 for as_dir in $PATH
30533 test -z "$as_dir" && as_dir=.
30534 for ac_exec_ext in '' $ac_executable_extensions; do
30535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30536 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30544 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30548 LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30549 if test -n "$LZWDecodeDelegate"; then
30550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
30551 $as_echo "$LZWDecodeDelegate" >&6; }
30553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30554 $as_echo "no" >&6; }
30558 # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30559 set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
30560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30561 $as_echo_n "checking for $ac_word... " >&6; }
30562 if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
30563 $as_echo_n "(cached) " >&6
30565 case $LZWEncodeDelegate in
30567 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30571 for as_dir in $PATH
30574 test -z "$as_dir" && as_dir=.
30575 for ac_exec_ext in '' $ac_executable_extensions; do
30576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30577 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30585 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30589 LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30590 if test -n "$LZWEncodeDelegate"; then
30591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
30592 $as_echo "$LZWEncodeDelegate" >&6; }
30594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30595 $as_echo "no" >&6; }
30599 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30600 set dummy "$LaunchDelegateDefault"; ac_word=$2
30601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30602 $as_echo_n "checking for $ac_word... " >&6; }
30603 if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
30604 $as_echo_n "(cached) " >&6
30606 case $LaunchDelegate in
30608 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30612 for as_dir in $PATH
30615 test -z "$as_dir" && as_dir=.
30616 for ac_exec_ext in '' $ac_executable_extensions; do
30617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30618 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
30619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30626 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30630 LaunchDelegate=$ac_cv_path_LaunchDelegate
30631 if test -n "$LaunchDelegate"; then
30632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
30633 $as_echo "$LaunchDelegate" >&6; }
30635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30636 $as_echo "no" >&6; }
30640 # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30641 set dummy "$MANDelegateDefault"; ac_word=$2
30642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30643 $as_echo_n "checking for $ac_word... " >&6; }
30644 if test "${ac_cv_path_MANDelegate+set}" = set; then :
30645 $as_echo_n "(cached) " >&6
30647 case $MANDelegate in
30649 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30653 for as_dir in $PATH
30656 test -z "$as_dir" && as_dir=.
30657 for ac_exec_ext in '' $ac_executable_extensions; do
30658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30659 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
30660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30667 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30671 MANDelegate=$ac_cv_path_MANDelegate
30672 if test -n "$MANDelegate"; then
30673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
30674 $as_echo "$MANDelegate" >&6; }
30676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30677 $as_echo "no" >&6; }
30681 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30682 set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
30683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30684 $as_echo_n "checking for $ac_word... " >&6; }
30685 if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
30686 $as_echo_n "(cached) " >&6
30688 case $MPEGDecodeDelegate in
30690 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30694 for as_dir in $PATH
30697 test -z "$as_dir" && as_dir=.
30698 for ac_exec_ext in '' $ac_executable_extensions; do
30699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30700 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30708 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30712 MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30713 if test -n "$MPEGDecodeDelegate"; then
30714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
30715 $as_echo "$MPEGDecodeDelegate" >&6; }
30717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30718 $as_echo "no" >&6; }
30722 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30723 set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
30724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30725 $as_echo_n "checking for $ac_word... " >&6; }
30726 if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
30727 $as_echo_n "(cached) " >&6
30729 case $MPEGEncodeDelegate in
30731 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30735 for as_dir in $PATH
30738 test -z "$as_dir" && as_dir=.
30739 for ac_exec_ext in '' $ac_executable_extensions; do
30740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30741 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30749 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30753 MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30754 if test -n "$MPEGEncodeDelegate"; then
30755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
30756 $as_echo "$MPEGEncodeDelegate" >&6; }
30758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30759 $as_echo "no" >&6; }
30763 # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30764 set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30766 $as_echo_n "checking for $ac_word... " >&6; }
30767 if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30768 $as_echo_n "(cached) " >&6
30770 case $MrSIDDecodeDelegate in
30772 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30776 for as_dir in $PATH
30779 test -z "$as_dir" && as_dir=.
30780 for ac_exec_ext in '' $ac_executable_extensions; do
30781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30782 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30790 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
30794 MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
30795 if test -n "$MrSIDDecodeDelegate"; then
30796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
30797 $as_echo "$MrSIDDecodeDelegate" >&6; }
30799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30800 $as_echo "no" >&6; }
30804 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
30805 set dummy "$MVDelegateDefault"; ac_word=$2
30806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30807 $as_echo_n "checking for $ac_word... " >&6; }
30808 if test "${ac_cv_path_MVDelegate+set}" = set; then :
30809 $as_echo_n "(cached) " >&6
30811 case $MVDelegate in
30813 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
30816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30817 for as_dir in $PATH
30820 test -z "$as_dir" && as_dir=.
30821 for ac_exec_ext in '' $ac_executable_extensions; do
30822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30823 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
30824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30831 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
30835 MVDelegate=$ac_cv_path_MVDelegate
30836 if test -n "$MVDelegate"; then
30837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
30838 $as_echo "$MVDelegate" >&6; }
30840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30841 $as_echo "no" >&6; }
30845 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
30846 set dummy "$PCLDelegateDefault"; ac_word=$2
30847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30848 $as_echo_n "checking for $ac_word... " >&6; }
30849 if test "${ac_cv_path_PCLDelegate+set}" = set; then :
30850 $as_echo_n "(cached) " >&6
30852 case $PCLDelegate in
30854 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
30857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30858 for as_dir in $PATH
30861 test -z "$as_dir" && as_dir=.
30862 for ac_exec_ext in '' $ac_executable_extensions; do
30863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30864 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
30865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30872 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
30876 PCLDelegate=$ac_cv_path_PCLDelegate
30877 if test -n "$PCLDelegate"; then
30878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
30879 $as_echo "$PCLDelegate" >&6; }
30881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30882 $as_echo "no" >&6; }
30886 # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
30887 set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
30888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30889 $as_echo_n "checking for $ac_word... " >&6; }
30890 if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
30891 $as_echo_n "(cached) " >&6
30893 case $PGPDecodeDelegate in
30895 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
30898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30899 for as_dir in $PATH
30902 test -z "$as_dir" && as_dir=.
30903 for ac_exec_ext in '' $ac_executable_extensions; do
30904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30905 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30913 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
30917 PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
30918 if test -n "$PGPDecodeDelegate"; then
30919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
30920 $as_echo "$PGPDecodeDelegate" >&6; }
30922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30923 $as_echo "no" >&6; }
30927 # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
30928 set dummy "$POVDelegateDefault"; ac_word=$2
30929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30930 $as_echo_n "checking for $ac_word... " >&6; }
30931 if test "${ac_cv_path_POVDelegate+set}" = set; then :
30932 $as_echo_n "(cached) " >&6
30934 case $POVDelegate in
30936 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
30939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30940 for as_dir in $PATH
30943 test -z "$as_dir" && as_dir=.
30944 for ac_exec_ext in '' $ac_executable_extensions; do
30945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30946 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
30947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30954 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
30958 POVDelegate=$ac_cv_path_POVDelegate
30959 if test -n "$POVDelegate"; then
30960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
30961 $as_echo "$POVDelegate" >&6; }
30963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30964 $as_echo "no" >&6; }
30968 for ac_prog in gsx gsc "$PSDelegateDefault"
30970 # Extract the first word of "$ac_prog", so it can be a program name with args.
30971 set dummy $ac_prog; ac_word=$2
30972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30973 $as_echo_n "checking for $ac_word... " >&6; }
30974 if test "${ac_cv_path_PSDelegate+set}" = set; then :
30975 $as_echo_n "(cached) " >&6
30977 case $PSDelegate in
30979 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
30982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30983 for as_dir in $PATH
30986 test -z "$as_dir" && as_dir=.
30987 for ac_exec_ext in '' $ac_executable_extensions; do
30988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30989 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
30990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31000 PSDelegate=$ac_cv_path_PSDelegate
31001 if test -n "$PSDelegate"; then
31002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
31003 $as_echo "$PSDelegate" >&6; }
31005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31006 $as_echo "no" >&6; }
31010 test -n "$PSDelegate" && break
31012 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31014 # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31015 set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
31016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31017 $as_echo_n "checking for $ac_word... " >&6; }
31018 if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
31019 $as_echo_n "(cached) " >&6
31021 case $RLEEncodeDelegate in
31023 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31027 for as_dir in $PATH
31030 test -z "$as_dir" && as_dir=.
31031 for ac_exec_ext in '' $ac_executable_extensions; do
31032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31033 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31041 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31045 RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31046 if test -n "$RLEEncodeDelegate"; then
31047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
31048 $as_echo "$RLEEncodeDelegate" >&6; }
31050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31051 $as_echo "no" >&6; }
31055 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31056 set dummy "$RMDelegateDefault"; ac_word=$2
31057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31058 $as_echo_n "checking for $ac_word... " >&6; }
31059 if test "${ac_cv_path_RMDelegate+set}" = set; then :
31060 $as_echo_n "(cached) " >&6
31062 case $RMDelegate in
31064 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31068 for as_dir in $PATH
31071 test -z "$as_dir" && as_dir=.
31072 for ac_exec_ext in '' $ac_executable_extensions; do
31073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31074 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
31075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31082 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31086 RMDelegate=$ac_cv_path_RMDelegate
31087 if test -n "$RMDelegate"; then
31088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
31089 $as_echo "$RMDelegate" >&6; }
31091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31092 $as_echo "no" >&6; }
31096 # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31097 set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31099 $as_echo_n "checking for $ac_word... " >&6; }
31100 if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31101 $as_echo_n "(cached) " >&6
31103 case $RSVGDecodeDelegate in
31105 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31109 for as_dir in $PATH
31112 test -z "$as_dir" && as_dir=.
31113 for ac_exec_ext in '' $ac_executable_extensions; do
31114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31115 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31123 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31127 RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31128 if test -n "$RSVGDecodeDelegate"; then
31129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31130 $as_echo "$RSVGDecodeDelegate" >&6; }
31132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31133 $as_echo "no" >&6; }
31137 # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31138 set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
31139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31140 $as_echo_n "checking for $ac_word... " >&6; }
31141 if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
31142 $as_echo_n "(cached) " >&6
31144 case $SCANDecodeDelegate in
31146 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31150 for as_dir in $PATH
31153 test -z "$as_dir" && as_dir=.
31154 for ac_exec_ext in '' $ac_executable_extensions; do
31155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31156 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31164 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31168 SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31169 if test -n "$SCANDecodeDelegate"; then
31170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
31171 $as_echo "$SCANDecodeDelegate" >&6; }
31173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31174 $as_echo "no" >&6; }
31178 # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31179 set dummy "$TXTDelegateDefault"; ac_word=$2
31180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31181 $as_echo_n "checking for $ac_word... " >&6; }
31182 if test "${ac_cv_path_TXTDelegate+set}" = set; then :
31183 $as_echo_n "(cached) " >&6
31185 case $TXTDelegate in
31187 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31191 for as_dir in $PATH
31194 test -z "$as_dir" && as_dir=.
31195 for ac_exec_ext in '' $ac_executable_extensions; do
31196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31197 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
31198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31205 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31209 TXTDelegate=$ac_cv_path_TXTDelegate
31210 if test -n "$TXTDelegate"; then
31211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
31212 $as_echo "$TXTDelegate" >&6; }
31214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31215 $as_echo "no" >&6; }
31219 # Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
31220 set dummy "$UniconvertorDelegateDefault"; ac_word=$2
31221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31222 $as_echo_n "checking for $ac_word... " >&6; }
31223 if test "${ac_cv_path_UniconvertorDelegate+set}" = set; then :
31224 $as_echo_n "(cached) " >&6
31226 case $UniconvertorDelegate in
31228 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
31231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31232 for as_dir in $PATH
31235 test -z "$as_dir" && as_dir=.
31236 for ac_exec_ext in '' $ac_executable_extensions; do
31237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31238 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
31239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31246 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
31250 UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
31251 if test -n "$UniconvertorDelegate"; then
31252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
31253 $as_echo "$UniconvertorDelegate" >&6; }
31255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31256 $as_echo "no" >&6; }
31260 # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31261 set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
31262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31263 $as_echo_n "checking for $ac_word... " >&6; }
31264 if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
31265 $as_echo_n "(cached) " >&6
31267 case $WMFDecodeDelegate in
31269 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31273 for as_dir in $PATH
31276 test -z "$as_dir" && as_dir=.
31277 for ac_exec_ext in '' $ac_executable_extensions; do
31278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31279 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31287 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31291 WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31292 if test -n "$WMFDecodeDelegate"; then
31293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
31294 $as_echo "$WMFDecodeDelegate" >&6; }
31296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31297 $as_echo "no" >&6; }
31301 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31302 set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
31303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31304 $as_echo_n "checking for $ac_word... " >&6; }
31305 if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
31306 $as_echo_n "(cached) " >&6
31308 case $WWWDecodeDelegate in
31310 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31314 for as_dir in $PATH
31317 test -z "$as_dir" && as_dir=.
31318 for ac_exec_ext in '' $ac_executable_extensions; do
31319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31320 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31328 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31332 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31333 if test -n "$WWWDecodeDelegate"; then
31334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
31335 $as_echo "$WWWDecodeDelegate" >&6; }
31337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31338 $as_echo "no" >&6; }
31342 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31343 set dummy "$XPSDelegateDefault"; ac_word=$2
31344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31345 $as_echo_n "checking for $ac_word... " >&6; }
31346 if test "${ac_cv_path_XPSDelegate+set}" = set; then :
31347 $as_echo_n "(cached) " >&6
31349 case $XPSDelegate in
31351 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31355 for as_dir in $PATH
31358 test -z "$as_dir" && as_dir=.
31359 for ac_exec_ext in '' $ac_executable_extensions; do
31360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31361 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
31362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31369 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31373 XPSDelegate=$ac_cv_path_XPSDelegate
31374 if test -n "$XPSDelegate"; then
31375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
31376 $as_echo "$XPSDelegate" >&6; }
31378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31379 $as_echo "no" >&6; }
31383 # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31384 set dummy "$ZipDelegateDefault"; ac_word=$2
31385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31386 $as_echo_n "checking for $ac_word... " >&6; }
31387 if test "${ac_cv_path_ZipDelegate+set}" = set; then :
31388 $as_echo_n "(cached) " >&6
31390 case $ZipDelegate in
31392 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31396 for as_dir in $PATH
31399 test -z "$as_dir" && as_dir=.
31400 for ac_exec_ext in '' $ac_executable_extensions; do
31401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31402 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
31403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31410 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31414 ZipDelegate=$ac_cv_path_ZipDelegate
31415 if test -n "$ZipDelegate"; then
31416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
31417 $as_echo "$ZipDelegate" >&6; }
31419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31420 $as_echo "no" >&6; }
31425 # Prefer lpr to lp; lp needs options tacked on.
31426 if test "$LPRDelegate" != no; then
31427 PrintDelegate="$LPRDelegate"
31429 PrintDelegate="$LPDelegate -c -s"
31433 # Installed ImageMagick utiltity paths
31434 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31435 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31436 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31438 # Set delegate booleans
31439 have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31440 have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31441 have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31442 have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31443 have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31444 have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
31445 have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
31446 have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31447 have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31448 have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31449 have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31450 have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31453 # Test for font directories
31455 type_include_files=''
31458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31459 $as_echo_n "checking for Dejavu fonts directory... " >&6; }
31461 if test "${with_dejavu_font_dir}" != 'default'; then
31462 dejavu_font_dir="${with_dejavu_font_dir}/"
31464 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31465 if test -f "${font_dir}DejaVuSerif.ttf"; then
31466 dejavu_font_dir="${font_dir}"
31471 if test "${dejavu_font_dir}x" != 'x'; then
31472 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31474 $as_echo "$dejavu_font_dir" >&6; }
31476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31477 $as_echo "not found!" >&6; };
31482 windows_font_dir=''
31483 if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31484 windows_font_dir="${with_windows_font_dir}/"
31486 if test "${windows_font_dir}x" != 'x'; then
31487 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31488 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31490 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31491 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31493 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31494 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31497 if test "${windows_font_dir}x" != 'x'; then
31498 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
31504 $as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31505 ghostscript_font_dir=''
31506 if test "${with_gs_font_dir}" != 'default'; then
31507 ghostscript_font_dir="${with_gs_font_dir}/"
31509 if test "${native_win32_build}" = 'yes'; then
31510 # Native Windows Build
31511 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31512 if test -f "${font_dir}a010013l.pfb"; then
31513 ghostscript_font_dir="$font_dir"
31517 if test "${PSDelegate}" != 'gswin32c'; then
31518 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31521 # Linux / Mac OS X / Unix Build
31522 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
31523 if test -f "${font_dir}a010013l.pfb"; then
31524 ghostscript_font_dir="${font_dir}"
31528 if test "${ghostscript_font_dir}x" = 'x'; then
31529 if test "$PSDelegate" != 'gs'; then
31530 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31535 if test "${ghostscript_font_dir}x" != 'x'; then
31536 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
31537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
31538 $as_echo "$ghostscript_font_dir" >&6; }
31540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31541 $as_echo "not found!" >&6; };
31544 case "${build_os}" in
31546 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31553 # Handle case where user doesn't want frozen paths
31555 if test "$with_frozenpaths" != 'yes'; then
31556 # Re-set delegate definitions to default (no paths)
31557 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31558 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31559 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31560 BZIPDelegate="$BZIPDelegateDefault"
31561 BrowseDelegate="$BrowseDelegateDefault"
31562 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31563 CatDelegate="$CatDelegateDefault"
31564 ConvertDelegate="$ConvertDelegateDefault"
31565 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31566 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31567 EchoDelegate="$EchoDelegateDefault"
31568 EditorDelegate="$EditorDelegateDefault"
31569 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31570 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31571 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31572 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31573 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31574 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31575 LPDelegate="$LPDelegateDefault"
31576 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31577 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31578 LaunchDelegate="$LaunchDelegateDefault"
31579 MANDelegate="$MANDelegateDefault"
31580 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31581 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
31582 MogrifyDelegate="$MogrifyDelegateDefault"
31583 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31584 MVDelegate="$MVDelegateDefault"
31585 PCLDelegate="$PCLDelegateDefault"
31586 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31587 POVDelegate="$POVDelegateDefault"
31588 PSDelegate="$PSDelegateDefault"
31589 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31590 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31591 RMDelegate="$RMDelegateDefault"
31592 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
31593 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31594 ShowImageDelegate="$ShowImageDelegateDefault"
31595 TXTDelegate="$TXTDelegateDefault"
31596 UniconvertorDelegate="$UniconvertorDelegateDefault"
31597 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31598 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31599 XPSDelegate="$XPSDelegateDefault"
31600 ZipDelegate="$ZipDelegateDefault"
31603 # Delegate substitutions
31652 for ac_prog in gnutar gtar tar
31654 # Extract the first word of "$ac_prog", so it can be a program name with args.
31655 set dummy $ac_prog; ac_word=$2
31656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31657 $as_echo_n "checking for $ac_word... " >&6; }
31658 if test "${ac_cv_prog_TAR+set}" = set; then :
31659 $as_echo_n "(cached) " >&6
31661 if test -n "$TAR"; then
31662 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31665 for as_dir in $PATH
31668 test -z "$as_dir" && as_dir=.
31669 for ac_exec_ext in '' $ac_executable_extensions; do
31670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31671 ac_cv_prog_TAR="$ac_prog"
31672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31681 TAR=$ac_cv_prog_TAR
31682 if test -n "$TAR"; then
31683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
31684 $as_echo "$TAR" >&6; }
31686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31687 $as_echo "no" >&6; }
31691 test -n "$TAR" && break
31694 for ac_prog in perl
31696 # Extract the first word of "$ac_prog", so it can be a program name with args.
31697 set dummy $ac_prog; ac_word=$2
31698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31699 $as_echo_n "checking for $ac_word... " >&6; }
31700 if test "${ac_cv_prog_PERL+set}" = set; then :
31701 $as_echo_n "(cached) " >&6
31703 if test -n "$PERL"; then
31704 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31707 for as_dir in $PATH
31710 test -z "$as_dir" && as_dir=.
31711 for ac_exec_ext in '' $ac_executable_extensions; do
31712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31713 ac_cv_prog_PERL="$ac_prog"
31714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31723 PERL=$ac_cv_prog_PERL
31724 if test -n "$PERL"; then
31725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
31726 $as_echo "$PERL" >&6; }
31728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31729 $as_echo "no" >&6; }
31733 test -n "$PERL" && break
31736 for ac_prog in rpmbuild rpm
31738 # Extract the first word of "$ac_prog", so it can be a program name with args.
31739 set dummy $ac_prog; ac_word=$2
31740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31741 $as_echo_n "checking for $ac_word... " >&6; }
31742 if test "${ac_cv_prog_RPM+set}" = set; then :
31743 $as_echo_n "(cached) " >&6
31745 if test -n "$RPM"; then
31746 ac_cv_prog_RPM="$RPM" # Let the user override the test.
31748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31749 for as_dir in $PATH
31752 test -z "$as_dir" && as_dir=.
31753 for ac_exec_ext in '' $ac_executable_extensions; do
31754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31755 ac_cv_prog_RPM="$ac_prog"
31756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31765 RPM=$ac_cv_prog_RPM
31766 if test -n "$RPM"; then
31767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
31768 $as_echo "$RPM" >&6; }
31770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31771 $as_echo "no" >&6; }
31775 test -n "$RPM" && break
31779 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
31782 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
31785 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
31788 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
31791 if test "x$RPM" != "x" ; then
31793 RPM_DELEGATE_FALSE='#'
31795 RPM_DELEGATE_TRUE='#'
31796 RPM_DELEGATE_FALSE=
31801 # 7ZIP support (http://p7zip.sourceforge.net/)
31806 # Extract the first word of "$ac_prog", so it can be a program name with args.
31807 set dummy $ac_prog; ac_word=$2
31808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31809 $as_echo_n "checking for $ac_word... " >&6; }
31810 if test "${ac_cv_prog_P7ZIP+set}" = set; then :
31811 $as_echo_n "(cached) " >&6
31813 if test -n "$P7ZIP"; then
31814 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
31816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31817 for as_dir in $PATH
31820 test -z "$as_dir" && as_dir=.
31821 for ac_exec_ext in '' $ac_executable_extensions; do
31822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31823 ac_cv_prog_P7ZIP="$ac_prog"
31824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31833 P7ZIP=$ac_cv_prog_P7ZIP
31834 if test -n "$P7ZIP"; then
31835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
31836 $as_echo "$P7ZIP" >&6; }
31838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31839 $as_echo "no" >&6; }
31843 test -n "$P7ZIP" && break
31847 if test "x$P7ZIP" != "x" ; then
31848 P7ZIP_DELEGATE_TRUE=
31849 P7ZIP_DELEGATE_FALSE='#'
31851 P7ZIP_DELEGATE_TRUE='#'
31852 P7ZIP_DELEGATE_FALSE=
31857 # ZIP support (http://www.info-zip.org/Zip.html)
31862 # Extract the first word of "$ac_prog", so it can be a program name with args.
31863 set dummy $ac_prog; ac_word=$2
31864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31865 $as_echo_n "checking for $ac_word... " >&6; }
31866 if test "${ac_cv_prog_ZIP+set}" = set; then :
31867 $as_echo_n "(cached) " >&6
31869 if test -n "$ZIP"; then
31870 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
31872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31873 for as_dir in $PATH
31876 test -z "$as_dir" && as_dir=.
31877 for ac_exec_ext in '' $ac_executable_extensions; do
31878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31879 ac_cv_prog_ZIP="$ac_prog"
31880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31889 ZIP=$ac_cv_prog_ZIP
31890 if test -n "$ZIP"; then
31891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
31892 $as_echo "$ZIP" >&6; }
31894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31895 $as_echo "no" >&6; }
31899 test -n "$ZIP" && break
31903 if test "x$ZIP" != "x" ; then
31905 ZIP_DELEGATE_FALSE='#'
31907 ZIP_DELEGATE_TRUE='#'
31908 ZIP_DELEGATE_FALSE=
31913 # GhostPCL related configuration.
31915 PCLColorDevice=ppmraw
31916 PCLCMYKDevice=bmpsep8
31917 PCLMonoDevice=pbmraw
31918 if test -z "$PCLVersion"; then
31919 PCLVersion='unknown'
31921 if test $have_pcl = 'yes'; then
31922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31923 $as_echo "-------------------------------------------------------------" >&6; }
31924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
31925 $as_echo_n "checking for PCL... " >&6; }
31926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
31930 $as_echo_n "checking for pcl color device... " >&6; }
31931 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31934 PCLColorDevice=ppmraw
31936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
31937 $as_echo "$PCLColorDevice" >&6; }
31940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
31941 $as_echo_n "checking for pcl CMYK device... " >&6; }
31942 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31945 PCLCMYKDevice=$PCLColorDevice
31947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
31948 $as_echo "$PCLCMYKDevice" >&6; }
31951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
31952 $as_echo_n "checking for pcl mono device... " >&6; }
31953 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31956 PCLMonoDevice=$PCLColorDevice
31958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
31959 $as_echo "$PCLMonoDevice" >&6; }
31968 # GhostXPS related configuration.
31970 XPSColorDevice=ppmraw
31971 XPSCMYKDevice=bmpsep8
31972 XPSMonoDevice=pbmraw
31973 if test -z "$XPSVersion"; then
31974 XPSVersion='unknown'
31976 if test $have_xps = 'yes'; then
31977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31978 $as_echo "-------------------------------------------------------------" >&6; }
31979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
31980 $as_echo_n "checking for XPS... " >&6; }
31981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
31985 $as_echo_n "checking for xps color device... " >&6; }
31986 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
31989 XPSColorDevice=ppmraw
31991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
31992 $as_echo "$XPSColorDevice" >&6; }
31995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
31996 $as_echo_n "checking for xps CMYK device... " >&6; }
31997 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32000 XPSCMYKDevice=$XPSColorDevice
32002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
32003 $as_echo "$XPSCMYKDevice" >&6; }
32006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
32007 $as_echo_n "checking for xps mono device... " >&6; }
32008 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32011 XPSMonoDevice=$XPSColorDevice
32013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
32014 $as_echo "$XPSMonoDevice" >&6; }
32023 # Ghostscript related configuration.
32025 if test "$have_png" = 'yes'; then
32026 GSAlphaDevice=pngalpha
32028 GSAlphaDevice=pnmraw
32030 GSColorDevice=pnmraw
32032 GSMonoDevice=pbmraw
32033 GSPDFDevice=pdfwrite
32035 GSEPSDevice=epswrite
32036 GSVersion='unknown'
32037 if test $have_gs = 'yes'; then
32038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32039 $as_echo "-------------------------------------------------------------" >&6; }
32040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
32041 $as_echo_n "checking for Ghostscript... " >&6; }
32042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
32045 $as_echo_n "checking for Ghostscript version... " >&6; }
32046 if GSVersion=`$PSDelegate --version`; then
32049 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
32052 $as_echo "$GSVersion" >&6; }
32055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
32056 $as_echo_n "checking for gs alpha device... " >&6; }
32057 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32060 GSAlphaDevice=pnmraw
32062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
32063 $as_echo "$GSAlphaDevice" >&6; }
32066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
32067 $as_echo_n "checking for gs color device... " >&6; }
32068 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32071 GSColorDevice=pnmraw
32073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
32074 $as_echo "$GSColorDevice" >&6; }
32077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
32078 $as_echo_n "checking for gs CMYK device... " >&6; }
32079 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32082 GSCMYKDevice=bmpsep8
32084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
32085 $as_echo "$GSCMYKDevice" >&6; }
32088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
32089 $as_echo_n "checking for gs mono device... " >&6; }
32090 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32093 GSMonoDevice=$GSColorDevice
32095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
32096 $as_echo "$GSMonoDevice" >&6; }
32099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
32100 $as_echo_n "checking for gs PDF writing device... " >&6; }
32101 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32104 GSPDFDevice=nodevice
32106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
32107 $as_echo "$GSPDFDevice" >&6; }
32110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
32111 $as_echo_n "checking for gs PS writing device... " >&6; }
32112 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32115 GSPSDevice=nodevice
32117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
32118 $as_echo "$GSPSDevice" >&6; }
32121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
32122 $as_echo_n "checking for gs EPS writing device... " >&6; }
32123 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32126 GSEPSDevice=nodevice
32128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
32129 $as_echo "$GSEPSDevice" >&6; }
32142 # PerlMagick-related configuration
32145 # Look for PERL if PerlMagick requested
32146 # If name/path of desired PERL interpreter is specified, look for that one first
32148 if test "$with_perl" != 'no'; then
32149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32150 $as_echo "-------------------------------------------------------------" >&6; }
32151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
32152 $as_echo_n "checking for Perl... " >&6; }
32153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32155 if test "$with_perl" != 'yes'; then
32156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
32157 $as_echo_n "checking for perl... " >&6; }
32158 if test "${ac_cv_path_PERL+set}" = set; then :
32159 $as_echo_n "(cached) " >&6
32161 ac_cv_path_PERL="$with_perl"
32163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
32164 $as_echo "$ac_cv_path_PERL" >&6; };
32165 PERL=$ac_cv_path_PERL
32166 have_perl="$ac_cv_path_PERL"
32168 for ac_prog in perl perl5
32170 # Extract the first word of "$ac_prog", so it can be a program name with args.
32171 set dummy $ac_prog; ac_word=$2
32172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32173 $as_echo_n "checking for $ac_word... " >&6; }
32174 if test "${ac_cv_path_PERL+set}" = set; then :
32175 $as_echo_n "(cached) " >&6
32179 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32183 for as_dir in $PATH
32186 test -z "$as_dir" && as_dir=.
32187 for ac_exec_ext in '' $ac_executable_extensions; do
32188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32189 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
32190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32200 PERL=$ac_cv_path_PERL
32201 if test -n "$PERL"; then
32202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
32203 $as_echo "$PERL" >&6; }
32205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32206 $as_echo "no" >&6; }
32210 test -n "$PERL" && break
32212 if test "$ac_cv_path_PERL"; then
32213 have_perl="$ac_cv_path_PERL"
32218 if test "$with_perl" != 'yes' ; then
32219 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32222 PERL_SUPPORTS_DESTDIR='no'
32224 with_perl_static='no'
32225 with_perl_dynamic='no'
32226 if test "$have_perl" != 'no'; then
32227 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32228 with_perl_static='yes'
32230 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32231 with_perl_dynamic='yes'
32233 # Is PERL's MakeMaker new enough to support DESTDIR?
32238 if test -n "$PERL"; then :
32240 ax_perl_version="5.8.1"
32242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32243 $as_echo_n "checking for perl version... " >&6; }
32245 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32248 $as_echo "$perl_version" >&6; }
32250 PERL_VERSION=$perl_version
32256 # Used to indicate true or false condition
32257 ax_compare_version=false
32259 # Convert the two version strings to be compared into a format that
32260 # allows a simple string comparison. The end result is that a version
32261 # string of the form 1.12.5-r617 will be converted to the form
32262 # 0001001200050617. In other words, each number is zero padded to four
32263 # digits, and non digits are removed.
32265 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32266 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32267 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32268 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32272 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32273 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32274 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32275 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32279 ax_compare_version=`echo "x$ax_compare_version_A
32280 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32284 if test "$ax_compare_version" = "true" ; then
32287 PERL_SUPPORTS_DESTDIR='yes'
32291 PERL_SUPPORTS_DESTDIR='no'
32298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32299 $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32300 PERL_SUPPORTS_DESTDIR='no'
32305 if test "$have_perl" != 'no'; then
32307 WITH_PERL_FALSE='#'
32313 if test $with_perl_static = 'yes'; then
32314 WITH_PERL_STATIC_TRUE=
32315 WITH_PERL_STATIC_FALSE='#'
32317 WITH_PERL_STATIC_TRUE='#'
32318 WITH_PERL_STATIC_FALSE=
32321 if test $with_perl_dynamic = 'yes'; then
32322 WITH_PERL_DYNAMIC_TRUE=
32323 WITH_PERL_DYNAMIC_FALSE='#'
32325 WITH_PERL_DYNAMIC_TRUE='#'
32326 WITH_PERL_DYNAMIC_FALSE=
32331 # Determine path to pick up MagickCore library from for use with building PerlMagick
32332 MAGICKCORE_PATH="${LIB_DIR}"
32333 if test $with_perl_static = 'yes'; then
32334 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32335 libtool_objdir=$objdir
32337 # Linker search path to library, followed by -lMagickCore
32338 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32342 # Create a simple string containing format names for all delegate libraries
32344 if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32345 if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32346 if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32347 if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32348 if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32349 if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32350 if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32351 if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32352 if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32353 if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32354 if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32355 if test "$have_jpeg" = 'yes'; then
32356 DELEGATES="$DELEGATES jpeg";
32357 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32359 if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
32360 if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
32361 if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32362 if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32363 if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32364 if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32365 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32366 if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32367 if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32368 if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32369 if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32370 if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32371 if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32376 # Handle special compiler flags
32379 # Add '-p' if prof source profiling support enabled
32380 if test "$enable_prof" = 'yes'; then
32381 CFLAGS="-p $CFLAGS"
32382 CXXFLAGS="-p $CXXFLAGS"
32383 LDFLAGS="-p $LDFLAGS"
32386 # Add '-pg' if gprof source profiling support enabled
32387 if test "$enable_gprof" = 'yes'; then
32388 CFLAGS="-pg $CFLAGS"
32389 CXXFLAGS="-pg $CXXFLAGS"
32390 LDFLAGS="-pg $LDFLAGS"
32393 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32394 # This is a gcc-specific feature
32395 if test "$enable_gcov" = 'yes'; then
32396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
32397 $as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
32398 if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
32399 $as_echo_n "(cached) " >&6
32401 ac_check_lib_save_LIBS=$LIBS
32402 LIBS="-lgcov $LIBS"
32403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32404 /* end confdefs.h. */
32406 /* Override any GCC internal prototype to avoid an error.
32407 Use char because int might match the return type of a GCC
32408 builtin and then its argument prototype would still apply. */
32412 char _gcov_init ();
32416 return _gcov_init ();
32421 if ac_fn_c_try_link "$LINENO"; then :
32422 ac_cv_lib_gcov__gcov_init=yes
32424 ac_cv_lib_gcov__gcov_init=no
32426 rm -f core conftest.err conftest.$ac_objext \
32427 conftest$ac_exeext conftest.$ac_ext
32428 LIBS=$ac_check_lib_save_LIBS
32430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
32431 $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
32432 if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
32433 cat >>confdefs.h <<_ACEOF
32434 #define HAVE_LIBGCOV 1
32437 LIBS="-lgcov $LIBS"
32441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
32442 $as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
32443 if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
32444 $as_echo_n "(cached) " >&6
32446 ac_check_lib_save_LIBS=$LIBS
32447 LIBS="-lgcov $LIBS"
32448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32449 /* end confdefs.h. */
32451 /* Override any GCC internal prototype to avoid an error.
32452 Use char because int might match the return type of a GCC
32453 builtin and then its argument prototype would still apply. */
32457 char __gcov_init ();
32461 return __gcov_init ();
32466 if ac_fn_c_try_link "$LINENO"; then :
32467 ac_cv_lib_gcov___gcov_init=yes
32469 ac_cv_lib_gcov___gcov_init=no
32471 rm -f core conftest.err conftest.$ac_objext \
32472 conftest$ac_exeext conftest.$ac_ext
32473 LIBS=$ac_check_lib_save_LIBS
32475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
32476 $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
32477 if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
32478 cat >>confdefs.h <<_ACEOF
32479 #define HAVE_LIBGCOV 1
32482 LIBS="-lgcov $LIBS"
32486 case "$target_os" in
32488 OSX_GCOV_LDFLAG="-Wl,-single_module"
32495 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32496 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32497 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32501 # Build library dependency list for libMagickCore
32504 MAGICK_LIBLTDL='' # Libltdl for build
32505 MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32506 MAGICK_LTDLDEPS='' # extra libltdl dependencies
32507 if test "$with_ltdl" != 'no'
32509 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32510 MAGICK_API_LIBLTDL='-lltdl'
32512 MAGICK_LIBLTDL=${LIBLTDL}
32513 MAGICK_LTDLDEPS=${LTDLDEPS}
32518 if test "$with_modules" != 'no'; then
32519 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"
32521 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"
32526 # Remove extraneous spaces from output variables (asthetic)
32528 X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32529 X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32530 X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32531 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32533 CC=`echo $CC | sed -e 's/ */ /g'`
32534 CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32535 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32536 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32537 DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32538 DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32539 LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32540 TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32541 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32542 #LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32544 # Pass only user-provided LIBS as "global" libraries
32547 #AC_SUBST(CPPFLAGS)
32550 #AC_SUBST(X_PRE_LIBS)
32552 #AC_SUBST(X_EXTRA_LIBS)
32554 MAGICK_CFLAGS=$CFLAGS
32555 MAGICK_CXXFLAGS="$CXXFLAGS"
32556 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32557 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32558 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32559 MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32569 # Set configured scripts to executable.
32570 ac_config_commands="$ac_config_commands default"
32572 ac_config_commands="$ac_config_commands MagickCore-config.in"
32574 ac_config_commands="$ac_config_commands Magick-config.in"
32576 ac_config_commands="$ac_config_commands MagickWand-config.in"
32578 ac_config_commands="$ac_config_commands Wand-config.in"
32580 ac_config_commands="$ac_config_commands Magick++-config.in"
32582 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32586 $as_echo "-------------------------------------------------------------" >&6; }
32587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
32588 $as_echo "Update ImageMagick configuration" >&6; }
32589 cat >confcache <<\_ACEOF
32590 # This file is a shell script that caches the results of configure
32591 # tests run on this system so they can be shared between configure
32592 # scripts and configure runs, see configure's option --config-cache.
32593 # It is not useful on other systems. If it contains results you don't
32594 # want to keep, you may remove or edit it.
32596 # config.status only pays attention to the cache file if you give it
32597 # the --recheck option to rerun configure.
32599 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32600 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32601 # following values.
32605 # The following way of writing the cache mishandles newlines in values,
32606 # but we know of no workaround that is simple, portable, and efficient.
32607 # So, we kill variables containing newlines.
32608 # Ultrix sh set writes to stderr and can't be redirected directly,
32609 # and sets the high bit in the cache file unless we assign to the vars.
32611 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32612 eval ac_val=\$$ac_var
32616 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32617 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32620 _ | IFS | as_nl) ;; #(
32621 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32622 *) { eval $ac_var=; unset $ac_var;} ;;
32628 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32629 *${as_nl}ac_space=\ *)
32630 # `set' does not quote correctly, so add quotes: double-quote
32631 # substitution turns \\\\ into \\, and sed turns \\ into \.
32634 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32637 # `set' quotes correctly as required by POSIX, so do not add quotes.
32638 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32647 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32649 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32651 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32652 if test -w "$cache_file"; then
32653 test "x$cache_file" != "x/dev/null" &&
32654 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32655 $as_echo "$as_me: updating cache $cache_file" >&6;}
32656 cat confcache >$cache_file
32658 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32659 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32664 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32665 # Let make expand exec_prefix.
32666 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32668 DEFS=-DHAVE_CONFIG_H
32673 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32674 # 1. Remove the extension, and $U if already installed.
32675 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32676 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32677 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32678 # will be set to the directory where LIBOBJS objects are built.
32679 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32680 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32682 LIBOBJS=$ac_libobjs
32684 LTLIBOBJS=$ac_ltlibobjs
32687 if test -n "$EXEEXT"; then
32689 am__EXEEXT_FALSE='#'
32691 am__EXEEXT_TRUE='#'
32695 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32696 as_fn_error $? "conditional \"AMDEP\" was never defined.
32697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32699 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32700 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
32701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32703 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32704 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
32705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32707 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32708 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32711 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
32712 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
32713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32715 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
32716 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
32717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32719 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
32720 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
32721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32723 if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
32724 as_fn_error $? "conditional \"USING_CL\" was never defined.
32725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32727 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32728 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
32729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32731 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
32732 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
32733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32735 LT_CONFIG_H=config/config.h
32739 if test -n "$_LT_LIBOBJS"; then
32740 # Remove the extension.
32741 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
32742 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
32743 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
32744 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
32747 ltdl_LIBOBJS=$_ltdl_libobjs
32749 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
32752 if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
32753 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
32754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32756 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
32757 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
32758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32760 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
32761 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
32762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32764 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
32765 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
32766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32769 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32770 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
32771 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32773 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
32774 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
32775 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32777 if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
32778 as_fn_error $? "conditional \"HasUMEM\" was never defined.
32779 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32781 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
32782 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
32783 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32785 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
32786 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
32787 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32789 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
32790 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
32791 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32793 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
32794 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
32795 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32797 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
32798 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
32799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32801 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
32802 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
32803 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32805 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
32806 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
32807 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32809 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
32810 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
32811 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32813 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
32814 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
32815 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32817 if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
32818 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
32819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32821 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
32822 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
32823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32825 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
32826 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
32827 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32829 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
32830 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
32831 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32833 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
32834 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
32835 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32837 if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
32838 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
32839 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32841 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
32842 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
32843 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32845 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
32846 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
32847 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32849 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
32850 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
32851 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32853 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
32854 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
32855 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32857 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
32858 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
32859 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32861 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
32862 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
32863 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32865 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
32866 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
32867 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32869 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
32870 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
32871 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32873 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
32874 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
32875 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32877 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
32878 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
32879 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32881 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
32882 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
32883 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32885 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
32886 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
32887 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32889 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
32890 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
32891 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32893 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
32894 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
32895 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32897 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
32898 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
32899 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32902 : ${CONFIG_STATUS=./config.status}
32904 ac_clean_files_save=$ac_clean_files
32905 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32906 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
32907 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
32909 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
32911 # Generated by $as_me.
32912 # Run this file to recreate the current configuration.
32913 # Compiler output produced by configure, useful for debugging
32914 # configure, is in config.log if it exists.
32917 ac_cs_recheck=false
32920 SHELL=\${CONFIG_SHELL-$SHELL}
32923 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
32924 ## -------------------- ##
32925 ## M4sh Initialization. ##
32926 ## -------------------- ##
32928 # Be more Bourne compatible
32929 DUALCASE=1; export DUALCASE # for MKS sh
32930 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
32933 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
32934 # is contrary to our usage. Disable this feature.
32935 alias -g '${1+"$@"}'='"$@"'
32936 setopt NO_GLOB_SUBST
32938 case `(set -o) 2>/dev/null` in #(
32950 # Printing a long string crashes Solaris 7 /usr/bin/printf.
32951 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
32952 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
32953 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
32954 # Prefer a ksh shell builtin over an external printf program on Solaris,
32955 # but without wasting forks for bash or zsh.
32956 if test -z "$BASH_VERSION$ZSH_VERSION" \
32957 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
32958 as_echo='print -r --'
32959 as_echo_n='print -rn --'
32960 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
32961 as_echo='printf %s\n'
32962 as_echo_n='printf %s'
32964 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
32965 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
32966 as_echo_n='/usr/ucb/echo -n'
32968 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
32969 as_echo_n_body='eval
32973 expr "X$arg" : "X\\(.*\\)$as_nl";
32974 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
32976 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
32978 export as_echo_n_body
32979 as_echo_n='sh -c $as_echo_n_body as_echo'
32981 export as_echo_body
32982 as_echo='sh -c $as_echo_body as_echo'
32985 # The user is always right.
32986 if test "${PATH_SEPARATOR+set}" != set; then
32988 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
32989 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
32996 # We need space, tab and new line, in precisely that order. Quoting is
32997 # there to prevent editors from complaining about space-tab.
32998 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
32999 # splitting by setting IFS to empty value.)
33002 # Find who we are. Look in the path if we contain no directory separator.
33004 *[\\/]* ) as_myself=$0 ;;
33005 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33006 for as_dir in $PATH
33009 test -z "$as_dir" && as_dir=.
33010 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33016 # We did not find ourselves, most probably we were run as `sh COMMAND'
33017 # in which case we are not to be found in the path.
33018 if test "x$as_myself" = x; then
33021 if test ! -f "$as_myself"; then
33022 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33026 # Unset variables that we do not need and which cause bugs (e.g. in
33027 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33028 # suppresses any "Segmentation fault" message there. '((' could
33029 # trigger a bug in pdksh 5.2.14.
33030 for as_var in BASH_ENV ENV MAIL MAILPATH
33031 do eval test x\${$as_var+set} = xset \
33032 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33045 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33048 # as_fn_error STATUS ERROR [LINENO LOG_FD]
33049 # ----------------------------------------
33050 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33051 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33052 # script with STATUS, using 1 if that was 0.
33055 as_status=$1; test $as_status -eq 0 && as_status=1
33057 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33058 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33060 $as_echo "$as_me: error: $2" >&2
33061 as_fn_exit $as_status
33065 # as_fn_set_status STATUS
33066 # -----------------------
33067 # Set $? to STATUS, without forking.
33068 as_fn_set_status ()
33071 } # as_fn_set_status
33073 # as_fn_exit STATUS
33074 # -----------------
33075 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33079 as_fn_set_status $1
33085 # Portably unset VAR.
33088 { eval $1=; unset $1;}
33090 as_unset=as_fn_unset
33091 # as_fn_append VAR VALUE
33092 # ----------------------
33093 # Append the text in VALUE to the end of the definition contained in VAR. Take
33094 # advantage of any shell optimizations that allow amortized linear growth over
33095 # repeated appends, instead of the typical quadratic growth present in naive
33097 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33098 eval 'as_fn_append ()
33109 # as_fn_arith ARG...
33110 # ------------------
33111 # Perform arithmetic evaluation on the ARGs, and store the result in the
33112 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33113 # must be portable across $(()) and expr.
33114 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33115 eval 'as_fn_arith ()
33122 as_val=`expr "$@" || test $? -eq 1`
33127 if expr a : '\(a\)' >/dev/null 2>&1 &&
33128 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33134 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33135 as_basename=basename
33140 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33146 as_me=`$as_basename -- "$0" ||
33147 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33148 X"$0" : 'X\(//\)$' \| \
33149 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33151 sed '/^.*\/\([^/][^/]*\)\/*$/{
33165 # Avoid depending upon Character Ranges.
33166 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33167 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33168 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33169 as_cr_digits='0123456789'
33170 as_cr_alnum=$as_cr_Letters$as_cr_digits
33172 ECHO_C= ECHO_N= ECHO_T=
33173 case `echo -n x` in #(((((
33175 case `echo 'xy\c'` in
33176 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33178 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33185 rm -f conf$$ conf$$.exe conf$$.file
33186 if test -d conf$$.dir; then
33187 rm -f conf$$.dir/conf$$.file
33190 mkdir conf$$.dir 2>/dev/null
33192 if (echo >conf$$.file) 2>/dev/null; then
33193 if ln -s conf$$.file conf$$ 2>/dev/null; then
33195 # ... but there are two gotchas:
33196 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33197 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33198 # In both cases, we have to default to `cp -p'.
33199 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33201 elif ln conf$$.file conf$$ 2>/dev/null; then
33209 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33210 rmdir conf$$.dir 2>/dev/null
33215 # Create "$as_dir" as a directory, including parents if necessary.
33220 -*) as_dir=./$as_dir;;
33222 test -d "$as_dir" || eval $as_mkdir_p || {
33226 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33227 *) as_qdir=$as_dir;;
33229 as_dirs="'$as_qdir' $as_dirs"
33230 as_dir=`$as_dirname -- "$as_dir" ||
33231 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33232 X"$as_dir" : 'X\(//\)[^/]' \| \
33233 X"$as_dir" : 'X\(//\)$' \| \
33234 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33235 $as_echo X"$as_dir" |
33236 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33240 /^X\(\/\/\)[^/].*/{
33253 test -d "$as_dir" && break
33255 test -z "$as_dirs" || eval "mkdir $as_dirs"
33256 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
33260 if mkdir -p . 2>/dev/null; then
33261 as_mkdir_p='mkdir -p "$as_dir"'
33263 test -d ./-p && rmdir ./-p
33267 if test -x / >/dev/null 2>&1; then
33268 as_test_x='test -x'
33270 if ls -dL / >/dev/null 2>&1; then
33277 if test -d "$1"; then
33283 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
33284 ???[sx]*):;;*)false;;esac;fi
33288 as_executable_p=$as_test_x
33290 # Sed expression to map a string onto a valid CPP name.
33291 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33293 # Sed expression to map a string onto a valid variable name.
33294 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33298 ## ----------------------------------- ##
33299 ## Main body of $CONFIG_STATUS script. ##
33300 ## ----------------------------------- ##
33302 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33305 # Save the log message, to keep $0 and so on meaningful, and to
33306 # report actual input values of CONFIG_FILES etc. instead of their
33307 # values after options handling.
33309 This file was extended by ImageMagick $as_me 6.6.3, which was
33310 generated by GNU Autoconf 2.66. Invocation command line was
33312 CONFIG_FILES = $CONFIG_FILES
33313 CONFIG_HEADERS = $CONFIG_HEADERS
33314 CONFIG_LINKS = $CONFIG_LINKS
33315 CONFIG_COMMANDS = $CONFIG_COMMANDS
33318 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33323 case $ac_config_files in *"
33324 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33327 case $ac_config_headers in *"
33328 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33333 # Files that config.status was made for.
33334 config_files="$ac_config_files"
33335 config_headers="$ac_config_headers"
33336 config_commands="$ac_config_commands"
33340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33342 \`$as_me' instantiates files and other configuration actions
33343 from templates according to the current configuration. Unless the files
33344 and actions are specified as TAGs, all are instantiated by default.
33346 Usage: $0 [OPTION]... [TAG]...
33348 -h, --help print this help, then exit
33349 -V, --version print version number and configuration settings, then exit
33350 --config print configuration, then exit
33351 -q, --quiet, --silent
33352 do not print progress messages
33353 -d, --debug don't remove temporary files
33354 --recheck update $as_me by reconfiguring in the same conditions
33355 --file=FILE[:TEMPLATE]
33356 instantiate the configuration file FILE
33357 --header=FILE[:TEMPLATE]
33358 instantiate the configuration header FILE
33360 Configuration files:
33363 Configuration headers:
33366 Configuration commands:
33369 Report bugs to <http://www.imagemagick.org>."
33372 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33373 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33375 ImageMagick config.status 6.6.3
33376 configured by $0, generated by GNU Autoconf 2.66,
33377 with options \\"\$ac_cs_config\\"
33379 Copyright (C) 2010 Free Software Foundation, Inc.
33380 This config.status script is free software; the Free Software Foundation
33381 gives unlimited permission to copy, distribute and modify it."
33388 test -n "\$AWK" || AWK=awk
33391 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33392 # The default lists apply if the user does not specify any file.
33398 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33399 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33410 # Handling of the options.
33411 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33413 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33414 $as_echo "$ac_cs_version"; exit ;;
33415 --config | --confi | --conf | --con | --co | --c )
33416 $as_echo "$ac_cs_config"; exit ;;
33417 --debug | --debu | --deb | --de | --d | -d )
33419 --file | --fil | --fi | --f )
33422 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33424 as_fn_append CONFIG_FILES " '$ac_optarg'"
33425 ac_need_defaults=false;;
33426 --header | --heade | --head | --hea )
33429 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33431 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33432 ac_need_defaults=false;;
33434 # Conflict between --help and --header
33435 as_fn_error $? "ambiguous option: \`$1'
33436 Try \`$0 --help' for more information.";;
33437 --help | --hel | -h )
33438 $as_echo "$ac_cs_usage"; exit ;;
33439 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33440 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33443 # This is an error.
33444 -*) as_fn_error $? "unrecognized option: \`$1'
33445 Try \`$0 --help' for more information." ;;
33447 *) as_fn_append ac_config_targets " $1"
33448 ac_need_defaults=false ;;
33454 ac_configure_extra_args=
33456 if $ac_cs_silent; then
33458 ac_configure_extra_args="$ac_configure_extra_args --silent"
33462 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33463 if \$ac_cs_recheck; then
33464 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33466 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33467 CONFIG_SHELL='$SHELL'
33468 export CONFIG_SHELL
33473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33477 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33478 ## Running $as_me. ##
33484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33489 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33492 # The HP-UX ksh and POSIX shell print the target directory to stdout
33493 # if CDPATH is set.
33494 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33496 sed_quote_subst='$sed_quote_subst'
33497 double_quote_subst='$double_quote_subst'
33498 delay_variable_subst='$delay_variable_subst'
33499 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33500 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33501 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
33502 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
33503 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
33504 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33505 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33506 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
33507 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33508 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33509 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
33510 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
33511 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
33512 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33513 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33514 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33515 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33516 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33517 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33518 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33519 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33520 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33521 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33522 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
33523 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
33524 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
33525 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
33526 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
33527 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
33528 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
33529 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
33530 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
33531 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
33532 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
33533 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
33534 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
33535 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
33536 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
33537 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
33538 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33539 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33540 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
33541 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
33542 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
33543 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
33544 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
33545 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
33546 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
33547 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
33548 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
33549 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"`'
33550 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
33551 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
33552 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
33553 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
33554 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
33555 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
33556 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
33557 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
33558 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
33559 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
33560 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
33561 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
33562 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
33563 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
33564 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
33565 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33566 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
33567 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
33568 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
33569 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
33570 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
33571 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
33572 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
33573 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
33574 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33575 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
33576 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
33577 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
33578 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
33579 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
33580 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
33581 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
33582 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
33583 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
33584 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
33585 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
33586 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
33587 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
33588 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
33589 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
33590 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
33591 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
33592 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
33593 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
33594 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
33595 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
33596 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
33597 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
33598 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
33599 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
33600 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
33601 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
33602 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
33603 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
33604 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
33605 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
33606 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
33607 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
33608 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
33609 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
33610 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
33611 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
33612 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
33613 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
33614 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
33615 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
33616 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
33617 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
33618 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
33619 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
33620 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
33621 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
33622 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
33623 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
33624 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
33625 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
33626 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
33627 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
33628 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
33629 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33630 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33631 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
33632 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
33633 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
33634 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
33635 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
33636 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
33637 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
33638 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
33639 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
33640 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33641 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33642 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
33643 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33644 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33645 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33646 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33647 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33648 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33649 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
33650 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33651 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
33652 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
33653 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
33654 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
33655 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
33656 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
33657 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
33658 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
33659 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
33660 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
33661 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
33662 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
33663 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
33664 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33665 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33666 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
33667 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
33668 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
33669 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
33670 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
33671 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33672 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
33673 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
33674 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
33675 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
33678 LTCFLAGS='$LTCFLAGS'
33679 compiler='$compiler_DEFAULT'
33681 # A function that is used when there is no print builtin or printf.
33682 func_fallback_echo ()
33684 eval 'cat <<_LTECHO_EOF
33689 # Quote evaled strings.
33705 deplibs_check_method \
33714 lt_cv_sys_global_symbol_pipe \
33715 lt_cv_sys_global_symbol_to_cdecl \
33716 lt_cv_sys_global_symbol_to_c_name_address \
33717 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33718 lt_prog_compiler_no_builtin_flag \
33719 lt_prog_compiler_wl \
33720 lt_prog_compiler_pic \
33721 lt_prog_compiler_static \
33722 lt_cv_prog_compiler_c_o \
33730 export_dynamic_flag_spec \
33731 whole_archive_flag_spec \
33732 compiler_needs_object \
33734 allow_undefined_flag \
33735 no_undefined_flag \
33736 hardcode_libdir_flag_spec \
33737 hardcode_libdir_flag_spec_ld \
33738 hardcode_libdir_separator \
33743 variables_saved_for_relink \
33745 library_names_spec \
33747 install_override_mode \
33751 compiler_lib_search_dirs \
33756 compiler_lib_search_path \
33760 lt_prog_compiler_no_builtin_flag_CXX \
33761 lt_prog_compiler_wl_CXX \
33762 lt_prog_compiler_pic_CXX \
33763 lt_prog_compiler_static_CXX \
33764 lt_cv_prog_compiler_c_o_CXX \
33765 export_dynamic_flag_spec_CXX \
33766 whole_archive_flag_spec_CXX \
33767 compiler_needs_object_CXX \
33769 allow_undefined_flag_CXX \
33770 no_undefined_flag_CXX \
33771 hardcode_libdir_flag_spec_CXX \
33772 hardcode_libdir_flag_spec_ld_CXX \
33773 hardcode_libdir_separator_CXX \
33774 fix_srcfile_path_CXX \
33775 exclude_expsyms_CXX \
33776 include_expsyms_CXX \
33777 file_list_spec_CXX \
33778 compiler_lib_search_dirs_CXX \
33779 predep_objects_CXX \
33780 postdep_objects_CXX \
33783 compiler_lib_search_path_CXX; do
33784 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33785 *[\\\\\\\`\\"\\\$]*)
33786 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
33789 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33794 # Double-quote double-evaled strings.
33795 for var in reload_cmds \
33796 old_postinstall_cmds \
33797 old_postuninstall_cmds \
33799 extract_expsyms_cmds \
33800 old_archive_from_new_cmds \
33801 old_archive_from_expsyms_cmds \
33803 archive_expsym_cmds \
33805 module_expsym_cmds \
33806 export_symbols_cmds \
33809 postuninstall_cmds \
33811 sys_lib_search_path_spec \
33812 sys_lib_dlsearch_path_spec \
33814 old_archive_cmds_CXX \
33815 old_archive_from_new_cmds_CXX \
33816 old_archive_from_expsyms_cmds_CXX \
33818 archive_expsym_cmds_CXX \
33820 module_expsym_cmds_CXX \
33821 export_symbols_cmds_CXX \
33822 prelink_cmds_CXX; do
33823 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
33824 *[\\\\\\\`\\"\\\$]*)
33825 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
33828 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
33833 ac_aux_dir='$ac_aux_dir'
33834 xsi_shell='$xsi_shell'
33835 lt_shell_append='$lt_shell_append'
33837 # See if we are running on zsh, and set the options which allow our
33838 # commands through without removal of \ escapes INIT.
33839 if test -n "\${ZSH_VERSION+set}" ; then
33840 setopt NO_GLOB_SUBST
33846 TIMESTAMP='$TIMESTAMP'
33857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33859 # Handling of arguments.
33860 for ac_config_target in $ac_config_targets
33862 case $ac_config_target in
33863 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
33864 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
33865 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
33866 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
33867 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
33868 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
33869 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
33870 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
33871 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
33872 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
33873 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
33874 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
33875 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
33876 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
33877 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
33878 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
33879 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
33880 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
33881 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
33882 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
33883 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33884 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
33885 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
33886 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
33887 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
33888 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
33889 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
33890 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
33891 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
33892 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
33893 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
33894 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
33895 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
33896 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
33897 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
33898 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
33899 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
33900 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
33901 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
33902 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
33903 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
33904 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
33905 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
33906 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
33907 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
33908 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
33909 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
33910 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
33911 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
33912 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
33914 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
33919 # If the user did not use the arguments to specify the items to instantiate,
33920 # then the envvar interface is used. Set only those that are not.
33921 # We use the long form for the default assignment because of an extremely
33922 # bizarre bug on SunOS 4.1.3.
33923 if $ac_need_defaults; then
33924 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33925 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33926 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
33929 # Have a temporary directory for convenience. Make it in the build tree
33930 # simply because there is no reason against having it here, and in addition,
33931 # creating and moving files from /tmp can sometimes cause problems.
33932 # Hook for its removal unless debugging.
33933 # Note that there is a small window in which the directory will not be cleaned:
33934 # after its creation but before its name has been assigned to `$tmp'.
33938 trap 'exit_status=$?
33939 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
33941 trap 'as_fn_exit 1' 1 2 13 15
33943 # Create a (secure) tmp directory for tmp files.
33946 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
33947 test -n "$tmp" && test -d "$tmp"
33950 tmp=./conf$$-$RANDOM
33951 (umask 077 && mkdir "$tmp")
33952 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
33954 # Set up the scripts for CONFIG_FILES section.
33955 # No need to generate them if there are no CONFIG_FILES.
33956 # This happens for instance with `./config.status config.h'.
33957 if test -n "$CONFIG_FILES"; then
33960 ac_cr=`echo X | tr X '\015'`
33961 # On cygwin, bash can eat \r inside `` if the user requested igncr.
33962 # But we know of no other shell where ac_cr would be empty at this
33963 # point, so we can use a bashism as a fallback.
33964 if test "x$ac_cr" = x; then
33965 eval ac_cr=\$\'\\r\'
33967 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
33968 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
33971 ac_cs_awk_cr=$ac_cr
33974 echo 'BEGIN {' >"$tmp/subs1.awk" &&
33979 echo "cat >conf$$subs.awk <<_ACEOF" &&
33980 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
33982 } >conf$$subs.sh ||
33983 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33984 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
33986 for ac_last_try in false false false false false :; do
33987 . ./conf$$subs.sh ||
33988 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33990 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
33991 if test $ac_delim_n = $ac_delim_num; then
33993 elif $ac_last_try; then
33994 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
33996 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
33999 rm -f conf$$subs.sh
34001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34002 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34006 s/^/S["/; s/!.*/"]=/
34016 s/\(.\{148\}\)..*/\1/
34018 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34023 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34030 s/\(.\{148\}\)..*/\1/
34032 s/["\\]/\\&/g; s/^/"/; s/$/"/
34036 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34041 ' <conf$$subs.awk | sed '
34046 ' >>$CONFIG_STATUS || ac_write_fail=1
34047 rm -f conf$$subs.awk
34048 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34050 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34051 for (key in S) S_is_set[key] = 1
34057 nfields = split(line, field, "@")
34059 len = length(field[1])
34060 for (i = 2; i < nfields; i++) {
34062 keylen = length(key)
34063 if (S_is_set[key]) {
34065 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34066 len += length(value) + length(field[++i])
34077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34078 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34079 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34082 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
34083 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
34086 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34087 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
34088 # trailing colons and then remove the whole line if VPATH becomes empty
34089 # (actually we leave an empty line to preserve line numbers).
34090 if test "x$srcdir" = x.; then
34091 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34110 fi # test -n "$CONFIG_FILES"
34112 # Set up the scripts for CONFIG_HEADERS section.
34113 # No need to generate them if there are no CONFIG_HEADERS.
34114 # This happens for instance with `./config.status Makefile'.
34115 if test -n "$CONFIG_HEADERS"; then
34116 cat >"$tmp/defines.awk" <<\_ACAWK ||
34120 # Transform confdefs.h into an awk script `defines.awk', embedded as
34121 # here-document in config.status, that substitutes the proper values into
34122 # config.h.in to produce config.h.
34124 # Create a delimiter string that does not exist in confdefs.h, to ease
34125 # handling of long lines.
34127 for ac_last_try in false false :; do
34128 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34129 if test -z "$ac_t"; then
34131 elif $ac_last_try; then
34132 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
34134 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34138 # For the awk script, D is an array of macro values keyed by name,
34139 # likewise P contains macro parameters if any. Preserve backslash
34140 # newline sequences.
34142 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34144 s/.\{148\}/&'"$ac_delim"'/g
34147 s/^[ ]*#[ ]*define[ ][ ]*/ /
34154 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34156 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34160 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34161 D["\1"]=" \3\\\\\\n"\\/p
34163 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34168 s/.\{148\}/&'"$ac_delim"'/g
34173 s/["\\]/\\&/g; s/^/"/; s/$/"/p
34176 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34178 ' <confdefs.h | sed '
34179 s/'"$ac_delim"'/"\\\
34180 "/g' >>$CONFIG_STATUS || ac_write_fail=1
34182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34183 for (key in D) D_is_set[key] = 1
34186 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34188 split(line, arg, " ")
34189 if (arg[1] == "#") {
34193 defundef = substr(arg[1], 2)
34196 split(mac1, mac2, "(") #)
34198 prefix = substr(line, 1, index(line, defundef) - 1)
34199 if (D_is_set[macro]) {
34200 # Preserve the white space surrounding the "#".
34201 print prefix "define", macro P[macro] D[macro]
34204 # Replace #undef with comments. This is necessary, for example,
34205 # in the case of _POSIX_SOURCE, which is predefined and required
34206 # on some systems where configure will not decide to define it.
34207 if (defundef == "undef") {
34208 print "/*", prefix defundef, macro, "*/"
34216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34217 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
34218 fi # test -n "$CONFIG_HEADERS"
34221 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34226 :[FHLC]) ac_mode=$ac_tag; continue;;
34228 case $ac_mode$ac_tag in
34230 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
34231 :[FH]-) ac_tag=-:-;;
34232 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34249 -) ac_f="$tmp/stdin";;
34250 *) # Look for the file first in the build tree, then in the source tree
34251 # (if the path is not absolute). The absolute path cannot be DOS-style,
34252 # because $ac_f cannot contain `:'.
34256 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34258 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34260 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34261 as_fn_append ac_file_inputs " '$ac_f'"
34264 # Let's still pretend it is `configure' which instantiates (i.e., don't
34265 # use $as_me), people would be surprised to read:
34266 # /* config.h. Generated by config.status. */
34267 configure_input='Generated from '`
34268 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34270 if test x"$ac_file" != x-; then
34271 configure_input="$ac_file. $configure_input"
34272 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34273 $as_echo "$as_me: creating $ac_file" >&6;}
34275 # Neutralize special characters interpreted by sed in replacement strings.
34276 case $configure_input in #(
34277 *\&* | *\|* | *\\* )
34278 ac_sed_conf_input=`$as_echo "$configure_input" |
34279 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34280 *) ac_sed_conf_input=$configure_input;;
34284 *:-:* | *:-) cat >"$tmp/stdin" \
34285 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
34290 ac_dir=`$as_dirname -- "$ac_file" ||
34291 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34292 X"$ac_file" : 'X\(//\)[^/]' \| \
34293 X"$ac_file" : 'X\(//\)$' \| \
34294 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34295 $as_echo X"$ac_file" |
34296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34300 /^X\(\/\/\)[^/].*/{
34313 as_dir="$ac_dir"; as_fn_mkdir_p
34317 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34319 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34320 # A ".." for each directory in $ac_dir_suffix.
34321 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34322 case $ac_top_builddir_sub in
34323 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34324 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34327 ac_abs_top_builddir=$ac_pwd
34328 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34329 # for backward compatibility:
34330 ac_top_builddir=$ac_top_build_prefix
34333 .) # We are building in place.
34335 ac_top_srcdir=$ac_top_builddir_sub
34336 ac_abs_top_srcdir=$ac_pwd ;;
34337 [\\/]* | ?:[\\/]* ) # Absolute name.
34338 ac_srcdir=$srcdir$ac_dir_suffix;
34339 ac_top_srcdir=$srcdir
34340 ac_abs_top_srcdir=$srcdir ;;
34341 *) # Relative name.
34342 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34343 ac_top_srcdir=$ac_top_build_prefix$srcdir
34344 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34346 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34356 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34357 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34359 ac_MKDIR_P=$MKDIR_P
34361 [\\/$]* | ?:[\\/]* ) ;;
34362 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34367 # If the template does not know about datarootdir, expand it.
34368 # FIXME: This hack should be removed a few years after 2.60.
34369 ac_datarootdir_hack=; ac_datarootdir_seen=
34380 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34381 *datarootdir*) ac_datarootdir_seen=yes;;
34382 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34384 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34387 ac_datarootdir_hack='
34388 s&@datadir@&$datadir&g
34389 s&@docdir@&$docdir&g
34390 s&@infodir@&$infodir&g
34391 s&@localedir@&$localedir&g
34392 s&@mandir@&$mandir&g
34393 s&\\\${datarootdir}&$datarootdir&g' ;;
34397 # Neutralize VPATH when `$srcdir' = `.'.
34398 # Shell code in configure.ac might set extrasub.
34399 # FIXME: do we really want to maintain this feature?
34400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34401 ac_sed_extra="$ac_vpsub
34404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34406 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34407 s|@configure_input@|$ac_sed_conf_input|;t t
34408 s&@top_builddir@&$ac_top_builddir_sub&;t t
34409 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34410 s&@srcdir@&$ac_srcdir&;t t
34411 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34412 s&@top_srcdir@&$ac_top_srcdir&;t t
34413 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34414 s&@builddir@&$ac_builddir&;t t
34415 s&@abs_builddir@&$ac_abs_builddir&;t t
34416 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34417 s&@INSTALL@&$ac_INSTALL&;t t
34418 s&@MKDIR_P@&$ac_MKDIR_P&;t t
34419 $ac_datarootdir_hack
34421 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
34422 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34424 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34425 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34426 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34427 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34428 which seems to be undefined. Please make sure it is defined" >&5
34429 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34430 which seems to be undefined. Please make sure it is defined" >&2;}
34434 -) cat "$tmp/out" && rm -f "$tmp/out";;
34435 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34437 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34443 if test x"$ac_file" != x-; then
34445 $as_echo "/* $configure_input */" \
34446 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34447 } >"$tmp/config.h" \
34448 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34449 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
34450 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34451 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34454 mv "$tmp/config.h" "$ac_file" \
34455 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34458 $as_echo "/* $configure_input */" \
34459 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
34460 || as_fn_error $? "could not create -" "$LINENO" 5
34462 # Compute "$ac_file"'s index in $config_headers.
34465 for _am_header in $config_headers :; do
34466 case $_am_header in
34467 $_am_arg | $_am_arg:* )
34470 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34473 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34474 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34475 X"$_am_arg" : 'X\(//\)[^/]' \| \
34476 X"$_am_arg" : 'X\(//\)$' \| \
34477 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34478 $as_echo X"$_am_arg" |
34479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34483 /^X\(\/\/\)[^/].*/{
34495 s/.*/./; q'`/stamp-h$_am_stamp_count
34498 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34499 $as_echo "$as_me: executing $ac_file commands" >&6;}
34504 case $ac_file$ac_mode in
34505 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34506 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34507 ac_prefix_conf_PKG=`echo MagickCore`
34508 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34509 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34510 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34511 if test ".$ac_prefix_conf_INP" = "."; then
34512 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34514 *.h) ac_prefix_conf_INP=$ac_file ;;
34517 test ".$ac_prefix_conf_INP" != "." && break
34520 if test ".$ac_prefix_conf_INP" = "."; then
34521 case "$ac_prefix_conf_OUT" in
34522 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34524 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34526 *) ac_prefix_conf_INP=config.h
34530 if test -z "$ac_prefix_conf_PKG" ; then
34531 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
34533 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34534 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34536 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
34537 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34538 if test -f $ac_prefix_conf_INP ; then
34539 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34540 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
34541 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34542 echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
34543 echo "#endif/" >>conftest.prefix
34544 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34545 echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
34546 echo "#endif/" >> conftest.prefix
34547 # now executing _script on _DEF input to create _OUT output file
34548 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34549 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34550 echo ' ' >>$tmp/pconfig.h
34551 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34553 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34554 echo ' ' >>$tmp/pconfig.h
34555 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34556 echo "#endif" >>$tmp/pconfig.h
34557 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
34558 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
34559 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34561 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34562 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34563 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34564 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34565 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34566 $as_echo X"$ac_prefix_conf_OUT" |
34567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34571 /^X\(\/\/\)[^/].*/{
34584 as_dir="$ac_dir"; as_fn_mkdir_p
34585 rm -f "$ac_prefix_conf_OUT"
34586 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34588 cp conftest.prefix _configs.sed
34590 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
34595 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34596 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34597 # are listed without --file. Let's play safe and only enable the eval
34598 # if we detect the quoting.
34599 case $CONFIG_FILES in
34600 *\'*) eval set x "$CONFIG_FILES" ;;
34601 *) set x $CONFIG_FILES ;;
34606 # Strip MF so we end up with the name of the file.
34607 mf=`echo "$mf" | sed -e 's/:.*$//'`
34608 # Check whether this is an Automake generated Makefile or not.
34609 # We used to match only the files named `Makefile.in', but
34610 # some people rename them; so instead we look at the file content.
34611 # Grep'ing the first line is not enough: some people post-process
34612 # each Makefile.in and add a new line on top of each file to say so.
34613 # Grep'ing the whole file is not good either: AIX grep has a line
34614 # limit of 2048, but all sed's we know have understand at least 4000.
34615 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34616 dirpart=`$as_dirname -- "$mf" ||
34617 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34618 X"$mf" : 'X\(//\)[^/]' \| \
34619 X"$mf" : 'X\(//\)$' \| \
34620 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34622 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34626 /^X\(\/\/\)[^/].*/{
34642 # Extract the definition of DEPDIR, am__include, and am__quote
34643 # from the Makefile without running `make'.
34644 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34645 test -z "$DEPDIR" && continue
34646 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34647 test -z "am__include" && continue
34648 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34649 # When using ansi2knr, U may be empty or an underscore; expand it
34650 U=`sed -n 's/^U = //p' < "$mf"`
34651 # Find all dependency output files, they are included files with
34652 # $(DEPDIR) in their names. We invoke sed twice because it is the
34653 # simplest approach to changing $(DEPDIR) to its actual value in the
34655 for file in `sed -n "
34656 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34657 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34658 # Make sure the directory exists.
34659 test -f "$dirpart/$file" && continue
34660 fdir=`$as_dirname -- "$file" ||
34661 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34662 X"$file" : 'X\(//\)[^/]' \| \
34663 X"$file" : 'X\(//\)$' \| \
34664 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34665 $as_echo X"$file" |
34666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34670 /^X\(\/\/\)[^/].*/{
34683 as_dir=$dirpart/$fdir; as_fn_mkdir_p
34684 # echo "creating $dirpart/$file"
34685 echo '# dummy' > "$dirpart/$file"
34692 # See if we are running on zsh, and set the options which allow our
34693 # commands through without removal of \ escapes.
34694 if test -n "${ZSH_VERSION+set}" ; then
34695 setopt NO_GLOB_SUBST
34698 cfgfile="${ofile}T"
34699 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34702 cat <<_LT_EOF >> "$cfgfile"
34705 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34706 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34707 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34708 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
34710 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34711 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
34713 # Written by Gordon Matzigkeit, 1996
34715 # This file is part of GNU Libtool.
34717 # GNU Libtool is free software; you can redistribute it and/or
34718 # modify it under the terms of the GNU General Public License as
34719 # published by the Free Software Foundation; either version 2 of
34720 # the License, or (at your option) any later version.
34722 # As a special exception to the GNU General Public License,
34723 # if you distribute this file as part of a program or library that
34724 # is built using GNU Libtool, you may include this file under the
34725 # same distribution terms that you use for the rest of that program.
34727 # GNU Libtool is distributed in the hope that it will be useful,
34728 # but WITHOUT ANY WARRANTY; without even the implied warranty of
34729 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34730 # GNU General Public License for more details.
34732 # You should have received a copy of the GNU General Public License
34733 # along with GNU Libtool; see the file COPYING. If not, a copy
34734 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34735 # obtained by writing to the Free Software Foundation, Inc.,
34736 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34739 # The names of the tagged configurations supported by this script.
34740 available_tags="CXX "
34742 # ### BEGIN LIBTOOL CONFIG
34744 # A sed program that does not truncate output.
34747 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
34748 Xsed="\$SED -e 1s/^X//"
34750 # A grep program that handles long lines.
34756 # A literal string matcher.
34759 # Shell to use when invoking shell scripts.
34762 # An echo program that protects backslashes.
34765 # Which release of libtool.m4 was used?
34766 macro_version=$macro_version
34767 macro_revision=$macro_revision
34769 # Assembler program.
34772 # DLL creation program.
34773 DLLTOOL=$lt_DLLTOOL
34775 # Object dumper program.
34776 OBJDUMP=$lt_OBJDUMP
34778 # Whether or not to build shared libraries.
34779 build_libtool_libs=$enable_shared
34781 # Whether or not to build static libraries.
34782 build_old_libs=$enable_static
34784 # What type of objects to build.
34787 # Whether or not to optimize for fast installation.
34788 fast_install=$enable_fast_install
34791 host_alias=$host_alias
34795 # The build system.
34796 build_alias=$build_alias
34800 # A BSD- or MS-compatible name lister.
34803 # Whether we need soft or hard links.
34806 # What is the maximum length of a command?
34807 max_cmd_len=$max_cmd_len
34809 # Object file suffix (normally "o").
34812 # Executable file suffix (normally "").
34815 # whether the shell understands "unset".
34818 # turn spaces into newlines.
34821 # turn newlines into spaces.
34824 # Method to check whether dependent libraries are shared objects.
34825 deplibs_check_method=$lt_deplibs_check_method
34827 # Command to use when deplibs_check_method == "file_magic".
34828 file_magic_cmd=$lt_file_magic_cmd
34832 AR_FLAGS=$lt_AR_FLAGS
34834 # A symbol stripping program.
34837 # Commands used to install an old-style archive.
34839 old_postinstall_cmds=$lt_old_postinstall_cmds
34840 old_postuninstall_cmds=$lt_old_postuninstall_cmds
34842 # Whether to use a lock for old archive extraction.
34843 lock_old_archive_extraction=$lock_old_archive_extraction
34848 # LTCC compiler flags.
34849 LTCFLAGS=$lt_CFLAGS
34851 # Take the output of nm and produce a listing of raw symbols and C names.
34852 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
34854 # Transform the output of nm in a proper C declaration.
34855 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
34857 # Transform the output of nm in a C name address pair.
34858 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
34860 # Transform the output of nm in a C name address pair when lib prefix is needed.
34861 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
34863 # The name of the directory that contains temporary libtool files.
34866 # Used to examine libraries when file_magic_cmd begins with "file".
34867 MAGIC_CMD=$MAGIC_CMD
34869 # Must we lock files when doing compilation?
34870 need_locks=$lt_need_locks
34872 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
34873 DSYMUTIL=$lt_DSYMUTIL
34875 # Tool to change global to local symbols on Mac OS X.
34878 # Tool to manipulate fat objects and archives on Mac OS X.
34881 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
34884 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
34885 OTOOL64=$lt_OTOOL64
34887 # Old archive suffix (normally "a").
34890 # Shared library suffix (normally ".so").
34891 shrext_cmds=$lt_shrext_cmds
34893 # The commands to extract the exported symbol list from a shared archive.
34894 extract_expsyms_cmds=$lt_extract_expsyms_cmds
34896 # Variables whose values should be saved in libtool wrapper scripts and
34897 # restored at link time.
34898 variables_saved_for_relink=$lt_variables_saved_for_relink
34900 # Do we need the "lib" prefix for modules?
34901 need_lib_prefix=$need_lib_prefix
34903 # Do we need a version for libraries?
34904 need_version=$need_version
34906 # Library versioning type.
34907 version_type=$version_type
34909 # Shared library runtime path variable.
34910 runpath_var=$runpath_var
34912 # Shared library path variable.
34913 shlibpath_var=$shlibpath_var
34915 # Is shlibpath searched before the hard-coded library search path?
34916 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
34918 # Format of library name prefix.
34919 libname_spec=$lt_libname_spec
34921 # List of archive names. First name is the real one, the rest are links.
34922 # The last name is the one that the linker finds with -lNAME
34923 library_names_spec=$lt_library_names_spec
34925 # The coded name of the library, if different from the real name.
34926 soname_spec=$lt_soname_spec
34928 # Permission mode override for installation of shared libraries.
34929 install_override_mode=$lt_install_override_mode
34931 # Command to use after installation of a shared archive.
34932 postinstall_cmds=$lt_postinstall_cmds
34934 # Command to use after uninstallation of a shared archive.
34935 postuninstall_cmds=$lt_postuninstall_cmds
34937 # Commands used to finish a libtool library installation in a directory.
34938 finish_cmds=$lt_finish_cmds
34940 # As "finish_cmds", except a single script fragment to be evaled but
34942 finish_eval=$lt_finish_eval
34944 # Whether we should hardcode library paths into libraries.
34945 hardcode_into_libs=$hardcode_into_libs
34947 # Compile-time system search path for libraries.
34948 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
34950 # Run-time system search path for libraries.
34951 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
34953 # Whether dlopen is supported.
34954 dlopen_support=$enable_dlopen
34956 # Whether dlopen of programs is supported.
34957 dlopen_self=$enable_dlopen_self
34959 # Whether dlopen of statically linked programs is supported.
34960 dlopen_self_static=$enable_dlopen_self_static
34962 # Commands to strip libraries.
34963 old_striplib=$lt_old_striplib
34964 striplib=$lt_striplib
34967 # The linker used to build libraries.
34970 # How to create reloadable object files.
34971 reload_flag=$lt_reload_flag
34972 reload_cmds=$lt_reload_cmds
34974 # Commands used to build an old-style archive.
34975 old_archive_cmds=$lt_old_archive_cmds
34977 # A language specific compiler.
34980 # Is the compiler the GNU compiler?
34983 # Compiler flag to turn off builtin functions.
34984 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
34986 # How to pass a linker flag through the compiler.
34987 wl=$lt_lt_prog_compiler_wl
34989 # Additional compiler flags for building library objects.
34990 pic_flag=$lt_lt_prog_compiler_pic
34992 # Compiler flag to prevent dynamic linking.
34993 link_static_flag=$lt_lt_prog_compiler_static
34995 # Does compiler simultaneously support -c and -o options?
34996 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
34998 # Whether or not to add -lc for building shared libraries.
34999 build_libtool_need_lc=$archive_cmds_need_lc
35001 # Whether or not to disallow shared libs when runtime libs are static.
35002 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35004 # Compiler flag to allow reflexive dlopens.
35005 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35007 # Compiler flag to generate shared objects directly from archives.
35008 whole_archive_flag_spec=$lt_whole_archive_flag_spec
35010 # Whether the compiler copes with passing no objects directly.
35011 compiler_needs_object=$lt_compiler_needs_object
35013 # Create an old-style archive from a shared archive.
35014 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35016 # Create a temporary old-style archive to link instead of a shared archive.
35017 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35019 # Commands used to build a shared archive.
35020 archive_cmds=$lt_archive_cmds
35021 archive_expsym_cmds=$lt_archive_expsym_cmds
35023 # Commands used to build a loadable module if different from building
35024 # a shared archive.
35025 module_cmds=$lt_module_cmds
35026 module_expsym_cmds=$lt_module_expsym_cmds
35028 # Whether we are building with GNU ld or not.
35029 with_gnu_ld=$lt_with_gnu_ld
35031 # Flag that allows shared libraries with undefined symbols to be built.
35032 allow_undefined_flag=$lt_allow_undefined_flag
35034 # Flag that enforces no undefined symbols.
35035 no_undefined_flag=$lt_no_undefined_flag
35037 # Flag to hardcode \$libdir into a binary during linking.
35038 # This must work even if \$libdir does not exist
35039 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35041 # If ld is used when linking, flag to hardcode \$libdir into a binary
35042 # during linking. This must work even if \$libdir does not exist.
35043 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35045 # Whether we need a single "-rpath" flag with a separated argument.
35046 hardcode_libdir_separator=$lt_hardcode_libdir_separator
35048 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35049 # DIR into the resulting binary.
35050 hardcode_direct=$hardcode_direct
35052 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35053 # DIR into the resulting binary and the resulting library dependency is
35054 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35055 # library is relocated.
35056 hardcode_direct_absolute=$hardcode_direct_absolute
35058 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35059 # into the resulting binary.
35060 hardcode_minus_L=$hardcode_minus_L
35062 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35063 # into the resulting binary.
35064 hardcode_shlibpath_var=$hardcode_shlibpath_var
35066 # Set to "yes" if building a shared library automatically hardcodes DIR
35067 # into the library and all subsequent libraries and executables linked
35069 hardcode_automatic=$hardcode_automatic
35071 # Set to yes if linker adds runtime paths of dependent libraries
35072 # to runtime path list.
35073 inherit_rpath=$inherit_rpath
35075 # Whether libtool must link a program against all its dependency libraries.
35076 link_all_deplibs=$link_all_deplibs
35078 # Fix the shell variable \$srcfile for the compiler.
35079 fix_srcfile_path=$lt_fix_srcfile_path
35081 # Set to "yes" if exported symbols are required.
35082 always_export_symbols=$always_export_symbols
35084 # The commands to list exported symbols.
35085 export_symbols_cmds=$lt_export_symbols_cmds
35087 # Symbols that should not be listed in the preloaded symbols.
35088 exclude_expsyms=$lt_exclude_expsyms
35090 # Symbols that must always be exported.
35091 include_expsyms=$lt_include_expsyms
35093 # Commands necessary for linking programs (against libraries) with templates.
35094 prelink_cmds=$lt_prelink_cmds
35096 # Specify filename containing input files.
35097 file_list_spec=$lt_file_list_spec
35099 # How to hardcode a shared library path into an executable.
35100 hardcode_action=$hardcode_action
35102 # The directories searched by this compiler when creating a shared library.
35103 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35105 # Dependencies to place before and after the objects being linked to
35106 # create a shared library.
35107 predep_objects=$lt_predep_objects
35108 postdep_objects=$lt_postdep_objects
35109 predeps=$lt_predeps
35110 postdeps=$lt_postdeps
35112 # The library search path used internally by the compiler when linking
35113 # a shared library.
35114 compiler_lib_search_path=$lt_compiler_lib_search_path
35116 # ### END LIBTOOL CONFIG
35122 cat <<\_LT_EOF >> "$cfgfile"
35123 # AIX sometimes has problems with the GCC collect2 program. For some
35124 # reason, if we set the COLLECT_NAMES environment variable, the problems
35125 # vanish in a puff of smoke.
35126 if test "X${COLLECT_NAMES+set}" != Xset; then
35128 export COLLECT_NAMES
35135 ltmain="$ac_aux_dir/ltmain.sh"
35138 # We use sed instead of cat because bash on DJGPP gets confused if
35139 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35140 # text mode, it properly converts lines to CR/LF. This bash problem
35141 # is reportedly fixed, but why not run on old versions too?
35142 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35143 || (rm -f "$cfgfile"; exit 1)
35147 cat << \_LT_EOF >> "$cfgfile"
35149 # func_dirname file append nondir_replacement
35150 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
35151 # otherwise set result to NONDIR_REPLACEMENT.
35155 */*) func_dirname_result="${1%/*}${2}" ;;
35156 * ) func_dirname_result="${3}" ;;
35160 # func_basename file
35163 func_basename_result="${1##*/}"
35166 # func_dirname_and_basename file append nondir_replacement
35167 # perform func_basename and func_dirname in a single function
35169 # dirname: Compute the dirname of FILE. If nonempty,
35170 # add APPEND to the result, otherwise set result
35171 # to NONDIR_REPLACEMENT.
35172 # value returned in "$func_dirname_result"
35173 # basename: Compute filename of FILE.
35174 # value retuned in "$func_basename_result"
35175 # Implementation must be kept synchronized with func_dirname
35176 # and func_basename. For efficiency, we do not delegate to
35177 # those functions but instead duplicate the functionality here.
35178 func_dirname_and_basename ()
35181 */*) func_dirname_result="${1%/*}${2}" ;;
35182 * ) func_dirname_result="${3}" ;;
35184 func_basename_result="${1##*/}"
35187 # func_stripname prefix suffix name
35188 # strip PREFIX and SUFFIX off of NAME.
35189 # PREFIX and SUFFIX must not contain globbing or regex special
35190 # characters, hashes, percent signs, but SUFFIX may contain a leading
35191 # dot (in which case that matches only a dot).
35194 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35195 # positional parameters, so assign one to ordinary parameter first.
35196 func_stripname_result=${3}
35197 func_stripname_result=${func_stripname_result#"${1}"}
35198 func_stripname_result=${func_stripname_result%"${2}"}
35204 func_opt_split_opt=${1%%=*}
35205 func_opt_split_arg=${1#*=}
35212 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35213 *) func_lo2o_result=${1} ;;
35217 # func_xform libobj-or-source
35220 func_xform_result=${1%.*}.lo
35223 # func_arith arithmetic-term...
35226 func_arith_result=$(( $* ))
35230 # STRING may not start with a hyphen.
35233 func_len_result=${#1}
35238 *) # Bourne compatible functions.
35239 cat << \_LT_EOF >> "$cfgfile"
35241 # func_dirname file append nondir_replacement
35242 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
35243 # otherwise set result to NONDIR_REPLACEMENT.
35246 # Extract subdirectory from the argument.
35247 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
35248 if test "X$func_dirname_result" = "X${1}"; then
35249 func_dirname_result="${3}"
35251 func_dirname_result="$func_dirname_result${2}"
35255 # func_basename file
35258 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
35262 # func_stripname prefix suffix name
35263 # strip PREFIX and SUFFIX off of NAME.
35264 # PREFIX and SUFFIX must not contain globbing or regex special
35265 # characters, hashes, percent signs, but SUFFIX may contain a leading
35266 # dot (in which case that matches only a dot).
35267 # func_strip_suffix prefix name
35271 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
35272 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
35277 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35278 my_sed_long_arg='1s/^-[^=]*=//'
35283 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
35284 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
35290 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
35293 # func_xform libobj-or-source
35296 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
35299 # func_arith arithmetic-term...
35302 func_arith_result=`expr "$@"`
35306 # STRING may not start with a hyphen.
35309 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35315 case $lt_shell_append in
35317 cat << \_LT_EOF >> "$cfgfile"
35319 # func_append var value
35320 # Append VALUE to the end of shell variable VAR.
35328 cat << \_LT_EOF >> "$cfgfile"
35330 # func_append var value
35331 # Append VALUE to the end of shell variable VAR.
35342 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35343 || (rm -f "$cfgfile"; exit 1)
35345 mv -f "$cfgfile" "$ofile" ||
35346 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35350 cat <<_LT_EOF >> "$ofile"
35352 # ### BEGIN LIBTOOL TAG CONFIG: CXX
35354 # The linker used to build libraries.
35357 # How to create reloadable object files.
35358 reload_flag=$lt_reload_flag_CXX
35359 reload_cmds=$lt_reload_cmds_CXX
35361 # Commands used to build an old-style archive.
35362 old_archive_cmds=$lt_old_archive_cmds_CXX
35364 # A language specific compiler.
35365 CC=$lt_compiler_CXX
35367 # Is the compiler the GNU compiler?
35370 # Compiler flag to turn off builtin functions.
35371 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35373 # How to pass a linker flag through the compiler.
35374 wl=$lt_lt_prog_compiler_wl_CXX
35376 # Additional compiler flags for building library objects.
35377 pic_flag=$lt_lt_prog_compiler_pic_CXX
35379 # Compiler flag to prevent dynamic linking.
35380 link_static_flag=$lt_lt_prog_compiler_static_CXX
35382 # Does compiler simultaneously support -c and -o options?
35383 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35385 # Whether or not to add -lc for building shared libraries.
35386 build_libtool_need_lc=$archive_cmds_need_lc_CXX
35388 # Whether or not to disallow shared libs when runtime libs are static.
35389 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35391 # Compiler flag to allow reflexive dlopens.
35392 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35394 # Compiler flag to generate shared objects directly from archives.
35395 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35397 # Whether the compiler copes with passing no objects directly.
35398 compiler_needs_object=$lt_compiler_needs_object_CXX
35400 # Create an old-style archive from a shared archive.
35401 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35403 # Create a temporary old-style archive to link instead of a shared archive.
35404 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35406 # Commands used to build a shared archive.
35407 archive_cmds=$lt_archive_cmds_CXX
35408 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35410 # Commands used to build a loadable module if different from building
35411 # a shared archive.
35412 module_cmds=$lt_module_cmds_CXX
35413 module_expsym_cmds=$lt_module_expsym_cmds_CXX
35415 # Whether we are building with GNU ld or not.
35416 with_gnu_ld=$lt_with_gnu_ld_CXX
35418 # Flag that allows shared libraries with undefined symbols to be built.
35419 allow_undefined_flag=$lt_allow_undefined_flag_CXX
35421 # Flag that enforces no undefined symbols.
35422 no_undefined_flag=$lt_no_undefined_flag_CXX
35424 # Flag to hardcode \$libdir into a binary during linking.
35425 # This must work even if \$libdir does not exist
35426 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35428 # If ld is used when linking, flag to hardcode \$libdir into a binary
35429 # during linking. This must work even if \$libdir does not exist.
35430 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35432 # Whether we need a single "-rpath" flag with a separated argument.
35433 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35435 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35436 # DIR into the resulting binary.
35437 hardcode_direct=$hardcode_direct_CXX
35439 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35440 # DIR into the resulting binary and the resulting library dependency is
35441 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35442 # library is relocated.
35443 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35445 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35446 # into the resulting binary.
35447 hardcode_minus_L=$hardcode_minus_L_CXX
35449 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35450 # into the resulting binary.
35451 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35453 # Set to "yes" if building a shared library automatically hardcodes DIR
35454 # into the library and all subsequent libraries and executables linked
35456 hardcode_automatic=$hardcode_automatic_CXX
35458 # Set to yes if linker adds runtime paths of dependent libraries
35459 # to runtime path list.
35460 inherit_rpath=$inherit_rpath_CXX
35462 # Whether libtool must link a program against all its dependency libraries.
35463 link_all_deplibs=$link_all_deplibs_CXX
35465 # Fix the shell variable \$srcfile for the compiler.
35466 fix_srcfile_path=$lt_fix_srcfile_path_CXX
35468 # Set to "yes" if exported symbols are required.
35469 always_export_symbols=$always_export_symbols_CXX
35471 # The commands to list exported symbols.
35472 export_symbols_cmds=$lt_export_symbols_cmds_CXX
35474 # Symbols that should not be listed in the preloaded symbols.
35475 exclude_expsyms=$lt_exclude_expsyms_CXX
35477 # Symbols that must always be exported.
35478 include_expsyms=$lt_include_expsyms_CXX
35480 # Commands necessary for linking programs (against libraries) with templates.
35481 prelink_cmds=$lt_prelink_cmds_CXX
35483 # Specify filename containing input files.
35484 file_list_spec=$lt_file_list_spec_CXX
35486 # How to hardcode a shared library path into an executable.
35487 hardcode_action=$hardcode_action_CXX
35489 # The directories searched by this compiler when creating a shared library.
35490 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35492 # Dependencies to place before and after the objects being linked to
35493 # create a shared library.
35494 predep_objects=$lt_predep_objects_CXX
35495 postdep_objects=$lt_postdep_objects_CXX
35496 predeps=$lt_predeps_CXX
35497 postdeps=$lt_postdeps_CXX
35499 # The library search path used internally by the compiler when linking
35500 # a shared library.
35501 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35503 # ### END LIBTOOL TAG CONFIG: CXX
35507 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35508 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35509 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35510 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35511 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35512 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35520 ac_clean_files=$ac_clean_files_save
35522 test $ac_write_fail = 0 ||
35523 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
35526 # configure is writing to config.log, and then calls config.status.
35527 # config.status does its own redirection, appending to config.log.
35528 # Unfortunately, on DOS this fails, as config.log is still kept open
35529 # by configure, so config.status won't be able to write to it; its
35530 # output is simply discarded. So we exec the FD to /dev/null,
35531 # effectively closing config.log, so it can be properly (re)opened and
35532 # appended to by config.status. When coming back to configure, we
35533 # need to make the FD available again.
35534 if test "$no_create" != yes; then
35536 ac_config_status_args=
35537 test "$silent" = yes &&
35538 ac_config_status_args="$ac_config_status_args --quiet"
35540 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35542 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35543 # would make configure fail if this is the last instruction.
35544 $ac_cs_success || as_fn_exit 1
35546 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35548 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35552 rm -f magick-version
35554 result_dejavu_font_dir='none'
35555 if test "${dejavu_font_dir}x" != 'x'; then
35556 result_dejavu_font_dir=$dejavu_font_dir
35559 result_ghostscript_font_dir='none'
35560 if test "${ghostscript_font_dir}x" != 'x'; then
35561 result_ghostscript_font_dir=$ghostscript_font_dir
35564 result_windows_font_dir='none'
35565 if test "${windows_font_dir}x" != 'x'; then
35566 result_windows_font_dir=${windows_font_dir}
35569 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
35570 ImageMagick is configured as follows. Please verify that this configuration
35571 matches your expectations.
35573 Host system type: $host
35574 Build system type: $build
35577 -------------------------------------------------------------------------------
35578 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35579 Static libraries --enable-static=$enable_static $libtool_build_static_libs
35580 Module support --with-modules=$with_modules $with_modules
35581 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35582 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35583 High Dynamic Range Imagery
35584 --enable-hdri=$enable_hdri $enable_hdri
35586 Delegate Configuration:
35587 BZLIB --with-bzlib=$with_bzlib $have_bzlib
35588 Autotrace --with-autotrace=$with_autotrace $have_autotrace
35589 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
35590 DJVU --with-djvu=$with_djvu $have_djvu
35591 DPS --with-dps=$with_dps $have_dps
35592 FFTW --with-fftw=$with_fftw $have_fftw
35593 FlashPIX --with-fpx=$with_fpx $have_fpx
35594 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35595 FreeType --with-freetype=$with_freetype $have_freetype
35596 GhostPCL None $PCLDelegate ($PCLVersion)
35597 GhostXPS None $XPSDelegate ($XPSVersion)
35598 Ghostscript None $PSDelegate ($GSVersion)
35599 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35600 Ghostscript lib --with-gslib=$with_gslib $have_gslib
35601 Graphviz --with-gvc=$with_gvc $have_gvc
35602 JBIG --with-jbig=$with_jbig $have_jbig
35603 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35604 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
35605 LCMS v1 --with-lcms=$with_lcms $have_lcms
35606 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
35607 LQR --with-lqr=$with_lqr $have_lqr
35608 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35609 OpenEXR --with-openexr=$with_openexr $have_openexr
35610 PERL --with-perl=$with_perl $have_perl
35611 PNG --with-png=$with_png $have_png
35612 RSVG --with-rsvg=$with_rsvg $have_rsvg
35613 TIFF --with-tiff=$with_tiff $have_tiff
35614 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35615 WMF --with-wmf=$with_wmf $have_wmf
35616 X11 --with-x=$with_x $have_x
35617 XML --with-xml=$with_xml $have_xml
35618 ZLIB --with-zlib=$with_zlib $have_zlib
35621 X_CFLAGS = $X_CFLAGS
35622 X_PRE_LIBS = $X_PRE_LIBS
35624 X_EXTRA_LIBS = $X_EXTRA_LIBS
35626 Options used to compile and link:
35627 PREFIX = $PREFIX_DIR
35628 EXEC-PREFIX = $EXEC_PREFIX_DIR
35629 VERSION = $PACKAGE_VERSION
35632 CPPFLAGS = $MAGICK_CPPFLAGS
35633 PCFLAGS = $MAGICK_PCFLAGS
35636 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35637 LIBS = $MAGICK_LIBS
35639 CXXFLAGS = $CXXFLAGS
35640 FEATURES = $MAGICK_FEATURES
35643 ImageMagick is configured as follows. Please verify that this configuration
35644 matches your expectations.
35646 Host system type: $host
35647 Build system type: $build
35650 -------------------------------------------------------------------------------
35651 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35652 Static libraries --enable-static=$enable_static $libtool_build_static_libs
35653 Module support --with-modules=$with_modules $with_modules
35654 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35655 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35656 High Dynamic Range Imagery
35657 --enable-hdri=$enable_hdri $enable_hdri
35659 Delegate Configuration:
35660 BZLIB --with-bzlib=$with_bzlib $have_bzlib
35661 Autotrace --with-autotrace=$with_autotrace $have_autotrace
35662 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
35663 DJVU --with-djvu=$with_djvu $have_djvu
35664 DPS --with-dps=$with_dps $have_dps
35665 FFTW --with-fftw=$with_fftw $have_fftw
35666 FlashPIX --with-fpx=$with_fpx $have_fpx
35667 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35668 FreeType --with-freetype=$with_freetype $have_freetype
35669 GhostPCL None $PCLDelegate ($PCLVersion)
35670 GhostXPS None $XPSDelegate ($XPSVersion)
35671 Ghostscript None $PSDelegate ($GSVersion)
35672 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35673 Ghostscript lib --with-gslib=$with_gslib $have_gslib
35674 Graphviz --with-gvc=$with_gvc $have_gvc
35675 JBIG --with-jbig=$with_jbig $have_jbig
35676 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35677 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
35678 LCMS v1 --with-lcms=$with_lcms $have_lcms
35679 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
35680 LQR --with-lqr=$with_lqr $have_lqr
35681 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35682 OpenEXR --with-openexr=$with_openexr $have_openexr
35683 PERL --with-perl=$with_perl $have_perl
35684 PNG --with-png=$with_png $have_png
35685 RSVG --with-rsvg=$with_rsvg $have_rsvg
35686 TIFF --with-tiff=$with_tiff $have_tiff
35687 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35688 WMF --with-wmf=$with_wmf $have_wmf
35689 X11 --with-x=$with_x $have_x
35690 XML --with-xml=$with_xml $have_xml
35691 ZLIB --with-zlib=$with_zlib $have_zlib
35694 X_CFLAGS = $X_CFLAGS
35695 X_PRE_LIBS = $X_PRE_LIBS
35697 X_EXTRA_LIBS = $X_EXTRA_LIBS
35699 Options used to compile and link:
35700 PREFIX = $PREFIX_DIR
35701 EXEC-PREFIX = $EXEC_PREFIX_DIR
35702 VERSION = $PACKAGE_VERSION
35705 CPPFLAGS = $MAGICK_CPPFLAGS
35706 PCFLAGS = $MAGICK_PCFLAGS
35709 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35710 LIBS = $MAGICK_LIBS
35712 CXXFLAGS = $CXXFLAGS
35713 FEATURES = $MAGICK_FEATURES