2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for ImageMagick 6.5.8.
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 Free Software Foundation,
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"
177 if (eval "$as_required") 2>/dev/null; then :
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir=.
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: http://www.imagemagick.org about your system, including
235 $0: any error possibly output before this message. Then
236 $0: install a modern shell, or manually run the script
237 $0: under such a shell if you do have one."
243 SHELL=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE= GREP_OPTIONS=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir=./$as_dir;;
288 test -d "$as_dir" || eval $as_mkdir_p || {
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357 as_val=`expr "$@" || test $? -eq 1`
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
369 as_status=$?; test $as_status -eq 0 && as_status=1
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit $as_status
378 if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_me=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits='0123456789'
421 as_cr_alnum=$as_cr_Letters$as_cr_digits
424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x "$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C= ECHO_N= ECHO_T=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 rm -f conf$$ conf$$.exe conf$$.file
469 if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
473 mkdir conf$$.dir 2>/dev/null
475 if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484 elif ln conf$$.file conf$$ 2>/dev/null; then
492 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493 rmdir conf$$.dir 2>/dev/null
495 if mkdir -p . 2>/dev/null; then
496 as_mkdir_p='mkdir -p "$as_dir"'
498 test -d ./-p && rmdir ./-p
502 if test -x / >/dev/null 2>&1; then
505 if ls -dL / >/dev/null 2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533 # Check that we are running under the correct shell.
534 SHELL=${CONFIG_SHELL-/bin/sh}
538 # Remove one level of quotation (which was required for Make).
539 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
544 if test "X$1" = X--no-reexec; then
545 # Discard the --no-reexec flag, and continue.
547 elif test "X$1" = X--fallback-echo; then
548 # Avoid inline document here, it may be left over
550 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551 # Yippee, $ECHO works!
554 # Restart under the correct shell.
555 exec $SHELL "$0" --no-reexec ${1+"$@"}
558 if test "X$1" = X--fallback-echo; then
559 # used as fallback echo
567 # The HP-UX ksh and POSIX shell print the target directory to stdout
569 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571 if test -z "$lt_ECHO"; then
572 if test "X${echo_test_string+set}" != Xset; then
573 # find a string as large as possible, as long as the shell can cope with it
574 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
584 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586 test "X$echo_testing_string" = "X$echo_test_string"; then
589 # The Solaris, AIX, and Digital Unix default echo programs unquote
590 # backslashes. This makes it impossible to quote backslashes using
591 # echo "$something" | sed 's/\\/\\\\/g'
593 # So, first we look for a working echo in the user's PATH.
595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596 for dir in $PATH /usr/ucb; do
598 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601 test "X$echo_testing_string" = "X$echo_test_string"; then
608 if test "X$ECHO" = Xecho; then
609 # We didn't find a better echo, so look for alternatives.
610 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612 test "X$echo_testing_string" = "X$echo_test_string"; then
613 # This shell has a builtin print -r that does the trick.
615 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616 test "X$CONFIG_SHELL" != X/bin/ksh; then
617 # If we have ksh, try running configure again with it.
618 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619 export ORIGINAL_CONFIG_SHELL
620 CONFIG_SHELL=/bin/ksh
622 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
626 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628 test "X$echo_testing_string" = "X$echo_test_string"; then
631 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632 test "X$echo_testing_string" = 'X\t' &&
633 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637 SHELL="$CONFIG_SHELL"
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
640 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641 test "X$echo_testing_string" = 'X\t' &&
642 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643 test "X$echo_testing_string" = "X$echo_test_string"; then
644 ECHO="$CONFIG_SHELL $0 --fallback-echo"
646 # maybe with a smaller string...
649 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
657 if test "$prev" != 'sed 50q "$0"'; then
658 echo_test_string=`eval $prev`
659 export echo_test_string
660 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662 # Oops. We lost completely, so just stick with echo.
671 # Copy echo and quote the copy suitably for passing to libtool from
672 # the Makefile, instead of quoting the original, which is used later.
674 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
683 lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
685 test -n "$DJDIR" || exec 7<&0 </dev/null
689 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
690 # so uname gets run too.
691 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
696 ac_default_prefix=/usr/local
698 ac_config_libobj_dir=.
705 # Identity of this package.
706 PACKAGE_NAME='ImageMagick'
707 PACKAGE_TARNAME='ImageMagick'
708 PACKAGE_VERSION='6.5.8'
709 PACKAGE_STRING='ImageMagick 6.5.8'
710 PACKAGE_BUGREPORT='http://www.imagemagick.org'
713 ac_unique_file="magick/MagickCore.h"
714 ac_config_libobj_dir=ltdl
715 # Factoring default headers for most tests.
716 ac_includes_default="\
718 #ifdef HAVE_SYS_TYPES_H
719 # include <sys/types.h>
721 #ifdef HAVE_SYS_STAT_H
722 # include <sys/stat.h>
728 # ifdef HAVE_STDLIB_H
733 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
738 #ifdef HAVE_STRINGS_H
739 # include <strings.h>
741 #ifdef HAVE_INTTYPES_H
742 # include <inttypes.h>
752 ac_subst_vars='ltdl_LTLIBOBJS
769 PERL_SUPPORTS_DESTDIR
770 WITH_PERL_DYNAMIC_FALSE
771 WITH_PERL_DYNAMIC_TRUE
772 WITH_PERL_STATIC_FALSE
773 WITH_PERL_STATIC_TRUE
834 GnuplotDecodeDelegate
848 BlenderDecodeDelegate
850 AutotraceDecodeDelegate
882 OPENEXR_DELEGATE_FALSE
883 OPENEXR_DELEGATE_TRUE
910 FREETYPE_DELEGATE_FALSE
911 FREETYPE_DELEGATE_TRUE
913 FONTCONFIG_DELEGATE_FALSE
914 FONTCONFIG_DELEGATE_TRUE
929 AUTOTRACE_DELEGATE_FALSE
930 AUTOTRACE_DELEGATE_TRUE
956 WITH_MAGICK_PLUS_PLUS_FALSE
957 WITH_MAGICK_PLUS_PLUS_TRUE
971 LIBRARY_EXTRA_CPPFLAGS
972 MODULE_EXTRA_CPPFLAGS
977 MAINTAINER_MODE_FALSE
988 CONVENIENCE_LTDL_FALSE
989 CONVENIENCE_LTDL_TRUE
993 sys_symbol_underscore
1033 WIN32_NATIVE_BUILD_FALSE
1034 WIN32_NATIVE_BUILD_TRUE
1035 WINGDI32_DELEGATE_FALSE
1036 WINGDI32_DELEGATE_TRUE
1047 am__fastdepCXX_FALSE
1070 MAGICK_FILTER_MODULE_PATH
1071 MAGICK_CONFIGURE_BUILD_PATH
1072 MAGICK_CONFIGURE_SRC_PATH
1073 MAGICK_CODER_MODULE_PATH
1088 CONFIG_STATUS_DEPENDENCIES
1089 MAGICK_LIB_VERSION_NUMBER
1090 MAGICK_LIB_VERSION_TEXT
1093 AM_DEFAULT_VERBOSITY
1102 INSTALL_STRIP_PROGRAM
1117 PACKAGE_LIB_SUBVERSION
1118 PACKAGE_RELEASE_DATE
1119 PACKAGE_LIB_VERSION_NUMBER
1124 MAGICK_LIBRARY_REVISION
1125 MAGICK_LIBRARY_CURRENT
1139 DISTCHECK_CONFIG_FLAGS
1167 program_transform_name
1180 enable_option_checking
1182 enable_dependency_tracking
1184 with_maximum_compile_warnings
1186 enable_bounds_checking
1187 enable_osx_universal_binary
1201 enable_delegate_build
1208 enable_maintainer_mode
1218 with_magick_plus_plus
1246 with_windows_font_dir
1250 ac_precious_vars='build_alias
1281 # Initialize some variables set by options.
1283 ac_init_version=false
1284 ac_unrecognized_opts=
1285 ac_unrecognized_sep=
1286 # The variables have the same names as the options, with
1287 # dashes changed to underlines.
1288 cache_file=/dev/null
1295 program_transform_name=s,x,x,
1303 # Installation directory options.
1304 # These are left unexpanded so users can "make install exec_prefix=/foo"
1305 # and all the variables that are supposed to be based on exec_prefix
1306 # by default will actually change.
1307 # Use braces instead of parens because sh, perl, etc. also accept them.
1308 # (The list follows the same order as the GNU Coding Standards.)
1309 bindir='${exec_prefix}/bin'
1310 sbindir='${exec_prefix}/sbin'
1311 libexecdir='${exec_prefix}/libexec'
1312 datarootdir='${prefix}/share'
1313 datadir='${datarootdir}'
1314 sysconfdir='${prefix}/etc'
1315 sharedstatedir='${prefix}/com'
1316 localstatedir='${prefix}/var'
1317 includedir='${prefix}/include'
1318 oldincludedir='/usr/include'
1319 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1320 infodir='${datarootdir}/info'
1325 libdir='${exec_prefix}/lib'
1326 localedir='${datarootdir}/locale'
1327 mandir='${datarootdir}/man'
1333 # If the previous option needs an argument, assign it.
1334 if test -n "$ac_prev"; then
1335 eval $ac_prev=\$ac_option
1341 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1345 # Accept the important Cygnus configure options, so we can diagnose typos.
1347 case $ac_dashdash$ac_option in
1351 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1353 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1354 bindir=$ac_optarg ;;
1356 -build | --build | --buil | --bui | --bu)
1357 ac_prev=build_alias ;;
1358 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1359 build_alias=$ac_optarg ;;
1361 -cache-file | --cache-file | --cache-fil | --cache-fi \
1362 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1363 ac_prev=cache_file ;;
1364 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1365 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1366 cache_file=$ac_optarg ;;
1368 --config-cache | -C)
1369 cache_file=config.cache ;;
1371 -datadir | --datadir | --datadi | --datad)
1373 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1374 datadir=$ac_optarg ;;
1376 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1377 | --dataroo | --dataro | --datar)
1378 ac_prev=datarootdir ;;
1379 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1380 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1381 datarootdir=$ac_optarg ;;
1383 -disable-* | --disable-*)
1384 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1385 # Reject names that are not valid shell variable names.
1386 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1387 as_fn_error "invalid feature name: $ac_useropt"
1388 ac_useropt_orig=$ac_useropt
1389 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1390 case $ac_user_opts in
1392 "enable_$ac_useropt"
1394 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1395 ac_unrecognized_sep=', ';;
1397 eval enable_$ac_useropt=no ;;
1399 -docdir | --docdir | --docdi | --doc | --do)
1401 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1402 docdir=$ac_optarg ;;
1404 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1406 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1407 dvidir=$ac_optarg ;;
1409 -enable-* | --enable-*)
1410 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1411 # Reject names that are not valid shell variable names.
1412 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1413 as_fn_error "invalid feature name: $ac_useropt"
1414 ac_useropt_orig=$ac_useropt
1415 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1416 case $ac_user_opts in
1418 "enable_$ac_useropt"
1420 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1421 ac_unrecognized_sep=', ';;
1423 eval enable_$ac_useropt=\$ac_optarg ;;
1425 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1426 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1427 | --exec | --exe | --ex)
1428 ac_prev=exec_prefix ;;
1429 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1430 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1431 | --exec=* | --exe=* | --ex=*)
1432 exec_prefix=$ac_optarg ;;
1434 -gas | --gas | --ga | --g)
1435 # Obsolete; use --with-gas.
1438 -help | --help | --hel | --he | -h)
1439 ac_init_help=long ;;
1440 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1441 ac_init_help=recursive ;;
1442 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1443 ac_init_help=short ;;
1445 -host | --host | --hos | --ho)
1446 ac_prev=host_alias ;;
1447 -host=* | --host=* | --hos=* | --ho=*)
1448 host_alias=$ac_optarg ;;
1450 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1452 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1454 htmldir=$ac_optarg ;;
1456 -includedir | --includedir | --includedi | --included | --include \
1457 | --includ | --inclu | --incl | --inc)
1458 ac_prev=includedir ;;
1459 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1460 | --includ=* | --inclu=* | --incl=* | --inc=*)
1461 includedir=$ac_optarg ;;
1463 -infodir | --infodir | --infodi | --infod | --info | --inf)
1465 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1466 infodir=$ac_optarg ;;
1468 -libdir | --libdir | --libdi | --libd)
1470 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1471 libdir=$ac_optarg ;;
1473 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1474 | --libexe | --libex | --libe)
1475 ac_prev=libexecdir ;;
1476 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1477 | --libexe=* | --libex=* | --libe=*)
1478 libexecdir=$ac_optarg ;;
1480 -localedir | --localedir | --localedi | --localed | --locale)
1481 ac_prev=localedir ;;
1482 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1483 localedir=$ac_optarg ;;
1485 -localstatedir | --localstatedir | --localstatedi | --localstated \
1486 | --localstate | --localstat | --localsta | --localst | --locals)
1487 ac_prev=localstatedir ;;
1488 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1489 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1490 localstatedir=$ac_optarg ;;
1492 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1494 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1495 mandir=$ac_optarg ;;
1497 -nfp | --nfp | --nf)
1498 # Obsolete; use --without-fp.
1501 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1502 | --no-cr | --no-c | -n)
1505 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1506 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1509 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1510 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1511 | --oldin | --oldi | --old | --ol | --o)
1512 ac_prev=oldincludedir ;;
1513 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1514 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1515 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1516 oldincludedir=$ac_optarg ;;
1518 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1520 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1521 prefix=$ac_optarg ;;
1523 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1524 | --program-pre | --program-pr | --program-p)
1525 ac_prev=program_prefix ;;
1526 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1527 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1528 program_prefix=$ac_optarg ;;
1530 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1531 | --program-suf | --program-su | --program-s)
1532 ac_prev=program_suffix ;;
1533 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1534 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1535 program_suffix=$ac_optarg ;;
1537 -program-transform-name | --program-transform-name \
1538 | --program-transform-nam | --program-transform-na \
1539 | --program-transform-n | --program-transform- \
1540 | --program-transform | --program-transfor \
1541 | --program-transfo | --program-transf \
1542 | --program-trans | --program-tran \
1543 | --progr-tra | --program-tr | --program-t)
1544 ac_prev=program_transform_name ;;
1545 -program-transform-name=* | --program-transform-name=* \
1546 | --program-transform-nam=* | --program-transform-na=* \
1547 | --program-transform-n=* | --program-transform-=* \
1548 | --program-transform=* | --program-transfor=* \
1549 | --program-transfo=* | --program-transf=* \
1550 | --program-trans=* | --program-tran=* \
1551 | --progr-tra=* | --program-tr=* | --program-t=*)
1552 program_transform_name=$ac_optarg ;;
1554 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1556 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1557 pdfdir=$ac_optarg ;;
1559 -psdir | --psdir | --psdi | --psd | --ps)
1561 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1564 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1565 | -silent | --silent | --silen | --sile | --sil)
1568 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1570 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1572 sbindir=$ac_optarg ;;
1574 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1575 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1576 | --sharedst | --shareds | --shared | --share | --shar \
1578 ac_prev=sharedstatedir ;;
1579 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1580 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1581 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1583 sharedstatedir=$ac_optarg ;;
1585 -site | --site | --sit)
1587 -site=* | --site=* | --sit=*)
1590 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1592 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1593 srcdir=$ac_optarg ;;
1595 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1596 | --syscon | --sysco | --sysc | --sys | --sy)
1597 ac_prev=sysconfdir ;;
1598 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1599 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1600 sysconfdir=$ac_optarg ;;
1602 -target | --target | --targe | --targ | --tar | --ta | --t)
1603 ac_prev=target_alias ;;
1604 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1605 target_alias=$ac_optarg ;;
1607 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1610 -version | --version | --versio | --versi | --vers | -V)
1611 ac_init_version=: ;;
1614 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1615 # Reject names that are not valid shell variable names.
1616 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1617 as_fn_error "invalid package name: $ac_useropt"
1618 ac_useropt_orig=$ac_useropt
1619 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1620 case $ac_user_opts in
1624 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1625 ac_unrecognized_sep=', ';;
1627 eval with_$ac_useropt=\$ac_optarg ;;
1629 -without-* | --without-*)
1630 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1631 # Reject names that are not valid shell variable names.
1632 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1633 as_fn_error "invalid package name: $ac_useropt"
1634 ac_useropt_orig=$ac_useropt
1635 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1636 case $ac_user_opts in
1640 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1641 ac_unrecognized_sep=', ';;
1643 eval with_$ac_useropt=no ;;
1646 # Obsolete; use --with-x.
1649 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1650 | --x-incl | --x-inc | --x-in | --x-i)
1651 ac_prev=x_includes ;;
1652 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1653 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1654 x_includes=$ac_optarg ;;
1656 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1657 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1658 ac_prev=x_libraries ;;
1659 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1660 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1661 x_libraries=$ac_optarg ;;
1663 -*) as_fn_error "unrecognized option: \`$ac_option'
1664 Try \`$0 --help' for more information."
1668 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1669 # Reject names that are not valid shell variable names.
1670 case $ac_envvar in #(
1671 '' | [0-9]* | *[!_$as_cr_alnum]* )
1672 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1674 eval $ac_envvar=\$ac_optarg
1675 export $ac_envvar ;;
1678 # FIXME: should be removed in autoconf 3.0.
1679 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1680 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1681 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1682 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1688 if test -n "$ac_prev"; then
1689 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1690 as_fn_error "missing argument to $ac_option"
1693 if test -n "$ac_unrecognized_opts"; then
1694 case $enable_option_checking in
1696 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1697 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1701 # Check all directory arguments for consistency.
1702 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1703 datadir sysconfdir sharedstatedir localstatedir includedir \
1704 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1705 libdir localedir mandir
1707 eval ac_val=\$$ac_var
1708 # Remove trailing slashes.
1711 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1712 eval $ac_var=\$ac_val;;
1714 # Be sure to have absolute directory names.
1716 [\\/$]* | ?:[\\/]* ) continue;;
1717 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1719 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1722 # There might be people who depend on the old broken behavior: `$host'
1723 # used to hold the argument of --host etc.
1724 # FIXME: To remove some day.
1727 target=$target_alias
1729 # FIXME: To remove some day.
1730 if test "x$host_alias" != x; then
1731 if test "x$build_alias" = x; then
1732 cross_compiling=maybe
1733 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1734 If a cross compiler is detected then cross compile mode will be used." >&2
1735 elif test "x$build_alias" != "x$host_alias"; then
1741 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1743 test "$silent" = yes && exec 6>/dev/null
1746 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1747 ac_ls_di=`ls -di .` &&
1748 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1749 as_fn_error "working directory cannot be determined"
1750 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1751 as_fn_error "pwd does not report name of working directory"
1754 # Find the source files, if location was not specified.
1755 if test -z "$srcdir"; then
1756 ac_srcdir_defaulted=yes
1757 # Try the directory containing this script, then the parent directory.
1758 ac_confdir=`$as_dirname -- "$as_myself" ||
1759 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1760 X"$as_myself" : 'X\(//\)[^/]' \| \
1761 X"$as_myself" : 'X\(//\)$' \| \
1762 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1763 $as_echo X"$as_myself" |
1764 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1782 if test ! -r "$srcdir/$ac_unique_file"; then
1786 ac_srcdir_defaulted=no
1788 if test ! -r "$srcdir/$ac_unique_file"; then
1789 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1790 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1792 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1794 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1796 # When building in place, set srcdir=.
1797 if test "$ac_abs_confdir" = "$ac_pwd"; then
1800 # Remove unnecessary trailing slashes from srcdir.
1801 # Double slashes in file names in object file debugging info
1802 # mess up M-x gdb in Emacs.
1804 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1806 for ac_var in $ac_precious_vars; do
1807 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1808 eval ac_env_${ac_var}_value=\$${ac_var}
1809 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1810 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1814 # Report the --help message.
1816 if test "$ac_init_help" = "long"; then
1817 # Omit some internal or obsolete options to make the list less imposing.
1818 # This message is too long to be a string in the A/UX 3.1 sh.
1820 \`configure' configures ImageMagick 6.5.8 to adapt to many kinds of systems.
1822 Usage: $0 [OPTION]... [VAR=VALUE]...
1824 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1825 VAR=VALUE. See below for descriptions of some of the useful variables.
1827 Defaults for the options are specified in brackets.
1830 -h, --help display this help and exit
1831 --help=short display options specific to this package
1832 --help=recursive display the short help of all the included packages
1833 -V, --version display version information and exit
1834 -q, --quiet, --silent do not print \`checking...' messages
1835 --cache-file=FILE cache test results in FILE [disabled]
1836 -C, --config-cache alias for \`--cache-file=config.cache'
1837 -n, --no-create do not create output files
1838 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1840 Installation directories:
1841 --prefix=PREFIX install architecture-independent files in PREFIX
1842 [$ac_default_prefix]
1843 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1846 By default, \`make install' will install all the files in
1847 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1848 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1849 for instance \`--prefix=\$HOME'.
1851 For better control, use the options below.
1853 Fine tuning of the installation directories:
1854 --bindir=DIR user executables [EPREFIX/bin]
1855 --sbindir=DIR system admin executables [EPREFIX/sbin]
1856 --libexecdir=DIR program executables [EPREFIX/libexec]
1857 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1858 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1859 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1860 --libdir=DIR object code libraries [EPREFIX/lib]
1861 --includedir=DIR C header files [PREFIX/include]
1862 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1863 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1864 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1865 --infodir=DIR info documentation [DATAROOTDIR/info]
1866 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1867 --mandir=DIR man documentation [DATAROOTDIR/man]
1868 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1869 --htmldir=DIR html documentation [DOCDIR]
1870 --dvidir=DIR dvi documentation [DOCDIR]
1871 --pdfdir=DIR pdf documentation [DOCDIR]
1872 --psdir=DIR ps documentation [DOCDIR]
1878 --program-prefix=PREFIX prepend PREFIX to installed program names
1879 --program-suffix=SUFFIX append SUFFIX to installed program names
1880 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1883 --x-includes=DIR X include files are in DIR
1884 --x-libraries=DIR X library files are in DIR
1887 --build=BUILD configure for building on BUILD [guessed]
1888 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1889 --target=TARGET configure for building compilers for TARGET [HOST]
1893 if test -n "$ac_init_help"; then
1894 case $ac_init_help in
1895 short | recursive ) echo "Configuration of ImageMagick 6.5.8:";;
1900 --disable-option-checking ignore unrecognized --enable/--with options
1901 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1902 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1903 --enable-silent-rules less verbose build output (undo: `make V=1')
1904 --disable-silent-rules verbose build output (undo: `make V=0')
1905 --disable-dependency-tracking speeds up one-time build
1906 --enable-dependency-tracking do not reject slow dependency extractors
1907 --bounds-checking enable run-time bounds-checking
1908 --enable-osx-universal-binary
1909 build universal binary on OS X [[default=no]]
1910 --disable-openmp do not use OpenMP
1911 --disable-largefile omit support for large files
1912 --enable-shared[=PKGS] build shared libraries [default=yes]
1913 --enable-static[=PKGS] build static libraries [default=yes]
1914 --enable-fast-install[=PKGS]
1915 optimize for fast installation [default=yes]
1916 --disable-libtool-lock avoid locking (might break parallel builds)
1917 --enable-ltdl-install install libltdl
1918 --enable-delegate-build look for delegate libraries in build directory
1919 --disable-deprecated exclude deprecated methods in MagickCore and
1921 --disable-installed Formally install ImageMagick under PREFIX
1922 --disable-cipher disable enciphering and deciphering image pixels
1923 --enable-embeddable enable self-contained, embeddable,
1924 zero-configuration ImageMagick
1925 --enable-hdri accurately represent the wide range of intensity
1926 levels found in real scenes
1927 --disable-assert disable assert() statements in build
1928 --enable-maintainer-mode enable make rules and dependencies not useful
1929 (and sometimes confusing) to the casual installer
1930 --enable-ccmalloc enable 'ccmalloc' memory debug support
1931 --enable-efence enable 'efence' memory debug support
1932 --enable-prof enable 'prof' profiling support
1933 --enable-gprof enable 'gprof' profiling support
1934 --enable-gcov enable 'gcov' profiling support
1937 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1938 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1939 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1940 --without-maximum-compile-warnings
1941 Disable maximum warning verbosity
1942 --with-dmalloc use dmalloc, as in
1943 http://www.dmalloc.com/dmalloc.tar.gz
1944 --without-threads disable threads support
1945 --with-pic try to use only PIC/non-PIC objects [default=use
1947 --with-included-ltdl use the GNU ltdl sources included here
1948 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1949 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1950 --with-modules enable building dynamically loadable modules
1951 --with-method-prefix=PREFIX
1952 prefix MagickCore API methods
1953 --with-quantum-depth=DEPTH
1954 number of bits in a pixel quantum (default 16)
1955 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1957 --with-frozenpaths freeze delegate paths
1958 --without-magick-plus-plus
1959 disable build/install of Magick++
1960 --with-perl enable build/install of PerlMagick
1961 --with-perl-options=OPTIONS
1962 options to pass on command-line when generating
1963 PerlMagick's build file
1964 --with-umem enable umem memory allocation library support
1965 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1966 --without-bzlib disable BZLIB support
1967 --with-x use the X Window System
1968 --without-zlib disable ZLIB support
1969 --with-autotrace enable autotrace support
1970 --without-dps disable Display Postscript support
1971 --without-djvu disable DjVu support
1972 --without-fftw disable FFTW support
1973 --without-fpx disable FlashPIX support
1974 --without-fontconfig disable fontconfig support
1975 --without-freetype disable Freetype support
1976 --without-gslib enable Ghostscript library support
1977 --with-fontpath=DIR prepend to default font search path
1978 --with-gs-font-dir=DIR Ghostscript font directory
1979 --without-gvc disable GVC support
1980 --without-jbig disable JBIG support
1981 --without-jpeg disable JPEG support
1982 --without-jp2 disable JPEG-2000 support
1983 --without-lcms disable LCMS support
1984 --without-lqr disable Liquid Rescale support (experimental)
1985 --without-openexr disable OpenEXR support
1986 --without-png disable PNG support
1987 --without-rsvg disable RSVG support
1988 --without-tiff disable TIFF support
1989 --with-windows-font-dir=DIR
1990 directory containing MS-Windows fonts
1991 --without-wmf disable WMF support
1992 --without-xml disable XML support
1994 Some influential environment variables:
1995 CC C compiler command
1996 CFLAGS C compiler flags
1997 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1998 nonstandard directory <lib dir>
1999 LIBS libraries to pass to the linker, e.g. -l<library>
2000 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2001 you have headers in a nonstandard directory <include dir>
2002 CXX C++ compiler command
2003 CXXFLAGS C++ compiler flags
2005 PKG_CONFIG path to pkg-config utility
2006 CXXCPP C++ preprocessor
2007 XMKMF Path to xmkmf, Makefile generator for X Window System
2009 C compiler flags for AUTOTRACE, overriding pkg-config
2011 linker flags for AUTOTRACE, overriding pkg-config
2013 C compiler flags for FONTCONFIG, overriding pkg-config
2015 linker flags for FONTCONFIG, overriding pkg-config
2016 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2017 GVC_LIBS linker flags for GVC, overriding pkg-config
2018 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2019 LQR_LIBS linker flags for LQR, overriding pkg-config
2021 C compiler flags for OPENEXR, overriding pkg-config
2023 linker flags for OPENEXR, overriding pkg-config
2024 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2025 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2027 C compiler flags for CAIRO_SVG, overriding pkg-config
2029 linker flags for CAIRO_SVG, overriding pkg-config
2031 Use these variables to override the choices made by `configure' or to help
2032 it to find libraries and programs with nonstandard names/locations.
2034 Report bugs to <http://www.imagemagick.org>.
2039 if test "$ac_init_help" = "recursive"; then
2040 # If there are subdirs, report their specific --help.
2041 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2042 test -d "$ac_dir" ||
2043 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2048 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2050 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2051 # A ".." for each directory in $ac_dir_suffix.
2052 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2053 case $ac_top_builddir_sub in
2054 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2055 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2058 ac_abs_top_builddir=$ac_pwd
2059 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2060 # for backward compatibility:
2061 ac_top_builddir=$ac_top_build_prefix
2064 .) # We are building in place.
2066 ac_top_srcdir=$ac_top_builddir_sub
2067 ac_abs_top_srcdir=$ac_pwd ;;
2068 [\\/]* | ?:[\\/]* ) # Absolute name.
2069 ac_srcdir=$srcdir$ac_dir_suffix;
2070 ac_top_srcdir=$srcdir
2071 ac_abs_top_srcdir=$srcdir ;;
2073 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2074 ac_top_srcdir=$ac_top_build_prefix$srcdir
2075 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2077 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2079 cd "$ac_dir" || { ac_status=$?; continue; }
2080 # Check for guested configure.
2081 if test -f "$ac_srcdir/configure.gnu"; then
2083 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2084 elif test -f "$ac_srcdir/configure"; then
2086 $SHELL "$ac_srcdir/configure" --help=recursive
2088 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2090 cd "$ac_pwd" || { ac_status=$?; break; }
2094 test -n "$ac_init_help" && exit $ac_status
2095 if $ac_init_version; then
2097 ImageMagick configure 6.5.8
2098 generated by GNU Autoconf 2.65
2100 Copyright (C) 2009 Free Software Foundation, Inc.
2101 This configure script is free software; the Free Software Foundation
2102 gives unlimited permission to copy, distribute and modify it.
2107 ## ------------------------ ##
2108 ## Autoconf initialization. ##
2109 ## ------------------------ ##
2111 # ac_fn_c_try_compile LINENO
2112 # --------------------------
2113 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2114 ac_fn_c_try_compile ()
2116 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2117 rm -f conftest.$ac_objext
2118 if { { ac_try="$ac_compile"
2120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2121 *) ac_try_echo=$ac_try;;
2123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2124 $as_echo "$ac_try_echo"; } >&5
2125 (eval "$ac_compile") 2>conftest.err
2127 if test -s conftest.err; then
2128 grep -v '^ *+' conftest.err >conftest.er1
2129 cat conftest.er1 >&5
2130 mv -f conftest.er1 conftest.err
2132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2133 test $ac_status = 0; } && {
2134 test -z "$ac_c_werror_flag" ||
2135 test ! -s conftest.err
2136 } && test -s conftest.$ac_objext; then :
2139 $as_echo "$as_me: failed program was:" >&5
2140 sed 's/^/| /' conftest.$ac_ext >&5
2144 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2145 as_fn_set_status $ac_retval
2147 } # ac_fn_c_try_compile
2149 # ac_fn_cxx_try_compile LINENO
2150 # ----------------------------
2151 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2152 ac_fn_cxx_try_compile ()
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 rm -f conftest.$ac_objext
2156 if { { ac_try="$ac_compile"
2158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2159 *) ac_try_echo=$ac_try;;
2161 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2162 $as_echo "$ac_try_echo"; } >&5
2163 (eval "$ac_compile") 2>conftest.err
2165 if test -s conftest.err; then
2166 grep -v '^ *+' conftest.err >conftest.er1
2167 cat conftest.er1 >&5
2168 mv -f conftest.er1 conftest.err
2170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2171 test $ac_status = 0; } && {
2172 test -z "$ac_cxx_werror_flag" ||
2173 test ! -s conftest.err
2174 } && test -s conftest.$ac_objext; then :
2177 $as_echo "$as_me: failed program was:" >&5
2178 sed 's/^/| /' conftest.$ac_ext >&5
2182 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2183 as_fn_set_status $ac_retval
2185 } # ac_fn_cxx_try_compile
2187 # ac_fn_c_try_cpp LINENO
2188 # ----------------------
2189 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193 if { { ac_try="$ac_cpp conftest.$ac_ext"
2195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2196 *) ac_try_echo=$ac_try;;
2198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2199 $as_echo "$ac_try_echo"; } >&5
2200 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2202 if test -s conftest.err; then
2203 grep -v '^ *+' conftest.err >conftest.er1
2204 cat conftest.er1 >&5
2205 mv -f conftest.er1 conftest.err
2207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2208 test $ac_status = 0; } >/dev/null && {
2209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2210 test ! -s conftest.err
2214 $as_echo "$as_me: failed program was:" >&5
2215 sed 's/^/| /' conftest.$ac_ext >&5
2219 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2220 as_fn_set_status $ac_retval
2224 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2225 # -------------------------------------------------------
2226 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2227 # the include files in INCLUDES and setting the cache variable VAR
2229 ac_fn_c_check_header_mongrel ()
2231 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2232 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2234 $as_echo_n "checking for $2... " >&6; }
2235 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2236 $as_echo_n "(cached) " >&6
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240 $as_echo "$ac_res" >&6; }
2242 # Is the header compilable?
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2244 $as_echo_n "checking $2 usability... " >&6; }
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2250 if ac_fn_c_try_compile "$LINENO"; then :
2251 ac_header_compiler=yes
2253 ac_header_compiler=no
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2257 $as_echo "$ac_header_compiler" >&6; }
2259 # Is the header present?
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2261 $as_echo_n "checking $2 presence... " >&6; }
2262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2263 /* end confdefs.h. */
2266 if ac_fn_c_try_cpp "$LINENO"; then :
2267 ac_header_preproc=yes
2269 ac_header_preproc=no
2271 rm -f conftest.err conftest.$ac_ext
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2273 $as_echo "$ac_header_preproc" >&6; }
2275 # So? What about this header?
2276 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2279 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2281 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2285 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2287 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2289 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2291 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2293 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2295 ## ----------------------------------------- ##
2296 ## Report this to http://www.imagemagick.org ##
2297 ## ----------------------------------------- ##
2299 ) | sed "s/^/$as_me: WARNING: /" >&2
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2303 $as_echo_n "checking for $2... " >&6; }
2304 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2305 $as_echo_n "(cached) " >&6
2307 eval "$3=\$ac_header_compiler"
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311 $as_echo "$ac_res" >&6; }
2313 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2315 } # ac_fn_c_check_header_mongrel
2317 # ac_fn_c_try_run LINENO
2318 # ----------------------
2319 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2320 # that executables *can* be run.
2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324 if { { ac_try="$ac_link"
2326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2327 *) ac_try_echo=$ac_try;;
2329 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2330 $as_echo "$ac_try_echo"; } >&5
2331 (eval "$ac_link") 2>&5
2333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2334 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2335 { { case "(($ac_try" in
2336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2337 *) ac_try_echo=$ac_try;;
2339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2340 $as_echo "$ac_try_echo"; } >&5
2341 (eval "$ac_try") 2>&5
2343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2344 test $ac_status = 0; }; }; then :
2347 $as_echo "$as_me: program exited with status $ac_status" >&5
2348 $as_echo "$as_me: failed program was:" >&5
2349 sed 's/^/| /' conftest.$ac_ext >&5
2351 ac_retval=$ac_status
2353 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2354 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2355 as_fn_set_status $ac_retval
2359 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2360 # -------------------------------------------------------
2361 # Tests whether HEADER exists and can be compiled using the include files in
2362 # INCLUDES, setting the cache variable VAR accordingly.
2363 ac_fn_c_check_header_compile ()
2365 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2367 $as_echo_n "checking for $2... " >&6; }
2368 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2369 $as_echo_n "(cached) " >&6
2371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372 /* end confdefs.h. */
2376 if ac_fn_c_try_compile "$LINENO"; then :
2381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2385 $as_echo "$ac_res" >&6; }
2386 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2388 } # ac_fn_c_check_header_compile
2390 # ac_fn_c_try_link LINENO
2391 # -----------------------
2392 # Try to link conftest.$ac_ext, and return whether this succeeded.
2395 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2396 rm -f conftest.$ac_objext conftest$ac_exeext
2397 if { { ac_try="$ac_link"
2399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400 *) ac_try_echo=$ac_try;;
2402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2403 $as_echo "$ac_try_echo"; } >&5
2404 (eval "$ac_link") 2>conftest.err
2406 if test -s conftest.err; then
2407 grep -v '^ *+' conftest.err >conftest.er1
2408 cat conftest.er1 >&5
2409 mv -f conftest.er1 conftest.err
2411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2412 test $ac_status = 0; } && {
2413 test -z "$ac_c_werror_flag" ||
2414 test ! -s conftest.err
2415 } && test -s conftest$ac_exeext && {
2416 test "$cross_compiling" = yes ||
2417 $as_test_x conftest$ac_exeext
2421 $as_echo "$as_me: failed program was:" >&5
2422 sed 's/^/| /' conftest.$ac_ext >&5
2426 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2427 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2428 # interfere with the next link command; also delete a directory that is
2429 # left behind by Apple's compiler. We do this before executing the actions.
2430 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2431 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2432 as_fn_set_status $ac_retval
2434 } # ac_fn_c_try_link
2436 # ac_fn_c_check_func LINENO FUNC VAR
2437 # ----------------------------------
2438 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2439 ac_fn_c_check_func ()
2441 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2443 $as_echo_n "checking for $2... " >&6; }
2444 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2445 $as_echo_n "(cached) " >&6
2447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2448 /* end confdefs.h. */
2449 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2451 #define $2 innocuous_$2
2453 /* System header to define __stub macros and hopefully few prototypes,
2454 which can conflict with char $2 (); below.
2455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2456 <limits.h> exists even on freestanding compilers. */
2459 # include <limits.h>
2461 # include <assert.h>
2466 /* Override any GCC internal prototype to avoid an error.
2467 Use char because int might match the return type of a GCC
2468 builtin and then its argument prototype would still apply. */
2473 /* The GNU C library defines this for functions which it implements
2474 to always fail with ENOSYS. Some functions are actually named
2475 something starting with __ and the normal name is an alias. */
2476 #if defined __stub_$2 || defined __stub___$2
2488 if ac_fn_c_try_link "$LINENO"; then :
2493 rm -f core conftest.err conftest.$ac_objext \
2494 conftest$ac_exeext conftest.$ac_ext
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2498 $as_echo "$ac_res" >&6; }
2499 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2501 } # ac_fn_c_check_func
2503 # ac_fn_cxx_try_cpp LINENO
2504 # ------------------------
2505 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2506 ac_fn_cxx_try_cpp ()
2508 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2509 if { { ac_try="$ac_cpp conftest.$ac_ext"
2511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512 *) ac_try_echo=$ac_try;;
2514 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2515 $as_echo "$ac_try_echo"; } >&5
2516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2518 if test -s conftest.err; then
2519 grep -v '^ *+' conftest.err >conftest.er1
2520 cat conftest.er1 >&5
2521 mv -f conftest.er1 conftest.err
2523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2524 test $ac_status = 0; } >/dev/null && {
2525 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2526 test ! -s conftest.err
2530 $as_echo "$as_me: failed program was:" >&5
2531 sed 's/^/| /' conftest.$ac_ext >&5
2535 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2536 as_fn_set_status $ac_retval
2538 } # ac_fn_cxx_try_cpp
2540 # ac_fn_cxx_try_link LINENO
2541 # -------------------------
2542 # Try to link conftest.$ac_ext, and return whether this succeeded.
2543 ac_fn_cxx_try_link ()
2545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2546 rm -f conftest.$ac_objext conftest$ac_exeext
2547 if { { ac_try="$ac_link"
2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550 *) ac_try_echo=$ac_try;;
2552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2553 $as_echo "$ac_try_echo"; } >&5
2554 (eval "$ac_link") 2>conftest.err
2556 if test -s conftest.err; then
2557 grep -v '^ *+' conftest.err >conftest.er1
2558 cat conftest.er1 >&5
2559 mv -f conftest.er1 conftest.err
2561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2562 test $ac_status = 0; } && {
2563 test -z "$ac_cxx_werror_flag" ||
2564 test ! -s conftest.err
2565 } && test -s conftest$ac_exeext && {
2566 test "$cross_compiling" = yes ||
2567 $as_test_x conftest$ac_exeext
2571 $as_echo "$as_me: failed program was:" >&5
2572 sed 's/^/| /' conftest.$ac_ext >&5
2576 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2577 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2578 # interfere with the next link command; also delete a directory that is
2579 # left behind by Apple's compiler. We do this before executing the actions.
2580 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2581 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2582 as_fn_set_status $ac_retval
2584 } # ac_fn_cxx_try_link
2586 # ac_fn_c_check_decl LINENO SYMBOL VAR
2587 # ------------------------------------
2588 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2589 ac_fn_c_check_decl ()
2591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2593 $as_echo_n "checking whether $2 is declared... " >&6; }
2594 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2595 $as_echo_n "(cached) " >&6
2597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h. */
2611 if ac_fn_c_try_compile "$LINENO"; then :
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2620 $as_echo "$ac_res" >&6; }
2621 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2623 } # ac_fn_c_check_decl
2625 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2626 # -------------------------------------------
2627 # Tests whether TYPE exists after having included INCLUDES, setting cache
2628 # variable VAR accordingly.
2629 ac_fn_c_check_type ()
2631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2633 $as_echo_n "checking for $2... " >&6; }
2634 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2635 $as_echo_n "(cached) " >&6
2638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2639 /* end confdefs.h. */
2650 if ac_fn_c_try_compile "$LINENO"; then :
2651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652 /* end confdefs.h. */
2663 if ac_fn_c_try_compile "$LINENO"; then :
2668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2674 $as_echo "$ac_res" >&6; }
2675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2677 } # ac_fn_c_check_type
2679 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2680 # --------------------------------------------
2681 # Tries to find the compile-time value of EXPR in a program that includes
2682 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2684 ac_fn_c_compute_int ()
2686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2687 if test "$cross_compiling" = yes; then
2688 # Depending upon the size, compute the lo and hi bounds.
2689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2690 /* end confdefs.h. */
2695 static int test_array [1 - 2 * !(($2) >= 0)];
2702 if ac_fn_c_try_compile "$LINENO"; then :
2705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2706 /* end confdefs.h. */
2711 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2718 if ac_fn_c_try_compile "$LINENO"; then :
2719 ac_hi=$ac_mid; break
2721 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2722 if test $ac_lo -le $ac_mid; then
2726 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2732 /* end confdefs.h. */
2737 static int test_array [1 - 2 * !(($2) < 0)];
2744 if ac_fn_c_try_compile "$LINENO"; then :
2747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2748 /* end confdefs.h. */
2753 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2760 if ac_fn_c_try_compile "$LINENO"; then :
2761 ac_lo=$ac_mid; break
2763 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2764 if test $ac_mid -le $ac_hi; then
2768 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2778 # Binary search between lo and hi bounds.
2779 while test "x$ac_lo" != "x$ac_hi"; do
2780 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2782 /* end confdefs.h. */
2787 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2794 if ac_fn_c_try_compile "$LINENO"; then :
2797 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2807 /* end confdefs.h. */
2809 static long int longval () { return $2; }
2810 static unsigned long int ulongval () { return $2; }
2817 FILE *f = fopen ("conftest.val", "w");
2822 long int i = longval ();
2825 fprintf (f, "%ld", i);
2829 unsigned long int i = ulongval ();
2832 fprintf (f, "%lu", i);
2834 /* Do not output a trailing newline, as this causes \r\n confusion
2835 on some platforms. */
2836 return ferror (f) || fclose (f) != 0;
2842 if ac_fn_c_try_run "$LINENO"; then :
2843 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2848 conftest.$ac_objext conftest.beam conftest.$ac_ext
2852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2853 as_fn_set_status $ac_retval
2855 } # ac_fn_c_compute_int
2857 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2858 # ---------------------------------------------------------
2859 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2860 # the include files in INCLUDES and setting the cache variable VAR
2862 ac_fn_cxx_check_header_mongrel ()
2864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2865 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2867 $as_echo_n "checking for $2... " >&6; }
2868 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2869 $as_echo_n "(cached) " >&6
2872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2873 $as_echo "$ac_res" >&6; }
2875 # Is the header compilable?
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2877 $as_echo_n "checking $2 usability... " >&6; }
2878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2879 /* end confdefs.h. */
2883 if ac_fn_cxx_try_compile "$LINENO"; then :
2884 ac_header_compiler=yes
2886 ac_header_compiler=no
2888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2890 $as_echo "$ac_header_compiler" >&6; }
2892 # Is the header present?
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2894 $as_echo_n "checking $2 presence... " >&6; }
2895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2896 /* end confdefs.h. */
2899 if ac_fn_cxx_try_cpp "$LINENO"; then :
2900 ac_header_preproc=yes
2902 ac_header_preproc=no
2904 rm -f conftest.err conftest.$ac_ext
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2906 $as_echo "$ac_header_preproc" >&6; }
2908 # So? What about this header?
2909 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2912 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2914 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2918 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2920 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2922 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2924 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2926 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2928 ## ----------------------------------------- ##
2929 ## Report this to http://www.imagemagick.org ##
2930 ## ----------------------------------------- ##
2932 ) | sed "s/^/$as_me: WARNING: /" >&2
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2936 $as_echo_n "checking for $2... " >&6; }
2937 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2938 $as_echo_n "(cached) " >&6
2940 eval "$3=\$ac_header_compiler"
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2944 $as_echo "$ac_res" >&6; }
2946 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2948 } # ac_fn_cxx_check_header_mongrel
2949 cat >config.log <<_ACEOF
2950 This file contains any messages produced by compilers while
2951 running configure, to aid debugging if configure makes a mistake.
2953 It was created by ImageMagick $as_me 6.5.8, which was
2954 generated by GNU Autoconf 2.65. Invocation command line was
2966 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2967 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2968 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2969 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2970 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2972 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2973 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2975 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2976 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2977 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2978 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2979 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2980 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2981 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2989 test -z "$as_dir" && as_dir=.
2990 $as_echo "PATH: $as_dir"
3006 # Keep a trace of the command line.
3007 # Strip out --no-create and --no-recursion so they do not pile up.
3008 # Strip out --silent because we don't want to record it for future runs.
3009 # Also quote any args containing shell meta-characters.
3010 # Make two passes to allow for proper duplicate-argument suppression.
3014 ac_must_keep_next=false
3020 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3022 | -silent | --silent | --silen | --sile | --sil)
3025 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3028 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3030 as_fn_append ac_configure_args1 " '$ac_arg'"
3031 if test $ac_must_keep_next = true; then
3032 ac_must_keep_next=false # Got value, back to normal.
3035 *=* | --config-cache | -C | -disable-* | --disable-* \
3036 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3037 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3038 | -with-* | --with-* | -without-* | --without-* | --x)
3039 case "$ac_configure_args0 " in
3040 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3043 -* ) ac_must_keep_next=true ;;
3046 as_fn_append ac_configure_args " '$ac_arg'"
3051 { ac_configure_args0=; unset ac_configure_args0;}
3052 { ac_configure_args1=; unset ac_configure_args1;}
3054 # When interrupted or exit'd, cleanup temporary files, and complete
3055 # config.log. We remove comments because anyway the quotes in there
3056 # would cause problems or look ugly.
3057 # WARNING: Use '\'' to represent an apostrophe within the trap.
3058 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3059 trap 'exit_status=$?
3060 # Save into config.log some information that might help in debugging.
3065 ## ---------------- ##
3066 ## Cache variables. ##
3067 ## ---------------- ##
3070 # The following way of writing the cache mishandles newlines in values,
3072 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3073 eval ac_val=\$$ac_var
3077 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3078 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3081 _ | IFS | as_nl) ;; #(
3082 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3083 *) { eval $ac_var=; unset $ac_var;} ;;
3088 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3089 *${as_nl}ac_space=\ *)
3091 "s/'\''/'\''\\\\'\'''\''/g;
3092 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3095 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3103 ## ----------------- ##
3104 ## Output variables. ##
3105 ## ----------------- ##
3108 for ac_var in $ac_subst_vars
3110 eval ac_val=\$$ac_var
3112 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3114 $as_echo "$ac_var='\''$ac_val'\''"
3118 if test -n "$ac_subst_files"; then
3120 ## ------------------- ##
3121 ## File substitutions. ##
3122 ## ------------------- ##
3125 for ac_var in $ac_subst_files
3127 eval ac_val=\$$ac_var
3129 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3131 $as_echo "$ac_var='\''$ac_val'\''"
3136 if test -s confdefs.h; then
3146 test "$ac_signal" != 0 &&
3147 $as_echo "$as_me: caught signal $ac_signal"
3148 $as_echo "$as_me: exit $exit_status"
3150 rm -f core *.core core.conftest.* &&
3151 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3154 for ac_signal in 1 2 13 15; do
3155 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3159 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3160 rm -f -r conftest* confdefs.h
3162 $as_echo "/* confdefs.h */" > confdefs.h
3164 # Predefined preprocessor variables.
3166 cat >>confdefs.h <<_ACEOF
3167 #define PACKAGE_NAME "$PACKAGE_NAME"
3170 cat >>confdefs.h <<_ACEOF
3171 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3174 cat >>confdefs.h <<_ACEOF
3175 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3178 cat >>confdefs.h <<_ACEOF
3179 #define PACKAGE_STRING "$PACKAGE_STRING"
3182 cat >>confdefs.h <<_ACEOF
3183 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3186 cat >>confdefs.h <<_ACEOF
3187 #define PACKAGE_URL "$PACKAGE_URL"
3191 # Let the site file select an alternate cache file if it wants to.
3192 # Prefer an explicitly selected file to automatically selected ones.
3195 if test -n "$CONFIG_SITE"; then
3196 ac_site_file1=$CONFIG_SITE
3197 elif test "x$prefix" != xNONE; then
3198 ac_site_file1=$prefix/share/config.site
3199 ac_site_file2=$prefix/etc/config.site
3201 ac_site_file1=$ac_default_prefix/share/config.site
3202 ac_site_file2=$ac_default_prefix/etc/config.site
3204 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3206 test "x$ac_site_file" = xNONE && continue
3207 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3209 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3210 sed 's/^/| /' "$ac_site_file" >&5
3215 if test -r "$cache_file"; then
3216 # Some versions of bash will fail to source /dev/null (special files
3217 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3218 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3220 $as_echo "$as_me: loading cache $cache_file" >&6;}
3222 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3223 *) . "./$cache_file";;
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3228 $as_echo "$as_me: creating cache $cache_file" >&6;}
3232 as_fn_append ac_header_list " stdlib.h"
3233 as_fn_append ac_header_list " unistd.h"
3234 as_fn_append ac_header_list " sys/param.h"
3235 # Check that the precious variables saved in the cache have kept the same
3237 ac_cache_corrupted=false
3238 for ac_var in $ac_precious_vars; do
3239 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3240 eval ac_new_set=\$ac_env_${ac_var}_set
3241 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3242 eval ac_new_val=\$ac_env_${ac_var}_value
3243 case $ac_old_set,$ac_new_set in
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3246 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3247 ac_cache_corrupted=: ;;
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3250 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3251 ac_cache_corrupted=: ;;
3254 if test "x$ac_old_val" != "x$ac_new_val"; then
3255 # differences in whitespace do not lead to failure.
3256 ac_old_val_w=`echo x $ac_old_val`
3257 ac_new_val_w=`echo x $ac_new_val`
3258 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3260 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3261 ac_cache_corrupted=:
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3264 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3265 eval $ac_var=\$ac_old_val
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3268 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3270 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3273 # Pass precious variables to config.status.
3274 if test "$ac_new_set" = set; then
3276 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3277 *) ac_arg=$ac_var=$ac_new_val ;;
3279 case " $ac_configure_args " in
3280 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3281 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3285 if $ac_cache_corrupted; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3289 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3290 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3292 ## -------------------- ##
3293 ## Main body of script. ##
3294 ## -------------------- ##
3297 ac_cpp='$CPP $CPPFLAGS'
3298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3305 for ac_dir in config "$srcdir"/config; do
3306 for ac_t in install-sh install.sh shtool; do
3307 if test -f "$ac_dir/$ac_t"; then
3309 ac_install_sh="$ac_aux_dir/$ac_t -c"
3314 if test -z "$ac_aux_dir"; then
3315 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3318 # These three variables are undocumented and unsupported,
3319 # and are intended to be withdrawn in a future Autoconf release.
3320 # They can cause serious problems if a builder's source tree is in a directory
3321 # whose full name contains unusual characters.
3322 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3323 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3324 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3329 ac_config_headers="$ac_config_headers config/config.h"
3331 ac_config_commands="$ac_config_commands magick/magick-config.h"
3333 ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox 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"
3337 # Save initial user-tunable values
3340 for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3341 eval isset=\${$var+set}
3342 if test "$isset" = 'set'; then
3343 eval val=$`echo $var`
3344 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3349 CONFIGURE_ARGS="$0 ${ac_configure_args}"
3352 # Source file containing package/library versioning information.
3353 . ${srcdir}/version.sh
3355 echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3356 # Make sure we can run config.sub.
3357 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3358 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3361 $as_echo_n "checking build system type... " >&6; }
3362 if test "${ac_cv_build+set}" = set; then :
3363 $as_echo_n "(cached) " >&6
3365 ac_build_alias=$build_alias
3366 test "x$ac_build_alias" = x &&
3367 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3368 test "x$ac_build_alias" = x &&
3369 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3370 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3371 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3375 $as_echo "$ac_cv_build" >&6; }
3376 case $ac_cv_build in
3378 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3381 ac_save_IFS=$IFS; IFS='-'
3387 # Remember, the first character of IFS is used to create $*,
3388 # except with old shells:
3391 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3395 $as_echo_n "checking host system type... " >&6; }
3396 if test "${ac_cv_host+set}" = set; then :
3397 $as_echo_n "(cached) " >&6
3399 if test "x$host_alias" = x; then
3400 ac_cv_host=$ac_cv_build
3402 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3403 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3408 $as_echo "$ac_cv_host" >&6; }
3411 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3414 ac_save_IFS=$IFS; IFS='-'
3420 # Remember, the first character of IFS is used to create $*,
3421 # except with old shells:
3424 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3428 $as_echo_n "checking target system type... " >&6; }
3429 if test "${ac_cv_target+set}" = set; then :
3430 $as_echo_n "(cached) " >&6
3432 if test "x$target_alias" = x; then
3433 ac_cv_target=$ac_cv_host
3435 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3436 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3441 $as_echo "$ac_cv_target" >&6; }
3442 case $ac_cv_target in
3444 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3446 target=$ac_cv_target
3447 ac_save_IFS=$IFS; IFS='-'
3453 # Remember, the first character of IFS is used to create $*,
3454 # except with old shells:
3457 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3460 # The aliases save the names the user supplied, while $host etc.
3461 # will get canonicalized.
3462 test -n "$target_alias" &&
3463 test "$program_prefix$program_suffix$program_transform_name" = \
3465 program_prefix=${target_alias}-
3467 # Substitute library versioning
3470 # Ensure that make can run correctly
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3472 $as_echo_n "checking whether build environment is sane... " >&6; }
3475 echo timestamp > conftest.file
3476 # Reject unsafe characters in $srcdir or the absolute working directory
3477 # name. Accept space and tab only in the latter.
3481 *[\\\"\#\$\&\'\`$am_lf]*)
3482 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3485 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3486 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3489 # Do `set' in a subshell so we don't clobber the current shell's
3490 # arguments. Must try -L first in case configure is actually a
3491 # symlink; some systems play weird games with the mod time of symlinks
3492 # (eg FreeBSD returns the mod time of the symlink's containing
3495 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3496 if test "$*" = "X"; then
3498 set X `ls -t "$srcdir/configure" conftest.file`
3501 if test "$*" != "X $srcdir/configure conftest.file" \
3502 && test "$*" != "X conftest.file $srcdir/configure"; then
3504 # If neither matched, then we have a broken ls. This can happen
3505 # if, for instance, CONFIG_SHELL is bash and it inherits a
3506 # broken ls alias from the environment. This has actually
3507 # happened. Such a system could not be considered "sane".
3508 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3509 alias in your environment" "$LINENO" 5
3512 test "$2" = conftest.file
3518 as_fn_error "newly created file is older than distributed files!
3519 Check your system clock" "$LINENO" 5
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3522 $as_echo "yes" >&6; }
3524 am__api_version='1.11'
3526 # Find a good install program. We prefer a C program (faster),
3527 # so one script is as good as another. But avoid the broken or
3528 # incompatible versions:
3529 # SysV /etc/install, /usr/sbin/install
3530 # SunOS /usr/etc/install
3531 # IRIX /sbin/install
3533 # AmigaOS /C/install, which installs bootblocks on floppy discs
3534 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3535 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3536 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3537 # OS/2's system install, which has a completely different semantic
3538 # ./install, which can be erroneously created by make from ./install.sh.
3539 # Reject install programs that cannot install multiple files.
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3541 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3542 if test -z "$INSTALL"; then
3543 if test "${ac_cv_path_install+set}" = set; then :
3544 $as_echo_n "(cached) " >&6
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 test -z "$as_dir" && as_dir=.
3551 # Account for people who put trailing slashes in PATH elements.
3552 case $as_dir/ in #((
3553 ./ | .// | /[cC]/* | \
3554 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3555 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3558 # OSF1 and SCO ODT 3.0 have their own names for install.
3559 # Don't use installbsd from OSF since it installs stuff as root
3561 for ac_prog in ginstall scoinst install; do
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3564 if test $ac_prog = install &&
3565 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3566 # AIX install. It has an incompatible calling convention.
3568 elif test $ac_prog = install &&
3569 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3570 # program-specific install script used by HP pwplus--don't use.
3573 rm -rf conftest.one conftest.two conftest.dir
3574 echo one > conftest.one
3575 echo two > conftest.two
3577 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3578 test -s conftest.one && test -s conftest.two &&
3579 test -s conftest.dir/conftest.one &&
3580 test -s conftest.dir/conftest.two
3582 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3595 rm -rf conftest.one conftest.two conftest.dir
3598 if test "${ac_cv_path_install+set}" = set; then
3599 INSTALL=$ac_cv_path_install
3601 # As a last resort, use the slow shell script. Don't cache a
3602 # value for INSTALL within a source directory, because that will
3603 # break other packages using the cache if that directory is
3604 # removed, or if the value is a relative name.
3605 INSTALL=$ac_install_sh
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3609 $as_echo "$INSTALL" >&6; }
3611 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3612 # It thinks the first close brace ends the variable substitution.
3613 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3615 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3617 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3619 test "$program_prefix" != NONE &&
3620 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3621 # Use a double $ so make ignores it.
3622 test "$program_suffix" != NONE &&
3623 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3624 # Double any \ or $.
3625 # By default was `s,x,x', remove it if useless.
3626 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3627 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3629 # expand $ac_aux_dir to an absolute path
3630 am_aux_dir=`cd $ac_aux_dir && pwd`
3632 if test x"${MISSING+set}" != xset; then
3635 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3637 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3640 # Use eval to expand $SHELL
3641 if eval "$MISSING --run true"; then
3642 am_missing_run="$MISSING --run "
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3646 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3649 if test x"${install_sh}" != xset; then
3652 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3654 install_sh="\${SHELL} $am_aux_dir/install-sh"
3658 # Installed binaries are usually stripped using `strip' when the user
3659 # run `make install-strip'. However `strip' might not be the right
3660 # tool to use in cross-compilation environments, therefore Automake
3661 # will honor the `STRIP' environment variable to overrule this program.
3662 if test "$cross_compiling" != no; then
3663 if test -n "$ac_tool_prefix"; then
3664 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3665 set dummy ${ac_tool_prefix}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_STRIP+set}" = set; then :
3669 $as_echo_n "(cached) " >&6
3671 if test -n "$STRIP"; then
3672 ac_cv_prog_STRIP="$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_STRIP="${ac_tool_prefix}strip"
3682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3691 STRIP=$ac_cv_prog_STRIP
3692 if test -n "$STRIP"; then
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3694 $as_echo "$STRIP" >&6; }
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3697 $as_echo "no" >&6; }
3702 if test -z "$ac_cv_prog_STRIP"; then
3704 # Extract the first word of "strip", so it can be a program name with args.
3705 set dummy strip; ac_word=$2
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3707 $as_echo_n "checking for $ac_word... " >&6; }
3708 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3709 $as_echo_n "(cached) " >&6
3711 if test -n "$ac_ct_STRIP"; then
3712 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3718 test -z "$as_dir" && as_dir=.
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3721 ac_cv_prog_ac_ct_STRIP="strip"
3722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3732 if test -n "$ac_ct_STRIP"; then
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3734 $as_echo "$ac_ct_STRIP" >&6; }
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737 $as_echo "no" >&6; }
3740 if test "x$ac_ct_STRIP" = x; then
3743 case $cross_compiling:$ac_tool_warned in
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3747 ac_tool_warned=yes ;;
3752 STRIP="$ac_cv_prog_STRIP"
3756 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3759 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3760 if test -z "$MKDIR_P"; then
3761 if test "${ac_cv_path_mkdir+set}" = set; then :
3762 $as_echo_n "(cached) " >&6
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3768 test -z "$as_dir" && as_dir=.
3769 for ac_prog in mkdir gmkdir; do
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3772 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3773 'mkdir (GNU coreutils) '* | \
3774 'mkdir (coreutils) '* | \
3775 'mkdir (fileutils) '4.1*)
3776 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3786 test -d ./--version && rmdir ./--version
3787 if test "${ac_cv_path_mkdir+set}" = set; then
3788 MKDIR_P="$ac_cv_path_mkdir -p"
3790 # As a last resort, use the slow shell script. Don't cache a
3791 # value for MKDIR_P within a source directory, because that will
3792 # break other packages using the cache if that directory is
3793 # removed, or if the value is a relative name.
3794 MKDIR_P="$ac_install_sh -d"
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3798 $as_echo "$MKDIR_P" >&6; }
3802 [\\/$]* | ?:[\\/]*) ;;
3803 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3806 for ac_prog in gawk mawk nawk awk
3808 # Extract the first word of "$ac_prog", so it can be a program name with args.
3809 set dummy $ac_prog; ac_word=$2
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811 $as_echo_n "checking for $ac_word... " >&6; }
3812 if test "${ac_cv_prog_AWK+set}" = set; then :
3813 $as_echo_n "(cached) " >&6
3815 if test -n "$AWK"; then
3816 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 test -z "$as_dir" && as_dir=.
3823 for ac_exec_ext in '' $ac_executable_extensions; do
3824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3825 ac_cv_prog_AWK="$ac_prog"
3826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3836 if test -n "$AWK"; then
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3838 $as_echo "$AWK" >&6; }
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841 $as_echo "no" >&6; }
3845 test -n "$AWK" && break
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3849 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3851 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3852 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3853 $as_echo_n "(cached) " >&6
3855 cat >conftest.make <<\_ACEOF
3858 @echo '@@@%%%=$(MAKE)=@@@%%%'
3860 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3861 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3863 eval ac_cv_prog_make_${ac_make}_set=yes;;
3865 eval ac_cv_prog_make_${ac_make}_set=no;;
3869 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3871 $as_echo "yes" >&6; }
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875 $as_echo "no" >&6; }
3876 SET_MAKE="MAKE=${MAKE-make}"
3879 rm -rf .tst 2>/dev/null
3880 mkdir .tst 2>/dev/null
3881 if test -d .tst; then
3886 rmdir .tst 2>/dev/null
3888 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3889 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3890 # is not polluted with repeated "-I."
3891 am__isrc=' -I$(srcdir)'
3892 # test to see if srcdir already configured
3893 if test -f $srcdir/config.status; then
3894 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3898 # test whether we have cygpath
3899 if test -z "$CYGPATH_W"; then
3900 if (cygpath --version) >/dev/null 2>/dev/null; then
3901 CYGPATH_W='cygpath -w'
3908 # Define the identity of the package.
3909 PACKAGE=$PACKAGE_NAME
3910 VERSION="${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3913 # Some tools Automake needs.
3915 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3918 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3921 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3924 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3927 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3929 # We need awk for the "check" target. The system "awk" is bad on
3931 # Always define AMTAR for backward compatibility.
3933 AMTAR=${AMTAR-"${am_missing_run}tar"}
3935 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3942 # Enable support for silent build rules
3943 # Check whether --enable-silent-rules was given.
3944 if test "${enable_silent_rules+set}" = set; then :
3945 enableval=$enable_silent_rules;
3948 case $enable_silent_rules in
3949 yes) AM_DEFAULT_VERBOSITY=0;;
3950 no) AM_DEFAULT_VERBOSITY=1;;
3951 *) AM_DEFAULT_VERBOSITY=0;;
3956 MAGICK_LIB_VERSION="0x"
3957 if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3958 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3960 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3961 if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3962 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3964 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3965 if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3966 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3968 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3971 # Definition used to define MagickLibVersionText in version.h
3972 MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3975 # Definition used to define MagickLibVersionNumber in version.h
3976 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3979 # Regenerate config.status if ChangeLog or version.sh is updated.
3980 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3986 MAGICK_CPPFLAGS=$CPPFLAGS_USER
3987 MAGICK_PCFLAGS=$CPPFLAGS_USER
3992 # Evaluate shell variable equivalents to Makefile directory variables
3994 if test "x$prefix" = xNONE; then
3995 prefix=$ac_default_prefix
3997 # Let make expand exec_prefix.
3998 if test "x$exec_prefix" = xNONE; then
3999 exec_prefix='${prefix}'
4003 eval "eval PREFIX_DIR=${prefix}"
4005 eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4007 eval "eval BIN_DIR=$bindir"
4009 eval "eval SBIN_DIR=$sbindir"
4011 eval "eval LIBEXEC_DIR=$libexecdir"
4013 eval "eval DATA_DIR=$datadir"
4015 eval "eval SYSCONF_DIR=$sysconfdir"
4017 eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4019 eval "eval LOCALSTATE_DIR=$localstatedir"
4021 eval "eval LIB_DIR=$libdir"
4023 eval "eval INCLUDE_DIR=$includedir"
4025 eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4027 eval "eval INFO_DIR=$infodir"
4029 eval "eval MAN_DIR=$mandir"
4032 # Get full paths to source and build directories
4033 srcdirfull="`cd $srcdir && pwd`"
4037 # Compute variables useful for running uninstalled software.
4039 MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4040 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4041 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4042 MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4044 case "${build_os}" in
4046 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4047 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4048 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4049 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4053 case "${host_os}" in
4064 # Check for programs
4066 ac_cpp='$CPP $CPPFLAGS'
4067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070 if test -n "$ac_tool_prefix"; then
4071 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4072 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4074 $as_echo_n "checking for $ac_word... " >&6; }
4075 if test "${ac_cv_prog_CC+set}" = set; then :
4076 $as_echo_n "(cached) " >&6
4078 if test -n "$CC"; then
4079 ac_cv_prog_CC="$CC" # Let the user override the test.
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 test -z "$as_dir" && as_dir=.
4086 for ac_exec_ext in '' $ac_executable_extensions; do
4087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4088 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 if test -n "$CC"; then
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4101 $as_echo "$CC" >&6; }
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4104 $as_echo "no" >&6; }
4109 if test -z "$ac_cv_prog_CC"; then
4111 # Extract the first word of "gcc", so it can be a program name with args.
4112 set dummy gcc; ac_word=$2
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4114 $as_echo_n "checking for $ac_word... " >&6; }
4115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4116 $as_echo_n "(cached) " >&6
4118 if test -n "$ac_ct_CC"; then
4119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4125 test -z "$as_dir" && as_dir=.
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4128 ac_cv_prog_ac_ct_CC="gcc"
4129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4139 if test -n "$ac_ct_CC"; then
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4141 $as_echo "$ac_ct_CC" >&6; }
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144 $as_echo "no" >&6; }
4147 if test "x$ac_ct_CC" = x; then
4150 case $cross_compiling:$ac_tool_warned in
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4154 ac_tool_warned=yes ;;
4162 if test -z "$CC"; then
4163 if test -n "$ac_tool_prefix"; then
4164 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4165 set dummy ${ac_tool_prefix}cc; ac_word=$2
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167 $as_echo_n "checking for $ac_word... " >&6; }
4168 if test "${ac_cv_prog_CC+set}" = set; then :
4169 $as_echo_n "(cached) " >&6
4171 if test -n "$CC"; then
4172 ac_cv_prog_CC="$CC" # Let the user override the test.
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178 test -z "$as_dir" && as_dir=.
4179 for ac_exec_ext in '' $ac_executable_extensions; do
4180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4181 ac_cv_prog_CC="${ac_tool_prefix}cc"
4182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4192 if test -n "$CC"; then
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4194 $as_echo "$CC" >&6; }
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197 $as_echo "no" >&6; }
4203 if test -z "$CC"; then
4204 # Extract the first word of "cc", so it can be a program name with args.
4205 set dummy cc; ac_word=$2
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4207 $as_echo_n "checking for $ac_word... " >&6; }
4208 if test "${ac_cv_prog_CC+set}" = set; then :
4209 $as_echo_n "(cached) " >&6
4211 if test -n "$CC"; then
4212 ac_cv_prog_CC="$CC" # Let the user override the test.
4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219 test -z "$as_dir" && as_dir=.
4220 for ac_exec_ext in '' $ac_executable_extensions; do
4221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4222 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4223 ac_prog_rejected=yes
4227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234 if test $ac_prog_rejected = yes; then
4235 # We found a bogon in the path, so make sure we never use it.
4236 set dummy $ac_cv_prog_CC
4238 if test $# != 0; then
4239 # We chose a different compiler from the bogus one.
4240 # However, it has the same basename, so the bogon will be chosen
4241 # first if we set CC to just the basename; use the full file name.
4243 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4249 if test -n "$CC"; then
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4251 $as_echo "$CC" >&6; }
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4254 $as_echo "no" >&6; }
4259 if test -z "$CC"; then
4260 if test -n "$ac_tool_prefix"; then
4261 for ac_prog in cl.exe
4263 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4264 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4266 $as_echo_n "checking for $ac_word... " >&6; }
4267 if test "${ac_cv_prog_CC+set}" = set; then :
4268 $as_echo_n "(cached) " >&6
4270 if test -n "$CC"; then
4271 ac_cv_prog_CC="$CC" # Let the user override the test.
4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 test -z "$as_dir" && as_dir=.
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4280 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4291 if test -n "$CC"; then
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4293 $as_echo "$CC" >&6; }
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4296 $as_echo "no" >&6; }
4300 test -n "$CC" && break
4303 if test -z "$CC"; then
4305 for ac_prog in cl.exe
4307 # Extract the first word of "$ac_prog", so it can be a program name with args.
4308 set dummy $ac_prog; ac_word=$2
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310 $as_echo_n "checking for $ac_word... " >&6; }
4311 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4312 $as_echo_n "(cached) " >&6
4314 if test -n "$ac_ct_CC"; then
4315 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4324 ac_cv_prog_ac_ct_CC="$ac_prog"
4325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4335 if test -n "$ac_ct_CC"; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4337 $as_echo "$ac_ct_CC" >&6; }
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340 $as_echo "no" >&6; }
4344 test -n "$ac_ct_CC" && break
4347 if test "x$ac_ct_CC" = x; then
4350 case $cross_compiling:$ac_tool_warned in
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4353 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4354 ac_tool_warned=yes ;;
4363 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4364 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4365 as_fn_error "no acceptable C compiler found in \$PATH
4366 See \`config.log' for more details." "$LINENO" 5; }
4368 # Provide some information about the compiler.
4369 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4372 for ac_option in --version -v -V -qversion; do
4373 { { ac_try="$ac_compiler $ac_option >&5"
4375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376 *) ac_try_echo=$ac_try;;
4378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4379 $as_echo "$ac_try_echo"; } >&5
4380 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4382 if test -s conftest.err; then
4384 ... rest of stderr output deleted ...
4385 10q' conftest.err >conftest.er1
4386 cat conftest.er1 >&5
4388 rm -f conftest.er1 conftest.err
4389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4390 test $ac_status = 0; }
4393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4394 /* end confdefs.h. */
4404 ac_clean_files_save=$ac_clean_files
4405 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4406 # Try to create an executable without -o first, disregard a.out.
4407 # It will help us diagnose broken compilers, and finding out an intuition
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4410 $as_echo_n "checking whether the C compiler works... " >&6; }
4411 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4413 # The possible output files:
4414 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4417 for ac_file in $ac_files
4420 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4421 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4426 if { { ac_try="$ac_link_default"
4428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4429 *) ac_try_echo=$ac_try;;
4431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4432 $as_echo "$ac_try_echo"; } >&5
4433 (eval "$ac_link_default") 2>&5
4435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4436 test $ac_status = 0; }; then :
4437 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4438 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4439 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4440 # so that the user can short-circuit this test for compilers unknown to
4442 for ac_file in $ac_files ''
4444 test -f "$ac_file" || continue
4446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4449 # We found the default executable, but exeext='' is most
4453 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4455 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4457 # We set ac_cv_exeext here because the later test for it is not
4458 # safe: cross compilers may not add the suffix if given an `-o'
4459 # argument, so we may need to know it at that point already.
4460 # Even if this section looks crufty: it has the advantage of
4467 test "$ac_cv_exeext" = no && ac_cv_exeext=
4472 if test -z "$ac_file"; then :
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 $as_echo "no" >&6; }
4475 $as_echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.$ac_ext >&5
4478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4480 { as_fn_set_status 77
4481 as_fn_error "C compiler cannot create executables
4482 See \`config.log' for more details." "$LINENO" 5; }; }
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4485 $as_echo "yes" >&6; }
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4488 $as_echo_n "checking for C compiler default output file name... " >&6; }
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4490 $as_echo "$ac_file" >&6; }
4491 ac_exeext=$ac_cv_exeext
4493 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4494 ac_clean_files=$ac_clean_files_save
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4496 $as_echo_n "checking for suffix of executables... " >&6; }
4497 if { { ac_try="$ac_link"
4499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503 $as_echo "$ac_try_echo"; } >&5
4504 (eval "$ac_link") 2>&5
4506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4507 test $ac_status = 0; }; then :
4508 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4509 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4510 # work properly (i.e., refer to `conftest.exe'), while it won't with
4512 for ac_file in conftest.exe conftest conftest.*; do
4513 test -f "$ac_file" || continue
4515 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4516 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4524 as_fn_error "cannot compute suffix of executables: cannot compile and link
4525 See \`config.log' for more details." "$LINENO" 5; }
4527 rm -f conftest conftest$ac_cv_exeext
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4529 $as_echo "$ac_cv_exeext" >&6; }
4531 rm -f conftest.$ac_ext
4532 EXEEXT=$ac_cv_exeext
4534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4535 /* end confdefs.h. */
4540 FILE *f = fopen ("conftest.out", "w");
4541 return ferror (f) || fclose (f) != 0;
4547 ac_clean_files="$ac_clean_files conftest.out"
4548 # Check that the compiler produces executables we can run. If not, either
4549 # the compiler is broken, or we cross compile.
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4551 $as_echo_n "checking whether we are cross compiling... " >&6; }
4552 if test "$cross_compiling" != yes; then
4553 { { ac_try="$ac_link"
4555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4556 *) ac_try_echo=$ac_try;;
4558 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4559 $as_echo "$ac_try_echo"; } >&5
4560 (eval "$ac_link") 2>&5
4562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4563 test $ac_status = 0; }
4564 if { ac_try='./conftest$ac_cv_exeext'
4565 { { case "(($ac_try" in
4566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4567 *) ac_try_echo=$ac_try;;
4569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4570 $as_echo "$ac_try_echo"; } >&5
4571 (eval "$ac_try") 2>&5
4573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4574 test $ac_status = 0; }; }; then
4577 if test "$cross_compiling" = maybe; then
4580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4582 as_fn_error "cannot run C compiled programs.
4583 If you meant to cross compile, use \`--host'.
4584 See \`config.log' for more details." "$LINENO" 5; }
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4589 $as_echo "$cross_compiling" >&6; }
4591 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4592 ac_clean_files=$ac_clean_files_save
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4594 $as_echo_n "checking for suffix of object files... " >&6; }
4595 if test "${ac_cv_objext+set}" = set; then :
4596 $as_echo_n "(cached) " >&6
4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4609 rm -f conftest.o conftest.obj
4610 if { { ac_try="$ac_compile"
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4616 $as_echo "$ac_try_echo"; } >&5
4617 (eval "$ac_compile") 2>&5
4619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4620 test $ac_status = 0; }; then :
4621 for ac_file in conftest.o conftest.obj conftest.*; do
4622 test -f "$ac_file" || continue;
4624 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4625 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4630 $as_echo "$as_me: failed program was:" >&5
4631 sed 's/^/| /' conftest.$ac_ext >&5
4633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4635 as_fn_error "cannot compute suffix of object files: cannot compile
4636 See \`config.log' for more details." "$LINENO" 5; }
4638 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4641 $as_echo "$ac_cv_objext" >&6; }
4642 OBJEXT=$ac_cv_objext
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4645 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4646 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4647 $as_echo_n "(cached) " >&6
4649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4650 /* end confdefs.h. */
4663 if ac_fn_c_try_compile "$LINENO"; then :
4668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4669 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4673 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4674 if test $ac_compiler_gnu = yes; then
4679 ac_test_CFLAGS=${CFLAGS+set}
4680 ac_save_CFLAGS=$CFLAGS
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4682 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4683 if test "${ac_cv_prog_cc_g+set}" = set; then :
4684 $as_echo_n "(cached) " >&6
4686 ac_save_c_werror_flag=$ac_c_werror_flag
4687 ac_c_werror_flag=yes
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691 /* end confdefs.h. */
4701 if ac_fn_c_try_compile "$LINENO"; then :
4705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4706 /* end confdefs.h. */
4716 if ac_fn_c_try_compile "$LINENO"; then :
4719 ac_c_werror_flag=$ac_save_c_werror_flag
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4732 if ac_fn_c_try_compile "$LINENO"; then :
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740 ac_c_werror_flag=$ac_save_c_werror_flag
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4743 $as_echo "$ac_cv_prog_cc_g" >&6; }
4744 if test "$ac_test_CFLAGS" = set; then
4745 CFLAGS=$ac_save_CFLAGS
4746 elif test $ac_cv_prog_cc_g = yes; then
4747 if test "$GCC" = yes; then
4753 if test "$GCC" = yes; then
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4760 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4761 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4762 $as_echo_n "(cached) " >&6
4764 ac_cv_prog_cc_c89=no
4766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h. */
4770 #include <sys/types.h>
4771 #include <sys/stat.h>
4772 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4773 struct buf { int x; };
4774 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4775 static char *e (p, i)
4781 static char *f (char * (*g) (char **, int), char **p, ...)
4786 s = g (p, va_arg (v,int));
4791 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4792 function prototypes and stuff, but not '\xHH' hex character constants.
4793 These don't provoke an error unfortunately, instead are silently treated
4794 as 'x'. The following induces an error, until -std is added to get
4795 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4796 array size at least. It's necessary to write '\x00'==0 to get something
4797 that's true only with -std. */
4798 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4800 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4801 inside strings and character constants. */
4803 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4805 int test (int i, double x);
4806 struct s1 {int (*f) (int a);};
4807 struct s2 {int (*f) (double a);};
4808 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4814 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4819 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4820 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4822 CC="$ac_save_CC $ac_arg"
4823 if ac_fn_c_try_compile "$LINENO"; then :
4824 ac_cv_prog_cc_c89=$ac_arg
4826 rm -f core conftest.err conftest.$ac_objext
4827 test "x$ac_cv_prog_cc_c89" != "xno" && break
4829 rm -f conftest.$ac_ext
4834 case "x$ac_cv_prog_cc_c89" in
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4837 $as_echo "none needed" >&6; } ;;
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4840 $as_echo "unsupported" >&6; } ;;
4842 CC="$CC $ac_cv_prog_cc_c89"
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4844 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4846 if test "x$ac_cv_prog_cc_c89" != xno; then :
4851 ac_cpp='$CPP $CPPFLAGS'
4852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4855 DEPDIR="${am__leading_dot}deps"
4857 ac_config_commands="$ac_config_commands depfiles"
4860 am_make=${MAKE-make}
4861 cat > confinc << 'END'
4863 @echo this is the am__doit target
4866 # If we don't find an include directive, just comment out the code.
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4868 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4872 # First try GNU make style include.
4873 echo "include confinc" > confmf
4874 # Ignore all kinds of additional output from `make'.
4875 case `$am_make -s -f confmf 2> /dev/null` in #(
4876 *the\ am__doit\ target*)
4882 # Now try BSD make style include.
4883 if test "$am__include" = "#"; then
4884 echo '.include "confinc"' > confmf
4885 case `$am_make -s -f confmf 2> /dev/null` in #(
4886 *the\ am__doit\ target*)
4887 am__include=.include
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4896 $as_echo "$_am_result" >&6; }
4897 rm -f confinc confmf
4899 # Check whether --enable-dependency-tracking was given.
4900 if test "${enable_dependency_tracking+set}" = set; then :
4901 enableval=$enable_dependency_tracking;
4904 if test "x$enable_dependency_tracking" != xno; then
4905 am_depcomp="$ac_aux_dir/depcomp"
4908 if test "x$enable_dependency_tracking" != xno; then
4918 depcc="$CC" am_compiler_list=
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4921 $as_echo_n "checking dependency style of $depcc... " >&6; }
4922 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4923 $as_echo_n "(cached) " >&6
4925 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4926 # We make a subdir and do the tests there. Otherwise we can end up
4927 # making bogus files that we don't know about and never remove. For
4928 # instance it was reported that on HP-UX the gcc test will end up
4929 # making a dummy file named `D' -- because `-MD' means `put the output
4932 # Copy depcomp to subdir because otherwise we won't find it if we're
4933 # using a relative directory.
4934 cp "$am_depcomp" conftest.dir
4936 # We will build objects and dependencies in a subdirectory because
4937 # it helps to detect inapplicable dependency modes. For instance
4938 # both Tru64's cc and ICC support -MD to output dependencies as a
4939 # side effect of compilation, but ICC will put the dependencies in
4940 # the current directory while Tru64 will put them in the object
4944 am_cv_CC_dependencies_compiler_type=none
4945 if test "$am_compiler_list" = ""; then
4946 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4949 case " $depcc " in #(
4950 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4953 for depmode in $am_compiler_list; do
4954 # Setup a source with many dependencies, because some compilers
4955 # like to wrap large dependency lists on column 80 (with \), and
4956 # we should not choose a depcomp mode which is confused by this.
4958 # We need to recreate these files for each test, as the compiler may
4959 # overwrite some of them when testing with obscure command lines.
4960 # This happens at least with the AIX C compiler.
4962 for i in 1 2 3 4 5 6; do
4963 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4964 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4965 # Solaris 8's {/usr,}/bin/sh.
4966 touch sub/conftst$i.h
4968 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4970 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4971 # mode. It turns out that the SunPro C++ compiler does not properly
4972 # handle `-M -o', and we need to detect this. Also, some Intel
4973 # versions had trouble with output in subdirs
4974 am__obj=sub/conftest.${OBJEXT-o}
4975 am__minus_obj="-o $am__obj"
4978 # This depmode causes a compiler race in universal mode.
4979 test "$am__universal" = false || continue
4982 # after this tag, mechanisms are not by side-effect, so they'll
4983 # only be used when explicitly requested
4984 if test "x$enable_dependency_tracking" = xyes; then
4990 msvisualcpp | msvcmsys)
4991 # This compiler won't grok `-c -o', but also, the minuso test has
4992 # not run yet. These depmodes are late enough in the game, and
4993 # so weak that their functioning should not be impacted.
4994 am__obj=conftest.${OBJEXT-o}
4999 if depmode=$depmode \
5000 source=sub/conftest.c object=$am__obj \
5001 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5002 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5003 >/dev/null 2>conftest.err &&
5004 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5005 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5006 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5007 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5008 # icc doesn't choke on unknown options, it will just issue warnings
5009 # or remarks (even with -Werror). So we grep stderr for any message
5010 # that says an option was ignored or not supported.
5011 # When given -MP, icc 7.0 and 7.1 complain thusly:
5012 # icc: Command line warning: ignoring option '-M'; no argument required
5013 # The diagnosis changed in icc 8.0:
5014 # icc: Command line remark: option '-MP' not supported
5015 if (grep 'ignoring option' conftest.err ||
5016 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5017 am_cv_CC_dependencies_compiler_type=$depmode
5026 am_cv_CC_dependencies_compiler_type=none
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5031 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5032 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5035 test "x$enable_dependency_tracking" != xno \
5036 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5038 am__fastdepCC_FALSE='#'
5040 am__fastdepCC_TRUE='#'
5041 am__fastdepCC_FALSE=
5046 ac_cpp='$CXXCPP $CPPFLAGS'
5047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5050 if test -z "$CXX"; then
5051 if test -n "$CCC"; then
5054 if test -n "$ac_tool_prefix"; then
5055 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5057 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5058 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060 $as_echo_n "checking for $ac_word... " >&6; }
5061 if test "${ac_cv_prog_CXX+set}" = set; then :
5062 $as_echo_n "(cached) " >&6
5064 if test -n "$CXX"; then
5065 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5074 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5085 if test -n "$CXX"; then
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5087 $as_echo "$CXX" >&6; }
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090 $as_echo "no" >&6; }
5094 test -n "$CXX" && break
5097 if test -z "$CXX"; then
5099 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5101 # Extract the first word of "$ac_prog", so it can be a program name with args.
5102 set dummy $ac_prog; ac_word=$2
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5104 $as_echo_n "checking for $ac_word... " >&6; }
5105 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5106 $as_echo_n "(cached) " >&6
5108 if test -n "$ac_ct_CXX"; then
5109 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 test -z "$as_dir" && as_dir=.
5116 for ac_exec_ext in '' $ac_executable_extensions; do
5117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5118 ac_cv_prog_ac_ct_CXX="$ac_prog"
5119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5129 if test -n "$ac_ct_CXX"; then
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5131 $as_echo "$ac_ct_CXX" >&6; }
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5134 $as_echo "no" >&6; }
5138 test -n "$ac_ct_CXX" && break
5141 if test "x$ac_ct_CXX" = x; then
5144 case $cross_compiling:$ac_tool_warned in
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5148 ac_tool_warned=yes ;;
5156 # Provide some information about the compiler.
5157 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5160 for ac_option in --version -v -V -qversion; do
5161 { { ac_try="$ac_compiler $ac_option >&5"
5163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5164 *) ac_try_echo=$ac_try;;
5166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5167 $as_echo "$ac_try_echo"; } >&5
5168 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5170 if test -s conftest.err; then
5172 ... rest of stderr output deleted ...
5173 10q' conftest.err >conftest.er1
5174 cat conftest.er1 >&5
5176 rm -f conftest.er1 conftest.err
5177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5178 test $ac_status = 0; }
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5182 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5183 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5184 $as_echo_n "(cached) " >&6
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187 /* end confdefs.h. */
5200 if ac_fn_cxx_try_compile "$LINENO"; then :
5205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5206 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5210 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5211 if test $ac_compiler_gnu = yes; then
5216 ac_test_CXXFLAGS=${CXXFLAGS+set}
5217 ac_save_CXXFLAGS=$CXXFLAGS
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5219 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5220 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5221 $as_echo_n "(cached) " >&6
5223 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5224 ac_cxx_werror_flag=yes
5227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228 /* end confdefs.h. */
5238 if ac_fn_cxx_try_compile "$LINENO"; then :
5239 ac_cv_prog_cxx_g=yes
5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5253 if ac_fn_cxx_try_compile "$LINENO"; then :
5256 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5269 if ac_fn_cxx_try_compile "$LINENO"; then :
5270 ac_cv_prog_cxx_g=yes
5272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5277 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5280 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5281 if test "$ac_test_CXXFLAGS" = set; then
5282 CXXFLAGS=$ac_save_CXXFLAGS
5283 elif test $ac_cv_prog_cxx_g = yes; then
5284 if test "$GXX" = yes; then
5290 if test "$GXX" = yes; then
5297 ac_cpp='$CPP $CPPFLAGS'
5298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5302 depcc="$CXX" am_compiler_list=
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5305 $as_echo_n "checking dependency style of $depcc... " >&6; }
5306 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5307 $as_echo_n "(cached) " >&6
5309 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5310 # We make a subdir and do the tests there. Otherwise we can end up
5311 # making bogus files that we don't know about and never remove. For
5312 # instance it was reported that on HP-UX the gcc test will end up
5313 # making a dummy file named `D' -- because `-MD' means `put the output
5316 # Copy depcomp to subdir because otherwise we won't find it if we're
5317 # using a relative directory.
5318 cp "$am_depcomp" conftest.dir
5320 # We will build objects and dependencies in a subdirectory because
5321 # it helps to detect inapplicable dependency modes. For instance
5322 # both Tru64's cc and ICC support -MD to output dependencies as a
5323 # side effect of compilation, but ICC will put the dependencies in
5324 # the current directory while Tru64 will put them in the object
5328 am_cv_CXX_dependencies_compiler_type=none
5329 if test "$am_compiler_list" = ""; then
5330 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5333 case " $depcc " in #(
5334 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5337 for depmode in $am_compiler_list; do
5338 # Setup a source with many dependencies, because some compilers
5339 # like to wrap large dependency lists on column 80 (with \), and
5340 # we should not choose a depcomp mode which is confused by this.
5342 # We need to recreate these files for each test, as the compiler may
5343 # overwrite some of them when testing with obscure command lines.
5344 # This happens at least with the AIX C compiler.
5346 for i in 1 2 3 4 5 6; do
5347 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5348 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5349 # Solaris 8's {/usr,}/bin/sh.
5350 touch sub/conftst$i.h
5352 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5354 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5355 # mode. It turns out that the SunPro C++ compiler does not properly
5356 # handle `-M -o', and we need to detect this. Also, some Intel
5357 # versions had trouble with output in subdirs
5358 am__obj=sub/conftest.${OBJEXT-o}
5359 am__minus_obj="-o $am__obj"
5362 # This depmode causes a compiler race in universal mode.
5363 test "$am__universal" = false || continue
5366 # after this tag, mechanisms are not by side-effect, so they'll
5367 # only be used when explicitly requested
5368 if test "x$enable_dependency_tracking" = xyes; then
5374 msvisualcpp | msvcmsys)
5375 # This compiler won't grok `-c -o', but also, the minuso test has
5376 # not run yet. These depmodes are late enough in the game, and
5377 # so weak that their functioning should not be impacted.
5378 am__obj=conftest.${OBJEXT-o}
5383 if depmode=$depmode \
5384 source=sub/conftest.c object=$am__obj \
5385 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5386 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5387 >/dev/null 2>conftest.err &&
5388 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5389 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5390 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5391 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5392 # icc doesn't choke on unknown options, it will just issue warnings
5393 # or remarks (even with -Werror). So we grep stderr for any message
5394 # that says an option was ignored or not supported.
5395 # When given -MP, icc 7.0 and 7.1 complain thusly:
5396 # icc: Command line warning: ignoring option '-M'; no argument required
5397 # The diagnosis changed in icc 8.0:
5398 # icc: Command line remark: option '-MP' not supported
5399 if (grep 'ignoring option' conftest.err ||
5400 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5401 am_cv_CXX_dependencies_compiler_type=$depmode
5410 am_cv_CXX_dependencies_compiler_type=none
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5415 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5416 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5419 test "x$enable_dependency_tracking" != xno \
5420 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5421 am__fastdepCXX_TRUE=
5422 am__fastdepCXX_FALSE='#'
5424 am__fastdepCXX_TRUE='#'
5425 am__fastdepCXX_FALSE=
5429 case $ac_cv_prog_cc_stdc in #(
5431 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
5434 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5435 if test "${ac_cv_prog_cc_c99+set}" = set; then :
5436 $as_echo_n "(cached) " >&6
5438 ac_cv_prog_cc_c99=no
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5443 #include <stdbool.h>
5448 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5449 #define debug(...) fprintf (stderr, __VA_ARGS__)
5450 #define showlist(...) puts (#__VA_ARGS__)
5451 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5453 test_varargs_macros (void)
5458 debug ("X = %d\n", x);
5459 showlist (The first, second, and third items.);
5460 report (x>y, "x is %d but y is %d", x, y);
5463 // Check long long types.
5464 #define BIG64 18446744073709551615ull
5465 #define BIG32 4294967295ul
5466 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5468 your preprocessor is broken;
5472 your preprocessor is broken;
5474 static long long int bignum = -9223372036854775807LL;
5475 static unsigned long long int ubignum = BIG64;
5477 struct incomplete_array
5485 const wchar_t *name;
5489 typedef const char *ccp;
5492 test_restrict (ccp restrict text)
5494 // See if C++-style comments work.
5495 // Iterate through items via the restricted pointer.
5496 // Also check for declarations in for loops.
5497 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5502 // Check varargs and va_copy.
5504 test_varargs (const char *format, ...)
5507 va_start (args, format);
5509 va_copy (args_copy, args);
5520 str = va_arg (args_copy, const char *);
5523 number = va_arg (args_copy, int);
5526 fnumber = va_arg (args_copy, double);
5541 _Bool success = false;
5544 if (test_restrict ("String literal") == 0)
5546 char *restrict newvar = "Another string";
5549 test_varargs ("s, d' f .", "string", 65, 34.234);
5550 test_varargs_macros ();
5552 // Check flexible array members.
5553 struct incomplete_array *ia =
5554 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5556 for (int i = 0; i < ia->datasize; ++i)
5557 ia->data[i] = i * 1.234;
5559 // Check named initializers.
5560 struct named_init ni = {
5562 .name = L"Test wide string",
5563 .average = 543.34343,
5568 int dynamic_array[ni.number];
5569 dynamic_array[ni.number - 1] = 543;
5571 // work around unused variable warnings
5572 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5573 || dynamic_array[ni.number - 1] != 543);
5579 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5581 CC="$ac_save_CC $ac_arg"
5582 if ac_fn_c_try_compile "$LINENO"; then :
5583 ac_cv_prog_cc_c99=$ac_arg
5585 rm -f core conftest.err conftest.$ac_objext
5586 test "x$ac_cv_prog_cc_c99" != "xno" && break
5588 rm -f conftest.$ac_ext
5593 case "x$ac_cv_prog_cc_c99" in
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5596 $as_echo "none needed" >&6; } ;;
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5599 $as_echo "unsupported" >&6; } ;;
5601 CC="$CC $ac_cv_prog_cc_c99"
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5603 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5605 if test "x$ac_cv_prog_cc_c99" != xno; then :
5606 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5609 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5610 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5611 $as_echo_n "(cached) " >&6
5613 ac_cv_prog_cc_c89=no
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5619 #include <sys/types.h>
5620 #include <sys/stat.h>
5621 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5622 struct buf { int x; };
5623 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5624 static char *e (p, i)
5630 static char *f (char * (*g) (char **, int), char **p, ...)
5635 s = g (p, va_arg (v,int));
5640 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5641 function prototypes and stuff, but not '\xHH' hex character constants.
5642 These don't provoke an error unfortunately, instead are silently treated
5643 as 'x'. The following induces an error, until -std is added to get
5644 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5645 array size at least. It's necessary to write '\x00'==0 to get something
5646 that's true only with -std. */
5647 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5649 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5650 inside strings and character constants. */
5652 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5654 int test (int i, double x);
5655 struct s1 {int (*f) (int a);};
5656 struct s2 {int (*f) (double a);};
5657 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5663 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5668 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5669 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5671 CC="$ac_save_CC $ac_arg"
5672 if ac_fn_c_try_compile "$LINENO"; then :
5673 ac_cv_prog_cc_c89=$ac_arg
5675 rm -f core conftest.err conftest.$ac_objext
5676 test "x$ac_cv_prog_cc_c89" != "xno" && break
5678 rm -f conftest.$ac_ext
5683 case "x$ac_cv_prog_cc_c89" in
5685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5686 $as_echo "none needed" >&6; } ;;
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5689 $as_echo "unsupported" >&6; } ;;
5691 CC="$CC $ac_cv_prog_cc_c89"
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5693 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5695 if test "x$ac_cv_prog_cc_c89" != xno; then :
5696 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5698 ac_cv_prog_cc_stdc=no
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
5705 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
5706 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
5707 $as_echo_n "(cached) " >&6
5710 case $ac_cv_prog_cc_stdc in #(
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5713 $as_echo "unsupported" >&6; } ;; #(
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5716 $as_echo "none needed" >&6; } ;; #(
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
5719 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
5723 ac_cpp='$CPP $CPPFLAGS'
5724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5728 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5729 # On Suns, sometimes $CPP names a directory.
5730 if test -n "$CPP" && test -d "$CPP"; then
5733 if test -z "$CPP"; then
5734 if test "${ac_cv_prog_CPP+set}" = set; then :
5735 $as_echo_n "(cached) " >&6
5737 # Double quotes because CPP needs to be expanded
5738 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5741 for ac_c_preproc_warn_flag in '' yes
5743 # Use a header file that comes with gcc, so configuring glibc
5744 # with a fresh cross-compiler works.
5745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5746 # <limits.h> exists even on freestanding compilers.
5747 # On the NeXT, cc -E runs the code through the compiler's parser,
5748 # not just through cpp. "Syntax error" is here to catch this case.
5749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5750 /* end confdefs.h. */
5752 # include <limits.h>
5754 # include <assert.h>
5758 if ac_fn_c_try_cpp "$LINENO"; then :
5761 # Broken: fails on valid input.
5764 rm -f conftest.err conftest.$ac_ext
5766 # OK, works on sane cases. Now check whether nonexistent headers
5767 # can be detected and how.
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770 #include <ac_nonexistent.h>
5772 if ac_fn_c_try_cpp "$LINENO"; then :
5773 # Broken: success on invalid input.
5776 # Passes both tests.
5780 rm -f conftest.err conftest.$ac_ext
5783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5784 rm -f conftest.err conftest.$ac_ext
5785 if $ac_preproc_ok; then :
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5798 $as_echo "$CPP" >&6; }
5800 for ac_c_preproc_warn_flag in '' yes
5802 # Use a header file that comes with gcc, so configuring glibc
5803 # with a fresh cross-compiler works.
5804 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5805 # <limits.h> exists even on freestanding compilers.
5806 # On the NeXT, cc -E runs the code through the compiler's parser,
5807 # not just through cpp. "Syntax error" is here to catch this case.
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809 /* end confdefs.h. */
5811 # include <limits.h>
5813 # include <assert.h>
5817 if ac_fn_c_try_cpp "$LINENO"; then :
5820 # Broken: fails on valid input.
5823 rm -f conftest.err conftest.$ac_ext
5825 # OK, works on sane cases. Now check whether nonexistent headers
5826 # can be detected and how.
5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5829 #include <ac_nonexistent.h>
5831 if ac_fn_c_try_cpp "$LINENO"; then :
5832 # Broken: success on invalid input.
5835 # Passes both tests.
5839 rm -f conftest.err conftest.$ac_ext
5842 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5843 rm -f conftest.err conftest.$ac_ext
5844 if $ac_preproc_ok; then :
5847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5849 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5850 See \`config.log' for more details." "$LINENO" 5; }
5854 ac_cpp='$CPP $CPPFLAGS'
5855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5860 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5861 if test "${ac_cv_path_SED+set}" = set; then :
5862 $as_echo_n "(cached) " >&6
5864 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5865 for ac_i in 1 2 3 4 5 6 7; do
5866 ac_script="$ac_script$as_nl$ac_script"
5868 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5869 { ac_script=; unset ac_script;}
5870 if test -z "$SED"; then
5871 ac_path_SED_found=false
5872 # Loop through the user's path and test for each of PROGNAME-LIST
5873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5877 test -z "$as_dir" && as_dir=.
5878 for ac_prog in sed gsed; do
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5881 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5882 # Check for GNU ac_path_SED and select it if it is found.
5883 # Check for GNU $ac_path_SED
5884 case `"$ac_path_SED" --version 2>&1` in
5886 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5889 $as_echo_n 0123456789 >"conftest.in"
5892 cat "conftest.in" "conftest.in" >"conftest.tmp"
5893 mv "conftest.tmp" "conftest.in"
5894 cp "conftest.in" "conftest.nl"
5895 $as_echo '' >> "conftest.nl"
5896 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5897 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5898 as_fn_arith $ac_count + 1 && ac_count=$as_val
5899 if test $ac_count -gt ${ac_path_SED_max-0}; then
5900 # Best one so far, save it but keep looking for a better one
5901 ac_cv_path_SED="$ac_path_SED"
5902 ac_path_SED_max=$ac_count
5904 # 10*(2^10) chars as input seems more than enough
5905 test $ac_count -gt 10 && break
5907 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5910 $ac_path_SED_found && break 3
5915 if test -z "$ac_cv_path_SED"; then
5916 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5924 $as_echo "$ac_cv_path_SED" >&6; }
5925 SED="$ac_cv_path_SED"
5928 test -z "$SED" && SED=sed
5929 Xsed="$SED -e 1s/^X//"
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5942 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5943 if test "${ac_cv_path_GREP+set}" = set; then :
5944 $as_echo_n "(cached) " >&6
5946 if test -z "$GREP"; then
5947 ac_path_GREP_found=false
5948 # Loop through the user's path and test for each of PROGNAME-LIST
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5953 test -z "$as_dir" && as_dir=.
5954 for ac_prog in grep ggrep; do
5955 for ac_exec_ext in '' $ac_executable_extensions; do
5956 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5957 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5958 # Check for GNU ac_path_GREP and select it if it is found.
5959 # Check for GNU $ac_path_GREP
5960 case `"$ac_path_GREP" --version 2>&1` in
5962 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5965 $as_echo_n 0123456789 >"conftest.in"
5968 cat "conftest.in" "conftest.in" >"conftest.tmp"
5969 mv "conftest.tmp" "conftest.in"
5970 cp "conftest.in" "conftest.nl"
5971 $as_echo 'GREP' >> "conftest.nl"
5972 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5973 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5974 as_fn_arith $ac_count + 1 && ac_count=$as_val
5975 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5976 # Best one so far, save it but keep looking for a better one
5977 ac_cv_path_GREP="$ac_path_GREP"
5978 ac_path_GREP_max=$ac_count
5980 # 10*(2^10) chars as input seems more than enough
5981 test $ac_count -gt 10 && break
5983 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5986 $ac_path_GREP_found && break 3
5991 if test -z "$ac_cv_path_GREP"; then
5992 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5995 ac_cv_path_GREP=$GREP
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6000 $as_echo "$ac_cv_path_GREP" >&6; }
6001 GREP="$ac_cv_path_GREP"
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6005 $as_echo_n "checking for egrep... " >&6; }
6006 if test "${ac_cv_path_EGREP+set}" = set; then :
6007 $as_echo_n "(cached) " >&6
6009 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6010 then ac_cv_path_EGREP="$GREP -E"
6012 if test -z "$EGREP"; then
6013 ac_path_EGREP_found=false
6014 # Loop through the user's path and test for each of PROGNAME-LIST
6015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6019 test -z "$as_dir" && as_dir=.
6020 for ac_prog in egrep; do
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6023 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6024 # Check for GNU ac_path_EGREP and select it if it is found.
6025 # Check for GNU $ac_path_EGREP
6026 case `"$ac_path_EGREP" --version 2>&1` in
6028 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6031 $as_echo_n 0123456789 >"conftest.in"
6034 cat "conftest.in" "conftest.in" >"conftest.tmp"
6035 mv "conftest.tmp" "conftest.in"
6036 cp "conftest.in" "conftest.nl"
6037 $as_echo 'EGREP' >> "conftest.nl"
6038 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6039 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6040 as_fn_arith $ac_count + 1 && ac_count=$as_val
6041 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6042 # Best one so far, save it but keep looking for a better one
6043 ac_cv_path_EGREP="$ac_path_EGREP"
6044 ac_path_EGREP_max=$ac_count
6046 # 10*(2^10) chars as input seems more than enough
6047 test $ac_count -gt 10 && break
6049 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6052 $ac_path_EGREP_found && break 3
6057 if test -z "$ac_cv_path_EGREP"; then
6058 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6061 ac_cv_path_EGREP=$EGREP
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6067 $as_echo "$ac_cv_path_EGREP" >&6; }
6068 EGREP="$ac_cv_path_EGREP"
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6072 $as_echo_n "checking for fgrep... " >&6; }
6073 if test "${ac_cv_path_FGREP+set}" = set; then :
6074 $as_echo_n "(cached) " >&6
6076 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6077 then ac_cv_path_FGREP="$GREP -F"
6079 if test -z "$FGREP"; then
6080 ac_path_FGREP_found=false
6081 # Loop through the user's path and test for each of PROGNAME-LIST
6082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6083 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6086 test -z "$as_dir" && as_dir=.
6087 for ac_prog in fgrep; do
6088 for ac_exec_ext in '' $ac_executable_extensions; do
6089 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6090 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6091 # Check for GNU ac_path_FGREP and select it if it is found.
6092 # Check for GNU $ac_path_FGREP
6093 case `"$ac_path_FGREP" --version 2>&1` in
6095 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6098 $as_echo_n 0123456789 >"conftest.in"
6101 cat "conftest.in" "conftest.in" >"conftest.tmp"
6102 mv "conftest.tmp" "conftest.in"
6103 cp "conftest.in" "conftest.nl"
6104 $as_echo 'FGREP' >> "conftest.nl"
6105 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6106 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6107 as_fn_arith $ac_count + 1 && ac_count=$as_val
6108 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6109 # Best one so far, save it but keep looking for a better one
6110 ac_cv_path_FGREP="$ac_path_FGREP"
6111 ac_path_FGREP_max=$ac_count
6113 # 10*(2^10) chars as input seems more than enough
6114 test $ac_count -gt 10 && break
6116 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6119 $ac_path_FGREP_found && break 3
6124 if test -z "$ac_cv_path_FGREP"; then
6125 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6128 ac_cv_path_FGREP=$FGREP
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6134 $as_echo "$ac_cv_path_FGREP" >&6; }
6135 FGREP="$ac_cv_path_FGREP"
6138 test -z "$GREP" && GREP=grep
6158 # Check whether --with-gnu-ld was given.
6159 if test "${with_gnu_ld+set}" = set; then :
6160 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6166 if test "$GCC" = yes; then
6167 # Check if gcc -print-prog-name=ld gives a path.
6168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6169 $as_echo_n "checking for ld used by $CC... " >&6; }
6172 # gcc leaves a trailing carriage return which upsets mingw
6173 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6175 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6178 # Accept absolute paths.
6180 re_direlt='/[^/][^/]*/\.\./'
6181 # Canonicalize the pathname of ld
6182 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6183 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6184 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6186 test -z "$LD" && LD="$ac_prog"
6189 # If it fails, then pretend we aren't using GCC.
6193 # If it is relative, then search for the first ld in PATH.
6197 elif test "$with_gnu_ld" = yes; then
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6199 $as_echo_n "checking for GNU ld... " >&6; }
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6202 $as_echo_n "checking for non-GNU ld... " >&6; }
6204 if test "${lt_cv_path_LD+set}" = set; then :
6205 $as_echo_n "(cached) " >&6
6207 if test -z "$LD"; then
6208 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6209 for ac_dir in $PATH; do
6211 test -z "$ac_dir" && ac_dir=.
6212 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6213 lt_cv_path_LD="$ac_dir/$ac_prog"
6214 # Check to see if the program is GNU ld. I'd rather use --version,
6215 # but apparently some variants of GNU ld only accept -v.
6216 # Break only if it was the GNU/non-GNU ld that we prefer.
6217 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6218 *GNU* | *'with BFD'*)
6219 test "$with_gnu_ld" != no && break
6222 test "$with_gnu_ld" != yes && break
6229 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6234 if test -n "$LD"; then
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6236 $as_echo "$LD" >&6; }
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6239 $as_echo "no" >&6; }
6241 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6243 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6244 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6245 $as_echo_n "(cached) " >&6
6247 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6248 case `$LD -v 2>&1 </dev/null` in
6249 *GNU* | *'with BFD'*)
6250 lt_cv_prog_gnu_ld=yes
6253 lt_cv_prog_gnu_ld=no
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6258 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6259 with_gnu_ld=$lt_cv_prog_gnu_ld
6269 if test -n "$ac_tool_prefix"; then
6270 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6271 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6273 $as_echo_n "checking for $ac_word... " >&6; }
6274 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6275 $as_echo_n "(cached) " >&6
6277 if test -n "$RANLIB"; then
6278 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6284 test -z "$as_dir" && as_dir=.
6285 for ac_exec_ext in '' $ac_executable_extensions; do
6286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6287 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6297 RANLIB=$ac_cv_prog_RANLIB
6298 if test -n "$RANLIB"; then
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6300 $as_echo "$RANLIB" >&6; }
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6303 $as_echo "no" >&6; }
6308 if test -z "$ac_cv_prog_RANLIB"; then
6309 ac_ct_RANLIB=$RANLIB
6310 # Extract the first word of "ranlib", so it can be a program name with args.
6311 set dummy ranlib; ac_word=$2
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6313 $as_echo_n "checking for $ac_word... " >&6; }
6314 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6315 $as_echo_n "(cached) " >&6
6317 if test -n "$ac_ct_RANLIB"; then
6318 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6324 test -z "$as_dir" && as_dir=.
6325 for ac_exec_ext in '' $ac_executable_extensions; do
6326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6327 ac_cv_prog_ac_ct_RANLIB="ranlib"
6328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6337 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6338 if test -n "$ac_ct_RANLIB"; then
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6340 $as_echo "$ac_ct_RANLIB" >&6; }
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6343 $as_echo "no" >&6; }
6346 if test "x$ac_ct_RANLIB" = x; then
6349 case $cross_compiling:$ac_tool_warned in
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6353 ac_tool_warned=yes ;;
6355 RANLIB=$ac_ct_RANLIB
6358 RANLIB="$ac_cv_prog_RANLIB"
6362 if test "x$CC" != xcc; then
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
6364 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
6367 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
6369 set dummy $CC; ac_cc=`$as_echo "$2" |
6370 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6371 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
6372 $as_echo_n "(cached) " >&6
6374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6375 /* end confdefs.h. */
6385 # Make sure it works both with $CC and with simple cc.
6386 # We do the test twice because some compilers refuse to overwrite an
6387 # existing .o file with -o, though they will create one.
6388 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6390 if { { case "(($ac_try" in
6391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6392 *) ac_try_echo=$ac_try;;
6394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6395 $as_echo "$ac_try_echo"; } >&5
6396 (eval "$ac_try") 2>&5
6398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6399 test $ac_status = 0; } &&
6400 test -f conftest2.$ac_objext && { { case "(($ac_try" in
6401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6402 *) ac_try_echo=$ac_try;;
6404 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6405 $as_echo "$ac_try_echo"; } >&5
6406 (eval "$ac_try") 2>&5
6408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6409 test $ac_status = 0; };
6411 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
6412 if test "x$CC" != xcc; then
6413 # Test first that cc exists at all.
6414 if { ac_try='cc -c conftest.$ac_ext >&5'
6415 { { case "(($ac_try" in
6416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6417 *) ac_try_echo=$ac_try;;
6419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6420 $as_echo "$ac_try_echo"; } >&5
6421 (eval "$ac_try") 2>&5
6423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6424 test $ac_status = 0; }; }; then
6425 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
6427 if { { case "(($ac_try" in
6428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6429 *) ac_try_echo=$ac_try;;
6431 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6432 $as_echo "$ac_try_echo"; } >&5
6433 (eval "$ac_try") 2>&5
6435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6436 test $ac_status = 0; } &&
6437 test -f conftest2.$ac_objext && { { case "(($ac_try" in
6438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6442 $as_echo "$ac_try_echo"; } >&5
6443 (eval "$ac_try") 2>&5
6445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6446 test $ac_status = 0; };
6451 # cc exists but doesn't like -o.
6452 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6457 eval ac_cv_prog_cc_${ac_cc}_c_o=no
6459 rm -f core conftest*
6462 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6464 $as_echo "yes" >&6; }
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6467 $as_echo "no" >&6; }
6469 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
6473 # FIXME: we rely on the cache variable name because
6474 # there is no other way.
6476 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
6477 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
6478 if test "$am_t" != yes; then
6479 # Losing compiler, so override with the script.
6480 # FIXME: It is wrong to rewrite CC.
6481 # But if we don't then we get into trouble of one sort or another.
6482 # A longer-term fix would be to have automake use am__CC in this case,
6483 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6484 CC="$am_aux_dir/compile $CC"
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6490 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6492 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6493 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6494 $as_echo_n "(cached) " >&6
6496 cat >conftest.make <<\_ACEOF
6499 @echo '@@@%%%=$(MAKE)=@@@%%%'
6501 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6502 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6504 eval ac_cv_prog_make_${ac_make}_set=yes;;
6506 eval ac_cv_prog_make_${ac_make}_set=no;;
6510 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6512 $as_echo "yes" >&6; }
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6516 $as_echo "no" >&6; }
6517 SET_MAKE="MAKE=${MAKE-make}"
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking maximum warning verbosity option" >&5
6522 $as_echo_n "checking maximum warning verbosity option... " >&6; }
6527 # Check whether --with-maximum-compile-warnings was given.
6528 if test "${with_maximum_compile_warnings+set}" = set; then :
6529 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
6531 ac_compile_warnings_on=""
6535 if test x"$ac_compile_warnings_on" = xno
6537 ac_compile_warnings_msg=no
6541 if test "$GXX" = "yes"
6543 ac_compile_warnings_opt='-Wall -W'
6545 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
6546 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
6551 if test "$GCC" = "yes"
6553 ac_compile_warnings_opt='-Wall -W'
6555 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
6556 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_compile_warnings_msg" >&5
6560 $as_echo "$ac_compile_warnings_msg" >&6; }
6561 unset ac_compile_warnings_msg
6562 unset ac_compile_warnings_opt
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6565 $as_echo_n "checking whether ln -s works... " >&6; }
6567 if test "$LN_S" = "ln -s"; then
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6569 $as_echo "yes" >&6; }
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6572 $as_echo "no, using $LN_S" >&6; }
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
6576 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
6578 # Check whether --with-dmalloc was given.
6579 if test "${with_dmalloc+set}" = set; then :
6580 withval=$with_dmalloc; if test "$withval" = yes; then
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6582 $as_echo "yes" >&6; }
6584 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
6586 LIBS="$LIBS -ldmalloc"
6587 LDFLAGS="$LDFLAGS -g"
6589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6590 $as_echo "no" >&6; }
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594 $as_echo "no" >&6; }
6600 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6601 if test -n "$ac_tool_prefix"; then
6602 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6603 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6605 $as_echo_n "checking for $ac_word... " >&6; }
6606 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6607 $as_echo_n "(cached) " >&6
6611 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6632 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6633 if test -n "$PKG_CONFIG"; then
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6635 $as_echo "$PKG_CONFIG" >&6; }
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6638 $as_echo "no" >&6; }
6643 if test -z "$ac_cv_path_PKG_CONFIG"; then
6644 ac_pt_PKG_CONFIG=$PKG_CONFIG
6645 # Extract the first word of "pkg-config", so it can be a program name with args.
6646 set dummy pkg-config; ac_word=$2
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6648 $as_echo_n "checking for $ac_word... " >&6; }
6649 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
6650 $as_echo_n "(cached) " >&6
6652 case $ac_pt_PKG_CONFIG in
6654 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
6663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6664 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6675 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6676 if test -n "$ac_pt_PKG_CONFIG"; then
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6678 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6681 $as_echo "no" >&6; }
6684 if test "x$ac_pt_PKG_CONFIG" = x; then
6687 case $cross_compiling:$ac_tool_warned in
6689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6690 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6691 ac_tool_warned=yes ;;
6693 PKG_CONFIG=$ac_pt_PKG_CONFIG
6696 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6700 if test -n "$PKG_CONFIG"; then
6701 _pkg_min_version=0.9.0
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6703 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6704 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6706 $as_echo "yes" >&6; }
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6709 $as_echo "no" >&6; }
6716 # Enable OS features.
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6721 $as_echo_n "checking for ANSI C header files... " >&6; }
6722 if test "${ac_cv_header_stdc+set}" = set; then :
6723 $as_echo_n "(cached) " >&6
6725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726 /* end confdefs.h. */
6740 if ac_fn_c_try_compile "$LINENO"; then :
6741 ac_cv_header_stdc=yes
6743 ac_cv_header_stdc=no
6745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6747 if test $ac_cv_header_stdc = yes; then
6748 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6750 /* end confdefs.h. */
6754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6755 $EGREP "memchr" >/dev/null 2>&1; then :
6758 ac_cv_header_stdc=no
6764 if test $ac_cv_header_stdc = yes; then
6765 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6767 /* end confdefs.h. */
6771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6772 $EGREP "free" >/dev/null 2>&1; then :
6775 ac_cv_header_stdc=no
6781 if test $ac_cv_header_stdc = yes; then
6782 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6783 if test "$cross_compiling" = yes; then :
6786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6787 /* end confdefs.h. */
6790 #if ((' ' & 0x0FF) == 0x020)
6791 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6792 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6794 # define ISLOWER(c) \
6795 (('a' <= (c) && (c) <= 'i') \
6796 || ('j' <= (c) && (c) <= 'r') \
6797 || ('s' <= (c) && (c) <= 'z'))
6798 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6801 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6806 for (i = 0; i < 256; i++)
6807 if (XOR (islower (i), ISLOWER (i))
6808 || toupper (i) != TOUPPER (i))
6813 if ac_fn_c_try_run "$LINENO"; then :
6816 ac_cv_header_stdc=no
6818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6819 conftest.$ac_objext conftest.beam conftest.$ac_ext
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6825 $as_echo "$ac_cv_header_stdc" >&6; }
6826 if test $ac_cv_header_stdc = yes; then
6828 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6832 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6833 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6834 inttypes.h stdint.h unistd.h
6836 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6837 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6839 eval as_val=\$$as_ac_Header
6840 if test "x$as_val" = x""yes; then :
6841 cat >>confdefs.h <<_ACEOF
6842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6851 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6852 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
6859 if test "$MINIX" = yes; then
6861 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6864 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6867 $as_echo "#define _MINIX 1" >>confdefs.h
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6873 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6874 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
6875 $as_echo_n "(cached) " >&6
6877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6878 /* end confdefs.h. */
6880 # define __EXTENSIONS__ 1
6881 $ac_includes_default
6890 if ac_fn_c_try_compile "$LINENO"; then :
6891 ac_cv_safe_to_define___extensions__=yes
6893 ac_cv_safe_to_define___extensions__=no
6895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6898 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6899 test $ac_cv_safe_to_define___extensions__ = yes &&
6900 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6902 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6904 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
6906 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6908 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
6913 # Enable run-time checking.
6915 # Check whether --enable-bounds-checking was given.
6916 if test "${enable_bounds_checking+set}" = set; then :
6917 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
6919 enable_bounds_checking='no'
6923 if test "$enable_bounds_checking" = yes; then
6925 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
6936 StaticCplusPlusLibraries='no'
6937 native_win32_build='no'
6939 case "${host_os}" in
6941 StaticCplusPlusLibraries='yes'
6943 GDI32_LIBS='-lgdi32'
6946 StaticCplusPlusLibraries='yes'
6947 native_win32_build='yes'
6948 GDI32_LIBS='-lgdi32'
6951 if test "${GDI32_LIBS}x" != 'x'; then
6953 $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
6957 if test "${GDI32_LIBS}x" != 'x' ; then
6958 WINGDI32_DELEGATE_TRUE=
6959 WINGDI32_DELEGATE_FALSE='#'
6961 WINGDI32_DELEGATE_TRUE='#'
6962 WINGDI32_DELEGATE_FALSE=
6965 if test "${native_win32_build}" = 'yes' ; then
6966 WIN32_NATIVE_BUILD_TRUE=
6967 WIN32_NATIVE_BUILD_FALSE='#'
6969 WIN32_NATIVE_BUILD_TRUE='#'
6970 WIN32_NATIVE_BUILD_FALSE=
6973 if test "${cygwin_build}" = 'yes' ; then
6975 CYGWIN_BUILD_FALSE='#'
6977 CYGWIN_BUILD_TRUE='#'
6981 if test "x${CC}" = 'xcl.exe' ; then
6990 WinPathScript="${srcdirfull}/winpath.sh"
6994 # Compiler flags tweaks
6996 if test "${GCC}" != "yes"; then
6999 # aCC: HP ANSI C++ B3910B A.03.34
7000 CFLAGS="${CFLAGS} -Wp,-H30000"
7001 if test -n "${CXXFLAGS}"; then
7004 CXXFLAGS="${CXXFLAGS} -AA"
7008 # Compaq alphaev68-dec-osf5.1 compiler
7009 if test -n "${CXXFLAGS}"; then
7010 CXXFLAGS='-std strict_ansi -noimplicit_include'
7012 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7017 # Check for lazy-loading.
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
7019 $as_echo_n "checking for linker lazyload option... " >&6; }
7020 if test "${im_cv_ld_lazyload+set}" = set; then :
7021 $as_echo_n "(cached) " >&6
7024 im_cv_ld_lazyload='none'
7026 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
7027 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
7028 im_cv_ld_lazyload='-Wl,-zlazyload'
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
7035 $as_echo "$im_cv_ld_lazyload" >&6; }
7036 if test "${im_cv_ld_lazyload}" != 'none' ; then
7037 if test -z "${LDFLAGS}" ; then
7038 LDFLAGS="${im_cv_ld_lazyload}"
7040 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
7045 *darwin* | *-macos10*)
7046 if test -d /opt/local ; then
7047 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
7048 LDFLAGS="$LDFLAGS -L/opt/local/lib"
7049 elif test -d /sw ; then
7050 CPPFLAGS="$CPPFLAGS -I/sw/include"
7051 LDFLAGS="$LDFLAGS -L/sw/lib"
7053 # Check whether --enable-osx-universal-binary was given.
7054 if test "${enable_osx_universal_binary+set}" = set; then :
7055 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
7057 build_osxuniversal=no
7061 if test "${build_osxuniversal}" != no ; then
7062 if test "$enable_dependency_tracking" != no ; then
7063 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
7064 Please re-run configure with these options:
7065 --disable-dependency-tracking --enable-osx-universal-binary
7068 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7069 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7070 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7075 # Enable support for threads
7077 # Check whether --with-threads was given.
7078 if test "${with_threads+set}" = set; then :
7079 withval=$with_threads; with_threads=$withval
7086 if test "$with_threads" != 'no'; then
7091 ac_cpp='$CPP $CPPFLAGS'
7092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7098 # We used to check for pthread.h first, but this fails if pthread.h
7099 # requires special compiler flags (e.g. on True64 or Sequent).
7100 # It gets checked for in the link test anyway.
7102 # First of all, check if the user has set any of the PTHREAD_LIBS,
7103 # etcetera environment variables, and if threads linking works using
7105 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7106 save_CFLAGS="$CFLAGS"
7107 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7109 LIBS="$PTHREAD_LIBS $LIBS"
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7111 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
7112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7113 /* end confdefs.h. */
7115 /* Override any GCC internal prototype to avoid an error.
7116 Use char because int might match the return type of a GCC
7117 builtin and then its argument prototype would still apply. */
7121 char pthread_join ();
7125 return pthread_join ();
7130 if ac_fn_c_try_link "$LINENO"; then :
7133 rm -f core conftest.err conftest.$ac_objext \
7134 conftest$ac_exeext conftest.$ac_ext
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
7136 $as_echo "$acx_pthread_ok" >&6; }
7137 if test x"$acx_pthread_ok" = xno; then
7142 CFLAGS="$save_CFLAGS"
7145 # We must check for the threads library under a number of different
7146 # names; the ordering is very important because some systems
7147 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7148 # libraries is broken (non-POSIX).
7150 # Create a list of thread flags to try. Items starting with a "-" are
7151 # C compiler flags, and other items are library names, except for "none"
7152 # which indicates that we try without any flags at all, and "pthread-config"
7153 # which is a program returning the flags for the Pth emulation library.
7155 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7157 # The ordering *is* (sometimes) important. Some notes on the
7158 # individual items follow:
7160 # pthreads: AIX (must check this before -lpthread)
7161 # none: in case threads are in libc; should be tried before -Kthread and
7162 # other compiler flags to prevent continual compiler warnings
7163 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7164 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7165 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7166 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7167 # -pthreads: Solaris/gcc
7168 # -mthreads: Mingw32/gcc, Lynx/gcc
7169 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7170 # doesn't hurt to check since this sometimes defines pthreads too;
7171 # also defines -D_REENTRANT)
7172 # ... -mt is also the pthreads flag for HP/aCC
7173 # pthread: Linux, etcetera
7174 # --thread-safe: KAI C++
7175 # pthread-config: use pthread-config program (for GNU Pth library)
7177 case "${host_cpu}-${host_os}" in
7180 # On Solaris (at least, for some versions), libc contains stubbed
7181 # (non-functional) versions of the pthreads routines, so link-based
7182 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7183 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7184 # a function called by this macro, so we could check for that, but
7185 # who knows whether they'll stub that too in a future libc.) So,
7186 # we'll just look for -pthreads and -lpthread first:
7188 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7192 if test x"$acx_pthread_ok" = xno; then
7193 for flag in $acx_pthread_flags; do
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7198 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
7203 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
7204 PTHREAD_CFLAGS="$flag"
7208 # Extract the first word of "pthread-config", so it can be a program name with args.
7209 set dummy pthread-config; ac_word=$2
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7211 $as_echo_n "checking for $ac_word... " >&6; }
7212 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then :
7213 $as_echo_n "(cached) " >&6
7215 if test -n "$acx_pthread_config"; then
7216 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7222 test -z "$as_dir" && as_dir=.
7223 for ac_exec_ext in '' $ac_executable_extensions; do
7224 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7225 ac_cv_prog_acx_pthread_config="yes"
7226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7233 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7236 acx_pthread_config=$ac_cv_prog_acx_pthread_config
7237 if test -n "$acx_pthread_config"; then
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_config" >&5
7239 $as_echo "$acx_pthread_config" >&6; }
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7242 $as_echo "no" >&6; }
7246 if test x"$acx_pthread_config" = xno; then continue; fi
7247 PTHREAD_CFLAGS="`pthread-config --cflags`"
7248 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
7253 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
7254 PTHREAD_LIBS="-l$flag"
7259 save_CFLAGS="$CFLAGS"
7260 LIBS="$PTHREAD_LIBS $LIBS"
7261 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7263 # Check for various functions. We must include pthread.h,
7264 # since some functions may be macros. (On the Sequent, we
7265 # need a special flag -Kthread to make this header compile.)
7266 # We check for pthread_join because it is in -lpthread on IRIX
7267 # while pthread_create is in libc. We check for pthread_attr_init
7268 # due to DEC craziness with -lpthreads. We check for
7269 # pthread_cleanup_push because it is one of the few pthread
7270 # functions on Solaris that doesn't have a non-functional libc stub.
7271 # We try pthread_create on general principles.
7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h. */
7274 #include <pthread.h>
7278 pthread_t th; pthread_join(th, 0);
7279 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7280 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7285 if ac_fn_c_try_link "$LINENO"; then :
7288 rm -f core conftest.err conftest.$ac_objext \
7289 conftest$ac_exeext conftest.$ac_ext
7292 CFLAGS="$save_CFLAGS"
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_pthread_ok" >&5
7295 $as_echo "$acx_pthread_ok" >&6; }
7296 if test "x$acx_pthread_ok" = xyes; then
7305 # Various other checks:
7306 if test "x$acx_pthread_ok" = xyes; then
7308 LIBS="$PTHREAD_LIBS $LIBS"
7309 save_CFLAGS="$CFLAGS"
7310 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7312 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7314 $as_echo_n "checking for joinable pthread attribute... " >&6; }
7316 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7318 /* end confdefs.h. */
7319 #include <pthread.h>
7323 int attr=$attr; return attr;
7328 if ac_fn_c_try_link "$LINENO"; then :
7329 attr_name=$attr; break
7331 rm -f core conftest.err conftest.$ac_objext \
7332 conftest$ac_exeext conftest.$ac_ext
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
7335 $as_echo "$attr_name" >&6; }
7336 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7338 cat >>confdefs.h <<_ACEOF
7339 #define PTHREAD_CREATE_JOINABLE $attr_name
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
7345 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
7347 case "${host_cpu}-${host_os}" in
7348 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7349 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
7352 $as_echo "${flag}" >&6; }
7353 if test "x$flag" != xno; then
7354 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7358 CFLAGS="$save_CFLAGS"
7360 # More AIX lossage: must compile with xlc_r or cc_r
7361 if test x"$GCC" != xyes; then
7362 for ac_prog in xlc_r cc_r
7364 # Extract the first word of "$ac_prog", so it can be a program name with args.
7365 set dummy $ac_prog; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
7369 $as_echo_n "(cached) " >&6
7371 if test -n "$PTHREAD_CC"; then
7372 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 test -z "$as_dir" && as_dir=.
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7381 ac_cv_prog_PTHREAD_CC="$ac_prog"
7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7392 if test -n "$PTHREAD_CC"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7394 $as_echo "$PTHREAD_CC" >&6; }
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7401 test -n "$PTHREAD_CC" && break
7403 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
7416 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7417 if test x"$acx_pthread_ok" = xyes; then
7419 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
7427 ac_cpp='$CPP $CPPFLAGS'
7428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7433 if test "$acx_pthread_ok" = yes; then
7435 DEF_THREAD="$PTHREAD_CFLAGS"
7436 CFLAGS="$CFLAGS $DEF_THREAD"
7437 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
7438 if test "$CC" != "$PTHREAD_CC"; then
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
7440 $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
7446 # Enable support for OpenMP
7447 if test "$have_threads" != 'yes'; then
7448 ac_cv_prog_c_openmp=unsupported
7452 # Check whether --enable-openmp was given.
7453 if test "${enable_openmp+set}" = set; then :
7454 enableval=$enable_openmp;
7457 if test "$enable_openmp" != no; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
7459 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
7460 if test "${ac_cv_prog_c_openmp+set}" = set; then :
7461 $as_echo_n "(cached) " >&6
7463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7464 /* end confdefs.h. */
7470 int main () { return omp_get_num_threads (); }
7473 if ac_fn_c_try_link "$LINENO"; then :
7474 ac_cv_prog_c_openmp='none needed'
7476 ac_cv_prog_c_openmp='unsupported'
7477 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
7478 ac_save_CFLAGS=$CFLAGS
7479 CFLAGS="$CFLAGS $ac_option"
7480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7481 /* end confdefs.h. */
7487 int main () { return omp_get_num_threads (); }
7490 if ac_fn_c_try_link "$LINENO"; then :
7491 ac_cv_prog_c_openmp=$ac_option
7493 rm -f core conftest.err conftest.$ac_objext \
7494 conftest$ac_exeext conftest.$ac_ext
7495 CFLAGS=$ac_save_CFLAGS
7496 if test "$ac_cv_prog_c_openmp" != unsupported; then
7501 rm -f core conftest.err conftest.$ac_objext \
7502 conftest$ac_exeext conftest.$ac_ext
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
7505 $as_echo "$ac_cv_prog_c_openmp" >&6; }
7506 case $ac_cv_prog_c_openmp in #(
7507 "none needed" | unsupported)
7510 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
7515 CFLAGS="$OPENMP_CFLAGS $CFLAGS"
7516 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
7519 # Enable support for OpenCL
7522 ac_cpp='$CPP $CPPFLAGS'
7523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7528 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7529 if test "${ax_cv_c_compiler_ms+set}" = set; then :
7530 $as_echo_n "(cached) " >&6
7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7533 /* end confdefs.h. */
7546 if ac_fn_c_try_compile "$LINENO"; then :
7551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7552 ax_cv_c_compiler_ms=$ax_compiler_ms
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
7556 $as_echo "$ax_cv_c_compiler_ms" >&6; }
7557 if test X$ax_compiler_ms = Xno; then :
7558 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
7561 ax_save_CPPFLAGS=$CPPFLAGS
7562 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
7563 for ac_header in CL/opencl.h OpenCL/OpenCL.h
7565 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7566 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7567 eval as_val=\$$as_ac_Header
7568 if test "x$as_val" = x""yes; then :
7569 cat >>confdefs.h <<_ACEOF
7570 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7577 CPPFLAGS=$ax_save_CPPFLAGS
7579 for ac_header in windows.h
7581 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
7582 if test "x$ac_cv_header_windows_h" = x""yes; then :
7583 cat >>confdefs.h <<_ACEOF
7584 #define HAVE_WINDOWS_H 1
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
7595 $as_echo_n "checking for OpenCL library... " >&6; }
7596 if test "${ax_cv_check_cl_libcl+set}" = set; then :
7597 $as_echo_n "(cached) " >&6
7599 ax_cv_check_cl_libcl=no
7601 x86_64) ax_check_cl_libdir=lib64 ;;
7602 *) ax_check_cl_libdir=lib ;;
7604 ax_save_CPPFLAGS=$CPPFLAGS
7605 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
7608 ax_check_libs="-lOpenCL -lCL"
7609 for ax_lib in $ax_check_libs; do
7610 if test X$ax_compiler_ms = Xyes; then :
7611 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
7615 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
7616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7617 /* end confdefs.h. */
7619 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7620 # include <windows.h>
7622 # ifdef HAVE_CL_OPENCL_H
7623 # include <CL/opencl.h>
7624 # elif defined(HAVE_OPENCL_OPENCL_H)
7625 # include <OpenCL/OpenCL.h>
7632 clCreateContextFromType(0,0,0,0,0)
7637 if ac_fn_c_try_link "$LINENO"; then :
7638 ax_cv_check_cl_libcl=$ax_try_lib; break
7640 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"
7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7642 /* end confdefs.h. */
7644 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7645 # include <windows.h>
7647 # ifdef HAVE_CL_OPENCL_H
7648 # include <CL/opencl.h>
7649 # elif defined(HAVE_OPENCL_OPENCL_H)
7650 # include <OpenCL/OpenCL.h>
7657 clCreateContextFromType(0,0,0,0,0)
7662 if ac_fn_c_try_link "$LINENO"; then :
7663 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
7665 ax_check_cl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libCL.dylib:/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libCL.dylib' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667 /* end confdefs.h. */
7669 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7670 # include <windows.h>
7672 # ifdef HAVE_CL_OPENCL_H
7673 # include <CL/opencl.h>
7674 # elif defined(HAVE_OPENCL_OPENCL_H)
7675 # include <OpenCL/OpenCL.h>
7682 clCreateContextFromType(0,0,0,0,0)
7687 if ac_fn_c_try_link "$LINENO"; then :
7688 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
7690 rm -f core conftest.err conftest.$ac_objext \
7691 conftest$ac_exeext conftest.$ac_ext
7693 rm -f core conftest.err conftest.$ac_objext \
7694 conftest$ac_exeext conftest.$ac_ext
7696 rm -f core conftest.err conftest.$ac_objext \
7697 conftest$ac_exeext conftest.$ac_ext
7700 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
7701 LIBS='-framework OpenCL'
7702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7703 /* end confdefs.h. */
7705 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
7706 # include <windows.h>
7708 # ifdef HAVE_CL_OPENCL_H
7709 # include <CL/opencl.h>
7710 # elif defined(HAVE_OPENCL_OPENCL_H)
7711 # include <OpenCL/OpenCL.h>
7718 clCreateContextFromType(0,0,0,0,0)
7723 if ac_fn_c_try_link "$LINENO"; then :
7724 ax_cv_check_cl_libcl=$LIBS
7726 rm -f core conftest.err conftest.$ac_objext \
7727 conftest$ac_exeext conftest.$ac_ext
7731 CPPFLAGS=$ax_save_CPPFLAGS
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
7734 $as_echo "$ax_cv_check_cl_libcl" >&6; }
7736 if test "X$ax_cv_check_cl_libcl" = Xno; then :
7737 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
7739 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS"
7742 ac_cpp='$CPP $CPPFLAGS'
7743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7751 CFLAGS="$CL_CFLAGS $CFLAGS"
7752 LIBS="$CL_LIBS $LIBS"
7757 # Check for large file support
7760 # Check whether --enable-largefile was given.
7761 if test "${enable_largefile+set}" = set; then :
7762 enableval=$enable_largefile;
7765 if test "$enable_largefile" != no; then
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7768 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7769 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
7772 ac_cv_sys_largefile_CC=no
7773 if test "$GCC" != yes; then
7776 # IRIX 6.2 and later do not support large files by default,
7777 # so use the C compiler's -n32 option if that helps.
7778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7779 /* end confdefs.h. */
7780 #include <sys/types.h>
7781 /* Check that off_t can represent 2**63 - 1 correctly.
7782 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7783 since some C++ compilers masquerading as C compilers
7784 incorrectly reject 9223372036854775807. */
7785 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7786 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7787 && LARGE_OFF_T % 2147483647 == 1)
7797 if ac_fn_c_try_compile "$LINENO"; then :
7800 rm -f core conftest.err conftest.$ac_objext
7802 if ac_fn_c_try_compile "$LINENO"; then :
7803 ac_cv_sys_largefile_CC=' -n32'; break
7805 rm -f core conftest.err conftest.$ac_objext
7809 rm -f conftest.$ac_ext
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7813 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7814 if test "$ac_cv_sys_largefile_CC" != no; then
7815 CC=$CC$ac_cv_sys_largefile_CC
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7819 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7820 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
7821 $as_echo_n "(cached) " >&6
7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h. */
7826 #include <sys/types.h>
7827 /* Check that off_t can represent 2**63 - 1 correctly.
7828 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7829 since some C++ compilers masquerading as C compilers
7830 incorrectly reject 9223372036854775807. */
7831 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7832 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7833 && LARGE_OFF_T % 2147483647 == 1)
7843 if ac_fn_c_try_compile "$LINENO"; then :
7844 ac_cv_sys_file_offset_bits=no; break
7846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7849 #define _FILE_OFFSET_BITS 64
7850 #include <sys/types.h>
7851 /* Check that off_t can represent 2**63 - 1 correctly.
7852 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7853 since some C++ compilers masquerading as C compilers
7854 incorrectly reject 9223372036854775807. */
7855 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7856 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7857 && LARGE_OFF_T % 2147483647 == 1)
7867 if ac_fn_c_try_compile "$LINENO"; then :
7868 ac_cv_sys_file_offset_bits=64; break
7870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7871 ac_cv_sys_file_offset_bits=unknown
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7876 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7877 case $ac_cv_sys_file_offset_bits in #(
7880 cat >>confdefs.h <<_ACEOF
7881 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7886 if test $ac_cv_sys_file_offset_bits = unknown; then
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7888 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7889 if test "${ac_cv_sys_large_files+set}" = set; then :
7890 $as_echo_n "(cached) " >&6
7893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h. */
7895 #include <sys/types.h>
7896 /* Check that off_t can represent 2**63 - 1 correctly.
7897 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7898 since some C++ compilers masquerading as C compilers
7899 incorrectly reject 9223372036854775807. */
7900 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7901 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7902 && LARGE_OFF_T % 2147483647 == 1)
7912 if ac_fn_c_try_compile "$LINENO"; then :
7913 ac_cv_sys_large_files=no; break
7915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917 /* end confdefs.h. */
7918 #define _LARGE_FILES 1
7919 #include <sys/types.h>
7920 /* Check that off_t can represent 2**63 - 1 correctly.
7921 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7922 since some C++ compilers masquerading as C compilers
7923 incorrectly reject 9223372036854775807. */
7924 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7925 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7926 && LARGE_OFF_T % 2147483647 == 1)
7936 if ac_fn_c_try_compile "$LINENO"; then :
7937 ac_cv_sys_large_files=1; break
7939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7940 ac_cv_sys_large_files=unknown
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7945 $as_echo "$ac_cv_sys_large_files" >&6; }
7946 case $ac_cv_sys_large_files in #(
7949 cat >>confdefs.h <<_ACEOF
7950 #define _LARGE_FILES $ac_cv_sys_large_files
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
7959 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
7960 if test "${ac_cv_sys_largefile_source+set}" = set; then :
7961 $as_echo_n "(cached) " >&6
7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h. */
7966 #include <sys/types.h> /* for off_t */
7971 int (*fp) (FILE *, off_t, int) = fseeko;
7972 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7977 if ac_fn_c_try_link "$LINENO"; then :
7978 ac_cv_sys_largefile_source=no; break
7980 rm -f core conftest.err conftest.$ac_objext \
7981 conftest$ac_exeext conftest.$ac_ext
7982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983 /* end confdefs.h. */
7984 #define _LARGEFILE_SOURCE 1
7985 #include <sys/types.h> /* for off_t */
7990 int (*fp) (FILE *, off_t, int) = fseeko;
7991 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
7996 if ac_fn_c_try_link "$LINENO"; then :
7997 ac_cv_sys_largefile_source=1; break
7999 rm -f core conftest.err conftest.$ac_objext \
8000 conftest$ac_exeext conftest.$ac_ext
8001 ac_cv_sys_largefile_source=unknown
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
8006 $as_echo "$ac_cv_sys_largefile_source" >&6; }
8007 case $ac_cv_sys_largefile_source in #(
8010 cat >>confdefs.h <<_ACEOF
8011 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8017 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8018 # in glibc 2.1.3, but that breaks too many other things.
8019 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8020 if test $ac_cv_sys_largefile_source != unknown; then
8022 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
8027 if test "$enable_largefile" != no; then
8028 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
8029 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
8032 $as_echo_n "checking for native large file support... " >&6; }
8033 if test "$cross_compiling" = yes; then :
8034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8035 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8036 as_fn_error "cannot run test program while cross compiling
8037 See \`config.log' for more details." "$LINENO" 5; }
8039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8040 /* end confdefs.h. */
8043 exit(!(sizeof(off_t) == 8));
8046 if ac_fn_c_try_run "$LINENO"; then :
8047 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8050 $as_echo "yes" >&6; }
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8053 $as_echo "no" >&6; }
8055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8056 conftest.$ac_objext conftest.beam conftest.$ac_ext
8060 if test "$ac_cv_sys_large_files" != 'no'; then
8061 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
8063 if test "$ac_cv_sys_largefile_source" != 'no'; then
8064 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
8070 # Configure libtool & libltdl
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8080 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8085 macro_version='2.2.6b'
8086 macro_revision='1.3017'
8100 ltmain="$ac_aux_dir/ltmain.sh"
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8103 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8104 if test "${lt_cv_path_NM+set}" = set; then :
8105 $as_echo_n "(cached) " >&6
8107 if test -n "$NM"; then
8108 # Let the user override the test.
8111 lt_nm_to_check="${ac_tool_prefix}nm"
8112 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8113 lt_nm_to_check="$lt_nm_to_check nm"
8115 for lt_tmp_nm in $lt_nm_to_check; do
8116 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8117 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8119 test -z "$ac_dir" && ac_dir=.
8120 tmp_nm="$ac_dir/$lt_tmp_nm"
8121 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8122 # Check to see if the nm accepts a BSD-compat flag.
8123 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8124 # nm: unknown option "B" ignored
8125 # Tru64's nm complains that /dev/null is an invalid object file
8126 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8127 */dev/null* | *'Invalid file or object type'*)
8128 lt_cv_path_NM="$tmp_nm -B"
8132 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8134 lt_cv_path_NM="$tmp_nm -p"
8138 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8139 continue # so that we can try to find one that supports BSD flags
8148 : ${lt_cv_path_NM=no}
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8152 $as_echo "$lt_cv_path_NM" >&6; }
8153 if test "$lt_cv_path_NM" != "no"; then
8156 # Didn't find any BSD compatible name lister, look for dumpbin.
8157 if test -n "$ac_tool_prefix"; then
8158 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8161 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8163 $as_echo_n "checking for $ac_word... " >&6; }
8164 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
8165 $as_echo_n "(cached) " >&6
8167 if test -n "$DUMPBIN"; then
8168 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8174 test -z "$as_dir" && as_dir=.
8175 for ac_exec_ext in '' $ac_executable_extensions; do
8176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8177 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8187 DUMPBIN=$ac_cv_prog_DUMPBIN
8188 if test -n "$DUMPBIN"; then
8189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8190 $as_echo "$DUMPBIN" >&6; }
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8193 $as_echo "no" >&6; }
8197 test -n "$DUMPBIN" && break
8200 if test -z "$DUMPBIN"; then
8201 ac_ct_DUMPBIN=$DUMPBIN
8202 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8204 # Extract the first word of "$ac_prog", so it can be a program name with args.
8205 set dummy $ac_prog; ac_word=$2
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207 $as_echo_n "checking for $ac_word... " >&6; }
8208 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
8209 $as_echo_n "(cached) " >&6
8211 if test -n "$ac_ct_DUMPBIN"; then
8212 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 test -z "$as_dir" && as_dir=.
8219 for ac_exec_ext in '' $ac_executable_extensions; do
8220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8221 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8231 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8232 if test -n "$ac_ct_DUMPBIN"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8234 $as_echo "$ac_ct_DUMPBIN" >&6; }
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8241 test -n "$ac_ct_DUMPBIN" && break
8244 if test "x$ac_ct_DUMPBIN" = x; then
8247 case $cross_compiling:$ac_tool_warned in
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8251 ac_tool_warned=yes ;;
8253 DUMPBIN=$ac_ct_DUMPBIN
8258 if test "$DUMPBIN" != ":"; then
8262 test -z "$NM" && NM=nm
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8270 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8271 if test "${lt_cv_nm_interface+set}" = set; then :
8272 $as_echo_n "(cached) " >&6
8274 lt_cv_nm_interface="BSD nm"
8275 echo "int some_variable = 0;" > conftest.$ac_ext
8276 (eval echo "\"\$as_me:8276: $ac_compile\"" >&5)
8277 (eval "$ac_compile" 2>conftest.err)
8278 cat conftest.err >&5
8279 (eval echo "\"\$as_me:8279: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8280 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8281 cat conftest.err >&5
8282 (eval echo "\"\$as_me:8282: output\"" >&5)
8283 cat conftest.out >&5
8284 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8285 lt_cv_nm_interface="MS dumpbin"
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8290 $as_echo "$lt_cv_nm_interface" >&6; }
8292 # find the maximum length of command line arguments
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8294 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8295 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
8296 $as_echo_n "(cached) " >&6
8303 # On DJGPP, this test can blow up pretty badly due to problems in libc
8304 # (any single argument exceeding 2000 bytes causes a buffer overrun
8305 # during glob expansion). Even if it were fixed, the result of this
8306 # check would be larger than it should be.
8307 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8311 # Under GNU Hurd, this test is not required because there is
8312 # no limit to the length of command line arguments.
8313 # Libtool will interpret -1 as no limit whatsoever
8314 lt_cv_sys_max_cmd_len=-1;
8317 cygwin* | mingw* | cegcc*)
8318 # On Win9x/ME, this test blows up -- it succeeds, but takes
8319 # about 5 minutes as the teststring grows exponentially.
8320 # Worse, since 9x/ME are not pre-emptively multitasking,
8321 # you end up with a "frozen" computer, even though with patience
8322 # the test eventually succeeds (with a max line length of 256k).
8323 # Instead, let's just punt: use the minimum linelength reported by
8324 # all of the supported platforms: 8192 (on NT/2K/XP).
8325 lt_cv_sys_max_cmd_len=8192;
8329 # On AmigaOS with pdksh, this test takes hours, literally.
8330 # So we just punt and use a minimum line length of 8192.
8331 lt_cv_sys_max_cmd_len=8192;
8334 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8335 # This has been around since 386BSD, at least. Likely further.
8336 if test -x /sbin/sysctl; then
8337 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8338 elif test -x /usr/sbin/sysctl; then
8339 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8341 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8343 # And add a safety zone
8344 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8345 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8349 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8350 lt_cv_sys_max_cmd_len=196608
8354 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8355 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8356 # nice to cause kernel panics so lets avoid the loop below.
8357 # First set a reasonable default.
8358 lt_cv_sys_max_cmd_len=16384
8360 if test -x /sbin/sysconfig; then
8361 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8362 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8367 lt_cv_sys_max_cmd_len=102400
8369 sysv5* | sco5v6* | sysv4.2uw2*)
8370 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8371 if test -n "$kargmax"; then
8372 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8374 lt_cv_sys_max_cmd_len=32768
8378 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8379 if test -n "$lt_cv_sys_max_cmd_len"; then
8380 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8381 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8383 # Make teststring a little bigger before we do anything with it.
8384 # a 1K string should be a reasonable start.
8385 for i in 1 2 3 4 5 6 7 8 ; do
8386 teststring=$teststring$teststring
8388 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8389 # If test is not a shell built-in, we'll probably end up computing a
8390 # maximum length that is only half of the actual maximum length, but
8392 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
8393 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
8394 test $i != 17 # 1/2 MB should be enough
8397 teststring=$teststring$teststring
8399 # Only check the string length outside the loop.
8400 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8402 # Add a significant safety factor because C++ compilers can tack on
8403 # massive amounts of additional arguments before passing them to the
8404 # linker. It appears as though 1/2 is a usable value.
8405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8412 if test -n $lt_cv_sys_max_cmd_len ; then
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8414 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8417 $as_echo "none" >&6; }
8419 max_cmd_len=$lt_cv_sys_max_cmd_len
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8431 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8432 # Try some XSI features
8435 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8437 && eval 'test $(( 1 + 1 )) -eq 2 \
8438 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8441 $as_echo "$xsi_shell" >&6; }
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8445 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8447 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8449 && lt_shell_append=yes
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8451 $as_echo "$lt_shell_append" >&6; }
8454 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8464 # test EBCDIC or ASCII
8465 case `echo X|tr X '\101'` in
8466 A) # ASCII based system
8467 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8468 lt_SP2NL='tr \040 \012'
8469 lt_NL2SP='tr \015\012 \040\040'
8471 *) # EBCDIC based system
8472 lt_SP2NL='tr \100 \n'
8473 lt_NL2SP='tr \r\n \100\100'
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8486 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8487 if test "${lt_cv_ld_reload_flag+set}" = set; then :
8488 $as_echo_n "(cached) " >&6
8490 lt_cv_ld_reload_flag='-r'
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8493 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8494 reload_flag=$lt_cv_ld_reload_flag
8495 case $reload_flag in
8497 *) reload_flag=" $reload_flag" ;;
8499 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8502 if test "$GCC" = yes; then
8503 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8505 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8518 if test -n "$ac_tool_prefix"; then
8519 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8520 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8522 $as_echo_n "checking for $ac_word... " >&6; }
8523 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8524 $as_echo_n "(cached) " >&6
8526 if test -n "$OBJDUMP"; then
8527 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8533 test -z "$as_dir" && as_dir=.
8534 for ac_exec_ext in '' $ac_executable_extensions; do
8535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8536 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8546 OBJDUMP=$ac_cv_prog_OBJDUMP
8547 if test -n "$OBJDUMP"; then
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8549 $as_echo "$OBJDUMP" >&6; }
8551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8552 $as_echo "no" >&6; }
8557 if test -z "$ac_cv_prog_OBJDUMP"; then
8558 ac_ct_OBJDUMP=$OBJDUMP
8559 # Extract the first word of "objdump", so it can be a program name with args.
8560 set dummy objdump; ac_word=$2
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8562 $as_echo_n "checking for $ac_word... " >&6; }
8563 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
8564 $as_echo_n "(cached) " >&6
8566 if test -n "$ac_ct_OBJDUMP"; then
8567 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8573 test -z "$as_dir" && as_dir=.
8574 for ac_exec_ext in '' $ac_executable_extensions; do
8575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8576 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8586 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8587 if test -n "$ac_ct_OBJDUMP"; then
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8589 $as_echo "$ac_ct_OBJDUMP" >&6; }
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8592 $as_echo "no" >&6; }
8595 if test "x$ac_ct_OBJDUMP" = x; then
8598 case $cross_compiling:$ac_tool_warned in
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8602 ac_tool_warned=yes ;;
8604 OBJDUMP=$ac_ct_OBJDUMP
8607 OBJDUMP="$ac_cv_prog_OBJDUMP"
8610 test -z "$OBJDUMP" && OBJDUMP=objdump
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8618 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8619 if test "${lt_cv_deplibs_check_method+set}" = set; then :
8620 $as_echo_n "(cached) " >&6
8622 lt_cv_file_magic_cmd='$MAGIC_CMD'
8623 lt_cv_file_magic_test_file=
8624 lt_cv_deplibs_check_method='unknown'
8625 # Need to set the preceding variable on all platforms that support
8626 # interlibrary dependencies.
8627 # 'none' -- dependencies not supported.
8628 # `unknown' -- same as none, but documents that we really don't know.
8629 # 'pass_all' -- all dependencies passed with no checks.
8630 # 'test_compile' -- check by making test program.
8631 # 'file_magic [[regex]]' -- check by looking for files in library path
8632 # which responds to the $file_magic_cmd with a given extended regex.
8633 # If you have `file' or equivalent on your system and you're not sure
8634 # whether `pass_all' will *always* work, you probably want this one.
8638 lt_cv_deplibs_check_method=pass_all
8642 lt_cv_deplibs_check_method=pass_all
8646 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8647 lt_cv_file_magic_cmd='/usr/bin/file -L'
8648 lt_cv_file_magic_test_file=/shlib/libc.so
8652 # func_win32_libid is a shell function defined in ltmain.sh
8653 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8654 lt_cv_file_magic_cmd='func_win32_libid'
8658 # Base MSYS/MinGW do not provide the 'file' command needed by
8659 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8660 # unless we find 'file', for example because we are cross-compiling.
8661 if ( file / ) >/dev/null 2>&1; then
8662 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8663 lt_cv_file_magic_cmd='func_win32_libid'
8665 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8666 lt_cv_file_magic_cmd='$OBJDUMP -f'
8671 # use the weaker test based on 'objdump'. See mingw*.
8672 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8673 lt_cv_file_magic_cmd='$OBJDUMP -f'
8676 darwin* | rhapsody*)
8677 lt_cv_deplibs_check_method=pass_all
8680 freebsd* | dragonfly*)
8681 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8684 # Not sure whether the presence of OpenBSD here was a mistake.
8685 # Let's accept both of them until this is cleared up.
8686 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8687 lt_cv_file_magic_cmd=/usr/bin/file
8688 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8692 lt_cv_deplibs_check_method=pass_all
8697 lt_cv_deplibs_check_method=pass_all
8700 hpux10.20* | hpux11*)
8701 lt_cv_file_magic_cmd=/usr/bin/file
8704 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8705 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8708 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
8709 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8712 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8713 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8719 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8720 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8723 irix5* | irix6* | nonstopux*)
8725 *-32|*"-32 ") libmagic=32-bit;;
8726 *-n32|*"-n32 ") libmagic=N32;;
8727 *-64|*"-64 ") libmagic=64-bit;;
8728 *) libmagic=never-match;;
8730 lt_cv_deplibs_check_method=pass_all
8733 # This must be Linux ELF.
8734 linux* | k*bsd*-gnu)
8735 lt_cv_deplibs_check_method=pass_all
8739 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8740 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8742 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8747 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8748 lt_cv_file_magic_cmd=/usr/bin/file
8749 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8753 lt_cv_deplibs_check_method=pass_all
8757 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8758 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8760 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8764 osf3* | osf4* | osf5*)
8765 lt_cv_deplibs_check_method=pass_all
8769 lt_cv_deplibs_check_method=pass_all
8773 lt_cv_deplibs_check_method=pass_all
8776 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8777 lt_cv_deplibs_check_method=pass_all
8781 case $host_vendor in
8783 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]'
8784 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8787 lt_cv_deplibs_check_method=pass_all
8790 lt_cv_file_magic_cmd='/bin/file'
8791 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8794 lt_cv_file_magic_cmd='/bin/file'
8795 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8796 lt_cv_file_magic_test_file=/lib/libc.so
8799 lt_cv_deplibs_check_method=pass_all
8802 lt_cv_deplibs_check_method=pass_all
8808 lt_cv_deplibs_check_method=pass_all
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8814 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8815 file_magic_cmd=$lt_cv_file_magic_cmd
8816 deplibs_check_method=$lt_cv_deplibs_check_method
8817 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8830 if test -n "$ac_tool_prefix"; then
8831 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8832 set dummy ${ac_tool_prefix}ar; ac_word=$2
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8834 $as_echo_n "checking for $ac_word... " >&6; }
8835 if test "${ac_cv_prog_AR+set}" = set; then :
8836 $as_echo_n "(cached) " >&6
8838 if test -n "$AR"; then
8839 ac_cv_prog_AR="$AR" # Let the user override the test.
8841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845 test -z "$as_dir" && as_dir=.
8846 for ac_exec_ext in '' $ac_executable_extensions; do
8847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8848 ac_cv_prog_AR="${ac_tool_prefix}ar"
8849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8859 if test -n "$AR"; then
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8861 $as_echo "$AR" >&6; }
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8864 $as_echo "no" >&6; }
8869 if test -z "$ac_cv_prog_AR"; then
8871 # Extract the first word of "ar", so it can be a program name with args.
8872 set dummy ar; ac_word=$2
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8874 $as_echo_n "checking for $ac_word... " >&6; }
8875 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8876 $as_echo_n "(cached) " >&6
8878 if test -n "$ac_ct_AR"; then
8879 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885 test -z "$as_dir" && as_dir=.
8886 for ac_exec_ext in '' $ac_executable_extensions; do
8887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8888 ac_cv_prog_ac_ct_AR="ar"
8889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8898 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8899 if test -n "$ac_ct_AR"; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8901 $as_echo "$ac_ct_AR" >&6; }
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904 $as_echo "no" >&6; }
8907 if test "x$ac_ct_AR" = x; then
8910 case $cross_compiling:$ac_tool_warned in
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8913 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8914 ac_tool_warned=yes ;;
8922 test -z "$AR" && AR=ar
8923 test -z "$AR_FLAGS" && AR_FLAGS=cru
8935 if test -n "$ac_tool_prefix"; then
8936 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8937 set dummy ${ac_tool_prefix}strip; ac_word=$2
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8939 $as_echo_n "checking for $ac_word... " >&6; }
8940 if test "${ac_cv_prog_STRIP+set}" = set; then :
8941 $as_echo_n "(cached) " >&6
8943 if test -n "$STRIP"; then
8944 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950 test -z "$as_dir" && as_dir=.
8951 for ac_exec_ext in '' $ac_executable_extensions; do
8952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8953 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8963 STRIP=$ac_cv_prog_STRIP
8964 if test -n "$STRIP"; then
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8966 $as_echo "$STRIP" >&6; }
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8969 $as_echo "no" >&6; }
8974 if test -z "$ac_cv_prog_STRIP"; then
8976 # Extract the first word of "strip", so it can be a program name with args.
8977 set dummy strip; ac_word=$2
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979 $as_echo_n "checking for $ac_word... " >&6; }
8980 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8981 $as_echo_n "(cached) " >&6
8983 if test -n "$ac_ct_STRIP"; then
8984 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8990 test -z "$as_dir" && as_dir=.
8991 for ac_exec_ext in '' $ac_executable_extensions; do
8992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8993 ac_cv_prog_ac_ct_STRIP="strip"
8994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9003 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9004 if test -n "$ac_ct_STRIP"; then
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9006 $as_echo "$ac_ct_STRIP" >&6; }
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9009 $as_echo "no" >&6; }
9012 if test "x$ac_ct_STRIP" = x; then
9015 case $cross_compiling:$ac_tool_warned in
9017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9019 ac_tool_warned=yes ;;
9024 STRIP="$ac_cv_prog_STRIP"
9027 test -z "$STRIP" && STRIP=:
9034 if test -n "$ac_tool_prefix"; then
9035 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9036 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9038 $as_echo_n "checking for $ac_word... " >&6; }
9039 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9040 $as_echo_n "(cached) " >&6
9042 if test -n "$RANLIB"; then
9043 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049 test -z "$as_dir" && as_dir=.
9050 for ac_exec_ext in '' $ac_executable_extensions; do
9051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9052 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9062 RANLIB=$ac_cv_prog_RANLIB
9063 if test -n "$RANLIB"; then
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9065 $as_echo "$RANLIB" >&6; }
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9068 $as_echo "no" >&6; }
9073 if test -z "$ac_cv_prog_RANLIB"; then
9074 ac_ct_RANLIB=$RANLIB
9075 # Extract the first word of "ranlib", so it can be a program name with args.
9076 set dummy ranlib; ac_word=$2
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9078 $as_echo_n "checking for $ac_word... " >&6; }
9079 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
9080 $as_echo_n "(cached) " >&6
9082 if test -n "$ac_ct_RANLIB"; then
9083 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9089 test -z "$as_dir" && as_dir=.
9090 for ac_exec_ext in '' $ac_executable_extensions; do
9091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9092 ac_cv_prog_ac_ct_RANLIB="ranlib"
9093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9102 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9103 if test -n "$ac_ct_RANLIB"; then
9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9105 $as_echo "$ac_ct_RANLIB" >&6; }
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9108 $as_echo "no" >&6; }
9111 if test "x$ac_ct_RANLIB" = x; then
9114 case $cross_compiling:$ac_tool_warned in
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9118 ac_tool_warned=yes ;;
9120 RANLIB=$ac_ct_RANLIB
9123 RANLIB="$ac_cv_prog_RANLIB"
9126 test -z "$RANLIB" && RANLIB=:
9133 # Determine commands to create old-style static archives.
9134 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9135 old_postinstall_cmds='chmod 644 $oldlib'
9136 old_postuninstall_cmds=
9138 if test -n "$RANLIB"; then
9141 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9144 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9147 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9183 # If no C compiler was specified, use CC.
9186 # If no C compiler flags were specified, use CFLAGS.
9187 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9189 # Allow CC to be a program name with arguments.
9193 # Check for command to grab the raw symbol name followed by C symbol from nm.
9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9195 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9196 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
9197 $as_echo_n "(cached) " >&6
9200 # These are sane defaults that work on at least a few old systems.
9201 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9203 # Character class describing NM global symbol codes.
9204 symcode='[BCDEGRST]'
9206 # Regexp to match symbols that can be accessed directly from C.
9207 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9209 # Define system-specific variables.
9214 cygwin* | mingw* | pw32* | cegcc*)
9215 symcode='[ABCDGISTW]'
9218 if test "$host_cpu" = ia64; then
9219 symcode='[ABCDEGRST]'
9223 symcode='[BCDEGRST]'
9226 symcode='[BCDEGQRST]'
9237 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9245 # If we're using GNU nm, then use its standard symbol codes.
9246 case `$NM -V 2>&1` in
9247 *GNU* | *'with BFD'*)
9248 symcode='[ABCDGIRSTW]' ;;
9251 # Transform an extracted symbol line into a proper C declaration.
9252 # Some systems (esp. on ia64) link data and code symbols differently,
9253 # so use this general approach.
9254 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9256 # Transform an extracted symbol line into symbol name and symbol address
9257 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9258 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'"
9260 # Handle CRLF in mingw tool chain
9264 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9268 # Try without a prefix underscore, then with it.
9269 for ac_symprfx in "" "_"; do
9271 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9272 symxfrm="\\1 $ac_symprfx\\2 \\2"
9274 # Write the raw and C identifiers.
9275 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9276 # Fake it for dumpbin and say T for any non-static function
9277 # and D for any global variable.
9278 # Also find C++ and __fastcall symbols from MSVC++,
9279 # which start with @ or ?.
9280 lt_cv_sys_global_symbol_pipe="$AWK '"\
9281 " {last_section=section; section=\$ 3};"\
9282 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9283 " \$ 0!~/External *\|/{next};"\
9284 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9285 " {if(hide[section]) next};"\
9286 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9287 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9288 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
9289 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9290 " ' prfx=^$ac_symprfx"
9292 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9295 # Check to see that the pipe works correctly.
9299 cat > conftest.$ac_ext <<_LT_EOF
9304 void nm_test_func(void);
9305 void nm_test_func(void){}
9309 int main(){nm_test_var='a';nm_test_func();return(0);}
9312 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9313 (eval $ac_compile) 2>&5
9315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9316 test $ac_status = 0; }; then
9317 # Now try to grab the symbols.
9319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
9320 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9323 test $ac_status = 0; } && test -s "$nlist"; then
9324 # Try sorting and uniquifying the output.
9325 if sort "$nlist" | uniq > "$nlist"T; then
9326 mv -f "$nlist"T "$nlist"
9331 # Make sure that we snagged all the symbols we need.
9332 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9333 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9334 cat <<_LT_EOF > conftest.$ac_ext
9340 # Now generate the symbol file.
9341 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9343 cat <<_LT_EOF >> conftest.$ac_ext
9345 /* The mapping between symbol names and symbols. */
9350 lt__PROGRAM__LTX_preloaded_symbols[] =
9352 { "@PROGRAM@", (void *) 0 },
9354 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9355 cat <<\_LT_EOF >> conftest.$ac_ext
9359 /* This works around a problem in FreeBSD linker */
9360 #ifdef FREEBSD_WORKAROUND
9361 static const void *lt_preloaded_setup() {
9362 return lt__PROGRAM__LTX_preloaded_symbols;
9370 # Now try linking the two files.
9371 mv conftest.$ac_objext conftstm.$ac_objext
9372 lt_save_LIBS="$LIBS"
9373 lt_save_CFLAGS="$CFLAGS"
9374 LIBS="conftstm.$ac_objext"
9375 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9377 (eval $ac_link) 2>&5
9379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9380 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9383 LIBS="$lt_save_LIBS"
9384 CFLAGS="$lt_save_CFLAGS"
9386 echo "cannot find nm_test_func in $nlist" >&5
9389 echo "cannot find nm_test_var in $nlist" >&5
9392 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9395 echo "$progname: failed program was:" >&5
9396 cat conftest.$ac_ext >&5
9398 rm -rf conftest* conftst*
9400 # Do not use the global_symbol_pipe unless it works.
9401 if test "$pipe_works" = yes; then
9404 lt_cv_sys_global_symbol_pipe=
9410 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9411 lt_cv_sys_global_symbol_to_cdecl=
9413 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9415 $as_echo "failed" >&6; }
9417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9418 $as_echo "ok" >&6; }
9442 # Check whether --enable-libtool-lock was given.
9443 if test "${enable_libtool_lock+set}" = set; then :
9444 enableval=$enable_libtool_lock;
9447 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9449 # Some flags need to be propagated to the compiler or linker for good
9453 # Find out which ABI we are using.
9454 echo 'int i;' > conftest.$ac_ext
9455 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9456 (eval $ac_compile) 2>&5
9458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9459 test $ac_status = 0; }; then
9460 case `/usr/bin/file conftest.$ac_objext` in
9472 # Find out which ABI we are using.
9473 echo '#line 9473 "configure"' > conftest.$ac_ext
9474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9475 (eval $ac_compile) 2>&5
9477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9478 test $ac_status = 0; }; then
9479 if test "$lt_cv_prog_gnu_ld" = yes; then
9480 case `/usr/bin/file conftest.$ac_objext` in
9482 LD="${LD-ld} -melf32bsmip"
9485 LD="${LD-ld} -melf32bmipn32"
9488 LD="${LD-ld} -melf64bmip"
9492 case `/usr/bin/file conftest.$ac_objext` in
9508 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9509 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9510 # Find out which ABI we are using.
9511 echo 'int i;' > conftest.$ac_ext
9512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9513 (eval $ac_compile) 2>&5
9515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9516 test $ac_status = 0; }; then
9517 case `/usr/bin/file conftest.o` in
9520 x86_64-*kfreebsd*-gnu)
9521 LD="${LD-ld} -m elf_i386_fbsd"
9524 LD="${LD-ld} -m elf_i386"
9526 ppc64-*linux*|powerpc64-*linux*)
9527 LD="${LD-ld} -m elf32ppclinux"
9530 LD="${LD-ld} -m elf_s390"
9533 LD="${LD-ld} -m elf32_sparc"
9539 x86_64-*kfreebsd*-gnu)
9540 LD="${LD-ld} -m elf_x86_64_fbsd"
9543 LD="${LD-ld} -m elf_x86_64"
9545 ppc*-*linux*|powerpc*-*linux*)
9546 LD="${LD-ld} -m elf64ppc"
9548 s390*-*linux*|s390*-*tpf*)
9549 LD="${LD-ld} -m elf64_s390"
9552 LD="${LD-ld} -m elf64_sparc"
9562 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9563 SAVE_CFLAGS="$CFLAGS"
9564 CFLAGS="$CFLAGS -belf"
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9566 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9567 if test "${lt_cv_cc_needs_belf+set}" = set; then :
9568 $as_echo_n "(cached) " >&6
9571 ac_cpp='$CPP $CPPFLAGS'
9572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577 /* end confdefs.h. */
9587 if ac_fn_c_try_link "$LINENO"; then :
9588 lt_cv_cc_needs_belf=yes
9590 lt_cv_cc_needs_belf=no
9592 rm -f core conftest.err conftest.$ac_objext \
9593 conftest$ac_exeext conftest.$ac_ext
9595 ac_cpp='$CPP $CPPFLAGS'
9596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9602 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9603 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9604 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9605 CFLAGS="$SAVE_CFLAGS"
9609 # Find out which ABI we are using.
9610 echo 'int i;' > conftest.$ac_ext
9611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9612 (eval $ac_compile) 2>&5
9614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9615 test $ac_status = 0; }; then
9616 case `/usr/bin/file conftest.o` in
9618 case $lt_cv_prog_gnu_ld in
9619 yes*) LD="${LD-ld} -m elf64_sparc" ;;
9621 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9633 need_locks="$enable_libtool_lock"
9637 rhapsody* | darwin*)
9638 if test -n "$ac_tool_prefix"; then
9639 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9640 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9642 $as_echo_n "checking for $ac_word... " >&6; }
9643 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
9644 $as_echo_n "(cached) " >&6
9646 if test -n "$DSYMUTIL"; then
9647 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9653 test -z "$as_dir" && as_dir=.
9654 for ac_exec_ext in '' $ac_executable_extensions; do
9655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9656 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9666 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9667 if test -n "$DSYMUTIL"; then
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9669 $as_echo "$DSYMUTIL" >&6; }
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9672 $as_echo "no" >&6; }
9677 if test -z "$ac_cv_prog_DSYMUTIL"; then
9678 ac_ct_DSYMUTIL=$DSYMUTIL
9679 # Extract the first word of "dsymutil", so it can be a program name with args.
9680 set dummy dsymutil; ac_word=$2
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9682 $as_echo_n "checking for $ac_word... " >&6; }
9683 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
9684 $as_echo_n "(cached) " >&6
9686 if test -n "$ac_ct_DSYMUTIL"; then
9687 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9693 test -z "$as_dir" && as_dir=.
9694 for ac_exec_ext in '' $ac_executable_extensions; do
9695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9696 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9706 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9707 if test -n "$ac_ct_DSYMUTIL"; then
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9709 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9712 $as_echo "no" >&6; }
9715 if test "x$ac_ct_DSYMUTIL" = x; then
9718 case $cross_compiling:$ac_tool_warned in
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9722 ac_tool_warned=yes ;;
9724 DSYMUTIL=$ac_ct_DSYMUTIL
9727 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9730 if test -n "$ac_tool_prefix"; then
9731 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9732 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9734 $as_echo_n "checking for $ac_word... " >&6; }
9735 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9736 $as_echo_n "(cached) " >&6
9738 if test -n "$NMEDIT"; then
9739 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9745 test -z "$as_dir" && as_dir=.
9746 for ac_exec_ext in '' $ac_executable_extensions; do
9747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9748 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9758 NMEDIT=$ac_cv_prog_NMEDIT
9759 if test -n "$NMEDIT"; then
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9761 $as_echo "$NMEDIT" >&6; }
9763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9764 $as_echo "no" >&6; }
9769 if test -z "$ac_cv_prog_NMEDIT"; then
9770 ac_ct_NMEDIT=$NMEDIT
9771 # Extract the first word of "nmedit", so it can be a program name with args.
9772 set dummy nmedit; ac_word=$2
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9774 $as_echo_n "checking for $ac_word... " >&6; }
9775 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9776 $as_echo_n "(cached) " >&6
9778 if test -n "$ac_ct_NMEDIT"; then
9779 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9785 test -z "$as_dir" && as_dir=.
9786 for ac_exec_ext in '' $ac_executable_extensions; do
9787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9788 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9798 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9799 if test -n "$ac_ct_NMEDIT"; then
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9801 $as_echo "$ac_ct_NMEDIT" >&6; }
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9804 $as_echo "no" >&6; }
9807 if test "x$ac_ct_NMEDIT" = x; then
9810 case $cross_compiling:$ac_tool_warned in
9812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9814 ac_tool_warned=yes ;;
9816 NMEDIT=$ac_ct_NMEDIT
9819 NMEDIT="$ac_cv_prog_NMEDIT"
9822 if test -n "$ac_tool_prefix"; then
9823 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9824 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9826 $as_echo_n "checking for $ac_word... " >&6; }
9827 if test "${ac_cv_prog_LIPO+set}" = set; then :
9828 $as_echo_n "(cached) " >&6
9830 if test -n "$LIPO"; then
9831 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9837 test -z "$as_dir" && as_dir=.
9838 for ac_exec_ext in '' $ac_executable_extensions; do
9839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9840 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9850 LIPO=$ac_cv_prog_LIPO
9851 if test -n "$LIPO"; then
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9853 $as_echo "$LIPO" >&6; }
9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9856 $as_echo "no" >&6; }
9861 if test -z "$ac_cv_prog_LIPO"; then
9863 # Extract the first word of "lipo", so it can be a program name with args.
9864 set dummy lipo; ac_word=$2
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9866 $as_echo_n "checking for $ac_word... " >&6; }
9867 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9868 $as_echo_n "(cached) " >&6
9870 if test -n "$ac_ct_LIPO"; then
9871 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9877 test -z "$as_dir" && as_dir=.
9878 for ac_exec_ext in '' $ac_executable_extensions; do
9879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9880 ac_cv_prog_ac_ct_LIPO="lipo"
9881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9890 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9891 if test -n "$ac_ct_LIPO"; then
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9893 $as_echo "$ac_ct_LIPO" >&6; }
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9896 $as_echo "no" >&6; }
9899 if test "x$ac_ct_LIPO" = x; then
9902 case $cross_compiling:$ac_tool_warned in
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9905 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9906 ac_tool_warned=yes ;;
9911 LIPO="$ac_cv_prog_LIPO"
9914 if test -n "$ac_tool_prefix"; then
9915 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9916 set dummy ${ac_tool_prefix}otool; ac_word=$2
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9918 $as_echo_n "checking for $ac_word... " >&6; }
9919 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9920 $as_echo_n "(cached) " >&6
9922 if test -n "$OTOOL"; then
9923 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9929 test -z "$as_dir" && as_dir=.
9930 for ac_exec_ext in '' $ac_executable_extensions; do
9931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9932 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9942 OTOOL=$ac_cv_prog_OTOOL
9943 if test -n "$OTOOL"; then
9944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9945 $as_echo "$OTOOL" >&6; }
9947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9948 $as_echo "no" >&6; }
9953 if test -z "$ac_cv_prog_OTOOL"; then
9955 # Extract the first word of "otool", so it can be a program name with args.
9956 set dummy otool; ac_word=$2
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9958 $as_echo_n "checking for $ac_word... " >&6; }
9959 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9960 $as_echo_n "(cached) " >&6
9962 if test -n "$ac_ct_OTOOL"; then
9963 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9969 test -z "$as_dir" && as_dir=.
9970 for ac_exec_ext in '' $ac_executable_extensions; do
9971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9972 ac_cv_prog_ac_ct_OTOOL="otool"
9973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9982 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9983 if test -n "$ac_ct_OTOOL"; then
9984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9985 $as_echo "$ac_ct_OTOOL" >&6; }
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9988 $as_echo "no" >&6; }
9991 if test "x$ac_ct_OTOOL" = x; then
9994 case $cross_compiling:$ac_tool_warned in
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9998 ac_tool_warned=yes ;;
10003 OTOOL="$ac_cv_prog_OTOOL"
10006 if test -n "$ac_tool_prefix"; then
10007 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10008 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10010 $as_echo_n "checking for $ac_word... " >&6; }
10011 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
10012 $as_echo_n "(cached) " >&6
10014 if test -n "$OTOOL64"; then
10015 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10018 for as_dir in $PATH
10021 test -z "$as_dir" && as_dir=.
10022 for ac_exec_ext in '' $ac_executable_extensions; do
10023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10024 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10034 OTOOL64=$ac_cv_prog_OTOOL64
10035 if test -n "$OTOOL64"; then
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10037 $as_echo "$OTOOL64" >&6; }
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10040 $as_echo "no" >&6; }
10045 if test -z "$ac_cv_prog_OTOOL64"; then
10046 ac_ct_OTOOL64=$OTOOL64
10047 # Extract the first word of "otool64", so it can be a program name with args.
10048 set dummy otool64; ac_word=$2
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10050 $as_echo_n "checking for $ac_word... " >&6; }
10051 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
10052 $as_echo_n "(cached) " >&6
10054 if test -n "$ac_ct_OTOOL64"; then
10055 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10058 for as_dir in $PATH
10061 test -z "$as_dir" && as_dir=.
10062 for ac_exec_ext in '' $ac_executable_extensions; do
10063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10064 ac_cv_prog_ac_ct_OTOOL64="otool64"
10065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10074 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10075 if test -n "$ac_ct_OTOOL64"; then
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10077 $as_echo "$ac_ct_OTOOL64" >&6; }
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10080 $as_echo "no" >&6; }
10083 if test "x$ac_ct_OTOOL64" = x; then
10086 case $cross_compiling:$ac_tool_warned in
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10090 ac_tool_warned=yes ;;
10092 OTOOL64=$ac_ct_OTOOL64
10095 OTOOL64="$ac_cv_prog_OTOOL64"
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10125 $as_echo_n "checking for -single_module linker flag... " >&6; }
10126 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
10127 $as_echo_n "(cached) " >&6
10129 lt_cv_apple_cc_single_mod=no
10130 if test -z "${LT_MULTI_MODULE}"; then
10131 # By default we will add the -single_module flag. You can override
10132 # by either setting the environment variable LT_MULTI_MODULE
10133 # non-empty at configure time, or by adding -multi_module to the
10135 rm -rf libconftest.dylib*
10136 echo "int foo(void){return 1;}" > conftest.c
10137 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10138 -dynamiclib -Wl,-single_module conftest.c" >&5
10139 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10140 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10142 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10143 lt_cv_apple_cc_single_mod=yes
10145 cat conftest.err >&5
10147 rm -rf libconftest.dylib*
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10152 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10154 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10155 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
10156 $as_echo_n "(cached) " >&6
10158 lt_cv_ld_exported_symbols_list=no
10159 save_LDFLAGS=$LDFLAGS
10160 echo "_main" > conftest.sym
10161 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10163 /* end confdefs.h. */
10173 if ac_fn_c_try_link "$LINENO"; then :
10174 lt_cv_ld_exported_symbols_list=yes
10176 lt_cv_ld_exported_symbols_list=no
10178 rm -f core conftest.err conftest.$ac_objext \
10179 conftest$ac_exeext conftest.$ac_ext
10180 LDFLAGS="$save_LDFLAGS"
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10184 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10186 rhapsody* | darwin1.[012])
10187 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10189 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10190 darwin*) # darwin 5.x on
10191 # if running on 10.5 or later, the deployment target defaults
10192 # to the OS version, if on x86, and 10.4, the deployment
10193 # target defaults to 10.4. Don't you love it?
10194 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10195 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10196 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10198 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10200 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10204 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10205 _lt_dar_single_mod='$single_module'
10207 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10208 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10210 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10212 if test "$DSYMUTIL" != ":"; then
10213 _lt_dsymutil='~$DSYMUTIL $lib || :'
10220 for ac_header in dlfcn.h
10222 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10224 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
10225 cat >>confdefs.h <<_ACEOF
10226 #define HAVE_DLFCN_H 1
10236 ac_cpp='$CXXCPP $CPPFLAGS'
10237 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10238 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10239 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10240 if test -z "$CXX"; then
10241 if test -n "$CCC"; then
10244 if test -n "$ac_tool_prefix"; then
10245 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10247 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10250 $as_echo_n "checking for $ac_word... " >&6; }
10251 if test "${ac_cv_prog_CXX+set}" = set; then :
10252 $as_echo_n "(cached) " >&6
10254 if test -n "$CXX"; then
10255 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10258 for as_dir in $PATH
10261 test -z "$as_dir" && as_dir=.
10262 for ac_exec_ext in '' $ac_executable_extensions; do
10263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10264 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10274 CXX=$ac_cv_prog_CXX
10275 if test -n "$CXX"; then
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10277 $as_echo "$CXX" >&6; }
10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10280 $as_echo "no" >&6; }
10284 test -n "$CXX" && break
10287 if test -z "$CXX"; then
10289 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10291 # Extract the first word of "$ac_prog", so it can be a program name with args.
10292 set dummy $ac_prog; ac_word=$2
10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10294 $as_echo_n "checking for $ac_word... " >&6; }
10295 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10296 $as_echo_n "(cached) " >&6
10298 if test -n "$ac_ct_CXX"; then
10299 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10302 for as_dir in $PATH
10305 test -z "$as_dir" && as_dir=.
10306 for ac_exec_ext in '' $ac_executable_extensions; do
10307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10308 ac_cv_prog_ac_ct_CXX="$ac_prog"
10309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10318 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10319 if test -n "$ac_ct_CXX"; then
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10321 $as_echo "$ac_ct_CXX" >&6; }
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10324 $as_echo "no" >&6; }
10328 test -n "$ac_ct_CXX" && break
10331 if test "x$ac_ct_CXX" = x; then
10334 case $cross_compiling:$ac_tool_warned in
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10338 ac_tool_warned=yes ;;
10346 # Provide some information about the compiler.
10347 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10350 for ac_option in --version -v -V -qversion; do
10351 { { ac_try="$ac_compiler $ac_option >&5"
10352 case "(($ac_try" in
10353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10354 *) ac_try_echo=$ac_try;;
10356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10357 $as_echo "$ac_try_echo"; } >&5
10358 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10360 if test -s conftest.err; then
10362 ... rest of stderr output deleted ...
10363 10q' conftest.err >conftest.er1
10364 cat conftest.er1 >&5
10366 rm -f conftest.er1 conftest.err
10367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10368 test $ac_status = 0; }
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10372 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10373 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10374 $as_echo_n "(cached) " >&6
10376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10377 /* end confdefs.h. */
10390 if ac_fn_cxx_try_compile "$LINENO"; then :
10391 ac_compiler_gnu=yes
10395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10396 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10400 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10401 if test $ac_compiler_gnu = yes; then
10406 ac_test_CXXFLAGS=${CXXFLAGS+set}
10407 ac_save_CXXFLAGS=$CXXFLAGS
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10409 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10410 if test "${ac_cv_prog_cxx_g+set}" = set; then :
10411 $as_echo_n "(cached) " >&6
10413 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10414 ac_cxx_werror_flag=yes
10415 ac_cv_prog_cxx_g=no
10417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418 /* end confdefs.h. */
10428 if ac_fn_cxx_try_compile "$LINENO"; then :
10429 ac_cv_prog_cxx_g=yes
10432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10433 /* end confdefs.h. */
10443 if ac_fn_cxx_try_compile "$LINENO"; then :
10446 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449 /* end confdefs.h. */
10459 if ac_fn_cxx_try_compile "$LINENO"; then :
10460 ac_cv_prog_cxx_g=yes
10462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10467 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10470 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10471 if test "$ac_test_CXXFLAGS" = set; then
10472 CXXFLAGS=$ac_save_CXXFLAGS
10473 elif test $ac_cv_prog_cxx_g = yes; then
10474 if test "$GXX" = yes; then
10480 if test "$GXX" = yes; then
10487 ac_cpp='$CPP $CPPFLAGS'
10488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10492 depcc="$CXX" am_compiler_list=
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10495 $as_echo_n "checking dependency style of $depcc... " >&6; }
10496 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
10497 $as_echo_n "(cached) " >&6
10499 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10500 # We make a subdir and do the tests there. Otherwise we can end up
10501 # making bogus files that we don't know about and never remove. For
10502 # instance it was reported that on HP-UX the gcc test will end up
10503 # making a dummy file named `D' -- because `-MD' means `put the output
10506 # Copy depcomp to subdir because otherwise we won't find it if we're
10507 # using a relative directory.
10508 cp "$am_depcomp" conftest.dir
10510 # We will build objects and dependencies in a subdirectory because
10511 # it helps to detect inapplicable dependency modes. For instance
10512 # both Tru64's cc and ICC support -MD to output dependencies as a
10513 # side effect of compilation, but ICC will put the dependencies in
10514 # the current directory while Tru64 will put them in the object
10518 am_cv_CXX_dependencies_compiler_type=none
10519 if test "$am_compiler_list" = ""; then
10520 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10522 am__universal=false
10523 case " $depcc " in #(
10524 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10527 for depmode in $am_compiler_list; do
10528 # Setup a source with many dependencies, because some compilers
10529 # like to wrap large dependency lists on column 80 (with \), and
10530 # we should not choose a depcomp mode which is confused by this.
10532 # We need to recreate these files for each test, as the compiler may
10533 # overwrite some of them when testing with obscure command lines.
10534 # This happens at least with the AIX C compiler.
10536 for i in 1 2 3 4 5 6; do
10537 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10538 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10539 # Solaris 8's {/usr,}/bin/sh.
10540 touch sub/conftst$i.h
10542 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10544 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10545 # mode. It turns out that the SunPro C++ compiler does not properly
10546 # handle `-M -o', and we need to detect this. Also, some Intel
10547 # versions had trouble with output in subdirs
10548 am__obj=sub/conftest.${OBJEXT-o}
10549 am__minus_obj="-o $am__obj"
10552 # This depmode causes a compiler race in universal mode.
10553 test "$am__universal" = false || continue
10556 # after this tag, mechanisms are not by side-effect, so they'll
10557 # only be used when explicitly requested
10558 if test "x$enable_dependency_tracking" = xyes; then
10564 msvisualcpp | msvcmsys)
10565 # This compiler won't grok `-c -o', but also, the minuso test has
10566 # not run yet. These depmodes are late enough in the game, and
10567 # so weak that their functioning should not be impacted.
10568 am__obj=conftest.${OBJEXT-o}
10573 if depmode=$depmode \
10574 source=sub/conftest.c object=$am__obj \
10575 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10576 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10577 >/dev/null 2>conftest.err &&
10578 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10579 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10580 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10581 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10582 # icc doesn't choke on unknown options, it will just issue warnings
10583 # or remarks (even with -Werror). So we grep stderr for any message
10584 # that says an option was ignored or not supported.
10585 # When given -MP, icc 7.0 and 7.1 complain thusly:
10586 # icc: Command line warning: ignoring option '-M'; no argument required
10587 # The diagnosis changed in icc 8.0:
10588 # icc: Command line remark: option '-MP' not supported
10589 if (grep 'ignoring option' conftest.err ||
10590 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10591 am_cv_CXX_dependencies_compiler_type=$depmode
10598 rm -rf conftest.dir
10600 am_cv_CXX_dependencies_compiler_type=none
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10605 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10606 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10609 test "x$enable_dependency_tracking" != xno \
10610 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10611 am__fastdepCXX_TRUE=
10612 am__fastdepCXX_FALSE='#'
10614 am__fastdepCXX_TRUE='#'
10615 am__fastdepCXX_FALSE=
10619 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10620 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10621 (test "X$CXX" != "Xg++"))) ; then
10623 ac_cpp='$CXXCPP $CPPFLAGS'
10624 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10625 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10626 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10628 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10629 if test -z "$CXXCPP"; then
10630 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10631 $as_echo_n "(cached) " >&6
10633 # Double quotes because CXXCPP needs to be expanded
10634 for CXXCPP in "$CXX -E" "/lib/cpp"
10636 ac_preproc_ok=false
10637 for ac_cxx_preproc_warn_flag in '' yes
10639 # Use a header file that comes with gcc, so configuring glibc
10640 # with a fresh cross-compiler works.
10641 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10642 # <limits.h> exists even on freestanding compilers.
10643 # On the NeXT, cc -E runs the code through the compiler's parser,
10644 # not just through cpp. "Syntax error" is here to catch this case.
10645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10646 /* end confdefs.h. */
10648 # include <limits.h>
10650 # include <assert.h>
10654 if ac_fn_cxx_try_cpp "$LINENO"; then :
10657 # Broken: fails on valid input.
10660 rm -f conftest.err conftest.$ac_ext
10662 # OK, works on sane cases. Now check whether nonexistent headers
10663 # can be detected and how.
10664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10665 /* end confdefs.h. */
10666 #include <ac_nonexistent.h>
10668 if ac_fn_cxx_try_cpp "$LINENO"; then :
10669 # Broken: success on invalid input.
10672 # Passes both tests.
10676 rm -f conftest.err conftest.$ac_ext
10679 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10680 rm -f conftest.err conftest.$ac_ext
10681 if $ac_preproc_ok; then :
10686 ac_cv_prog_CXXCPP=$CXXCPP
10689 CXXCPP=$ac_cv_prog_CXXCPP
10691 ac_cv_prog_CXXCPP=$CXXCPP
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10694 $as_echo "$CXXCPP" >&6; }
10695 ac_preproc_ok=false
10696 for ac_cxx_preproc_warn_flag in '' yes
10698 # Use a header file that comes with gcc, so configuring glibc
10699 # with a fresh cross-compiler works.
10700 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10701 # <limits.h> exists even on freestanding compilers.
10702 # On the NeXT, cc -E runs the code through the compiler's parser,
10703 # not just through cpp. "Syntax error" is here to catch this case.
10704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h. */
10707 # include <limits.h>
10709 # include <assert.h>
10713 if ac_fn_cxx_try_cpp "$LINENO"; then :
10716 # Broken: fails on valid input.
10719 rm -f conftest.err conftest.$ac_ext
10721 # OK, works on sane cases. Now check whether nonexistent headers
10722 # can be detected and how.
10723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10724 /* end confdefs.h. */
10725 #include <ac_nonexistent.h>
10727 if ac_fn_cxx_try_cpp "$LINENO"; then :
10728 # Broken: success on invalid input.
10731 # Passes both tests.
10735 rm -f conftest.err conftest.$ac_ext
10738 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10739 rm -f conftest.err conftest.$ac_ext
10740 if $ac_preproc_ok; then :
10743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10745 _lt_caught_CXX_error=yes; }
10749 ac_cpp='$CPP $CPPFLAGS'
10750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10755 _lt_caught_CXX_error=yes
10763 enable_win32_dll=yes
10766 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
10767 if test -n "$ac_tool_prefix"; then
10768 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10769 set dummy ${ac_tool_prefix}as; ac_word=$2
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10771 $as_echo_n "checking for $ac_word... " >&6; }
10772 if test "${ac_cv_prog_AS+set}" = set; then :
10773 $as_echo_n "(cached) " >&6
10775 if test -n "$AS"; then
10776 ac_cv_prog_AS="$AS" # Let the user override the test.
10778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10779 for as_dir in $PATH
10782 test -z "$as_dir" && as_dir=.
10783 for ac_exec_ext in '' $ac_executable_extensions; do
10784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10785 ac_cv_prog_AS="${ac_tool_prefix}as"
10786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10796 if test -n "$AS"; then
10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10798 $as_echo "$AS" >&6; }
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10801 $as_echo "no" >&6; }
10806 if test -z "$ac_cv_prog_AS"; then
10808 # Extract the first word of "as", so it can be a program name with args.
10809 set dummy as; ac_word=$2
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10811 $as_echo_n "checking for $ac_word... " >&6; }
10812 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
10813 $as_echo_n "(cached) " >&6
10815 if test -n "$ac_ct_AS"; then
10816 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10819 for as_dir in $PATH
10822 test -z "$as_dir" && as_dir=.
10823 for ac_exec_ext in '' $ac_executable_extensions; do
10824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10825 ac_cv_prog_ac_ct_AS="as"
10826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10835 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10836 if test -n "$ac_ct_AS"; then
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10838 $as_echo "$ac_ct_AS" >&6; }
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10841 $as_echo "no" >&6; }
10844 if test "x$ac_ct_AS" = x; then
10847 case $cross_compiling:$ac_tool_warned in
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10850 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10851 ac_tool_warned=yes ;;
10856 AS="$ac_cv_prog_AS"
10859 if test -n "$ac_tool_prefix"; then
10860 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10861 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10863 $as_echo_n "checking for $ac_word... " >&6; }
10864 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
10865 $as_echo_n "(cached) " >&6
10867 if test -n "$DLLTOOL"; then
10868 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10871 for as_dir in $PATH
10874 test -z "$as_dir" && as_dir=.
10875 for ac_exec_ext in '' $ac_executable_extensions; do
10876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10877 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10887 DLLTOOL=$ac_cv_prog_DLLTOOL
10888 if test -n "$DLLTOOL"; then
10889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10890 $as_echo "$DLLTOOL" >&6; }
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10893 $as_echo "no" >&6; }
10898 if test -z "$ac_cv_prog_DLLTOOL"; then
10899 ac_ct_DLLTOOL=$DLLTOOL
10900 # Extract the first word of "dlltool", so it can be a program name with args.
10901 set dummy dlltool; ac_word=$2
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10903 $as_echo_n "checking for $ac_word... " >&6; }
10904 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
10905 $as_echo_n "(cached) " >&6
10907 if test -n "$ac_ct_DLLTOOL"; then
10908 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10911 for as_dir in $PATH
10914 test -z "$as_dir" && as_dir=.
10915 for ac_exec_ext in '' $ac_executable_extensions; do
10916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10917 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10927 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10928 if test -n "$ac_ct_DLLTOOL"; then
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
10930 $as_echo "$ac_ct_DLLTOOL" >&6; }
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10933 $as_echo "no" >&6; }
10936 if test "x$ac_ct_DLLTOOL" = x; then
10939 case $cross_compiling:$ac_tool_warned in
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10943 ac_tool_warned=yes ;;
10945 DLLTOOL=$ac_ct_DLLTOOL
10948 DLLTOOL="$ac_cv_prog_DLLTOOL"
10951 if test -n "$ac_tool_prefix"; then
10952 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10953 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10955 $as_echo_n "checking for $ac_word... " >&6; }
10956 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
10957 $as_echo_n "(cached) " >&6
10959 if test -n "$OBJDUMP"; then
10960 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10963 for as_dir in $PATH
10966 test -z "$as_dir" && as_dir=.
10967 for ac_exec_ext in '' $ac_executable_extensions; do
10968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10969 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10979 OBJDUMP=$ac_cv_prog_OBJDUMP
10980 if test -n "$OBJDUMP"; then
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10982 $as_echo "$OBJDUMP" >&6; }
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10985 $as_echo "no" >&6; }
10990 if test -z "$ac_cv_prog_OBJDUMP"; then
10991 ac_ct_OBJDUMP=$OBJDUMP
10992 # Extract the first word of "objdump", so it can be a program name with args.
10993 set dummy objdump; ac_word=$2
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10995 $as_echo_n "checking for $ac_word... " >&6; }
10996 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
10997 $as_echo_n "(cached) " >&6
10999 if test -n "$ac_ct_OBJDUMP"; then
11000 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003 for as_dir in $PATH
11006 test -z "$as_dir" && as_dir=.
11007 for ac_exec_ext in '' $ac_executable_extensions; do
11008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11009 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11019 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11020 if test -n "$ac_ct_OBJDUMP"; then
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11022 $as_echo "$ac_ct_OBJDUMP" >&6; }
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11025 $as_echo "no" >&6; }
11028 if test "x$ac_ct_OBJDUMP" = x; then
11031 case $cross_compiling:$ac_tool_warned in
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11034 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11035 ac_tool_warned=yes ;;
11037 OBJDUMP=$ac_ct_OBJDUMP
11040 OBJDUMP="$ac_cv_prog_OBJDUMP"
11046 test -z "$AS" && AS=as
11052 test -z "$DLLTOOL" && DLLTOOL=dlltool
11058 test -z "$OBJDUMP" && OBJDUMP=objdump
11068 # Check whether --enable-shared was given.
11069 if test "${enable_shared+set}" = set; then :
11070 enableval=$enable_shared; p=${PACKAGE-default}
11072 yes) enable_shared=yes ;;
11073 no) enable_shared=no ;;
11076 # Look at the argument we got. We use all the common list separators.
11077 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11078 for pkg in $enableval; do
11080 if test "X$pkg" = "X$p"; then
11099 # Check whether --enable-static was given.
11100 if test "${enable_static+set}" = set; then :
11101 enableval=$enable_static; p=${PACKAGE-default}
11103 yes) enable_static=yes ;;
11104 no) enable_static=no ;;
11107 # Look at the argument we got. We use all the common list separators.
11108 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11109 for pkg in $enableval; do
11111 if test "X$pkg" = "X$p"; then
11131 # Check whether --with-pic was given.
11132 if test "${with_pic+set}" = set; then :
11133 withval=$with_pic; pic_mode="$withval"
11139 test -z "$pic_mode" && pic_mode=default
11147 # Check whether --enable-fast-install was given.
11148 if test "${enable_fast_install+set}" = set; then :
11149 enableval=$enable_fast_install; p=${PACKAGE-default}
11151 yes) enable_fast_install=yes ;;
11152 no) enable_fast_install=no ;;
11154 enable_fast_install=no
11155 # Look at the argument we got. We use all the common list separators.
11156 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11157 for pkg in $enableval; do
11159 if test "X$pkg" = "X$p"; then
11160 enable_fast_install=yes
11167 enable_fast_install=yes
11180 # This can be used to rebuild libtool when needed
11181 LIBTOOL_DEPS="$ltmain"
11183 # Always use our own libtool.
11184 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11210 test -z "$LN_S" && LN_S="ln -s"
11225 if test -n "${ZSH_VERSION+set}" ; then
11226 setopt NO_GLOB_SUBST
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11230 $as_echo_n "checking for objdir... " >&6; }
11231 if test "${lt_cv_objdir+set}" = set; then :
11232 $as_echo_n "(cached) " >&6
11234 rm -f .libs 2>/dev/null
11235 mkdir .libs 2>/dev/null
11236 if test -d .libs; then
11239 # MS-DOS does not allow filenames that begin with a dot.
11242 rmdir .libs 2>/dev/null
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11245 $as_echo "$lt_cv_objdir" >&6; }
11246 objdir=$lt_cv_objdir
11252 cat >>confdefs.h <<_ACEOF
11253 #define LT_OBJDIR "$lt_cv_objdir/"
11274 # AIX sometimes has problems with the GCC collect2 program. For some
11275 # reason, if we set the COLLECT_NAMES environment variable, the problems
11276 # vanish in a puff of smoke.
11277 if test "X${COLLECT_NAMES+set}" != Xset; then
11279 export COLLECT_NAMES
11284 # Sed substitution that helps us do robust quoting. It backslashifies
11285 # metacharacters that are still active within double-quoted strings.
11286 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11288 # Same as above, but do not quote variable references.
11289 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11291 # Sed substitution to delay expansion of an escaped shell variable in a
11292 # double_quote_subst'ed string.
11293 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11295 # Sed substitution to delay expansion of an escaped single quote.
11296 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11298 # Sed substitution to avoid accidental globbing in evaled expressions
11299 no_glob_subst='s/\*/\\\*/g'
11301 # Global variables:
11303 can_build_shared=yes
11305 # All known linkers require a `.a' archive for static linking (except MSVC,
11306 # which needs '.lib').
11309 with_gnu_ld="$lt_cv_prog_gnu_ld"
11312 old_CFLAGS="$CFLAGS"
11314 # Set sane defaults for various variables
11315 test -z "$CC" && CC=cc
11316 test -z "$LTCC" && LTCC=$CC
11317 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11318 test -z "$LD" && LD=ld
11319 test -z "$ac_objext" && ac_objext=o
11321 for cc_temp in $compiler""; do
11323 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11324 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11329 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11332 # Only perform the check for file, if the check method requires it
11333 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11334 case $deplibs_check_method in
11336 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11338 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11339 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
11340 $as_echo_n "(cached) " >&6
11344 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11347 lt_save_MAGIC_CMD="$MAGIC_CMD"
11348 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11349 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11350 for ac_dir in $ac_dummy; do
11352 test -z "$ac_dir" && ac_dir=.
11353 if test -f $ac_dir/${ac_tool_prefix}file; then
11354 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11355 if test -n "$file_magic_test_file"; then
11356 case $deplibs_check_method in
11358 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11359 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11360 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11361 $EGREP "$file_magic_regex" > /dev/null; then
11366 *** Warning: the command libtool uses to detect shared libraries,
11367 *** $file_magic_cmd, produces output that libtool cannot recognize.
11368 *** The result is that libtool may fail to recognize shared libraries
11369 *** as such. This will affect the creation of libtool libraries that
11370 *** depend on shared libraries, but programs linked with such libtool
11371 *** libraries will work regardless of this problem. Nevertheless, you
11372 *** may want to report the problem to your system manager and/or to
11373 *** bug-libtool@gnu.org
11383 MAGIC_CMD="$lt_save_MAGIC_CMD"
11388 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11389 if test -n "$MAGIC_CMD"; then
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11391 $as_echo "$MAGIC_CMD" >&6; }
11393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11394 $as_echo "no" >&6; }
11401 if test -z "$lt_cv_path_MAGIC_CMD"; then
11402 if test -n "$ac_tool_prefix"; then
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11404 $as_echo_n "checking for file... " >&6; }
11405 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
11406 $as_echo_n "(cached) " >&6
11410 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11413 lt_save_MAGIC_CMD="$MAGIC_CMD"
11414 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11415 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11416 for ac_dir in $ac_dummy; do
11418 test -z "$ac_dir" && ac_dir=.
11419 if test -f $ac_dir/file; then
11420 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11421 if test -n "$file_magic_test_file"; then
11422 case $deplibs_check_method in
11424 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11425 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11426 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11427 $EGREP "$file_magic_regex" > /dev/null; then
11432 *** Warning: the command libtool uses to detect shared libraries,
11433 *** $file_magic_cmd, produces output that libtool cannot recognize.
11434 *** The result is that libtool may fail to recognize shared libraries
11435 *** as such. This will affect the creation of libtool libraries that
11436 *** depend on shared libraries, but programs linked with such libtool
11437 *** libraries will work regardless of this problem. Nevertheless, you
11438 *** may want to report the problem to your system manager and/or to
11439 *** bug-libtool@gnu.org
11449 MAGIC_CMD="$lt_save_MAGIC_CMD"
11454 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11455 if test -n "$MAGIC_CMD"; then
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11457 $as_echo "$MAGIC_CMD" >&6; }
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460 $as_echo "no" >&6; }
11473 # Use C for the default configuration in the libtool script
11477 ac_cpp='$CPP $CPPFLAGS'
11478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11483 # Source file extension for C test sources.
11486 # Object file extension for compiled C test sources.
11490 # Code to be used in simple compile tests
11491 lt_simple_compile_test_code="int some_variable = 0;"
11493 # Code to be used in simple link tests
11494 lt_simple_link_test_code='int main(){return(0);}'
11502 # If no C compiler was specified, use CC.
11505 # If no C compiler flags were specified, use CFLAGS.
11506 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11508 # Allow CC to be a program name with arguments.
11511 # Save the default compiler, since it gets overwritten when the other
11512 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11513 compiler_DEFAULT=$CC
11515 # save warnings/boilerplate of simple test code
11516 ac_outfile=conftest.$ac_objext
11517 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11518 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11519 _lt_compiler_boilerplate=`cat conftest.err`
11522 ac_outfile=conftest.$ac_objext
11523 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11524 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11525 _lt_linker_boilerplate=`cat conftest.err`
11530 ## There is no encapsulation within the following macros, do not change
11531 ## the running order or otherwise move them around unless you know exactly
11532 ## what you are doing...
11533 if test -n "$compiler"; then
11535 lt_prog_compiler_no_builtin_flag=
11537 if test "$GCC" = yes; then
11538 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11541 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11542 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11543 $as_echo_n "(cached) " >&6
11545 lt_cv_prog_compiler_rtti_exceptions=no
11546 ac_outfile=conftest.$ac_objext
11547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11548 lt_compiler_flag="-fno-rtti -fno-exceptions"
11549 # Insert the option either (1) after the last *FLAGS variable, or
11550 # (2) before a word containing "conftest.", or (3) at the end.
11551 # Note that $ac_compile itself does not contain backslashes and begins
11552 # with a dollar sign (not a hyphen), so the echo should work correctly.
11553 # The option is referenced via a variable to avoid confusing sed.
11554 lt_compile=`echo "$ac_compile" | $SED \
11555 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11557 -e 's:$: $lt_compiler_flag:'`
11558 (eval echo "\"\$as_me:11558: $lt_compile\"" >&5)
11559 (eval "$lt_compile" 2>conftest.err)
11561 cat conftest.err >&5
11562 echo "$as_me:11562: \$? = $ac_status" >&5
11563 if (exit $ac_status) && test -s "$ac_outfile"; then
11564 # The compiler can only warn and ignore the option if not recognized
11565 # So say no if there are warnings other than the usual output.
11566 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11568 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11569 lt_cv_prog_compiler_rtti_exceptions=yes
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11576 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11578 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11579 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11591 lt_prog_compiler_wl=
11592 lt_prog_compiler_pic=
11593 lt_prog_compiler_static=
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11596 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11598 if test "$GCC" = yes; then
11599 lt_prog_compiler_wl='-Wl,'
11600 lt_prog_compiler_static='-static'
11604 # All AIX code is PIC.
11605 if test "$host_cpu" = ia64; then
11606 # AIX 5 now supports IA64 processor
11607 lt_prog_compiler_static='-Bstatic'
11614 # see comment about AmigaOS4 .so support
11615 lt_prog_compiler_pic='-fPIC'
11618 # FIXME: we need at least 68020 code to build shared libraries, but
11619 # adding the `-m68020' flag to GCC prevents building anything better,
11621 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11626 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11627 # PIC is the default for these OSes.
11630 mingw* | cygwin* | pw32* | os2* | cegcc*)
11631 # This hack is so that the source file can tell whether it is being
11632 # built for inclusion in a dll (and should export symbols for example).
11633 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11634 # (--disable-auto-import) libraries
11635 lt_prog_compiler_pic='-DDLL_EXPORT'
11638 darwin* | rhapsody*)
11639 # PIC is the default on this platform
11640 # Common symbols not allowed in MH_DYLIB files
11641 lt_prog_compiler_pic='-fno-common'
11645 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11646 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11647 # sets the default TLS model and affects inlining.
11653 lt_prog_compiler_pic='-fPIC'
11659 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11660 # Instead, we relocate shared libraries at runtime.
11664 # Just because we use GCC doesn't mean we suddenly get shared libraries
11665 # on systems that don't support them.
11666 lt_prog_compiler_can_build_shared=no
11671 # QNX uses GNU C++, but need to define -shared option too, otherwise
11672 # it will coredump.
11673 lt_prog_compiler_pic='-fPIC -shared'
11677 if test -d /usr/nec; then
11678 lt_prog_compiler_pic=-Kconform_pic
11683 lt_prog_compiler_pic='-fPIC'
11687 # PORTME Check for flag to pass linker flags through the system compiler.
11690 lt_prog_compiler_wl='-Wl,'
11691 if test "$host_cpu" = ia64; then
11692 # AIX 5 now supports IA64 processor
11693 lt_prog_compiler_static='-Bstatic'
11695 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11699 mingw* | cygwin* | pw32* | os2* | cegcc*)
11700 # This hack is so that the source file can tell whether it is being
11701 # built for inclusion in a dll (and should export symbols for example).
11702 lt_prog_compiler_pic='-DDLL_EXPORT'
11705 hpux9* | hpux10* | hpux11*)
11706 lt_prog_compiler_wl='-Wl,'
11707 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11708 # not for PA HP-UX.
11714 lt_prog_compiler_pic='+Z'
11717 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11718 lt_prog_compiler_static='${wl}-a ${wl}archive'
11721 irix5* | irix6* | nonstopux*)
11722 lt_prog_compiler_wl='-Wl,'
11723 # PIC (with -KPIC) is the default.
11724 lt_prog_compiler_static='-non_shared'
11727 linux* | k*bsd*-gnu)
11728 case $cc_basename in
11729 # old Intel for x86_64 which still supported -KPIC.
11731 lt_prog_compiler_wl='-Wl,'
11732 lt_prog_compiler_pic='-KPIC'
11733 lt_prog_compiler_static='-static'
11735 # icc used to be incompatible with GCC.
11736 # ICC 10 doesn't accept -KPIC any more.
11738 lt_prog_compiler_wl='-Wl,'
11739 lt_prog_compiler_pic='-fPIC'
11740 lt_prog_compiler_static='-static'
11742 # Lahey Fortran 8.1.
11744 lt_prog_compiler_wl='-Wl,'
11745 lt_prog_compiler_pic='--shared'
11746 lt_prog_compiler_static='--static'
11748 pgcc* | pgf77* | pgf90* | pgf95*)
11749 # Portland Group compilers (*not* the Pentium gcc compiler,
11750 # which looks to be a dead project)
11751 lt_prog_compiler_wl='-Wl,'
11752 lt_prog_compiler_pic='-fpic'
11753 lt_prog_compiler_static='-Bstatic'
11756 lt_prog_compiler_wl='-Wl,'
11757 # All Alpha code is PIC.
11758 lt_prog_compiler_static='-non_shared'
11761 # IBM XL C 8.0/Fortran 10.1 on PPC
11762 lt_prog_compiler_wl='-Wl,'
11763 lt_prog_compiler_pic='-qpic'
11764 lt_prog_compiler_static='-qstaticlink'
11767 case `$CC -V 2>&1 | sed 5q` in
11770 lt_prog_compiler_pic='-KPIC'
11771 lt_prog_compiler_static='-Bstatic'
11772 lt_prog_compiler_wl='-Wl,'
11775 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11776 lt_prog_compiler_pic='-KPIC'
11777 lt_prog_compiler_static='-Bstatic'
11778 lt_prog_compiler_wl=''
11786 lt_prog_compiler_pic='-KPIC'
11787 lt_prog_compiler_static='-Bstatic'
11791 # QNX uses GNU C++, but need to define -shared option too, otherwise
11792 # it will coredump.
11793 lt_prog_compiler_pic='-fPIC -shared'
11796 osf3* | osf4* | osf5*)
11797 lt_prog_compiler_wl='-Wl,'
11798 # All OSF/1 code is PIC.
11799 lt_prog_compiler_static='-non_shared'
11803 lt_prog_compiler_static='-non_shared'
11807 lt_prog_compiler_pic='-KPIC'
11808 lt_prog_compiler_static='-Bstatic'
11809 case $cc_basename in
11810 f77* | f90* | f95*)
11811 lt_prog_compiler_wl='-Qoption ld ';;
11813 lt_prog_compiler_wl='-Wl,';;
11818 lt_prog_compiler_wl='-Qoption ld '
11819 lt_prog_compiler_pic='-PIC'
11820 lt_prog_compiler_static='-Bstatic'
11823 sysv4 | sysv4.2uw2* | sysv4.3*)
11824 lt_prog_compiler_wl='-Wl,'
11825 lt_prog_compiler_pic='-KPIC'
11826 lt_prog_compiler_static='-Bstatic'
11830 if test -d /usr/nec ;then
11831 lt_prog_compiler_pic='-Kconform_pic'
11832 lt_prog_compiler_static='-Bstatic'
11836 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11837 lt_prog_compiler_wl='-Wl,'
11838 lt_prog_compiler_pic='-KPIC'
11839 lt_prog_compiler_static='-Bstatic'
11843 lt_prog_compiler_wl='-Wl,'
11844 lt_prog_compiler_can_build_shared=no
11848 lt_prog_compiler_pic='-pic'
11849 lt_prog_compiler_static='-Bstatic'
11853 lt_prog_compiler_can_build_shared=no
11859 # For platforms which do not support PIC, -DPIC is meaningless:
11861 lt_prog_compiler_pic=
11864 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
11868 $as_echo "$lt_prog_compiler_pic" >&6; }
11876 # Check to make sure the PIC flag actually works.
11878 if test -n "$lt_prog_compiler_pic"; then
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11880 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11881 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
11882 $as_echo_n "(cached) " >&6
11884 lt_cv_prog_compiler_pic_works=no
11885 ac_outfile=conftest.$ac_objext
11886 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11887 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11888 # Insert the option either (1) after the last *FLAGS variable, or
11889 # (2) before a word containing "conftest.", or (3) at the end.
11890 # Note that $ac_compile itself does not contain backslashes and begins
11891 # with a dollar sign (not a hyphen), so the echo should work correctly.
11892 # The option is referenced via a variable to avoid confusing sed.
11893 lt_compile=`echo "$ac_compile" | $SED \
11894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11896 -e 's:$: $lt_compiler_flag:'`
11897 (eval echo "\"\$as_me:11897: $lt_compile\"" >&5)
11898 (eval "$lt_compile" 2>conftest.err)
11900 cat conftest.err >&5
11901 echo "$as_me:11901: \$? = $ac_status" >&5
11902 if (exit $ac_status) && test -s "$ac_outfile"; then
11903 # The compiler can only warn and ignore the option if not recognized
11904 # So say no if there are warnings other than the usual output.
11905 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11906 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11907 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11908 lt_cv_prog_compiler_pic_works=yes
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11915 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11917 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11918 case $lt_prog_compiler_pic in
11920 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11923 lt_prog_compiler_pic=
11924 lt_prog_compiler_can_build_shared=no
11935 # Check to make sure the static flag actually works.
11937 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11939 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11940 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
11941 $as_echo_n "(cached) " >&6
11943 lt_cv_prog_compiler_static_works=no
11944 save_LDFLAGS="$LDFLAGS"
11945 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11946 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11947 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11948 # The linker can only warn and ignore the option if not recognized
11949 # So say no if there are warnings
11950 if test -s conftest.err; then
11951 # Append any errors to the config.log.
11952 cat conftest.err 1>&5
11953 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11954 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11955 if diff conftest.exp conftest.er2 >/dev/null; then
11956 lt_cv_prog_compiler_static_works=yes
11959 lt_cv_prog_compiler_static_works=yes
11963 LDFLAGS="$save_LDFLAGS"
11966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11967 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11969 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11972 lt_prog_compiler_static=
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11982 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11983 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
11984 $as_echo_n "(cached) " >&6
11986 lt_cv_prog_compiler_c_o=no
11987 $RM -r conftest 2>/dev/null
11991 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11993 lt_compiler_flag="-o out/conftest2.$ac_objext"
11994 # Insert the option either (1) after the last *FLAGS variable, or
11995 # (2) before a word containing "conftest.", or (3) at the end.
11996 # Note that $ac_compile itself does not contain backslashes and begins
11997 # with a dollar sign (not a hyphen), so the echo should work correctly.
11998 lt_compile=`echo "$ac_compile" | $SED \
11999 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12000 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12001 -e 's:$: $lt_compiler_flag:'`
12002 (eval echo "\"\$as_me:12002: $lt_compile\"" >&5)
12003 (eval "$lt_compile" 2>out/conftest.err)
12005 cat out/conftest.err >&5
12006 echo "$as_me:12006: \$? = $ac_status" >&5
12007 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12009 # The compiler can only warn and ignore the option if not recognized
12010 # So say no if there are warnings
12011 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12012 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12013 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12014 lt_cv_prog_compiler_c_o=yes
12019 # SGI C++ compiler will create directory out/ii_files/ for
12020 # template instantiation
12021 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12022 $RM out/* && rmdir out
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12029 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12037 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12038 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12039 $as_echo_n "(cached) " >&6
12041 lt_cv_prog_compiler_c_o=no
12042 $RM -r conftest 2>/dev/null
12046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12048 lt_compiler_flag="-o out/conftest2.$ac_objext"
12049 # Insert the option either (1) after the last *FLAGS variable, or
12050 # (2) before a word containing "conftest.", or (3) at the end.
12051 # Note that $ac_compile itself does not contain backslashes and begins
12052 # with a dollar sign (not a hyphen), so the echo should work correctly.
12053 lt_compile=`echo "$ac_compile" | $SED \
12054 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12055 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12056 -e 's:$: $lt_compiler_flag:'`
12057 (eval echo "\"\$as_me:12057: $lt_compile\"" >&5)
12058 (eval "$lt_compile" 2>out/conftest.err)
12060 cat out/conftest.err >&5
12061 echo "$as_me:12061: \$? = $ac_status" >&5
12062 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12064 # The compiler can only warn and ignore the option if not recognized
12065 # So say no if there are warnings
12066 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12067 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12068 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12069 lt_cv_prog_compiler_c_o=yes
12074 # SGI C++ compiler will create directory out/ii_files/ for
12075 # template instantiation
12076 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12077 $RM out/* && rmdir out
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12084 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12089 hard_links="nottested"
12090 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12091 # do not overwrite the value of need_locks provided by the user
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12093 $as_echo_n "checking if we can lock with hard links... " >&6; }
12096 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12098 ln conftest.a conftest.b 2>&5 || hard_links=no
12099 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12101 $as_echo "$hard_links" >&6; }
12102 if test "$hard_links" = no; then
12103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12104 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12117 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12120 allow_undefined_flag=
12121 always_export_symbols=no
12123 archive_expsym_cmds=
12124 compiler_needs_object=no
12125 enable_shared_with_static_runtimes=no
12126 export_dynamic_flag_spec=
12127 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12128 hardcode_automatic=no
12130 hardcode_direct_absolute=no
12131 hardcode_libdir_flag_spec=
12132 hardcode_libdir_flag_spec_ld=
12133 hardcode_libdir_separator=
12134 hardcode_minus_L=no
12135 hardcode_shlibpath_var=unsupported
12137 link_all_deplibs=unknown
12139 module_expsym_cmds=
12140 old_archive_from_new_cmds=
12141 old_archive_from_expsyms_cmds=
12142 thread_safe_flag_spec=
12143 whole_archive_flag_spec=
12144 # include_expsyms should be a list of space-separated symbols to be *always*
12145 # included in the symbol list
12147 # exclude_expsyms can be an extended regexp of symbols to exclude
12148 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12149 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12150 # as well as any symbol that contains `d'.
12151 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12152 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12153 # platforms (ab)use it in PIC code, but their linkers get confused if
12154 # the symbol is explicitly referenced. Since portable code cannot
12155 # rely on this symbol name, it's probably fine to never include it in
12156 # preloaded symbol tables.
12157 # Exclude shared library initialization/finalization symbols.
12158 extract_expsyms_cmds=
12161 cygwin* | mingw* | pw32* | cegcc*)
12162 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12163 # When not using gcc, we currently assume that we are using
12164 # Microsoft Visual C++.
12165 if test "$GCC" != yes; then
12170 # we just hope/assume this is gcc and not c89 (= MSVC++)
12179 if test "$with_gnu_ld" = yes; then
12180 # If archive_cmds runs LD, not CC, wlarc should be empty
12183 # Set some defaults for GNU ld with shared library support. These
12184 # are reset later if shared libraries are not supported. Putting them
12185 # here allows them to be overridden if necessary.
12186 runpath_var=LD_RUN_PATH
12187 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12188 export_dynamic_flag_spec='${wl}--export-dynamic'
12189 # ancient GNU ld didn't support --whole-archive et. al.
12190 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12191 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12193 whole_archive_flag_spec=
12195 supports_anon_versioning=no
12196 case `$LD -v 2>&1` in
12197 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12198 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12199 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12200 *\ 2.11.*) ;; # other 2.11 versions
12201 *) supports_anon_versioning=yes ;;
12204 # See if GNU ld supports shared libraries.
12207 # On AIX/PPC, the GNU linker is very broken
12208 if test "$host_cpu" != ia64; then
12212 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12213 *** to be unable to reliably create shared libraries on AIX.
12214 *** Therefore, libtool is disabling shared libraries support. If you
12215 *** really care for shared libraries, you may want to modify your PATH
12216 *** so that a non-GNU linker is found, and then restart.
12225 # see comment about AmigaOS4 .so support
12226 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12227 archive_expsym_cmds=''
12230 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)'
12231 hardcode_libdir_flag_spec='-L$libdir'
12232 hardcode_minus_L=yes
12238 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12239 allow_undefined_flag=unsupported
12240 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12241 # support --undefined. This deserves some investigation. FIXME
12242 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12248 cygwin* | mingw* | pw32* | cegcc*)
12249 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12250 # as there is no search path for DLLs.
12251 hardcode_libdir_flag_spec='-L$libdir'
12252 allow_undefined_flag=unsupported
12253 always_export_symbols=no
12254 enable_shared_with_static_runtimes=yes
12255 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12257 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12259 # If the export-symbols file already is a .def file (1st line
12260 # is EXPORTS), use it as is; otherwise, prepend...
12261 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12262 cp $export_symbols $output_objdir/$soname.def;
12264 echo EXPORTS > $output_objdir/$soname.def;
12265 cat $export_symbols >> $output_objdir/$soname.def;
12267 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12275 hardcode_shlibpath_var=no
12276 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12277 export_dynamic_flag_spec='${wl}-E'
12278 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12279 # Instead, shared libraries are loaded at an image base (0x10000000 by
12280 # default) and relocated if they conflict, which is a slow very memory
12281 # consuming and fragmenting process. To avoid this, we pick a random,
12282 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12283 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12284 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12285 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'
12288 gnu* | linux* | tpf* | k*bsd*-gnu)
12290 if test "$host_os" = linux-dietlibc; then
12291 case $cc_basename in
12292 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12295 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12296 && test "$tmp_diet" = no
12299 tmp_sharedflag='-shared'
12300 case $cc_basename,$host_cpu in
12301 pgcc*) # Portland Group C compiler
12302 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12303 tmp_addflag=' $pic_flag'
12305 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
12306 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12307 tmp_addflag=' $pic_flag -Mnomain' ;;
12308 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12309 tmp_addflag=' -i_dynamic' ;;
12310 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12311 tmp_addflag=' -i_dynamic -nofor_main' ;;
12312 ifc* | ifort*) # Intel Fortran compiler
12313 tmp_addflag=' -nofor_main' ;;
12314 lf95*) # Lahey Fortran 8.1
12315 whole_archive_flag_spec=
12316 tmp_sharedflag='--shared' ;;
12317 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12318 tmp_sharedflag='-qmkshrobj'
12321 case `$CC -V 2>&1 | sed 5q` in
12322 *Sun\ C*) # Sun C 5.9
12323 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12324 compiler_needs_object=yes
12325 tmp_sharedflag='-G' ;;
12326 *Sun\ F*) # Sun Fortran 8.3
12327 tmp_sharedflag='-G' ;;
12329 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12331 if test "x$supports_anon_versioning" = xyes; then
12332 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12333 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12334 echo "local: *; };" >> $output_objdir/$libname.ver~
12335 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12338 case $cc_basename in
12340 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12341 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12342 hardcode_libdir_flag_spec=
12343 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12344 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12345 if test "x$supports_anon_versioning" = xyes; then
12346 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12347 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12348 echo "local: *; };" >> $output_objdir/$libname.ver~
12349 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12359 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12360 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12363 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12364 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12369 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12373 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12374 *** create shared libraries on Solaris systems. Therefore, libtool
12375 *** is disabling shared libraries support. We urge you to upgrade GNU
12376 *** binutils to release 2.9.1 or newer. Another option is to modify
12377 *** your PATH or compiler configuration so that the native linker is
12378 *** used, and then restart.
12381 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12382 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12383 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12389 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12390 case `$LD -v 2>&1` in
12391 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12395 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12396 *** reliably create shared libraries on SCO systems. Therefore, libtool
12397 *** is disabling shared libraries support. We urge you to upgrade GNU
12398 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12399 *** your PATH or compiler configuration so that the native linker is
12400 *** used, and then restart.
12405 # For security reasons, it is highly recommended that you always
12406 # use absolute paths for naming shared libraries, and exclude the
12407 # DT_RUNPATH tag from executables and libraries. But doing so
12408 # requires that you compile everything twice, which is a pain.
12409 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12410 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12411 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12412 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12421 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12423 hardcode_direct=yes
12424 hardcode_shlibpath_var=no
12428 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12429 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12430 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12437 if test "$ld_shlibs" = no; then
12439 hardcode_libdir_flag_spec=
12440 export_dynamic_flag_spec=
12441 whole_archive_flag_spec=
12444 # PORTME fill in a description of your system's linker (not GNU ld)
12447 allow_undefined_flag=unsupported
12448 always_export_symbols=yes
12449 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'
12450 # Note: this linker hardcodes the directories in LIBPATH if there
12451 # are no directories specified by -L.
12452 hardcode_minus_L=yes
12453 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12454 # Neither direct hardcoding nor static linking is supported with a
12456 hardcode_direct=unsupported
12461 if test "$host_cpu" = ia64; then
12462 # On IA64, the linker does run time linking by default, so we don't
12463 # have to do anything special.
12464 aix_use_runtimelinking=no
12465 exp_sym_flag='-Bexport'
12468 # If we're using GNU nm, then we don't want the "-C" option.
12469 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12470 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12471 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12473 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'
12475 aix_use_runtimelinking=no
12477 # Test if we are trying to use run time linking or normal
12478 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12479 # need to do runtime linking.
12480 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12481 for ld_flag in $LDFLAGS; do
12482 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12483 aix_use_runtimelinking=yes
12490 exp_sym_flag='-bexport'
12491 no_entry_flag='-bnoentry'
12494 # When large executables or shared objects are built, AIX ld can
12495 # have problems creating the table of contents. If linking a library
12496 # or program results in "error TOC overflow" add -mminimal-toc to
12497 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12498 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12501 hardcode_direct=yes
12502 hardcode_direct_absolute=yes
12503 hardcode_libdir_separator=':'
12504 link_all_deplibs=yes
12505 file_list_spec='${wl}-f,'
12507 if test "$GCC" = yes; then
12508 case $host_os in aix4.[012]|aix4.[012].*)
12509 # We only want to do this on AIX 4.2 and lower, the check
12510 # below for broken collect2 doesn't work under 4.3+
12511 collect2name=`${CC} -print-prog-name=collect2`
12512 if test -f "$collect2name" &&
12513 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12515 # We have reworked collect2
12518 # We have old collect2
12519 hardcode_direct=unsupported
12520 # It fails to find uninstalled libraries when the uninstalled
12521 # path is not listed in the libpath. Setting hardcode_minus_L
12522 # to unsupported forces relinking
12523 hardcode_minus_L=yes
12524 hardcode_libdir_flag_spec='-L$libdir'
12525 hardcode_libdir_separator=
12529 shared_flag='-shared'
12530 if test "$aix_use_runtimelinking" = yes; then
12531 shared_flag="$shared_flag "'${wl}-G'
12535 if test "$host_cpu" = ia64; then
12536 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12537 # chokes on -Wl,-G. The following line is correct:
12540 if test "$aix_use_runtimelinking" = yes; then
12541 shared_flag='${wl}-G'
12543 shared_flag='${wl}-bM:SRE'
12548 export_dynamic_flag_spec='${wl}-bexpall'
12549 # It seems that -bexpall does not export symbols beginning with
12550 # underscore (_), so it is better to generate a list of symbols to export.
12551 always_export_symbols=yes
12552 if test "$aix_use_runtimelinking" = yes; then
12553 # Warning - without using the other runtime loading flags (-brtl),
12554 # -berok will link without error, but may produce a broken library.
12555 allow_undefined_flag='-berok'
12556 # Determine the default libpath from the value encoded in an
12557 # empty executable.
12558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12569 if ac_fn_c_try_link "$LINENO"; then :
12571 lt_aix_libpath_sed='
12572 /Import File Strings/,/^$/ {
12578 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12579 # Check for a 64-bit object if we didn't find anything.
12580 if test -z "$aix_libpath"; then
12581 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12584 rm -f core conftest.err conftest.$ac_objext \
12585 conftest$ac_exeext conftest.$ac_ext
12586 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12588 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12589 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12591 if test "$host_cpu" = ia64; then
12592 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12593 allow_undefined_flag="-z nodefs"
12594 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"
12596 # Determine the default libpath from the value encoded in an
12597 # empty executable.
12598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12599 /* end confdefs.h. */
12609 if ac_fn_c_try_link "$LINENO"; then :
12611 lt_aix_libpath_sed='
12612 /Import File Strings/,/^$/ {
12618 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12619 # Check for a 64-bit object if we didn't find anything.
12620 if test -z "$aix_libpath"; then
12621 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12624 rm -f core conftest.err conftest.$ac_objext \
12625 conftest$ac_exeext conftest.$ac_ext
12626 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12628 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12629 # Warning - without using the other run time loading flags,
12630 # -berok will link without error, but may produce a broken library.
12631 no_undefined_flag=' ${wl}-bernotok'
12632 allow_undefined_flag=' ${wl}-berok'
12633 # Exported symbols can be pulled into shared objects from archives
12634 whole_archive_flag_spec='$convenience'
12635 archive_cmds_need_lc=yes
12636 # This is similar to how AIX traditionally builds its shared libraries.
12637 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'
12645 # see comment about AmigaOS4 .so support
12646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12647 archive_expsym_cmds=''
12650 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)'
12651 hardcode_libdir_flag_spec='-L$libdir'
12652 hardcode_minus_L=yes
12658 export_dynamic_flag_spec=-rdynamic
12661 cygwin* | mingw* | pw32* | cegcc*)
12662 # When not using gcc, we currently assume that we are using
12663 # Microsoft Visual C++.
12664 # hardcode_libdir_flag_spec is actually meaningless, as there is
12665 # no search path for DLLs.
12666 hardcode_libdir_flag_spec=' '
12667 allow_undefined_flag=unsupported
12668 # Tell ltmain to make .lib files, not .a files.
12670 # Tell ltmain to make .dll files, not .so files.
12672 # FIXME: Setting linknames here is a bad hack.
12673 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12674 # The linker will automatically build a .lib file if we build a DLL.
12675 old_archive_from_new_cmds='true'
12676 # FIXME: Should let the user specify the lib program.
12677 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12678 fix_srcfile_path='`cygpath -w "$srcfile"`'
12679 enable_shared_with_static_runtimes=yes
12682 darwin* | rhapsody*)
12685 archive_cmds_need_lc=no
12687 hardcode_automatic=yes
12688 hardcode_shlibpath_var=unsupported
12689 whole_archive_flag_spec=''
12690 link_all_deplibs=yes
12691 allow_undefined_flag="$_lt_dar_allow_undefined"
12692 case $cc_basename in
12693 ifort*) _lt_dar_can_shared=yes ;;
12694 *) _lt_dar_can_shared=$GCC ;;
12696 if test "$_lt_dar_can_shared" = "yes"; then
12697 output_verbose_link_cmd=echo
12698 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12699 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12700 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}"
12701 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}"
12710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12711 hardcode_libdir_flag_spec='-L$libdir'
12712 hardcode_shlibpath_var=no
12719 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12720 # support. Future versions do this automatically, but an explicit c++rt0.o
12721 # does not break anything, and helps significantly (at the cost of a little
12724 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12725 hardcode_libdir_flag_spec='-R$libdir'
12726 hardcode_direct=yes
12727 hardcode_shlibpath_var=no
12730 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12732 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12733 hardcode_direct=yes
12734 hardcode_minus_L=yes
12735 hardcode_shlibpath_var=no
12738 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12739 freebsd* | dragonfly*)
12740 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12741 hardcode_libdir_flag_spec='-R$libdir'
12742 hardcode_direct=yes
12743 hardcode_shlibpath_var=no
12747 if test "$GCC" = yes; then
12748 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'
12750 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'
12752 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12753 hardcode_libdir_separator=:
12754 hardcode_direct=yes
12756 # hardcode_minus_L: Not really in the search PATH,
12757 # but as the default location of the library.
12758 hardcode_minus_L=yes
12759 export_dynamic_flag_spec='${wl}-E'
12763 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12764 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12766 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12768 if test "$with_gnu_ld" = no; then
12769 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12770 hardcode_libdir_flag_spec_ld='+b $libdir'
12771 hardcode_libdir_separator=:
12772 hardcode_direct=yes
12773 hardcode_direct_absolute=yes
12774 export_dynamic_flag_spec='${wl}-E'
12775 # hardcode_minus_L: Not really in the search PATH,
12776 # but as the default location of the library.
12777 hardcode_minus_L=yes
12782 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12785 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12788 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12791 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12797 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12800 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12803 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12807 if test "$with_gnu_ld" = no; then
12808 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12809 hardcode_libdir_separator=:
12814 hardcode_shlibpath_var=no
12817 hardcode_direct=yes
12818 hardcode_direct_absolute=yes
12819 export_dynamic_flag_spec='${wl}-E'
12821 # hardcode_minus_L: Not really in the search PATH,
12822 # but as the default location of the library.
12823 hardcode_minus_L=yes
12829 irix5* | irix6* | nonstopux*)
12830 if test "$GCC" = yes; then
12831 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12832 # Try to use the -exported_symbol ld option, if it does not
12833 # work, assume that -exports_file does not work either and
12834 # implicitly export all symbols.
12835 save_LDFLAGS="$LDFLAGS"
12836 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12838 /* end confdefs.h. */
12841 if ac_fn_c_try_link "$LINENO"; then :
12842 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12845 rm -f core conftest.err conftest.$ac_objext \
12846 conftest$ac_exeext conftest.$ac_ext
12847 LDFLAGS="$save_LDFLAGS"
12849 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12850 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12852 archive_cmds_need_lc='no'
12853 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12854 hardcode_libdir_separator=:
12856 link_all_deplibs=yes
12860 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12861 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12863 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12865 hardcode_libdir_flag_spec='-R$libdir'
12866 hardcode_direct=yes
12867 hardcode_shlibpath_var=no
12871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12872 hardcode_direct=yes
12873 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12874 hardcode_libdir_separator=:
12875 hardcode_shlibpath_var=no
12882 if test -f /usr/libexec/ld.so; then
12883 hardcode_direct=yes
12884 hardcode_shlibpath_var=no
12885 hardcode_direct_absolute=yes
12886 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12887 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12888 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12889 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12890 export_dynamic_flag_spec='${wl}-E'
12893 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12894 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12895 hardcode_libdir_flag_spec='-R$libdir'
12898 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12899 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12909 hardcode_libdir_flag_spec='-L$libdir'
12910 hardcode_minus_L=yes
12911 allow_undefined_flag=unsupported
12912 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'
12913 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12917 if test "$GCC" = yes; then
12918 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12919 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12921 allow_undefined_flag=' -expect_unresolved \*'
12922 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12924 archive_cmds_need_lc='no'
12925 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12926 hardcode_libdir_separator=:
12929 osf4* | osf5*) # as osf3* with the addition of -msym flag
12930 if test "$GCC" = yes; then
12931 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12932 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12933 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12935 allow_undefined_flag=' -expect_unresolved \*'
12936 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12937 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~
12938 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12940 # Both c and cxx compiler support -rpath directly
12941 hardcode_libdir_flag_spec='-rpath $libdir'
12943 archive_cmds_need_lc='no'
12944 hardcode_libdir_separator=:
12948 no_undefined_flag=' -z defs'
12949 if test "$GCC" = yes; then
12951 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12952 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12953 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12955 case `$CC -V 2>&1` in
12958 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12959 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12960 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12964 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12965 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12966 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12970 hardcode_libdir_flag_spec='-R$libdir'
12971 hardcode_shlibpath_var=no
12973 solaris2.[0-5] | solaris2.[0-5].*) ;;
12975 # The compiler driver will combine and reorder linker options,
12976 # but understands `-z linker_flag'. GCC discards it without `$wl',
12977 # but is careful enough not to reorder.
12978 # Supported since Solaris 2.6 (maybe 2.5.1?)
12979 if test "$GCC" = yes; then
12980 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12982 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12986 link_all_deplibs=yes
12990 if test "x$host_vendor" = xsequent; then
12991 # Use $CC to link under sequent, because it throws in some extra .o
12992 # files that make .init and .fini sections work.
12993 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12995 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12997 hardcode_libdir_flag_spec='-L$libdir'
12998 hardcode_direct=yes
12999 hardcode_minus_L=yes
13000 hardcode_shlibpath_var=no
13004 case $host_vendor in
13006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13007 hardcode_direct=yes # is this really true???
13010 ## LD is ld it makes a PLAMLIB
13011 ## CC just makes a GrossModule.
13012 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13013 reload_cmds='$CC -r -o $output$reload_objs'
13017 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13018 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13021 runpath_var='LD_RUN_PATH'
13022 hardcode_shlibpath_var=no
13026 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13027 hardcode_shlibpath_var=no
13028 export_dynamic_flag_spec='-Bexport'
13032 if test -d /usr/nec; then
13033 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13034 hardcode_shlibpath_var=no
13035 runpath_var=LD_RUN_PATH
13036 hardcode_runpath_var=yes
13041 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13042 no_undefined_flag='${wl}-z,text'
13043 archive_cmds_need_lc=no
13044 hardcode_shlibpath_var=no
13045 runpath_var='LD_RUN_PATH'
13047 if test "$GCC" = yes; then
13048 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13049 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13051 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13052 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13056 sysv5* | sco3.2v5* | sco5v6*)
13057 # Note: We can NOT use -z defs as we might desire, because we do not
13058 # link with -lc, and that would cause any symbols used from libc to
13059 # always be unresolved, which means just about no library would
13060 # ever link correctly. If we're not using GNU ld we use -z text
13061 # though, which does catch some bad symbols but isn't as heavy-handed
13063 no_undefined_flag='${wl}-z,text'
13064 allow_undefined_flag='${wl}-z,nodefs'
13065 archive_cmds_need_lc=no
13066 hardcode_shlibpath_var=no
13067 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13068 hardcode_libdir_separator=':'
13069 link_all_deplibs=yes
13070 export_dynamic_flag_spec='${wl}-Bexport'
13071 runpath_var='LD_RUN_PATH'
13073 if test "$GCC" = yes; then
13074 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13075 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13077 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13078 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13083 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13084 hardcode_libdir_flag_spec='-L$libdir'
13085 hardcode_shlibpath_var=no
13093 if test x$host_vendor = xsni; then
13095 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13096 export_dynamic_flag_spec='${wl}-Blargedynsym'
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13103 $as_echo "$ld_shlibs" >&6; }
13104 test "$ld_shlibs" = no && can_build_shared=no
13106 with_gnu_ld=$with_gnu_ld
13123 # Do we need to explicitly link libc?
13125 case "x$archive_cmds_need_lc" in
13127 # Assume -lc should be added
13128 archive_cmds_need_lc=yes
13130 if test "$enable_shared" = yes && test "$GCC" = yes; then
13131 case $archive_cmds in
13133 # FIXME: we may have to deal with multi-command sequences.
13136 # Test whether the compiler implicitly links with -lc since on some
13137 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13138 # to ld, don't add -lc before -lgcc.
13139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13140 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13142 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13144 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13145 (eval $ac_compile) 2>&5
13147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13148 test $ac_status = 0; } 2>conftest.err; then
13151 libobjs=conftest.$ac_objext
13153 wl=$lt_prog_compiler_wl
13154 pic_flag=$lt_prog_compiler_pic
13160 lt_save_allow_undefined_flag=$allow_undefined_flag
13161 allow_undefined_flag=
13162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13163 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13166 test $ac_status = 0; }
13168 archive_cmds_need_lc=no
13170 archive_cmds_need_lc=yes
13172 allow_undefined_flag=$lt_save_allow_undefined_flag
13174 cat conftest.err 1>&5
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
13178 $as_echo "$archive_cmds_need_lc" >&6; }
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13342 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13344 if test "$GCC" = yes; then
13346 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13347 *) lt_awk_arg="/^libraries:/" ;;
13349 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13350 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
13351 # if the path contains ";" then we assume it to be the separator
13352 # otherwise default to the standard path separator (i.e. ":") - it is
13353 # assumed that no part of a normal pathname contains ";" but that should
13354 # okay in the real world where ";" in dirpaths is itself problematic.
13355 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13357 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13359 # Ok, now we have the path, separated by spaces, we can step through it
13360 # and add multilib dir if necessary.
13361 lt_tmp_lt_search_path_spec=
13362 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13363 for lt_sys_path in $lt_search_path_spec; do
13364 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13365 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13367 test -d "$lt_sys_path" && \
13368 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13371 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
13372 BEGIN {RS=" "; FS="/|\n";} {
13375 for (lt_i = NF; lt_i > 0; lt_i--) {
13376 if ($lt_i != "" && $lt_i != ".") {
13377 if ($lt_i == "..") {
13380 if (lt_count == 0) {
13381 lt_foo="/" $lt_i lt_foo;
13388 if (lt_foo != "") { lt_freq[lt_foo]++; }
13389 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13391 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
13393 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13395 library_names_spec=
13396 libname_spec='lib$name'
13400 postuninstall_cmds=
13404 shlibpath_overrides_runpath=unknown
13406 dynamic_linker="$host_os ld.so"
13407 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13408 need_lib_prefix=unknown
13409 hardcode_into_libs=no
13411 # when you set need_version to no, make sure it does not cause -set_version
13412 # flags to be left without arguments
13413 need_version=unknown
13418 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13419 shlibpath_var=LIBPATH
13421 # AIX 3 has no versioning support, so we append a major version to the name.
13422 soname_spec='${libname}${release}${shared_ext}$major'
13429 hardcode_into_libs=yes
13430 if test "$host_cpu" = ia64; then
13431 # AIX 5 supports IA64
13432 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13433 shlibpath_var=LD_LIBRARY_PATH
13435 # With GCC up to 2.95.x, collect2 would create an import file
13436 # for dependence libraries. The import file would start with
13437 # the line `#! .'. This would cause the generated library to
13438 # depend on `.', always an invalid library. This was fixed in
13439 # development snapshots of GCC prior to 3.0.
13441 aix4 | aix4.[01] | aix4.[01].*)
13442 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13444 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13447 can_build_shared=no
13451 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13452 # soname into executable. Probably we can add versioning support to
13453 # collect2, so additional links can be useful in future.
13454 if test "$aix_use_runtimelinking" = yes; then
13455 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13456 # instead of lib<name>.a to let people know that these are not
13457 # typical AIX shared libraries.
13458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13460 # We preserve .a as extension for shared libraries through AIX4.2
13461 # and later when we are not doing run time linking.
13462 library_names_spec='${libname}${release}.a $libname.a'
13463 soname_spec='${libname}${release}${shared_ext}$major'
13465 shlibpath_var=LIBPATH
13472 # Since July 2007 AmigaOS4 officially supports .so libraries.
13473 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13477 library_names_spec='$libname.ixlibrary $libname.a'
13478 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13479 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
13485 library_names_spec='${libname}${shared_ext}'
13486 dynamic_linker="$host_os ld.so"
13487 shlibpath_var=LIBRARY_PATH
13493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13494 soname_spec='${libname}${release}${shared_ext}$major'
13495 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13496 shlibpath_var=LD_LIBRARY_PATH
13497 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13498 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13499 # the default ld.so.conf also contains /usr/contrib/lib and
13500 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13501 # libtool to hard-code these into programs
13504 cygwin* | mingw* | pw32* | cegcc*)
13505 version_type=windows
13510 case $GCC,$host_os in
13511 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13512 library_names_spec='$libname.dll.a'
13513 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13514 postinstall_cmds='base_file=`basename \${file}`~
13515 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13516 dldir=$destdir/`dirname \$dlpath`~
13517 test -d \$dldir || mkdir -p \$dldir~
13518 $install_prog $dir/$dlname \$dldir/$dlname~
13519 chmod a+x \$dldir/$dlname~
13520 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13521 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13523 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13524 dlpath=$dir/\$dldll~
13526 shlibpath_overrides_runpath=yes
13530 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13531 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13532 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13535 # MinGW DLLs use traditional 'lib' prefix
13536 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13537 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13538 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13539 # It is most probably a Windows format PATH printed by
13540 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13541 # path with ; separators, and with drive letters. We can handle the
13542 # drive letters (cygwin fileutils understands them), so leave them,
13543 # especially as we might pass files found there to a mingw objdump,
13544 # which wouldn't understand a cygwinified path. Ahh.
13545 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13547 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13551 # pw32 DLLs use 'pw' prefix rather than 'lib'
13552 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13558 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13561 dynamic_linker='Win32 ld.exe'
13562 # FIXME: first we should search . and the directory the executable is in
13566 darwin* | rhapsody*)
13567 dynamic_linker="$host_os dyld"
13568 version_type=darwin
13571 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13572 soname_spec='${libname}${release}${major}$shared_ext'
13573 shlibpath_overrides_runpath=yes
13574 shlibpath_var=DYLD_LIBRARY_PATH
13575 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13577 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13578 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13586 soname_spec='${libname}${release}${shared_ext}$major'
13587 shlibpath_var=LD_LIBRARY_PATH
13594 freebsd* | dragonfly*)
13595 # DragonFly does not have aout. When/if they implement a new
13596 # versioning mechanism, adjust this.
13597 if test -x /usr/bin/objformat; then
13598 objformat=`/usr/bin/objformat`
13601 freebsd[123]*) objformat=aout ;;
13602 *) objformat=elf ;;
13605 version_type=freebsd-$objformat
13606 case $version_type in
13608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13613 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13617 shlibpath_var=LD_LIBRARY_PATH
13620 shlibpath_overrides_runpath=yes
13622 freebsd3.[01]* | freebsdelf3.[01]*)
13623 shlibpath_overrides_runpath=yes
13624 hardcode_into_libs=yes
13626 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13627 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13628 shlibpath_overrides_runpath=no
13629 hardcode_into_libs=yes
13631 *) # from 4.6 on, and DragonFly
13632 shlibpath_overrides_runpath=yes
13633 hardcode_into_libs=yes
13642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13643 soname_spec='${libname}${release}${shared_ext}$major'
13644 shlibpath_var=LD_LIBRARY_PATH
13645 hardcode_into_libs=yes
13648 hpux9* | hpux10* | hpux11*)
13649 # Give a soname corresponding to the major version so that dld.sl refuses to
13650 # link against other versions.
13657 hardcode_into_libs=yes
13658 dynamic_linker="$host_os dld.so"
13659 shlibpath_var=LD_LIBRARY_PATH
13660 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13662 soname_spec='${libname}${release}${shared_ext}$major'
13663 if test "X$HPUX_IA64_MODE" = X32; then
13664 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13666 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13668 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13672 hardcode_into_libs=yes
13673 dynamic_linker="$host_os dld.sl"
13674 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13675 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13677 soname_spec='${libname}${release}${shared_ext}$major'
13678 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13679 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13683 dynamic_linker="$host_os dld.sl"
13684 shlibpath_var=SHLIB_PATH
13685 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13687 soname_spec='${libname}${release}${shared_ext}$major'
13690 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13691 postinstall_cmds='chmod 555 $lib'
13698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13699 soname_spec='${libname}${release}${shared_ext}$major'
13700 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13701 shlibpath_var=LD_LIBRARY_PATH
13702 shlibpath_overrides_runpath=no
13703 hardcode_into_libs=yes
13706 irix5* | irix6* | nonstopux*)
13708 nonstopux*) version_type=nonstopux ;;
13710 if test "$lt_cv_prog_gnu_ld" = yes; then
13718 soname_spec='${libname}${release}${shared_ext}$major'
13719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13721 irix5* | nonstopux*)
13722 libsuff= shlibsuff=
13725 case $LD in # libtool.m4 will add one of these switches to LD
13726 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13727 libsuff= shlibsuff= libmagic=32-bit;;
13728 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13729 libsuff=32 shlibsuff=N32 libmagic=N32;;
13730 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13731 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13732 *) libsuff= shlibsuff= libmagic=never-match;;
13736 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13737 shlibpath_overrides_runpath=no
13738 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13739 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13740 hardcode_into_libs=yes
13743 # No shared lib support for Linux oldld, aout, or coff.
13744 linux*oldld* | linux*aout* | linux*coff*)
13748 # This must be Linux ELF.
13749 linux* | k*bsd*-gnu)
13753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13754 soname_spec='${libname}${release}${shared_ext}$major'
13755 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13756 shlibpath_var=LD_LIBRARY_PATH
13757 shlibpath_overrides_runpath=no
13758 # Some binutils ld are patched to set DT_RUNPATH
13759 save_LDFLAGS=$LDFLAGS
13760 save_libdir=$libdir
13761 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13762 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13764 /* end confdefs.h. */
13774 if ac_fn_c_try_link "$LINENO"; then :
13775 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13776 shlibpath_overrides_runpath=yes
13779 rm -f core conftest.err conftest.$ac_objext \
13780 conftest$ac_exeext conftest.$ac_ext
13781 LDFLAGS=$save_LDFLAGS
13782 libdir=$save_libdir
13784 # This implies no fast_install, which is unacceptable.
13785 # Some rework will be needed to allow for fast_install
13786 # before this can be enabled.
13787 hardcode_into_libs=yes
13789 # Add ABI-specific directories to the system library path.
13790 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
13792 # Append ld.so.conf contents to the search path
13793 if test -f /etc/ld.so.conf; then
13794 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;/^$/d' | tr '\n' ' '`
13795 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13798 # We used to test for /lib/ld.so.1 and disable shared libraries on
13799 # powerpc, because MkLinux only supported shared libraries with the
13800 # GNU dynamic linker. Since this was broken with cross compilers,
13801 # most powerpc-linux boxes support dynamic linking these days and
13802 # people can always --disable-shared, the test was removed, and we
13803 # assume the GNU/Linux dynamic linker is in use.
13804 dynamic_linker='GNU/Linux ld.so'
13811 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13813 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13814 dynamic_linker='NetBSD (a.out) ld.so'
13816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13817 soname_spec='${libname}${release}${shared_ext}$major'
13818 dynamic_linker='NetBSD ld.elf_so'
13820 shlibpath_var=LD_LIBRARY_PATH
13821 shlibpath_overrides_runpath=yes
13822 hardcode_into_libs=yes
13827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13828 shlibpath_var=LD_LIBRARY_PATH
13829 shlibpath_overrides_runpath=yes
13836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13837 soname_spec='${libname}${release}${shared_ext}$major'
13838 shlibpath_var=LD_LIBRARY_PATH
13839 shlibpath_overrides_runpath=no
13840 hardcode_into_libs=yes
13841 dynamic_linker='ldqnx.so'
13846 sys_lib_dlsearch_path_spec="/usr/lib"
13848 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13850 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13851 *) need_version=no ;;
13853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13855 shlibpath_var=LD_LIBRARY_PATH
13856 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13858 openbsd2.[89] | openbsd2.[89].*)
13859 shlibpath_overrides_runpath=no
13862 shlibpath_overrides_runpath=yes
13866 shlibpath_overrides_runpath=yes
13871 libname_spec='$name'
13874 library_names_spec='$libname${shared_ext} $libname.a'
13875 dynamic_linker='OS/2 ld.exe'
13876 shlibpath_var=LIBPATH
13879 osf3* | osf4* | osf5*)
13883 soname_spec='${libname}${release}${shared_ext}$major'
13884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13885 shlibpath_var=LD_LIBRARY_PATH
13886 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13887 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13899 soname_spec='${libname}${release}${shared_ext}$major'
13900 shlibpath_var=LD_LIBRARY_PATH
13901 shlibpath_overrides_runpath=yes
13902 hardcode_into_libs=yes
13903 # ldd complains unless libraries are executable
13904 postinstall_cmds='chmod +x $lib'
13909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13910 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13911 shlibpath_var=LD_LIBRARY_PATH
13912 shlibpath_overrides_runpath=yes
13913 if test "$with_gnu_ld" = yes; then
13921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13922 soname_spec='${libname}${release}${shared_ext}$major'
13923 shlibpath_var=LD_LIBRARY_PATH
13924 case $host_vendor in
13926 shlibpath_overrides_runpath=no
13928 runpath_var=LD_RUN_PATH
13936 shlibpath_overrides_runpath=no
13937 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13943 if test -d /usr/nec ;then
13945 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13946 soname_spec='$libname${shared_ext}.$major'
13947 shlibpath_var=LD_LIBRARY_PATH
13951 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13952 version_type=freebsd-elf
13955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13956 soname_spec='${libname}${release}${shared_ext}$major'
13957 shlibpath_var=LD_LIBRARY_PATH
13958 shlibpath_overrides_runpath=yes
13959 hardcode_into_libs=yes
13960 if test "$with_gnu_ld" = yes; then
13961 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13963 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13966 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13970 sys_lib_dlsearch_path_spec='/usr/lib'
13974 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13979 shlibpath_var=LD_LIBRARY_PATH
13980 shlibpath_overrides_runpath=no
13981 hardcode_into_libs=yes
13986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13987 soname_spec='${libname}${release}${shared_ext}$major'
13988 shlibpath_var=LD_LIBRARY_PATH
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13996 $as_echo "$dynamic_linker" >&6; }
13997 test "$dynamic_linker" = no && can_build_shared=no
13999 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14000 if test "$GCC" = yes; then
14001 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14004 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14005 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14007 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14008 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14098 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14100 if test -n "$hardcode_libdir_flag_spec" ||
14101 test -n "$runpath_var" ||
14102 test "X$hardcode_automatic" = "Xyes" ; then
14104 # We can hardcode non-existent directories.
14105 if test "$hardcode_direct" != no &&
14106 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14107 # have to relink, otherwise we might link with an installed library
14108 # when we should be linking with a yet-to-be-installed one
14109 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14110 test "$hardcode_minus_L" != no; then
14111 # Linking always hardcodes the temporary library directory.
14112 hardcode_action=relink
14114 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14115 hardcode_action=immediate
14118 # We cannot hardcode anything, or else we can only hardcode existing
14120 hardcode_action=unsupported
14122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14123 $as_echo "$hardcode_action" >&6; }
14125 if test "$hardcode_action" = relink ||
14126 test "$inherit_rpath" = yes; then
14127 # Fast installation is not supported
14128 enable_fast_install=no
14129 elif test "$shlibpath_overrides_runpath" = yes ||
14130 test "$enable_shared" = no; then
14131 # Fast installation is not necessary
14132 enable_fast_install=needless
14140 if test "x$enable_dlopen" != xyes; then
14141 enable_dlopen=unknown
14142 enable_dlopen_self=unknown
14143 enable_dlopen_self_static=unknown
14150 lt_cv_dlopen="load_add_on"
14152 lt_cv_dlopen_self=yes
14155 mingw* | pw32* | cegcc*)
14156 lt_cv_dlopen="LoadLibrary"
14161 lt_cv_dlopen="dlopen"
14166 # if libdl is installed we need to link against it
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14168 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14169 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14170 $as_echo_n "(cached) " >&6
14172 ac_check_lib_save_LIBS=$LIBS
14174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14175 /* end confdefs.h. */
14177 /* Override any GCC internal prototype to avoid an error.
14178 Use char because int might match the return type of a GCC
14179 builtin and then its argument prototype would still apply. */
14192 if ac_fn_c_try_link "$LINENO"; then :
14193 ac_cv_lib_dl_dlopen=yes
14195 ac_cv_lib_dl_dlopen=no
14197 rm -f core conftest.err conftest.$ac_objext \
14198 conftest$ac_exeext conftest.$ac_ext
14199 LIBS=$ac_check_lib_save_LIBS
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14202 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14203 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14204 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14207 lt_cv_dlopen="dyld"
14209 lt_cv_dlopen_self=yes
14216 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14217 if test "x$ac_cv_func_shl_load" = x""yes; then :
14218 lt_cv_dlopen="shl_load"
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14221 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14222 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
14223 $as_echo_n "(cached) " >&6
14225 ac_check_lib_save_LIBS=$LIBS
14227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14228 /* end confdefs.h. */
14230 /* Override any GCC internal prototype to avoid an error.
14231 Use char because int might match the return type of a GCC
14232 builtin and then its argument prototype would still apply. */
14240 return shl_load ();
14245 if ac_fn_c_try_link "$LINENO"; then :
14246 ac_cv_lib_dld_shl_load=yes
14248 ac_cv_lib_dld_shl_load=no
14250 rm -f core conftest.err conftest.$ac_objext \
14251 conftest$ac_exeext conftest.$ac_ext
14252 LIBS=$ac_check_lib_save_LIBS
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14255 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14256 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
14257 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14259 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14260 if test "x$ac_cv_func_dlopen" = x""yes; then :
14261 lt_cv_dlopen="dlopen"
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14264 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14265 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14266 $as_echo_n "(cached) " >&6
14268 ac_check_lib_save_LIBS=$LIBS
14270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14271 /* end confdefs.h. */
14273 /* Override any GCC internal prototype to avoid an error.
14274 Use char because int might match the return type of a GCC
14275 builtin and then its argument prototype would still apply. */
14288 if ac_fn_c_try_link "$LINENO"; then :
14289 ac_cv_lib_dl_dlopen=yes
14291 ac_cv_lib_dl_dlopen=no
14293 rm -f core conftest.err conftest.$ac_objext \
14294 conftest$ac_exeext conftest.$ac_ext
14295 LIBS=$ac_check_lib_save_LIBS
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14298 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14299 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14300 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14303 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14304 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
14305 $as_echo_n "(cached) " >&6
14307 ac_check_lib_save_LIBS=$LIBS
14308 LIBS="-lsvld $LIBS"
14309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310 /* end confdefs.h. */
14312 /* Override any GCC internal prototype to avoid an error.
14313 Use char because int might match the return type of a GCC
14314 builtin and then its argument prototype would still apply. */
14327 if ac_fn_c_try_link "$LINENO"; then :
14328 ac_cv_lib_svld_dlopen=yes
14330 ac_cv_lib_svld_dlopen=no
14332 rm -f core conftest.err conftest.$ac_objext \
14333 conftest$ac_exeext conftest.$ac_ext
14334 LIBS=$ac_check_lib_save_LIBS
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14337 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14338 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
14339 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14342 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14343 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
14344 $as_echo_n "(cached) " >&6
14346 ac_check_lib_save_LIBS=$LIBS
14348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14349 /* end confdefs.h. */
14351 /* Override any GCC internal prototype to avoid an error.
14352 Use char because int might match the return type of a GCC
14353 builtin and then its argument prototype would still apply. */
14361 return dld_link ();
14366 if ac_fn_c_try_link "$LINENO"; then :
14367 ac_cv_lib_dld_dld_link=yes
14369 ac_cv_lib_dld_dld_link=no
14371 rm -f core conftest.err conftest.$ac_objext \
14372 conftest$ac_exeext conftest.$ac_ext
14373 LIBS=$ac_check_lib_save_LIBS
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14376 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14377 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
14378 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14399 if test "x$lt_cv_dlopen" != xno; then
14405 case $lt_cv_dlopen in
14407 save_CPPFLAGS="$CPPFLAGS"
14408 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14410 save_LDFLAGS="$LDFLAGS"
14411 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14414 LIBS="$lt_cv_dlopen_libs $LIBS"
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14417 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14418 if test "${lt_cv_dlopen_self+set}" = set; then :
14419 $as_echo_n "(cached) " >&6
14421 if test "$cross_compiling" = yes; then :
14422 lt_cv_dlopen_self=cross
14424 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14425 lt_status=$lt_dlunknown
14426 cat > conftest.$ac_ext <<_LT_EOF
14427 #line 14427 "configure"
14428 #include "confdefs.h"
14437 # define LT_DLGLOBAL RTLD_GLOBAL
14440 # define LT_DLGLOBAL DL_GLOBAL
14442 # define LT_DLGLOBAL 0
14446 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14447 find out it does not work in some platform. */
14448 #ifndef LT_DLLAZY_OR_NOW
14450 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14453 # define LT_DLLAZY_OR_NOW DL_LAZY
14456 # define LT_DLLAZY_OR_NOW RTLD_NOW
14459 # define LT_DLLAZY_OR_NOW DL_NOW
14461 # define LT_DLLAZY_OR_NOW 0
14468 void fnord() { int i=42;}
14471 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14472 int status = $lt_dlunknown;
14476 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14477 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14478 /* dlclose (self); */
14486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14487 (eval $ac_link) 2>&5
14489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14490 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14491 (./conftest; exit; ) >&5 2>/dev/null
14493 case x$lt_status in
14494 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14495 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14496 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14499 # compilation failed
14500 lt_cv_dlopen_self=no
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14508 $as_echo "$lt_cv_dlopen_self" >&6; }
14510 if test "x$lt_cv_dlopen_self" = xyes; then
14511 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14513 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14514 if test "${lt_cv_dlopen_self_static+set}" = set; then :
14515 $as_echo_n "(cached) " >&6
14517 if test "$cross_compiling" = yes; then :
14518 lt_cv_dlopen_self_static=cross
14520 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14521 lt_status=$lt_dlunknown
14522 cat > conftest.$ac_ext <<_LT_EOF
14523 #line 14523 "configure"
14524 #include "confdefs.h"
14533 # define LT_DLGLOBAL RTLD_GLOBAL
14536 # define LT_DLGLOBAL DL_GLOBAL
14538 # define LT_DLGLOBAL 0
14542 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14543 find out it does not work in some platform. */
14544 #ifndef LT_DLLAZY_OR_NOW
14546 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14549 # define LT_DLLAZY_OR_NOW DL_LAZY
14552 # define LT_DLLAZY_OR_NOW RTLD_NOW
14555 # define LT_DLLAZY_OR_NOW DL_NOW
14557 # define LT_DLLAZY_OR_NOW 0
14564 void fnord() { int i=42;}
14567 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14568 int status = $lt_dlunknown;
14572 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14573 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14574 /* dlclose (self); */
14582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14583 (eval $ac_link) 2>&5
14585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14586 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14587 (./conftest; exit; ) >&5 2>/dev/null
14589 case x$lt_status in
14590 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14591 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14592 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14595 # compilation failed
14596 lt_cv_dlopen_self_static=no
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14604 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14607 CPPFLAGS="$save_CPPFLAGS"
14608 LDFLAGS="$save_LDFLAGS"
14613 case $lt_cv_dlopen_self in
14614 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14615 *) enable_dlopen_self=unknown ;;
14618 case $lt_cv_dlopen_self_static in
14619 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14620 *) enable_dlopen_self_static=unknown ;;
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14643 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14644 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14645 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14646 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14648 $as_echo "yes" >&6; }
14650 # FIXME - insert some real tests, host_os isn't really good enough
14653 if test -n "$STRIP" ; then
14654 striplib="$STRIP -x"
14655 old_striplib="$STRIP -S"
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14657 $as_echo "yes" >&6; }
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14660 $as_echo "no" >&6; }
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14665 $as_echo "no" >&6; }
14681 # Report which library types will actually be built
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14683 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14685 $as_echo "$can_build_shared" >&6; }
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14688 $as_echo_n "checking whether to build shared libraries... " >&6; }
14689 test "$can_build_shared" = "no" && enable_shared=no
14691 # On AIX, shared libraries and static libraries use the same namespace, and
14692 # are all built from PIC.
14695 test "$enable_shared" = yes && enable_static=no
14696 if test -n "$RANLIB"; then
14697 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14698 postinstall_cmds='$RANLIB $lib'
14703 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14704 test "$enable_shared" = yes && enable_static=no
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14709 $as_echo "$enable_shared" >&6; }
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14712 $as_echo_n "checking whether to build static libraries... " >&6; }
14713 # Make sure either enable_shared or enable_static is yes.
14714 test "$enable_shared" = yes || enable_static=yes
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14716 $as_echo "$enable_static" >&6; }
14723 ac_cpp='$CPP $CPPFLAGS'
14724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14732 ac_cpp='$CXXCPP $CPPFLAGS'
14733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14737 archive_cmds_need_lc_CXX=no
14738 allow_undefined_flag_CXX=
14739 always_export_symbols_CXX=no
14740 archive_expsym_cmds_CXX=
14741 compiler_needs_object_CXX=no
14742 export_dynamic_flag_spec_CXX=
14743 hardcode_direct_CXX=no
14744 hardcode_direct_absolute_CXX=no
14745 hardcode_libdir_flag_spec_CXX=
14746 hardcode_libdir_flag_spec_ld_CXX=
14747 hardcode_libdir_separator_CXX=
14748 hardcode_minus_L_CXX=no
14749 hardcode_shlibpath_var_CXX=unsupported
14750 hardcode_automatic_CXX=no
14751 inherit_rpath_CXX=no
14753 module_expsym_cmds_CXX=
14754 link_all_deplibs_CXX=unknown
14755 old_archive_cmds_CXX=$old_archive_cmds
14756 no_undefined_flag_CXX=
14757 whole_archive_flag_spec_CXX=
14758 enable_shared_with_static_runtimes_CXX=no
14760 # Source file extension for C++ test sources.
14763 # Object file extension for compiled C++ test sources.
14767 # No sense in running all these tests if we already determined that
14768 # the CXX compiler isn't working. Some variables (like enable_shared)
14769 # are currently assumed to apply to all compilers on this platform,
14770 # and will be corrupted by setting them based on a non-working compiler.
14771 if test "$_lt_caught_CXX_error" != yes; then
14772 # Code to be used in simple compile tests
14773 lt_simple_compile_test_code="int some_variable = 0;"
14775 # Code to be used in simple link tests
14776 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14778 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14785 # If no C compiler was specified, use CC.
14788 # If no C compiler flags were specified, use CFLAGS.
14789 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14791 # Allow CC to be a program name with arguments.
14795 # save warnings/boilerplate of simple test code
14796 ac_outfile=conftest.$ac_objext
14797 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14798 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14799 _lt_compiler_boilerplate=`cat conftest.err`
14802 ac_outfile=conftest.$ac_objext
14803 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14804 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14805 _lt_linker_boilerplate=`cat conftest.err`
14809 # Allow CC to be a program name with arguments.
14814 lt_save_with_gnu_ld=$with_gnu_ld
14815 lt_save_path_LD=$lt_cv_path_LD
14816 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14817 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14819 $as_unset lt_cv_prog_gnu_ld
14821 if test -n "${lt_cv_path_LDCXX+set}"; then
14822 lt_cv_path_LD=$lt_cv_path_LDCXX
14824 $as_unset lt_cv_path_LD
14826 test -z "${LDCXX+set}" || LD=$LDCXX
14830 for cc_temp in $compiler""; do
14832 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14833 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14838 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14841 if test -n "$compiler"; then
14842 # We don't want -fno-exception when compiling C++ code, so set the
14843 # no_builtin_flag separately
14844 if test "$GXX" = yes; then
14845 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14847 lt_prog_compiler_no_builtin_flag_CXX=
14850 if test "$GXX" = yes; then
14851 # Set up default GNU C++ configuration
14855 # Check whether --with-gnu-ld was given.
14856 if test "${with_gnu_ld+set}" = set; then :
14857 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14863 if test "$GCC" = yes; then
14864 # Check if gcc -print-prog-name=ld gives a path.
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14866 $as_echo_n "checking for ld used by $CC... " >&6; }
14869 # gcc leaves a trailing carriage return which upsets mingw
14870 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14872 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14875 # Accept absolute paths.
14877 re_direlt='/[^/][^/]*/\.\./'
14878 # Canonicalize the pathname of ld
14879 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14880 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14881 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14883 test -z "$LD" && LD="$ac_prog"
14886 # If it fails, then pretend we aren't using GCC.
14890 # If it is relative, then search for the first ld in PATH.
14891 with_gnu_ld=unknown
14894 elif test "$with_gnu_ld" = yes; then
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14896 $as_echo_n "checking for GNU ld... " >&6; }
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14899 $as_echo_n "checking for non-GNU ld... " >&6; }
14901 if test "${lt_cv_path_LD+set}" = set; then :
14902 $as_echo_n "(cached) " >&6
14904 if test -z "$LD"; then
14905 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14906 for ac_dir in $PATH; do
14908 test -z "$ac_dir" && ac_dir=.
14909 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14910 lt_cv_path_LD="$ac_dir/$ac_prog"
14911 # Check to see if the program is GNU ld. I'd rather use --version,
14912 # but apparently some variants of GNU ld only accept -v.
14913 # Break only if it was the GNU/non-GNU ld that we prefer.
14914 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14915 *GNU* | *'with BFD'*)
14916 test "$with_gnu_ld" != no && break
14919 test "$with_gnu_ld" != yes && break
14926 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14930 LD="$lt_cv_path_LD"
14931 if test -n "$LD"; then
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14933 $as_echo "$LD" >&6; }
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14936 $as_echo "no" >&6; }
14938 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14940 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14941 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14942 $as_echo_n "(cached) " >&6
14944 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14945 case `$LD -v 2>&1 </dev/null` in
14946 *GNU* | *'with BFD'*)
14947 lt_cv_prog_gnu_ld=yes
14950 lt_cv_prog_gnu_ld=no
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14955 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14956 with_gnu_ld=$lt_cv_prog_gnu_ld
14964 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14965 # archiving commands below assume that GNU ld is being used.
14966 if test "$with_gnu_ld" = yes; then
14967 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14968 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'
14970 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14971 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14973 # If archive_cmds runs LD, not CC, wlarc should be empty
14974 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14975 # investigate it a little bit more. (MM)
14978 # ancient GNU ld didn't support --whole-archive et. al.
14979 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14980 $GREP 'no-whole-archive' > /dev/null; then
14981 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14983 whole_archive_flag_spec_CXX=
14989 # A generic and very simple default shared library creation
14990 # command for GNU C++ for the case where it uses the native
14991 # linker, instead of GNU ld. If possible, this setting should
14992 # overridden to take advantage of the native linker features on
14993 # the platform it is being used on.
14994 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14997 # Commands to make compiler produce verbose output that lists
14998 # what "hidden" libraries, object files and flags are used when
14999 # linking a shared library.
15000 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15008 # PORTME: fill in a description of your system's C++ link characteristics
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15010 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15014 # FIXME: insert proper C++ library support
15018 if test "$host_cpu" = ia64; then
15019 # On IA64, the linker does run time linking by default, so we don't
15020 # have to do anything special.
15021 aix_use_runtimelinking=no
15022 exp_sym_flag='-Bexport'
15025 aix_use_runtimelinking=no
15027 # Test if we are trying to use run time linking or normal
15028 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15029 # need to do runtime linking.
15030 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15031 for ld_flag in $LDFLAGS; do
15034 aix_use_runtimelinking=yes
15042 exp_sym_flag='-bexport'
15043 no_entry_flag='-bnoentry'
15046 # When large executables or shared objects are built, AIX ld can
15047 # have problems creating the table of contents. If linking a library
15048 # or program results in "error TOC overflow" add -mminimal-toc to
15049 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15050 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15052 archive_cmds_CXX=''
15053 hardcode_direct_CXX=yes
15054 hardcode_direct_absolute_CXX=yes
15055 hardcode_libdir_separator_CXX=':'
15056 link_all_deplibs_CXX=yes
15057 file_list_spec_CXX='${wl}-f,'
15059 if test "$GXX" = yes; then
15060 case $host_os in aix4.[012]|aix4.[012].*)
15061 # We only want to do this on AIX 4.2 and lower, the check
15062 # below for broken collect2 doesn't work under 4.3+
15063 collect2name=`${CC} -print-prog-name=collect2`
15064 if test -f "$collect2name" &&
15065 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15067 # We have reworked collect2
15070 # We have old collect2
15071 hardcode_direct_CXX=unsupported
15072 # It fails to find uninstalled libraries when the uninstalled
15073 # path is not listed in the libpath. Setting hardcode_minus_L
15074 # to unsupported forces relinking
15075 hardcode_minus_L_CXX=yes
15076 hardcode_libdir_flag_spec_CXX='-L$libdir'
15077 hardcode_libdir_separator_CXX=
15080 shared_flag='-shared'
15081 if test "$aix_use_runtimelinking" = yes; then
15082 shared_flag="$shared_flag "'${wl}-G'
15086 if test "$host_cpu" = ia64; then
15087 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15088 # chokes on -Wl,-G. The following line is correct:
15091 if test "$aix_use_runtimelinking" = yes; then
15092 shared_flag='${wl}-G'
15094 shared_flag='${wl}-bM:SRE'
15099 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15100 # It seems that -bexpall does not export symbols beginning with
15101 # underscore (_), so it is better to generate a list of symbols to
15103 always_export_symbols_CXX=yes
15104 if test "$aix_use_runtimelinking" = yes; then
15105 # Warning - without using the other runtime loading flags (-brtl),
15106 # -berok will link without error, but may produce a broken library.
15107 allow_undefined_flag_CXX='-berok'
15108 # Determine the default libpath from the value encoded in an empty
15110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15111 /* end confdefs.h. */
15121 if ac_fn_cxx_try_link "$LINENO"; then :
15123 lt_aix_libpath_sed='
15124 /Import File Strings/,/^$/ {
15130 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15131 # Check for a 64-bit object if we didn't find anything.
15132 if test -z "$aix_libpath"; then
15133 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15136 rm -f core conftest.err conftest.$ac_objext \
15137 conftest$ac_exeext conftest.$ac_ext
15138 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15140 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15142 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15144 if test "$host_cpu" = ia64; then
15145 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15146 allow_undefined_flag_CXX="-z nodefs"
15147 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"
15149 # Determine the default libpath from the value encoded in an
15150 # empty executable.
15151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15152 /* end confdefs.h. */
15162 if ac_fn_cxx_try_link "$LINENO"; then :
15164 lt_aix_libpath_sed='
15165 /Import File Strings/,/^$/ {
15171 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15172 # Check for a 64-bit object if we didn't find anything.
15173 if test -z "$aix_libpath"; then
15174 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15177 rm -f core conftest.err conftest.$ac_objext \
15178 conftest$ac_exeext conftest.$ac_ext
15179 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15181 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15182 # Warning - without using the other run time loading flags,
15183 # -berok will link without error, but may produce a broken library.
15184 no_undefined_flag_CXX=' ${wl}-bernotok'
15185 allow_undefined_flag_CXX=' ${wl}-berok'
15186 # Exported symbols can be pulled into shared objects from archives
15187 whole_archive_flag_spec_CXX='$convenience'
15188 archive_cmds_need_lc_CXX=yes
15189 # This is similar to how AIX traditionally builds its shared
15191 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'
15197 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15198 allow_undefined_flag_CXX=unsupported
15199 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15200 # support --undefined. This deserves some investigation. FIXME
15201 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15208 case $cc_basename in
15210 # FIXME: insert proper C++ library support
15216 cygwin* | mingw* | pw32* | cegcc*)
15217 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15218 # as there is no search path for DLLs.
15219 hardcode_libdir_flag_spec_CXX='-L$libdir'
15220 allow_undefined_flag_CXX=unsupported
15221 always_export_symbols_CXX=no
15222 enable_shared_with_static_runtimes_CXX=yes
15224 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15225 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'
15226 # If the export-symbols file already is a .def file (1st line
15227 # is EXPORTS), use it as is; otherwise, prepend...
15228 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15229 cp $export_symbols $output_objdir/$soname.def;
15231 echo EXPORTS > $output_objdir/$soname.def;
15232 cat $export_symbols >> $output_objdir/$soname.def;
15234 $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'
15239 darwin* | rhapsody*)
15242 archive_cmds_need_lc_CXX=no
15243 hardcode_direct_CXX=no
15244 hardcode_automatic_CXX=yes
15245 hardcode_shlibpath_var_CXX=unsupported
15246 whole_archive_flag_spec_CXX=''
15247 link_all_deplibs_CXX=yes
15248 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15249 case $cc_basename in
15250 ifort*) _lt_dar_can_shared=yes ;;
15251 *) _lt_dar_can_shared=$GCC ;;
15253 if test "$_lt_dar_can_shared" = "yes"; then
15254 output_verbose_link_cmd=echo
15255 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}"
15256 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15257 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}"
15258 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}"
15259 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15260 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}"
15261 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}"
15271 case $cc_basename in
15273 # FIXME: insert proper C++ library support
15277 # Green Hills C++ Compiler
15278 # FIXME: insert proper C++ library support
15282 # FIXME: insert proper C++ library support
15289 # C++ shared libraries reported to be fairly broken before
15295 archive_cmds_need_lc_CXX=no
15298 freebsd* | dragonfly*)
15299 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15308 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15309 hardcode_libdir_separator_CXX=:
15310 export_dynamic_flag_spec_CXX='${wl}-E'
15311 hardcode_direct_CXX=yes
15312 hardcode_minus_L_CXX=yes # Not in the search PATH,
15313 # but as the default
15314 # location of the library.
15316 case $cc_basename in
15318 # FIXME: insert proper C++ library support
15322 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'
15323 # Commands to make compiler produce verbose output that lists
15324 # what "hidden" libraries, object files and flags are used when
15325 # linking a shared library.
15327 # There doesn't appear to be a way to prevent this compiler from
15328 # explicitly linking system object files so we need to strip them
15329 # from the output so that they don't get included in the library
15331 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; $ECHO "X$list" | $Xsed'
15334 if test "$GXX" = yes; then
15335 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'
15337 # FIXME: insert proper C++ library support
15345 if test $with_gnu_ld = no; then
15346 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15347 hardcode_libdir_separator_CXX=:
15353 export_dynamic_flag_spec_CXX='${wl}-E'
15359 hardcode_direct_CXX=no
15360 hardcode_shlibpath_var_CXX=no
15363 hardcode_direct_CXX=yes
15364 hardcode_direct_absolute_CXX=yes
15365 hardcode_minus_L_CXX=yes # Not in the search PATH,
15366 # but as the default
15367 # location of the library.
15371 case $cc_basename in
15373 # FIXME: insert proper C++ library support
15379 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15382 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15385 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15388 # Commands to make compiler produce verbose output that lists
15389 # what "hidden" libraries, object files and flags are used when
15390 # linking a shared library.
15392 # There doesn't appear to be a way to prevent this compiler from
15393 # explicitly linking system object files so we need to strip them
15394 # from the output so that they don't get included in the library
15396 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; $ECHO "X$list" | $Xsed'
15399 if test "$GXX" = yes; then
15400 if test $with_gnu_ld = no; then
15403 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15406 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15409 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'
15414 # FIXME: insert proper C++ library support
15422 hardcode_direct_CXX=no
15423 hardcode_shlibpath_var_CXX=no
15424 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15425 export_dynamic_flag_spec_CXX='${wl}-E'
15426 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15427 # Instead, shared libraries are loaded at an image base (0x10000000 by
15428 # default) and relocated if they conflict, which is a slow very memory
15429 # consuming and fragmenting process. To avoid this, we pick a random,
15430 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15431 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15432 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'
15433 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'
15436 case $cc_basename in
15439 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15441 # Archives containing C++ object files must be created using
15442 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15443 # necessary to make sure instantiated templates are included
15445 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15448 if test "$GXX" = yes; then
15449 if test "$with_gnu_ld" = no; then
15450 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15452 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
15455 link_all_deplibs_CXX=yes
15458 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15459 hardcode_libdir_separator_CXX=:
15460 inherit_rpath_CXX=yes
15463 linux* | k*bsd*-gnu)
15464 case $cc_basename in
15466 # Kuck and Associates, Inc. (KAI) C++ Compiler
15468 # KCC will only create a shared library if the output file
15469 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15470 # to its proper name (with version) after linking.
15471 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'
15472 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'
15473 # Commands to make compiler produce verbose output that lists
15474 # what "hidden" libraries, object files and flags are used when
15475 # linking a shared library.
15477 # There doesn't appear to be a way to prevent this compiler from
15478 # explicitly linking system object files so we need to strip them
15479 # from the output so that they don't get included in the library
15481 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; $ECHO "X$list" | $Xsed'
15483 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15484 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15486 # Archives containing C++ object files must be created using
15487 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15488 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15493 # version 8.0 and above of icpc choke on multiply defined symbols
15494 # if we add $predep_objects and $postdep_objects, however 7.1 and
15495 # earlier do not add the objects themselves.
15496 case `$CC -V 2>&1` in
15498 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15499 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'
15501 *) # Version 8.0 or newer
15504 ia64*) tmp_idyn=' -i_dynamic';;
15506 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15507 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'
15510 archive_cmds_need_lc_CXX=no
15511 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15512 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15513 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15516 # Portland Group C++ compiler
15518 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15519 prelink_cmds_CXX='tpldir=Template.dir~
15521 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15522 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15523 old_archive_cmds_CXX='tpldir=Template.dir~
15525 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15526 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15528 archive_cmds_CXX='tpldir=Template.dir~
15530 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15531 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15532 archive_expsym_cmds_CXX='tpldir=Template.dir~
15534 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15535 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15537 *) # Version 6 will use weak symbols
15538 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15539 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'
15543 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15544 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15545 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15549 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15550 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'
15552 runpath_var=LD_RUN_PATH
15553 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15554 hardcode_libdir_separator_CXX=:
15556 # Commands to make compiler produce verbose output that lists
15557 # what "hidden" libraries, object files and flags are used when
15558 # linking a shared library.
15560 # There doesn't appear to be a way to prevent this compiler from
15561 # explicitly linking system object files so we need to strip them
15562 # from the output so that they don't get included in the library
15564 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15567 # IBM XL 8.0 on PPC, with GNU ld
15568 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15569 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15570 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15571 if test "x$supports_anon_versioning" = xyes; then
15572 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15573 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15574 echo "local: *; };" >> $output_objdir/$libname.ver~
15575 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15579 case `$CC -V 2>&1 | sed 5q` in
15582 no_undefined_flag_CXX=' -zdefs'
15583 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15584 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'
15585 hardcode_libdir_flag_spec_CXX='-R$libdir'
15586 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15587 compiler_needs_object_CXX=yes
15589 # Not sure whether something based on
15590 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15592 output_verbose_link_cmd='echo'
15594 # Archives containing C++ object files must be created using
15595 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15596 # necessary to make sure instantiated templates are included
15598 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15606 # FIXME: insert proper C++ library support
15611 # FIXME: insert proper C++ library support
15616 case $cc_basename in
15618 # FIXME: insert proper C++ library support
15622 # FIXME: insert proper C++ library support
15629 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15630 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15632 hardcode_libdir_flag_spec_CXX='-R$libdir'
15633 hardcode_direct_CXX=yes
15634 hardcode_shlibpath_var_CXX=no
15636 # Workaround some broken pre-1.5 toolchains
15637 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15645 # C++ shared libraries are fairly broken
15650 if test -f /usr/libexec/ld.so; then
15651 hardcode_direct_CXX=yes
15652 hardcode_shlibpath_var_CXX=no
15653 hardcode_direct_absolute_CXX=yes
15654 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15655 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15656 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15657 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15658 export_dynamic_flag_spec_CXX='${wl}-E'
15659 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15661 output_verbose_link_cmd=echo
15667 osf3* | osf4* | osf5*)
15668 case $cc_basename in
15670 # Kuck and Associates, Inc. (KAI) C++ Compiler
15672 # KCC will only create a shared library if the output file
15673 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15674 # to its proper name (with version) after linking.
15675 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'
15677 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15678 hardcode_libdir_separator_CXX=:
15680 # Archives containing C++ object files must be created using
15681 # the KAI C++ compiler.
15683 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15684 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15688 # Rational C++ 2.4.1
15689 # FIXME: insert proper C++ library support
15695 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15696 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15697 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15700 allow_undefined_flag_CXX=' -expect_unresolved \*'
15701 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15702 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15703 echo "-hidden">> $lib.exp~
15704 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
15706 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15710 hardcode_libdir_separator_CXX=:
15712 # Commands to make compiler produce verbose output that lists
15713 # what "hidden" libraries, object files and flags are used when
15714 # linking a shared library.
15716 # There doesn't appear to be a way to prevent this compiler from
15717 # explicitly linking system object files so we need to strip them
15718 # from the output so that they don't get included in the library
15720 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15723 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15724 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15727 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15730 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" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15734 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15735 hardcode_libdir_separator_CXX=:
15737 # Commands to make compiler produce verbose output that lists
15738 # what "hidden" libraries, object files and flags are used when
15739 # linking a shared library.
15740 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15743 # FIXME: insert proper C++ library support
15751 # FIXME: insert proper C++ library support
15756 case $cc_basename in
15759 # FIXME: insert proper C++ library support
15764 # FIXME: insert proper C++ library support
15768 # FIXME: insert proper C++ library support
15775 case $cc_basename in
15777 # Sun C++ 4.2, 5.x and Centerline C++
15778 archive_cmds_need_lc_CXX=yes
15779 no_undefined_flag_CXX=' -zdefs'
15780 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15781 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15782 $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'
15784 hardcode_libdir_flag_spec_CXX='-R$libdir'
15785 hardcode_shlibpath_var_CXX=no
15787 solaris2.[0-5] | solaris2.[0-5].*) ;;
15789 # The compiler driver will combine and reorder linker options,
15790 # but understands `-z linker_flag'.
15791 # Supported since Solaris 2.6 (maybe 2.5.1?)
15792 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15795 link_all_deplibs_CXX=yes
15797 output_verbose_link_cmd='echo'
15799 # Archives containing C++ object files must be created using
15800 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15801 # necessary to make sure instantiated templates are included
15803 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15806 # Green Hills C++ Compiler
15807 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15809 # The C++ compiler must be used to create the archive.
15810 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15813 # GNU C++ compiler with Solaris linker
15814 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15815 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15816 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15817 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15818 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15819 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15821 # Commands to make compiler produce verbose output that lists
15822 # what "hidden" libraries, object files and flags are used when
15823 # linking a shared library.
15824 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15826 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15828 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15829 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15830 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15832 # Commands to make compiler produce verbose output that lists
15833 # what "hidden" libraries, object files and flags are used when
15834 # linking a shared library.
15835 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15838 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15840 solaris2.[0-5] | solaris2.[0-5].*) ;;
15842 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15850 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15851 no_undefined_flag_CXX='${wl}-z,text'
15852 archive_cmds_need_lc_CXX=no
15853 hardcode_shlibpath_var_CXX=no
15854 runpath_var='LD_RUN_PATH'
15856 case $cc_basename in
15858 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15859 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15862 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15863 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15868 sysv5* | sco3.2v5* | sco5v6*)
15869 # Note: We can NOT use -z defs as we might desire, because we do not
15870 # link with -lc, and that would cause any symbols used from libc to
15871 # always be unresolved, which means just about no library would
15872 # ever link correctly. If we're not using GNU ld we use -z text
15873 # though, which does catch some bad symbols but isn't as heavy-handed
15875 no_undefined_flag_CXX='${wl}-z,text'
15876 allow_undefined_flag_CXX='${wl}-z,nodefs'
15877 archive_cmds_need_lc_CXX=no
15878 hardcode_shlibpath_var_CXX=no
15879 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15880 hardcode_libdir_separator_CXX=':'
15881 link_all_deplibs_CXX=yes
15882 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15883 runpath_var='LD_RUN_PATH'
15885 case $cc_basename in
15887 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15888 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15891 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15892 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15898 case $cc_basename in
15900 # NonStop-UX NCC 3.20
15901 # FIXME: insert proper C++ library support
15905 # FIXME: insert proper C++ library support
15912 # FIXME: insert proper C++ library support
15917 # FIXME: insert proper C++ library support
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15923 $as_echo "$ld_shlibs_CXX" >&6; }
15924 test "$ld_shlibs_CXX" = no && can_build_shared=no
15930 ## There is no encapsulation within the following macros, do not change
15931 ## the running order or otherwise move them around unless you know exactly
15932 ## what you are doing...
15933 # Dependencies to place before and after the object being linked:
15934 predep_objects_CXX=
15935 postdep_objects_CXX=
15938 compiler_lib_search_path_CXX=
15940 cat > conftest.$ac_ext <<_LT_EOF
15944 Foo (void) { a = 0; }
15950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15951 (eval $ac_compile) 2>&5
15953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15954 test $ac_status = 0; }; then
15955 # Parse the compiler output and extract the necessary
15956 # objects, libraries and library flags.
15958 # Sentinel used to keep track of whether or not we are before
15959 # the conftest object file.
15960 pre_test_object_deps_done=no
15962 for p in `eval "$output_verbose_link_cmd"`; do
15966 # Some compilers place space between "-{L,R}" and the path.
15967 # Remove the space.
15968 if test $p = "-L" ||
15969 test $p = "-R"; then
15976 if test "$pre_test_object_deps_done" = no; then
15979 # Internal compiler library paths should come after those
15980 # provided the user. The postdeps already come after the
15981 # user supplied libs so there is no need to process them.
15982 if test -z "$compiler_lib_search_path_CXX"; then
15983 compiler_lib_search_path_CXX="${prev}${p}"
15985 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15988 # The "-l" case would never come before the object being
15989 # linked, so don't bother handling this case.
15992 if test -z "$postdeps_CXX"; then
15993 postdeps_CXX="${prev}${p}"
15995 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16001 # This assumes that the test object file only shows up
16002 # once in the compiler output.
16003 if test "$p" = "conftest.$objext"; then
16004 pre_test_object_deps_done=yes
16008 if test "$pre_test_object_deps_done" = no; then
16009 if test -z "$predep_objects_CXX"; then
16010 predep_objects_CXX="$p"
16012 predep_objects_CXX="$predep_objects_CXX $p"
16015 if test -z "$postdep_objects_CXX"; then
16016 postdep_objects_CXX="$p"
16018 postdep_objects_CXX="$postdep_objects_CXX $p"
16023 *) ;; # Ignore the rest.
16031 echo "libtool.m4: error: problem compiling CXX test program"
16034 $RM -f confest.$objext
16036 # PORTME: override above test on systems where it is broken
16039 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16040 # hack all around it, let's just trust "g++" to DTRT.
16041 predep_objects_CXX=
16042 postdep_objects_CXX=
16047 case `$CC -V 2>&1 | sed 5q` in
16051 # The more standards-conforming stlport4 library is
16052 # incompatible with the Cstd library. Avoid specifying
16053 # it if it's in CXXFLAGS. Ignore libCrun as
16054 # -library=stlport4 depends on it.
16055 case " $CXX $CXXFLAGS " in
16056 *" -library=stlport4 "*)
16057 solaris_use_stlport4=yes
16061 if test "$solaris_use_stlport4" != yes; then
16062 postdeps_CXX='-library=Cstd -library=Crun'
16069 case $cc_basename in
16071 # The more standards-conforming stlport4 library is
16072 # incompatible with the Cstd library. Avoid specifying
16073 # it if it's in CXXFLAGS. Ignore libCrun as
16074 # -library=stlport4 depends on it.
16075 case " $CXX $CXXFLAGS " in
16076 *" -library=stlport4 "*)
16077 solaris_use_stlport4=yes
16081 # Adding this requires a known-good setup of shared libraries for
16082 # Sun compiler versions before 5.6, else PIC objects from an old
16083 # archive will be linked into the output, leading to subtle bugs.
16084 if test "$solaris_use_stlport4" != yes; then
16085 postdeps_CXX='-library=Cstd -library=Crun'
16093 case " $postdeps_CXX " in
16094 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16096 compiler_lib_search_dirs_CXX=
16097 if test -n "${compiler_lib_search_path_CXX}"; then
16098 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16131 lt_prog_compiler_wl_CXX=
16132 lt_prog_compiler_pic_CXX=
16133 lt_prog_compiler_static_CXX=
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16136 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16138 # C++ specific cases for pic, static, wl, etc.
16139 if test "$GXX" = yes; then
16140 lt_prog_compiler_wl_CXX='-Wl,'
16141 lt_prog_compiler_static_CXX='-static'
16145 # All AIX code is PIC.
16146 if test "$host_cpu" = ia64; then
16147 # AIX 5 now supports IA64 processor
16148 lt_prog_compiler_static_CXX='-Bstatic'
16155 # see comment about AmigaOS4 .so support
16156 lt_prog_compiler_pic_CXX='-fPIC'
16159 # FIXME: we need at least 68020 code to build shared libraries, but
16160 # adding the `-m68020' flag to GCC prevents building anything better,
16162 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16167 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16168 # PIC is the default for these OSes.
16170 mingw* | cygwin* | os2* | pw32* | cegcc*)
16171 # This hack is so that the source file can tell whether it is being
16172 # built for inclusion in a dll (and should export symbols for example).
16173 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16174 # (--disable-auto-import) libraries
16175 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16177 darwin* | rhapsody*)
16178 # PIC is the default on this platform
16179 # Common symbols not allowed in MH_DYLIB files
16180 lt_prog_compiler_pic_CXX='-fno-common'
16183 # DJGPP does not support shared libraries at all
16184 lt_prog_compiler_pic_CXX=
16187 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16188 # Instead, we relocate shared libraries at runtime.
16191 if test -d /usr/nec; then
16192 lt_prog_compiler_pic_CXX=-Kconform_pic
16196 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16197 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16198 # sets the default TLS model and affects inlining.
16203 lt_prog_compiler_pic_CXX='-fPIC'
16208 # QNX uses GNU C++, but need to define -shared option too, otherwise
16209 # it will coredump.
16210 lt_prog_compiler_pic_CXX='-fPIC -shared'
16213 lt_prog_compiler_pic_CXX='-fPIC'
16219 # All AIX code is PIC.
16220 if test "$host_cpu" = ia64; then
16221 # AIX 5 now supports IA64 processor
16222 lt_prog_compiler_static_CXX='-Bstatic'
16224 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16228 case $cc_basename in
16230 # Green Hills C++ Compiler
16231 # _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"
16236 case $cc_basename in
16238 lt_prog_compiler_pic_CXX='-KPIC'
16241 # Green Hills C++ Compiler
16242 lt_prog_compiler_pic_CXX='-pic'
16248 freebsd* | dragonfly*)
16249 # FreeBSD uses GNU C++
16251 hpux9* | hpux10* | hpux11*)
16252 case $cc_basename in
16254 lt_prog_compiler_wl_CXX='-Wl,'
16255 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16256 if test "$host_cpu" != ia64; then
16257 lt_prog_compiler_pic_CXX='+Z'
16261 lt_prog_compiler_wl_CXX='-Wl,'
16262 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16268 lt_prog_compiler_pic_CXX='+Z'
16277 # This is c89, which is MS Visual C++ (no shared libs)
16278 # Anyone wants to do a port?
16280 irix5* | irix6* | nonstopux*)
16281 case $cc_basename in
16283 lt_prog_compiler_wl_CXX='-Wl,'
16284 lt_prog_compiler_static_CXX='-non_shared'
16285 # CC pic flag -KPIC is the default.
16291 linux* | k*bsd*-gnu)
16292 case $cc_basename in
16295 lt_prog_compiler_wl_CXX='--backend -Wl,'
16296 lt_prog_compiler_pic_CXX='-fPIC'
16299 # old Intel C++ for x86_64 which still supported -KPIC.
16300 lt_prog_compiler_wl_CXX='-Wl,'
16301 lt_prog_compiler_pic_CXX='-KPIC'
16302 lt_prog_compiler_static_CXX='-static'
16305 # Intel C++, used to be incompatible with GCC.
16306 # ICC 10 doesn't accept -KPIC any more.
16307 lt_prog_compiler_wl_CXX='-Wl,'
16308 lt_prog_compiler_pic_CXX='-fPIC'
16309 lt_prog_compiler_static_CXX='-static'
16312 # Portland Group C++ compiler
16313 lt_prog_compiler_wl_CXX='-Wl,'
16314 lt_prog_compiler_pic_CXX='-fpic'
16315 lt_prog_compiler_static_CXX='-Bstatic'
16319 # Make sure the PIC flag is empty. It appears that all Alpha
16320 # Linux and Compaq Tru64 Unix objects are PIC.
16321 lt_prog_compiler_pic_CXX=
16322 lt_prog_compiler_static_CXX='-non_shared'
16325 # IBM XL 8.0 on PPC
16326 lt_prog_compiler_wl_CXX='-Wl,'
16327 lt_prog_compiler_pic_CXX='-qpic'
16328 lt_prog_compiler_static_CXX='-qstaticlink'
16331 case `$CC -V 2>&1 | sed 5q` in
16334 lt_prog_compiler_pic_CXX='-KPIC'
16335 lt_prog_compiler_static_CXX='-Bstatic'
16336 lt_prog_compiler_wl_CXX='-Qoption ld '
16347 case $cc_basename in
16349 lt_prog_compiler_pic_CXX='-W c,exportall'
16358 # QNX uses GNU C++, but need to define -shared option too, otherwise
16359 # it will coredump.
16360 lt_prog_compiler_pic_CXX='-fPIC -shared'
16362 osf3* | osf4* | osf5*)
16363 case $cc_basename in
16365 lt_prog_compiler_wl_CXX='--backend -Wl,'
16368 # Rational C++ 2.4.1
16369 lt_prog_compiler_pic_CXX='-pic'
16372 # Digital/Compaq C++
16373 lt_prog_compiler_wl_CXX='-Wl,'
16374 # Make sure the PIC flag is empty. It appears that all Alpha
16375 # Linux and Compaq Tru64 Unix objects are PIC.
16376 lt_prog_compiler_pic_CXX=
16377 lt_prog_compiler_static_CXX='-non_shared'
16386 case $cc_basename in
16388 # Sun C++ 4.2, 5.x and Centerline C++
16389 lt_prog_compiler_pic_CXX='-KPIC'
16390 lt_prog_compiler_static_CXX='-Bstatic'
16391 lt_prog_compiler_wl_CXX='-Qoption ld '
16394 # Green Hills C++ Compiler
16395 lt_prog_compiler_pic_CXX='-PIC'
16402 case $cc_basename in
16405 lt_prog_compiler_pic_CXX='-pic'
16406 lt_prog_compiler_static_CXX='-Bstatic'
16410 lt_prog_compiler_pic_CXX='-pic'
16416 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16417 case $cc_basename in
16419 lt_prog_compiler_wl_CXX='-Wl,'
16420 lt_prog_compiler_pic_CXX='-KPIC'
16421 lt_prog_compiler_static_CXX='-Bstatic'
16426 case $cc_basename in
16428 # NonStop-UX NCC 3.20
16429 lt_prog_compiler_pic_CXX='-KPIC'
16438 lt_prog_compiler_can_build_shared_CXX=no
16444 # For platforms which do not support PIC, -DPIC is meaningless:
16446 lt_prog_compiler_pic_CXX=
16449 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
16453 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16458 # Check to make sure the PIC flag actually works.
16460 if test -n "$lt_prog_compiler_pic_CXX"; then
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16462 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16463 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
16464 $as_echo_n "(cached) " >&6
16466 lt_cv_prog_compiler_pic_works_CXX=no
16467 ac_outfile=conftest.$ac_objext
16468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16469 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16470 # Insert the option either (1) after the last *FLAGS variable, or
16471 # (2) before a word containing "conftest.", or (3) at the end.
16472 # Note that $ac_compile itself does not contain backslashes and begins
16473 # with a dollar sign (not a hyphen), so the echo should work correctly.
16474 # The option is referenced via a variable to avoid confusing sed.
16475 lt_compile=`echo "$ac_compile" | $SED \
16476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16478 -e 's:$: $lt_compiler_flag:'`
16479 (eval echo "\"\$as_me:16479: $lt_compile\"" >&5)
16480 (eval "$lt_compile" 2>conftest.err)
16482 cat conftest.err >&5
16483 echo "$as_me:16483: \$? = $ac_status" >&5
16484 if (exit $ac_status) && test -s "$ac_outfile"; then
16485 # The compiler can only warn and ignore the option if not recognized
16486 # So say no if there are warnings other than the usual output.
16487 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16488 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16489 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16490 lt_cv_prog_compiler_pic_works_CXX=yes
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16497 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16499 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16500 case $lt_prog_compiler_pic_CXX in
16502 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16505 lt_prog_compiler_pic_CXX=
16506 lt_prog_compiler_can_build_shared_CXX=no
16514 # Check to make sure the static flag actually works.
16516 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16518 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16519 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
16520 $as_echo_n "(cached) " >&6
16522 lt_cv_prog_compiler_static_works_CXX=no
16523 save_LDFLAGS="$LDFLAGS"
16524 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16525 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16526 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16527 # The linker can only warn and ignore the option if not recognized
16528 # So say no if there are warnings
16529 if test -s conftest.err; then
16530 # Append any errors to the config.log.
16531 cat conftest.err 1>&5
16532 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16533 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16534 if diff conftest.exp conftest.er2 >/dev/null; then
16535 lt_cv_prog_compiler_static_works_CXX=yes
16538 lt_cv_prog_compiler_static_works_CXX=yes
16542 LDFLAGS="$save_LDFLAGS"
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16546 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16548 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16551 lt_prog_compiler_static_CXX=
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16558 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16559 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16560 $as_echo_n "(cached) " >&6
16562 lt_cv_prog_compiler_c_o_CXX=no
16563 $RM -r conftest 2>/dev/null
16567 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16569 lt_compiler_flag="-o out/conftest2.$ac_objext"
16570 # Insert the option either (1) after the last *FLAGS variable, or
16571 # (2) before a word containing "conftest.", or (3) at the end.
16572 # Note that $ac_compile itself does not contain backslashes and begins
16573 # with a dollar sign (not a hyphen), so the echo should work correctly.
16574 lt_compile=`echo "$ac_compile" | $SED \
16575 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16576 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16577 -e 's:$: $lt_compiler_flag:'`
16578 (eval echo "\"\$as_me:16578: $lt_compile\"" >&5)
16579 (eval "$lt_compile" 2>out/conftest.err)
16581 cat out/conftest.err >&5
16582 echo "$as_me:16582: \$? = $ac_status" >&5
16583 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16585 # The compiler can only warn and ignore the option if not recognized
16586 # So say no if there are warnings
16587 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16588 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16589 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16590 lt_cv_prog_compiler_c_o_CXX=yes
16595 # SGI C++ compiler will create directory out/ii_files/ for
16596 # template instantiation
16597 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16598 $RM out/* && rmdir out
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16605 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16610 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16611 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16612 $as_echo_n "(cached) " >&6
16614 lt_cv_prog_compiler_c_o_CXX=no
16615 $RM -r conftest 2>/dev/null
16619 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16621 lt_compiler_flag="-o out/conftest2.$ac_objext"
16622 # Insert the option either (1) after the last *FLAGS variable, or
16623 # (2) before a word containing "conftest.", or (3) at the end.
16624 # Note that $ac_compile itself does not contain backslashes and begins
16625 # with a dollar sign (not a hyphen), so the echo should work correctly.
16626 lt_compile=`echo "$ac_compile" | $SED \
16627 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16628 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16629 -e 's:$: $lt_compiler_flag:'`
16630 (eval echo "\"\$as_me:16630: $lt_compile\"" >&5)
16631 (eval "$lt_compile" 2>out/conftest.err)
16633 cat out/conftest.err >&5
16634 echo "$as_me:16634: \$? = $ac_status" >&5
16635 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16637 # The compiler can only warn and ignore the option if not recognized
16638 # So say no if there are warnings
16639 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16640 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16641 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16642 lt_cv_prog_compiler_c_o_CXX=yes
16647 # SGI C++ compiler will create directory out/ii_files/ for
16648 # template instantiation
16649 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16650 $RM out/* && rmdir out
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16657 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16662 hard_links="nottested"
16663 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16664 # do not overwrite the value of need_locks provided by the user
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16666 $as_echo_n "checking if we can lock with hard links... " >&6; }
16669 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16671 ln conftest.a conftest.b 2>&5 || hard_links=no
16672 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16674 $as_echo "$hard_links" >&6; }
16675 if test "$hard_links" = no; then
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16677 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16687 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16689 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16692 # If we're using GNU nm, then we don't want the "-C" option.
16693 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16694 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16695 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16697 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'
16701 export_symbols_cmds_CXX="$ltdll_cmds"
16703 cygwin* | mingw* | cegcc*)
16704 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'
16707 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16710 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16713 $as_echo "$ld_shlibs_CXX" >&6; }
16714 test "$ld_shlibs_CXX" = no && can_build_shared=no
16716 with_gnu_ld_CXX=$with_gnu_ld
16724 # Do we need to explicitly link libc?
16726 case "x$archive_cmds_need_lc_CXX" in
16728 # Assume -lc should be added
16729 archive_cmds_need_lc_CXX=yes
16731 if test "$enable_shared" = yes && test "$GCC" = yes; then
16732 case $archive_cmds_CXX in
16734 # FIXME: we may have to deal with multi-command sequences.
16737 # Test whether the compiler implicitly links with -lc since on some
16738 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16739 # to ld, don't add -lc before -lgcc.
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16741 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16743 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16746 (eval $ac_compile) 2>&5
16748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16749 test $ac_status = 0; } 2>conftest.err; then
16752 libobjs=conftest.$ac_objext
16754 wl=$lt_prog_compiler_wl_CXX
16755 pic_flag=$lt_prog_compiler_pic_CXX
16761 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16762 allow_undefined_flag_CXX=
16763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16764 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16767 test $ac_status = 0; }
16769 archive_cmds_need_lc_CXX=no
16771 archive_cmds_need_lc_CXX=yes
16773 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16775 cat conftest.err 1>&5
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
16779 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16850 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16852 library_names_spec=
16853 libname_spec='lib$name'
16857 postuninstall_cmds=
16861 shlibpath_overrides_runpath=unknown
16863 dynamic_linker="$host_os ld.so"
16864 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16865 need_lib_prefix=unknown
16866 hardcode_into_libs=no
16868 # when you set need_version to no, make sure it does not cause -set_version
16869 # flags to be left without arguments
16870 need_version=unknown
16875 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16876 shlibpath_var=LIBPATH
16878 # AIX 3 has no versioning support, so we append a major version to the name.
16879 soname_spec='${libname}${release}${shared_ext}$major'
16886 hardcode_into_libs=yes
16887 if test "$host_cpu" = ia64; then
16888 # AIX 5 supports IA64
16889 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16890 shlibpath_var=LD_LIBRARY_PATH
16892 # With GCC up to 2.95.x, collect2 would create an import file
16893 # for dependence libraries. The import file would start with
16894 # the line `#! .'. This would cause the generated library to
16895 # depend on `.', always an invalid library. This was fixed in
16896 # development snapshots of GCC prior to 3.0.
16898 aix4 | aix4.[01] | aix4.[01].*)
16899 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16901 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16904 can_build_shared=no
16908 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16909 # soname into executable. Probably we can add versioning support to
16910 # collect2, so additional links can be useful in future.
16911 if test "$aix_use_runtimelinking" = yes; then
16912 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16913 # instead of lib<name>.a to let people know that these are not
16914 # typical AIX shared libraries.
16915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16917 # We preserve .a as extension for shared libraries through AIX4.2
16918 # and later when we are not doing run time linking.
16919 library_names_spec='${libname}${release}.a $libname.a'
16920 soname_spec='${libname}${release}${shared_ext}$major'
16922 shlibpath_var=LIBPATH
16929 # Since July 2007 AmigaOS4 officially supports .so libraries.
16930 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16934 library_names_spec='$libname.ixlibrary $libname.a'
16935 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16936 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
16942 library_names_spec='${libname}${shared_ext}'
16943 dynamic_linker="$host_os ld.so"
16944 shlibpath_var=LIBRARY_PATH
16950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16951 soname_spec='${libname}${release}${shared_ext}$major'
16952 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16953 shlibpath_var=LD_LIBRARY_PATH
16954 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16955 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16956 # the default ld.so.conf also contains /usr/contrib/lib and
16957 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16958 # libtool to hard-code these into programs
16961 cygwin* | mingw* | pw32* | cegcc*)
16962 version_type=windows
16967 case $GCC,$host_os in
16968 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16969 library_names_spec='$libname.dll.a'
16970 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16971 postinstall_cmds='base_file=`basename \${file}`~
16972 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16973 dldir=$destdir/`dirname \$dlpath`~
16974 test -d \$dldir || mkdir -p \$dldir~
16975 $install_prog $dir/$dlname \$dldir/$dlname~
16976 chmod a+x \$dldir/$dlname~
16977 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16978 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16980 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16981 dlpath=$dir/\$dldll~
16983 shlibpath_overrides_runpath=yes
16987 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16988 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16989 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16992 # MinGW DLLs use traditional 'lib' prefix
16993 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16994 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16995 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16996 # It is most probably a Windows format PATH printed by
16997 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16998 # path with ; separators, and with drive letters. We can handle the
16999 # drive letters (cygwin fileutils understands them), so leave them,
17000 # especially as we might pass files found there to a mingw objdump,
17001 # which wouldn't understand a cygwinified path. Ahh.
17002 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17004 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17008 # pw32 DLLs use 'pw' prefix rather than 'lib'
17009 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17015 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17018 dynamic_linker='Win32 ld.exe'
17019 # FIXME: first we should search . and the directory the executable is in
17023 darwin* | rhapsody*)
17024 dynamic_linker="$host_os dyld"
17025 version_type=darwin
17028 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17029 soname_spec='${libname}${release}${major}$shared_ext'
17030 shlibpath_overrides_runpath=yes
17031 shlibpath_var=DYLD_LIBRARY_PATH
17032 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17034 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17042 soname_spec='${libname}${release}${shared_ext}$major'
17043 shlibpath_var=LD_LIBRARY_PATH
17050 freebsd* | dragonfly*)
17051 # DragonFly does not have aout. When/if they implement a new
17052 # versioning mechanism, adjust this.
17053 if test -x /usr/bin/objformat; then
17054 objformat=`/usr/bin/objformat`
17057 freebsd[123]*) objformat=aout ;;
17058 *) objformat=elf ;;
17061 version_type=freebsd-$objformat
17062 case $version_type in
17064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17069 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17073 shlibpath_var=LD_LIBRARY_PATH
17076 shlibpath_overrides_runpath=yes
17078 freebsd3.[01]* | freebsdelf3.[01]*)
17079 shlibpath_overrides_runpath=yes
17080 hardcode_into_libs=yes
17082 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17083 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17084 shlibpath_overrides_runpath=no
17085 hardcode_into_libs=yes
17087 *) # from 4.6 on, and DragonFly
17088 shlibpath_overrides_runpath=yes
17089 hardcode_into_libs=yes
17098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17099 soname_spec='${libname}${release}${shared_ext}$major'
17100 shlibpath_var=LD_LIBRARY_PATH
17101 hardcode_into_libs=yes
17104 hpux9* | hpux10* | hpux11*)
17105 # Give a soname corresponding to the major version so that dld.sl refuses to
17106 # link against other versions.
17113 hardcode_into_libs=yes
17114 dynamic_linker="$host_os dld.so"
17115 shlibpath_var=LD_LIBRARY_PATH
17116 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17118 soname_spec='${libname}${release}${shared_ext}$major'
17119 if test "X$HPUX_IA64_MODE" = X32; then
17120 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17122 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17124 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17128 hardcode_into_libs=yes
17129 dynamic_linker="$host_os dld.sl"
17130 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17131 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17133 soname_spec='${libname}${release}${shared_ext}$major'
17134 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17135 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17139 dynamic_linker="$host_os dld.sl"
17140 shlibpath_var=SHLIB_PATH
17141 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17143 soname_spec='${libname}${release}${shared_ext}$major'
17146 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17147 postinstall_cmds='chmod 555 $lib'
17154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17155 soname_spec='${libname}${release}${shared_ext}$major'
17156 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17157 shlibpath_var=LD_LIBRARY_PATH
17158 shlibpath_overrides_runpath=no
17159 hardcode_into_libs=yes
17162 irix5* | irix6* | nonstopux*)
17164 nonstopux*) version_type=nonstopux ;;
17166 if test "$lt_cv_prog_gnu_ld" = yes; then
17174 soname_spec='${libname}${release}${shared_ext}$major'
17175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17177 irix5* | nonstopux*)
17178 libsuff= shlibsuff=
17181 case $LD in # libtool.m4 will add one of these switches to LD
17182 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17183 libsuff= shlibsuff= libmagic=32-bit;;
17184 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17185 libsuff=32 shlibsuff=N32 libmagic=N32;;
17186 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17187 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17188 *) libsuff= shlibsuff= libmagic=never-match;;
17192 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17193 shlibpath_overrides_runpath=no
17194 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17195 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17196 hardcode_into_libs=yes
17199 # No shared lib support for Linux oldld, aout, or coff.
17200 linux*oldld* | linux*aout* | linux*coff*)
17204 # This must be Linux ELF.
17205 linux* | k*bsd*-gnu)
17209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17210 soname_spec='${libname}${release}${shared_ext}$major'
17211 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17212 shlibpath_var=LD_LIBRARY_PATH
17213 shlibpath_overrides_runpath=no
17214 # Some binutils ld are patched to set DT_RUNPATH
17215 save_LDFLAGS=$LDFLAGS
17216 save_libdir=$libdir
17217 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17218 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17220 /* end confdefs.h. */
17230 if ac_fn_cxx_try_link "$LINENO"; then :
17231 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17232 shlibpath_overrides_runpath=yes
17235 rm -f core conftest.err conftest.$ac_objext \
17236 conftest$ac_exeext conftest.$ac_ext
17237 LDFLAGS=$save_LDFLAGS
17238 libdir=$save_libdir
17240 # This implies no fast_install, which is unacceptable.
17241 # Some rework will be needed to allow for fast_install
17242 # before this can be enabled.
17243 hardcode_into_libs=yes
17245 # Add ABI-specific directories to the system library path.
17246 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
17248 # Append ld.so.conf contents to the search path
17249 if test -f /etc/ld.so.conf; then
17250 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;/^$/d' | tr '\n' ' '`
17251 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
17254 # We used to test for /lib/ld.so.1 and disable shared libraries on
17255 # powerpc, because MkLinux only supported shared libraries with the
17256 # GNU dynamic linker. Since this was broken with cross compilers,
17257 # most powerpc-linux boxes support dynamic linking these days and
17258 # people can always --disable-shared, the test was removed, and we
17259 # assume the GNU/Linux dynamic linker is in use.
17260 dynamic_linker='GNU/Linux ld.so'
17267 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17270 dynamic_linker='NetBSD (a.out) ld.so'
17272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17273 soname_spec='${libname}${release}${shared_ext}$major'
17274 dynamic_linker='NetBSD ld.elf_so'
17276 shlibpath_var=LD_LIBRARY_PATH
17277 shlibpath_overrides_runpath=yes
17278 hardcode_into_libs=yes
17283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17284 shlibpath_var=LD_LIBRARY_PATH
17285 shlibpath_overrides_runpath=yes
17292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17293 soname_spec='${libname}${release}${shared_ext}$major'
17294 shlibpath_var=LD_LIBRARY_PATH
17295 shlibpath_overrides_runpath=no
17296 hardcode_into_libs=yes
17297 dynamic_linker='ldqnx.so'
17302 sys_lib_dlsearch_path_spec="/usr/lib"
17304 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17306 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17307 *) need_version=no ;;
17309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17310 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17311 shlibpath_var=LD_LIBRARY_PATH
17312 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17314 openbsd2.[89] | openbsd2.[89].*)
17315 shlibpath_overrides_runpath=no
17318 shlibpath_overrides_runpath=yes
17322 shlibpath_overrides_runpath=yes
17327 libname_spec='$name'
17330 library_names_spec='$libname${shared_ext} $libname.a'
17331 dynamic_linker='OS/2 ld.exe'
17332 shlibpath_var=LIBPATH
17335 osf3* | osf4* | osf5*)
17339 soname_spec='${libname}${release}${shared_ext}$major'
17340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17341 shlibpath_var=LD_LIBRARY_PATH
17342 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17343 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17355 soname_spec='${libname}${release}${shared_ext}$major'
17356 shlibpath_var=LD_LIBRARY_PATH
17357 shlibpath_overrides_runpath=yes
17358 hardcode_into_libs=yes
17359 # ldd complains unless libraries are executable
17360 postinstall_cmds='chmod +x $lib'
17365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17366 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17367 shlibpath_var=LD_LIBRARY_PATH
17368 shlibpath_overrides_runpath=yes
17369 if test "$with_gnu_ld" = yes; then
17377 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17378 soname_spec='${libname}${release}${shared_ext}$major'
17379 shlibpath_var=LD_LIBRARY_PATH
17380 case $host_vendor in
17382 shlibpath_overrides_runpath=no
17384 runpath_var=LD_RUN_PATH
17392 shlibpath_overrides_runpath=no
17393 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17399 if test -d /usr/nec ;then
17401 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17402 soname_spec='$libname${shared_ext}.$major'
17403 shlibpath_var=LD_LIBRARY_PATH
17407 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17408 version_type=freebsd-elf
17411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17412 soname_spec='${libname}${release}${shared_ext}$major'
17413 shlibpath_var=LD_LIBRARY_PATH
17414 shlibpath_overrides_runpath=yes
17415 hardcode_into_libs=yes
17416 if test "$with_gnu_ld" = yes; then
17417 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17419 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17422 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17426 sys_lib_dlsearch_path_spec='/usr/lib'
17430 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17435 shlibpath_var=LD_LIBRARY_PATH
17436 shlibpath_overrides_runpath=no
17437 hardcode_into_libs=yes
17442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17443 soname_spec='${libname}${release}${shared_ext}$major'
17444 shlibpath_var=LD_LIBRARY_PATH
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17452 $as_echo "$dynamic_linker" >&6; }
17453 test "$dynamic_linker" = no && can_build_shared=no
17455 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17456 if test "$GCC" = yes; then
17457 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17460 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17461 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17463 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17464 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17503 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17504 hardcode_action_CXX=
17505 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17506 test -n "$runpath_var_CXX" ||
17507 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17509 # We can hardcode non-existent directories.
17510 if test "$hardcode_direct_CXX" != no &&
17511 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17512 # have to relink, otherwise we might link with an installed library
17513 # when we should be linking with a yet-to-be-installed one
17514 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17515 test "$hardcode_minus_L_CXX" != no; then
17516 # Linking always hardcodes the temporary library directory.
17517 hardcode_action_CXX=relink
17519 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17520 hardcode_action_CXX=immediate
17523 # We cannot hardcode anything, or else we can only hardcode existing
17525 hardcode_action_CXX=unsupported
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17528 $as_echo "$hardcode_action_CXX" >&6; }
17530 if test "$hardcode_action_CXX" = relink ||
17531 test "$inherit_rpath_CXX" = yes; then
17532 # Fast installation is not supported
17533 enable_fast_install=no
17534 elif test "$shlibpath_overrides_runpath" = yes ||
17535 test "$enable_shared" = no; then
17536 # Fast installation is not necessary
17537 enable_fast_install=needless
17546 fi # test -n "$compiler"
17552 with_gnu_ld=$lt_save_with_gnu_ld
17553 lt_cv_path_LDCXX=$lt_cv_path_LD
17554 lt_cv_path_LD=$lt_save_path_LD
17555 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17556 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17557 fi # test "$_lt_caught_CXX_error" != yes
17560 ac_cpp='$CPP $CPPFLAGS'
17561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17577 ac_config_commands="$ac_config_commands libtool"
17582 # Only expand once:
17588 # Configure libltdl
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
17598 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
17599 if test "${libltdl_cv_shlibext+set}" = set; then :
17600 $as_echo_n "(cached) " >&6
17604 eval libltdl_cv_shlibext=$shrext_cmds
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
17608 $as_echo "$libltdl_cv_shlibext" >&6; }
17609 if test -n "$libltdl_cv_shlibext"; then
17611 cat >>confdefs.h <<_ACEOF
17612 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
17618 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
17619 if test "${lt_cv_module_path_var+set}" = set; then :
17620 $as_echo_n "(cached) " >&6
17622 lt_cv_module_path_var="$shlibpath_var"
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
17625 $as_echo "$lt_cv_module_path_var" >&6; }
17626 if test -n "$lt_cv_module_path_var"; then
17628 cat >>confdefs.h <<_ACEOF
17629 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
17635 $as_echo_n "checking for the default library search path... " >&6; }
17636 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
17637 $as_echo_n "(cached) " >&6
17639 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
17641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
17642 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
17643 if test -n "$lt_cv_sys_dlsearch_path"; then
17645 for dir in $lt_cv_sys_dlsearch_path; do
17646 if test -z "$sys_dlsearch_path"; then
17647 sys_dlsearch_path="$dir"
17649 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
17653 cat >>confdefs.h <<_ACEOF
17654 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
17664 ac_cpp='$CPP $CPPFLAGS'
17665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
17672 $as_echo_n "checking for library containing dlopen... " >&6; }
17673 if test "${ac_cv_search_dlopen+set}" = set; then :
17674 $as_echo_n "(cached) " >&6
17676 ac_func_search_save_LIBS=$LIBS
17677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17678 /* end confdefs.h. */
17680 /* Override any GCC internal prototype to avoid an error.
17681 Use char because int might match the return type of a GCC
17682 builtin and then its argument prototype would still apply. */
17695 for ac_lib in '' dl; do
17696 if test -z "$ac_lib"; then
17697 ac_res="none required"
17700 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17702 if ac_fn_c_try_link "$LINENO"; then :
17703 ac_cv_search_dlopen=$ac_res
17705 rm -f core conftest.err conftest.$ac_objext \
17707 if test "${ac_cv_search_dlopen+set}" = set; then :
17711 if test "${ac_cv_search_dlopen+set}" = set; then :
17714 ac_cv_search_dlopen=no
17716 rm conftest.$ac_ext
17717 LIBS=$ac_func_search_save_LIBS
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
17720 $as_echo "$ac_cv_search_dlopen" >&6; }
17721 ac_res=$ac_cv_search_dlopen
17722 if test "$ac_res" != no; then :
17723 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17725 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
17727 if test "$ac_cv_search_dlopen" != "none required" ; then
17728 LIBADD_DLOPEN="-ldl"
17730 libltdl_cv_lib_dl_dlopen="yes"
17731 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17734 /* end confdefs.h. */
17736 # include <dlfcn.h>
17747 if ac_fn_c_try_link "$LINENO"; then :
17749 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
17751 libltdl_cv_func_dlopen="yes"
17752 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17755 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17756 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17757 $as_echo_n "(cached) " >&6
17759 ac_check_lib_save_LIBS=$LIBS
17760 LIBS="-lsvld $LIBS"
17761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17762 /* end confdefs.h. */
17764 /* Override any GCC internal prototype to avoid an error.
17765 Use char because int might match the return type of a GCC
17766 builtin and then its argument prototype would still apply. */
17779 if ac_fn_c_try_link "$LINENO"; then :
17780 ac_cv_lib_svld_dlopen=yes
17782 ac_cv_lib_svld_dlopen=no
17784 rm -f core conftest.err conftest.$ac_objext \
17785 conftest$ac_exeext conftest.$ac_ext
17786 LIBS=$ac_check_lib_save_LIBS
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17789 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
17790 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
17792 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
17794 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
17795 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
17799 rm -f core conftest.err conftest.$ac_objext \
17800 conftest$ac_exeext conftest.$ac_ext
17803 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
17805 lt_save_LIBS="$LIBS"
17806 LIBS="$LIBS $LIBADD_DLOPEN"
17807 for ac_func in dlerror
17809 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
17810 if test "x$ac_cv_func_dlerror" = x""yes; then :
17811 cat >>confdefs.h <<_ACEOF
17812 #define HAVE_DLERROR 1
17818 LIBS="$lt_save_LIBS"
17823 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17824 if test "x$ac_cv_func_shl_load" = x""yes; then :
17826 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
17828 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17831 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17832 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17833 $as_echo_n "(cached) " >&6
17835 ac_check_lib_save_LIBS=$LIBS
17837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17838 /* end confdefs.h. */
17840 /* Override any GCC internal prototype to avoid an error.
17841 Use char because int might match the return type of a GCC
17842 builtin and then its argument prototype would still apply. */
17850 return shl_load ();
17855 if ac_fn_c_try_link "$LINENO"; then :
17856 ac_cv_lib_dld_shl_load=yes
17858 ac_cv_lib_dld_shl_load=no
17860 rm -f core conftest.err conftest.$ac_objext \
17861 conftest$ac_exeext conftest.$ac_ext
17862 LIBS=$ac_check_lib_save_LIBS
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17865 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17866 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17868 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
17870 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
17871 LIBADD_SHL_LOAD="-ldld"
17880 # We only want this for pre-Mac OS X 10.4.
17881 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
17882 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
17884 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
17886 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
17891 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
17893 cygwin* | mingw* | os2* | pw32*)
17894 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
17896 if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
17902 cat >>confdefs.h <<_ACEOF
17903 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
17906 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17911 $as_echo_n "checking for dld_link in -ldld... " >&6; }
17912 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
17913 $as_echo_n "(cached) " >&6
17915 ac_check_lib_save_LIBS=$LIBS
17917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17918 /* end confdefs.h. */
17920 /* Override any GCC internal prototype to avoid an error.
17921 Use char because int might match the return type of a GCC
17922 builtin and then its argument prototype would still apply. */
17930 return dld_link ();
17935 if ac_fn_c_try_link "$LINENO"; then :
17936 ac_cv_lib_dld_dld_link=yes
17938 ac_cv_lib_dld_dld_link=no
17940 rm -f core conftest.err conftest.$ac_objext \
17941 conftest$ac_exeext conftest.$ac_ext
17942 LIBS=$ac_check_lib_save_LIBS
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17945 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
17946 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
17948 $as_echo "#define HAVE_DLD 1" >>confdefs.h
17950 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
17957 if test -n "$LT_DLLOADERS"
17959 for lt_loader in $LT_DLLOADERS; do
17960 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
17963 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
17968 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
17972 ac_cpp='$CPP $CPPFLAGS'
17973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
17979 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
17980 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
17981 $as_echo_n "(cached) " >&6
17983 lt_cv_sys_symbol_underscore=no
17984 cat > conftest.$ac_ext <<_LT_EOF
17985 void nm_test_func(){}
17986 int main(){nm_test_func;return 0;}
17988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17989 (eval $ac_compile) 2>&5
17991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17992 test $ac_status = 0; }; then
17993 # Now try to grab the symbols.
17994 ac_nlist=conftest.nm
17995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
17996 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
17998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17999 test $ac_status = 0; } && test -s "$ac_nlist"; then
18000 # See whether the symbols have a leading underscore.
18001 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
18002 lt_cv_sys_symbol_underscore=yes
18004 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
18007 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
18011 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
18014 echo "configure: failed program was:" >&5
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
18021 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
18022 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
18025 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
18026 if test x"$libltdl_cv_func_dlopen" = xyes ||
18027 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
18029 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
18030 if test "${libltdl_cv_need_uscore+set}" = set; then :
18031 $as_echo_n "(cached) " >&6
18033 libltdl_cv_need_uscore=unknown
18035 LIBS="$LIBS $LIBADD_DLOPEN"
18036 if test "$cross_compiling" = yes; then :
18037 libltdl_cv_need_uscore=cross
18039 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18040 lt_status=$lt_dlunknown
18041 cat > conftest.$ac_ext <<_LT_EOF
18042 #line 18042 "configure"
18043 #include "confdefs.h"
18052 # define LT_DLGLOBAL RTLD_GLOBAL
18055 # define LT_DLGLOBAL DL_GLOBAL
18057 # define LT_DLGLOBAL 0
18061 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18062 find out it does not work in some platform. */
18063 #ifndef LT_DLLAZY_OR_NOW
18065 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18068 # define LT_DLLAZY_OR_NOW DL_LAZY
18071 # define LT_DLLAZY_OR_NOW RTLD_NOW
18074 # define LT_DLLAZY_OR_NOW DL_NOW
18076 # define LT_DLLAZY_OR_NOW 0
18083 void fnord() { int i=42;}
18086 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18087 int status = $lt_dlunknown;
18091 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18092 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18093 /* dlclose (self); */
18101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18102 (eval $ac_link) 2>&5
18104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18105 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18106 (./conftest; exit; ) >&5 2>/dev/null
18108 case x$lt_status in
18109 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
18110 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
18111 x$lt_dlunknown|x*) ;;
18114 # compilation failed
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
18124 $as_echo "$libltdl_cv_need_uscore" >&6; }
18128 if test x"$libltdl_cv_need_uscore" = xyes; then
18130 $as_echo "#define NEED_USCORE 1" >>confdefs.h
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
18135 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
18136 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
18137 $as_echo_n "(cached) " >&6
18139 # PORTME does your system automatically load deplibs for dlopen?
18140 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
18141 # For now, we just catch OSes we know something about -- in the
18142 # future, we'll try test this programmatically.
18143 lt_cv_sys_dlopen_deplibs=unknown
18145 aix3*|aix4.1.*|aix4.2.*)
18146 # Unknown whether this is true for these versions of AIX, but
18147 # we want this `case' here to explicitly catch those versions.
18148 lt_cv_sys_dlopen_deplibs=unknown
18151 lt_cv_sys_dlopen_deplibs=yes
18156 lt_cv_sys_dlopen_deplibs=no
18161 # Assuming the user has installed a libdl from somewhere, this is true
18162 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
18163 lt_cv_sys_dlopen_deplibs=yes
18165 freebsd* | dragonfly*)
18166 lt_cv_sys_dlopen_deplibs=yes
18168 gnu* | linux* | k*bsd*-gnu)
18169 # GNU and its variants, using gnu ld.so (Glibc)
18170 lt_cv_sys_dlopen_deplibs=yes
18173 lt_cv_sys_dlopen_deplibs=yes
18176 lt_cv_sys_dlopen_deplibs=yes
18178 irix[12345]*|irix6.[01]*)
18179 # Catch all versions of IRIX before 6.2, and indicate that we don't
18180 # know how it worked for any of those versions.
18181 lt_cv_sys_dlopen_deplibs=unknown
18184 # The case above catches anything before 6.2, and it's known that
18185 # at 6.2 and later dlopen does load deplibs.
18186 lt_cv_sys_dlopen_deplibs=yes
18189 lt_cv_sys_dlopen_deplibs=yes
18192 lt_cv_sys_dlopen_deplibs=yes
18195 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
18196 # it did *not* use an RPATH in a shared library to find objects the
18197 # library depends on, so we explicitly say `no'.
18198 lt_cv_sys_dlopen_deplibs=no
18200 osf5.0|osf5.0a|osf5.1)
18201 # dlopen *does* load deplibs and with the right loader patch applied
18202 # it even uses RPATH in a shared library to search for shared objects
18203 # that the library depends on, but there's no easy way to know if that
18204 # patch is installed. Since this is the case, all we can really
18205 # say is unknown -- it depends on the patch being installed. If
18206 # it is, this changes to `yes'. Without it, it would be `no'.
18207 lt_cv_sys_dlopen_deplibs=unknown
18210 # the two cases above should catch all versions of osf <= 5.1. Read
18211 # the comments above for what we know about them.
18212 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
18213 # is used to find them so we can finally say `yes'.
18214 lt_cv_sys_dlopen_deplibs=yes
18217 lt_cv_sys_dlopen_deplibs=yes
18220 lt_cv_sys_dlopen_deplibs=yes
18222 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18223 libltdl_cv_sys_dlopen_deplibs=yes
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
18229 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
18230 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
18232 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
18238 for ac_header in argz.h
18240 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
18242 if test "x$ac_cv_header_argz_h" = x""yes; then :
18243 cat >>confdefs.h <<_ACEOF
18244 #define HAVE_ARGZ_H 1
18252 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
18256 if test "x$ac_cv_type_error_t" = x""yes; then :
18258 cat >>confdefs.h <<_ACEOF
18259 #define HAVE_ERROR_T 1
18265 $as_echo "#define error_t int" >>confdefs.h
18268 $as_echo "#define __error_t_defined 1" >>confdefs.h
18274 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
18275 argz_next argz_stringify
18277 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18278 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18279 eval as_val=\$$as_ac_var
18280 if test "x$as_val" = x""yes; then :
18281 cat >>confdefs.h <<_ACEOF
18282 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18288 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18294 if test -z "$ARGZ_H"; then :
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
18296 $as_echo_n "checking if argz actually works... " >&6; }
18297 if test "${lt_cv_sys_argz_works+set}" = set; then :
18298 $as_echo_n "(cached) " >&6
18300 case $host_os in #(
18302 lt_cv_sys_argz_works=no
18303 if test "$cross_compiling" != no; then
18304 lt_cv_sys_argz_works="guessing no"
18306 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
18309 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
18314 if test "$lt_os_major" -gt 1 \
18315 || { test "$lt_os_major" -eq 1 \
18316 && { test "$lt_os_minor" -gt 5 \
18317 || { test "$lt_os_minor" -eq 5 \
18318 && test "$lt_os_micro" -gt 24; }; }; }; then
18319 lt_cv_sys_argz_works=yes
18323 *) lt_cv_sys_argz_works=yes ;;
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
18327 $as_echo "$lt_cv_sys_argz_works" >&6; }
18328 if test $lt_cv_sys_argz_works = yes; then :
18330 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
18336 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
18344 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
18345 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
18346 $as_echo_n "(cached) " >&6
18348 if test -n "$lt_cv_sys_global_symbol_pipe"; then
18349 libltdl_cv_preloaded_symbols=yes
18351 libltdl_cv_preloaded_symbols=no
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
18356 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
18357 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
18359 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
18375 # Check whether --with-included_ltdl was given.
18376 if test "${with_included_ltdl+set}" = set; then :
18377 withval=$with_included_ltdl;
18381 if test "x$with_included_ltdl" != xyes; then
18382 # We are not being forced to use the included libltdl sources, so
18383 # decide whether there is a useful installed version we can use.
18384 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
18387 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
18388 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
18391 if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
18393 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
18394 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
18395 $as_echo_n "(cached) " >&6
18397 ac_check_lib_save_LIBS=$LIBS
18398 LIBS="-lltdl $LIBS"
18399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18400 /* end confdefs.h. */
18402 /* Override any GCC internal prototype to avoid an error.
18403 Use char because int might match the return type of a GCC
18404 builtin and then its argument prototype would still apply. */
18408 char lt_dladvise_preload ();
18412 return lt_dladvise_preload ();
18417 if ac_fn_c_try_link "$LINENO"; then :
18418 ac_cv_lib_ltdl_lt_dladvise_preload=yes
18420 ac_cv_lib_ltdl_lt_dladvise_preload=no
18422 rm -f core conftest.err conftest.$ac_objext \
18423 conftest$ac_exeext conftest.$ac_ext
18424 LIBS=$ac_check_lib_save_LIBS
18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
18427 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
18428 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
18429 with_included_ltdl=no
18431 with_included_ltdl=yes
18435 with_included_ltdl=yes
18439 with_included_ltdl=yes
18448 # Check whether --with-ltdl_include was given.
18449 if test "${with_ltdl_include+set}" = set; then :
18450 withval=$with_ltdl_include;
18454 if test -n "$with_ltdl_include"; then
18455 if test -f "$with_ltdl_include/ltdl.h"; then :
18457 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
18460 with_ltdl_include=no
18464 # Check whether --with-ltdl_lib was given.
18465 if test "${with_ltdl_lib+set}" = set; then :
18466 withval=$with_ltdl_lib;
18470 if test -n "$with_ltdl_lib"; then
18471 if test -f "$with_ltdl_lib/libltdl.la"; then :
18473 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
18479 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
18481 case $enable_ltdl_convenience in
18482 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
18483 "") enable_ltdl_convenience=yes
18484 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
18486 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
18488 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
18494 # For backwards non-gettext consistent compatibility...
18495 INCLTDL="$LTDLINCL"
18500 # If the included ltdl is not to be used, then use the
18501 # preinstalled libltdl we found.
18503 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
18510 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
18512 *) with_included_ltdl=no
18513 LIBLTDL="-L$with_ltdl_lib -lltdl"
18515 LTDLINCL="-I$with_ltdl_include"
18518 INCLTDL="$LTDLINCL"
18520 # Report our decision...
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
18522 $as_echo_n "checking where to find libltdl headers... " >&6; }
18523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
18524 $as_echo "$LTDLINCL" >&6; }
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
18526 $as_echo_n "checking where to find libltdl library... " >&6; }
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
18528 $as_echo "$LIBLTDL" >&6; }
18532 # Check whether --enable-ltdl-install was given.
18533 if test "${enable_ltdl_install+set}" = set; then :
18534 enableval=$enable_ltdl_install;
18538 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
18540 *) enable_ltdl_convenience=yes ;;
18543 if test x"${enable_ltdl_install-no}" != xno; then
18545 INSTALL_LTDL_FALSE='#'
18547 INSTALL_LTDL_TRUE='#'
18548 INSTALL_LTDL_FALSE=
18551 if test x"${enable_ltdl_convenience-no}" != xno; then
18552 CONVENIENCE_LTDL_TRUE=
18553 CONVENIENCE_LTDL_FALSE='#'
18555 CONVENIENCE_LTDL_TRUE='#'
18556 CONVENIENCE_LTDL_FALSE=
18565 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
18566 # the user used. This is so that ltdl.h can pick up the parent projects
18567 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
18568 # definitions required by ltdl.c.
18569 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
18573 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
18575 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18576 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
18578 eval as_val=\$$as_ac_Header
18579 if test "x$as_val" = x""yes; then :
18580 cat >>confdefs.h <<_ACEOF
18581 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18589 for ac_func in closedir opendir readdir
18591 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18592 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18593 eval as_val=\$$as_ac_var
18594 if test "x$as_val" = x""yes; then :
18595 cat >>confdefs.h <<_ACEOF
18596 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18602 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
18607 for ac_func in strlcat strlcpy
18609 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18610 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18611 eval as_val=\$$as_ac_var
18612 if test "x$as_val" = x""yes; then :
18613 cat >>confdefs.h <<_ACEOF
18614 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18620 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
18627 cat >>confdefs.h <<_ACEOF
18628 #define LT_LIBEXT "$libext"
18633 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
18642 # Only expand once:
18646 # Check to see if building shared libraries
18647 libtool_build_shared_libs='no'
18648 if test "$enable_shared" = 'yes'; then
18649 libtool_build_shared_libs='yes'
18652 # Check to see if building static libraries
18653 libtool_build_static_libs='no'
18654 if test "$enable_static" = 'yes'; then
18655 libtool_build_static_libs='yes'
18658 # MinGW and Cygwin can't build C++ DLLs which support exceptions.
18659 if test "${StaticCplusPlusLibraries}" = 'yes'; then
18660 LTCXXLIBOPTS='--static'
18665 # Enable support for building loadable modules
18668 # Check whether --with-modules was given.
18669 if test "${with_modules+set}" = set; then :
18670 withval=$with_modules; with_modules=$withval
18672 with_modules=$libtool_build_shared_libs
18676 # Only allow building loadable modules if we are building shared libraries
18677 if test "$with_modules" != 'no' ; then
18678 if test "$libtool_build_shared_libs" = 'no'; then
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
18680 $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
18684 if test "$with_modules" != 'no'; then
18686 $as_echo "#define BUILD_MODULES 1" >>confdefs.h
18689 if test "$with_modules" != 'no'; then
18691 WITH_MODULES_FALSE='#'
18693 WITH_MODULES_TRUE='#'
18694 WITH_MODULES_FALSE=
18698 # Enable building/use of libltdl if we are building shared libraries regardless
18699 # of whether modules are built or not.
18701 if test "$libtool_build_shared_libs" != 'no'; then
18705 if test "$with_ltdl" != 'no'; then
18707 WITH_LTDL_FALSE='#'
18713 if test "$with_ltdl" != 'no'; then
18715 $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
18719 if test X"$enable_shared" = Xyes; then
18720 DLLDFLAGS=-export-dynamic
18725 # Enable build using delegate libraries built in subdirectories rather than installed
18726 # delegate libraries (bzlib fftw fpx jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
18727 # Check whether --enable-delegate-build was given.
18728 if test "${enable_delegate_build+set}" = set; then :
18729 enableval=$enable_delegate_build; enable_delegate_build=$enableval
18731 enable_delegate_build='no'
18735 # Check whether --enable-deprecated was given.
18736 if test "${enable_deprecated+set}" = set; then :
18737 enableval=$enable_deprecated; enable_deprecated=$enableval
18739 enable_deprecated='no'
18743 if test "$enable_deprecated" = 'yes'; then
18745 $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
18748 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
18751 # Build a version of ImageMagick which operates uninstalled.
18752 # Used to build distributions located via MAGICK_HOME / executable path
18753 # Check whether --enable-installed was given.
18754 if test "${enable_installed+set}" = set; then :
18755 enableval=$enable_installed; enable_installed=$enableval
18757 enable_installed='yes'
18761 if test "$enable_installed" = 'yes'; then
18763 $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
18766 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
18769 # Permit enciphering and deciphering image pixels.
18770 # Check whether --enable-cipher was given.
18771 if test "${enable_cipher+set}" = set; then :
18772 enableval=$enable_cipher; enable_cipher=$enableval
18774 enable_cipher='yes'
18778 if test "$enable_cipher" = 'yes'; then
18780 $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
18784 # Build an embeddable version of ImageMagick.
18785 # Check whether --enable-embeddable was given.
18786 if test "${enable_embeddable+set}" = set; then :
18787 enableval=$enable_embeddable; enable_embeddable=$enableval
18789 enable_embeddable='no'
18793 if test "$enable_embeddable" = 'yes'; then
18795 $as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
18799 # Build a high dynamic range version of ImageMagick.
18800 # Check whether --enable-hdri was given.
18801 if test "${enable_hdri+set}" = set; then :
18802 enableval=$enable_hdri; enable_hdri=$enableval
18809 if test "$enable_hdri" = 'yes'; then
18812 $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
18816 # Build a version of ImageMagick with assert statements.
18817 # Check whether --enable-assert was given.
18818 if test "${enable_assert+set}" = set; then :
18819 enableval=$enable_assert; enable_assert=$enableval
18821 enable_assert='yes'
18825 if test "$enable_assert" = 'no'; then
18827 $as_echo "#define NDEBUG 1" >>confdefs.h
18831 # Add configure option --enable-maintainer-mode which enables dependency
18832 # checking and generation useful to package maintainers. This is made an
18833 # option to avoid confusing end users.
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18836 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18837 # Check whether --enable-maintainer-mode was given.
18838 if test "${enable_maintainer_mode+set}" = set; then :
18839 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18841 USE_MAINTAINER_MODE=no
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18845 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18846 if test $USE_MAINTAINER_MODE = yes; then
18847 MAINTAINER_MODE_TRUE=
18848 MAINTAINER_MODE_FALSE='#'
18850 MAINTAINER_MODE_TRUE='#'
18851 MAINTAINER_MODE_FALSE=
18854 MAINT=$MAINTAINER_MODE_TRUE
18859 # Enable ccmalloc memory debugging support
18860 # Check whether --enable-ccmalloc was given.
18861 if test "${enable_ccmalloc+set}" = set; then :
18862 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
18864 enable_ccmalloc='no'
18868 # Enable Electric Fence memory debugging support
18869 # Check whether --enable-efence was given.
18870 if test "${enable_efence+set}" = set; then :
18871 enableval=$enable_efence; enable_efence=$enableval
18877 # Enable prof-based profiling support
18878 # Check whether --enable-prof was given.
18879 if test "${enable_prof+set}" = set; then :
18880 enableval=$enable_prof; enable_prof=$enableval
18886 # Enable gprof-based profiling support
18887 # Check whether --enable-gprof was given.
18888 if test "${enable_gprof+set}" = set; then :
18889 enableval=$enable_gprof; enable_gprof=$enableval
18895 # Enable gcov-based profiling support
18896 # Check whether --enable-gcov was given.
18897 if test "${enable_gcov+set}" = set; then :
18898 enableval=$enable_gcov; enable_gcov=$enableval
18904 enable_profiling='no'
18905 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
18906 enable_profiling='yes'
18907 if test "$libtool_build_shared_libs" = 'yes'; then
18908 echo "Warning: Can not profile code using shared libraries"
18912 # Magick API method prefix
18914 # Check whether --with-method-prefix was given.
18915 if test "${with_method_prefix+set}" = set; then :
18916 withval=$with_method_prefix; with_method_prefix=$enableval
18918 with_method_prefix=''
18922 if test "$with_method_prefix" != ''; then
18924 cat >>confdefs.h <<_ACEOF
18925 #define NAMESPACE_PREFIX $with_method_prefix
18930 # Number of bits in a Quantum
18932 # Check whether --with-quantum-depth was given.
18933 if test "${with_quantum_depth+set}" = set; then :
18934 withval=$with_quantum_depth; with_quantum_depth=$withval
18936 with_quantum_depth=16
18940 if test "$with_quantum_depth" != '8'; then
18941 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
18944 case "${with_quantum_depth}" in
18949 * ) { as_fn_set_status 16
18950 as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
18952 QUANTUM_DEPTH="$with_quantum_depth"
18954 cat >>confdefs.h <<_ACEOF
18955 #define QUANTUM_DEPTH $QUANTUM_DEPTH
18959 # Set pixel cache threshold
18961 # Check whether --with-cache was given.
18962 if test "${with_cache+set}" = set; then :
18963 withval=$with_cache; with_cache=$withval
18969 if test "$with_cache" != ''; then
18971 cat >>confdefs.h <<_ACEOF
18972 #define PixelCacheThreshold $with_cache
18975 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
18978 # Disable/Enable support for full delegate paths
18980 # Check whether --with-frozenpaths was given.
18981 if test "${with_frozenpaths+set}" = set; then :
18982 withval=$with_frozenpaths; with_frozenpaths=$withval
18984 with_frozenpaths='no'
18988 # Enable build/install of Magick++
18990 # Check whether --with-magick-plus-plus was given.
18991 if test "${with_magick_plus_plus+set}" = set; then :
18992 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
18994 with_magick_plus_plus='yes'
18998 # Disable build/install of PerlMagick.
19000 # Check whether --with-perl was given.
19001 if test "${with_perl+set}" = set; then :
19002 withval=$with_perl; with_perl=$withval
19004 with_perl=$libtool_build_shared_libs
19008 # Options to pass when configuring PerlMagick
19010 # Check whether --with-perl-options was given.
19011 if test "${with_perl_options+set}" = set; then :
19012 withval=$with_perl_options;
19016 PERL_MAKE_OPTIONS=$with_perl_options
19020 # Enable umem, object-caching memory allocation library.
19022 # Check whether --with-umem was given.
19023 if test "${with_umem+set}" = set; then :
19024 withval=$with_umem; with_umem=$withval
19029 if test "$with_umem" != 'yes' ; then
19030 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
19034 # Specify path to shared libstdc++ if not in normal location
19037 # Check whether --with-libstdc was given.
19038 if test "${with_libstdc+set}" = set; then :
19039 withval=$with_libstdc; with_libstdc=$withval
19045 if test "$with_libstdc" != ''; then
19046 if test -d "$with_libstdc"; then
19047 LIBSTDCLDFLAGS="-L$with_libstdc"
19052 # Does gcc required -traditional?
19053 if test $ac_cv_c_compiler_gnu = yes; then
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
19055 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
19056 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
19057 $as_echo_n "(cached) " >&6
19059 ac_pattern="Autoconf.*'x'"
19060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19061 /* end confdefs.h. */
19065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19066 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
19067 ac_cv_prog_gcc_traditional=yes
19069 ac_cv_prog_gcc_traditional=no
19074 if test $ac_cv_prog_gcc_traditional = no; then
19075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19076 /* end confdefs.h. */
19077 #include <termio.h>
19080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19081 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
19082 ac_cv_prog_gcc_traditional=yes
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
19089 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
19090 if test $ac_cv_prog_gcc_traditional = yes; then
19091 CC="$CC -traditional"
19098 # Set defines required to build DLLs and modules using MinGW
19101 # These options are set for multi-thread DLL module build
19102 # libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
19104 # executable/Magick++: _DLL _MAGICKMOD_
19105 MODULE_EXTRA_CPPFLAGS=''
19106 LIBRARY_EXTRA_CPPFLAGS=''
19107 if test "${native_win32_build}" = 'yes'; then
19108 if test "${libtool_build_shared_libs}" = 'yes'; then
19109 CPPFLAGS="$CPPFLAGS -D_DLL"
19110 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
19111 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
19112 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19113 if test "$with_modules" = 'yes'; then
19114 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
19116 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
19119 CPPFLAGS="$CPPFLAGS -D_LIB"
19120 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
19121 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
19123 if test "$with_threads" = 'yes'; then
19124 CPPFLAGS="$CPPFLAGS -D_MT"
19125 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
19126 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
19132 # Check standard headers
19133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
19134 $as_echo_n "checking for ANSI C header files... " >&6; }
19135 if test "${ac_cv_header_stdc+set}" = set; then :
19136 $as_echo_n "(cached) " >&6
19138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19139 /* end confdefs.h. */
19140 #include <stdlib.h>
19141 #include <stdarg.h>
19142 #include <string.h>
19153 if ac_fn_c_try_compile "$LINENO"; then :
19154 ac_cv_header_stdc=yes
19156 ac_cv_header_stdc=no
19158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19160 if test $ac_cv_header_stdc = yes; then
19161 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19163 /* end confdefs.h. */
19164 #include <string.h>
19167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19168 $EGREP "memchr" >/dev/null 2>&1; then :
19171 ac_cv_header_stdc=no
19177 if test $ac_cv_header_stdc = yes; then
19178 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19180 /* end confdefs.h. */
19181 #include <stdlib.h>
19184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19185 $EGREP "free" >/dev/null 2>&1; then :
19188 ac_cv_header_stdc=no
19194 if test $ac_cv_header_stdc = yes; then
19195 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19196 if test "$cross_compiling" = yes; then :
19199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19200 /* end confdefs.h. */
19202 #include <stdlib.h>
19203 #if ((' ' & 0x0FF) == 0x020)
19204 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19205 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19207 # define ISLOWER(c) \
19208 (('a' <= (c) && (c) <= 'i') \
19209 || ('j' <= (c) && (c) <= 'r') \
19210 || ('s' <= (c) && (c) <= 'z'))
19211 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19214 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19219 for (i = 0; i < 256; i++)
19220 if (XOR (islower (i), ISLOWER (i))
19221 || toupper (i) != TOUPPER (i))
19226 if ac_fn_c_try_run "$LINENO"; then :
19229 ac_cv_header_stdc=no
19231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19232 conftest.$ac_objext conftest.beam conftest.$ac_ext
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
19238 $as_echo "$ac_cv_header_stdc" >&6; }
19239 if test $ac_cv_header_stdc = yes; then
19241 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
19245 if ! test x"$ac_cv_header_stdc" = x"yes"; then
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
19247 header files. Compilation cannot proceed. Please install the ANSI C
19248 headers and rerun this script." >&5
19249 $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
19250 header files. Compilation cannot proceed. Please install the ANSI C
19251 headers and rerun this script." >&2;};
19253 ac_header_dirent=no
19254 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19255 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
19257 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
19258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
19259 $as_echo_n "(cached) " >&6
19261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19262 /* end confdefs.h. */
19263 #include <sys/types.h>
19275 if ac_fn_c_try_compile "$LINENO"; then :
19276 eval "$as_ac_Header=yes"
19278 eval "$as_ac_Header=no"
19280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19282 eval ac_res=\$$as_ac_Header
19283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19284 $as_echo "$ac_res" >&6; }
19285 eval as_val=\$$as_ac_Header
19286 if test "x$as_val" = x""yes; then :
19287 cat >>confdefs.h <<_ACEOF
19288 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19291 ac_header_dirent=$ac_hdr; break
19295 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19296 if test $ac_header_dirent = dirent.h; then
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19298 $as_echo_n "checking for library containing opendir... " >&6; }
19299 if test "${ac_cv_search_opendir+set}" = set; then :
19300 $as_echo_n "(cached) " >&6
19302 ac_func_search_save_LIBS=$LIBS
19303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19304 /* end confdefs.h. */
19306 /* Override any GCC internal prototype to avoid an error.
19307 Use char because int might match the return type of a GCC
19308 builtin and then its argument prototype would still apply. */
19321 for ac_lib in '' dir; do
19322 if test -z "$ac_lib"; then
19323 ac_res="none required"
19326 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19328 if ac_fn_c_try_link "$LINENO"; then :
19329 ac_cv_search_opendir=$ac_res
19331 rm -f core conftest.err conftest.$ac_objext \
19333 if test "${ac_cv_search_opendir+set}" = set; then :
19337 if test "${ac_cv_search_opendir+set}" = set; then :
19340 ac_cv_search_opendir=no
19342 rm conftest.$ac_ext
19343 LIBS=$ac_func_search_save_LIBS
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19346 $as_echo "$ac_cv_search_opendir" >&6; }
19347 ac_res=$ac_cv_search_opendir
19348 if test "$ac_res" != no; then :
19349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
19355 $as_echo_n "checking for library containing opendir... " >&6; }
19356 if test "${ac_cv_search_opendir+set}" = set; then :
19357 $as_echo_n "(cached) " >&6
19359 ac_func_search_save_LIBS=$LIBS
19360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19361 /* end confdefs.h. */
19363 /* Override any GCC internal prototype to avoid an error.
19364 Use char because int might match the return type of a GCC
19365 builtin and then its argument prototype would still apply. */
19378 for ac_lib in '' x; do
19379 if test -z "$ac_lib"; then
19380 ac_res="none required"
19383 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19385 if ac_fn_c_try_link "$LINENO"; then :
19386 ac_cv_search_opendir=$ac_res
19388 rm -f core conftest.err conftest.$ac_objext \
19390 if test "${ac_cv_search_opendir+set}" = set; then :
19394 if test "${ac_cv_search_opendir+set}" = set; then :
19397 ac_cv_search_opendir=no
19399 rm conftest.$ac_ext
19400 LIBS=$ac_func_search_save_LIBS
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
19403 $as_echo "$ac_cv_search_opendir" >&6; }
19404 ac_res=$ac_cv_search_opendir
19405 if test "$ac_res" != no; then :
19406 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19413 # Check additional headers
19414 for ac_header in arm/limits.h complex.h errno.h fcntl.h inttypes.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h stdarg.h stddef.h string.h strings.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/types.h sys/wait.h unistd.h wchar.h
19416 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19417 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19418 eval as_val=\$$as_ac_Header
19419 if test "x$as_val" = x""yes; then :
19420 cat >>confdefs.h <<_ACEOF
19421 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19431 # Checks for typedefs, structures, and compiler characteristics.
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
19436 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
19437 if test "${ac_cv_header_stdbool_h+set}" = set; then :
19438 $as_echo_n "(cached) " >&6
19440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19441 /* end confdefs.h. */
19443 #include <stdbool.h>
19445 "error: bool is not defined"
19448 "error: false is not defined"
19451 "error: false is not 0"
19454 "error: true is not defined"
19457 "error: true is not 1"
19459 #ifndef __bool_true_false_are_defined
19460 "error: __bool_true_false_are_defined is not defined"
19463 struct s { _Bool s: 1; _Bool t; } s;
19465 char a[true == 1 ? 1 : -1];
19466 char b[false == 0 ? 1 : -1];
19467 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
19468 char d[(bool) 0.5 == true ? 1 : -1];
19470 char f[(_Bool) 0.0 == false ? 1 : -1];
19472 char h[sizeof (_Bool)];
19473 char i[sizeof s.t];
19474 enum { j = false, k = true, l = false * true, m = true * 256 };
19475 /* The following fails for
19476 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
19478 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
19479 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
19480 # if defined __xlc__ || defined __GNUC__
19481 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
19482 reported by James Lemley on 2005-10-05; see
19483 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
19484 This test is not quite right, since xlc is allowed to
19485 reject this program, as the initializer for xlcbug is
19486 not one of the forms that C requires support for.
19487 However, doing the test right would require a runtime
19488 test, and that would make cross-compilation harder.
19489 Let us hope that IBM fixes the xlc bug, and also adds
19490 support for this kind of constant expression. In the
19491 meantime, this test will reject xlc, which is OK, since
19492 our stdbool.h substitute should suffice. We also test
19493 this with GCC, where it should work, to detect more
19494 quickly whether someone messes up the test in the
19496 char digs[] = "0123456789";
19497 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
19499 /* Catch a bug in an HP-UX C compiler. See
19500 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
19501 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
19512 /* Refer to every declared value, to avoid compiler optimizations. */
19513 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
19514 + !m + !n + !o + !p + !q + !pq);
19520 if ac_fn_c_try_compile "$LINENO"; then :
19521 ac_cv_header_stdbool_h=yes
19523 ac_cv_header_stdbool_h=no
19525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
19528 $as_echo "$ac_cv_header_stdbool_h" >&6; }
19529 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
19530 if test "x$ac_cv_type__Bool" = x""yes; then :
19532 cat >>confdefs.h <<_ACEOF
19533 #define HAVE__BOOL 1
19539 if test $ac_cv_header_stdbool_h = yes; then
19541 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
19545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
19546 $as_echo_n "checking for working volatile... " >&6; }
19547 if test "${ac_cv_c_volatile+set}" = set; then :
19548 $as_echo_n "(cached) " >&6
19550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19551 /* end confdefs.h. */
19558 int * volatile y = (int *) 0;
19564 if ac_fn_c_try_compile "$LINENO"; then :
19565 ac_cv_c_volatile=yes
19567 ac_cv_c_volatile=no
19569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
19572 $as_echo "$ac_cv_c_volatile" >&6; }
19573 if test $ac_cv_c_volatile = no; then
19575 $as_echo "#define volatile /**/" >>confdefs.h
19579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
19580 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
19581 if test "${ac_cv_c_stringize+set}" = set; then :
19582 $as_echo_n "(cached) " >&6
19584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19585 /* end confdefs.h. */
19588 char *s = x(teststring);
19590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19591 $EGREP "#teststring" >/dev/null 2>&1; then :
19592 ac_cv_c_stringize=no
19594 ac_cv_c_stringize=yes
19599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
19600 $as_echo "$ac_cv_c_stringize" >&6; }
19601 if test $ac_cv_c_stringize = yes; then
19603 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
19608 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
19609 if test "${ac_cv_header_stat_broken+set}" = set; then :
19610 $as_echo_n "(cached) " >&6
19612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19613 /* end confdefs.h. */
19614 #include <sys/types.h>
19615 #include <sys/stat.h>
19617 #if defined S_ISBLK && defined S_IFDIR
19618 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
19621 #if defined S_ISBLK && defined S_IFCHR
19622 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
19625 #if defined S_ISLNK && defined S_IFREG
19626 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
19629 #if defined S_ISSOCK && defined S_IFREG
19630 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
19634 if ac_fn_c_try_compile "$LINENO"; then :
19635 ac_cv_header_stat_broken=no
19637 ac_cv_header_stat_broken=yes
19639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
19642 $as_echo "$ac_cv_header_stat_broken" >&6; }
19643 if test $ac_cv_header_stat_broken = yes; then
19645 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
19649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19650 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19651 if test "${ac_cv_header_time+set}" = set; then :
19652 $as_echo_n "(cached) " >&6
19654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19655 /* end confdefs.h. */
19656 #include <sys/types.h>
19657 #include <sys/time.h>
19663 if ((struct tm *) 0)
19669 if ac_fn_c_try_compile "$LINENO"; then :
19670 ac_cv_header_time=yes
19672 ac_cv_header_time=no
19674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19677 $as_echo "$ac_cv_header_time" >&6; }
19678 if test $ac_cv_header_time = yes; then
19680 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19685 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19686 if test "${ac_cv_struct_tm+set}" = set; then :
19687 $as_echo_n "(cached) " >&6
19689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19690 /* end confdefs.h. */
19691 #include <sys/types.h>
19698 int *p = &tm.tm_sec;
19704 if ac_fn_c_try_compile "$LINENO"; then :
19705 ac_cv_struct_tm=time.h
19707 ac_cv_struct_tm=sys/time.h
19709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19712 $as_echo "$ac_cv_struct_tm" >&6; }
19713 if test $ac_cv_struct_tm = sys/time.h; then
19715 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
19720 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
19721 if test "${ac_cv_sys_interpreter+set}" = set; then :
19722 $as_echo_n "(cached) " >&6
19728 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
19729 if test $? -ne 69; then
19730 ac_cv_sys_interpreter=yes
19732 ac_cv_sys_interpreter=no
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
19737 $as_echo "$ac_cv_sys_interpreter" >&6; }
19738 interpval=$ac_cv_sys_interpreter
19741 # If the C compiler does not fully support the ANSI C qualifier const,
19742 # define const to be empty.
19743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19744 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19745 if test "${ac_cv_c_const+set}" = set; then :
19746 $as_echo_n "(cached) " >&6
19748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19749 /* end confdefs.h. */
19754 /* FIXME: Include the comments suggested by Paul. */
19755 #ifndef __cplusplus
19756 /* Ultrix mips cc rejects this. */
19757 typedef int charset[2];
19759 /* SunOS 4.1.1 cc rejects this. */
19760 char const *const *pcpcc;
19762 /* NEC SVR4.0.2 mips cc rejects this. */
19763 struct point {int x, y;};
19764 static struct point const zero = {0,0};
19765 /* AIX XL C 1.02.0.0 rejects this.
19766 It does not let you subtract one const X* pointer from another in
19767 an arm of an if-expression whose if-part is not a constant
19769 const char *g = "string";
19770 pcpcc = &g + (g ? g-g : 0);
19771 /* HPUX 7.0 cc rejects these. */
19773 ppc = (char**) pcpcc;
19774 pcpcc = (char const *const *) ppc;
19775 { /* SCO 3.2v4 cc rejects this. */
19777 char const *s = 0 ? (char *) 0 : (char const *) 0;
19782 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19783 int x[] = {25, 17};
19784 const int *foo = &x[0];
19787 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19788 typedef const int *iptr;
19792 { /* AIX XL C 1.02.0.0 rejects this saying
19793 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19794 struct s { int j; const int *ap[3]; };
19795 struct s *b; b->j = 5;
19797 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19798 const int foo = 10;
19799 if (!foo) return 0;
19801 return !cs[0] && !zero.x;
19808 if ac_fn_c_try_compile "$LINENO"; then :
19813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19816 $as_echo "$ac_cv_c_const" >&6; }
19817 if test $ac_cv_c_const = no; then
19819 $as_echo "#define const /**/" >>confdefs.h
19824 # If the C compiler supports the keyword inline, do nothing. Otherwise
19825 # define inline to __inline__ or __inline if it accepts one of those,
19826 # otherwise define inline to be empty.
19827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19828 $as_echo_n "checking for inline... " >&6; }
19829 if test "${ac_cv_c_inline+set}" = set; then :
19830 $as_echo_n "(cached) " >&6
19833 for ac_kw in inline __inline__ __inline; do
19834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19835 /* end confdefs.h. */
19836 #ifndef __cplusplus
19838 static $ac_kw foo_t static_foo () {return 0; }
19839 $ac_kw foo_t foo () {return 0; }
19843 if ac_fn_c_try_compile "$LINENO"; then :
19844 ac_cv_c_inline=$ac_kw
19846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19847 test "$ac_cv_c_inline" != no && break
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19852 $as_echo "$ac_cv_c_inline" >&6; }
19854 case $ac_cv_c_inline in
19857 case $ac_cv_c_inline in
19859 *) ac_val=$ac_cv_c_inline;;
19861 cat >>confdefs.h <<_ACEOF
19862 #ifndef __cplusplus
19863 #define inline $ac_val
19870 # If the C compiler supports the keyword restrict, do nothing. Otherwise
19871 # define restrict to __restrict__ or __restrict if it accepts one of those,
19872 # otherwise define restrict to be empty.
19873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
19874 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
19875 if test "${ac_cv_c_restrict+set}" = set; then :
19876 $as_echo_n "(cached) " >&6
19878 ac_cv_c_restrict=no
19879 # The order here caters to the fact that C++ does not require restrict.
19880 for ac_kw in __restrict __restrict__ _Restrict restrict; do
19881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19882 /* end confdefs.h. */
19883 typedef int * int_ptr;
19884 int foo (int_ptr $ac_kw ip) {
19891 int * $ac_kw t = s;
19898 if ac_fn_c_try_compile "$LINENO"; then :
19899 ac_cv_c_restrict=$ac_kw
19901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19902 test "$ac_cv_c_restrict" != no && break
19906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
19907 $as_echo "$ac_cv_c_restrict" >&6; }
19909 case $ac_cv_c_restrict in
19911 no) $as_echo "#define restrict /**/" >>confdefs.h
19913 *) cat >>confdefs.h <<_ACEOF
19914 #define restrict $ac_cv_c_restrict
19920 # If words are stored with the most significant byte first (like
19921 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
19922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
19923 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
19924 if test "${ac_cv_c_bigendian+set}" = set; then :
19925 $as_echo_n "(cached) " >&6
19927 ac_cv_c_bigendian=unknown
19928 # See if we're dealing with a universal compiler.
19929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19930 /* end confdefs.h. */
19931 #ifndef __APPLE_CC__
19932 not a universal capable compiler
19937 if ac_fn_c_try_compile "$LINENO"; then :
19939 # Check for potential -arch flags. It is not universal unless
19940 # there are at least two -arch flags with different values.
19943 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
19944 if test -n "$ac_prev"; then
19946 i?86 | x86_64 | ppc | ppc64)
19947 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
19950 ac_cv_c_bigendian=universal
19956 elif test "x$ac_word" = "x-arch"; then
19961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19962 if test $ac_cv_c_bigendian = unknown; then
19963 # See if sys/param.h defines the BYTE_ORDER macro.
19964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19965 /* end confdefs.h. */
19966 #include <sys/types.h>
19967 #include <sys/param.h>
19972 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
19973 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
19975 bogus endian macros
19982 if ac_fn_c_try_compile "$LINENO"; then :
19983 # It does; now see whether it defined to BIG_ENDIAN or not.
19984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19985 /* end confdefs.h. */
19986 #include <sys/types.h>
19987 #include <sys/param.h>
19992 #if BYTE_ORDER != BIG_ENDIAN
20000 if ac_fn_c_try_compile "$LINENO"; then :
20001 ac_cv_c_bigendian=yes
20003 ac_cv_c_bigendian=no
20005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20009 if test $ac_cv_c_bigendian = unknown; then
20010 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
20011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20012 /* end confdefs.h. */
20013 #include <limits.h>
20018 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
20019 bogus endian macros
20026 if ac_fn_c_try_compile "$LINENO"; then :
20027 # It does; now see whether it defined to _BIG_ENDIAN or not.
20028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20029 /* end confdefs.h. */
20030 #include <limits.h>
20035 #ifndef _BIG_ENDIAN
20043 if ac_fn_c_try_compile "$LINENO"; then :
20044 ac_cv_c_bigendian=yes
20046 ac_cv_c_bigendian=no
20048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20052 if test $ac_cv_c_bigendian = unknown; then
20053 # Compile a test program.
20054 if test "$cross_compiling" = yes; then :
20055 # Try to guess by grepping values from an object file.
20056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20057 /* end confdefs.h. */
20058 short int ascii_mm[] =
20059 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20060 short int ascii_ii[] =
20061 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20062 int use_ascii (int i) {
20063 return ascii_mm[i] + ascii_ii[i];
20065 short int ebcdic_ii[] =
20066 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20067 short int ebcdic_mm[] =
20068 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20069 int use_ebcdic (int i) {
20070 return ebcdic_mm[i] + ebcdic_ii[i];
20077 return use_ascii (foo) == use_ebcdic (foo);
20082 if ac_fn_c_try_compile "$LINENO"; then :
20083 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
20084 ac_cv_c_bigendian=yes
20086 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20087 if test "$ac_cv_c_bigendian" = unknown; then
20088 ac_cv_c_bigendian=no
20090 # finding both strings is unlikely to happen, but who knows?
20091 ac_cv_c_bigendian=unknown
20095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20098 /* end confdefs.h. */
20099 $ac_includes_default
20104 /* Are we little or big endian? From Harbison&Steele. */
20108 char c[sizeof (long int)];
20111 return u.c[sizeof (long int) - 1] == 1;
20117 if ac_fn_c_try_run "$LINENO"; then :
20118 ac_cv_c_bigendian=no
20120 ac_cv_c_bigendian=yes
20122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20123 conftest.$ac_objext conftest.beam conftest.$ac_ext
20128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
20129 $as_echo "$ac_cv_c_bigendian" >&6; }
20130 case $ac_cv_c_bigendian in #(
20132 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
20138 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
20142 as_fn_error "unknown endianness
20143 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
20147 # Define mode_t to a suitable type, if standard headers do not define it.
20148 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
20149 if test "x$ac_cv_type_mode_t" = x""yes; then :
20153 cat >>confdefs.h <<_ACEOF
20160 # Define off_t to a suitable type, if standard headers do not define it.
20161 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
20162 if test "x$ac_cv_type_off_t" = x""yes; then :
20166 cat >>confdefs.h <<_ACEOF
20167 #define off_t long int
20173 # Define pid_t to a suitable type, if standard headers do not define it.
20174 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
20175 if test "x$ac_cv_type_pid_t" = x""yes; then :
20179 cat >>confdefs.h <<_ACEOF
20186 # Define size_t to a suitable type, if standard headers do not define it.
20187 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
20188 if test "x$ac_cv_type_size_t" = x""yes; then :
20192 cat >>confdefs.h <<_ACEOF
20193 #define size_t unsigned int
20199 # Define ssize_t to a suitable type, if standard headers do not define it.
20200 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
20201 if test "x$ac_cv_type_ssize_t" = x""yes; then :
20205 cat >>confdefs.h <<_ACEOF
20206 #define ssize_t int
20212 # If the C compiler supports a working long double type with more range
20213 # or precision than the double type, define HAVE_LONG_DOUBLE.
20215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
20216 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
20217 if test "${ac_cv_type_long_double_wider+set}" = set; then :
20218 $as_echo_n "(cached) " >&6
20220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20221 /* end confdefs.h. */
20223 long double const a[] =
20225 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
20226 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
20231 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
20232 + (x ? f (x) : 'c'));
20238 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
20239 + (DBL_MANT_DIG < LDBL_MANT_DIG)
20240 - (LDBL_MAX_EXP < DBL_MAX_EXP)
20241 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
20242 && (int) LDBL_EPSILON == 0
20250 if ac_fn_c_try_compile "$LINENO"; then :
20251 ac_cv_type_long_double_wider=yes
20253 ac_cv_type_long_double_wider=no
20255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
20258 $as_echo "$ac_cv_type_long_double_wider" >&6; }
20259 if test $ac_cv_type_long_double_wider = yes; then
20261 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
20266 # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
20267 # C compiler predefines it.
20268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
20269 $as_echo_n "checking whether char is unsigned... " >&6; }
20270 if test "${ac_cv_c_char_unsigned+set}" = set; then :
20271 $as_echo_n "(cached) " >&6
20273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20274 /* end confdefs.h. */
20275 $ac_includes_default
20279 static int test_array [1 - 2 * !(((char) -1) < 0)];
20286 if ac_fn_c_try_compile "$LINENO"; then :
20287 ac_cv_c_char_unsigned=no
20289 ac_cv_c_char_unsigned=yes
20291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
20294 $as_echo "$ac_cv_c_char_unsigned" >&6; }
20295 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
20296 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
20301 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
20302 # The cast to long int works around a bug in the HP C Compiler
20303 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20304 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20305 # This bug is HP SR number 8606223364.
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
20307 $as_echo_n "checking size of signed short... " >&6; }
20308 if test "${ac_cv_sizeof_signed_short+set}" = set; then :
20309 $as_echo_n "(cached) " >&6
20311 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
20314 if test "$ac_cv_type_signed_short" = yes; then
20315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20317 { as_fn_set_status 77
20318 as_fn_error "cannot compute sizeof (signed short)
20319 See \`config.log' for more details." "$LINENO" 5; }; }
20321 ac_cv_sizeof_signed_short=0
20326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
20327 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
20331 cat >>confdefs.h <<_ACEOF
20332 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
20337 # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
20338 # The cast to long int works around a bug in the HP C Compiler
20339 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20340 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20341 # This bug is HP SR number 8606223364.
20342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
20343 $as_echo_n "checking size of unsigned short... " >&6; }
20344 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
20345 $as_echo_n "(cached) " >&6
20347 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
20350 if test "$ac_cv_type_unsigned_short" = yes; then
20351 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20353 { as_fn_set_status 77
20354 as_fn_error "cannot compute sizeof (unsigned short)
20355 See \`config.log' for more details." "$LINENO" 5; }; }
20357 ac_cv_sizeof_unsigned_short=0
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
20363 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
20367 cat >>confdefs.h <<_ACEOF
20368 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
20373 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
20374 # The cast to long int works around a bug in the HP C Compiler
20375 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20376 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20377 # This bug is HP SR number 8606223364.
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
20379 $as_echo_n "checking size of signed int... " >&6; }
20380 if test "${ac_cv_sizeof_signed_int+set}" = set; then :
20381 $as_echo_n "(cached) " >&6
20383 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then :
20386 if test "$ac_cv_type_signed_int" = yes; then
20387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20389 { as_fn_set_status 77
20390 as_fn_error "cannot compute sizeof (signed int)
20391 See \`config.log' for more details." "$LINENO" 5; }; }
20393 ac_cv_sizeof_signed_int=0
20398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
20399 $as_echo "$ac_cv_sizeof_signed_int" >&6; }
20403 cat >>confdefs.h <<_ACEOF
20404 #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
20409 # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
20410 # The cast to long int works around a bug in the HP C Compiler
20411 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20412 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20413 # This bug is HP SR number 8606223364.
20414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
20415 $as_echo_n "checking size of unsigned int... " >&6; }
20416 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
20417 $as_echo_n "(cached) " >&6
20419 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
20422 if test "$ac_cv_type_unsigned_int" = yes; then
20423 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20424 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20425 { as_fn_set_status 77
20426 as_fn_error "cannot compute sizeof (unsigned int)
20427 See \`config.log' for more details." "$LINENO" 5; }; }
20429 ac_cv_sizeof_unsigned_int=0
20434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
20435 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
20439 cat >>confdefs.h <<_ACEOF
20440 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
20445 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
20446 # The cast to long int works around a bug in the HP C Compiler
20447 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20448 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20449 # This bug is HP SR number 8606223364.
20450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
20451 $as_echo_n "checking size of signed long... " >&6; }
20452 if test "${ac_cv_sizeof_signed_long+set}" = set; then :
20453 $as_echo_n "(cached) " >&6
20455 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then :
20458 if test "$ac_cv_type_signed_long" = yes; then
20459 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20461 { as_fn_set_status 77
20462 as_fn_error "cannot compute sizeof (signed long)
20463 See \`config.log' for more details." "$LINENO" 5; }; }
20465 ac_cv_sizeof_signed_long=0
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
20471 $as_echo "$ac_cv_sizeof_signed_long" >&6; }
20475 cat >>confdefs.h <<_ACEOF
20476 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
20481 # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
20482 # The cast to long int works around a bug in the HP C Compiler
20483 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20484 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20485 # This bug is HP SR number 8606223364.
20486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
20487 $as_echo_n "checking size of unsigned long... " >&6; }
20488 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
20489 $as_echo_n "(cached) " >&6
20491 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
20494 if test "$ac_cv_type_unsigned_long" = yes; then
20495 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20497 { as_fn_set_status 77
20498 as_fn_error "cannot compute sizeof (unsigned long)
20499 See \`config.log' for more details." "$LINENO" 5; }; }
20501 ac_cv_sizeof_unsigned_long=0
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
20507 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
20511 cat >>confdefs.h <<_ACEOF
20512 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
20517 # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
20518 # 'signed long long' is not supported then the value defined is zero.
20519 # The cast to long int works around a bug in the HP C Compiler
20520 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20521 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20522 # This bug is HP SR number 8606223364.
20523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
20524 $as_echo_n "checking size of signed long long... " >&6; }
20525 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
20526 $as_echo_n "(cached) " >&6
20528 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
20531 if test "$ac_cv_type_signed_long_long" = yes; then
20532 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20534 { as_fn_set_status 77
20535 as_fn_error "cannot compute sizeof (signed long long)
20536 See \`config.log' for more details." "$LINENO" 5; }; }
20538 ac_cv_sizeof_signed_long_long=0
20543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
20544 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
20548 cat >>confdefs.h <<_ACEOF
20549 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
20554 # Obtain size of a 'unsigned long long' and define as
20555 # SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
20556 # supported then the value defined is zero.
20557 # The cast to long int works around a bug in the HP C Compiler
20558 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20559 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20560 # This bug is HP SR number 8606223364.
20561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
20562 $as_echo_n "checking size of unsigned long long... " >&6; }
20563 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
20564 $as_echo_n "(cached) " >&6
20566 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
20569 if test "$ac_cv_type_unsigned_long_long" = yes; then
20570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20572 { as_fn_set_status 77
20573 as_fn_error "cannot compute sizeof (unsigned long long)
20574 See \`config.log' for more details." "$LINENO" 5; }; }
20576 ac_cv_sizeof_unsigned_long_long=0
20581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
20582 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
20586 cat >>confdefs.h <<_ACEOF
20587 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
20592 # Obtain size of off_t and define as SIZEOF_OFF_T
20593 # The cast to long int works around a bug in the HP C Compiler
20594 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20595 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20596 # This bug is HP SR number 8606223364.
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
20598 $as_echo_n "checking size of off_t... " >&6; }
20599 if test "${ac_cv_sizeof_off_t+set}" = set; then :
20600 $as_echo_n "(cached) " >&6
20602 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
20605 if test "$ac_cv_type_off_t" = yes; then
20606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20608 { as_fn_set_status 77
20609 as_fn_error "cannot compute sizeof (off_t)
20610 See \`config.log' for more details." "$LINENO" 5; }; }
20612 ac_cv_sizeof_off_t=0
20617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
20618 $as_echo "$ac_cv_sizeof_off_t" >&6; }
20622 cat >>confdefs.h <<_ACEOF
20623 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
20628 # Obtain size of size_t and define as SIZEOF_SIZE_T
20629 # The cast to long int works around a bug in the HP C Compiler
20630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20632 # This bug is HP SR number 8606223364.
20633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
20634 $as_echo_n "checking size of size_t... " >&6; }
20635 if test "${ac_cv_sizeof_size_t+set}" = set; then :
20636 $as_echo_n "(cached) " >&6
20638 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
20641 if test "$ac_cv_type_size_t" = yes; then
20642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20644 { as_fn_set_status 77
20645 as_fn_error "cannot compute sizeof (size_t)
20646 See \`config.log' for more details." "$LINENO" 5; }; }
20648 ac_cv_sizeof_size_t=0
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
20654 $as_echo "$ac_cv_sizeof_size_t" >&6; }
20658 cat >>confdefs.h <<_ACEOF
20659 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
20664 # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
20665 # The cast to long int works around a bug in the HP C Compiler
20666 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
20667 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
20668 # This bug is HP SR number 8606223364.
20669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
20670 $as_echo_n "checking size of unsigned int*... " >&6; }
20671 if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
20672 $as_echo_n "(cached) " >&6
20674 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then :
20677 if test "$ac_cv_type_unsigned_intp" = yes; then
20678 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20680 { as_fn_set_status 77
20681 as_fn_error "cannot compute sizeof (unsigned int*)
20682 See \`config.log' for more details." "$LINENO" 5; }; }
20684 ac_cv_sizeof_unsigned_intp=0
20689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
20690 $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
20694 cat >>confdefs.h <<_ACEOF
20695 #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
20701 # Compute sized types for current CPU and compiler options.
20704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
20705 $as_echo_n "checking for signed 8-bit type... " >&6; }
20706 INT8_T='signed char'
20707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
20708 $as_echo "$INT8_T" >&6; }
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
20712 $as_echo_n "checking for unsigned 8-bit type... " >&6; }
20713 UINT8_T='unsigned char'
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
20715 $as_echo "$UINT8_T" >&6; }
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
20719 $as_echo_n "checking for signed 16-bit type... " >&6; }
20720 INT16_T='signed short'
20721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
20722 $as_echo "$INT16_T" >&6; }
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
20726 $as_echo_n "checking for unsigned 16-bit type... " >&6; }
20727 UINT16_T='unsigned short'
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
20729 $as_echo "$UINT16_T" >&6; }
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
20733 $as_echo_n "checking for signed 32-bit type... " >&6; }
20735 if test $ac_cv_sizeof_signed_int -eq 4; then
20736 INT32_T='signed int'
20737 elif test $ac_cv_sizeof_signed_long -eq 4; then
20738 INT32_T='signed long'
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
20741 $as_echo "$INT32_T" >&6; }
20744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
20745 $as_echo_n "checking for unsigned 32-bit type... " >&6; }
20747 if test $ac_cv_sizeof_unsigned_int -eq 4; then
20748 UINT32_T='unsigned int'
20749 elif test $ac_cv_sizeof_unsigned_long -eq 4; then
20750 UINT32_T='unsigned long'
20752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
20753 $as_echo "$UINT32_T" >&6; }
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
20757 $as_echo_n "checking for signed 64-bit type... " >&6; }
20759 if test $ac_cv_sizeof_signed_long -eq 8; then
20760 INT64_T='signed long'
20761 elif test $ac_cv_sizeof_signed_long_long -eq 8; then
20762 INT64_T='signed long long'
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
20765 $as_echo "$INT64_T" >&6; }
20768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
20769 $as_echo_n "checking for unsigned 64-bit type... " >&6; }
20771 if test $ac_cv_sizeof_unsigned_long -eq 8; then
20772 UINT64_T='unsigned long'
20773 elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
20774 UINT64_T='unsigned long long'
20776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
20777 $as_echo "$UINT64_T" >&6; }
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
20781 $as_echo_n "checking for unsigned maximum type... " >&6; }
20783 if test "$UINT64_T" != 'none'; then
20784 UINTMAX_T=$UINT64_T
20785 elif test "$UINT32_T" != 'none'; then
20786 UINTMAX_T=$UINT32_T
20788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
20789 $as_echo "$UINTMAX_T" >&6; }
20792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
20793 $as_echo_n "checking for pointer difference type... " >&6; }
20795 if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
20796 UINTPTR_T='unsigned long'
20797 elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
20798 UINTPTR_T='unsigned long long'
20800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
20801 $as_echo "$UINTPTR_T" >&6; }
20804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
20805 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
20806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20807 /* end confdefs.h. */
20812 { const char *func = __func__; return(func != 0 ? 0 : 1); }
20817 if ac_fn_c_try_compile "$LINENO"; then :
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20819 $as_echo "yes" >&6; }
20821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20822 $as_echo "no" >&6; }
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
20824 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
20825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20826 /* end confdefs.h. */
20831 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
20836 if ac_fn_c_try_compile "$LINENO"; then :
20837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20838 $as_echo "yes" >&6; }
20840 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20844 $as_echo "no" >&6; }
20846 $as_echo "#define __func__ __FILE__" >>confdefs.h
20849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20855 # Check for functions
20858 for ac_header in stdlib.h unistd.h
20860 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20861 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20862 eval as_val=\$$as_ac_Header
20863 if test "x$as_val" = x""yes; then :
20864 cat >>confdefs.h <<_ACEOF
20865 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20872 for ac_func in getpagesize
20874 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
20875 if test "x$ac_cv_func_getpagesize" = x""yes; then :
20876 cat >>confdefs.h <<_ACEOF
20877 #define HAVE_GETPAGESIZE 1
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
20884 $as_echo_n "checking for working mmap file i/o... " >&6; }
20885 if test "${magick_cv_func_mmap_fileio+set}" = set; then :
20886 $as_echo_n "(cached) " >&6
20888 if test "$cross_compiling" = yes; then :
20889 magick_cv_func_mmap_fileio=no
20891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20892 /* end confdefs.h. */
20893 $ac_includes_default
20894 /* malloc might have been renamed as rpl_malloc. */
20898 This test is derived from GNU Autoconf's similar macro.
20899 The purpose of this test is to verify that files may be memory
20900 mapped, and that memory mapping and file I/O are coherent.
20902 The test creates a test file, memory maps the file, updates
20903 the file using the memory map, and then reads the file using
20904 file I/O to verify that the file contains the updates.
20908 #include <sys/mman.h>
20910 #if !STDC_HEADERS && !HAVE_STDLIB_H
20914 /* This mess was copied from the GNU getpagesize.h. */
20915 #if !HAVE_GETPAGESIZE
20916 /* Assume that all systems that can run configure have sys/param.h. */
20917 # if !HAVE_SYS_PARAM_H
20918 # define HAVE_SYS_PARAM_H 1
20921 # ifdef _SC_PAGESIZE
20922 # define getpagesize() sysconf(_SC_PAGESIZE)
20923 # else /* no _SC_PAGESIZE */
20924 # if HAVE_SYS_PARAM_H
20925 # include <sys/param.h>
20926 # ifdef EXEC_PAGESIZE
20927 # define getpagesize() EXEC_PAGESIZE
20928 # else /* no EXEC_PAGESIZE */
20930 # define getpagesize() NBPG * CLSIZE
20933 # endif /* no CLSIZE */
20934 # else /* no NBPG */
20936 # define getpagesize() NBPC
20937 # else /* no NBPC */
20939 # define getpagesize() PAGESIZE
20940 # endif /* PAGESIZE */
20941 # endif /* no NBPC */
20942 # endif /* no NBPG */
20943 # endif /* no EXEC_PAGESIZE */
20944 # else /* no HAVE_SYS_PARAM_H */
20945 # define getpagesize() 8192 /* punt totally */
20946 # endif /* no HAVE_SYS_PARAM_H */
20947 # endif /* no _SC_PAGESIZE */
20949 #endif /* no HAVE_GETPAGESIZE */
20954 char *data, *data2, *data3;
20958 pagesize = getpagesize ();
20960 /* First, make a file with some known garbage in it. */
20961 data = (char *) malloc (pagesize);
20964 for (i = 0; i < pagesize; ++i)
20965 *(data + i) = rand ();
20967 fd = creat ("conftest.mmap", 0600);
20970 if (write (fd, data, pagesize) != pagesize)
20974 /* Mmap the file as read/write/shared and verify that we see the
20976 fd = open ("conftest.mmap", O_RDWR);
20979 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
20982 for (i = 0; i < pagesize; ++i)
20983 if (*(data + i) != *(data2 + i))
20986 /* Finally, make sure that changes to the mapped area
20987 percolate back to the file as seen by read(). */
20988 for (i = 0; i < pagesize; ++i)
20989 *(data2 + i) = *(data2 + i) + 1;
20990 data3 = (char *) malloc (pagesize);
20993 if (read (fd, data3, pagesize) != pagesize)
20995 for (i = 0; i < pagesize; ++i)
20996 if (*(data2 + i) != *(data3 + i))
21002 if ac_fn_c_try_run "$LINENO"; then :
21003 magick_cv_func_mmap_fileio=yes
21005 magick_cv_func_mmap_fileio=no
21007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21008 conftest.$ac_objext conftest.beam conftest.$ac_ext
21012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
21013 $as_echo "$magick_cv_func_mmap_fileio" >&6; }
21014 if test $magick_cv_func_mmap_fileio = yes; then
21016 $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
21019 rm -f conftest.mmap
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
21022 $as_echo_n "checking whether closedir returns void... " >&6; }
21023 if test "${ac_cv_func_closedir_void+set}" = set; then :
21024 $as_echo_n "(cached) " >&6
21026 if test "$cross_compiling" = yes; then :
21027 ac_cv_func_closedir_void=yes
21029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21030 /* end confdefs.h. */
21031 $ac_includes_default
21032 #include <$ac_header_dirent>
21033 #ifndef __cplusplus
21040 return closedir (opendir (".")) != 0;
21045 if ac_fn_c_try_run "$LINENO"; then :
21046 ac_cv_func_closedir_void=no
21048 ac_cv_func_closedir_void=yes
21050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21051 conftest.$ac_objext conftest.beam conftest.$ac_ext
21055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
21056 $as_echo "$ac_cv_func_closedir_void" >&6; }
21057 if test $ac_cv_func_closedir_void = yes; then
21059 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
21066 for ac_header in $ac_header_list
21068 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21069 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21071 eval as_val=\$$as_ac_Header
21072 if test "x$as_val" = x""yes; then :
21073 cat >>confdefs.h <<_ACEOF
21074 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21088 for ac_func in getpagesize
21090 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
21091 if test "x$ac_cv_func_getpagesize" = x""yes; then :
21092 cat >>confdefs.h <<_ACEOF
21093 #define HAVE_GETPAGESIZE 1
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
21100 $as_echo_n "checking for working mmap... " >&6; }
21101 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
21102 $as_echo_n "(cached) " >&6
21104 if test "$cross_compiling" = yes; then :
21105 ac_cv_func_mmap_fixed_mapped=no
21107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21108 /* end confdefs.h. */
21109 $ac_includes_default
21110 /* malloc might have been renamed as rpl_malloc. */
21113 /* Thanks to Mike Haertel and Jim Avera for this test.
21114 Here is a matrix of mmap possibilities:
21115 mmap private not fixed
21116 mmap private fixed at somewhere currently unmapped
21117 mmap private fixed at somewhere already mapped
21118 mmap shared not fixed
21119 mmap shared fixed at somewhere currently unmapped
21120 mmap shared fixed at somewhere already mapped
21121 For private mappings, we should verify that changes cannot be read()
21122 back from the file, nor mmap's back from the file at a different
21123 address. (There have been systems where private was not correctly
21124 implemented like the infamous i386 svr4.0, and systems where the
21125 VM page cache was not coherent with the file system buffer cache
21126 like early versions of FreeBSD and possibly contemporary NetBSD.)
21127 For shared mappings, we should conversely verify that changes get
21128 propagated back to all the places they're supposed to be.
21130 Grep wants private fixed already mapped.
21131 The main things grep needs to know about mmap are:
21132 * does it exist and is it safe to write into the mmap'd area
21133 * how to use it (BSD variants) */
21136 #include <sys/mman.h>
21138 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
21142 /* This mess was copied from the GNU getpagesize.h. */
21143 #ifndef HAVE_GETPAGESIZE
21144 # ifdef _SC_PAGESIZE
21145 # define getpagesize() sysconf(_SC_PAGESIZE)
21146 # else /* no _SC_PAGESIZE */
21147 # ifdef HAVE_SYS_PARAM_H
21148 # include <sys/param.h>
21149 # ifdef EXEC_PAGESIZE
21150 # define getpagesize() EXEC_PAGESIZE
21151 # else /* no EXEC_PAGESIZE */
21153 # define getpagesize() NBPG * CLSIZE
21156 # endif /* no CLSIZE */
21157 # else /* no NBPG */
21159 # define getpagesize() NBPC
21160 # else /* no NBPC */
21162 # define getpagesize() PAGESIZE
21163 # endif /* PAGESIZE */
21164 # endif /* no NBPC */
21165 # endif /* no NBPG */
21166 # endif /* no EXEC_PAGESIZE */
21167 # else /* no HAVE_SYS_PARAM_H */
21168 # define getpagesize() 8192 /* punt totally */
21169 # endif /* no HAVE_SYS_PARAM_H */
21170 # endif /* no _SC_PAGESIZE */
21172 #endif /* no HAVE_GETPAGESIZE */
21177 char *data, *data2, *data3;
21178 const char *cdata2;
21182 pagesize = getpagesize ();
21184 /* First, make a file with some known garbage in it. */
21185 data = (char *) malloc (pagesize);
21188 for (i = 0; i < pagesize; ++i)
21189 *(data + i) = rand ();
21191 fd = creat ("conftest.mmap", 0600);
21194 if (write (fd, data, pagesize) != pagesize)
21198 /* Next, check that the tail of a page is zero-filled. File must have
21199 non-zero length, otherwise we risk SIGBUS for entire page. */
21200 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
21204 if (write (fd2, cdata2, 1) != 1)
21206 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
21207 if (data2 == MAP_FAILED)
21209 for (i = 0; i < pagesize; ++i)
21213 if (munmap (data2, pagesize))
21216 /* Next, try to mmap the file at a fixed address which already has
21217 something else allocated at it. If we can, also make sure that
21218 we see the same garbage. */
21219 fd = open ("conftest.mmap", O_RDWR);
21222 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
21223 MAP_PRIVATE | MAP_FIXED, fd, 0L))
21225 for (i = 0; i < pagesize; ++i)
21226 if (*(data + i) != *(data2 + i))
21229 /* Finally, make sure that changes to the mapped area do not
21230 percolate back to the file as seen by read(). (This is a bug on
21231 some variants of i386 svr4.0.) */
21232 for (i = 0; i < pagesize; ++i)
21233 *(data2 + i) = *(data2 + i) + 1;
21234 data3 = (char *) malloc (pagesize);
21237 if (read (fd, data3, pagesize) != pagesize)
21239 for (i = 0; i < pagesize; ++i)
21240 if (*(data + i) != *(data3 + i))
21246 if ac_fn_c_try_run "$LINENO"; then :
21247 ac_cv_func_mmap_fixed_mapped=yes
21249 ac_cv_func_mmap_fixed_mapped=no
21251 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21252 conftest.$ac_objext conftest.beam conftest.$ac_ext
21256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
21257 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
21258 if test $ac_cv_func_mmap_fixed_mapped = yes; then
21260 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
21263 rm -f conftest.mmap conftest.txt
21265 for ac_header in vfork.h
21267 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
21268 if test "x$ac_cv_header_vfork_h" = x""yes; then :
21269 cat >>confdefs.h <<_ACEOF
21270 #define HAVE_VFORK_H 1
21277 for ac_func in fork vfork
21279 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21280 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21281 eval as_val=\$$as_ac_var
21282 if test "x$as_val" = x""yes; then :
21283 cat >>confdefs.h <<_ACEOF
21284 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21290 if test "x$ac_cv_func_fork" = xyes; then
21291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
21292 $as_echo_n "checking for working fork... " >&6; }
21293 if test "${ac_cv_func_fork_works+set}" = set; then :
21294 $as_echo_n "(cached) " >&6
21296 if test "$cross_compiling" = yes; then :
21297 ac_cv_func_fork_works=cross
21299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21300 /* end confdefs.h. */
21301 $ac_includes_default
21306 /* By Ruediger Kuhlmann. */
21307 return fork () < 0;
21313 if ac_fn_c_try_run "$LINENO"; then :
21314 ac_cv_func_fork_works=yes
21316 ac_cv_func_fork_works=no
21318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21319 conftest.$ac_objext conftest.beam conftest.$ac_ext
21323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
21324 $as_echo "$ac_cv_func_fork_works" >&6; }
21327 ac_cv_func_fork_works=$ac_cv_func_fork
21329 if test "x$ac_cv_func_fork_works" = xcross; then
21331 *-*-amigaos* | *-*-msdosdjgpp*)
21332 # Override, as these systems have only a dummy fork() stub
21333 ac_cv_func_fork_works=no
21336 ac_cv_func_fork_works=yes
21339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
21340 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
21342 ac_cv_func_vfork_works=$ac_cv_func_vfork
21343 if test "x$ac_cv_func_vfork" = xyes; then
21344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
21345 $as_echo_n "checking for working vfork... " >&6; }
21346 if test "${ac_cv_func_vfork_works+set}" = set; then :
21347 $as_echo_n "(cached) " >&6
21349 if test "$cross_compiling" = yes; then :
21350 ac_cv_func_vfork_works=cross
21352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21353 /* end confdefs.h. */
21354 /* Thanks to Paul Eggert for this test. */
21355 $ac_includes_default
21356 #include <sys/wait.h>
21357 #ifdef HAVE_VFORK_H
21358 # include <vfork.h>
21360 /* On some sparc systems, changes by the child to local and incoming
21361 argument registers are propagated back to the parent. The compiler
21362 is told about this with #include <vfork.h>, but some compilers
21363 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
21364 static variable whose address is put into a register that is
21365 clobbered by the vfork. */
21368 sparc_address_test (int arg)
21370 sparc_address_test (arg) int arg;
21373 static pid_t child;
21391 pid_t parent = getpid ();
21394 sparc_address_test (0);
21399 /* Here is another test for sparc vfork register problems. This
21400 test uses lots of local variables, at least as many local
21401 variables as main has allocated so far including compiler
21402 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
21403 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
21404 reuse the register of parent for one of the local variables,
21405 since it will think that parent can't possibly be used any more
21406 in this routine. Assigning to the local variable will thus
21407 munge parent in the parent process. */
21409 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
21410 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
21411 /* Convince the compiler that p..p7 are live; otherwise, it might
21412 use the same hardware register for all 8 local variables. */
21413 if (p != p1 || p != p2 || p != p3 || p != p4
21414 || p != p5 || p != p6 || p != p7)
21417 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
21418 from child file descriptors. If the child closes a descriptor
21419 before it execs or exits, this munges the parent's descriptor
21420 as well. Test for this by closing stdout in the child. */
21421 _exit(close(fileno(stdout)) != 0);
21426 while (wait(&status) != child)
21429 /* Was there some problem with vforking? */
21432 /* Did the child fail? (This shouldn't happen.) */
21435 /* Did the vfork/compiler bug occur? */
21436 || parent != getpid()
21438 /* Did the file descriptor bug occur? */
21439 || fstat(fileno(stdout), &st) != 0
21444 if ac_fn_c_try_run "$LINENO"; then :
21445 ac_cv_func_vfork_works=yes
21447 ac_cv_func_vfork_works=no
21449 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21450 conftest.$ac_objext conftest.beam conftest.$ac_ext
21454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
21455 $as_echo "$ac_cv_func_vfork_works" >&6; }
21458 if test "x$ac_cv_func_fork_works" = xcross; then
21459 ac_cv_func_vfork_works=$ac_cv_func_vfork
21460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
21461 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
21464 if test "x$ac_cv_func_vfork_works" = xyes; then
21466 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
21470 $as_echo "#define vfork fork" >>confdefs.h
21473 if test "x$ac_cv_func_fork_works" = xyes; then
21475 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
21479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
21480 $as_echo_n "checking for working memcmp... " >&6; }
21481 if test "${ac_cv_func_memcmp_working+set}" = set; then :
21482 $as_echo_n "(cached) " >&6
21484 if test "$cross_compiling" = yes; then :
21485 ac_cv_func_memcmp_working=no
21487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21488 /* end confdefs.h. */
21489 $ac_includes_default
21494 /* Some versions of memcmp are not 8-bit clean. */
21495 char c0 = '\100', c1 = '\200', c2 = '\201';
21496 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21499 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21500 or more and with at least one buffer not starting on a 4-byte boundary.
21501 William Lewis provided this test program. */
21506 for (i = 0; i < 4; i++)
21510 strcpy (a, "--------01111111");
21511 strcpy (b, "--------10000000");
21512 if (memcmp (a, b, 16) >= 0)
21522 if ac_fn_c_try_run "$LINENO"; then :
21523 ac_cv_func_memcmp_working=yes
21525 ac_cv_func_memcmp_working=no
21527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21528 conftest.$ac_objext conftest.beam conftest.$ac_ext
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
21533 $as_echo "$ac_cv_func_memcmp_working" >&6; }
21534 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
21535 *" memcmp.$ac_objext "* ) ;;
21536 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21541 for ac_header in sys/select.h sys/socket.h
21543 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21544 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21545 eval as_val=\$$as_ac_Header
21546 if test "x$as_val" = x""yes; then :
21547 cat >>confdefs.h <<_ACEOF
21548 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
21556 $as_echo_n "checking types of arguments for select... " >&6; }
21557 if test "${ac_cv_func_select_args+set}" = set; then :
21558 $as_echo_n "(cached) " >&6
21560 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21561 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
21562 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
21563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21564 /* end confdefs.h. */
21565 $ac_includes_default
21566 #ifdef HAVE_SYS_SELECT_H
21567 # include <sys/select.h>
21569 #ifdef HAVE_SYS_SOCKET_H
21570 # include <sys/socket.h>
21576 extern int select ($ac_arg1,
21577 $ac_arg234, $ac_arg234, $ac_arg234,
21583 if ac_fn_c_try_compile "$LINENO"; then :
21584 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
21586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21590 # Provide a safe default value.
21591 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
21594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
21595 $as_echo "$ac_cv_func_select_args" >&6; }
21596 ac_save_IFS=$IFS; IFS=','
21597 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21601 cat >>confdefs.h <<_ACEOF
21602 #define SELECT_TYPE_ARG1 $1
21606 cat >>confdefs.h <<_ACEOF
21607 #define SELECT_TYPE_ARG234 ($2)
21611 cat >>confdefs.h <<_ACEOF
21612 #define SELECT_TYPE_ARG5 ($3)
21617 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
21618 $as_echo_n "(cached) " >&6
21620 ac_cv_func_setvbuf_reversed=no
21624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
21625 $as_echo_n "checking return type of signal handlers... " >&6; }
21626 if test "${ac_cv_type_signal+set}" = set; then :
21627 $as_echo_n "(cached) " >&6
21629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21630 /* end confdefs.h. */
21631 #include <sys/types.h>
21632 #include <signal.h>
21637 return *(signal (0, 0)) (0) == 1;
21642 if ac_fn_c_try_compile "$LINENO"; then :
21643 ac_cv_type_signal=int
21645 ac_cv_type_signal=void
21647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
21650 $as_echo "$ac_cv_type_signal" >&6; }
21652 cat >>confdefs.h <<_ACEOF
21653 #define RETSIGTYPE $ac_cv_type_signal
21657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
21658 $as_echo_n "checking for working strtod... " >&6; }
21659 if test "${ac_cv_func_strtod+set}" = set; then :
21660 $as_echo_n "(cached) " >&6
21662 if test "$cross_compiling" = yes; then :
21663 ac_cv_func_strtod=no
21665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21666 /* end confdefs.h. */
21668 $ac_includes_default
21676 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
21677 char *string = " +69";
21680 value = strtod (string, &term);
21681 if (value != 69 || term != (string + 4))
21686 /* Under Solaris 2.4, strtod returns the wrong value for the
21687 terminating character under some conditions. */
21688 char *string = "NaN";
21690 strtod (string, &term);
21691 if (term != string && *(term - 1) == 0)
21698 if ac_fn_c_try_run "$LINENO"; then :
21699 ac_cv_func_strtod=yes
21701 ac_cv_func_strtod=no
21703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21704 conftest.$ac_objext conftest.beam conftest.$ac_ext
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
21709 $as_echo "$ac_cv_func_strtod" >&6; }
21710 if test $ac_cv_func_strtod = no; then
21711 case " $LIBOBJS " in
21712 *" strtod.$ac_objext "* ) ;;
21713 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
21717 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
21718 if test "x$ac_cv_func_pow" = x""yes; then :
21722 if test $ac_cv_func_pow = no; then
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
21724 $as_echo_n "checking for pow in -lm... " >&6; }
21725 if test "${ac_cv_lib_m_pow+set}" = set; then :
21726 $as_echo_n "(cached) " >&6
21728 ac_check_lib_save_LIBS=$LIBS
21730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21731 /* end confdefs.h. */
21733 /* Override any GCC internal prototype to avoid an error.
21734 Use char because int might match the return type of a GCC
21735 builtin and then its argument prototype would still apply. */
21748 if ac_fn_c_try_link "$LINENO"; then :
21749 ac_cv_lib_m_pow=yes
21753 rm -f core conftest.err conftest.$ac_objext \
21754 conftest$ac_exeext conftest.$ac_ext
21755 LIBS=$ac_check_lib_save_LIBS
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
21758 $as_echo "$ac_cv_lib_m_pow" >&6; }
21759 if test "x$ac_cv_lib_m_pow" = x""yes; then :
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
21763 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
21770 for ac_func in vprintf
21772 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
21773 if test "x$ac_cv_func_vprintf" = x""yes; then :
21774 cat >>confdefs.h <<_ACEOF
21775 #define HAVE_VPRINTF 1
21778 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
21779 if test "x$ac_cv_func__doprnt" = x""yes; then :
21781 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
21790 for ac_func in _exit atexit clock directio execvp floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r localtime_r lstat memmove memset mkstemp munmap _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign pow pread pwrite 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 strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep vsprintf vsnprintf waitpid _wfopen _wstat
21792 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21793 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21794 eval as_val=\$$as_ac_var
21795 if test "x$as_val" = x""yes; then :
21796 cat >>confdefs.h <<_ACEOF
21797 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21805 # Check for clock_gettime().
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
21808 $as_echo_n "checking for library containing clock_gettime... " >&6; }
21809 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21810 $as_echo_n "(cached) " >&6
21812 ac_func_search_save_LIBS=$LIBS
21813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21814 /* end confdefs.h. */
21816 /* Override any GCC internal prototype to avoid an error.
21817 Use char because int might match the return type of a GCC
21818 builtin and then its argument prototype would still apply. */
21822 char clock_gettime ();
21826 return clock_gettime ();
21831 for ac_lib in '' rt; do
21832 if test -z "$ac_lib"; then
21833 ac_res="none required"
21836 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21838 if ac_fn_c_try_link "$LINENO"; then :
21839 ac_cv_search_clock_gettime=$ac_res
21841 rm -f core conftest.err conftest.$ac_objext \
21843 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21847 if test "${ac_cv_search_clock_gettime+set}" = set; then :
21850 ac_cv_search_clock_gettime=no
21852 rm conftest.$ac_ext
21853 LIBS=$ac_func_search_save_LIBS
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
21856 $as_echo "$ac_cv_search_clock_gettime" >&6; }
21857 ac_res=$ac_cv_search_clock_gettime
21858 if test "$ac_res" != no; then :
21859 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21862 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
21865 $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
21866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21867 /* end confdefs.h. */
21872 clockid_t clockType = CLOCK_REALTIME;
21877 if ac_fn_c_try_compile "$LINENO"; then :
21879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21880 $as_echo "yes" >&6; }
21882 $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
21886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21887 $as_echo "no" >&6; }
21890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21894 for ac_func in gettimeofday ftime
21896 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21897 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21898 eval as_val=\$$as_ac_var
21899 if test "x$as_val" = x""yes; then :
21900 cat >>confdefs.h <<_ACEOF
21901 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21914 # Check for function prototypes
21918 ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
21919 #include <unistd.h>
21921 if test "x$ac_cv_have_decl_pread" = x""yes; then :
21927 cat >>confdefs.h <<_ACEOF
21928 #define HAVE_DECL_PREAD $ac_have_decl
21930 ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
21931 #include <unistd.h>
21933 if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
21939 cat >>confdefs.h <<_ACEOF
21940 #define HAVE_DECL_PWRITE $ac_have_decl
21944 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
21945 #include <strings.h>
21947 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
21953 cat >>confdefs.h <<_ACEOF
21954 #define HAVE_DECL_STRLCPY $ac_have_decl
21958 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
21960 #include <stdarg.h>
21962 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
21968 cat >>confdefs.h <<_ACEOF
21969 #define HAVE_DECL_VSNPRINTF $ac_have_decl
21975 # C++ Support Tests (For Magick++)
21978 have_magick_plus_plus='no'
21979 if test "$with_magick_plus_plus" = 'yes'; then
21983 ac_cpp='$CXXCPP $CPPFLAGS'
21984 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21985 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21986 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21989 # Full set of headers used...
21990 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
21991 # functional iomanip iosfwd iostream iterator list string strstream utility
21993 ac_cpp='$CXXCPP $CPPFLAGS'
21994 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21995 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21996 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21999 ac_cpp='$CXXCPP $CPPFLAGS'
22000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22003 if test -z "$CXX"; then
22004 if test -n "$CCC"; then
22007 if test -n "$ac_tool_prefix"; then
22008 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22010 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
22011 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22013 $as_echo_n "checking for $ac_word... " >&6; }
22014 if test "${ac_cv_prog_CXX+set}" = set; then :
22015 $as_echo_n "(cached) " >&6
22017 if test -n "$CXX"; then
22018 ac_cv_prog_CXX="$CXX" # Let the user override the test.
22020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22021 for as_dir in $PATH
22024 test -z "$as_dir" && as_dir=.
22025 for ac_exec_ext in '' $ac_executable_extensions; do
22026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22027 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
22028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22037 CXX=$ac_cv_prog_CXX
22038 if test -n "$CXX"; then
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
22040 $as_echo "$CXX" >&6; }
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22043 $as_echo "no" >&6; }
22047 test -n "$CXX" && break
22050 if test -z "$CXX"; then
22052 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
22054 # Extract the first word of "$ac_prog", so it can be a program name with args.
22055 set dummy $ac_prog; ac_word=$2
22056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22057 $as_echo_n "checking for $ac_word... " >&6; }
22058 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
22059 $as_echo_n "(cached) " >&6
22061 if test -n "$ac_ct_CXX"; then
22062 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
22064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22065 for as_dir in $PATH
22068 test -z "$as_dir" && as_dir=.
22069 for ac_exec_ext in '' $ac_executable_extensions; do
22070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22071 ac_cv_prog_ac_ct_CXX="$ac_prog"
22072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22081 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
22082 if test -n "$ac_ct_CXX"; then
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
22084 $as_echo "$ac_ct_CXX" >&6; }
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22087 $as_echo "no" >&6; }
22091 test -n "$ac_ct_CXX" && break
22094 if test "x$ac_ct_CXX" = x; then
22097 case $cross_compiling:$ac_tool_warned in
22099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22101 ac_tool_warned=yes ;;
22109 # Provide some information about the compiler.
22110 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
22113 for ac_option in --version -v -V -qversion; do
22114 { { ac_try="$ac_compiler $ac_option >&5"
22115 case "(($ac_try" in
22116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22117 *) ac_try_echo=$ac_try;;
22119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
22120 $as_echo "$ac_try_echo"; } >&5
22121 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
22123 if test -s conftest.err; then
22125 ... rest of stderr output deleted ...
22126 10q' conftest.err >conftest.er1
22127 cat conftest.er1 >&5
22129 rm -f conftest.er1 conftest.err
22130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22131 test $ac_status = 0; }
22134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
22135 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
22136 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
22137 $as_echo_n "(cached) " >&6
22139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22140 /* end confdefs.h. */
22153 if ac_fn_cxx_try_compile "$LINENO"; then :
22154 ac_compiler_gnu=yes
22158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22159 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
22163 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
22164 if test $ac_compiler_gnu = yes; then
22169 ac_test_CXXFLAGS=${CXXFLAGS+set}
22170 ac_save_CXXFLAGS=$CXXFLAGS
22171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
22172 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
22173 if test "${ac_cv_prog_cxx_g+set}" = set; then :
22174 $as_echo_n "(cached) " >&6
22176 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
22177 ac_cxx_werror_flag=yes
22178 ac_cv_prog_cxx_g=no
22180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22181 /* end confdefs.h. */
22191 if ac_fn_cxx_try_compile "$LINENO"; then :
22192 ac_cv_prog_cxx_g=yes
22195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22196 /* end confdefs.h. */
22206 if ac_fn_cxx_try_compile "$LINENO"; then :
22209 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
22211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22212 /* end confdefs.h. */
22222 if ac_fn_cxx_try_compile "$LINENO"; then :
22223 ac_cv_prog_cxx_g=yes
22225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22230 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
22232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
22233 $as_echo "$ac_cv_prog_cxx_g" >&6; }
22234 if test "$ac_test_CXXFLAGS" = set; then
22235 CXXFLAGS=$ac_save_CXXFLAGS
22236 elif test $ac_cv_prog_cxx_g = yes; then
22237 if test "$GXX" = yes; then
22243 if test "$GXX" = yes; then
22250 ac_cpp='$CXXCPP $CPPFLAGS'
22251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22255 depcc="$CXX" am_compiler_list=
22257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
22258 $as_echo_n "checking dependency style of $depcc... " >&6; }
22259 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
22260 $as_echo_n "(cached) " >&6
22262 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
22263 # We make a subdir and do the tests there. Otherwise we can end up
22264 # making bogus files that we don't know about and never remove. For
22265 # instance it was reported that on HP-UX the gcc test will end up
22266 # making a dummy file named `D' -- because `-MD' means `put the output
22269 # Copy depcomp to subdir because otherwise we won't find it if we're
22270 # using a relative directory.
22271 cp "$am_depcomp" conftest.dir
22273 # We will build objects and dependencies in a subdirectory because
22274 # it helps to detect inapplicable dependency modes. For instance
22275 # both Tru64's cc and ICC support -MD to output dependencies as a
22276 # side effect of compilation, but ICC will put the dependencies in
22277 # the current directory while Tru64 will put them in the object
22281 am_cv_CXX_dependencies_compiler_type=none
22282 if test "$am_compiler_list" = ""; then
22283 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
22285 am__universal=false
22286 case " $depcc " in #(
22287 *\ -arch\ *\ -arch\ *) am__universal=true ;;
22290 for depmode in $am_compiler_list; do
22291 # Setup a source with many dependencies, because some compilers
22292 # like to wrap large dependency lists on column 80 (with \), and
22293 # we should not choose a depcomp mode which is confused by this.
22295 # We need to recreate these files for each test, as the compiler may
22296 # overwrite some of them when testing with obscure command lines.
22297 # This happens at least with the AIX C compiler.
22299 for i in 1 2 3 4 5 6; do
22300 echo '#include "conftst'$i'.h"' >> sub/conftest.c
22301 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
22302 # Solaris 8's {/usr,}/bin/sh.
22303 touch sub/conftst$i.h
22305 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
22307 # We check with `-c' and `-o' for the sake of the "dashmstdout"
22308 # mode. It turns out that the SunPro C++ compiler does not properly
22309 # handle `-M -o', and we need to detect this. Also, some Intel
22310 # versions had trouble with output in subdirs
22311 am__obj=sub/conftest.${OBJEXT-o}
22312 am__minus_obj="-o $am__obj"
22315 # This depmode causes a compiler race in universal mode.
22316 test "$am__universal" = false || continue
22319 # after this tag, mechanisms are not by side-effect, so they'll
22320 # only be used when explicitly requested
22321 if test "x$enable_dependency_tracking" = xyes; then
22327 msvisualcpp | msvcmsys)
22328 # This compiler won't grok `-c -o', but also, the minuso test has
22329 # not run yet. These depmodes are late enough in the game, and
22330 # so weak that their functioning should not be impacted.
22331 am__obj=conftest.${OBJEXT-o}
22336 if depmode=$depmode \
22337 source=sub/conftest.c object=$am__obj \
22338 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
22339 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
22340 >/dev/null 2>conftest.err &&
22341 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
22342 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
22343 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
22344 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
22345 # icc doesn't choke on unknown options, it will just issue warnings
22346 # or remarks (even with -Werror). So we grep stderr for any message
22347 # that says an option was ignored or not supported.
22348 # When given -MP, icc 7.0 and 7.1 complain thusly:
22349 # icc: Command line warning: ignoring option '-M'; no argument required
22350 # The diagnosis changed in icc 8.0:
22351 # icc: Command line remark: option '-MP' not supported
22352 if (grep 'ignoring option' conftest.err ||
22353 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
22354 am_cv_CXX_dependencies_compiler_type=$depmode
22361 rm -rf conftest.dir
22363 am_cv_CXX_dependencies_compiler_type=none
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
22368 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
22369 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
22372 test "x$enable_dependency_tracking" != xno \
22373 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
22374 am__fastdepCXX_TRUE=
22375 am__fastdepCXX_FALSE='#'
22377 am__fastdepCXX_TRUE='#'
22378 am__fastdepCXX_FALSE=
22382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
22383 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
22384 if test "${ac_cv_cxx_have_bool+set}" = set; then :
22385 $as_echo_n "(cached) " >&6
22389 ac_cpp='$CXXCPP $CPPFLAGS'
22390 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22391 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22392 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22395 /* end confdefs.h. */
22397 int f(int x){return 1;}
22398 int f(char x){return 1;}
22399 int f(bool x){return 1;}
22404 bool b = true; return f(b);
22409 if ac_fn_cxx_try_compile "$LINENO"; then :
22410 ac_cv_cxx_have_bool=yes
22412 ac_cv_cxx_have_bool=no
22414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22416 ac_cpp='$CXXCPP $CPPFLAGS'
22417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_bool" >&5
22424 $as_echo "$ac_cv_cxx_have_bool" >&6; }
22425 if test "$ac_cv_cxx_have_bool" = yes; then
22427 $as_echo "#define HAVE_BOOL /**/" >>confdefs.h
22431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
22432 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
22433 if test "${ac_cv_cxx_have_namespaces+set}" = set; then :
22434 $as_echo_n "(cached) " >&6
22438 ac_cpp='$CXXCPP $CPPFLAGS'
22439 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22440 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22441 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22444 /* end confdefs.h. */
22445 namespace Outer { namespace Inner { int i = 0; }}
22449 using namespace Outer::Inner; return i;
22454 if ac_fn_cxx_try_compile "$LINENO"; then :
22455 ac_cv_cxx_have_namespaces=yes
22457 ac_cv_cxx_have_namespaces=no
22459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22461 ac_cpp='$CXXCPP $CPPFLAGS'
22462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_namespaces" >&5
22469 $as_echo "$ac_cv_cxx_have_namespaces" >&6; }
22470 if test "$ac_cv_cxx_have_namespaces" = yes; then
22472 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
22476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports the std namespace" >&5
22477 $as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
22478 if test "${ac_cv_cxx_have_std_namespace+set}" = set; then :
22479 $as_echo_n "(cached) " >&6
22483 ac_cpp='$CXXCPP $CPPFLAGS'
22484 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22485 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22486 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22489 /* end confdefs.h. */
22490 #include <iostream>
22491 std::istream& is = std::cin;
22501 if ac_fn_cxx_try_compile "$LINENO"; then :
22502 ac_cv_cxx_have_std_namespace=yes
22504 ac_cv_cxx_have_std_namespace=no
22506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22508 ac_cpp='$CXXCPP $CPPFLAGS'
22509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_namespace" >&5
22516 $as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
22517 if test "$ac_cv_cxx_have_std_namespace" = yes; then
22519 $as_echo "#define HAVE_STD_NAMESPACE /**/" >>confdefs.h
22523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
22524 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
22525 if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
22526 $as_echo_n "(cached) " >&6
22531 ac_cpp='$CXXCPP $CPPFLAGS'
22532 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22533 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22534 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22537 /* end confdefs.h. */
22538 #include <iostream>
22542 #ifdef HAVE_NAMESPACES
22543 using namespace std;
22553 if ac_fn_cxx_try_compile "$LINENO"; then :
22554 ac_cv_cxx_have_std_libs=yes
22556 ac_cv_cxx_have_std_libs=no
22558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22560 ac_cpp='$CXXCPP $CPPFLAGS'
22561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
22568 $as_echo "$ac_cv_cxx_have_std_libs" >&6; }
22569 if test "$ac_cv_cxx_have_std_libs" = yes; then
22571 $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
22576 $as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
22577 if test "${ac_cv_cxx_have_lstring+set}" = set; then :
22578 $as_echo_n "(cached) " >&6
22582 ac_cpp='$CXXCPP $CPPFLAGS'
22583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22588 /* end confdefs.h. */
22589 const wchar_t* s=L"wide string";
22591 if ac_fn_cxx_try_compile "$LINENO"; then :
22592 ac_cv_cxx_have_lstring=yes
22594 ac_cv_cxx_have_lstring=no
22596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22598 ac_cpp='$CXXCPP $CPPFLAGS'
22599 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22600 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22601 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
22606 $as_echo "$ac_cv_cxx_have_lstring" >&6; }
22607 if test "$ac_cv_cxx_have_lstring" = yes; then
22609 $as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
22615 # Check whether --enable-openmp was given.
22616 if test "${enable_openmp+set}" = set; then :
22617 enableval=$enable_openmp;
22620 if test "$enable_openmp" != no; then
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
22622 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
22623 if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
22624 $as_echo_n "(cached) " >&6
22626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22627 /* end confdefs.h. */
22633 int main () { return omp_get_num_threads (); }
22636 if ac_fn_cxx_try_link "$LINENO"; then :
22637 ac_cv_prog_cxx_openmp='none needed'
22639 ac_cv_prog_cxx_openmp='unsupported'
22640 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
22641 ac_save_CXXFLAGS=$CXXFLAGS
22642 CXXFLAGS="$CXXFLAGS $ac_option"
22643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22644 /* end confdefs.h. */
22650 int main () { return omp_get_num_threads (); }
22653 if ac_fn_cxx_try_link "$LINENO"; then :
22654 ac_cv_prog_cxx_openmp=$ac_option
22656 rm -f core conftest.err conftest.$ac_objext \
22657 conftest$ac_exeext conftest.$ac_ext
22658 CXXFLAGS=$ac_save_CXXFLAGS
22659 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
22664 rm -f core conftest.err conftest.$ac_objext \
22665 conftest$ac_exeext conftest.$ac_ext
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
22668 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
22669 case $ac_cv_prog_cxx_openmp in #(
22670 "none needed" | unsupported)
22673 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
22679 ac_cpp='$CPP $CPPFLAGS'
22680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
22686 $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
22688 test $ac_cv_cxx_have_bool = 'yes' && \
22689 test $ac_cv_cxx_have_lstring = 'yes' && \
22690 test $ac_cv_cxx_have_namespaces = 'yes' && \
22691 test $ac_cv_cxx_have_std_libs = 'yes' && \
22692 test $ac_cv_cxx_have_std_namespace = 'yes'; then
22693 have_magick_plus_plus='yes'
22695 have_magick_plus_plus='no (failed tests)'
22697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
22698 $as_echo "$have_magick_plus_plus" >&6; }
22701 if test "$have_magick_plus_plus" = 'yes'; then
22702 WITH_MAGICK_PLUS_PLUS_TRUE=
22703 WITH_MAGICK_PLUS_PLUS_FALSE='#'
22705 WITH_MAGICK_PLUS_PLUS_TRUE='#'
22706 WITH_MAGICK_PLUS_PLUS_FALSE=
22710 # Only check for delegate libraries in subdirectories if requested.
22711 if test "$enable_delegate_build" != 'no'; then
22712 # Check for delegate sub-directories and add -I & -L options as required.
22713 # This presumes that delegates are installed as detailed in the ImageMagick
22714 # README. If delegates are installed in a standard location where the
22715 # compiler will automatically find them then these options should not be
22719 # Most delegates have includes in the same directory as the library, but not all...
22722 for dir in bzlib fftw fpx jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
22723 if test -d "$builddir/$dir"; then
22724 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
22726 if test -d "$srcdirfull/$dir"; then
22727 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
22733 for dir in bzlib fftw fpx jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
22734 if test -d "$builddir/$dir/.libs"; then
22735 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
22737 if test -d "$srcdirfull/$dir/.libs"; then
22738 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
22741 if test -d "$builddir/$dir"; then
22742 LDFLAGS="$LDFLAGS -L$builddir/$dir"
22744 if test -d "$srcdirfull/$dir"; then
22745 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
22751 # Assume that delegate headers reside under same directory as ImageMagick
22752 # installation prefix.
22753 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
22756 # Find the X11 RGB database
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
22759 $as_echo_n "checking for X11 configure files... " >&6; }
22760 if test "${im_cv_x_configure+set}" = set; then :
22761 $as_echo_n "(cached) " >&6
22763 # Look for the header file in a standard set of common directories.
22764 # Check X11 before X11Rn because it is often a symlink to the current release.
22773 /usr/XFree86/lib/X11 \
22781 /usr/local/X11/lib \
22782 /usr/local/X11R4/lib \
22783 /usr/local/X11R5/lib \
22784 /usr/local/X11R6/lib \
22786 /usr/local/lib/X11 \
22787 /usr/local/lib/X11R4 \
22788 /usr/local/lib/X11R5 \
22789 /usr/local/lib/X11R6 \
22790 /usr/local/lib/X11R7 \
22791 /usr/local/x11r5/lib \
22792 /usr/lpp/Xamples/lib \
22794 /usr/openwin/share/lib \
22795 /usr/unsupported/lib \
22798 if test -f "$ac_dir/X11/rgb.txt"; then
22799 im_cv_x_configure="$ac_dir/X11/"
22801 elif test -f "$ac_dir/rgb.txt"; then
22802 im_cv_x_configure="$ac_dir/"
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
22809 $as_echo "$im_cv_x_configure" >&6; }
22810 X11_CONFIGURE_PATH="$im_cv_x_configure"
22811 case "${build_os}" in
22813 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
22817 cat >>confdefs.h <<_ACEOF
22818 #define X11_CONFIGURE_PATH "$X11ConfigurePath"
22823 # Find OpenMP library
22826 if test "$enable_openmp" != 'no'; then
22827 if test "${GCC}" = "yes"; then
22828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
22829 $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
22830 if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
22831 $as_echo_n "(cached) " >&6
22833 ac_check_lib_save_LIBS=$LIBS
22834 LIBS="-lgomp $LIBS"
22835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22836 /* end confdefs.h. */
22838 /* Override any GCC internal prototype to avoid an error.
22839 Use char because int might match the return type of a GCC
22840 builtin and then its argument prototype would still apply. */
22844 char GOMP_parallel_start ();
22848 return GOMP_parallel_start ();
22853 if ac_fn_c_try_link "$LINENO"; then :
22854 ac_cv_lib_gomp_GOMP_parallel_start=yes
22856 ac_cv_lib_gomp_GOMP_parallel_start=no
22858 rm -f core conftest.err conftest.$ac_objext \
22859 conftest$ac_exeext conftest.$ac_ext
22860 LIBS=$ac_check_lib_save_LIBS
22862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
22863 $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
22864 if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
22870 $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
22871 if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
22872 $as_echo_n "(cached) " >&6
22874 ac_check_lib_save_LIBS=$LIBS
22875 LIBS="-lmtsk $LIBS"
22876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22877 /* end confdefs.h. */
22879 /* Override any GCC internal prototype to avoid an error.
22880 Use char because int might match the return type of a GCC
22881 builtin and then its argument prototype would still apply. */
22885 char sunw_mp_register_warn ();
22889 return sunw_mp_register_warn ();
22894 if ac_fn_c_try_link "$LINENO"; then :
22895 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
22897 ac_cv_lib_mtsk_sunw_mp_register_warn=no
22899 rm -f core conftest.err conftest.$ac_objext \
22900 conftest$ac_exeext conftest.$ac_ext
22901 LIBS=$ac_check_lib_save_LIBS
22903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
22904 $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
22905 if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
22909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
22910 $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
22911 if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
22912 $as_echo_n "(cached) " >&6
22914 ac_check_lib_save_LIBS=$LIBS
22915 LIBS="-lxlsmp $LIBS"
22916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22917 /* end confdefs.h. */
22919 /* Override any GCC internal prototype to avoid an error.
22920 Use char because int might match the return type of a GCC
22921 builtin and then its argument prototype would still apply. */
22925 char _xlsmpFlush ();
22929 return _xlsmpFlush ();
22934 if ac_fn_c_try_link "$LINENO"; then :
22935 ac_cv_lib_xlsmp__xlsmpFlush=yes
22937 ac_cv_lib_xlsmp__xlsmpFlush=no
22939 rm -f core conftest.err conftest.$ac_objext \
22940 conftest$ac_exeext conftest.$ac_ext
22941 LIBS=$ac_check_lib_save_LIBS
22943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
22944 $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
22945 if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
22946 GOMP_LIBS="-lxlsmp"
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
22950 $as_echo_n "checking for mp_destroy in -lmp... " >&6; }
22951 if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
22952 $as_echo_n "(cached) " >&6
22954 ac_check_lib_save_LIBS=$LIBS
22956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22957 /* end confdefs.h. */
22959 /* Override any GCC internal prototype to avoid an error.
22960 Use char because int might match the return type of a GCC
22961 builtin and then its argument prototype would still apply. */
22965 char mp_destroy ();
22969 return mp_destroy ();
22974 if ac_fn_c_try_link "$LINENO"; then :
22975 ac_cv_lib_mp_mp_destroy=yes
22977 ac_cv_lib_mp_mp_destroy=no
22979 rm -f core conftest.err conftest.$ac_objext \
22980 conftest$ac_exeext conftest.$ac_ext
22981 LIBS=$ac_check_lib_save_LIBS
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
22984 $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
22985 if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
22988 # SGI IRIX 6.5 MIPSpro C/C++
22990 LIBS="$GOMP_LIBS $LIBS"
22995 # Find Posix threads library
22998 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
23000 if test "x$PTHREAD_LIBS" = "x"; then
23001 case "${host_cpu}-${host_os}" in
23007 ac_cpp='$CPP $CPPFLAGS'
23008 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23009 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23010 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23012 magick_pthread_lib_ok=no
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
23019 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
23020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23021 /* end confdefs.h. */
23022 #include <pthread.h>
23027 pthread_join(th, 0);
23028 pthread_attr_init(0);
23029 pthread_cleanup_push(0, 0);
23030 pthread_create(0,0,0,0);
23031 pthread_cleanup_pop(0);
23036 if ac_fn_c_try_link "$LINENO"; then :
23037 magick_pthread_lib_ok=yes
23039 rm -f core conftest.err conftest.$ac_objext \
23040 conftest$ac_exeext conftest.$ac_ext
23042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
23043 $as_echo "${magick_pthread_lib_ok}" >&6; }
23044 if test "$magick_pthread_lib_ok" = yes
23056 ac_cpp='$CPP $CPPFLAGS'
23057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23065 for lib in pthread pthreads; do
23066 if test "x$PTHREAD_LIBS" = "x"; then
23071 ac_cpp='$CPP $CPPFLAGS'
23072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23076 magick_pthread_lib_ok=no
23082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
23083 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
23084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23085 /* end confdefs.h. */
23086 #include <pthread.h>
23091 pthread_join(th, 0);
23092 pthread_attr_init(0);
23093 pthread_cleanup_push(0, 0);
23094 pthread_create(0,0,0,0);
23095 pthread_cleanup_pop(0);
23100 if ac_fn_c_try_link "$LINENO"; then :
23101 magick_pthread_lib_ok=yes
23103 rm -f core conftest.err conftest.$ac_objext \
23104 conftest$ac_exeext conftest.$ac_ext
23106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
23107 $as_echo "${magick_pthread_lib_ok}" >&6; }
23108 if test "$magick_pthread_lib_ok" = yes
23110 PTHREAD_LIBS=-l$lib
23120 ac_cpp='$CPP $CPPFLAGS'
23121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23129 THREAD_LIBS="$PTHREAD_LIBS"
23130 LIBS="$LIBS $THREAD_LIBS"
23139 if test "$with_umem" != 'no'; then
23140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
23141 $as_echo_n "checking for UMEM support ... " >&6; }
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
23146 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
23147 if test "x$ac_cv_header_umem_h" = x""yes; then :
23148 passed=`expr $passed + 1`
23150 failed=`expr $failed + 1`
23154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
23155 $as_echo_n "checking for umem_alloc in -lumem... " >&6; }
23156 if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
23157 $as_echo_n "(cached) " >&6
23159 ac_check_lib_save_LIBS=$LIBS
23160 LIBS="-lumem $LIBS"
23161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23162 /* end confdefs.h. */
23164 /* Override any GCC internal prototype to avoid an error.
23165 Use char because int might match the return type of a GCC
23166 builtin and then its argument prototype would still apply. */
23170 char umem_alloc ();
23174 return umem_alloc ();
23179 if ac_fn_c_try_link "$LINENO"; then :
23180 ac_cv_lib_umem_umem_alloc=yes
23182 ac_cv_lib_umem_umem_alloc=no
23184 rm -f core conftest.err conftest.$ac_objext \
23185 conftest$ac_exeext conftest.$ac_ext
23186 LIBS=$ac_check_lib_save_LIBS
23188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
23189 $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
23190 if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
23191 passed=`expr $passed + 1`
23193 failed=`expr $failed + 1`
23196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
23197 $as_echo_n "checking for umem_free in -lumem... " >&6; }
23198 if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
23199 $as_echo_n "(cached) " >&6
23201 ac_check_lib_save_LIBS=$LIBS
23202 LIBS="-lumem $LIBS"
23203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23204 /* end confdefs.h. */
23206 /* Override any GCC internal prototype to avoid an error.
23207 Use char because int might match the return type of a GCC
23208 builtin and then its argument prototype would still apply. */
23216 return umem_free ();
23221 if ac_fn_c_try_link "$LINENO"; then :
23222 ac_cv_lib_umem_umem_free=yes
23224 ac_cv_lib_umem_umem_free=no
23226 rm -f core conftest.err conftest.$ac_objext \
23227 conftest$ac_exeext conftest.$ac_ext
23228 LIBS=$ac_check_lib_save_LIBS
23230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
23231 $as_echo "$ac_cv_lib_umem_umem_free" >&6; }
23232 if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
23233 passed=`expr $passed + 1`
23235 failed=`expr $failed + 1`
23238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
23239 $as_echo_n "checking if umem memory allocation library is complete... " >&6; }
23240 if test $passed -gt 0; then
23241 if test $failed -gt 0; then
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
23243 $as_echo "no -- some components failed test" >&6; }
23244 have_umem='no (failed tests)'
23247 LIBS="$UMEM_LIBS $LIBS"
23249 $as_echo "#define HasUMEM 1" >>confdefs.h
23251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23252 $as_echo "yes" >&6; }
23256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23257 $as_echo "no" >&6; }
23260 if test "$have_umem" = 'yes'; then
23271 # Add support for ccmalloc memory debugging library if requested
23275 if test "$enable_ccmalloc" = 'yes'; then
23276 # Extract the first word of "ccmalloc", so it can be a program name with args.
23277 set dummy ccmalloc; ac_word=$2
23278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23279 $as_echo_n "checking for $ac_word... " >&6; }
23280 if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
23281 $as_echo_n "(cached) " >&6
23283 case $CCMALLOCDelegate in
23285 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
23288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23289 for as_dir in $PATH
23292 test -z "$as_dir" && as_dir=.
23293 for ac_exec_ext in '' $ac_executable_extensions; do
23294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23295 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
23296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23306 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
23307 if test -n "$CCMALLOCDelegate"; then
23308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
23309 $as_echo "$CCMALLOCDelegate" >&6; }
23311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23312 $as_echo "no" >&6; }
23316 if test -n "$CCMALLOCDelegate"; then
23317 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
23319 # Assume that gcc is used with ccmalloc.
23320 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
23321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
23322 $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
23323 if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
23324 $as_echo_n "(cached) " >&6
23326 ac_check_lib_save_LIBS=$LIBS
23327 LIBS="-lccmalloc -ldl $LIBS"
23328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23329 /* end confdefs.h. */
23331 /* Override any GCC internal prototype to avoid an error.
23332 Use char because int might match the return type of a GCC
23333 builtin and then its argument prototype would still apply. */
23337 char ccmalloc_malloc ();
23341 return ccmalloc_malloc ();
23346 if ac_fn_c_try_link "$LINENO"; then :
23347 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
23349 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
23351 rm -f core conftest.err conftest.$ac_objext \
23352 conftest$ac_exeext conftest.$ac_ext
23353 LIBS=$ac_check_lib_save_LIBS
23355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
23356 $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
23357 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
23358 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
23361 if test -n "$CCMALLOC_LIBS"; then
23363 LIBS="$LIBS $CCMALLOC_LIBS"
23364 have_ccmalloc='yes'
23372 # Add support for efence memory debugging library if requested
23374 if test "$enable_efence" = 'yes'; then
23375 EFENCE_LIBS='-lefence'
23376 LIBS="$EFENCE_LIBS $LIBS"
23380 # Find math library
23383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23384 $as_echo_n "checking for sqrt in -lm... " >&6; }
23385 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23386 $as_echo_n "(cached) " >&6
23388 ac_check_lib_save_LIBS=$LIBS
23390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23391 /* end confdefs.h. */
23393 /* Override any GCC internal prototype to avoid an error.
23394 Use char because int might match the return type of a GCC
23395 builtin and then its argument prototype would still apply. */
23408 if ac_fn_c_try_link "$LINENO"; then :
23409 ac_cv_lib_m_sqrt=yes
23411 ac_cv_lib_m_sqrt=no
23413 rm -f core conftest.err conftest.$ac_objext \
23414 conftest$ac_exeext conftest.$ac_ext
23415 LIBS=$ac_check_lib_save_LIBS
23417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23418 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
23419 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23423 LIBS="$MATH_LIBS $LIBS"
23432 # Check whether --with-bzlib was given.
23433 if test "${with_bzlib+set}" = set; then :
23434 withval=$with_bzlib; with_bzlib=$withval
23440 if test "$with_bzlib" != 'yes'; then
23441 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
23445 if test "$with_bzlib" != 'no'; then
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
23448 $as_echo "-------------------------------------------------------------" >&6; }
23449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
23450 $as_echo_n "checking for BZLIB... " >&6; }
23451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
23456 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
23457 if test "x$ac_cv_header_bzlib_h" = x""yes; then :
23458 passed=`expr $passed + 1`
23460 failed=`expr $failed + 1`
23464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
23465 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
23466 if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
23467 $as_echo_n "(cached) " >&6
23469 ac_check_lib_save_LIBS=$LIBS
23471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23472 /* end confdefs.h. */
23474 /* Override any GCC internal prototype to avoid an error.
23475 Use char because int might match the return type of a GCC
23476 builtin and then its argument prototype would still apply. */
23480 char BZ2_bzDecompress ();
23484 return BZ2_bzDecompress ();
23489 if ac_fn_c_try_link "$LINENO"; then :
23490 ac_cv_lib_bz2_BZ2_bzDecompress=yes
23492 ac_cv_lib_bz2_BZ2_bzDecompress=no
23494 rm -f core conftest.err conftest.$ac_objext \
23495 conftest$ac_exeext conftest.$ac_ext
23496 LIBS=$ac_check_lib_save_LIBS
23498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
23499 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
23500 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
23501 found_libbz=`expr $found_libbz + 1`
23504 if test "$native_win32_build" = 'yes'; then
23505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
23506 $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
23507 if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
23508 $as_echo_n "(cached) " >&6
23510 ac_check_lib_save_LIBS=$LIBS
23512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23513 /* end confdefs.h. */
23515 /* Override any GCC internal prototype to avoid an error.
23516 Use char because int might match the return type of a GCC
23517 builtin and then its argument prototype would still apply. */
23521 char _imp__BZ2_decompress ();
23525 return _imp__BZ2_decompress ();
23530 if ac_fn_c_try_link "$LINENO"; then :
23531 ac_cv_lib_bz2__imp__BZ2_decompress=yes
23533 ac_cv_lib_bz2__imp__BZ2_decompress=no
23535 rm -f core conftest.err conftest.$ac_objext \
23536 conftest$ac_exeext conftest.$ac_ext
23537 LIBS=$ac_check_lib_save_LIBS
23539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
23540 $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
23541 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
23542 found_libbz=`expr $found_libbz + 1`
23546 if test $found_libbz -gt 0; then
23547 passed=`expr $passed + 1`
23549 failed=`expr $failed + 1`
23551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
23552 $as_echo_n "checking if BZLIB package is complete... " >&6; }
23553 if test $passed -gt 0; then
23554 if test $failed -gt 0; then
23555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
23556 $as_echo "no -- some components failed test" >&6; }
23557 have_bzlib='no (failed tests)'
23560 LIBS="$BZLIB_LIBS $LIBS"
23562 $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23565 $as_echo "yes" >&6; }
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23570 $as_echo "no" >&6; }
23573 if test "$have_bzlib" = 'yes'; then
23574 BZLIB_DELEGATE_TRUE=
23575 BZLIB_DELEGATE_FALSE='#'
23577 BZLIB_DELEGATE_TRUE='#'
23578 BZLIB_DELEGATE_FALSE=
23584 # Find the X11 include and library directories.
23590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
23591 $as_echo_n "checking for X... " >&6; }
23594 # Check whether --with-x was given.
23595 if test "${with_x+set}" = set; then :
23599 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
23600 if test "x$with_x" = xno; then
23601 # The user explicitly disabled X.
23604 case $x_includes,$x_libraries in #(
23605 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
23606 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
23607 $as_echo_n "(cached) " >&6
23609 # One or both of the vars are not set, and there is no cached value.
23610 ac_x_includes=no ac_x_libraries=no
23611 rm -f -r conftest.dir
23612 if mkdir conftest.dir; then
23614 cat >Imakefile <<'_ACEOF'
23616 @echo incroot='${INCROOT}'
23618 @echo usrlibdir='${USRLIBDIR}'
23620 @echo libdir='${LIBDIR}'
23622 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
23623 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
23624 for ac_var in incroot usrlibdir libdir; do
23625 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
23627 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
23628 for ac_extension in a so sl dylib la dll; do
23629 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
23630 test -f "$ac_im_libdir/libX11.$ac_extension"; then
23631 ac_im_usrlibdir=$ac_im_libdir; break
23634 # Screen out bogus values from the imake configuration. They are
23635 # bogus both because they are the default anyway, and because
23636 # using them would break gcc on systems where it needs fixed includes.
23637 case $ac_im_incroot in
23638 /usr/include) ac_x_includes= ;;
23639 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
23641 case $ac_im_usrlibdir in
23642 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
23643 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
23647 rm -f -r conftest.dir
23650 # Standard set of common directories for X headers.
23651 # Check X11 before X11Rn because it is often a symlink to the current release.
23665 /usr/local/X11/include
23666 /usr/local/X11R7/include
23667 /usr/local/X11R6/include
23668 /usr/local/X11R5/include
23669 /usr/local/X11R4/include
23671 /usr/local/include/X11
23672 /usr/local/include/X11R7
23673 /usr/local/include/X11R6
23674 /usr/local/include/X11R5
23675 /usr/local/include/X11R4
23679 /usr/XFree86/include/X11
23683 /usr/unsupported/include
23684 /usr/athena/include
23685 /usr/local/x11r5/include
23686 /usr/lpp/Xamples/include
23688 /usr/openwin/include
23689 /usr/openwin/share/include'
23691 if test "$ac_x_includes" = no; then
23692 # Guess where to find include files, by looking for Xlib.h.
23693 # First, try using that file with no special directory specified.
23694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23695 /* end confdefs.h. */
23696 #include <X11/Xlib.h>
23698 if ac_fn_c_try_cpp "$LINENO"; then :
23699 # We can compile using X headers with no special include directory.
23702 for ac_dir in $ac_x_header_dirs; do
23703 if test -r "$ac_dir/X11/Xlib.h"; then
23704 ac_x_includes=$ac_dir
23709 rm -f conftest.err conftest.$ac_ext
23710 fi # $ac_x_includes = no
23712 if test "$ac_x_libraries" = no; then
23713 # Check for the libraries.
23714 # See if we find them without any special options.
23715 # Don't add to $LIBS permanently.
23718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23719 /* end confdefs.h. */
23720 #include <X11/Xlib.h>
23729 if ac_fn_c_try_link "$LINENO"; then :
23731 # We can link X programs with no special library path.
23735 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
23737 # Don't even attempt the hair of trying to link an X program!
23738 for ac_extension in a so sl dylib la dll; do
23739 if test -r "$ac_dir/libX11.$ac_extension"; then
23740 ac_x_libraries=$ac_dir
23746 rm -f core conftest.err conftest.$ac_objext \
23747 conftest$ac_exeext conftest.$ac_ext
23748 fi # $ac_x_libraries = no
23750 case $ac_x_includes,$ac_x_libraries in #(
23751 no,* | *,no | *\'*)
23752 # Didn't find X, or a directory has "'" in its name.
23753 ac_cv_have_x="have_x=no";; #(
23755 # Record where we found X for the cache.
23756 ac_cv_have_x="have_x=yes\
23757 ac_x_includes='$ac_x_includes'\
23758 ac_x_libraries='$ac_x_libraries'"
23764 eval "$ac_cv_have_x"
23767 if test "$have_x" != yes; then
23768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
23769 $as_echo "$have_x" >&6; }
23772 # If each of the values was on the command line, it overrides each guess.
23773 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
23774 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
23775 # Update the cache value to reflect the command line values.
23776 ac_cv_have_x="have_x=yes\
23777 ac_x_includes='$x_includes'\
23778 ac_x_libraries='$x_libraries'"
23779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
23780 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
23783 if test "$no_x" = yes; then
23784 # Not all programs may use this symbol, but it does not hurt to define it.
23786 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
23788 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
23790 if test -n "$x_includes"; then
23791 X_CFLAGS="$X_CFLAGS -I$x_includes"
23794 # It would also be nice to do this for all -L options, not just this one.
23795 if test -n "$x_libraries"; then
23796 X_LIBS="$X_LIBS -L$x_libraries"
23797 # For Solaris; some versions of Sun CC require a space after -R and
23798 # others require no space. Words are not sufficient . . . .
23799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
23800 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
23801 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
23802 ac_xsave_c_werror_flag=$ac_c_werror_flag
23803 ac_c_werror_flag=yes
23804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23805 /* end confdefs.h. */
23815 if ac_fn_c_try_link "$LINENO"; then :
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23817 $as_echo "no" >&6; }
23818 X_LIBS="$X_LIBS -R$x_libraries"
23820 LIBS="$ac_xsave_LIBS -R $x_libraries"
23821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23822 /* end confdefs.h. */
23832 if ac_fn_c_try_link "$LINENO"; then :
23833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23834 $as_echo "yes" >&6; }
23835 X_LIBS="$X_LIBS -R $x_libraries"
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
23838 $as_echo "neither works" >&6; }
23840 rm -f core conftest.err conftest.$ac_objext \
23841 conftest$ac_exeext conftest.$ac_ext
23843 rm -f core conftest.err conftest.$ac_objext \
23844 conftest$ac_exeext conftest.$ac_ext
23845 ac_c_werror_flag=$ac_xsave_c_werror_flag
23846 LIBS=$ac_xsave_LIBS
23849 # Check for system-dependent libraries X programs must link with.
23850 # Do this before checking for the system-independent R6 libraries
23851 # (-lICE), since we may need -lsocket or whatever for X linking.
23853 if test "$ISC" = yes; then
23854 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
23856 # Martyn Johnson says this is needed for Ultrix, if the X
23857 # libraries were built with DECnet support. And Karl Berry says
23858 # the Alpha needs dnet_stub (dnet does not exist).
23859 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
23860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23861 /* end confdefs.h. */
23863 /* Override any GCC internal prototype to avoid an error.
23864 Use char because int might match the return type of a GCC
23865 builtin and then its argument prototype would still apply. */
23869 char XOpenDisplay ();
23873 return XOpenDisplay ();
23878 if ac_fn_c_try_link "$LINENO"; then :
23881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
23882 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
23883 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
23884 $as_echo_n "(cached) " >&6
23886 ac_check_lib_save_LIBS=$LIBS
23887 LIBS="-ldnet $LIBS"
23888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23889 /* end confdefs.h. */
23891 /* Override any GCC internal prototype to avoid an error.
23892 Use char because int might match the return type of a GCC
23893 builtin and then its argument prototype would still apply. */
23901 return dnet_ntoa ();
23906 if ac_fn_c_try_link "$LINENO"; then :
23907 ac_cv_lib_dnet_dnet_ntoa=yes
23909 ac_cv_lib_dnet_dnet_ntoa=no
23911 rm -f core conftest.err conftest.$ac_objext \
23912 conftest$ac_exeext conftest.$ac_ext
23913 LIBS=$ac_check_lib_save_LIBS
23915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
23916 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
23917 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
23918 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
23921 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
23923 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
23924 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
23925 $as_echo_n "(cached) " >&6
23927 ac_check_lib_save_LIBS=$LIBS
23928 LIBS="-ldnet_stub $LIBS"
23929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23930 /* end confdefs.h. */
23932 /* Override any GCC internal prototype to avoid an error.
23933 Use char because int might match the return type of a GCC
23934 builtin and then its argument prototype would still apply. */
23942 return dnet_ntoa ();
23947 if ac_fn_c_try_link "$LINENO"; then :
23948 ac_cv_lib_dnet_stub_dnet_ntoa=yes
23950 ac_cv_lib_dnet_stub_dnet_ntoa=no
23952 rm -f core conftest.err conftest.$ac_objext \
23953 conftest$ac_exeext conftest.$ac_ext
23954 LIBS=$ac_check_lib_save_LIBS
23956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
23957 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
23958 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
23959 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
23964 rm -f core conftest.err conftest.$ac_objext \
23965 conftest$ac_exeext conftest.$ac_ext
23966 LIBS="$ac_xsave_LIBS"
23968 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
23969 # to get the SysV transport functions.
23970 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
23972 # The nsl library prevents programs from opening the X display
23973 # on Irix 5.2, according to T.E. Dickey.
23974 # The functions gethostbyname, getservbyname, and inet_addr are
23975 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
23976 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
23977 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
23981 if test $ac_cv_func_gethostbyname = no; then
23982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
23983 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
23984 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
23985 $as_echo_n "(cached) " >&6
23987 ac_check_lib_save_LIBS=$LIBS
23989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23990 /* end confdefs.h. */
23992 /* Override any GCC internal prototype to avoid an error.
23993 Use char because int might match the return type of a GCC
23994 builtin and then its argument prototype would still apply. */
23998 char gethostbyname ();
24002 return gethostbyname ();
24007 if ac_fn_c_try_link "$LINENO"; then :
24008 ac_cv_lib_nsl_gethostbyname=yes
24010 ac_cv_lib_nsl_gethostbyname=no
24012 rm -f core conftest.err conftest.$ac_objext \
24013 conftest$ac_exeext conftest.$ac_ext
24014 LIBS=$ac_check_lib_save_LIBS
24016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24017 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24018 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
24019 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
24022 if test $ac_cv_lib_nsl_gethostbyname = no; then
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
24024 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
24025 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
24026 $as_echo_n "(cached) " >&6
24028 ac_check_lib_save_LIBS=$LIBS
24030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24031 /* end confdefs.h. */
24033 /* Override any GCC internal prototype to avoid an error.
24034 Use char because int might match the return type of a GCC
24035 builtin and then its argument prototype would still apply. */
24039 char gethostbyname ();
24043 return gethostbyname ();
24048 if ac_fn_c_try_link "$LINENO"; then :
24049 ac_cv_lib_bsd_gethostbyname=yes
24051 ac_cv_lib_bsd_gethostbyname=no
24053 rm -f core conftest.err conftest.$ac_objext \
24054 conftest$ac_exeext conftest.$ac_ext
24055 LIBS=$ac_check_lib_save_LIBS
24057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
24058 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
24059 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
24060 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
24066 # lieder@skyler.mavd.honeywell.com says without -lsocket,
24067 # socket/setsockopt and other routines are undefined under SCO ODT
24068 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
24069 # on later versions), says Simon Leinen: it contains gethostby*
24070 # variants that don't use the name server (or something). -lsocket
24071 # must be given before -lnsl if both are needed. We assume that
24072 # if connect needs -lnsl, so does gethostbyname.
24073 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
24074 if test "x$ac_cv_func_connect" = x""yes; then :
24078 if test $ac_cv_func_connect = no; then
24079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
24080 $as_echo_n "checking for connect in -lsocket... " >&6; }
24081 if test "${ac_cv_lib_socket_connect+set}" = set; then :
24082 $as_echo_n "(cached) " >&6
24084 ac_check_lib_save_LIBS=$LIBS
24085 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
24086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24087 /* end confdefs.h. */
24089 /* Override any GCC internal prototype to avoid an error.
24090 Use char because int might match the return type of a GCC
24091 builtin and then its argument prototype would still apply. */
24104 if ac_fn_c_try_link "$LINENO"; then :
24105 ac_cv_lib_socket_connect=yes
24107 ac_cv_lib_socket_connect=no
24109 rm -f core conftest.err conftest.$ac_objext \
24110 conftest$ac_exeext conftest.$ac_ext
24111 LIBS=$ac_check_lib_save_LIBS
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
24114 $as_echo "$ac_cv_lib_socket_connect" >&6; }
24115 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
24116 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
24121 # Guillermo Gomez says -lposix is necessary on A/UX.
24122 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
24123 if test "x$ac_cv_func_remove" = x""yes; then :
24127 if test $ac_cv_func_remove = no; then
24128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
24129 $as_echo_n "checking for remove in -lposix... " >&6; }
24130 if test "${ac_cv_lib_posix_remove+set}" = set; then :
24131 $as_echo_n "(cached) " >&6
24133 ac_check_lib_save_LIBS=$LIBS
24134 LIBS="-lposix $LIBS"
24135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24136 /* end confdefs.h. */
24138 /* Override any GCC internal prototype to avoid an error.
24139 Use char because int might match the return type of a GCC
24140 builtin and then its argument prototype would still apply. */
24153 if ac_fn_c_try_link "$LINENO"; then :
24154 ac_cv_lib_posix_remove=yes
24156 ac_cv_lib_posix_remove=no
24158 rm -f core conftest.err conftest.$ac_objext \
24159 conftest$ac_exeext conftest.$ac_ext
24160 LIBS=$ac_check_lib_save_LIBS
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
24163 $as_echo "$ac_cv_lib_posix_remove" >&6; }
24164 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
24165 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
24170 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
24171 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
24172 if test "x$ac_cv_func_shmat" = x""yes; then :
24176 if test $ac_cv_func_shmat = no; then
24177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
24178 $as_echo_n "checking for shmat in -lipc... " >&6; }
24179 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
24180 $as_echo_n "(cached) " >&6
24182 ac_check_lib_save_LIBS=$LIBS
24184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24185 /* end confdefs.h. */
24187 /* Override any GCC internal prototype to avoid an error.
24188 Use char because int might match the return type of a GCC
24189 builtin and then its argument prototype would still apply. */
24202 if ac_fn_c_try_link "$LINENO"; then :
24203 ac_cv_lib_ipc_shmat=yes
24205 ac_cv_lib_ipc_shmat=no
24207 rm -f core conftest.err conftest.$ac_objext \
24208 conftest$ac_exeext conftest.$ac_ext
24209 LIBS=$ac_check_lib_save_LIBS
24211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
24212 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
24213 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
24214 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
24220 # Check for libraries that X11R6 Xt/Xaw programs need.
24221 ac_save_LDFLAGS=$LDFLAGS
24222 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
24223 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
24224 # check for ICE first), but we must link in the order -lSM -lICE or
24225 # we get undefined symbols. So assume we have SM if we have ICE.
24226 # These have to be linked with before -lX11, unlike the other
24227 # libraries we check for below, so use a different variable.
24228 # John Interrante, Karl Berry
24229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
24230 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
24231 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
24232 $as_echo_n "(cached) " >&6
24234 ac_check_lib_save_LIBS=$LIBS
24235 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
24236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24237 /* end confdefs.h. */
24239 /* Override any GCC internal prototype to avoid an error.
24240 Use char because int might match the return type of a GCC
24241 builtin and then its argument prototype would still apply. */
24245 char IceConnectionNumber ();
24249 return IceConnectionNumber ();
24254 if ac_fn_c_try_link "$LINENO"; then :
24255 ac_cv_lib_ICE_IceConnectionNumber=yes
24257 ac_cv_lib_ICE_IceConnectionNumber=no
24259 rm -f core conftest.err conftest.$ac_objext \
24260 conftest$ac_exeext conftest.$ac_ext
24261 LIBS=$ac_check_lib_save_LIBS
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
24264 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
24265 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
24266 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
24269 LDFLAGS=$ac_save_LDFLAGS
24273 if test "$no_x" != 'yes'; then
24274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24275 $as_echo "-------------------------------------------------------------" >&6; }
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
24277 $as_echo_n "checking for X11... " >&6; }
24278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24280 LDFLAGS="$LDFLAGS $X_LIBS"
24281 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
24282 LIBS="$X11_LIBS $LIBS"
24283 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
24286 $as_echo "#define X11_DELEGATE 1" >>confdefs.h
24289 # Check for X11 shared memory extension
24291 # shmctl is required to support the shared memory extension
24292 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
24293 if test "x$ac_cv_func_shmctl" = x""yes; then :
24297 if test "$have_shmctl" != 'yes'; then
24299 LIBS="$LIBS -lcygipc"
24300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24301 /* end confdefs.h. */
24303 /* Override any GCC internal prototype to avoid an error.
24304 Use char because int might match the return type of a GCC
24305 builtin and then its argument prototype would still apply. */
24318 if ac_fn_c_try_link "$LINENO"; then :
24319 have_shmctl='yes'; IPC_LIBS='-lcygipc'
24321 rm -f core conftest.err conftest.$ac_objext \
24322 conftest$ac_exeext conftest.$ac_ext
24326 if test "$have_shmctl" = 'yes'; then
24327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
24328 $as_echo_n "checking for XShmAttach in -lXext... " >&6; }
24329 if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
24330 $as_echo_n "(cached) " >&6
24332 ac_check_lib_save_LIBS=$LIBS
24333 LIBS="-lXext $LIBS"
24334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24335 /* end confdefs.h. */
24337 /* Override any GCC internal prototype to avoid an error.
24338 Use char because int might match the return type of a GCC
24339 builtin and then its argument prototype would still apply. */
24343 char XShmAttach ();
24347 return XShmAttach ();
24352 if ac_fn_c_try_link "$LINENO"; then :
24353 ac_cv_lib_Xext_XShmAttach=yes
24355 ac_cv_lib_Xext_XShmAttach=no
24357 rm -f core conftest.err conftest.$ac_objext \
24358 conftest$ac_exeext conftest.$ac_ext
24359 LIBS=$ac_check_lib_save_LIBS
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
24362 $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
24363 if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
24364 XEXT_LIBS='-lXext' ;
24365 $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
24372 # Check for X11 shape extension
24374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
24375 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
24376 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
24377 $as_echo_n "(cached) " >&6
24379 ac_check_lib_save_LIBS=$LIBS
24380 LIBS="-lXext $LIBS"
24381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24382 /* end confdefs.h. */
24384 /* Override any GCC internal prototype to avoid an error.
24385 Use char because int might match the return type of a GCC
24386 builtin and then its argument prototype would still apply. */
24390 char XShapeCombineMask ();
24394 return XShapeCombineMask ();
24399 if ac_fn_c_try_link "$LINENO"; then :
24400 ac_cv_lib_Xext_XShapeCombineMask=yes
24402 ac_cv_lib_Xext_XShapeCombineMask=no
24404 rm -f core conftest.err conftest.$ac_objext \
24405 conftest$ac_exeext conftest.$ac_ext
24406 LIBS=$ac_check_lib_save_LIBS
24408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
24409 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
24410 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
24411 XEXT_LIBS='-lXext' ;
24412 $as_echo "#define HAVE_SHAPE 1" >>confdefs.h
24416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
24417 $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
24418 if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
24419 $as_echo_n "(cached) " >&6
24421 ac_check_lib_save_LIBS=$LIBS
24423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24424 /* end confdefs.h. */
24426 /* Override any GCC internal prototype to avoid an error.
24427 Use char because int might match the return type of a GCC
24428 builtin and then its argument prototype would still apply. */
24432 char XtSetEventDispatcher ();
24436 return XtSetEventDispatcher ();
24441 if ac_fn_c_try_link "$LINENO"; then :
24442 ac_cv_lib_Xt_XtSetEventDispatcher=yes
24444 ac_cv_lib_Xt_XtSetEventDispatcher=no
24446 rm -f core conftest.err conftest.$ac_objext \
24447 conftest$ac_exeext conftest.$ac_ext
24448 LIBS=$ac_check_lib_save_LIBS
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
24451 $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
24452 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
24456 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
24458 if test "$no_x" != 'yes'; then
24463 if test "$have_x" = 'yes'; then
24465 X11_DELEGATE_FALSE='#'
24467 X11_DELEGATE_TRUE='#'
24468 X11_DELEGATE_FALSE=
24479 # Check whether --with-zlib was given.
24480 if test "${with_zlib+set}" = set; then :
24481 withval=$with_zlib; with_zlib=$withval
24487 if test "$with_zlib" != 'yes'; then
24488 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
24493 if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
24494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24495 $as_echo "-------------------------------------------------------------" >&6; }
24496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
24497 $as_echo_n "checking for ZLIB... " >&6; }
24498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24503 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
24504 if test "x$ac_cv_header_zconf_h" = x""yes; then :
24505 passed=`expr $passed + 1`
24507 failed=`expr $failed + 1`
24511 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
24512 if test "x$ac_cv_header_zlib_h" = x""yes; then :
24513 passed=`expr $passed + 1`
24515 failed=`expr $failed + 1`
24519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
24520 $as_echo_n "checking for compress in -lz... " >&6; }
24521 if test "${ac_cv_lib_z_compress+set}" = set; then :
24522 $as_echo_n "(cached) " >&6
24524 ac_check_lib_save_LIBS=$LIBS
24526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24527 /* end confdefs.h. */
24529 /* Override any GCC internal prototype to avoid an error.
24530 Use char because int might match the return type of a GCC
24531 builtin and then its argument prototype would still apply. */
24539 return compress ();
24544 if ac_fn_c_try_link "$LINENO"; then :
24545 ac_cv_lib_z_compress=yes
24547 ac_cv_lib_z_compress=no
24549 rm -f core conftest.err conftest.$ac_objext \
24550 conftest$ac_exeext conftest.$ac_ext
24551 LIBS=$ac_check_lib_save_LIBS
24553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
24554 $as_echo "$ac_cv_lib_z_compress" >&6; }
24555 if test "x$ac_cv_lib_z_compress" = x""yes; then :
24556 passed=`expr $passed + 1`
24558 failed=`expr $failed + 1`
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
24562 $as_echo_n "checking for uncompress in -lz... " >&6; }
24563 if test "${ac_cv_lib_z_uncompress+set}" = set; then :
24564 $as_echo_n "(cached) " >&6
24566 ac_check_lib_save_LIBS=$LIBS
24568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24569 /* end confdefs.h. */
24571 /* Override any GCC internal prototype to avoid an error.
24572 Use char because int might match the return type of a GCC
24573 builtin and then its argument prototype would still apply. */
24577 char uncompress ();
24581 return uncompress ();
24586 if ac_fn_c_try_link "$LINENO"; then :
24587 ac_cv_lib_z_uncompress=yes
24589 ac_cv_lib_z_uncompress=no
24591 rm -f core conftest.err conftest.$ac_objext \
24592 conftest$ac_exeext conftest.$ac_ext
24593 LIBS=$ac_check_lib_save_LIBS
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
24596 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
24597 if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
24598 passed=`expr $passed + 1`
24600 failed=`expr $failed + 1`
24603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
24604 $as_echo_n "checking for deflate in -lz... " >&6; }
24605 if test "${ac_cv_lib_z_deflate+set}" = set; then :
24606 $as_echo_n "(cached) " >&6
24608 ac_check_lib_save_LIBS=$LIBS
24610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24611 /* end confdefs.h. */
24613 /* Override any GCC internal prototype to avoid an error.
24614 Use char because int might match the return type of a GCC
24615 builtin and then its argument prototype would still apply. */
24628 if ac_fn_c_try_link "$LINENO"; then :
24629 ac_cv_lib_z_deflate=yes
24631 ac_cv_lib_z_deflate=no
24633 rm -f core conftest.err conftest.$ac_objext \
24634 conftest$ac_exeext conftest.$ac_ext
24635 LIBS=$ac_check_lib_save_LIBS
24637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
24638 $as_echo "$ac_cv_lib_z_deflate" >&6; }
24639 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
24640 passed=`expr $passed + 1`
24642 failed=`expr $failed + 1`
24645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
24646 $as_echo_n "checking for inflate in -lz... " >&6; }
24647 if test "${ac_cv_lib_z_inflate+set}" = set; then :
24648 $as_echo_n "(cached) " >&6
24650 ac_check_lib_save_LIBS=$LIBS
24652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24653 /* end confdefs.h. */
24655 /* Override any GCC internal prototype to avoid an error.
24656 Use char because int might match the return type of a GCC
24657 builtin and then its argument prototype would still apply. */
24670 if ac_fn_c_try_link "$LINENO"; then :
24671 ac_cv_lib_z_inflate=yes
24673 ac_cv_lib_z_inflate=no
24675 rm -f core conftest.err conftest.$ac_objext \
24676 conftest$ac_exeext conftest.$ac_ext
24677 LIBS=$ac_check_lib_save_LIBS
24679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
24680 $as_echo "$ac_cv_lib_z_inflate" >&6; }
24681 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
24682 passed=`expr $passed + 1`
24684 failed=`expr $failed + 1`
24687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
24688 $as_echo_n "checking for gzseek in -lz... " >&6; }
24689 if test "${ac_cv_lib_z_gzseek+set}" = set; then :
24690 $as_echo_n "(cached) " >&6
24692 ac_check_lib_save_LIBS=$LIBS
24694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24695 /* end confdefs.h. */
24697 /* Override any GCC internal prototype to avoid an error.
24698 Use char because int might match the return type of a GCC
24699 builtin and then its argument prototype would still apply. */
24712 if ac_fn_c_try_link "$LINENO"; then :
24713 ac_cv_lib_z_gzseek=yes
24715 ac_cv_lib_z_gzseek=no
24717 rm -f core conftest.err conftest.$ac_objext \
24718 conftest$ac_exeext conftest.$ac_ext
24719 LIBS=$ac_check_lib_save_LIBS
24721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
24722 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
24723 if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
24724 passed=`expr $passed + 1`
24726 failed=`expr $failed + 1`
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
24730 $as_echo_n "checking for gztell in -lz... " >&6; }
24731 if test "${ac_cv_lib_z_gztell+set}" = set; then :
24732 $as_echo_n "(cached) " >&6
24734 ac_check_lib_save_LIBS=$LIBS
24736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24737 /* end confdefs.h. */
24739 /* Override any GCC internal prototype to avoid an error.
24740 Use char because int might match the return type of a GCC
24741 builtin and then its argument prototype would still apply. */
24754 if ac_fn_c_try_link "$LINENO"; then :
24755 ac_cv_lib_z_gztell=yes
24757 ac_cv_lib_z_gztell=no
24759 rm -f core conftest.err conftest.$ac_objext \
24760 conftest$ac_exeext conftest.$ac_ext
24761 LIBS=$ac_check_lib_save_LIBS
24763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
24764 $as_echo "$ac_cv_lib_z_gztell" >&6; }
24765 if test "x$ac_cv_lib_z_gztell" = x""yes; then :
24766 passed=`expr $passed + 1`
24768 failed=`expr $failed + 1`
24771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
24772 $as_echo_n "checking if ZLIB package is complete... " >&6; }
24773 if test $passed -gt 0; then
24774 if test $failed -gt 0; then
24775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
24776 $as_echo "no -- some components failed test" >&6; }
24777 have_zlib='no (failed tests)'
24780 LIBS="$ZLIB_LIBS $LIBS"
24782 $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
24784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24785 $as_echo "yes" >&6; }
24789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24790 $as_echo "no" >&6; }
24793 if test "$have_zlib" = 'yes'; then
24794 ZLIB_DELEGATE_TRUE=
24795 ZLIB_DELEGATE_FALSE='#'
24797 ZLIB_DELEGATE_TRUE='#'
24798 ZLIB_DELEGATE_FALSE=
24804 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
24807 if test "$enable_profiling" = 'yes'; then
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
24809 $as_echo_n "checking for dlopen in -ldl... " >&6; }
24810 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
24811 $as_echo_n "(cached) " >&6
24813 ac_check_lib_save_LIBS=$LIBS
24815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24816 /* end confdefs.h. */
24818 /* Override any GCC internal prototype to avoid an error.
24819 Use char because int might match the return type of a GCC
24820 builtin and then its argument prototype would still apply. */
24833 if ac_fn_c_try_link "$LINENO"; then :
24834 ac_cv_lib_dl_dlopen=yes
24836 ac_cv_lib_dl_dlopen=no
24838 rm -f core conftest.err conftest.$ac_objext \
24839 conftest$ac_exeext conftest.$ac_ext
24840 LIBS=$ac_check_lib_save_LIBS
24842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
24843 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
24844 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
24848 LIBS="$LIB_DL $LIBS"
24854 # Check for Autotrace delegate library.
24857 # Check whether --with-autotrace was given.
24858 if test "${with_autotrace+set}" = set; then :
24859 withval=$with_autotrace; with_autotrace=$withval
24861 with_autotrace='no'
24865 if test "$with_autotrace" != 'yes'; then
24866 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
24869 have_autotrace='no'
24870 AUTOTRACE_CFLAGS=""
24873 if test "x$with_autotrace" = "xyes"; then
24874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24875 $as_echo "-------------------------------------------------------------" >&6; }
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
24879 $as_echo_n "checking for AUTOTRACE... " >&6; }
24881 if test -n "$AUTOTRACE_CFLAGS"; then
24882 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
24883 elif test -n "$PKG_CONFIG"; then
24884 if test -n "$PKG_CONFIG" && \
24885 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
24886 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
24888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24889 test $ac_status = 0; }; then
24890 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
24897 if test -n "$AUTOTRACE_LIBS"; then
24898 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
24899 elif test -n "$PKG_CONFIG"; then
24900 if test -n "$PKG_CONFIG" && \
24901 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
24902 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
24904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24905 test $ac_status = 0; }; then
24906 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
24916 if test $pkg_failed = yes; then
24918 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
24919 _pkg_short_errors_supported=yes
24921 _pkg_short_errors_supported=no
24923 if test $_pkg_short_errors_supported = yes; then
24924 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
24926 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
24928 # Put the nasty error message in config.log where it belongs
24929 echo "$AUTOTRACE_PKG_ERRORS" >&5
24931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24932 $as_echo "no" >&6; }
24934 elif test $pkg_failed = untried; then
24937 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
24938 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24940 $as_echo "yes" >&6; }
24943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24947 if test "$have_autotrace" = 'yes'; then
24950 $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
24952 if test "$with_modules" = 'no'; then
24953 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
24957 if test "$have_autotrace" = 'yes'; then
24958 AUTOTRACE_DELEGATE_TRUE=
24959 AUTOTRACE_DELEGATE_FALSE='#'
24961 AUTOTRACE_DELEGATE_TRUE='#'
24962 AUTOTRACE_DELEGATE_FALSE=
24970 # Check for Display Postscript delegate library.
24973 # Check whether --with-dps was given.
24974 if test "${with_dps+set}" = set; then :
24975 withval=$with_dps; with_dps=$withval
24981 if test "$with_dps" != 'yes'; then
24982 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
24987 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
24988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24989 $as_echo "-------------------------------------------------------------" >&6; }
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
24991 $as_echo_n "checking for DPS... " >&6; }
24992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24996 PERSIST_CPPFLAGS="$CPPFLAGS"
24997 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
24998 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
24999 if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
25000 passed=`expr $passed + 1`
25002 failed=`expr $failed + 1`
25007 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
25008 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
25009 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
25010 # ImageMagick itself doesn't use -lXt.
25013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
25014 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
25015 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
25016 $as_echo_n "(cached) " >&6
25018 ac_check_lib_save_LIBS=$LIBS
25020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25021 /* end confdefs.h. */
25023 /* Override any GCC internal prototype to avoid an error.
25024 Use char because int might match the return type of a GCC
25025 builtin and then its argument prototype would still apply. */
25029 char DPSInitialize ();
25033 return DPSInitialize ();
25038 if ac_fn_c_try_link "$LINENO"; then :
25039 ac_cv_lib_dps_DPSInitialize=yes
25041 ac_cv_lib_dps_DPSInitialize=no
25043 rm -f core conftest.err conftest.$ac_objext \
25044 conftest$ac_exeext conftest.$ac_ext
25045 LIBS=$ac_check_lib_save_LIBS
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
25048 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
25049 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
25055 if test "$have_libdps" != 'yes'; then
25056 # Unset cache variable so we can try again.
25057 unset ac_cv_lib_dps_DPSInitialize
25058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
25059 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
25060 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
25061 $as_echo_n "(cached) " >&6
25063 ac_check_lib_save_LIBS=$LIBS
25064 LIBS="-ldps -lXt $LIBS"
25065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25066 /* end confdefs.h. */
25068 /* Override any GCC internal prototype to avoid an error.
25069 Use char because int might match the return type of a GCC
25070 builtin and then its argument prototype would still apply. */
25074 char DPSInitialize ();
25078 return DPSInitialize ();
25083 if ac_fn_c_try_link "$LINENO"; then :
25084 ac_cv_lib_dps_DPSInitialize=yes
25086 ac_cv_lib_dps_DPSInitialize=no
25088 rm -f core conftest.err conftest.$ac_objext \
25089 conftest$ac_exeext conftest.$ac_ext
25090 LIBS=$ac_check_lib_save_LIBS
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
25093 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
25094 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
25100 if test "$have_libdps" = 'yes'; then
25104 if test "$have_libdps" = 'yes'; then
25105 passed=`expr $passed + 1`
25107 failed=`expr $failed + 1`
25109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
25110 $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
25111 if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
25112 $as_echo_n "(cached) " >&6
25114 ac_check_lib_save_LIBS=$LIBS
25115 LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
25116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25117 /* end confdefs.h. */
25119 /* Override any GCC internal prototype to avoid an error.
25120 Use char because int might match the return type of a GCC
25121 builtin and then its argument prototype would still apply. */
25125 char XDPSPixelsPerPoint ();
25129 return XDPSPixelsPerPoint ();
25134 if ac_fn_c_try_link "$LINENO"; then :
25135 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
25137 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
25139 rm -f core conftest.err conftest.$ac_objext \
25140 conftest$ac_exeext conftest.$ac_ext
25141 LIBS=$ac_check_lib_save_LIBS
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
25144 $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
25145 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
25146 passed=`expr $passed + 1`
25148 failed=`expr $failed + 1`
25151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
25152 $as_echo_n "checking if DPS package is complete... " >&6; }
25153 if test $passed -gt 0; then
25154 if test $failed -gt 0; then
25155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25156 $as_echo "no -- some components failed test" >&6; }
25157 have_dps='no (failed tests)'
25158 CPPFLAGS="$PERSIST_CPPFLAGS"
25160 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
25161 LIBS="$DPS_LIBS $LIBS"
25163 $as_echo "#define DPS_DELEGATE 1" >>confdefs.h
25165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25166 $as_echo "yes" >&6; }
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25171 $as_echo "no" >&6; }
25172 CPPFLAGS=$PERSIST_CPPFLAGS
25175 if test "$have_dps" = 'yes'; then
25177 DPS_DELEGATE_FALSE='#'
25179 DPS_DELEGATE_TRUE='#'
25180 DPS_DELEGATE_FALSE=
25187 # Check for DJVU delegate library.
25190 # Check whether --with-djvu was given.
25191 if test "${with_djvu+set}" = set; then :
25192 withval=$with_djvu; with_djvu=$withval
25198 if test "$with_djvu" != 'yes'; then
25199 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
25204 if test "$with_djvu" != 'no'; then
25205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25206 $as_echo "-------------------------------------------------------------" >&6; }
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
25208 $as_echo_n "checking for DJVU... " >&6; }
25209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25213 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
25214 if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
25215 passed=`expr $passed + 1`
25217 failed=`expr $failed + 1`
25221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
25222 $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
25223 if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
25224 $as_echo_n "(cached) " >&6
25226 ac_check_lib_save_LIBS=$LIBS
25227 LIBS="-ldjvulibre $LIBS"
25228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25229 /* end confdefs.h. */
25231 /* Override any GCC internal prototype to avoid an error.
25232 Use char because int might match the return type of a GCC
25233 builtin and then its argument prototype would still apply. */
25237 char ddjvu_context_create ();
25241 return ddjvu_context_create ();
25246 if ac_fn_c_try_link "$LINENO"; then :
25247 ac_cv_lib_djvulibre_ddjvu_context_create=yes
25249 ac_cv_lib_djvulibre_ddjvu_context_create=no
25251 rm -f core conftest.err conftest.$ac_objext \
25252 conftest$ac_exeext conftest.$ac_ext
25253 LIBS=$ac_check_lib_save_LIBS
25255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
25256 $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
25257 if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
25258 passed=`expr $passed + 1`
25260 failed=`expr $failed + 1`
25263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
25264 $as_echo_n "checking if DJVU package is complete... " >&6; }
25265 if test $passed -gt 0; then
25266 if test $failed -gt 0; then
25267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25268 $as_echo "no -- some components failed test" >&6; }
25269 have_djvu='no (failed tests)'
25271 DJVU_LIBS='-ldjvulibre'
25272 LIBS="$DJVU_LIBS $LIBS"
25274 $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25277 $as_echo "yes" >&6; }
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25282 $as_echo "no" >&6; }
25285 if test "$have_djvu" = 'yes'; then
25286 DJVU_DELEGATE_TRUE=
25287 DJVU_DELEGATE_FALSE='#'
25289 DJVU_DELEGATE_TRUE='#'
25290 DJVU_DELEGATE_FALSE=
25297 # Check for FFTW delegate library.
25300 # Check whether --with-fftw was given.
25301 if test "${with_fftw+set}" = set; then :
25302 withval=$with_fftw; with_fftw=$withval
25308 if test "$with_fftw" != 'yes'; then
25309 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
25314 if test "$with_fftw" != 'no'; then
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25316 $as_echo "-------------------------------------------------------------" >&6; }
25317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
25318 $as_echo_n "checking for FFTW... " >&6; }
25319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25323 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
25324 if test "x$ac_cv_header_fftw3_h" = x""yes; then :
25325 passed=`expr $passed + 1`
25327 failed=`expr $failed + 1`
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
25332 $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
25333 if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
25334 $as_echo_n "(cached) " >&6
25336 ac_check_lib_save_LIBS=$LIBS
25337 LIBS="-lfftw3 $LIBS"
25338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25339 /* end confdefs.h. */
25341 /* Override any GCC internal prototype to avoid an error.
25342 Use char because int might match the return type of a GCC
25343 builtin and then its argument prototype would still apply. */
25347 char fftw_execute ();
25351 return fftw_execute ();
25356 if ac_fn_c_try_link "$LINENO"; then :
25357 ac_cv_lib_fftw3_fftw_execute=yes
25359 ac_cv_lib_fftw3_fftw_execute=no
25361 rm -f core conftest.err conftest.$ac_objext \
25362 conftest$ac_exeext conftest.$ac_ext
25363 LIBS=$ac_check_lib_save_LIBS
25365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
25366 $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
25367 if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
25368 passed=`expr $passed + 1`
25370 failed=`expr $failed + 1`
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
25374 $as_echo_n "checking if FFTW package is complete... " >&6; }
25375 if test $passed -gt 0; then
25376 if test $failed -gt 0; then
25377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25378 $as_echo "no -- some components failed test" >&6; }
25379 have_fftw='no (failed tests)'
25381 FFTW_LIBS='-lfftw3'
25382 LIBS="$FFTW_LIBS $LIBS"
25384 $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
25386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25387 $as_echo "yes" >&6; }
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25392 $as_echo "no" >&6; }
25395 if test "$have_fftw" = 'yes'; then
25396 FFTW_DELEGATE_TRUE=
25397 FFTW_DELEGATE_FALSE='#'
25399 FFTW_DELEGATE_TRUE='#'
25400 FFTW_DELEGATE_FALSE=
25407 # Check for FlashPIX delegate library.
25410 # Check whether --with-fpx was given.
25411 if test "${with_fpx+set}" = set; then :
25412 withval=$with_fpx; with_fpx=$withval
25418 if test "$with_fpx" != 'yes'; then
25419 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
25424 if test "$with_fpx" != 'no'; then
25425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25426 $as_echo "-------------------------------------------------------------" >&6; }
25427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
25428 $as_echo_n "checking for FlashPIX... " >&6; }
25429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25434 ac_cpp='$CXXCPP $CPPFLAGS'
25435 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25436 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25437 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25440 ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
25441 if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
25442 passed=`expr $passed + 1`
25444 failed=`expr $failed + 1`
25448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
25449 $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
25450 if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
25451 $as_echo_n "(cached) " >&6
25453 ac_check_lib_save_LIBS=$LIBS
25455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25456 /* end confdefs.h. */
25458 /* Override any GCC internal prototype to avoid an error.
25459 Use char because int might match the return type of a GCC
25460 builtin and then its argument prototype would still apply. */
25464 char FPX_OpenImageByFilename ();
25468 return FPX_OpenImageByFilename ();
25473 if ac_fn_cxx_try_link "$LINENO"; then :
25474 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
25476 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
25478 rm -f core conftest.err conftest.$ac_objext \
25479 conftest$ac_exeext conftest.$ac_ext
25480 LIBS=$ac_check_lib_save_LIBS
25482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
25483 $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
25484 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
25485 passed=`expr $passed + 1`
25487 failed=`expr $failed + 1`
25491 ac_cpp='$CPP $CPPFLAGS'
25492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
25497 $as_echo_n "checking if FlashPIX package is complete... " >&6; }
25498 if test $passed -gt 0; then
25499 if test $failed -gt 0; then
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25501 $as_echo "no -- some components failed test" >&6; }
25502 have_fpx='no (failed tests)'
25506 $as_echo "#define FPX_DELEGATE 1" >>confdefs.h
25508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25509 $as_echo "yes" >&6; }
25514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25515 $as_echo "no" >&6; }
25518 if test "$have_fpx" = 'yes'; then
25520 FPX_DELEGATE_FALSE='#'
25522 FPX_DELEGATE_TRUE='#'
25523 FPX_DELEGATE_FALSE=
25530 # Check for fontconfig delegate library.
25533 # Check whether --with-fontconfig was given.
25534 if test "${with_fontconfig+set}" = set; then :
25535 withval=$with_fontconfig; with_fontconfig=$withval
25537 with_fontconfig=$have_x
25541 if test "$with_fontconfig" != 'yes'; then
25542 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
25545 have_fontconfig='no'
25546 FONTCONFIG_CFLAGS=""
25549 if test "x$with_fontconfig" = "xyes"; then
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25551 $as_echo "-------------------------------------------------------------" >&6; }
25554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
25555 $as_echo_n "checking for FONTCONFIG... " >&6; }
25557 if test -n "$FONTCONFIG_CFLAGS"; then
25558 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
25559 elif test -n "$PKG_CONFIG"; then
25560 if test -n "$PKG_CONFIG" && \
25561 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
25562 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
25564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25565 test $ac_status = 0; }; then
25566 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
25573 if test -n "$FONTCONFIG_LIBS"; then
25574 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
25575 elif test -n "$PKG_CONFIG"; then
25576 if test -n "$PKG_CONFIG" && \
25577 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
25578 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
25580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25581 test $ac_status = 0; }; then
25582 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
25592 if test $pkg_failed = yes; then
25594 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
25595 _pkg_short_errors_supported=yes
25597 _pkg_short_errors_supported=no
25599 if test $_pkg_short_errors_supported = yes; then
25600 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
25602 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
25604 # Put the nasty error message in config.log where it belongs
25605 echo "$FONTCONFIG_PKG_ERRORS" >&5
25607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25608 $as_echo "no" >&6; }
25610 elif test $pkg_failed = untried; then
25613 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
25614 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
25615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25616 $as_echo "yes" >&6; }
25617 have_fontconfig=yes
25619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25623 if test "$have_fontconfig" = 'yes'; then
25625 $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
25627 if test "$with_modules" = 'no'; then
25628 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
25632 if test "$have_fontconfig" = 'yes'; then
25633 FONTCONFIG_DELEGATE_TRUE=
25634 FONTCONFIG_DELEGATE_FALSE='#'
25636 FONTCONFIG_DELEGATE_TRUE='#'
25637 FONTCONFIG_DELEGATE_FALSE=
25645 # Check for freetype delegate library.
25648 # Check whether --with-freetype was given.
25649 if test "${with_freetype+set}" = set; then :
25650 withval=$with_freetype; with_freetype=$withval
25652 with_freetype='yes'
25657 if test "$with_freetype" != 'yes'; then
25658 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
25663 if test "$with_freetype" != 'no'; then
25664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25665 $as_echo "-------------------------------------------------------------" >&6; }
25666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
25667 $as_echo_n "checking for FreeType 2.0... " >&6; }
25668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25672 PERSIST_LIBS="$LIBS"
25673 PERSIST_CPPFLAGS="$CPPFLAGS"
25674 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
25678 for ac_prog in freetype-config
25680 # Extract the first word of "$ac_prog", so it can be a program name with args.
25681 set dummy $ac_prog; ac_word=$2
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25683 $as_echo_n "checking for $ac_word... " >&6; }
25684 if test "${ac_cv_prog_freetype_config+set}" = set; then :
25685 $as_echo_n "(cached) " >&6
25687 if test -n "$freetype_config"; then
25688 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
25690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25691 for as_dir in $PATH
25694 test -z "$as_dir" && as_dir=.
25695 for ac_exec_ext in '' $ac_executable_extensions; do
25696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
25697 ac_cv_prog_freetype_config="$ac_prog"
25698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25707 freetype_config=$ac_cv_prog_freetype_config
25708 if test -n "$freetype_config"; then
25709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
25710 $as_echo "$freetype_config" >&6; }
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25713 $as_echo "no" >&6; }
25717 test -n "$freetype_config" && break
25719 if test -n "$freetype_config"; then
25720 freetype_cflags=`$freetype_config --cflags`
25721 freetype_libs=`$freetype_config --libs`
25722 LIBS="$LIBS $freetype_libs"
25723 CPPFLAGS="$freetype_cflags $CPPFLAGS"
25727 if test "$FREETYPE_LIBS" = ''; then
25728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
25729 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
25730 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
25731 $as_echo_n "(cached) " >&6
25733 ac_check_lib_save_LIBS=$LIBS
25734 LIBS="-lfreetype $LIBS"
25735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25736 /* end confdefs.h. */
25738 /* Override any GCC internal prototype to avoid an error.
25739 Use char because int might match the return type of a GCC
25740 builtin and then its argument prototype would still apply. */
25744 char FT_Init_FreeType ();
25748 return FT_Init_FreeType ();
25753 if ac_fn_c_try_link "$LINENO"; then :
25754 ac_cv_lib_freetype_FT_Init_FreeType=yes
25756 ac_cv_lib_freetype_FT_Init_FreeType=no
25758 rm -f core conftest.err conftest.$ac_objext \
25759 conftest$ac_exeext conftest.$ac_ext
25760 LIBS=$ac_check_lib_save_LIBS
25762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
25763 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
25764 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
25765 FREETYPE_LIBS='-lfreetype'
25768 if test "$FREETYPE_LIBS" != ''; then
25769 passed=`expr $passed + 1`
25771 failed=`expr $failed + 1`
25772 LIBS="$PERSIST_LIBS"
25776 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
25777 if test "x$ac_cv_header_ft2build_h" = x""yes; then :
25778 FT2BUILD_H='#include <ft2build.h>'
25784 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
25786 if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
25787 have_freetype_h='yes'
25789 have_freetype_h='no'
25793 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
25794 passed=`expr $passed + 1`
25796 failed=`expr $failed + 1`
25797 CPPFLAGS="$PERSIST_CPPFLAGS"
25800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
25801 $as_echo_n "checking if FreeType package is complete... " >&6; }
25802 if test $passed -gt 0; then
25803 if test $failed -gt 0; then
25805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25806 $as_echo "no -- some components failed test" >&6; }
25807 have_freetype='no (failed tests)'
25809 LIBS="$FREETYPE_LIBS $LIBS"
25811 $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
25813 if test "$ac_cv_header_ft2build_h" = 'yes'; then
25815 $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
25818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25819 $as_echo "yes" >&6; }
25820 have_freetype='yes'
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25824 $as_echo "no" >&6; }
25827 if test "$have_freetype" = 'yes'; then
25828 FREETYPE_DELEGATE_TRUE=
25829 FREETYPE_DELEGATE_FALSE='#'
25831 FREETYPE_DELEGATE_TRUE='#'
25832 FREETYPE_DELEGATE_FALSE=
25840 # Check for Ghostscript library or framework.
25842 # Test for iapi.h & test for gsapi_new_instance in -lgs
25843 # or -framework Ghostscript
25846 # Check whether --with-gslib was given.
25847 if test "${with_gslib+set}" = set; then :
25848 withval=$with_gslib; with_gslib=$withval
25854 gslib_framework='no'
25855 if test "$with_gslib" != 'yes'; then
25856 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
25861 if test "$with_gslib" != 'no'; then
25862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25863 $as_echo "-------------------------------------------------------------" >&6; }
25864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
25865 $as_echo_n "checking for Ghostscript... " >&6; }
25866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25871 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
25872 if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
25873 passed=`expr $passed + 1`
25875 failed=`expr $failed + 1`
25879 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
25880 if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
25881 passed=`expr $passed + 1`
25883 failed=`expr $failed + 1`
25887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
25888 $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
25889 if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
25890 $as_echo_n "(cached) " >&6
25892 ac_check_framework_save_LIBS=$LIBS
25893 LIBS="-framework Ghostscript $LIBS"
25894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25895 /* end confdefs.h. */
25897 /* Override any GCC internal prototype to avoid an error.
25898 Use char because int might match the return type of a GCC
25899 builtin and then its argument prototype would still apply. */
25903 char gsapi_new_instance ();
25907 return gsapi_new_instance ();
25912 if ac_fn_c_try_link "$LINENO"; then :
25913 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
25915 ac_cv_framework_Ghostscript_gsapi_new_instance=no
25917 rm -f core conftest.err conftest.$ac_objext \
25918 conftest$ac_exeext conftest.$ac_ext
25919 LIBS=$ac_check_framework_save_LIBS
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
25922 $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
25923 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
25924 framework=`expr $framework + 1`
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
25927 $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
25928 if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
25929 $as_echo_n "(cached) " >&6
25931 ac_check_lib_save_LIBS=$LIBS
25933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25934 /* end confdefs.h. */
25936 /* Override any GCC internal prototype to avoid an error.
25937 Use char because int might match the return type of a GCC
25938 builtin and then its argument prototype would still apply. */
25942 char gsapi_new_instance ();
25946 return gsapi_new_instance ();
25951 if ac_fn_c_try_link "$LINENO"; then :
25952 ac_cv_lib_gs_gsapi_new_instance=yes
25954 ac_cv_lib_gs_gsapi_new_instance=no
25956 rm -f core conftest.err conftest.$ac_objext \
25957 conftest$ac_exeext conftest.$ac_ext
25958 LIBS=$ac_check_lib_save_LIBS
25960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
25961 $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
25962 if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
25963 passed=`expr $passed + 1`
25965 failed=`expr $failed + 1`
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
25970 $as_echo_n "checking if Ghostscript package is complete... " >&6; }
25971 if test $passed -gt 0; then
25972 if test $failed -gt 0; then
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25974 $as_echo "no -- some components failed test" >&6; }
25975 have_gslib='no (failed tests)'
25977 if test $framework -gt 0; then
25978 GS_LIBS='-framework Ghostscript'
25979 gslib_framework='yes'
25980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
25981 $as_echo "yes, using framework." >&6; }
25983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
25984 $as_echo "yes, using library." >&6; }
25987 LIBS="$GS_LIBS $LIBS"
25989 $as_echo "#define GS_DELEGATE 1" >>confdefs.h
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25995 $as_echo "no" >&6; }
25998 if test "$have_gslib" = 'yes'; then
26000 GS_DELEGATE_FALSE='#'
26002 GS_DELEGATE_TRUE='#'
26008 # Set default font search path
26010 # Check whether --with-fontpath was given.
26011 if test "${with_fontpath+set}" = set; then :
26012 withval=$with_fontpath; with_fontpath=$withval
26018 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
26022 cat >>confdefs.h <<_ACEOF
26023 #define MAGICK_FONT_PATH "$with_fontpath"
26027 if test "$with_fontpath=" != ''; then
26028 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
26031 # Set Ghostscript font directory
26033 # Check whether --with-gs-font-dir was given.
26034 if test "${with_gs_font_dir+set}" = set; then :
26035 withval=$with_gs_font_dir; with_gs_font_dir=$withval
26037 with_gs_font_dir='default'
26041 if test "$with_gs_font_dir" != 'default'; then
26042 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
26047 # Check for GVC delegate library.
26050 # Check whether --with-gvc was given.
26051 if test "${with_gvc+set}" = set; then :
26052 withval=$with_gvc; with_gvc=$withval
26058 if test "$with_gvc" != 'yes'; then
26059 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
26063 if test "x$with_gvc" = "xyes"; then
26064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26065 $as_echo "-------------------------------------------------------------" >&6; }
26068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
26069 $as_echo_n "checking for GVC... " >&6; }
26071 if test -n "$GVC_CFLAGS"; then
26072 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
26073 elif test -n "$PKG_CONFIG"; then
26074 if test -n "$PKG_CONFIG" && \
26075 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
26076 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26079 test $ac_status = 0; }; then
26080 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
26087 if test -n "$GVC_LIBS"; then
26088 pkg_cv_GVC_LIBS="$GVC_LIBS"
26089 elif test -n "$PKG_CONFIG"; then
26090 if test -n "$PKG_CONFIG" && \
26091 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
26092 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
26094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26095 test $ac_status = 0; }; then
26096 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
26106 if test $pkg_failed = yes; then
26108 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26109 _pkg_short_errors_supported=yes
26111 _pkg_short_errors_supported=no
26113 if test $_pkg_short_errors_supported = yes; then
26114 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
26116 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
26118 # Put the nasty error message in config.log where it belongs
26119 echo "$GVC_PKG_ERRORS" >&5
26121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26122 $as_echo "no" >&6; }
26124 elif test $pkg_failed = untried; then
26127 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
26128 GVC_LIBS=$pkg_cv_GVC_LIBS
26129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26130 $as_echo "yes" >&6; }
26133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26137 if test "$have_gvc" = 'yes'; then
26139 $as_echo "#define GVC_DELEGATE 1" >>confdefs.h
26141 if test "$with_modules" = 'no'; then
26142 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
26146 if test "$have_gvc" = 'yes'; then
26148 GVC_DELEGATE_FALSE='#'
26150 GVC_DELEGATE_TRUE='#'
26151 GVC_DELEGATE_FALSE=
26159 # Check for JBIG delegate library.
26163 # Check whether --with-jbig was given.
26164 if test "${with_jbig+set}" = set; then :
26165 withval=$with_jbig; with_jbig=$withval
26173 if test "$with_jbig" != 'no'; then
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26175 $as_echo "-------------------------------------------------------------" >&6; }
26176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
26177 $as_echo_n "checking for JBIG... " >&6; }
26178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26182 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
26183 if test "x$ac_cv_header_jbig_h" = x""yes; then :
26184 passed=`expr $passed + 1`
26186 failed=`expr $failed + 1`
26190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
26191 $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
26192 if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
26193 $as_echo_n "(cached) " >&6
26195 ac_check_lib_save_LIBS=$LIBS
26196 LIBS="-ljbig $LIBS"
26197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26198 /* end confdefs.h. */
26200 /* Override any GCC internal prototype to avoid an error.
26201 Use char because int might match the return type of a GCC
26202 builtin and then its argument prototype would still apply. */
26206 char jbg_dec_init ();
26210 return jbg_dec_init ();
26215 if ac_fn_c_try_link "$LINENO"; then :
26216 ac_cv_lib_jbig_jbg_dec_init=yes
26218 ac_cv_lib_jbig_jbg_dec_init=no
26220 rm -f core conftest.err conftest.$ac_objext \
26221 conftest$ac_exeext conftest.$ac_ext
26222 LIBS=$ac_check_lib_save_LIBS
26224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
26225 $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
26226 if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
26227 passed=`expr $passed + 1`
26229 failed=`expr $failed + 1`
26232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
26233 $as_echo_n "checking if JBIG package is complete... " >&6; }
26234 if test $passed -gt 0; then
26235 if test $failed -gt 0; then
26236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26237 $as_echo "no -- some components failed test" >&6; }
26238 have_jbig='no (failed tests)'
26241 LIBS="$JBIG_LIBS $LIBS"
26243 $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
26245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26246 $as_echo "yes" >&6; }
26250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26251 $as_echo "no" >&6; }
26254 if test "$have_jbig" = 'yes'; then
26255 JBIG_DELEGATE_TRUE=
26256 JBIG_DELEGATE_FALSE='#'
26258 JBIG_DELEGATE_TRUE='#'
26259 JBIG_DELEGATE_FALSE=
26266 # Check for JPEG delegate library.
26269 # Check whether --with-jpeg was given.
26270 if test "${with_jpeg+set}" = set; then :
26271 withval=$with_jpeg; with_jpeg=$withval
26277 if test "$with_jpeg" != 'yes'; then
26278 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
26283 if test "$with_jpeg" != 'no'; then
26284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26285 $as_echo "-------------------------------------------------------------" >&6; }
26286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
26287 $as_echo_n "checking for JPEG... " >&6; }
26288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26292 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
26293 if test "x$ac_cv_header_jconfig_h" = x""yes; then :
26294 passed=`expr $passed + 1`
26296 failed=`expr $failed + 1`
26300 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
26301 if test "x$ac_cv_header_jerror_h" = x""yes; then :
26302 passed=`expr $passed + 1`
26304 failed=`expr $failed + 1`
26308 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
26309 if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
26310 passed=`expr $passed + 1`
26312 failed=`expr $failed + 1`
26316 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
26317 if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
26318 passed=`expr $passed + 1`
26320 failed=`expr $failed + 1`
26324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
26325 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
26326 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
26327 $as_echo_n "(cached) " >&6
26329 ac_check_lib_save_LIBS=$LIBS
26330 LIBS="-ljpeg $LIBS"
26331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26332 /* end confdefs.h. */
26334 /* Override any GCC internal prototype to avoid an error.
26335 Use char because int might match the return type of a GCC
26336 builtin and then its argument prototype would still apply. */
26340 char jpeg_read_header ();
26344 return jpeg_read_header ();
26349 if ac_fn_c_try_link "$LINENO"; then :
26350 ac_cv_lib_jpeg_jpeg_read_header=yes
26352 ac_cv_lib_jpeg_jpeg_read_header=no
26354 rm -f core conftest.err conftest.$ac_objext \
26355 conftest$ac_exeext conftest.$ac_ext
26356 LIBS=$ac_check_lib_save_LIBS
26358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
26359 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
26360 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
26361 passed=`expr $passed + 1`
26363 failed=`expr $failed + 1`
26367 # Test for compatible JPEG library
26368 if test "$ac_cv_jpeg_version_ok" != 'yes'; then
26369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
26370 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
26371 if test "${ac_cv_jpeg_version_ok+set}" = set; then :
26372 $as_echo_n "(cached) " >&6
26374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26375 /* end confdefs.h. */
26377 #include <stdlib.h>
26378 #include <jpeglib.h>
26384 #if JPEG_LIB_VERSION < 62
26385 #error IJG JPEG library must be version 6b or newer!
26393 if ac_fn_c_try_compile "$LINENO"; then :
26394 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
26396 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
26398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
26401 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
26403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
26404 $as_echo_n "checking if JPEG package is complete... " >&6; }
26405 if test $passed -gt 0; then
26406 if test $failed -gt 0; then
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26408 $as_echo "no -- some components failed test" >&6; }
26409 have_jpeg='no (failed tests)'
26412 LIBS="$JPEG_LIBS $LIBS"
26414 $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
26416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26417 $as_echo "yes" >&6; }
26421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26422 $as_echo "no" >&6; }
26425 if test "$have_jpeg" = 'yes'; then
26426 JPEG_DELEGATE_TRUE=
26427 JPEG_DELEGATE_FALSE='#'
26429 JPEG_DELEGATE_TRUE='#'
26430 JPEG_DELEGATE_FALSE=
26437 # Check for JPEG Version 2 delegate library.
26440 # Check whether --with-jp2 was given.
26441 if test "${with_jp2+set}" = set; then :
26442 withval=$with_jp2; with_jp2=$withval
26448 if test "$with_jp2" != 'yes'; then
26449 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
26454 if test "$with_jp2" != 'no'; then
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26456 $as_echo "-------------------------------------------------------------" >&6; }
26457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
26458 $as_echo_n "checking for JPEG Version 2... " >&6; }
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26463 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
26464 if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
26465 passed=`expr $passed + 1`
26467 failed=`expr $failed + 1`
26471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
26472 $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
26473 if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
26474 $as_echo_n "(cached) " >&6
26476 ac_check_lib_save_LIBS=$LIBS
26477 LIBS="-ljasper $LIBS"
26478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26479 /* end confdefs.h. */
26481 /* Override any GCC internal prototype to avoid an error.
26482 Use char because int might match the return type of a GCC
26483 builtin and then its argument prototype would still apply. */
26487 char jas_stream_fopen ();
26491 return jas_stream_fopen ();
26496 if ac_fn_c_try_link "$LINENO"; then :
26497 ac_cv_lib_jasper_jas_stream_fopen=yes
26499 ac_cv_lib_jasper_jas_stream_fopen=no
26501 rm -f core conftest.err conftest.$ac_objext \
26502 conftest$ac_exeext conftest.$ac_ext
26503 LIBS=$ac_check_lib_save_LIBS
26505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
26506 $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
26507 if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
26508 passed=`expr $passed + 1`
26510 failed=`expr $failed + 1`
26513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
26514 $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
26515 if test $passed -gt 0; then
26516 if test $failed -gt 0; then
26517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26518 $as_echo "no -- some components failed test" >&6; }
26519 have_jp2='no (failed tests)'
26521 JP2_LIBS='-ljasper'
26522 LIBS="$JP2_LIBS $LIBS"
26524 $as_echo "#define JP2_DELEGATE 1" >>confdefs.h
26526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26527 $as_echo "yes" >&6; }
26531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26532 $as_echo "no" >&6; }
26535 if test "$have_jp2" = 'yes'; then
26537 JP2_DELEGATE_FALSE='#'
26539 JP2_DELEGATE_TRUE='#'
26540 JP2_DELEGATE_FALSE=
26547 # Check for LCMS delegate library.
26550 # Check whether --with-lcms was given.
26551 if test "${with_lcms+set}" = set; then :
26552 withval=$with_lcms; with_lcms=$withval
26558 if test "$with_lcms" != 'yes'; then
26559 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
26564 if test "$with_lcms" != 'no'; then
26565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26566 $as_echo "-------------------------------------------------------------" >&6; }
26567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5
26568 $as_echo_n "checking for LCMS... " >&6; }
26569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26573 have_lcms_header='no'
26574 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
26575 if test "x$ac_cv_header_lcms_h" = x""yes; then :
26576 have_lcms_header='yes'
26580 if test "$have_lcms_header" = 'yes'; then
26581 passed=`expr $passed + 1`
26583 $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
26586 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
26587 if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
26588 have_lcms_header='yes'
26592 if test "$have_lcms_header" = 'yes'; then
26593 passed=`expr $passed + 1`
26595 $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
26598 failed=`expr $failed + 1`
26601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromMem in -llcms" >&5
26602 $as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
26603 if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then :
26604 $as_echo_n "(cached) " >&6
26606 ac_check_lib_save_LIBS=$LIBS
26607 LIBS="-llcms $LIBS"
26608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26609 /* end confdefs.h. */
26611 /* Override any GCC internal prototype to avoid an error.
26612 Use char because int might match the return type of a GCC
26613 builtin and then its argument prototype would still apply. */
26617 char cmsOpenProfileFromMem ();
26621 return cmsOpenProfileFromMem ();
26626 if ac_fn_c_try_link "$LINENO"; then :
26627 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
26629 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
26631 rm -f core conftest.err conftest.$ac_objext \
26632 conftest$ac_exeext conftest.$ac_ext
26633 LIBS=$ac_check_lib_save_LIBS
26635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
26636 $as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
26637 if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then :
26638 passed=`expr $passed + 1`
26640 failed=`expr $failed + 1`
26643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
26644 $as_echo_n "checking if LCMS package is complete... " >&6; }
26645 if test $passed -gt 0; then
26646 if test $failed -gt 0; then
26647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26648 $as_echo "no -- some components failed test" >&6; }
26649 have_lcms='no (failed tests)'
26652 LIBS="$LCMS_LIBS $LIBS"
26654 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
26656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26657 $as_echo "yes" >&6; }
26661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26662 $as_echo "no" >&6; }
26665 if test "$have_lcms" = 'yes'; then
26666 LCMS_DELEGATE_TRUE=
26667 LCMS_DELEGATE_FALSE='#'
26669 LCMS_DELEGATE_TRUE='#'
26670 LCMS_DELEGATE_FALSE=
26677 # Check for the LQR (Liquid Rescale) delegate library.
26680 # Check whether --with-lqr was given.
26681 if test "${with_lqr+set}" = set; then :
26682 withval=$with_lqr; with_lqr=$withval
26688 if test "$with_lqr" != 'yes'; then
26689 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
26696 if test "x$with_lqr" = "xyes"; then
26697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26698 $as_echo "-------------------------------------------------------------" >&6; }
26701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
26702 $as_echo_n "checking for LQR... " >&6; }
26704 if test -n "$LQR_CFLAGS"; then
26705 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
26706 elif test -n "$PKG_CONFIG"; then
26707 if test -n "$PKG_CONFIG" && \
26708 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
26709 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
26711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26712 test $ac_status = 0; }; then
26713 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
26720 if test -n "$LQR_LIBS"; then
26721 pkg_cv_LQR_LIBS="$LQR_LIBS"
26722 elif test -n "$PKG_CONFIG"; then
26723 if test -n "$PKG_CONFIG" && \
26724 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
26725 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
26727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26728 test $ac_status = 0; }; then
26729 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
26739 if test $pkg_failed = yes; then
26741 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26742 _pkg_short_errors_supported=yes
26744 _pkg_short_errors_supported=no
26746 if test $_pkg_short_errors_supported = yes; then
26747 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
26749 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
26751 # Put the nasty error message in config.log where it belongs
26752 echo "$LQR_PKG_ERRORS" >&5
26754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26755 $as_echo "no" >&6; }
26757 elif test $pkg_failed = untried; then
26760 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
26761 LQR_LIBS=$pkg_cv_LQR_LIBS
26762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26763 $as_echo "yes" >&6; }
26766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26770 if test "$have_lqr" = 'yes'; then
26772 $as_echo "#define LQR_DELEGATE 1" >>confdefs.h
26774 CFLAGS="$LQR_CFLAGS $CFLAGS"
26777 if test "$have_lqr" = 'yes'; then
26779 LQR_DELEGATE_FALSE='#'
26781 LQR_DELEGATE_TRUE='#'
26782 LQR_DELEGATE_FALSE=
26790 # Check for the OpenEXR delegate library.
26793 # Check whether --with-openexr was given.
26794 if test "${with_openexr+set}" = set; then :
26795 withval=$with_openexr; with_openexr=$withval
26801 if test "$with_openexr" != 'yes'; then
26802 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
26809 if test "x$with_openexr" = "xyes"; then
26810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26811 $as_echo "-------------------------------------------------------------" >&6; }
26814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
26815 $as_echo_n "checking for OPENEXR... " >&6; }
26817 if test -n "$OPENEXR_CFLAGS"; then
26818 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
26819 elif test -n "$PKG_CONFIG"; then
26820 if test -n "$PKG_CONFIG" && \
26821 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
26822 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
26824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26825 test $ac_status = 0; }; then
26826 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
26833 if test -n "$OPENEXR_LIBS"; then
26834 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
26835 elif test -n "$PKG_CONFIG"; then
26836 if test -n "$PKG_CONFIG" && \
26837 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
26838 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
26840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26841 test $ac_status = 0; }; then
26842 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
26852 if test $pkg_failed = yes; then
26854 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26855 _pkg_short_errors_supported=yes
26857 _pkg_short_errors_supported=no
26859 if test $_pkg_short_errors_supported = yes; then
26860 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
26862 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
26864 # Put the nasty error message in config.log where it belongs
26865 echo "$OPENEXR_PKG_ERRORS" >&5
26867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26868 $as_echo "no" >&6; }
26870 elif test $pkg_failed = untried; then
26873 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
26874 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
26875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26876 $as_echo "yes" >&6; }
26879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26883 if test "$have_openexr" = 'yes'; then
26885 $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
26887 if test "$with_modules" = 'no'; then
26888 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
26892 if test "$have_openexr" = 'yes'; then
26893 OPENEXR_DELEGATE_TRUE=
26894 OPENEXR_DELEGATE_FALSE='#'
26896 OPENEXR_DELEGATE_TRUE='#'
26897 OPENEXR_DELEGATE_FALSE=
26905 # Check for PNG delegate library.
26908 # Check whether --with-png was given.
26909 if test "${with_png+set}" = set; then :
26910 withval=$with_png; with_png=$withval
26916 if test "$with_png" != 'yes'; then
26917 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
26922 if test "$with_png" != 'no'; then
26923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26924 $as_echo "-------------------------------------------------------------" >&6; }
26925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
26926 $as_echo_n "checking for PNG... " >&6; }
26927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26931 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
26932 if test "x$ac_cv_header_png_h" = x""yes; then :
26933 passed=`expr $passed + 1`
26935 failed=`expr $failed + 1`
26939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
26940 $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
26941 if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
26942 $as_echo_n "(cached) " >&6
26944 ac_check_lib_save_LIBS=$LIBS
26946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26947 /* end confdefs.h. */
26949 /* Override any GCC internal prototype to avoid an error.
26950 Use char because int might match the return type of a GCC
26951 builtin and then its argument prototype would still apply. */
26955 char png_get_io_ptr ();
26959 return png_get_io_ptr ();
26964 if ac_fn_c_try_link "$LINENO"; then :
26965 ac_cv_lib_png_png_get_io_ptr=yes
26967 ac_cv_lib_png_png_get_io_ptr=no
26969 rm -f core conftest.err conftest.$ac_objext \
26970 conftest$ac_exeext conftest.$ac_ext
26971 LIBS=$ac_check_lib_save_LIBS
26973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
26974 $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
26975 if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
26976 passed=`expr $passed + 1`
26978 failed=`expr $failed + 1`
26981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
26982 $as_echo_n "checking if PNG package is complete... " >&6; }
26983 if test $passed -gt 0; then
26984 if test $failed -gt 0; then
26985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26986 $as_echo "no -- some components failed test" >&6; }
26987 have_png='no (failed tests)'
26990 LIBS="$PNG_LIBS $LIBS"
26992 $as_echo "#define PNG_DELEGATE 1" >>confdefs.h
26994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26995 $as_echo "yes" >&6; }
26999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27000 $as_echo "no" >&6; }
27003 if test "$have_png" = 'yes'; then
27005 PNG_DELEGATE_FALSE='#'
27007 PNG_DELEGATE_TRUE='#'
27008 PNG_DELEGATE_FALSE=
27015 # Check for RSVG delegate library.
27018 # Check whether --with-rsvg was given.
27019 if test "${with_rsvg+set}" = set; then :
27020 withval=$with_rsvg; with_rsvg=$withval
27026 if test "$with_rsvg" != 'yes'; then
27027 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
27035 if test "x$with_rsvg" = "xyes"; then
27036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27037 $as_echo "-------------------------------------------------------------" >&6; }
27040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
27041 $as_echo_n "checking for RSVG... " >&6; }
27043 if test -n "$RSVG_CFLAGS"; then
27044 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
27045 elif test -n "$PKG_CONFIG"; then
27046 if test -n "$PKG_CONFIG" && \
27047 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
27048 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
27050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27051 test $ac_status = 0; }; then
27052 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
27059 if test -n "$RSVG_LIBS"; then
27060 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
27061 elif test -n "$PKG_CONFIG"; then
27062 if test -n "$PKG_CONFIG" && \
27063 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
27064 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
27066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27067 test $ac_status = 0; }; then
27068 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
27078 if test $pkg_failed = yes; then
27080 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27081 _pkg_short_errors_supported=yes
27083 _pkg_short_errors_supported=no
27085 if test $_pkg_short_errors_supported = yes; then
27086 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27088 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
27090 # Put the nasty error message in config.log where it belongs
27091 echo "$RSVG_PKG_ERRORS" >&5
27093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27094 $as_echo "no" >&6; }
27096 elif test $pkg_failed = untried; then
27099 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
27100 RSVG_LIBS=$pkg_cv_RSVG_LIBS
27101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27102 $as_echo "yes" >&6; }
27105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
27110 $as_echo_n "checking for CAIRO_SVG... " >&6; }
27112 if test -n "$CAIRO_SVG_CFLAGS"; then
27113 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
27114 elif test -n "$PKG_CONFIG"; then
27115 if test -n "$PKG_CONFIG" && \
27116 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
27117 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27120 test $ac_status = 0; }; then
27121 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
27128 if test -n "$CAIRO_SVG_LIBS"; then
27129 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
27130 elif test -n "$PKG_CONFIG"; then
27131 if test -n "$PKG_CONFIG" && \
27132 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
27133 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
27135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27136 test $ac_status = 0; }; then
27137 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
27147 if test $pkg_failed = yes; then
27149 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27150 _pkg_short_errors_supported=yes
27152 _pkg_short_errors_supported=no
27154 if test $_pkg_short_errors_supported = yes; then
27155 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
27157 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
27159 # Put the nasty error message in config.log where it belongs
27160 echo "$CAIRO_SVG_PKG_ERRORS" >&5
27162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27163 $as_echo "no" >&6; }
27165 elif test $pkg_failed = untried; then
27168 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
27169 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
27170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27171 $as_echo "yes" >&6; }
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27178 if test "$have_rsvg" = 'yes'; then
27180 $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
27182 if test "$with_modules" = 'no'; then
27183 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
27187 if test "$have_cairo" = 'yes'; then
27189 $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
27191 if test "$with_modules" = 'no'; then
27192 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
27196 if test "$have_rsvg" = 'yes'; then
27197 RSVG_DELEGATE_TRUE=
27198 RSVG_DELEGATE_FALSE='#'
27200 RSVG_DELEGATE_TRUE='#'
27201 RSVG_DELEGATE_FALSE=
27204 if test "$have_cairo" = 'yes'; then
27205 CAIRO_DELEGATE_TRUE=
27206 CAIRO_DELEGATE_FALSE='#'
27208 CAIRO_DELEGATE_TRUE='#'
27209 CAIRO_DELEGATE_FALSE=
27217 # Check for TIFF delegate library.
27220 # Check whether --with-tiff was given.
27221 if test "${with_tiff+set}" = set; then :
27222 withval=$with_tiff; with_tiff=$withval
27228 if test "$with_tiff" != 'yes'; then
27229 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
27234 if test "$with_tiff" != 'no'; then
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27236 $as_echo "-------------------------------------------------------------" >&6; }
27237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
27238 $as_echo_n "checking for TIFF... " >&6; }
27239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27243 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
27244 if test "x$ac_cv_header_tiff_h" = x""yes; then :
27245 passed=`expr $passed + 1`
27247 failed=`expr $failed + 1`
27251 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
27252 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
27253 passed=`expr $passed + 1`
27255 failed=`expr $failed + 1`
27259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
27260 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
27261 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
27262 $as_echo_n "(cached) " >&6
27264 ac_check_lib_save_LIBS=$LIBS
27265 LIBS="-ltiff $LIBS"
27266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27267 /* end confdefs.h. */
27269 /* Override any GCC internal prototype to avoid an error.
27270 Use char because int might match the return type of a GCC
27271 builtin and then its argument prototype would still apply. */
27279 return TIFFOpen ();
27284 if ac_fn_c_try_link "$LINENO"; then :
27285 ac_cv_lib_tiff_TIFFOpen=yes
27287 ac_cv_lib_tiff_TIFFOpen=no
27289 rm -f core conftest.err conftest.$ac_objext \
27290 conftest$ac_exeext conftest.$ac_ext
27291 LIBS=$ac_check_lib_save_LIBS
27293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
27294 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
27295 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
27296 passed=`expr $passed + 1`
27298 failed=`expr $failed + 1`
27301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
27302 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
27303 if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
27304 $as_echo_n "(cached) " >&6
27306 ac_check_lib_save_LIBS=$LIBS
27307 LIBS="-ltiff $LIBS"
27308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27309 /* end confdefs.h. */
27311 /* Override any GCC internal prototype to avoid an error.
27312 Use char because int might match the return type of a GCC
27313 builtin and then its argument prototype would still apply. */
27317 char TIFFClientOpen ();
27321 return TIFFClientOpen ();
27326 if ac_fn_c_try_link "$LINENO"; then :
27327 ac_cv_lib_tiff_TIFFClientOpen=yes
27329 ac_cv_lib_tiff_TIFFClientOpen=no
27331 rm -f core conftest.err conftest.$ac_objext \
27332 conftest$ac_exeext conftest.$ac_ext
27333 LIBS=$ac_check_lib_save_LIBS
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
27336 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
27337 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
27338 passed=`expr $passed + 1`
27340 failed=`expr $failed + 1`
27343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
27344 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
27345 if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
27346 $as_echo_n "(cached) " >&6
27348 ac_check_lib_save_LIBS=$LIBS
27349 LIBS="-ltiff $LIBS"
27350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27351 /* end confdefs.h. */
27353 /* Override any GCC internal prototype to avoid an error.
27354 Use char because int might match the return type of a GCC
27355 builtin and then its argument prototype would still apply. */
27359 char TIFFIsByteSwapped ();
27363 return TIFFIsByteSwapped ();
27368 if ac_fn_c_try_link "$LINENO"; then :
27369 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
27371 ac_cv_lib_tiff_TIFFIsByteSwapped=no
27373 rm -f core conftest.err conftest.$ac_objext \
27374 conftest$ac_exeext conftest.$ac_ext
27375 LIBS=$ac_check_lib_save_LIBS
27377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
27378 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
27379 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
27380 passed=`expr $passed + 1`
27382 failed=`expr $failed + 1`
27385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
27386 $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
27387 if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
27388 $as_echo_n "(cached) " >&6
27390 ac_check_lib_save_LIBS=$LIBS
27391 LIBS="-ltiff $LIBS"
27392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27393 /* end confdefs.h. */
27395 /* Override any GCC internal prototype to avoid an error.
27396 Use char because int might match the return type of a GCC
27397 builtin and then its argument prototype would still apply. */
27401 char TIFFReadRGBATile ();
27405 return TIFFReadRGBATile ();
27410 if ac_fn_c_try_link "$LINENO"; then :
27411 ac_cv_lib_tiff_TIFFReadRGBATile=yes
27413 ac_cv_lib_tiff_TIFFReadRGBATile=no
27415 rm -f core conftest.err conftest.$ac_objext \
27416 conftest$ac_exeext conftest.$ac_ext
27417 LIBS=$ac_check_lib_save_LIBS
27419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
27420 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
27421 if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
27422 passed=`expr $passed + 1`
27424 failed=`expr $failed + 1`
27427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
27428 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
27429 if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
27430 $as_echo_n "(cached) " >&6
27432 ac_check_lib_save_LIBS=$LIBS
27433 LIBS="-ltiff $LIBS"
27434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27435 /* end confdefs.h. */
27437 /* Override any GCC internal prototype to avoid an error.
27438 Use char because int might match the return type of a GCC
27439 builtin and then its argument prototype would still apply. */
27443 char TIFFReadRGBAStrip ();
27447 return TIFFReadRGBAStrip ();
27452 if ac_fn_c_try_link "$LINENO"; then :
27453 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
27455 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
27457 rm -f core conftest.err conftest.$ac_objext \
27458 conftest$ac_exeext conftest.$ac_ext
27459 LIBS=$ac_check_lib_save_LIBS
27461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
27462 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
27463 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
27464 passed=`expr $passed + 1`
27466 failed=`expr $failed + 1`
27469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
27470 $as_echo_n "checking if TIFF package is complete... " >&6; }
27471 if test $passed -gt 0; then
27472 if test $failed -gt 0; then
27473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27474 $as_echo "no -- some components failed test" >&6; }
27475 have_tiff='no (failed tests)'
27478 LIBS="$TIFF_LIBS $LIBS"
27480 $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
27482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27483 $as_echo "yes" >&6; }
27485 for ac_header in tiffconf.h
27487 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
27488 if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
27489 cat >>confdefs.h <<_ACEOF
27490 #define HAVE_TIFFCONF_H 1
27497 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
27498 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
27499 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
27501 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27502 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27503 eval as_val=\$$as_ac_var
27504 if test "x$as_val" = x""yes; then :
27505 cat >>confdefs.h <<_ACEOF
27506 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27515 $as_echo "no" >&6; }
27518 if test "$have_tiff" = 'yes'; then
27519 TIFF_DELEGATE_TRUE=
27520 TIFF_DELEGATE_FALSE='#'
27522 TIFF_DELEGATE_TRUE='#'
27523 TIFF_DELEGATE_FALSE=
27530 # Set Windows font directory.
27533 # Check whether --with-windows-font-dir was given.
27534 if test "${with_windows_font_dir+set}" = set; then :
27535 withval=$with_windows_font_dir; with_windows_font_dir=$withval
27537 with_windows_font_dir=''
27540 if test "$with_windows_font_dir" != '' ; then
27541 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
27546 # Check for WMF delegate library.
27549 # Check whether --with-wmf was given.
27550 if test "${with_wmf+set}" = set; then :
27551 withval=$with_wmf; with_wmf=$withval
27553 with_wmf=$with_modules
27557 if test "$with_wmf" != 'yes'; then
27558 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
27565 if test "$with_wmf" != 'no'; then
27566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27567 $as_echo "-------------------------------------------------------------" >&6; }
27568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
27569 $as_echo_n "checking for WMF... " >&6; }
27570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27573 have_libwmflite='no'
27574 have_libwmf_ipa_h='no'
27576 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
27578 if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then :
27579 have_libwmf_ipa_h='yes'
27583 if test "$have_libwmf_ipa_h" = 'yes'; then
27584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
27585 $as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
27586 if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then :
27587 $as_echo_n "(cached) " >&6
27589 ac_check_lib_save_LIBS=$LIBS
27590 LIBS="-lwmflite $LIBS"
27591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27592 /* end confdefs.h. */
27594 /* Override any GCC internal prototype to avoid an error.
27595 Use char because int might match the return type of a GCC
27596 builtin and then its argument prototype would still apply. */
27600 char wmf_lite_create ();
27604 return wmf_lite_create ();
27609 if ac_fn_c_try_link "$LINENO"; then :
27610 ac_cv_lib_wmflite_wmf_lite_create=yes
27612 ac_cv_lib_wmflite_wmf_lite_create=no
27614 rm -f core conftest.err conftest.$ac_objext \
27615 conftest$ac_exeext conftest.$ac_ext
27616 LIBS=$ac_check_lib_save_LIBS
27618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
27619 $as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
27620 if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then :
27621 have_libwmflite='yes'
27624 if test "$have_libwmflite" = 'yes'; then
27626 $as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
27628 WMF_LIBS='-lwmflite'
27629 LIBS="$WMF_LIBS $LIBS"
27633 WMF_CONFIG_LIBS=`libwmf-config --libs`
27634 for lib in xml2 expat freetype jpeg png z; do
27636 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
27638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
27639 $as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
27640 if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then :
27641 $as_echo_n "(cached) " >&6
27643 ac_check_lib_save_LIBS=$LIBS
27644 LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
27645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27646 /* end confdefs.h. */
27648 /* Override any GCC internal prototype to avoid an error.
27649 Use char because int might match the return type of a GCC
27650 builtin and then its argument prototype would still apply. */
27654 char wmf_api_create ();
27658 return wmf_api_create ();
27663 if ac_fn_c_try_link "$LINENO"; then :
27664 ac_cv_lib_wmf_wmf_api_create=yes
27666 ac_cv_lib_wmf_wmf_api_create=no
27668 rm -f core conftest.err conftest.$ac_objext \
27669 conftest$ac_exeext conftest.$ac_ext
27670 LIBS=$ac_check_lib_save_LIBS
27672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
27673 $as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
27674 if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then :
27678 if test "$have_libwmf" = 'yes'; then
27680 $as_echo "#define WMF_DELEGATE 1" >>confdefs.h
27683 LIBS="$WMF_LIBS $LIBS"
27686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27687 $as_echo "no -- some components failed test" >&6; }
27688 have_wmf='no (failed tests)'
27689 have_wmflite='no (failed tests)'
27695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
27696 $as_echo_n "checking if WMF package is complete... " >&6; }
27697 if test "$have_wmf" = 'yes'; then
27698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27699 $as_echo "yes" >&6; }
27701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27702 $as_echo "no" >&6; }
27705 if test "$have_wmf" = 'yes'; then
27707 WMF_DELEGATE_FALSE='#'
27709 WMF_DELEGATE_TRUE='#'
27710 WMF_DELEGATE_FALSE=
27718 # Check for XML delegate library.
27721 # Check whether --with-xml was given.
27722 if test "${with_xml+set}" = set; then :
27723 withval=$with_xml; with_xml=$withval
27729 if test "$with_xml" != 'yes' ; then
27730 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
27735 if test "$with_xml" != 'no'; then
27736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27737 $as_echo "-------------------------------------------------------------" >&6; }
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
27739 $as_echo_n "checking for XML... " >&6; }
27740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27742 PERSIST_LDFLAGS=$LDFLAGS
27743 PERSIST_CPPFLAGS=$CPPFLAGS
27745 for ac_prog in xml2-config
27747 # Extract the first word of "$ac_prog", so it can be a program name with args.
27748 set dummy $ac_prog; ac_word=$2
27749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27750 $as_echo_n "checking for $ac_word... " >&6; }
27751 if test "${ac_cv_prog_xml2_config+set}" = set; then :
27752 $as_echo_n "(cached) " >&6
27754 if test -n "$xml2_config"; then
27755 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
27757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27758 for as_dir in $PATH
27761 test -z "$as_dir" && as_dir=.
27762 for ac_exec_ext in '' $ac_executable_extensions; do
27763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27764 ac_cv_prog_xml2_config="$ac_prog"
27765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27774 xml2_config=$ac_cv_prog_xml2_config
27775 if test -n "$xml2_config"; then
27776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
27777 $as_echo "$xml2_config" >&6; }
27779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27780 $as_echo "no" >&6; }
27784 test -n "$xml2_config" && break
27786 if test -n "$xml2_config"; then
27787 # Debian installs libxml headers under /usr/include/libxml2/libxml with
27788 # the shared library installed under /usr/lib, whereas the package
27789 # installs itself under $prefix/libxml and $prefix/lib.
27790 xml2_prefix=`xml2-config --prefix`
27791 if test -d "${xml2_prefix}/include/libxml2"; then
27792 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
27794 if test "${xml2_prefix}" != '/usr'; then
27795 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
27800 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
27801 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
27802 passed=`expr $passed + 1`
27804 failed=`expr $failed + 1`
27808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
27809 $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
27810 if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
27811 $as_echo_n "(cached) " >&6
27813 ac_check_lib_save_LIBS=$LIBS
27814 LIBS="-lxml2 $LIBS"
27815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27816 /* end confdefs.h. */
27818 /* Override any GCC internal prototype to avoid an error.
27819 Use char because int might match the return type of a GCC
27820 builtin and then its argument prototype would still apply. */
27824 char xmlParseExternalEntity ();
27828 return xmlParseExternalEntity ();
27833 if ac_fn_c_try_link "$LINENO"; then :
27834 ac_cv_lib_xml2_xmlParseExternalEntity=yes
27836 ac_cv_lib_xml2_xmlParseExternalEntity=no
27838 rm -f core conftest.err conftest.$ac_objext \
27839 conftest$ac_exeext conftest.$ac_ext
27840 LIBS=$ac_check_lib_save_LIBS
27842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
27843 $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
27844 if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
27845 passed=`expr $passed + 1`
27847 failed=`expr $failed + 1`
27850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
27851 $as_echo_n "checking if XML package is complete... " >&6; }
27852 if test $passed -gt 0; then
27853 if test $failed -gt 0; then
27854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27855 $as_echo "no -- some components failed test" >&6; }
27856 have_xml='no (failed tests)'
27857 LDFLAGS="$PERSIST_LDFLAGS"
27858 CPPFLAGS="$PERSIST_CPPFLAGS"
27861 LIBS="$XML_LIBS $LIBS"
27863 $as_echo "#define XML_DELEGATE 1" >>confdefs.h
27865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27866 $as_echo "yes" >&6; }
27870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27871 $as_echo "no" >&6; }
27874 if test "$have_xml" = 'yes'; then
27876 XML_DELEGATE_FALSE='#'
27878 XML_DELEGATE_TRUE='#'
27879 XML_DELEGATE_FALSE=
27885 # Substitute compiler name to build/link PerlMagick
27890 # Configure install Paths
27893 # Subdirectory under lib to place ImageMagick lib files
27894 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27896 cat >>confdefs.h <<_ACEOF
27897 #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
27901 # Path to ImageMagick bin directory
27902 EXECUTABLE_PATH="${BIN_DIR}"
27903 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
27904 case "${build_os}" in
27906 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
27910 cat >>confdefs.h <<_ACEOF
27911 #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
27916 # Path to ImageMagick lib
27917 LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
27918 DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
27919 case "${build_os}" in
27921 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
27925 cat >>confdefs.h <<_ACEOF
27926 #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
27931 # Subdirectory under lib to place ImageMagick configuration files
27932 CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
27934 cat >>confdefs.h <<_ACEOF
27935 #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
27938 CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27939 DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
27940 case "${build_os}" in
27942 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
27946 cat >>confdefs.h <<_ACEOF
27947 #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
27953 # Subdirectory under lib to place ImageMagick coder module files
27954 CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
27956 cat >>confdefs.h <<_ACEOF
27957 #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
27960 CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
27961 DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
27962 case "${build_os}" in
27964 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
27968 cat >>confdefs.h <<_ACEOF
27969 #define CODER_PATH "$DEFINE_CODER_PATH"
27975 # Subdirectory under lib to place ImageMagick filter module files
27976 FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
27978 cat >>confdefs.h <<_ACEOF
27979 #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
27982 FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
27983 DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
27984 case "${build_os}" in
27986 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
27990 cat >>confdefs.h <<_ACEOF
27991 #define FILTER_PATH "$DEFINE_FILTER_PATH"
27997 # Path to ImageMagick documentation files
27998 DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
27999 DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
28000 DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
28001 case "${build_os}" in
28003 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
28007 cat >>confdefs.h <<_ACEOF
28008 #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
28014 # Path to ImageMagick share files
28015 SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
28016 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
28017 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
28018 case "${build_os}" in
28020 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
28024 cat >>confdefs.h <<_ACEOF
28025 #define SHARE_PATH "$DEFINE_SHARE_PATH"
28030 # Subdirectory under share to place ImageMagick configuration files
28031 SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
28033 cat >>confdefs.h <<_ACEOF
28034 #define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
28037 SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
28038 DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
28039 case "${build_os}" in
28041 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
28045 cat >>confdefs.h <<_ACEOF
28046 #define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
28052 # program_transform_name is formed for use in a Makefile, so create a
28053 # modified version for use in a shell script.
28054 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
28056 # Default delegate definitions
28057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28058 $as_echo "-------------------------------------------------------------" >&6; }
28059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
28060 $as_echo_n "checking for ImageMagick delegate programs... " >&6; }
28061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28063 AutotraceDecodeDelegateDefault='autotrace'
28064 AVIDecodeDelegateDefault='mplayer'
28065 BlenderDecodeDelegateDefault='blender'
28066 BZIPDelegateDefault='bzip2'
28067 BrowseDelegateDefault='xdg-open'
28068 CGMDecodeDelegateDefault='ralcgm'
28069 CatDelegateDefault='cat'
28070 DNGDecodeDelegateDefault='ufraw-batch'
28071 GVCDecodeDelegateDefault='dot'
28072 DVIDecodeDelegateDefault='dvips'
28073 EchoDelegateDefault='echo'
28074 EditorDelegateDefault='xterm'
28075 FIGDecodeDelegateDefault='fig2dev'
28076 ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
28077 DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
28078 MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
28079 GnuplotDecodeDelegateDefault='gnuplot'
28080 HDRDecodeDelegateDefault='ra_pfm'
28081 HPGLDecodeDelegateDefault='hp2xx'
28082 HTMLDecodeDelegateDefault='html2ps'
28083 ILBMDecodeDelegateDefault='ilbmtoppm'
28084 ILBMEncodeDelegateDefault='ppmtoilbm'
28085 LPDelegateDefault='lp'
28086 LPRDelegateDefault='lpr'
28087 LZWDecodeDelegateDefault='uncompress'
28088 LZWEncodeDelegateDefault='compress'
28089 LaunchDelegateDefault='gimp'
28090 MANDelegateDefault='groff'
28091 MPEGDecodeDelegateDefault='ffmpeg'
28092 MPEGEncodeDelegateDefault='ffmpeg'
28093 MVDelegateDefault='mv'
28094 PCLDelegateDefault='pcl6'
28095 PGPDecodeDelegateDefault='pgpv'
28096 POVDelegateDefault='povray'
28097 if test "$native_win32_build" = 'yes'; then
28098 PSDelegateDefault='gswin32c'
28099 elif test "$gslib_framework" = 'yes'; then
28100 PSDelegateDefault='gsc'
28102 PSDelegateDefault='gs'
28104 RLEEncodeDelegateDefault='rawtorle'
28105 RMDelegateDefault='rm'
28106 SCANDecodeDelegateDefault='scanimage'
28107 TXTDelegateDefault='enscript'
28108 WMFDecodeDelegateDefault='wmf2eps'
28109 WWWDecodeDelegateDefault='curl'
28110 XPSDelegateDefault='gxps'
28111 ZipDelegateDefault='gzip'
28113 # Search for delegates
28114 # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
28115 set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
28116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28117 $as_echo_n "checking for $ac_word... " >&6; }
28118 if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
28119 $as_echo_n "(cached) " >&6
28121 case $AutotraceDecodeDelegate in
28123 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
28126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28127 for as_dir in $PATH
28130 test -z "$as_dir" && as_dir=.
28131 for ac_exec_ext in '' $ac_executable_extensions; do
28132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28133 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28141 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
28145 AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
28146 if test -n "$AutotraceDecodeDelegate"; then
28147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
28148 $as_echo "$AutotraceDecodeDelegate" >&6; }
28150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28151 $as_echo "no" >&6; }
28155 # Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
28156 set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
28157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28158 $as_echo_n "checking for $ac_word... " >&6; }
28159 if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
28160 $as_echo_n "(cached) " >&6
28162 case $AVIDecodeDelegate in
28164 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
28167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28168 for as_dir in $PATH
28171 test -z "$as_dir" && as_dir=.
28172 for ac_exec_ext in '' $ac_executable_extensions; do
28173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28174 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28182 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
28186 AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
28187 if test -n "$AVIDecodeDelegate"; then
28188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
28189 $as_echo "$AVIDecodeDelegate" >&6; }
28191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28192 $as_echo "no" >&6; }
28196 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
28197 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
28198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28199 $as_echo_n "checking for $ac_word... " >&6; }
28200 if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
28201 $as_echo_n "(cached) " >&6
28203 case $BlenderDecodeDelegate in
28205 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
28208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28209 for as_dir in $PATH
28212 test -z "$as_dir" && as_dir=.
28213 for ac_exec_ext in '' $ac_executable_extensions; do
28214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28215 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28223 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
28227 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
28228 if test -n "$BlenderDecodeDelegate"; then
28229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
28230 $as_echo "$BlenderDecodeDelegate" >&6; }
28232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28233 $as_echo "no" >&6; }
28237 # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
28238 set dummy "$BZIPDelegateDefault"; ac_word=$2
28239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28240 $as_echo_n "checking for $ac_word... " >&6; }
28241 if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
28242 $as_echo_n "(cached) " >&6
28244 case $BZIPDelegate in
28246 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
28249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28250 for as_dir in $PATH
28253 test -z "$as_dir" && as_dir=.
28254 for ac_exec_ext in '' $ac_executable_extensions; do
28255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28256 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
28257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28264 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
28268 BZIPDelegate=$ac_cv_path_BZIPDelegate
28269 if test -n "$BZIPDelegate"; then
28270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
28271 $as_echo "$BZIPDelegate" >&6; }
28273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28274 $as_echo "no" >&6; }
28278 # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
28279 set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
28280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28281 $as_echo_n "checking for $ac_word... " >&6; }
28282 if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
28283 $as_echo_n "(cached) " >&6
28285 case $BrowseDelegate in
28287 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
28290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28291 for as_dir in $PATH
28294 test -z "$as_dir" && as_dir=.
28295 for ac_exec_ext in '' $ac_executable_extensions; do
28296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28297 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
28298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28305 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
28309 BrowseDelegate=$ac_cv_path_BrowseDelegate
28310 if test -n "$BrowseDelegate"; then
28311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
28312 $as_echo "$BrowseDelegate" >&6; }
28314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28315 $as_echo "no" >&6; }
28319 # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
28320 set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
28321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28322 $as_echo_n "checking for $ac_word... " >&6; }
28323 if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
28324 $as_echo_n "(cached) " >&6
28326 case $CGMDecodeDelegate in
28328 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
28331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28332 for as_dir in $PATH
28335 test -z "$as_dir" && as_dir=.
28336 for ac_exec_ext in '' $ac_executable_extensions; do
28337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28338 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28346 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
28350 CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
28351 if test -n "$CGMDecodeDelegate"; then
28352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
28353 $as_echo "$CGMDecodeDelegate" >&6; }
28355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28356 $as_echo "no" >&6; }
28360 # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
28361 set dummy "$CatDelegateDefault"; ac_word=$2
28362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28363 $as_echo_n "checking for $ac_word... " >&6; }
28364 if test "${ac_cv_path_CatDelegate+set}" = set; then :
28365 $as_echo_n "(cached) " >&6
28367 case $CatDelegate in
28369 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
28372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28373 for as_dir in $PATH
28376 test -z "$as_dir" && as_dir=.
28377 for ac_exec_ext in '' $ac_executable_extensions; do
28378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28379 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
28380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28387 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
28391 CatDelegate=$ac_cv_path_CatDelegate
28392 if test -n "$CatDelegate"; then
28393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
28394 $as_echo "$CatDelegate" >&6; }
28396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28397 $as_echo "no" >&6; }
28401 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
28402 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
28403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28404 $as_echo_n "checking for $ac_word... " >&6; }
28405 if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
28406 $as_echo_n "(cached) " >&6
28408 case $DNGDecodeDelegate in
28410 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
28413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28414 for as_dir in $PATH
28417 test -z "$as_dir" && as_dir=.
28418 for ac_exec_ext in '' $ac_executable_extensions; do
28419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28420 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28428 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
28432 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
28433 if test -n "$DNGDecodeDelegate"; then
28434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
28435 $as_echo "$DNGDecodeDelegate" >&6; }
28437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28438 $as_echo "no" >&6; }
28442 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
28443 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
28444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28445 $as_echo_n "checking for $ac_word... " >&6; }
28446 if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
28447 $as_echo_n "(cached) " >&6
28449 case $GVCDecodeDelegate in
28451 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
28454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28455 for as_dir in $PATH
28458 test -z "$as_dir" && as_dir=.
28459 for ac_exec_ext in '' $ac_executable_extensions; do
28460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28461 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28469 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
28473 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
28474 if test -n "$GVCDecodeDelegate"; then
28475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
28476 $as_echo "$GVCDecodeDelegate" >&6; }
28478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28479 $as_echo "no" >&6; }
28483 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
28484 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
28485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28486 $as_echo_n "checking for $ac_word... " >&6; }
28487 if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
28488 $as_echo_n "(cached) " >&6
28490 case $DVIDecodeDelegate in
28492 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
28495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28496 for as_dir in $PATH
28499 test -z "$as_dir" && as_dir=.
28500 for ac_exec_ext in '' $ac_executable_extensions; do
28501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28502 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28510 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
28514 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
28515 if test -n "$DVIDecodeDelegate"; then
28516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
28517 $as_echo "$DVIDecodeDelegate" >&6; }
28519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28520 $as_echo "no" >&6; }
28524 # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
28525 set dummy "$EchoDelegateDefault"; ac_word=$2
28526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28527 $as_echo_n "checking for $ac_word... " >&6; }
28528 if test "${ac_cv_path_EchoDelegate+set}" = set; then :
28529 $as_echo_n "(cached) " >&6
28531 case $EchoDelegate in
28533 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
28536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28537 for as_dir in $PATH
28540 test -z "$as_dir" && as_dir=.
28541 for ac_exec_ext in '' $ac_executable_extensions; do
28542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28543 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
28544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28551 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
28555 EchoDelegate=$ac_cv_path_EchoDelegate
28556 if test -n "$EchoDelegate"; then
28557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
28558 $as_echo "$EchoDelegate" >&6; }
28560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28561 $as_echo "no" >&6; }
28565 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
28566 set dummy "$EditorDelegateDefault"; ac_word=$2
28567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28568 $as_echo_n "checking for $ac_word... " >&6; }
28569 if test "${ac_cv_path_EditorDelegate+set}" = set; then :
28570 $as_echo_n "(cached) " >&6
28572 case $EditorDelegate in
28574 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
28577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28578 for as_dir in $PATH
28581 test -z "$as_dir" && as_dir=.
28582 for ac_exec_ext in '' $ac_executable_extensions; do
28583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28584 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
28585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28592 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
28596 EditorDelegate=$ac_cv_path_EditorDelegate
28597 if test -n "$EditorDelegate"; then
28598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
28599 $as_echo "$EditorDelegate" >&6; }
28601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28602 $as_echo "no" >&6; }
28606 # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
28607 set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
28608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28609 $as_echo_n "checking for $ac_word... " >&6; }
28610 if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
28611 $as_echo_n "(cached) " >&6
28613 case $FIGDecodeDelegate in
28615 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
28618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28619 for as_dir in $PATH
28622 test -z "$as_dir" && as_dir=.
28623 for ac_exec_ext in '' $ac_executable_extensions; do
28624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28625 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28633 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
28637 FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
28638 if test -n "$FIGDecodeDelegate"; then
28639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
28640 $as_echo "$FIGDecodeDelegate" >&6; }
28642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28643 $as_echo "no" >&6; }
28647 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
28648 set dummy "$ConvertDelegateDefault"; ac_word=$2
28649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28650 $as_echo_n "checking for $ac_word... " >&6; }
28651 if test "${ac_cv_path_ConvertDelegate+set}" = set; then :
28652 $as_echo_n "(cached) " >&6
28654 case $ConvertDelegate in
28656 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
28659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28660 for as_dir in $PATH
28663 test -z "$as_dir" && as_dir=.
28664 for ac_exec_ext in '' $ac_executable_extensions; do
28665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28666 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
28667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28674 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
28678 ConvertDelegate=$ac_cv_path_ConvertDelegate
28679 if test -n "$ConvertDelegate"; then
28680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
28681 $as_echo "$ConvertDelegate" >&6; }
28683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28684 $as_echo "no" >&6; }
28688 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
28689 set dummy "$DisplayDelegateDefault"; ac_word=$2
28690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28691 $as_echo_n "checking for $ac_word... " >&6; }
28692 if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
28693 $as_echo_n "(cached) " >&6
28695 case $DisplayDelegate in
28697 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
28700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28701 for as_dir in $PATH
28704 test -z "$as_dir" && as_dir=.
28705 for ac_exec_ext in '' $ac_executable_extensions; do
28706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28707 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
28708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28715 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
28719 DisplayDelegate=$ac_cv_path_DisplayDelegate
28720 if test -n "$DisplayDelegate"; then
28721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
28722 $as_echo "$DisplayDelegate" >&6; }
28724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28725 $as_echo "no" >&6; }
28729 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
28730 set dummy "$MogrifyDelegateDefault"; ac_word=$2
28731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28732 $as_echo_n "checking for $ac_word... " >&6; }
28733 if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
28734 $as_echo_n "(cached) " >&6
28736 case $MogrifyDelegate in
28738 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
28741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28742 for as_dir in $PATH
28745 test -z "$as_dir" && as_dir=.
28746 for ac_exec_ext in '' $ac_executable_extensions; do
28747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28748 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
28749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28756 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
28760 MogrifyDelegate=$ac_cv_path_MogrifyDelegate
28761 if test -n "$MogrifyDelegate"; then
28762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
28763 $as_echo "$MogrifyDelegate" >&6; }
28765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28766 $as_echo "no" >&6; }
28770 # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
28771 set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
28772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28773 $as_echo_n "checking for $ac_word... " >&6; }
28774 if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
28775 $as_echo_n "(cached) " >&6
28777 case $GnuplotDecodeDelegate in
28779 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
28782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28783 for as_dir in $PATH
28786 test -z "$as_dir" && as_dir=.
28787 for ac_exec_ext in '' $ac_executable_extensions; do
28788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28789 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28797 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
28801 GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
28802 if test -n "$GnuplotDecodeDelegate"; then
28803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
28804 $as_echo "$GnuplotDecodeDelegate" >&6; }
28806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28807 $as_echo "no" >&6; }
28811 # Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
28812 set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
28813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28814 $as_echo_n "checking for $ac_word... " >&6; }
28815 if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
28816 $as_echo_n "(cached) " >&6
28818 case $HDRDecodeDelegate in
28820 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
28823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28824 for as_dir in $PATH
28827 test -z "$as_dir" && as_dir=.
28828 for ac_exec_ext in '' $ac_executable_extensions; do
28829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28830 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28838 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
28842 HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
28843 if test -n "$HDRDecodeDelegate"; then
28844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
28845 $as_echo "$HDRDecodeDelegate" >&6; }
28847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28848 $as_echo "no" >&6; }
28852 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
28853 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
28854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28855 $as_echo_n "checking for $ac_word... " >&6; }
28856 if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
28857 $as_echo_n "(cached) " >&6
28859 case $HPGLDecodeDelegate in
28861 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
28864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28865 for as_dir in $PATH
28868 test -z "$as_dir" && as_dir=.
28869 for ac_exec_ext in '' $ac_executable_extensions; do
28870 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28871 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28879 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
28883 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
28884 if test -n "$HPGLDecodeDelegate"; then
28885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
28886 $as_echo "$HPGLDecodeDelegate" >&6; }
28888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28889 $as_echo "no" >&6; }
28893 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
28894 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
28895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28896 $as_echo_n "checking for $ac_word... " >&6; }
28897 if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
28898 $as_echo_n "(cached) " >&6
28900 case $HTMLDecodeDelegate in
28902 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
28905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28906 for as_dir in $PATH
28909 test -z "$as_dir" && as_dir=.
28910 for ac_exec_ext in '' $ac_executable_extensions; do
28911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28912 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28920 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
28924 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
28925 if test -n "$HTMLDecodeDelegate"; then
28926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
28927 $as_echo "$HTMLDecodeDelegate" >&6; }
28929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28930 $as_echo "no" >&6; }
28934 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
28935 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
28936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28937 $as_echo_n "checking for $ac_word... " >&6; }
28938 if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
28939 $as_echo_n "(cached) " >&6
28941 case $ILBMDecodeDelegate in
28943 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
28946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28947 for as_dir in $PATH
28950 test -z "$as_dir" && as_dir=.
28951 for ac_exec_ext in '' $ac_executable_extensions; do
28952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28953 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28961 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
28965 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
28966 if test -n "$ILBMDecodeDelegate"; then
28967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
28968 $as_echo "$ILBMDecodeDelegate" >&6; }
28970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28971 $as_echo "no" >&6; }
28975 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
28976 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
28977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28978 $as_echo_n "checking for $ac_word... " >&6; }
28979 if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
28980 $as_echo_n "(cached) " >&6
28982 case $ILBMEncodeDelegate in
28984 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
28987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28988 for as_dir in $PATH
28991 test -z "$as_dir" && as_dir=.
28992 for ac_exec_ext in '' $ac_executable_extensions; do
28993 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28994 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
28995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29002 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
29006 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
29007 if test -n "$ILBMEncodeDelegate"; then
29008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
29009 $as_echo "$ILBMEncodeDelegate" >&6; }
29011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29012 $as_echo "no" >&6; }
29016 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
29017 set dummy "$LPDelegateDefault"; ac_word=$2
29018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29019 $as_echo_n "checking for $ac_word... " >&6; }
29020 if test "${ac_cv_path_LPDelegate+set}" = set; then :
29021 $as_echo_n "(cached) " >&6
29023 case $LPDelegate in
29025 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
29028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29029 for as_dir in $PATH
29032 test -z "$as_dir" && as_dir=.
29033 for ac_exec_ext in '' $ac_executable_extensions; do
29034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29035 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
29036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29043 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
29047 LPDelegate=$ac_cv_path_LPDelegate
29048 if test -n "$LPDelegate"; then
29049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
29050 $as_echo "$LPDelegate" >&6; }
29052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29053 $as_echo "no" >&6; }
29057 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
29058 set dummy "$LPRDelegateDefault"; ac_word=$2
29059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29060 $as_echo_n "checking for $ac_word... " >&6; }
29061 if test "${ac_cv_path_LPRDelegate+set}" = set; then :
29062 $as_echo_n "(cached) " >&6
29064 case $LPRDelegate in
29066 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
29069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29070 for as_dir in $PATH
29073 test -z "$as_dir" && as_dir=.
29074 for ac_exec_ext in '' $ac_executable_extensions; do
29075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29076 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
29077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29084 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
29088 LPRDelegate=$ac_cv_path_LPRDelegate
29089 if test -n "$LPRDelegate"; then
29090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
29091 $as_echo "$LPRDelegate" >&6; }
29093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29094 $as_echo "no" >&6; }
29098 # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
29099 set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
29100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29101 $as_echo_n "checking for $ac_word... " >&6; }
29102 if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
29103 $as_echo_n "(cached) " >&6
29105 case $LZWDecodeDelegate in
29107 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
29110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29111 for as_dir in $PATH
29114 test -z "$as_dir" && as_dir=.
29115 for ac_exec_ext in '' $ac_executable_extensions; do
29116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29117 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29125 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
29129 LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
29130 if test -n "$LZWDecodeDelegate"; then
29131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
29132 $as_echo "$LZWDecodeDelegate" >&6; }
29134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29135 $as_echo "no" >&6; }
29139 # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
29140 set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
29141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29142 $as_echo_n "checking for $ac_word... " >&6; }
29143 if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
29144 $as_echo_n "(cached) " >&6
29146 case $LZWEncodeDelegate in
29148 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
29151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29152 for as_dir in $PATH
29155 test -z "$as_dir" && as_dir=.
29156 for ac_exec_ext in '' $ac_executable_extensions; do
29157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29158 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29166 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
29170 LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
29171 if test -n "$LZWEncodeDelegate"; then
29172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
29173 $as_echo "$LZWEncodeDelegate" >&6; }
29175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29176 $as_echo "no" >&6; }
29180 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
29181 set dummy "$LaunchDelegateDefault"; ac_word=$2
29182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29183 $as_echo_n "checking for $ac_word... " >&6; }
29184 if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
29185 $as_echo_n "(cached) " >&6
29187 case $LaunchDelegate in
29189 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
29192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29193 for as_dir in $PATH
29196 test -z "$as_dir" && as_dir=.
29197 for ac_exec_ext in '' $ac_executable_extensions; do
29198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29199 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
29200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29207 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
29211 LaunchDelegate=$ac_cv_path_LaunchDelegate
29212 if test -n "$LaunchDelegate"; then
29213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
29214 $as_echo "$LaunchDelegate" >&6; }
29216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29217 $as_echo "no" >&6; }
29221 # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
29222 set dummy "$MANDelegateDefault"; ac_word=$2
29223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29224 $as_echo_n "checking for $ac_word... " >&6; }
29225 if test "${ac_cv_path_MANDelegate+set}" = set; then :
29226 $as_echo_n "(cached) " >&6
29228 case $MANDelegate in
29230 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
29233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29234 for as_dir in $PATH
29237 test -z "$as_dir" && as_dir=.
29238 for ac_exec_ext in '' $ac_executable_extensions; do
29239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29240 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
29241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29248 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
29252 MANDelegate=$ac_cv_path_MANDelegate
29253 if test -n "$MANDelegate"; then
29254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
29255 $as_echo "$MANDelegate" >&6; }
29257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29258 $as_echo "no" >&6; }
29262 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
29263 set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
29264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29265 $as_echo_n "checking for $ac_word... " >&6; }
29266 if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
29267 $as_echo_n "(cached) " >&6
29269 case $MPEGDecodeDelegate in
29271 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
29274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29275 for as_dir in $PATH
29278 test -z "$as_dir" && as_dir=.
29279 for ac_exec_ext in '' $ac_executable_extensions; do
29280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29281 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29289 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
29293 MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
29294 if test -n "$MPEGDecodeDelegate"; then
29295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
29296 $as_echo "$MPEGDecodeDelegate" >&6; }
29298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29299 $as_echo "no" >&6; }
29303 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
29304 set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
29305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29306 $as_echo_n "checking for $ac_word... " >&6; }
29307 if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
29308 $as_echo_n "(cached) " >&6
29310 case $MPEGEncodeDelegate in
29312 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
29315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29316 for as_dir in $PATH
29319 test -z "$as_dir" && as_dir=.
29320 for ac_exec_ext in '' $ac_executable_extensions; do
29321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29322 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29330 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
29334 MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
29335 if test -n "$MPEGEncodeDelegate"; then
29336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
29337 $as_echo "$MPEGEncodeDelegate" >&6; }
29339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29340 $as_echo "no" >&6; }
29344 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
29345 set dummy "$MVDelegateDefault"; ac_word=$2
29346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29347 $as_echo_n "checking for $ac_word... " >&6; }
29348 if test "${ac_cv_path_MVDelegate+set}" = set; then :
29349 $as_echo_n "(cached) " >&6
29351 case $MVDelegate in
29353 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
29356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29357 for as_dir in $PATH
29360 test -z "$as_dir" && as_dir=.
29361 for ac_exec_ext in '' $ac_executable_extensions; do
29362 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29363 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
29364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29371 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
29375 MVDelegate=$ac_cv_path_MVDelegate
29376 if test -n "$MVDelegate"; then
29377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
29378 $as_echo "$MVDelegate" >&6; }
29380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29381 $as_echo "no" >&6; }
29385 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
29386 set dummy "$PCLDelegateDefault"; ac_word=$2
29387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29388 $as_echo_n "checking for $ac_word... " >&6; }
29389 if test "${ac_cv_path_PCLDelegate+set}" = set; then :
29390 $as_echo_n "(cached) " >&6
29392 case $PCLDelegate in
29394 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
29397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29398 for as_dir in $PATH
29401 test -z "$as_dir" && as_dir=.
29402 for ac_exec_ext in '' $ac_executable_extensions; do
29403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29404 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
29405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29412 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
29416 PCLDelegate=$ac_cv_path_PCLDelegate
29417 if test -n "$PCLDelegate"; then
29418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
29419 $as_echo "$PCLDelegate" >&6; }
29421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29422 $as_echo "no" >&6; }
29426 # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
29427 set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
29428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29429 $as_echo_n "checking for $ac_word... " >&6; }
29430 if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
29431 $as_echo_n "(cached) " >&6
29433 case $PGPDecodeDelegate in
29435 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
29438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29439 for as_dir in $PATH
29442 test -z "$as_dir" && as_dir=.
29443 for ac_exec_ext in '' $ac_executable_extensions; do
29444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29445 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29453 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
29457 PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
29458 if test -n "$PGPDecodeDelegate"; then
29459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
29460 $as_echo "$PGPDecodeDelegate" >&6; }
29462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29463 $as_echo "no" >&6; }
29467 # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
29468 set dummy "$POVDelegateDefault"; ac_word=$2
29469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29470 $as_echo_n "checking for $ac_word... " >&6; }
29471 if test "${ac_cv_path_POVDelegate+set}" = set; then :
29472 $as_echo_n "(cached) " >&6
29474 case $POVDelegate in
29476 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
29479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29480 for as_dir in $PATH
29483 test -z "$as_dir" && as_dir=.
29484 for ac_exec_ext in '' $ac_executable_extensions; do
29485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29486 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
29487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29494 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
29498 POVDelegate=$ac_cv_path_POVDelegate
29499 if test -n "$POVDelegate"; then
29500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
29501 $as_echo "$POVDelegate" >&6; }
29503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29504 $as_echo "no" >&6; }
29508 for ac_prog in gsx gsc "$PSDelegateDefault"
29510 # Extract the first word of "$ac_prog", so it can be a program name with args.
29511 set dummy $ac_prog; ac_word=$2
29512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29513 $as_echo_n "checking for $ac_word... " >&6; }
29514 if test "${ac_cv_path_PSDelegate+set}" = set; then :
29515 $as_echo_n "(cached) " >&6
29517 case $PSDelegate in
29519 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
29522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29523 for as_dir in $PATH
29526 test -z "$as_dir" && as_dir=.
29527 for ac_exec_ext in '' $ac_executable_extensions; do
29528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29529 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
29530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29540 PSDelegate=$ac_cv_path_PSDelegate
29541 if test -n "$PSDelegate"; then
29542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
29543 $as_echo "$PSDelegate" >&6; }
29545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29546 $as_echo "no" >&6; }
29550 test -n "$PSDelegate" && break
29552 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
29554 # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
29555 set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
29556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29557 $as_echo_n "checking for $ac_word... " >&6; }
29558 if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
29559 $as_echo_n "(cached) " >&6
29561 case $RLEEncodeDelegate in
29563 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
29566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29567 for as_dir in $PATH
29570 test -z "$as_dir" && as_dir=.
29571 for ac_exec_ext in '' $ac_executable_extensions; do
29572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29573 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29581 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
29585 RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
29586 if test -n "$RLEEncodeDelegate"; then
29587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
29588 $as_echo "$RLEEncodeDelegate" >&6; }
29590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29591 $as_echo "no" >&6; }
29595 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
29596 set dummy "$RMDelegateDefault"; ac_word=$2
29597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29598 $as_echo_n "checking for $ac_word... " >&6; }
29599 if test "${ac_cv_path_RMDelegate+set}" = set; then :
29600 $as_echo_n "(cached) " >&6
29602 case $RMDelegate in
29604 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
29607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29608 for as_dir in $PATH
29611 test -z "$as_dir" && as_dir=.
29612 for ac_exec_ext in '' $ac_executable_extensions; do
29613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29614 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
29615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29622 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
29626 RMDelegate=$ac_cv_path_RMDelegate
29627 if test -n "$RMDelegate"; then
29628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
29629 $as_echo "$RMDelegate" >&6; }
29631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29632 $as_echo "no" >&6; }
29636 # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
29637 set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
29638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29639 $as_echo_n "checking for $ac_word... " >&6; }
29640 if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
29641 $as_echo_n "(cached) " >&6
29643 case $SCANDecodeDelegate in
29645 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
29648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29649 for as_dir in $PATH
29652 test -z "$as_dir" && as_dir=.
29653 for ac_exec_ext in '' $ac_executable_extensions; do
29654 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29655 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29663 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
29667 SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
29668 if test -n "$SCANDecodeDelegate"; then
29669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
29670 $as_echo "$SCANDecodeDelegate" >&6; }
29672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29673 $as_echo "no" >&6; }
29677 # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
29678 set dummy "$TXTDelegateDefault"; ac_word=$2
29679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29680 $as_echo_n "checking for $ac_word... " >&6; }
29681 if test "${ac_cv_path_TXTDelegate+set}" = set; then :
29682 $as_echo_n "(cached) " >&6
29684 case $TXTDelegate in
29686 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
29689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29690 for as_dir in $PATH
29693 test -z "$as_dir" && as_dir=.
29694 for ac_exec_ext in '' $ac_executable_extensions; do
29695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29696 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
29697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29704 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
29708 TXTDelegate=$ac_cv_path_TXTDelegate
29709 if test -n "$TXTDelegate"; then
29710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
29711 $as_echo "$TXTDelegate" >&6; }
29713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29714 $as_echo "no" >&6; }
29718 # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
29719 set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
29720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29721 $as_echo_n "checking for $ac_word... " >&6; }
29722 if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
29723 $as_echo_n "(cached) " >&6
29725 case $WMFDecodeDelegate in
29727 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
29730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29731 for as_dir in $PATH
29734 test -z "$as_dir" && as_dir=.
29735 for ac_exec_ext in '' $ac_executable_extensions; do
29736 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29737 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29745 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
29749 WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
29750 if test -n "$WMFDecodeDelegate"; then
29751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
29752 $as_echo "$WMFDecodeDelegate" >&6; }
29754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29755 $as_echo "no" >&6; }
29759 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
29760 set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
29761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29762 $as_echo_n "checking for $ac_word... " >&6; }
29763 if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
29764 $as_echo_n "(cached) " >&6
29766 case $WWWDecodeDelegate in
29768 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
29771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29772 for as_dir in $PATH
29775 test -z "$as_dir" && as_dir=.
29776 for ac_exec_ext in '' $ac_executable_extensions; do
29777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29778 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29786 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
29790 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
29791 if test -n "$WWWDecodeDelegate"; then
29792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
29793 $as_echo "$WWWDecodeDelegate" >&6; }
29795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29796 $as_echo "no" >&6; }
29800 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
29801 set dummy "$XPSDelegateDefault"; ac_word=$2
29802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29803 $as_echo_n "checking for $ac_word... " >&6; }
29804 if test "${ac_cv_path_XPSDelegate+set}" = set; then :
29805 $as_echo_n "(cached) " >&6
29807 case $XPSDelegate in
29809 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
29812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29813 for as_dir in $PATH
29816 test -z "$as_dir" && as_dir=.
29817 for ac_exec_ext in '' $ac_executable_extensions; do
29818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29819 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
29820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29827 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
29831 XPSDelegate=$ac_cv_path_XPSDelegate
29832 if test -n "$XPSDelegate"; then
29833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
29834 $as_echo "$XPSDelegate" >&6; }
29836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29837 $as_echo "no" >&6; }
29841 # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
29842 set dummy "$ZipDelegateDefault"; ac_word=$2
29843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29844 $as_echo_n "checking for $ac_word... " >&6; }
29845 if test "${ac_cv_path_ZipDelegate+set}" = set; then :
29846 $as_echo_n "(cached) " >&6
29848 case $ZipDelegate in
29850 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
29853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29854 for as_dir in $PATH
29857 test -z "$as_dir" && as_dir=.
29858 for ac_exec_ext in '' $ac_executable_extensions; do
29859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29860 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
29861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29868 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
29872 ZipDelegate=$ac_cv_path_ZipDelegate
29873 if test -n "$ZipDelegate"; then
29874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
29875 $as_echo "$ZipDelegate" >&6; }
29877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29878 $as_echo "no" >&6; }
29883 # Prefer lpr to lp; lp needs options tacked on.
29884 if test "$LPRDelegate" != no; then
29885 PrintDelegate="$LPRDelegate"
29887 PrintDelegate="$LPDelegate -c -s"
29891 # Installed ImageMagick utiltity paths
29892 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
29893 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
29894 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
29896 # Set delegate booleans
29897 have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
29898 have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
29899 have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
29900 have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
29901 have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
29902 have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
29903 have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
29904 have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
29905 have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
29906 have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
29907 have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
29910 # Test for font directories
29912 type_include_files=''
29915 windows_font_dir=''
29916 if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
29917 windows_font_dir="${with_windows_font_dir}/"
29919 if test -n "$windows_font_dir"; then
29920 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
29921 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
29923 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
29924 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
29926 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
29927 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
29930 if test -n "$windows_font_dir"; then
29931 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
29936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
29937 $as_echo_n "checking for Ghostscript fonts directory... " >&6; }
29938 ghostscript_font_dir=''
29939 if test "${with_gs_font_dir}" != 'default'; then
29940 ghostscript_font_dir="${with_gs_font_dir}/"
29942 if test "${native_win32_build}" = 'yes'; then
29943 # Native Windows Build
29944 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
29945 if test -f "${font_dir}a010013l.pfb"; then
29946 ghostscript_font_dir="$font_dir"
29950 if test "${PSDelegate}" != 'gswin32c'; then
29951 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
29954 # Linux / Mac OS X / Unix Build
29955 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
29956 if test -f "${font_dir}a010013l.pfb"; then
29957 ghostscript_font_dir="${font_dir}"
29961 if test "${ghostscript_font_dir}x" = 'x'; then
29962 if test "$PSDelegate" != 'gs'; then
29963 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
29968 if test "${ghostscript_font_dir}x" != 'x'; then
29969 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
29970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
29971 $as_echo "$ghostscript_font_dir" >&6; }
29973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
29974 $as_echo "not found!" >&6; };
29977 case "${build_os}" in
29979 PSDelegate=`$WinPathScript "$PSDelegate" 1`
29986 # Handle case where user doesn't want frozen paths
29988 if test "$with_frozenpaths" != 'yes'; then
29989 # Re-set delegate definitions to default (no paths)
29990 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
29991 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
29992 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
29993 BZIPDelegate="$BZIPDelegateDefault"
29994 BrowseDelegate="$BrowseDelegateDefault"
29995 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
29996 CatDelegate="$CatDelegateDefault"
29997 ConvertDelegate="$ConvertDelegateDefault"
29998 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
29999 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
30000 EchoDelegate="$EchoDelegateDefault"
30001 EditorDelegate="$EditorDelegateDefault"
30002 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
30003 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
30004 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
30005 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
30006 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
30007 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
30008 LPDelegate="$LPDelegateDefault"
30009 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
30010 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
30011 LaunchDelegate="$LaunchDelegateDefault"
30012 MANDelegate="$MANDelegateDefault"
30013 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
30014 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
30015 MVDelegate="$MVDelegateDefault"
30016 MogrifyDelegate="$MogrifyDelegateDefault"
30017 PCLDelegate="$PCLDelegateDefault"
30018 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
30019 POVDelegate="$POVDelegateDefault"
30020 PSDelegate="$PSDelegateDefault"
30021 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
30022 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
30023 RMDelegate="$RMDelegateDefault"
30024 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
30025 ShowImageDelegate="$ShowImageDelegateDefault"
30026 TXTDelegate="$TXTDelegateDefault"
30027 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
30028 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
30029 XPSDelegate="$XPSDelegateDefault"
30030 ZipDelegate="$ZipDelegateDefault"
30033 # Delegate substitutions
30080 for ac_prog in gnutar gtar tar
30082 # Extract the first word of "$ac_prog", so it can be a program name with args.
30083 set dummy $ac_prog; ac_word=$2
30084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30085 $as_echo_n "checking for $ac_word... " >&6; }
30086 if test "${ac_cv_prog_TAR+set}" = set; then :
30087 $as_echo_n "(cached) " >&6
30089 if test -n "$TAR"; then
30090 ac_cv_prog_TAR="$TAR" # Let the user override the test.
30092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30093 for as_dir in $PATH
30096 test -z "$as_dir" && as_dir=.
30097 for ac_exec_ext in '' $ac_executable_extensions; do
30098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30099 ac_cv_prog_TAR="$ac_prog"
30100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30109 TAR=$ac_cv_prog_TAR
30110 if test -n "$TAR"; then
30111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
30112 $as_echo "$TAR" >&6; }
30114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30115 $as_echo "no" >&6; }
30119 test -n "$TAR" && break
30122 for ac_prog in perl
30124 # Extract the first word of "$ac_prog", so it can be a program name with args.
30125 set dummy $ac_prog; ac_word=$2
30126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30127 $as_echo_n "checking for $ac_word... " >&6; }
30128 if test "${ac_cv_prog_PERL+set}" = set; then :
30129 $as_echo_n "(cached) " >&6
30131 if test -n "$PERL"; then
30132 ac_cv_prog_PERL="$PERL" # Let the user override the test.
30134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30135 for as_dir in $PATH
30138 test -z "$as_dir" && as_dir=.
30139 for ac_exec_ext in '' $ac_executable_extensions; do
30140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30141 ac_cv_prog_PERL="$ac_prog"
30142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30151 PERL=$ac_cv_prog_PERL
30152 if test -n "$PERL"; then
30153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
30154 $as_echo "$PERL" >&6; }
30156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30157 $as_echo "no" >&6; }
30161 test -n "$PERL" && break
30164 for ac_prog in rpmbuild rpm
30166 # Extract the first word of "$ac_prog", so it can be a program name with args.
30167 set dummy $ac_prog; ac_word=$2
30168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30169 $as_echo_n "checking for $ac_word... " >&6; }
30170 if test "${ac_cv_prog_RPM+set}" = set; then :
30171 $as_echo_n "(cached) " >&6
30173 if test -n "$RPM"; then
30174 ac_cv_prog_RPM="$RPM" # Let the user override the test.
30176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30177 for as_dir in $PATH
30180 test -z "$as_dir" && as_dir=.
30181 for ac_exec_ext in '' $ac_executable_extensions; do
30182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30183 ac_cv_prog_RPM="$ac_prog"
30184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30193 RPM=$ac_cv_prog_RPM
30194 if test -n "$RPM"; then
30195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
30196 $as_echo "$RPM" >&6; }
30198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30199 $as_echo "no" >&6; }
30203 test -n "$RPM" && break
30207 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
30210 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
30213 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
30216 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
30219 if test "x$RPM" != "x" ; then
30221 RPM_DELEGATE_FALSE='#'
30223 RPM_DELEGATE_TRUE='#'
30224 RPM_DELEGATE_FALSE=
30229 # 7ZIP support (http://p7zip.sourceforge.net/)
30234 # Extract the first word of "$ac_prog", so it can be a program name with args.
30235 set dummy $ac_prog; ac_word=$2
30236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30237 $as_echo_n "checking for $ac_word... " >&6; }
30238 if test "${ac_cv_prog_P7ZIP+set}" = set; then :
30239 $as_echo_n "(cached) " >&6
30241 if test -n "$P7ZIP"; then
30242 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
30244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30245 for as_dir in $PATH
30248 test -z "$as_dir" && as_dir=.
30249 for ac_exec_ext in '' $ac_executable_extensions; do
30250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30251 ac_cv_prog_P7ZIP="$ac_prog"
30252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30261 P7ZIP=$ac_cv_prog_P7ZIP
30262 if test -n "$P7ZIP"; then
30263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
30264 $as_echo "$P7ZIP" >&6; }
30266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30267 $as_echo "no" >&6; }
30271 test -n "$P7ZIP" && break
30275 if test "x$P7ZIP" != "x" ; then
30276 P7ZIP_DELEGATE_TRUE=
30277 P7ZIP_DELEGATE_FALSE='#'
30279 P7ZIP_DELEGATE_TRUE='#'
30280 P7ZIP_DELEGATE_FALSE=
30285 # ZIP support (http://www.info-zip.org/Zip.html)
30290 # Extract the first word of "$ac_prog", so it can be a program name with args.
30291 set dummy $ac_prog; ac_word=$2
30292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30293 $as_echo_n "checking for $ac_word... " >&6; }
30294 if test "${ac_cv_prog_ZIP+set}" = set; then :
30295 $as_echo_n "(cached) " >&6
30297 if test -n "$ZIP"; then
30298 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
30300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30301 for as_dir in $PATH
30304 test -z "$as_dir" && as_dir=.
30305 for ac_exec_ext in '' $ac_executable_extensions; do
30306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30307 ac_cv_prog_ZIP="$ac_prog"
30308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30317 ZIP=$ac_cv_prog_ZIP
30318 if test -n "$ZIP"; then
30319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
30320 $as_echo "$ZIP" >&6; }
30322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30323 $as_echo "no" >&6; }
30327 test -n "$ZIP" && break
30331 if test "x$ZIP" != "x" ; then
30333 ZIP_DELEGATE_FALSE='#'
30335 ZIP_DELEGATE_TRUE='#'
30336 ZIP_DELEGATE_FALSE=
30341 # GhostPCL related configuration.
30343 PCLColorDevice=ppmraw
30344 PCLCMYKDevice=bmpsep8
30345 PCLMonoDevice=pbmraw
30346 if test -z "$PCLVersion"; then
30347 PCLVersion='unknown'
30349 if test $have_pcl = 'yes'; then
30350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30351 $as_echo "-------------------------------------------------------------" >&6; }
30352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
30353 $as_echo_n "checking for PCL... " >&6; }
30354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
30358 $as_echo_n "checking for pcl color device... " >&6; }
30359 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30362 PCLColorDevice=ppmraw
30364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
30365 $as_echo "$PCLColorDevice" >&6; }
30368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
30369 $as_echo_n "checking for pcl CMYK device... " >&6; }
30370 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30373 PCLCMYKDevice=$PCLColorDevice
30375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
30376 $as_echo "$PCLCMYKDevice" >&6; }
30379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
30380 $as_echo_n "checking for pcl mono device... " >&6; }
30381 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30384 PCLMonoDevice=$PCLColorDevice
30386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
30387 $as_echo "$PCLMonoDevice" >&6; }
30396 # GhostXPS related configuration.
30398 XPSColorDevice=ppmraw
30399 XPSCMYKDevice=bmpsep8
30400 XPSMonoDevice=pbmraw
30401 if test -z "$XPSVersion"; then
30402 XPSVersion='unknown'
30404 if test $have_xps = 'yes'; then
30405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30406 $as_echo "-------------------------------------------------------------" >&6; }
30407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
30408 $as_echo_n "checking for XPS... " >&6; }
30409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
30413 $as_echo_n "checking for xps color device... " >&6; }
30414 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30417 XPSColorDevice=ppmraw
30419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
30420 $as_echo "$XPSColorDevice" >&6; }
30423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
30424 $as_echo_n "checking for xps CMYK device... " >&6; }
30425 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30428 XPSCMYKDevice=$XPSColorDevice
30430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
30431 $as_echo "$XPSCMYKDevice" >&6; }
30434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
30435 $as_echo_n "checking for xps mono device... " >&6; }
30436 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30439 XPSMonoDevice=$XPSColorDevice
30441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
30442 $as_echo "$XPSMonoDevice" >&6; }
30451 # Ghostscript related configuration.
30453 if test "$have_png" = 'yes'; then
30454 GSAlphaDevice=pngalpha
30456 GSAlphaDevice=pnmraw
30458 GSColorDevice=pnmraw
30460 GSMonoDevice=pbmraw
30461 GSPDFDevice=pdfwrite
30463 GSEPSDevice=epswrite
30464 GSVersion='unknown'
30465 if test $have_gs = 'yes'; then
30466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30467 $as_echo "-------------------------------------------------------------" >&6; }
30468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
30469 $as_echo_n "checking for Ghostscript... " >&6; }
30470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
30473 $as_echo_n "checking for Ghostscript version... " >&6; }
30474 if GSVersion=`$PSDelegate --version`; then
30477 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
30479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
30480 $as_echo "$GSVersion" >&6; }
30483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
30484 $as_echo_n "checking for gs alpha device... " >&6; }
30485 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30488 GSAlphaDevice=pnmraw
30490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
30491 $as_echo "$GSAlphaDevice" >&6; }
30494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
30495 $as_echo_n "checking for gs color device... " >&6; }
30496 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30499 GSColorDevice=pnmraw
30501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
30502 $as_echo "$GSColorDevice" >&6; }
30505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
30506 $as_echo_n "checking for gs CMYK device... " >&6; }
30507 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30510 GSCMYKDevice=bmpsep8
30512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
30513 $as_echo "$GSCMYKDevice" >&6; }
30516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
30517 $as_echo_n "checking for gs mono device... " >&6; }
30518 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30521 GSMonoDevice=$GSColorDevice
30523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
30524 $as_echo "$GSMonoDevice" >&6; }
30527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
30528 $as_echo_n "checking for gs PDF writing device... " >&6; }
30529 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30532 GSPDFDevice=nodevice
30534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
30535 $as_echo "$GSPDFDevice" >&6; }
30538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
30539 $as_echo_n "checking for gs PS writing device... " >&6; }
30540 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30543 GSPSDevice=nodevice
30545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
30546 $as_echo "$GSPSDevice" >&6; }
30549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
30550 $as_echo_n "checking for gs EPS writing device... " >&6; }
30551 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
30554 GSEPSDevice=nodevice
30556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
30557 $as_echo "$GSEPSDevice" >&6; }
30570 # PerlMagick-related configuration
30573 # Look for PERL if PerlMagick requested
30574 # If name/path of desired PERL interpreter is specified, look for that one first
30576 if test "$with_perl" != 'no'; then
30577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30578 $as_echo "-------------------------------------------------------------" >&6; }
30579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
30580 $as_echo_n "checking for Perl... " >&6; }
30581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30583 if test "$with_perl" != 'yes'; then
30584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
30585 $as_echo_n "checking for perl... " >&6; }
30586 if test "${ac_cv_path_PERL+set}" = set; then :
30587 $as_echo_n "(cached) " >&6
30589 ac_cv_path_PERL="$with_perl"
30591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
30592 $as_echo "$ac_cv_path_PERL" >&6; };
30593 PERL=$ac_cv_path_PERL
30594 have_perl="$ac_cv_path_PERL"
30596 for ac_prog in perl perl5
30598 # Extract the first word of "$ac_prog", so it can be a program name with args.
30599 set dummy $ac_prog; ac_word=$2
30600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30601 $as_echo_n "checking for $ac_word... " >&6; }
30602 if test "${ac_cv_path_PERL+set}" = set; then :
30603 $as_echo_n "(cached) " >&6
30607 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
30610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30611 for as_dir in $PATH
30614 test -z "$as_dir" && as_dir=.
30615 for ac_exec_ext in '' $ac_executable_extensions; do
30616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30617 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
30618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30628 PERL=$ac_cv_path_PERL
30629 if test -n "$PERL"; then
30630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
30631 $as_echo "$PERL" >&6; }
30633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30634 $as_echo "no" >&6; }
30638 test -n "$PERL" && break
30640 if test "$ac_cv_path_PERL"; then
30641 have_perl="$ac_cv_path_PERL"
30646 with_perl_static='no'
30647 with_perl_dynamic='no'
30648 if test "$have_perl" != 'no'; then
30649 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
30650 with_perl_static='yes'
30652 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
30653 with_perl_dynamic='yes'
30655 # Is PERL's MakeMaker new enough to support DESTDIR?
30656 # Make sure we have perl
30657 if test -z "$PERL"; then
30658 # Extract the first word of "perl", so it can be a program name with args.
30659 set dummy perl; ac_word=$2
30660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30661 $as_echo_n "checking for $ac_word... " >&6; }
30662 if test "${ac_cv_prog_PERL+set}" = set; then :
30663 $as_echo_n "(cached) " >&6
30665 if test -n "$PERL"; then
30666 ac_cv_prog_PERL="$PERL" # Let the user override the test.
30668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30669 for as_dir in $PATH
30672 test -z "$as_dir" && as_dir=.
30673 for ac_exec_ext in '' $ac_executable_extensions; do
30674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30675 ac_cv_prog_PERL="perl"
30676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30685 PERL=$ac_cv_prog_PERL
30686 if test -n "$PERL"; then
30687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
30688 $as_echo "$PERL" >&6; }
30690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30691 $as_echo "no" >&6; }
30697 # Check if version of Perl is sufficient
30698 ac_perl_version="5.8.1"
30700 if test "x$PERL" != "x"; then
30701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version greater than or equal to $ac_perl_version" >&5
30702 $as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
30703 # NB: It would be nice to log the error if there is one, but we cannot rely
30704 # on autoconf internals
30705 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
30706 if test $? -ne 0; then
30707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30708 $as_echo "no" >&6; };
30709 PERL_SUPPORTS_DESTDIR='no'
30711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
30712 $as_echo "ok" >&6; };
30713 PERL_SUPPORTS_DESTDIR='yes'
30716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find perl" >&5
30717 $as_echo "$as_me: WARNING: could not find perl" >&2;}
30721 if test "$have_perl" != 'no'; then
30723 WITH_PERL_FALSE='#'
30729 if test $with_perl_static = 'yes'; then
30730 WITH_PERL_STATIC_TRUE=
30731 WITH_PERL_STATIC_FALSE='#'
30733 WITH_PERL_STATIC_TRUE='#'
30734 WITH_PERL_STATIC_FALSE=
30737 if test $with_perl_dynamic = 'yes'; then
30738 WITH_PERL_DYNAMIC_TRUE=
30739 WITH_PERL_DYNAMIC_FALSE='#'
30741 WITH_PERL_DYNAMIC_TRUE='#'
30742 WITH_PERL_DYNAMIC_FALSE=
30747 # Determine path to pick up MagickCore library from for use with building PerlMagick
30748 MAGICKCORE_PATH="${LIB_DIR}"
30749 if test $with_perl_static = 'yes'; then
30750 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
30751 libtool_objdir=$objdir
30753 # Linker search path to library, followed by -lMagickCore
30754 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
30758 # Create a simple string containing format names for all delegate libraries
30760 if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
30761 if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
30762 if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
30763 if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
30764 if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
30765 if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
30766 if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
30767 if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
30768 if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
30769 if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
30770 if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
30771 if test "$have_jpeg" = 'yes'; then
30772 DELEGATES="$DELEGATES jpeg";
30773 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
30775 if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
30776 if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
30777 if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
30778 if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
30779 if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
30780 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
30781 if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
30782 if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
30783 if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
30784 if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
30785 if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
30786 if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
30791 # Handle special compiler flags
30794 # Add '-p' if prof source profiling support enabled
30795 if test "$enable_prof" = 'yes'; then
30796 CFLAGS="-p $CFLAGS"
30797 CXXFLAGS="-p $CXXFLAGS"
30798 LDFLAGS="-p $LDFLAGS"
30801 # Add '-pg' if gprof source profiling support enabled
30802 if test "$enable_gprof" = 'yes'; then
30803 CFLAGS="-pg $CFLAGS"
30804 CXXFLAGS="-pg $CXXFLAGS"
30805 LDFLAGS="-pg $LDFLAGS"
30808 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
30809 # This is a gcc-specific feature
30810 if test "$enable_gcov" = 'yes'; then
30811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
30812 $as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
30813 if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
30814 $as_echo_n "(cached) " >&6
30816 ac_check_lib_save_LIBS=$LIBS
30817 LIBS="-lgcov $LIBS"
30818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30819 /* end confdefs.h. */
30821 /* Override any GCC internal prototype to avoid an error.
30822 Use char because int might match the return type of a GCC
30823 builtin and then its argument prototype would still apply. */
30827 char _gcov_init ();
30831 return _gcov_init ();
30836 if ac_fn_c_try_link "$LINENO"; then :
30837 ac_cv_lib_gcov__gcov_init=yes
30839 ac_cv_lib_gcov__gcov_init=no
30841 rm -f core conftest.err conftest.$ac_objext \
30842 conftest$ac_exeext conftest.$ac_ext
30843 LIBS=$ac_check_lib_save_LIBS
30845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
30846 $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
30847 if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
30848 cat >>confdefs.h <<_ACEOF
30849 #define HAVE_LIBGCOV 1
30852 LIBS="-lgcov $LIBS"
30856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
30857 $as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
30858 if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
30859 $as_echo_n "(cached) " >&6
30861 ac_check_lib_save_LIBS=$LIBS
30862 LIBS="-lgcov $LIBS"
30863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30864 /* end confdefs.h. */
30866 /* Override any GCC internal prototype to avoid an error.
30867 Use char because int might match the return type of a GCC
30868 builtin and then its argument prototype would still apply. */
30872 char __gcov_init ();
30876 return __gcov_init ();
30881 if ac_fn_c_try_link "$LINENO"; then :
30882 ac_cv_lib_gcov___gcov_init=yes
30884 ac_cv_lib_gcov___gcov_init=no
30886 rm -f core conftest.err conftest.$ac_objext \
30887 conftest$ac_exeext conftest.$ac_ext
30888 LIBS=$ac_check_lib_save_LIBS
30890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
30891 $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
30892 if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
30893 cat >>confdefs.h <<_ACEOF
30894 #define HAVE_LIBGCOV 1
30897 LIBS="-lgcov $LIBS"
30901 case "$target_os" in
30903 OSX_GCOV_LDFLAG="-Wl,-single_module"
30910 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
30911 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
30912 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
30916 # Build library dependency list for libMagickCore
30919 MAGICK_LIBLTDL='' # Libltdl for build
30920 MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
30921 MAGICK_LTDLDEPS='' # extra libltdl dependencies
30922 if test "$with_ltdl" != 'no'
30924 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
30925 MAGICK_API_LIBLTDL='-lltdl'
30927 MAGICK_LIBLTDL=${LIBLTDL}
30928 MAGICK_LTDLDEPS=${LTDLDEPS}
30933 if test "$with_modules" != 'no'; then
30934 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"
30936 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"
30941 # Remove extraneous spaces from output variables (asthetic)
30943 X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
30944 X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
30945 X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
30946 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
30948 CC=`echo $CC | sed -e 's/ */ /g'`
30949 CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
30950 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
30951 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
30952 DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
30953 DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
30954 LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
30955 TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
30956 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
30957 #LIBS=`echo $LIBS | sed -e 's/ */ /g'`
30959 # Pass only user-provided LIBS as "global" libraries
30962 #AC_SUBST(CPPFLAGS)
30965 #AC_SUBST(X_PRE_LIBS)
30967 #AC_SUBST(X_EXTRA_LIBS)
30969 MAGICK_CFLAGS=$CFLAGS
30970 MAGICK_CXXFLAGS="$CXXFLAGS"
30971 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
30972 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
30973 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
30974 MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
30983 # Set configured scripts to executable.
30984 ac_config_commands="$ac_config_commands default"
30986 ac_config_commands="$ac_config_commands MagickCore-config.in"
30988 ac_config_commands="$ac_config_commands Magick-config.in"
30990 ac_config_commands="$ac_config_commands MagickWand-config.in"
30992 ac_config_commands="$ac_config_commands Wand-config.in"
30994 ac_config_commands="$ac_config_commands Magick++-config.in"
30996 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
30999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31000 $as_echo "-------------------------------------------------------------" >&6; }
31001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
31002 $as_echo "Update ImageMagick configuration" >&6; }
31003 cat >confcache <<\_ACEOF
31004 # This file is a shell script that caches the results of configure
31005 # tests run on this system so they can be shared between configure
31006 # scripts and configure runs, see configure's option --config-cache.
31007 # It is not useful on other systems. If it contains results you don't
31008 # want to keep, you may remove or edit it.
31010 # config.status only pays attention to the cache file if you give it
31011 # the --recheck option to rerun configure.
31013 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31014 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31015 # following values.
31019 # The following way of writing the cache mishandles newlines in values,
31020 # but we know of no workaround that is simple, portable, and efficient.
31021 # So, we kill variables containing newlines.
31022 # Ultrix sh set writes to stderr and can't be redirected directly,
31023 # and sets the high bit in the cache file unless we assign to the vars.
31025 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31026 eval ac_val=\$$ac_var
31030 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31031 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31034 _ | IFS | as_nl) ;; #(
31035 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31036 *) { eval $ac_var=; unset $ac_var;} ;;
31042 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31043 *${as_nl}ac_space=\ *)
31044 # `set' does not quote correctly, so add quotes: double-quote
31045 # substitution turns \\\\ into \\, and sed turns \\ into \.
31048 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31051 # `set' quotes correctly as required by POSIX, so do not add quotes.
31052 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31061 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31063 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31065 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31066 if test -w "$cache_file"; then
31067 test "x$cache_file" != "x/dev/null" &&
31068 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31069 $as_echo "$as_me: updating cache $cache_file" >&6;}
31070 cat confcache >$cache_file
31072 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31073 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31078 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31079 # Let make expand exec_prefix.
31080 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31082 DEFS=-DHAVE_CONFIG_H
31086 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31087 # 1. Remove the extension, and $U if already installed.
31088 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31089 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31090 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31091 # will be set to the directory where LIBOBJS objects are built.
31092 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31093 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31095 LIBOBJS=$ac_libobjs
31097 LTLIBOBJS=$ac_ltlibobjs
31100 if test -n "$EXEEXT"; then
31102 am__EXEEXT_FALSE='#'
31104 am__EXEEXT_TRUE='#'
31108 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31109 as_fn_error "conditional \"AMDEP\" was never defined.
31110 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31112 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31113 as_fn_error "conditional \"am__fastdepCC\" was never defined.
31114 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31116 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31117 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31118 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31120 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
31121 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
31122 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31124 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
31125 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
31126 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31128 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
31129 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
31130 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31132 if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
31133 as_fn_error "conditional \"USING_CL\" was never defined.
31134 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31136 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31137 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31138 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31140 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
31141 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
31142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31144 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
31145 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
31146 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31148 LT_CONFIG_H=config/config.h
31152 if test -n "$_LT_LIBOBJS"; then
31153 # Remove the extension.
31154 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
31155 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
31156 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
31157 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
31160 ltdl_LIBOBJS=$_ltdl_libobjs
31162 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
31165 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
31166 as_fn_error "conditional \"WITH_MODULES\" was never defined.
31167 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31169 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
31170 as_fn_error "conditional \"WITH_LTDL\" was never defined.
31171 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31173 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
31174 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
31175 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31178 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31179 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
31180 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31182 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
31183 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
31184 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31186 if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
31187 as_fn_error "conditional \"HasUMEM\" was never defined.
31188 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31190 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
31191 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
31192 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31194 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
31195 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
31196 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31198 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
31199 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
31200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31202 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
31203 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
31204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31206 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
31207 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
31208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31210 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
31211 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
31212 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31214 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
31215 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
31216 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31218 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
31219 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
31220 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31222 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
31223 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
31224 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31226 if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
31227 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
31228 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31230 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
31231 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
31232 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31234 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
31235 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
31236 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31238 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
31239 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
31240 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31242 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
31243 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
31244 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31246 if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
31247 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
31248 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31250 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
31251 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
31252 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31254 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
31255 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
31256 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31258 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
31259 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
31260 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31262 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
31263 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
31264 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31266 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
31267 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
31268 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31270 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
31271 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
31272 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31274 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
31275 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
31276 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31278 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
31279 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
31280 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31282 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
31283 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
31284 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31286 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
31287 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
31288 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31290 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
31291 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
31292 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31294 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
31295 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
31296 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31298 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
31299 as_fn_error "conditional \"WITH_PERL\" was never defined.
31300 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31302 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
31303 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
31304 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31306 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
31307 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
31308 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31311 : ${CONFIG_STATUS=./config.status}
31313 ac_clean_files_save=$ac_clean_files
31314 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31315 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31316 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31318 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31320 # Generated by $as_me.
31321 # Run this file to recreate the current configuration.
31322 # Compiler output produced by configure, useful for debugging
31323 # configure, is in config.log if it exists.
31326 ac_cs_recheck=false
31329 SHELL=\${CONFIG_SHELL-$SHELL}
31332 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31333 ## -------------------- ##
31334 ## M4sh Initialization. ##
31335 ## -------------------- ##
31337 # Be more Bourne compatible
31338 DUALCASE=1; export DUALCASE # for MKS sh
31339 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31342 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31343 # is contrary to our usage. Disable this feature.
31344 alias -g '${1+"$@"}'='"$@"'
31345 setopt NO_GLOB_SUBST
31347 case `(set -o) 2>/dev/null` in #(
31359 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31360 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31361 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31362 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31363 # Prefer a ksh shell builtin over an external printf program on Solaris,
31364 # but without wasting forks for bash or zsh.
31365 if test -z "$BASH_VERSION$ZSH_VERSION" \
31366 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31367 as_echo='print -r --'
31368 as_echo_n='print -rn --'
31369 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31370 as_echo='printf %s\n'
31371 as_echo_n='printf %s'
31373 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31374 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31375 as_echo_n='/usr/ucb/echo -n'
31377 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31378 as_echo_n_body='eval
31382 expr "X$arg" : "X\\(.*\\)$as_nl";
31383 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31385 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31387 export as_echo_n_body
31388 as_echo_n='sh -c $as_echo_n_body as_echo'
31390 export as_echo_body
31391 as_echo='sh -c $as_echo_body as_echo'
31394 # The user is always right.
31395 if test "${PATH_SEPARATOR+set}" != set; then
31397 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31398 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31405 # We need space, tab and new line, in precisely that order. Quoting is
31406 # there to prevent editors from complaining about space-tab.
31407 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31408 # splitting by setting IFS to empty value.)
31411 # Find who we are. Look in the path if we contain no directory separator.
31413 *[\\/]* ) as_myself=$0 ;;
31414 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31415 for as_dir in $PATH
31418 test -z "$as_dir" && as_dir=.
31419 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31425 # We did not find ourselves, most probably we were run as `sh COMMAND'
31426 # in which case we are not to be found in the path.
31427 if test "x$as_myself" = x; then
31430 if test ! -f "$as_myself"; then
31431 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31435 # Unset variables that we do not need and which cause bugs (e.g. in
31436 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31437 # suppresses any "Segmentation fault" message there. '((' could
31438 # trigger a bug in pdksh 5.2.14.
31439 for as_var in BASH_ENV ENV MAIL MAILPATH
31440 do eval test x\${$as_var+set} = xset \
31441 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31454 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31457 # as_fn_error ERROR [LINENO LOG_FD]
31458 # ---------------------------------
31459 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31460 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31461 # script with status $?, using 1 if that was 0.
31464 as_status=$?; test $as_status -eq 0 && as_status=1
31466 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31467 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
31469 $as_echo "$as_me: error: $1" >&2
31470 as_fn_exit $as_status
31474 # as_fn_set_status STATUS
31475 # -----------------------
31476 # Set $? to STATUS, without forking.
31477 as_fn_set_status ()
31480 } # as_fn_set_status
31482 # as_fn_exit STATUS
31483 # -----------------
31484 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31488 as_fn_set_status $1
31494 # Portably unset VAR.
31497 { eval $1=; unset $1;}
31499 as_unset=as_fn_unset
31500 # as_fn_append VAR VALUE
31501 # ----------------------
31502 # Append the text in VALUE to the end of the definition contained in VAR. Take
31503 # advantage of any shell optimizations that allow amortized linear growth over
31504 # repeated appends, instead of the typical quadratic growth present in naive
31506 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31507 eval 'as_fn_append ()
31518 # as_fn_arith ARG...
31519 # ------------------
31520 # Perform arithmetic evaluation on the ARGs, and store the result in the
31521 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31522 # must be portable across $(()) and expr.
31523 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31524 eval 'as_fn_arith ()
31531 as_val=`expr "$@" || test $? -eq 1`
31536 if expr a : '\(a\)' >/dev/null 2>&1 &&
31537 test "X`expr 00001 : '.*\(...\)'`" = X001; then
31543 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31544 as_basename=basename
31549 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31555 as_me=`$as_basename -- "$0" ||
31556 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31557 X"$0" : 'X\(//\)$' \| \
31558 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31560 sed '/^.*\/\([^/][^/]*\)\/*$/{
31574 # Avoid depending upon Character Ranges.
31575 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31576 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31577 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31578 as_cr_digits='0123456789'
31579 as_cr_alnum=$as_cr_Letters$as_cr_digits
31581 ECHO_C= ECHO_N= ECHO_T=
31582 case `echo -n x` in #(((((
31584 case `echo 'xy\c'` in
31585 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
31587 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
31594 rm -f conf$$ conf$$.exe conf$$.file
31595 if test -d conf$$.dir; then
31596 rm -f conf$$.dir/conf$$.file
31599 mkdir conf$$.dir 2>/dev/null
31601 if (echo >conf$$.file) 2>/dev/null; then
31602 if ln -s conf$$.file conf$$ 2>/dev/null; then
31604 # ... but there are two gotchas:
31605 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31606 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31607 # In both cases, we have to default to `cp -p'.
31608 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31610 elif ln conf$$.file conf$$ 2>/dev/null; then
31618 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31619 rmdir conf$$.dir 2>/dev/null
31624 # Create "$as_dir" as a directory, including parents if necessary.
31629 -*) as_dir=./$as_dir;;
31631 test -d "$as_dir" || eval $as_mkdir_p || {
31635 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31636 *) as_qdir=$as_dir;;
31638 as_dirs="'$as_qdir' $as_dirs"
31639 as_dir=`$as_dirname -- "$as_dir" ||
31640 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31641 X"$as_dir" : 'X\(//\)[^/]' \| \
31642 X"$as_dir" : 'X\(//\)$' \| \
31643 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31644 $as_echo X"$as_dir" |
31645 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31649 /^X\(\/\/\)[^/].*/{
31662 test -d "$as_dir" && break
31664 test -z "$as_dirs" || eval "mkdir $as_dirs"
31665 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
31669 if mkdir -p . 2>/dev/null; then
31670 as_mkdir_p='mkdir -p "$as_dir"'
31672 test -d ./-p && rmdir ./-p
31676 if test -x / >/dev/null 2>&1; then
31677 as_test_x='test -x'
31679 if ls -dL / >/dev/null 2>&1; then
31686 if test -d "$1"; then
31692 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
31693 ???[sx]*):;;*)false;;esac;fi
31697 as_executable_p=$as_test_x
31699 # Sed expression to map a string onto a valid CPP name.
31700 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31702 # Sed expression to map a string onto a valid variable name.
31703 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31707 ## ----------------------------------- ##
31708 ## Main body of $CONFIG_STATUS script. ##
31709 ## ----------------------------------- ##
31711 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31713 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31714 # Save the log message, to keep $0 and so on meaningful, and to
31715 # report actual input values of CONFIG_FILES etc. instead of their
31716 # values after options handling.
31718 This file was extended by ImageMagick $as_me 6.5.8, which was
31719 generated by GNU Autoconf 2.65. Invocation command line was
31721 CONFIG_FILES = $CONFIG_FILES
31722 CONFIG_HEADERS = $CONFIG_HEADERS
31723 CONFIG_LINKS = $CONFIG_LINKS
31724 CONFIG_COMMANDS = $CONFIG_COMMANDS
31727 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31732 case $ac_config_files in *"
31733 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31736 case $ac_config_headers in *"
31737 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31741 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31742 # Files that config.status was made for.
31743 config_files="$ac_config_files"
31744 config_headers="$ac_config_headers"
31745 config_commands="$ac_config_commands"
31749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31751 \`$as_me' instantiates files and other configuration actions
31752 from templates according to the current configuration. Unless the files
31753 and actions are specified as TAGs, all are instantiated by default.
31755 Usage: $0 [OPTION]... [TAG]...
31757 -h, --help print this help, then exit
31758 -V, --version print version number and configuration settings, then exit
31759 --config print configuration, then exit
31760 -q, --quiet, --silent
31761 do not print progress messages
31762 -d, --debug don't remove temporary files
31763 --recheck update $as_me by reconfiguring in the same conditions
31764 --file=FILE[:TEMPLATE]
31765 instantiate the configuration file FILE
31766 --header=FILE[:TEMPLATE]
31767 instantiate the configuration header FILE
31769 Configuration files:
31772 Configuration headers:
31775 Configuration commands:
31778 Report bugs to <http://www.imagemagick.org>."
31781 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31782 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31784 ImageMagick config.status 6.5.8
31785 configured by $0, generated by GNU Autoconf 2.65,
31786 with options \\"\$ac_cs_config\\"
31788 Copyright (C) 2009 Free Software Foundation, Inc.
31789 This config.status script is free software; the Free Software Foundation
31790 gives unlimited permission to copy, distribute and modify it."
31797 test -n "\$AWK" || AWK=awk
31800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31801 # The default lists apply if the user does not specify any file.
31807 ac_option=`expr "X$1" : 'X\([^=]*\)='`
31808 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31819 # Handling of the options.
31820 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31822 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31823 $as_echo "$ac_cs_version"; exit ;;
31824 --config | --confi | --conf | --con | --co | --c )
31825 $as_echo "$ac_cs_config"; exit ;;
31826 --debug | --debu | --deb | --de | --d | -d )
31828 --file | --fil | --fi | --f )
31831 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31833 as_fn_append CONFIG_FILES " '$ac_optarg'"
31834 ac_need_defaults=false;;
31835 --header | --heade | --head | --hea )
31838 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31840 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31841 ac_need_defaults=false;;
31843 # Conflict between --help and --header
31844 as_fn_error "ambiguous option: \`$1'
31845 Try \`$0 --help' for more information.";;
31846 --help | --hel | -h )
31847 $as_echo "$ac_cs_usage"; exit ;;
31848 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31849 | -silent | --silent | --silen | --sile | --sil | --si | --s)
31852 # This is an error.
31853 -*) as_fn_error "unrecognized option: \`$1'
31854 Try \`$0 --help' for more information." ;;
31856 *) as_fn_append ac_config_targets " $1"
31857 ac_need_defaults=false ;;
31863 ac_configure_extra_args=
31865 if $ac_cs_silent; then
31867 ac_configure_extra_args="$ac_configure_extra_args --silent"
31871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31872 if \$ac_cs_recheck; then
31873 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31875 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31876 CONFIG_SHELL='$SHELL'
31877 export CONFIG_SHELL
31882 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31886 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31887 ## Running $as_me. ##
31893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31898 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31901 # The HP-UX ksh and POSIX shell print the target directory to stdout
31902 # if CDPATH is set.
31903 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31905 sed_quote_subst='$sed_quote_subst'
31906 double_quote_subst='$double_quote_subst'
31907 delay_variable_subst='$delay_variable_subst'
31908 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
31909 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
31910 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
31911 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
31912 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
31913 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
31914 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
31915 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
31916 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
31917 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31918 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
31919 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
31920 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
31921 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
31922 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
31923 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
31924 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
31925 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
31926 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
31927 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
31928 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
31929 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
31930 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
31931 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
31932 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
31933 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
31934 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
31935 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
31936 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
31937 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
31938 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31939 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
31940 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
31941 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
31942 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31943 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
31944 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
31945 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31946 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31947 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31948 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
31949 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
31950 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
31951 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
31952 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
31953 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
31954 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
31955 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
31956 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
31957 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
31958 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
31959 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
31960 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
31961 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
31962 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
31963 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
31964 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
31965 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
31966 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
31967 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
31968 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
31969 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
31970 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
31971 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
31972 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31973 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31974 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
31975 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
31976 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31977 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31978 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
31979 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31980 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31981 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31982 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31983 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31984 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
31985 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
31986 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31987 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
31988 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
31989 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
31990 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
31991 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
31992 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
31993 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
31994 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
31995 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
31996 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
31997 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
31998 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
31999 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
32000 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32001 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
32002 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
32003 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32004 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
32005 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
32006 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
32007 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
32008 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
32009 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32010 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
32011 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
32012 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
32013 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
32014 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
32015 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32016 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32017 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
32018 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
32019 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
32020 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
32021 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
32022 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
32023 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
32024 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
32025 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
32026 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
32027 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
32028 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
32029 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
32030 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
32031 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
32032 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
32033 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
32034 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32035 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32036 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32037 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32038 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32039 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32040 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32041 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32042 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32043 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32044 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32045 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32046 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32047 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32048 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32049 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32050 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32051 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32052 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32053 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32054 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32055 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32056 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32057 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32058 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32059 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32060 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32061 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32062 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32063 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32064 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32065 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32066 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32067 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32068 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32069 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32070 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32071 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32072 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32073 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32074 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32075 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32076 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32077 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32078 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32079 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32080 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
32083 LTCFLAGS='$LTCFLAGS'
32084 compiler='$compiler_DEFAULT'
32086 # Quote evaled strings.
32097 deplibs_check_method \
32106 lt_cv_sys_global_symbol_pipe \
32107 lt_cv_sys_global_symbol_to_cdecl \
32108 lt_cv_sys_global_symbol_to_c_name_address \
32109 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
32112 lt_prog_compiler_no_builtin_flag \
32113 lt_prog_compiler_wl \
32114 lt_prog_compiler_pic \
32115 lt_prog_compiler_static \
32116 lt_cv_prog_compiler_c_o \
32124 export_dynamic_flag_spec \
32125 whole_archive_flag_spec \
32126 compiler_needs_object \
32128 allow_undefined_flag \
32129 no_undefined_flag \
32130 hardcode_libdir_flag_spec \
32131 hardcode_libdir_flag_spec_ld \
32132 hardcode_libdir_separator \
32137 variables_saved_for_relink \
32139 library_names_spec \
32144 compiler_lib_search_dirs \
32149 compiler_lib_search_path \
32152 lt_prog_compiler_no_builtin_flag_CXX \
32153 lt_prog_compiler_wl_CXX \
32154 lt_prog_compiler_pic_CXX \
32155 lt_prog_compiler_static_CXX \
32156 lt_cv_prog_compiler_c_o_CXX \
32157 export_dynamic_flag_spec_CXX \
32158 whole_archive_flag_spec_CXX \
32159 compiler_needs_object_CXX \
32161 allow_undefined_flag_CXX \
32162 no_undefined_flag_CXX \
32163 hardcode_libdir_flag_spec_CXX \
32164 hardcode_libdir_flag_spec_ld_CXX \
32165 hardcode_libdir_separator_CXX \
32166 fix_srcfile_path_CXX \
32167 exclude_expsyms_CXX \
32168 include_expsyms_CXX \
32169 file_list_spec_CXX \
32170 compiler_lib_search_dirs_CXX \
32171 predep_objects_CXX \
32172 postdep_objects_CXX \
32175 compiler_lib_search_path_CXX; do
32176 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
32177 *[\\\\\\\`\\"\\\$]*)
32178 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
32181 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32186 # Double-quote double-evaled strings.
32187 for var in reload_cmds \
32188 old_postinstall_cmds \
32189 old_postuninstall_cmds \
32191 extract_expsyms_cmds \
32192 old_archive_from_new_cmds \
32193 old_archive_from_expsyms_cmds \
32195 archive_expsym_cmds \
32197 module_expsym_cmds \
32198 export_symbols_cmds \
32201 postuninstall_cmds \
32203 sys_lib_search_path_spec \
32204 sys_lib_dlsearch_path_spec \
32205 old_archive_cmds_CXX \
32206 old_archive_from_new_cmds_CXX \
32207 old_archive_from_expsyms_cmds_CXX \
32209 archive_expsym_cmds_CXX \
32211 module_expsym_cmds_CXX \
32212 export_symbols_cmds_CXX \
32213 prelink_cmds_CXX; do
32214 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
32215 *[\\\\\\\`\\"\\\$]*)
32216 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
32219 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32224 # Fix-up fallback echo if it was mangled by the above quoting rules.
32226 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
32230 ac_aux_dir='$ac_aux_dir'
32231 xsi_shell='$xsi_shell'
32232 lt_shell_append='$lt_shell_append'
32234 # See if we are running on zsh, and set the options which allow our
32235 # commands through without removal of \ escapes INIT.
32236 if test -n "\${ZSH_VERSION+set}" ; then
32237 setopt NO_GLOB_SUBST
32243 TIMESTAMP='$TIMESTAMP'
32254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32256 # Handling of arguments.
32257 for ac_config_target in $ac_config_targets
32259 case $ac_config_target in
32260 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
32261 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
32262 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
32263 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
32264 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
32265 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
32266 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
32267 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
32268 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
32269 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
32270 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
32271 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
32272 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
32273 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
32274 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
32275 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
32276 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
32277 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
32278 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
32279 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32280 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
32281 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
32282 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
32283 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
32284 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
32285 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
32286 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
32287 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
32288 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
32289 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
32290 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
32291 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
32292 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
32293 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
32294 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
32295 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
32296 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
32297 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
32298 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
32299 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
32300 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32301 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32302 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32303 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
32304 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
32305 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
32306 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
32307 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
32308 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
32310 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32315 # If the user did not use the arguments to specify the items to instantiate,
32316 # then the envvar interface is used. Set only those that are not.
32317 # We use the long form for the default assignment because of an extremely
32318 # bizarre bug on SunOS 4.1.3.
32319 if $ac_need_defaults; then
32320 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32321 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32322 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32325 # Have a temporary directory for convenience. Make it in the build tree
32326 # simply because there is no reason against having it here, and in addition,
32327 # creating and moving files from /tmp can sometimes cause problems.
32328 # Hook for its removal unless debugging.
32329 # Note that there is a small window in which the directory will not be cleaned:
32330 # after its creation but before its name has been assigned to `$tmp'.
32334 trap 'exit_status=$?
32335 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
32337 trap 'as_fn_exit 1' 1 2 13 15
32339 # Create a (secure) tmp directory for tmp files.
32342 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32343 test -n "$tmp" && test -d "$tmp"
32346 tmp=./conf$$-$RANDOM
32347 (umask 077 && mkdir "$tmp")
32348 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
32350 # Set up the scripts for CONFIG_FILES section.
32351 # No need to generate them if there are no CONFIG_FILES.
32352 # This happens for instance with `./config.status config.h'.
32353 if test -n "$CONFIG_FILES"; then
32356 ac_cr=`echo X | tr X '\015'`
32357 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32358 # But we know of no other shell where ac_cr would be empty at this
32359 # point, so we can use a bashism as a fallback.
32360 if test "x$ac_cr" = x; then
32361 eval ac_cr=\$\'\\r\'
32363 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32364 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32367 ac_cs_awk_cr=$ac_cr
32370 echo 'BEGIN {' >"$tmp/subs1.awk" &&
32375 echo "cat >conf$$subs.awk <<_ACEOF" &&
32376 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32378 } >conf$$subs.sh ||
32379 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
32380 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
32382 for ac_last_try in false false false false false :; do
32383 . ./conf$$subs.sh ||
32384 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
32386 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32387 if test $ac_delim_n = $ac_delim_num; then
32389 elif $ac_last_try; then
32390 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
32392 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32395 rm -f conf$$subs.sh
32397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32398 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
32402 s/^/S["/; s/!.*/"]=/
32412 s/\(.\{148\}\)..*/\1/
32414 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32419 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32426 s/\(.\{148\}\)..*/\1/
32428 s/["\\]/\\&/g; s/^/"/; s/$/"/
32432 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32437 ' <conf$$subs.awk | sed '
32442 ' >>$CONFIG_STATUS || ac_write_fail=1
32443 rm -f conf$$subs.awk
32444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32446 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
32447 for (key in S) S_is_set[key] = 1
32453 nfields = split(line, field, "@")
32455 len = length(field[1])
32456 for (i = 2; i < nfields; i++) {
32458 keylen = length(key)
32459 if (S_is_set[key]) {
32461 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32462 len += length(value) + length(field[++i])
32473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32474 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32475 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32478 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
32479 || as_fn_error "could not setup config files machinery" "$LINENO" 5
32482 # VPATH may cause trouble with some makes, so we remove $(srcdir),
32483 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
32484 # trailing colons and then remove the whole line if VPATH becomes empty
32485 # (actually we leave an empty line to preserve line numbers).
32486 if test "x$srcdir" = x.; then
32487 ac_vpsub='/^[ ]*VPATH[ ]*=/{
32488 s/:*\$(srcdir):*/:/
32489 s/:*\${srcdir}:*/:/
32491 s/^\([^=]*=[ ]*\):*/\1/
32497 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32498 fi # test -n "$CONFIG_FILES"
32500 # Set up the scripts for CONFIG_HEADERS section.
32501 # No need to generate them if there are no CONFIG_HEADERS.
32502 # This happens for instance with `./config.status Makefile'.
32503 if test -n "$CONFIG_HEADERS"; then
32504 cat >"$tmp/defines.awk" <<\_ACAWK ||
32508 # Transform confdefs.h into an awk script `defines.awk', embedded as
32509 # here-document in config.status, that substitutes the proper values into
32510 # config.h.in to produce config.h.
32512 # Create a delimiter string that does not exist in confdefs.h, to ease
32513 # handling of long lines.
32515 for ac_last_try in false false :; do
32516 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
32517 if test -z "$ac_t"; then
32519 elif $ac_last_try; then
32520 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
32522 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32526 # For the awk script, D is an array of macro values keyed by name,
32527 # likewise P contains macro parameters if any. Preserve backslash
32528 # newline sequences.
32530 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32532 s/.\{148\}/&'"$ac_delim"'/g
32535 s/^[ ]*#[ ]*define[ ][ ]*/ /
32542 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32544 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
32548 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
32549 D["\1"]=" \3\\\\\\n"\\/p
32551 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32556 s/.\{148\}/&'"$ac_delim"'/g
32561 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32564 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32566 ' <confdefs.h | sed '
32567 s/'"$ac_delim"'/"\\\
32568 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32570 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32571 for (key in D) D_is_set[key] = 1
32574 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32576 split(line, arg, " ")
32577 if (arg[1] == "#") {
32581 defundef = substr(arg[1], 2)
32584 split(mac1, mac2, "(") #)
32586 prefix = substr(line, 1, index(line, defundef) - 1)
32587 if (D_is_set[macro]) {
32588 # Preserve the white space surrounding the "#".
32589 print prefix "define", macro P[macro] D[macro]
32592 # Replace #undef with comments. This is necessary, for example,
32593 # in the case of _POSIX_SOURCE, which is predefined and required
32594 # on some systems where configure will not decide to define it.
32595 if (defundef == "undef") {
32596 print "/*", prefix defundef, macro, "*/"
32604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32605 as_fn_error "could not setup config headers machinery" "$LINENO" 5
32606 fi # test -n "$CONFIG_HEADERS"
32609 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32614 :[FHLC]) ac_mode=$ac_tag; continue;;
32616 case $ac_mode$ac_tag in
32618 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
32619 :[FH]-) ac_tag=-:-;;
32620 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32637 -) ac_f="$tmp/stdin";;
32638 *) # Look for the file first in the build tree, then in the source tree
32639 # (if the path is not absolute). The absolute path cannot be DOS-style,
32640 # because $ac_f cannot contain `:'.
32644 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32646 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32648 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32649 as_fn_append ac_file_inputs " '$ac_f'"
32652 # Let's still pretend it is `configure' which instantiates (i.e., don't
32653 # use $as_me), people would be surprised to read:
32654 # /* config.h. Generated by config.status. */
32655 configure_input='Generated from '`
32656 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32658 if test x"$ac_file" != x-; then
32659 configure_input="$ac_file. $configure_input"
32660 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32661 $as_echo "$as_me: creating $ac_file" >&6;}
32663 # Neutralize special characters interpreted by sed in replacement strings.
32664 case $configure_input in #(
32665 *\&* | *\|* | *\\* )
32666 ac_sed_conf_input=`$as_echo "$configure_input" |
32667 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32668 *) ac_sed_conf_input=$configure_input;;
32672 *:-:* | *:-) cat >"$tmp/stdin" \
32673 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
32678 ac_dir=`$as_dirname -- "$ac_file" ||
32679 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32680 X"$ac_file" : 'X\(//\)[^/]' \| \
32681 X"$ac_file" : 'X\(//\)$' \| \
32682 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32683 $as_echo X"$ac_file" |
32684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32688 /^X\(\/\/\)[^/].*/{
32701 as_dir="$ac_dir"; as_fn_mkdir_p
32705 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32707 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32708 # A ".." for each directory in $ac_dir_suffix.
32709 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32710 case $ac_top_builddir_sub in
32711 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32712 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32715 ac_abs_top_builddir=$ac_pwd
32716 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32717 # for backward compatibility:
32718 ac_top_builddir=$ac_top_build_prefix
32721 .) # We are building in place.
32723 ac_top_srcdir=$ac_top_builddir_sub
32724 ac_abs_top_srcdir=$ac_pwd ;;
32725 [\\/]* | ?:[\\/]* ) # Absolute name.
32726 ac_srcdir=$srcdir$ac_dir_suffix;
32727 ac_top_srcdir=$srcdir
32728 ac_abs_top_srcdir=$srcdir ;;
32729 *) # Relative name.
32730 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32731 ac_top_srcdir=$ac_top_build_prefix$srcdir
32732 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32734 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32744 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32745 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32747 ac_MKDIR_P=$MKDIR_P
32749 [\\/$]* | ?:[\\/]* ) ;;
32750 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32754 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32755 # If the template does not know about datarootdir, expand it.
32756 # FIXME: This hack should be removed a few years after 2.60.
32757 ac_datarootdir_hack=; ac_datarootdir_seen=
32768 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32769 *datarootdir*) ac_datarootdir_seen=yes;;
32770 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32772 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32775 ac_datarootdir_hack='
32776 s&@datadir@&$datadir&g
32777 s&@docdir@&$docdir&g
32778 s&@infodir@&$infodir&g
32779 s&@localedir@&$localedir&g
32780 s&@mandir@&$mandir&g
32781 s&\\\${datarootdir}&$datarootdir&g' ;;
32785 # Neutralize VPATH when `$srcdir' = `.'.
32786 # Shell code in configure.ac might set extrasub.
32787 # FIXME: do we really want to maintain this feature?
32788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32789 ac_sed_extra="$ac_vpsub
32792 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32794 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32795 s|@configure_input@|$ac_sed_conf_input|;t t
32796 s&@top_builddir@&$ac_top_builddir_sub&;t t
32797 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32798 s&@srcdir@&$ac_srcdir&;t t
32799 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32800 s&@top_srcdir@&$ac_top_srcdir&;t t
32801 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32802 s&@builddir@&$ac_builddir&;t t
32803 s&@abs_builddir@&$ac_abs_builddir&;t t
32804 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32805 s&@INSTALL@&$ac_INSTALL&;t t
32806 s&@MKDIR_P@&$ac_MKDIR_P&;t t
32807 $ac_datarootdir_hack
32809 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
32810 || as_fn_error "could not create $ac_file" "$LINENO" 5
32812 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32813 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32814 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32816 which seems to be undefined. Please make sure it is defined." >&5
32817 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32818 which seems to be undefined. Please make sure it is defined." >&2;}
32822 -) cat "$tmp/out" && rm -f "$tmp/out";;
32823 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32825 || as_fn_error "could not create $ac_file" "$LINENO" 5
32831 if test x"$ac_file" != x-; then
32833 $as_echo "/* $configure_input */" \
32834 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32835 } >"$tmp/config.h" \
32836 || as_fn_error "could not create $ac_file" "$LINENO" 5
32837 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
32838 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32839 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32842 mv "$tmp/config.h" "$ac_file" \
32843 || as_fn_error "could not create $ac_file" "$LINENO" 5
32846 $as_echo "/* $configure_input */" \
32847 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
32848 || as_fn_error "could not create -" "$LINENO" 5
32850 # Compute "$ac_file"'s index in $config_headers.
32853 for _am_header in $config_headers :; do
32854 case $_am_header in
32855 $_am_arg | $_am_arg:* )
32858 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32861 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32862 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32863 X"$_am_arg" : 'X\(//\)[^/]' \| \
32864 X"$_am_arg" : 'X\(//\)$' \| \
32865 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32866 $as_echo X"$_am_arg" |
32867 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32871 /^X\(\/\/\)[^/].*/{
32883 s/.*/./; q'`/stamp-h$_am_stamp_count
32886 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32887 $as_echo "$as_me: executing $ac_file commands" >&6;}
32892 case $ac_file$ac_mode in
32893 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
32894 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
32895 ac_prefix_conf_PKG=`echo MagickCore`
32896 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
32897 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
32898 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
32899 if test ".$ac_prefix_conf_INP" = "."; then
32900 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
32902 *.h) ac_prefix_conf_INP=$ac_file ;;
32905 test ".$ac_prefix_conf_INP" != "." && break
32908 if test ".$ac_prefix_conf_INP" = "."; then
32909 case "$ac_prefix_conf_OUT" in
32910 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
32912 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
32914 *) ac_prefix_conf_INP=config.h
32918 if test -z "$ac_prefix_conf_PKG" ; then
32919 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
32921 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
32922 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
32924 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
32925 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
32926 if test -f $ac_prefix_conf_INP ; then
32927 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
32928 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
32929 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
32930 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
32931 echo "#endif/" >>conftest.prefix
32932 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
32933 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
32934 echo "#endif/" >> conftest.prefix
32935 # now executing _script on _DEF input to create _OUT output file
32936 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
32937 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
32938 echo ' ' >>$tmp/pconfig.h
32939 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
32941 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
32942 echo ' ' >>$tmp/pconfig.h
32943 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
32944 echo "#endif" >>$tmp/pconfig.h
32945 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
32946 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
32947 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
32949 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
32950 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32951 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
32952 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
32953 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
32954 $as_echo X"$ac_prefix_conf_OUT" |
32955 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32959 /^X\(\/\/\)[^/].*/{
32972 as_dir="$ac_dir"; as_fn_mkdir_p
32973 rm -f "$ac_prefix_conf_OUT"
32974 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
32976 cp conftest.prefix _configs.sed
32978 as_fn_error "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
32983 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
32984 # Autoconf 2.62 quotes --file arguments for eval, but not when files
32985 # are listed without --file. Let's play safe and only enable the eval
32986 # if we detect the quoting.
32987 case $CONFIG_FILES in
32988 *\'*) eval set x "$CONFIG_FILES" ;;
32989 *) set x $CONFIG_FILES ;;
32994 # Strip MF so we end up with the name of the file.
32995 mf=`echo "$mf" | sed -e 's/:.*$//'`
32996 # Check whether this is an Automake generated Makefile or not.
32997 # We used to match only the files named `Makefile.in', but
32998 # some people rename them; so instead we look at the file content.
32999 # Grep'ing the first line is not enough: some people post-process
33000 # each Makefile.in and add a new line on top of each file to say so.
33001 # Grep'ing the whole file is not good either: AIX grep has a line
33002 # limit of 2048, but all sed's we know have understand at least 4000.
33003 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
33004 dirpart=`$as_dirname -- "$mf" ||
33005 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33006 X"$mf" : 'X\(//\)[^/]' \| \
33007 X"$mf" : 'X\(//\)$' \| \
33008 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
33010 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33014 /^X\(\/\/\)[^/].*/{
33030 # Extract the definition of DEPDIR, am__include, and am__quote
33031 # from the Makefile without running `make'.
33032 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33033 test -z "$DEPDIR" && continue
33034 am__include=`sed -n 's/^am__include = //p' < "$mf"`
33035 test -z "am__include" && continue
33036 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
33037 # When using ansi2knr, U may be empty or an underscore; expand it
33038 U=`sed -n 's/^U = //p' < "$mf"`
33039 # Find all dependency output files, they are included files with
33040 # $(DEPDIR) in their names. We invoke sed twice because it is the
33041 # simplest approach to changing $(DEPDIR) to its actual value in the
33043 for file in `sed -n "
33044 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33045 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33046 # Make sure the directory exists.
33047 test -f "$dirpart/$file" && continue
33048 fdir=`$as_dirname -- "$file" ||
33049 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33050 X"$file" : 'X\(//\)[^/]' \| \
33051 X"$file" : 'X\(//\)$' \| \
33052 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
33053 $as_echo X"$file" |
33054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33058 /^X\(\/\/\)[^/].*/{
33071 as_dir=$dirpart/$fdir; as_fn_mkdir_p
33072 # echo "creating $dirpart/$file"
33073 echo '# dummy' > "$dirpart/$file"
33080 # See if we are running on zsh, and set the options which allow our
33081 # commands through without removal of \ escapes.
33082 if test -n "${ZSH_VERSION+set}" ; then
33083 setopt NO_GLOB_SUBST
33086 cfgfile="${ofile}T"
33087 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
33090 cat <<_LT_EOF >> "$cfgfile"
33093 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
33094 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
33095 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
33096 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
33098 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33099 # 2006, 2007, 2008 Free Software Foundation, Inc.
33100 # Written by Gordon Matzigkeit, 1996
33102 # This file is part of GNU Libtool.
33104 # GNU Libtool is free software; you can redistribute it and/or
33105 # modify it under the terms of the GNU General Public License as
33106 # published by the Free Software Foundation; either version 2 of
33107 # the License, or (at your option) any later version.
33109 # As a special exception to the GNU General Public License,
33110 # if you distribute this file as part of a program or library that
33111 # is built using GNU Libtool, you may include this file under the
33112 # same distribution terms that you use for the rest of that program.
33114 # GNU Libtool is distributed in the hope that it will be useful,
33115 # but WITHOUT ANY WARRANTY; without even the implied warranty of
33116 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
33117 # GNU General Public License for more details.
33119 # You should have received a copy of the GNU General Public License
33120 # along with GNU Libtool; see the file COPYING. If not, a copy
33121 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33122 # obtained by writing to the Free Software Foundation, Inc.,
33123 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33126 # The names of the tagged configurations supported by this script.
33127 available_tags="CXX "
33129 # ### BEGIN LIBTOOL CONFIG
33131 # A sed program that does not truncate output.
33134 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
33135 Xsed="\$SED -e 1s/^X//"
33137 # A grep program that handles long lines.
33143 # A literal string matcher.
33146 # Which release of libtool.m4 was used?
33147 macro_version=$macro_version
33148 macro_revision=$macro_revision
33150 # Assembler program.
33153 # DLL creation program.
33156 # Object dumper program.
33159 # Whether or not to build shared libraries.
33160 build_libtool_libs=$enable_shared
33162 # Whether or not to build static libraries.
33163 build_old_libs=$enable_static
33165 # What type of objects to build.
33168 # Whether or not to optimize for fast installation.
33169 fast_install=$enable_fast_install
33172 host_alias=$host_alias
33176 # The build system.
33177 build_alias=$build_alias
33181 # A BSD- or MS-compatible name lister.
33184 # Whether we need soft or hard links.
33187 # What is the maximum length of a command?
33188 max_cmd_len=$max_cmd_len
33190 # Object file suffix (normally "o").
33193 # Executable file suffix (normally "").
33196 # whether the shell understands "unset".
33199 # turn spaces into newlines.
33202 # turn newlines into spaces.
33205 # How to create reloadable object files.
33206 reload_flag=$lt_reload_flag
33207 reload_cmds=$lt_reload_cmds
33209 # Method to check whether dependent libraries are shared objects.
33210 deplibs_check_method=$lt_deplibs_check_method
33212 # Command to use when deplibs_check_method == "file_magic".
33213 file_magic_cmd=$lt_file_magic_cmd
33217 AR_FLAGS=$lt_AR_FLAGS
33219 # A symbol stripping program.
33222 # Commands used to install an old-style archive.
33224 old_postinstall_cmds=$lt_old_postinstall_cmds
33225 old_postuninstall_cmds=$lt_old_postuninstall_cmds
33230 # LTCC compiler flags.
33231 LTCFLAGS=$lt_CFLAGS
33233 # Take the output of nm and produce a listing of raw symbols and C names.
33234 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33236 # Transform the output of nm in a proper C declaration.
33237 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33239 # Transform the output of nm in a C name address pair.
33240 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33242 # Transform the output of nm in a C name address pair when lib prefix is needed.
33243 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33245 # The name of the directory that contains temporary libtool files.
33248 # Shell to use when invoking shell scripts.
33251 # An echo program that does not interpret backslashes.
33254 # Used to examine libraries when file_magic_cmd begins with "file".
33255 MAGIC_CMD=$MAGIC_CMD
33257 # Must we lock files when doing compilation?
33258 need_locks=$lt_need_locks
33260 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33261 DSYMUTIL=$lt_DSYMUTIL
33263 # Tool to change global to local symbols on Mac OS X.
33266 # Tool to manipulate fat objects and archives on Mac OS X.
33269 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
33272 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33273 OTOOL64=$lt_OTOOL64
33275 # Old archive suffix (normally "a").
33278 # Shared library suffix (normally ".so").
33279 shrext_cmds=$lt_shrext_cmds
33281 # The commands to extract the exported symbol list from a shared archive.
33282 extract_expsyms_cmds=$lt_extract_expsyms_cmds
33284 # Variables whose values should be saved in libtool wrapper scripts and
33285 # restored at link time.
33286 variables_saved_for_relink=$lt_variables_saved_for_relink
33288 # Do we need the "lib" prefix for modules?
33289 need_lib_prefix=$need_lib_prefix
33291 # Do we need a version for libraries?
33292 need_version=$need_version
33294 # Library versioning type.
33295 version_type=$version_type
33297 # Shared library runtime path variable.
33298 runpath_var=$runpath_var
33300 # Shared library path variable.
33301 shlibpath_var=$shlibpath_var
33303 # Is shlibpath searched before the hard-coded library search path?
33304 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33306 # Format of library name prefix.
33307 libname_spec=$lt_libname_spec
33309 # List of archive names. First name is the real one, the rest are links.
33310 # The last name is the one that the linker finds with -lNAME
33311 library_names_spec=$lt_library_names_spec
33313 # The coded name of the library, if different from the real name.
33314 soname_spec=$lt_soname_spec
33316 # Command to use after installation of a shared archive.
33317 postinstall_cmds=$lt_postinstall_cmds
33319 # Command to use after uninstallation of a shared archive.
33320 postuninstall_cmds=$lt_postuninstall_cmds
33322 # Commands used to finish a libtool library installation in a directory.
33323 finish_cmds=$lt_finish_cmds
33325 # As "finish_cmds", except a single script fragment to be evaled but
33327 finish_eval=$lt_finish_eval
33329 # Whether we should hardcode library paths into libraries.
33330 hardcode_into_libs=$hardcode_into_libs
33332 # Compile-time system search path for libraries.
33333 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33335 # Run-time system search path for libraries.
33336 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33338 # Whether dlopen is supported.
33339 dlopen_support=$enable_dlopen
33341 # Whether dlopen of programs is supported.
33342 dlopen_self=$enable_dlopen_self
33344 # Whether dlopen of statically linked programs is supported.
33345 dlopen_self_static=$enable_dlopen_self_static
33347 # Commands to strip libraries.
33348 old_striplib=$lt_old_striplib
33349 striplib=$lt_striplib
33352 # The linker used to build libraries.
33355 # Commands used to build an old-style archive.
33356 old_archive_cmds=$lt_old_archive_cmds
33358 # A language specific compiler.
33361 # Is the compiler the GNU compiler?
33364 # Compiler flag to turn off builtin functions.
33365 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33367 # How to pass a linker flag through the compiler.
33368 wl=$lt_lt_prog_compiler_wl
33370 # Additional compiler flags for building library objects.
33371 pic_flag=$lt_lt_prog_compiler_pic
33373 # Compiler flag to prevent dynamic linking.
33374 link_static_flag=$lt_lt_prog_compiler_static
33376 # Does compiler simultaneously support -c and -o options?
33377 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33379 # Whether or not to add -lc for building shared libraries.
33380 build_libtool_need_lc=$archive_cmds_need_lc
33382 # Whether or not to disallow shared libs when runtime libs are static.
33383 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33385 # Compiler flag to allow reflexive dlopens.
33386 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33388 # Compiler flag to generate shared objects directly from archives.
33389 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33391 # Whether the compiler copes with passing no objects directly.
33392 compiler_needs_object=$lt_compiler_needs_object
33394 # Create an old-style archive from a shared archive.
33395 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33397 # Create a temporary old-style archive to link instead of a shared archive.
33398 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33400 # Commands used to build a shared archive.
33401 archive_cmds=$lt_archive_cmds
33402 archive_expsym_cmds=$lt_archive_expsym_cmds
33404 # Commands used to build a loadable module if different from building
33405 # a shared archive.
33406 module_cmds=$lt_module_cmds
33407 module_expsym_cmds=$lt_module_expsym_cmds
33409 # Whether we are building with GNU ld or not.
33410 with_gnu_ld=$lt_with_gnu_ld
33412 # Flag that allows shared libraries with undefined symbols to be built.
33413 allow_undefined_flag=$lt_allow_undefined_flag
33415 # Flag that enforces no undefined symbols.
33416 no_undefined_flag=$lt_no_undefined_flag
33418 # Flag to hardcode \$libdir into a binary during linking.
33419 # This must work even if \$libdir does not exist
33420 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33422 # If ld is used when linking, flag to hardcode \$libdir into a binary
33423 # during linking. This must work even if \$libdir does not exist.
33424 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
33426 # Whether we need a single "-rpath" flag with a separated argument.
33427 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33429 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33430 # DIR into the resulting binary.
33431 hardcode_direct=$hardcode_direct
33433 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33434 # DIR into the resulting binary and the resulting library dependency is
33435 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33436 # library is relocated.
33437 hardcode_direct_absolute=$hardcode_direct_absolute
33439 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33440 # into the resulting binary.
33441 hardcode_minus_L=$hardcode_minus_L
33443 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33444 # into the resulting binary.
33445 hardcode_shlibpath_var=$hardcode_shlibpath_var
33447 # Set to "yes" if building a shared library automatically hardcodes DIR
33448 # into the library and all subsequent libraries and executables linked
33450 hardcode_automatic=$hardcode_automatic
33452 # Set to yes if linker adds runtime paths of dependent libraries
33453 # to runtime path list.
33454 inherit_rpath=$inherit_rpath
33456 # Whether libtool must link a program against all its dependency libraries.
33457 link_all_deplibs=$link_all_deplibs
33459 # Fix the shell variable \$srcfile for the compiler.
33460 fix_srcfile_path=$lt_fix_srcfile_path
33462 # Set to "yes" if exported symbols are required.
33463 always_export_symbols=$always_export_symbols
33465 # The commands to list exported symbols.
33466 export_symbols_cmds=$lt_export_symbols_cmds
33468 # Symbols that should not be listed in the preloaded symbols.
33469 exclude_expsyms=$lt_exclude_expsyms
33471 # Symbols that must always be exported.
33472 include_expsyms=$lt_include_expsyms
33474 # Commands necessary for linking programs (against libraries) with templates.
33475 prelink_cmds=$lt_prelink_cmds
33477 # Specify filename containing input files.
33478 file_list_spec=$lt_file_list_spec
33480 # How to hardcode a shared library path into an executable.
33481 hardcode_action=$hardcode_action
33483 # The directories searched by this compiler when creating a shared library.
33484 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33486 # Dependencies to place before and after the objects being linked to
33487 # create a shared library.
33488 predep_objects=$lt_predep_objects
33489 postdep_objects=$lt_postdep_objects
33490 predeps=$lt_predeps
33491 postdeps=$lt_postdeps
33493 # The library search path used internally by the compiler when linking
33494 # a shared library.
33495 compiler_lib_search_path=$lt_compiler_lib_search_path
33497 # ### END LIBTOOL CONFIG
33503 cat <<\_LT_EOF >> "$cfgfile"
33504 # AIX sometimes has problems with the GCC collect2 program. For some
33505 # reason, if we set the COLLECT_NAMES environment variable, the problems
33506 # vanish in a puff of smoke.
33507 if test "X${COLLECT_NAMES+set}" != Xset; then
33509 export COLLECT_NAMES
33516 ltmain="$ac_aux_dir/ltmain.sh"
33519 # We use sed instead of cat because bash on DJGPP gets confused if
33520 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33521 # text mode, it properly converts lines to CR/LF. This bash problem
33522 # is reportedly fixed, but why not run on old versions too?
33523 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
33524 || (rm -f "$cfgfile"; exit 1)
33528 cat << \_LT_EOF >> "$cfgfile"
33530 # func_dirname file append nondir_replacement
33531 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
33532 # otherwise set result to NONDIR_REPLACEMENT.
33536 */*) func_dirname_result="${1%/*}${2}" ;;
33537 * ) func_dirname_result="${3}" ;;
33541 # func_basename file
33544 func_basename_result="${1##*/}"
33547 # func_dirname_and_basename file append nondir_replacement
33548 # perform func_basename and func_dirname in a single function
33550 # dirname: Compute the dirname of FILE. If nonempty,
33551 # add APPEND to the result, otherwise set result
33552 # to NONDIR_REPLACEMENT.
33553 # value returned in "$func_dirname_result"
33554 # basename: Compute filename of FILE.
33555 # value retuned in "$func_basename_result"
33556 # Implementation must be kept synchronized with func_dirname
33557 # and func_basename. For efficiency, we do not delegate to
33558 # those functions but instead duplicate the functionality here.
33559 func_dirname_and_basename ()
33562 */*) func_dirname_result="${1%/*}${2}" ;;
33563 * ) func_dirname_result="${3}" ;;
33565 func_basename_result="${1##*/}"
33568 # func_stripname prefix suffix name
33569 # strip PREFIX and SUFFIX off of NAME.
33570 # PREFIX and SUFFIX must not contain globbing or regex special
33571 # characters, hashes, percent signs, but SUFFIX may contain a leading
33572 # dot (in which case that matches only a dot).
33575 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
33576 # positional parameters, so assign one to ordinary parameter first.
33577 func_stripname_result=${3}
33578 func_stripname_result=${func_stripname_result#"${1}"}
33579 func_stripname_result=${func_stripname_result%"${2}"}
33585 func_opt_split_opt=${1%%=*}
33586 func_opt_split_arg=${1#*=}
33593 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
33594 *) func_lo2o_result=${1} ;;
33598 # func_xform libobj-or-source
33601 func_xform_result=${1%.*}.lo
33604 # func_arith arithmetic-term...
33607 func_arith_result=$(( $* ))
33611 # STRING may not start with a hyphen.
33614 func_len_result=${#1}
33619 *) # Bourne compatible functions.
33620 cat << \_LT_EOF >> "$cfgfile"
33622 # func_dirname file append nondir_replacement
33623 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
33624 # otherwise set result to NONDIR_REPLACEMENT.
33627 # Extract subdirectory from the argument.
33628 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
33629 if test "X$func_dirname_result" = "X${1}"; then
33630 func_dirname_result="${3}"
33632 func_dirname_result="$func_dirname_result${2}"
33636 # func_basename file
33639 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
33643 # func_stripname prefix suffix name
33644 # strip PREFIX and SUFFIX off of NAME.
33645 # PREFIX and SUFFIX must not contain globbing or regex special
33646 # characters, hashes, percent signs, but SUFFIX may contain a leading
33647 # dot (in which case that matches only a dot).
33648 # func_strip_suffix prefix name
33652 .*) func_stripname_result=`$ECHO "X${3}" \
33653 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
33654 *) func_stripname_result=`$ECHO "X${3}" \
33655 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
33660 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
33661 my_sed_long_arg='1s/^-[^=]*=//'
33666 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
33667 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
33673 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
33676 # func_xform libobj-or-source
33679 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
33682 # func_arith arithmetic-term...
33685 func_arith_result=`expr "$@"`
33689 # STRING may not start with a hyphen.
33692 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
33698 case $lt_shell_append in
33700 cat << \_LT_EOF >> "$cfgfile"
33702 # func_append var value
33703 # Append VALUE to the end of shell variable VAR.
33711 cat << \_LT_EOF >> "$cfgfile"
33713 # func_append var value
33714 # Append VALUE to the end of shell variable VAR.
33725 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
33726 || (rm -f "$cfgfile"; exit 1)
33728 mv -f "$cfgfile" "$ofile" ||
33729 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33733 cat <<_LT_EOF >> "$ofile"
33735 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33737 # The linker used to build libraries.
33740 # Commands used to build an old-style archive.
33741 old_archive_cmds=$lt_old_archive_cmds_CXX
33743 # A language specific compiler.
33744 CC=$lt_compiler_CXX
33746 # Is the compiler the GNU compiler?
33749 # Compiler flag to turn off builtin functions.
33750 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33752 # How to pass a linker flag through the compiler.
33753 wl=$lt_lt_prog_compiler_wl_CXX
33755 # Additional compiler flags for building library objects.
33756 pic_flag=$lt_lt_prog_compiler_pic_CXX
33758 # Compiler flag to prevent dynamic linking.
33759 link_static_flag=$lt_lt_prog_compiler_static_CXX
33761 # Does compiler simultaneously support -c and -o options?
33762 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33764 # Whether or not to add -lc for building shared libraries.
33765 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33767 # Whether or not to disallow shared libs when runtime libs are static.
33768 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33770 # Compiler flag to allow reflexive dlopens.
33771 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33773 # Compiler flag to generate shared objects directly from archives.
33774 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33776 # Whether the compiler copes with passing no objects directly.
33777 compiler_needs_object=$lt_compiler_needs_object_CXX
33779 # Create an old-style archive from a shared archive.
33780 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33782 # Create a temporary old-style archive to link instead of a shared archive.
33783 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33785 # Commands used to build a shared archive.
33786 archive_cmds=$lt_archive_cmds_CXX
33787 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33789 # Commands used to build a loadable module if different from building
33790 # a shared archive.
33791 module_cmds=$lt_module_cmds_CXX
33792 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33794 # Whether we are building with GNU ld or not.
33795 with_gnu_ld=$lt_with_gnu_ld_CXX
33797 # Flag that allows shared libraries with undefined symbols to be built.
33798 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33800 # Flag that enforces no undefined symbols.
33801 no_undefined_flag=$lt_no_undefined_flag_CXX
33803 # Flag to hardcode \$libdir into a binary during linking.
33804 # This must work even if \$libdir does not exist
33805 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33807 # If ld is used when linking, flag to hardcode \$libdir into a binary
33808 # during linking. This must work even if \$libdir does not exist.
33809 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
33811 # Whether we need a single "-rpath" flag with a separated argument.
33812 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33814 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33815 # DIR into the resulting binary.
33816 hardcode_direct=$hardcode_direct_CXX
33818 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33819 # DIR into the resulting binary and the resulting library dependency is
33820 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33821 # library is relocated.
33822 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33824 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33825 # into the resulting binary.
33826 hardcode_minus_L=$hardcode_minus_L_CXX
33828 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33829 # into the resulting binary.
33830 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33832 # Set to "yes" if building a shared library automatically hardcodes DIR
33833 # into the library and all subsequent libraries and executables linked
33835 hardcode_automatic=$hardcode_automatic_CXX
33837 # Set to yes if linker adds runtime paths of dependent libraries
33838 # to runtime path list.
33839 inherit_rpath=$inherit_rpath_CXX
33841 # Whether libtool must link a program against all its dependency libraries.
33842 link_all_deplibs=$link_all_deplibs_CXX
33844 # Fix the shell variable \$srcfile for the compiler.
33845 fix_srcfile_path=$lt_fix_srcfile_path_CXX
33847 # Set to "yes" if exported symbols are required.
33848 always_export_symbols=$always_export_symbols_CXX
33850 # The commands to list exported symbols.
33851 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33853 # Symbols that should not be listed in the preloaded symbols.
33854 exclude_expsyms=$lt_exclude_expsyms_CXX
33856 # Symbols that must always be exported.
33857 include_expsyms=$lt_include_expsyms_CXX
33859 # Commands necessary for linking programs (against libraries) with templates.
33860 prelink_cmds=$lt_prelink_cmds_CXX
33862 # Specify filename containing input files.
33863 file_list_spec=$lt_file_list_spec_CXX
33865 # How to hardcode a shared library path into an executable.
33866 hardcode_action=$hardcode_action_CXX
33868 # The directories searched by this compiler when creating a shared library.
33869 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33871 # Dependencies to place before and after the objects being linked to
33872 # create a shared library.
33873 predep_objects=$lt_predep_objects_CXX
33874 postdep_objects=$lt_postdep_objects_CXX
33875 predeps=$lt_predeps_CXX
33876 postdeps=$lt_postdeps_CXX
33878 # The library search path used internally by the compiler when linking
33879 # a shared library.
33880 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33882 # ### END LIBTOOL TAG CONFIG: CXX
33886 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
33887 "Magick-config.in":C) chmod +x magick/Magick-config ;;
33888 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
33889 "Wand-config.in":C) chmod +x wand/Wand-config ;;
33890 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
33891 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
33899 ac_clean_files=$ac_clean_files_save
33901 test $ac_write_fail = 0 ||
33902 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
33905 # configure is writing to config.log, and then calls config.status.
33906 # config.status does its own redirection, appending to config.log.
33907 # Unfortunately, on DOS this fails, as config.log is still kept open
33908 # by configure, so config.status won't be able to write to it; its
33909 # output is simply discarded. So we exec the FD to /dev/null,
33910 # effectively closing config.log, so it can be properly (re)opened and
33911 # appended to by config.status. When coming back to configure, we
33912 # need to make the FD available again.
33913 if test "$no_create" != yes; then
33915 ac_config_status_args=
33916 test "$silent" = yes &&
33917 ac_config_status_args="$ac_config_status_args --quiet"
33919 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33921 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33922 # would make configure fail if this is the last instruction.
33923 $ac_cs_success || as_fn_exit $?
33925 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33927 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33931 rm -f magick-version
33933 result_ghostscript_font_dir='none'
33934 if test "${ghostscript_font_dir}x" != 'x'; then
33935 result_ghostscript_font_dir=$ghostscript_font_dir
33938 result_windows_font_dir='none'
33939 if test "${windows_font_dir}x" != 'x'; then
33940 result_windows_font_dir=${windows_font_dir}
33943 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
33944 ImageMagick is configured as follows. Please verify that this configuration
33945 matches your expectations.
33947 Host system type: $host
33948 Build system type: $build
33951 -------------------------------------------------------------------------------
33952 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
33953 Static libraries --enable-static=$enable_static $libtool_build_static_libs
33954 Module support --with-modules=$with_modules $with_modules
33955 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
33956 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
33957 High Dynamic Range Imagery
33958 --enable-hdri=$enable_hdri $enable_hdri
33960 Delegate Configuration:
33961 BZLIB --with-bzlib=$with_bzlib $have_bzlib
33962 Autotrace --with-autotrace=$with_autotrace $have_autotrace
33963 DJVU --with-djvu=$with_djvu $have_djvu
33964 DPS --with-dps=$with_dps $have_dps
33965 FFTW --with-fftw=$with_fftw $have_fftw
33966 FlashPIX --with-fpx=$with_fpx $have_fpx
33967 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
33968 FreeType --with-freetype=$with_freetype $have_freetype
33969 GhostPCL None $PCLDelegate ($PCLVersion)
33970 GhostXPS None $XPSDelegate ($XPSVersion)
33971 Ghostscript None $PSDelegate ($GSVersion)
33972 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
33973 Ghostscript lib --with-gslib=$with_gslib $have_gslib
33974 Graphviz --with-gvc=$with_gvc $have_gvc
33975 JBIG --with-jbig=$with_jbig $have_jbig
33976 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
33977 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
33978 LCMS --with-lcms=$with_lcms $have_lcms
33979 LQR --with-lqr=$with_lqr $have_lqr
33980 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
33981 OpenEXR --with-openexr=$with_openexr $have_openexr
33982 PERL --with-perl=$with_perl $have_perl
33983 PNG --with-png=$with_png $have_png
33984 RSVG --with-rsvg=$with_rsvg $have_rsvg
33985 TIFF --with-tiff=$with_tiff $have_tiff
33986 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
33987 WMF --with-wmf=$with_wmf $have_wmf
33988 X11 --with-x=$with_x $have_x
33989 XML --with-xml=$with_xml $have_xml
33990 ZLIB --with-zlib=$with_zlib $have_zlib
33993 X_CFLAGS = $X_CFLAGS
33994 X_PRE_LIBS = $X_PRE_LIBS
33996 X_EXTRA_LIBS = $X_EXTRA_LIBS
33998 Options used to compile and link:
33999 PREFIX = $PREFIX_DIR
34000 EXEC-PREFIX = $EXEC_PREFIX_DIR
34001 VERSION = $PACKAGE_VERSION
34004 CPPFLAGS = $MAGICK_CPPFLAGS
34005 PCFLAGS = $MAGICK_PCFLAGS
34008 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
34009 LIBS = $MAGICK_LIBS
34011 CXXFLAGS = $CXXFLAGS
34014 ImageMagick is configured as follows. Please verify that this configuration
34015 matches your expectations.
34017 Host system type: $host
34018 Build system type: $build
34021 -------------------------------------------------------------------------------
34022 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
34023 Static libraries --enable-static=$enable_static $libtool_build_static_libs
34024 Module support --with-modules=$with_modules $with_modules
34025 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
34026 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
34027 High Dynamic Range Imagery
34028 --enable-hdri=$enable_hdri $enable_hdri
34030 Delegate Configuration:
34031 BZLIB --with-bzlib=$with_bzlib $have_bzlib
34032 Autotrace --with-autotrace=$with_autotrace $have_autotrace
34033 DJVU --with-djvu=$with_djvu $have_djvu
34034 DPS --with-dps=$with_dps $have_dps
34035 FFTW --with-fftw=$with_fftw $have_fftw
34036 FlashPIX --with-fpx=$with_fpx $have_fpx
34037 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
34038 FreeType --with-freetype=$with_freetype $have_freetype
34039 GhostPCL None $PCLDelegate ($PCLVersion)
34040 GhostXPS None $XPSDelegate ($XPSVersion)
34041 Ghostscript None $PSDelegate ($GSVersion)
34042 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
34043 Ghostscript lib --with-gslib=$with_gslib $have_gslib
34044 Graphviz --with-gvc=$with_gvc $have_gvc
34045 JBIG --with-jbig=$with_jbig $have_jbig
34046 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
34047 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
34048 LCMS --with-lcms=$with_lcms $have_lcms
34049 LQR --with-lqr=$with_lqr $have_lqr
34050 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
34051 OpenEXR --with-openexr=$with_openexr $have_openexr
34052 PERL --with-perl=$with_perl $have_perl
34053 PNG --with-png=$with_png $have_png
34054 RSVG --with-rsvg=$with_rsvg $have_rsvg
34055 TIFF --with-tiff=$with_tiff $have_tiff
34056 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
34057 WMF --with-wmf=$with_wmf $have_wmf
34058 X11 --with-x=$with_x $have_x
34059 XML --with-xml=$with_xml $have_xml
34060 ZLIB --with-zlib=$with_zlib $have_zlib
34063 X_CFLAGS = $X_CFLAGS
34064 X_PRE_LIBS = $X_PRE_LIBS
34066 X_EXTRA_LIBS = $X_EXTRA_LIBS
34068 Options used to compile and link:
34069 PREFIX = $PREFIX_DIR
34070 EXEC-PREFIX = $EXEC_PREFIX_DIR
34071 VERSION = $PACKAGE_VERSION
34074 CPPFLAGS = $MAGICK_CPPFLAGS
34075 PCFLAGS = $MAGICK_PCFLAGS
34078 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
34079 LIBS = $MAGICK_LIBS
34081 CXXFLAGS = $CXXFLAGS