2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for ImageMagick 6.6.4.
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.6.4'
709 PACKAGE_STRING='ImageMagick 6.6.4'
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
770 PERL_SUPPORTS_DESTDIR
771 WITH_PERL_DYNAMIC_FALSE
772 WITH_PERL_DYNAMIC_TRUE
773 WITH_PERL_STATIC_FALSE
774 WITH_PERL_STATIC_TRUE
841 GnuplotDecodeDelegate
855 BlenderDecodeDelegate
857 AutotraceDecodeDelegate
888 OPENEXR_DELEGATE_FALSE
889 OPENEXR_DELEGATE_TRUE
916 FREETYPE_DELEGATE_FALSE
917 FREETYPE_DELEGATE_TRUE
919 FONTCONFIG_DELEGATE_FALSE
920 FONTCONFIG_DELEGATE_TRUE
935 AUTOTRACE_DELEGATE_FALSE
936 AUTOTRACE_DELEGATE_TRUE
961 WITH_MAGICK_PLUS_PLUS_FALSE
962 WITH_MAGICK_PLUS_PLUS_TRUE
977 LIBRARY_EXTRA_CPPFLAGS
978 MODULE_EXTRA_CPPFLAGS
983 MAINTAINER_MODE_FALSE
991 WITH_SHARED_LIBS_FALSE
992 WITH_SHARED_LIBS_TRUE
995 CONVENIENCE_LTDL_FALSE
996 CONVENIENCE_LTDL_TRUE
1000 sys_symbol_underscore
1041 WIN32_NATIVE_BUILD_FALSE
1042 WIN32_NATIVE_BUILD_TRUE
1043 WINGDI32_DELEGATE_FALSE
1044 WINGDI32_DELEGATE_TRUE
1051 am__fastdepCXX_FALSE
1077 MAGICK_FILTER_MODULE_PATH
1078 MAGICK_CONFIGURE_BUILD_PATH
1079 MAGICK_CONFIGURE_SRC_PATH
1080 MAGICK_CODER_MODULE_PATH
1095 CONFIG_STATUS_DEPENDENCIES
1096 MAGICK_LIB_VERSION_NUMBER
1097 MAGICK_LIB_VERSION_TEXT
1100 AM_DEFAULT_VERBOSITY
1109 INSTALL_STRIP_PROGRAM
1124 PACKAGE_VERSION_ADDENDUM
1125 PACKAGE_RELEASE_DATE
1126 PACKAGE_LIB_VERSION_NUMBER
1130 MAGICK_LIBRARY_VERSION_INFO
1131 MAGICK_LIBRARY_CURRENT_MIN
1133 MAGICK_LIBRARY_REVISION
1134 MAGICK_LIBRARY_CURRENT
1136 MAGICK_TARGET_VENDOR
1151 DISTCHECK_CONFIG_FLAGS
1179 program_transform_name
1192 enable_option_checking
1194 enable_dependency_tracking
1197 enable_bounds_checking
1198 enable_osx_universal_binary
1213 enable_delegate_build
1220 enable_maintainer_mode
1230 with_magick_plus_plus
1241 with_dejavu_font_dir
1260 with_windows_font_dir
1264 ac_precious_vars='build_alias
1295 # Initialize some variables set by options.
1297 ac_init_version=false
1298 ac_unrecognized_opts=
1299 ac_unrecognized_sep=
1300 # The variables have the same names as the options, with
1301 # dashes changed to underlines.
1302 cache_file=/dev/null
1309 program_transform_name=s,x,x,
1317 # Installation directory options.
1318 # These are left unexpanded so users can "make install exec_prefix=/foo"
1319 # and all the variables that are supposed to be based on exec_prefix
1320 # by default will actually change.
1321 # Use braces instead of parens because sh, perl, etc. also accept them.
1322 # (The list follows the same order as the GNU Coding Standards.)
1323 bindir='${exec_prefix}/bin'
1324 sbindir='${exec_prefix}/sbin'
1325 libexecdir='${exec_prefix}/libexec'
1326 datarootdir='${prefix}/share'
1327 datadir='${datarootdir}'
1328 sysconfdir='${prefix}/etc'
1329 sharedstatedir='${prefix}/com'
1330 localstatedir='${prefix}/var'
1331 includedir='${prefix}/include'
1332 oldincludedir='/usr/include'
1333 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1334 infodir='${datarootdir}/info'
1339 libdir='${exec_prefix}/lib'
1340 localedir='${datarootdir}/locale'
1341 mandir='${datarootdir}/man'
1347 # If the previous option needs an argument, assign it.
1348 if test -n "$ac_prev"; then
1349 eval $ac_prev=\$ac_option
1355 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1359 # Accept the important Cygnus configure options, so we can diagnose typos.
1361 case $ac_dashdash$ac_option in
1365 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1367 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1368 bindir=$ac_optarg ;;
1370 -build | --build | --buil | --bui | --bu)
1371 ac_prev=build_alias ;;
1372 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1373 build_alias=$ac_optarg ;;
1375 -cache-file | --cache-file | --cache-fil | --cache-fi \
1376 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1377 ac_prev=cache_file ;;
1378 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1379 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1380 cache_file=$ac_optarg ;;
1382 --config-cache | -C)
1383 cache_file=config.cache ;;
1385 -datadir | --datadir | --datadi | --datad)
1387 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1388 datadir=$ac_optarg ;;
1390 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1391 | --dataroo | --dataro | --datar)
1392 ac_prev=datarootdir ;;
1393 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1394 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1395 datarootdir=$ac_optarg ;;
1397 -disable-* | --disable-*)
1398 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1399 # Reject names that are not valid shell variable names.
1400 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1401 as_fn_error "invalid feature name: $ac_useropt"
1402 ac_useropt_orig=$ac_useropt
1403 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1404 case $ac_user_opts in
1406 "enable_$ac_useropt"
1408 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1409 ac_unrecognized_sep=', ';;
1411 eval enable_$ac_useropt=no ;;
1413 -docdir | --docdir | --docdi | --doc | --do)
1415 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1416 docdir=$ac_optarg ;;
1418 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1420 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1421 dvidir=$ac_optarg ;;
1423 -enable-* | --enable-*)
1424 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1425 # Reject names that are not valid shell variable names.
1426 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1427 as_fn_error "invalid feature name: $ac_useropt"
1428 ac_useropt_orig=$ac_useropt
1429 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1430 case $ac_user_opts in
1432 "enable_$ac_useropt"
1434 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1435 ac_unrecognized_sep=', ';;
1437 eval enable_$ac_useropt=\$ac_optarg ;;
1439 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1440 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1441 | --exec | --exe | --ex)
1442 ac_prev=exec_prefix ;;
1443 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1444 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1445 | --exec=* | --exe=* | --ex=*)
1446 exec_prefix=$ac_optarg ;;
1448 -gas | --gas | --ga | --g)
1449 # Obsolete; use --with-gas.
1452 -help | --help | --hel | --he | -h)
1453 ac_init_help=long ;;
1454 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1455 ac_init_help=recursive ;;
1456 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1457 ac_init_help=short ;;
1459 -host | --host | --hos | --ho)
1460 ac_prev=host_alias ;;
1461 -host=* | --host=* | --hos=* | --ho=*)
1462 host_alias=$ac_optarg ;;
1464 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1466 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1468 htmldir=$ac_optarg ;;
1470 -includedir | --includedir | --includedi | --included | --include \
1471 | --includ | --inclu | --incl | --inc)
1472 ac_prev=includedir ;;
1473 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1474 | --includ=* | --inclu=* | --incl=* | --inc=*)
1475 includedir=$ac_optarg ;;
1477 -infodir | --infodir | --infodi | --infod | --info | --inf)
1479 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1480 infodir=$ac_optarg ;;
1482 -libdir | --libdir | --libdi | --libd)
1484 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1485 libdir=$ac_optarg ;;
1487 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1488 | --libexe | --libex | --libe)
1489 ac_prev=libexecdir ;;
1490 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1491 | --libexe=* | --libex=* | --libe=*)
1492 libexecdir=$ac_optarg ;;
1494 -localedir | --localedir | --localedi | --localed | --locale)
1495 ac_prev=localedir ;;
1496 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1497 localedir=$ac_optarg ;;
1499 -localstatedir | --localstatedir | --localstatedi | --localstated \
1500 | --localstate | --localstat | --localsta | --localst | --locals)
1501 ac_prev=localstatedir ;;
1502 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1503 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1504 localstatedir=$ac_optarg ;;
1506 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1508 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1509 mandir=$ac_optarg ;;
1511 -nfp | --nfp | --nf)
1512 # Obsolete; use --without-fp.
1515 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1516 | --no-cr | --no-c | -n)
1519 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1520 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1523 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1524 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1525 | --oldin | --oldi | --old | --ol | --o)
1526 ac_prev=oldincludedir ;;
1527 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1528 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1529 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1530 oldincludedir=$ac_optarg ;;
1532 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1534 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1535 prefix=$ac_optarg ;;
1537 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1538 | --program-pre | --program-pr | --program-p)
1539 ac_prev=program_prefix ;;
1540 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1541 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1542 program_prefix=$ac_optarg ;;
1544 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1545 | --program-suf | --program-su | --program-s)
1546 ac_prev=program_suffix ;;
1547 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1548 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1549 program_suffix=$ac_optarg ;;
1551 -program-transform-name | --program-transform-name \
1552 | --program-transform-nam | --program-transform-na \
1553 | --program-transform-n | --program-transform- \
1554 | --program-transform | --program-transfor \
1555 | --program-transfo | --program-transf \
1556 | --program-trans | --program-tran \
1557 | --progr-tra | --program-tr | --program-t)
1558 ac_prev=program_transform_name ;;
1559 -program-transform-name=* | --program-transform-name=* \
1560 | --program-transform-nam=* | --program-transform-na=* \
1561 | --program-transform-n=* | --program-transform-=* \
1562 | --program-transform=* | --program-transfor=* \
1563 | --program-transfo=* | --program-transf=* \
1564 | --program-trans=* | --program-tran=* \
1565 | --progr-tra=* | --program-tr=* | --program-t=*)
1566 program_transform_name=$ac_optarg ;;
1568 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1570 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1571 pdfdir=$ac_optarg ;;
1573 -psdir | --psdir | --psdi | --psd | --ps)
1575 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1578 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1579 | -silent | --silent | --silen | --sile | --sil)
1582 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1584 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1586 sbindir=$ac_optarg ;;
1588 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1589 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1590 | --sharedst | --shareds | --shared | --share | --shar \
1592 ac_prev=sharedstatedir ;;
1593 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1594 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1595 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1597 sharedstatedir=$ac_optarg ;;
1599 -site | --site | --sit)
1601 -site=* | --site=* | --sit=*)
1604 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1606 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1607 srcdir=$ac_optarg ;;
1609 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1610 | --syscon | --sysco | --sysc | --sys | --sy)
1611 ac_prev=sysconfdir ;;
1612 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1613 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1614 sysconfdir=$ac_optarg ;;
1616 -target | --target | --targe | --targ | --tar | --ta | --t)
1617 ac_prev=target_alias ;;
1618 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1619 target_alias=$ac_optarg ;;
1621 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1624 -version | --version | --versio | --versi | --vers | -V)
1625 ac_init_version=: ;;
1628 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1629 # Reject names that are not valid shell variable names.
1630 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1631 as_fn_error "invalid package name: $ac_useropt"
1632 ac_useropt_orig=$ac_useropt
1633 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1634 case $ac_user_opts in
1638 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1639 ac_unrecognized_sep=', ';;
1641 eval with_$ac_useropt=\$ac_optarg ;;
1643 -without-* | --without-*)
1644 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1645 # Reject names that are not valid shell variable names.
1646 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1647 as_fn_error "invalid package name: $ac_useropt"
1648 ac_useropt_orig=$ac_useropt
1649 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1650 case $ac_user_opts in
1654 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1655 ac_unrecognized_sep=', ';;
1657 eval with_$ac_useropt=no ;;
1660 # Obsolete; use --with-x.
1663 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1664 | --x-incl | --x-inc | --x-in | --x-i)
1665 ac_prev=x_includes ;;
1666 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1667 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1668 x_includes=$ac_optarg ;;
1670 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1671 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1672 ac_prev=x_libraries ;;
1673 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1674 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1675 x_libraries=$ac_optarg ;;
1677 -*) as_fn_error "unrecognized option: \`$ac_option'
1678 Try \`$0 --help' for more information."
1682 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1683 # Reject names that are not valid shell variable names.
1684 case $ac_envvar in #(
1685 '' | [0-9]* | *[!_$as_cr_alnum]* )
1686 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1688 eval $ac_envvar=\$ac_optarg
1689 export $ac_envvar ;;
1692 # FIXME: should be removed in autoconf 3.0.
1693 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1694 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1695 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1696 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1702 if test -n "$ac_prev"; then
1703 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1704 as_fn_error "missing argument to $ac_option"
1707 if test -n "$ac_unrecognized_opts"; then
1708 case $enable_option_checking in
1710 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1711 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1715 # Check all directory arguments for consistency.
1716 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1717 datadir sysconfdir sharedstatedir localstatedir includedir \
1718 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1719 libdir localedir mandir
1721 eval ac_val=\$$ac_var
1722 # Remove trailing slashes.
1725 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1726 eval $ac_var=\$ac_val;;
1728 # Be sure to have absolute directory names.
1730 [\\/$]* | ?:[\\/]* ) continue;;
1731 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1733 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1736 # There might be people who depend on the old broken behavior: `$host'
1737 # used to hold the argument of --host etc.
1738 # FIXME: To remove some day.
1741 target=$target_alias
1743 # FIXME: To remove some day.
1744 if test "x$host_alias" != x; then
1745 if test "x$build_alias" = x; then
1746 cross_compiling=maybe
1747 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1748 If a cross compiler is detected then cross compile mode will be used." >&2
1749 elif test "x$build_alias" != "x$host_alias"; then
1755 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1757 test "$silent" = yes && exec 6>/dev/null
1760 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1761 ac_ls_di=`ls -di .` &&
1762 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1763 as_fn_error "working directory cannot be determined"
1764 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1765 as_fn_error "pwd does not report name of working directory"
1768 # Find the source files, if location was not specified.
1769 if test -z "$srcdir"; then
1770 ac_srcdir_defaulted=yes
1771 # Try the directory containing this script, then the parent directory.
1772 ac_confdir=`$as_dirname -- "$as_myself" ||
1773 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1774 X"$as_myself" : 'X\(//\)[^/]' \| \
1775 X"$as_myself" : 'X\(//\)$' \| \
1776 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1777 $as_echo X"$as_myself" |
1778 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1796 if test ! -r "$srcdir/$ac_unique_file"; then
1800 ac_srcdir_defaulted=no
1802 if test ! -r "$srcdir/$ac_unique_file"; then
1803 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1804 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1806 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1808 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1810 # When building in place, set srcdir=.
1811 if test "$ac_abs_confdir" = "$ac_pwd"; then
1814 # Remove unnecessary trailing slashes from srcdir.
1815 # Double slashes in file names in object file debugging info
1816 # mess up M-x gdb in Emacs.
1818 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1820 for ac_var in $ac_precious_vars; do
1821 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1822 eval ac_env_${ac_var}_value=\$${ac_var}
1823 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1824 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1828 # Report the --help message.
1830 if test "$ac_init_help" = "long"; then
1831 # Omit some internal or obsolete options to make the list less imposing.
1832 # This message is too long to be a string in the A/UX 3.1 sh.
1834 \`configure' configures ImageMagick 6.6.4 to adapt to many kinds of systems.
1836 Usage: $0 [OPTION]... [VAR=VALUE]...
1838 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1839 VAR=VALUE. See below for descriptions of some of the useful variables.
1841 Defaults for the options are specified in brackets.
1844 -h, --help display this help and exit
1845 --help=short display options specific to this package
1846 --help=recursive display the short help of all the included packages
1847 -V, --version display version information and exit
1848 -q, --quiet, --silent do not print \`checking...' messages
1849 --cache-file=FILE cache test results in FILE [disabled]
1850 -C, --config-cache alias for \`--cache-file=config.cache'
1851 -n, --no-create do not create output files
1852 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1854 Installation directories:
1855 --prefix=PREFIX install architecture-independent files in PREFIX
1856 [$ac_default_prefix]
1857 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1860 By default, \`make install' will install all the files in
1861 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1862 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1863 for instance \`--prefix=\$HOME'.
1865 For better control, use the options below.
1867 Fine tuning of the installation directories:
1868 --bindir=DIR user executables [EPREFIX/bin]
1869 --sbindir=DIR system admin executables [EPREFIX/sbin]
1870 --libexecdir=DIR program executables [EPREFIX/libexec]
1871 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1872 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1873 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1874 --libdir=DIR object code libraries [EPREFIX/lib]
1875 --includedir=DIR C header files [PREFIX/include]
1876 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1877 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1878 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1879 --infodir=DIR info documentation [DATAROOTDIR/info]
1880 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1881 --mandir=DIR man documentation [DATAROOTDIR/man]
1882 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1883 --htmldir=DIR html documentation [DOCDIR]
1884 --dvidir=DIR dvi documentation [DOCDIR]
1885 --pdfdir=DIR pdf documentation [DOCDIR]
1886 --psdir=DIR ps documentation [DOCDIR]
1892 --program-prefix=PREFIX prepend PREFIX to installed program names
1893 --program-suffix=SUFFIX append SUFFIX to installed program names
1894 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1897 --x-includes=DIR X include files are in DIR
1898 --x-libraries=DIR X library files are in DIR
1901 --build=BUILD configure for building on BUILD [guessed]
1902 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1903 --target=TARGET configure for building compilers for TARGET [HOST]
1907 if test -n "$ac_init_help"; then
1908 case $ac_init_help in
1909 short | recursive ) echo "Configuration of ImageMagick 6.6.4:";;
1914 --disable-option-checking ignore unrecognized --enable/--with options
1915 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1916 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1917 --enable-silent-rules less verbose build output (undo: `make V=1')
1918 --disable-silent-rules verbose build output (undo: `make V=0')
1919 --disable-dependency-tracking speeds up one-time build
1920 --enable-dependency-tracking do not reject slow dependency extractors
1921 --bounds-checking enable run-time bounds-checking
1922 --enable-osx-universal-binary
1923 build universal binary on OS X [[default=no]]
1924 --disable-openmp do not use OpenMP
1925 --disable-opencl do not use OpenCL
1926 --disable-largefile omit support for large files
1927 --enable-shared[=PKGS] build shared libraries [default=yes]
1928 --enable-static[=PKGS] build static libraries [default=yes]
1929 --enable-fast-install[=PKGS]
1930 optimize for fast installation [default=yes]
1931 --disable-libtool-lock avoid locking (might break parallel builds)
1932 --enable-ltdl-install install libltdl
1933 --enable-delegate-build look for delegate libraries in build directory
1934 --disable-deprecated exclude deprecated methods in MagickCore and
1936 --disable-installed Formally install ImageMagick under PREFIX
1937 --disable-cipher disable enciphering and deciphering image pixels
1938 --enable-embeddable enable self-contained, embeddable,
1939 zero-configuration ImageMagick
1940 --enable-hdri accurately represent the wide range of intensity
1941 levels found in real scenes
1942 --disable-assert disable assert() statements in build
1943 --enable-maintainer-mode enable make rules and dependencies not useful
1944 (and sometimes confusing) to the casual installer
1945 --enable-ccmalloc enable 'ccmalloc' memory debug support
1946 --enable-efence enable 'efence' memory debug support
1947 --enable-prof enable 'prof' profiling support
1948 --enable-gprof enable 'gprof' profiling support
1949 --enable-gcov enable 'gcov' profiling support
1950 --disable-assert turn off assertions
1953 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1954 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1955 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1956 --with-dmalloc use dmalloc, as in
1957 http://www.dmalloc.com/dmalloc.tar.gz
1958 --without-threads disable threads support
1959 --with-pic try to use only PIC/non-PIC objects [default=use
1961 --with-included-ltdl use the GNU ltdl sources included here
1962 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1963 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1964 --with-modules enable building dynamically loadable modules
1965 --with-method-prefix=PREFIX
1966 prefix MagickCore API methods
1967 --with-quantum-depth=DEPTH
1968 number of bits in a pixel quantum (default 16)
1969 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1971 --with-frozenpaths freeze delegate paths
1972 --without-magick-plus-plus
1973 disable build/install of Magick++
1974 --with-perl enable build/install of PerlMagick
1975 --with-perl-options=OPTIONS
1976 options to pass on command-line when generating
1977 PerlMagick's build file
1978 --with-umem enable umem memory allocation library support
1979 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1980 --without-bzlib disable BZLIB support
1981 --with-x use the X Window System
1982 --without-zlib disable ZLIB support
1983 --with-autotrace enable autotrace support
1984 --without-dps disable Display Postscript support
1985 --without-djvu disable DjVu support
1986 --with-dejavu-font-dir=DIR
1987 DejaVu font directory
1988 --without-fftw disable FFTW support
1989 --without-fpx disable FlashPIX support
1990 --without-fontconfig disable fontconfig support
1991 --without-freetype disable Freetype support
1992 --without-gslib enable Ghostscript library support
1993 --with-fontpath=DIR prepend to default font search path
1994 --with-gs-font-dir=DIR Ghostscript font directory
1995 --without-gvc disable GVC support
1996 --without-jbig disable JBIG support
1997 --without-jpeg disable JPEG support
1998 --without-jp2 disable JPEG-2000 support
1999 --without-lcms disable lcms (v1.1X) support
2000 --without-lcms2 disable lcms (v2.X) support
2001 --without-lqr disable Liquid Rescale support
2002 --without-openexr disable OpenEXR support
2003 --without-png disable PNG support
2004 --without-rsvg disable RSVG support
2005 --without-tiff disable TIFF support
2006 --with-windows-font-dir=DIR
2007 directory containing MS-Windows fonts
2008 --without-wmf disable WMF support
2009 --without-xml disable XML support
2011 Some influential environment variables:
2012 CC C compiler command
2013 CFLAGS C compiler flags
2014 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2015 nonstandard directory <lib dir>
2016 LIBS libraries to pass to the linker, e.g. -l<library>
2017 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2018 you have headers in a nonstandard directory <include dir>
2020 CXX C++ compiler command
2021 CXXFLAGS C++ compiler flags
2022 PKG_CONFIG path to pkg-config utility
2023 CXXCPP C++ preprocessor
2024 XMKMF Path to xmkmf, Makefile generator for X Window System
2026 C compiler flags for AUTOTRACE, overriding pkg-config
2028 linker flags for AUTOTRACE, overriding pkg-config
2030 C compiler flags for FONTCONFIG, overriding pkg-config
2032 linker flags for FONTCONFIG, overriding pkg-config
2033 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2034 GVC_LIBS linker flags for GVC, overriding pkg-config
2035 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2036 LQR_LIBS linker flags for LQR, overriding pkg-config
2038 C compiler flags for OPENEXR, overriding pkg-config
2040 linker flags for OPENEXR, overriding pkg-config
2041 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2042 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2044 C compiler flags for CAIRO_SVG, overriding pkg-config
2046 linker flags for CAIRO_SVG, overriding pkg-config
2048 Use these variables to override the choices made by `configure' or to help
2049 it to find libraries and programs with nonstandard names/locations.
2051 Report bugs to <http://www.imagemagick.org>.
2056 if test "$ac_init_help" = "recursive"; then
2057 # If there are subdirs, report their specific --help.
2058 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2059 test -d "$ac_dir" ||
2060 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2065 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2067 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2068 # A ".." for each directory in $ac_dir_suffix.
2069 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2070 case $ac_top_builddir_sub in
2071 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2072 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2075 ac_abs_top_builddir=$ac_pwd
2076 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2077 # for backward compatibility:
2078 ac_top_builddir=$ac_top_build_prefix
2081 .) # We are building in place.
2083 ac_top_srcdir=$ac_top_builddir_sub
2084 ac_abs_top_srcdir=$ac_pwd ;;
2085 [\\/]* | ?:[\\/]* ) # Absolute name.
2086 ac_srcdir=$srcdir$ac_dir_suffix;
2087 ac_top_srcdir=$srcdir
2088 ac_abs_top_srcdir=$srcdir ;;
2090 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2091 ac_top_srcdir=$ac_top_build_prefix$srcdir
2092 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2094 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2096 cd "$ac_dir" || { ac_status=$?; continue; }
2097 # Check for guested configure.
2098 if test -f "$ac_srcdir/configure.gnu"; then
2100 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2101 elif test -f "$ac_srcdir/configure"; then
2103 $SHELL "$ac_srcdir/configure" --help=recursive
2105 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2107 cd "$ac_pwd" || { ac_status=$?; break; }
2111 test -n "$ac_init_help" && exit $ac_status
2112 if $ac_init_version; then
2114 ImageMagick configure 6.6.4
2115 generated by GNU Autoconf 2.65
2117 Copyright (C) 2009 Free Software Foundation, Inc.
2118 This configure script is free software; the Free Software Foundation
2119 gives unlimited permission to copy, distribute and modify it.
2124 ## ------------------------ ##
2125 ## Autoconf initialization. ##
2126 ## ------------------------ ##
2128 # ac_fn_c_try_compile LINENO
2129 # --------------------------
2130 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2131 ac_fn_c_try_compile ()
2133 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134 rm -f conftest.$ac_objext
2135 if { { ac_try="$ac_compile"
2137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2138 *) ac_try_echo=$ac_try;;
2140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2141 $as_echo "$ac_try_echo"; } >&5
2142 (eval "$ac_compile") 2>conftest.err
2144 if test -s conftest.err; then
2145 grep -v '^ *+' conftest.err >conftest.er1
2146 cat conftest.er1 >&5
2147 mv -f conftest.er1 conftest.err
2149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2150 test $ac_status = 0; } && {
2151 test -z "$ac_c_werror_flag" ||
2152 test ! -s conftest.err
2153 } && test -s conftest.$ac_objext; then :
2156 $as_echo "$as_me: failed program was:" >&5
2157 sed 's/^/| /' conftest.$ac_ext >&5
2161 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2162 as_fn_set_status $ac_retval
2164 } # ac_fn_c_try_compile
2166 # ac_fn_c_try_cpp LINENO
2167 # ----------------------
2168 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172 if { { ac_try="$ac_cpp conftest.$ac_ext"
2174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2175 *) ac_try_echo=$ac_try;;
2177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2178 $as_echo "$ac_try_echo"; } >&5
2179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2181 if test -s conftest.err; then
2182 grep -v '^ *+' conftest.err >conftest.er1
2183 cat conftest.er1 >&5
2184 mv -f conftest.er1 conftest.err
2186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2187 test $ac_status = 0; } >/dev/null && {
2188 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2189 test ! -s conftest.err
2193 $as_echo "$as_me: failed program was:" >&5
2194 sed 's/^/| /' conftest.$ac_ext >&5
2198 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2199 as_fn_set_status $ac_retval
2203 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2204 # -------------------------------------------------------
2205 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2206 # the include files in INCLUDES and setting the cache variable VAR
2208 ac_fn_c_check_header_mongrel ()
2210 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2211 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2213 $as_echo_n "checking for $2... " >&6; }
2214 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2215 $as_echo_n "(cached) " >&6
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2219 $as_echo "$ac_res" >&6; }
2221 # Is the header compilable?
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2223 $as_echo_n "checking $2 usability... " >&6; }
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2229 if ac_fn_c_try_compile "$LINENO"; then :
2230 ac_header_compiler=yes
2232 ac_header_compiler=no
2234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2236 $as_echo "$ac_header_compiler" >&6; }
2238 # Is the header present?
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2240 $as_echo_n "checking $2 presence... " >&6; }
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242 /* end confdefs.h. */
2245 if ac_fn_c_try_cpp "$LINENO"; then :
2246 ac_header_preproc=yes
2248 ac_header_preproc=no
2250 rm -f conftest.err conftest.$ac_ext
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2252 $as_echo "$ac_header_preproc" >&6; }
2254 # So? What about this header?
2255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2258 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2260 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2264 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2266 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2268 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2270 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2272 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2274 ## ----------------------------------------- ##
2275 ## Report this to http://www.imagemagick.org ##
2276 ## ----------------------------------------- ##
2278 ) | sed "s/^/$as_me: WARNING: /" >&2
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2282 $as_echo_n "checking for $2... " >&6; }
2283 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2284 $as_echo_n "(cached) " >&6
2286 eval "$3=\$ac_header_compiler"
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2290 $as_echo "$ac_res" >&6; }
2292 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2294 } # ac_fn_c_check_header_mongrel
2296 # ac_fn_c_try_run LINENO
2297 # ----------------------
2298 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2299 # that executables *can* be run.
2302 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2303 if { { ac_try="$ac_link"
2305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2306 *) ac_try_echo=$ac_try;;
2308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2309 $as_echo "$ac_try_echo"; } >&5
2310 (eval "$ac_link") 2>&5
2312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2313 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2314 { { case "(($ac_try" in
2315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2316 *) ac_try_echo=$ac_try;;
2318 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2319 $as_echo "$ac_try_echo"; } >&5
2320 (eval "$ac_try") 2>&5
2322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2323 test $ac_status = 0; }; }; then :
2326 $as_echo "$as_me: program exited with status $ac_status" >&5
2327 $as_echo "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2330 ac_retval=$ac_status
2332 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2333 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2334 as_fn_set_status $ac_retval
2338 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2339 # -------------------------------------------------------
2340 # Tests whether HEADER exists and can be compiled using the include files in
2341 # INCLUDES, setting the cache variable VAR accordingly.
2342 ac_fn_c_check_header_compile ()
2344 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2346 $as_echo_n "checking for $2... " >&6; }
2347 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2348 $as_echo_n "(cached) " >&6
2350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351 /* end confdefs.h. */
2355 if ac_fn_c_try_compile "$LINENO"; then :
2360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2364 $as_echo "$ac_res" >&6; }
2365 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2367 } # ac_fn_c_check_header_compile
2369 # ac_fn_cxx_try_compile LINENO
2370 # ----------------------------
2371 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2372 ac_fn_cxx_try_compile ()
2374 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375 rm -f conftest.$ac_objext
2376 if { { ac_try="$ac_compile"
2378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2379 *) ac_try_echo=$ac_try;;
2381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2382 $as_echo "$ac_try_echo"; } >&5
2383 (eval "$ac_compile") 2>conftest.err
2385 if test -s conftest.err; then
2386 grep -v '^ *+' conftest.err >conftest.er1
2387 cat conftest.er1 >&5
2388 mv -f conftest.er1 conftest.err
2390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2391 test $ac_status = 0; } && {
2392 test -z "$ac_cxx_werror_flag" ||
2393 test ! -s conftest.err
2394 } && test -s conftest.$ac_objext; then :
2397 $as_echo "$as_me: failed program was:" >&5
2398 sed 's/^/| /' conftest.$ac_ext >&5
2402 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2403 as_fn_set_status $ac_retval
2405 } # ac_fn_cxx_try_compile
2407 # ac_fn_c_try_link LINENO
2408 # -----------------------
2409 # Try to link conftest.$ac_ext, and return whether this succeeded.
2412 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2413 rm -f conftest.$ac_objext conftest$ac_exeext
2414 if { { ac_try="$ac_link"
2416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2417 *) ac_try_echo=$ac_try;;
2419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2420 $as_echo "$ac_try_echo"; } >&5
2421 (eval "$ac_link") 2>conftest.err
2423 if test -s conftest.err; then
2424 grep -v '^ *+' conftest.err >conftest.er1
2425 cat conftest.er1 >&5
2426 mv -f conftest.er1 conftest.err
2428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2429 test $ac_status = 0; } && {
2430 test -z "$ac_c_werror_flag" ||
2431 test ! -s conftest.err
2432 } && test -s conftest$ac_exeext && {
2433 test "$cross_compiling" = yes ||
2434 $as_test_x conftest$ac_exeext
2438 $as_echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2443 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2444 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2445 # interfere with the next link command; also delete a directory that is
2446 # left behind by Apple's compiler. We do this before executing the actions.
2447 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2448 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2449 as_fn_set_status $ac_retval
2451 } # ac_fn_c_try_link
2453 # ac_fn_c_check_func LINENO FUNC VAR
2454 # ----------------------------------
2455 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2456 ac_fn_c_check_func ()
2458 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2460 $as_echo_n "checking for $2... " >&6; }
2461 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2462 $as_echo_n "(cached) " >&6
2464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2465 /* end confdefs.h. */
2466 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2468 #define $2 innocuous_$2
2470 /* System header to define __stub macros and hopefully few prototypes,
2471 which can conflict with char $2 (); below.
2472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2473 <limits.h> exists even on freestanding compilers. */
2476 # include <limits.h>
2478 # include <assert.h>
2483 /* Override any GCC internal prototype to avoid an error.
2484 Use char because int might match the return type of a GCC
2485 builtin and then its argument prototype would still apply. */
2490 /* The GNU C library defines this for functions which it implements
2491 to always fail with ENOSYS. Some functions are actually named
2492 something starting with __ and the normal name is an alias. */
2493 #if defined __stub_$2 || defined __stub___$2
2505 if ac_fn_c_try_link "$LINENO"; then :
2510 rm -f core conftest.err conftest.$ac_objext \
2511 conftest$ac_exeext conftest.$ac_ext
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2515 $as_echo "$ac_res" >&6; }
2516 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2518 } # ac_fn_c_check_func
2520 # ac_fn_cxx_try_cpp LINENO
2521 # ------------------------
2522 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2523 ac_fn_cxx_try_cpp ()
2525 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2526 if { { ac_try="$ac_cpp conftest.$ac_ext"
2528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2529 *) ac_try_echo=$ac_try;;
2531 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2532 $as_echo "$ac_try_echo"; } >&5
2533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2535 if test -s conftest.err; then
2536 grep -v '^ *+' conftest.err >conftest.er1
2537 cat conftest.er1 >&5
2538 mv -f conftest.er1 conftest.err
2540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2541 test $ac_status = 0; } >/dev/null && {
2542 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2543 test ! -s conftest.err
2547 $as_echo "$as_me: failed program was:" >&5
2548 sed 's/^/| /' conftest.$ac_ext >&5
2552 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2553 as_fn_set_status $ac_retval
2555 } # ac_fn_cxx_try_cpp
2557 # ac_fn_cxx_try_link LINENO
2558 # -------------------------
2559 # Try to link conftest.$ac_ext, and return whether this succeeded.
2560 ac_fn_cxx_try_link ()
2562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2563 rm -f conftest.$ac_objext conftest$ac_exeext
2564 if { { ac_try="$ac_link"
2566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567 *) ac_try_echo=$ac_try;;
2569 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2570 $as_echo "$ac_try_echo"; } >&5
2571 (eval "$ac_link") 2>conftest.err
2573 if test -s conftest.err; then
2574 grep -v '^ *+' conftest.err >conftest.er1
2575 cat conftest.er1 >&5
2576 mv -f conftest.er1 conftest.err
2578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2579 test $ac_status = 0; } && {
2580 test -z "$ac_cxx_werror_flag" ||
2581 test ! -s conftest.err
2582 } && test -s conftest$ac_exeext && {
2583 test "$cross_compiling" = yes ||
2584 $as_test_x conftest$ac_exeext
2588 $as_echo "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2593 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2594 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2595 # interfere with the next link command; also delete a directory that is
2596 # left behind by Apple's compiler. We do this before executing the actions.
2597 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2598 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2599 as_fn_set_status $ac_retval
2601 } # ac_fn_cxx_try_link
2603 # ac_fn_c_check_decl LINENO SYMBOL VAR
2604 # ------------------------------------
2605 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2606 ac_fn_c_check_decl ()
2608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2610 $as_echo_n "checking whether $2 is declared... " >&6; }
2611 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2612 $as_echo_n "(cached) " >&6
2614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2615 /* end confdefs.h. */
2628 if ac_fn_c_try_compile "$LINENO"; then :
2633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2637 $as_echo "$ac_res" >&6; }
2638 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2640 } # ac_fn_c_check_decl
2642 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2643 # -------------------------------------------
2644 # Tests whether TYPE exists after having included INCLUDES, setting cache
2645 # variable VAR accordingly.
2646 ac_fn_c_check_type ()
2648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2650 $as_echo_n "checking for $2... " >&6; }
2651 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2652 $as_echo_n "(cached) " >&6
2655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2656 /* end confdefs.h. */
2667 if ac_fn_c_try_compile "$LINENO"; then :
2668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2669 /* end confdefs.h. */
2680 if ac_fn_c_try_compile "$LINENO"; then :
2685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2691 $as_echo "$ac_res" >&6; }
2692 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2694 } # ac_fn_c_check_type
2696 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2697 # ----------------------------------------------------
2698 # Tries to find if the field MEMBER exists in type AGGR, after including
2699 # INCLUDES, setting cache variable VAR accordingly.
2700 ac_fn_c_check_member ()
2702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2704 $as_echo_n "checking for $2.$3... " >&6; }
2705 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2706 $as_echo_n "(cached) " >&6
2708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2709 /* end confdefs.h. */
2721 if ac_fn_c_try_compile "$LINENO"; then :
2724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2725 /* end confdefs.h. */
2731 if (sizeof ac_aggr.$3)
2737 if ac_fn_c_try_compile "$LINENO"; then :
2742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2748 $as_echo "$ac_res" >&6; }
2749 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2751 } # ac_fn_c_check_member
2753 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2754 # --------------------------------------------
2755 # Tries to find the compile-time value of EXPR in a program that includes
2756 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2758 ac_fn_c_compute_int ()
2760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2761 if test "$cross_compiling" = yes; then
2762 # Depending upon the size, compute the lo and hi bounds.
2763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2764 /* end confdefs.h. */
2769 static int test_array [1 - 2 * !(($2) >= 0)];
2776 if ac_fn_c_try_compile "$LINENO"; then :
2779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2780 /* end confdefs.h. */
2785 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2792 if ac_fn_c_try_compile "$LINENO"; then :
2793 ac_hi=$ac_mid; break
2795 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2796 if test $ac_lo -le $ac_mid; then
2800 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2806 /* end confdefs.h. */
2811 static int test_array [1 - 2 * !(($2) < 0)];
2818 if ac_fn_c_try_compile "$LINENO"; then :
2821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2822 /* end confdefs.h. */
2827 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2834 if ac_fn_c_try_compile "$LINENO"; then :
2835 ac_lo=$ac_mid; break
2837 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2838 if test $ac_mid -le $ac_hi; then
2842 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2852 # Binary search between lo and hi bounds.
2853 while test "x$ac_lo" != "x$ac_hi"; do
2854 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2856 /* end confdefs.h. */
2861 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2868 if ac_fn_c_try_compile "$LINENO"; then :
2871 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2876 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2881 /* end confdefs.h. */
2883 static long int longval () { return $2; }
2884 static unsigned long int ulongval () { return $2; }
2891 FILE *f = fopen ("conftest.val", "w");
2896 long int i = longval ();
2899 fprintf (f, "%ld", i);
2903 unsigned long int i = ulongval ();
2906 fprintf (f, "%lu", i);
2908 /* Do not output a trailing newline, as this causes \r\n confusion
2909 on some platforms. */
2910 return ferror (f) || fclose (f) != 0;
2916 if ac_fn_c_try_run "$LINENO"; then :
2917 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2922 conftest.$ac_objext conftest.beam conftest.$ac_ext
2926 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2927 as_fn_set_status $ac_retval
2929 } # ac_fn_c_compute_int
2931 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2932 # ---------------------------------------------------------
2933 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2934 # the include files in INCLUDES and setting the cache variable VAR
2936 ac_fn_cxx_check_header_mongrel ()
2938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2939 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2941 $as_echo_n "checking for $2... " >&6; }
2942 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2943 $as_echo_n "(cached) " >&6
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2947 $as_echo "$ac_res" >&6; }
2949 # Is the header compilable?
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2951 $as_echo_n "checking $2 usability... " >&6; }
2952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2953 /* end confdefs.h. */
2957 if ac_fn_cxx_try_compile "$LINENO"; then :
2958 ac_header_compiler=yes
2960 ac_header_compiler=no
2962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2964 $as_echo "$ac_header_compiler" >&6; }
2966 # Is the header present?
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2968 $as_echo_n "checking $2 presence... " >&6; }
2969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2970 /* end confdefs.h. */
2973 if ac_fn_cxx_try_cpp "$LINENO"; then :
2974 ac_header_preproc=yes
2976 ac_header_preproc=no
2978 rm -f conftest.err conftest.$ac_ext
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2980 $as_echo "$ac_header_preproc" >&6; }
2982 # So? What about this header?
2983 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2986 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2988 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2992 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2994 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2996 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2998 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3000 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3002 ## ----------------------------------------- ##
3003 ## Report this to http://www.imagemagick.org ##
3004 ## ----------------------------------------- ##
3006 ) | sed "s/^/$as_me: WARNING: /" >&2
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3010 $as_echo_n "checking for $2... " >&6; }
3011 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
3012 $as_echo_n "(cached) " >&6
3014 eval "$3=\$ac_header_compiler"
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3018 $as_echo "$ac_res" >&6; }
3020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
3022 } # ac_fn_cxx_check_header_mongrel
3023 cat >config.log <<_ACEOF
3024 This file contains any messages produced by compilers while
3025 running configure, to aid debugging if configure makes a mistake.
3027 It was created by ImageMagick $as_me 6.6.4, which was
3028 generated by GNU Autoconf 2.65. Invocation command line was
3040 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3041 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3042 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3043 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3044 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3046 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3047 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3049 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3050 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3051 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3052 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3053 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3054 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3055 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 test -z "$as_dir" && as_dir=.
3064 $as_echo "PATH: $as_dir"
3080 # Keep a trace of the command line.
3081 # Strip out --no-create and --no-recursion so they do not pile up.
3082 # Strip out --silent because we don't want to record it for future runs.
3083 # Also quote any args containing shell meta-characters.
3084 # Make two passes to allow for proper duplicate-argument suppression.
3088 ac_must_keep_next=false
3094 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3095 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3096 | -silent | --silent | --silen | --sile | --sil)
3099 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3102 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3104 as_fn_append ac_configure_args1 " '$ac_arg'"
3105 if test $ac_must_keep_next = true; then
3106 ac_must_keep_next=false # Got value, back to normal.
3109 *=* | --config-cache | -C | -disable-* | --disable-* \
3110 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3111 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3112 | -with-* | --with-* | -without-* | --without-* | --x)
3113 case "$ac_configure_args0 " in
3114 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3117 -* ) ac_must_keep_next=true ;;
3120 as_fn_append ac_configure_args " '$ac_arg'"
3125 { ac_configure_args0=; unset ac_configure_args0;}
3126 { ac_configure_args1=; unset ac_configure_args1;}
3128 # When interrupted or exit'd, cleanup temporary files, and complete
3129 # config.log. We remove comments because anyway the quotes in there
3130 # would cause problems or look ugly.
3131 # WARNING: Use '\'' to represent an apostrophe within the trap.
3132 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3133 trap 'exit_status=$?
3134 # Save into config.log some information that might help in debugging.
3139 ## ---------------- ##
3140 ## Cache variables. ##
3141 ## ---------------- ##
3144 # The following way of writing the cache mishandles newlines in values,
3146 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3147 eval ac_val=\$$ac_var
3151 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3152 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3155 _ | IFS | as_nl) ;; #(
3156 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3157 *) { eval $ac_var=; unset $ac_var;} ;;
3162 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3163 *${as_nl}ac_space=\ *)
3165 "s/'\''/'\''\\\\'\'''\''/g;
3166 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3169 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3177 ## ----------------- ##
3178 ## Output variables. ##
3179 ## ----------------- ##
3182 for ac_var in $ac_subst_vars
3184 eval ac_val=\$$ac_var
3186 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3188 $as_echo "$ac_var='\''$ac_val'\''"
3192 if test -n "$ac_subst_files"; then
3194 ## ------------------- ##
3195 ## File substitutions. ##
3196 ## ------------------- ##
3199 for ac_var in $ac_subst_files
3201 eval ac_val=\$$ac_var
3203 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3205 $as_echo "$ac_var='\''$ac_val'\''"
3210 if test -s confdefs.h; then
3220 test "$ac_signal" != 0 &&
3221 $as_echo "$as_me: caught signal $ac_signal"
3222 $as_echo "$as_me: exit $exit_status"
3224 rm -f core *.core core.conftest.* &&
3225 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3228 for ac_signal in 1 2 13 15; do
3229 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3233 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3234 rm -f -r conftest* confdefs.h
3236 $as_echo "/* confdefs.h */" > confdefs.h
3238 # Predefined preprocessor variables.
3240 cat >>confdefs.h <<_ACEOF
3241 #define PACKAGE_NAME "$PACKAGE_NAME"
3244 cat >>confdefs.h <<_ACEOF
3245 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3248 cat >>confdefs.h <<_ACEOF
3249 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3252 cat >>confdefs.h <<_ACEOF
3253 #define PACKAGE_STRING "$PACKAGE_STRING"
3256 cat >>confdefs.h <<_ACEOF
3257 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3260 cat >>confdefs.h <<_ACEOF
3261 #define PACKAGE_URL "$PACKAGE_URL"
3265 # Let the site file select an alternate cache file if it wants to.
3266 # Prefer an explicitly selected file to automatically selected ones.
3269 if test -n "$CONFIG_SITE"; then
3270 ac_site_file1=$CONFIG_SITE
3271 elif test "x$prefix" != xNONE; then
3272 ac_site_file1=$prefix/share/config.site
3273 ac_site_file2=$prefix/etc/config.site
3275 ac_site_file1=$ac_default_prefix/share/config.site
3276 ac_site_file2=$ac_default_prefix/etc/config.site
3278 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3280 test "x$ac_site_file" = xNONE && continue
3281 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3283 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3284 sed 's/^/| /' "$ac_site_file" >&5
3289 if test -r "$cache_file"; then
3290 # Some versions of bash will fail to source /dev/null (special files
3291 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3292 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3294 $as_echo "$as_me: loading cache $cache_file" >&6;}
3296 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3297 *) . "./$cache_file";;
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3302 $as_echo "$as_me: creating cache $cache_file" >&6;}
3306 as_fn_append ac_header_list " stdlib.h"
3307 as_fn_append ac_header_list " unistd.h"
3308 as_fn_append ac_header_list " sys/param.h"
3309 # Check that the precious variables saved in the cache have kept the same
3311 ac_cache_corrupted=false
3312 for ac_var in $ac_precious_vars; do
3313 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3314 eval ac_new_set=\$ac_env_${ac_var}_set
3315 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3316 eval ac_new_val=\$ac_env_${ac_var}_value
3317 case $ac_old_set,$ac_new_set in
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3320 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3321 ac_cache_corrupted=: ;;
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3324 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3325 ac_cache_corrupted=: ;;
3328 if test "x$ac_old_val" != "x$ac_new_val"; then
3329 # differences in whitespace do not lead to failure.
3330 ac_old_val_w=`echo x $ac_old_val`
3331 ac_new_val_w=`echo x $ac_new_val`
3332 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3334 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3335 ac_cache_corrupted=:
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3338 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3339 eval $ac_var=\$ac_old_val
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3342 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3344 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3347 # Pass precious variables to config.status.
3348 if test "$ac_new_set" = set; then
3350 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3351 *) ac_arg=$ac_var=$ac_new_val ;;
3353 case " $ac_configure_args " in
3354 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3355 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3359 if $ac_cache_corrupted; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3363 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3364 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3366 ## -------------------- ##
3367 ## Main body of script. ##
3368 ## -------------------- ##
3371 ac_cpp='$CPP $CPPFLAGS'
3372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3379 for ac_dir in config "$srcdir"/config; do
3380 for ac_t in install-sh install.sh shtool; do
3381 if test -f "$ac_dir/$ac_t"; then
3383 ac_install_sh="$ac_aux_dir/$ac_t -c"
3388 if test -z "$ac_aux_dir"; then
3389 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
3392 # These three variables are undocumented and unsupported,
3393 # and are intended to be withdrawn in a future Autoconf release.
3394 # They can cause serious problems if a builder's source tree is in a directory
3395 # whose full name contains unusual characters.
3396 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3397 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3398 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3403 ac_config_headers="$ac_config_headers config/config.h"
3406 ac_config_commands="$ac_config_commands magick/magick-config.h"
3408 ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
3412 # Save initial user-tunable values
3415 for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3416 eval isset=\${$var+set}
3417 if test "$isset" = 'set'; then
3418 eval val=$`echo $var`
3419 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3424 CONFIGURE_ARGS="$0 ${ac_configure_args}"
3427 # Source file containing package/library versioning information.
3428 . ${srcdir}/version.sh
3430 echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
3431 # Make sure we can run config.sub.
3432 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3433 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3436 $as_echo_n "checking build system type... " >&6; }
3437 if test "${ac_cv_build+set}" = set; then :
3438 $as_echo_n "(cached) " >&6
3440 ac_build_alias=$build_alias
3441 test "x$ac_build_alias" = x &&
3442 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3443 test "x$ac_build_alias" = x &&
3444 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3445 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3446 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3450 $as_echo "$ac_cv_build" >&6; }
3451 case $ac_cv_build in
3453 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3456 ac_save_IFS=$IFS; IFS='-'
3462 # Remember, the first character of IFS is used to create $*,
3463 # except with old shells:
3466 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3470 $as_echo_n "checking host system type... " >&6; }
3471 if test "${ac_cv_host+set}" = set; then :
3472 $as_echo_n "(cached) " >&6
3474 if test "x$host_alias" = x; then
3475 ac_cv_host=$ac_cv_build
3477 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3478 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3483 $as_echo "$ac_cv_host" >&6; }
3486 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3489 ac_save_IFS=$IFS; IFS='-'
3495 # Remember, the first character of IFS is used to create $*,
3496 # except with old shells:
3499 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3503 $as_echo_n "checking target system type... " >&6; }
3504 if test "${ac_cv_target+set}" = set; then :
3505 $as_echo_n "(cached) " >&6
3507 if test "x$target_alias" = x; then
3508 ac_cv_target=$ac_cv_host
3510 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3511 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3516 $as_echo "$ac_cv_target" >&6; }
3517 case $ac_cv_target in
3519 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3521 target=$ac_cv_target
3522 ac_save_IFS=$IFS; IFS='-'
3528 # Remember, the first character of IFS is used to create $*,
3529 # except with old shells:
3532 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3535 # The aliases save the names the user supplied, while $host etc.
3536 # will get canonicalized.
3537 test -n "$target_alias" &&
3538 test "$program_prefix$program_suffix$program_transform_name" = \
3540 program_prefix=${target_alias}-
3546 MAGICK_TARGET_CPU=$target_cpu
3549 MAGICK_TARGET_VENDOR=$target_vendor
3552 MAGICK_TARGET_OS=$target_os
3555 # Substitute library versioning
3556 MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3558 MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3562 # Ensure that make can run correctly
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3564 $as_echo_n "checking whether build environment is sane... " >&6; }
3567 echo timestamp > conftest.file
3568 # Reject unsafe characters in $srcdir or the absolute working directory
3569 # name. Accept space and tab only in the latter.
3573 *[\\\"\#\$\&\'\`$am_lf]*)
3574 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3577 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3578 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3581 # Do `set' in a subshell so we don't clobber the current shell's
3582 # arguments. Must try -L first in case configure is actually a
3583 # symlink; some systems play weird games with the mod time of symlinks
3584 # (eg FreeBSD returns the mod time of the symlink's containing
3587 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3588 if test "$*" = "X"; then
3590 set X `ls -t "$srcdir/configure" conftest.file`
3593 if test "$*" != "X $srcdir/configure conftest.file" \
3594 && test "$*" != "X conftest.file $srcdir/configure"; then
3596 # If neither matched, then we have a broken ls. This can happen
3597 # if, for instance, CONFIG_SHELL is bash and it inherits a
3598 # broken ls alias from the environment. This has actually
3599 # happened. Such a system could not be considered "sane".
3600 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3601 alias in your environment" "$LINENO" 5
3604 test "$2" = conftest.file
3610 as_fn_error "newly created file is older than distributed files!
3611 Check your system clock" "$LINENO" 5
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3614 $as_echo "yes" >&6; }
3616 am__api_version='1.11'
3618 # Find a good install program. We prefer a C program (faster),
3619 # so one script is as good as another. But avoid the broken or
3620 # incompatible versions:
3621 # SysV /etc/install, /usr/sbin/install
3622 # SunOS /usr/etc/install
3623 # IRIX /sbin/install
3625 # AmigaOS /C/install, which installs bootblocks on floppy discs
3626 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3627 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3628 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3629 # OS/2's system install, which has a completely different semantic
3630 # ./install, which can be erroneously created by make from ./install.sh.
3631 # Reject install programs that cannot install multiple files.
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3633 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3634 if test -z "$INSTALL"; then
3635 if test "${ac_cv_path_install+set}" = set; then :
3636 $as_echo_n "(cached) " >&6
3638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 test -z "$as_dir" && as_dir=.
3643 # Account for people who put trailing slashes in PATH elements.
3644 case $as_dir/ in #((
3645 ./ | .// | /[cC]/* | \
3646 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3647 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3650 # OSF1 and SCO ODT 3.0 have their own names for install.
3651 # Don't use installbsd from OSF since it installs stuff as root
3653 for ac_prog in ginstall scoinst install; do
3654 for ac_exec_ext in '' $ac_executable_extensions; do
3655 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3656 if test $ac_prog = install &&
3657 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3658 # AIX install. It has an incompatible calling convention.
3660 elif test $ac_prog = install &&
3661 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3662 # program-specific install script used by HP pwplus--don't use.
3665 rm -rf conftest.one conftest.two conftest.dir
3666 echo one > conftest.one
3667 echo two > conftest.two
3669 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3670 test -s conftest.one && test -s conftest.two &&
3671 test -s conftest.dir/conftest.one &&
3672 test -s conftest.dir/conftest.two
3674 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3687 rm -rf conftest.one conftest.two conftest.dir
3690 if test "${ac_cv_path_install+set}" = set; then
3691 INSTALL=$ac_cv_path_install
3693 # As a last resort, use the slow shell script. Don't cache a
3694 # value for INSTALL within a source directory, because that will
3695 # break other packages using the cache if that directory is
3696 # removed, or if the value is a relative name.
3697 INSTALL=$ac_install_sh
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3701 $as_echo "$INSTALL" >&6; }
3703 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3704 # It thinks the first close brace ends the variable substitution.
3705 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3707 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3709 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3711 test "$program_prefix" != NONE &&
3712 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3713 # Use a double $ so make ignores it.
3714 test "$program_suffix" != NONE &&
3715 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3716 # Double any \ or $.
3717 # By default was `s,x,x', remove it if useless.
3718 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3719 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3721 # expand $ac_aux_dir to an absolute path
3722 am_aux_dir=`cd $ac_aux_dir && pwd`
3724 if test x"${MISSING+set}" != xset; then
3727 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3729 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3732 # Use eval to expand $SHELL
3733 if eval "$MISSING --run true"; then
3734 am_missing_run="$MISSING --run "
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3738 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3741 if test x"${install_sh}" != xset; then
3744 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3746 install_sh="\${SHELL} $am_aux_dir/install-sh"
3750 # Installed binaries are usually stripped using `strip' when the user
3751 # run `make install-strip'. However `strip' might not be the right
3752 # tool to use in cross-compilation environments, therefore Automake
3753 # will honor the `STRIP' environment variable to overrule this program.
3754 if test "$cross_compiling" != no; then
3755 if test -n "$ac_tool_prefix"; then
3756 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3757 set dummy ${ac_tool_prefix}strip; ac_word=$2
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759 $as_echo_n "checking for $ac_word... " >&6; }
3760 if test "${ac_cv_prog_STRIP+set}" = set; then :
3761 $as_echo_n "(cached) " >&6
3763 if test -n "$STRIP"; then
3764 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 test -z "$as_dir" && as_dir=.
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3773 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 STRIP=$ac_cv_prog_STRIP
3784 if test -n "$STRIP"; then
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3786 $as_echo "$STRIP" >&6; }
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 $as_echo "no" >&6; }
3794 if test -z "$ac_cv_prog_STRIP"; then
3796 # Extract the first word of "strip", so it can be a program name with args.
3797 set dummy strip; ac_word=$2
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3799 $as_echo_n "checking for $ac_word... " >&6; }
3800 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3801 $as_echo_n "(cached) " >&6
3803 if test -n "$ac_ct_STRIP"; then
3804 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810 test -z "$as_dir" && as_dir=.
3811 for ac_exec_ext in '' $ac_executable_extensions; do
3812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3813 ac_cv_prog_ac_ct_STRIP="strip"
3814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3823 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3824 if test -n "$ac_ct_STRIP"; then
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3826 $as_echo "$ac_ct_STRIP" >&6; }
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829 $as_echo "no" >&6; }
3832 if test "x$ac_ct_STRIP" = x; then
3835 case $cross_compiling:$ac_tool_warned in
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3839 ac_tool_warned=yes ;;
3844 STRIP="$ac_cv_prog_STRIP"
3848 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3851 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3852 if test -z "$MKDIR_P"; then
3853 if test "${ac_cv_path_mkdir+set}" = set; then :
3854 $as_echo_n "(cached) " >&6
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3857 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3860 test -z "$as_dir" && as_dir=.
3861 for ac_prog in mkdir gmkdir; do
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3864 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3865 'mkdir (GNU coreutils) '* | \
3866 'mkdir (coreutils) '* | \
3867 'mkdir (fileutils) '4.1*)
3868 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3878 test -d ./--version && rmdir ./--version
3879 if test "${ac_cv_path_mkdir+set}" = set; then
3880 MKDIR_P="$ac_cv_path_mkdir -p"
3882 # As a last resort, use the slow shell script. Don't cache a
3883 # value for MKDIR_P within a source directory, because that will
3884 # break other packages using the cache if that directory is
3885 # removed, or if the value is a relative name.
3886 MKDIR_P="$ac_install_sh -d"
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3890 $as_echo "$MKDIR_P" >&6; }
3894 [\\/$]* | ?:[\\/]*) ;;
3895 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3898 for ac_prog in gawk mawk nawk awk
3900 # Extract the first word of "$ac_prog", so it can be a program name with args.
3901 set dummy $ac_prog; ac_word=$2
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3903 $as_echo_n "checking for $ac_word... " >&6; }
3904 if test "${ac_cv_prog_AWK+set}" = set; then :
3905 $as_echo_n "(cached) " >&6
3907 if test -n "$AWK"; then
3908 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 test -z "$as_dir" && as_dir=.
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3917 ac_cv_prog_AWK="$ac_prog"
3918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3928 if test -n "$AWK"; then
3929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3930 $as_echo "$AWK" >&6; }
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3933 $as_echo "no" >&6; }
3937 test -n "$AWK" && break
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3941 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3943 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3944 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3945 $as_echo_n "(cached) " >&6
3947 cat >conftest.make <<\_ACEOF
3950 @echo '@@@%%%=$(MAKE)=@@@%%%'
3952 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3953 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3955 eval ac_cv_prog_make_${ac_make}_set=yes;;
3957 eval ac_cv_prog_make_${ac_make}_set=no;;
3961 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3963 $as_echo "yes" >&6; }
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3967 $as_echo "no" >&6; }
3968 SET_MAKE="MAKE=${MAKE-make}"
3971 rm -rf .tst 2>/dev/null
3972 mkdir .tst 2>/dev/null
3973 if test -d .tst; then
3978 rmdir .tst 2>/dev/null
3980 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3981 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3982 # is not polluted with repeated "-I."
3983 am__isrc=' -I$(srcdir)'
3984 # test to see if srcdir already configured
3985 if test -f $srcdir/config.status; then
3986 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3990 # test whether we have cygpath
3991 if test -z "$CYGPATH_W"; then
3992 if (cygpath --version) >/dev/null 2>/dev/null; then
3993 CYGPATH_W='cygpath -w'
4000 # Define the identity of the package.
4001 PACKAGE=$PACKAGE_NAME
4002 VERSION="${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
4005 # Some tools Automake needs.
4007 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4010 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4013 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4016 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4019 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4021 # We need awk for the "check" target. The system "awk" is bad on
4023 # Always define AMTAR for backward compatibility.
4025 AMTAR=${AMTAR-"${am_missing_run}tar"}
4027 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4034 # Enable support for silent build rules
4035 # Check whether --enable-silent-rules was given.
4036 if test "${enable_silent_rules+set}" = set; then :
4037 enableval=$enable_silent_rules;
4040 case $enable_silent_rules in
4041 yes) AM_DEFAULT_VERBOSITY=0;;
4042 no) AM_DEFAULT_VERBOSITY=1;;
4043 *) AM_DEFAULT_VERBOSITY=0;;
4048 MAGICK_LIB_VERSION="0x"
4049 if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4050 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4052 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4053 if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4054 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4056 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4057 if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4058 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4060 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4063 # Definition used to define MagickLibVersionText in version.h
4064 MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4067 # Definition used to define MagickLibVersionNumber in version.h
4068 MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4071 # Regenerate config.status if ChangeLog or version.sh is updated.
4072 CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4078 MAGICK_CPPFLAGS=$CPPFLAGS_USER
4079 MAGICK_PCFLAGS=$CPPFLAGS_USER
4085 # Evaluate shell variable equivalents to Makefile directory variables
4087 if test "x$prefix" = xNONE; then
4088 prefix=$ac_default_prefix
4090 # Let make expand exec_prefix.
4091 if test "x$exec_prefix" = xNONE; then
4092 exec_prefix='${prefix}'
4096 eval "eval PREFIX_DIR=${prefix}"
4098 eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4100 eval "eval BIN_DIR=$bindir"
4102 eval "eval SBIN_DIR=$sbindir"
4104 eval "eval LIBEXEC_DIR=$libexecdir"
4106 eval "eval DATA_DIR=$datadir"
4108 eval "eval SYSCONF_DIR=$sysconfdir"
4110 eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4112 eval "eval LOCALSTATE_DIR=$localstatedir"
4114 eval "eval LIB_DIR=$libdir"
4116 eval "eval INCLUDE_DIR=$includedir"
4118 eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4120 eval "eval INFO_DIR=$infodir"
4122 eval "eval MAN_DIR=$mandir"
4125 # Get full paths to source and build directories
4126 srcdirfull="`cd $srcdir && pwd`"
4130 # Compute variables useful for running uninstalled software.
4132 MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4133 MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4134 MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4135 MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4137 case "${build_os}" in
4139 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4140 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4141 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4142 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4146 case "${host_os}" in
4159 # Enable OS features.
4161 DEPDIR="${am__leading_dot}deps"
4163 ac_config_commands="$ac_config_commands depfiles"
4166 am_make=${MAKE-make}
4167 cat > confinc << 'END'
4169 @echo this is the am__doit target
4172 # If we don't find an include directive, just comment out the code.
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4174 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4178 # First try GNU make style include.
4179 echo "include confinc" > confmf
4180 # Ignore all kinds of additional output from `make'.
4181 case `$am_make -s -f confmf 2> /dev/null` in #(
4182 *the\ am__doit\ target*)
4188 # Now try BSD make style include.
4189 if test "$am__include" = "#"; then
4190 echo '.include "confinc"' > confmf
4191 case `$am_make -s -f confmf 2> /dev/null` in #(
4192 *the\ am__doit\ target*)
4193 am__include=.include
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4202 $as_echo "$_am_result" >&6; }
4203 rm -f confinc confmf
4205 # Check whether --enable-dependency-tracking was given.
4206 if test "${enable_dependency_tracking+set}" = set; then :
4207 enableval=$enable_dependency_tracking;
4210 if test "x$enable_dependency_tracking" != xno; then
4211 am_depcomp="$ac_aux_dir/depcomp"
4214 if test "x$enable_dependency_tracking" != xno; then
4224 ac_cpp='$CPP $CPPFLAGS'
4225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4228 if test -n "$ac_tool_prefix"; then
4229 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4230 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232 $as_echo_n "checking for $ac_word... " >&6; }
4233 if test "${ac_cv_prog_CC+set}" = set; then :
4234 $as_echo_n "(cached) " >&6
4236 if test -n "$CC"; then
4237 ac_cv_prog_CC="$CC" # Let the user override the test.
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 test -z "$as_dir" && as_dir=.
4244 for ac_exec_ext in '' $ac_executable_extensions; do
4245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4246 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 if test -n "$CC"; then
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4259 $as_echo "$CC" >&6; }
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4262 $as_echo "no" >&6; }
4267 if test -z "$ac_cv_prog_CC"; then
4269 # Extract the first word of "gcc", so it can be a program name with args.
4270 set dummy gcc; ac_word=$2
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4272 $as_echo_n "checking for $ac_word... " >&6; }
4273 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4274 $as_echo_n "(cached) " >&6
4276 if test -n "$ac_ct_CC"; then
4277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283 test -z "$as_dir" && as_dir=.
4284 for ac_exec_ext in '' $ac_executable_extensions; do
4285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4286 ac_cv_prog_ac_ct_CC="gcc"
4287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4296 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4297 if test -n "$ac_ct_CC"; then
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4299 $as_echo "$ac_ct_CC" >&6; }
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4302 $as_echo "no" >&6; }
4305 if test "x$ac_ct_CC" = x; then
4308 case $cross_compiling:$ac_tool_warned in
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4312 ac_tool_warned=yes ;;
4320 if test -z "$CC"; then
4321 if test -n "$ac_tool_prefix"; then
4322 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4323 set dummy ${ac_tool_prefix}cc; ac_word=$2
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4325 $as_echo_n "checking for $ac_word... " >&6; }
4326 if test "${ac_cv_prog_CC+set}" = set; then :
4327 $as_echo_n "(cached) " >&6
4329 if test -n "$CC"; then
4330 ac_cv_prog_CC="$CC" # Let the user override the test.
4332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336 test -z "$as_dir" && as_dir=.
4337 for ac_exec_ext in '' $ac_executable_extensions; do
4338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339 ac_cv_prog_CC="${ac_tool_prefix}cc"
4340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4350 if test -n "$CC"; then
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4352 $as_echo "$CC" >&6; }
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4355 $as_echo "no" >&6; }
4361 if test -z "$CC"; then
4362 # Extract the first word of "cc", so it can be a program name with args.
4363 set dummy cc; ac_word=$2
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4365 $as_echo_n "checking for $ac_word... " >&6; }
4366 if test "${ac_cv_prog_CC+set}" = set; then :
4367 $as_echo_n "(cached) " >&6
4369 if test -n "$CC"; then
4370 ac_cv_prog_CC="$CC" # Let the user override the test.
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4380 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4381 ac_prog_rejected=yes
4385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 if test $ac_prog_rejected = yes; then
4393 # We found a bogon in the path, so make sure we never use it.
4394 set dummy $ac_cv_prog_CC
4396 if test $# != 0; then
4397 # We chose a different compiler from the bogus one.
4398 # However, it has the same basename, so the bogon will be chosen
4399 # first if we set CC to just the basename; use the full file name.
4401 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4407 if test -n "$CC"; then
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4409 $as_echo "$CC" >&6; }
4411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4412 $as_echo "no" >&6; }
4417 if test -z "$CC"; then
4418 if test -n "$ac_tool_prefix"; then
4419 for ac_prog in cl.exe
4421 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4422 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4424 $as_echo_n "checking for $ac_word... " >&6; }
4425 if test "${ac_cv_prog_CC+set}" = set; then :
4426 $as_echo_n "(cached) " >&6
4428 if test -n "$CC"; then
4429 ac_cv_prog_CC="$CC" # Let the user override the test.
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4438 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 if test -n "$CC"; then
4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4451 $as_echo "$CC" >&6; }
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4454 $as_echo "no" >&6; }
4458 test -n "$CC" && break
4461 if test -z "$CC"; then
4463 for ac_prog in cl.exe
4465 # Extract the first word of "$ac_prog", so it can be a program name with args.
4466 set dummy $ac_prog; ac_word=$2
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4468 $as_echo_n "checking for $ac_word... " >&6; }
4469 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4470 $as_echo_n "(cached) " >&6
4472 if test -n "$ac_ct_CC"; then
4473 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4479 test -z "$as_dir" && as_dir=.
4480 for ac_exec_ext in '' $ac_executable_extensions; do
4481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4482 ac_cv_prog_ac_ct_CC="$ac_prog"
4483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4492 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4493 if test -n "$ac_ct_CC"; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4495 $as_echo "$ac_ct_CC" >&6; }
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498 $as_echo "no" >&6; }
4502 test -n "$ac_ct_CC" && break
4505 if test "x$ac_ct_CC" = x; then
4508 case $cross_compiling:$ac_tool_warned in
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4512 ac_tool_warned=yes ;;
4521 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4523 as_fn_error "no acceptable C compiler found in \$PATH
4524 See \`config.log' for more details." "$LINENO" 5; }
4526 # Provide some information about the compiler.
4527 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4530 for ac_option in --version -v -V -qversion; do
4531 { { ac_try="$ac_compiler $ac_option >&5"
4533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4534 *) ac_try_echo=$ac_try;;
4536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4537 $as_echo "$ac_try_echo"; } >&5
4538 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4540 if test -s conftest.err; then
4542 ... rest of stderr output deleted ...
4543 10q' conftest.err >conftest.er1
4544 cat conftest.er1 >&5
4546 rm -f conftest.er1 conftest.err
4547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4548 test $ac_status = 0; }
4551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4552 /* end confdefs.h. */
4562 ac_clean_files_save=$ac_clean_files
4563 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4564 # Try to create an executable without -o first, disregard a.out.
4565 # It will help us diagnose broken compilers, and finding out an intuition
4567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4568 $as_echo_n "checking whether the C compiler works... " >&6; }
4569 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4571 # The possible output files:
4572 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4575 for ac_file in $ac_files
4578 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4579 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4584 if { { ac_try="$ac_link_default"
4586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4587 *) ac_try_echo=$ac_try;;
4589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4590 $as_echo "$ac_try_echo"; } >&5
4591 (eval "$ac_link_default") 2>&5
4593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4594 test $ac_status = 0; }; then :
4595 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4596 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4597 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4598 # so that the user can short-circuit this test for compilers unknown to
4600 for ac_file in $ac_files ''
4602 test -f "$ac_file" || continue
4604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4607 # We found the default executable, but exeext='' is most
4611 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4613 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4615 # We set ac_cv_exeext here because the later test for it is not
4616 # safe: cross compilers may not add the suffix if given an `-o'
4617 # argument, so we may need to know it at that point already.
4618 # Even if this section looks crufty: it has the advantage of
4625 test "$ac_cv_exeext" = no && ac_cv_exeext=
4630 if test -z "$ac_file"; then :
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4632 $as_echo "no" >&6; }
4633 $as_echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4638 { as_fn_set_status 77
4639 as_fn_error "C compiler cannot create executables
4640 See \`config.log' for more details." "$LINENO" 5; }; }
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4643 $as_echo "yes" >&6; }
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4646 $as_echo_n "checking for C compiler default output file name... " >&6; }
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4648 $as_echo "$ac_file" >&6; }
4649 ac_exeext=$ac_cv_exeext
4651 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4652 ac_clean_files=$ac_clean_files_save
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4654 $as_echo_n "checking for suffix of executables... " >&6; }
4655 if { { ac_try="$ac_link"
4657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4658 *) ac_try_echo=$ac_try;;
4660 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4661 $as_echo "$ac_try_echo"; } >&5
4662 (eval "$ac_link") 2>&5
4664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4665 test $ac_status = 0; }; then :
4666 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4667 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4668 # work properly (i.e., refer to `conftest.exe'), while it won't with
4670 for ac_file in conftest.exe conftest conftest.*; do
4671 test -f "$ac_file" || continue
4673 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4674 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4682 as_fn_error "cannot compute suffix of executables: cannot compile and link
4683 See \`config.log' for more details." "$LINENO" 5; }
4685 rm -f conftest conftest$ac_cv_exeext
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4687 $as_echo "$ac_cv_exeext" >&6; }
4689 rm -f conftest.$ac_ext
4690 EXEEXT=$ac_cv_exeext
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4698 FILE *f = fopen ("conftest.out", "w");
4699 return ferror (f) || fclose (f) != 0;
4705 ac_clean_files="$ac_clean_files conftest.out"
4706 # Check that the compiler produces executables we can run. If not, either
4707 # the compiler is broken, or we cross compile.
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4709 $as_echo_n "checking whether we are cross compiling... " >&6; }
4710 if test "$cross_compiling" != yes; then
4711 { { ac_try="$ac_link"
4713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4714 *) ac_try_echo=$ac_try;;
4716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4717 $as_echo "$ac_try_echo"; } >&5
4718 (eval "$ac_link") 2>&5
4720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4721 test $ac_status = 0; }
4722 if { ac_try='./conftest$ac_cv_exeext'
4723 { { case "(($ac_try" in
4724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4725 *) ac_try_echo=$ac_try;;
4727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4728 $as_echo "$ac_try_echo"; } >&5
4729 (eval "$ac_try") 2>&5
4731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4732 test $ac_status = 0; }; }; then
4735 if test "$cross_compiling" = maybe; then
4738 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4739 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4740 as_fn_error "cannot run C compiled programs.
4741 If you meant to cross compile, use \`--host'.
4742 See \`config.log' for more details." "$LINENO" 5; }
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4747 $as_echo "$cross_compiling" >&6; }
4749 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4750 ac_clean_files=$ac_clean_files_save
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4752 $as_echo_n "checking for suffix of object files... " >&6; }
4753 if test "${ac_cv_objext+set}" = set; then :
4754 $as_echo_n "(cached) " >&6
4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4757 /* end confdefs.h. */
4767 rm -f conftest.o conftest.obj
4768 if { { ac_try="$ac_compile"
4770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4771 *) ac_try_echo=$ac_try;;
4773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4774 $as_echo "$ac_try_echo"; } >&5
4775 (eval "$ac_compile") 2>&5
4777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4778 test $ac_status = 0; }; then :
4779 for ac_file in conftest.o conftest.obj conftest.*; do
4780 test -f "$ac_file" || continue;
4782 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4783 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4788 $as_echo "$as_me: failed program was:" >&5
4789 sed 's/^/| /' conftest.$ac_ext >&5
4791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4793 as_fn_error "cannot compute suffix of object files: cannot compile
4794 See \`config.log' for more details." "$LINENO" 5; }
4796 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4799 $as_echo "$ac_cv_objext" >&6; }
4800 OBJEXT=$ac_cv_objext
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4803 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4804 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4805 $as_echo_n "(cached) " >&6
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4821 if ac_fn_c_try_compile "$LINENO"; then :
4826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4831 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4832 if test $ac_compiler_gnu = yes; then
4837 ac_test_CFLAGS=${CFLAGS+set}
4838 ac_save_CFLAGS=$CFLAGS
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4840 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4841 if test "${ac_cv_prog_cc_g+set}" = set; then :
4842 $as_echo_n "(cached) " >&6
4844 ac_save_c_werror_flag=$ac_c_werror_flag
4845 ac_c_werror_flag=yes
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4859 if ac_fn_c_try_compile "$LINENO"; then :
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4874 if ac_fn_c_try_compile "$LINENO"; then :
4877 ac_c_werror_flag=$ac_save_c_werror_flag
4879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4880 /* end confdefs.h. */
4890 if ac_fn_c_try_compile "$LINENO"; then :
4893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4898 ac_c_werror_flag=$ac_save_c_werror_flag
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4901 $as_echo "$ac_cv_prog_cc_g" >&6; }
4902 if test "$ac_test_CFLAGS" = set; then
4903 CFLAGS=$ac_save_CFLAGS
4904 elif test $ac_cv_prog_cc_g = yes; then
4905 if test "$GCC" = yes; then
4911 if test "$GCC" = yes; then
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4918 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4919 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4920 $as_echo_n "(cached) " >&6
4922 ac_cv_prog_cc_c89=no
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4928 #include <sys/types.h>
4929 #include <sys/stat.h>
4930 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4931 struct buf { int x; };
4932 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4933 static char *e (p, i)
4939 static char *f (char * (*g) (char **, int), char **p, ...)
4944 s = g (p, va_arg (v,int));
4949 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4950 function prototypes and stuff, but not '\xHH' hex character constants.
4951 These don't provoke an error unfortunately, instead are silently treated
4952 as 'x'. The following induces an error, until -std is added to get
4953 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4954 array size at least. It's necessary to write '\x00'==0 to get something
4955 that's true only with -std. */
4956 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4958 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4959 inside strings and character constants. */
4961 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4963 int test (int i, double x);
4964 struct s1 {int (*f) (int a);};
4965 struct s2 {int (*f) (double a);};
4966 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4972 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4977 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4978 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4980 CC="$ac_save_CC $ac_arg"
4981 if ac_fn_c_try_compile "$LINENO"; then :
4982 ac_cv_prog_cc_c89=$ac_arg
4984 rm -f core conftest.err conftest.$ac_objext
4985 test "x$ac_cv_prog_cc_c89" != "xno" && break
4987 rm -f conftest.$ac_ext
4992 case "x$ac_cv_prog_cc_c89" in
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4995 $as_echo "none needed" >&6; } ;;
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4998 $as_echo "unsupported" >&6; } ;;
5000 CC="$CC $ac_cv_prog_cc_c89"
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5002 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5004 if test "x$ac_cv_prog_cc_c89" != xno; then :
5009 ac_cpp='$CPP $CPPFLAGS'
5010 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5014 depcc="$CC" am_compiler_list=
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5017 $as_echo_n "checking dependency style of $depcc... " >&6; }
5018 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5019 $as_echo_n "(cached) " >&6
5021 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5022 # We make a subdir and do the tests there. Otherwise we can end up
5023 # making bogus files that we don't know about and never remove. For
5024 # instance it was reported that on HP-UX the gcc test will end up
5025 # making a dummy file named `D' -- because `-MD' means `put the output
5028 # Copy depcomp to subdir because otherwise we won't find it if we're
5029 # using a relative directory.
5030 cp "$am_depcomp" conftest.dir
5032 # We will build objects and dependencies in a subdirectory because
5033 # it helps to detect inapplicable dependency modes. For instance
5034 # both Tru64's cc and ICC support -MD to output dependencies as a
5035 # side effect of compilation, but ICC will put the dependencies in
5036 # the current directory while Tru64 will put them in the object
5040 am_cv_CC_dependencies_compiler_type=none
5041 if test "$am_compiler_list" = ""; then
5042 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5045 case " $depcc " in #(
5046 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5049 for depmode in $am_compiler_list; do
5050 # Setup a source with many dependencies, because some compilers
5051 # like to wrap large dependency lists on column 80 (with \), and
5052 # we should not choose a depcomp mode which is confused by this.
5054 # We need to recreate these files for each test, as the compiler may
5055 # overwrite some of them when testing with obscure command lines.
5056 # This happens at least with the AIX C compiler.
5058 for i in 1 2 3 4 5 6; do
5059 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5060 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5061 # Solaris 8's {/usr,}/bin/sh.
5062 touch sub/conftst$i.h
5064 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5066 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5067 # mode. It turns out that the SunPro C++ compiler does not properly
5068 # handle `-M -o', and we need to detect this. Also, some Intel
5069 # versions had trouble with output in subdirs
5070 am__obj=sub/conftest.${OBJEXT-o}
5071 am__minus_obj="-o $am__obj"
5074 # This depmode causes a compiler race in universal mode.
5075 test "$am__universal" = false || continue
5078 # after this tag, mechanisms are not by side-effect, so they'll
5079 # only be used when explicitly requested
5080 if test "x$enable_dependency_tracking" = xyes; then
5086 msvisualcpp | msvcmsys)
5087 # This compiler won't grok `-c -o', but also, the minuso test has
5088 # not run yet. These depmodes are late enough in the game, and
5089 # so weak that their functioning should not be impacted.
5090 am__obj=conftest.${OBJEXT-o}
5095 if depmode=$depmode \
5096 source=sub/conftest.c object=$am__obj \
5097 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5098 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5099 >/dev/null 2>conftest.err &&
5100 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5101 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5102 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5103 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5104 # icc doesn't choke on unknown options, it will just issue warnings
5105 # or remarks (even with -Werror). So we grep stderr for any message
5106 # that says an option was ignored or not supported.
5107 # When given -MP, icc 7.0 and 7.1 complain thusly:
5108 # icc: Command line warning: ignoring option '-M'; no argument required
5109 # The diagnosis changed in icc 8.0:
5110 # icc: Command line remark: option '-MP' not supported
5111 if (grep 'ignoring option' conftest.err ||
5112 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5113 am_cv_CC_dependencies_compiler_type=$depmode
5122 am_cv_CC_dependencies_compiler_type=none
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5127 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5128 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5131 test "x$enable_dependency_tracking" != xno \
5132 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5134 am__fastdepCC_FALSE='#'
5136 am__fastdepCC_TRUE='#'
5137 am__fastdepCC_FALSE=
5143 ac_cpp='$CPP $CPPFLAGS'
5144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5148 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5149 # On Suns, sometimes $CPP names a directory.
5150 if test -n "$CPP" && test -d "$CPP"; then
5153 if test -z "$CPP"; then
5154 if test "${ac_cv_prog_CPP+set}" = set; then :
5155 $as_echo_n "(cached) " >&6
5157 # Double quotes because CPP needs to be expanded
5158 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5161 for ac_c_preproc_warn_flag in '' yes
5163 # Use a header file that comes with gcc, so configuring glibc
5164 # with a fresh cross-compiler works.
5165 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5166 # <limits.h> exists even on freestanding compilers.
5167 # On the NeXT, cc -E runs the code through the compiler's parser,
5168 # not just through cpp. "Syntax error" is here to catch this case.
5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170 /* end confdefs.h. */
5172 # include <limits.h>
5174 # include <assert.h>
5178 if ac_fn_c_try_cpp "$LINENO"; then :
5181 # Broken: fails on valid input.
5184 rm -f conftest.err conftest.$ac_ext
5186 # OK, works on sane cases. Now check whether nonexistent headers
5187 # can be detected and how.
5188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5189 /* end confdefs.h. */
5190 #include <ac_nonexistent.h>
5192 if ac_fn_c_try_cpp "$LINENO"; then :
5193 # Broken: success on invalid input.
5196 # Passes both tests.
5200 rm -f conftest.err conftest.$ac_ext
5203 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5204 rm -f conftest.err conftest.$ac_ext
5205 if $ac_preproc_ok; then :
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5218 $as_echo "$CPP" >&6; }
5220 for ac_c_preproc_warn_flag in '' yes
5222 # Use a header file that comes with gcc, so configuring glibc
5223 # with a fresh cross-compiler works.
5224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5225 # <limits.h> exists even on freestanding compilers.
5226 # On the NeXT, cc -E runs the code through the compiler's parser,
5227 # not just through cpp. "Syntax error" is here to catch this case.
5228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5229 /* end confdefs.h. */
5231 # include <limits.h>
5233 # include <assert.h>
5237 if ac_fn_c_try_cpp "$LINENO"; then :
5240 # Broken: fails on valid input.
5243 rm -f conftest.err conftest.$ac_ext
5245 # OK, works on sane cases. Now check whether nonexistent headers
5246 # can be detected and how.
5247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5249 #include <ac_nonexistent.h>
5251 if ac_fn_c_try_cpp "$LINENO"; then :
5252 # Broken: success on invalid input.
5255 # Passes both tests.
5259 rm -f conftest.err conftest.$ac_ext
5262 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5263 rm -f conftest.err conftest.$ac_ext
5264 if $ac_preproc_ok; then :
5267 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5268 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5269 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5270 See \`config.log' for more details." "$LINENO" 5; }
5274 ac_cpp='$CPP $CPPFLAGS'
5275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5281 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5282 if test "${ac_cv_path_GREP+set}" = set; then :
5283 $as_echo_n "(cached) " >&6
5285 if test -z "$GREP"; then
5286 ac_path_GREP_found=false
5287 # Loop through the user's path and test for each of PROGNAME-LIST
5288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5292 test -z "$as_dir" && as_dir=.
5293 for ac_prog in grep ggrep; do
5294 for ac_exec_ext in '' $ac_executable_extensions; do
5295 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5296 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5297 # Check for GNU ac_path_GREP and select it if it is found.
5298 # Check for GNU $ac_path_GREP
5299 case `"$ac_path_GREP" --version 2>&1` in
5301 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5304 $as_echo_n 0123456789 >"conftest.in"
5307 cat "conftest.in" "conftest.in" >"conftest.tmp"
5308 mv "conftest.tmp" "conftest.in"
5309 cp "conftest.in" "conftest.nl"
5310 $as_echo 'GREP' >> "conftest.nl"
5311 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5312 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5313 as_fn_arith $ac_count + 1 && ac_count=$as_val
5314 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5315 # Best one so far, save it but keep looking for a better one
5316 ac_cv_path_GREP="$ac_path_GREP"
5317 ac_path_GREP_max=$ac_count
5319 # 10*(2^10) chars as input seems more than enough
5320 test $ac_count -gt 10 && break
5322 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5325 $ac_path_GREP_found && break 3
5330 if test -z "$ac_cv_path_GREP"; then
5331 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5334 ac_cv_path_GREP=$GREP
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5339 $as_echo "$ac_cv_path_GREP" >&6; }
5340 GREP="$ac_cv_path_GREP"
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5344 $as_echo_n "checking for egrep... " >&6; }
5345 if test "${ac_cv_path_EGREP+set}" = set; then :
5346 $as_echo_n "(cached) " >&6
5348 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5349 then ac_cv_path_EGREP="$GREP -E"
5351 if test -z "$EGREP"; then
5352 ac_path_EGREP_found=false
5353 # Loop through the user's path and test for each of PROGNAME-LIST
5354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5355 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5358 test -z "$as_dir" && as_dir=.
5359 for ac_prog in egrep; do
5360 for ac_exec_ext in '' $ac_executable_extensions; do
5361 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5362 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5363 # Check for GNU ac_path_EGREP and select it if it is found.
5364 # Check for GNU $ac_path_EGREP
5365 case `"$ac_path_EGREP" --version 2>&1` in
5367 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5370 $as_echo_n 0123456789 >"conftest.in"
5373 cat "conftest.in" "conftest.in" >"conftest.tmp"
5374 mv "conftest.tmp" "conftest.in"
5375 cp "conftest.in" "conftest.nl"
5376 $as_echo 'EGREP' >> "conftest.nl"
5377 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5378 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5379 as_fn_arith $ac_count + 1 && ac_count=$as_val
5380 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5381 # Best one so far, save it but keep looking for a better one
5382 ac_cv_path_EGREP="$ac_path_EGREP"
5383 ac_path_EGREP_max=$ac_count
5385 # 10*(2^10) chars as input seems more than enough
5386 test $ac_count -gt 10 && break
5388 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5391 $ac_path_EGREP_found && break 3
5396 if test -z "$ac_cv_path_EGREP"; then
5397 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5400 ac_cv_path_EGREP=$EGREP
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5406 $as_echo "$ac_cv_path_EGREP" >&6; }
5407 EGREP="$ac_cv_path_EGREP"
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5411 $as_echo_n "checking for ANSI C header files... " >&6; }
5412 if test "${ac_cv_header_stdc+set}" = set; then :
5413 $as_echo_n "(cached) " >&6
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5430 if ac_fn_c_try_compile "$LINENO"; then :
5431 ac_cv_header_stdc=yes
5433 ac_cv_header_stdc=no
5435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5437 if test $ac_cv_header_stdc = yes; then
5438 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440 /* end confdefs.h. */
5444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5445 $EGREP "memchr" >/dev/null 2>&1; then :
5448 ac_cv_header_stdc=no
5454 if test $ac_cv_header_stdc = yes; then
5455 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5457 /* end confdefs.h. */
5461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5462 $EGREP "free" >/dev/null 2>&1; then :
5465 ac_cv_header_stdc=no
5471 if test $ac_cv_header_stdc = yes; then
5472 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5473 if test "$cross_compiling" = yes; then :
5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h. */
5480 #if ((' ' & 0x0FF) == 0x020)
5481 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5482 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5484 # define ISLOWER(c) \
5485 (('a' <= (c) && (c) <= 'i') \
5486 || ('j' <= (c) && (c) <= 'r') \
5487 || ('s' <= (c) && (c) <= 'z'))
5488 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5491 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5496 for (i = 0; i < 256; i++)
5497 if (XOR (islower (i), ISLOWER (i))
5498 || toupper (i) != TOUPPER (i))
5503 if ac_fn_c_try_run "$LINENO"; then :
5506 ac_cv_header_stdc=no
5508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5509 conftest.$ac_objext conftest.beam conftest.$ac_ext
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5515 $as_echo "$ac_cv_header_stdc" >&6; }
5516 if test $ac_cv_header_stdc = yes; then
5518 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5522 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5523 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5524 inttypes.h stdint.h unistd.h
5526 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5527 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5529 eval as_val=\$$as_ac_Header
5530 if test "x$as_val" = x""yes; then :
5531 cat >>confdefs.h <<_ACEOF
5532 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5541 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
5542 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
5549 if test "$MINIX" = yes; then
5551 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5554 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5557 $as_echo "#define _MINIX 1" >>confdefs.h
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5563 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5564 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
5565 $as_echo_n "(cached) " >&6
5567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5568 /* end confdefs.h. */
5570 # define __EXTENSIONS__ 1
5571 $ac_includes_default
5580 if ac_fn_c_try_compile "$LINENO"; then :
5581 ac_cv_safe_to_define___extensions__=yes
5583 ac_cv_safe_to_define___extensions__=no
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5588 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5589 test $ac_cv_safe_to_define___extensions__ = yes &&
5590 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5592 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5594 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5596 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5598 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5602 # Check for programs
5604 ac_cpp='$CPP $CPPFLAGS'
5605 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5606 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5607 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5608 if test -n "$ac_tool_prefix"; then
5609 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5610 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5612 $as_echo_n "checking for $ac_word... " >&6; }
5613 if test "${ac_cv_prog_CC+set}" = set; then :
5614 $as_echo_n "(cached) " >&6
5616 if test -n "$CC"; then
5617 ac_cv_prog_CC="$CC" # Let the user override the test.
5619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5623 test -z "$as_dir" && as_dir=.
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5626 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 if test -n "$CC"; then
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5639 $as_echo "$CC" >&6; }
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 $as_echo "no" >&6; }
5647 if test -z "$ac_cv_prog_CC"; then
5649 # Extract the first word of "gcc", so it can be a program name with args.
5650 set dummy gcc; ac_word=$2
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5652 $as_echo_n "checking for $ac_word... " >&6; }
5653 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5654 $as_echo_n "(cached) " >&6
5656 if test -n "$ac_ct_CC"; then
5657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 test -z "$as_dir" && as_dir=.
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5666 ac_cv_prog_ac_ct_CC="gcc"
5667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5676 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5677 if test -n "$ac_ct_CC"; then
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5679 $as_echo "$ac_ct_CC" >&6; }
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682 $as_echo "no" >&6; }
5685 if test "x$ac_ct_CC" = x; then
5688 case $cross_compiling:$ac_tool_warned in
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5692 ac_tool_warned=yes ;;
5700 if test -z "$CC"; then
5701 if test -n "$ac_tool_prefix"; then
5702 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5703 set dummy ${ac_tool_prefix}cc; ac_word=$2
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5705 $as_echo_n "checking for $ac_word... " >&6; }
5706 if test "${ac_cv_prog_CC+set}" = set; then :
5707 $as_echo_n "(cached) " >&6
5709 if test -n "$CC"; then
5710 ac_cv_prog_CC="$CC" # Let the user override the test.
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5719 ac_cv_prog_CC="${ac_tool_prefix}cc"
5720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5730 if test -n "$CC"; then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5732 $as_echo "$CC" >&6; }
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735 $as_echo "no" >&6; }
5741 if test -z "$CC"; then
5742 # Extract the first word of "cc", so it can be a program name with args.
5743 set dummy cc; ac_word=$2
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5745 $as_echo_n "checking for $ac_word... " >&6; }
5746 if test "${ac_cv_prog_CC+set}" = set; then :
5747 $as_echo_n "(cached) " >&6
5749 if test -n "$CC"; then
5750 ac_cv_prog_CC="$CC" # Let the user override the test.
5753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5757 test -z "$as_dir" && as_dir=.
5758 for ac_exec_ext in '' $ac_executable_extensions; do
5759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5760 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5761 ac_prog_rejected=yes
5765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5772 if test $ac_prog_rejected = yes; then
5773 # We found a bogon in the path, so make sure we never use it.
5774 set dummy $ac_cv_prog_CC
5776 if test $# != 0; then
5777 # We chose a different compiler from the bogus one.
5778 # However, it has the same basename, so the bogon will be chosen
5779 # first if we set CC to just the basename; use the full file name.
5781 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5787 if test -n "$CC"; then
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5789 $as_echo "$CC" >&6; }
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5792 $as_echo "no" >&6; }
5797 if test -z "$CC"; then
5798 if test -n "$ac_tool_prefix"; then
5799 for ac_prog in cl.exe
5801 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5802 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804 $as_echo_n "checking for $ac_word... " >&6; }
5805 if test "${ac_cv_prog_CC+set}" = set; then :
5806 $as_echo_n "(cached) " >&6
5808 if test -n "$CC"; then
5809 ac_cv_prog_CC="$CC" # Let the user override the test.
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5818 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 if test -n "$CC"; then
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5831 $as_echo "$CC" >&6; }
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 $as_echo "no" >&6; }
5838 test -n "$CC" && break
5841 if test -z "$CC"; then
5843 for ac_prog in cl.exe
5845 # Extract the first word of "$ac_prog", so it can be a program name with args.
5846 set dummy $ac_prog; ac_word=$2
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5848 $as_echo_n "checking for $ac_word... " >&6; }
5849 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5850 $as_echo_n "(cached) " >&6
5852 if test -n "$ac_ct_CC"; then
5853 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5862 ac_cv_prog_ac_ct_CC="$ac_prog"
5863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5873 if test -n "$ac_ct_CC"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5875 $as_echo "$ac_ct_CC" >&6; }
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5878 $as_echo "no" >&6; }
5882 test -n "$ac_ct_CC" && break
5885 if test "x$ac_ct_CC" = x; then
5888 case $cross_compiling:$ac_tool_warned in
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5892 ac_tool_warned=yes ;;
5901 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5903 as_fn_error "no acceptable C compiler found in \$PATH
5904 See \`config.log' for more details." "$LINENO" 5; }
5906 # Provide some information about the compiler.
5907 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5910 for ac_option in --version -v -V -qversion; do
5911 { { ac_try="$ac_compiler $ac_option >&5"
5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5917 $as_echo "$ac_try_echo"; } >&5
5918 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5920 if test -s conftest.err; then
5922 ... rest of stderr output deleted ...
5923 10q' conftest.err >conftest.er1
5924 cat conftest.er1 >&5
5926 rm -f conftest.er1 conftest.err
5927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5928 test $ac_status = 0; }
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5932 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5933 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5934 $as_echo_n "(cached) " >&6
5936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5937 /* end confdefs.h. */
5950 if ac_fn_c_try_compile "$LINENO"; then :
5955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5956 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5960 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5961 if test $ac_compiler_gnu = yes; then
5966 ac_test_CFLAGS=${CFLAGS+set}
5967 ac_save_CFLAGS=$CFLAGS
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5969 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5970 if test "${ac_cv_prog_cc_g+set}" = set; then :
5971 $as_echo_n "(cached) " >&6
5973 ac_save_c_werror_flag=$ac_c_werror_flag
5974 ac_c_werror_flag=yes
5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5978 /* end confdefs.h. */
5988 if ac_fn_c_try_compile "$LINENO"; then :
5992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5993 /* end confdefs.h. */
6003 if ac_fn_c_try_compile "$LINENO"; then :
6006 ac_c_werror_flag=$ac_save_c_werror_flag
6008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6009 /* end confdefs.h. */
6019 if ac_fn_c_try_compile "$LINENO"; then :
6022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6027 ac_c_werror_flag=$ac_save_c_werror_flag
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6030 $as_echo "$ac_cv_prog_cc_g" >&6; }
6031 if test "$ac_test_CFLAGS" = set; then
6032 CFLAGS=$ac_save_CFLAGS
6033 elif test $ac_cv_prog_cc_g = yes; then
6034 if test "$GCC" = yes; then
6040 if test "$GCC" = yes; then
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6047 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6048 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6049 $as_echo_n "(cached) " >&6
6051 ac_cv_prog_cc_c89=no
6053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6054 /* end confdefs.h. */
6057 #include <sys/types.h>
6058 #include <sys/stat.h>
6059 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6060 struct buf { int x; };
6061 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6062 static char *e (p, i)
6068 static char *f (char * (*g) (char **, int), char **p, ...)
6073 s = g (p, va_arg (v,int));
6078 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6079 function prototypes and stuff, but not '\xHH' hex character constants.
6080 These don't provoke an error unfortunately, instead are silently treated
6081 as 'x'. The following induces an error, until -std is added to get
6082 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6083 array size at least. It's necessary to write '\x00'==0 to get something
6084 that's true only with -std. */
6085 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6087 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6088 inside strings and character constants. */
6090 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6092 int test (int i, double x);
6093 struct s1 {int (*f) (int a);};
6094 struct s2 {int (*f) (double a);};
6095 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6101 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6106 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6107 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6109 CC="$ac_save_CC $ac_arg"
6110 if ac_fn_c_try_compile "$LINENO"; then :
6111 ac_cv_prog_cc_c89=$ac_arg
6113 rm -f core conftest.err conftest.$ac_objext
6114 test "x$ac_cv_prog_cc_c89" != "xno" && break
6116 rm -f conftest.$ac_ext
6121 case "x$ac_cv_prog_cc_c89" in
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6124 $as_echo "none needed" >&6; } ;;
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6127 $as_echo "unsupported" >&6; } ;;
6129 CC="$CC $ac_cv_prog_cc_c89"
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6131 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6133 if test "x$ac_cv_prog_cc_c89" != xno; then :
6138 ac_cpp='$CPP $CPPFLAGS'
6139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6143 depcc="$CC" am_compiler_list=
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6146 $as_echo_n "checking dependency style of $depcc... " >&6; }
6147 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
6148 $as_echo_n "(cached) " >&6
6150 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6151 # We make a subdir and do the tests there. Otherwise we can end up
6152 # making bogus files that we don't know about and never remove. For
6153 # instance it was reported that on HP-UX the gcc test will end up
6154 # making a dummy file named `D' -- because `-MD' means `put the output
6157 # Copy depcomp to subdir because otherwise we won't find it if we're
6158 # using a relative directory.
6159 cp "$am_depcomp" conftest.dir
6161 # We will build objects and dependencies in a subdirectory because
6162 # it helps to detect inapplicable dependency modes. For instance
6163 # both Tru64's cc and ICC support -MD to output dependencies as a
6164 # side effect of compilation, but ICC will put the dependencies in
6165 # the current directory while Tru64 will put them in the object
6169 am_cv_CC_dependencies_compiler_type=none
6170 if test "$am_compiler_list" = ""; then
6171 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6174 case " $depcc " in #(
6175 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6178 for depmode in $am_compiler_list; do
6179 # Setup a source with many dependencies, because some compilers
6180 # like to wrap large dependency lists on column 80 (with \), and
6181 # we should not choose a depcomp mode which is confused by this.
6183 # We need to recreate these files for each test, as the compiler may
6184 # overwrite some of them when testing with obscure command lines.
6185 # This happens at least with the AIX C compiler.
6187 for i in 1 2 3 4 5 6; do
6188 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6189 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6190 # Solaris 8's {/usr,}/bin/sh.
6191 touch sub/conftst$i.h
6193 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6195 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6196 # mode. It turns out that the SunPro C++ compiler does not properly
6197 # handle `-M -o', and we need to detect this. Also, some Intel
6198 # versions had trouble with output in subdirs
6199 am__obj=sub/conftest.${OBJEXT-o}
6200 am__minus_obj="-o $am__obj"
6203 # This depmode causes a compiler race in universal mode.
6204 test "$am__universal" = false || continue
6207 # after this tag, mechanisms are not by side-effect, so they'll
6208 # only be used when explicitly requested
6209 if test "x$enable_dependency_tracking" = xyes; then
6215 msvisualcpp | msvcmsys)
6216 # This compiler won't grok `-c -o', but also, the minuso test has
6217 # not run yet. These depmodes are late enough in the game, and
6218 # so weak that their functioning should not be impacted.
6219 am__obj=conftest.${OBJEXT-o}
6224 if depmode=$depmode \
6225 source=sub/conftest.c object=$am__obj \
6226 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6227 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6228 >/dev/null 2>conftest.err &&
6229 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6230 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6231 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6232 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6233 # icc doesn't choke on unknown options, it will just issue warnings
6234 # or remarks (even with -Werror). So we grep stderr for any message
6235 # that says an option was ignored or not supported.
6236 # When given -MP, icc 7.0 and 7.1 complain thusly:
6237 # icc: Command line warning: ignoring option '-M'; no argument required
6238 # The diagnosis changed in icc 8.0:
6239 # icc: Command line remark: option '-MP' not supported
6240 if (grep 'ignoring option' conftest.err ||
6241 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6242 am_cv_CC_dependencies_compiler_type=$depmode
6251 am_cv_CC_dependencies_compiler_type=none
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6256 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6257 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6260 test "x$enable_dependency_tracking" != xno \
6261 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6263 am__fastdepCC_FALSE='#'
6265 am__fastdepCC_TRUE='#'
6266 am__fastdepCC_FALSE=
6271 ac_cpp='$CXXCPP $CPPFLAGS'
6272 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6273 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6274 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6275 if test -z "$CXX"; then
6276 if test -n "$CCC"; then
6279 if test -n "$ac_tool_prefix"; then
6280 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6282 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6283 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6285 $as_echo_n "checking for $ac_word... " >&6; }
6286 if test "${ac_cv_prog_CXX+set}" = set; then :
6287 $as_echo_n "(cached) " >&6
6289 if test -n "$CXX"; then
6290 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 test -z "$as_dir" && as_dir=.
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6299 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6310 if test -n "$CXX"; then
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6312 $as_echo "$CXX" >&6; }
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315 $as_echo "no" >&6; }
6319 test -n "$CXX" && break
6322 if test -z "$CXX"; then
6324 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6326 # Extract the first word of "$ac_prog", so it can be a program name with args.
6327 set dummy $ac_prog; ac_word=$2
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6329 $as_echo_n "checking for $ac_word... " >&6; }
6330 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6331 $as_echo_n "(cached) " >&6
6333 if test -n "$ac_ct_CXX"; then
6334 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 test -z "$as_dir" && as_dir=.
6341 for ac_exec_ext in '' $ac_executable_extensions; do
6342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6343 ac_cv_prog_ac_ct_CXX="$ac_prog"
6344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6353 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6354 if test -n "$ac_ct_CXX"; then
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6356 $as_echo "$ac_ct_CXX" >&6; }
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359 $as_echo "no" >&6; }
6363 test -n "$ac_ct_CXX" && break
6366 if test "x$ac_ct_CXX" = x; then
6369 case $cross_compiling:$ac_tool_warned in
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6372 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6373 ac_tool_warned=yes ;;
6381 # Provide some information about the compiler.
6382 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6385 for ac_option in --version -v -V -qversion; do
6386 { { ac_try="$ac_compiler $ac_option >&5"
6388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6389 *) ac_try_echo=$ac_try;;
6391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6392 $as_echo "$ac_try_echo"; } >&5
6393 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6395 if test -s conftest.err; then
6397 ... rest of stderr output deleted ...
6398 10q' conftest.err >conftest.er1
6399 cat conftest.er1 >&5
6401 rm -f conftest.er1 conftest.err
6402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6403 test $ac_status = 0; }
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6407 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6408 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6409 $as_echo_n "(cached) " >&6
6411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6412 /* end confdefs.h. */
6425 if ac_fn_cxx_try_compile "$LINENO"; then :
6430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6431 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6435 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6436 if test $ac_compiler_gnu = yes; then
6441 ac_test_CXXFLAGS=${CXXFLAGS+set}
6442 ac_save_CXXFLAGS=$CXXFLAGS
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6444 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6445 if test "${ac_cv_prog_cxx_g+set}" = set; then :
6446 $as_echo_n "(cached) " >&6
6448 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6449 ac_cxx_werror_flag=yes
6452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6453 /* end confdefs.h. */
6463 if ac_fn_cxx_try_compile "$LINENO"; then :
6464 ac_cv_prog_cxx_g=yes
6467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h. */
6478 if ac_fn_cxx_try_compile "$LINENO"; then :
6481 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h. */
6494 if ac_fn_cxx_try_compile "$LINENO"; then :
6495 ac_cv_prog_cxx_g=yes
6497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6505 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6506 if test "$ac_test_CXXFLAGS" = set; then
6507 CXXFLAGS=$ac_save_CXXFLAGS
6508 elif test $ac_cv_prog_cxx_g = yes; then
6509 if test "$GXX" = yes; then
6515 if test "$GXX" = yes; then
6522 ac_cpp='$CPP $CPPFLAGS'
6523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6527 depcc="$CXX" am_compiler_list=
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6530 $as_echo_n "checking dependency style of $depcc... " >&6; }
6531 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
6532 $as_echo_n "(cached) " >&6
6534 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6535 # We make a subdir and do the tests there. Otherwise we can end up
6536 # making bogus files that we don't know about and never remove. For
6537 # instance it was reported that on HP-UX the gcc test will end up
6538 # making a dummy file named `D' -- because `-MD' means `put the output
6541 # Copy depcomp to subdir because otherwise we won't find it if we're
6542 # using a relative directory.
6543 cp "$am_depcomp" conftest.dir
6545 # We will build objects and dependencies in a subdirectory because
6546 # it helps to detect inapplicable dependency modes. For instance
6547 # both Tru64's cc and ICC support -MD to output dependencies as a
6548 # side effect of compilation, but ICC will put the dependencies in
6549 # the current directory while Tru64 will put them in the object
6553 am_cv_CXX_dependencies_compiler_type=none
6554 if test "$am_compiler_list" = ""; then
6555 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6558 case " $depcc " in #(
6559 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6562 for depmode in $am_compiler_list; do
6563 # Setup a source with many dependencies, because some compilers
6564 # like to wrap large dependency lists on column 80 (with \), and
6565 # we should not choose a depcomp mode which is confused by this.
6567 # We need to recreate these files for each test, as the compiler may
6568 # overwrite some of them when testing with obscure command lines.
6569 # This happens at least with the AIX C compiler.
6571 for i in 1 2 3 4 5 6; do
6572 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6573 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6574 # Solaris 8's {/usr,}/bin/sh.
6575 touch sub/conftst$i.h
6577 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6579 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6580 # mode. It turns out that the SunPro C++ compiler does not properly
6581 # handle `-M -o', and we need to detect this. Also, some Intel
6582 # versions had trouble with output in subdirs
6583 am__obj=sub/conftest.${OBJEXT-o}
6584 am__minus_obj="-o $am__obj"
6587 # This depmode causes a compiler race in universal mode.
6588 test "$am__universal" = false || continue
6591 # after this tag, mechanisms are not by side-effect, so they'll
6592 # only be used when explicitly requested
6593 if test "x$enable_dependency_tracking" = xyes; then
6599 msvisualcpp | msvcmsys)
6600 # This compiler won't grok `-c -o', but also, the minuso test has
6601 # not run yet. These depmodes are late enough in the game, and
6602 # so weak that their functioning should not be impacted.
6603 am__obj=conftest.${OBJEXT-o}
6608 if depmode=$depmode \
6609 source=sub/conftest.c object=$am__obj \
6610 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6611 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6612 >/dev/null 2>conftest.err &&
6613 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6614 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6615 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6616 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6617 # icc doesn't choke on unknown options, it will just issue warnings
6618 # or remarks (even with -Werror). So we grep stderr for any message
6619 # that says an option was ignored or not supported.
6620 # When given -MP, icc 7.0 and 7.1 complain thusly:
6621 # icc: Command line warning: ignoring option '-M'; no argument required
6622 # The diagnosis changed in icc 8.0:
6623 # icc: Command line remark: option '-MP' not supported
6624 if (grep 'ignoring option' conftest.err ||
6625 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6626 am_cv_CXX_dependencies_compiler_type=$depmode
6635 am_cv_CXX_dependencies_compiler_type=none
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6640 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6641 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6644 test "x$enable_dependency_tracking" != xno \
6645 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6646 am__fastdepCXX_TRUE=
6647 am__fastdepCXX_FALSE='#'
6649 am__fastdepCXX_TRUE='#'
6650 am__fastdepCXX_FALSE=
6654 case $ac_cv_prog_cc_stdc in #(
6656 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
6659 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
6660 if test "${ac_cv_prog_cc_c99+set}" = set; then :
6661 $as_echo_n "(cached) " >&6
6663 ac_cv_prog_cc_c99=no
6665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6666 /* end confdefs.h. */
6668 #include <stdbool.h>
6673 // Check varargs macros. These examples are taken from C99 6.10.3.5.
6674 #define debug(...) fprintf (stderr, __VA_ARGS__)
6675 #define showlist(...) puts (#__VA_ARGS__)
6676 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6678 test_varargs_macros (void)
6683 debug ("X = %d\n", x);
6684 showlist (The first, second, and third items.);
6685 report (x>y, "x is %d but y is %d", x, y);
6688 // Check long long types.
6689 #define BIG64 18446744073709551615ull
6690 #define BIG32 4294967295ul
6691 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6693 your preprocessor is broken;
6697 your preprocessor is broken;
6699 static long long int bignum = -9223372036854775807LL;
6700 static unsigned long long int ubignum = BIG64;
6702 struct incomplete_array
6710 const wchar_t *name;
6714 typedef const char *ccp;
6717 test_restrict (ccp restrict text)
6719 // See if C++-style comments work.
6720 // Iterate through items via the restricted pointer.
6721 // Also check for declarations in for loops.
6722 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6727 // Check varargs and va_copy.
6729 test_varargs (const char *format, ...)
6732 va_start (args, format);
6734 va_copy (args_copy, args);
6745 str = va_arg (args_copy, const char *);
6748 number = va_arg (args_copy, int);
6751 fnumber = va_arg (args_copy, double);
6766 _Bool success = false;
6769 if (test_restrict ("String literal") == 0)
6771 char *restrict newvar = "Another string";
6774 test_varargs ("s, d' f .", "string", 65, 34.234);
6775 test_varargs_macros ();
6777 // Check flexible array members.
6778 struct incomplete_array *ia =
6779 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6781 for (int i = 0; i < ia->datasize; ++i)
6782 ia->data[i] = i * 1.234;
6784 // Check named initializers.
6785 struct named_init ni = {
6787 .name = L"Test wide string",
6788 .average = 543.34343,
6793 int dynamic_array[ni.number];
6794 dynamic_array[ni.number - 1] = 543;
6796 // work around unused variable warnings
6797 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6798 || dynamic_array[ni.number - 1] != 543);
6804 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
6806 CC="$ac_save_CC $ac_arg"
6807 if ac_fn_c_try_compile "$LINENO"; then :
6808 ac_cv_prog_cc_c99=$ac_arg
6810 rm -f core conftest.err conftest.$ac_objext
6811 test "x$ac_cv_prog_cc_c99" != "xno" && break
6813 rm -f conftest.$ac_ext
6818 case "x$ac_cv_prog_cc_c99" in
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6821 $as_echo "none needed" >&6; } ;;
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6824 $as_echo "unsupported" >&6; } ;;
6826 CC="$CC $ac_cv_prog_cc_c99"
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6828 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6830 if test "x$ac_cv_prog_cc_c99" != xno; then :
6831 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6834 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6835 if test "${ac_cv_prog_cc_c89+set}" = set; then :
6836 $as_echo_n "(cached) " >&6
6838 ac_cv_prog_cc_c89=no
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6844 #include <sys/types.h>
6845 #include <sys/stat.h>
6846 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6847 struct buf { int x; };
6848 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6849 static char *e (p, i)
6855 static char *f (char * (*g) (char **, int), char **p, ...)
6860 s = g (p, va_arg (v,int));
6865 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6866 function prototypes and stuff, but not '\xHH' hex character constants.
6867 These don't provoke an error unfortunately, instead are silently treated
6868 as 'x'. The following induces an error, until -std is added to get
6869 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6870 array size at least. It's necessary to write '\x00'==0 to get something
6871 that's true only with -std. */
6872 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6874 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6875 inside strings and character constants. */
6877 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6879 int test (int i, double x);
6880 struct s1 {int (*f) (int a);};
6881 struct s2 {int (*f) (double a);};
6882 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6888 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6893 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6894 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6896 CC="$ac_save_CC $ac_arg"
6897 if ac_fn_c_try_compile "$LINENO"; then :
6898 ac_cv_prog_cc_c89=$ac_arg
6900 rm -f core conftest.err conftest.$ac_objext
6901 test "x$ac_cv_prog_cc_c89" != "xno" && break
6903 rm -f conftest.$ac_ext
6908 case "x$ac_cv_prog_cc_c89" in
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6911 $as_echo "none needed" >&6; } ;;
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6914 $as_echo "unsupported" >&6; } ;;
6916 CC="$CC $ac_cv_prog_cc_c89"
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6918 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6920 if test "x$ac_cv_prog_cc_c89" != xno; then :
6921 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6923 ac_cv_prog_cc_stdc=no
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
6930 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6931 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
6932 $as_echo_n "(cached) " >&6
6935 case $ac_cv_prog_cc_stdc in #(
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6938 $as_echo "unsupported" >&6; } ;; #(
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6941 $as_echo "none needed" >&6; } ;; #(
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
6944 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6948 ac_cpp='$CPP $CPPFLAGS'
6949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6953 $as_echo_n "checking how to run the C preprocessor... " >&6; }
6954 # On Suns, sometimes $CPP names a directory.
6955 if test -n "$CPP" && test -d "$CPP"; then
6958 if test -z "$CPP"; then
6959 if test "${ac_cv_prog_CPP+set}" = set; then :
6960 $as_echo_n "(cached) " >&6
6962 # Double quotes because CPP needs to be expanded
6963 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6966 for ac_c_preproc_warn_flag in '' yes
6968 # Use a header file that comes with gcc, so configuring glibc
6969 # with a fresh cross-compiler works.
6970 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6971 # <limits.h> exists even on freestanding compilers.
6972 # On the NeXT, cc -E runs the code through the compiler's parser,
6973 # not just through cpp. "Syntax error" is here to catch this case.
6974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6975 /* end confdefs.h. */
6977 # include <limits.h>
6979 # include <assert.h>
6983 if ac_fn_c_try_cpp "$LINENO"; then :
6986 # Broken: fails on valid input.
6989 rm -f conftest.err conftest.$ac_ext
6991 # OK, works on sane cases. Now check whether nonexistent headers
6992 # can be detected and how.
6993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h. */
6995 #include <ac_nonexistent.h>
6997 if ac_fn_c_try_cpp "$LINENO"; then :
6998 # Broken: success on invalid input.
7001 # Passes both tests.
7005 rm -f conftest.err conftest.$ac_ext
7008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7009 rm -f conftest.err conftest.$ac_ext
7010 if $ac_preproc_ok; then :
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7023 $as_echo "$CPP" >&6; }
7025 for ac_c_preproc_warn_flag in '' yes
7027 # Use a header file that comes with gcc, so configuring glibc
7028 # with a fresh cross-compiler works.
7029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7030 # <limits.h> exists even on freestanding compilers.
7031 # On the NeXT, cc -E runs the code through the compiler's parser,
7032 # not just through cpp. "Syntax error" is here to catch this case.
7033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7034 /* end confdefs.h. */
7036 # include <limits.h>
7038 # include <assert.h>
7042 if ac_fn_c_try_cpp "$LINENO"; then :
7045 # Broken: fails on valid input.
7048 rm -f conftest.err conftest.$ac_ext
7050 # OK, works on sane cases. Now check whether nonexistent headers
7051 # can be detected and how.
7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h. */
7054 #include <ac_nonexistent.h>
7056 if ac_fn_c_try_cpp "$LINENO"; then :
7057 # Broken: success on invalid input.
7060 # Passes both tests.
7064 rm -f conftest.err conftest.$ac_ext
7067 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7068 rm -f conftest.err conftest.$ac_ext
7069 if $ac_preproc_ok; then :
7072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7074 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7075 See \`config.log' for more details." "$LINENO" 5; }
7079 ac_cpp='$CPP $CPPFLAGS'
7080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7085 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7086 if test "${ac_cv_path_SED+set}" = set; then :
7087 $as_echo_n "(cached) " >&6
7089 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7090 for ac_i in 1 2 3 4 5 6 7; do
7091 ac_script="$ac_script$as_nl$ac_script"
7093 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7094 { ac_script=; unset ac_script;}
7095 if test -z "$SED"; then
7096 ac_path_SED_found=false
7097 # Loop through the user's path and test for each of PROGNAME-LIST
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 test -z "$as_dir" && as_dir=.
7103 for ac_prog in sed gsed; do
7104 for ac_exec_ext in '' $ac_executable_extensions; do
7105 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7106 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7107 # Check for GNU ac_path_SED and select it if it is found.
7108 # Check for GNU $ac_path_SED
7109 case `"$ac_path_SED" --version 2>&1` in
7111 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7114 $as_echo_n 0123456789 >"conftest.in"
7117 cat "conftest.in" "conftest.in" >"conftest.tmp"
7118 mv "conftest.tmp" "conftest.in"
7119 cp "conftest.in" "conftest.nl"
7120 $as_echo '' >> "conftest.nl"
7121 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7122 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7123 as_fn_arith $ac_count + 1 && ac_count=$as_val
7124 if test $ac_count -gt ${ac_path_SED_max-0}; then
7125 # Best one so far, save it but keep looking for a better one
7126 ac_cv_path_SED="$ac_path_SED"
7127 ac_path_SED_max=$ac_count
7129 # 10*(2^10) chars as input seems more than enough
7130 test $ac_count -gt 10 && break
7132 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7135 $ac_path_SED_found && break 3
7140 if test -z "$ac_cv_path_SED"; then
7141 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7149 $as_echo "$ac_cv_path_SED" >&6; }
7150 SED="$ac_cv_path_SED"
7153 test -z "$SED" && SED=sed
7154 Xsed="$SED -e 1s/^X//"
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7167 $as_echo_n "checking for fgrep... " >&6; }
7168 if test "${ac_cv_path_FGREP+set}" = set; then :
7169 $as_echo_n "(cached) " >&6
7171 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7172 then ac_cv_path_FGREP="$GREP -F"
7174 if test -z "$FGREP"; then
7175 ac_path_FGREP_found=false
7176 # Loop through the user's path and test for each of PROGNAME-LIST
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7178 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7181 test -z "$as_dir" && as_dir=.
7182 for ac_prog in fgrep; do
7183 for ac_exec_ext in '' $ac_executable_extensions; do
7184 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7185 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7186 # Check for GNU ac_path_FGREP and select it if it is found.
7187 # Check for GNU $ac_path_FGREP
7188 case `"$ac_path_FGREP" --version 2>&1` in
7190 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7193 $as_echo_n 0123456789 >"conftest.in"
7196 cat "conftest.in" "conftest.in" >"conftest.tmp"
7197 mv "conftest.tmp" "conftest.in"
7198 cp "conftest.in" "conftest.nl"
7199 $as_echo 'FGREP' >> "conftest.nl"
7200 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7201 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7202 as_fn_arith $ac_count + 1 && ac_count=$as_val
7203 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7204 # Best one so far, save it but keep looking for a better one
7205 ac_cv_path_FGREP="$ac_path_FGREP"
7206 ac_path_FGREP_max=$ac_count
7208 # 10*(2^10) chars as input seems more than enough
7209 test $ac_count -gt 10 && break
7211 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7214 $ac_path_FGREP_found && break 3
7219 if test -z "$ac_cv_path_FGREP"; then
7220 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7223 ac_cv_path_FGREP=$FGREP
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7229 $as_echo "$ac_cv_path_FGREP" >&6; }
7230 FGREP="$ac_cv_path_FGREP"
7233 test -z "$GREP" && GREP=grep
7253 # Check whether --with-gnu-ld was given.
7254 if test "${with_gnu_ld+set}" = set; then :
7255 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7261 if test "$GCC" = yes; then
7262 # Check if gcc -print-prog-name=ld gives a path.
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7264 $as_echo_n "checking for ld used by $CC... " >&6; }
7267 # gcc leaves a trailing carriage return which upsets mingw
7268 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7270 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7273 # Accept absolute paths.
7275 re_direlt='/[^/][^/]*/\.\./'
7276 # Canonicalize the pathname of ld
7277 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7278 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7279 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7281 test -z "$LD" && LD="$ac_prog"
7284 # If it fails, then pretend we aren't using GCC.
7288 # If it is relative, then search for the first ld in PATH.
7292 elif test "$with_gnu_ld" = yes; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7294 $as_echo_n "checking for GNU ld... " >&6; }
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7297 $as_echo_n "checking for non-GNU ld... " >&6; }
7299 if test "${lt_cv_path_LD+set}" = set; then :
7300 $as_echo_n "(cached) " >&6
7302 if test -z "$LD"; then
7303 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7304 for ac_dir in $PATH; do
7306 test -z "$ac_dir" && ac_dir=.
7307 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7308 lt_cv_path_LD="$ac_dir/$ac_prog"
7309 # Check to see if the program is GNU ld. I'd rather use --version,
7310 # but apparently some variants of GNU ld only accept -v.
7311 # Break only if it was the GNU/non-GNU ld that we prefer.
7312 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7313 *GNU* | *'with BFD'*)
7314 test "$with_gnu_ld" != no && break
7317 test "$with_gnu_ld" != yes && break
7324 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7329 if test -n "$LD"; then
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7331 $as_echo "$LD" >&6; }
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7334 $as_echo "no" >&6; }
7336 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7338 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7339 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7340 $as_echo_n "(cached) " >&6
7342 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7343 case `$LD -v 2>&1 </dev/null` in
7344 *GNU* | *'with BFD'*)
7345 lt_cv_prog_gnu_ld=yes
7348 lt_cv_prog_gnu_ld=no
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7353 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7354 with_gnu_ld=$lt_cv_prog_gnu_ld
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7366 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
7367 if test "${ac_cv_prog_cc_c99+set}" = set; then :
7368 $as_echo_n "(cached) " >&6
7370 ac_cv_prog_cc_c99=no
7372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7373 /* end confdefs.h. */
7375 #include <stdbool.h>
7380 // Check varargs macros. These examples are taken from C99 6.10.3.5.
7381 #define debug(...) fprintf (stderr, __VA_ARGS__)
7382 #define showlist(...) puts (#__VA_ARGS__)
7383 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7385 test_varargs_macros (void)
7390 debug ("X = %d\n", x);
7391 showlist (The first, second, and third items.);
7392 report (x>y, "x is %d but y is %d", x, y);
7395 // Check long long types.
7396 #define BIG64 18446744073709551615ull
7397 #define BIG32 4294967295ul
7398 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7400 your preprocessor is broken;
7404 your preprocessor is broken;
7406 static long long int bignum = -9223372036854775807LL;
7407 static unsigned long long int ubignum = BIG64;
7409 struct incomplete_array
7417 const wchar_t *name;
7421 typedef const char *ccp;
7424 test_restrict (ccp restrict text)
7426 // See if C++-style comments work.
7427 // Iterate through items via the restricted pointer.
7428 // Also check for declarations in for loops.
7429 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7434 // Check varargs and va_copy.
7436 test_varargs (const char *format, ...)
7439 va_start (args, format);
7441 va_copy (args_copy, args);
7452 str = va_arg (args_copy, const char *);
7455 number = va_arg (args_copy, int);
7458 fnumber = va_arg (args_copy, double);
7473 _Bool success = false;
7476 if (test_restrict ("String literal") == 0)
7478 char *restrict newvar = "Another string";
7481 test_varargs ("s, d' f .", "string", 65, 34.234);
7482 test_varargs_macros ();
7484 // Check flexible array members.
7485 struct incomplete_array *ia =
7486 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7488 for (int i = 0; i < ia->datasize; ++i)
7489 ia->data[i] = i * 1.234;
7491 // Check named initializers.
7492 struct named_init ni = {
7494 .name = L"Test wide string",
7495 .average = 543.34343,
7500 int dynamic_array[ni.number];
7501 dynamic_array[ni.number - 1] = 543;
7503 // work around unused variable warnings
7504 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7505 || dynamic_array[ni.number - 1] != 543);
7511 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
7513 CC="$ac_save_CC $ac_arg"
7514 if ac_fn_c_try_compile "$LINENO"; then :
7515 ac_cv_prog_cc_c99=$ac_arg
7517 rm -f core conftest.err conftest.$ac_objext
7518 test "x$ac_cv_prog_cc_c99" != "xno" && break
7520 rm -f conftest.$ac_ext
7525 case "x$ac_cv_prog_cc_c99" in
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7528 $as_echo "none needed" >&6; } ;;
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7531 $as_echo "unsupported" >&6; } ;;
7533 CC="$CC $ac_cv_prog_cc_c99"
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7535 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7537 if test "x$ac_cv_prog_cc_c99" != xno; then :
7542 if test "x$CC" != xcc; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7544 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7547 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7549 set dummy $CC; ac_cc=`$as_echo "$2" |
7550 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7551 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
7552 $as_echo_n "(cached) " >&6
7554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7555 /* end confdefs.h. */
7565 # Make sure it works both with $CC and with simple cc.
7566 # We do the test twice because some compilers refuse to overwrite an
7567 # existing .o file with -o, though they will create one.
7568 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7570 if { { case "(($ac_try" in
7571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7572 *) ac_try_echo=$ac_try;;
7574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7575 $as_echo "$ac_try_echo"; } >&5
7576 (eval "$ac_try") 2>&5
7578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7579 test $ac_status = 0; } &&
7580 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7582 *) ac_try_echo=$ac_try;;
7584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7585 $as_echo "$ac_try_echo"; } >&5
7586 (eval "$ac_try") 2>&5
7588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7589 test $ac_status = 0; };
7591 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7592 if test "x$CC" != xcc; then
7593 # Test first that cc exists at all.
7594 if { ac_try='cc -c conftest.$ac_ext >&5'
7595 { { case "(($ac_try" in
7596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7597 *) ac_try_echo=$ac_try;;
7599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7600 $as_echo "$ac_try_echo"; } >&5
7601 (eval "$ac_try") 2>&5
7603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7604 test $ac_status = 0; }; }; then
7605 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7607 if { { case "(($ac_try" in
7608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7609 *) ac_try_echo=$ac_try;;
7611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7612 $as_echo "$ac_try_echo"; } >&5
7613 (eval "$ac_try") 2>&5
7615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7616 test $ac_status = 0; } &&
7617 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7619 *) ac_try_echo=$ac_try;;
7621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7622 $as_echo "$ac_try_echo"; } >&5
7623 (eval "$ac_try") 2>&5
7625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7626 test $ac_status = 0; };
7631 # cc exists but doesn't like -o.
7632 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7637 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7639 rm -f core conftest*
7642 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7644 $as_echo "yes" >&6; }
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647 $as_echo "no" >&6; }
7649 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7653 # FIXME: we rely on the cache variable name because
7654 # there is no other way.
7656 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7657 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7658 if test "$am_t" != yes; then
7659 # Losing compiler, so override with the script.
7660 # FIXME: It is wrong to rewrite CC.
7661 # But if we don't then we get into trouble of one sort or another.
7662 # A longer-term fix would be to have automake use am__CC in this case,
7663 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7664 CC="$am_aux_dir/compile $CC"
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7669 $as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
7670 if test "${ac_cv_cflags_warn_all+set}" = set; then :
7671 $as_echo_n "(cached) " >&6
7673 ac_cv_cflags_warn_all="no, unknown"
7675 ac_cpp='$CPP $CPPFLAGS'
7676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7680 ac_save_CFLAGS="$CFLAGS"
7681 for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
7682 do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684 /* end confdefs.h. */
7694 if ac_fn_c_try_compile "$LINENO"; then :
7695 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699 CFLAGS="$ac_save_CFLAGS"
7701 ac_cpp='$CPP $CPPFLAGS'
7702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7709 $as_echo "$ac_cv_cflags_warn_all" >&6; }
7710 case ".$ac_cv_cflags_warn_all" in
7715 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7716 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7717 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7720 test $ac_status = 0; }
7721 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7722 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7725 test $ac_status = 0; }
7726 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7733 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7735 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7736 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7737 $as_echo_n "(cached) " >&6
7739 cat >conftest.make <<\_ACEOF
7742 @echo '@@@%%%=$(MAKE)=@@@%%%'
7744 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7745 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7747 eval ac_cv_prog_make_${ac_make}_set=yes;;
7749 eval ac_cv_prog_make_${ac_make}_set=no;;
7753 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7755 $as_echo "yes" >&6; }
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7759 $as_echo "no" >&6; }
7760 SET_MAKE="MAKE=${MAKE-make}"
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7764 $as_echo_n "checking whether ln -s works... " >&6; }
7766 if test "$LN_S" = "ln -s"; then
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7768 $as_echo "yes" >&6; }
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7771 $as_echo "no, using $LN_S" >&6; }
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
7775 $as_echo_n "checking if malloc debugging is wanted... " >&6; }
7777 # Check whether --with-dmalloc was given.
7778 if test "${with_dmalloc+set}" = set; then :
7779 withval=$with_dmalloc; if test "$withval" = yes; then
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7781 $as_echo "yes" >&6; }
7783 $as_echo "#define WITH_DMALLOC 1" >>confdefs.h
7785 LIBS="$LIBS -ldmalloc"
7786 LDFLAGS="$LDFLAGS -g"
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7789 $as_echo "no" >&6; }
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7793 $as_echo "no" >&6; }
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
7799 $as_echo_n "checking for __attribute__... " >&6; }
7800 if test "${ax_cv___attribute__+set}" = set; then :
7801 $as_echo_n "(cached) " >&6
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h. */
7806 static void foo(void) __attribute__ ((unused));
7820 if ac_fn_c_try_compile "$LINENO"; then :
7821 ax_cv___attribute__=yes
7823 ax_cv___attribute__=no
7826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
7830 $as_echo "$ax_cv___attribute__" >&6; }
7831 if test "$ax_cv___attribute__" = "yes"; then
7833 $as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
7839 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7840 if test -n "$ac_tool_prefix"; then
7841 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7842 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7844 $as_echo_n "checking for $ac_word... " >&6; }
7845 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7846 $as_echo_n "(cached) " >&6
7850 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857 test -z "$as_dir" && as_dir=.
7858 for ac_exec_ext in '' $ac_executable_extensions; do
7859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7860 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7871 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7872 if test -n "$PKG_CONFIG"; then
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7874 $as_echo "$PKG_CONFIG" >&6; }
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7877 $as_echo "no" >&6; }
7882 if test -z "$ac_cv_path_PKG_CONFIG"; then
7883 ac_pt_PKG_CONFIG=$PKG_CONFIG
7884 # Extract the first word of "pkg-config", so it can be a program name with args.
7885 set dummy pkg-config; ac_word=$2
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7887 $as_echo_n "checking for $ac_word... " >&6; }
7888 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
7889 $as_echo_n "(cached) " >&6
7891 case $ac_pt_PKG_CONFIG in
7893 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7900 test -z "$as_dir" && as_dir=.
7901 for ac_exec_ext in '' $ac_executable_extensions; do
7902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7903 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7914 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7915 if test -n "$ac_pt_PKG_CONFIG"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7917 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7923 if test "x$ac_pt_PKG_CONFIG" = x; then
7926 case $cross_compiling:$ac_tool_warned in
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7929 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7930 ac_tool_warned=yes ;;
7932 PKG_CONFIG=$ac_pt_PKG_CONFIG
7935 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7939 if test -n "$PKG_CONFIG"; then
7940 _pkg_min_version=0.9.0
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7942 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7943 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7945 $as_echo "yes" >&6; }
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948 $as_echo "no" >&6; }
7955 # Enable run-time checking.
7957 # Check whether --enable-bounds-checking was given.
7958 if test "${enable_bounds_checking+set}" = set; then :
7959 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
7961 enable_bounds_checking='no'
7965 if test "$enable_bounds_checking" = yes; then
7967 $as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
7977 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
7978 if test "${ax_cv_c_compiler_ms+set}" = set; then :
7979 $as_echo_n "(cached) " >&6
7981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7982 /* end confdefs.h. */
7995 if ac_fn_c_try_compile "$LINENO"; then :
8000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8001 ax_cv_c_compiler_ms=$ax_compiler_ms
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8005 $as_echo "$ax_cv_c_compiler_ms" >&6; }
8008 native_win32_build='no'
8010 case "${host_os}" in
8013 GDI32_LIBS='-lgdi32'
8016 native_win32_build='yes'
8017 GDI32_LIBS='-lgdi32'
8020 if test "${GDI32_LIBS}x" != 'x'; then
8022 $as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
8026 if test "${GDI32_LIBS}x" != 'x' ; then
8027 WINGDI32_DELEGATE_TRUE=
8028 WINGDI32_DELEGATE_FALSE='#'
8030 WINGDI32_DELEGATE_TRUE='#'
8031 WINGDI32_DELEGATE_FALSE=
8034 if test "${native_win32_build}" = 'yes' ; then
8035 WIN32_NATIVE_BUILD_TRUE=
8036 WIN32_NATIVE_BUILD_FALSE='#'
8038 WIN32_NATIVE_BUILD_TRUE='#'
8039 WIN32_NATIVE_BUILD_FALSE=
8042 if test "${cygwin_build}" = 'yes' ; then
8044 CYGWIN_BUILD_FALSE='#'
8046 CYGWIN_BUILD_TRUE='#'
8050 if test "x${CC}" = 'xcl.exe' ; then
8059 WinPathScript="${srcdirfull}/winpath.sh"
8063 # Compiler flags tweaks
8065 if test "${GCC}" != "yes"; then
8068 # aCC: HP ANSI C++ B3910B A.03.34
8069 CFLAGS="${CFLAGS} -Wp,-H30000"
8070 if test -n "${CXXFLAGS}"; then
8073 CXXFLAGS="${CXXFLAGS} -AA"
8077 # Compaq alphaev68-dec-osf5.1 compiler
8078 if test -n "${CXXFLAGS}"; then
8079 CXXFLAGS='-std strict_ansi -noimplicit_include'
8081 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8086 # Check for lazy-loading.
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
8088 $as_echo_n "checking for linker lazyload option... " >&6; }
8089 if test "${im_cv_ld_lazyload+set}" = set; then :
8090 $as_echo_n "(cached) " >&6
8093 im_cv_ld_lazyload='none'
8095 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8096 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8097 im_cv_ld_lazyload='-Wl,-zlazyload'
8103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
8104 $as_echo "$im_cv_ld_lazyload" >&6; }
8105 if test "${im_cv_ld_lazyload}" != 'none' ; then
8106 if test -z "${LDFLAGS}" ; then
8107 LDFLAGS="${im_cv_ld_lazyload}"
8109 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8114 *darwin* | *-macos10*)
8115 # Check whether --enable-osx-universal-binary was given.
8116 if test "${enable_osx_universal_binary+set}" = set; then :
8117 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8119 build_osxuniversal=no
8123 if test "${build_osxuniversal}" != no ; then
8124 if test "$enable_dependency_tracking" != no ; then
8125 as_fn_error "--enable-osx-universal-binary requires --disable-dependency-tracking.
8126 Please re-run configure with these options:
8127 --disable-dependency-tracking --enable-osx-universal-binary
8130 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8131 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8132 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8137 # Enable support for threads
8139 # Check whether --with-threads was given.
8140 if test "${with_threads+set}" = set; then :
8141 withval=$with_threads; with_threads=$withval
8148 if test "$with_threads" != 'no'; then
8153 ac_cpp='$CPP $CPPFLAGS'
8154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8160 # We used to check for pthread.h first, but this fails if pthread.h
8161 # requires special compiler flags (e.g. on True64 or Sequent).
8162 # It gets checked for in the link test anyway.
8164 # First of all, check if the user has set any of the PTHREAD_LIBS,
8165 # etcetera environment variables, and if threads linking works using
8167 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8168 save_CFLAGS="$CFLAGS"
8169 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8171 LIBS="$PTHREAD_LIBS $LIBS"
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8173 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8175 /* end confdefs.h. */
8177 /* Override any GCC internal prototype to avoid an error.
8178 Use char because int might match the return type of a GCC
8179 builtin and then its argument prototype would still apply. */
8183 char pthread_join ();
8187 return pthread_join ();
8192 if ac_fn_c_try_link "$LINENO"; then :
8195 rm -f core conftest.err conftest.$ac_objext \
8196 conftest$ac_exeext conftest.$ac_ext
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8198 $as_echo "$ax_pthread_ok" >&6; }
8199 if test x"$ax_pthread_ok" = xno; then
8204 CFLAGS="$save_CFLAGS"
8207 # We must check for the threads library under a number of different
8208 # names; the ordering is very important because some systems
8209 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8210 # libraries is broken (non-POSIX).
8212 # Create a list of thread flags to try. Items starting with a "-" are
8213 # C compiler flags, and other items are library names, except for "none"
8214 # which indicates that we try without any flags at all, and "pthread-config"
8215 # which is a program returning the flags for the Pth emulation library.
8217 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8219 # The ordering *is* (sometimes) important. Some notes on the
8220 # individual items follow:
8222 # pthreads: AIX (must check this before -lpthread)
8223 # none: in case threads are in libc; should be tried before -Kthread and
8224 # other compiler flags to prevent continual compiler warnings
8225 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8226 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8227 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8228 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8229 # -pthreads: Solaris/gcc
8230 # -mthreads: Mingw32/gcc, Lynx/gcc
8231 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8232 # doesn't hurt to check since this sometimes defines pthreads too;
8233 # also defines -D_REENTRANT)
8234 # ... -mt is also the pthreads flag for HP/aCC
8235 # pthread: Linux, etcetera
8236 # --thread-safe: KAI C++
8237 # pthread-config: use pthread-config program (for GNU Pth library)
8239 case "${host_cpu}-${host_os}" in
8242 # On Solaris (at least, for some versions), libc contains stubbed
8243 # (non-functional) versions of the pthreads routines, so link-based
8244 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8245 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8246 # a function called by this macro, so we could check for that, but
8247 # who knows whether they'll stub that too in a future libc.) So,
8248 # we'll just look for -pthreads and -lpthread first:
8250 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8254 ax_pthread_flags="-pthread $ax_pthread_flags"
8258 if test x"$ax_pthread_ok" = xno; then
8259 for flag in $ax_pthread_flags; do
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8264 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8269 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8270 PTHREAD_CFLAGS="$flag"
8274 # Extract the first word of "pthread-config", so it can be a program name with args.
8275 set dummy pthread-config; ac_word=$2
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8277 $as_echo_n "checking for $ac_word... " >&6; }
8278 if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8279 $as_echo_n "(cached) " >&6
8281 if test -n "$ax_pthread_config"; then
8282 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8288 test -z "$as_dir" && as_dir=.
8289 for ac_exec_ext in '' $ac_executable_extensions; do
8290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8291 ac_cv_prog_ax_pthread_config="yes"
8292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8299 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8302 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8303 if test -n "$ax_pthread_config"; then
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8305 $as_echo "$ax_pthread_config" >&6; }
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308 $as_echo "no" >&6; }
8312 if test x"$ax_pthread_config" = xno; then continue; fi
8313 PTHREAD_CFLAGS="`pthread-config --cflags`"
8314 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8319 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8320 PTHREAD_LIBS="-l$flag"
8325 save_CFLAGS="$CFLAGS"
8326 LIBS="$PTHREAD_LIBS $LIBS"
8327 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8329 # Check for various functions. We must include pthread.h,
8330 # since some functions may be macros. (On the Sequent, we
8331 # need a special flag -Kthread to make this header compile.)
8332 # We check for pthread_join because it is in -lpthread on IRIX
8333 # while pthread_create is in libc. We check for pthread_attr_init
8334 # due to DEC craziness with -lpthreads. We check for
8335 # pthread_cleanup_push because it is one of the few pthread
8336 # functions on Solaris that doesn't have a non-functional libc stub.
8337 # We try pthread_create on general principles.
8338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8339 /* end confdefs.h. */
8340 #include <pthread.h>
8341 static void routine(void* a) {a=0;}
8342 static void* start_routine(void* a) {return a;}
8346 pthread_t th; pthread_attr_t attr;
8347 pthread_create(&th,0,start_routine,0);
8348 pthread_join(th, 0);
8349 pthread_attr_init(&attr);
8350 pthread_cleanup_push(routine, 0);
8351 pthread_cleanup_pop(0);
8356 if ac_fn_c_try_link "$LINENO"; then :
8359 rm -f core conftest.err conftest.$ac_objext \
8360 conftest$ac_exeext conftest.$ac_ext
8363 CFLAGS="$save_CFLAGS"
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8366 $as_echo "$ax_pthread_ok" >&6; }
8367 if test "x$ax_pthread_ok" = xyes; then
8376 # Various other checks:
8377 if test "x$ax_pthread_ok" = xyes; then
8379 LIBS="$PTHREAD_LIBS $LIBS"
8380 save_CFLAGS="$CFLAGS"
8381 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8383 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8385 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8387 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8389 /* end confdefs.h. */
8390 #include <pthread.h>
8394 int attr=$attr; return attr;
8399 if ac_fn_c_try_link "$LINENO"; then :
8400 attr_name=$attr; break
8402 rm -f core conftest.err conftest.$ac_objext \
8403 conftest$ac_exeext conftest.$ac_ext
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8406 $as_echo "$attr_name" >&6; }
8407 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8409 cat >>confdefs.h <<_ACEOF
8410 #define PTHREAD_CREATE_JOINABLE $attr_name
8415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8416 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8418 case "${host_cpu}-${host_os}" in
8419 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8420 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8423 $as_echo "${flag}" >&6; }
8424 if test "x$flag" != xno; then
8425 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8429 CFLAGS="$save_CFLAGS"
8431 # More AIX lossage: must compile with xlc_r or cc_r
8432 if test x"$GCC" != xyes; then
8433 for ac_prog in xlc_r cc_r
8435 # Extract the first word of "$ac_prog", so it can be a program name with args.
8436 set dummy $ac_prog; ac_word=$2
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438 $as_echo_n "checking for $ac_word... " >&6; }
8439 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8440 $as_echo_n "(cached) " >&6
8442 if test -n "$PTHREAD_CC"; then
8443 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8449 test -z "$as_dir" && as_dir=.
8450 for ac_exec_ext in '' $ac_executable_extensions; do
8451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8452 ac_cv_prog_PTHREAD_CC="$ac_prog"
8453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8462 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8463 if test -n "$PTHREAD_CC"; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8465 $as_echo "$PTHREAD_CC" >&6; }
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468 $as_echo "no" >&6; }
8472 test -n "$PTHREAD_CC" && break
8474 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8487 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8488 if test x"$ax_pthread_ok" = xyes; then
8490 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8498 ac_cpp='$CPP $CPPFLAGS'
8499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8504 if test "$ax_pthread_ok" = yes; then
8506 DEF_THREAD="$PTHREAD_CFLAGS"
8507 CFLAGS="$CFLAGS $DEF_THREAD"
8508 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
8509 if test "$CC" != "$PTHREAD_CC"; then
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
8511 $as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
8515 $as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
8520 # Enable support for OpenMP
8521 if test "$have_threads" != 'yes'; then
8522 ac_cv_prog_c_openmp=unsupported
8526 # Check whether --enable-openmp was given.
8527 if test "${enable_openmp+set}" = set; then :
8528 enableval=$enable_openmp;
8531 if test "$enable_openmp" != no; then
8532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
8533 $as_echo_n "checking for $CC option to support OpenMP... " >&6; }
8534 if test "${ac_cv_prog_c_openmp+set}" = set; then :
8535 $as_echo_n "(cached) " >&6
8537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8538 /* end confdefs.h. */
8544 int main () { return omp_get_num_threads (); }
8547 if ac_fn_c_try_link "$LINENO"; then :
8548 ac_cv_prog_c_openmp='none needed'
8550 ac_cv_prog_c_openmp='unsupported'
8551 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
8552 ac_save_CFLAGS=$CFLAGS
8553 CFLAGS="$CFLAGS $ac_option"
8554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8555 /* end confdefs.h. */
8561 int main () { return omp_get_num_threads (); }
8564 if ac_fn_c_try_link "$LINENO"; then :
8565 ac_cv_prog_c_openmp=$ac_option
8567 rm -f core conftest.err conftest.$ac_objext \
8568 conftest$ac_exeext conftest.$ac_ext
8569 CFLAGS=$ac_save_CFLAGS
8570 if test "$ac_cv_prog_c_openmp" != unsupported; then
8575 rm -f core conftest.err conftest.$ac_objext \
8576 conftest$ac_exeext conftest.$ac_ext
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
8579 $as_echo "$ac_cv_prog_c_openmp" >&6; }
8580 case $ac_cv_prog_c_openmp in #(
8581 "none needed" | unsupported)
8584 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
8589 CFLAGS="$OPENMP_CFLAGS $CFLAGS"
8590 MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
8592 if test "$enable_openmp" != no; then
8593 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
8594 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
8598 # Enable support for OpenCL
8603 ac_cpp='$CPP $CPPFLAGS'
8604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8610 # We used to check for pthread.h first, but this fails if pthread.h
8611 # requires special compiler flags (e.g. on True64 or Sequent).
8612 # It gets checked for in the link test anyway.
8614 # First of all, check if the user has set any of the PTHREAD_LIBS,
8615 # etcetera environment variables, and if threads linking works using
8617 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8618 save_CFLAGS="$CFLAGS"
8619 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8621 LIBS="$PTHREAD_LIBS $LIBS"
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8623 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8625 /* end confdefs.h. */
8627 /* Override any GCC internal prototype to avoid an error.
8628 Use char because int might match the return type of a GCC
8629 builtin and then its argument prototype would still apply. */
8633 char pthread_join ();
8637 return pthread_join ();
8642 if ac_fn_c_try_link "$LINENO"; then :
8645 rm -f core conftest.err conftest.$ac_objext \
8646 conftest$ac_exeext conftest.$ac_ext
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8648 $as_echo "$ax_pthread_ok" >&6; }
8649 if test x"$ax_pthread_ok" = xno; then
8654 CFLAGS="$save_CFLAGS"
8657 # We must check for the threads library under a number of different
8658 # names; the ordering is very important because some systems
8659 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8660 # libraries is broken (non-POSIX).
8662 # Create a list of thread flags to try. Items starting with a "-" are
8663 # C compiler flags, and other items are library names, except for "none"
8664 # which indicates that we try without any flags at all, and "pthread-config"
8665 # which is a program returning the flags for the Pth emulation library.
8667 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8669 # The ordering *is* (sometimes) important. Some notes on the
8670 # individual items follow:
8672 # pthreads: AIX (must check this before -lpthread)
8673 # none: in case threads are in libc; should be tried before -Kthread and
8674 # other compiler flags to prevent continual compiler warnings
8675 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8676 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8677 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8678 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8679 # -pthreads: Solaris/gcc
8680 # -mthreads: Mingw32/gcc, Lynx/gcc
8681 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8682 # doesn't hurt to check since this sometimes defines pthreads too;
8683 # also defines -D_REENTRANT)
8684 # ... -mt is also the pthreads flag for HP/aCC
8685 # pthread: Linux, etcetera
8686 # --thread-safe: KAI C++
8687 # pthread-config: use pthread-config program (for GNU Pth library)
8689 case "${host_cpu}-${host_os}" in
8692 # On Solaris (at least, for some versions), libc contains stubbed
8693 # (non-functional) versions of the pthreads routines, so link-based
8694 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
8695 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
8696 # a function called by this macro, so we could check for that, but
8697 # who knows whether they'll stub that too in a future libc.) So,
8698 # we'll just look for -pthreads and -lpthread first:
8700 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
8704 ax_pthread_flags="-pthread $ax_pthread_flags"
8708 if test x"$ax_pthread_ok" = xno; then
8709 for flag in $ax_pthread_flags; do
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
8714 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
8719 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
8720 PTHREAD_CFLAGS="$flag"
8724 # Extract the first word of "pthread-config", so it can be a program name with args.
8725 set dummy pthread-config; ac_word=$2
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8727 $as_echo_n "checking for $ac_word... " >&6; }
8728 if test "${ac_cv_prog_ax_pthread_config+set}" = set; then :
8729 $as_echo_n "(cached) " >&6
8731 if test -n "$ax_pthread_config"; then
8732 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
8734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8738 test -z "$as_dir" && as_dir=.
8739 for ac_exec_ext in '' $ac_executable_extensions; do
8740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8741 ac_cv_prog_ax_pthread_config="yes"
8742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8749 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
8752 ax_pthread_config=$ac_cv_prog_ax_pthread_config
8753 if test -n "$ax_pthread_config"; then
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
8755 $as_echo "$ax_pthread_config" >&6; }
8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8758 $as_echo "no" >&6; }
8762 if test x"$ax_pthread_config" = xno; then continue; fi
8763 PTHREAD_CFLAGS="`pthread-config --cflags`"
8764 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
8769 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
8770 PTHREAD_LIBS="-l$flag"
8775 save_CFLAGS="$CFLAGS"
8776 LIBS="$PTHREAD_LIBS $LIBS"
8777 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8779 # Check for various functions. We must include pthread.h,
8780 # since some functions may be macros. (On the Sequent, we
8781 # need a special flag -Kthread to make this header compile.)
8782 # We check for pthread_join because it is in -lpthread on IRIX
8783 # while pthread_create is in libc. We check for pthread_attr_init
8784 # due to DEC craziness with -lpthreads. We check for
8785 # pthread_cleanup_push because it is one of the few pthread
8786 # functions on Solaris that doesn't have a non-functional libc stub.
8787 # We try pthread_create on general principles.
8788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8789 /* end confdefs.h. */
8790 #include <pthread.h>
8791 static void routine(void* a) {a=0;}
8792 static void* start_routine(void* a) {return a;}
8796 pthread_t th; pthread_attr_t attr;
8797 pthread_create(&th,0,start_routine,0);
8798 pthread_join(th, 0);
8799 pthread_attr_init(&attr);
8800 pthread_cleanup_push(routine, 0);
8801 pthread_cleanup_pop(0);
8806 if ac_fn_c_try_link "$LINENO"; then :
8809 rm -f core conftest.err conftest.$ac_objext \
8810 conftest$ac_exeext conftest.$ac_ext
8813 CFLAGS="$save_CFLAGS"
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8816 $as_echo "$ax_pthread_ok" >&6; }
8817 if test "x$ax_pthread_ok" = xyes; then
8826 # Various other checks:
8827 if test "x$ax_pthread_ok" = xyes; then
8829 LIBS="$PTHREAD_LIBS $LIBS"
8830 save_CFLAGS="$CFLAGS"
8831 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8833 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
8835 $as_echo_n "checking for joinable pthread attribute... " >&6; }
8837 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8839 /* end confdefs.h. */
8840 #include <pthread.h>
8844 int attr=$attr; return attr;
8849 if ac_fn_c_try_link "$LINENO"; then :
8850 attr_name=$attr; break
8852 rm -f core conftest.err conftest.$ac_objext \
8853 conftest$ac_exeext conftest.$ac_ext
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
8856 $as_echo "$attr_name" >&6; }
8857 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8859 cat >>confdefs.h <<_ACEOF
8860 #define PTHREAD_CREATE_JOINABLE $attr_name
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
8866 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
8868 case "${host_cpu}-${host_os}" in
8869 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
8870 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
8873 $as_echo "${flag}" >&6; }
8874 if test "x$flag" != xno; then
8875 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
8879 CFLAGS="$save_CFLAGS"
8881 # More AIX lossage: must compile with xlc_r or cc_r
8882 if test x"$GCC" != xyes; then
8883 for ac_prog in xlc_r cc_r
8885 # Extract the first word of "$ac_prog", so it can be a program name with args.
8886 set dummy $ac_prog; ac_word=$2
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8888 $as_echo_n "checking for $ac_word... " >&6; }
8889 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then :
8890 $as_echo_n "(cached) " >&6
8892 if test -n "$PTHREAD_CC"; then
8893 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
8895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8899 test -z "$as_dir" && as_dir=.
8900 for ac_exec_ext in '' $ac_executable_extensions; do
8901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8902 ac_cv_prog_PTHREAD_CC="$ac_prog"
8903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8912 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
8913 if test -n "$PTHREAD_CC"; then
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
8915 $as_echo "$PTHREAD_CC" >&6; }
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8918 $as_echo "no" >&6; }
8922 test -n "$PTHREAD_CC" && break
8924 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
8937 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
8938 if test x"$ax_pthread_ok" = xyes; then
8940 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8948 ac_cpp='$CPP $CPPFLAGS'
8949 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8950 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8951 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8955 # Check whether --enable-opencl was given.
8956 if test "${enable_opencl+set}" = set; then :
8957 enableval=$enable_opencl; disable_opencl=$enableval
8959 disable_opencl='yes'
8963 if test "$disable_opencl" = 'yes'; then
8965 ac_cpp='$CPP $CPPFLAGS'
8966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8971 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8972 if test "${ax_cv_c_compiler_ms+set}" = set; then :
8973 $as_echo_n "(cached) " >&6
8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8976 /* end confdefs.h. */
8989 if ac_fn_c_try_compile "$LINENO"; then :
8994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8995 ax_cv_c_compiler_ms=$ax_compiler_ms
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8999 $as_echo "$ax_cv_c_compiler_ms" >&6; }
9000 if test X$ax_compiler_ms = Xno; then :
9001 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9004 ax_save_CPPFLAGS=$CPPFLAGS
9005 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9006 for ac_header in CL/cl.h OpenCL/cl.h
9008 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9009 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9010 eval as_val=\$$as_ac_Header
9011 if test "x$as_val" = x""yes; then :
9012 cat >>confdefs.h <<_ACEOF
9013 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9020 CPPFLAGS=$ax_save_CPPFLAGS
9022 for ac_header in windows.h
9024 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
9025 if test "x$ac_cv_header_windows_h" = x""yes; then :
9026 cat >>confdefs.h <<_ACEOF
9027 #define HAVE_WINDOWS_H 1
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9038 $as_echo_n "checking for OpenCL library... " >&6; }
9039 if test "${ax_cv_check_cl_libcl+set}" = set; then :
9040 $as_echo_n "(cached) " >&6
9042 ax_cv_check_cl_libcl=no
9044 x86_64) ax_check_cl_libdir=lib64 ;;
9045 *) ax_check_cl_libdir=lib ;;
9047 ax_save_CPPFLAGS=$CPPFLAGS
9048 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9051 ax_check_libs="-lOpenCL -lCL -lclparser"
9052 for ax_lib in $ax_check_libs; do
9053 if test X$ax_compiler_ms = Xyes; then :
9054 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9058 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060 /* end confdefs.h. */
9062 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9063 # include <windows.h>
9065 # ifdef HAVE_CL_CL_H
9067 # elif defined(HAVE_OPENCL_CL_H)
9068 # include <OpenCL/cl.h>
9075 clCreateContextFromType(0,0,0,0,0)
9080 if ac_fn_c_try_link "$LINENO"; then :
9081 ax_cv_check_cl_libcl=$ax_try_lib; break
9083 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"
9084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085 /* end confdefs.h. */
9087 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9088 # include <windows.h>
9090 # ifdef HAVE_CL_CL_H
9092 # elif defined(HAVE_OPENCL_CL_H)
9093 # include <OpenCL/cl.h>
9100 clCreateContextFromType(0,0,0,0,0)
9105 if ac_fn_c_try_link "$LINENO"; then :
9106 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9108 ax_check_cl_dylib_flag='-framework OpenCL -L/System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries' LIBS="$ax_try_lib $ax_check_cl_dylib_flag $CL_LIBS $ax_save_LIBS"
9109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h. */
9112 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9113 # include <windows.h>
9115 # ifdef HAVE_CL_CL_H
9117 # elif defined(HAVE_OPENCL_CL_H)
9118 # include <OpenCL/cl.h>
9125 clCreateContextFromType(0,0,0,0,0)
9130 if ac_fn_c_try_link "$LINENO"; then :
9131 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9133 rm -f core conftest.err conftest.$ac_objext \
9134 conftest$ac_exeext conftest.$ac_ext
9136 rm -f core conftest.err conftest.$ac_objext \
9137 conftest$ac_exeext conftest.$ac_ext
9139 rm -f core conftest.err conftest.$ac_objext \
9140 conftest$ac_exeext conftest.$ac_ext
9143 if test "X$ax_cv_check_cl_libcl" = Xno -a X$no_x = Xyes; then :
9144 LIBS='-framework OpenCL'
9145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9146 /* end confdefs.h. */
9148 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9149 # include <windows.h>
9151 # ifdef HAVE_CL_CL_H
9153 # elif defined(HAVE_OPENCL_CL_H)
9154 # include <OpenCL/cl.h>
9161 clCreateContextFromType(0,0,0,0,0)
9166 if ac_fn_c_try_link "$LINENO"; then :
9167 ax_cv_check_cl_libcl=$LIBS
9169 rm -f core conftest.err conftest.$ac_objext \
9170 conftest$ac_exeext conftest.$ac_ext
9174 CPPFLAGS=$ax_save_CPPFLAGS
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
9177 $as_echo "$ax_cv_check_cl_libcl" >&6; }
9179 if test "X$ax_cv_check_cl_libcl" = Xno; then :
9180 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
9182 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
9183 $as_echo "#define _OPENCL 1" >>confdefs.h
9187 ac_cpp='$CPP $CPPFLAGS'
9188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9197 CFLAGS="$CL_CFLAGS $CFLAGS"
9198 LIBS="$CL_LIBS $LIBS"
9200 if test "$enable_opencl" != no; then
9201 if test "_OPENCL" = '1'; then
9202 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
9208 # Check for large file support
9211 # Check whether --enable-largefile was given.
9212 if test "${enable_largefile+set}" = set; then :
9213 enableval=$enable_largefile;
9216 if test "$enable_largefile" != no; then
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
9219 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
9220 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
9221 $as_echo_n "(cached) " >&6
9223 ac_cv_sys_largefile_CC=no
9224 if test "$GCC" != yes; then
9227 # IRIX 6.2 and later do not support large files by default,
9228 # so use the C compiler's -n32 option if that helps.
9229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9230 /* end confdefs.h. */
9231 #include <sys/types.h>
9232 /* Check that off_t can represent 2**63 - 1 correctly.
9233 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9234 since some C++ compilers masquerading as C compilers
9235 incorrectly reject 9223372036854775807. */
9236 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9237 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9238 && LARGE_OFF_T % 2147483647 == 1)
9248 if ac_fn_c_try_compile "$LINENO"; then :
9251 rm -f core conftest.err conftest.$ac_objext
9253 if ac_fn_c_try_compile "$LINENO"; then :
9254 ac_cv_sys_largefile_CC=' -n32'; break
9256 rm -f core conftest.err conftest.$ac_objext
9260 rm -f conftest.$ac_ext
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
9264 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
9265 if test "$ac_cv_sys_largefile_CC" != no; then
9266 CC=$CC$ac_cv_sys_largefile_CC
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
9270 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
9271 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
9272 $as_echo_n "(cached) " >&6
9275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9276 /* end confdefs.h. */
9277 #include <sys/types.h>
9278 /* Check that off_t can represent 2**63 - 1 correctly.
9279 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9280 since some C++ compilers masquerading as C compilers
9281 incorrectly reject 9223372036854775807. */
9282 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9283 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9284 && LARGE_OFF_T % 2147483647 == 1)
9294 if ac_fn_c_try_compile "$LINENO"; then :
9295 ac_cv_sys_file_offset_bits=no; break
9297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9299 /* end confdefs.h. */
9300 #define _FILE_OFFSET_BITS 64
9301 #include <sys/types.h>
9302 /* Check that off_t can represent 2**63 - 1 correctly.
9303 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9304 since some C++ compilers masquerading as C compilers
9305 incorrectly reject 9223372036854775807. */
9306 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9307 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9308 && LARGE_OFF_T % 2147483647 == 1)
9318 if ac_fn_c_try_compile "$LINENO"; then :
9319 ac_cv_sys_file_offset_bits=64; break
9321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9322 ac_cv_sys_file_offset_bits=unknown
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
9327 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
9328 case $ac_cv_sys_file_offset_bits in #(
9331 cat >>confdefs.h <<_ACEOF
9332 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
9337 if test $ac_cv_sys_file_offset_bits = unknown; then
9338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
9339 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
9340 if test "${ac_cv_sys_large_files+set}" = set; then :
9341 $as_echo_n "(cached) " >&6
9344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9345 /* end confdefs.h. */
9346 #include <sys/types.h>
9347 /* Check that off_t can represent 2**63 - 1 correctly.
9348 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9349 since some C++ compilers masquerading as C compilers
9350 incorrectly reject 9223372036854775807. */
9351 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9352 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9353 && LARGE_OFF_T % 2147483647 == 1)
9363 if ac_fn_c_try_compile "$LINENO"; then :
9364 ac_cv_sys_large_files=no; break
9366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368 /* end confdefs.h. */
9369 #define _LARGE_FILES 1
9370 #include <sys/types.h>
9371 /* Check that off_t can represent 2**63 - 1 correctly.
9372 We can't simply define LARGE_OFF_T to be 9223372036854775807,
9373 since some C++ compilers masquerading as C compilers
9374 incorrectly reject 9223372036854775807. */
9375 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
9376 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
9377 && LARGE_OFF_T % 2147483647 == 1)
9387 if ac_fn_c_try_compile "$LINENO"; then :
9388 ac_cv_sys_large_files=1; break
9390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9391 ac_cv_sys_large_files=unknown
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
9396 $as_echo "$ac_cv_sys_large_files" >&6; }
9397 case $ac_cv_sys_large_files in #(
9400 cat >>confdefs.h <<_ACEOF
9401 #define _LARGE_FILES $ac_cv_sys_large_files
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
9410 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
9411 if test "${ac_cv_sys_largefile_source+set}" = set; then :
9412 $as_echo_n "(cached) " >&6
9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9416 /* end confdefs.h. */
9417 #include <sys/types.h> /* for off_t */
9422 int (*fp) (FILE *, off_t, int) = fseeko;
9423 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9428 if ac_fn_c_try_link "$LINENO"; then :
9429 ac_cv_sys_largefile_source=no; break
9431 rm -f core conftest.err conftest.$ac_objext \
9432 conftest$ac_exeext conftest.$ac_ext
9433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434 /* end confdefs.h. */
9435 #define _LARGEFILE_SOURCE 1
9436 #include <sys/types.h> /* for off_t */
9441 int (*fp) (FILE *, off_t, int) = fseeko;
9442 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
9447 if ac_fn_c_try_link "$LINENO"; then :
9448 ac_cv_sys_largefile_source=1; break
9450 rm -f core conftest.err conftest.$ac_objext \
9451 conftest$ac_exeext conftest.$ac_ext
9452 ac_cv_sys_largefile_source=unknown
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
9457 $as_echo "$ac_cv_sys_largefile_source" >&6; }
9458 case $ac_cv_sys_largefile_source in #(
9461 cat >>confdefs.h <<_ACEOF
9462 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
9468 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
9469 # in glibc 2.1.3, but that breaks too many other things.
9470 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
9471 if test $ac_cv_sys_largefile_source != unknown; then
9473 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
9478 if test "$enable_largefile" != no; then
9479 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
9480 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
9483 $as_echo_n "checking for native large file support... " >&6; }
9484 if test "$cross_compiling" = yes; then :
9485 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9486 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9487 as_fn_error "cannot run test program while cross compiling
9488 See \`config.log' for more details." "$LINENO" 5; }
9490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9491 /* end confdefs.h. */
9494 exit(!(sizeof(off_t) == 8));
9497 if ac_fn_c_try_run "$LINENO"; then :
9498 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9501 $as_echo "yes" >&6; }
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9504 $as_echo "no" >&6; }
9506 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9507 conftest.$ac_objext conftest.beam conftest.$ac_ext
9511 if test "$ac_cv_sys_large_files" != 'no'; then
9512 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
9514 if test "$ac_cv_sys_largefile_source" != 'no'; then
9515 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
9521 # Configure libtool & libltdl
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
9531 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
9536 macro_version='2.2.6b'
9537 macro_revision='1.3017'
9551 ltmain="$ac_aux_dir/ltmain.sh"
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
9554 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
9555 if test "${lt_cv_path_NM+set}" = set; then :
9556 $as_echo_n "(cached) " >&6
9558 if test -n "$NM"; then
9559 # Let the user override the test.
9562 lt_nm_to_check="${ac_tool_prefix}nm"
9563 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9564 lt_nm_to_check="$lt_nm_to_check nm"
9566 for lt_tmp_nm in $lt_nm_to_check; do
9567 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9568 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
9570 test -z "$ac_dir" && ac_dir=.
9571 tmp_nm="$ac_dir/$lt_tmp_nm"
9572 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9573 # Check to see if the nm accepts a BSD-compat flag.
9574 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9575 # nm: unknown option "B" ignored
9576 # Tru64's nm complains that /dev/null is an invalid object file
9577 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9578 */dev/null* | *'Invalid file or object type'*)
9579 lt_cv_path_NM="$tmp_nm -B"
9583 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9585 lt_cv_path_NM="$tmp_nm -p"
9589 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9590 continue # so that we can try to find one that supports BSD flags
9599 : ${lt_cv_path_NM=no}
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
9603 $as_echo "$lt_cv_path_NM" >&6; }
9604 if test "$lt_cv_path_NM" != "no"; then
9607 # Didn't find any BSD compatible name lister, look for dumpbin.
9608 if test -n "$ac_tool_prefix"; then
9609 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9611 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9612 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9614 $as_echo_n "checking for $ac_word... " >&6; }
9615 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
9616 $as_echo_n "(cached) " >&6
9618 if test -n "$DUMPBIN"; then
9619 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9625 test -z "$as_dir" && as_dir=.
9626 for ac_exec_ext in '' $ac_executable_extensions; do
9627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9628 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
9629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9638 DUMPBIN=$ac_cv_prog_DUMPBIN
9639 if test -n "$DUMPBIN"; then
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9641 $as_echo "$DUMPBIN" >&6; }
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9644 $as_echo "no" >&6; }
9648 test -n "$DUMPBIN" && break
9651 if test -z "$DUMPBIN"; then
9652 ac_ct_DUMPBIN=$DUMPBIN
9653 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
9655 # Extract the first word of "$ac_prog", so it can be a program name with args.
9656 set dummy $ac_prog; ac_word=$2
9657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9658 $as_echo_n "checking for $ac_word... " >&6; }
9659 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
9660 $as_echo_n "(cached) " >&6
9662 if test -n "$ac_ct_DUMPBIN"; then
9663 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
9665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9669 test -z "$as_dir" && as_dir=.
9670 for ac_exec_ext in '' $ac_executable_extensions; do
9671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9672 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
9673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9682 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
9683 if test -n "$ac_ct_DUMPBIN"; then
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
9685 $as_echo "$ac_ct_DUMPBIN" >&6; }
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9688 $as_echo "no" >&6; }
9692 test -n "$ac_ct_DUMPBIN" && break
9695 if test "x$ac_ct_DUMPBIN" = x; then
9698 case $cross_compiling:$ac_tool_warned in
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9702 ac_tool_warned=yes ;;
9704 DUMPBIN=$ac_ct_DUMPBIN
9709 if test "$DUMPBIN" != ":"; then
9713 test -z "$NM" && NM=nm
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
9721 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
9722 if test "${lt_cv_nm_interface+set}" = set; then :
9723 $as_echo_n "(cached) " >&6
9725 lt_cv_nm_interface="BSD nm"
9726 echo "int some_variable = 0;" > conftest.$ac_ext
9727 (eval echo "\"\$as_me:9727: $ac_compile\"" >&5)
9728 (eval "$ac_compile" 2>conftest.err)
9729 cat conftest.err >&5
9730 (eval echo "\"\$as_me:9730: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
9731 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
9732 cat conftest.err >&5
9733 (eval echo "\"\$as_me:9733: output\"" >&5)
9734 cat conftest.out >&5
9735 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
9736 lt_cv_nm_interface="MS dumpbin"
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
9741 $as_echo "$lt_cv_nm_interface" >&6; }
9743 # find the maximum length of command line arguments
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
9745 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
9746 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
9747 $as_echo_n "(cached) " >&6
9754 # On DJGPP, this test can blow up pretty badly due to problems in libc
9755 # (any single argument exceeding 2000 bytes causes a buffer overrun
9756 # during glob expansion). Even if it were fixed, the result of this
9757 # check would be larger than it should be.
9758 lt_cv_sys_max_cmd_len=12288; # 12K is about right
9762 # Under GNU Hurd, this test is not required because there is
9763 # no limit to the length of command line arguments.
9764 # Libtool will interpret -1 as no limit whatsoever
9765 lt_cv_sys_max_cmd_len=-1;
9768 cygwin* | mingw* | cegcc*)
9769 # On Win9x/ME, this test blows up -- it succeeds, but takes
9770 # about 5 minutes as the teststring grows exponentially.
9771 # Worse, since 9x/ME are not pre-emptively multitasking,
9772 # you end up with a "frozen" computer, even though with patience
9773 # the test eventually succeeds (with a max line length of 256k).
9774 # Instead, let's just punt: use the minimum linelength reported by
9775 # all of the supported platforms: 8192 (on NT/2K/XP).
9776 lt_cv_sys_max_cmd_len=8192;
9780 # On AmigaOS with pdksh, this test takes hours, literally.
9781 # So we just punt and use a minimum line length of 8192.
9782 lt_cv_sys_max_cmd_len=8192;
9785 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
9786 # This has been around since 386BSD, at least. Likely further.
9787 if test -x /sbin/sysctl; then
9788 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
9789 elif test -x /usr/sbin/sysctl; then
9790 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
9792 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
9794 # And add a safety zone
9795 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9796 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9800 # We know the value 262144 and hardcode it with a safety zone (like BSD)
9801 lt_cv_sys_max_cmd_len=196608
9805 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
9806 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
9807 # nice to cause kernel panics so lets avoid the loop below.
9808 # First set a reasonable default.
9809 lt_cv_sys_max_cmd_len=16384
9811 if test -x /sbin/sysconfig; then
9812 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9813 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9818 lt_cv_sys_max_cmd_len=102400
9820 sysv5* | sco5v6* | sysv4.2uw2*)
9821 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9822 if test -n "$kargmax"; then
9823 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9825 lt_cv_sys_max_cmd_len=32768
9829 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9830 if test -n "$lt_cv_sys_max_cmd_len"; then
9831 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9832 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9834 # Make teststring a little bigger before we do anything with it.
9835 # a 1K string should be a reasonable start.
9836 for i in 1 2 3 4 5 6 7 8 ; do
9837 teststring=$teststring$teststring
9839 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9840 # If test is not a shell built-in, we'll probably end up computing a
9841 # maximum length that is only half of the actual maximum length, but
9843 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
9844 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
9845 test $i != 17 # 1/2 MB should be enough
9848 teststring=$teststring$teststring
9850 # Only check the string length outside the loop.
9851 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9853 # Add a significant safety factor because C++ compilers can tack on
9854 # massive amounts of additional arguments before passing them to the
9855 # linker. It appears as though 1/2 is a usable value.
9856 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9863 if test -n $lt_cv_sys_max_cmd_len ; then
9864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9865 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9868 $as_echo "none" >&6; }
9870 max_cmd_len=$lt_cv_sys_max_cmd_len
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9882 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9883 # Try some XSI features
9886 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9888 && eval 'test $(( 1 + 1 )) -eq 2 \
9889 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9892 $as_echo "$xsi_shell" >&6; }
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9896 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9898 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9900 && lt_shell_append=yes
9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9902 $as_echo "$lt_shell_append" >&6; }
9905 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9915 # test EBCDIC or ASCII
9916 case `echo X|tr X '\101'` in
9917 A) # ASCII based system
9918 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9919 lt_SP2NL='tr \040 \012'
9920 lt_NL2SP='tr \015\012 \040\040'
9922 *) # EBCDIC based system
9923 lt_SP2NL='tr \100 \n'
9924 lt_NL2SP='tr \r\n \100\100'
9936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9937 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9938 if test "${lt_cv_ld_reload_flag+set}" = set; then :
9939 $as_echo_n "(cached) " >&6
9941 lt_cv_ld_reload_flag='-r'
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9944 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9945 reload_flag=$lt_cv_ld_reload_flag
9946 case $reload_flag in
9948 *) reload_flag=" $reload_flag" ;;
9950 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9953 if test "$GCC" = yes; then
9954 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9956 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9969 if test -n "$ac_tool_prefix"; then
9970 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9971 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9973 $as_echo_n "checking for $ac_word... " >&6; }
9974 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
9975 $as_echo_n "(cached) " >&6
9977 if test -n "$OBJDUMP"; then
9978 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9984 test -z "$as_dir" && as_dir=.
9985 for ac_exec_ext in '' $ac_executable_extensions; do
9986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9987 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9997 OBJDUMP=$ac_cv_prog_OBJDUMP
9998 if test -n "$OBJDUMP"; then
9999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10000 $as_echo "$OBJDUMP" >&6; }
10002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10003 $as_echo "no" >&6; }
10008 if test -z "$ac_cv_prog_OBJDUMP"; then
10009 ac_ct_OBJDUMP=$OBJDUMP
10010 # Extract the first word of "objdump", so it can be a program name with args.
10011 set dummy objdump; ac_word=$2
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10013 $as_echo_n "checking for $ac_word... " >&6; }
10014 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
10015 $as_echo_n "(cached) " >&6
10017 if test -n "$ac_ct_OBJDUMP"; then
10018 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10021 for as_dir in $PATH
10024 test -z "$as_dir" && as_dir=.
10025 for ac_exec_ext in '' $ac_executable_extensions; do
10026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10027 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10037 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10038 if test -n "$ac_ct_OBJDUMP"; then
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
10040 $as_echo "$ac_ct_OBJDUMP" >&6; }
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10043 $as_echo "no" >&6; }
10046 if test "x$ac_ct_OBJDUMP" = x; then
10049 case $cross_compiling:$ac_tool_warned in
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10052 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10053 ac_tool_warned=yes ;;
10055 OBJDUMP=$ac_ct_OBJDUMP
10058 OBJDUMP="$ac_cv_prog_OBJDUMP"
10061 test -z "$OBJDUMP" && OBJDUMP=objdump
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
10069 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
10070 if test "${lt_cv_deplibs_check_method+set}" = set; then :
10071 $as_echo_n "(cached) " >&6
10073 lt_cv_file_magic_cmd='$MAGIC_CMD'
10074 lt_cv_file_magic_test_file=
10075 lt_cv_deplibs_check_method='unknown'
10076 # Need to set the preceding variable on all platforms that support
10077 # interlibrary dependencies.
10078 # 'none' -- dependencies not supported.
10079 # `unknown' -- same as none, but documents that we really don't know.
10080 # 'pass_all' -- all dependencies passed with no checks.
10081 # 'test_compile' -- check by making test program.
10082 # 'file_magic [[regex]]' -- check by looking for files in library path
10083 # which responds to the $file_magic_cmd with a given extended regex.
10084 # If you have `file' or equivalent on your system and you're not sure
10085 # whether `pass_all' will *always* work, you probably want this one.
10089 lt_cv_deplibs_check_method=pass_all
10093 lt_cv_deplibs_check_method=pass_all
10097 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10098 lt_cv_file_magic_cmd='/usr/bin/file -L'
10099 lt_cv_file_magic_test_file=/shlib/libc.so
10103 # func_win32_libid is a shell function defined in ltmain.sh
10104 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10105 lt_cv_file_magic_cmd='func_win32_libid'
10109 # Base MSYS/MinGW do not provide the 'file' command needed by
10110 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10111 # unless we find 'file', for example because we are cross-compiling.
10112 if ( file / ) >/dev/null 2>&1; then
10113 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10114 lt_cv_file_magic_cmd='func_win32_libid'
10116 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10117 lt_cv_file_magic_cmd='$OBJDUMP -f'
10122 # use the weaker test based on 'objdump'. See mingw*.
10123 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
10124 lt_cv_file_magic_cmd='$OBJDUMP -f'
10127 darwin* | rhapsody*)
10128 lt_cv_deplibs_check_method=pass_all
10131 freebsd* | dragonfly*)
10132 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10135 # Not sure whether the presence of OpenBSD here was a mistake.
10136 # Let's accept both of them until this is cleared up.
10137 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10138 lt_cv_file_magic_cmd=/usr/bin/file
10139 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10143 lt_cv_deplibs_check_method=pass_all
10148 lt_cv_deplibs_check_method=pass_all
10151 hpux10.20* | hpux11*)
10152 lt_cv_file_magic_cmd=/usr/bin/file
10155 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10156 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10159 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]'
10160 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10163 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10164 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10170 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10171 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
10174 irix5* | irix6* | nonstopux*)
10176 *-32|*"-32 ") libmagic=32-bit;;
10177 *-n32|*"-n32 ") libmagic=N32;;
10178 *-64|*"-64 ") libmagic=64-bit;;
10179 *) libmagic=never-match;;
10181 lt_cv_deplibs_check_method=pass_all
10184 # This must be Linux ELF.
10185 linux* | k*bsd*-gnu)
10186 lt_cv_deplibs_check_method=pass_all
10190 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
10191 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10193 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10198 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10199 lt_cv_file_magic_cmd=/usr/bin/file
10200 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10204 lt_cv_deplibs_check_method=pass_all
10208 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10209 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10211 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10215 osf3* | osf4* | osf5*)
10216 lt_cv_deplibs_check_method=pass_all
10220 lt_cv_deplibs_check_method=pass_all
10224 lt_cv_deplibs_check_method=pass_all
10227 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10228 lt_cv_deplibs_check_method=pass_all
10232 case $host_vendor in
10234 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]'
10235 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10238 lt_cv_deplibs_check_method=pass_all
10241 lt_cv_file_magic_cmd='/bin/file'
10242 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10245 lt_cv_file_magic_cmd='/bin/file'
10246 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10247 lt_cv_file_magic_test_file=/lib/libc.so
10250 lt_cv_deplibs_check_method=pass_all
10253 lt_cv_deplibs_check_method=pass_all
10259 lt_cv_deplibs_check_method=pass_all
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
10265 $as_echo "$lt_cv_deplibs_check_method" >&6; }
10266 file_magic_cmd=$lt_cv_file_magic_cmd
10267 deplibs_check_method=$lt_cv_deplibs_check_method
10268 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10281 if test -n "$ac_tool_prefix"; then
10282 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10283 set dummy ${ac_tool_prefix}ar; ac_word=$2
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10285 $as_echo_n "checking for $ac_word... " >&6; }
10286 if test "${ac_cv_prog_AR+set}" = set; then :
10287 $as_echo_n "(cached) " >&6
10289 if test -n "$AR"; then
10290 ac_cv_prog_AR="$AR" # Let the user override the test.
10292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10293 for as_dir in $PATH
10296 test -z "$as_dir" && as_dir=.
10297 for ac_exec_ext in '' $ac_executable_extensions; do
10298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10299 ac_cv_prog_AR="${ac_tool_prefix}ar"
10300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10310 if test -n "$AR"; then
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10312 $as_echo "$AR" >&6; }
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10315 $as_echo "no" >&6; }
10320 if test -z "$ac_cv_prog_AR"; then
10322 # Extract the first word of "ar", so it can be a program name with args.
10323 set dummy ar; ac_word=$2
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10325 $as_echo_n "checking for $ac_word... " >&6; }
10326 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10327 $as_echo_n "(cached) " >&6
10329 if test -n "$ac_ct_AR"; then
10330 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10333 for as_dir in $PATH
10336 test -z "$as_dir" && as_dir=.
10337 for ac_exec_ext in '' $ac_executable_extensions; do
10338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10339 ac_cv_prog_ac_ct_AR="ar"
10340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10349 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10350 if test -n "$ac_ct_AR"; then
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10352 $as_echo "$ac_ct_AR" >&6; }
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10355 $as_echo "no" >&6; }
10358 if test "x$ac_ct_AR" = x; then
10361 case $cross_compiling:$ac_tool_warned in
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10365 ac_tool_warned=yes ;;
10370 AR="$ac_cv_prog_AR"
10373 test -z "$AR" && AR=ar
10374 test -z "$AR_FLAGS" && AR_FLAGS=cru
10386 if test -n "$ac_tool_prefix"; then
10387 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10388 set dummy ${ac_tool_prefix}strip; ac_word=$2
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10390 $as_echo_n "checking for $ac_word... " >&6; }
10391 if test "${ac_cv_prog_STRIP+set}" = set; then :
10392 $as_echo_n "(cached) " >&6
10394 if test -n "$STRIP"; then
10395 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10398 for as_dir in $PATH
10401 test -z "$as_dir" && as_dir=.
10402 for ac_exec_ext in '' $ac_executable_extensions; do
10403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10404 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10414 STRIP=$ac_cv_prog_STRIP
10415 if test -n "$STRIP"; then
10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10417 $as_echo "$STRIP" >&6; }
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10420 $as_echo "no" >&6; }
10425 if test -z "$ac_cv_prog_STRIP"; then
10427 # Extract the first word of "strip", so it can be a program name with args.
10428 set dummy strip; ac_word=$2
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10430 $as_echo_n "checking for $ac_word... " >&6; }
10431 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10432 $as_echo_n "(cached) " >&6
10434 if test -n "$ac_ct_STRIP"; then
10435 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10438 for as_dir in $PATH
10441 test -z "$as_dir" && as_dir=.
10442 for ac_exec_ext in '' $ac_executable_extensions; do
10443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10444 ac_cv_prog_ac_ct_STRIP="strip"
10445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10454 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10455 if test -n "$ac_ct_STRIP"; then
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10457 $as_echo "$ac_ct_STRIP" >&6; }
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10460 $as_echo "no" >&6; }
10463 if test "x$ac_ct_STRIP" = x; then
10466 case $cross_compiling:$ac_tool_warned in
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10469 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10470 ac_tool_warned=yes ;;
10475 STRIP="$ac_cv_prog_STRIP"
10478 test -z "$STRIP" && STRIP=:
10485 if test -n "$ac_tool_prefix"; then
10486 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10487 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10489 $as_echo_n "checking for $ac_word... " >&6; }
10490 if test "${ac_cv_prog_RANLIB+set}" = set; then :
10491 $as_echo_n "(cached) " >&6
10493 if test -n "$RANLIB"; then
10494 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497 for as_dir in $PATH
10500 test -z "$as_dir" && as_dir=.
10501 for ac_exec_ext in '' $ac_executable_extensions; do
10502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10503 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10513 RANLIB=$ac_cv_prog_RANLIB
10514 if test -n "$RANLIB"; then
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10516 $as_echo "$RANLIB" >&6; }
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519 $as_echo "no" >&6; }
10524 if test -z "$ac_cv_prog_RANLIB"; then
10525 ac_ct_RANLIB=$RANLIB
10526 # Extract the first word of "ranlib", so it can be a program name with args.
10527 set dummy ranlib; ac_word=$2
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10529 $as_echo_n "checking for $ac_word... " >&6; }
10530 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
10531 $as_echo_n "(cached) " >&6
10533 if test -n "$ac_ct_RANLIB"; then
10534 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
10536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10537 for as_dir in $PATH
10540 test -z "$as_dir" && as_dir=.
10541 for ac_exec_ext in '' $ac_executable_extensions; do
10542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10543 ac_cv_prog_ac_ct_RANLIB="ranlib"
10544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10553 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10554 if test -n "$ac_ct_RANLIB"; then
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10556 $as_echo "$ac_ct_RANLIB" >&6; }
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10559 $as_echo "no" >&6; }
10562 if test "x$ac_ct_RANLIB" = x; then
10565 case $cross_compiling:$ac_tool_warned in
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10568 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10569 ac_tool_warned=yes ;;
10571 RANLIB=$ac_ct_RANLIB
10574 RANLIB="$ac_cv_prog_RANLIB"
10577 test -z "$RANLIB" && RANLIB=:
10584 # Determine commands to create old-style static archives.
10585 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10586 old_postinstall_cmds='chmod 644 $oldlib'
10587 old_postuninstall_cmds=
10589 if test -n "$RANLIB"; then
10592 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
10595 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
10598 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
10634 # If no C compiler was specified, use CC.
10637 # If no C compiler flags were specified, use CFLAGS.
10638 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10640 # Allow CC to be a program name with arguments.
10644 # Check for command to grab the raw symbol name followed by C symbol from nm.
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10646 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
10647 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
10648 $as_echo_n "(cached) " >&6
10651 # These are sane defaults that work on at least a few old systems.
10652 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10654 # Character class describing NM global symbol codes.
10655 symcode='[BCDEGRST]'
10657 # Regexp to match symbols that can be accessed directly from C.
10658 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10660 # Define system-specific variables.
10665 cygwin* | mingw* | pw32* | cegcc*)
10666 symcode='[ABCDGISTW]'
10669 if test "$host_cpu" = ia64; then
10670 symcode='[ABCDEGRST]'
10673 irix* | nonstopux*)
10674 symcode='[BCDEGRST]'
10677 symcode='[BCDEGQRST]'
10688 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10696 # If we're using GNU nm, then use its standard symbol codes.
10697 case `$NM -V 2>&1` in
10698 *GNU* | *'with BFD'*)
10699 symcode='[ABCDGIRSTW]' ;;
10702 # Transform an extracted symbol line into a proper C declaration.
10703 # Some systems (esp. on ia64) link data and code symbols differently,
10704 # so use this general approach.
10705 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10707 # Transform an extracted symbol line into symbol name and symbol address
10708 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
10709 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'"
10711 # Handle CRLF in mingw tool chain
10715 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10719 # Try without a prefix underscore, then with it.
10720 for ac_symprfx in "" "_"; do
10722 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10723 symxfrm="\\1 $ac_symprfx\\2 \\2"
10725 # Write the raw and C identifiers.
10726 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10727 # Fake it for dumpbin and say T for any non-static function
10728 # and D for any global variable.
10729 # Also find C++ and __fastcall symbols from MSVC++,
10730 # which start with @ or ?.
10731 lt_cv_sys_global_symbol_pipe="$AWK '"\
10732 " {last_section=section; section=\$ 3};"\
10733 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10734 " \$ 0!~/External *\|/{next};"\
10735 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10736 " {if(hide[section]) next};"\
10737 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
10738 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
10739 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
10740 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
10741 " ' prfx=^$ac_symprfx"
10743 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10746 # Check to see that the pipe works correctly.
10750 cat > conftest.$ac_ext <<_LT_EOF
10755 void nm_test_func(void);
10756 void nm_test_func(void){}
10760 int main(){nm_test_var='a';nm_test_func();return(0);}
10763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10764 (eval $ac_compile) 2>&5
10766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10767 test $ac_status = 0; }; then
10768 # Now try to grab the symbols.
10770 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
10771 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10774 test $ac_status = 0; } && test -s "$nlist"; then
10775 # Try sorting and uniquifying the output.
10776 if sort "$nlist" | uniq > "$nlist"T; then
10777 mv -f "$nlist"T "$nlist"
10782 # Make sure that we snagged all the symbols we need.
10783 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10784 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10785 cat <<_LT_EOF > conftest.$ac_ext
10791 # Now generate the symbol file.
10792 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10794 cat <<_LT_EOF >> conftest.$ac_ext
10796 /* The mapping between symbol names and symbols. */
10801 lt__PROGRAM__LTX_preloaded_symbols[] =
10803 { "@PROGRAM@", (void *) 0 },
10805 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10806 cat <<\_LT_EOF >> conftest.$ac_ext
10810 /* This works around a problem in FreeBSD linker */
10811 #ifdef FREEBSD_WORKAROUND
10812 static const void *lt_preloaded_setup() {
10813 return lt__PROGRAM__LTX_preloaded_symbols;
10821 # Now try linking the two files.
10822 mv conftest.$ac_objext conftstm.$ac_objext
10823 lt_save_LIBS="$LIBS"
10824 lt_save_CFLAGS="$CFLAGS"
10825 LIBS="conftstm.$ac_objext"
10826 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10828 (eval $ac_link) 2>&5
10830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10831 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10834 LIBS="$lt_save_LIBS"
10835 CFLAGS="$lt_save_CFLAGS"
10837 echo "cannot find nm_test_func in $nlist" >&5
10840 echo "cannot find nm_test_var in $nlist" >&5
10843 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10846 echo "$progname: failed program was:" >&5
10847 cat conftest.$ac_ext >&5
10849 rm -rf conftest* conftst*
10851 # Do not use the global_symbol_pipe unless it works.
10852 if test "$pipe_works" = yes; then
10855 lt_cv_sys_global_symbol_pipe=
10861 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10862 lt_cv_sys_global_symbol_to_cdecl=
10864 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10866 $as_echo "failed" >&6; }
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10869 $as_echo "ok" >&6; }
10893 # Check whether --enable-libtool-lock was given.
10894 if test "${enable_libtool_lock+set}" = set; then :
10895 enableval=$enable_libtool_lock;
10898 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10900 # Some flags need to be propagated to the compiler or linker for good
10904 # Find out which ABI we are using.
10905 echo 'int i;' > conftest.$ac_ext
10906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10907 (eval $ac_compile) 2>&5
10909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10910 test $ac_status = 0; }; then
10911 case `/usr/bin/file conftest.$ac_objext` in
10913 HPUX_IA64_MODE="32"
10916 HPUX_IA64_MODE="64"
10923 # Find out which ABI we are using.
10924 echo '#line 10924 "configure"' > conftest.$ac_ext
10925 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10926 (eval $ac_compile) 2>&5
10928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10929 test $ac_status = 0; }; then
10930 if test "$lt_cv_prog_gnu_ld" = yes; then
10931 case `/usr/bin/file conftest.$ac_objext` in
10933 LD="${LD-ld} -melf32bsmip"
10936 LD="${LD-ld} -melf32bmipn32"
10939 LD="${LD-ld} -melf64bmip"
10943 case `/usr/bin/file conftest.$ac_objext` in
10959 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
10960 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10961 # Find out which ABI we are using.
10962 echo 'int i;' > conftest.$ac_ext
10963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10964 (eval $ac_compile) 2>&5
10966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10967 test $ac_status = 0; }; then
10968 case `/usr/bin/file conftest.o` in
10971 x86_64-*kfreebsd*-gnu)
10972 LD="${LD-ld} -m elf_i386_fbsd"
10975 LD="${LD-ld} -m elf_i386"
10977 ppc64-*linux*|powerpc64-*linux*)
10978 LD="${LD-ld} -m elf32ppclinux"
10981 LD="${LD-ld} -m elf_s390"
10984 LD="${LD-ld} -m elf32_sparc"
10990 x86_64-*kfreebsd*-gnu)
10991 LD="${LD-ld} -m elf_x86_64_fbsd"
10994 LD="${LD-ld} -m elf_x86_64"
10996 ppc*-*linux*|powerpc*-*linux*)
10997 LD="${LD-ld} -m elf64ppc"
10999 s390*-*linux*|s390*-*tpf*)
11000 LD="${LD-ld} -m elf64_s390"
11003 LD="${LD-ld} -m elf64_sparc"
11013 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
11014 SAVE_CFLAGS="$CFLAGS"
11015 CFLAGS="$CFLAGS -belf"
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
11017 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
11018 if test "${lt_cv_cc_needs_belf+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
11022 ac_cpp='$CPP $CPPFLAGS'
11023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11028 /* end confdefs.h. */
11038 if ac_fn_c_try_link "$LINENO"; then :
11039 lt_cv_cc_needs_belf=yes
11041 lt_cv_cc_needs_belf=no
11043 rm -f core conftest.err conftest.$ac_objext \
11044 conftest$ac_exeext conftest.$ac_ext
11046 ac_cpp='$CPP $CPPFLAGS'
11047 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11048 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11049 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
11053 $as_echo "$lt_cv_cc_needs_belf" >&6; }
11054 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
11055 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
11056 CFLAGS="$SAVE_CFLAGS"
11060 # Find out which ABI we are using.
11061 echo 'int i;' > conftest.$ac_ext
11062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11063 (eval $ac_compile) 2>&5
11065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11066 test $ac_status = 0; }; then
11067 case `/usr/bin/file conftest.o` in
11069 case $lt_cv_prog_gnu_ld in
11070 yes*) LD="${LD-ld} -m elf64_sparc" ;;
11072 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
11084 need_locks="$enable_libtool_lock"
11088 rhapsody* | darwin*)
11089 if test -n "$ac_tool_prefix"; then
11090 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
11091 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11093 $as_echo_n "checking for $ac_word... " >&6; }
11094 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
11095 $as_echo_n "(cached) " >&6
11097 if test -n "$DSYMUTIL"; then
11098 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11101 for as_dir in $PATH
11104 test -z "$as_dir" && as_dir=.
11105 for ac_exec_ext in '' $ac_executable_extensions; do
11106 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11107 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
11108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11117 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11118 if test -n "$DSYMUTIL"; then
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11120 $as_echo "$DSYMUTIL" >&6; }
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11123 $as_echo "no" >&6; }
11128 if test -z "$ac_cv_prog_DSYMUTIL"; then
11129 ac_ct_DSYMUTIL=$DSYMUTIL
11130 # Extract the first word of "dsymutil", so it can be a program name with args.
11131 set dummy dsymutil; ac_word=$2
11132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11133 $as_echo_n "checking for $ac_word... " >&6; }
11134 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
11135 $as_echo_n "(cached) " >&6
11137 if test -n "$ac_ct_DSYMUTIL"; then
11138 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
11140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11141 for as_dir in $PATH
11144 test -z "$as_dir" && as_dir=.
11145 for ac_exec_ext in '' $ac_executable_extensions; do
11146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11147 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
11148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11157 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11158 if test -n "$ac_ct_DSYMUTIL"; then
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11160 $as_echo "$ac_ct_DSYMUTIL" >&6; }
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11163 $as_echo "no" >&6; }
11166 if test "x$ac_ct_DSYMUTIL" = x; then
11169 case $cross_compiling:$ac_tool_warned in
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11172 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11173 ac_tool_warned=yes ;;
11175 DSYMUTIL=$ac_ct_DSYMUTIL
11178 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11181 if test -n "$ac_tool_prefix"; then
11182 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11183 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11185 $as_echo_n "checking for $ac_word... " >&6; }
11186 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
11187 $as_echo_n "(cached) " >&6
11189 if test -n "$NMEDIT"; then
11190 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11193 for as_dir in $PATH
11196 test -z "$as_dir" && as_dir=.
11197 for ac_exec_ext in '' $ac_executable_extensions; do
11198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11199 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11209 NMEDIT=$ac_cv_prog_NMEDIT
11210 if test -n "$NMEDIT"; then
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11212 $as_echo "$NMEDIT" >&6; }
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11215 $as_echo "no" >&6; }
11220 if test -z "$ac_cv_prog_NMEDIT"; then
11221 ac_ct_NMEDIT=$NMEDIT
11222 # Extract the first word of "nmedit", so it can be a program name with args.
11223 set dummy nmedit; ac_word=$2
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11225 $as_echo_n "checking for $ac_word... " >&6; }
11226 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
11227 $as_echo_n "(cached) " >&6
11229 if test -n "$ac_ct_NMEDIT"; then
11230 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233 for as_dir in $PATH
11236 test -z "$as_dir" && as_dir=.
11237 for ac_exec_ext in '' $ac_executable_extensions; do
11238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11239 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11249 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11250 if test -n "$ac_ct_NMEDIT"; then
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11252 $as_echo "$ac_ct_NMEDIT" >&6; }
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11255 $as_echo "no" >&6; }
11258 if test "x$ac_ct_NMEDIT" = x; then
11261 case $cross_compiling:$ac_tool_warned in
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11265 ac_tool_warned=yes ;;
11267 NMEDIT=$ac_ct_NMEDIT
11270 NMEDIT="$ac_cv_prog_NMEDIT"
11273 if test -n "$ac_tool_prefix"; then
11274 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11275 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11277 $as_echo_n "checking for $ac_word... " >&6; }
11278 if test "${ac_cv_prog_LIPO+set}" = set; then :
11279 $as_echo_n "(cached) " >&6
11281 if test -n "$LIPO"; then
11282 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11285 for as_dir in $PATH
11288 test -z "$as_dir" && as_dir=.
11289 for ac_exec_ext in '' $ac_executable_extensions; do
11290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11291 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11301 LIPO=$ac_cv_prog_LIPO
11302 if test -n "$LIPO"; then
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11304 $as_echo "$LIPO" >&6; }
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11307 $as_echo "no" >&6; }
11312 if test -z "$ac_cv_prog_LIPO"; then
11314 # Extract the first word of "lipo", so it can be a program name with args.
11315 set dummy lipo; ac_word=$2
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11317 $as_echo_n "checking for $ac_word... " >&6; }
11318 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
11319 $as_echo_n "(cached) " >&6
11321 if test -n "$ac_ct_LIPO"; then
11322 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325 for as_dir in $PATH
11328 test -z "$as_dir" && as_dir=.
11329 for ac_exec_ext in '' $ac_executable_extensions; do
11330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11331 ac_cv_prog_ac_ct_LIPO="lipo"
11332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11341 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11342 if test -n "$ac_ct_LIPO"; then
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11344 $as_echo "$ac_ct_LIPO" >&6; }
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11347 $as_echo "no" >&6; }
11350 if test "x$ac_ct_LIPO" = x; then
11353 case $cross_compiling:$ac_tool_warned in
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11357 ac_tool_warned=yes ;;
11362 LIPO="$ac_cv_prog_LIPO"
11365 if test -n "$ac_tool_prefix"; then
11366 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11367 set dummy ${ac_tool_prefix}otool; ac_word=$2
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11369 $as_echo_n "checking for $ac_word... " >&6; }
11370 if test "${ac_cv_prog_OTOOL+set}" = set; then :
11371 $as_echo_n "(cached) " >&6
11373 if test -n "$OTOOL"; then
11374 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11377 for as_dir in $PATH
11380 test -z "$as_dir" && as_dir=.
11381 for ac_exec_ext in '' $ac_executable_extensions; do
11382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11383 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11393 OTOOL=$ac_cv_prog_OTOOL
11394 if test -n "$OTOOL"; then
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11396 $as_echo "$OTOOL" >&6; }
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11399 $as_echo "no" >&6; }
11404 if test -z "$ac_cv_prog_OTOOL"; then
11406 # Extract the first word of "otool", so it can be a program name with args.
11407 set dummy otool; ac_word=$2
11408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11409 $as_echo_n "checking for $ac_word... " >&6; }
11410 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
11411 $as_echo_n "(cached) " >&6
11413 if test -n "$ac_ct_OTOOL"; then
11414 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11417 for as_dir in $PATH
11420 test -z "$as_dir" && as_dir=.
11421 for ac_exec_ext in '' $ac_executable_extensions; do
11422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11423 ac_cv_prog_ac_ct_OTOOL="otool"
11424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11433 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11434 if test -n "$ac_ct_OTOOL"; then
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11436 $as_echo "$ac_ct_OTOOL" >&6; }
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11439 $as_echo "no" >&6; }
11442 if test "x$ac_ct_OTOOL" = x; then
11445 case $cross_compiling:$ac_tool_warned in
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11449 ac_tool_warned=yes ;;
11454 OTOOL="$ac_cv_prog_OTOOL"
11457 if test -n "$ac_tool_prefix"; then
11458 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11459 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11461 $as_echo_n "checking for $ac_word... " >&6; }
11462 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
11463 $as_echo_n "(cached) " >&6
11465 if test -n "$OTOOL64"; then
11466 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11469 for as_dir in $PATH
11472 test -z "$as_dir" && as_dir=.
11473 for ac_exec_ext in '' $ac_executable_extensions; do
11474 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11475 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11485 OTOOL64=$ac_cv_prog_OTOOL64
11486 if test -n "$OTOOL64"; then
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11488 $as_echo "$OTOOL64" >&6; }
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11491 $as_echo "no" >&6; }
11496 if test -z "$ac_cv_prog_OTOOL64"; then
11497 ac_ct_OTOOL64=$OTOOL64
11498 # Extract the first word of "otool64", so it can be a program name with args.
11499 set dummy otool64; ac_word=$2
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11501 $as_echo_n "checking for $ac_word... " >&6; }
11502 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
11503 $as_echo_n "(cached) " >&6
11505 if test -n "$ac_ct_OTOOL64"; then
11506 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11509 for as_dir in $PATH
11512 test -z "$as_dir" && as_dir=.
11513 for ac_exec_ext in '' $ac_executable_extensions; do
11514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11515 ac_cv_prog_ac_ct_OTOOL64="otool64"
11516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11525 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11526 if test -n "$ac_ct_OTOOL64"; then
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11528 $as_echo "$ac_ct_OTOOL64" >&6; }
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11531 $as_echo "no" >&6; }
11534 if test "x$ac_ct_OTOOL64" = x; then
11537 case $cross_compiling:$ac_tool_warned in
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11540 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11541 ac_tool_warned=yes ;;
11543 OTOOL64=$ac_ct_OTOOL64
11546 OTOOL64="$ac_cv_prog_OTOOL64"
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11576 $as_echo_n "checking for -single_module linker flag... " >&6; }
11577 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
11578 $as_echo_n "(cached) " >&6
11580 lt_cv_apple_cc_single_mod=no
11581 if test -z "${LT_MULTI_MODULE}"; then
11582 # By default we will add the -single_module flag. You can override
11583 # by either setting the environment variable LT_MULTI_MODULE
11584 # non-empty at configure time, or by adding -multi_module to the
11586 rm -rf libconftest.dylib*
11587 echo "int foo(void){return 1;}" > conftest.c
11588 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11589 -dynamiclib -Wl,-single_module conftest.c" >&5
11590 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11591 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11593 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
11594 lt_cv_apple_cc_single_mod=yes
11596 cat conftest.err >&5
11598 rm -rf libconftest.dylib*
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11603 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11605 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
11606 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
11607 $as_echo_n "(cached) " >&6
11609 lt_cv_ld_exported_symbols_list=no
11610 save_LDFLAGS=$LDFLAGS
11611 echo "_main" > conftest.sym
11612 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11614 /* end confdefs.h. */
11624 if ac_fn_c_try_link "$LINENO"; then :
11625 lt_cv_ld_exported_symbols_list=yes
11627 lt_cv_ld_exported_symbols_list=no
11629 rm -f core conftest.err conftest.$ac_objext \
11630 conftest$ac_exeext conftest.$ac_ext
11631 LDFLAGS="$save_LDFLAGS"
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11635 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
11637 rhapsody* | darwin1.[012])
11638 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
11640 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11641 darwin*) # darwin 5.x on
11642 # if running on 10.5 or later, the deployment target defaults
11643 # to the OS version, if on x86, and 10.4, the deployment
11644 # target defaults to 10.4. Don't you love it?
11645 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11646 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
11647 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11649 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
11651 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
11655 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
11656 _lt_dar_single_mod='$single_module'
11658 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
11659 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
11661 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
11663 if test "$DSYMUTIL" != ":"; then
11664 _lt_dsymutil='~$DSYMUTIL $lib || :'
11671 for ac_header in dlfcn.h
11673 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11675 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
11676 cat >>confdefs.h <<_ACEOF
11677 #define HAVE_DLFCN_H 1
11687 ac_cpp='$CXXCPP $CPPFLAGS'
11688 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11689 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11690 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11691 if test -z "$CXX"; then
11692 if test -n "$CCC"; then
11695 if test -n "$ac_tool_prefix"; then
11696 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11698 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11699 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11701 $as_echo_n "checking for $ac_word... " >&6; }
11702 if test "${ac_cv_prog_CXX+set}" = set; then :
11703 $as_echo_n "(cached) " >&6
11705 if test -n "$CXX"; then
11706 ac_cv_prog_CXX="$CXX" # Let the user override the test.
11708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709 for as_dir in $PATH
11712 test -z "$as_dir" && as_dir=.
11713 for ac_exec_ext in '' $ac_executable_extensions; do
11714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11715 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
11716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11725 CXX=$ac_cv_prog_CXX
11726 if test -n "$CXX"; then
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
11728 $as_echo "$CXX" >&6; }
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731 $as_echo "no" >&6; }
11735 test -n "$CXX" && break
11738 if test -z "$CXX"; then
11740 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
11742 # Extract the first word of "$ac_prog", so it can be a program name with args.
11743 set dummy $ac_prog; ac_word=$2
11744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11745 $as_echo_n "checking for $ac_word... " >&6; }
11746 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
11747 $as_echo_n "(cached) " >&6
11749 if test -n "$ac_ct_CXX"; then
11750 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
11752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11753 for as_dir in $PATH
11756 test -z "$as_dir" && as_dir=.
11757 for ac_exec_ext in '' $ac_executable_extensions; do
11758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11759 ac_cv_prog_ac_ct_CXX="$ac_prog"
11760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11769 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
11770 if test -n "$ac_ct_CXX"; then
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
11772 $as_echo "$ac_ct_CXX" >&6; }
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11775 $as_echo "no" >&6; }
11779 test -n "$ac_ct_CXX" && break
11782 if test "x$ac_ct_CXX" = x; then
11785 case $cross_compiling:$ac_tool_warned in
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11789 ac_tool_warned=yes ;;
11797 # Provide some information about the compiler.
11798 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
11801 for ac_option in --version -v -V -qversion; do
11802 { { ac_try="$ac_compiler $ac_option >&5"
11803 case "(($ac_try" in
11804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11805 *) ac_try_echo=$ac_try;;
11807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11808 $as_echo "$ac_try_echo"; } >&5
11809 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11811 if test -s conftest.err; then
11813 ... rest of stderr output deleted ...
11814 10q' conftest.err >conftest.er1
11815 cat conftest.er1 >&5
11817 rm -f conftest.er1 conftest.err
11818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11819 test $ac_status = 0; }
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
11823 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
11824 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
11825 $as_echo_n "(cached) " >&6
11827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11828 /* end confdefs.h. */
11841 if ac_fn_cxx_try_compile "$LINENO"; then :
11842 ac_compiler_gnu=yes
11846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11847 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
11851 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
11852 if test $ac_compiler_gnu = yes; then
11857 ac_test_CXXFLAGS=${CXXFLAGS+set}
11858 ac_save_CXXFLAGS=$CXXFLAGS
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
11860 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
11861 if test "${ac_cv_prog_cxx_g+set}" = set; then :
11862 $as_echo_n "(cached) " >&6
11864 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
11865 ac_cxx_werror_flag=yes
11866 ac_cv_prog_cxx_g=no
11868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11869 /* end confdefs.h. */
11879 if ac_fn_cxx_try_compile "$LINENO"; then :
11880 ac_cv_prog_cxx_g=yes
11883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11884 /* end confdefs.h. */
11894 if ac_fn_cxx_try_compile "$LINENO"; then :
11897 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11900 /* end confdefs.h. */
11910 if ac_fn_cxx_try_compile "$LINENO"; then :
11911 ac_cv_prog_cxx_g=yes
11913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11918 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
11921 $as_echo "$ac_cv_prog_cxx_g" >&6; }
11922 if test "$ac_test_CXXFLAGS" = set; then
11923 CXXFLAGS=$ac_save_CXXFLAGS
11924 elif test $ac_cv_prog_cxx_g = yes; then
11925 if test "$GXX" = yes; then
11931 if test "$GXX" = yes; then
11938 ac_cpp='$CPP $CPPFLAGS'
11939 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11940 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11941 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11943 depcc="$CXX" am_compiler_list=
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11946 $as_echo_n "checking dependency style of $depcc... " >&6; }
11947 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
11948 $as_echo_n "(cached) " >&6
11950 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11951 # We make a subdir and do the tests there. Otherwise we can end up
11952 # making bogus files that we don't know about and never remove. For
11953 # instance it was reported that on HP-UX the gcc test will end up
11954 # making a dummy file named `D' -- because `-MD' means `put the output
11957 # Copy depcomp to subdir because otherwise we won't find it if we're
11958 # using a relative directory.
11959 cp "$am_depcomp" conftest.dir
11961 # We will build objects and dependencies in a subdirectory because
11962 # it helps to detect inapplicable dependency modes. For instance
11963 # both Tru64's cc and ICC support -MD to output dependencies as a
11964 # side effect of compilation, but ICC will put the dependencies in
11965 # the current directory while Tru64 will put them in the object
11969 am_cv_CXX_dependencies_compiler_type=none
11970 if test "$am_compiler_list" = ""; then
11971 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11973 am__universal=false
11974 case " $depcc " in #(
11975 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11978 for depmode in $am_compiler_list; do
11979 # Setup a source with many dependencies, because some compilers
11980 # like to wrap large dependency lists on column 80 (with \), and
11981 # we should not choose a depcomp mode which is confused by this.
11983 # We need to recreate these files for each test, as the compiler may
11984 # overwrite some of them when testing with obscure command lines.
11985 # This happens at least with the AIX C compiler.
11987 for i in 1 2 3 4 5 6; do
11988 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11989 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11990 # Solaris 8's {/usr,}/bin/sh.
11991 touch sub/conftst$i.h
11993 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11995 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11996 # mode. It turns out that the SunPro C++ compiler does not properly
11997 # handle `-M -o', and we need to detect this. Also, some Intel
11998 # versions had trouble with output in subdirs
11999 am__obj=sub/conftest.${OBJEXT-o}
12000 am__minus_obj="-o $am__obj"
12003 # This depmode causes a compiler race in universal mode.
12004 test "$am__universal" = false || continue
12007 # after this tag, mechanisms are not by side-effect, so they'll
12008 # only be used when explicitly requested
12009 if test "x$enable_dependency_tracking" = xyes; then
12015 msvisualcpp | msvcmsys)
12016 # This compiler won't grok `-c -o', but also, the minuso test has
12017 # not run yet. These depmodes are late enough in the game, and
12018 # so weak that their functioning should not be impacted.
12019 am__obj=conftest.${OBJEXT-o}
12024 if depmode=$depmode \
12025 source=sub/conftest.c object=$am__obj \
12026 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12027 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12028 >/dev/null 2>conftest.err &&
12029 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12030 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12031 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12032 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12033 # icc doesn't choke on unknown options, it will just issue warnings
12034 # or remarks (even with -Werror). So we grep stderr for any message
12035 # that says an option was ignored or not supported.
12036 # When given -MP, icc 7.0 and 7.1 complain thusly:
12037 # icc: Command line warning: ignoring option '-M'; no argument required
12038 # The diagnosis changed in icc 8.0:
12039 # icc: Command line remark: option '-MP' not supported
12040 if (grep 'ignoring option' conftest.err ||
12041 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12042 am_cv_CXX_dependencies_compiler_type=$depmode
12049 rm -rf conftest.dir
12051 am_cv_CXX_dependencies_compiler_type=none
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12056 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12057 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12060 test "x$enable_dependency_tracking" != xno \
12061 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12062 am__fastdepCXX_TRUE=
12063 am__fastdepCXX_FALSE='#'
12065 am__fastdepCXX_TRUE='#'
12066 am__fastdepCXX_FALSE=
12070 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12071 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12072 (test "X$CXX" != "Xg++"))) ; then
12074 ac_cpp='$CXXCPP $CPPFLAGS'
12075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12079 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12080 if test -z "$CXXCPP"; then
12081 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12082 $as_echo_n "(cached) " >&6
12084 # Double quotes because CXXCPP needs to be expanded
12085 for CXXCPP in "$CXX -E" "/lib/cpp"
12087 ac_preproc_ok=false
12088 for ac_cxx_preproc_warn_flag in '' yes
12090 # Use a header file that comes with gcc, so configuring glibc
12091 # with a fresh cross-compiler works.
12092 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12093 # <limits.h> exists even on freestanding compilers.
12094 # On the NeXT, cc -E runs the code through the compiler's parser,
12095 # not just through cpp. "Syntax error" is here to catch this case.
12096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097 /* end confdefs.h. */
12099 # include <limits.h>
12101 # include <assert.h>
12105 if ac_fn_cxx_try_cpp "$LINENO"; then :
12108 # Broken: fails on valid input.
12111 rm -f conftest.err conftest.$ac_ext
12113 # OK, works on sane cases. Now check whether nonexistent headers
12114 # can be detected and how.
12115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12116 /* end confdefs.h. */
12117 #include <ac_nonexistent.h>
12119 if ac_fn_cxx_try_cpp "$LINENO"; then :
12120 # Broken: success on invalid input.
12123 # Passes both tests.
12127 rm -f conftest.err conftest.$ac_ext
12130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12131 rm -f conftest.err conftest.$ac_ext
12132 if $ac_preproc_ok; then :
12137 ac_cv_prog_CXXCPP=$CXXCPP
12140 CXXCPP=$ac_cv_prog_CXXCPP
12142 ac_cv_prog_CXXCPP=$CXXCPP
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12145 $as_echo "$CXXCPP" >&6; }
12146 ac_preproc_ok=false
12147 for ac_cxx_preproc_warn_flag in '' yes
12149 # Use a header file that comes with gcc, so configuring glibc
12150 # with a fresh cross-compiler works.
12151 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12152 # <limits.h> exists even on freestanding compilers.
12153 # On the NeXT, cc -E runs the code through the compiler's parser,
12154 # not just through cpp. "Syntax error" is here to catch this case.
12155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12156 /* end confdefs.h. */
12158 # include <limits.h>
12160 # include <assert.h>
12164 if ac_fn_cxx_try_cpp "$LINENO"; then :
12167 # Broken: fails on valid input.
12170 rm -f conftest.err conftest.$ac_ext
12172 # OK, works on sane cases. Now check whether nonexistent headers
12173 # can be detected and how.
12174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 /* end confdefs.h. */
12176 #include <ac_nonexistent.h>
12178 if ac_fn_cxx_try_cpp "$LINENO"; then :
12179 # Broken: success on invalid input.
12182 # Passes both tests.
12186 rm -f conftest.err conftest.$ac_ext
12189 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12190 rm -f conftest.err conftest.$ac_ext
12191 if $ac_preproc_ok; then :
12194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12196 _lt_caught_CXX_error=yes; }
12200 ac_cpp='$CPP $CPPFLAGS'
12201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12206 _lt_caught_CXX_error=yes
12214 enable_win32_dll=yes
12217 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
12218 if test -n "$ac_tool_prefix"; then
12219 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
12220 set dummy ${ac_tool_prefix}as; ac_word=$2
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12222 $as_echo_n "checking for $ac_word... " >&6; }
12223 if test "${ac_cv_prog_AS+set}" = set; then :
12224 $as_echo_n "(cached) " >&6
12226 if test -n "$AS"; then
12227 ac_cv_prog_AS="$AS" # Let the user override the test.
12229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12230 for as_dir in $PATH
12233 test -z "$as_dir" && as_dir=.
12234 for ac_exec_ext in '' $ac_executable_extensions; do
12235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12236 ac_cv_prog_AS="${ac_tool_prefix}as"
12237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12247 if test -n "$AS"; then
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
12249 $as_echo "$AS" >&6; }
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12252 $as_echo "no" >&6; }
12257 if test -z "$ac_cv_prog_AS"; then
12259 # Extract the first word of "as", so it can be a program name with args.
12260 set dummy as; ac_word=$2
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12262 $as_echo_n "checking for $ac_word... " >&6; }
12263 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
12264 $as_echo_n "(cached) " >&6
12266 if test -n "$ac_ct_AS"; then
12267 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
12269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12270 for as_dir in $PATH
12273 test -z "$as_dir" && as_dir=.
12274 for ac_exec_ext in '' $ac_executable_extensions; do
12275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12276 ac_cv_prog_ac_ct_AS="as"
12277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12286 ac_ct_AS=$ac_cv_prog_ac_ct_AS
12287 if test -n "$ac_ct_AS"; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
12289 $as_echo "$ac_ct_AS" >&6; }
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12292 $as_echo "no" >&6; }
12295 if test "x$ac_ct_AS" = x; then
12298 case $cross_compiling:$ac_tool_warned in
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12302 ac_tool_warned=yes ;;
12307 AS="$ac_cv_prog_AS"
12310 if test -n "$ac_tool_prefix"; then
12311 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12312 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12314 $as_echo_n "checking for $ac_word... " >&6; }
12315 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
12316 $as_echo_n "(cached) " >&6
12318 if test -n "$DLLTOOL"; then
12319 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12322 for as_dir in $PATH
12325 test -z "$as_dir" && as_dir=.
12326 for ac_exec_ext in '' $ac_executable_extensions; do
12327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12328 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12338 DLLTOOL=$ac_cv_prog_DLLTOOL
12339 if test -n "$DLLTOOL"; then
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
12341 $as_echo "$DLLTOOL" >&6; }
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344 $as_echo "no" >&6; }
12349 if test -z "$ac_cv_prog_DLLTOOL"; then
12350 ac_ct_DLLTOOL=$DLLTOOL
12351 # Extract the first word of "dlltool", so it can be a program name with args.
12352 set dummy dlltool; ac_word=$2
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12354 $as_echo_n "checking for $ac_word... " >&6; }
12355 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
12356 $as_echo_n "(cached) " >&6
12358 if test -n "$ac_ct_DLLTOOL"; then
12359 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
12361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12362 for as_dir in $PATH
12365 test -z "$as_dir" && as_dir=.
12366 for ac_exec_ext in '' $ac_executable_extensions; do
12367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12368 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
12369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12378 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
12379 if test -n "$ac_ct_DLLTOOL"; then
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
12381 $as_echo "$ac_ct_DLLTOOL" >&6; }
12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12384 $as_echo "no" >&6; }
12387 if test "x$ac_ct_DLLTOOL" = x; then
12390 case $cross_compiling:$ac_tool_warned in
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12394 ac_tool_warned=yes ;;
12396 DLLTOOL=$ac_ct_DLLTOOL
12399 DLLTOOL="$ac_cv_prog_DLLTOOL"
12402 if test -n "$ac_tool_prefix"; then
12403 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12404 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12406 $as_echo_n "checking for $ac_word... " >&6; }
12407 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12408 $as_echo_n "(cached) " >&6
12410 if test -n "$OBJDUMP"; then
12411 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414 for as_dir in $PATH
12417 test -z "$as_dir" && as_dir=.
12418 for ac_exec_ext in '' $ac_executable_extensions; do
12419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12420 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12430 OBJDUMP=$ac_cv_prog_OBJDUMP
12431 if test -n "$OBJDUMP"; then
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12433 $as_echo "$OBJDUMP" >&6; }
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12436 $as_echo "no" >&6; }
12441 if test -z "$ac_cv_prog_OBJDUMP"; then
12442 ac_ct_OBJDUMP=$OBJDUMP
12443 # Extract the first word of "objdump", so it can be a program name with args.
12444 set dummy objdump; ac_word=$2
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12446 $as_echo_n "checking for $ac_word... " >&6; }
12447 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12448 $as_echo_n "(cached) " >&6
12450 if test -n "$ac_ct_OBJDUMP"; then
12451 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12454 for as_dir in $PATH
12457 test -z "$as_dir" && as_dir=.
12458 for ac_exec_ext in '' $ac_executable_extensions; do
12459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12460 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12470 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12471 if test -n "$ac_ct_OBJDUMP"; then
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12473 $as_echo "$ac_ct_OBJDUMP" >&6; }
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12476 $as_echo "no" >&6; }
12479 if test "x$ac_ct_OBJDUMP" = x; then
12482 case $cross_compiling:$ac_tool_warned in
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12486 ac_tool_warned=yes ;;
12488 OBJDUMP=$ac_ct_OBJDUMP
12491 OBJDUMP="$ac_cv_prog_OBJDUMP"
12497 test -z "$AS" && AS=as
12503 test -z "$DLLTOOL" && DLLTOOL=dlltool
12509 test -z "$OBJDUMP" && OBJDUMP=objdump
12519 # Check whether --enable-shared was given.
12520 if test "${enable_shared+set}" = set; then :
12521 enableval=$enable_shared; p=${PACKAGE-default}
12523 yes) enable_shared=yes ;;
12524 no) enable_shared=no ;;
12527 # Look at the argument we got. We use all the common list separators.
12528 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12529 for pkg in $enableval; do
12531 if test "X$pkg" = "X$p"; then
12550 # Check whether --enable-static was given.
12551 if test "${enable_static+set}" = set; then :
12552 enableval=$enable_static; p=${PACKAGE-default}
12554 yes) enable_static=yes ;;
12555 no) enable_static=no ;;
12558 # Look at the argument we got. We use all the common list separators.
12559 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12560 for pkg in $enableval; do
12562 if test "X$pkg" = "X$p"; then
12582 # Check whether --with-pic was given.
12583 if test "${with_pic+set}" = set; then :
12584 withval=$with_pic; pic_mode="$withval"
12590 test -z "$pic_mode" && pic_mode=default
12598 # Check whether --enable-fast-install was given.
12599 if test "${enable_fast_install+set}" = set; then :
12600 enableval=$enable_fast_install; p=${PACKAGE-default}
12602 yes) enable_fast_install=yes ;;
12603 no) enable_fast_install=no ;;
12605 enable_fast_install=no
12606 # Look at the argument we got. We use all the common list separators.
12607 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
12608 for pkg in $enableval; do
12610 if test "X$pkg" = "X$p"; then
12611 enable_fast_install=yes
12618 enable_fast_install=yes
12631 # This can be used to rebuild libtool when needed
12632 LIBTOOL_DEPS="$ltmain"
12634 # Always use our own libtool.
12635 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12661 test -z "$LN_S" && LN_S="ln -s"
12676 if test -n "${ZSH_VERSION+set}" ; then
12677 setopt NO_GLOB_SUBST
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12681 $as_echo_n "checking for objdir... " >&6; }
12682 if test "${lt_cv_objdir+set}" = set; then :
12683 $as_echo_n "(cached) " >&6
12685 rm -f .libs 2>/dev/null
12686 mkdir .libs 2>/dev/null
12687 if test -d .libs; then
12690 # MS-DOS does not allow filenames that begin with a dot.
12693 rmdir .libs 2>/dev/null
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12696 $as_echo "$lt_cv_objdir" >&6; }
12697 objdir=$lt_cv_objdir
12703 cat >>confdefs.h <<_ACEOF
12704 #define LT_OBJDIR "$lt_cv_objdir/"
12725 # AIX sometimes has problems with the GCC collect2 program. For some
12726 # reason, if we set the COLLECT_NAMES environment variable, the problems
12727 # vanish in a puff of smoke.
12728 if test "X${COLLECT_NAMES+set}" != Xset; then
12730 export COLLECT_NAMES
12735 # Sed substitution that helps us do robust quoting. It backslashifies
12736 # metacharacters that are still active within double-quoted strings.
12737 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
12739 # Same as above, but do not quote variable references.
12740 double_quote_subst='s/\(["`\\]\)/\\\1/g'
12742 # Sed substitution to delay expansion of an escaped shell variable in a
12743 # double_quote_subst'ed string.
12744 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
12746 # Sed substitution to delay expansion of an escaped single quote.
12747 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
12749 # Sed substitution to avoid accidental globbing in evaled expressions
12750 no_glob_subst='s/\*/\\\*/g'
12752 # Global variables:
12754 can_build_shared=yes
12756 # All known linkers require a `.a' archive for static linking (except MSVC,
12757 # which needs '.lib').
12760 with_gnu_ld="$lt_cv_prog_gnu_ld"
12763 old_CFLAGS="$CFLAGS"
12765 # Set sane defaults for various variables
12766 test -z "$CC" && CC=cc
12767 test -z "$LTCC" && LTCC=$CC
12768 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12769 test -z "$LD" && LD=ld
12770 test -z "$ac_objext" && ac_objext=o
12772 for cc_temp in $compiler""; do
12774 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12775 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12780 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12783 # Only perform the check for file, if the check method requires it
12784 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12785 case $deplibs_check_method in
12787 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12789 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12790 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12791 $as_echo_n "(cached) " >&6
12795 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12798 lt_save_MAGIC_CMD="$MAGIC_CMD"
12799 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12800 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12801 for ac_dir in $ac_dummy; do
12803 test -z "$ac_dir" && ac_dir=.
12804 if test -f $ac_dir/${ac_tool_prefix}file; then
12805 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12806 if test -n "$file_magic_test_file"; then
12807 case $deplibs_check_method in
12809 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12810 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12811 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12812 $EGREP "$file_magic_regex" > /dev/null; then
12817 *** Warning: the command libtool uses to detect shared libraries,
12818 *** $file_magic_cmd, produces output that libtool cannot recognize.
12819 *** The result is that libtool may fail to recognize shared libraries
12820 *** as such. This will affect the creation of libtool libraries that
12821 *** depend on shared libraries, but programs linked with such libtool
12822 *** libraries will work regardless of this problem. Nevertheless, you
12823 *** may want to report the problem to your system manager and/or to
12824 *** bug-libtool@gnu.org
12834 MAGIC_CMD="$lt_save_MAGIC_CMD"
12839 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12840 if test -n "$MAGIC_CMD"; then
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12842 $as_echo "$MAGIC_CMD" >&6; }
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12845 $as_echo "no" >&6; }
12852 if test -z "$lt_cv_path_MAGIC_CMD"; then
12853 if test -n "$ac_tool_prefix"; then
12854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12855 $as_echo_n "checking for file... " >&6; }
12856 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
12857 $as_echo_n "(cached) " >&6
12861 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12864 lt_save_MAGIC_CMD="$MAGIC_CMD"
12865 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12866 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12867 for ac_dir in $ac_dummy; do
12869 test -z "$ac_dir" && ac_dir=.
12870 if test -f $ac_dir/file; then
12871 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12872 if test -n "$file_magic_test_file"; then
12873 case $deplibs_check_method in
12875 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12876 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12877 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12878 $EGREP "$file_magic_regex" > /dev/null; then
12883 *** Warning: the command libtool uses to detect shared libraries,
12884 *** $file_magic_cmd, produces output that libtool cannot recognize.
12885 *** The result is that libtool may fail to recognize shared libraries
12886 *** as such. This will affect the creation of libtool libraries that
12887 *** depend on shared libraries, but programs linked with such libtool
12888 *** libraries will work regardless of this problem. Nevertheless, you
12889 *** may want to report the problem to your system manager and/or to
12890 *** bug-libtool@gnu.org
12900 MAGIC_CMD="$lt_save_MAGIC_CMD"
12905 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12906 if test -n "$MAGIC_CMD"; then
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12908 $as_echo "$MAGIC_CMD" >&6; }
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12911 $as_echo "no" >&6; }
12924 # Use C for the default configuration in the libtool script
12928 ac_cpp='$CPP $CPPFLAGS'
12929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12934 # Source file extension for C test sources.
12937 # Object file extension for compiled C test sources.
12941 # Code to be used in simple compile tests
12942 lt_simple_compile_test_code="int some_variable = 0;"
12944 # Code to be used in simple link tests
12945 lt_simple_link_test_code='int main(){return(0);}'
12953 # If no C compiler was specified, use CC.
12956 # If no C compiler flags were specified, use CFLAGS.
12957 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12959 # Allow CC to be a program name with arguments.
12962 # Save the default compiler, since it gets overwritten when the other
12963 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12964 compiler_DEFAULT=$CC
12966 # save warnings/boilerplate of simple test code
12967 ac_outfile=conftest.$ac_objext
12968 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12969 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12970 _lt_compiler_boilerplate=`cat conftest.err`
12973 ac_outfile=conftest.$ac_objext
12974 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12975 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12976 _lt_linker_boilerplate=`cat conftest.err`
12981 ## There is no encapsulation within the following macros, do not change
12982 ## the running order or otherwise move them around unless you know exactly
12983 ## what you are doing...
12984 if test -n "$compiler"; then
12986 lt_prog_compiler_no_builtin_flag=
12988 if test "$GCC" = yes; then
12989 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12992 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12993 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
12994 $as_echo_n "(cached) " >&6
12996 lt_cv_prog_compiler_rtti_exceptions=no
12997 ac_outfile=conftest.$ac_objext
12998 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12999 lt_compiler_flag="-fno-rtti -fno-exceptions"
13000 # Insert the option either (1) after the last *FLAGS variable, or
13001 # (2) before a word containing "conftest.", or (3) at the end.
13002 # Note that $ac_compile itself does not contain backslashes and begins
13003 # with a dollar sign (not a hyphen), so the echo should work correctly.
13004 # The option is referenced via a variable to avoid confusing sed.
13005 lt_compile=`echo "$ac_compile" | $SED \
13006 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13007 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13008 -e 's:$: $lt_compiler_flag:'`
13009 (eval echo "\"\$as_me:13009: $lt_compile\"" >&5)
13010 (eval "$lt_compile" 2>conftest.err)
13012 cat conftest.err >&5
13013 echo "$as_me:13013: \$? = $ac_status" >&5
13014 if (exit $ac_status) && test -s "$ac_outfile"; then
13015 # The compiler can only warn and ignore the option if not recognized
13016 # So say no if there are warnings other than the usual output.
13017 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13018 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13019 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13020 lt_cv_prog_compiler_rtti_exceptions=yes
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13027 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13029 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13030 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13042 lt_prog_compiler_wl=
13043 lt_prog_compiler_pic=
13044 lt_prog_compiler_static=
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13047 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13049 if test "$GCC" = yes; then
13050 lt_prog_compiler_wl='-Wl,'
13051 lt_prog_compiler_static='-static'
13055 # All AIX code is PIC.
13056 if test "$host_cpu" = ia64; then
13057 # AIX 5 now supports IA64 processor
13058 lt_prog_compiler_static='-Bstatic'
13065 # see comment about AmigaOS4 .so support
13066 lt_prog_compiler_pic='-fPIC'
13069 # FIXME: we need at least 68020 code to build shared libraries, but
13070 # adding the `-m68020' flag to GCC prevents building anything better,
13072 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13077 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13078 # PIC is the default for these OSes.
13081 mingw* | cygwin* | pw32* | os2* | cegcc*)
13082 # This hack is so that the source file can tell whether it is being
13083 # built for inclusion in a dll (and should export symbols for example).
13084 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13085 # (--disable-auto-import) libraries
13086 lt_prog_compiler_pic='-DDLL_EXPORT'
13089 darwin* | rhapsody*)
13090 # PIC is the default on this platform
13091 # Common symbols not allowed in MH_DYLIB files
13092 lt_prog_compiler_pic='-fno-common'
13096 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13097 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13098 # sets the default TLS model and affects inlining.
13104 lt_prog_compiler_pic='-fPIC'
13110 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13111 # Instead, we relocate shared libraries at runtime.
13115 # Just because we use GCC doesn't mean we suddenly get shared libraries
13116 # on systems that don't support them.
13117 lt_prog_compiler_can_build_shared=no
13122 # QNX uses GNU C++, but need to define -shared option too, otherwise
13123 # it will coredump.
13124 lt_prog_compiler_pic='-fPIC -shared'
13128 if test -d /usr/nec; then
13129 lt_prog_compiler_pic=-Kconform_pic
13134 lt_prog_compiler_pic='-fPIC'
13138 # PORTME Check for flag to pass linker flags through the system compiler.
13141 lt_prog_compiler_wl='-Wl,'
13142 if test "$host_cpu" = ia64; then
13143 # AIX 5 now supports IA64 processor
13144 lt_prog_compiler_static='-Bstatic'
13146 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
13150 mingw* | cygwin* | pw32* | os2* | cegcc*)
13151 # This hack is so that the source file can tell whether it is being
13152 # built for inclusion in a dll (and should export symbols for example).
13153 lt_prog_compiler_pic='-DDLL_EXPORT'
13156 hpux9* | hpux10* | hpux11*)
13157 lt_prog_compiler_wl='-Wl,'
13158 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13159 # not for PA HP-UX.
13165 lt_prog_compiler_pic='+Z'
13168 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13169 lt_prog_compiler_static='${wl}-a ${wl}archive'
13172 irix5* | irix6* | nonstopux*)
13173 lt_prog_compiler_wl='-Wl,'
13174 # PIC (with -KPIC) is the default.
13175 lt_prog_compiler_static='-non_shared'
13178 linux* | k*bsd*-gnu)
13179 case $cc_basename in
13180 # old Intel for x86_64 which still supported -KPIC.
13182 lt_prog_compiler_wl='-Wl,'
13183 lt_prog_compiler_pic='-KPIC'
13184 lt_prog_compiler_static='-static'
13186 # icc used to be incompatible with GCC.
13187 # ICC 10 doesn't accept -KPIC any more.
13189 lt_prog_compiler_wl='-Wl,'
13190 lt_prog_compiler_pic='-fPIC'
13191 lt_prog_compiler_static='-static'
13193 # Lahey Fortran 8.1.
13195 lt_prog_compiler_wl='-Wl,'
13196 lt_prog_compiler_pic='--shared'
13197 lt_prog_compiler_static='--static'
13199 pgcc* | pgf77* | pgf90* | pgf95*)
13200 # Portland Group compilers (*not* the Pentium gcc compiler,
13201 # which looks to be a dead project)
13202 lt_prog_compiler_wl='-Wl,'
13203 lt_prog_compiler_pic='-fpic'
13204 lt_prog_compiler_static='-Bstatic'
13207 lt_prog_compiler_wl='-Wl,'
13208 # All Alpha code is PIC.
13209 lt_prog_compiler_static='-non_shared'
13212 # IBM XL C 8.0/Fortran 10.1 on PPC
13213 lt_prog_compiler_wl='-Wl,'
13214 lt_prog_compiler_pic='-qpic'
13215 lt_prog_compiler_static='-qstaticlink'
13218 case `$CC -V 2>&1 | sed 5q` in
13221 lt_prog_compiler_pic='-KPIC'
13222 lt_prog_compiler_static='-Bstatic'
13223 lt_prog_compiler_wl='-Wl,'
13226 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13227 lt_prog_compiler_pic='-KPIC'
13228 lt_prog_compiler_static='-Bstatic'
13229 lt_prog_compiler_wl=''
13237 lt_prog_compiler_pic='-KPIC'
13238 lt_prog_compiler_static='-Bstatic'
13242 # QNX uses GNU C++, but need to define -shared option too, otherwise
13243 # it will coredump.
13244 lt_prog_compiler_pic='-fPIC -shared'
13247 osf3* | osf4* | osf5*)
13248 lt_prog_compiler_wl='-Wl,'
13249 # All OSF/1 code is PIC.
13250 lt_prog_compiler_static='-non_shared'
13254 lt_prog_compiler_static='-non_shared'
13258 lt_prog_compiler_pic='-KPIC'
13259 lt_prog_compiler_static='-Bstatic'
13260 case $cc_basename in
13261 f77* | f90* | f95*)
13262 lt_prog_compiler_wl='-Qoption ld ';;
13264 lt_prog_compiler_wl='-Wl,';;
13269 lt_prog_compiler_wl='-Qoption ld '
13270 lt_prog_compiler_pic='-PIC'
13271 lt_prog_compiler_static='-Bstatic'
13274 sysv4 | sysv4.2uw2* | sysv4.3*)
13275 lt_prog_compiler_wl='-Wl,'
13276 lt_prog_compiler_pic='-KPIC'
13277 lt_prog_compiler_static='-Bstatic'
13281 if test -d /usr/nec ;then
13282 lt_prog_compiler_pic='-Kconform_pic'
13283 lt_prog_compiler_static='-Bstatic'
13287 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13288 lt_prog_compiler_wl='-Wl,'
13289 lt_prog_compiler_pic='-KPIC'
13290 lt_prog_compiler_static='-Bstatic'
13294 lt_prog_compiler_wl='-Wl,'
13295 lt_prog_compiler_can_build_shared=no
13299 lt_prog_compiler_pic='-pic'
13300 lt_prog_compiler_static='-Bstatic'
13304 lt_prog_compiler_can_build_shared=no
13310 # For platforms which do not support PIC, -DPIC is meaningless:
13312 lt_prog_compiler_pic=
13315 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
13319 $as_echo "$lt_prog_compiler_pic" >&6; }
13327 # Check to make sure the PIC flag actually works.
13329 if test -n "$lt_prog_compiler_pic"; then
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13331 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13332 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
13333 $as_echo_n "(cached) " >&6
13335 lt_cv_prog_compiler_pic_works=no
13336 ac_outfile=conftest.$ac_objext
13337 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13338 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
13339 # Insert the option either (1) after the last *FLAGS variable, or
13340 # (2) before a word containing "conftest.", or (3) at the end.
13341 # Note that $ac_compile itself does not contain backslashes and begins
13342 # with a dollar sign (not a hyphen), so the echo should work correctly.
13343 # The option is referenced via a variable to avoid confusing sed.
13344 lt_compile=`echo "$ac_compile" | $SED \
13345 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13346 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13347 -e 's:$: $lt_compiler_flag:'`
13348 (eval echo "\"\$as_me:13348: $lt_compile\"" >&5)
13349 (eval "$lt_compile" 2>conftest.err)
13351 cat conftest.err >&5
13352 echo "$as_me:13352: \$? = $ac_status" >&5
13353 if (exit $ac_status) && test -s "$ac_outfile"; then
13354 # The compiler can only warn and ignore the option if not recognized
13355 # So say no if there are warnings other than the usual output.
13356 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13357 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13358 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13359 lt_cv_prog_compiler_pic_works=yes
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13366 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
13368 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
13369 case $lt_prog_compiler_pic in
13371 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13374 lt_prog_compiler_pic=
13375 lt_prog_compiler_can_build_shared=no
13386 # Check to make sure the static flag actually works.
13388 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13390 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13391 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
13392 $as_echo_n "(cached) " >&6
13394 lt_cv_prog_compiler_static_works=no
13395 save_LDFLAGS="$LDFLAGS"
13396 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13397 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13398 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13399 # The linker can only warn and ignore the option if not recognized
13400 # So say no if there are warnings
13401 if test -s conftest.err; then
13402 # Append any errors to the config.log.
13403 cat conftest.err 1>&5
13404 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13405 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13406 if diff conftest.exp conftest.er2 >/dev/null; then
13407 lt_cv_prog_compiler_static_works=yes
13410 lt_cv_prog_compiler_static_works=yes
13414 LDFLAGS="$save_LDFLAGS"
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13418 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
13420 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
13423 lt_prog_compiler_static=
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13433 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13434 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
13435 $as_echo_n "(cached) " >&6
13437 lt_cv_prog_compiler_c_o=no
13438 $RM -r conftest 2>/dev/null
13442 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13444 lt_compiler_flag="-o out/conftest2.$ac_objext"
13445 # Insert the option either (1) after the last *FLAGS variable, or
13446 # (2) before a word containing "conftest.", or (3) at the end.
13447 # Note that $ac_compile itself does not contain backslashes and begins
13448 # with a dollar sign (not a hyphen), so the echo should work correctly.
13449 lt_compile=`echo "$ac_compile" | $SED \
13450 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13451 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13452 -e 's:$: $lt_compiler_flag:'`
13453 (eval echo "\"\$as_me:13453: $lt_compile\"" >&5)
13454 (eval "$lt_compile" 2>out/conftest.err)
13456 cat out/conftest.err >&5
13457 echo "$as_me:13457: \$? = $ac_status" >&5
13458 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13460 # The compiler can only warn and ignore the option if not recognized
13461 # So say no if there are warnings
13462 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13463 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13464 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13465 lt_cv_prog_compiler_c_o=yes
13470 # SGI C++ compiler will create directory out/ii_files/ for
13471 # template instantiation
13472 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13473 $RM out/* && rmdir out
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13480 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13488 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13489 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
13490 $as_echo_n "(cached) " >&6
13492 lt_cv_prog_compiler_c_o=no
13493 $RM -r conftest 2>/dev/null
13497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13499 lt_compiler_flag="-o out/conftest2.$ac_objext"
13500 # Insert the option either (1) after the last *FLAGS variable, or
13501 # (2) before a word containing "conftest.", or (3) at the end.
13502 # Note that $ac_compile itself does not contain backslashes and begins
13503 # with a dollar sign (not a hyphen), so the echo should work correctly.
13504 lt_compile=`echo "$ac_compile" | $SED \
13505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13507 -e 's:$: $lt_compiler_flag:'`
13508 (eval echo "\"\$as_me:13508: $lt_compile\"" >&5)
13509 (eval "$lt_compile" 2>out/conftest.err)
13511 cat out/conftest.err >&5
13512 echo "$as_me:13512: \$? = $ac_status" >&5
13513 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13515 # The compiler can only warn and ignore the option if not recognized
13516 # So say no if there are warnings
13517 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13518 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13519 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13520 lt_cv_prog_compiler_c_o=yes
13525 # SGI C++ compiler will create directory out/ii_files/ for
13526 # template instantiation
13527 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13528 $RM out/* && rmdir out
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13535 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
13540 hard_links="nottested"
13541 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
13542 # do not overwrite the value of need_locks provided by the user
13543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13544 $as_echo_n "checking if we can lock with hard links... " >&6; }
13547 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13549 ln conftest.a conftest.b 2>&5 || hard_links=no
13550 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13552 $as_echo "$hard_links" >&6; }
13553 if test "$hard_links" = no; then
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13555 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13568 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13571 allow_undefined_flag=
13572 always_export_symbols=no
13574 archive_expsym_cmds=
13575 compiler_needs_object=no
13576 enable_shared_with_static_runtimes=no
13577 export_dynamic_flag_spec=
13578 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13579 hardcode_automatic=no
13581 hardcode_direct_absolute=no
13582 hardcode_libdir_flag_spec=
13583 hardcode_libdir_flag_spec_ld=
13584 hardcode_libdir_separator=
13585 hardcode_minus_L=no
13586 hardcode_shlibpath_var=unsupported
13588 link_all_deplibs=unknown
13590 module_expsym_cmds=
13591 old_archive_from_new_cmds=
13592 old_archive_from_expsyms_cmds=
13593 thread_safe_flag_spec=
13594 whole_archive_flag_spec=
13595 # include_expsyms should be a list of space-separated symbols to be *always*
13596 # included in the symbol list
13598 # exclude_expsyms can be an extended regexp of symbols to exclude
13599 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13600 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13601 # as well as any symbol that contains `d'.
13602 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13603 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13604 # platforms (ab)use it in PIC code, but their linkers get confused if
13605 # the symbol is explicitly referenced. Since portable code cannot
13606 # rely on this symbol name, it's probably fine to never include it in
13607 # preloaded symbol tables.
13608 # Exclude shared library initialization/finalization symbols.
13609 extract_expsyms_cmds=
13612 cygwin* | mingw* | pw32* | cegcc*)
13613 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13614 # When not using gcc, we currently assume that we are using
13615 # Microsoft Visual C++.
13616 if test "$GCC" != yes; then
13621 # we just hope/assume this is gcc and not c89 (= MSVC++)
13630 if test "$with_gnu_ld" = yes; then
13631 # If archive_cmds runs LD, not CC, wlarc should be empty
13634 # Set some defaults for GNU ld with shared library support. These
13635 # are reset later if shared libraries are not supported. Putting them
13636 # here allows them to be overridden if necessary.
13637 runpath_var=LD_RUN_PATH
13638 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13639 export_dynamic_flag_spec='${wl}--export-dynamic'
13640 # ancient GNU ld didn't support --whole-archive et. al.
13641 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13642 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13644 whole_archive_flag_spec=
13646 supports_anon_versioning=no
13647 case `$LD -v 2>&1` in
13648 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13649 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13650 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13651 *\ 2.11.*) ;; # other 2.11 versions
13652 *) supports_anon_versioning=yes ;;
13655 # See if GNU ld supports shared libraries.
13658 # On AIX/PPC, the GNU linker is very broken
13659 if test "$host_cpu" != ia64; then
13663 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13664 *** to be unable to reliably create shared libraries on AIX.
13665 *** Therefore, libtool is disabling shared libraries support. If you
13666 *** really care for shared libraries, you may want to modify your PATH
13667 *** so that a non-GNU linker is found, and then restart.
13676 # see comment about AmigaOS4 .so support
13677 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13678 archive_expsym_cmds=''
13681 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)'
13682 hardcode_libdir_flag_spec='-L$libdir'
13683 hardcode_minus_L=yes
13689 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13690 allow_undefined_flag=unsupported
13691 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13692 # support --undefined. This deserves some investigation. FIXME
13693 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13699 cygwin* | mingw* | pw32* | cegcc*)
13700 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13701 # as there is no search path for DLLs.
13702 hardcode_libdir_flag_spec='-L$libdir'
13703 allow_undefined_flag=unsupported
13704 always_export_symbols=no
13705 enable_shared_with_static_runtimes=yes
13706 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13708 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13710 # If the export-symbols file already is a .def file (1st line
13711 # is EXPORTS), use it as is; otherwise, prepend...
13712 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13713 cp $export_symbols $output_objdir/$soname.def;
13715 echo EXPORTS > $output_objdir/$soname.def;
13716 cat $export_symbols >> $output_objdir/$soname.def;
13718 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13726 hardcode_shlibpath_var=no
13727 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13728 export_dynamic_flag_spec='${wl}-E'
13729 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13730 # Instead, shared libraries are loaded at an image base (0x10000000 by
13731 # default) and relocated if they conflict, which is a slow very memory
13732 # consuming and fragmenting process. To avoid this, we pick a random,
13733 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13734 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13735 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13736 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'
13739 gnu* | linux* | tpf* | k*bsd*-gnu)
13741 if test "$host_os" = linux-dietlibc; then
13742 case $cc_basename in
13743 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13746 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13747 && test "$tmp_diet" = no
13750 tmp_sharedflag='-shared'
13751 case $cc_basename,$host_cpu in
13752 pgcc*) # Portland Group C compiler
13753 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'
13754 tmp_addflag=' $pic_flag'
13756 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13757 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'
13758 tmp_addflag=' $pic_flag -Mnomain' ;;
13759 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13760 tmp_addflag=' -i_dynamic' ;;
13761 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13762 tmp_addflag=' -i_dynamic -nofor_main' ;;
13763 ifc* | ifort*) # Intel Fortran compiler
13764 tmp_addflag=' -nofor_main' ;;
13765 lf95*) # Lahey Fortran 8.1
13766 whole_archive_flag_spec=
13767 tmp_sharedflag='--shared' ;;
13768 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13769 tmp_sharedflag='-qmkshrobj'
13772 case `$CC -V 2>&1 | sed 5q` in
13773 *Sun\ C*) # Sun C 5.9
13774 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'
13775 compiler_needs_object=yes
13776 tmp_sharedflag='-G' ;;
13777 *Sun\ F*) # Sun Fortran 8.3
13778 tmp_sharedflag='-G' ;;
13780 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13782 if test "x$supports_anon_versioning" = xyes; then
13783 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13784 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13785 echo "local: *; };" >> $output_objdir/$libname.ver~
13786 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13789 case $cc_basename in
13791 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13792 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13793 hardcode_libdir_flag_spec=
13794 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13795 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13796 if test "x$supports_anon_versioning" = xyes; then
13797 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13798 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13799 echo "local: *; };" >> $output_objdir/$libname.ver~
13800 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13810 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13811 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13814 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13815 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13820 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13824 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13825 *** create shared libraries on Solaris systems. Therefore, libtool
13826 *** is disabling shared libraries support. We urge you to upgrade GNU
13827 *** binutils to release 2.9.1 or newer. Another option is to modify
13828 *** your PATH or compiler configuration so that the native linker is
13829 *** used, and then restart.
13832 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13834 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13840 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13841 case `$LD -v 2>&1` in
13842 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13846 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13847 *** reliably create shared libraries on SCO systems. Therefore, libtool
13848 *** is disabling shared libraries support. We urge you to upgrade GNU
13849 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13850 *** your PATH or compiler configuration so that the native linker is
13851 *** used, and then restart.
13856 # For security reasons, it is highly recommended that you always
13857 # use absolute paths for naming shared libraries, and exclude the
13858 # DT_RUNPATH tag from executables and libraries. But doing so
13859 # requires that you compile everything twice, which is a pain.
13860 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13861 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13862 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13863 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13872 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13874 hardcode_direct=yes
13875 hardcode_shlibpath_var=no
13879 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13880 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13881 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13888 if test "$ld_shlibs" = no; then
13890 hardcode_libdir_flag_spec=
13891 export_dynamic_flag_spec=
13892 whole_archive_flag_spec=
13895 # PORTME fill in a description of your system's linker (not GNU ld)
13898 allow_undefined_flag=unsupported
13899 always_export_symbols=yes
13900 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'
13901 # Note: this linker hardcodes the directories in LIBPATH if there
13902 # are no directories specified by -L.
13903 hardcode_minus_L=yes
13904 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13905 # Neither direct hardcoding nor static linking is supported with a
13907 hardcode_direct=unsupported
13912 if test "$host_cpu" = ia64; then
13913 # On IA64, the linker does run time linking by default, so we don't
13914 # have to do anything special.
13915 aix_use_runtimelinking=no
13916 exp_sym_flag='-Bexport'
13919 # If we're using GNU nm, then we don't want the "-C" option.
13920 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13921 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13922 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'
13924 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'
13926 aix_use_runtimelinking=no
13928 # Test if we are trying to use run time linking or normal
13929 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13930 # need to do runtime linking.
13931 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13932 for ld_flag in $LDFLAGS; do
13933 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13934 aix_use_runtimelinking=yes
13941 exp_sym_flag='-bexport'
13942 no_entry_flag='-bnoentry'
13945 # When large executables or shared objects are built, AIX ld can
13946 # have problems creating the table of contents. If linking a library
13947 # or program results in "error TOC overflow" add -mminimal-toc to
13948 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13949 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13952 hardcode_direct=yes
13953 hardcode_direct_absolute=yes
13954 hardcode_libdir_separator=':'
13955 link_all_deplibs=yes
13956 file_list_spec='${wl}-f,'
13958 if test "$GCC" = yes; then
13959 case $host_os in aix4.[012]|aix4.[012].*)
13960 # We only want to do this on AIX 4.2 and lower, the check
13961 # below for broken collect2 doesn't work under 4.3+
13962 collect2name=`${CC} -print-prog-name=collect2`
13963 if test -f "$collect2name" &&
13964 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13966 # We have reworked collect2
13969 # We have old collect2
13970 hardcode_direct=unsupported
13971 # It fails to find uninstalled libraries when the uninstalled
13972 # path is not listed in the libpath. Setting hardcode_minus_L
13973 # to unsupported forces relinking
13974 hardcode_minus_L=yes
13975 hardcode_libdir_flag_spec='-L$libdir'
13976 hardcode_libdir_separator=
13980 shared_flag='-shared'
13981 if test "$aix_use_runtimelinking" = yes; then
13982 shared_flag="$shared_flag "'${wl}-G'
13986 if test "$host_cpu" = ia64; then
13987 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13988 # chokes on -Wl,-G. The following line is correct:
13991 if test "$aix_use_runtimelinking" = yes; then
13992 shared_flag='${wl}-G'
13994 shared_flag='${wl}-bM:SRE'
13999 export_dynamic_flag_spec='${wl}-bexpall'
14000 # It seems that -bexpall does not export symbols beginning with
14001 # underscore (_), so it is better to generate a list of symbols to export.
14002 always_export_symbols=yes
14003 if test "$aix_use_runtimelinking" = yes; then
14004 # Warning - without using the other runtime loading flags (-brtl),
14005 # -berok will link without error, but may produce a broken library.
14006 allow_undefined_flag='-berok'
14007 # Determine the default libpath from the value encoded in an
14008 # empty executable.
14009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14010 /* end confdefs.h. */
14020 if ac_fn_c_try_link "$LINENO"; then :
14022 lt_aix_libpath_sed='
14023 /Import File Strings/,/^$/ {
14029 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14030 # Check for a 64-bit object if we didn't find anything.
14031 if test -z "$aix_libpath"; then
14032 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14035 rm -f core conftest.err conftest.$ac_objext \
14036 conftest$ac_exeext conftest.$ac_ext
14037 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14039 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14040 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"
14042 if test "$host_cpu" = ia64; then
14043 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
14044 allow_undefined_flag="-z nodefs"
14045 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"
14047 # Determine the default libpath from the value encoded in an
14048 # empty executable.
14049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14050 /* end confdefs.h. */
14060 if ac_fn_c_try_link "$LINENO"; then :
14062 lt_aix_libpath_sed='
14063 /Import File Strings/,/^$/ {
14069 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14070 # Check for a 64-bit object if we didn't find anything.
14071 if test -z "$aix_libpath"; then
14072 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14075 rm -f core conftest.err conftest.$ac_objext \
14076 conftest$ac_exeext conftest.$ac_ext
14077 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14079 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
14080 # Warning - without using the other run time loading flags,
14081 # -berok will link without error, but may produce a broken library.
14082 no_undefined_flag=' ${wl}-bernotok'
14083 allow_undefined_flag=' ${wl}-berok'
14084 # Exported symbols can be pulled into shared objects from archives
14085 whole_archive_flag_spec='$convenience'
14086 archive_cmds_need_lc=yes
14087 # This is similar to how AIX traditionally builds its shared libraries.
14088 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'
14096 # see comment about AmigaOS4 .so support
14097 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14098 archive_expsym_cmds=''
14101 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)'
14102 hardcode_libdir_flag_spec='-L$libdir'
14103 hardcode_minus_L=yes
14109 export_dynamic_flag_spec=-rdynamic
14112 cygwin* | mingw* | pw32* | cegcc*)
14113 # When not using gcc, we currently assume that we are using
14114 # Microsoft Visual C++.
14115 # hardcode_libdir_flag_spec is actually meaningless, as there is
14116 # no search path for DLLs.
14117 hardcode_libdir_flag_spec=' '
14118 allow_undefined_flag=unsupported
14119 # Tell ltmain to make .lib files, not .a files.
14121 # Tell ltmain to make .dll files, not .so files.
14123 # FIXME: Setting linknames here is a bad hack.
14124 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
14125 # The linker will automatically build a .lib file if we build a DLL.
14126 old_archive_from_new_cmds='true'
14127 # FIXME: Should let the user specify the lib program.
14128 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14129 fix_srcfile_path='`cygpath -w "$srcfile"`'
14130 enable_shared_with_static_runtimes=yes
14133 darwin* | rhapsody*)
14136 archive_cmds_need_lc=no
14138 hardcode_automatic=yes
14139 hardcode_shlibpath_var=unsupported
14140 whole_archive_flag_spec=''
14141 link_all_deplibs=yes
14142 allow_undefined_flag="$_lt_dar_allow_undefined"
14143 case $cc_basename in
14144 ifort*) _lt_dar_can_shared=yes ;;
14145 *) _lt_dar_can_shared=$GCC ;;
14147 if test "$_lt_dar_can_shared" = "yes"; then
14148 output_verbose_link_cmd=echo
14149 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14150 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14151 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}"
14152 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}"
14161 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14162 hardcode_libdir_flag_spec='-L$libdir'
14163 hardcode_shlibpath_var=no
14170 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14171 # support. Future versions do this automatically, but an explicit c++rt0.o
14172 # does not break anything, and helps significantly (at the cost of a little
14175 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14176 hardcode_libdir_flag_spec='-R$libdir'
14177 hardcode_direct=yes
14178 hardcode_shlibpath_var=no
14181 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14183 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14184 hardcode_direct=yes
14185 hardcode_minus_L=yes
14186 hardcode_shlibpath_var=no
14189 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14190 freebsd* | dragonfly*)
14191 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14192 hardcode_libdir_flag_spec='-R$libdir'
14193 hardcode_direct=yes
14194 hardcode_shlibpath_var=no
14198 if test "$GCC" = yes; then
14199 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'
14201 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'
14203 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14204 hardcode_libdir_separator=:
14205 hardcode_direct=yes
14207 # hardcode_minus_L: Not really in the search PATH,
14208 # but as the default location of the library.
14209 hardcode_minus_L=yes
14210 export_dynamic_flag_spec='${wl}-E'
14214 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14215 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14217 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14219 if test "$with_gnu_ld" = no; then
14220 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14221 hardcode_libdir_flag_spec_ld='+b $libdir'
14222 hardcode_libdir_separator=:
14223 hardcode_direct=yes
14224 hardcode_direct_absolute=yes
14225 export_dynamic_flag_spec='${wl}-E'
14226 # hardcode_minus_L: Not really in the search PATH,
14227 # but as the default location of the library.
14228 hardcode_minus_L=yes
14233 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14236 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14239 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14242 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14248 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14251 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14254 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14258 if test "$with_gnu_ld" = no; then
14259 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
14260 hardcode_libdir_separator=:
14265 hardcode_shlibpath_var=no
14268 hardcode_direct=yes
14269 hardcode_direct_absolute=yes
14270 export_dynamic_flag_spec='${wl}-E'
14272 # hardcode_minus_L: Not really in the search PATH,
14273 # but as the default location of the library.
14274 hardcode_minus_L=yes
14280 irix5* | irix6* | nonstopux*)
14281 if test "$GCC" = yes; then
14282 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'
14283 # Try to use the -exported_symbol ld option, if it does not
14284 # work, assume that -exports_file does not work either and
14285 # implicitly export all symbols.
14286 save_LDFLAGS="$LDFLAGS"
14287 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289 /* end confdefs.h. */
14292 if ac_fn_c_try_link "$LINENO"; then :
14293 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'
14296 rm -f core conftest.err conftest.$ac_objext \
14297 conftest$ac_exeext conftest.$ac_ext
14298 LDFLAGS="$save_LDFLAGS"
14300 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'
14301 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'
14303 archive_cmds_need_lc='no'
14304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14305 hardcode_libdir_separator=:
14307 link_all_deplibs=yes
14311 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14312 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14314 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14316 hardcode_libdir_flag_spec='-R$libdir'
14317 hardcode_direct=yes
14318 hardcode_shlibpath_var=no
14322 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14323 hardcode_direct=yes
14324 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14325 hardcode_libdir_separator=:
14326 hardcode_shlibpath_var=no
14333 if test -f /usr/libexec/ld.so; then
14334 hardcode_direct=yes
14335 hardcode_shlibpath_var=no
14336 hardcode_direct_absolute=yes
14337 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14338 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14339 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14340 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14341 export_dynamic_flag_spec='${wl}-E'
14344 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14346 hardcode_libdir_flag_spec='-R$libdir'
14349 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14350 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14360 hardcode_libdir_flag_spec='-L$libdir'
14361 hardcode_minus_L=yes
14362 allow_undefined_flag=unsupported
14363 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'
14364 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14368 if test "$GCC" = yes; then
14369 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14370 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'
14372 allow_undefined_flag=' -expect_unresolved \*'
14373 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'
14375 archive_cmds_need_lc='no'
14376 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14377 hardcode_libdir_separator=:
14380 osf4* | osf5*) # as osf3* with the addition of -msym flag
14381 if test "$GCC" = yes; then
14382 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
14383 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'
14384 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14386 allow_undefined_flag=' -expect_unresolved \*'
14387 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'
14388 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~
14389 $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'
14391 # Both c and cxx compiler support -rpath directly
14392 hardcode_libdir_flag_spec='-rpath $libdir'
14394 archive_cmds_need_lc='no'
14395 hardcode_libdir_separator=:
14399 no_undefined_flag=' -z defs'
14400 if test "$GCC" = yes; then
14402 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14403 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14404 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14406 case `$CC -V 2>&1` in
14409 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14410 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14411 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14415 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14416 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14417 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14421 hardcode_libdir_flag_spec='-R$libdir'
14422 hardcode_shlibpath_var=no
14424 solaris2.[0-5] | solaris2.[0-5].*) ;;
14426 # The compiler driver will combine and reorder linker options,
14427 # but understands `-z linker_flag'. GCC discards it without `$wl',
14428 # but is careful enough not to reorder.
14429 # Supported since Solaris 2.6 (maybe 2.5.1?)
14430 if test "$GCC" = yes; then
14431 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14433 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14437 link_all_deplibs=yes
14441 if test "x$host_vendor" = xsequent; then
14442 # Use $CC to link under sequent, because it throws in some extra .o
14443 # files that make .init and .fini sections work.
14444 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14446 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14448 hardcode_libdir_flag_spec='-L$libdir'
14449 hardcode_direct=yes
14450 hardcode_minus_L=yes
14451 hardcode_shlibpath_var=no
14455 case $host_vendor in
14457 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14458 hardcode_direct=yes # is this really true???
14461 ## LD is ld it makes a PLAMLIB
14462 ## CC just makes a GrossModule.
14463 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14464 reload_cmds='$CC -r -o $output$reload_objs'
14468 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14469 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14472 runpath_var='LD_RUN_PATH'
14473 hardcode_shlibpath_var=no
14477 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14478 hardcode_shlibpath_var=no
14479 export_dynamic_flag_spec='-Bexport'
14483 if test -d /usr/nec; then
14484 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14485 hardcode_shlibpath_var=no
14486 runpath_var=LD_RUN_PATH
14487 hardcode_runpath_var=yes
14492 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14493 no_undefined_flag='${wl}-z,text'
14494 archive_cmds_need_lc=no
14495 hardcode_shlibpath_var=no
14496 runpath_var='LD_RUN_PATH'
14498 if test "$GCC" = yes; then
14499 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14500 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14502 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14503 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14507 sysv5* | sco3.2v5* | sco5v6*)
14508 # Note: We can NOT use -z defs as we might desire, because we do not
14509 # link with -lc, and that would cause any symbols used from libc to
14510 # always be unresolved, which means just about no library would
14511 # ever link correctly. If we're not using GNU ld we use -z text
14512 # though, which does catch some bad symbols but isn't as heavy-handed
14514 no_undefined_flag='${wl}-z,text'
14515 allow_undefined_flag='${wl}-z,nodefs'
14516 archive_cmds_need_lc=no
14517 hardcode_shlibpath_var=no
14518 hardcode_libdir_flag_spec='${wl}-R,$libdir'
14519 hardcode_libdir_separator=':'
14520 link_all_deplibs=yes
14521 export_dynamic_flag_spec='${wl}-Bexport'
14522 runpath_var='LD_RUN_PATH'
14524 if test "$GCC" = yes; then
14525 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14526 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14528 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14529 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14535 hardcode_libdir_flag_spec='-L$libdir'
14536 hardcode_shlibpath_var=no
14544 if test x$host_vendor = xsni; then
14546 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14547 export_dynamic_flag_spec='${wl}-Blargedynsym'
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14554 $as_echo "$ld_shlibs" >&6; }
14555 test "$ld_shlibs" = no && can_build_shared=no
14557 with_gnu_ld=$with_gnu_ld
14574 # Do we need to explicitly link libc?
14576 case "x$archive_cmds_need_lc" in
14578 # Assume -lc should be added
14579 archive_cmds_need_lc=yes
14581 if test "$enable_shared" = yes && test "$GCC" = yes; then
14582 case $archive_cmds in
14584 # FIXME: we may have to deal with multi-command sequences.
14587 # Test whether the compiler implicitly links with -lc since on some
14588 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14589 # to ld, don't add -lc before -lgcc.
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14591 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14593 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14596 (eval $ac_compile) 2>&5
14598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14599 test $ac_status = 0; } 2>conftest.err; then
14602 libobjs=conftest.$ac_objext
14604 wl=$lt_prog_compiler_wl
14605 pic_flag=$lt_prog_compiler_pic
14611 lt_save_allow_undefined_flag=$allow_undefined_flag
14612 allow_undefined_flag=
14613 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14614 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14617 test $ac_status = 0; }
14619 archive_cmds_need_lc=no
14621 archive_cmds_need_lc=yes
14623 allow_undefined_flag=$lt_save_allow_undefined_flag
14625 cat conftest.err 1>&5
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
14629 $as_echo "$archive_cmds_need_lc" >&6; }
14792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14793 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14795 if test "$GCC" = yes; then
14797 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14798 *) lt_awk_arg="/^libraries:/" ;;
14800 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14801 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
14802 # if the path contains ";" then we assume it to be the separator
14803 # otherwise default to the standard path separator (i.e. ":") - it is
14804 # assumed that no part of a normal pathname contains ";" but that should
14805 # okay in the real world where ";" in dirpaths is itself problematic.
14806 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14808 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14810 # Ok, now we have the path, separated by spaces, we can step through it
14811 # and add multilib dir if necessary.
14812 lt_tmp_lt_search_path_spec=
14813 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14814 for lt_sys_path in $lt_search_path_spec; do
14815 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14816 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14818 test -d "$lt_sys_path" && \
14819 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14822 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
14823 BEGIN {RS=" "; FS="/|\n";} {
14826 for (lt_i = NF; lt_i > 0; lt_i--) {
14827 if ($lt_i != "" && $lt_i != ".") {
14828 if ($lt_i == "..") {
14831 if (lt_count == 0) {
14832 lt_foo="/" $lt_i lt_foo;
14839 if (lt_foo != "") { lt_freq[lt_foo]++; }
14840 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14842 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
14844 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14846 library_names_spec=
14847 libname_spec='lib$name'
14851 postuninstall_cmds=
14855 shlibpath_overrides_runpath=unknown
14857 dynamic_linker="$host_os ld.so"
14858 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14859 need_lib_prefix=unknown
14860 hardcode_into_libs=no
14862 # when you set need_version to no, make sure it does not cause -set_version
14863 # flags to be left without arguments
14864 need_version=unknown
14869 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14870 shlibpath_var=LIBPATH
14872 # AIX 3 has no versioning support, so we append a major version to the name.
14873 soname_spec='${libname}${release}${shared_ext}$major'
14880 hardcode_into_libs=yes
14881 if test "$host_cpu" = ia64; then
14882 # AIX 5 supports IA64
14883 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14884 shlibpath_var=LD_LIBRARY_PATH
14886 # With GCC up to 2.95.x, collect2 would create an import file
14887 # for dependence libraries. The import file would start with
14888 # the line `#! .'. This would cause the generated library to
14889 # depend on `.', always an invalid library. This was fixed in
14890 # development snapshots of GCC prior to 3.0.
14892 aix4 | aix4.[01] | aix4.[01].*)
14893 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14895 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14898 can_build_shared=no
14902 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14903 # soname into executable. Probably we can add versioning support to
14904 # collect2, so additional links can be useful in future.
14905 if test "$aix_use_runtimelinking" = yes; then
14906 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14907 # instead of lib<name>.a to let people know that these are not
14908 # typical AIX shared libraries.
14909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14911 # We preserve .a as extension for shared libraries through AIX4.2
14912 # and later when we are not doing run time linking.
14913 library_names_spec='${libname}${release}.a $libname.a'
14914 soname_spec='${libname}${release}${shared_ext}$major'
14916 shlibpath_var=LIBPATH
14923 # Since July 2007 AmigaOS4 officially supports .so libraries.
14924 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14928 library_names_spec='$libname.ixlibrary $libname.a'
14929 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14930 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'
14936 library_names_spec='${libname}${shared_ext}'
14937 dynamic_linker="$host_os ld.so"
14938 shlibpath_var=LIBRARY_PATH
14944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14945 soname_spec='${libname}${release}${shared_ext}$major'
14946 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14947 shlibpath_var=LD_LIBRARY_PATH
14948 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14949 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14950 # the default ld.so.conf also contains /usr/contrib/lib and
14951 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14952 # libtool to hard-code these into programs
14955 cygwin* | mingw* | pw32* | cegcc*)
14956 version_type=windows
14961 case $GCC,$host_os in
14962 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14963 library_names_spec='$libname.dll.a'
14964 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14965 postinstall_cmds='base_file=`basename \${file}`~
14966 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14967 dldir=$destdir/`dirname \$dlpath`~
14968 test -d \$dldir || mkdir -p \$dldir~
14969 $install_prog $dir/$dlname \$dldir/$dlname~
14970 chmod a+x \$dldir/$dlname~
14971 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14972 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14974 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14975 dlpath=$dir/\$dldll~
14977 shlibpath_overrides_runpath=yes
14981 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14982 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14983 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14986 # MinGW DLLs use traditional 'lib' prefix
14987 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14988 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14989 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14990 # It is most probably a Windows format PATH printed by
14991 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14992 # path with ; separators, and with drive letters. We can handle the
14993 # drive letters (cygwin fileutils understands them), so leave them,
14994 # especially as we might pass files found there to a mingw objdump,
14995 # which wouldn't understand a cygwinified path. Ahh.
14996 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14998 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15002 # pw32 DLLs use 'pw' prefix rather than 'lib'
15003 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15009 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15012 dynamic_linker='Win32 ld.exe'
15013 # FIXME: first we should search . and the directory the executable is in
15017 darwin* | rhapsody*)
15018 dynamic_linker="$host_os dyld"
15019 version_type=darwin
15022 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15023 soname_spec='${libname}${release}${major}$shared_ext'
15024 shlibpath_overrides_runpath=yes
15025 shlibpath_var=DYLD_LIBRARY_PATH
15026 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15028 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15029 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15037 soname_spec='${libname}${release}${shared_ext}$major'
15038 shlibpath_var=LD_LIBRARY_PATH
15045 freebsd* | dragonfly*)
15046 # DragonFly does not have aout. When/if they implement a new
15047 # versioning mechanism, adjust this.
15048 if test -x /usr/bin/objformat; then
15049 objformat=`/usr/bin/objformat`
15052 freebsd[123]*) objformat=aout ;;
15053 *) objformat=elf ;;
15056 version_type=freebsd-$objformat
15057 case $version_type in
15059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15064 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15068 shlibpath_var=LD_LIBRARY_PATH
15071 shlibpath_overrides_runpath=yes
15073 freebsd3.[01]* | freebsdelf3.[01]*)
15074 shlibpath_overrides_runpath=yes
15075 hardcode_into_libs=yes
15077 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15078 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15079 shlibpath_overrides_runpath=no
15080 hardcode_into_libs=yes
15082 *) # from 4.6 on, and DragonFly
15083 shlibpath_overrides_runpath=yes
15084 hardcode_into_libs=yes
15093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15094 soname_spec='${libname}${release}${shared_ext}$major'
15095 shlibpath_var=LD_LIBRARY_PATH
15096 hardcode_into_libs=yes
15099 hpux9* | hpux10* | hpux11*)
15100 # Give a soname corresponding to the major version so that dld.sl refuses to
15101 # link against other versions.
15108 hardcode_into_libs=yes
15109 dynamic_linker="$host_os dld.so"
15110 shlibpath_var=LD_LIBRARY_PATH
15111 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15113 soname_spec='${libname}${release}${shared_ext}$major'
15114 if test "X$HPUX_IA64_MODE" = X32; then
15115 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15117 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15119 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15123 hardcode_into_libs=yes
15124 dynamic_linker="$host_os dld.sl"
15125 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15126 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15128 soname_spec='${libname}${release}${shared_ext}$major'
15129 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15130 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15134 dynamic_linker="$host_os dld.sl"
15135 shlibpath_var=SHLIB_PATH
15136 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15138 soname_spec='${libname}${release}${shared_ext}$major'
15141 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15142 postinstall_cmds='chmod 555 $lib'
15149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15150 soname_spec='${libname}${release}${shared_ext}$major'
15151 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15152 shlibpath_var=LD_LIBRARY_PATH
15153 shlibpath_overrides_runpath=no
15154 hardcode_into_libs=yes
15157 irix5* | irix6* | nonstopux*)
15159 nonstopux*) version_type=nonstopux ;;
15161 if test "$lt_cv_prog_gnu_ld" = yes; then
15169 soname_spec='${libname}${release}${shared_ext}$major'
15170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15172 irix5* | nonstopux*)
15173 libsuff= shlibsuff=
15176 case $LD in # libtool.m4 will add one of these switches to LD
15177 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15178 libsuff= shlibsuff= libmagic=32-bit;;
15179 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15180 libsuff=32 shlibsuff=N32 libmagic=N32;;
15181 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15182 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15183 *) libsuff= shlibsuff= libmagic=never-match;;
15187 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15188 shlibpath_overrides_runpath=no
15189 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15190 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15191 hardcode_into_libs=yes
15194 # No shared lib support for Linux oldld, aout, or coff.
15195 linux*oldld* | linux*aout* | linux*coff*)
15199 # This must be Linux ELF.
15200 linux* | k*bsd*-gnu)
15204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15205 soname_spec='${libname}${release}${shared_ext}$major'
15206 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15207 shlibpath_var=LD_LIBRARY_PATH
15208 shlibpath_overrides_runpath=no
15209 # Some binutils ld are patched to set DT_RUNPATH
15210 save_LDFLAGS=$LDFLAGS
15211 save_libdir=$libdir
15212 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15213 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15215 /* end confdefs.h. */
15225 if ac_fn_c_try_link "$LINENO"; then :
15226 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15227 shlibpath_overrides_runpath=yes
15230 rm -f core conftest.err conftest.$ac_objext \
15231 conftest$ac_exeext conftest.$ac_ext
15232 LDFLAGS=$save_LDFLAGS
15233 libdir=$save_libdir
15235 # This implies no fast_install, which is unacceptable.
15236 # Some rework will be needed to allow for fast_install
15237 # before this can be enabled.
15238 hardcode_into_libs=yes
15240 # Add ABI-specific directories to the system library path.
15241 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15243 # Append ld.so.conf contents to the search path
15244 if test -f /etc/ld.so.conf; then
15245 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' ' '`
15246 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15249 # We used to test for /lib/ld.so.1 and disable shared libraries on
15250 # powerpc, because MkLinux only supported shared libraries with the
15251 # GNU dynamic linker. Since this was broken with cross compilers,
15252 # most powerpc-linux boxes support dynamic linking these days and
15253 # people can always --disable-shared, the test was removed, and we
15254 # assume the GNU/Linux dynamic linker is in use.
15255 dynamic_linker='GNU/Linux ld.so'
15262 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15265 dynamic_linker='NetBSD (a.out) ld.so'
15267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15268 soname_spec='${libname}${release}${shared_ext}$major'
15269 dynamic_linker='NetBSD ld.elf_so'
15271 shlibpath_var=LD_LIBRARY_PATH
15272 shlibpath_overrides_runpath=yes
15273 hardcode_into_libs=yes
15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15279 shlibpath_var=LD_LIBRARY_PATH
15280 shlibpath_overrides_runpath=yes
15287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15288 soname_spec='${libname}${release}${shared_ext}$major'
15289 shlibpath_var=LD_LIBRARY_PATH
15290 shlibpath_overrides_runpath=no
15291 hardcode_into_libs=yes
15292 dynamic_linker='ldqnx.so'
15297 sys_lib_dlsearch_path_spec="/usr/lib"
15299 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15301 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15302 *) need_version=no ;;
15304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15305 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15306 shlibpath_var=LD_LIBRARY_PATH
15307 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15309 openbsd2.[89] | openbsd2.[89].*)
15310 shlibpath_overrides_runpath=no
15313 shlibpath_overrides_runpath=yes
15317 shlibpath_overrides_runpath=yes
15322 libname_spec='$name'
15325 library_names_spec='$libname${shared_ext} $libname.a'
15326 dynamic_linker='OS/2 ld.exe'
15327 shlibpath_var=LIBPATH
15330 osf3* | osf4* | osf5*)
15334 soname_spec='${libname}${release}${shared_ext}$major'
15335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15336 shlibpath_var=LD_LIBRARY_PATH
15337 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15338 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15350 soname_spec='${libname}${release}${shared_ext}$major'
15351 shlibpath_var=LD_LIBRARY_PATH
15352 shlibpath_overrides_runpath=yes
15353 hardcode_into_libs=yes
15354 # ldd complains unless libraries are executable
15355 postinstall_cmds='chmod +x $lib'
15360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15361 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15362 shlibpath_var=LD_LIBRARY_PATH
15363 shlibpath_overrides_runpath=yes
15364 if test "$with_gnu_ld" = yes; then
15372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15373 soname_spec='${libname}${release}${shared_ext}$major'
15374 shlibpath_var=LD_LIBRARY_PATH
15375 case $host_vendor in
15377 shlibpath_overrides_runpath=no
15379 runpath_var=LD_RUN_PATH
15387 shlibpath_overrides_runpath=no
15388 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15394 if test -d /usr/nec ;then
15396 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15397 soname_spec='$libname${shared_ext}.$major'
15398 shlibpath_var=LD_LIBRARY_PATH
15402 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15403 version_type=freebsd-elf
15406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15407 soname_spec='${libname}${release}${shared_ext}$major'
15408 shlibpath_var=LD_LIBRARY_PATH
15409 shlibpath_overrides_runpath=yes
15410 hardcode_into_libs=yes
15411 if test "$with_gnu_ld" = yes; then
15412 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15414 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15417 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15421 sys_lib_dlsearch_path_spec='/usr/lib'
15425 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15430 shlibpath_var=LD_LIBRARY_PATH
15431 shlibpath_overrides_runpath=no
15432 hardcode_into_libs=yes
15437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15438 soname_spec='${libname}${release}${shared_ext}$major'
15439 shlibpath_var=LD_LIBRARY_PATH
15446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15447 $as_echo "$dynamic_linker" >&6; }
15448 test "$dynamic_linker" = no && can_build_shared=no
15450 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15451 if test "$GCC" = yes; then
15452 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15455 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15456 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15458 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15459 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15549 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15551 if test -n "$hardcode_libdir_flag_spec" ||
15552 test -n "$runpath_var" ||
15553 test "X$hardcode_automatic" = "Xyes" ; then
15555 # We can hardcode non-existent directories.
15556 if test "$hardcode_direct" != no &&
15557 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15558 # have to relink, otherwise we might link with an installed library
15559 # when we should be linking with a yet-to-be-installed one
15560 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
15561 test "$hardcode_minus_L" != no; then
15562 # Linking always hardcodes the temporary library directory.
15563 hardcode_action=relink
15565 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15566 hardcode_action=immediate
15569 # We cannot hardcode anything, or else we can only hardcode existing
15571 hardcode_action=unsupported
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15574 $as_echo "$hardcode_action" >&6; }
15576 if test "$hardcode_action" = relink ||
15577 test "$inherit_rpath" = yes; then
15578 # Fast installation is not supported
15579 enable_fast_install=no
15580 elif test "$shlibpath_overrides_runpath" = yes ||
15581 test "$enable_shared" = no; then
15582 # Fast installation is not necessary
15583 enable_fast_install=needless
15591 if test "x$enable_dlopen" != xyes; then
15592 enable_dlopen=unknown
15593 enable_dlopen_self=unknown
15594 enable_dlopen_self_static=unknown
15601 lt_cv_dlopen="load_add_on"
15603 lt_cv_dlopen_self=yes
15606 mingw* | pw32* | cegcc*)
15607 lt_cv_dlopen="LoadLibrary"
15612 lt_cv_dlopen="dlopen"
15617 # if libdl is installed we need to link against it
15618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15619 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15620 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15621 $as_echo_n "(cached) " >&6
15623 ac_check_lib_save_LIBS=$LIBS
15625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15626 /* end confdefs.h. */
15628 /* Override any GCC internal prototype to avoid an error.
15629 Use char because int might match the return type of a GCC
15630 builtin and then its argument prototype would still apply. */
15643 if ac_fn_c_try_link "$LINENO"; then :
15644 ac_cv_lib_dl_dlopen=yes
15646 ac_cv_lib_dl_dlopen=no
15648 rm -f core conftest.err conftest.$ac_objext \
15649 conftest$ac_exeext conftest.$ac_ext
15650 LIBS=$ac_check_lib_save_LIBS
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15653 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15654 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15655 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15658 lt_cv_dlopen="dyld"
15660 lt_cv_dlopen_self=yes
15667 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15668 if test "x$ac_cv_func_shl_load" = x""yes; then :
15669 lt_cv_dlopen="shl_load"
15671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15672 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15673 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
15674 $as_echo_n "(cached) " >&6
15676 ac_check_lib_save_LIBS=$LIBS
15678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15679 /* end confdefs.h. */
15681 /* Override any GCC internal prototype to avoid an error.
15682 Use char because int might match the return type of a GCC
15683 builtin and then its argument prototype would still apply. */
15691 return shl_load ();
15696 if ac_fn_c_try_link "$LINENO"; then :
15697 ac_cv_lib_dld_shl_load=yes
15699 ac_cv_lib_dld_shl_load=no
15701 rm -f core conftest.err conftest.$ac_objext \
15702 conftest$ac_exeext conftest.$ac_ext
15703 LIBS=$ac_check_lib_save_LIBS
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15706 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15707 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
15708 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15710 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15711 if test "x$ac_cv_func_dlopen" = x""yes; then :
15712 lt_cv_dlopen="dlopen"
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15715 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15716 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
15717 $as_echo_n "(cached) " >&6
15719 ac_check_lib_save_LIBS=$LIBS
15721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15722 /* end confdefs.h. */
15724 /* Override any GCC internal prototype to avoid an error.
15725 Use char because int might match the return type of a GCC
15726 builtin and then its argument prototype would still apply. */
15739 if ac_fn_c_try_link "$LINENO"; then :
15740 ac_cv_lib_dl_dlopen=yes
15742 ac_cv_lib_dl_dlopen=no
15744 rm -f core conftest.err conftest.$ac_objext \
15745 conftest$ac_exeext conftest.$ac_ext
15746 LIBS=$ac_check_lib_save_LIBS
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15749 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15750 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
15751 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15754 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15755 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
15756 $as_echo_n "(cached) " >&6
15758 ac_check_lib_save_LIBS=$LIBS
15759 LIBS="-lsvld $LIBS"
15760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15761 /* end confdefs.h. */
15763 /* Override any GCC internal prototype to avoid an error.
15764 Use char because int might match the return type of a GCC
15765 builtin and then its argument prototype would still apply. */
15778 if ac_fn_c_try_link "$LINENO"; then :
15779 ac_cv_lib_svld_dlopen=yes
15781 ac_cv_lib_svld_dlopen=no
15783 rm -f core conftest.err conftest.$ac_objext \
15784 conftest$ac_exeext conftest.$ac_ext
15785 LIBS=$ac_check_lib_save_LIBS
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15788 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15789 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
15790 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15793 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15794 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
15795 $as_echo_n "(cached) " >&6
15797 ac_check_lib_save_LIBS=$LIBS
15799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15800 /* end confdefs.h. */
15802 /* Override any GCC internal prototype to avoid an error.
15803 Use char because int might match the return type of a GCC
15804 builtin and then its argument prototype would still apply. */
15812 return dld_link ();
15817 if ac_fn_c_try_link "$LINENO"; then :
15818 ac_cv_lib_dld_dld_link=yes
15820 ac_cv_lib_dld_dld_link=no
15822 rm -f core conftest.err conftest.$ac_objext \
15823 conftest$ac_exeext conftest.$ac_ext
15824 LIBS=$ac_check_lib_save_LIBS
15826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15827 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15828 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
15829 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15850 if test "x$lt_cv_dlopen" != xno; then
15856 case $lt_cv_dlopen in
15858 save_CPPFLAGS="$CPPFLAGS"
15859 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15861 save_LDFLAGS="$LDFLAGS"
15862 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15865 LIBS="$lt_cv_dlopen_libs $LIBS"
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15868 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15869 if test "${lt_cv_dlopen_self+set}" = set; then :
15870 $as_echo_n "(cached) " >&6
15872 if test "$cross_compiling" = yes; then :
15873 lt_cv_dlopen_self=cross
15875 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15876 lt_status=$lt_dlunknown
15877 cat > conftest.$ac_ext <<_LT_EOF
15878 #line 15878 "configure"
15879 #include "confdefs.h"
15888 # define LT_DLGLOBAL RTLD_GLOBAL
15891 # define LT_DLGLOBAL DL_GLOBAL
15893 # define LT_DLGLOBAL 0
15897 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15898 find out it does not work in some platform. */
15899 #ifndef LT_DLLAZY_OR_NOW
15901 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15904 # define LT_DLLAZY_OR_NOW DL_LAZY
15907 # define LT_DLLAZY_OR_NOW RTLD_NOW
15910 # define LT_DLLAZY_OR_NOW DL_NOW
15912 # define LT_DLLAZY_OR_NOW 0
15919 void fnord() { int i=42;}
15922 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15923 int status = $lt_dlunknown;
15927 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15928 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15929 /* dlclose (self); */
15937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15938 (eval $ac_link) 2>&5
15940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15941 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15942 (./conftest; exit; ) >&5 2>/dev/null
15944 case x$lt_status in
15945 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15946 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15947 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15950 # compilation failed
15951 lt_cv_dlopen_self=no
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15959 $as_echo "$lt_cv_dlopen_self" >&6; }
15961 if test "x$lt_cv_dlopen_self" = xyes; then
15962 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15964 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15965 if test "${lt_cv_dlopen_self_static+set}" = set; then :
15966 $as_echo_n "(cached) " >&6
15968 if test "$cross_compiling" = yes; then :
15969 lt_cv_dlopen_self_static=cross
15971 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15972 lt_status=$lt_dlunknown
15973 cat > conftest.$ac_ext <<_LT_EOF
15974 #line 15974 "configure"
15975 #include "confdefs.h"
15984 # define LT_DLGLOBAL RTLD_GLOBAL
15987 # define LT_DLGLOBAL DL_GLOBAL
15989 # define LT_DLGLOBAL 0
15993 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15994 find out it does not work in some platform. */
15995 #ifndef LT_DLLAZY_OR_NOW
15997 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16000 # define LT_DLLAZY_OR_NOW DL_LAZY
16003 # define LT_DLLAZY_OR_NOW RTLD_NOW
16006 # define LT_DLLAZY_OR_NOW DL_NOW
16008 # define LT_DLLAZY_OR_NOW 0
16015 void fnord() { int i=42;}
16018 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16019 int status = $lt_dlunknown;
16023 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16024 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16025 /* dlclose (self); */
16033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16034 (eval $ac_link) 2>&5
16036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16037 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
16038 (./conftest; exit; ) >&5 2>/dev/null
16040 case x$lt_status in
16041 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16042 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16043 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16046 # compilation failed
16047 lt_cv_dlopen_self_static=no
16054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16055 $as_echo "$lt_cv_dlopen_self_static" >&6; }
16058 CPPFLAGS="$save_CPPFLAGS"
16059 LDFLAGS="$save_LDFLAGS"
16064 case $lt_cv_dlopen_self in
16065 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16066 *) enable_dlopen_self=unknown ;;
16069 case $lt_cv_dlopen_self_static in
16070 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16071 *) enable_dlopen_self_static=unknown ;;
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16094 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
16095 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16096 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16097 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16099 $as_echo "yes" >&6; }
16101 # FIXME - insert some real tests, host_os isn't really good enough
16104 if test -n "$STRIP" ; then
16105 striplib="$STRIP -x"
16106 old_striplib="$STRIP -S"
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16108 $as_echo "yes" >&6; }
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16111 $as_echo "no" >&6; }
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16116 $as_echo "no" >&6; }
16132 # Report which library types will actually be built
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16134 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16136 $as_echo "$can_build_shared" >&6; }
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16139 $as_echo_n "checking whether to build shared libraries... " >&6; }
16140 test "$can_build_shared" = "no" && enable_shared=no
16142 # On AIX, shared libraries and static libraries use the same namespace, and
16143 # are all built from PIC.
16146 test "$enable_shared" = yes && enable_static=no
16147 if test -n "$RANLIB"; then
16148 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16149 postinstall_cmds='$RANLIB $lib'
16154 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16155 test "$enable_shared" = yes && enable_static=no
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16160 $as_echo "$enable_shared" >&6; }
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16163 $as_echo_n "checking whether to build static libraries... " >&6; }
16164 # Make sure either enable_shared or enable_static is yes.
16165 test "$enable_shared" = yes || enable_static=yes
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16167 $as_echo "$enable_static" >&6; }
16174 ac_cpp='$CPP $CPPFLAGS'
16175 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16176 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16177 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16183 ac_cpp='$CXXCPP $CPPFLAGS'
16184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16188 archive_cmds_need_lc_CXX=no
16189 allow_undefined_flag_CXX=
16190 always_export_symbols_CXX=no
16191 archive_expsym_cmds_CXX=
16192 compiler_needs_object_CXX=no
16193 export_dynamic_flag_spec_CXX=
16194 hardcode_direct_CXX=no
16195 hardcode_direct_absolute_CXX=no
16196 hardcode_libdir_flag_spec_CXX=
16197 hardcode_libdir_flag_spec_ld_CXX=
16198 hardcode_libdir_separator_CXX=
16199 hardcode_minus_L_CXX=no
16200 hardcode_shlibpath_var_CXX=unsupported
16201 hardcode_automatic_CXX=no
16202 inherit_rpath_CXX=no
16204 module_expsym_cmds_CXX=
16205 link_all_deplibs_CXX=unknown
16206 old_archive_cmds_CXX=$old_archive_cmds
16207 no_undefined_flag_CXX=
16208 whole_archive_flag_spec_CXX=
16209 enable_shared_with_static_runtimes_CXX=no
16211 # Source file extension for C++ test sources.
16214 # Object file extension for compiled C++ test sources.
16218 # No sense in running all these tests if we already determined that
16219 # the CXX compiler isn't working. Some variables (like enable_shared)
16220 # are currently assumed to apply to all compilers on this platform,
16221 # and will be corrupted by setting them based on a non-working compiler.
16222 if test "$_lt_caught_CXX_error" != yes; then
16223 # Code to be used in simple compile tests
16224 lt_simple_compile_test_code="int some_variable = 0;"
16226 # Code to be used in simple link tests
16227 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
16229 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16236 # If no C compiler was specified, use CC.
16239 # If no C compiler flags were specified, use CFLAGS.
16240 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16242 # Allow CC to be a program name with arguments.
16246 # save warnings/boilerplate of simple test code
16247 ac_outfile=conftest.$ac_objext
16248 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16249 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16250 _lt_compiler_boilerplate=`cat conftest.err`
16253 ac_outfile=conftest.$ac_objext
16254 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16255 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16256 _lt_linker_boilerplate=`cat conftest.err`
16260 # Allow CC to be a program name with arguments.
16265 lt_save_with_gnu_ld=$with_gnu_ld
16266 lt_save_path_LD=$lt_cv_path_LD
16267 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
16268 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
16270 $as_unset lt_cv_prog_gnu_ld
16272 if test -n "${lt_cv_path_LDCXX+set}"; then
16273 lt_cv_path_LD=$lt_cv_path_LDCXX
16275 $as_unset lt_cv_path_LD
16277 test -z "${LDCXX+set}" || LD=$LDCXX
16281 for cc_temp in $compiler""; do
16283 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16284 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16289 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16292 if test -n "$compiler"; then
16293 # We don't want -fno-exception when compiling C++ code, so set the
16294 # no_builtin_flag separately
16295 if test "$GXX" = yes; then
16296 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
16298 lt_prog_compiler_no_builtin_flag_CXX=
16301 if test "$GXX" = yes; then
16302 # Set up default GNU C++ configuration
16306 # Check whether --with-gnu-ld was given.
16307 if test "${with_gnu_ld+set}" = set; then :
16308 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16314 if test "$GCC" = yes; then
16315 # Check if gcc -print-prog-name=ld gives a path.
16316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16317 $as_echo_n "checking for ld used by $CC... " >&6; }
16320 # gcc leaves a trailing carriage return which upsets mingw
16321 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16323 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16326 # Accept absolute paths.
16328 re_direlt='/[^/][^/]*/\.\./'
16329 # Canonicalize the pathname of ld
16330 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16331 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16332 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16334 test -z "$LD" && LD="$ac_prog"
16337 # If it fails, then pretend we aren't using GCC.
16341 # If it is relative, then search for the first ld in PATH.
16342 with_gnu_ld=unknown
16345 elif test "$with_gnu_ld" = yes; then
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16347 $as_echo_n "checking for GNU ld... " >&6; }
16349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16350 $as_echo_n "checking for non-GNU ld... " >&6; }
16352 if test "${lt_cv_path_LD+set}" = set; then :
16353 $as_echo_n "(cached) " >&6
16355 if test -z "$LD"; then
16356 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16357 for ac_dir in $PATH; do
16359 test -z "$ac_dir" && ac_dir=.
16360 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16361 lt_cv_path_LD="$ac_dir/$ac_prog"
16362 # Check to see if the program is GNU ld. I'd rather use --version,
16363 # but apparently some variants of GNU ld only accept -v.
16364 # Break only if it was the GNU/non-GNU ld that we prefer.
16365 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16366 *GNU* | *'with BFD'*)
16367 test "$with_gnu_ld" != no && break
16370 test "$with_gnu_ld" != yes && break
16377 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16381 LD="$lt_cv_path_LD"
16382 if test -n "$LD"; then
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16384 $as_echo "$LD" >&6; }
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16387 $as_echo "no" >&6; }
16389 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16391 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16392 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
16393 $as_echo_n "(cached) " >&6
16395 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16396 case `$LD -v 2>&1 </dev/null` in
16397 *GNU* | *'with BFD'*)
16398 lt_cv_prog_gnu_ld=yes
16401 lt_cv_prog_gnu_ld=no
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16406 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16407 with_gnu_ld=$lt_cv_prog_gnu_ld
16415 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16416 # archiving commands below assume that GNU ld is being used.
16417 if test "$with_gnu_ld" = yes; then
16418 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16419 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'
16421 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16422 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16424 # If archive_cmds runs LD, not CC, wlarc should be empty
16425 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16426 # investigate it a little bit more. (MM)
16429 # ancient GNU ld didn't support --whole-archive et. al.
16430 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16431 $GREP 'no-whole-archive' > /dev/null; then
16432 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16434 whole_archive_flag_spec_CXX=
16440 # A generic and very simple default shared library creation
16441 # command for GNU C++ for the case where it uses the native
16442 # linker, instead of GNU ld. If possible, this setting should
16443 # overridden to take advantage of the native linker features on
16444 # the platform it is being used on.
16445 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16448 # Commands to make compiler produce verbose output that lists
16449 # what "hidden" libraries, object files and flags are used when
16450 # linking a shared library.
16451 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16459 # PORTME: fill in a description of your system's C++ link characteristics
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16461 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16465 # FIXME: insert proper C++ library support
16469 if test "$host_cpu" = ia64; then
16470 # On IA64, the linker does run time linking by default, so we don't
16471 # have to do anything special.
16472 aix_use_runtimelinking=no
16473 exp_sym_flag='-Bexport'
16476 aix_use_runtimelinking=no
16478 # Test if we are trying to use run time linking or normal
16479 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16480 # need to do runtime linking.
16481 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16482 for ld_flag in $LDFLAGS; do
16485 aix_use_runtimelinking=yes
16493 exp_sym_flag='-bexport'
16494 no_entry_flag='-bnoentry'
16497 # When large executables or shared objects are built, AIX ld can
16498 # have problems creating the table of contents. If linking a library
16499 # or program results in "error TOC overflow" add -mminimal-toc to
16500 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16501 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16503 archive_cmds_CXX=''
16504 hardcode_direct_CXX=yes
16505 hardcode_direct_absolute_CXX=yes
16506 hardcode_libdir_separator_CXX=':'
16507 link_all_deplibs_CXX=yes
16508 file_list_spec_CXX='${wl}-f,'
16510 if test "$GXX" = yes; then
16511 case $host_os in aix4.[012]|aix4.[012].*)
16512 # We only want to do this on AIX 4.2 and lower, the check
16513 # below for broken collect2 doesn't work under 4.3+
16514 collect2name=`${CC} -print-prog-name=collect2`
16515 if test -f "$collect2name" &&
16516 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16518 # We have reworked collect2
16521 # We have old collect2
16522 hardcode_direct_CXX=unsupported
16523 # It fails to find uninstalled libraries when the uninstalled
16524 # path is not listed in the libpath. Setting hardcode_minus_L
16525 # to unsupported forces relinking
16526 hardcode_minus_L_CXX=yes
16527 hardcode_libdir_flag_spec_CXX='-L$libdir'
16528 hardcode_libdir_separator_CXX=
16531 shared_flag='-shared'
16532 if test "$aix_use_runtimelinking" = yes; then
16533 shared_flag="$shared_flag "'${wl}-G'
16537 if test "$host_cpu" = ia64; then
16538 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16539 # chokes on -Wl,-G. The following line is correct:
16542 if test "$aix_use_runtimelinking" = yes; then
16543 shared_flag='${wl}-G'
16545 shared_flag='${wl}-bM:SRE'
16550 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16551 # It seems that -bexpall does not export symbols beginning with
16552 # underscore (_), so it is better to generate a list of symbols to
16554 always_export_symbols_CXX=yes
16555 if test "$aix_use_runtimelinking" = yes; then
16556 # Warning - without using the other runtime loading flags (-brtl),
16557 # -berok will link without error, but may produce a broken library.
16558 allow_undefined_flag_CXX='-berok'
16559 # Determine the default libpath from the value encoded in an empty
16561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16562 /* end confdefs.h. */
16572 if ac_fn_cxx_try_link "$LINENO"; then :
16574 lt_aix_libpath_sed='
16575 /Import File Strings/,/^$/ {
16581 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16582 # Check for a 64-bit object if we didn't find anything.
16583 if test -z "$aix_libpath"; then
16584 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16587 rm -f core conftest.err conftest.$ac_objext \
16588 conftest$ac_exeext conftest.$ac_ext
16589 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16591 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16593 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"
16595 if test "$host_cpu" = ia64; then
16596 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16597 allow_undefined_flag_CXX="-z nodefs"
16598 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"
16600 # Determine the default libpath from the value encoded in an
16601 # empty executable.
16602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603 /* end confdefs.h. */
16613 if ac_fn_cxx_try_link "$LINENO"; then :
16615 lt_aix_libpath_sed='
16616 /Import File Strings/,/^$/ {
16622 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16623 # Check for a 64-bit object if we didn't find anything.
16624 if test -z "$aix_libpath"; then
16625 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16628 rm -f core conftest.err conftest.$ac_objext \
16629 conftest$ac_exeext conftest.$ac_ext
16630 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16632 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16633 # Warning - without using the other run time loading flags,
16634 # -berok will link without error, but may produce a broken library.
16635 no_undefined_flag_CXX=' ${wl}-bernotok'
16636 allow_undefined_flag_CXX=' ${wl}-berok'
16637 # Exported symbols can be pulled into shared objects from archives
16638 whole_archive_flag_spec_CXX='$convenience'
16639 archive_cmds_need_lc_CXX=yes
16640 # This is similar to how AIX traditionally builds its shared
16642 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'
16648 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16649 allow_undefined_flag_CXX=unsupported
16650 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16651 # support --undefined. This deserves some investigation. FIXME
16652 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16659 case $cc_basename in
16661 # FIXME: insert proper C++ library support
16667 cygwin* | mingw* | pw32* | cegcc*)
16668 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16669 # as there is no search path for DLLs.
16670 hardcode_libdir_flag_spec_CXX='-L$libdir'
16671 allow_undefined_flag_CXX=unsupported
16672 always_export_symbols_CXX=no
16673 enable_shared_with_static_runtimes_CXX=yes
16675 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16676 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'
16677 # If the export-symbols file already is a .def file (1st line
16678 # is EXPORTS), use it as is; otherwise, prepend...
16679 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16680 cp $export_symbols $output_objdir/$soname.def;
16682 echo EXPORTS > $output_objdir/$soname.def;
16683 cat $export_symbols >> $output_objdir/$soname.def;
16685 $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'
16690 darwin* | rhapsody*)
16693 archive_cmds_need_lc_CXX=no
16694 hardcode_direct_CXX=no
16695 hardcode_automatic_CXX=yes
16696 hardcode_shlibpath_var_CXX=unsupported
16697 whole_archive_flag_spec_CXX=''
16698 link_all_deplibs_CXX=yes
16699 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16700 case $cc_basename in
16701 ifort*) _lt_dar_can_shared=yes ;;
16702 *) _lt_dar_can_shared=$GCC ;;
16704 if test "$_lt_dar_can_shared" = "yes"; then
16705 output_verbose_link_cmd=echo
16706 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}"
16707 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16708 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}"
16709 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}"
16710 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16711 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}"
16712 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}"
16722 case $cc_basename in
16724 # FIXME: insert proper C++ library support
16728 # Green Hills C++ Compiler
16729 # FIXME: insert proper C++ library support
16733 # FIXME: insert proper C++ library support
16740 # C++ shared libraries reported to be fairly broken before
16746 archive_cmds_need_lc_CXX=no
16749 freebsd* | dragonfly*)
16750 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16759 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16760 hardcode_libdir_separator_CXX=:
16761 export_dynamic_flag_spec_CXX='${wl}-E'
16762 hardcode_direct_CXX=yes
16763 hardcode_minus_L_CXX=yes # Not in the search PATH,
16764 # but as the default
16765 # location of the library.
16767 case $cc_basename in
16769 # FIXME: insert proper C++ library support
16773 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'
16774 # Commands to make compiler produce verbose output that lists
16775 # what "hidden" libraries, object files and flags are used when
16776 # linking a shared library.
16778 # There doesn't appear to be a way to prevent this compiler from
16779 # explicitly linking system object files so we need to strip them
16780 # from the output so that they don't get included in the library
16782 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'
16785 if test "$GXX" = yes; then
16786 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'
16788 # FIXME: insert proper C++ library support
16796 if test $with_gnu_ld = no; then
16797 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16798 hardcode_libdir_separator_CXX=:
16804 export_dynamic_flag_spec_CXX='${wl}-E'
16810 hardcode_direct_CXX=no
16811 hardcode_shlibpath_var_CXX=no
16814 hardcode_direct_CXX=yes
16815 hardcode_direct_absolute_CXX=yes
16816 hardcode_minus_L_CXX=yes # Not in the search PATH,
16817 # but as the default
16818 # location of the library.
16822 case $cc_basename in
16824 # FIXME: insert proper C++ library support
16830 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16833 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16836 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16839 # Commands to make compiler produce verbose output that lists
16840 # what "hidden" libraries, object files and flags are used when
16841 # linking a shared library.
16843 # There doesn't appear to be a way to prevent this compiler from
16844 # explicitly linking system object files so we need to strip them
16845 # from the output so that they don't get included in the library
16847 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'
16850 if test "$GXX" = yes; then
16851 if test $with_gnu_ld = no; then
16854 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16857 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16860 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'
16865 # FIXME: insert proper C++ library support
16873 hardcode_direct_CXX=no
16874 hardcode_shlibpath_var_CXX=no
16875 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16876 export_dynamic_flag_spec_CXX='${wl}-E'
16877 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16878 # Instead, shared libraries are loaded at an image base (0x10000000 by
16879 # default) and relocated if they conflict, which is a slow very memory
16880 # consuming and fragmenting process. To avoid this, we pick a random,
16881 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16882 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16883 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'
16884 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'
16887 case $cc_basename in
16890 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'
16892 # Archives containing C++ object files must be created using
16893 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16894 # necessary to make sure instantiated templates are included
16896 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16899 if test "$GXX" = yes; then
16900 if test "$with_gnu_ld" = no; then
16901 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'
16903 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'
16906 link_all_deplibs_CXX=yes
16909 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16910 hardcode_libdir_separator_CXX=:
16911 inherit_rpath_CXX=yes
16914 linux* | k*bsd*-gnu)
16915 case $cc_basename in
16917 # Kuck and Associates, Inc. (KAI) C++ Compiler
16919 # KCC will only create a shared library if the output file
16920 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16921 # to its proper name (with version) after linking.
16922 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'
16923 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'
16924 # Commands to make compiler produce verbose output that lists
16925 # what "hidden" libraries, object files and flags are used when
16926 # linking a shared library.
16928 # There doesn't appear to be a way to prevent this compiler from
16929 # explicitly linking system object files so we need to strip them
16930 # from the output so that they don't get included in the library
16932 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'
16934 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16935 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16937 # Archives containing C++ object files must be created using
16938 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16939 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16944 # version 8.0 and above of icpc choke on multiply defined symbols
16945 # if we add $predep_objects and $postdep_objects, however 7.1 and
16946 # earlier do not add the objects themselves.
16947 case `$CC -V 2>&1` in
16949 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16950 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'
16952 *) # Version 8.0 or newer
16955 ia64*) tmp_idyn=' -i_dynamic';;
16957 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16958 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'
16961 archive_cmds_need_lc_CXX=no
16962 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16963 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16964 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16967 # Portland Group C++ compiler
16969 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16970 prelink_cmds_CXX='tpldir=Template.dir~
16972 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16973 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16974 old_archive_cmds_CXX='tpldir=Template.dir~
16976 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16977 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16979 archive_cmds_CXX='tpldir=Template.dir~
16981 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16982 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16983 archive_expsym_cmds_CXX='tpldir=Template.dir~
16985 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16986 $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'
16988 *) # Version 6 will use weak symbols
16989 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16990 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'
16994 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16995 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16996 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'
17000 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17001 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'
17003 runpath_var=LD_RUN_PATH
17004 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17005 hardcode_libdir_separator_CXX=:
17007 # Commands to make compiler produce verbose output that lists
17008 # what "hidden" libraries, object files and flags are used when
17009 # linking a shared library.
17011 # There doesn't appear to be a way to prevent this compiler from
17012 # explicitly linking system object files so we need to strip them
17013 # from the output so that they don't get included in the library
17015 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'
17018 # IBM XL 8.0 on PPC, with GNU ld
17019 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17020 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17021 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17022 if test "x$supports_anon_versioning" = xyes; then
17023 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
17024 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17025 echo "local: *; };" >> $output_objdir/$libname.ver~
17026 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17030 case `$CC -V 2>&1 | sed 5q` in
17033 no_undefined_flag_CXX=' -zdefs'
17034 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17035 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'
17036 hardcode_libdir_flag_spec_CXX='-R$libdir'
17037 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'
17038 compiler_needs_object_CXX=yes
17040 # Not sure whether something based on
17041 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
17043 output_verbose_link_cmd='echo'
17045 # Archives containing C++ object files must be created using
17046 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17047 # necessary to make sure instantiated templates are included
17049 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17057 # FIXME: insert proper C++ library support
17062 # FIXME: insert proper C++ library support
17067 case $cc_basename in
17069 # FIXME: insert proper C++ library support
17073 # FIXME: insert proper C++ library support
17080 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17081 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
17083 hardcode_libdir_flag_spec_CXX='-R$libdir'
17084 hardcode_direct_CXX=yes
17085 hardcode_shlibpath_var_CXX=no
17087 # Workaround some broken pre-1.5 toolchains
17088 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
17096 # C++ shared libraries are fairly broken
17101 if test -f /usr/libexec/ld.so; then
17102 hardcode_direct_CXX=yes
17103 hardcode_shlibpath_var_CXX=no
17104 hardcode_direct_absolute_CXX=yes
17105 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17106 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17107 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17108 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
17109 export_dynamic_flag_spec_CXX='${wl}-E'
17110 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17112 output_verbose_link_cmd=echo
17118 osf3* | osf4* | osf5*)
17119 case $cc_basename in
17121 # Kuck and Associates, Inc. (KAI) C++ Compiler
17123 # KCC will only create a shared library if the output file
17124 # ends with ".so" (or ".sl" for HP-UX), so rename the library
17125 # to its proper name (with version) after linking.
17126 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'
17128 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
17129 hardcode_libdir_separator_CXX=:
17131 # Archives containing C++ object files must be created using
17132 # the KAI C++ compiler.
17134 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
17135 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
17139 # Rational C++ 2.4.1
17140 # FIXME: insert proper C++ library support
17146 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17147 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'
17148 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17151 allow_undefined_flag_CXX=' -expect_unresolved \*'
17152 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'
17153 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
17154 echo "-hidden">> $lib.exp~
17155 $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~
17157 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
17161 hardcode_libdir_separator_CXX=:
17163 # Commands to make compiler produce verbose output that lists
17164 # what "hidden" libraries, object files and flags are used when
17165 # linking a shared library.
17167 # There doesn't appear to be a way to prevent this compiler from
17168 # explicitly linking system object files so we need to strip them
17169 # from the output so that they don't get included in the library
17171 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'
17174 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17175 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
17178 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'
17181 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'
17185 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17186 hardcode_libdir_separator_CXX=:
17188 # Commands to make compiler produce verbose output that lists
17189 # what "hidden" libraries, object files and flags are used when
17190 # linking a shared library.
17191 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17194 # FIXME: insert proper C++ library support
17202 # FIXME: insert proper C++ library support
17207 case $cc_basename in
17210 # FIXME: insert proper C++ library support
17215 # FIXME: insert proper C++ library support
17219 # FIXME: insert proper C++ library support
17226 case $cc_basename in
17228 # Sun C++ 4.2, 5.x and Centerline C++
17229 archive_cmds_need_lc_CXX=yes
17230 no_undefined_flag_CXX=' -zdefs'
17231 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
17232 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17233 $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'
17235 hardcode_libdir_flag_spec_CXX='-R$libdir'
17236 hardcode_shlibpath_var_CXX=no
17238 solaris2.[0-5] | solaris2.[0-5].*) ;;
17240 # The compiler driver will combine and reorder linker options,
17241 # but understands `-z linker_flag'.
17242 # Supported since Solaris 2.6 (maybe 2.5.1?)
17243 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
17246 link_all_deplibs_CXX=yes
17248 output_verbose_link_cmd='echo'
17250 # Archives containing C++ object files must be created using
17251 # "CC -xar", where "CC" is the Sun C++ compiler. This is
17252 # necessary to make sure instantiated templates are included
17254 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
17257 # Green Hills C++ Compiler
17258 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17260 # The C++ compiler must be used to create the archive.
17261 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
17264 # GNU C++ compiler with Solaris linker
17265 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
17266 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
17267 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
17268 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17269 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17270 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17272 # Commands to make compiler produce verbose output that lists
17273 # what "hidden" libraries, object files and flags are used when
17274 # linking a shared library.
17275 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17277 # g++ 2.7 appears to require `-G' NOT `-shared' on this
17279 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
17280 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17281 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
17283 # Commands to make compiler produce verbose output that lists
17284 # what "hidden" libraries, object files and flags are used when
17285 # linking a shared library.
17286 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
17289 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
17291 solaris2.[0-5] | solaris2.[0-5].*) ;;
17293 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17301 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17302 no_undefined_flag_CXX='${wl}-z,text'
17303 archive_cmds_need_lc_CXX=no
17304 hardcode_shlibpath_var_CXX=no
17305 runpath_var='LD_RUN_PATH'
17307 case $cc_basename in
17309 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17310 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17313 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17314 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17319 sysv5* | sco3.2v5* | sco5v6*)
17320 # Note: We can NOT use -z defs as we might desire, because we do not
17321 # link with -lc, and that would cause any symbols used from libc to
17322 # always be unresolved, which means just about no library would
17323 # ever link correctly. If we're not using GNU ld we use -z text
17324 # though, which does catch some bad symbols but isn't as heavy-handed
17326 no_undefined_flag_CXX='${wl}-z,text'
17327 allow_undefined_flag_CXX='${wl}-z,nodefs'
17328 archive_cmds_need_lc_CXX=no
17329 hardcode_shlibpath_var_CXX=no
17330 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17331 hardcode_libdir_separator_CXX=':'
17332 link_all_deplibs_CXX=yes
17333 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17334 runpath_var='LD_RUN_PATH'
17336 case $cc_basename in
17338 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17339 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17342 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17343 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17349 case $cc_basename in
17351 # NonStop-UX NCC 3.20
17352 # FIXME: insert proper C++ library support
17356 # FIXME: insert proper C++ library support
17363 # FIXME: insert proper C++ library support
17368 # FIXME: insert proper C++ library support
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17374 $as_echo "$ld_shlibs_CXX" >&6; }
17375 test "$ld_shlibs_CXX" = no && can_build_shared=no
17381 ## There is no encapsulation within the following macros, do not change
17382 ## the running order or otherwise move them around unless you know exactly
17383 ## what you are doing...
17384 # Dependencies to place before and after the object being linked:
17385 predep_objects_CXX=
17386 postdep_objects_CXX=
17389 compiler_lib_search_path_CXX=
17391 cat > conftest.$ac_ext <<_LT_EOF
17395 Foo (void) { a = 0; }
17401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17402 (eval $ac_compile) 2>&5
17404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17405 test $ac_status = 0; }; then
17406 # Parse the compiler output and extract the necessary
17407 # objects, libraries and library flags.
17409 # Sentinel used to keep track of whether or not we are before
17410 # the conftest object file.
17411 pre_test_object_deps_done=no
17413 for p in `eval "$output_verbose_link_cmd"`; do
17417 # Some compilers place space between "-{L,R}" and the path.
17418 # Remove the space.
17419 if test $p = "-L" ||
17420 test $p = "-R"; then
17427 if test "$pre_test_object_deps_done" = no; then
17430 # Internal compiler library paths should come after those
17431 # provided the user. The postdeps already come after the
17432 # user supplied libs so there is no need to process them.
17433 if test -z "$compiler_lib_search_path_CXX"; then
17434 compiler_lib_search_path_CXX="${prev}${p}"
17436 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17439 # The "-l" case would never come before the object being
17440 # linked, so don't bother handling this case.
17443 if test -z "$postdeps_CXX"; then
17444 postdeps_CXX="${prev}${p}"
17446 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17452 # This assumes that the test object file only shows up
17453 # once in the compiler output.
17454 if test "$p" = "conftest.$objext"; then
17455 pre_test_object_deps_done=yes
17459 if test "$pre_test_object_deps_done" = no; then
17460 if test -z "$predep_objects_CXX"; then
17461 predep_objects_CXX="$p"
17463 predep_objects_CXX="$predep_objects_CXX $p"
17466 if test -z "$postdep_objects_CXX"; then
17467 postdep_objects_CXX="$p"
17469 postdep_objects_CXX="$postdep_objects_CXX $p"
17474 *) ;; # Ignore the rest.
17482 echo "libtool.m4: error: problem compiling CXX test program"
17485 $RM -f confest.$objext
17487 # PORTME: override above test on systems where it is broken
17490 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17491 # hack all around it, let's just trust "g++" to DTRT.
17492 predep_objects_CXX=
17493 postdep_objects_CXX=
17498 case `$CC -V 2>&1 | sed 5q` in
17502 # The more standards-conforming stlport4 library is
17503 # incompatible with the Cstd library. Avoid specifying
17504 # it if it's in CXXFLAGS. Ignore libCrun as
17505 # -library=stlport4 depends on it.
17506 case " $CXX $CXXFLAGS " in
17507 *" -library=stlport4 "*)
17508 solaris_use_stlport4=yes
17512 if test "$solaris_use_stlport4" != yes; then
17513 postdeps_CXX='-library=Cstd -library=Crun'
17520 case $cc_basename in
17522 # The more standards-conforming stlport4 library is
17523 # incompatible with the Cstd library. Avoid specifying
17524 # it if it's in CXXFLAGS. Ignore libCrun as
17525 # -library=stlport4 depends on it.
17526 case " $CXX $CXXFLAGS " in
17527 *" -library=stlport4 "*)
17528 solaris_use_stlport4=yes
17532 # Adding this requires a known-good setup of shared libraries for
17533 # Sun compiler versions before 5.6, else PIC objects from an old
17534 # archive will be linked into the output, leading to subtle bugs.
17535 if test "$solaris_use_stlport4" != yes; then
17536 postdeps_CXX='-library=Cstd -library=Crun'
17544 case " $postdeps_CXX " in
17545 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
17547 compiler_lib_search_dirs_CXX=
17548 if test -n "${compiler_lib_search_path_CXX}"; then
17549 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17582 lt_prog_compiler_wl_CXX=
17583 lt_prog_compiler_pic_CXX=
17584 lt_prog_compiler_static_CXX=
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17587 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17589 # C++ specific cases for pic, static, wl, etc.
17590 if test "$GXX" = yes; then
17591 lt_prog_compiler_wl_CXX='-Wl,'
17592 lt_prog_compiler_static_CXX='-static'
17596 # All AIX code is PIC.
17597 if test "$host_cpu" = ia64; then
17598 # AIX 5 now supports IA64 processor
17599 lt_prog_compiler_static_CXX='-Bstatic'
17606 # see comment about AmigaOS4 .so support
17607 lt_prog_compiler_pic_CXX='-fPIC'
17610 # FIXME: we need at least 68020 code to build shared libraries, but
17611 # adding the `-m68020' flag to GCC prevents building anything better,
17613 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17618 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17619 # PIC is the default for these OSes.
17621 mingw* | cygwin* | os2* | pw32* | cegcc*)
17622 # This hack is so that the source file can tell whether it is being
17623 # built for inclusion in a dll (and should export symbols for example).
17624 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17625 # (--disable-auto-import) libraries
17626 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17628 darwin* | rhapsody*)
17629 # PIC is the default on this platform
17630 # Common symbols not allowed in MH_DYLIB files
17631 lt_prog_compiler_pic_CXX='-fno-common'
17634 # DJGPP does not support shared libraries at all
17635 lt_prog_compiler_pic_CXX=
17638 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17639 # Instead, we relocate shared libraries at runtime.
17642 if test -d /usr/nec; then
17643 lt_prog_compiler_pic_CXX=-Kconform_pic
17647 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17648 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17649 # sets the default TLS model and affects inlining.
17654 lt_prog_compiler_pic_CXX='-fPIC'
17659 # QNX uses GNU C++, but need to define -shared option too, otherwise
17660 # it will coredump.
17661 lt_prog_compiler_pic_CXX='-fPIC -shared'
17664 lt_prog_compiler_pic_CXX='-fPIC'
17670 # All AIX code is PIC.
17671 if test "$host_cpu" = ia64; then
17672 # AIX 5 now supports IA64 processor
17673 lt_prog_compiler_static_CXX='-Bstatic'
17675 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17679 case $cc_basename in
17681 # Green Hills C++ Compiler
17682 # _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"
17687 case $cc_basename in
17689 lt_prog_compiler_pic_CXX='-KPIC'
17692 # Green Hills C++ Compiler
17693 lt_prog_compiler_pic_CXX='-pic'
17699 freebsd* | dragonfly*)
17700 # FreeBSD uses GNU C++
17702 hpux9* | hpux10* | hpux11*)
17703 case $cc_basename in
17705 lt_prog_compiler_wl_CXX='-Wl,'
17706 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17707 if test "$host_cpu" != ia64; then
17708 lt_prog_compiler_pic_CXX='+Z'
17712 lt_prog_compiler_wl_CXX='-Wl,'
17713 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17719 lt_prog_compiler_pic_CXX='+Z'
17728 # This is c89, which is MS Visual C++ (no shared libs)
17729 # Anyone wants to do a port?
17731 irix5* | irix6* | nonstopux*)
17732 case $cc_basename in
17734 lt_prog_compiler_wl_CXX='-Wl,'
17735 lt_prog_compiler_static_CXX='-non_shared'
17736 # CC pic flag -KPIC is the default.
17742 linux* | k*bsd*-gnu)
17743 case $cc_basename in
17746 lt_prog_compiler_wl_CXX='--backend -Wl,'
17747 lt_prog_compiler_pic_CXX='-fPIC'
17750 # old Intel C++ for x86_64 which still supported -KPIC.
17751 lt_prog_compiler_wl_CXX='-Wl,'
17752 lt_prog_compiler_pic_CXX='-KPIC'
17753 lt_prog_compiler_static_CXX='-static'
17756 # Intel C++, used to be incompatible with GCC.
17757 # ICC 10 doesn't accept -KPIC any more.
17758 lt_prog_compiler_wl_CXX='-Wl,'
17759 lt_prog_compiler_pic_CXX='-fPIC'
17760 lt_prog_compiler_static_CXX='-static'
17763 # Portland Group C++ compiler
17764 lt_prog_compiler_wl_CXX='-Wl,'
17765 lt_prog_compiler_pic_CXX='-fpic'
17766 lt_prog_compiler_static_CXX='-Bstatic'
17770 # Make sure the PIC flag is empty. It appears that all Alpha
17771 # Linux and Compaq Tru64 Unix objects are PIC.
17772 lt_prog_compiler_pic_CXX=
17773 lt_prog_compiler_static_CXX='-non_shared'
17776 # IBM XL 8.0 on PPC
17777 lt_prog_compiler_wl_CXX='-Wl,'
17778 lt_prog_compiler_pic_CXX='-qpic'
17779 lt_prog_compiler_static_CXX='-qstaticlink'
17782 case `$CC -V 2>&1 | sed 5q` in
17785 lt_prog_compiler_pic_CXX='-KPIC'
17786 lt_prog_compiler_static_CXX='-Bstatic'
17787 lt_prog_compiler_wl_CXX='-Qoption ld '
17798 case $cc_basename in
17800 lt_prog_compiler_pic_CXX='-W c,exportall'
17809 # QNX uses GNU C++, but need to define -shared option too, otherwise
17810 # it will coredump.
17811 lt_prog_compiler_pic_CXX='-fPIC -shared'
17813 osf3* | osf4* | osf5*)
17814 case $cc_basename in
17816 lt_prog_compiler_wl_CXX='--backend -Wl,'
17819 # Rational C++ 2.4.1
17820 lt_prog_compiler_pic_CXX='-pic'
17823 # Digital/Compaq C++
17824 lt_prog_compiler_wl_CXX='-Wl,'
17825 # Make sure the PIC flag is empty. It appears that all Alpha
17826 # Linux and Compaq Tru64 Unix objects are PIC.
17827 lt_prog_compiler_pic_CXX=
17828 lt_prog_compiler_static_CXX='-non_shared'
17837 case $cc_basename in
17839 # Sun C++ 4.2, 5.x and Centerline C++
17840 lt_prog_compiler_pic_CXX='-KPIC'
17841 lt_prog_compiler_static_CXX='-Bstatic'
17842 lt_prog_compiler_wl_CXX='-Qoption ld '
17845 # Green Hills C++ Compiler
17846 lt_prog_compiler_pic_CXX='-PIC'
17853 case $cc_basename in
17856 lt_prog_compiler_pic_CXX='-pic'
17857 lt_prog_compiler_static_CXX='-Bstatic'
17861 lt_prog_compiler_pic_CXX='-pic'
17867 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17868 case $cc_basename in
17870 lt_prog_compiler_wl_CXX='-Wl,'
17871 lt_prog_compiler_pic_CXX='-KPIC'
17872 lt_prog_compiler_static_CXX='-Bstatic'
17877 case $cc_basename in
17879 # NonStop-UX NCC 3.20
17880 lt_prog_compiler_pic_CXX='-KPIC'
17889 lt_prog_compiler_can_build_shared_CXX=no
17895 # For platforms which do not support PIC, -DPIC is meaningless:
17897 lt_prog_compiler_pic_CXX=
17900 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
17904 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17909 # Check to make sure the PIC flag actually works.
17911 if test -n "$lt_prog_compiler_pic_CXX"; then
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17913 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17914 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
17915 $as_echo_n "(cached) " >&6
17917 lt_cv_prog_compiler_pic_works_CXX=no
17918 ac_outfile=conftest.$ac_objext
17919 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17920 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17921 # Insert the option either (1) after the last *FLAGS variable, or
17922 # (2) before a word containing "conftest.", or (3) at the end.
17923 # Note that $ac_compile itself does not contain backslashes and begins
17924 # with a dollar sign (not a hyphen), so the echo should work correctly.
17925 # The option is referenced via a variable to avoid confusing sed.
17926 lt_compile=`echo "$ac_compile" | $SED \
17927 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17928 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17929 -e 's:$: $lt_compiler_flag:'`
17930 (eval echo "\"\$as_me:17930: $lt_compile\"" >&5)
17931 (eval "$lt_compile" 2>conftest.err)
17933 cat conftest.err >&5
17934 echo "$as_me:17934: \$? = $ac_status" >&5
17935 if (exit $ac_status) && test -s "$ac_outfile"; then
17936 # The compiler can only warn and ignore the option if not recognized
17937 # So say no if there are warnings other than the usual output.
17938 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17939 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17940 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17941 lt_cv_prog_compiler_pic_works_CXX=yes
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17948 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17950 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17951 case $lt_prog_compiler_pic_CXX in
17953 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17956 lt_prog_compiler_pic_CXX=
17957 lt_prog_compiler_can_build_shared_CXX=no
17965 # Check to make sure the static flag actually works.
17967 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17969 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17970 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
17971 $as_echo_n "(cached) " >&6
17973 lt_cv_prog_compiler_static_works_CXX=no
17974 save_LDFLAGS="$LDFLAGS"
17975 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17976 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17977 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17978 # The linker can only warn and ignore the option if not recognized
17979 # So say no if there are warnings
17980 if test -s conftest.err; then
17981 # Append any errors to the config.log.
17982 cat conftest.err 1>&5
17983 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17984 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17985 if diff conftest.exp conftest.er2 >/dev/null; then
17986 lt_cv_prog_compiler_static_works_CXX=yes
17989 lt_cv_prog_compiler_static_works_CXX=yes
17993 LDFLAGS="$save_LDFLAGS"
17996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17997 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17999 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
18002 lt_prog_compiler_static_CXX=
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18009 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18010 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
18011 $as_echo_n "(cached) " >&6
18013 lt_cv_prog_compiler_c_o_CXX=no
18014 $RM -r conftest 2>/dev/null
18018 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18020 lt_compiler_flag="-o out/conftest2.$ac_objext"
18021 # Insert the option either (1) after the last *FLAGS variable, or
18022 # (2) before a word containing "conftest.", or (3) at the end.
18023 # Note that $ac_compile itself does not contain backslashes and begins
18024 # with a dollar sign (not a hyphen), so the echo should work correctly.
18025 lt_compile=`echo "$ac_compile" | $SED \
18026 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18027 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18028 -e 's:$: $lt_compiler_flag:'`
18029 (eval echo "\"\$as_me:18029: $lt_compile\"" >&5)
18030 (eval "$lt_compile" 2>out/conftest.err)
18032 cat out/conftest.err >&5
18033 echo "$as_me:18033: \$? = $ac_status" >&5
18034 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18036 # The compiler can only warn and ignore the option if not recognized
18037 # So say no if there are warnings
18038 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18039 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18040 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18041 lt_cv_prog_compiler_c_o_CXX=yes
18046 # SGI C++ compiler will create directory out/ii_files/ for
18047 # template instantiation
18048 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18049 $RM out/* && rmdir out
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18056 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18061 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18062 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
18063 $as_echo_n "(cached) " >&6
18065 lt_cv_prog_compiler_c_o_CXX=no
18066 $RM -r conftest 2>/dev/null
18070 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18072 lt_compiler_flag="-o out/conftest2.$ac_objext"
18073 # Insert the option either (1) after the last *FLAGS variable, or
18074 # (2) before a word containing "conftest.", or (3) at the end.
18075 # Note that $ac_compile itself does not contain backslashes and begins
18076 # with a dollar sign (not a hyphen), so the echo should work correctly.
18077 lt_compile=`echo "$ac_compile" | $SED \
18078 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18080 -e 's:$: $lt_compiler_flag:'`
18081 (eval echo "\"\$as_me:18081: $lt_compile\"" >&5)
18082 (eval "$lt_compile" 2>out/conftest.err)
18084 cat out/conftest.err >&5
18085 echo "$as_me:18085: \$? = $ac_status" >&5
18086 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18088 # The compiler can only warn and ignore the option if not recognized
18089 # So say no if there are warnings
18090 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18091 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18092 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18093 lt_cv_prog_compiler_c_o_CXX=yes
18098 # SGI C++ compiler will create directory out/ii_files/ for
18099 # template instantiation
18100 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18101 $RM out/* && rmdir out
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
18108 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
18113 hard_links="nottested"
18114 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
18115 # do not overwrite the value of need_locks provided by the user
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18117 $as_echo_n "checking if we can lock with hard links... " >&6; }
18120 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18122 ln conftest.a conftest.b 2>&5 || hard_links=no
18123 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18125 $as_echo "$hard_links" >&6; }
18126 if test "$hard_links" = no; then
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18128 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18138 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18140 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18143 # If we're using GNU nm, then we don't want the "-C" option.
18144 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18145 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18146 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'
18148 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'
18152 export_symbols_cmds_CXX="$ltdll_cmds"
18154 cygwin* | mingw* | cegcc*)
18155 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'
18158 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18161 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18164 $as_echo "$ld_shlibs_CXX" >&6; }
18165 test "$ld_shlibs_CXX" = no && can_build_shared=no
18167 with_gnu_ld_CXX=$with_gnu_ld
18175 # Do we need to explicitly link libc?
18177 case "x$archive_cmds_need_lc_CXX" in
18179 # Assume -lc should be added
18180 archive_cmds_need_lc_CXX=yes
18182 if test "$enable_shared" = yes && test "$GCC" = yes; then
18183 case $archive_cmds_CXX in
18185 # FIXME: we may have to deal with multi-command sequences.
18188 # Test whether the compiler implicitly links with -lc since on some
18189 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18190 # to ld, don't add -lc before -lgcc.
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18192 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18194 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18196 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18197 (eval $ac_compile) 2>&5
18199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18200 test $ac_status = 0; } 2>conftest.err; then
18203 libobjs=conftest.$ac_objext
18205 wl=$lt_prog_compiler_wl_CXX
18206 pic_flag=$lt_prog_compiler_pic_CXX
18212 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
18213 allow_undefined_flag_CXX=
18214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18215 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18218 test $ac_status = 0; }
18220 archive_cmds_need_lc_CXX=no
18222 archive_cmds_need_lc_CXX=yes
18224 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
18226 cat conftest.err 1>&5
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
18230 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18301 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18303 library_names_spec=
18304 libname_spec='lib$name'
18308 postuninstall_cmds=
18312 shlibpath_overrides_runpath=unknown
18314 dynamic_linker="$host_os ld.so"
18315 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18316 need_lib_prefix=unknown
18317 hardcode_into_libs=no
18319 # when you set need_version to no, make sure it does not cause -set_version
18320 # flags to be left without arguments
18321 need_version=unknown
18326 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18327 shlibpath_var=LIBPATH
18329 # AIX 3 has no versioning support, so we append a major version to the name.
18330 soname_spec='${libname}${release}${shared_ext}$major'
18337 hardcode_into_libs=yes
18338 if test "$host_cpu" = ia64; then
18339 # AIX 5 supports IA64
18340 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18341 shlibpath_var=LD_LIBRARY_PATH
18343 # With GCC up to 2.95.x, collect2 would create an import file
18344 # for dependence libraries. The import file would start with
18345 # the line `#! .'. This would cause the generated library to
18346 # depend on `.', always an invalid library. This was fixed in
18347 # development snapshots of GCC prior to 3.0.
18349 aix4 | aix4.[01] | aix4.[01].*)
18350 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18352 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18355 can_build_shared=no
18359 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18360 # soname into executable. Probably we can add versioning support to
18361 # collect2, so additional links can be useful in future.
18362 if test "$aix_use_runtimelinking" = yes; then
18363 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18364 # instead of lib<name>.a to let people know that these are not
18365 # typical AIX shared libraries.
18366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18368 # We preserve .a as extension for shared libraries through AIX4.2
18369 # and later when we are not doing run time linking.
18370 library_names_spec='${libname}${release}.a $libname.a'
18371 soname_spec='${libname}${release}${shared_ext}$major'
18373 shlibpath_var=LIBPATH
18380 # Since July 2007 AmigaOS4 officially supports .so libraries.
18381 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18385 library_names_spec='$libname.ixlibrary $libname.a'
18386 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18387 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'
18393 library_names_spec='${libname}${shared_ext}'
18394 dynamic_linker="$host_os ld.so"
18395 shlibpath_var=LIBRARY_PATH
18401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18402 soname_spec='${libname}${release}${shared_ext}$major'
18403 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18404 shlibpath_var=LD_LIBRARY_PATH
18405 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18406 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18407 # the default ld.so.conf also contains /usr/contrib/lib and
18408 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18409 # libtool to hard-code these into programs
18412 cygwin* | mingw* | pw32* | cegcc*)
18413 version_type=windows
18418 case $GCC,$host_os in
18419 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18420 library_names_spec='$libname.dll.a'
18421 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18422 postinstall_cmds='base_file=`basename \${file}`~
18423 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18424 dldir=$destdir/`dirname \$dlpath`~
18425 test -d \$dldir || mkdir -p \$dldir~
18426 $install_prog $dir/$dlname \$dldir/$dlname~
18427 chmod a+x \$dldir/$dlname~
18428 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18429 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18431 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18432 dlpath=$dir/\$dldll~
18434 shlibpath_overrides_runpath=yes
18438 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18439 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18440 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18443 # MinGW DLLs use traditional 'lib' prefix
18444 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18445 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18446 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18447 # It is most probably a Windows format PATH printed by
18448 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18449 # path with ; separators, and with drive letters. We can handle the
18450 # drive letters (cygwin fileutils understands them), so leave them,
18451 # especially as we might pass files found there to a mingw objdump,
18452 # which wouldn't understand a cygwinified path. Ahh.
18453 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18455 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18459 # pw32 DLLs use 'pw' prefix rather than 'lib'
18460 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18466 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18469 dynamic_linker='Win32 ld.exe'
18470 # FIXME: first we should search . and the directory the executable is in
18474 darwin* | rhapsody*)
18475 dynamic_linker="$host_os dyld"
18476 version_type=darwin
18479 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18480 soname_spec='${libname}${release}${major}$shared_ext'
18481 shlibpath_overrides_runpath=yes
18482 shlibpath_var=DYLD_LIBRARY_PATH
18483 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18485 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18493 soname_spec='${libname}${release}${shared_ext}$major'
18494 shlibpath_var=LD_LIBRARY_PATH
18501 freebsd* | dragonfly*)
18502 # DragonFly does not have aout. When/if they implement a new
18503 # versioning mechanism, adjust this.
18504 if test -x /usr/bin/objformat; then
18505 objformat=`/usr/bin/objformat`
18508 freebsd[123]*) objformat=aout ;;
18509 *) objformat=elf ;;
18512 version_type=freebsd-$objformat
18513 case $version_type in
18515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18520 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18524 shlibpath_var=LD_LIBRARY_PATH
18527 shlibpath_overrides_runpath=yes
18529 freebsd3.[01]* | freebsdelf3.[01]*)
18530 shlibpath_overrides_runpath=yes
18531 hardcode_into_libs=yes
18533 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18534 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18535 shlibpath_overrides_runpath=no
18536 hardcode_into_libs=yes
18538 *) # from 4.6 on, and DragonFly
18539 shlibpath_overrides_runpath=yes
18540 hardcode_into_libs=yes
18549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18550 soname_spec='${libname}${release}${shared_ext}$major'
18551 shlibpath_var=LD_LIBRARY_PATH
18552 hardcode_into_libs=yes
18555 hpux9* | hpux10* | hpux11*)
18556 # Give a soname corresponding to the major version so that dld.sl refuses to
18557 # link against other versions.
18564 hardcode_into_libs=yes
18565 dynamic_linker="$host_os dld.so"
18566 shlibpath_var=LD_LIBRARY_PATH
18567 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18569 soname_spec='${libname}${release}${shared_ext}$major'
18570 if test "X$HPUX_IA64_MODE" = X32; then
18571 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18573 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18575 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18579 hardcode_into_libs=yes
18580 dynamic_linker="$host_os dld.sl"
18581 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18582 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18584 soname_spec='${libname}${release}${shared_ext}$major'
18585 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18586 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18590 dynamic_linker="$host_os dld.sl"
18591 shlibpath_var=SHLIB_PATH
18592 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18594 soname_spec='${libname}${release}${shared_ext}$major'
18597 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18598 postinstall_cmds='chmod 555 $lib'
18605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18606 soname_spec='${libname}${release}${shared_ext}$major'
18607 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18608 shlibpath_var=LD_LIBRARY_PATH
18609 shlibpath_overrides_runpath=no
18610 hardcode_into_libs=yes
18613 irix5* | irix6* | nonstopux*)
18615 nonstopux*) version_type=nonstopux ;;
18617 if test "$lt_cv_prog_gnu_ld" = yes; then
18625 soname_spec='${libname}${release}${shared_ext}$major'
18626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18628 irix5* | nonstopux*)
18629 libsuff= shlibsuff=
18632 case $LD in # libtool.m4 will add one of these switches to LD
18633 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18634 libsuff= shlibsuff= libmagic=32-bit;;
18635 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18636 libsuff=32 shlibsuff=N32 libmagic=N32;;
18637 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18638 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18639 *) libsuff= shlibsuff= libmagic=never-match;;
18643 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18644 shlibpath_overrides_runpath=no
18645 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18646 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18647 hardcode_into_libs=yes
18650 # No shared lib support for Linux oldld, aout, or coff.
18651 linux*oldld* | linux*aout* | linux*coff*)
18655 # This must be Linux ELF.
18656 linux* | k*bsd*-gnu)
18660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18661 soname_spec='${libname}${release}${shared_ext}$major'
18662 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18663 shlibpath_var=LD_LIBRARY_PATH
18664 shlibpath_overrides_runpath=no
18665 # Some binutils ld are patched to set DT_RUNPATH
18666 save_LDFLAGS=$LDFLAGS
18667 save_libdir=$libdir
18668 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18669 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18671 /* end confdefs.h. */
18681 if ac_fn_cxx_try_link "$LINENO"; then :
18682 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18683 shlibpath_overrides_runpath=yes
18686 rm -f core conftest.err conftest.$ac_objext \
18687 conftest$ac_exeext conftest.$ac_ext
18688 LDFLAGS=$save_LDFLAGS
18689 libdir=$save_libdir
18691 # This implies no fast_install, which is unacceptable.
18692 # Some rework will be needed to allow for fast_install
18693 # before this can be enabled.
18694 hardcode_into_libs=yes
18696 # Add ABI-specific directories to the system library path.
18697 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18699 # Append ld.so.conf contents to the search path
18700 if test -f /etc/ld.so.conf; then
18701 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' ' '`
18702 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18705 # We used to test for /lib/ld.so.1 and disable shared libraries on
18706 # powerpc, because MkLinux only supported shared libraries with the
18707 # GNU dynamic linker. Since this was broken with cross compilers,
18708 # most powerpc-linux boxes support dynamic linking these days and
18709 # people can always --disable-shared, the test was removed, and we
18710 # assume the GNU/Linux dynamic linker is in use.
18711 dynamic_linker='GNU/Linux ld.so'
18718 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18720 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18721 dynamic_linker='NetBSD (a.out) ld.so'
18723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18724 soname_spec='${libname}${release}${shared_ext}$major'
18725 dynamic_linker='NetBSD ld.elf_so'
18727 shlibpath_var=LD_LIBRARY_PATH
18728 shlibpath_overrides_runpath=yes
18729 hardcode_into_libs=yes
18734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18735 shlibpath_var=LD_LIBRARY_PATH
18736 shlibpath_overrides_runpath=yes
18743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18744 soname_spec='${libname}${release}${shared_ext}$major'
18745 shlibpath_var=LD_LIBRARY_PATH
18746 shlibpath_overrides_runpath=no
18747 hardcode_into_libs=yes
18748 dynamic_linker='ldqnx.so'
18753 sys_lib_dlsearch_path_spec="/usr/lib"
18755 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18757 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18758 *) need_version=no ;;
18760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18762 shlibpath_var=LD_LIBRARY_PATH
18763 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18765 openbsd2.[89] | openbsd2.[89].*)
18766 shlibpath_overrides_runpath=no
18769 shlibpath_overrides_runpath=yes
18773 shlibpath_overrides_runpath=yes
18778 libname_spec='$name'
18781 library_names_spec='$libname${shared_ext} $libname.a'
18782 dynamic_linker='OS/2 ld.exe'
18783 shlibpath_var=LIBPATH
18786 osf3* | osf4* | osf5*)
18790 soname_spec='${libname}${release}${shared_ext}$major'
18791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18792 shlibpath_var=LD_LIBRARY_PATH
18793 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18794 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18806 soname_spec='${libname}${release}${shared_ext}$major'
18807 shlibpath_var=LD_LIBRARY_PATH
18808 shlibpath_overrides_runpath=yes
18809 hardcode_into_libs=yes
18810 # ldd complains unless libraries are executable
18811 postinstall_cmds='chmod +x $lib'
18816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18817 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18818 shlibpath_var=LD_LIBRARY_PATH
18819 shlibpath_overrides_runpath=yes
18820 if test "$with_gnu_ld" = yes; then
18828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18829 soname_spec='${libname}${release}${shared_ext}$major'
18830 shlibpath_var=LD_LIBRARY_PATH
18831 case $host_vendor in
18833 shlibpath_overrides_runpath=no
18835 runpath_var=LD_RUN_PATH
18843 shlibpath_overrides_runpath=no
18844 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18850 if test -d /usr/nec ;then
18852 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18853 soname_spec='$libname${shared_ext}.$major'
18854 shlibpath_var=LD_LIBRARY_PATH
18858 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18859 version_type=freebsd-elf
18862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18863 soname_spec='${libname}${release}${shared_ext}$major'
18864 shlibpath_var=LD_LIBRARY_PATH
18865 shlibpath_overrides_runpath=yes
18866 hardcode_into_libs=yes
18867 if test "$with_gnu_ld" = yes; then
18868 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18870 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18873 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18877 sys_lib_dlsearch_path_spec='/usr/lib'
18881 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18886 shlibpath_var=LD_LIBRARY_PATH
18887 shlibpath_overrides_runpath=no
18888 hardcode_into_libs=yes
18893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18894 soname_spec='${libname}${release}${shared_ext}$major'
18895 shlibpath_var=LD_LIBRARY_PATH
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18903 $as_echo "$dynamic_linker" >&6; }
18904 test "$dynamic_linker" = no && can_build_shared=no
18906 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18907 if test "$GCC" = yes; then
18908 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18911 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18912 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18914 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18915 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18954 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18955 hardcode_action_CXX=
18956 if test -n "$hardcode_libdir_flag_spec_CXX" ||
18957 test -n "$runpath_var_CXX" ||
18958 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18960 # We can hardcode non-existent directories.
18961 if test "$hardcode_direct_CXX" != no &&
18962 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18963 # have to relink, otherwise we might link with an installed library
18964 # when we should be linking with a yet-to-be-installed one
18965 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18966 test "$hardcode_minus_L_CXX" != no; then
18967 # Linking always hardcodes the temporary library directory.
18968 hardcode_action_CXX=relink
18970 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18971 hardcode_action_CXX=immediate
18974 # We cannot hardcode anything, or else we can only hardcode existing
18976 hardcode_action_CXX=unsupported
18978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18979 $as_echo "$hardcode_action_CXX" >&6; }
18981 if test "$hardcode_action_CXX" = relink ||
18982 test "$inherit_rpath_CXX" = yes; then
18983 # Fast installation is not supported
18984 enable_fast_install=no
18985 elif test "$shlibpath_overrides_runpath" = yes ||
18986 test "$enable_shared" = no; then
18987 # Fast installation is not necessary
18988 enable_fast_install=needless
18997 fi # test -n "$compiler"
19003 with_gnu_ld=$lt_save_with_gnu_ld
19004 lt_cv_path_LDCXX=$lt_cv_path_LD
19005 lt_cv_path_LD=$lt_save_path_LD
19006 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
19007 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
19008 fi # test "$_lt_caught_CXX_error" != yes
19011 ac_cpp='$CPP $CPPFLAGS'
19012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19028 ac_config_commands="$ac_config_commands libtool"
19033 # Only expand once:
19039 # Configure libltdl
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
19049 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
19050 if test "${libltdl_cv_shlibext+set}" = set; then :
19051 $as_echo_n "(cached) " >&6
19055 eval libltdl_cv_shlibext=$shrext_cmds
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
19059 $as_echo "$libltdl_cv_shlibext" >&6; }
19060 if test -n "$libltdl_cv_shlibext"; then
19062 cat >>confdefs.h <<_ACEOF
19063 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
19069 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
19070 if test "${lt_cv_module_path_var+set}" = set; then :
19071 $as_echo_n "(cached) " >&6
19073 lt_cv_module_path_var="$shlibpath_var"
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
19076 $as_echo "$lt_cv_module_path_var" >&6; }
19077 if test -n "$lt_cv_module_path_var"; then
19079 cat >>confdefs.h <<_ACEOF
19080 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
19086 $as_echo_n "checking for the default library search path... " >&6; }
19087 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
19088 $as_echo_n "(cached) " >&6
19090 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
19093 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
19094 if test -n "$lt_cv_sys_dlsearch_path"; then
19096 for dir in $lt_cv_sys_dlsearch_path; do
19097 if test -z "$sys_dlsearch_path"; then
19098 sys_dlsearch_path="$dir"
19100 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
19104 cat >>confdefs.h <<_ACEOF
19105 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
19115 ac_cpp='$CPP $CPPFLAGS'
19116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
19123 $as_echo_n "checking for library containing dlopen... " >&6; }
19124 if test "${ac_cv_search_dlopen+set}" = set; then :
19125 $as_echo_n "(cached) " >&6
19127 ac_func_search_save_LIBS=$LIBS
19128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19129 /* end confdefs.h. */
19131 /* Override any GCC internal prototype to avoid an error.
19132 Use char because int might match the return type of a GCC
19133 builtin and then its argument prototype would still apply. */
19146 for ac_lib in '' dl; do
19147 if test -z "$ac_lib"; then
19148 ac_res="none required"
19151 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19153 if ac_fn_c_try_link "$LINENO"; then :
19154 ac_cv_search_dlopen=$ac_res
19156 rm -f core conftest.err conftest.$ac_objext \
19158 if test "${ac_cv_search_dlopen+set}" = set; then :
19162 if test "${ac_cv_search_dlopen+set}" = set; then :
19165 ac_cv_search_dlopen=no
19167 rm conftest.$ac_ext
19168 LIBS=$ac_func_search_save_LIBS
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
19171 $as_echo "$ac_cv_search_dlopen" >&6; }
19172 ac_res=$ac_cv_search_dlopen
19173 if test "$ac_res" != no; then :
19174 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19176 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19178 if test "$ac_cv_search_dlopen" != "none required" ; then
19179 LIBADD_DLOPEN="-ldl"
19181 libltdl_cv_lib_dl_dlopen="yes"
19182 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19185 /* end confdefs.h. */
19187 # include <dlfcn.h>
19198 if ac_fn_c_try_link "$LINENO"; then :
19200 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19202 libltdl_cv_func_dlopen="yes"
19203 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
19206 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
19207 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
19208 $as_echo_n "(cached) " >&6
19210 ac_check_lib_save_LIBS=$LIBS
19211 LIBS="-lsvld $LIBS"
19212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19213 /* end confdefs.h. */
19215 /* Override any GCC internal prototype to avoid an error.
19216 Use char because int might match the return type of a GCC
19217 builtin and then its argument prototype would still apply. */
19230 if ac_fn_c_try_link "$LINENO"; then :
19231 ac_cv_lib_svld_dlopen=yes
19233 ac_cv_lib_svld_dlopen=no
19235 rm -f core conftest.err conftest.$ac_objext \
19236 conftest$ac_exeext conftest.$ac_ext
19237 LIBS=$ac_check_lib_save_LIBS
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
19240 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19241 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
19243 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
19245 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19246 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19250 rm -f core conftest.err conftest.$ac_objext \
19251 conftest$ac_exeext conftest.$ac_ext
19254 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19256 lt_save_LIBS="$LIBS"
19257 LIBS="$LIBS $LIBADD_DLOPEN"
19258 for ac_func in dlerror
19260 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
19261 if test "x$ac_cv_func_dlerror" = x""yes; then :
19262 cat >>confdefs.h <<_ACEOF
19263 #define HAVE_DLERROR 1
19269 LIBS="$lt_save_LIBS"
19274 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
19275 if test "x$ac_cv_func_shl_load" = x""yes; then :
19277 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19279 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
19282 $as_echo_n "checking for shl_load in -ldld... " >&6; }
19283 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
19284 $as_echo_n "(cached) " >&6
19286 ac_check_lib_save_LIBS=$LIBS
19288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19289 /* end confdefs.h. */
19291 /* Override any GCC internal prototype to avoid an error.
19292 Use char because int might match the return type of a GCC
19293 builtin and then its argument prototype would still apply. */
19301 return shl_load ();
19306 if ac_fn_c_try_link "$LINENO"; then :
19307 ac_cv_lib_dld_shl_load=yes
19309 ac_cv_lib_dld_shl_load=no
19311 rm -f core conftest.err conftest.$ac_objext \
19312 conftest$ac_exeext conftest.$ac_ext
19313 LIBS=$ac_check_lib_save_LIBS
19315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
19316 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19317 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
19319 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
19321 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19322 LIBADD_SHL_LOAD="-ldld"
19331 # We only want this for pre-Mac OS X 10.4.
19332 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
19333 if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
19335 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
19337 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19342 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19344 cygwin* | mingw* | os2* | pw32*)
19345 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
19347 if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
19353 cat >>confdefs.h <<_ACEOF
19354 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
19357 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
19362 $as_echo_n "checking for dld_link in -ldld... " >&6; }
19363 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
19364 $as_echo_n "(cached) " >&6
19366 ac_check_lib_save_LIBS=$LIBS
19368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19369 /* end confdefs.h. */
19371 /* Override any GCC internal prototype to avoid an error.
19372 Use char because int might match the return type of a GCC
19373 builtin and then its argument prototype would still apply. */
19381 return dld_link ();
19386 if ac_fn_c_try_link "$LINENO"; then :
19387 ac_cv_lib_dld_dld_link=yes
19389 ac_cv_lib_dld_dld_link=no
19391 rm -f core conftest.err conftest.$ac_objext \
19392 conftest$ac_exeext conftest.$ac_ext
19393 LIBS=$ac_check_lib_save_LIBS
19395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
19396 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19397 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
19399 $as_echo "#define HAVE_DLD 1" >>confdefs.h
19401 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19408 if test -n "$LT_DLLOADERS"
19410 for lt_loader in $LT_DLLOADERS; do
19411 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19414 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
19419 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19423 ac_cpp='$CPP $CPPFLAGS'
19424 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19426 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
19430 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
19431 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
19432 $as_echo_n "(cached) " >&6
19434 lt_cv_sys_symbol_underscore=no
19435 cat > conftest.$ac_ext <<_LT_EOF
19436 void nm_test_func(){}
19437 int main(){nm_test_func;return 0;}
19439 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19440 (eval $ac_compile) 2>&5
19442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19443 test $ac_status = 0; }; then
19444 # Now try to grab the symbols.
19445 ac_nlist=conftest.nm
19446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
19447 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19450 test $ac_status = 0; } && test -s "$ac_nlist"; then
19451 # See whether the symbols have a leading underscore.
19452 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19453 lt_cv_sys_symbol_underscore=yes
19455 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19458 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19462 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19465 echo "configure: failed program was:" >&5
19471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
19472 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19473 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19476 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19477 if test x"$libltdl_cv_func_dlopen" = xyes ||
19478 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
19480 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
19481 if test "${libltdl_cv_need_uscore+set}" = set; then :
19482 $as_echo_n "(cached) " >&6
19484 libltdl_cv_need_uscore=unknown
19486 LIBS="$LIBS $LIBADD_DLOPEN"
19487 if test "$cross_compiling" = yes; then :
19488 libltdl_cv_need_uscore=cross
19490 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19491 lt_status=$lt_dlunknown
19492 cat > conftest.$ac_ext <<_LT_EOF
19493 #line 19493 "configure"
19494 #include "confdefs.h"
19503 # define LT_DLGLOBAL RTLD_GLOBAL
19506 # define LT_DLGLOBAL DL_GLOBAL
19508 # define LT_DLGLOBAL 0
19512 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19513 find out it does not work in some platform. */
19514 #ifndef LT_DLLAZY_OR_NOW
19516 # define LT_DLLAZY_OR_NOW RTLD_LAZY
19519 # define LT_DLLAZY_OR_NOW DL_LAZY
19522 # define LT_DLLAZY_OR_NOW RTLD_NOW
19525 # define LT_DLLAZY_OR_NOW DL_NOW
19527 # define LT_DLLAZY_OR_NOW 0
19534 void fnord() { int i=42;}
19537 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19538 int status = $lt_dlunknown;
19542 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19543 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19544 /* dlclose (self); */
19552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
19553 (eval $ac_link) 2>&5
19555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19556 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
19557 (./conftest; exit; ) >&5 2>/dev/null
19559 case x$lt_status in
19560 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19561 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19562 x$lt_dlunknown|x*) ;;
19565 # compilation failed
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
19575 $as_echo "$libltdl_cv_need_uscore" >&6; }
19579 if test x"$libltdl_cv_need_uscore" = xyes; then
19581 $as_echo "#define NEED_USCORE 1" >>confdefs.h
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
19586 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
19587 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
19588 $as_echo_n "(cached) " >&6
19590 # PORTME does your system automatically load deplibs for dlopen?
19591 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19592 # For now, we just catch OSes we know something about -- in the
19593 # future, we'll try test this programmatically.
19594 lt_cv_sys_dlopen_deplibs=unknown
19596 aix3*|aix4.1.*|aix4.2.*)
19597 # Unknown whether this is true for these versions of AIX, but
19598 # we want this `case' here to explicitly catch those versions.
19599 lt_cv_sys_dlopen_deplibs=unknown
19602 lt_cv_sys_dlopen_deplibs=yes
19607 lt_cv_sys_dlopen_deplibs=no
19612 # Assuming the user has installed a libdl from somewhere, this is true
19613 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19614 lt_cv_sys_dlopen_deplibs=yes
19616 freebsd* | dragonfly*)
19617 lt_cv_sys_dlopen_deplibs=yes
19619 gnu* | linux* | k*bsd*-gnu)
19620 # GNU and its variants, using gnu ld.so (Glibc)
19621 lt_cv_sys_dlopen_deplibs=yes
19624 lt_cv_sys_dlopen_deplibs=yes
19627 lt_cv_sys_dlopen_deplibs=yes
19629 irix[12345]*|irix6.[01]*)
19630 # Catch all versions of IRIX before 6.2, and indicate that we don't
19631 # know how it worked for any of those versions.
19632 lt_cv_sys_dlopen_deplibs=unknown
19635 # The case above catches anything before 6.2, and it's known that
19636 # at 6.2 and later dlopen does load deplibs.
19637 lt_cv_sys_dlopen_deplibs=yes
19640 lt_cv_sys_dlopen_deplibs=yes
19643 lt_cv_sys_dlopen_deplibs=yes
19646 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19647 # it did *not* use an RPATH in a shared library to find objects the
19648 # library depends on, so we explicitly say `no'.
19649 lt_cv_sys_dlopen_deplibs=no
19651 osf5.0|osf5.0a|osf5.1)
19652 # dlopen *does* load deplibs and with the right loader patch applied
19653 # it even uses RPATH in a shared library to search for shared objects
19654 # that the library depends on, but there's no easy way to know if that
19655 # patch is installed. Since this is the case, all we can really
19656 # say is unknown -- it depends on the patch being installed. If
19657 # it is, this changes to `yes'. Without it, it would be `no'.
19658 lt_cv_sys_dlopen_deplibs=unknown
19661 # the two cases above should catch all versions of osf <= 5.1. Read
19662 # the comments above for what we know about them.
19663 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19664 # is used to find them so we can finally say `yes'.
19665 lt_cv_sys_dlopen_deplibs=yes
19668 lt_cv_sys_dlopen_deplibs=yes
19671 lt_cv_sys_dlopen_deplibs=yes
19673 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19674 libltdl_cv_sys_dlopen_deplibs=yes
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
19680 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19681 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19683 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
19689 for ac_header in argz.h
19691 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
19693 if test "x$ac_cv_header_argz_h" = x""yes; then :
19694 cat >>confdefs.h <<_ACEOF
19695 #define HAVE_ARGZ_H 1
19703 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
19707 if test "x$ac_cv_type_error_t" = x""yes; then :
19709 cat >>confdefs.h <<_ACEOF
19710 #define HAVE_ERROR_T 1
19716 $as_echo "#define error_t int" >>confdefs.h
19719 $as_echo "#define __error_t_defined 1" >>confdefs.h
19725 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
19726 argz_next argz_stringify
19728 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19729 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19730 eval as_val=\$$as_ac_var
19731 if test "x$as_val" = x""yes; then :
19732 cat >>confdefs.h <<_ACEOF
19733 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19739 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19745 if test -z "$ARGZ_H"; then :
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
19747 $as_echo_n "checking if argz actually works... " >&6; }
19748 if test "${lt_cv_sys_argz_works+set}" = set; then :
19749 $as_echo_n "(cached) " >&6
19751 case $host_os in #(
19753 lt_cv_sys_argz_works=no
19754 if test "$cross_compiling" != no; then
19755 lt_cv_sys_argz_works="guessing no"
19757 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
19760 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
19765 if test "$lt_os_major" -gt 1 \
19766 || { test "$lt_os_major" -eq 1 \
19767 && { test "$lt_os_minor" -gt 5 \
19768 || { test "$lt_os_minor" -eq 5 \
19769 && test "$lt_os_micro" -gt 24; }; }; }; then
19770 lt_cv_sys_argz_works=yes
19774 *) lt_cv_sys_argz_works=yes ;;
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
19778 $as_echo "$lt_cv_sys_argz_works" >&6; }
19779 if test $lt_cv_sys_argz_works = yes; then :
19781 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
19787 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
19795 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
19796 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
19797 $as_echo_n "(cached) " >&6
19799 if test -n "$lt_cv_sys_global_symbol_pipe"; then
19800 libltdl_cv_preloaded_symbols=yes
19802 libltdl_cv_preloaded_symbols=no
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
19807 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
19808 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
19810 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
19826 # Check whether --with-included_ltdl was given.
19827 if test "${with_included_ltdl+set}" = set; then :
19828 withval=$with_included_ltdl;
19832 if test "x$with_included_ltdl" != xyes; then
19833 # We are not being forced to use the included libltdl sources, so
19834 # decide whether there is a useful installed version we can use.
19835 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
19838 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
19839 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
19842 if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
19844 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
19845 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
19846 $as_echo_n "(cached) " >&6
19848 ac_check_lib_save_LIBS=$LIBS
19849 LIBS="-lltdl $LIBS"
19850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19851 /* end confdefs.h. */
19853 /* Override any GCC internal prototype to avoid an error.
19854 Use char because int might match the return type of a GCC
19855 builtin and then its argument prototype would still apply. */
19859 char lt_dladvise_preload ();
19863 return lt_dladvise_preload ();
19868 if ac_fn_c_try_link "$LINENO"; then :
19869 ac_cv_lib_ltdl_lt_dladvise_preload=yes
19871 ac_cv_lib_ltdl_lt_dladvise_preload=no
19873 rm -f core conftest.err conftest.$ac_objext \
19874 conftest$ac_exeext conftest.$ac_ext
19875 LIBS=$ac_check_lib_save_LIBS
19877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
19878 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
19879 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
19880 with_included_ltdl=no
19882 with_included_ltdl=yes
19886 with_included_ltdl=yes
19890 with_included_ltdl=yes
19899 # Check whether --with-ltdl_include was given.
19900 if test "${with_ltdl_include+set}" = set; then :
19901 withval=$with_ltdl_include;
19905 if test -n "$with_ltdl_include"; then
19906 if test -f "$with_ltdl_include/ltdl.h"; then :
19908 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
19911 with_ltdl_include=no
19915 # Check whether --with-ltdl_lib was given.
19916 if test "${with_ltdl_lib+set}" = set; then :
19917 withval=$with_ltdl_lib;
19921 if test -n "$with_ltdl_lib"; then
19922 if test -f "$with_ltdl_lib/libltdl.la"; then :
19924 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
19930 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
19932 case $enable_ltdl_convenience in
19933 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
19934 "") enable_ltdl_convenience=yes
19935 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
19937 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
19939 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
19945 # For backwards non-gettext consistent compatibility...
19946 INCLTDL="$LTDLINCL"
19951 # If the included ltdl is not to be used, then use the
19952 # preinstalled libltdl we found.
19954 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
19961 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
19963 *) with_included_ltdl=no
19964 LIBLTDL="-L$with_ltdl_lib -lltdl"
19966 LTDLINCL="-I$with_ltdl_include"
19969 INCLTDL="$LTDLINCL"
19971 # Report our decision...
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
19973 $as_echo_n "checking where to find libltdl headers... " >&6; }
19974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
19975 $as_echo "$LTDLINCL" >&6; }
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
19977 $as_echo_n "checking where to find libltdl library... " >&6; }
19978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
19979 $as_echo "$LIBLTDL" >&6; }
19983 # Check whether --enable-ltdl-install was given.
19984 if test "${enable_ltdl_install+set}" = set; then :
19985 enableval=$enable_ltdl_install;
19989 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
19991 *) enable_ltdl_convenience=yes ;;
19994 if test x"${enable_ltdl_install-no}" != xno; then
19996 INSTALL_LTDL_FALSE='#'
19998 INSTALL_LTDL_TRUE='#'
19999 INSTALL_LTDL_FALSE=
20002 if test x"${enable_ltdl_convenience-no}" != xno; then
20003 CONVENIENCE_LTDL_TRUE=
20004 CONVENIENCE_LTDL_FALSE='#'
20006 CONVENIENCE_LTDL_TRUE='#'
20007 CONVENIENCE_LTDL_FALSE=
20016 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20017 # the user used. This is so that ltdl.h can pick up the parent projects
20018 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
20019 # definitions required by ltdl.c.
20020 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20024 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20027 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
20029 eval as_val=\$$as_ac_Header
20030 if test "x$as_val" = x""yes; then :
20031 cat >>confdefs.h <<_ACEOF
20032 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20040 for ac_func in closedir opendir readdir
20042 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20043 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20044 eval as_val=\$$as_ac_var
20045 if test "x$as_val" = x""yes; then :
20046 cat >>confdefs.h <<_ACEOF
20047 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20053 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20058 for ac_func in strlcat strlcpy
20060 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20061 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20062 eval as_val=\$$as_ac_var
20063 if test "x$as_val" = x""yes; then :
20064 cat >>confdefs.h <<_ACEOF
20065 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20071 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20078 cat >>confdefs.h <<_ACEOF
20079 #define LT_LIBEXT "$libext"
20084 LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
20093 # Only expand once:
20097 # Check to see if building shared libraries
20098 libtool_build_shared_libs='no'
20099 if test "$enable_shared" = 'yes'; then
20100 libtool_build_shared_libs='yes'
20103 # Check to see if building static libraries
20104 libtool_build_static_libs='no'
20105 if test "$enable_static" = 'yes'; then
20106 libtool_build_static_libs='yes'
20109 if test "${libtool_build_shared_libs}" = 'yes'; then
20110 WITH_SHARED_LIBS_TRUE=
20111 WITH_SHARED_LIBS_FALSE='#'
20113 WITH_SHARED_LIBS_TRUE='#'
20114 WITH_SHARED_LIBS_FALSE=
20118 # Enable support for building loadable modules
20121 # Check whether --with-modules was given.
20122 if test "${with_modules+set}" = set; then :
20123 withval=$with_modules; with_modules=$withval
20129 # Only allow building loadable modules if we are building shared libraries
20130 if test "$with_modules" != 'no' ; then
20131 if test "$libtool_build_shared_libs" = 'no'; then
20132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Modules may only be built if building shared libraries is enabled." >&5
20133 $as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20137 if test "$with_modules" != 'no'; then
20139 $as_echo "#define BUILD_MODULES 1" >>confdefs.h
20142 if test "$with_modules" != 'no'; then
20144 WITH_MODULES_FALSE='#'
20146 WITH_MODULES_TRUE='#'
20147 WITH_MODULES_FALSE=
20151 # Enable building/use of libltdl if we are building shared libraries regardless
20152 # of whether modules are built or not.
20154 if test "$libtool_build_shared_libs" != 'no'; then
20158 if test "$with_ltdl" != 'no'; then
20160 WITH_LTDL_FALSE='#'
20166 if test "$with_ltdl" != 'no'; then
20168 $as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
20172 if test X"$enable_shared" = Xyes; then
20173 DLLDFLAGS=-export-dynamic
20178 # Enable build using delegate libraries built in subdirectories rather than installed
20179 # delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
20180 # Check whether --enable-delegate-build was given.
20181 if test "${enable_delegate_build+set}" = set; then :
20182 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20184 enable_delegate_build='no'
20188 # Check whether --enable-deprecated was given.
20189 if test "${enable_deprecated+set}" = set; then :
20190 enableval=$enable_deprecated; enable_deprecated=$enableval
20192 enable_deprecated='no'
20196 if test "$enable_deprecated" = 'yes'; then
20198 $as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
20201 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20204 # Build a version of ImageMagick which operates uninstalled.
20205 # Used to build distributions located via MAGICK_HOME / executable path
20206 # Check whether --enable-installed was given.
20207 if test "${enable_installed+set}" = set; then :
20208 enableval=$enable_installed; enable_installed=$enableval
20210 enable_installed='yes'
20214 if test "$enable_installed" = 'yes'; then
20216 $as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
20219 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20222 # Permit enciphering and deciphering image pixels.
20223 # Check whether --enable-cipher was given.
20224 if test "${enable_cipher+set}" = set; then :
20225 enableval=$enable_cipher; enable_cipher=$enableval
20227 enable_cipher='yes'
20231 if test "$enable_cipher" = 'yes'; then
20233 $as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
20237 # Build an embeddable version of ImageMagick.
20238 # Check whether --enable-embeddable was given.
20239 if test "${enable_embeddable+set}" = set; then :
20240 enableval=$enable_embeddable; enable_embeddable=$enableval
20242 enable_embeddable='no'
20246 if test "$enable_embeddable" = 'yes'; then
20248 $as_echo "#define EMBEDDABLE_SUPPORT 1" >>confdefs.h
20252 # Build a high dynamic range version of ImageMagick.
20253 # Check whether --enable-hdri was given.
20254 if test "${enable_hdri+set}" = set; then :
20255 enableval=$enable_hdri; enable_hdri=$enableval
20262 if test "$enable_hdri" = 'yes'; then
20265 $as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
20267 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
20270 # Build a version of ImageMagick with assert statements.
20271 # Check whether --enable-assert was given.
20272 if test "${enable_assert+set}" = set; then :
20273 enableval=$enable_assert; enable_assert=$enableval
20275 enable_assert='yes'
20279 if test "$enable_assert" = 'no'; then
20281 $as_echo "#define NDEBUG 1" >>confdefs.h
20285 # Add configure option --enable-maintainer-mode which enables dependency
20286 # checking and generation useful to package maintainers. This is made an
20287 # option to avoid confusing end users.
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20290 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20291 # Check whether --enable-maintainer-mode was given.
20292 if test "${enable_maintainer_mode+set}" = set; then :
20293 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20295 USE_MAINTAINER_MODE=no
20298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20299 $as_echo "$USE_MAINTAINER_MODE" >&6; }
20300 if test $USE_MAINTAINER_MODE = yes; then
20301 MAINTAINER_MODE_TRUE=
20302 MAINTAINER_MODE_FALSE='#'
20304 MAINTAINER_MODE_TRUE='#'
20305 MAINTAINER_MODE_FALSE=
20308 MAINT=$MAINTAINER_MODE_TRUE
20313 # Enable ccmalloc memory debugging support
20314 # Check whether --enable-ccmalloc was given.
20315 if test "${enable_ccmalloc+set}" = set; then :
20316 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20318 enable_ccmalloc='no'
20322 # Enable Electric Fence memory debugging support
20323 # Check whether --enable-efence was given.
20324 if test "${enable_efence+set}" = set; then :
20325 enableval=$enable_efence; enable_efence=$enableval
20331 # Enable prof-based profiling support
20332 # Check whether --enable-prof was given.
20333 if test "${enable_prof+set}" = set; then :
20334 enableval=$enable_prof; enable_prof=$enableval
20340 # Enable gprof-based profiling support
20341 # Check whether --enable-gprof was given.
20342 if test "${enable_gprof+set}" = set; then :
20343 enableval=$enable_gprof; enable_gprof=$enableval
20349 # Enable gcov-based profiling support
20350 # Check whether --enable-gcov was given.
20351 if test "${enable_gcov+set}" = set; then :
20352 enableval=$enable_gcov; enable_gcov=$enableval
20358 enable_profiling='no'
20359 if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20360 enable_profiling='yes'
20361 if test "$libtool_build_shared_libs" = 'yes'; then
20362 echo "Warning: Can not profile code using shared libraries"
20366 # Magick API method prefix
20368 # Check whether --with-method-prefix was given.
20369 if test "${with_method_prefix+set}" = set; then :
20370 withval=$with_method_prefix; with_method_prefix=$enableval
20372 with_method_prefix=''
20376 if test "$with_method_prefix" != ''; then
20378 cat >>confdefs.h <<_ACEOF
20379 #define NAMESPACE_PREFIX $with_method_prefix
20384 # Number of bits in a Quantum
20386 # Check whether --with-quantum-depth was given.
20387 if test "${with_quantum_depth+set}" = set; then :
20388 withval=$with_quantum_depth; with_quantum_depth=$withval
20390 with_quantum_depth=16
20394 if test "$with_quantum_depth" != '8'; then
20395 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20398 case "${with_quantum_depth}" in
20403 * ) { as_fn_set_status 16
20404 as_fn_error "\"Pixel quantum depth must have value of 8" "$LINENO" 5; } ;;
20406 if test "$enable_hdri" = 'yes'; then
20407 with_quantum_depth=16
20409 QUANTUM_DEPTH="$with_quantum_depth"
20411 cat >>confdefs.h <<_ACEOF
20412 #define QUANTUM_DEPTH $QUANTUM_DEPTH
20416 # Set pixel cache threshold
20418 # Check whether --with-cache was given.
20419 if test "${with_cache+set}" = set; then :
20420 withval=$with_cache; with_cache=$withval
20426 if test "$with_cache" != ''; then
20428 cat >>confdefs.h <<_ACEOF
20429 #define PixelCacheThreshold $with_cache
20432 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
20435 # Disable/Enable support for full delegate paths
20437 # Check whether --with-frozenpaths was given.
20438 if test "${with_frozenpaths+set}" = set; then :
20439 withval=$with_frozenpaths; with_frozenpaths=$withval
20441 with_frozenpaths='no'
20445 # Enable build/install of Magick++
20447 # Check whether --with-magick-plus-plus was given.
20448 if test "${with_magick_plus_plus+set}" = set; then :
20449 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
20451 with_magick_plus_plus='yes'
20455 # Disable build/install of PerlMagick.
20457 # Check whether --with-perl was given.
20458 if test "${with_perl+set}" = set; then :
20459 withval=$with_perl; with_perl=$withval
20465 # Options to pass when configuring PerlMagick
20467 # Check whether --with-perl-options was given.
20468 if test "${with_perl_options+set}" = set; then :
20469 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
20474 # Enable umem, object-caching memory allocation library.
20476 # Check whether --with-umem was given.
20477 if test "${with_umem+set}" = set; then :
20478 withval=$with_umem; with_umem=$withval
20483 if test "$with_umem" != 'yes' ; then
20484 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
20488 # Specify path to shared libstdc++ if not in normal location
20491 # Check whether --with-libstdc was given.
20492 if test "${with_libstdc+set}" = set; then :
20493 withval=$with_libstdc; with_libstdc=$withval
20499 if test "$with_libstdc" != ''; then
20500 if test -d "$with_libstdc"; then
20501 LIBSTDCLDFLAGS="-L$with_libstdc"
20506 # Does gcc required -traditional?
20507 if test $ac_cv_c_compiler_gnu = yes; then
20508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
20509 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
20510 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
20511 $as_echo_n "(cached) " >&6
20513 ac_pattern="Autoconf.*'x'"
20514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20515 /* end confdefs.h. */
20519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20520 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20521 ac_cv_prog_gcc_traditional=yes
20523 ac_cv_prog_gcc_traditional=no
20528 if test $ac_cv_prog_gcc_traditional = no; then
20529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20530 /* end confdefs.h. */
20531 #include <termio.h>
20534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20535 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
20536 ac_cv_prog_gcc_traditional=yes
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
20543 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
20544 if test $ac_cv_prog_gcc_traditional = yes; then
20545 CC="$CC -traditional"
20552 # Set defines required to build DLLs and modules using MinGW
20555 # These options are set for multi-thread DLL module build
20556 # libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
20558 # executable/Magick++: _DLL _MAGICKMOD_
20559 MODULE_EXTRA_CPPFLAGS=''
20560 LIBRARY_EXTRA_CPPFLAGS=''
20561 if test "${native_win32_build}" = 'yes'; then
20562 if test "${libtool_build_shared_libs}" = 'yes'; then
20563 CPPFLAGS="$CPPFLAGS -D_DLL"
20564 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
20565 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
20566 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20567 if test "$with_modules" = 'yes'; then
20568 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
20570 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
20573 CPPFLAGS="$CPPFLAGS -D_LIB"
20574 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
20575 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
20577 if test "$with_threads" = 'yes'; then
20578 CPPFLAGS="$CPPFLAGS -D_MT"
20579 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
20580 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
20586 # Check standard headers
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
20588 $as_echo_n "checking for ANSI C header files... " >&6; }
20589 if test "${ac_cv_header_stdc+set}" = set; then :
20590 $as_echo_n "(cached) " >&6
20592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20593 /* end confdefs.h. */
20594 #include <stdlib.h>
20595 #include <stdarg.h>
20596 #include <string.h>
20607 if ac_fn_c_try_compile "$LINENO"; then :
20608 ac_cv_header_stdc=yes
20610 ac_cv_header_stdc=no
20612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20614 if test $ac_cv_header_stdc = yes; then
20615 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20617 /* end confdefs.h. */
20618 #include <string.h>
20621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20622 $EGREP "memchr" >/dev/null 2>&1; then :
20625 ac_cv_header_stdc=no
20631 if test $ac_cv_header_stdc = yes; then
20632 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20634 /* end confdefs.h. */
20635 #include <stdlib.h>
20638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20639 $EGREP "free" >/dev/null 2>&1; then :
20642 ac_cv_header_stdc=no
20648 if test $ac_cv_header_stdc = yes; then
20649 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20650 if test "$cross_compiling" = yes; then :
20653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20654 /* end confdefs.h. */
20656 #include <stdlib.h>
20657 #if ((' ' & 0x0FF) == 0x020)
20658 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20659 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20661 # define ISLOWER(c) \
20662 (('a' <= (c) && (c) <= 'i') \
20663 || ('j' <= (c) && (c) <= 'r') \
20664 || ('s' <= (c) && (c) <= 'z'))
20665 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20668 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20673 for (i = 0; i < 256; i++)
20674 if (XOR (islower (i), ISLOWER (i))
20675 || toupper (i) != TOUPPER (i))
20680 if ac_fn_c_try_run "$LINENO"; then :
20683 ac_cv_header_stdc=no
20685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20686 conftest.$ac_objext conftest.beam conftest.$ac_ext
20691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
20692 $as_echo "$ac_cv_header_stdc" >&6; }
20693 if test $ac_cv_header_stdc = yes; then
20695 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
20699 if ! test x"$ac_cv_header_stdc" = x"yes"; then
20700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure has detected that you do not have the ANSI standard C
20701 header files. Compilation cannot proceed. Please install the ANSI C
20702 headers and rerun this script." >&5
20703 $as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
20704 header files. Compilation cannot proceed. Please install the ANSI C
20705 headers and rerun this script." >&2;};
20708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
20709 $as_echo_n "checking whether to enable assertions... " >&6; }
20710 # Check whether --enable-assert was given.
20711 if test "${enable_assert+set}" = set; then :
20712 enableval=$enable_assert; ac_enable_assert=$enableval
20713 if test "x$enableval" = xno; then :
20715 $as_echo "#define NDEBUG 1" >>confdefs.h
20717 elif test "x$enableval" != xyes; then :
20718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
20719 $as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
20720 ac_enable_assert=yes
20723 ac_enable_assert=yes
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
20727 $as_echo "$ac_enable_assert" >&6; }
20729 ac_header_dirent=no
20730 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20731 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
20733 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
20734 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
20735 $as_echo_n "(cached) " >&6
20737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20738 /* end confdefs.h. */
20739 #include <sys/types.h>
20751 if ac_fn_c_try_compile "$LINENO"; then :
20752 eval "$as_ac_Header=yes"
20754 eval "$as_ac_Header=no"
20756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20758 eval ac_res=\$$as_ac_Header
20759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20760 $as_echo "$ac_res" >&6; }
20761 eval as_val=\$$as_ac_Header
20762 if test "x$as_val" = x""yes; then :
20763 cat >>confdefs.h <<_ACEOF
20764 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20767 ac_header_dirent=$ac_hdr; break
20771 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20772 if test $ac_header_dirent = dirent.h; then
20773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20774 $as_echo_n "checking for library containing opendir... " >&6; }
20775 if test "${ac_cv_search_opendir+set}" = set; then :
20776 $as_echo_n "(cached) " >&6
20778 ac_func_search_save_LIBS=$LIBS
20779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20780 /* end confdefs.h. */
20782 /* Override any GCC internal prototype to avoid an error.
20783 Use char because int might match the return type of a GCC
20784 builtin and then its argument prototype would still apply. */
20797 for ac_lib in '' dir; do
20798 if test -z "$ac_lib"; then
20799 ac_res="none required"
20802 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20804 if ac_fn_c_try_link "$LINENO"; then :
20805 ac_cv_search_opendir=$ac_res
20807 rm -f core conftest.err conftest.$ac_objext \
20809 if test "${ac_cv_search_opendir+set}" = set; then :
20813 if test "${ac_cv_search_opendir+set}" = set; then :
20816 ac_cv_search_opendir=no
20818 rm conftest.$ac_ext
20819 LIBS=$ac_func_search_save_LIBS
20821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20822 $as_echo "$ac_cv_search_opendir" >&6; }
20823 ac_res=$ac_cv_search_opendir
20824 if test "$ac_res" != no; then :
20825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
20831 $as_echo_n "checking for library containing opendir... " >&6; }
20832 if test "${ac_cv_search_opendir+set}" = set; then :
20833 $as_echo_n "(cached) " >&6
20835 ac_func_search_save_LIBS=$LIBS
20836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20837 /* end confdefs.h. */
20839 /* Override any GCC internal prototype to avoid an error.
20840 Use char because int might match the return type of a GCC
20841 builtin and then its argument prototype would still apply. */
20854 for ac_lib in '' x; do
20855 if test -z "$ac_lib"; then
20856 ac_res="none required"
20859 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20861 if ac_fn_c_try_link "$LINENO"; then :
20862 ac_cv_search_opendir=$ac_res
20864 rm -f core conftest.err conftest.$ac_objext \
20866 if test "${ac_cv_search_opendir+set}" = set; then :
20870 if test "${ac_cv_search_opendir+set}" = set; then :
20873 ac_cv_search_opendir=no
20875 rm conftest.$ac_ext
20876 LIBS=$ac_func_search_save_LIBS
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
20879 $as_echo "$ac_cv_search_opendir" >&6; }
20880 ac_res=$ac_cv_search_opendir
20881 if test "$ac_res" != no; then :
20882 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20889 # Check additional headers
20890 for ac_header in arm/limits.h complex.h errno.h fcntl.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h process.h stdarg.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h
20892 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20893 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20894 eval as_val=\$$as_ac_Header
20895 if test "x$as_val" = x""yes; then :
20896 cat >>confdefs.h <<_ACEOF
20897 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20907 # Checks for typedefs, structures, and compiler characteristics.
20911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
20912 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
20913 if test "${ac_cv_header_stdbool_h+set}" = set; then :
20914 $as_echo_n "(cached) " >&6
20916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20917 /* end confdefs.h. */
20919 #include <stdbool.h>
20921 "error: bool is not defined"
20924 "error: false is not defined"
20927 "error: false is not 0"
20930 "error: true is not defined"
20933 "error: true is not 1"
20935 #ifndef __bool_true_false_are_defined
20936 "error: __bool_true_false_are_defined is not defined"
20939 struct s { _Bool s: 1; _Bool t; } s;
20941 char a[true == 1 ? 1 : -1];
20942 char b[false == 0 ? 1 : -1];
20943 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
20944 char d[(bool) 0.5 == true ? 1 : -1];
20946 char f[(_Bool) 0.0 == false ? 1 : -1];
20948 char h[sizeof (_Bool)];
20949 char i[sizeof s.t];
20950 enum { j = false, k = true, l = false * true, m = true * 256 };
20951 /* The following fails for
20952 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
20954 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
20955 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
20956 # if defined __xlc__ || defined __GNUC__
20957 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
20958 reported by James Lemley on 2005-10-05; see
20959 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
20960 This test is not quite right, since xlc is allowed to
20961 reject this program, as the initializer for xlcbug is
20962 not one of the forms that C requires support for.
20963 However, doing the test right would require a runtime
20964 test, and that would make cross-compilation harder.
20965 Let us hope that IBM fixes the xlc bug, and also adds
20966 support for this kind of constant expression. In the
20967 meantime, this test will reject xlc, which is OK, since
20968 our stdbool.h substitute should suffice. We also test
20969 this with GCC, where it should work, to detect more
20970 quickly whether someone messes up the test in the
20972 char digs[] = "0123456789";
20973 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
20975 /* Catch a bug in an HP-UX C compiler. See
20976 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
20977 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
20988 /* Refer to every declared value, to avoid compiler optimizations. */
20989 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
20990 + !m + !n + !o + !p + !q + !pq);
20996 if ac_fn_c_try_compile "$LINENO"; then :
20997 ac_cv_header_stdbool_h=yes
20999 ac_cv_header_stdbool_h=no
21001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
21004 $as_echo "$ac_cv_header_stdbool_h" >&6; }
21005 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
21006 if test "x$ac_cv_type__Bool" = x""yes; then :
21008 cat >>confdefs.h <<_ACEOF
21009 #define HAVE__BOOL 1
21015 if test $ac_cv_header_stdbool_h = yes; then
21017 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
21022 $as_echo_n "checking for working volatile... " >&6; }
21023 if test "${ac_cv_c_volatile+set}" = set; then :
21024 $as_echo_n "(cached) " >&6
21026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21027 /* end confdefs.h. */
21034 int * volatile y = (int *) 0;
21040 if ac_fn_c_try_compile "$LINENO"; then :
21041 ac_cv_c_volatile=yes
21043 ac_cv_c_volatile=no
21045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
21048 $as_echo "$ac_cv_c_volatile" >&6; }
21049 if test $ac_cv_c_volatile = no; then
21051 $as_echo "#define volatile /**/" >>confdefs.h
21055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
21056 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
21057 if test "${ac_cv_c_stringize+set}" = set; then :
21058 $as_echo_n "(cached) " >&6
21060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21061 /* end confdefs.h. */
21064 char *s = x(teststring);
21066 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21067 $EGREP "#teststring" >/dev/null 2>&1; then :
21068 ac_cv_c_stringize=no
21070 ac_cv_c_stringize=yes
21075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
21076 $as_echo "$ac_cv_c_stringize" >&6; }
21077 if test $ac_cv_c_stringize = yes; then
21079 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
21083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
21084 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
21085 if test "${ac_cv_header_stat_broken+set}" = set; then :
21086 $as_echo_n "(cached) " >&6
21088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21089 /* end confdefs.h. */
21090 #include <sys/types.h>
21091 #include <sys/stat.h>
21093 #if defined S_ISBLK && defined S_IFDIR
21094 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21097 #if defined S_ISBLK && defined S_IFCHR
21098 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21101 #if defined S_ISLNK && defined S_IFREG
21102 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21105 #if defined S_ISSOCK && defined S_IFREG
21106 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21110 if ac_fn_c_try_compile "$LINENO"; then :
21111 ac_cv_header_stat_broken=no
21113 ac_cv_header_stat_broken=yes
21115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
21118 $as_echo "$ac_cv_header_stat_broken" >&6; }
21119 if test $ac_cv_header_stat_broken = yes; then
21121 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
21125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21126 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21127 if test "${ac_cv_header_time+set}" = set; then :
21128 $as_echo_n "(cached) " >&6
21130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21131 /* end confdefs.h. */
21132 #include <sys/types.h>
21133 #include <sys/time.h>
21139 if ((struct tm *) 0)
21145 if ac_fn_c_try_compile "$LINENO"; then :
21146 ac_cv_header_time=yes
21148 ac_cv_header_time=no
21150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21153 $as_echo "$ac_cv_header_time" >&6; }
21154 if test $ac_cv_header_time = yes; then
21156 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21161 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21162 if test "${ac_cv_struct_tm+set}" = set; then :
21163 $as_echo_n "(cached) " >&6
21165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21166 /* end confdefs.h. */
21167 #include <sys/types.h>
21174 int *p = &tm.tm_sec;
21180 if ac_fn_c_try_compile "$LINENO"; then :
21181 ac_cv_struct_tm=time.h
21183 ac_cv_struct_tm=sys/time.h
21185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21188 $as_echo "$ac_cv_struct_tm" >&6; }
21189 if test $ac_cv_struct_tm = sys/time.h; then
21191 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21195 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21196 #include <$ac_cv_struct_tm>
21199 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21201 cat >>confdefs.h <<_ACEOF
21202 #define HAVE_STRUCT_TM_TM_ZONE 1
21208 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21210 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21213 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21215 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21221 cat >>confdefs.h <<_ACEOF
21222 #define HAVE_DECL_TZNAME $ac_have_decl
21225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21226 $as_echo_n "checking for tzname... " >&6; }
21227 if test "${ac_cv_var_tzname+set}" = set; then :
21228 $as_echo_n "(cached) " >&6
21230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21231 /* end confdefs.h. */
21233 #if !HAVE_DECL_TZNAME
21234 extern char *tzname[];
21240 return tzname[0][0];
21245 if ac_fn_c_try_link "$LINENO"; then :
21246 ac_cv_var_tzname=yes
21248 ac_cv_var_tzname=no
21250 rm -f core conftest.err conftest.$ac_objext \
21251 conftest$ac_exeext conftest.$ac_ext
21253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21254 $as_echo "$ac_cv_var_tzname" >&6; }
21255 if test $ac_cv_var_tzname = yes; then
21257 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
21263 $as_echo_n "checking whether #! works in shell scripts... " >&6; }
21264 if test "${ac_cv_sys_interpreter+set}" = set; then :
21265 $as_echo_n "(cached) " >&6
21271 (SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21272 if test $? -ne 69; then
21273 ac_cv_sys_interpreter=yes
21275 ac_cv_sys_interpreter=no
21279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
21280 $as_echo "$ac_cv_sys_interpreter" >&6; }
21281 interpval=$ac_cv_sys_interpreter
21284 # If the C compiler supports the keyword inline, do nothing. Otherwise
21285 # define inline to __inline__ or __inline if it accepts one of those,
21286 # otherwise define inline to be empty.
21287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
21288 $as_echo_n "checking for inline... " >&6; }
21289 if test "${ac_cv_c_inline+set}" = set; then :
21290 $as_echo_n "(cached) " >&6
21293 for ac_kw in inline __inline__ __inline; do
21294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21295 /* end confdefs.h. */
21296 #ifndef __cplusplus
21298 static $ac_kw foo_t static_foo () {return 0; }
21299 $ac_kw foo_t foo () {return 0; }
21303 if ac_fn_c_try_compile "$LINENO"; then :
21304 ac_cv_c_inline=$ac_kw
21306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21307 test "$ac_cv_c_inline" != no && break
21311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
21312 $as_echo "$ac_cv_c_inline" >&6; }
21314 case $ac_cv_c_inline in
21317 case $ac_cv_c_inline in
21319 *) ac_val=$ac_cv_c_inline;;
21321 cat >>confdefs.h <<_ACEOF
21322 #ifndef __cplusplus
21323 #define inline $ac_val
21330 # If the C compiler supports the keyword restrict, do nothing. Otherwise
21331 # define restrict to __restrict__ or __restrict if it accepts one of those,
21332 # otherwise define restrict to be empty.
21333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
21334 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
21335 if test "${ac_cv_c_restrict+set}" = set; then :
21336 $as_echo_n "(cached) " >&6
21338 ac_cv_c_restrict=no
21339 # The order here caters to the fact that C++ does not require restrict.
21340 for ac_kw in __restrict __restrict__ _Restrict restrict; do
21341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21342 /* end confdefs.h. */
21343 typedef int * int_ptr;
21344 int foo (int_ptr $ac_kw ip) {
21351 int * $ac_kw t = s;
21358 if ac_fn_c_try_compile "$LINENO"; then :
21359 ac_cv_c_restrict=$ac_kw
21361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21362 test "$ac_cv_c_restrict" != no && break
21366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
21367 $as_echo "$ac_cv_c_restrict" >&6; }
21369 case $ac_cv_c_restrict in
21371 no) $as_echo "#define restrict /**/" >>confdefs.h
21373 *) cat >>confdefs.h <<_ACEOF
21374 #define restrict $ac_cv_c_restrict
21380 # If words are stored with the most significant byte first (like
21381 # Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
21382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
21383 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
21384 if test "${ac_cv_c_bigendian+set}" = set; then :
21385 $as_echo_n "(cached) " >&6
21387 ac_cv_c_bigendian=unknown
21388 # See if we're dealing with a universal compiler.
21389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21390 /* end confdefs.h. */
21391 #ifndef __APPLE_CC__
21392 not a universal capable compiler
21397 if ac_fn_c_try_compile "$LINENO"; then :
21399 # Check for potential -arch flags. It is not universal unless
21400 # there are at least two -arch flags with different values.
21403 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21404 if test -n "$ac_prev"; then
21406 i?86 | x86_64 | ppc | ppc64)
21407 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21410 ac_cv_c_bigendian=universal
21416 elif test "x$ac_word" = "x-arch"; then
21421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21422 if test $ac_cv_c_bigendian = unknown; then
21423 # See if sys/param.h defines the BYTE_ORDER macro.
21424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21425 /* end confdefs.h. */
21426 #include <sys/types.h>
21427 #include <sys/param.h>
21432 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
21433 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
21435 bogus endian macros
21442 if ac_fn_c_try_compile "$LINENO"; then :
21443 # It does; now see whether it defined to BIG_ENDIAN or not.
21444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21445 /* end confdefs.h. */
21446 #include <sys/types.h>
21447 #include <sys/param.h>
21452 #if BYTE_ORDER != BIG_ENDIAN
21460 if ac_fn_c_try_compile "$LINENO"; then :
21461 ac_cv_c_bigendian=yes
21463 ac_cv_c_bigendian=no
21465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21469 if test $ac_cv_c_bigendian = unknown; then
21470 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
21471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21472 /* end confdefs.h. */
21473 #include <limits.h>
21478 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
21479 bogus endian macros
21486 if ac_fn_c_try_compile "$LINENO"; then :
21487 # It does; now see whether it defined to _BIG_ENDIAN or not.
21488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21489 /* end confdefs.h. */
21490 #include <limits.h>
21495 #ifndef _BIG_ENDIAN
21503 if ac_fn_c_try_compile "$LINENO"; then :
21504 ac_cv_c_bigendian=yes
21506 ac_cv_c_bigendian=no
21508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21512 if test $ac_cv_c_bigendian = unknown; then
21513 # Compile a test program.
21514 if test "$cross_compiling" = yes; then :
21515 # Try to guess by grepping values from an object file.
21516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21517 /* end confdefs.h. */
21518 short int ascii_mm[] =
21519 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
21520 short int ascii_ii[] =
21521 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
21522 int use_ascii (int i) {
21523 return ascii_mm[i] + ascii_ii[i];
21525 short int ebcdic_ii[] =
21526 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
21527 short int ebcdic_mm[] =
21528 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
21529 int use_ebcdic (int i) {
21530 return ebcdic_mm[i] + ebcdic_ii[i];
21537 return use_ascii (foo) == use_ebcdic (foo);
21542 if ac_fn_c_try_compile "$LINENO"; then :
21543 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
21544 ac_cv_c_bigendian=yes
21546 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
21547 if test "$ac_cv_c_bigendian" = unknown; then
21548 ac_cv_c_bigendian=no
21550 # finding both strings is unlikely to happen, but who knows?
21551 ac_cv_c_bigendian=unknown
21555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21558 /* end confdefs.h. */
21559 $ac_includes_default
21564 /* Are we little or big endian? From Harbison&Steele. */
21568 char c[sizeof (long int)];
21571 return u.c[sizeof (long int) - 1] == 1;
21577 if ac_fn_c_try_run "$LINENO"; then :
21578 ac_cv_c_bigendian=no
21580 ac_cv_c_bigendian=yes
21582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21583 conftest.$ac_objext conftest.beam conftest.$ac_ext
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
21589 $as_echo "$ac_cv_c_bigendian" >&6; }
21590 case $ac_cv_c_bigendian in #(
21592 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
21598 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
21602 as_fn_error "unknown endianness
21603 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
21607 # Define mode_t to a suitable type, if standard headers do not define it.
21608 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
21609 if test "x$ac_cv_type_mode_t" = x""yes; then :
21613 cat >>confdefs.h <<_ACEOF
21620 # Define off_t to a suitable type, if standard headers do not define it.
21621 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21622 if test "x$ac_cv_type_off_t" = x""yes; then :
21626 cat >>confdefs.h <<_ACEOF
21627 #define off_t long int
21633 # Define pid_t to a suitable type, if standard headers do not define it.
21634 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
21635 if test "x$ac_cv_type_pid_t" = x""yes; then :
21639 cat >>confdefs.h <<_ACEOF
21646 # Define size_t to a suitable type, if standard headers do not define it.
21647 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21648 if test "x$ac_cv_type_size_t" = x""yes; then :
21652 cat >>confdefs.h <<_ACEOF
21653 #define size_t unsigned int
21659 # Define ssize_t to a suitable type, if standard headers do not define it.
21660 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
21661 if test "x$ac_cv_type_ssize_t" = x""yes; then :
21665 cat >>confdefs.h <<_ACEOF
21666 #define ssize_t int
21672 # If the C compiler supports a working long double type with more range
21673 # or precision than the double type, define HAVE_LONG_DOUBLE.
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5
21676 $as_echo_n "checking for long double with more range or precision than double... " >&6; }
21677 if test "${ac_cv_type_long_double_wider+set}" = set; then :
21678 $as_echo_n "(cached) " >&6
21680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21681 /* end confdefs.h. */
21683 long double const a[] =
21685 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
21686 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
21691 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
21692 + (x ? f (x) : 'c'));
21698 static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
21699 + (DBL_MANT_DIG < LDBL_MANT_DIG)
21700 - (LDBL_MAX_EXP < DBL_MAX_EXP)
21701 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
21702 && (int) LDBL_EPSILON == 0
21710 if ac_fn_c_try_compile "$LINENO"; then :
21711 ac_cv_type_long_double_wider=yes
21713 ac_cv_type_long_double_wider=no
21715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
21718 $as_echo "$ac_cv_type_long_double_wider" >&6; }
21719 if test $ac_cv_type_long_double_wider = yes; then
21721 $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
21726 # If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
21727 # C compiler predefines it.
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
21729 $as_echo_n "checking whether char is unsigned... " >&6; }
21730 if test "${ac_cv_c_char_unsigned+set}" = set; then :
21731 $as_echo_n "(cached) " >&6
21733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21734 /* end confdefs.h. */
21735 $ac_includes_default
21739 static int test_array [1 - 2 * !(((char) -1) < 0)];
21746 if ac_fn_c_try_compile "$LINENO"; then :
21747 ac_cv_c_char_unsigned=no
21749 ac_cv_c_char_unsigned=yes
21751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
21754 $as_echo "$ac_cv_c_char_unsigned" >&6; }
21755 if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
21756 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
21761 # Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
21762 # The cast to long int works around a bug in the HP C Compiler
21763 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21764 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21765 # This bug is HP SR number 8606223364.
21766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
21767 $as_echo_n "checking size of signed short... " >&6; }
21768 if test "${ac_cv_sizeof_signed_short+set}" = set; then :
21769 $as_echo_n "(cached) " >&6
21771 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
21774 if test "$ac_cv_type_signed_short" = yes; then
21775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21777 { as_fn_set_status 77
21778 as_fn_error "cannot compute sizeof (signed short)
21779 See \`config.log' for more details." "$LINENO" 5; }; }
21781 ac_cv_sizeof_signed_short=0
21786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
21787 $as_echo "$ac_cv_sizeof_signed_short" >&6; }
21791 cat >>confdefs.h <<_ACEOF
21792 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
21797 # Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
21798 # The cast to long int works around a bug in the HP C Compiler
21799 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21800 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21801 # This bug is HP SR number 8606223364.
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
21803 $as_echo_n "checking size of unsigned short... " >&6; }
21804 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
21805 $as_echo_n "(cached) " >&6
21807 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
21810 if test "$ac_cv_type_unsigned_short" = yes; then
21811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21813 { as_fn_set_status 77
21814 as_fn_error "cannot compute sizeof (unsigned short)
21815 See \`config.log' for more details." "$LINENO" 5; }; }
21817 ac_cv_sizeof_unsigned_short=0
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
21823 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
21827 cat >>confdefs.h <<_ACEOF
21828 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
21833 # Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
21834 # The cast to long int works around a bug in the HP C Compiler
21835 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21836 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21837 # This bug is HP SR number 8606223364.
21838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
21839 $as_echo_n "checking size of signed int... " >&6; }
21840 if test "${ac_cv_sizeof_signed_int+set}" = set; then :
21841 $as_echo_n "(cached) " >&6
21843 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then :
21846 if test "$ac_cv_type_signed_int" = yes; then
21847 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21848 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21849 { as_fn_set_status 77
21850 as_fn_error "cannot compute sizeof (signed int)
21851 See \`config.log' for more details." "$LINENO" 5; }; }
21853 ac_cv_sizeof_signed_int=0
21858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
21859 $as_echo "$ac_cv_sizeof_signed_int" >&6; }
21863 cat >>confdefs.h <<_ACEOF
21864 #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
21869 # Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
21870 # The cast to long int works around a bug in the HP C Compiler
21871 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21872 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21873 # This bug is HP SR number 8606223364.
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
21875 $as_echo_n "checking size of unsigned int... " >&6; }
21876 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then :
21877 $as_echo_n "(cached) " >&6
21879 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
21882 if test "$ac_cv_type_unsigned_int" = yes; then
21883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21885 { as_fn_set_status 77
21886 as_fn_error "cannot compute sizeof (unsigned int)
21887 See \`config.log' for more details." "$LINENO" 5; }; }
21889 ac_cv_sizeof_unsigned_int=0
21894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
21895 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
21899 cat >>confdefs.h <<_ACEOF
21900 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
21905 # Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
21906 # The cast to long int works around a bug in the HP C Compiler
21907 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21908 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21909 # This bug is HP SR number 8606223364.
21910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
21911 $as_echo_n "checking size of signed long... " >&6; }
21912 if test "${ac_cv_sizeof_signed_long+set}" = set; then :
21913 $as_echo_n "(cached) " >&6
21915 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then :
21918 if test "$ac_cv_type_signed_long" = yes; then
21919 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21920 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21921 { as_fn_set_status 77
21922 as_fn_error "cannot compute sizeof (signed long)
21923 See \`config.log' for more details." "$LINENO" 5; }; }
21925 ac_cv_sizeof_signed_long=0
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
21931 $as_echo "$ac_cv_sizeof_signed_long" >&6; }
21935 cat >>confdefs.h <<_ACEOF
21936 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
21941 # Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
21942 # The cast to long int works around a bug in the HP C Compiler
21943 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21944 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21945 # This bug is HP SR number 8606223364.
21946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
21947 $as_echo_n "checking size of unsigned long... " >&6; }
21948 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
21949 $as_echo_n "(cached) " >&6
21951 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
21954 if test "$ac_cv_type_unsigned_long" = yes; then
21955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21957 { as_fn_set_status 77
21958 as_fn_error "cannot compute sizeof (unsigned long)
21959 See \`config.log' for more details." "$LINENO" 5; }; }
21961 ac_cv_sizeof_unsigned_long=0
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
21967 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
21971 cat >>confdefs.h <<_ACEOF
21972 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
21977 # Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
21978 # 'signed long long' is not supported then the value defined is zero.
21979 # The cast to long int works around a bug in the HP C Compiler
21980 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21981 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21982 # This bug is HP SR number 8606223364.
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
21984 $as_echo_n "checking size of signed long long... " >&6; }
21985 if test "${ac_cv_sizeof_signed_long_long+set}" = set; then :
21986 $as_echo_n "(cached) " >&6
21988 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
21991 if test "$ac_cv_type_signed_long_long" = yes; then
21992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21994 { as_fn_set_status 77
21995 as_fn_error "cannot compute sizeof (signed long long)
21996 See \`config.log' for more details." "$LINENO" 5; }; }
21998 ac_cv_sizeof_signed_long_long=0
22003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
22004 $as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
22008 cat >>confdefs.h <<_ACEOF
22009 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
22014 # Obtain size of a 'unsigned long long' and define as
22015 # SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
22016 # supported then the value defined is zero.
22017 # The cast to long int works around a bug in the HP C Compiler
22018 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22019 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22020 # This bug is HP SR number 8606223364.
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
22022 $as_echo_n "checking size of unsigned long long... " >&6; }
22023 if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then :
22024 $as_echo_n "(cached) " >&6
22026 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
22029 if test "$ac_cv_type_unsigned_long_long" = yes; then
22030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22031 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22032 { as_fn_set_status 77
22033 as_fn_error "cannot compute sizeof (unsigned long long)
22034 See \`config.log' for more details." "$LINENO" 5; }; }
22036 ac_cv_sizeof_unsigned_long_long=0
22041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
22042 $as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
22046 cat >>confdefs.h <<_ACEOF
22047 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
22052 # Obtain size of off_t and define as SIZEOF_OFF_T
22053 # The cast to long int works around a bug in the HP C Compiler
22054 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22055 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22056 # This bug is HP SR number 8606223364.
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
22058 $as_echo_n "checking size of off_t... " >&6; }
22059 if test "${ac_cv_sizeof_off_t+set}" = set; then :
22060 $as_echo_n "(cached) " >&6
22062 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
22065 if test "$ac_cv_type_off_t" = yes; then
22066 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22068 { as_fn_set_status 77
22069 as_fn_error "cannot compute sizeof (off_t)
22070 See \`config.log' for more details." "$LINENO" 5; }; }
22072 ac_cv_sizeof_off_t=0
22077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
22078 $as_echo "$ac_cv_sizeof_off_t" >&6; }
22082 cat >>confdefs.h <<_ACEOF
22083 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
22088 # Obtain size of size_t and define as SIZEOF_SIZE_T
22089 # The cast to long int works around a bug in the HP C Compiler
22090 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22091 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22092 # This bug is HP SR number 8606223364.
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
22094 $as_echo_n "checking size of size_t... " >&6; }
22095 if test "${ac_cv_sizeof_size_t+set}" = set; then :
22096 $as_echo_n "(cached) " >&6
22098 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
22101 if test "$ac_cv_type_size_t" = yes; then
22102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22104 { as_fn_set_status 77
22105 as_fn_error "cannot compute sizeof (size_t)
22106 See \`config.log' for more details." "$LINENO" 5; }; }
22108 ac_cv_sizeof_size_t=0
22113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
22114 $as_echo "$ac_cv_sizeof_size_t" >&6; }
22118 cat >>confdefs.h <<_ACEOF
22119 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
22124 # Obtain size of ssize_t and define as SIZEOF_SSIZE_T
22125 # The cast to long int works around a bug in the HP C Compiler
22126 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22127 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22128 # This bug is HP SR number 8606223364.
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
22130 $as_echo_n "checking size of ssize_t... " >&6; }
22131 if test "${ac_cv_sizeof_ssize_t+set}" = set; then :
22132 $as_echo_n "(cached) " >&6
22134 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
22137 if test "$ac_cv_type_ssize_t" = yes; then
22138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22139 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22140 { as_fn_set_status 77
22141 as_fn_error "cannot compute sizeof (ssize_t)
22142 See \`config.log' for more details." "$LINENO" 5; }; }
22144 ac_cv_sizeof_ssize_t=0
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
22150 $as_echo "$ac_cv_sizeof_ssize_t" >&6; }
22154 cat >>confdefs.h <<_ACEOF
22155 #define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
22160 # Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
22161 # The cast to long int works around a bug in the HP C Compiler
22162 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22163 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22164 # This bug is HP SR number 8606223364.
22165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
22166 $as_echo_n "checking size of unsigned int*... " >&6; }
22167 if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then :
22168 $as_echo_n "(cached) " >&6
22170 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$ac_includes_default"; then :
22173 if test "$ac_cv_type_unsigned_intp" = yes; then
22174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22175 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22176 { as_fn_set_status 77
22177 as_fn_error "cannot compute sizeof (unsigned int*)
22178 See \`config.log' for more details." "$LINENO" 5; }; }
22180 ac_cv_sizeof_unsigned_intp=0
22185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
22186 $as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
22190 cat >>confdefs.h <<_ACEOF
22191 #define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
22197 # Compute sized types for current CPU and compiler options.
22200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
22201 $as_echo_n "checking for signed 8-bit type... " >&6; }
22202 INT8_T='signed char'
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
22204 $as_echo "$INT8_T" >&6; }
22207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
22208 $as_echo_n "checking for unsigned 8-bit type... " >&6; }
22209 UINT8_T='unsigned char'
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
22211 $as_echo "$UINT8_T" >&6; }
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
22215 $as_echo_n "checking for signed 16-bit type... " >&6; }
22216 INT16_T='signed short'
22217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
22218 $as_echo "$INT16_T" >&6; }
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
22222 $as_echo_n "checking for unsigned 16-bit type... " >&6; }
22223 UINT16_T='unsigned short'
22224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
22225 $as_echo "$UINT16_T" >&6; }
22228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
22229 $as_echo_n "checking for signed 32-bit type... " >&6; }
22231 if test $ac_cv_sizeof_signed_int -eq 4; then
22232 INT32_T='signed int'
22233 elif test $ac_cv_sizeof_signed_long -eq 4; then
22234 INT32_T='signed long'
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
22237 $as_echo "$INT32_T" >&6; }
22240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
22241 $as_echo_n "checking for unsigned 32-bit type... " >&6; }
22243 if test $ac_cv_sizeof_unsigned_int -eq 4; then
22244 UINT32_T='unsigned int'
22245 elif test $ac_cv_sizeof_unsigned_long -eq 4; then
22246 UINT32_T='unsigned long'
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
22249 $as_echo "$UINT32_T" >&6; }
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
22253 $as_echo_n "checking for signed 64-bit type... " >&6; }
22255 if test $ac_cv_sizeof_signed_long -eq 8; then
22256 INT64_T='signed long'
22257 elif test $ac_cv_sizeof_signed_long_long -eq 8; then
22258 INT64_T='signed long long'
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
22261 $as_echo "$INT64_T" >&6; }
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
22265 $as_echo_n "checking for unsigned 64-bit type... " >&6; }
22267 if test $ac_cv_sizeof_unsigned_long -eq 8; then
22268 UINT64_T='unsigned long'
22269 elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
22270 UINT64_T='unsigned long long'
22272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
22273 $as_echo "$UINT64_T" >&6; }
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
22277 $as_echo_n "checking for unsigned maximum type... " >&6; }
22279 if test "$UINT64_T" != 'none'; then
22280 UINTMAX_T=$UINT64_T
22281 elif test "$UINT32_T" != 'none'; then
22282 UINTMAX_T=$UINT32_T
22284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTMAX_T" >&5
22285 $as_echo "$UINTMAX_T" >&6; }
22288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
22289 $as_echo_n "checking for pointer difference type... " >&6; }
22291 if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
22292 UINTPTR_T='unsigned long'
22293 elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
22294 UINTPTR_T='unsigned long long'
22296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINTPTR_T" >&5
22297 $as_echo "$UINTPTR_T" >&6; }
22300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
22301 $as_echo_n "checking whether our compiler supports __func__... " >&6; }
22302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22303 /* end confdefs.h. */
22308 { const char *func = __func__; return(func != 0 ? 0 : 1); }
22313 if ac_fn_c_try_compile "$LINENO"; then :
22314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22315 $as_echo "yes" >&6; }
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22318 $as_echo "no" >&6; }
22319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
22320 $as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
22321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22322 /* end confdefs.h. */
22327 { const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
22332 if ac_fn_c_try_compile "$LINENO"; then :
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22334 $as_echo "yes" >&6; }
22336 $as_echo "#define __func__ __FUNCTION__" >>confdefs.h
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22340 $as_echo "no" >&6; }
22342 $as_echo "#define __func__ __FILE__" >>confdefs.h
22345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22351 # Check for functions
22354 for ac_header in stdlib.h unistd.h
22356 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22357 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22358 eval as_val=\$$as_ac_Header
22359 if test "x$as_val" = x""yes; then :
22360 cat >>confdefs.h <<_ACEOF
22361 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22368 for ac_func in getpagesize
22370 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22371 if test "x$ac_cv_func_getpagesize" = x""yes; then :
22372 cat >>confdefs.h <<_ACEOF
22373 #define HAVE_GETPAGESIZE 1
22379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
22380 $as_echo_n "checking for working mmap file i/o... " >&6; }
22381 if test "${magick_cv_func_mmap_fileio+set}" = set; then :
22382 $as_echo_n "(cached) " >&6
22384 if test "$cross_compiling" = yes; then :
22385 magick_cv_func_mmap_fileio=no
22387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22388 /* end confdefs.h. */
22389 $ac_includes_default
22390 /* malloc might have been renamed as rpl_malloc. */
22394 This test is derived from GNU Autoconf's similar macro.
22395 The purpose of this test is to verify that files may be memory
22396 mapped, and that memory mapping and file I/O are coherent.
22398 The test creates a test file, memory maps the file, updates
22399 the file using the memory map, and then reads the file using
22400 file I/O to verify that the file contains the updates.
22404 #include <sys/mman.h>
22406 #if !STDC_HEADERS && !HAVE_STDLIB_H
22410 /* This mess was copied from the GNU getpagesize.h. */
22411 #if !HAVE_GETPAGESIZE
22412 /* Assume that all systems that can run configure have sys/param.h. */
22413 # if !HAVE_SYS_PARAM_H
22414 # define HAVE_SYS_PARAM_H 1
22417 # ifdef _SC_PAGESIZE
22418 # define getpagesize() sysconf(_SC_PAGESIZE)
22419 # else /* no _SC_PAGESIZE */
22420 # if HAVE_SYS_PARAM_H
22421 # include <sys/param.h>
22422 # ifdef EXEC_PAGESIZE
22423 # define getpagesize() EXEC_PAGESIZE
22424 # else /* no EXEC_PAGESIZE */
22426 # define getpagesize() NBPG * CLSIZE
22429 # endif /* no CLSIZE */
22430 # else /* no NBPG */
22432 # define getpagesize() NBPC
22433 # else /* no NBPC */
22435 # define getpagesize() PAGESIZE
22436 # endif /* PAGESIZE */
22437 # endif /* no NBPC */
22438 # endif /* no NBPG */
22439 # endif /* no EXEC_PAGESIZE */
22440 # else /* no HAVE_SYS_PARAM_H */
22441 # define getpagesize() 8192 /* punt totally */
22442 # endif /* no HAVE_SYS_PARAM_H */
22443 # endif /* no _SC_PAGESIZE */
22445 #endif /* no HAVE_GETPAGESIZE */
22450 char *data, *data2, *data3;
22454 pagesize = getpagesize ();
22456 /* First, make a file with some known garbage in it. */
22457 data = (char *) malloc (pagesize);
22460 for (i = 0; i < pagesize; ++i)
22461 *(data + i) = rand ();
22463 fd = creat ("conftest.mmap", 0600);
22466 if (write (fd, data, pagesize) != pagesize)
22470 /* Mmap the file as read/write/shared and verify that we see the
22472 fd = open ("conftest.mmap", O_RDWR);
22475 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
22478 for (i = 0; i < pagesize; ++i)
22479 if (*(data + i) != *(data2 + i))
22482 /* Finally, make sure that changes to the mapped area
22483 percolate back to the file as seen by read(). */
22484 for (i = 0; i < pagesize; ++i)
22485 *(data2 + i) = *(data2 + i) + 1;
22486 data3 = (char *) malloc (pagesize);
22489 if (read (fd, data3, pagesize) != pagesize)
22491 for (i = 0; i < pagesize; ++i)
22492 if (*(data2 + i) != *(data3 + i))
22498 if ac_fn_c_try_run "$LINENO"; then :
22499 magick_cv_func_mmap_fileio=yes
22501 magick_cv_func_mmap_fileio=no
22503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22504 conftest.$ac_objext conftest.beam conftest.$ac_ext
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
22509 $as_echo "$magick_cv_func_mmap_fileio" >&6; }
22510 if test $magick_cv_func_mmap_fileio = yes; then
22512 $as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
22515 rm -f conftest.mmap
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
22518 $as_echo_n "checking whether closedir returns void... " >&6; }
22519 if test "${ac_cv_func_closedir_void+set}" = set; then :
22520 $as_echo_n "(cached) " >&6
22522 if test "$cross_compiling" = yes; then :
22523 ac_cv_func_closedir_void=yes
22525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22526 /* end confdefs.h. */
22527 $ac_includes_default
22528 #include <$ac_header_dirent>
22529 #ifndef __cplusplus
22536 return closedir (opendir (".")) != 0;
22541 if ac_fn_c_try_run "$LINENO"; then :
22542 ac_cv_func_closedir_void=no
22544 ac_cv_func_closedir_void=yes
22546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22547 conftest.$ac_objext conftest.beam conftest.$ac_ext
22551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
22552 $as_echo "$ac_cv_func_closedir_void" >&6; }
22553 if test $ac_cv_func_closedir_void = yes; then
22555 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
22562 for ac_header in $ac_header_list
22564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22565 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
22567 eval as_val=\$$as_ac_Header
22568 if test "x$as_val" = x""yes; then :
22569 cat >>confdefs.h <<_ACEOF
22570 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22584 for ac_func in getpagesize
22586 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
22587 if test "x$ac_cv_func_getpagesize" = x""yes; then :
22588 cat >>confdefs.h <<_ACEOF
22589 #define HAVE_GETPAGESIZE 1
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
22596 $as_echo_n "checking for working mmap... " >&6; }
22597 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
22598 $as_echo_n "(cached) " >&6
22600 if test "$cross_compiling" = yes; then :
22601 ac_cv_func_mmap_fixed_mapped=no
22603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22604 /* end confdefs.h. */
22605 $ac_includes_default
22606 /* malloc might have been renamed as rpl_malloc. */
22609 /* Thanks to Mike Haertel and Jim Avera for this test.
22610 Here is a matrix of mmap possibilities:
22611 mmap private not fixed
22612 mmap private fixed at somewhere currently unmapped
22613 mmap private fixed at somewhere already mapped
22614 mmap shared not fixed
22615 mmap shared fixed at somewhere currently unmapped
22616 mmap shared fixed at somewhere already mapped
22617 For private mappings, we should verify that changes cannot be read()
22618 back from the file, nor mmap's back from the file at a different
22619 address. (There have been systems where private was not correctly
22620 implemented like the infamous i386 svr4.0, and systems where the
22621 VM page cache was not coherent with the file system buffer cache
22622 like early versions of FreeBSD and possibly contemporary NetBSD.)
22623 For shared mappings, we should conversely verify that changes get
22624 propagated back to all the places they're supposed to be.
22626 Grep wants private fixed already mapped.
22627 The main things grep needs to know about mmap are:
22628 * does it exist and is it safe to write into the mmap'd area
22629 * how to use it (BSD variants) */
22632 #include <sys/mman.h>
22634 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
22638 /* This mess was copied from the GNU getpagesize.h. */
22639 #ifndef HAVE_GETPAGESIZE
22640 # ifdef _SC_PAGESIZE
22641 # define getpagesize() sysconf(_SC_PAGESIZE)
22642 # else /* no _SC_PAGESIZE */
22643 # ifdef HAVE_SYS_PARAM_H
22644 # include <sys/param.h>
22645 # ifdef EXEC_PAGESIZE
22646 # define getpagesize() EXEC_PAGESIZE
22647 # else /* no EXEC_PAGESIZE */
22649 # define getpagesize() NBPG * CLSIZE
22652 # endif /* no CLSIZE */
22653 # else /* no NBPG */
22655 # define getpagesize() NBPC
22656 # else /* no NBPC */
22658 # define getpagesize() PAGESIZE
22659 # endif /* PAGESIZE */
22660 # endif /* no NBPC */
22661 # endif /* no NBPG */
22662 # endif /* no EXEC_PAGESIZE */
22663 # else /* no HAVE_SYS_PARAM_H */
22664 # define getpagesize() 8192 /* punt totally */
22665 # endif /* no HAVE_SYS_PARAM_H */
22666 # endif /* no _SC_PAGESIZE */
22668 #endif /* no HAVE_GETPAGESIZE */
22673 char *data, *data2, *data3;
22674 const char *cdata2;
22678 pagesize = getpagesize ();
22680 /* First, make a file with some known garbage in it. */
22681 data = (char *) malloc (pagesize);
22684 for (i = 0; i < pagesize; ++i)
22685 *(data + i) = rand ();
22687 fd = creat ("conftest.mmap", 0600);
22690 if (write (fd, data, pagesize) != pagesize)
22694 /* Next, check that the tail of a page is zero-filled. File must have
22695 non-zero length, otherwise we risk SIGBUS for entire page. */
22696 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
22700 if (write (fd2, cdata2, 1) != 1)
22702 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
22703 if (data2 == MAP_FAILED)
22705 for (i = 0; i < pagesize; ++i)
22709 if (munmap (data2, pagesize))
22712 /* Next, try to mmap the file at a fixed address which already has
22713 something else allocated at it. If we can, also make sure that
22714 we see the same garbage. */
22715 fd = open ("conftest.mmap", O_RDWR);
22718 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
22719 MAP_PRIVATE | MAP_FIXED, fd, 0L))
22721 for (i = 0; i < pagesize; ++i)
22722 if (*(data + i) != *(data2 + i))
22725 /* Finally, make sure that changes to the mapped area do not
22726 percolate back to the file as seen by read(). (This is a bug on
22727 some variants of i386 svr4.0.) */
22728 for (i = 0; i < pagesize; ++i)
22729 *(data2 + i) = *(data2 + i) + 1;
22730 data3 = (char *) malloc (pagesize);
22733 if (read (fd, data3, pagesize) != pagesize)
22735 for (i = 0; i < pagesize; ++i)
22736 if (*(data + i) != *(data3 + i))
22742 if ac_fn_c_try_run "$LINENO"; then :
22743 ac_cv_func_mmap_fixed_mapped=yes
22745 ac_cv_func_mmap_fixed_mapped=no
22747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22748 conftest.$ac_objext conftest.beam conftest.$ac_ext
22752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
22753 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
22754 if test $ac_cv_func_mmap_fixed_mapped = yes; then
22756 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
22759 rm -f conftest.mmap conftest.txt
22761 for ac_header in vfork.h
22763 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
22764 if test "x$ac_cv_header_vfork_h" = x""yes; then :
22765 cat >>confdefs.h <<_ACEOF
22766 #define HAVE_VFORK_H 1
22773 for ac_func in fork vfork
22775 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22776 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22777 eval as_val=\$$as_ac_var
22778 if test "x$as_val" = x""yes; then :
22779 cat >>confdefs.h <<_ACEOF
22780 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22786 if test "x$ac_cv_func_fork" = xyes; then
22787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
22788 $as_echo_n "checking for working fork... " >&6; }
22789 if test "${ac_cv_func_fork_works+set}" = set; then :
22790 $as_echo_n "(cached) " >&6
22792 if test "$cross_compiling" = yes; then :
22793 ac_cv_func_fork_works=cross
22795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22796 /* end confdefs.h. */
22797 $ac_includes_default
22802 /* By Ruediger Kuhlmann. */
22803 return fork () < 0;
22809 if ac_fn_c_try_run "$LINENO"; then :
22810 ac_cv_func_fork_works=yes
22812 ac_cv_func_fork_works=no
22814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22815 conftest.$ac_objext conftest.beam conftest.$ac_ext
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
22820 $as_echo "$ac_cv_func_fork_works" >&6; }
22823 ac_cv_func_fork_works=$ac_cv_func_fork
22825 if test "x$ac_cv_func_fork_works" = xcross; then
22827 *-*-amigaos* | *-*-msdosdjgpp*)
22828 # Override, as these systems have only a dummy fork() stub
22829 ac_cv_func_fork_works=no
22832 ac_cv_func_fork_works=yes
22835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22836 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22838 ac_cv_func_vfork_works=$ac_cv_func_vfork
22839 if test "x$ac_cv_func_vfork" = xyes; then
22840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
22841 $as_echo_n "checking for working vfork... " >&6; }
22842 if test "${ac_cv_func_vfork_works+set}" = set; then :
22843 $as_echo_n "(cached) " >&6
22845 if test "$cross_compiling" = yes; then :
22846 ac_cv_func_vfork_works=cross
22848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22849 /* end confdefs.h. */
22850 /* Thanks to Paul Eggert for this test. */
22851 $ac_includes_default
22852 #include <sys/wait.h>
22853 #ifdef HAVE_VFORK_H
22854 # include <vfork.h>
22856 /* On some sparc systems, changes by the child to local and incoming
22857 argument registers are propagated back to the parent. The compiler
22858 is told about this with #include <vfork.h>, but some compilers
22859 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22860 static variable whose address is put into a register that is
22861 clobbered by the vfork. */
22864 sparc_address_test (int arg)
22866 sparc_address_test (arg) int arg;
22869 static pid_t child;
22887 pid_t parent = getpid ();
22890 sparc_address_test (0);
22895 /* Here is another test for sparc vfork register problems. This
22896 test uses lots of local variables, at least as many local
22897 variables as main has allocated so far including compiler
22898 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22899 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22900 reuse the register of parent for one of the local variables,
22901 since it will think that parent can't possibly be used any more
22902 in this routine. Assigning to the local variable will thus
22903 munge parent in the parent process. */
22905 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22906 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22907 /* Convince the compiler that p..p7 are live; otherwise, it might
22908 use the same hardware register for all 8 local variables. */
22909 if (p != p1 || p != p2 || p != p3 || p != p4
22910 || p != p5 || p != p6 || p != p7)
22913 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22914 from child file descriptors. If the child closes a descriptor
22915 before it execs or exits, this munges the parent's descriptor
22916 as well. Test for this by closing stdout in the child. */
22917 _exit(close(fileno(stdout)) != 0);
22922 while (wait(&status) != child)
22925 /* Was there some problem with vforking? */
22928 /* Did the child fail? (This shouldn't happen.) */
22931 /* Did the vfork/compiler bug occur? */
22932 || parent != getpid()
22934 /* Did the file descriptor bug occur? */
22935 || fstat(fileno(stdout), &st) != 0
22940 if ac_fn_c_try_run "$LINENO"; then :
22941 ac_cv_func_vfork_works=yes
22943 ac_cv_func_vfork_works=no
22945 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22946 conftest.$ac_objext conftest.beam conftest.$ac_ext
22950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
22951 $as_echo "$ac_cv_func_vfork_works" >&6; }
22954 if test "x$ac_cv_func_fork_works" = xcross; then
22955 ac_cv_func_vfork_works=$ac_cv_func_vfork
22956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22957 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22960 if test "x$ac_cv_func_vfork_works" = xyes; then
22962 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
22966 $as_echo "#define vfork fork" >>confdefs.h
22969 if test "x$ac_cv_func_fork_works" = xyes; then
22971 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
22975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
22976 $as_echo_n "checking for working memcmp... " >&6; }
22977 if test "${ac_cv_func_memcmp_working+set}" = set; then :
22978 $as_echo_n "(cached) " >&6
22980 if test "$cross_compiling" = yes; then :
22981 ac_cv_func_memcmp_working=no
22983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22984 /* end confdefs.h. */
22985 $ac_includes_default
22990 /* Some versions of memcmp are not 8-bit clean. */
22991 char c0 = '\100', c1 = '\200', c2 = '\201';
22992 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22995 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22996 or more and with at least one buffer not starting on a 4-byte boundary.
22997 William Lewis provided this test program. */
23002 for (i = 0; i < 4; i++)
23006 strcpy (a, "--------01111111");
23007 strcpy (b, "--------10000000");
23008 if (memcmp (a, b, 16) >= 0)
23018 if ac_fn_c_try_run "$LINENO"; then :
23019 ac_cv_func_memcmp_working=yes
23021 ac_cv_func_memcmp_working=no
23023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23024 conftest.$ac_objext conftest.beam conftest.$ac_ext
23028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
23029 $as_echo "$ac_cv_func_memcmp_working" >&6; }
23030 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
23031 *" memcmp.$ac_objext "* ) ;;
23032 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
23037 for ac_header in sys/select.h sys/socket.h
23039 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23040 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23041 eval as_val=\$$as_ac_Header
23042 if test "x$as_val" = x""yes; then :
23043 cat >>confdefs.h <<_ACEOF
23044 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
23052 $as_echo_n "checking types of arguments for select... " >&6; }
23053 if test "${ac_cv_func_select_args+set}" = set; then :
23054 $as_echo_n "(cached) " >&6
23056 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
23057 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
23058 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
23059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23060 /* end confdefs.h. */
23061 $ac_includes_default
23062 #ifdef HAVE_SYS_SELECT_H
23063 # include <sys/select.h>
23065 #ifdef HAVE_SYS_SOCKET_H
23066 # include <sys/socket.h>
23072 extern int select ($ac_arg1,
23073 $ac_arg234, $ac_arg234, $ac_arg234,
23079 if ac_fn_c_try_compile "$LINENO"; then :
23080 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
23082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23086 # Provide a safe default value.
23087 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
23090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
23091 $as_echo "$ac_cv_func_select_args" >&6; }
23092 ac_save_IFS=$IFS; IFS=','
23093 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
23097 cat >>confdefs.h <<_ACEOF
23098 #define SELECT_TYPE_ARG1 $1
23102 cat >>confdefs.h <<_ACEOF
23103 #define SELECT_TYPE_ARG234 ($2)
23107 cat >>confdefs.h <<_ACEOF
23108 #define SELECT_TYPE_ARG5 ($3)
23113 if test "${ac_cv_func_setvbuf_reversed+set}" = set; then :
23114 $as_echo_n "(cached) " >&6
23116 ac_cv_func_setvbuf_reversed=no
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
23121 $as_echo_n "checking return type of signal handlers... " >&6; }
23122 if test "${ac_cv_type_signal+set}" = set; then :
23123 $as_echo_n "(cached) " >&6
23125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23126 /* end confdefs.h. */
23127 #include <sys/types.h>
23128 #include <signal.h>
23133 return *(signal (0, 0)) (0) == 1;
23138 if ac_fn_c_try_compile "$LINENO"; then :
23139 ac_cv_type_signal=int
23141 ac_cv_type_signal=void
23143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
23146 $as_echo "$ac_cv_type_signal" >&6; }
23148 cat >>confdefs.h <<_ACEOF
23149 #define RETSIGTYPE $ac_cv_type_signal
23153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
23154 $as_echo_n "checking for working strtod... " >&6; }
23155 if test "${ac_cv_func_strtod+set}" = set; then :
23156 $as_echo_n "(cached) " >&6
23158 if test "$cross_compiling" = yes; then :
23159 ac_cv_func_strtod=no
23161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23162 /* end confdefs.h. */
23164 $ac_includes_default
23172 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
23173 char *string = " +69";
23176 value = strtod (string, &term);
23177 if (value != 69 || term != (string + 4))
23182 /* Under Solaris 2.4, strtod returns the wrong value for the
23183 terminating character under some conditions. */
23184 char *string = "NaN";
23186 strtod (string, &term);
23187 if (term != string && *(term - 1) == 0)
23194 if ac_fn_c_try_run "$LINENO"; then :
23195 ac_cv_func_strtod=yes
23197 ac_cv_func_strtod=no
23199 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23200 conftest.$ac_objext conftest.beam conftest.$ac_ext
23204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
23205 $as_echo "$ac_cv_func_strtod" >&6; }
23206 if test $ac_cv_func_strtod = no; then
23207 case " $LIBOBJS " in
23208 *" strtod.$ac_objext "* ) ;;
23209 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
23213 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
23214 if test "x$ac_cv_func_pow" = x""yes; then :
23218 if test $ac_cv_func_pow = no; then
23219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
23220 $as_echo_n "checking for pow in -lm... " >&6; }
23221 if test "${ac_cv_lib_m_pow+set}" = set; then :
23222 $as_echo_n "(cached) " >&6
23224 ac_check_lib_save_LIBS=$LIBS
23226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23227 /* end confdefs.h. */
23229 /* Override any GCC internal prototype to avoid an error.
23230 Use char because int might match the return type of a GCC
23231 builtin and then its argument prototype would still apply. */
23244 if ac_fn_c_try_link "$LINENO"; then :
23245 ac_cv_lib_m_pow=yes
23249 rm -f core conftest.err conftest.$ac_objext \
23250 conftest$ac_exeext conftest.$ac_ext
23251 LIBS=$ac_check_lib_save_LIBS
23253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
23254 $as_echo "$ac_cv_lib_m_pow" >&6; }
23255 if test "x$ac_cv_lib_m_pow" = x""yes; then :
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
23259 $as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
23266 for ac_func in vprintf
23268 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
23269 if test "x$ac_cv_func_vprintf" = x""yes; then :
23270 cat >>confdefs.h <<_ACEOF
23271 #define HAVE_VPRINTF 1
23274 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
23275 if test "x$ac_cv_func__doprnt" = x""yes; then :
23277 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
23287 # Find math library
23290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
23291 $as_echo_n "checking for sqrt in -lm... " >&6; }
23292 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
23293 $as_echo_n "(cached) " >&6
23295 ac_check_lib_save_LIBS=$LIBS
23297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23298 /* end confdefs.h. */
23300 /* Override any GCC internal prototype to avoid an error.
23301 Use char because int might match the return type of a GCC
23302 builtin and then its argument prototype would still apply. */
23315 if ac_fn_c_try_link "$LINENO"; then :
23316 ac_cv_lib_m_sqrt=yes
23318 ac_cv_lib_m_sqrt=no
23320 rm -f core conftest.err conftest.$ac_objext \
23321 conftest$ac_exeext conftest.$ac_ext
23322 LIBS=$ac_check_lib_save_LIBS
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
23325 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
23326 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
23330 LIBS="$MATH_LIBS $LIBS"
23333 for ac_func in atoll atexit cimag clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr usleep utime vsprintf vsnprintf waitpid _wfopen _wstat
23335 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23336 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23337 eval as_val=\$$as_ac_var
23338 if test "x$as_val" = x""yes; then :
23339 cat >>confdefs.h <<_ACEOF
23340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23348 # Check for clock_gettime().
23350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
23351 $as_echo_n "checking for library containing clock_gettime... " >&6; }
23352 if test "${ac_cv_search_clock_gettime+set}" = set; then :
23353 $as_echo_n "(cached) " >&6
23355 ac_func_search_save_LIBS=$LIBS
23356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23357 /* end confdefs.h. */
23359 /* Override any GCC internal prototype to avoid an error.
23360 Use char because int might match the return type of a GCC
23361 builtin and then its argument prototype would still apply. */
23365 char clock_gettime ();
23369 return clock_gettime ();
23374 for ac_lib in '' rt; do
23375 if test -z "$ac_lib"; then
23376 ac_res="none required"
23379 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
23381 if ac_fn_c_try_link "$LINENO"; then :
23382 ac_cv_search_clock_gettime=$ac_res
23384 rm -f core conftest.err conftest.$ac_objext \
23386 if test "${ac_cv_search_clock_gettime+set}" = set; then :
23390 if test "${ac_cv_search_clock_gettime+set}" = set; then :
23393 ac_cv_search_clock_gettime=no
23395 rm conftest.$ac_ext
23396 LIBS=$ac_func_search_save_LIBS
23398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
23399 $as_echo "$ac_cv_search_clock_gettime" >&6; }
23400 ac_res=$ac_cv_search_clock_gettime
23401 if test "$ac_res" != no; then :
23402 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23405 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
23407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
23408 $as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
23409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23410 /* end confdefs.h. */
23415 clockid_t clockType = CLOCK_REALTIME;
23420 if ac_fn_c_try_compile "$LINENO"; then :
23422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23423 $as_echo "yes" >&6; }
23425 $as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
23429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23430 $as_echo "no" >&6; }
23433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23437 for ac_func in gettimeofday ftime
23439 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23440 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23441 eval as_val=\$$as_ac_var
23442 if test "x$as_val" = x""yes; then :
23443 cat >>confdefs.h <<_ACEOF
23444 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23457 # Check for function prototypes
23461 ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
23462 #include <unistd.h>
23464 if test "x$ac_cv_have_decl_pread" = x""yes; then :
23470 cat >>confdefs.h <<_ACEOF
23471 #define HAVE_DECL_PREAD $ac_have_decl
23473 ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
23474 #include <unistd.h>
23476 if test "x$ac_cv_have_decl_pwrite" = x""yes; then :
23482 cat >>confdefs.h <<_ACEOF
23483 #define HAVE_DECL_PWRITE $ac_have_decl
23487 ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
23488 #include <strings.h>
23490 if test "x$ac_cv_have_decl_strlcpy" = x""yes; then :
23496 cat >>confdefs.h <<_ACEOF
23497 #define HAVE_DECL_STRLCPY $ac_have_decl
23501 ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
23503 #include <stdarg.h>
23505 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then :
23511 cat >>confdefs.h <<_ACEOF
23512 #define HAVE_DECL_VSNPRINTF $ac_have_decl
23518 # C++ Support Tests (For Magick++)
23521 have_magick_plus_plus='no'
23522 if test "$with_magick_plus_plus" = 'yes'; then
23526 ac_cpp='$CXXCPP $CPPFLAGS'
23527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23532 # Full set of headers used...
23533 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
23534 # functional iomanip iosfwd iostream iterator list string strstream utility
23536 ac_cpp='$CXXCPP $CPPFLAGS'
23537 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23538 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23539 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23542 ac_cpp='$CXXCPP $CPPFLAGS'
23543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23546 if test -z "$CXX"; then
23547 if test -n "$CCC"; then
23550 if test -n "$ac_tool_prefix"; then
23551 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23554 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23556 $as_echo_n "checking for $ac_word... " >&6; }
23557 if test "${ac_cv_prog_CXX+set}" = set; then :
23558 $as_echo_n "(cached) " >&6
23560 if test -n "$CXX"; then
23561 ac_cv_prog_CXX="$CXX" # Let the user override the test.
23563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23564 for as_dir in $PATH
23567 test -z "$as_dir" && as_dir=.
23568 for ac_exec_ext in '' $ac_executable_extensions; do
23569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23570 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
23571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23580 CXX=$ac_cv_prog_CXX
23581 if test -n "$CXX"; then
23582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
23583 $as_echo "$CXX" >&6; }
23585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23586 $as_echo "no" >&6; }
23590 test -n "$CXX" && break
23593 if test -z "$CXX"; then
23595 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
23597 # Extract the first word of "$ac_prog", so it can be a program name with args.
23598 set dummy $ac_prog; ac_word=$2
23599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23600 $as_echo_n "checking for $ac_word... " >&6; }
23601 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
23602 $as_echo_n "(cached) " >&6
23604 if test -n "$ac_ct_CXX"; then
23605 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
23607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23608 for as_dir in $PATH
23611 test -z "$as_dir" && as_dir=.
23612 for ac_exec_ext in '' $ac_executable_extensions; do
23613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23614 ac_cv_prog_ac_ct_CXX="$ac_prog"
23615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23624 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
23625 if test -n "$ac_ct_CXX"; then
23626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
23627 $as_echo "$ac_ct_CXX" >&6; }
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23630 $as_echo "no" >&6; }
23634 test -n "$ac_ct_CXX" && break
23637 if test "x$ac_ct_CXX" = x; then
23640 case $cross_compiling:$ac_tool_warned in
23642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23644 ac_tool_warned=yes ;;
23652 # Provide some information about the compiler.
23653 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
23656 for ac_option in --version -v -V -qversion; do
23657 { { ac_try="$ac_compiler $ac_option >&5"
23658 case "(($ac_try" in
23659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23660 *) ac_try_echo=$ac_try;;
23662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
23663 $as_echo "$ac_try_echo"; } >&5
23664 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
23666 if test -s conftest.err; then
23668 ... rest of stderr output deleted ...
23669 10q' conftest.err >conftest.er1
23670 cat conftest.er1 >&5
23672 rm -f conftest.er1 conftest.err
23673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23674 test $ac_status = 0; }
23677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
23678 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
23679 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
23680 $as_echo_n "(cached) " >&6
23682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23683 /* end confdefs.h. */
23696 if ac_fn_cxx_try_compile "$LINENO"; then :
23697 ac_compiler_gnu=yes
23701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23702 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
23705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
23706 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
23707 if test $ac_compiler_gnu = yes; then
23712 ac_test_CXXFLAGS=${CXXFLAGS+set}
23713 ac_save_CXXFLAGS=$CXXFLAGS
23714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
23715 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
23716 if test "${ac_cv_prog_cxx_g+set}" = set; then :
23717 $as_echo_n "(cached) " >&6
23719 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
23720 ac_cxx_werror_flag=yes
23721 ac_cv_prog_cxx_g=no
23723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23724 /* end confdefs.h. */
23734 if ac_fn_cxx_try_compile "$LINENO"; then :
23735 ac_cv_prog_cxx_g=yes
23738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23739 /* end confdefs.h. */
23749 if ac_fn_cxx_try_compile "$LINENO"; then :
23752 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23755 /* end confdefs.h. */
23765 if ac_fn_cxx_try_compile "$LINENO"; then :
23766 ac_cv_prog_cxx_g=yes
23768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23773 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
23775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
23776 $as_echo "$ac_cv_prog_cxx_g" >&6; }
23777 if test "$ac_test_CXXFLAGS" = set; then
23778 CXXFLAGS=$ac_save_CXXFLAGS
23779 elif test $ac_cv_prog_cxx_g = yes; then
23780 if test "$GXX" = yes; then
23786 if test "$GXX" = yes; then
23793 ac_cpp='$CXXCPP $CPPFLAGS'
23794 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23795 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23796 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23798 depcc="$CXX" am_compiler_list=
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23801 $as_echo_n "checking dependency style of $depcc... " >&6; }
23802 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
23803 $as_echo_n "(cached) " >&6
23805 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23806 # We make a subdir and do the tests there. Otherwise we can end up
23807 # making bogus files that we don't know about and never remove. For
23808 # instance it was reported that on HP-UX the gcc test will end up
23809 # making a dummy file named `D' -- because `-MD' means `put the output
23812 # Copy depcomp to subdir because otherwise we won't find it if we're
23813 # using a relative directory.
23814 cp "$am_depcomp" conftest.dir
23816 # We will build objects and dependencies in a subdirectory because
23817 # it helps to detect inapplicable dependency modes. For instance
23818 # both Tru64's cc and ICC support -MD to output dependencies as a
23819 # side effect of compilation, but ICC will put the dependencies in
23820 # the current directory while Tru64 will put them in the object
23824 am_cv_CXX_dependencies_compiler_type=none
23825 if test "$am_compiler_list" = ""; then
23826 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23828 am__universal=false
23829 case " $depcc " in #(
23830 *\ -arch\ *\ -arch\ *) am__universal=true ;;
23833 for depmode in $am_compiler_list; do
23834 # Setup a source with many dependencies, because some compilers
23835 # like to wrap large dependency lists on column 80 (with \), and
23836 # we should not choose a depcomp mode which is confused by this.
23838 # We need to recreate these files for each test, as the compiler may
23839 # overwrite some of them when testing with obscure command lines.
23840 # This happens at least with the AIX C compiler.
23842 for i in 1 2 3 4 5 6; do
23843 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23844 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23845 # Solaris 8's {/usr,}/bin/sh.
23846 touch sub/conftst$i.h
23848 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23850 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23851 # mode. It turns out that the SunPro C++ compiler does not properly
23852 # handle `-M -o', and we need to detect this. Also, some Intel
23853 # versions had trouble with output in subdirs
23854 am__obj=sub/conftest.${OBJEXT-o}
23855 am__minus_obj="-o $am__obj"
23858 # This depmode causes a compiler race in universal mode.
23859 test "$am__universal" = false || continue
23862 # after this tag, mechanisms are not by side-effect, so they'll
23863 # only be used when explicitly requested
23864 if test "x$enable_dependency_tracking" = xyes; then
23870 msvisualcpp | msvcmsys)
23871 # This compiler won't grok `-c -o', but also, the minuso test has
23872 # not run yet. These depmodes are late enough in the game, and
23873 # so weak that their functioning should not be impacted.
23874 am__obj=conftest.${OBJEXT-o}
23879 if depmode=$depmode \
23880 source=sub/conftest.c object=$am__obj \
23881 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23882 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23883 >/dev/null 2>conftest.err &&
23884 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23885 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23886 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23887 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23888 # icc doesn't choke on unknown options, it will just issue warnings
23889 # or remarks (even with -Werror). So we grep stderr for any message
23890 # that says an option was ignored or not supported.
23891 # When given -MP, icc 7.0 and 7.1 complain thusly:
23892 # icc: Command line warning: ignoring option '-M'; no argument required
23893 # The diagnosis changed in icc 8.0:
23894 # icc: Command line remark: option '-MP' not supported
23895 if (grep 'ignoring option' conftest.err ||
23896 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23897 am_cv_CXX_dependencies_compiler_type=$depmode
23904 rm -rf conftest.dir
23906 am_cv_CXX_dependencies_compiler_type=none
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
23911 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
23912 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
23915 test "x$enable_dependency_tracking" != xno \
23916 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
23917 am__fastdepCXX_TRUE=
23918 am__fastdepCXX_FALSE='#'
23920 am__fastdepCXX_TRUE='#'
23921 am__fastdepCXX_FALSE=
23925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
23926 $as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
23927 if test "${ax_cv_cxx_bool+set}" = set; then :
23928 $as_echo_n "(cached) " >&6
23932 ac_cpp='$CXXCPP $CPPFLAGS'
23933 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23934 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23935 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23938 /* end confdefs.h. */
23940 int f(int x){return 1;}
23941 int f(char x){return 1;}
23942 int f(bool x){return 1;}
23947 bool b = true; return f(b);
23952 if ac_fn_cxx_try_compile "$LINENO"; then :
23957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23959 ac_cpp='$CXXCPP $CPPFLAGS'
23960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
23967 $as_echo "$ax_cv_cxx_bool" >&6; }
23968 if test "$ax_cv_cxx_bool" = yes; then
23970 $as_echo "#define HAVE_BOOL /**/" >>confdefs.h
23974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
23975 $as_echo_n "checking whether the compiler implements namespaces... " >&6; }
23976 if test "${ax_cv_cxx_namespaces+set}" = set; then :
23977 $as_echo_n "(cached) " >&6
23981 ac_cpp='$CXXCPP $CPPFLAGS'
23982 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23983 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23984 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23987 /* end confdefs.h. */
23988 namespace Outer { namespace Inner { int i = 0; }}
23992 using namespace Outer::Inner; return i;
23997 if ac_fn_cxx_try_compile "$LINENO"; then :
23998 ax_cv_cxx_namespaces=yes
24000 ax_cv_cxx_namespaces=no
24002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24004 ac_cpp='$CXXCPP $CPPFLAGS'
24005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
24012 $as_echo "$ax_cv_cxx_namespaces" >&6; }
24013 if test "$ax_cv_cxx_namespaces" = yes; then
24015 $as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
24021 $as_echo_n "checking if g++ supports namespace std... " >&6; }
24022 if test "${ax_cv_cxx_have_std_namespace+set}" = set; then :
24023 $as_echo_n "(cached) " >&6
24027 ac_cpp='$CXXCPP $CPPFLAGS'
24028 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24029 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24030 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24033 /* end confdefs.h. */
24034 #include <iostream>
24035 std::istream& is = std::cin;
24044 if ac_fn_cxx_try_compile "$LINENO"; then :
24045 ax_cv_cxx_have_std_namespace=yes
24047 ax_cv_cxx_have_std_namespace=no
24049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24051 ac_cpp='$CXXCPP $CPPFLAGS'
24052 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24053 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24054 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
24059 $as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
24060 if test "$ax_cv_cxx_have_std_namespace" = yes; then
24062 $as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
24067 $as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
24068 if test "${ac_cv_cxx_have_std_libs+set}" = set; then :
24069 $as_echo_n "(cached) " >&6
24074 ac_cpp='$CXXCPP $CPPFLAGS'
24075 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24076 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24077 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24080 /* end confdefs.h. */
24081 #include <iostream>
24085 #ifdef HAVE_NAMESPACES
24086 using namespace std;
24096 if ac_fn_cxx_try_compile "$LINENO"; then :
24097 ac_cv_cxx_have_std_libs=yes
24099 ac_cv_cxx_have_std_libs=no
24101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24103 ac_cpp='$CXXCPP $CPPFLAGS'
24104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
24111 $as_echo "$ac_cv_cxx_have_std_libs" >&6; }
24112 if test "$ac_cv_cxx_have_std_libs" = yes; then
24114 $as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
24118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements L\"widestring\"" >&5
24119 $as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
24120 if test "${ac_cv_cxx_have_lstring+set}" = set; then :
24121 $as_echo_n "(cached) " >&6
24125 ac_cpp='$CXXCPP $CPPFLAGS'
24126 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24127 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24128 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24131 /* end confdefs.h. */
24132 const wchar_t* s=L"wide string";
24134 if ac_fn_cxx_try_compile "$LINENO"; then :
24135 ac_cv_cxx_have_lstring=yes
24137 ac_cv_cxx_have_lstring=no
24139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24141 ac_cpp='$CXXCPP $CPPFLAGS'
24142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
24148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_lstring" >&5
24149 $as_echo "$ac_cv_cxx_have_lstring" >&6; }
24150 if test "$ac_cv_cxx_have_lstring" = yes; then
24152 $as_echo "#define HAVE_LSTRING /**/" >>confdefs.h
24158 # Check whether --enable-openmp was given.
24159 if test "${enable_openmp+set}" = set; then :
24160 enableval=$enable_openmp;
24163 if test "$enable_openmp" != no; then
24164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
24165 $as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
24166 if test "${ac_cv_prog_cxx_openmp+set}" = set; then :
24167 $as_echo_n "(cached) " >&6
24169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24170 /* end confdefs.h. */
24176 int main () { return omp_get_num_threads (); }
24179 if ac_fn_cxx_try_link "$LINENO"; then :
24180 ac_cv_prog_cxx_openmp='none needed'
24182 ac_cv_prog_cxx_openmp='unsupported'
24183 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
24184 ac_save_CXXFLAGS=$CXXFLAGS
24185 CXXFLAGS="$CXXFLAGS $ac_option"
24186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24187 /* end confdefs.h. */
24193 int main () { return omp_get_num_threads (); }
24196 if ac_fn_cxx_try_link "$LINENO"; then :
24197 ac_cv_prog_cxx_openmp=$ac_option
24199 rm -f core conftest.err conftest.$ac_objext \
24200 conftest$ac_exeext conftest.$ac_ext
24201 CXXFLAGS=$ac_save_CXXFLAGS
24202 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
24207 rm -f core conftest.err conftest.$ac_objext \
24208 conftest$ac_exeext conftest.$ac_ext
24210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
24211 $as_echo "$ac_cv_prog_cxx_openmp" >&6; }
24212 case $ac_cv_prog_cxx_openmp in #(
24213 "none needed" | unsupported)
24216 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
24222 ac_cpp='$CPP $CPPFLAGS'
24223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
24229 $as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
24231 test $ax_cv_cxx_bool = 'yes' && \
24232 test $ac_cv_cxx_have_lstring = 'yes' && \
24233 test $ax_cv_cxx_namespaces = 'yes' && \
24234 test $ac_cv_cxx_have_std_libs = 'yes' && \
24235 test $ax_cv_cxx_have_std_namespace = 'yes'; then
24236 have_magick_plus_plus='yes'
24238 have_magick_plus_plus='no (failed tests)'
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_magick_plus_plus" >&5
24241 $as_echo "$have_magick_plus_plus" >&6; }
24244 if test "$have_magick_plus_plus" = 'yes'; then
24245 WITH_MAGICK_PLUS_PLUS_TRUE=
24246 WITH_MAGICK_PLUS_PLUS_FALSE='#'
24248 WITH_MAGICK_PLUS_PLUS_TRUE='#'
24249 WITH_MAGICK_PLUS_PLUS_FALSE=
24253 # Only check for delegate libraries in subdirectories if requested.
24254 if test "$enable_delegate_build" != 'no'; then
24255 # Check for delegate sub-directories and add -I & -L options as required.
24256 # This presumes that delegates are installed as detailed in the ImageMagick
24257 # README. If delegates are installed in a standard location where the
24258 # compiler will automatically find them then these options should not be
24262 # Most delegates have includes in the same directory as the library, but not all...
24265 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
24266 if test -d "$builddir/$dir"; then
24267 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
24269 if test -d "$srcdirfull/$dir"; then
24270 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
24276 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
24277 if test -d "$builddir/$dir/.libs"; then
24278 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
24280 if test -d "$srcdirfull/$dir/.libs"; then
24281 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
24284 if test -d "$builddir/$dir"; then
24285 LDFLAGS="$LDFLAGS -L$builddir/$dir"
24287 if test -d "$srcdirfull/$dir"; then
24288 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
24294 # Assume that delegate headers reside under same directory as ImageMagick
24295 # installation prefix.
24296 MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
24299 # Find the X11 RGB database
24301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
24302 $as_echo_n "checking for X11 configure files... " >&6; }
24303 if test "${im_cv_x_configure+set}" = set; then :
24304 $as_echo_n "(cached) " >&6
24306 # Look for the header file in a standard set of common directories.
24307 # Check X11 before X11Rn because it is often a symlink to the current release.
24316 /usr/XFree86/lib/X11 \
24324 /usr/local/X11/lib \
24325 /usr/local/X11R4/lib \
24326 /usr/local/X11R5/lib \
24327 /usr/local/X11R6/lib \
24329 /usr/local/lib/X11 \
24330 /usr/local/lib/X11R4 \
24331 /usr/local/lib/X11R5 \
24332 /usr/local/lib/X11R6 \
24333 /usr/local/lib/X11R7 \
24334 /usr/local/x11r5/lib \
24335 /usr/lpp/Xamples/lib \
24337 /usr/openwin/share/lib \
24338 /usr/unsupported/lib \
24341 if test -f "$ac_dir/X11/rgb.txt"; then
24342 im_cv_x_configure="$ac_dir/X11/"
24344 elif test -f "$ac_dir/rgb.txt"; then
24345 im_cv_x_configure="$ac_dir/"
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
24352 $as_echo "$im_cv_x_configure" >&6; }
24353 X11_CONFIGURE_PATH="$im_cv_x_configure"
24354 case "${build_os}" in
24356 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
24360 cat >>confdefs.h <<_ACEOF
24361 #define X11_CONFIGURE_PATH "$X11ConfigurePath"
24366 # Find OpenMP library
24369 if test "$enable_openmp" != 'no'; then
24370 if test "${GCC}" = "yes"; then
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
24372 $as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
24373 if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then :
24374 $as_echo_n "(cached) " >&6
24376 ac_check_lib_save_LIBS=$LIBS
24377 LIBS="-lgomp $LIBS"
24378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24379 /* end confdefs.h. */
24381 /* Override any GCC internal prototype to avoid an error.
24382 Use char because int might match the return type of a GCC
24383 builtin and then its argument prototype would still apply. */
24387 char GOMP_parallel_start ();
24391 return GOMP_parallel_start ();
24396 if ac_fn_c_try_link "$LINENO"; then :
24397 ac_cv_lib_gomp_GOMP_parallel_start=yes
24399 ac_cv_lib_gomp_GOMP_parallel_start=no
24401 rm -f core conftest.err conftest.$ac_objext \
24402 conftest$ac_exeext conftest.$ac_ext
24403 LIBS=$ac_check_lib_save_LIBS
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
24406 $as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
24407 if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then :
24412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
24413 $as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
24414 if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then :
24415 $as_echo_n "(cached) " >&6
24417 ac_check_lib_save_LIBS=$LIBS
24418 LIBS="-lmtsk $LIBS"
24419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24420 /* end confdefs.h. */
24422 /* Override any GCC internal prototype to avoid an error.
24423 Use char because int might match the return type of a GCC
24424 builtin and then its argument prototype would still apply. */
24428 char sunw_mp_register_warn ();
24432 return sunw_mp_register_warn ();
24437 if ac_fn_c_try_link "$LINENO"; then :
24438 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
24440 ac_cv_lib_mtsk_sunw_mp_register_warn=no
24442 rm -f core conftest.err conftest.$ac_objext \
24443 conftest$ac_exeext conftest.$ac_ext
24444 LIBS=$ac_check_lib_save_LIBS
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
24447 $as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
24448 if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then :
24452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
24453 $as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
24454 if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then :
24455 $as_echo_n "(cached) " >&6
24457 ac_check_lib_save_LIBS=$LIBS
24458 LIBS="-lxlsmp $LIBS"
24459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24460 /* end confdefs.h. */
24462 /* Override any GCC internal prototype to avoid an error.
24463 Use char because int might match the return type of a GCC
24464 builtin and then its argument prototype would still apply. */
24468 char _xlsmpFlush ();
24472 return _xlsmpFlush ();
24477 if ac_fn_c_try_link "$LINENO"; then :
24478 ac_cv_lib_xlsmp__xlsmpFlush=yes
24480 ac_cv_lib_xlsmp__xlsmpFlush=no
24482 rm -f core conftest.err conftest.$ac_objext \
24483 conftest$ac_exeext conftest.$ac_ext
24484 LIBS=$ac_check_lib_save_LIBS
24486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
24487 $as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
24488 if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then :
24489 GOMP_LIBS="-lxlsmp"
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
24493 $as_echo_n "checking for mp_destroy in -lmp... " >&6; }
24494 if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then :
24495 $as_echo_n "(cached) " >&6
24497 ac_check_lib_save_LIBS=$LIBS
24499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24500 /* end confdefs.h. */
24502 /* Override any GCC internal prototype to avoid an error.
24503 Use char because int might match the return type of a GCC
24504 builtin and then its argument prototype would still apply. */
24508 char mp_destroy ();
24512 return mp_destroy ();
24517 if ac_fn_c_try_link "$LINENO"; then :
24518 ac_cv_lib_mp_mp_destroy=yes
24520 ac_cv_lib_mp_mp_destroy=no
24522 rm -f core conftest.err conftest.$ac_objext \
24523 conftest$ac_exeext conftest.$ac_ext
24524 LIBS=$ac_check_lib_save_LIBS
24526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
24527 $as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
24528 if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then :
24531 # SGI IRIX 6.5 MIPSpro C/C++
24533 LIBS="$GOMP_LIBS $LIBS"
24538 # Find Posix threads library
24541 if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
24543 if test "x$PTHREAD_LIBS" = "x"; then
24544 case "${host_cpu}-${host_os}" in
24550 ac_cpp='$CPP $CPPFLAGS'
24551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24555 magick_pthread_lib_ok=no
24561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24562 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
24563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24564 /* end confdefs.h. */
24565 #include <pthread.h>
24570 pthread_join(th, 0);
24571 pthread_attr_init(0);
24572 pthread_cleanup_push(0, 0);
24573 pthread_create(0,0,0,0);
24574 pthread_cleanup_pop(0);
24579 if ac_fn_c_try_link "$LINENO"; then :
24580 magick_pthread_lib_ok=yes
24582 rm -f core conftest.err conftest.$ac_objext \
24583 conftest$ac_exeext conftest.$ac_ext
24585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24586 $as_echo "${magick_pthread_lib_ok}" >&6; }
24587 if test "$magick_pthread_lib_ok" = yes
24599 ac_cpp='$CPP $CPPFLAGS'
24600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24608 for lib in pthread pthreads; do
24609 if test "x$PTHREAD_LIBS" = "x"; then
24614 ac_cpp='$CPP $CPPFLAGS'
24615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24619 magick_pthread_lib_ok=no
24625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
24626 $as_echo_n "checking for the pthreads library $LIB... " >&6; }
24627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24628 /* end confdefs.h. */
24629 #include <pthread.h>
24634 pthread_join(th, 0);
24635 pthread_attr_init(0);
24636 pthread_cleanup_push(0, 0);
24637 pthread_create(0,0,0,0);
24638 pthread_cleanup_pop(0);
24643 if ac_fn_c_try_link "$LINENO"; then :
24644 magick_pthread_lib_ok=yes
24646 rm -f core conftest.err conftest.$ac_objext \
24647 conftest$ac_exeext conftest.$ac_ext
24649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
24650 $as_echo "${magick_pthread_lib_ok}" >&6; }
24651 if test "$magick_pthread_lib_ok" = yes
24653 PTHREAD_LIBS=-l$lib
24663 ac_cpp='$CPP $CPPFLAGS'
24664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24672 THREAD_LIBS="$PTHREAD_LIBS"
24673 LIBS="$LIBS $THREAD_LIBS"
24682 if test "$with_umem" != 'no'; then
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
24684 $as_echo_n "checking for UMEM support ... " >&6; }
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24689 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
24690 if test "x$ac_cv_header_umem_h" = x""yes; then :
24691 passed=`expr $passed + 1`
24693 failed=`expr $failed + 1`
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
24698 $as_echo_n "checking for umem_alloc in -lumem... " >&6; }
24699 if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then :
24700 $as_echo_n "(cached) " >&6
24702 ac_check_lib_save_LIBS=$LIBS
24703 LIBS="-lumem $LIBS"
24704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24705 /* end confdefs.h. */
24707 /* Override any GCC internal prototype to avoid an error.
24708 Use char because int might match the return type of a GCC
24709 builtin and then its argument prototype would still apply. */
24713 char umem_alloc ();
24717 return umem_alloc ();
24722 if ac_fn_c_try_link "$LINENO"; then :
24723 ac_cv_lib_umem_umem_alloc=yes
24725 ac_cv_lib_umem_umem_alloc=no
24727 rm -f core conftest.err conftest.$ac_objext \
24728 conftest$ac_exeext conftest.$ac_ext
24729 LIBS=$ac_check_lib_save_LIBS
24731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
24732 $as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
24733 if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then :
24734 passed=`expr $passed + 1`
24736 failed=`expr $failed + 1`
24739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
24740 $as_echo_n "checking for umem_free in -lumem... " >&6; }
24741 if test "${ac_cv_lib_umem_umem_free+set}" = set; then :
24742 $as_echo_n "(cached) " >&6
24744 ac_check_lib_save_LIBS=$LIBS
24745 LIBS="-lumem $LIBS"
24746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24747 /* end confdefs.h. */
24749 /* Override any GCC internal prototype to avoid an error.
24750 Use char because int might match the return type of a GCC
24751 builtin and then its argument prototype would still apply. */
24759 return umem_free ();
24764 if ac_fn_c_try_link "$LINENO"; then :
24765 ac_cv_lib_umem_umem_free=yes
24767 ac_cv_lib_umem_umem_free=no
24769 rm -f core conftest.err conftest.$ac_objext \
24770 conftest$ac_exeext conftest.$ac_ext
24771 LIBS=$ac_check_lib_save_LIBS
24773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
24774 $as_echo "$ac_cv_lib_umem_umem_free" >&6; }
24775 if test "x$ac_cv_lib_umem_umem_free" = x""yes; then :
24776 passed=`expr $passed + 1`
24778 failed=`expr $failed + 1`
24781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
24782 $as_echo_n "checking if umem memory allocation library is complete... " >&6; }
24783 if test $passed -gt 0; then
24784 if test $failed -gt 0; then
24785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
24786 $as_echo "no -- some components failed test" >&6; }
24787 have_umem='no (failed tests)'
24790 LIBS="$UMEM_LIBS $LIBS"
24792 $as_echo "#define HasUMEM 1" >>confdefs.h
24794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24795 $as_echo "yes" >&6; }
24799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24800 $as_echo "no" >&6; }
24803 if test "$have_umem" = 'yes'; then
24814 # Add support for ccmalloc memory debugging library if requested
24818 if test "$enable_ccmalloc" = 'yes'; then
24819 # Extract the first word of "ccmalloc", so it can be a program name with args.
24820 set dummy ccmalloc; ac_word=$2
24821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24822 $as_echo_n "checking for $ac_word... " >&6; }
24823 if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then :
24824 $as_echo_n "(cached) " >&6
24826 case $CCMALLOCDelegate in
24828 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
24831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24832 for as_dir in $PATH
24835 test -z "$as_dir" && as_dir=.
24836 for ac_exec_ext in '' $ac_executable_extensions; do
24837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24838 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
24839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24849 CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
24850 if test -n "$CCMALLOCDelegate"; then
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
24852 $as_echo "$CCMALLOCDelegate" >&6; }
24854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24855 $as_echo "no" >&6; }
24859 if test -n "$CCMALLOCDelegate"; then
24860 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
24862 # Assume that gcc is used with ccmalloc.
24863 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
24865 $as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
24866 if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then :
24867 $as_echo_n "(cached) " >&6
24869 ac_check_lib_save_LIBS=$LIBS
24870 LIBS="-lccmalloc -ldl $LIBS"
24871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24872 /* end confdefs.h. */
24874 /* Override any GCC internal prototype to avoid an error.
24875 Use char because int might match the return type of a GCC
24876 builtin and then its argument prototype would still apply. */
24880 char ccmalloc_malloc ();
24884 return ccmalloc_malloc ();
24889 if ac_fn_c_try_link "$LINENO"; then :
24890 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
24892 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
24894 rm -f core conftest.err conftest.$ac_objext \
24895 conftest$ac_exeext conftest.$ac_ext
24896 LIBS=$ac_check_lib_save_LIBS
24898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
24899 $as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
24900 if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then :
24901 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
24904 if test -n "$CCMALLOC_LIBS"; then
24906 LIBS="$LIBS $CCMALLOC_LIBS"
24907 have_ccmalloc='yes'
24915 # Add support for efence memory debugging library if requested
24917 if test "$enable_efence" = 'yes'; then
24918 EFENCE_LIBS='-lefence'
24919 LIBS="$EFENCE_LIBS $LIBS"
24928 # Check whether --with-bzlib was given.
24929 if test "${with_bzlib+set}" = set; then :
24930 withval=$with_bzlib; with_bzlib=$withval
24936 if test "$with_bzlib" != 'yes'; then
24937 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
24941 if test "$with_bzlib" != 'no'; then
24943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
24944 $as_echo "-------------------------------------------------------------" >&6; }
24945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
24946 $as_echo_n "checking for BZLIB... " >&6; }
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
24952 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
24953 if test "x$ac_cv_header_bzlib_h" = x""yes; then :
24954 passed=`expr $passed + 1`
24956 failed=`expr $failed + 1`
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
24961 $as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
24962 if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then :
24963 $as_echo_n "(cached) " >&6
24965 ac_check_lib_save_LIBS=$LIBS
24967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24968 /* end confdefs.h. */
24970 /* Override any GCC internal prototype to avoid an error.
24971 Use char because int might match the return type of a GCC
24972 builtin and then its argument prototype would still apply. */
24976 char BZ2_bzDecompress ();
24980 return BZ2_bzDecompress ();
24985 if ac_fn_c_try_link "$LINENO"; then :
24986 ac_cv_lib_bz2_BZ2_bzDecompress=yes
24988 ac_cv_lib_bz2_BZ2_bzDecompress=no
24990 rm -f core conftest.err conftest.$ac_objext \
24991 conftest$ac_exeext conftest.$ac_ext
24992 LIBS=$ac_check_lib_save_LIBS
24994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
24995 $as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
24996 if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then :
24997 found_libbz=`expr $found_libbz + 1`
25000 if test "$native_win32_build" = 'yes'; then
25001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
25002 $as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
25003 if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then :
25004 $as_echo_n "(cached) " >&6
25006 ac_check_lib_save_LIBS=$LIBS
25008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25009 /* end confdefs.h. */
25011 /* Override any GCC internal prototype to avoid an error.
25012 Use char because int might match the return type of a GCC
25013 builtin and then its argument prototype would still apply. */
25017 char _imp__BZ2_decompress ();
25021 return _imp__BZ2_decompress ();
25026 if ac_fn_c_try_link "$LINENO"; then :
25027 ac_cv_lib_bz2__imp__BZ2_decompress=yes
25029 ac_cv_lib_bz2__imp__BZ2_decompress=no
25031 rm -f core conftest.err conftest.$ac_objext \
25032 conftest$ac_exeext conftest.$ac_ext
25033 LIBS=$ac_check_lib_save_LIBS
25035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
25036 $as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
25037 if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then :
25038 found_libbz=`expr $found_libbz + 1`
25042 if test $found_libbz -gt 0; then
25043 passed=`expr $passed + 1`
25045 failed=`expr $failed + 1`
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
25048 $as_echo_n "checking if BZLIB package is complete... " >&6; }
25049 if test $passed -gt 0; then
25050 if test $failed -gt 0; then
25051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
25052 $as_echo "no -- some components failed test" >&6; }
25053 have_bzlib='no (failed tests)'
25056 LIBS="$BZLIB_LIBS $LIBS"
25058 $as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
25060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25061 $as_echo "yes" >&6; }
25065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25066 $as_echo "no" >&6; }
25069 if test "$have_bzlib" = 'yes'; then
25070 BZLIB_DELEGATE_TRUE=
25071 BZLIB_DELEGATE_FALSE='#'
25073 BZLIB_DELEGATE_TRUE='#'
25074 BZLIB_DELEGATE_FALSE=
25080 # Find the X11 include and library directories.
25086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25087 $as_echo_n "checking for X... " >&6; }
25090 # Check whether --with-x was given.
25091 if test "${with_x+set}" = set; then :
25095 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25096 if test "x$with_x" = xno; then
25097 # The user explicitly disabled X.
25100 case $x_includes,$x_libraries in #(
25101 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
25102 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
25103 $as_echo_n "(cached) " >&6
25105 # One or both of the vars are not set, and there is no cached value.
25106 ac_x_includes=no ac_x_libraries=no
25107 rm -f -r conftest.dir
25108 if mkdir conftest.dir; then
25110 cat >Imakefile <<'_ACEOF'
25112 @echo incroot='${INCROOT}'
25114 @echo usrlibdir='${USRLIBDIR}'
25116 @echo libdir='${LIBDIR}'
25118 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25119 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
25120 for ac_var in incroot usrlibdir libdir; do
25121 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25123 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25124 for ac_extension in a so sl dylib la dll; do
25125 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25126 test -f "$ac_im_libdir/libX11.$ac_extension"; then
25127 ac_im_usrlibdir=$ac_im_libdir; break
25130 # Screen out bogus values from the imake configuration. They are
25131 # bogus both because they are the default anyway, and because
25132 # using them would break gcc on systems where it needs fixed includes.
25133 case $ac_im_incroot in
25134 /usr/include) ac_x_includes= ;;
25135 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25137 case $ac_im_usrlibdir in
25138 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25139 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25143 rm -f -r conftest.dir
25146 # Standard set of common directories for X headers.
25147 # Check X11 before X11Rn because it is often a symlink to the current release.
25161 /usr/local/X11/include
25162 /usr/local/X11R7/include
25163 /usr/local/X11R6/include
25164 /usr/local/X11R5/include
25165 /usr/local/X11R4/include
25167 /usr/local/include/X11
25168 /usr/local/include/X11R7
25169 /usr/local/include/X11R6
25170 /usr/local/include/X11R5
25171 /usr/local/include/X11R4
25175 /usr/XFree86/include/X11
25179 /usr/unsupported/include
25180 /usr/athena/include
25181 /usr/local/x11r5/include
25182 /usr/lpp/Xamples/include
25184 /usr/openwin/include
25185 /usr/openwin/share/include'
25187 if test "$ac_x_includes" = no; then
25188 # Guess where to find include files, by looking for Xlib.h.
25189 # First, try using that file with no special directory specified.
25190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25191 /* end confdefs.h. */
25192 #include <X11/Xlib.h>
25194 if ac_fn_c_try_cpp "$LINENO"; then :
25195 # We can compile using X headers with no special include directory.
25198 for ac_dir in $ac_x_header_dirs; do
25199 if test -r "$ac_dir/X11/Xlib.h"; then
25200 ac_x_includes=$ac_dir
25205 rm -f conftest.err conftest.$ac_ext
25206 fi # $ac_x_includes = no
25208 if test "$ac_x_libraries" = no; then
25209 # Check for the libraries.
25210 # See if we find them without any special options.
25211 # Don't add to $LIBS permanently.
25214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25215 /* end confdefs.h. */
25216 #include <X11/Xlib.h>
25225 if ac_fn_c_try_link "$LINENO"; then :
25227 # We can link X programs with no special library path.
25231 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25233 # Don't even attempt the hair of trying to link an X program!
25234 for ac_extension in a so sl dylib la dll; do
25235 if test -r "$ac_dir/libX11.$ac_extension"; then
25236 ac_x_libraries=$ac_dir
25242 rm -f core conftest.err conftest.$ac_objext \
25243 conftest$ac_exeext conftest.$ac_ext
25244 fi # $ac_x_libraries = no
25246 case $ac_x_includes,$ac_x_libraries in #(
25247 no,* | *,no | *\'*)
25248 # Didn't find X, or a directory has "'" in its name.
25249 ac_cv_have_x="have_x=no";; #(
25251 # Record where we found X for the cache.
25252 ac_cv_have_x="have_x=yes\
25253 ac_x_includes='$ac_x_includes'\
25254 ac_x_libraries='$ac_x_libraries'"
25260 eval "$ac_cv_have_x"
25263 if test "$have_x" != yes; then
25264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25265 $as_echo "$have_x" >&6; }
25268 # If each of the values was on the command line, it overrides each guess.
25269 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25270 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25271 # Update the cache value to reflect the command line values.
25272 ac_cv_have_x="have_x=yes\
25273 ac_x_includes='$x_includes'\
25274 ac_x_libraries='$x_libraries'"
25275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25276 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25279 if test "$no_x" = yes; then
25280 # Not all programs may use this symbol, but it does not hurt to define it.
25282 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25284 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25286 if test -n "$x_includes"; then
25287 X_CFLAGS="$X_CFLAGS -I$x_includes"
25290 # It would also be nice to do this for all -L options, not just this one.
25291 if test -n "$x_libraries"; then
25292 X_LIBS="$X_LIBS -L$x_libraries"
25293 # For Solaris; some versions of Sun CC require a space after -R and
25294 # others require no space. Words are not sufficient . . . .
25295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25296 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25297 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25298 ac_xsave_c_werror_flag=$ac_c_werror_flag
25299 ac_c_werror_flag=yes
25300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25301 /* end confdefs.h. */
25311 if ac_fn_c_try_link "$LINENO"; then :
25312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25313 $as_echo "no" >&6; }
25314 X_LIBS="$X_LIBS -R$x_libraries"
25316 LIBS="$ac_xsave_LIBS -R $x_libraries"
25317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25318 /* end confdefs.h. */
25328 if ac_fn_c_try_link "$LINENO"; then :
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25330 $as_echo "yes" >&6; }
25331 X_LIBS="$X_LIBS -R $x_libraries"
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25334 $as_echo "neither works" >&6; }
25336 rm -f core conftest.err conftest.$ac_objext \
25337 conftest$ac_exeext conftest.$ac_ext
25339 rm -f core conftest.err conftest.$ac_objext \
25340 conftest$ac_exeext conftest.$ac_ext
25341 ac_c_werror_flag=$ac_xsave_c_werror_flag
25342 LIBS=$ac_xsave_LIBS
25345 # Check for system-dependent libraries X programs must link with.
25346 # Do this before checking for the system-independent R6 libraries
25347 # (-lICE), since we may need -lsocket or whatever for X linking.
25349 if test "$ISC" = yes; then
25350 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25352 # Martyn Johnson says this is needed for Ultrix, if the X
25353 # libraries were built with DECnet support. And Karl Berry says
25354 # the Alpha needs dnet_stub (dnet does not exist).
25355 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25357 /* end confdefs.h. */
25359 /* Override any GCC internal prototype to avoid an error.
25360 Use char because int might match the return type of a GCC
25361 builtin and then its argument prototype would still apply. */
25365 char XOpenDisplay ();
25369 return XOpenDisplay ();
25374 if ac_fn_c_try_link "$LINENO"; then :
25377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25378 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25379 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
25380 $as_echo_n "(cached) " >&6
25382 ac_check_lib_save_LIBS=$LIBS
25383 LIBS="-ldnet $LIBS"
25384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25385 /* end confdefs.h. */
25387 /* Override any GCC internal prototype to avoid an error.
25388 Use char because int might match the return type of a GCC
25389 builtin and then its argument prototype would still apply. */
25397 return dnet_ntoa ();
25402 if ac_fn_c_try_link "$LINENO"; then :
25403 ac_cv_lib_dnet_dnet_ntoa=yes
25405 ac_cv_lib_dnet_dnet_ntoa=no
25407 rm -f core conftest.err conftest.$ac_objext \
25408 conftest$ac_exeext conftest.$ac_ext
25409 LIBS=$ac_check_lib_save_LIBS
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25412 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25413 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
25414 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25417 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25419 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25420 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
25421 $as_echo_n "(cached) " >&6
25423 ac_check_lib_save_LIBS=$LIBS
25424 LIBS="-ldnet_stub $LIBS"
25425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25426 /* end confdefs.h. */
25428 /* Override any GCC internal prototype to avoid an error.
25429 Use char because int might match the return type of a GCC
25430 builtin and then its argument prototype would still apply. */
25438 return dnet_ntoa ();
25443 if ac_fn_c_try_link "$LINENO"; then :
25444 ac_cv_lib_dnet_stub_dnet_ntoa=yes
25446 ac_cv_lib_dnet_stub_dnet_ntoa=no
25448 rm -f core conftest.err conftest.$ac_objext \
25449 conftest$ac_exeext conftest.$ac_ext
25450 LIBS=$ac_check_lib_save_LIBS
25452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25453 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25454 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
25455 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25460 rm -f core conftest.err conftest.$ac_objext \
25461 conftest$ac_exeext conftest.$ac_ext
25462 LIBS="$ac_xsave_LIBS"
25464 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25465 # to get the SysV transport functions.
25466 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25468 # The nsl library prevents programs from opening the X display
25469 # on Irix 5.2, according to T.E. Dickey.
25470 # The functions gethostbyname, getservbyname, and inet_addr are
25471 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25472 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25473 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
25477 if test $ac_cv_func_gethostbyname = no; then
25478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25479 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25480 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
25481 $as_echo_n "(cached) " >&6
25483 ac_check_lib_save_LIBS=$LIBS
25485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25486 /* end confdefs.h. */
25488 /* Override any GCC internal prototype to avoid an error.
25489 Use char because int might match the return type of a GCC
25490 builtin and then its argument prototype would still apply. */
25494 char gethostbyname ();
25498 return gethostbyname ();
25503 if ac_fn_c_try_link "$LINENO"; then :
25504 ac_cv_lib_nsl_gethostbyname=yes
25506 ac_cv_lib_nsl_gethostbyname=no
25508 rm -f core conftest.err conftest.$ac_objext \
25509 conftest$ac_exeext conftest.$ac_ext
25510 LIBS=$ac_check_lib_save_LIBS
25512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25513 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25514 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
25515 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25518 if test $ac_cv_lib_nsl_gethostbyname = no; then
25519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25520 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25521 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
25522 $as_echo_n "(cached) " >&6
25524 ac_check_lib_save_LIBS=$LIBS
25526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25527 /* end confdefs.h. */
25529 /* Override any GCC internal prototype to avoid an error.
25530 Use char because int might match the return type of a GCC
25531 builtin and then its argument prototype would still apply. */
25535 char gethostbyname ();
25539 return gethostbyname ();
25544 if ac_fn_c_try_link "$LINENO"; then :
25545 ac_cv_lib_bsd_gethostbyname=yes
25547 ac_cv_lib_bsd_gethostbyname=no
25549 rm -f core conftest.err conftest.$ac_objext \
25550 conftest$ac_exeext conftest.$ac_ext
25551 LIBS=$ac_check_lib_save_LIBS
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25554 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25555 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
25556 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25562 # lieder@skyler.mavd.honeywell.com says without -lsocket,
25563 # socket/setsockopt and other routines are undefined under SCO ODT
25564 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
25565 # on later versions), says Simon Leinen: it contains gethostby*
25566 # variants that don't use the name server (or something). -lsocket
25567 # must be given before -lnsl if both are needed. We assume that
25568 # if connect needs -lnsl, so does gethostbyname.
25569 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25570 if test "x$ac_cv_func_connect" = x""yes; then :
25574 if test $ac_cv_func_connect = no; then
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25576 $as_echo_n "checking for connect in -lsocket... " >&6; }
25577 if test "${ac_cv_lib_socket_connect+set}" = set; then :
25578 $as_echo_n "(cached) " >&6
25580 ac_check_lib_save_LIBS=$LIBS
25581 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25583 /* end confdefs.h. */
25585 /* Override any GCC internal prototype to avoid an error.
25586 Use char because int might match the return type of a GCC
25587 builtin and then its argument prototype would still apply. */
25600 if ac_fn_c_try_link "$LINENO"; then :
25601 ac_cv_lib_socket_connect=yes
25603 ac_cv_lib_socket_connect=no
25605 rm -f core conftest.err conftest.$ac_objext \
25606 conftest$ac_exeext conftest.$ac_ext
25607 LIBS=$ac_check_lib_save_LIBS
25609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25610 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25611 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
25612 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25617 # Guillermo Gomez says -lposix is necessary on A/UX.
25618 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25619 if test "x$ac_cv_func_remove" = x""yes; then :
25623 if test $ac_cv_func_remove = no; then
25624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25625 $as_echo_n "checking for remove in -lposix... " >&6; }
25626 if test "${ac_cv_lib_posix_remove+set}" = set; then :
25627 $as_echo_n "(cached) " >&6
25629 ac_check_lib_save_LIBS=$LIBS
25630 LIBS="-lposix $LIBS"
25631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25632 /* end confdefs.h. */
25634 /* Override any GCC internal prototype to avoid an error.
25635 Use char because int might match the return type of a GCC
25636 builtin and then its argument prototype would still apply. */
25649 if ac_fn_c_try_link "$LINENO"; then :
25650 ac_cv_lib_posix_remove=yes
25652 ac_cv_lib_posix_remove=no
25654 rm -f core conftest.err conftest.$ac_objext \
25655 conftest$ac_exeext conftest.$ac_ext
25656 LIBS=$ac_check_lib_save_LIBS
25658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25659 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25660 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
25661 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25666 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25667 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25668 if test "x$ac_cv_func_shmat" = x""yes; then :
25672 if test $ac_cv_func_shmat = no; then
25673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25674 $as_echo_n "checking for shmat in -lipc... " >&6; }
25675 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
25676 $as_echo_n "(cached) " >&6
25678 ac_check_lib_save_LIBS=$LIBS
25680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25681 /* end confdefs.h. */
25683 /* Override any GCC internal prototype to avoid an error.
25684 Use char because int might match the return type of a GCC
25685 builtin and then its argument prototype would still apply. */
25698 if ac_fn_c_try_link "$LINENO"; then :
25699 ac_cv_lib_ipc_shmat=yes
25701 ac_cv_lib_ipc_shmat=no
25703 rm -f core conftest.err conftest.$ac_objext \
25704 conftest$ac_exeext conftest.$ac_ext
25705 LIBS=$ac_check_lib_save_LIBS
25707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25708 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25709 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
25710 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25716 # Check for libraries that X11R6 Xt/Xaw programs need.
25717 ac_save_LDFLAGS=$LDFLAGS
25718 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25719 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25720 # check for ICE first), but we must link in the order -lSM -lICE or
25721 # we get undefined symbols. So assume we have SM if we have ICE.
25722 # These have to be linked with before -lX11, unlike the other
25723 # libraries we check for below, so use a different variable.
25724 # John Interrante, Karl Berry
25725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25726 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25727 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
25728 $as_echo_n "(cached) " >&6
25730 ac_check_lib_save_LIBS=$LIBS
25731 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25733 /* end confdefs.h. */
25735 /* Override any GCC internal prototype to avoid an error.
25736 Use char because int might match the return type of a GCC
25737 builtin and then its argument prototype would still apply. */
25741 char IceConnectionNumber ();
25745 return IceConnectionNumber ();
25750 if ac_fn_c_try_link "$LINENO"; then :
25751 ac_cv_lib_ICE_IceConnectionNumber=yes
25753 ac_cv_lib_ICE_IceConnectionNumber=no
25755 rm -f core conftest.err conftest.$ac_objext \
25756 conftest$ac_exeext conftest.$ac_ext
25757 LIBS=$ac_check_lib_save_LIBS
25759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25760 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25761 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
25762 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25765 LDFLAGS=$ac_save_LDFLAGS
25769 if test "$no_x" != 'yes'; then
25770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25771 $as_echo "-------------------------------------------------------------" >&6; }
25772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
25773 $as_echo_n "checking for X11... " >&6; }
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25776 LDFLAGS="$LDFLAGS $X_LIBS"
25777 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
25778 LIBS="$X11_LIBS $LIBS"
25779 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
25782 $as_echo "#define X11_DELEGATE 1" >>confdefs.h
25785 # Check for X11 shared memory extension
25787 # shmctl is required to support the shared memory extension
25788 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
25789 if test "x$ac_cv_func_shmctl" = x""yes; then :
25793 if test "$have_shmctl" != 'yes'; then
25795 LIBS="$LIBS -lcygipc"
25796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25797 /* end confdefs.h. */
25799 /* Override any GCC internal prototype to avoid an error.
25800 Use char because int might match the return type of a GCC
25801 builtin and then its argument prototype would still apply. */
25814 if ac_fn_c_try_link "$LINENO"; then :
25815 have_shmctl='yes'; IPC_LIBS='-lcygipc'
25817 rm -f core conftest.err conftest.$ac_objext \
25818 conftest$ac_exeext conftest.$ac_ext
25822 if test "$have_shmctl" = 'yes'; then
25823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
25824 $as_echo_n "checking for XShmAttach in -lXext... " >&6; }
25825 if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then :
25826 $as_echo_n "(cached) " >&6
25828 ac_check_lib_save_LIBS=$LIBS
25829 LIBS="-lXext $LIBS"
25830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25831 /* end confdefs.h. */
25833 /* Override any GCC internal prototype to avoid an error.
25834 Use char because int might match the return type of a GCC
25835 builtin and then its argument prototype would still apply. */
25839 char XShmAttach ();
25843 return XShmAttach ();
25848 if ac_fn_c_try_link "$LINENO"; then :
25849 ac_cv_lib_Xext_XShmAttach=yes
25851 ac_cv_lib_Xext_XShmAttach=no
25853 rm -f core conftest.err conftest.$ac_objext \
25854 conftest$ac_exeext conftest.$ac_ext
25855 LIBS=$ac_check_lib_save_LIBS
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
25858 $as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
25859 if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then :
25860 XEXT_LIBS='-lXext' ;
25861 $as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
25868 # Check for X11 shape extension
25870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
25871 $as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
25872 if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then :
25873 $as_echo_n "(cached) " >&6
25875 ac_check_lib_save_LIBS=$LIBS
25876 LIBS="-lXext $LIBS"
25877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25878 /* end confdefs.h. */
25880 /* Override any GCC internal prototype to avoid an error.
25881 Use char because int might match the return type of a GCC
25882 builtin and then its argument prototype would still apply. */
25886 char XShapeCombineMask ();
25890 return XShapeCombineMask ();
25895 if ac_fn_c_try_link "$LINENO"; then :
25896 ac_cv_lib_Xext_XShapeCombineMask=yes
25898 ac_cv_lib_Xext_XShapeCombineMask=no
25900 rm -f core conftest.err conftest.$ac_objext \
25901 conftest$ac_exeext conftest.$ac_ext
25902 LIBS=$ac_check_lib_save_LIBS
25904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
25905 $as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
25906 if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then :
25907 XEXT_LIBS='-lXext' ;
25908 $as_echo "#define HAVE_SHAPE 1" >>confdefs.h
25912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
25913 $as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
25914 if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then :
25915 $as_echo_n "(cached) " >&6
25917 ac_check_lib_save_LIBS=$LIBS
25919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25920 /* end confdefs.h. */
25922 /* Override any GCC internal prototype to avoid an error.
25923 Use char because int might match the return type of a GCC
25924 builtin and then its argument prototype would still apply. */
25928 char XtSetEventDispatcher ();
25932 return XtSetEventDispatcher ();
25937 if ac_fn_c_try_link "$LINENO"; then :
25938 ac_cv_lib_Xt_XtSetEventDispatcher=yes
25940 ac_cv_lib_Xt_XtSetEventDispatcher=no
25942 rm -f core conftest.err conftest.$ac_objext \
25943 conftest$ac_exeext conftest.$ac_ext
25944 LIBS=$ac_check_lib_save_LIBS
25946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
25947 $as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
25948 if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then :
25952 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
25954 if test "$no_x" != 'yes'; then
25959 if test "$have_x" = 'yes'; then
25961 X11_DELEGATE_FALSE='#'
25963 X11_DELEGATE_TRUE='#'
25964 X11_DELEGATE_FALSE=
25975 # Check whether --with-zlib was given.
25976 if test "${with_zlib+set}" = set; then :
25977 withval=$with_zlib; with_zlib=$withval
25983 if test "$with_zlib" != 'yes'; then
25984 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
25989 if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
25990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
25991 $as_echo "-------------------------------------------------------------" >&6; }
25992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
25993 $as_echo_n "checking for ZLIB... " >&6; }
25994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
25999 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
26000 if test "x$ac_cv_header_zconf_h" = x""yes; then :
26001 passed=`expr $passed + 1`
26003 failed=`expr $failed + 1`
26007 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
26008 if test "x$ac_cv_header_zlib_h" = x""yes; then :
26009 passed=`expr $passed + 1`
26011 failed=`expr $failed + 1`
26015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
26016 $as_echo_n "checking for compress in -lz... " >&6; }
26017 if test "${ac_cv_lib_z_compress+set}" = set; then :
26018 $as_echo_n "(cached) " >&6
26020 ac_check_lib_save_LIBS=$LIBS
26022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26023 /* end confdefs.h. */
26025 /* Override any GCC internal prototype to avoid an error.
26026 Use char because int might match the return type of a GCC
26027 builtin and then its argument prototype would still apply. */
26035 return compress ();
26040 if ac_fn_c_try_link "$LINENO"; then :
26041 ac_cv_lib_z_compress=yes
26043 ac_cv_lib_z_compress=no
26045 rm -f core conftest.err conftest.$ac_objext \
26046 conftest$ac_exeext conftest.$ac_ext
26047 LIBS=$ac_check_lib_save_LIBS
26049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
26050 $as_echo "$ac_cv_lib_z_compress" >&6; }
26051 if test "x$ac_cv_lib_z_compress" = x""yes; then :
26052 passed=`expr $passed + 1`
26054 failed=`expr $failed + 1`
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
26058 $as_echo_n "checking for uncompress in -lz... " >&6; }
26059 if test "${ac_cv_lib_z_uncompress+set}" = set; then :
26060 $as_echo_n "(cached) " >&6
26062 ac_check_lib_save_LIBS=$LIBS
26064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26065 /* end confdefs.h. */
26067 /* Override any GCC internal prototype to avoid an error.
26068 Use char because int might match the return type of a GCC
26069 builtin and then its argument prototype would still apply. */
26073 char uncompress ();
26077 return uncompress ();
26082 if ac_fn_c_try_link "$LINENO"; then :
26083 ac_cv_lib_z_uncompress=yes
26085 ac_cv_lib_z_uncompress=no
26087 rm -f core conftest.err conftest.$ac_objext \
26088 conftest$ac_exeext conftest.$ac_ext
26089 LIBS=$ac_check_lib_save_LIBS
26091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
26092 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
26093 if test "x$ac_cv_lib_z_uncompress" = x""yes; then :
26094 passed=`expr $passed + 1`
26096 failed=`expr $failed + 1`
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
26100 $as_echo_n "checking for deflate in -lz... " >&6; }
26101 if test "${ac_cv_lib_z_deflate+set}" = set; then :
26102 $as_echo_n "(cached) " >&6
26104 ac_check_lib_save_LIBS=$LIBS
26106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26107 /* end confdefs.h. */
26109 /* Override any GCC internal prototype to avoid an error.
26110 Use char because int might match the return type of a GCC
26111 builtin and then its argument prototype would still apply. */
26124 if ac_fn_c_try_link "$LINENO"; then :
26125 ac_cv_lib_z_deflate=yes
26127 ac_cv_lib_z_deflate=no
26129 rm -f core conftest.err conftest.$ac_objext \
26130 conftest$ac_exeext conftest.$ac_ext
26131 LIBS=$ac_check_lib_save_LIBS
26133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
26134 $as_echo "$ac_cv_lib_z_deflate" >&6; }
26135 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
26136 passed=`expr $passed + 1`
26138 failed=`expr $failed + 1`
26141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
26142 $as_echo_n "checking for inflate in -lz... " >&6; }
26143 if test "${ac_cv_lib_z_inflate+set}" = set; then :
26144 $as_echo_n "(cached) " >&6
26146 ac_check_lib_save_LIBS=$LIBS
26148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26149 /* end confdefs.h. */
26151 /* Override any GCC internal prototype to avoid an error.
26152 Use char because int might match the return type of a GCC
26153 builtin and then its argument prototype would still apply. */
26166 if ac_fn_c_try_link "$LINENO"; then :
26167 ac_cv_lib_z_inflate=yes
26169 ac_cv_lib_z_inflate=no
26171 rm -f core conftest.err conftest.$ac_objext \
26172 conftest$ac_exeext conftest.$ac_ext
26173 LIBS=$ac_check_lib_save_LIBS
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
26176 $as_echo "$ac_cv_lib_z_inflate" >&6; }
26177 if test "x$ac_cv_lib_z_inflate" = x""yes; then :
26178 passed=`expr $passed + 1`
26180 failed=`expr $failed + 1`
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
26184 $as_echo_n "checking for gzseek in -lz... " >&6; }
26185 if test "${ac_cv_lib_z_gzseek+set}" = set; then :
26186 $as_echo_n "(cached) " >&6
26188 ac_check_lib_save_LIBS=$LIBS
26190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26191 /* end confdefs.h. */
26193 /* Override any GCC internal prototype to avoid an error.
26194 Use char because int might match the return type of a GCC
26195 builtin and then its argument prototype would still apply. */
26208 if ac_fn_c_try_link "$LINENO"; then :
26209 ac_cv_lib_z_gzseek=yes
26211 ac_cv_lib_z_gzseek=no
26213 rm -f core conftest.err conftest.$ac_objext \
26214 conftest$ac_exeext conftest.$ac_ext
26215 LIBS=$ac_check_lib_save_LIBS
26217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
26218 $as_echo "$ac_cv_lib_z_gzseek" >&6; }
26219 if test "x$ac_cv_lib_z_gzseek" = x""yes; then :
26220 passed=`expr $passed + 1`
26222 failed=`expr $failed + 1`
26225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
26226 $as_echo_n "checking for gztell in -lz... " >&6; }
26227 if test "${ac_cv_lib_z_gztell+set}" = set; then :
26228 $as_echo_n "(cached) " >&6
26230 ac_check_lib_save_LIBS=$LIBS
26232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26233 /* end confdefs.h. */
26235 /* Override any GCC internal prototype to avoid an error.
26236 Use char because int might match the return type of a GCC
26237 builtin and then its argument prototype would still apply. */
26250 if ac_fn_c_try_link "$LINENO"; then :
26251 ac_cv_lib_z_gztell=yes
26253 ac_cv_lib_z_gztell=no
26255 rm -f core conftest.err conftest.$ac_objext \
26256 conftest$ac_exeext conftest.$ac_ext
26257 LIBS=$ac_check_lib_save_LIBS
26259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
26260 $as_echo "$ac_cv_lib_z_gztell" >&6; }
26261 if test "x$ac_cv_lib_z_gztell" = x""yes; then :
26262 passed=`expr $passed + 1`
26264 failed=`expr $failed + 1`
26267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
26268 $as_echo_n "checking if ZLIB package is complete... " >&6; }
26269 if test $passed -gt 0; then
26270 if test $failed -gt 0; then
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26272 $as_echo "no -- some components failed test" >&6; }
26273 have_zlib='no (failed tests)'
26276 LIBS="$ZLIB_LIBS $LIBS"
26278 $as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
26280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26281 $as_echo "yes" >&6; }
26285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26286 $as_echo "no" >&6; }
26289 if test "$have_zlib" = 'yes'; then
26290 ZLIB_DELEGATE_TRUE=
26291 ZLIB_DELEGATE_FALSE='#'
26293 ZLIB_DELEGATE_TRUE='#'
26294 ZLIB_DELEGATE_FALSE=
26300 # If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
26303 if test "$enable_profiling" = 'yes'; then
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
26305 $as_echo_n "checking for dlopen in -ldl... " >&6; }
26306 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
26307 $as_echo_n "(cached) " >&6
26309 ac_check_lib_save_LIBS=$LIBS
26311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26312 /* end confdefs.h. */
26314 /* Override any GCC internal prototype to avoid an error.
26315 Use char because int might match the return type of a GCC
26316 builtin and then its argument prototype would still apply. */
26329 if ac_fn_c_try_link "$LINENO"; then :
26330 ac_cv_lib_dl_dlopen=yes
26332 ac_cv_lib_dl_dlopen=no
26334 rm -f core conftest.err conftest.$ac_objext \
26335 conftest$ac_exeext conftest.$ac_ext
26336 LIBS=$ac_check_lib_save_LIBS
26338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
26339 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
26340 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
26344 LIBS="$LIB_DL $LIBS"
26350 # Check for Autotrace delegate library.
26353 # Check whether --with-autotrace was given.
26354 if test "${with_autotrace+set}" = set; then :
26355 withval=$with_autotrace; with_autotrace=$withval
26357 with_autotrace='no'
26361 if test "$with_autotrace" != 'yes'; then
26362 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
26365 have_autotrace='no'
26366 AUTOTRACE_CFLAGS=""
26369 if test "x$with_autotrace" = "xyes"; then
26370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26371 $as_echo "-------------------------------------------------------------" >&6; }
26374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
26375 $as_echo_n "checking for AUTOTRACE... " >&6; }
26377 if test -n "$AUTOTRACE_CFLAGS"; then
26378 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
26379 elif test -n "$PKG_CONFIG"; then
26380 if test -n "$PKG_CONFIG" && \
26381 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26382 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26385 test $ac_status = 0; }; then
26386 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
26393 if test -n "$AUTOTRACE_LIBS"; then
26394 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
26395 elif test -n "$PKG_CONFIG"; then
26396 if test -n "$PKG_CONFIG" && \
26397 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
26398 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
26400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26401 test $ac_status = 0; }; then
26402 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
26412 if test $pkg_failed = yes; then
26414 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
26415 _pkg_short_errors_supported=yes
26417 _pkg_short_errors_supported=no
26419 if test $_pkg_short_errors_supported = yes; then
26420 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
26422 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
26424 # Put the nasty error message in config.log where it belongs
26425 echo "$AUTOTRACE_PKG_ERRORS" >&5
26427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26428 $as_echo "no" >&6; }
26430 elif test $pkg_failed = untried; then
26433 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
26434 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
26435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26436 $as_echo "yes" >&6; }
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26443 if test "$have_autotrace" = 'yes'; then
26446 $as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
26448 if test "$with_modules" = 'no'; then
26449 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
26453 if test "$have_autotrace" = 'yes'; then
26454 AUTOTRACE_DELEGATE_TRUE=
26455 AUTOTRACE_DELEGATE_FALSE='#'
26457 AUTOTRACE_DELEGATE_TRUE='#'
26458 AUTOTRACE_DELEGATE_FALSE=
26466 # Check for Display Postscript delegate library.
26469 # Check whether --with-dps was given.
26470 if test "${with_dps+set}" = set; then :
26471 withval=$with_dps; with_dps=$withval
26477 if test "$with_dps" != 'yes'; then
26478 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
26483 if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
26484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26485 $as_echo "-------------------------------------------------------------" >&6; }
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
26487 $as_echo_n "checking for DPS... " >&6; }
26488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26492 PERSIST_CPPFLAGS="$CPPFLAGS"
26493 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
26494 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
26495 if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then :
26496 passed=`expr $passed + 1`
26498 failed=`expr $failed + 1`
26503 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
26504 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
26505 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
26506 # ImageMagick itself doesn't use -lXt.
26509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
26510 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
26511 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
26512 $as_echo_n "(cached) " >&6
26514 ac_check_lib_save_LIBS=$LIBS
26516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26517 /* end confdefs.h. */
26519 /* Override any GCC internal prototype to avoid an error.
26520 Use char because int might match the return type of a GCC
26521 builtin and then its argument prototype would still apply. */
26525 char DPSInitialize ();
26529 return DPSInitialize ();
26534 if ac_fn_c_try_link "$LINENO"; then :
26535 ac_cv_lib_dps_DPSInitialize=yes
26537 ac_cv_lib_dps_DPSInitialize=no
26539 rm -f core conftest.err conftest.$ac_objext \
26540 conftest$ac_exeext conftest.$ac_ext
26541 LIBS=$ac_check_lib_save_LIBS
26543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
26544 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
26545 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
26551 if test "$have_libdps" != 'yes'; then
26552 # Unset cache variable so we can try again.
26553 unset ac_cv_lib_dps_DPSInitialize
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
26555 $as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
26556 if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then :
26557 $as_echo_n "(cached) " >&6
26559 ac_check_lib_save_LIBS=$LIBS
26560 LIBS="-ldps -lXt $LIBS"
26561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26562 /* end confdefs.h. */
26564 /* Override any GCC internal prototype to avoid an error.
26565 Use char because int might match the return type of a GCC
26566 builtin and then its argument prototype would still apply. */
26570 char DPSInitialize ();
26574 return DPSInitialize ();
26579 if ac_fn_c_try_link "$LINENO"; then :
26580 ac_cv_lib_dps_DPSInitialize=yes
26582 ac_cv_lib_dps_DPSInitialize=no
26584 rm -f core conftest.err conftest.$ac_objext \
26585 conftest$ac_exeext conftest.$ac_ext
26586 LIBS=$ac_check_lib_save_LIBS
26588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
26589 $as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
26590 if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then :
26596 if test "$have_libdps" = 'yes'; then
26600 if test "$have_libdps" = 'yes'; then
26601 passed=`expr $passed + 1`
26603 failed=`expr $failed + 1`
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
26606 $as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
26607 if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then :
26608 $as_echo_n "(cached) " >&6
26610 ac_check_lib_save_LIBS=$LIBS
26611 LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
26612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26613 /* end confdefs.h. */
26615 /* Override any GCC internal prototype to avoid an error.
26616 Use char because int might match the return type of a GCC
26617 builtin and then its argument prototype would still apply. */
26621 char XDPSPixelsPerPoint ();
26625 return XDPSPixelsPerPoint ();
26630 if ac_fn_c_try_link "$LINENO"; then :
26631 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
26633 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
26635 rm -f core conftest.err conftest.$ac_objext \
26636 conftest$ac_exeext conftest.$ac_ext
26637 LIBS=$ac_check_lib_save_LIBS
26639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
26640 $as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
26641 if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then :
26642 passed=`expr $passed + 1`
26644 failed=`expr $failed + 1`
26647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
26648 $as_echo_n "checking if DPS package is complete... " >&6; }
26649 if test $passed -gt 0; then
26650 if test $failed -gt 0; then
26651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26652 $as_echo "no -- some components failed test" >&6; }
26653 have_dps='no (failed tests)'
26654 CPPFLAGS="$PERSIST_CPPFLAGS"
26656 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
26657 LIBS="$DPS_LIBS $LIBS"
26659 $as_echo "#define DPS_DELEGATE 1" >>confdefs.h
26661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26662 $as_echo "yes" >&6; }
26666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26667 $as_echo "no" >&6; }
26668 CPPFLAGS=$PERSIST_CPPFLAGS
26671 if test "$have_dps" = 'yes'; then
26673 DPS_DELEGATE_FALSE='#'
26675 DPS_DELEGATE_TRUE='#'
26676 DPS_DELEGATE_FALSE=
26683 # Check for DJVU delegate library.
26686 # Check whether --with-djvu was given.
26687 if test "${with_djvu+set}" = set; then :
26688 withval=$with_djvu; with_djvu=$withval
26694 if test "$with_djvu" != 'yes'; then
26695 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
26700 if test "$with_djvu" != 'no'; then
26701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26702 $as_echo "-------------------------------------------------------------" >&6; }
26703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
26704 $as_echo_n "checking for DJVU... " >&6; }
26705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26709 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
26710 if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then :
26711 passed=`expr $passed + 1`
26713 failed=`expr $failed + 1`
26717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
26718 $as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
26719 if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then :
26720 $as_echo_n "(cached) " >&6
26722 ac_check_lib_save_LIBS=$LIBS
26723 LIBS="-ldjvulibre $LIBS"
26724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26725 /* end confdefs.h. */
26727 /* Override any GCC internal prototype to avoid an error.
26728 Use char because int might match the return type of a GCC
26729 builtin and then its argument prototype would still apply. */
26733 char ddjvu_context_create ();
26737 return ddjvu_context_create ();
26742 if ac_fn_c_try_link "$LINENO"; then :
26743 ac_cv_lib_djvulibre_ddjvu_context_create=yes
26745 ac_cv_lib_djvulibre_ddjvu_context_create=no
26747 rm -f core conftest.err conftest.$ac_objext \
26748 conftest$ac_exeext conftest.$ac_ext
26749 LIBS=$ac_check_lib_save_LIBS
26751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
26752 $as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
26753 if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then :
26754 passed=`expr $passed + 1`
26756 failed=`expr $failed + 1`
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
26760 $as_echo_n "checking if DJVU package is complete... " >&6; }
26761 if test $passed -gt 0; then
26762 if test $failed -gt 0; then
26763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26764 $as_echo "no -- some components failed test" >&6; }
26765 have_djvu='no (failed tests)'
26767 DJVU_LIBS='-ldjvulibre'
26768 LIBS="$DJVU_LIBS $LIBS"
26770 $as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
26772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26773 $as_echo "yes" >&6; }
26777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26778 $as_echo "no" >&6; }
26781 if test "$have_djvu" = 'yes'; then
26782 DJVU_DELEGATE_TRUE=
26783 DJVU_DELEGATE_FALSE='#'
26785 DJVU_DELEGATE_TRUE='#'
26786 DJVU_DELEGATE_FALSE=
26793 # Set DejaVu font directory.
26796 # Check whether --with-dejavu-font-dir was given.
26797 if test "${with_dejavu_font_dir+set}" = set; then :
26798 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
26800 with_dejavu_font_dir='default'
26804 if test "$with_dejavu_font_dir" != 'default'; then
26805 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
26810 # Check for FFTW delegate library.
26813 # Check whether --with-fftw was given.
26814 if test "${with_fftw+set}" = set; then :
26815 withval=$with_fftw; with_fftw=$withval
26821 if test "$with_fftw" != 'yes'; then
26822 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
26827 if test "$with_fftw" != 'no'; then
26828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26829 $as_echo "-------------------------------------------------------------" >&6; }
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
26831 $as_echo_n "checking for FFTW... " >&6; }
26832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26836 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
26837 if test "x$ac_cv_header_fftw3_h" = x""yes; then :
26838 passed=`expr $passed + 1`
26840 failed=`expr $failed + 1`
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
26845 $as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
26846 if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then :
26847 $as_echo_n "(cached) " >&6
26849 ac_check_lib_save_LIBS=$LIBS
26850 LIBS="-lfftw3 $LIBS"
26851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26852 /* end confdefs.h. */
26854 /* Override any GCC internal prototype to avoid an error.
26855 Use char because int might match the return type of a GCC
26856 builtin and then its argument prototype would still apply. */
26860 char fftw_execute ();
26864 return fftw_execute ();
26869 if ac_fn_c_try_link "$LINENO"; then :
26870 ac_cv_lib_fftw3_fftw_execute=yes
26872 ac_cv_lib_fftw3_fftw_execute=no
26874 rm -f core conftest.err conftest.$ac_objext \
26875 conftest$ac_exeext conftest.$ac_ext
26876 LIBS=$ac_check_lib_save_LIBS
26878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
26879 $as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
26880 if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then :
26881 passed=`expr $passed + 1`
26883 failed=`expr $failed + 1`
26886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
26887 $as_echo_n "checking if FFTW package is complete... " >&6; }
26888 if test $passed -gt 0; then
26889 if test $failed -gt 0; then
26890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
26891 $as_echo "no -- some components failed test" >&6; }
26892 have_fftw='no (failed tests)'
26894 FFTW_LIBS='-lfftw3'
26895 LIBS="$FFTW_LIBS $LIBS"
26897 $as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
26899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26900 $as_echo "yes" >&6; }
26904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26905 $as_echo "no" >&6; }
26908 if test "$have_fftw" = 'yes'; then
26909 FFTW_DELEGATE_TRUE=
26910 FFTW_DELEGATE_FALSE='#'
26912 FFTW_DELEGATE_TRUE='#'
26913 FFTW_DELEGATE_FALSE=
26920 # Check for FlashPIX delegate library.
26923 # Check whether --with-fpx was given.
26924 if test "${with_fpx+set}" = set; then :
26925 withval=$with_fpx; with_fpx=$withval
26931 if test "$with_fpx" != 'yes'; then
26932 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
26937 if test "$with_fpx" != 'no'; then
26938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
26939 $as_echo "-------------------------------------------------------------" >&6; }
26940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
26941 $as_echo_n "checking for FlashPIX... " >&6; }
26942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
26947 ac_cpp='$CXXCPP $CPPFLAGS'
26948 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26949 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26950 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26953 ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
26954 if test "x$ac_cv_header_fpxlib_h" = x""yes; then :
26955 passed=`expr $passed + 1`
26957 failed=`expr $failed + 1`
26961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
26962 $as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
26963 if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then :
26964 $as_echo_n "(cached) " >&6
26966 ac_check_lib_save_LIBS=$LIBS
26968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26969 /* end confdefs.h. */
26971 /* Override any GCC internal prototype to avoid an error.
26972 Use char because int might match the return type of a GCC
26973 builtin and then its argument prototype would still apply. */
26977 char FPX_OpenImageByFilename ();
26981 return FPX_OpenImageByFilename ();
26986 if ac_fn_cxx_try_link "$LINENO"; then :
26987 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
26989 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
26991 rm -f core conftest.err conftest.$ac_objext \
26992 conftest$ac_exeext conftest.$ac_ext
26993 LIBS=$ac_check_lib_save_LIBS
26995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
26996 $as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
26997 if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then :
26998 passed=`expr $passed + 1`
27000 failed=`expr $failed + 1`
27004 ac_cpp='$CPP $CPPFLAGS'
27005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
27010 $as_echo_n "checking if FlashPIX package is complete... " >&6; }
27011 if test $passed -gt 0; then
27012 if test $failed -gt 0; then
27013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27014 $as_echo "no -- some components failed test" >&6; }
27015 have_fpx='no (failed tests)'
27019 $as_echo "#define FPX_DELEGATE 1" >>confdefs.h
27021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27022 $as_echo "yes" >&6; }
27027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27028 $as_echo "no" >&6; }
27031 if test "$have_fpx" = 'yes'; then
27033 FPX_DELEGATE_FALSE='#'
27035 FPX_DELEGATE_TRUE='#'
27036 FPX_DELEGATE_FALSE=
27043 # Check for fontconfig delegate library.
27046 # Check whether --with-fontconfig was given.
27047 if test "${with_fontconfig+set}" = set; then :
27048 withval=$with_fontconfig; with_fontconfig=$withval
27050 with_fontconfig=$have_x
27054 if test "$with_fontconfig" != 'yes'; then
27055 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
27058 have_fontconfig='no'
27059 FONTCONFIG_CFLAGS=""
27062 if test "x$with_fontconfig" = "xyes"; then
27063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27064 $as_echo "-------------------------------------------------------------" >&6; }
27067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
27068 $as_echo_n "checking for FONTCONFIG... " >&6; }
27070 if test -n "$FONTCONFIG_CFLAGS"; then
27071 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
27072 elif test -n "$PKG_CONFIG"; then
27073 if test -n "$PKG_CONFIG" && \
27074 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27075 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27078 test $ac_status = 0; }; then
27079 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
27086 if test -n "$FONTCONFIG_LIBS"; then
27087 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
27088 elif test -n "$PKG_CONFIG"; then
27089 if test -n "$PKG_CONFIG" && \
27090 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
27091 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
27093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27094 test $ac_status = 0; }; then
27095 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
27105 if test $pkg_failed = yes; then
27107 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27108 _pkg_short_errors_supported=yes
27110 _pkg_short_errors_supported=no
27112 if test $_pkg_short_errors_supported = yes; then
27113 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
27115 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
27117 # Put the nasty error message in config.log where it belongs
27118 echo "$FONTCONFIG_PKG_ERRORS" >&5
27120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27121 $as_echo "no" >&6; }
27123 elif test $pkg_failed = untried; then
27126 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
27127 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
27128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27129 $as_echo "yes" >&6; }
27130 have_fontconfig=yes
27132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27136 if test "$have_fontconfig" = 'yes'; then
27138 $as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
27140 if test "$with_modules" = 'no'; then
27141 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
27145 if test "$have_fontconfig" = 'yes'; then
27146 FONTCONFIG_DELEGATE_TRUE=
27147 FONTCONFIG_DELEGATE_FALSE='#'
27149 FONTCONFIG_DELEGATE_TRUE='#'
27150 FONTCONFIG_DELEGATE_FALSE=
27158 # Check for freetype delegate library.
27161 # Check whether --with-freetype was given.
27162 if test "${with_freetype+set}" = set; then :
27163 withval=$with_freetype; with_freetype=$withval
27165 with_freetype='yes'
27170 if test "$with_freetype" != 'yes'; then
27171 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
27176 if test "$with_freetype" != 'no'; then
27177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27178 $as_echo "-------------------------------------------------------------" >&6; }
27179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0" >&5
27180 $as_echo_n "checking for FreeType 2.0... " >&6; }
27181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27185 PERSIST_LIBS="$LIBS"
27186 PERSIST_CPPFLAGS="$CPPFLAGS"
27187 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
27191 for ac_prog in freetype-config
27193 # Extract the first word of "$ac_prog", so it can be a program name with args.
27194 set dummy $ac_prog; ac_word=$2
27195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27196 $as_echo_n "checking for $ac_word... " >&6; }
27197 if test "${ac_cv_prog_freetype_config+set}" = set; then :
27198 $as_echo_n "(cached) " >&6
27200 if test -n "$freetype_config"; then
27201 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
27203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27204 for as_dir in $PATH
27207 test -z "$as_dir" && as_dir=.
27208 for ac_exec_ext in '' $ac_executable_extensions; do
27209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
27210 ac_cv_prog_freetype_config="$ac_prog"
27211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27220 freetype_config=$ac_cv_prog_freetype_config
27221 if test -n "$freetype_config"; then
27222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
27223 $as_echo "$freetype_config" >&6; }
27225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27226 $as_echo "no" >&6; }
27230 test -n "$freetype_config" && break
27232 if test -n "$freetype_config"; then
27233 freetype_cflags=`$freetype_config --cflags`
27234 freetype_libs=`$freetype_config --libs`
27235 LIBS="$LIBS $freetype_libs"
27236 CPPFLAGS="$freetype_cflags $CPPFLAGS"
27240 if test "$FREETYPE_LIBS" = ''; then
27241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
27242 $as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
27243 if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then :
27244 $as_echo_n "(cached) " >&6
27246 ac_check_lib_save_LIBS=$LIBS
27247 LIBS="-lfreetype $LIBS"
27248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27249 /* end confdefs.h. */
27251 /* Override any GCC internal prototype to avoid an error.
27252 Use char because int might match the return type of a GCC
27253 builtin and then its argument prototype would still apply. */
27257 char FT_Init_FreeType ();
27261 return FT_Init_FreeType ();
27266 if ac_fn_c_try_link "$LINENO"; then :
27267 ac_cv_lib_freetype_FT_Init_FreeType=yes
27269 ac_cv_lib_freetype_FT_Init_FreeType=no
27271 rm -f core conftest.err conftest.$ac_objext \
27272 conftest$ac_exeext conftest.$ac_ext
27273 LIBS=$ac_check_lib_save_LIBS
27275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
27276 $as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
27277 if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then :
27278 FREETYPE_LIBS='-lfreetype'
27281 if test "$FREETYPE_LIBS" != ''; then
27282 passed=`expr $passed + 1`
27284 failed=`expr $failed + 1`
27285 LIBS="$PERSIST_LIBS"
27289 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
27290 if test "x$ac_cv_header_ft2build_h" = x""yes; then :
27291 FT2BUILD_H='#include <ft2build.h>'
27297 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
27299 if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then :
27300 have_freetype_h='yes'
27302 have_freetype_h='no'
27306 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
27307 passed=`expr $passed + 1`
27309 failed=`expr $failed + 1`
27310 CPPFLAGS="$PERSIST_CPPFLAGS"
27313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
27314 $as_echo_n "checking if FreeType package is complete... " >&6; }
27315 if test $passed -gt 0; then
27316 if test $failed -gt 0; then
27318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27319 $as_echo "no -- some components failed test" >&6; }
27320 have_freetype='no (failed tests)'
27322 LIBS="$FREETYPE_LIBS $LIBS"
27324 $as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
27326 if test "$ac_cv_header_ft2build_h" = 'yes'; then
27328 $as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
27331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27332 $as_echo "yes" >&6; }
27333 have_freetype='yes'
27336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27337 $as_echo "no" >&6; }
27340 if test "$have_freetype" = 'yes'; then
27341 FREETYPE_DELEGATE_TRUE=
27342 FREETYPE_DELEGATE_FALSE='#'
27344 FREETYPE_DELEGATE_TRUE='#'
27345 FREETYPE_DELEGATE_FALSE=
27353 # Check for Ghostscript library or framework.
27355 # Test for iapi.h & test for gsapi_new_instance in -lgs
27356 # or -framework Ghostscript
27359 # Check whether --with-gslib was given.
27360 if test "${with_gslib+set}" = set; then :
27361 withval=$with_gslib; with_gslib=$withval
27367 gslib_framework='no'
27368 if test "$with_gslib" != 'yes'; then
27369 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
27374 if test "$with_gslib" != 'no'; then
27375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27376 $as_echo "-------------------------------------------------------------" >&6; }
27377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
27378 $as_echo_n "checking for Ghostscript... " >&6; }
27379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27384 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
27385 if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then :
27386 passed=`expr $passed + 1`
27388 failed=`expr $failed + 1`
27392 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
27393 if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then :
27394 passed=`expr $passed + 1`
27396 failed=`expr $failed + 1`
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
27401 $as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
27402 if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then :
27403 $as_echo_n "(cached) " >&6
27405 ac_check_framework_save_LIBS=$LIBS
27406 LIBS="-framework Ghostscript $LIBS"
27407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27408 /* end confdefs.h. */
27410 /* Override any GCC internal prototype to avoid an error.
27411 Use char because int might match the return type of a GCC
27412 builtin and then its argument prototype would still apply. */
27416 char gsapi_new_instance ();
27420 return gsapi_new_instance ();
27425 if ac_fn_c_try_link "$LINENO"; then :
27426 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
27428 ac_cv_framework_Ghostscript_gsapi_new_instance=no
27430 rm -f core conftest.err conftest.$ac_objext \
27431 conftest$ac_exeext conftest.$ac_ext
27432 LIBS=$ac_check_framework_save_LIBS
27434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
27435 $as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
27436 if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
27437 framework=`expr $framework + 1`
27439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
27440 $as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
27441 if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then :
27442 $as_echo_n "(cached) " >&6
27444 ac_check_lib_save_LIBS=$LIBS
27446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27447 /* end confdefs.h. */
27449 /* Override any GCC internal prototype to avoid an error.
27450 Use char because int might match the return type of a GCC
27451 builtin and then its argument prototype would still apply. */
27455 char gsapi_new_instance ();
27459 return gsapi_new_instance ();
27464 if ac_fn_c_try_link "$LINENO"; then :
27465 ac_cv_lib_gs_gsapi_new_instance=yes
27467 ac_cv_lib_gs_gsapi_new_instance=no
27469 rm -f core conftest.err conftest.$ac_objext \
27470 conftest$ac_exeext conftest.$ac_ext
27471 LIBS=$ac_check_lib_save_LIBS
27473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
27474 $as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
27475 if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then :
27476 passed=`expr $passed + 1`
27478 failed=`expr $failed + 1`
27482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
27483 $as_echo_n "checking if Ghostscript package is complete... " >&6; }
27484 if test $passed -gt 0; then
27485 if test $failed -gt 0; then
27486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27487 $as_echo "no -- some components failed test" >&6; }
27488 have_gslib='no (failed tests)'
27490 if test $framework -gt 0; then
27491 GS_LIBS='-framework Ghostscript'
27492 gslib_framework='yes'
27493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using framework." >&5
27494 $as_echo "yes, using framework." >&6; }
27496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, using library." >&5
27497 $as_echo "yes, using library." >&6; }
27500 LIBS="$GS_LIBS $LIBS"
27502 $as_echo "#define GS_DELEGATE 1" >>confdefs.h
27507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27508 $as_echo "no" >&6; }
27511 if test "$have_gslib" = 'yes'; then
27513 GS_DELEGATE_FALSE='#'
27515 GS_DELEGATE_TRUE='#'
27521 # Set default font search path
27523 # Check whether --with-fontpath was given.
27524 if test "${with_fontpath+set}" = set; then :
27525 withval=$with_fontpath; with_fontpath=$withval
27531 if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
27535 cat >>confdefs.h <<_ACEOF
27536 #define MAGICK_FONT_PATH "$with_fontpath"
27540 if test "$with_fontpath=" != ''; then
27541 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
27544 # Set Ghostscript font directory
27546 # Check whether --with-gs-font-dir was given.
27547 if test "${with_gs_font_dir+set}" = set; then :
27548 withval=$with_gs_font_dir; with_gs_font_dir=$withval
27550 with_gs_font_dir='default'
27554 if test "$with_gs_font_dir" != 'default'; then
27555 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
27560 # Check for GVC delegate library.
27563 # Check whether --with-gvc was given.
27564 if test "${with_gvc+set}" = set; then :
27565 withval=$with_gvc; with_gvc=$withval
27571 if test "$with_gvc" != 'yes'; then
27572 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
27576 if test "x$with_gvc" = "xyes"; then
27577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27578 $as_echo "-------------------------------------------------------------" >&6; }
27581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
27582 $as_echo_n "checking for GVC... " >&6; }
27584 if test -n "$GVC_CFLAGS"; then
27585 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
27586 elif test -n "$PKG_CONFIG"; then
27587 if test -n "$PKG_CONFIG" && \
27588 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27589 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27592 test $ac_status = 0; }; then
27593 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
27600 if test -n "$GVC_LIBS"; then
27601 pkg_cv_GVC_LIBS="$GVC_LIBS"
27602 elif test -n "$PKG_CONFIG"; then
27603 if test -n "$PKG_CONFIG" && \
27604 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
27605 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
27607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27608 test $ac_status = 0; }; then
27609 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
27619 if test $pkg_failed = yes; then
27621 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27622 _pkg_short_errors_supported=yes
27624 _pkg_short_errors_supported=no
27626 if test $_pkg_short_errors_supported = yes; then
27627 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
27629 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
27631 # Put the nasty error message in config.log where it belongs
27632 echo "$GVC_PKG_ERRORS" >&5
27634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27635 $as_echo "no" >&6; }
27637 elif test $pkg_failed = untried; then
27640 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
27641 GVC_LIBS=$pkg_cv_GVC_LIBS
27642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27643 $as_echo "yes" >&6; }
27646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27650 if test "$have_gvc" = 'yes'; then
27652 $as_echo "#define GVC_DELEGATE 1" >>confdefs.h
27654 if test "$with_modules" = 'no'; then
27655 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
27659 if test "$have_gvc" = 'yes'; then
27661 GVC_DELEGATE_FALSE='#'
27663 GVC_DELEGATE_TRUE='#'
27664 GVC_DELEGATE_FALSE=
27672 # Check for JBIG delegate library.
27676 # Check whether --with-jbig was given.
27677 if test "${with_jbig+set}" = set; then :
27678 withval=$with_jbig; with_jbig=$withval
27686 if test "$with_jbig" != 'no'; then
27687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27688 $as_echo "-------------------------------------------------------------" >&6; }
27689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
27690 $as_echo_n "checking for JBIG... " >&6; }
27691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27695 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
27696 if test "x$ac_cv_header_jbig_h" = x""yes; then :
27697 passed=`expr $passed + 1`
27699 failed=`expr $failed + 1`
27703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
27704 $as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
27705 if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then :
27706 $as_echo_n "(cached) " >&6
27708 ac_check_lib_save_LIBS=$LIBS
27709 LIBS="-ljbig $LIBS"
27710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27711 /* end confdefs.h. */
27713 /* Override any GCC internal prototype to avoid an error.
27714 Use char because int might match the return type of a GCC
27715 builtin and then its argument prototype would still apply. */
27719 char jbg_dec_init ();
27723 return jbg_dec_init ();
27728 if ac_fn_c_try_link "$LINENO"; then :
27729 ac_cv_lib_jbig_jbg_dec_init=yes
27731 ac_cv_lib_jbig_jbg_dec_init=no
27733 rm -f core conftest.err conftest.$ac_objext \
27734 conftest$ac_exeext conftest.$ac_ext
27735 LIBS=$ac_check_lib_save_LIBS
27737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
27738 $as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
27739 if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then :
27740 passed=`expr $passed + 1`
27742 failed=`expr $failed + 1`
27745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
27746 $as_echo_n "checking if JBIG package is complete... " >&6; }
27747 if test $passed -gt 0; then
27748 if test $failed -gt 0; then
27749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27750 $as_echo "no -- some components failed test" >&6; }
27751 have_jbig='no (failed tests)'
27754 LIBS="$JBIG_LIBS $LIBS"
27756 $as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
27758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27759 $as_echo "yes" >&6; }
27763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27764 $as_echo "no" >&6; }
27767 if test "$have_jbig" = 'yes'; then
27768 JBIG_DELEGATE_TRUE=
27769 JBIG_DELEGATE_FALSE='#'
27771 JBIG_DELEGATE_TRUE='#'
27772 JBIG_DELEGATE_FALSE=
27779 # Check for JPEG delegate library.
27782 # Check whether --with-jpeg was given.
27783 if test "${with_jpeg+set}" = set; then :
27784 withval=$with_jpeg; with_jpeg=$withval
27790 if test "$with_jpeg" != 'yes'; then
27791 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
27796 if test "$with_jpeg" != 'no'; then
27797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27798 $as_echo "-------------------------------------------------------------" >&6; }
27799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
27800 $as_echo_n "checking for JPEG... " >&6; }
27801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27805 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
27806 if test "x$ac_cv_header_jconfig_h" = x""yes; then :
27807 passed=`expr $passed + 1`
27809 failed=`expr $failed + 1`
27813 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
27814 if test "x$ac_cv_header_jerror_h" = x""yes; then :
27815 passed=`expr $passed + 1`
27817 failed=`expr $failed + 1`
27821 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
27822 if test "x$ac_cv_header_jmorecfg_h" = x""yes; then :
27823 passed=`expr $passed + 1`
27825 failed=`expr $failed + 1`
27829 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
27830 if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
27831 passed=`expr $passed + 1`
27833 failed=`expr $failed + 1`
27837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
27838 $as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
27839 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then :
27840 $as_echo_n "(cached) " >&6
27842 ac_check_lib_save_LIBS=$LIBS
27843 LIBS="-ljpeg $LIBS"
27844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27845 /* end confdefs.h. */
27847 /* Override any GCC internal prototype to avoid an error.
27848 Use char because int might match the return type of a GCC
27849 builtin and then its argument prototype would still apply. */
27853 char jpeg_read_header ();
27857 return jpeg_read_header ();
27862 if ac_fn_c_try_link "$LINENO"; then :
27863 ac_cv_lib_jpeg_jpeg_read_header=yes
27865 ac_cv_lib_jpeg_jpeg_read_header=no
27867 rm -f core conftest.err conftest.$ac_objext \
27868 conftest$ac_exeext conftest.$ac_ext
27869 LIBS=$ac_check_lib_save_LIBS
27871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
27872 $as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
27873 if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then :
27874 passed=`expr $passed + 1`
27876 failed=`expr $failed + 1`
27880 # Test for compatible JPEG library
27881 if test "$ac_cv_jpeg_version_ok" != 'yes'; then
27882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
27883 $as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
27884 if test "${ac_cv_jpeg_version_ok+set}" = set; then :
27885 $as_echo_n "(cached) " >&6
27887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27888 /* end confdefs.h. */
27890 #include <stdlib.h>
27891 #include <jpeglib.h>
27897 #if JPEG_LIB_VERSION < 62
27898 #error IJG JPEG library must be version 6b or newer!
27906 if ac_fn_c_try_compile "$LINENO"; then :
27907 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
27909 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
27911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
27914 $as_echo "$ac_cv_jpeg_version_ok" >&6; }
27916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
27917 $as_echo_n "checking if JPEG package is complete... " >&6; }
27918 if test $passed -gt 0; then
27919 if test $failed -gt 0; then
27920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27921 $as_echo "no -- some components failed test" >&6; }
27922 have_jpeg='no (failed tests)'
27925 LIBS="$JPEG_LIBS $LIBS"
27927 $as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
27929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27930 $as_echo "yes" >&6; }
27934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27935 $as_echo "no" >&6; }
27938 if test "$have_jpeg" = 'yes'; then
27939 JPEG_DELEGATE_TRUE=
27940 JPEG_DELEGATE_FALSE='#'
27942 JPEG_DELEGATE_TRUE='#'
27943 JPEG_DELEGATE_FALSE=
27950 # Check for JPEG Version 2 delegate library.
27953 # Check whether --with-jp2 was given.
27954 if test "${with_jp2+set}" = set; then :
27955 withval=$with_jp2; with_jp2=$withval
27961 if test "$with_jp2" != 'yes'; then
27962 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
27967 if test "$with_jp2" != 'no'; then
27968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
27969 $as_echo "-------------------------------------------------------------" >&6; }
27970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
27971 $as_echo_n "checking for JPEG Version 2... " >&6; }
27972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
27976 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
27977 if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then :
27978 passed=`expr $passed + 1`
27980 failed=`expr $failed + 1`
27984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
27985 $as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
27986 if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then :
27987 $as_echo_n "(cached) " >&6
27989 ac_check_lib_save_LIBS=$LIBS
27990 LIBS="-ljasper $LIBS"
27991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27992 /* end confdefs.h. */
27994 /* Override any GCC internal prototype to avoid an error.
27995 Use char because int might match the return type of a GCC
27996 builtin and then its argument prototype would still apply. */
28000 char jas_stream_fopen ();
28004 return jas_stream_fopen ();
28009 if ac_fn_c_try_link "$LINENO"; then :
28010 ac_cv_lib_jasper_jas_stream_fopen=yes
28012 ac_cv_lib_jasper_jas_stream_fopen=no
28014 rm -f core conftest.err conftest.$ac_objext \
28015 conftest$ac_exeext conftest.$ac_ext
28016 LIBS=$ac_check_lib_save_LIBS
28018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
28019 $as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
28020 if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then :
28021 passed=`expr $passed + 1`
28023 failed=`expr $failed + 1`
28026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
28027 $as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
28028 if test $passed -gt 0; then
28029 if test $failed -gt 0; then
28030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28031 $as_echo "no -- some components failed test" >&6; }
28032 have_jp2='no (failed tests)'
28034 JP2_LIBS='-ljasper'
28035 LIBS="$JP2_LIBS $LIBS"
28037 $as_echo "#define JP2_DELEGATE 1" >>confdefs.h
28039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28040 $as_echo "yes" >&6; }
28044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28045 $as_echo "no" >&6; }
28048 if test "$have_jp2" = 'yes'; then
28050 JP2_DELEGATE_FALSE='#'
28052 JP2_DELEGATE_TRUE='#'
28053 JP2_DELEGATE_FALSE=
28060 # Check for LCMS delegate library.
28064 # Check whether --with-lcms was given.
28065 if test "${with_lcms+set}" = set; then :
28066 withval=$with_lcms; with_lcms=$withval
28071 if test "$with_lcms" != 'yes' ; then
28072 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
28077 # Check whether --with-lcms2 was given.
28078 if test "${with_lcms2+set}" = set; then :
28079 withval=$with_lcms2; with_lcms2=$withval
28084 if test "$with_lcms2" != 'yes' ; then
28085 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
28090 if test "$with_lcms2" != 'no'; then
28091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28092 $as_echo "-------------------------------------------------------------" >&6; }
28093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
28094 $as_echo_n "checking for LCMS v2... " >&6; }
28095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28099 have_lcms_header='no'
28101 # Check for <lcms2.h>
28102 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
28103 if test "x$ac_cv_header_lcms2_h" = x""yes; then :
28104 have_lcms_header='yes'
28108 if test "$have_lcms_header" = 'yes'; then
28110 $as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
28112 passed=`expr $passed + 1`
28115 # Check for <lcms2/lcms2.h)
28116 if test "$have_lcms_header" != 'yes'; then
28117 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
28118 if test "x$ac_cv_header_lcms2_lcms2_h" = x""yes; then :
28119 have_lcms_header='yes'
28123 if test "$have_lcms_header" = 'yes'; then
28124 passed=`expr $passed + 1`
28126 $as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
28131 # Failed to find lcms header?
28132 if test "$have_lcms_header" != 'yes'; then
28133 failed=`expr $failed + 1`
28136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
28137 $as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
28138 if test "${ac_cv_lib_lcms2_cmsSetLogErrorHandler+set}" = set; then :
28139 $as_echo_n "(cached) " >&6
28141 ac_check_lib_save_LIBS=$LIBS
28142 LIBS="-llcms2 $LIBS"
28143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28144 /* end confdefs.h. */
28146 /* Override any GCC internal prototype to avoid an error.
28147 Use char because int might match the return type of a GCC
28148 builtin and then its argument prototype would still apply. */
28152 char cmsSetLogErrorHandler ();
28156 return cmsSetLogErrorHandler ();
28161 if ac_fn_c_try_link "$LINENO"; then :
28162 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
28164 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
28166 rm -f core conftest.err conftest.$ac_objext \
28167 conftest$ac_exeext conftest.$ac_ext
28168 LIBS=$ac_check_lib_save_LIBS
28170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
28171 $as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
28172 if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = x""yes; then :
28173 passed=`expr $passed + 1`
28175 failed=`expr $failed + 1`
28178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
28179 $as_echo_n "checking if LCMS v2 package is complete... " >&6; }
28180 if test $passed -gt 0; then
28181 if test $failed -gt 0; then
28182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28183 $as_echo "no -- some components failed test" >&6; }
28184 have_lcms2='no (failed tests)'
28186 LCMS_LIBS='-llcms2'
28187 LIBS="$LCMS_LIBS $LIBS"
28188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28189 $as_echo "yes" >&6; }
28193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28194 $as_echo "no" >&6; }
28199 # Check for LCMS v1 (1.11 or later)
28201 if test $have_lcms2 = 'yes'; then
28206 if test "$with_lcms" != 'no'; then
28207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28208 $as_echo "-------------------------------------------------------------" >&6; }
28209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
28210 $as_echo_n "checking for LCMS v1.1X... " >&6; }
28211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28215 have_lcms_header='no'
28217 # Check for <lcms.h>
28218 if test "$have_lcms_header" != 'yes'; then
28219 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
28220 if test "x$ac_cv_header_lcms_h" = x""yes; then :
28221 have_lcms_header='yes'
28225 if test "$have_lcms_header" = 'yes'; then
28226 passed=`expr $passed + 1`
28228 $as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
28233 # Check for <lcms/lcms.h>
28234 if test "$have_lcms_header" != 'yes'; then
28235 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
28236 if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then :
28237 have_lcms_header='yes'
28241 if test "$have_lcms_header" = 'yes'; then
28242 passed=`expr $passed + 1`
28244 $as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
28249 # Failed to find lcms header?
28250 if test "$have_lcms_header" != 'yes'; then
28251 failed=`expr $failed + 1`
28254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
28255 $as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
28256 if test "${ac_cv_lib_lcms_cmsSetErrorHandler+set}" = set; then :
28257 $as_echo_n "(cached) " >&6
28259 ac_check_lib_save_LIBS=$LIBS
28260 LIBS="-llcms $LIBS"
28261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28262 /* end confdefs.h. */
28264 /* Override any GCC internal prototype to avoid an error.
28265 Use char because int might match the return type of a GCC
28266 builtin and then its argument prototype would still apply. */
28270 char cmsSetErrorHandler ();
28274 return cmsSetErrorHandler ();
28279 if ac_fn_c_try_link "$LINENO"; then :
28280 ac_cv_lib_lcms_cmsSetErrorHandler=yes
28282 ac_cv_lib_lcms_cmsSetErrorHandler=no
28284 rm -f core conftest.err conftest.$ac_objext \
28285 conftest$ac_exeext conftest.$ac_ext
28286 LIBS=$ac_check_lib_save_LIBS
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
28289 $as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
28290 if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = x""yes; then :
28291 passed=`expr $passed + 1`
28293 failed=`expr $failed + 1`
28296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
28297 $as_echo_n "checking if LCMS package is complete... " >&6; }
28298 if test $passed -gt 0; then
28299 if test $failed -gt 0; then
28300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28301 $as_echo "no -- some components failed test" >&6; }
28302 have_lcms='no (failed tests)'
28305 LIBS="$LCMS_LIBS $LIBS"
28306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28307 $as_echo "yes" >&6; }
28311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28312 $as_echo "no" >&6; }
28316 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28317 LCMS_DELEGATE_TRUE=
28318 LCMS_DELEGATE_FALSE='#'
28320 LCMS_DELEGATE_TRUE='#'
28321 LCMS_DELEGATE_FALSE=
28324 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
28326 $as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
28334 # Check for the LQR (Liquid Rescale) delegate library.
28337 # Check whether --with-lqr was given.
28338 if test "${with_lqr+set}" = set; then :
28339 withval=$with_lqr; with_lqr=$withval
28345 if test "$with_lqr" != 'yes'; then
28346 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
28353 if test "x$with_lqr" = "xyes"; then
28354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28355 $as_echo "-------------------------------------------------------------" >&6; }
28358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
28359 $as_echo_n "checking for LQR... " >&6; }
28361 if test -n "$LQR_CFLAGS"; then
28362 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
28363 elif test -n "$PKG_CONFIG"; then
28364 if test -n "$PKG_CONFIG" && \
28365 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28366 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28369 test $ac_status = 0; }; then
28370 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
28377 if test -n "$LQR_LIBS"; then
28378 pkg_cv_LQR_LIBS="$LQR_LIBS"
28379 elif test -n "$PKG_CONFIG"; then
28380 if test -n "$PKG_CONFIG" && \
28381 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
28382 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
28384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28385 test $ac_status = 0; }; then
28386 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
28396 if test $pkg_failed = yes; then
28398 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28399 _pkg_short_errors_supported=yes
28401 _pkg_short_errors_supported=no
28403 if test $_pkg_short_errors_supported = yes; then
28404 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
28406 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
28408 # Put the nasty error message in config.log where it belongs
28409 echo "$LQR_PKG_ERRORS" >&5
28411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28412 $as_echo "no" >&6; }
28414 elif test $pkg_failed = untried; then
28417 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
28418 LQR_LIBS=$pkg_cv_LQR_LIBS
28419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28420 $as_echo "yes" >&6; }
28423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28427 if test "$have_lqr" = 'yes'; then
28429 $as_echo "#define LQR_DELEGATE 1" >>confdefs.h
28431 CFLAGS="$LQR_CFLAGS $CFLAGS"
28434 if test "$have_lqr" = 'yes'; then
28436 LQR_DELEGATE_FALSE='#'
28438 LQR_DELEGATE_TRUE='#'
28439 LQR_DELEGATE_FALSE=
28447 # Check for the OpenEXR delegate library.
28450 # Check whether --with-openexr was given.
28451 if test "${with_openexr+set}" = set; then :
28452 withval=$with_openexr; with_openexr=$withval
28458 if test "$with_openexr" != 'yes'; then
28459 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
28466 if test "x$with_openexr" = "xyes"; then
28467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28468 $as_echo "-------------------------------------------------------------" >&6; }
28471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
28472 $as_echo_n "checking for OPENEXR... " >&6; }
28474 if test -n "$OPENEXR_CFLAGS"; then
28475 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
28476 elif test -n "$PKG_CONFIG"; then
28477 if test -n "$PKG_CONFIG" && \
28478 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28479 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28482 test $ac_status = 0; }; then
28483 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
28490 if test -n "$OPENEXR_LIBS"; then
28491 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
28492 elif test -n "$PKG_CONFIG"; then
28493 if test -n "$PKG_CONFIG" && \
28494 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
28495 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
28497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28498 test $ac_status = 0; }; then
28499 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
28509 if test $pkg_failed = yes; then
28511 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28512 _pkg_short_errors_supported=yes
28514 _pkg_short_errors_supported=no
28516 if test $_pkg_short_errors_supported = yes; then
28517 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
28519 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
28521 # Put the nasty error message in config.log where it belongs
28522 echo "$OPENEXR_PKG_ERRORS" >&5
28524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28525 $as_echo "no" >&6; }
28527 elif test $pkg_failed = untried; then
28530 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
28531 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
28532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28533 $as_echo "yes" >&6; }
28536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28540 if test "$have_openexr" = 'yes'; then
28542 $as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
28544 if test "$with_modules" = 'no'; then
28545 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
28549 if test "$have_openexr" = 'yes'; then
28550 OPENEXR_DELEGATE_TRUE=
28551 OPENEXR_DELEGATE_FALSE='#'
28553 OPENEXR_DELEGATE_TRUE='#'
28554 OPENEXR_DELEGATE_FALSE=
28562 # Check for PNG delegate library.
28565 # Check whether --with-png was given.
28566 if test "${with_png+set}" = set; then :
28567 withval=$with_png; with_png=$withval
28573 if test "$with_png" != 'yes'; then
28574 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
28579 if test "$with_png" != 'no'; then
28580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28581 $as_echo "-------------------------------------------------------------" >&6; }
28582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5
28583 $as_echo_n "checking for PNG... " >&6; }
28584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28588 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
28589 if test "x$ac_cv_header_png_h" = x""yes; then :
28590 passed=`expr $passed + 1`
28592 failed=`expr $failed + 1`
28596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
28597 $as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
28598 if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then :
28599 $as_echo_n "(cached) " >&6
28601 ac_check_lib_save_LIBS=$LIBS
28603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28604 /* end confdefs.h. */
28606 /* Override any GCC internal prototype to avoid an error.
28607 Use char because int might match the return type of a GCC
28608 builtin and then its argument prototype would still apply. */
28612 char png_get_io_ptr ();
28616 return png_get_io_ptr ();
28621 if ac_fn_c_try_link "$LINENO"; then :
28622 ac_cv_lib_png_png_get_io_ptr=yes
28624 ac_cv_lib_png_png_get_io_ptr=no
28626 rm -f core conftest.err conftest.$ac_objext \
28627 conftest$ac_exeext conftest.$ac_ext
28628 LIBS=$ac_check_lib_save_LIBS
28630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
28631 $as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
28632 if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then :
28633 passed=`expr $passed + 1`
28635 failed=`expr $failed + 1`
28638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PNG package is complete" >&5
28639 $as_echo_n "checking if PNG package is complete... " >&6; }
28640 if test $passed -gt 0; then
28641 if test $failed -gt 0; then
28642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
28643 $as_echo "no -- some components failed test" >&6; }
28644 have_png='no (failed tests)'
28647 LIBS="$PNG_LIBS $LIBS"
28649 $as_echo "#define PNG_DELEGATE 1" >>confdefs.h
28651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28652 $as_echo "yes" >&6; }
28656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28657 $as_echo "no" >&6; }
28660 if test "$have_png" = 'yes'; then
28662 PNG_DELEGATE_FALSE='#'
28664 PNG_DELEGATE_TRUE='#'
28665 PNG_DELEGATE_FALSE=
28672 # Check for RSVG delegate library.
28675 # Check whether --with-rsvg was given.
28676 if test "${with_rsvg+set}" = set; then :
28677 withval=$with_rsvg; with_rsvg=$withval
28683 if test "$with_rsvg" != 'yes'; then
28684 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
28692 if test "x$with_rsvg" = "xyes"; then
28693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28694 $as_echo "-------------------------------------------------------------" >&6; }
28697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
28698 $as_echo_n "checking for RSVG... " >&6; }
28700 if test -n "$RSVG_CFLAGS"; then
28701 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
28702 elif test -n "$PKG_CONFIG"; then
28703 if test -n "$PKG_CONFIG" && \
28704 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28705 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28708 test $ac_status = 0; }; then
28709 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28716 if test -n "$RSVG_LIBS"; then
28717 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
28718 elif test -n "$PKG_CONFIG"; then
28719 if test -n "$PKG_CONFIG" && \
28720 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
28721 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
28723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28724 test $ac_status = 0; }; then
28725 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
28735 if test $pkg_failed = yes; then
28737 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28738 _pkg_short_errors_supported=yes
28740 _pkg_short_errors_supported=no
28742 if test $_pkg_short_errors_supported = yes; then
28743 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28745 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
28747 # Put the nasty error message in config.log where it belongs
28748 echo "$RSVG_PKG_ERRORS" >&5
28750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28751 $as_echo "no" >&6; }
28753 elif test $pkg_failed = untried; then
28756 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
28757 RSVG_LIBS=$pkg_cv_RSVG_LIBS
28758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28759 $as_echo "yes" >&6; }
28762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
28767 $as_echo_n "checking for CAIRO_SVG... " >&6; }
28769 if test -n "$CAIRO_SVG_CFLAGS"; then
28770 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
28771 elif test -n "$PKG_CONFIG"; then
28772 if test -n "$PKG_CONFIG" && \
28773 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28774 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28777 test $ac_status = 0; }; then
28778 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
28785 if test -n "$CAIRO_SVG_LIBS"; then
28786 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
28787 elif test -n "$PKG_CONFIG"; then
28788 if test -n "$PKG_CONFIG" && \
28789 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
28790 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
28792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28793 test $ac_status = 0; }; then
28794 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
28804 if test $pkg_failed = yes; then
28806 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28807 _pkg_short_errors_supported=yes
28809 _pkg_short_errors_supported=no
28811 if test $_pkg_short_errors_supported = yes; then
28812 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
28814 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
28816 # Put the nasty error message in config.log where it belongs
28817 echo "$CAIRO_SVG_PKG_ERRORS" >&5
28819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28820 $as_echo "no" >&6; }
28822 elif test $pkg_failed = untried; then
28825 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
28826 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
28827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28828 $as_echo "yes" >&6; }
28831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28835 if test "$have_rsvg" = 'yes'; then
28837 $as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
28839 if test "$with_modules" = 'no'; then
28840 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
28844 if test "$have_cairo" = 'yes'; then
28846 $as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
28848 if test "$with_modules" = 'no'; then
28849 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
28853 if test "$have_rsvg" = 'yes'; then
28854 RSVG_DELEGATE_TRUE=
28855 RSVG_DELEGATE_FALSE='#'
28857 RSVG_DELEGATE_TRUE='#'
28858 RSVG_DELEGATE_FALSE=
28861 if test "$have_cairo" = 'yes'; then
28862 CAIRO_DELEGATE_TRUE=
28863 CAIRO_DELEGATE_FALSE='#'
28865 CAIRO_DELEGATE_TRUE='#'
28866 CAIRO_DELEGATE_FALSE=
28874 # Check for TIFF delegate library.
28877 # Check whether --with-tiff was given.
28878 if test "${with_tiff+set}" = set; then :
28879 withval=$with_tiff; with_tiff=$withval
28885 if test "$with_tiff" != 'yes'; then
28886 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
28891 if test "$with_tiff" != 'no'; then
28892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
28893 $as_echo "-------------------------------------------------------------" >&6; }
28894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
28895 $as_echo_n "checking for TIFF... " >&6; }
28896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
28900 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
28901 if test "x$ac_cv_header_tiff_h" = x""yes; then :
28902 passed=`expr $passed + 1`
28904 failed=`expr $failed + 1`
28908 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
28909 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
28910 passed=`expr $passed + 1`
28912 failed=`expr $failed + 1`
28916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
28917 $as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
28918 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then :
28919 $as_echo_n "(cached) " >&6
28921 ac_check_lib_save_LIBS=$LIBS
28922 LIBS="-ltiff $LIBS"
28923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28924 /* end confdefs.h. */
28926 /* Override any GCC internal prototype to avoid an error.
28927 Use char because int might match the return type of a GCC
28928 builtin and then its argument prototype would still apply. */
28936 return TIFFOpen ();
28941 if ac_fn_c_try_link "$LINENO"; then :
28942 ac_cv_lib_tiff_TIFFOpen=yes
28944 ac_cv_lib_tiff_TIFFOpen=no
28946 rm -f core conftest.err conftest.$ac_objext \
28947 conftest$ac_exeext conftest.$ac_ext
28948 LIBS=$ac_check_lib_save_LIBS
28950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
28951 $as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
28952 if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then :
28953 passed=`expr $passed + 1`
28955 failed=`expr $failed + 1`
28958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
28959 $as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
28960 if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then :
28961 $as_echo_n "(cached) " >&6
28963 ac_check_lib_save_LIBS=$LIBS
28964 LIBS="-ltiff $LIBS"
28965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28966 /* end confdefs.h. */
28968 /* Override any GCC internal prototype to avoid an error.
28969 Use char because int might match the return type of a GCC
28970 builtin and then its argument prototype would still apply. */
28974 char TIFFClientOpen ();
28978 return TIFFClientOpen ();
28983 if ac_fn_c_try_link "$LINENO"; then :
28984 ac_cv_lib_tiff_TIFFClientOpen=yes
28986 ac_cv_lib_tiff_TIFFClientOpen=no
28988 rm -f core conftest.err conftest.$ac_objext \
28989 conftest$ac_exeext conftest.$ac_ext
28990 LIBS=$ac_check_lib_save_LIBS
28992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
28993 $as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
28994 if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then :
28995 passed=`expr $passed + 1`
28997 failed=`expr $failed + 1`
29000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsBigEndian in -ltiff" >&5
29001 $as_echo_n "checking for TIFFIsBigEndian in -ltiff... " >&6; }
29002 if test "${ac_cv_lib_tiff_TIFFIsBigEndian+set}" = set; then :
29003 $as_echo_n "(cached) " >&6
29005 ac_check_lib_save_LIBS=$LIBS
29006 LIBS="-ltiff $LIBS"
29007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29008 /* end confdefs.h. */
29010 /* Override any GCC internal prototype to avoid an error.
29011 Use char because int might match the return type of a GCC
29012 builtin and then its argument prototype would still apply. */
29016 char TIFFIsBigEndian ();
29020 return TIFFIsBigEndian ();
29025 if ac_fn_c_try_link "$LINENO"; then :
29026 ac_cv_lib_tiff_TIFFIsBigEndian=yes
29028 ac_cv_lib_tiff_TIFFIsBigEndian=no
29030 rm -f core conftest.err conftest.$ac_objext \
29031 conftest$ac_exeext conftest.$ac_ext
29032 LIBS=$ac_check_lib_save_LIBS
29034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsBigEndian" >&5
29035 $as_echo "$ac_cv_lib_tiff_TIFFIsBigEndian" >&6; }
29036 if test "x$ac_cv_lib_tiff_TIFFIsBigEndian" = x""yes; then :
29037 passed=`expr $passed + 1`
29039 failed=`expr $failed + 1`
29042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
29043 $as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
29044 if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then :
29045 $as_echo_n "(cached) " >&6
29047 ac_check_lib_save_LIBS=$LIBS
29048 LIBS="-ltiff $LIBS"
29049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29050 /* end confdefs.h. */
29052 /* Override any GCC internal prototype to avoid an error.
29053 Use char because int might match the return type of a GCC
29054 builtin and then its argument prototype would still apply. */
29058 char TIFFIsByteSwapped ();
29062 return TIFFIsByteSwapped ();
29067 if ac_fn_c_try_link "$LINENO"; then :
29068 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
29070 ac_cv_lib_tiff_TIFFIsByteSwapped=no
29072 rm -f core conftest.err conftest.$ac_objext \
29073 conftest$ac_exeext conftest.$ac_ext
29074 LIBS=$ac_check_lib_save_LIBS
29076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
29077 $as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
29078 if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then :
29079 passed=`expr $passed + 1`
29081 failed=`expr $failed + 1`
29084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
29085 $as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
29086 if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then :
29087 $as_echo_n "(cached) " >&6
29089 ac_check_lib_save_LIBS=$LIBS
29090 LIBS="-ltiff $LIBS"
29091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29092 /* end confdefs.h. */
29094 /* Override any GCC internal prototype to avoid an error.
29095 Use char because int might match the return type of a GCC
29096 builtin and then its argument prototype would still apply. */
29100 char TIFFReadRGBATile ();
29104 return TIFFReadRGBATile ();
29109 if ac_fn_c_try_link "$LINENO"; then :
29110 ac_cv_lib_tiff_TIFFReadRGBATile=yes
29112 ac_cv_lib_tiff_TIFFReadRGBATile=no
29114 rm -f core conftest.err conftest.$ac_objext \
29115 conftest$ac_exeext conftest.$ac_ext
29116 LIBS=$ac_check_lib_save_LIBS
29118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
29119 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
29120 if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then :
29121 passed=`expr $passed + 1`
29123 failed=`expr $failed + 1`
29126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
29127 $as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
29128 if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then :
29129 $as_echo_n "(cached) " >&6
29131 ac_check_lib_save_LIBS=$LIBS
29132 LIBS="-ltiff $LIBS"
29133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29134 /* end confdefs.h. */
29136 /* Override any GCC internal prototype to avoid an error.
29137 Use char because int might match the return type of a GCC
29138 builtin and then its argument prototype would still apply. */
29142 char TIFFReadRGBAStrip ();
29146 return TIFFReadRGBAStrip ();
29151 if ac_fn_c_try_link "$LINENO"; then :
29152 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
29154 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
29156 rm -f core conftest.err conftest.$ac_objext \
29157 conftest$ac_exeext conftest.$ac_ext
29158 LIBS=$ac_check_lib_save_LIBS
29160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
29161 $as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
29162 if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then :
29163 passed=`expr $passed + 1`
29165 failed=`expr $failed + 1`
29168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
29169 $as_echo_n "checking if TIFF package is complete... " >&6; }
29170 if test $passed -gt 0; then
29171 if test $failed -gt 0; then
29172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29173 $as_echo "no -- some components failed test" >&6; }
29174 have_tiff='no (failed tests)'
29177 LIBS="$TIFF_LIBS $LIBS"
29179 $as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
29181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29182 $as_echo "yes" >&6; }
29184 for ac_header in tiffconf.h
29186 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
29187 if test "x$ac_cv_header_tiffconf_h" = x""yes; then :
29188 cat >>confdefs.h <<_ACEOF
29189 #define HAVE_TIFFCONF_H 1
29196 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
29197 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
29198 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
29200 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29201 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29202 eval as_val=\$$as_ac_var
29203 if test "x$as_val" = x""yes; then :
29204 cat >>confdefs.h <<_ACEOF
29205 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29214 $as_echo "no" >&6; }
29217 if test "$have_tiff" = 'yes'; then
29218 TIFF_DELEGATE_TRUE=
29219 TIFF_DELEGATE_FALSE='#'
29221 TIFF_DELEGATE_TRUE='#'
29222 TIFF_DELEGATE_FALSE=
29229 # Set Windows font directory.
29232 # Check whether --with-windows-font-dir was given.
29233 if test "${with_windows_font_dir+set}" = set; then :
29234 withval=$with_windows_font_dir; with_windows_font_dir=$withval
29236 with_windows_font_dir=''
29239 if test "$with_windows_font_dir" != '' ; then
29240 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
29245 # Check for WMF delegate library.
29248 # Check whether --with-wmf was given.
29249 if test "${with_wmf+set}" = set; then :
29250 withval=$with_wmf; with_wmf=$withval
29256 if test "$with_wmf" != 'yes'; then
29257 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
29262 if test "$with_wmf" != 'no'; then
29263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29264 $as_echo "-------------------------------------------------------------" >&6; }
29265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
29266 $as_echo_n "checking for WMF... " >&6; }
29267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29271 ac_fn_c_check_header_mongrel "$LINENO" "libwmf/eps.h" "ac_cv_header_libwmf_eps_h" "$ac_includes_default"
29272 if test "x$ac_cv_header_libwmf_eps_h" = x""yes; then :
29273 passed=`expr $passed + 1`
29275 failed=`expr $failed + 1`
29279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_eps_function in -lwmf" >&5
29280 $as_echo_n "checking for wmf_eps_function in -lwmf... " >&6; }
29281 if test "${ac_cv_lib_wmf_wmf_eps_function+set}" = set; then :
29282 $as_echo_n "(cached) " >&6
29284 ac_check_lib_save_LIBS=$LIBS
29285 LIBS="-lwmf "-lwmflite" $LIBS"
29286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29287 /* end confdefs.h. */
29289 /* Override any GCC internal prototype to avoid an error.
29290 Use char because int might match the return type of a GCC
29291 builtin and then its argument prototype would still apply. */
29295 char wmf_eps_function ();
29299 return wmf_eps_function ();
29304 if ac_fn_c_try_link "$LINENO"; then :
29305 ac_cv_lib_wmf_wmf_eps_function=yes
29307 ac_cv_lib_wmf_wmf_eps_function=no
29309 rm -f core conftest.err conftest.$ac_objext \
29310 conftest$ac_exeext conftest.$ac_ext
29311 LIBS=$ac_check_lib_save_LIBS
29313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_eps_function" >&5
29314 $as_echo "$ac_cv_lib_wmf_wmf_eps_function" >&6; }
29315 if test "x$ac_cv_lib_wmf_wmf_eps_function" = x""yes; then :
29316 passed=`expr $passed + 1`
29318 failed=`expr $failed + 1`
29321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
29322 $as_echo_n "checking if WMF package is complete... " >&6; }
29323 if test $passed -gt 0; then
29324 if test $failed -gt 0; then
29325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29326 $as_echo "no -- some components failed test" >&6; }
29327 have_wmf='no (failed tests)'
29329 WMF_LIBS='-lwmf -lwmflite'
29330 LIBS="$WMF_LIBS $LIBS"
29332 $as_echo "#define WMF_DELEGATE 1" >>confdefs.h
29334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29335 $as_echo "yes" >&6; }
29339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29340 $as_echo "no" >&6; }
29343 if test "$have_wmf" = 'yes'; then
29345 WMF_DELEGATE_FALSE='#'
29347 WMF_DELEGATE_TRUE='#'
29348 WMF_DELEGATE_FALSE=
29357 # Check for XML delegate library.
29360 # Check whether --with-xml was given.
29361 if test "${with_xml+set}" = set; then :
29362 withval=$with_xml; with_xml=$withval
29368 if test "$with_xml" != 'yes' ; then
29369 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
29374 if test "$with_xml" != 'no'; then
29375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29376 $as_echo "-------------------------------------------------------------" >&6; }
29377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
29378 $as_echo_n "checking for XML... " >&6; }
29379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29381 PERSIST_LDFLAGS=$LDFLAGS
29382 PERSIST_CPPFLAGS=$CPPFLAGS
29384 for ac_prog in xml2-config
29386 # Extract the first word of "$ac_prog", so it can be a program name with args.
29387 set dummy $ac_prog; ac_word=$2
29388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29389 $as_echo_n "checking for $ac_word... " >&6; }
29390 if test "${ac_cv_prog_xml2_config+set}" = set; then :
29391 $as_echo_n "(cached) " >&6
29393 if test -n "$xml2_config"; then
29394 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
29396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29397 for as_dir in $PATH
29400 test -z "$as_dir" && as_dir=.
29401 for ac_exec_ext in '' $ac_executable_extensions; do
29402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29403 ac_cv_prog_xml2_config="$ac_prog"
29404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29413 xml2_config=$ac_cv_prog_xml2_config
29414 if test -n "$xml2_config"; then
29415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
29416 $as_echo "$xml2_config" >&6; }
29418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29419 $as_echo "no" >&6; }
29423 test -n "$xml2_config" && break
29425 if test -n "$xml2_config"; then
29426 # Debian installs libxml headers under /usr/include/libxml2/libxml with
29427 # the shared library installed under /usr/lib, whereas the package
29428 # installs itself under $prefix/libxml and $prefix/lib.
29429 xml2_prefix=`xml2-config --prefix`
29430 if test -d "${xml2_prefix}/include/libxml2"; then
29431 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
29433 if test "${xml2_prefix}" != '/usr'; then
29434 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
29439 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
29440 if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
29441 passed=`expr $passed + 1`
29443 failed=`expr $failed + 1`
29447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseExternalEntity in -lxml2" >&5
29448 $as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
29449 if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then :
29450 $as_echo_n "(cached) " >&6
29452 ac_check_lib_save_LIBS=$LIBS
29453 LIBS="-lxml2 $LIBS"
29454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29455 /* end confdefs.h. */
29457 /* Override any GCC internal prototype to avoid an error.
29458 Use char because int might match the return type of a GCC
29459 builtin and then its argument prototype would still apply. */
29463 char xmlParseExternalEntity ();
29467 return xmlParseExternalEntity ();
29472 if ac_fn_c_try_link "$LINENO"; then :
29473 ac_cv_lib_xml2_xmlParseExternalEntity=yes
29475 ac_cv_lib_xml2_xmlParseExternalEntity=no
29477 rm -f core conftest.err conftest.$ac_objext \
29478 conftest$ac_exeext conftest.$ac_ext
29479 LIBS=$ac_check_lib_save_LIBS
29481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
29482 $as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
29483 if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then :
29484 passed=`expr $passed + 1`
29486 failed=`expr $failed + 1`
29489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
29490 $as_echo_n "checking if XML package is complete... " >&6; }
29491 if test $passed -gt 0; then
29492 if test $failed -gt 0; then
29493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
29494 $as_echo "no -- some components failed test" >&6; }
29495 have_xml='no (failed tests)'
29496 LDFLAGS="$PERSIST_LDFLAGS"
29497 CPPFLAGS="$PERSIST_CPPFLAGS"
29500 LIBS="$XML_LIBS $LIBS"
29502 $as_echo "#define XML_DELEGATE 1" >>confdefs.h
29504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29505 $as_echo "yes" >&6; }
29509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29510 $as_echo "no" >&6; }
29513 if test "$have_xml" = 'yes'; then
29515 XML_DELEGATE_FALSE='#'
29517 XML_DELEGATE_TRUE='#'
29518 XML_DELEGATE_FALSE=
29524 # Substitute compiler name to build/link PerlMagick
29529 # Configure install Paths
29532 # Subdirectory under lib to place ImageMagick lib files
29533 LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29535 cat >>confdefs.h <<_ACEOF
29536 #define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
29540 # Path to ImageMagick bin directory
29541 EXECUTABLE_PATH="${BIN_DIR}"
29542 DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
29543 case "${build_os}" in
29545 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
29549 cat >>confdefs.h <<_ACEOF
29550 #define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
29555 # Path to ImageMagick lib
29556 LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
29557 DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
29558 case "${build_os}" in
29560 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
29564 cat >>confdefs.h <<_ACEOF
29565 #define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
29570 # Subdirectory under lib to place ImageMagick configuration files
29571 CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29573 cat >>confdefs.h <<_ACEOF
29574 #define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
29577 CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29578 DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
29579 case "${build_os}" in
29581 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
29585 cat >>confdefs.h <<_ACEOF
29586 #define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
29592 # Subdirectory under lib to place ImageMagick coder module files
29593 CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
29595 cat >>confdefs.h <<_ACEOF
29596 #define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
29599 CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
29600 DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
29601 case "${build_os}" in
29603 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
29607 cat >>confdefs.h <<_ACEOF
29608 #define CODER_PATH "$DEFINE_CODER_PATH"
29614 # Subdirectory under lib to place ImageMagick filter module files
29615 FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
29617 cat >>confdefs.h <<_ACEOF
29618 #define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
29621 FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
29622 DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
29623 case "${build_os}" in
29625 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
29629 cat >>confdefs.h <<_ACEOF
29630 #define FILTER_PATH "$DEFINE_FILTER_PATH"
29636 # Path to ImageMagick documentation files
29637 DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29638 DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
29639 DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
29640 case "${build_os}" in
29642 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
29646 cat >>confdefs.h <<_ACEOF
29647 #define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
29653 # Path to ImageMagick share files
29654 SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
29655 SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
29656 DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
29657 case "${build_os}" in
29659 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
29663 cat >>confdefs.h <<_ACEOF
29664 #define SHARE_PATH "$DEFINE_SHARE_PATH"
29669 # Subdirectory under share to place ImageMagick configuration files
29670 SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
29672 cat >>confdefs.h <<_ACEOF
29673 #define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
29676 SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
29677 DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
29678 case "${build_os}" in
29680 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
29684 cat >>confdefs.h <<_ACEOF
29685 #define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
29691 # program_transform_name is formed for use in a Makefile, so create a
29692 # modified version for use in a shell script.
29693 configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
29695 # Default delegate definitions
29696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
29697 $as_echo "-------------------------------------------------------------" >&6; }
29698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
29699 $as_echo_n "checking for ImageMagick delegate programs... " >&6; }
29700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
29702 AutotraceDecodeDelegateDefault='autotrace'
29703 AVIDecodeDelegateDefault='mplayer'
29704 BlenderDecodeDelegateDefault='blender'
29705 BZIPDelegateDefault='bzip2'
29706 BrowseDelegateDefault='xdg-open'
29707 CGMDecodeDelegateDefault='ralcgm'
29708 CatDelegateDefault='cat'
29709 DNGDecodeDelegateDefault='ufraw-batch'
29710 GVCDecodeDelegateDefault='dot'
29711 DVIDecodeDelegateDefault='dvips'
29712 EchoDelegateDefault='echo'
29713 EditorDelegateDefault='xterm'
29714 FIGDecodeDelegateDefault='fig2dev'
29715 ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
29716 DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
29717 MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
29718 GnuplotDecodeDelegateDefault='gnuplot'
29719 HDRDecodeDelegateDefault='ra_pfm'
29720 HPGLDecodeDelegateDefault='hp2xx'
29721 HTMLDecodeDelegateDefault='html2ps'
29722 ILBMDecodeDelegateDefault='ilbmtoppm'
29723 ILBMEncodeDelegateDefault='ppmtoilbm'
29724 LPDelegateDefault='lp'
29725 LPRDelegateDefault='lpr'
29726 LZWDecodeDelegateDefault='uncompress'
29727 LZWEncodeDelegateDefault='compress'
29728 LaunchDelegateDefault='gimp'
29729 MANDelegateDefault='groff'
29730 MPEGDecodeDelegateDefault='ffmpeg'
29731 MPEGEncodeDelegateDefault='ffmpeg'
29732 MrSIDDecodeDelegateDefault='mrsidgeodecode'
29733 MVDelegateDefault='mv'
29734 PCLDelegateDefault='pcl6'
29735 PGPDecodeDelegateDefault='pgpv'
29736 POVDelegateDefault='povray'
29737 if test "$native_win32_build" = 'yes'; then
29738 PSDelegateDefault='gswin32c'
29739 elif test "$gslib_framework" = 'yes'; then
29740 PSDelegateDefault='gsc'
29742 PSDelegateDefault='gs'
29744 RLEEncodeDelegateDefault='rawtorle'
29745 RMDelegateDefault='rm'
29746 RSVGDecodeDelegateDefault='rsvg'
29747 SCANDecodeDelegateDefault='scanimage'
29748 TXTDelegateDefault='enscript'
29749 UniconvertorDelegateDefault='uniconvertor'
29750 WEBPDelegateDefault='webpconv'
29751 WMFDecodeDelegateDefault='wmf2eps'
29752 WWWDecodeDelegateDefault='curl'
29753 XPSDelegateDefault='gxps'
29754 ZipDelegateDefault='gzip'
29756 # Search for delegates
29757 # Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
29758 set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
29759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29760 $as_echo_n "checking for $ac_word... " >&6; }
29761 if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then :
29762 $as_echo_n "(cached) " >&6
29764 case $AutotraceDecodeDelegate in
29766 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
29769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29770 for as_dir in $PATH
29773 test -z "$as_dir" && as_dir=.
29774 for ac_exec_ext in '' $ac_executable_extensions; do
29775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29776 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29784 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
29788 AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
29789 if test -n "$AutotraceDecodeDelegate"; then
29790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
29791 $as_echo "$AutotraceDecodeDelegate" >&6; }
29793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29794 $as_echo "no" >&6; }
29798 # Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
29799 set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
29800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29801 $as_echo_n "checking for $ac_word... " >&6; }
29802 if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then :
29803 $as_echo_n "(cached) " >&6
29805 case $AVIDecodeDelegate in
29807 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
29810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29811 for as_dir in $PATH
29814 test -z "$as_dir" && as_dir=.
29815 for ac_exec_ext in '' $ac_executable_extensions; do
29816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29817 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29825 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
29829 AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
29830 if test -n "$AVIDecodeDelegate"; then
29831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AVIDecodeDelegate" >&5
29832 $as_echo "$AVIDecodeDelegate" >&6; }
29834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29835 $as_echo "no" >&6; }
29839 # Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
29840 set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
29841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29842 $as_echo_n "checking for $ac_word... " >&6; }
29843 if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then :
29844 $as_echo_n "(cached) " >&6
29846 case $BlenderDecodeDelegate in
29848 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
29851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29852 for as_dir in $PATH
29855 test -z "$as_dir" && as_dir=.
29856 for ac_exec_ext in '' $ac_executable_extensions; do
29857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29858 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29866 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
29870 BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
29871 if test -n "$BlenderDecodeDelegate"; then
29872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
29873 $as_echo "$BlenderDecodeDelegate" >&6; }
29875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29876 $as_echo "no" >&6; }
29880 # Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
29881 set dummy "$BZIPDelegateDefault"; ac_word=$2
29882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29883 $as_echo_n "checking for $ac_word... " >&6; }
29884 if test "${ac_cv_path_BZIPDelegate+set}" = set; then :
29885 $as_echo_n "(cached) " >&6
29887 case $BZIPDelegate in
29889 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
29892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29893 for as_dir in $PATH
29896 test -z "$as_dir" && as_dir=.
29897 for ac_exec_ext in '' $ac_executable_extensions; do
29898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29899 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
29900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29907 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
29911 BZIPDelegate=$ac_cv_path_BZIPDelegate
29912 if test -n "$BZIPDelegate"; then
29913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
29914 $as_echo "$BZIPDelegate" >&6; }
29916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29917 $as_echo "no" >&6; }
29921 # Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
29922 set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
29923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29924 $as_echo_n "checking for $ac_word... " >&6; }
29925 if test "${ac_cv_path_BrowseDelegate+set}" = set; then :
29926 $as_echo_n "(cached) " >&6
29928 case $BrowseDelegate in
29930 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
29933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29934 for as_dir in $PATH
29937 test -z "$as_dir" && as_dir=.
29938 for ac_exec_ext in '' $ac_executable_extensions; do
29939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29940 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
29941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29948 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
29952 BrowseDelegate=$ac_cv_path_BrowseDelegate
29953 if test -n "$BrowseDelegate"; then
29954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
29955 $as_echo "$BrowseDelegate" >&6; }
29957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29958 $as_echo "no" >&6; }
29962 # Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
29963 set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
29964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29965 $as_echo_n "checking for $ac_word... " >&6; }
29966 if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then :
29967 $as_echo_n "(cached) " >&6
29969 case $CGMDecodeDelegate in
29971 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
29974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29975 for as_dir in $PATH
29978 test -z "$as_dir" && as_dir=.
29979 for ac_exec_ext in '' $ac_executable_extensions; do
29980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29981 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
29982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29989 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
29993 CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
29994 if test -n "$CGMDecodeDelegate"; then
29995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
29996 $as_echo "$CGMDecodeDelegate" >&6; }
29998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29999 $as_echo "no" >&6; }
30003 # Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
30004 set dummy "$CatDelegateDefault"; ac_word=$2
30005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30006 $as_echo_n "checking for $ac_word... " >&6; }
30007 if test "${ac_cv_path_CatDelegate+set}" = set; then :
30008 $as_echo_n "(cached) " >&6
30010 case $CatDelegate in
30012 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
30015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30016 for as_dir in $PATH
30019 test -z "$as_dir" && as_dir=.
30020 for ac_exec_ext in '' $ac_executable_extensions; do
30021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30022 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
30023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30030 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
30034 CatDelegate=$ac_cv_path_CatDelegate
30035 if test -n "$CatDelegate"; then
30036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
30037 $as_echo "$CatDelegate" >&6; }
30039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30040 $as_echo "no" >&6; }
30044 # Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
30045 set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
30046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30047 $as_echo_n "checking for $ac_word... " >&6; }
30048 if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then :
30049 $as_echo_n "(cached) " >&6
30051 case $DNGDecodeDelegate in
30053 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
30056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30057 for as_dir in $PATH
30060 test -z "$as_dir" && as_dir=.
30061 for ac_exec_ext in '' $ac_executable_extensions; do
30062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30063 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30071 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
30075 DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
30076 if test -n "$DNGDecodeDelegate"; then
30077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
30078 $as_echo "$DNGDecodeDelegate" >&6; }
30080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30081 $as_echo "no" >&6; }
30085 # Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
30086 set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
30087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30088 $as_echo_n "checking for $ac_word... " >&6; }
30089 if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then :
30090 $as_echo_n "(cached) " >&6
30092 case $GVCDecodeDelegate in
30094 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
30097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30098 for as_dir in $PATH
30101 test -z "$as_dir" && as_dir=.
30102 for ac_exec_ext in '' $ac_executable_extensions; do
30103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30104 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30112 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
30116 GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
30117 if test -n "$GVCDecodeDelegate"; then
30118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
30119 $as_echo "$GVCDecodeDelegate" >&6; }
30121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30122 $as_echo "no" >&6; }
30126 # Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
30127 set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
30128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30129 $as_echo_n "checking for $ac_word... " >&6; }
30130 if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then :
30131 $as_echo_n "(cached) " >&6
30133 case $DVIDecodeDelegate in
30135 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
30138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30139 for as_dir in $PATH
30142 test -z "$as_dir" && as_dir=.
30143 for ac_exec_ext in '' $ac_executable_extensions; do
30144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30145 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30153 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
30157 DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
30158 if test -n "$DVIDecodeDelegate"; then
30159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
30160 $as_echo "$DVIDecodeDelegate" >&6; }
30162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30163 $as_echo "no" >&6; }
30167 # Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
30168 set dummy "$EchoDelegateDefault"; ac_word=$2
30169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30170 $as_echo_n "checking for $ac_word... " >&6; }
30171 if test "${ac_cv_path_EchoDelegate+set}" = set; then :
30172 $as_echo_n "(cached) " >&6
30174 case $EchoDelegate in
30176 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
30179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30180 for as_dir in $PATH
30183 test -z "$as_dir" && as_dir=.
30184 for ac_exec_ext in '' $ac_executable_extensions; do
30185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30186 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
30187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30194 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
30198 EchoDelegate=$ac_cv_path_EchoDelegate
30199 if test -n "$EchoDelegate"; then
30200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
30201 $as_echo "$EchoDelegate" >&6; }
30203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30204 $as_echo "no" >&6; }
30208 # Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
30209 set dummy "$EditorDelegateDefault"; ac_word=$2
30210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30211 $as_echo_n "checking for $ac_word... " >&6; }
30212 if test "${ac_cv_path_EditorDelegate+set}" = set; then :
30213 $as_echo_n "(cached) " >&6
30215 case $EditorDelegate in
30217 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
30220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30221 for as_dir in $PATH
30224 test -z "$as_dir" && as_dir=.
30225 for ac_exec_ext in '' $ac_executable_extensions; do
30226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30227 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
30228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30235 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
30239 EditorDelegate=$ac_cv_path_EditorDelegate
30240 if test -n "$EditorDelegate"; then
30241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
30242 $as_echo "$EditorDelegate" >&6; }
30244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30245 $as_echo "no" >&6; }
30249 # Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
30250 set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
30251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30252 $as_echo_n "checking for $ac_word... " >&6; }
30253 if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then :
30254 $as_echo_n "(cached) " >&6
30256 case $FIGDecodeDelegate in
30258 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
30261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30262 for as_dir in $PATH
30265 test -z "$as_dir" && as_dir=.
30266 for ac_exec_ext in '' $ac_executable_extensions; do
30267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30268 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30276 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
30280 FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
30281 if test -n "$FIGDecodeDelegate"; then
30282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
30283 $as_echo "$FIGDecodeDelegate" >&6; }
30285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30286 $as_echo "no" >&6; }
30290 # Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
30291 set dummy "$ConvertDelegateDefault"; 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_path_ConvertDelegate+set}" = set; then :
30295 $as_echo_n "(cached) " >&6
30297 case $ConvertDelegate in
30299 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
30302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30303 for as_dir in $PATH
30306 test -z "$as_dir" && as_dir=.
30307 for ac_exec_ext in '' $ac_executable_extensions; do
30308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30309 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
30310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30317 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
30321 ConvertDelegate=$ac_cv_path_ConvertDelegate
30322 if test -n "$ConvertDelegate"; then
30323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
30324 $as_echo "$ConvertDelegate" >&6; }
30326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30327 $as_echo "no" >&6; }
30331 # Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
30332 set dummy "$DisplayDelegateDefault"; ac_word=$2
30333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30334 $as_echo_n "checking for $ac_word... " >&6; }
30335 if test "${ac_cv_path_DisplayDelegate+set}" = set; then :
30336 $as_echo_n "(cached) " >&6
30338 case $DisplayDelegate in
30340 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
30343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30344 for as_dir in $PATH
30347 test -z "$as_dir" && as_dir=.
30348 for ac_exec_ext in '' $ac_executable_extensions; do
30349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30350 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
30351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30358 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
30362 DisplayDelegate=$ac_cv_path_DisplayDelegate
30363 if test -n "$DisplayDelegate"; then
30364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
30365 $as_echo "$DisplayDelegate" >&6; }
30367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30368 $as_echo "no" >&6; }
30372 # Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
30373 set dummy "$MogrifyDelegateDefault"; ac_word=$2
30374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30375 $as_echo_n "checking for $ac_word... " >&6; }
30376 if test "${ac_cv_path_MogrifyDelegate+set}" = set; then :
30377 $as_echo_n "(cached) " >&6
30379 case $MogrifyDelegate in
30381 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
30384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30385 for as_dir in $PATH
30388 test -z "$as_dir" && as_dir=.
30389 for ac_exec_ext in '' $ac_executable_extensions; do
30390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30391 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
30392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30399 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
30403 MogrifyDelegate=$ac_cv_path_MogrifyDelegate
30404 if test -n "$MogrifyDelegate"; then
30405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
30406 $as_echo "$MogrifyDelegate" >&6; }
30408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30409 $as_echo "no" >&6; }
30413 # Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
30414 set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
30415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30416 $as_echo_n "checking for $ac_word... " >&6; }
30417 if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then :
30418 $as_echo_n "(cached) " >&6
30420 case $GnuplotDecodeDelegate in
30422 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
30425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30426 for as_dir in $PATH
30429 test -z "$as_dir" && as_dir=.
30430 for ac_exec_ext in '' $ac_executable_extensions; do
30431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30432 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30440 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
30444 GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
30445 if test -n "$GnuplotDecodeDelegate"; then
30446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
30447 $as_echo "$GnuplotDecodeDelegate" >&6; }
30449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30450 $as_echo "no" >&6; }
30454 # Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
30455 set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
30456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30457 $as_echo_n "checking for $ac_word... " >&6; }
30458 if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then :
30459 $as_echo_n "(cached) " >&6
30461 case $HDRDecodeDelegate in
30463 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
30466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30467 for as_dir in $PATH
30470 test -z "$as_dir" && as_dir=.
30471 for ac_exec_ext in '' $ac_executable_extensions; do
30472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30473 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30481 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
30485 HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
30486 if test -n "$HDRDecodeDelegate"; then
30487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDRDecodeDelegate" >&5
30488 $as_echo "$HDRDecodeDelegate" >&6; }
30490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30491 $as_echo "no" >&6; }
30495 # Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
30496 set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
30497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30498 $as_echo_n "checking for $ac_word... " >&6; }
30499 if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then :
30500 $as_echo_n "(cached) " >&6
30502 case $HPGLDecodeDelegate in
30504 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
30507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30508 for as_dir in $PATH
30511 test -z "$as_dir" && as_dir=.
30512 for ac_exec_ext in '' $ac_executable_extensions; do
30513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30514 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30522 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
30526 HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
30527 if test -n "$HPGLDecodeDelegate"; then
30528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
30529 $as_echo "$HPGLDecodeDelegate" >&6; }
30531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30532 $as_echo "no" >&6; }
30536 # Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
30537 set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
30538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30539 $as_echo_n "checking for $ac_word... " >&6; }
30540 if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then :
30541 $as_echo_n "(cached) " >&6
30543 case $HTMLDecodeDelegate in
30545 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
30548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30549 for as_dir in $PATH
30552 test -z "$as_dir" && as_dir=.
30553 for ac_exec_ext in '' $ac_executable_extensions; do
30554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30555 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30563 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
30567 HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
30568 if test -n "$HTMLDecodeDelegate"; then
30569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
30570 $as_echo "$HTMLDecodeDelegate" >&6; }
30572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30573 $as_echo "no" >&6; }
30577 # Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
30578 set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
30579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30580 $as_echo_n "checking for $ac_word... " >&6; }
30581 if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then :
30582 $as_echo_n "(cached) " >&6
30584 case $ILBMDecodeDelegate in
30586 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
30589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30590 for as_dir in $PATH
30593 test -z "$as_dir" && as_dir=.
30594 for ac_exec_ext in '' $ac_executable_extensions; do
30595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30596 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30604 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
30608 ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
30609 if test -n "$ILBMDecodeDelegate"; then
30610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
30611 $as_echo "$ILBMDecodeDelegate" >&6; }
30613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30614 $as_echo "no" >&6; }
30618 # Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
30619 set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
30620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30621 $as_echo_n "checking for $ac_word... " >&6; }
30622 if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then :
30623 $as_echo_n "(cached) " >&6
30625 case $ILBMEncodeDelegate in
30627 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
30630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30631 for as_dir in $PATH
30634 test -z "$as_dir" && as_dir=.
30635 for ac_exec_ext in '' $ac_executable_extensions; do
30636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30637 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30645 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
30649 ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
30650 if test -n "$ILBMEncodeDelegate"; then
30651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
30652 $as_echo "$ILBMEncodeDelegate" >&6; }
30654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30655 $as_echo "no" >&6; }
30659 # Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
30660 set dummy "$LPDelegateDefault"; ac_word=$2
30661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30662 $as_echo_n "checking for $ac_word... " >&6; }
30663 if test "${ac_cv_path_LPDelegate+set}" = set; then :
30664 $as_echo_n "(cached) " >&6
30666 case $LPDelegate in
30668 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
30671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30672 for as_dir in $PATH
30675 test -z "$as_dir" && as_dir=.
30676 for ac_exec_ext in '' $ac_executable_extensions; do
30677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30678 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
30679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30686 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
30690 LPDelegate=$ac_cv_path_LPDelegate
30691 if test -n "$LPDelegate"; then
30692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
30693 $as_echo "$LPDelegate" >&6; }
30695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30696 $as_echo "no" >&6; }
30700 # Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
30701 set dummy "$LPRDelegateDefault"; ac_word=$2
30702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30703 $as_echo_n "checking for $ac_word... " >&6; }
30704 if test "${ac_cv_path_LPRDelegate+set}" = set; then :
30705 $as_echo_n "(cached) " >&6
30707 case $LPRDelegate in
30709 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
30712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30713 for as_dir in $PATH
30716 test -z "$as_dir" && as_dir=.
30717 for ac_exec_ext in '' $ac_executable_extensions; do
30718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30719 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
30720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30727 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
30731 LPRDelegate=$ac_cv_path_LPRDelegate
30732 if test -n "$LPRDelegate"; then
30733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
30734 $as_echo "$LPRDelegate" >&6; }
30736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30737 $as_echo "no" >&6; }
30741 # Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
30742 set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
30743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30744 $as_echo_n "checking for $ac_word... " >&6; }
30745 if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then :
30746 $as_echo_n "(cached) " >&6
30748 case $LZWDecodeDelegate in
30750 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
30753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30754 for as_dir in $PATH
30757 test -z "$as_dir" && as_dir=.
30758 for ac_exec_ext in '' $ac_executable_extensions; do
30759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30760 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30768 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
30772 LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
30773 if test -n "$LZWDecodeDelegate"; then
30774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWDecodeDelegate" >&5
30775 $as_echo "$LZWDecodeDelegate" >&6; }
30777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30778 $as_echo "no" >&6; }
30782 # Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
30783 set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
30784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30785 $as_echo_n "checking for $ac_word... " >&6; }
30786 if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then :
30787 $as_echo_n "(cached) " >&6
30789 case $LZWEncodeDelegate in
30791 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
30794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30795 for as_dir in $PATH
30798 test -z "$as_dir" && as_dir=.
30799 for ac_exec_ext in '' $ac_executable_extensions; do
30800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30801 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30809 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
30813 LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
30814 if test -n "$LZWEncodeDelegate"; then
30815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZWEncodeDelegate" >&5
30816 $as_echo "$LZWEncodeDelegate" >&6; }
30818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30819 $as_echo "no" >&6; }
30823 # Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
30824 set dummy "$LaunchDelegateDefault"; ac_word=$2
30825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30826 $as_echo_n "checking for $ac_word... " >&6; }
30827 if test "${ac_cv_path_LaunchDelegate+set}" = set; then :
30828 $as_echo_n "(cached) " >&6
30830 case $LaunchDelegate in
30832 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
30835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30836 for as_dir in $PATH
30839 test -z "$as_dir" && as_dir=.
30840 for ac_exec_ext in '' $ac_executable_extensions; do
30841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30842 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
30843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30850 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
30854 LaunchDelegate=$ac_cv_path_LaunchDelegate
30855 if test -n "$LaunchDelegate"; then
30856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
30857 $as_echo "$LaunchDelegate" >&6; }
30859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30860 $as_echo "no" >&6; }
30864 # Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
30865 set dummy "$MANDelegateDefault"; ac_word=$2
30866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30867 $as_echo_n "checking for $ac_word... " >&6; }
30868 if test "${ac_cv_path_MANDelegate+set}" = set; then :
30869 $as_echo_n "(cached) " >&6
30871 case $MANDelegate in
30873 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
30876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30877 for as_dir in $PATH
30880 test -z "$as_dir" && as_dir=.
30881 for ac_exec_ext in '' $ac_executable_extensions; do
30882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30883 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
30884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30891 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
30895 MANDelegate=$ac_cv_path_MANDelegate
30896 if test -n "$MANDelegate"; then
30897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
30898 $as_echo "$MANDelegate" >&6; }
30900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30901 $as_echo "no" >&6; }
30905 # Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
30906 set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
30907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30908 $as_echo_n "checking for $ac_word... " >&6; }
30909 if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then :
30910 $as_echo_n "(cached) " >&6
30912 case $MPEGDecodeDelegate in
30914 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
30917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30918 for as_dir in $PATH
30921 test -z "$as_dir" && as_dir=.
30922 for ac_exec_ext in '' $ac_executable_extensions; do
30923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30924 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30932 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
30936 MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
30937 if test -n "$MPEGDecodeDelegate"; then
30938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
30939 $as_echo "$MPEGDecodeDelegate" >&6; }
30941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30942 $as_echo "no" >&6; }
30946 # Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
30947 set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
30948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30949 $as_echo_n "checking for $ac_word... " >&6; }
30950 if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then :
30951 $as_echo_n "(cached) " >&6
30953 case $MPEGEncodeDelegate in
30955 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
30958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30959 for as_dir in $PATH
30962 test -z "$as_dir" && as_dir=.
30963 for ac_exec_ext in '' $ac_executable_extensions; do
30964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30965 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
30966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30973 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
30977 MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
30978 if test -n "$MPEGEncodeDelegate"; then
30979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
30980 $as_echo "$MPEGEncodeDelegate" >&6; }
30982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30983 $as_echo "no" >&6; }
30987 # Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
30988 set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
30989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30990 $as_echo_n "checking for $ac_word... " >&6; }
30991 if test "${ac_cv_path_MrSIDDecodeDelegate+set}" = set; then :
30992 $as_echo_n "(cached) " >&6
30994 case $MrSIDDecodeDelegate in
30996 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
30999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31000 for as_dir in $PATH
31003 test -z "$as_dir" && as_dir=.
31004 for ac_exec_ext in '' $ac_executable_extensions; do
31005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31006 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31014 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
31018 MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
31019 if test -n "$MrSIDDecodeDelegate"; then
31020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
31021 $as_echo "$MrSIDDecodeDelegate" >&6; }
31023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31024 $as_echo "no" >&6; }
31028 # Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
31029 set dummy "$MVDelegateDefault"; ac_word=$2
31030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31031 $as_echo_n "checking for $ac_word... " >&6; }
31032 if test "${ac_cv_path_MVDelegate+set}" = set; then :
31033 $as_echo_n "(cached) " >&6
31035 case $MVDelegate in
31037 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
31040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31041 for as_dir in $PATH
31044 test -z "$as_dir" && as_dir=.
31045 for ac_exec_ext in '' $ac_executable_extensions; do
31046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31047 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
31048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31055 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
31059 MVDelegate=$ac_cv_path_MVDelegate
31060 if test -n "$MVDelegate"; then
31061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
31062 $as_echo "$MVDelegate" >&6; }
31064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31065 $as_echo "no" >&6; }
31069 # Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
31070 set dummy "$PCLDelegateDefault"; ac_word=$2
31071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31072 $as_echo_n "checking for $ac_word... " >&6; }
31073 if test "${ac_cv_path_PCLDelegate+set}" = set; then :
31074 $as_echo_n "(cached) " >&6
31076 case $PCLDelegate in
31078 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
31081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31082 for as_dir in $PATH
31085 test -z "$as_dir" && as_dir=.
31086 for ac_exec_ext in '' $ac_executable_extensions; do
31087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31088 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
31089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31096 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
31100 PCLDelegate=$ac_cv_path_PCLDelegate
31101 if test -n "$PCLDelegate"; then
31102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
31103 $as_echo "$PCLDelegate" >&6; }
31105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31106 $as_echo "no" >&6; }
31110 # Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
31111 set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
31112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31113 $as_echo_n "checking for $ac_word... " >&6; }
31114 if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then :
31115 $as_echo_n "(cached) " >&6
31117 case $PGPDecodeDelegate in
31119 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
31122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31123 for as_dir in $PATH
31126 test -z "$as_dir" && as_dir=.
31127 for ac_exec_ext in '' $ac_executable_extensions; do
31128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31129 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31137 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
31141 PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
31142 if test -n "$PGPDecodeDelegate"; then
31143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
31144 $as_echo "$PGPDecodeDelegate" >&6; }
31146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31147 $as_echo "no" >&6; }
31151 # Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
31152 set dummy "$POVDelegateDefault"; ac_word=$2
31153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31154 $as_echo_n "checking for $ac_word... " >&6; }
31155 if test "${ac_cv_path_POVDelegate+set}" = set; then :
31156 $as_echo_n "(cached) " >&6
31158 case $POVDelegate in
31160 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
31163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31164 for as_dir in $PATH
31167 test -z "$as_dir" && as_dir=.
31168 for ac_exec_ext in '' $ac_executable_extensions; do
31169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31170 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
31171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31178 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
31182 POVDelegate=$ac_cv_path_POVDelegate
31183 if test -n "$POVDelegate"; then
31184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
31185 $as_echo "$POVDelegate" >&6; }
31187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31188 $as_echo "no" >&6; }
31192 for ac_prog in gsx gsc "$PSDelegateDefault"
31194 # Extract the first word of "$ac_prog", so it can be a program name with args.
31195 set dummy $ac_prog; ac_word=$2
31196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31197 $as_echo_n "checking for $ac_word... " >&6; }
31198 if test "${ac_cv_path_PSDelegate+set}" = set; then :
31199 $as_echo_n "(cached) " >&6
31201 case $PSDelegate in
31203 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
31206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31207 for as_dir in $PATH
31210 test -z "$as_dir" && as_dir=.
31211 for ac_exec_ext in '' $ac_executable_extensions; do
31212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31213 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
31214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31224 PSDelegate=$ac_cv_path_PSDelegate
31225 if test -n "$PSDelegate"; then
31226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
31227 $as_echo "$PSDelegate" >&6; }
31229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31230 $as_echo "no" >&6; }
31234 test -n "$PSDelegate" && break
31236 test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
31238 # Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
31239 set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
31240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31241 $as_echo_n "checking for $ac_word... " >&6; }
31242 if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then :
31243 $as_echo_n "(cached) " >&6
31245 case $RLEEncodeDelegate in
31247 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
31250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31251 for as_dir in $PATH
31254 test -z "$as_dir" && as_dir=.
31255 for ac_exec_ext in '' $ac_executable_extensions; do
31256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31257 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31265 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
31269 RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
31270 if test -n "$RLEEncodeDelegate"; then
31271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
31272 $as_echo "$RLEEncodeDelegate" >&6; }
31274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31275 $as_echo "no" >&6; }
31279 # Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
31280 set dummy "$RMDelegateDefault"; ac_word=$2
31281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31282 $as_echo_n "checking for $ac_word... " >&6; }
31283 if test "${ac_cv_path_RMDelegate+set}" = set; then :
31284 $as_echo_n "(cached) " >&6
31286 case $RMDelegate in
31288 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
31291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31292 for as_dir in $PATH
31295 test -z "$as_dir" && as_dir=.
31296 for ac_exec_ext in '' $ac_executable_extensions; do
31297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31298 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
31299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31306 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
31310 RMDelegate=$ac_cv_path_RMDelegate
31311 if test -n "$RMDelegate"; then
31312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
31313 $as_echo "$RMDelegate" >&6; }
31315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31316 $as_echo "no" >&6; }
31320 # Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
31321 set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
31322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31323 $as_echo_n "checking for $ac_word... " >&6; }
31324 if test "${ac_cv_path_RSVGDecodeDelegate+set}" = set; then :
31325 $as_echo_n "(cached) " >&6
31327 case $RSVGDecodeDelegate in
31329 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
31332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31333 for as_dir in $PATH
31336 test -z "$as_dir" && as_dir=.
31337 for ac_exec_ext in '' $ac_executable_extensions; do
31338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31339 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31347 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
31351 RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
31352 if test -n "$RSVGDecodeDelegate"; then
31353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
31354 $as_echo "$RSVGDecodeDelegate" >&6; }
31356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31357 $as_echo "no" >&6; }
31361 # Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
31362 set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
31363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31364 $as_echo_n "checking for $ac_word... " >&6; }
31365 if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then :
31366 $as_echo_n "(cached) " >&6
31368 case $SCANDecodeDelegate in
31370 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
31373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31374 for as_dir in $PATH
31377 test -z "$as_dir" && as_dir=.
31378 for ac_exec_ext in '' $ac_executable_extensions; do
31379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31380 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31388 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
31392 SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
31393 if test -n "$SCANDecodeDelegate"; then
31394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
31395 $as_echo "$SCANDecodeDelegate" >&6; }
31397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31398 $as_echo "no" >&6; }
31402 # Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
31403 set dummy "$TXTDelegateDefault"; ac_word=$2
31404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31405 $as_echo_n "checking for $ac_word... " >&6; }
31406 if test "${ac_cv_path_TXTDelegate+set}" = set; then :
31407 $as_echo_n "(cached) " >&6
31409 case $TXTDelegate in
31411 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
31414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31415 for as_dir in $PATH
31418 test -z "$as_dir" && as_dir=.
31419 for ac_exec_ext in '' $ac_executable_extensions; do
31420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31421 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
31422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31429 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
31433 TXTDelegate=$ac_cv_path_TXTDelegate
31434 if test -n "$TXTDelegate"; then
31435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
31436 $as_echo "$TXTDelegate" >&6; }
31438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31439 $as_echo "no" >&6; }
31443 # Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
31444 set dummy "$UniconvertorDelegateDefault"; ac_word=$2
31445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31446 $as_echo_n "checking for $ac_word... " >&6; }
31447 if test "${ac_cv_path_UniconvertorDelegate+set}" = set; then :
31448 $as_echo_n "(cached) " >&6
31450 case $UniconvertorDelegate in
31452 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
31455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31456 for as_dir in $PATH
31459 test -z "$as_dir" && as_dir=.
31460 for ac_exec_ext in '' $ac_executable_extensions; do
31461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31462 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
31463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31470 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
31474 UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
31475 if test -n "$UniconvertorDelegate"; then
31476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
31477 $as_echo "$UniconvertorDelegate" >&6; }
31479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31480 $as_echo "no" >&6; }
31484 # Extract the first word of ""$WEBPDelegateDefault"", so it can be a program name with args.
31485 set dummy "$WEBPDelegateDefault"; ac_word=$2
31486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31487 $as_echo_n "checking for $ac_word... " >&6; }
31488 if test "${ac_cv_path_WEBPDelegate+set}" = set; then :
31489 $as_echo_n "(cached) " >&6
31491 case $WEBPDelegate in
31493 ac_cv_path_WEBPDelegate="$WEBPDelegate" # Let the user override the test with a path.
31496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31497 for as_dir in $PATH
31500 test -z "$as_dir" && as_dir=.
31501 for ac_exec_ext in '' $ac_executable_extensions; do
31502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31503 ac_cv_path_WEBPDelegate="$as_dir/$ac_word$ac_exec_ext"
31504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31511 test -z "$ac_cv_path_WEBPDelegate" && ac_cv_path_WEBPDelegate=""$WEBPDelegateDefault""
31515 WEBPDelegate=$ac_cv_path_WEBPDelegate
31516 if test -n "$WEBPDelegate"; then
31517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WEBPDelegate" >&5
31518 $as_echo "$WEBPDelegate" >&6; }
31520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31521 $as_echo "no" >&6; }
31525 # Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
31526 set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
31527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31528 $as_echo_n "checking for $ac_word... " >&6; }
31529 if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then :
31530 $as_echo_n "(cached) " >&6
31532 case $WMFDecodeDelegate in
31534 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
31537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31538 for as_dir in $PATH
31541 test -z "$as_dir" && as_dir=.
31542 for ac_exec_ext in '' $ac_executable_extensions; do
31543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31544 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31552 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
31556 WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
31557 if test -n "$WMFDecodeDelegate"; then
31558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
31559 $as_echo "$WMFDecodeDelegate" >&6; }
31561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31562 $as_echo "no" >&6; }
31566 # Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
31567 set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
31568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31569 $as_echo_n "checking for $ac_word... " >&6; }
31570 if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then :
31571 $as_echo_n "(cached) " >&6
31573 case $WWWDecodeDelegate in
31575 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
31578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31579 for as_dir in $PATH
31582 test -z "$as_dir" && as_dir=.
31583 for ac_exec_ext in '' $ac_executable_extensions; do
31584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31585 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
31586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31593 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
31597 WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
31598 if test -n "$WWWDecodeDelegate"; then
31599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
31600 $as_echo "$WWWDecodeDelegate" >&6; }
31602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31603 $as_echo "no" >&6; }
31607 # Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
31608 set dummy "$XPSDelegateDefault"; ac_word=$2
31609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31610 $as_echo_n "checking for $ac_word... " >&6; }
31611 if test "${ac_cv_path_XPSDelegate+set}" = set; then :
31612 $as_echo_n "(cached) " >&6
31614 case $XPSDelegate in
31616 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
31619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31620 for as_dir in $PATH
31623 test -z "$as_dir" && as_dir=.
31624 for ac_exec_ext in '' $ac_executable_extensions; do
31625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31626 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
31627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31634 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
31638 XPSDelegate=$ac_cv_path_XPSDelegate
31639 if test -n "$XPSDelegate"; then
31640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
31641 $as_echo "$XPSDelegate" >&6; }
31643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31644 $as_echo "no" >&6; }
31648 # Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
31649 set dummy "$ZipDelegateDefault"; ac_word=$2
31650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31651 $as_echo_n "checking for $ac_word... " >&6; }
31652 if test "${ac_cv_path_ZipDelegate+set}" = set; then :
31653 $as_echo_n "(cached) " >&6
31655 case $ZipDelegate in
31657 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
31660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31661 for as_dir in $PATH
31664 test -z "$as_dir" && as_dir=.
31665 for ac_exec_ext in '' $ac_executable_extensions; do
31666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31667 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
31668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31675 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
31679 ZipDelegate=$ac_cv_path_ZipDelegate
31680 if test -n "$ZipDelegate"; then
31681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
31682 $as_echo "$ZipDelegate" >&6; }
31684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31685 $as_echo "no" >&6; }
31690 # Prefer lpr to lp; lp needs options tacked on.
31691 if test "$LPRDelegate" != no; then
31692 PrintDelegate="$LPRDelegate"
31694 PrintDelegate="$LPDelegate -c -s"
31698 # Installed ImageMagick utiltity paths
31699 ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
31700 DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
31701 MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
31703 # Set delegate booleans
31704 have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
31705 have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
31706 have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
31707 have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
31708 have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
31709 have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
31710 have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
31711 have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
31712 have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
31713 have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
31714 have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
31715 have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
31718 # Test for font directories
31720 type_include_files=''
31723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
31724 $as_echo_n "checking for Dejavu fonts directory... " >&6; }
31726 if test "${with_dejavu_font_dir}" != 'default'; then
31727 dejavu_font_dir="${with_dejavu_font_dir}/"
31729 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
31730 if test -f "${font_dir}DejaVuSerif.ttf"; then
31731 dejavu_font_dir="${font_dir}"
31736 if test "${dejavu_font_dir}x" != 'x'; then
31737 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
31738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dejavu_font_dir" >&5
31739 $as_echo "$dejavu_font_dir" >&6; }
31741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31742 $as_echo "not found!" >&6; };
31747 windows_font_dir=''
31748 if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
31749 windows_font_dir="${with_windows_font_dir}/"
31751 if test "${windows_font_dir}x" != 'x'; then
31752 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
31753 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
31755 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
31756 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
31758 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
31759 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
31762 if test "${windows_font_dir}x" != 'x'; then
31763 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
31768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
31769 $as_echo_n "checking for Ghostscript fonts directory... " >&6; }
31770 ghostscript_font_dir=''
31771 if test "${with_gs_font_dir}" != 'default'; then
31772 ghostscript_font_dir="${with_gs_font_dir}/"
31774 if test "${native_win32_build}" = 'yes'; then
31775 # Native Windows Build
31776 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
31777 if test -f "${font_dir}a010013l.pfb"; then
31778 ghostscript_font_dir="$font_dir"
31782 if test "${PSDelegate}" != 'gswin32c'; then
31783 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
31786 # Linux / Mac OS X / Unix Build
31787 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
31788 if test -f "${font_dir}a010013l.pfb"; then
31789 ghostscript_font_dir="${font_dir}"
31793 if test "${ghostscript_font_dir}x" = 'x'; then
31794 if test "$PSDelegate" != 'gs'; then
31795 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
31800 if test "${ghostscript_font_dir}x" != 'x'; then
31801 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
31802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ghostscript_font_dir" >&5
31803 $as_echo "$ghostscript_font_dir" >&6; }
31805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
31806 $as_echo "not found!" >&6; };
31809 case "${build_os}" in
31811 PSDelegate=`$WinPathScript "$PSDelegate" 1`
31818 # Handle case where user doesn't want frozen paths
31820 if test "$with_frozenpaths" != 'yes'; then
31821 # Re-set delegate definitions to default (no paths)
31822 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
31823 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
31824 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
31825 BZIPDelegate="$BZIPDelegateDefault"
31826 BrowseDelegate="$BrowseDelegateDefault"
31827 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
31828 CatDelegate="$CatDelegateDefault"
31829 ConvertDelegate="$ConvertDelegateDefault"
31830 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
31831 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
31832 EchoDelegate="$EchoDelegateDefault"
31833 EditorDelegate="$EditorDelegateDefault"
31834 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
31835 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
31836 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
31837 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
31838 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
31839 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
31840 LPDelegate="$LPDelegateDefault"
31841 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
31842 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
31843 LaunchDelegate="$LaunchDelegateDefault"
31844 MANDelegate="$MANDelegateDefault"
31845 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
31846 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
31847 MogrifyDelegate="$MogrifyDelegateDefault"
31848 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
31849 MVDelegate="$MVDelegateDefault"
31850 PCLDelegate="$PCLDelegateDefault"
31851 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
31852 POVDelegate="$POVDelegateDefault"
31853 PSDelegate="$PSDelegateDefault"
31854 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
31855 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
31856 RMDelegate="$RMDelegateDefault"
31857 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
31858 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
31859 ShowImageDelegate="$ShowImageDelegateDefault"
31860 TXTDelegate="$TXTDelegateDefault"
31861 UniconvertorDelegate="$UniconvertorDelegateDefault"
31862 WEBPDelegate="$WEBPDelegateDefault"
31863 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
31864 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
31865 XPSDelegate="$XPSDelegateDefault"
31866 ZipDelegate="$ZipDelegateDefault"
31869 # Delegate substitutions
31919 for ac_prog in gnutar gtar tar
31921 # Extract the first word of "$ac_prog", so it can be a program name with args.
31922 set dummy $ac_prog; ac_word=$2
31923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31924 $as_echo_n "checking for $ac_word... " >&6; }
31925 if test "${ac_cv_prog_TAR+set}" = set; then :
31926 $as_echo_n "(cached) " >&6
31928 if test -n "$TAR"; then
31929 ac_cv_prog_TAR="$TAR" # Let the user override the test.
31931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31932 for as_dir in $PATH
31935 test -z "$as_dir" && as_dir=.
31936 for ac_exec_ext in '' $ac_executable_extensions; do
31937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31938 ac_cv_prog_TAR="$ac_prog"
31939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31948 TAR=$ac_cv_prog_TAR
31949 if test -n "$TAR"; then
31950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
31951 $as_echo "$TAR" >&6; }
31953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31954 $as_echo "no" >&6; }
31958 test -n "$TAR" && break
31961 for ac_prog in perl
31963 # Extract the first word of "$ac_prog", so it can be a program name with args.
31964 set dummy $ac_prog; ac_word=$2
31965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31966 $as_echo_n "checking for $ac_word... " >&6; }
31967 if test "${ac_cv_prog_PERL+set}" = set; then :
31968 $as_echo_n "(cached) " >&6
31970 if test -n "$PERL"; then
31971 ac_cv_prog_PERL="$PERL" # Let the user override the test.
31973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31974 for as_dir in $PATH
31977 test -z "$as_dir" && as_dir=.
31978 for ac_exec_ext in '' $ac_executable_extensions; do
31979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31980 ac_cv_prog_PERL="$ac_prog"
31981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31990 PERL=$ac_cv_prog_PERL
31991 if test -n "$PERL"; then
31992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
31993 $as_echo "$PERL" >&6; }
31995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31996 $as_echo "no" >&6; }
32000 test -n "$PERL" && break
32003 for ac_prog in rpmbuild rpm
32005 # Extract the first word of "$ac_prog", so it can be a program name with args.
32006 set dummy $ac_prog; ac_word=$2
32007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32008 $as_echo_n "checking for $ac_word... " >&6; }
32009 if test "${ac_cv_prog_RPM+set}" = set; then :
32010 $as_echo_n "(cached) " >&6
32012 if test -n "$RPM"; then
32013 ac_cv_prog_RPM="$RPM" # Let the user override the test.
32015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32016 for as_dir in $PATH
32019 test -z "$as_dir" && as_dir=.
32020 for ac_exec_ext in '' $ac_executable_extensions; do
32021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32022 ac_cv_prog_RPM="$ac_prog"
32023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32032 RPM=$ac_cv_prog_RPM
32033 if test -n "$RPM"; then
32034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
32035 $as_echo "$RPM" >&6; }
32037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32038 $as_echo "no" >&6; }
32042 test -n "$RPM" && break
32046 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
32049 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
32052 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
32055 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
32058 if test "x$RPM" != "x" ; then
32060 RPM_DELEGATE_FALSE='#'
32062 RPM_DELEGATE_TRUE='#'
32063 RPM_DELEGATE_FALSE=
32068 # 7ZIP support (http://p7zip.sourceforge.net/)
32073 # Extract the first word of "$ac_prog", so it can be a program name with args.
32074 set dummy $ac_prog; ac_word=$2
32075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32076 $as_echo_n "checking for $ac_word... " >&6; }
32077 if test "${ac_cv_prog_P7ZIP+set}" = set; then :
32078 $as_echo_n "(cached) " >&6
32080 if test -n "$P7ZIP"; then
32081 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
32083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32084 for as_dir in $PATH
32087 test -z "$as_dir" && as_dir=.
32088 for ac_exec_ext in '' $ac_executable_extensions; do
32089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32090 ac_cv_prog_P7ZIP="$ac_prog"
32091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32100 P7ZIP=$ac_cv_prog_P7ZIP
32101 if test -n "$P7ZIP"; then
32102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
32103 $as_echo "$P7ZIP" >&6; }
32105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32106 $as_echo "no" >&6; }
32110 test -n "$P7ZIP" && break
32114 if test "x$P7ZIP" != "x" ; then
32115 P7ZIP_DELEGATE_TRUE=
32116 P7ZIP_DELEGATE_FALSE='#'
32118 P7ZIP_DELEGATE_TRUE='#'
32119 P7ZIP_DELEGATE_FALSE=
32124 # ZIP support (http://www.info-zip.org/Zip.html)
32129 # Extract the first word of "$ac_prog", so it can be a program name with args.
32130 set dummy $ac_prog; ac_word=$2
32131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32132 $as_echo_n "checking for $ac_word... " >&6; }
32133 if test "${ac_cv_prog_ZIP+set}" = set; then :
32134 $as_echo_n "(cached) " >&6
32136 if test -n "$ZIP"; then
32137 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
32139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32140 for as_dir in $PATH
32143 test -z "$as_dir" && as_dir=.
32144 for ac_exec_ext in '' $ac_executable_extensions; do
32145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32146 ac_cv_prog_ZIP="$ac_prog"
32147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32156 ZIP=$ac_cv_prog_ZIP
32157 if test -n "$ZIP"; then
32158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
32159 $as_echo "$ZIP" >&6; }
32161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32162 $as_echo "no" >&6; }
32166 test -n "$ZIP" && break
32170 if test "x$ZIP" != "x" ; then
32172 ZIP_DELEGATE_FALSE='#'
32174 ZIP_DELEGATE_TRUE='#'
32175 ZIP_DELEGATE_FALSE=
32180 # GhostPCL related configuration.
32182 PCLColorDevice=ppmraw
32183 PCLCMYKDevice=bmpsep8
32184 PCLMonoDevice=pbmraw
32185 if test -z "$PCLVersion"; then
32186 PCLVersion='unknown'
32188 if test $have_pcl = 'yes'; then
32189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32190 $as_echo "-------------------------------------------------------------" >&6; }
32191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
32192 $as_echo_n "checking for PCL... " >&6; }
32193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
32197 $as_echo_n "checking for pcl color device... " >&6; }
32198 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32201 PCLColorDevice=ppmraw
32203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLColorDevice" >&5
32204 $as_echo "$PCLColorDevice" >&6; }
32207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
32208 $as_echo_n "checking for pcl CMYK device... " >&6; }
32209 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32212 PCLCMYKDevice=$PCLColorDevice
32214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLCMYKDevice" >&5
32215 $as_echo "$PCLCMYKDevice" >&6; }
32218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
32219 $as_echo_n "checking for pcl mono device... " >&6; }
32220 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32223 PCLMonoDevice=$PCLColorDevice
32225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLMonoDevice" >&5
32226 $as_echo "$PCLMonoDevice" >&6; }
32235 # GhostXPS related configuration.
32237 XPSColorDevice=ppmraw
32238 XPSCMYKDevice=bmpsep8
32239 XPSMonoDevice=pbmraw
32240 if test -z "$XPSVersion"; then
32241 XPSVersion='unknown'
32243 if test $have_xps = 'yes'; then
32244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32245 $as_echo "-------------------------------------------------------------" >&6; }
32246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
32247 $as_echo_n "checking for XPS... " >&6; }
32248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
32252 $as_echo_n "checking for xps color device... " >&6; }
32253 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32256 XPSColorDevice=ppmraw
32258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSColorDevice" >&5
32259 $as_echo "$XPSColorDevice" >&6; }
32262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
32263 $as_echo_n "checking for xps CMYK device... " >&6; }
32264 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32267 XPSCMYKDevice=$XPSColorDevice
32269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSCMYKDevice" >&5
32270 $as_echo "$XPSCMYKDevice" >&6; }
32273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
32274 $as_echo_n "checking for xps mono device... " >&6; }
32275 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32278 XPSMonoDevice=$XPSColorDevice
32280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSMonoDevice" >&5
32281 $as_echo "$XPSMonoDevice" >&6; }
32290 # Ghostscript related configuration.
32292 if test "$have_png" = 'yes'; then
32293 GSAlphaDevice=pngalpha
32295 GSAlphaDevice=pnmraw
32297 GSColorDevice=pnmraw
32299 GSMonoDevice=pbmraw
32300 GSPDFDevice=pdfwrite
32302 GSEPSDevice=epswrite
32303 GSVersion='unknown'
32304 if test $have_gs = 'yes'; then
32305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32306 $as_echo "-------------------------------------------------------------" >&6; }
32307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
32308 $as_echo_n "checking for Ghostscript... " >&6; }
32309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
32312 $as_echo_n "checking for Ghostscript version... " >&6; }
32313 if GSVersion=`$PSDelegate --version`; then
32316 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
32318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSVersion" >&5
32319 $as_echo "$GSVersion" >&6; }
32322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
32323 $as_echo_n "checking for gs alpha device... " >&6; }
32324 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32327 GSAlphaDevice=pnmraw
32329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSAlphaDevice" >&5
32330 $as_echo "$GSAlphaDevice" >&6; }
32333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
32334 $as_echo_n "checking for gs color device... " >&6; }
32335 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32338 GSColorDevice=pnmraw
32340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSColorDevice" >&5
32341 $as_echo "$GSColorDevice" >&6; }
32344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
32345 $as_echo_n "checking for gs CMYK device... " >&6; }
32346 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32349 GSCMYKDevice=bmpsep8
32351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSCMYKDevice" >&5
32352 $as_echo "$GSCMYKDevice" >&6; }
32355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
32356 $as_echo_n "checking for gs mono device... " >&6; }
32357 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32360 GSMonoDevice=$GSColorDevice
32362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSMonoDevice" >&5
32363 $as_echo "$GSMonoDevice" >&6; }
32366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
32367 $as_echo_n "checking for gs PDF writing device... " >&6; }
32368 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32371 GSPDFDevice=nodevice
32373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPDFDevice" >&5
32374 $as_echo "$GSPDFDevice" >&6; }
32377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
32378 $as_echo_n "checking for gs PS writing device... " >&6; }
32379 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32382 GSPSDevice=nodevice
32384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSPSDevice" >&5
32385 $as_echo "$GSPSDevice" >&6; }
32388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
32389 $as_echo_n "checking for gs EPS writing device... " >&6; }
32390 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
32393 GSEPSDevice=nodevice
32395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSEPSDevice" >&5
32396 $as_echo "$GSEPSDevice" >&6; }
32409 # PerlMagick-related configuration
32412 # Look for PERL if PerlMagick requested
32413 # If name/path of desired PERL interpreter is specified, look for that one first
32415 if test "$with_perl" != 'no'; then
32416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32417 $as_echo "-------------------------------------------------------------" >&6; }
32418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
32419 $as_echo_n "checking for Perl... " >&6; }
32420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32422 if test "$with_perl" != 'yes'; then
32423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
32424 $as_echo_n "checking for perl... " >&6; }
32425 if test "${ac_cv_path_PERL+set}" = set; then :
32426 $as_echo_n "(cached) " >&6
32428 ac_cv_path_PERL="$with_perl"
32430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
32431 $as_echo "$ac_cv_path_PERL" >&6; };
32432 PERL=$ac_cv_path_PERL
32433 have_perl="$ac_cv_path_PERL"
32435 for ac_prog in perl perl5
32437 # Extract the first word of "$ac_prog", so it can be a program name with args.
32438 set dummy $ac_prog; ac_word=$2
32439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32440 $as_echo_n "checking for $ac_word... " >&6; }
32441 if test "${ac_cv_path_PERL+set}" = set; then :
32442 $as_echo_n "(cached) " >&6
32446 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
32449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32450 for as_dir in $PATH
32453 test -z "$as_dir" && as_dir=.
32454 for ac_exec_ext in '' $ac_executable_extensions; do
32455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32456 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
32457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32467 PERL=$ac_cv_path_PERL
32468 if test -n "$PERL"; then
32469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
32470 $as_echo "$PERL" >&6; }
32472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32473 $as_echo "no" >&6; }
32477 test -n "$PERL" && break
32479 if test "$ac_cv_path_PERL"; then
32480 have_perl="$ac_cv_path_PERL"
32485 if test "$with_perl" != 'yes' ; then
32486 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
32489 PERL_SUPPORTS_DESTDIR='no'
32491 with_perl_static='no'
32492 with_perl_dynamic='no'
32493 if test "$have_perl" != 'no'; then
32494 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
32495 with_perl_static='yes'
32497 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
32498 with_perl_dynamic='yes'
32500 # Is PERL's MakeMaker new enough to support DESTDIR?
32505 if test -n "$PERL"; then :
32507 ax_perl_version="5.8.1"
32509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
32510 $as_echo_n "checking for perl version... " >&6; }
32512 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
32514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
32515 $as_echo "$perl_version" >&6; }
32517 PERL_VERSION=$perl_version
32523 # Used to indicate true or false condition
32524 ax_compare_version=false
32526 # Convert the two version strings to be compared into a format that
32527 # allows a simple string comparison. The end result is that a version
32528 # string of the form 1.12.5-r617 will be converted to the form
32529 # 0001001200050617. In other words, each number is zero padded to four
32530 # digits, and non digits are removed.
32532 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32533 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32534 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32535 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32539 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
32540 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
32541 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
32542 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
32546 ax_compare_version=`echo "x$ax_compare_version_A
32547 x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
32551 if test "$ax_compare_version" = "true" ; then
32554 PERL_SUPPORTS_DESTDIR='yes'
32558 PERL_SUPPORTS_DESTDIR='no'
32565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
32566 $as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
32567 PERL_SUPPORTS_DESTDIR='no'
32572 if test "$have_perl" != 'no'; then
32574 WITH_PERL_FALSE='#'
32580 if test $with_perl_static = 'yes'; then
32581 WITH_PERL_STATIC_TRUE=
32582 WITH_PERL_STATIC_FALSE='#'
32584 WITH_PERL_STATIC_TRUE='#'
32585 WITH_PERL_STATIC_FALSE=
32588 if test $with_perl_dynamic = 'yes'; then
32589 WITH_PERL_DYNAMIC_TRUE=
32590 WITH_PERL_DYNAMIC_FALSE='#'
32592 WITH_PERL_DYNAMIC_TRUE='#'
32593 WITH_PERL_DYNAMIC_FALSE=
32598 # Determine path to pick up MagickCore library from for use with building PerlMagick
32599 MAGICKCORE_PATH="${LIB_DIR}"
32600 if test $with_perl_static = 'yes'; then
32601 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
32602 libtool_objdir=$objdir
32604 # Linker search path to library, followed by -lMagickCore
32605 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
32609 # Create a simple string containing format names for all delegate libraries
32611 if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
32612 if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
32613 if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
32614 if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
32615 if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
32616 if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
32617 if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
32618 if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
32619 if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
32620 if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
32621 if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
32622 if test "$have_jpeg" = 'yes'; then
32623 DELEGATES="$DELEGATES jpeg";
32624 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
32626 if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
32627 if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
32628 if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
32629 if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
32630 if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
32631 if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
32632 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
32633 if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
32634 if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
32635 if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
32636 if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
32637 if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
32638 if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
32643 # Handle special compiler flags
32646 # Add '-p' if prof source profiling support enabled
32647 if test "$enable_prof" = 'yes'; then
32648 CFLAGS="-p $CFLAGS"
32649 CXXFLAGS="-p $CXXFLAGS"
32650 LDFLAGS="-p $LDFLAGS"
32653 # Add '-pg' if gprof source profiling support enabled
32654 if test "$enable_gprof" = 'yes'; then
32655 CFLAGS="-pg $CFLAGS"
32656 CXXFLAGS="-pg $CXXFLAGS"
32657 LDFLAGS="-pg $LDFLAGS"
32660 # Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
32661 # This is a gcc-specific feature
32662 if test "$enable_gcov" = 'yes'; then
32663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
32664 $as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
32665 if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then :
32666 $as_echo_n "(cached) " >&6
32668 ac_check_lib_save_LIBS=$LIBS
32669 LIBS="-lgcov $LIBS"
32670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32671 /* end confdefs.h. */
32673 /* Override any GCC internal prototype to avoid an error.
32674 Use char because int might match the return type of a GCC
32675 builtin and then its argument prototype would still apply. */
32679 char _gcov_init ();
32683 return _gcov_init ();
32688 if ac_fn_c_try_link "$LINENO"; then :
32689 ac_cv_lib_gcov__gcov_init=yes
32691 ac_cv_lib_gcov__gcov_init=no
32693 rm -f core conftest.err conftest.$ac_objext \
32694 conftest$ac_exeext conftest.$ac_ext
32695 LIBS=$ac_check_lib_save_LIBS
32697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
32698 $as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
32699 if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then :
32700 cat >>confdefs.h <<_ACEOF
32701 #define HAVE_LIBGCOV 1
32704 LIBS="-lgcov $LIBS"
32708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
32709 $as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
32710 if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then :
32711 $as_echo_n "(cached) " >&6
32713 ac_check_lib_save_LIBS=$LIBS
32714 LIBS="-lgcov $LIBS"
32715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32716 /* end confdefs.h. */
32718 /* Override any GCC internal prototype to avoid an error.
32719 Use char because int might match the return type of a GCC
32720 builtin and then its argument prototype would still apply. */
32724 char __gcov_init ();
32728 return __gcov_init ();
32733 if ac_fn_c_try_link "$LINENO"; then :
32734 ac_cv_lib_gcov___gcov_init=yes
32736 ac_cv_lib_gcov___gcov_init=no
32738 rm -f core conftest.err conftest.$ac_objext \
32739 conftest$ac_exeext conftest.$ac_ext
32740 LIBS=$ac_check_lib_save_LIBS
32742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
32743 $as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
32744 if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then :
32745 cat >>confdefs.h <<_ACEOF
32746 #define HAVE_LIBGCOV 1
32749 LIBS="-lgcov $LIBS"
32753 case "$target_os" in
32755 OSX_GCOV_LDFLAG="-Wl,-single_module"
32762 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
32763 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
32764 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
32768 # Build library dependency list for libMagickCore
32771 MAGICK_LIBLTDL='' # Libltdl for build
32772 MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
32773 MAGICK_LTDLDEPS='' # extra libltdl dependencies
32774 if test "$with_ltdl" != 'no'
32776 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
32777 MAGICK_API_LIBLTDL='-lltdl'
32779 MAGICK_LIBLTDL=${LIBLTDL}
32780 MAGICK_LTDLDEPS=${LTDLDEPS}
32785 if test "$with_modules" != 'no'; then
32786 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"
32788 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"
32793 # Remove extraneous spaces from output variables (asthetic)
32795 X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
32796 X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
32797 X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
32798 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
32800 CC=`echo $CC | sed -e 's/ */ /g'`
32801 CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
32802 CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
32803 CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
32804 DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
32805 DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
32806 LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
32807 TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32808 MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
32809 #LIBS=`echo $LIBS | sed -e 's/ */ /g'`
32811 # Pass only user-provided LIBS as "global" libraries
32814 #AC_SUBST(CPPFLAGS)
32817 #AC_SUBST(X_PRE_LIBS)
32819 #AC_SUBST(X_EXTRA_LIBS)
32821 MAGICK_CFLAGS=$CFLAGS
32822 MAGICK_CXXFLAGS="$CXXFLAGS"
32823 MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
32824 MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
32825 MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
32826 MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
32836 # Set configured scripts to executable.
32837 ac_config_commands="$ac_config_commands default"
32839 ac_config_commands="$ac_config_commands MagickCore-config.in"
32841 ac_config_commands="$ac_config_commands Magick-config.in"
32843 ac_config_commands="$ac_config_commands MagickWand-config.in"
32845 ac_config_commands="$ac_config_commands Wand-config.in"
32847 ac_config_commands="$ac_config_commands Magick++-config.in"
32849 ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
32852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32853 $as_echo "-------------------------------------------------------------" >&6; }
32854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Update ImageMagick configuration" >&5
32855 $as_echo "Update ImageMagick configuration" >&6; }
32856 cat >confcache <<\_ACEOF
32857 # This file is a shell script that caches the results of configure
32858 # tests run on this system so they can be shared between configure
32859 # scripts and configure runs, see configure's option --config-cache.
32860 # It is not useful on other systems. If it contains results you don't
32861 # want to keep, you may remove or edit it.
32863 # config.status only pays attention to the cache file if you give it
32864 # the --recheck option to rerun configure.
32866 # `ac_cv_env_foo' variables (set or unset) will be overridden when
32867 # loading this file, other *unset* `ac_cv_foo' will be assigned the
32868 # following values.
32872 # The following way of writing the cache mishandles newlines in values,
32873 # but we know of no workaround that is simple, portable, and efficient.
32874 # So, we kill variables containing newlines.
32875 # Ultrix sh set writes to stderr and can't be redirected directly,
32876 # and sets the high bit in the cache file unless we assign to the vars.
32878 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
32879 eval ac_val=\$$ac_var
32883 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
32884 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
32887 _ | IFS | as_nl) ;; #(
32888 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
32889 *) { eval $ac_var=; unset $ac_var;} ;;
32895 case $as_nl`(ac_space=' '; set) 2>&1` in #(
32896 *${as_nl}ac_space=\ *)
32897 # `set' does not quote correctly, so add quotes: double-quote
32898 # substitution turns \\\\ into \\, and sed turns \\ into \.
32901 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
32904 # `set' quotes correctly as required by POSIX, so do not add quotes.
32905 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
32914 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
32916 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
32918 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
32919 if test -w "$cache_file"; then
32920 test "x$cache_file" != "x/dev/null" &&
32921 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
32922 $as_echo "$as_me: updating cache $cache_file" >&6;}
32923 cat confcache >$cache_file
32925 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
32926 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
32931 test "x$prefix" = xNONE && prefix=$ac_default_prefix
32932 # Let make expand exec_prefix.
32933 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
32935 DEFS=-DHAVE_CONFIG_H
32939 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
32940 # 1. Remove the extension, and $U if already installed.
32941 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
32942 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
32943 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
32944 # will be set to the directory where LIBOBJS objects are built.
32945 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
32946 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
32948 LIBOBJS=$ac_libobjs
32950 LTLIBOBJS=$ac_ltlibobjs
32953 if test -n "$EXEEXT"; then
32955 am__EXEEXT_FALSE='#'
32957 am__EXEEXT_TRUE='#'
32961 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
32962 as_fn_error "conditional \"AMDEP\" was never defined.
32963 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32965 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32966 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32969 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
32970 as_fn_error "conditional \"am__fastdepCC\" was never defined.
32971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32973 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32974 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32977 if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
32978 as_fn_error "conditional \"WINGDI32_DELEGATE\" was never defined.
32979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32981 if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
32982 as_fn_error "conditional \"WIN32_NATIVE_BUILD\" was never defined.
32983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32985 if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
32986 as_fn_error "conditional \"CYGWIN_BUILD\" was never defined.
32987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32989 if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
32990 as_fn_error "conditional \"USING_CL\" was never defined.
32991 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32993 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
32994 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
32995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
32997 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
32998 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
32999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33001 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
33002 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
33003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33005 LT_CONFIG_H=config/config.h
33009 if test -n "$_LT_LIBOBJS"; then
33010 # Remove the extension.
33011 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
33012 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
33013 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
33014 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
33017 ltdl_LIBOBJS=$_ltdl_libobjs
33019 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
33022 if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
33023 as_fn_error "conditional \"WITH_SHARED_LIBS\" was never defined.
33024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33026 if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
33027 as_fn_error "conditional \"WITH_MODULES\" was never defined.
33028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33030 if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
33031 as_fn_error "conditional \"WITH_LTDL\" was never defined.
33032 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33034 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
33035 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
33036 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33039 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
33040 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
33041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33043 if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
33044 as_fn_error "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
33045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33047 if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
33048 as_fn_error "conditional \"HasUMEM\" was never defined.
33049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33051 if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
33052 as_fn_error "conditional \"BZLIB_DELEGATE\" was never defined.
33053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33055 if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
33056 as_fn_error "conditional \"X11_DELEGATE\" was never defined.
33057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33059 if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
33060 as_fn_error "conditional \"ZLIB_DELEGATE\" was never defined.
33061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33063 if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
33064 as_fn_error "conditional \"AUTOTRACE_DELEGATE\" was never defined.
33065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33067 if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
33068 as_fn_error "conditional \"DPS_DELEGATE\" was never defined.
33069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33071 if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
33072 as_fn_error "conditional \"DJVU_DELEGATE\" was never defined.
33073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33075 if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
33076 as_fn_error "conditional \"FFTW_DELEGATE\" was never defined.
33077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33079 if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
33080 as_fn_error "conditional \"FPX_DELEGATE\" was never defined.
33081 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33083 if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
33084 as_fn_error "conditional \"FONTCONFIG_DELEGATE\" was never defined.
33085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33087 if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
33088 as_fn_error "conditional \"FREETYPE_DELEGATE\" was never defined.
33089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33091 if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
33092 as_fn_error "conditional \"GS_DELEGATE\" was never defined.
33093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33095 if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
33096 as_fn_error "conditional \"GVC_DELEGATE\" was never defined.
33097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33099 if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
33100 as_fn_error "conditional \"JBIG_DELEGATE\" was never defined.
33101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33103 if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
33104 as_fn_error "conditional \"JPEG_DELEGATE\" was never defined.
33105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33107 if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
33108 as_fn_error "conditional \"JP2_DELEGATE\" was never defined.
33109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33111 if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
33112 as_fn_error "conditional \"LCMS_DELEGATE\" was never defined.
33113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33115 if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
33116 as_fn_error "conditional \"LQR_DELEGATE\" was never defined.
33117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33119 if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
33120 as_fn_error "conditional \"OPENEXR_DELEGATE\" was never defined.
33121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33123 if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
33124 as_fn_error "conditional \"PNG_DELEGATE\" was never defined.
33125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33127 if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
33128 as_fn_error "conditional \"RSVG_DELEGATE\" was never defined.
33129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33131 if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
33132 as_fn_error "conditional \"CAIRO_DELEGATE\" was never defined.
33133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33135 if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
33136 as_fn_error "conditional \"TIFF_DELEGATE\" was never defined.
33137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33139 if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
33140 as_fn_error "conditional \"WMF_DELEGATE\" was never defined.
33141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33143 if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
33144 as_fn_error "conditional \"XML_DELEGATE\" was never defined.
33145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33147 if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
33148 as_fn_error "conditional \"RPM_DELEGATE\" was never defined.
33149 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33151 if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
33152 as_fn_error "conditional \"P7ZIP_DELEGATE\" was never defined.
33153 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33155 if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
33156 as_fn_error "conditional \"ZIP_DELEGATE\" was never defined.
33157 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33159 if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
33160 as_fn_error "conditional \"WITH_PERL\" was never defined.
33161 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33163 if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
33164 as_fn_error "conditional \"WITH_PERL_STATIC\" was never defined.
33165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33167 if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
33168 as_fn_error "conditional \"WITH_PERL_DYNAMIC\" was never defined.
33169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33172 : ${CONFIG_STATUS=./config.status}
33174 ac_clean_files_save=$ac_clean_files
33175 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33176 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33177 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33179 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33181 # Generated by $as_me.
33182 # Run this file to recreate the current configuration.
33183 # Compiler output produced by configure, useful for debugging
33184 # configure, is in config.log if it exists.
33187 ac_cs_recheck=false
33190 SHELL=\${CONFIG_SHELL-$SHELL}
33193 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
33194 ## -------------------- ##
33195 ## M4sh Initialization. ##
33196 ## -------------------- ##
33198 # Be more Bourne compatible
33199 DUALCASE=1; export DUALCASE # for MKS sh
33200 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
33203 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33204 # is contrary to our usage. Disable this feature.
33205 alias -g '${1+"$@"}'='"$@"'
33206 setopt NO_GLOB_SUBST
33208 case `(set -o) 2>/dev/null` in #(
33220 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33221 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33222 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33223 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33224 # Prefer a ksh shell builtin over an external printf program on Solaris,
33225 # but without wasting forks for bash or zsh.
33226 if test -z "$BASH_VERSION$ZSH_VERSION" \
33227 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33228 as_echo='print -r --'
33229 as_echo_n='print -rn --'
33230 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33231 as_echo='printf %s\n'
33232 as_echo_n='printf %s'
33234 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33235 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
33236 as_echo_n='/usr/ucb/echo -n'
33238 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33239 as_echo_n_body='eval
33243 expr "X$arg" : "X\\(.*\\)$as_nl";
33244 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33246 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
33248 export as_echo_n_body
33249 as_echo_n='sh -c $as_echo_n_body as_echo'
33251 export as_echo_body
33252 as_echo='sh -c $as_echo_body as_echo'
33255 # The user is always right.
33256 if test "${PATH_SEPARATOR+set}" != set; then
33258 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33259 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33266 # We need space, tab and new line, in precisely that order. Quoting is
33267 # there to prevent editors from complaining about space-tab.
33268 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33269 # splitting by setting IFS to empty value.)
33272 # Find who we are. Look in the path if we contain no directory separator.
33274 *[\\/]* ) as_myself=$0 ;;
33275 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33276 for as_dir in $PATH
33279 test -z "$as_dir" && as_dir=.
33280 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33286 # We did not find ourselves, most probably we were run as `sh COMMAND'
33287 # in which case we are not to be found in the path.
33288 if test "x$as_myself" = x; then
33291 if test ! -f "$as_myself"; then
33292 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33296 # Unset variables that we do not need and which cause bugs (e.g. in
33297 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33298 # suppresses any "Segmentation fault" message there. '((' could
33299 # trigger a bug in pdksh 5.2.14.
33300 for as_var in BASH_ENV ENV MAIL MAILPATH
33301 do eval test x\${$as_var+set} = xset \
33302 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
33315 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33318 # as_fn_error ERROR [LINENO LOG_FD]
33319 # ---------------------------------
33320 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33321 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33322 # script with status $?, using 1 if that was 0.
33325 as_status=$?; test $as_status -eq 0 && as_status=1
33327 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
33328 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
33330 $as_echo "$as_me: error: $1" >&2
33331 as_fn_exit $as_status
33335 # as_fn_set_status STATUS
33336 # -----------------------
33337 # Set $? to STATUS, without forking.
33338 as_fn_set_status ()
33341 } # as_fn_set_status
33343 # as_fn_exit STATUS
33344 # -----------------
33345 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33349 as_fn_set_status $1
33355 # Portably unset VAR.
33358 { eval $1=; unset $1;}
33360 as_unset=as_fn_unset
33361 # as_fn_append VAR VALUE
33362 # ----------------------
33363 # Append the text in VALUE to the end of the definition contained in VAR. Take
33364 # advantage of any shell optimizations that allow amortized linear growth over
33365 # repeated appends, instead of the typical quadratic growth present in naive
33367 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
33368 eval 'as_fn_append ()
33379 # as_fn_arith ARG...
33380 # ------------------
33381 # Perform arithmetic evaluation on the ARGs, and store the result in the
33382 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33383 # must be portable across $(()) and expr.
33384 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
33385 eval 'as_fn_arith ()
33392 as_val=`expr "$@" || test $? -eq 1`
33397 if expr a : '\(a\)' >/dev/null 2>&1 &&
33398 test "X`expr 00001 : '.*\(...\)'`" = X001; then
33404 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33405 as_basename=basename
33410 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
33416 as_me=`$as_basename -- "$0" ||
33417 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33418 X"$0" : 'X\(//\)$' \| \
33419 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33421 sed '/^.*\/\([^/][^/]*\)\/*$/{
33435 # Avoid depending upon Character Ranges.
33436 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33437 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33438 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33439 as_cr_digits='0123456789'
33440 as_cr_alnum=$as_cr_Letters$as_cr_digits
33442 ECHO_C= ECHO_N= ECHO_T=
33443 case `echo -n x` in #(((((
33445 case `echo 'xy\c'` in
33446 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
33448 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
33455 rm -f conf$$ conf$$.exe conf$$.file
33456 if test -d conf$$.dir; then
33457 rm -f conf$$.dir/conf$$.file
33460 mkdir conf$$.dir 2>/dev/null
33462 if (echo >conf$$.file) 2>/dev/null; then
33463 if ln -s conf$$.file conf$$ 2>/dev/null; then
33465 # ... but there are two gotchas:
33466 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33467 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33468 # In both cases, we have to default to `cp -p'.
33469 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
33471 elif ln conf$$.file conf$$ 2>/dev/null; then
33479 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
33480 rmdir conf$$.dir 2>/dev/null
33485 # Create "$as_dir" as a directory, including parents if necessary.
33490 -*) as_dir=./$as_dir;;
33492 test -d "$as_dir" || eval $as_mkdir_p || {
33496 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33497 *) as_qdir=$as_dir;;
33499 as_dirs="'$as_qdir' $as_dirs"
33500 as_dir=`$as_dirname -- "$as_dir" ||
33501 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33502 X"$as_dir" : 'X\(//\)[^/]' \| \
33503 X"$as_dir" : 'X\(//\)$' \| \
33504 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33505 $as_echo X"$as_dir" |
33506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33510 /^X\(\/\/\)[^/].*/{
33523 test -d "$as_dir" && break
33525 test -z "$as_dirs" || eval "mkdir $as_dirs"
33526 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
33530 if mkdir -p . 2>/dev/null; then
33531 as_mkdir_p='mkdir -p "$as_dir"'
33533 test -d ./-p && rmdir ./-p
33537 if test -x / >/dev/null 2>&1; then
33538 as_test_x='test -x'
33540 if ls -dL / >/dev/null 2>&1; then
33547 if test -d "$1"; then
33553 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
33554 ???[sx]*):;;*)false;;esac;fi
33558 as_executable_p=$as_test_x
33560 # Sed expression to map a string onto a valid CPP name.
33561 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33563 # Sed expression to map a string onto a valid variable name.
33564 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33568 ## ----------------------------------- ##
33569 ## Main body of $CONFIG_STATUS script. ##
33570 ## ----------------------------------- ##
33572 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
33574 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33575 # Save the log message, to keep $0 and so on meaningful, and to
33576 # report actual input values of CONFIG_FILES etc. instead of their
33577 # values after options handling.
33579 This file was extended by ImageMagick $as_me 6.6.4, which was
33580 generated by GNU Autoconf 2.65. Invocation command line was
33582 CONFIG_FILES = $CONFIG_FILES
33583 CONFIG_HEADERS = $CONFIG_HEADERS
33584 CONFIG_LINKS = $CONFIG_LINKS
33585 CONFIG_COMMANDS = $CONFIG_COMMANDS
33588 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33593 case $ac_config_files in *"
33594 "*) set x $ac_config_files; shift; ac_config_files=$*;;
33597 case $ac_config_headers in *"
33598 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
33602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33603 # Files that config.status was made for.
33604 config_files="$ac_config_files"
33605 config_headers="$ac_config_headers"
33606 config_commands="$ac_config_commands"
33610 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33612 \`$as_me' instantiates files and other configuration actions
33613 from templates according to the current configuration. Unless the files
33614 and actions are specified as TAGs, all are instantiated by default.
33616 Usage: $0 [OPTION]... [TAG]...
33618 -h, --help print this help, then exit
33619 -V, --version print version number and configuration settings, then exit
33620 --config print configuration, then exit
33621 -q, --quiet, --silent
33622 do not print progress messages
33623 -d, --debug don't remove temporary files
33624 --recheck update $as_me by reconfiguring in the same conditions
33625 --file=FILE[:TEMPLATE]
33626 instantiate the configuration file FILE
33627 --header=FILE[:TEMPLATE]
33628 instantiate the configuration header FILE
33630 Configuration files:
33633 Configuration headers:
33636 Configuration commands:
33639 Report bugs to <http://www.imagemagick.org>."
33642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33643 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33645 ImageMagick config.status 6.6.4
33646 configured by $0, generated by GNU Autoconf 2.65,
33647 with options \\"\$ac_cs_config\\"
33649 Copyright (C) 2009 Free Software Foundation, Inc.
33650 This config.status script is free software; the Free Software Foundation
33651 gives unlimited permission to copy, distribute and modify it."
33658 test -n "\$AWK" || AWK=awk
33661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33662 # The default lists apply if the user does not specify any file.
33668 ac_option=`expr "X$1" : 'X\([^=]*\)='`
33669 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
33680 # Handling of the options.
33681 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33683 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
33684 $as_echo "$ac_cs_version"; exit ;;
33685 --config | --confi | --conf | --con | --co | --c )
33686 $as_echo "$ac_cs_config"; exit ;;
33687 --debug | --debu | --deb | --de | --d | -d )
33689 --file | --fil | --fi | --f )
33692 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33694 as_fn_append CONFIG_FILES " '$ac_optarg'"
33695 ac_need_defaults=false;;
33696 --header | --heade | --head | --hea )
33699 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33701 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
33702 ac_need_defaults=false;;
33704 # Conflict between --help and --header
33705 as_fn_error "ambiguous option: \`$1'
33706 Try \`$0 --help' for more information.";;
33707 --help | --hel | -h )
33708 $as_echo "$ac_cs_usage"; exit ;;
33709 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33710 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33713 # This is an error.
33714 -*) as_fn_error "unrecognized option: \`$1'
33715 Try \`$0 --help' for more information." ;;
33717 *) as_fn_append ac_config_targets " $1"
33718 ac_need_defaults=false ;;
33724 ac_configure_extra_args=
33726 if $ac_cs_silent; then
33728 ac_configure_extra_args="$ac_configure_extra_args --silent"
33732 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33733 if \$ac_cs_recheck; then
33734 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33736 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33737 CONFIG_SHELL='$SHELL'
33738 export CONFIG_SHELL
33743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
33747 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33748 ## Running $as_me. ##
33754 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33759 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33762 # The HP-UX ksh and POSIX shell print the target directory to stdout
33763 # if CDPATH is set.
33764 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33766 sed_quote_subst='$sed_quote_subst'
33767 double_quote_subst='$double_quote_subst'
33768 delay_variable_subst='$delay_variable_subst'
33769 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
33770 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
33771 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
33772 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
33773 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
33774 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
33775 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
33776 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
33777 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
33778 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33779 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
33780 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
33781 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
33782 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
33783 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
33784 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
33785 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
33786 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
33787 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
33788 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
33789 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
33790 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
33791 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
33792 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
33793 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
33794 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
33795 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
33796 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
33797 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
33798 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
33799 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33800 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
33801 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
33802 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
33803 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33804 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
33805 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
33806 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33807 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33808 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33809 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
33810 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
33811 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
33812 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
33813 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
33814 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
33815 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"`'
33816 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"`'
33817 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
33818 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
33819 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
33820 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
33821 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
33822 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
33823 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
33824 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
33825 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
33826 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
33827 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
33828 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
33829 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
33830 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
33831 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
33832 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
33833 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33834 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33835 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
33836 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
33837 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33838 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33839 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
33840 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33841 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33842 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33843 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33844 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33845 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33846 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
33847 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33848 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
33849 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
33850 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
33851 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
33852 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
33853 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
33854 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
33855 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33856 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
33857 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
33858 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
33859 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
33860 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
33861 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33862 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33863 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
33864 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33865 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
33866 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
33867 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
33868 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
33869 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
33870 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33871 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
33872 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
33873 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33874 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
33875 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
33876 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33877 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33878 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
33879 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
33880 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
33881 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33882 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
33883 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
33884 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
33885 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
33886 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
33887 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
33888 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
33889 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
33890 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33891 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
33892 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
33893 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
33894 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
33895 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33896 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33897 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33898 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33899 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33900 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33901 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33902 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33903 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33904 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33905 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33906 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33907 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33908 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33909 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33910 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33911 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33912 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33913 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33914 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33915 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33916 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33917 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33918 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33919 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33920 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33921 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33922 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33923 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33924 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33925 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33926 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33927 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33928 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33929 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33930 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33931 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33932 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33933 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33934 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33935 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33936 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33937 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33938 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33939 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33940 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33941 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
33944 LTCFLAGS='$LTCFLAGS'
33945 compiler='$compiler_DEFAULT'
33947 # Quote evaled strings.
33958 deplibs_check_method \
33967 lt_cv_sys_global_symbol_pipe \
33968 lt_cv_sys_global_symbol_to_cdecl \
33969 lt_cv_sys_global_symbol_to_c_name_address \
33970 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
33973 lt_prog_compiler_no_builtin_flag \
33974 lt_prog_compiler_wl \
33975 lt_prog_compiler_pic \
33976 lt_prog_compiler_static \
33977 lt_cv_prog_compiler_c_o \
33985 export_dynamic_flag_spec \
33986 whole_archive_flag_spec \
33987 compiler_needs_object \
33989 allow_undefined_flag \
33990 no_undefined_flag \
33991 hardcode_libdir_flag_spec \
33992 hardcode_libdir_flag_spec_ld \
33993 hardcode_libdir_separator \
33998 variables_saved_for_relink \
34000 library_names_spec \
34005 compiler_lib_search_dirs \
34010 compiler_lib_search_path \
34013 lt_prog_compiler_no_builtin_flag_CXX \
34014 lt_prog_compiler_wl_CXX \
34015 lt_prog_compiler_pic_CXX \
34016 lt_prog_compiler_static_CXX \
34017 lt_cv_prog_compiler_c_o_CXX \
34018 export_dynamic_flag_spec_CXX \
34019 whole_archive_flag_spec_CXX \
34020 compiler_needs_object_CXX \
34022 allow_undefined_flag_CXX \
34023 no_undefined_flag_CXX \
34024 hardcode_libdir_flag_spec_CXX \
34025 hardcode_libdir_flag_spec_ld_CXX \
34026 hardcode_libdir_separator_CXX \
34027 fix_srcfile_path_CXX \
34028 exclude_expsyms_CXX \
34029 include_expsyms_CXX \
34030 file_list_spec_CXX \
34031 compiler_lib_search_dirs_CXX \
34032 predep_objects_CXX \
34033 postdep_objects_CXX \
34036 compiler_lib_search_path_CXX; do
34037 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
34038 *[\\\\\\\`\\"\\\$]*)
34039 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
34042 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34047 # Double-quote double-evaled strings.
34048 for var in reload_cmds \
34049 old_postinstall_cmds \
34050 old_postuninstall_cmds \
34052 extract_expsyms_cmds \
34053 old_archive_from_new_cmds \
34054 old_archive_from_expsyms_cmds \
34056 archive_expsym_cmds \
34058 module_expsym_cmds \
34059 export_symbols_cmds \
34062 postuninstall_cmds \
34064 sys_lib_search_path_spec \
34065 sys_lib_dlsearch_path_spec \
34066 old_archive_cmds_CXX \
34067 old_archive_from_new_cmds_CXX \
34068 old_archive_from_expsyms_cmds_CXX \
34070 archive_expsym_cmds_CXX \
34072 module_expsym_cmds_CXX \
34073 export_symbols_cmds_CXX \
34074 prelink_cmds_CXX; do
34075 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
34076 *[\\\\\\\`\\"\\\$]*)
34077 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
34080 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34085 # Fix-up fallback echo if it was mangled by the above quoting rules.
34087 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
34091 ac_aux_dir='$ac_aux_dir'
34092 xsi_shell='$xsi_shell'
34093 lt_shell_append='$lt_shell_append'
34095 # See if we are running on zsh, and set the options which allow our
34096 # commands through without removal of \ escapes INIT.
34097 if test -n "\${ZSH_VERSION+set}" ; then
34098 setopt NO_GLOB_SUBST
34104 TIMESTAMP='$TIMESTAMP'
34115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34117 # Handling of arguments.
34118 for ac_config_target in $ac_config_targets
34120 case $ac_config_target in
34121 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
34122 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
34123 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
34124 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
34125 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
34126 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
34127 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
34128 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
34129 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
34130 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
34131 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
34132 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
34133 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
34134 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
34135 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
34136 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
34137 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
34138 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
34139 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
34140 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
34141 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
34142 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
34143 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
34144 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
34145 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
34146 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
34147 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
34148 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
34149 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
34150 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
34151 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
34152 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
34153 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
34154 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
34155 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
34156 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
34157 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
34158 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
34159 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
34160 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
34161 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
34162 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
34163 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
34164 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
34165 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
34166 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
34167 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
34168 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
34169 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
34170 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
34172 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34177 # If the user did not use the arguments to specify the items to instantiate,
34178 # then the envvar interface is used. Set only those that are not.
34179 # We use the long form for the default assignment because of an extremely
34180 # bizarre bug on SunOS 4.1.3.
34181 if $ac_need_defaults; then
34182 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
34183 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
34184 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
34187 # Have a temporary directory for convenience. Make it in the build tree
34188 # simply because there is no reason against having it here, and in addition,
34189 # creating and moving files from /tmp can sometimes cause problems.
34190 # Hook for its removal unless debugging.
34191 # Note that there is a small window in which the directory will not be cleaned:
34192 # after its creation but before its name has been assigned to `$tmp'.
34196 trap 'exit_status=$?
34197 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
34199 trap 'as_fn_exit 1' 1 2 13 15
34201 # Create a (secure) tmp directory for tmp files.
34204 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34205 test -n "$tmp" && test -d "$tmp"
34208 tmp=./conf$$-$RANDOM
34209 (umask 077 && mkdir "$tmp")
34210 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
34212 # Set up the scripts for CONFIG_FILES section.
34213 # No need to generate them if there are no CONFIG_FILES.
34214 # This happens for instance with `./config.status config.h'.
34215 if test -n "$CONFIG_FILES"; then
34218 ac_cr=`echo X | tr X '\015'`
34219 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34220 # But we know of no other shell where ac_cr would be empty at this
34221 # point, so we can use a bashism as a fallback.
34222 if test "x$ac_cr" = x; then
34223 eval ac_cr=\$\'\\r\'
34225 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34226 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34229 ac_cs_awk_cr=$ac_cr
34232 echo 'BEGIN {' >"$tmp/subs1.awk" &&
34237 echo "cat >conf$$subs.awk <<_ACEOF" &&
34238 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34240 } >conf$$subs.sh ||
34241 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
34242 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
34244 for ac_last_try in false false false false false :; do
34245 . ./conf$$subs.sh ||
34246 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
34248 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
34249 if test $ac_delim_n = $ac_delim_num; then
34251 elif $ac_last_try; then
34252 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
34254 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34257 rm -f conf$$subs.sh
34259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34260 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
34264 s/^/S["/; s/!.*/"]=/
34274 s/\(.\{148\}\)..*/\1/
34276 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
34281 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34288 s/\(.\{148\}\)..*/\1/
34290 s/["\\]/\\&/g; s/^/"/; s/$/"/
34294 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
34299 ' <conf$$subs.awk | sed '
34304 ' >>$CONFIG_STATUS || ac_write_fail=1
34305 rm -f conf$$subs.awk
34306 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34308 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
34309 for (key in S) S_is_set[key] = 1
34315 nfields = split(line, field, "@")
34317 len = length(field[1])
34318 for (i = 2; i < nfields; i++) {
34320 keylen = length(key)
34321 if (S_is_set[key]) {
34323 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34324 len += length(value) + length(field[++i])
34335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34336 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34337 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
34340 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
34341 || as_fn_error "could not setup config files machinery" "$LINENO" 5
34344 # VPATH may cause trouble with some makes, so we remove $(srcdir),
34345 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
34346 # trailing colons and then remove the whole line if VPATH becomes empty
34347 # (actually we leave an empty line to preserve line numbers).
34348 if test "x$srcdir" = x.; then
34349 ac_vpsub='/^[ ]*VPATH[ ]*=/{
34350 s/:*\$(srcdir):*/:/
34351 s/:*\${srcdir}:*/:/
34353 s/^\([^=]*=[ ]*\):*/\1/
34359 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34360 fi # test -n "$CONFIG_FILES"
34362 # Set up the scripts for CONFIG_HEADERS section.
34363 # No need to generate them if there are no CONFIG_HEADERS.
34364 # This happens for instance with `./config.status Makefile'.
34365 if test -n "$CONFIG_HEADERS"; then
34366 cat >"$tmp/defines.awk" <<\_ACAWK ||
34370 # Transform confdefs.h into an awk script `defines.awk', embedded as
34371 # here-document in config.status, that substitutes the proper values into
34372 # config.h.in to produce config.h.
34374 # Create a delimiter string that does not exist in confdefs.h, to ease
34375 # handling of long lines.
34377 for ac_last_try in false false :; do
34378 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
34379 if test -z "$ac_t"; then
34381 elif $ac_last_try; then
34382 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
34384 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
34388 # For the awk script, D is an array of macro values keyed by name,
34389 # likewise P contains macro parameters if any. Preserve backslash
34390 # newline sequences.
34392 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34394 s/.\{148\}/&'"$ac_delim"'/g
34397 s/^[ ]*#[ ]*define[ ][ ]*/ /
34404 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34406 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
34410 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
34411 D["\1"]=" \3\\\\\\n"\\/p
34413 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
34418 s/.\{148\}/&'"$ac_delim"'/g
34423 s/["\\]/\\&/g; s/^/"/; s/$/"/p
34426 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
34428 ' <confdefs.h | sed '
34429 s/'"$ac_delim"'/"\\\
34430 "/g' >>$CONFIG_STATUS || ac_write_fail=1
34432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34433 for (key in D) D_is_set[key] = 1
34436 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34438 split(line, arg, " ")
34439 if (arg[1] == "#") {
34443 defundef = substr(arg[1], 2)
34446 split(mac1, mac2, "(") #)
34448 prefix = substr(line, 1, index(line, defundef) - 1)
34449 if (D_is_set[macro]) {
34450 # Preserve the white space surrounding the "#".
34451 print prefix "define", macro P[macro] D[macro]
34454 # Replace #undef with comments. This is necessary, for example,
34455 # in the case of _POSIX_SOURCE, which is predefined and required
34456 # on some systems where configure will not decide to define it.
34457 if (defundef == "undef") {
34458 print "/*", prefix defundef, macro, "*/"
34466 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34467 as_fn_error "could not setup config headers machinery" "$LINENO" 5
34468 fi # test -n "$CONFIG_HEADERS"
34471 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34476 :[FHLC]) ac_mode=$ac_tag; continue;;
34478 case $ac_mode$ac_tag in
34480 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
34481 :[FH]-) ac_tag=-:-;;
34482 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
34499 -) ac_f="$tmp/stdin";;
34500 *) # Look for the file first in the build tree, then in the source tree
34501 # (if the path is not absolute). The absolute path cannot be DOS-style,
34502 # because $ac_f cannot contain `:'.
34506 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
34508 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34510 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34511 as_fn_append ac_file_inputs " '$ac_f'"
34514 # Let's still pretend it is `configure' which instantiates (i.e., don't
34515 # use $as_me), people would be surprised to read:
34516 # /* config.h. Generated by config.status. */
34517 configure_input='Generated from '`
34518 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34520 if test x"$ac_file" != x-; then
34521 configure_input="$ac_file. $configure_input"
34522 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34523 $as_echo "$as_me: creating $ac_file" >&6;}
34525 # Neutralize special characters interpreted by sed in replacement strings.
34526 case $configure_input in #(
34527 *\&* | *\|* | *\\* )
34528 ac_sed_conf_input=`$as_echo "$configure_input" |
34529 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34530 *) ac_sed_conf_input=$configure_input;;
34534 *:-:* | *:-) cat >"$tmp/stdin" \
34535 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
34540 ac_dir=`$as_dirname -- "$ac_file" ||
34541 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34542 X"$ac_file" : 'X\(//\)[^/]' \| \
34543 X"$ac_file" : 'X\(//\)$' \| \
34544 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34545 $as_echo X"$ac_file" |
34546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34550 /^X\(\/\/\)[^/].*/{
34563 as_dir="$ac_dir"; as_fn_mkdir_p
34567 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
34569 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34570 # A ".." for each directory in $ac_dir_suffix.
34571 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34572 case $ac_top_builddir_sub in
34573 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
34574 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
34577 ac_abs_top_builddir=$ac_pwd
34578 ac_abs_builddir=$ac_pwd$ac_dir_suffix
34579 # for backward compatibility:
34580 ac_top_builddir=$ac_top_build_prefix
34583 .) # We are building in place.
34585 ac_top_srcdir=$ac_top_builddir_sub
34586 ac_abs_top_srcdir=$ac_pwd ;;
34587 [\\/]* | ?:[\\/]* ) # Absolute name.
34588 ac_srcdir=$srcdir$ac_dir_suffix;
34589 ac_top_srcdir=$srcdir
34590 ac_abs_top_srcdir=$srcdir ;;
34591 *) # Relative name.
34592 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
34593 ac_top_srcdir=$ac_top_build_prefix$srcdir
34594 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
34596 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
34606 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34607 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
34609 ac_MKDIR_P=$MKDIR_P
34611 [\\/$]* | ?:[\\/]* ) ;;
34612 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
34616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34617 # If the template does not know about datarootdir, expand it.
34618 # FIXME: This hack should be removed a few years after 2.60.
34619 ac_datarootdir_hack=; ac_datarootdir_seen=
34630 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34631 *datarootdir*) ac_datarootdir_seen=yes;;
34632 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
34633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34634 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34637 ac_datarootdir_hack='
34638 s&@datadir@&$datadir&g
34639 s&@docdir@&$docdir&g
34640 s&@infodir@&$infodir&g
34641 s&@localedir@&$localedir&g
34642 s&@mandir@&$mandir&g
34643 s&\\\${datarootdir}&$datarootdir&g' ;;
34647 # Neutralize VPATH when `$srcdir' = `.'.
34648 # Shell code in configure.ac might set extrasub.
34649 # FIXME: do we really want to maintain this feature?
34650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34651 ac_sed_extra="$ac_vpsub
34654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34656 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34657 s|@configure_input@|$ac_sed_conf_input|;t t
34658 s&@top_builddir@&$ac_top_builddir_sub&;t t
34659 s&@top_build_prefix@&$ac_top_build_prefix&;t t
34660 s&@srcdir@&$ac_srcdir&;t t
34661 s&@abs_srcdir@&$ac_abs_srcdir&;t t
34662 s&@top_srcdir@&$ac_top_srcdir&;t t
34663 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
34664 s&@builddir@&$ac_builddir&;t t
34665 s&@abs_builddir@&$ac_abs_builddir&;t t
34666 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
34667 s&@INSTALL@&$ac_INSTALL&;t t
34668 s&@MKDIR_P@&$ac_MKDIR_P&;t t
34669 $ac_datarootdir_hack
34671 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
34672 || as_fn_error "could not create $ac_file" "$LINENO" 5
34674 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34675 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
34676 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
34677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34678 which seems to be undefined. Please make sure it is defined." >&5
34679 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
34680 which seems to be undefined. Please make sure it is defined." >&2;}
34684 -) cat "$tmp/out" && rm -f "$tmp/out";;
34685 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
34687 || as_fn_error "could not create $ac_file" "$LINENO" 5
34693 if test x"$ac_file" != x-; then
34695 $as_echo "/* $configure_input */" \
34696 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
34697 } >"$tmp/config.h" \
34698 || as_fn_error "could not create $ac_file" "$LINENO" 5
34699 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
34700 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34701 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34704 mv "$tmp/config.h" "$ac_file" \
34705 || as_fn_error "could not create $ac_file" "$LINENO" 5
34708 $as_echo "/* $configure_input */" \
34709 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
34710 || as_fn_error "could not create -" "$LINENO" 5
34712 # Compute "$ac_file"'s index in $config_headers.
34715 for _am_header in $config_headers :; do
34716 case $_am_header in
34717 $_am_arg | $_am_arg:* )
34720 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34723 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34724 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34725 X"$_am_arg" : 'X\(//\)[^/]' \| \
34726 X"$_am_arg" : 'X\(//\)$' \| \
34727 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34728 $as_echo X"$_am_arg" |
34729 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34733 /^X\(\/\/\)[^/].*/{
34745 s/.*/./; q'`/stamp-h$_am_stamp_count
34748 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34749 $as_echo "$as_me: executing $ac_file commands" >&6;}
34754 case $ac_file$ac_mode in
34755 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
34756 ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
34757 ac_prefix_conf_PKG=`echo MagickCore`
34758 ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
34759 ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
34760 ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
34761 if test ".$ac_prefix_conf_INP" = "."; then
34762 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
34764 *.h) ac_prefix_conf_INP=$ac_file ;;
34767 test ".$ac_prefix_conf_INP" != "." && break
34770 if test ".$ac_prefix_conf_INP" = "."; then
34771 case "$ac_prefix_conf_OUT" in
34772 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
34774 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
34776 *) ac_prefix_conf_INP=config.h
34780 if test -z "$ac_prefix_conf_PKG" ; then
34781 as_fn_error "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
34783 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
34784 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
34786 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
34787 $as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
34788 if test -f $ac_prefix_conf_INP ; then
34789 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
34790 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
34791 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
34792 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
34793 $as_echo "#endif/" >> conftest.prefix
34794 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
34795 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
34796 $as_echo "#endif/" >> conftest.prefix
34797 # now executing _script on _DEF input to create _OUT output file
34798 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
34799 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
34800 echo ' ' >>$tmp/pconfig.h
34801 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
34803 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
34804 echo ' ' >>$tmp/pconfig.h
34805 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
34806 echo "#endif" >>$tmp/pconfig.h
34807 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
34808 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
34809 $as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
34811 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
34812 $as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34813 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
34814 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
34815 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
34816 $as_echo X"$ac_prefix_conf_OUT" |
34817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34821 /^X\(\/\/\)[^/].*/{
34834 as_dir="$ac_dir"; as_fn_mkdir_p
34835 rm -f "$ac_prefix_conf_OUT"
34836 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
34838 cp conftest.prefix _configs.sed
34840 as_fn_error "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
34845 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
34846 # Autoconf 2.62 quotes --file arguments for eval, but not when files
34847 # are listed without --file. Let's play safe and only enable the eval
34848 # if we detect the quoting.
34849 case $CONFIG_FILES in
34850 *\'*) eval set x "$CONFIG_FILES" ;;
34851 *) set x $CONFIG_FILES ;;
34856 # Strip MF so we end up with the name of the file.
34857 mf=`echo "$mf" | sed -e 's/:.*$//'`
34858 # Check whether this is an Automake generated Makefile or not.
34859 # We used to match only the files named `Makefile.in', but
34860 # some people rename them; so instead we look at the file content.
34861 # Grep'ing the first line is not enough: some people post-process
34862 # each Makefile.in and add a new line on top of each file to say so.
34863 # Grep'ing the whole file is not good either: AIX grep has a line
34864 # limit of 2048, but all sed's we know have understand at least 4000.
34865 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
34866 dirpart=`$as_dirname -- "$mf" ||
34867 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34868 X"$mf" : 'X\(//\)[^/]' \| \
34869 X"$mf" : 'X\(//\)$' \| \
34870 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34876 /^X\(\/\/\)[^/].*/{
34892 # Extract the definition of DEPDIR, am__include, and am__quote
34893 # from the Makefile without running `make'.
34894 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
34895 test -z "$DEPDIR" && continue
34896 am__include=`sed -n 's/^am__include = //p' < "$mf"`
34897 test -z "am__include" && continue
34898 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
34899 # When using ansi2knr, U may be empty or an underscore; expand it
34900 U=`sed -n 's/^U = //p' < "$mf"`
34901 # Find all dependency output files, they are included files with
34902 # $(DEPDIR) in their names. We invoke sed twice because it is the
34903 # simplest approach to changing $(DEPDIR) to its actual value in the
34905 for file in `sed -n "
34906 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
34907 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
34908 # Make sure the directory exists.
34909 test -f "$dirpart/$file" && continue
34910 fdir=`$as_dirname -- "$file" ||
34911 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34912 X"$file" : 'X\(//\)[^/]' \| \
34913 X"$file" : 'X\(//\)$' \| \
34914 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
34915 $as_echo X"$file" |
34916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34920 /^X\(\/\/\)[^/].*/{
34933 as_dir=$dirpart/$fdir; as_fn_mkdir_p
34934 # echo "creating $dirpart/$file"
34935 echo '# dummy' > "$dirpart/$file"
34942 # See if we are running on zsh, and set the options which allow our
34943 # commands through without removal of \ escapes.
34944 if test -n "${ZSH_VERSION+set}" ; then
34945 setopt NO_GLOB_SUBST
34948 cfgfile="${ofile}T"
34949 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
34952 cat <<_LT_EOF >> "$cfgfile"
34955 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
34956 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
34957 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
34958 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
34960 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
34961 # 2006, 2007, 2008 Free Software Foundation, Inc.
34962 # Written by Gordon Matzigkeit, 1996
34964 # This file is part of GNU Libtool.
34966 # GNU Libtool is free software; you can redistribute it and/or
34967 # modify it under the terms of the GNU General Public License as
34968 # published by the Free Software Foundation; either version 2 of
34969 # the License, or (at your option) any later version.
34971 # As a special exception to the GNU General Public License,
34972 # if you distribute this file as part of a program or library that
34973 # is built using GNU Libtool, you may include this file under the
34974 # same distribution terms that you use for the rest of that program.
34976 # GNU Libtool is distributed in the hope that it will be useful,
34977 # but WITHOUT ANY WARRANTY; without even the implied warranty of
34978 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34979 # GNU General Public License for more details.
34981 # You should have received a copy of the GNU General Public License
34982 # along with GNU Libtool; see the file COPYING. If not, a copy
34983 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
34984 # obtained by writing to the Free Software Foundation, Inc.,
34985 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
34988 # The names of the tagged configurations supported by this script.
34989 available_tags="CXX "
34991 # ### BEGIN LIBTOOL CONFIG
34993 # A sed program that does not truncate output.
34996 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
34997 Xsed="\$SED -e 1s/^X//"
34999 # A grep program that handles long lines.
35005 # A literal string matcher.
35008 # Which release of libtool.m4 was used?
35009 macro_version=$macro_version
35010 macro_revision=$macro_revision
35012 # Assembler program.
35015 # DLL creation program.
35018 # Object dumper program.
35021 # Whether or not to build shared libraries.
35022 build_libtool_libs=$enable_shared
35024 # Whether or not to build static libraries.
35025 build_old_libs=$enable_static
35027 # What type of objects to build.
35030 # Whether or not to optimize for fast installation.
35031 fast_install=$enable_fast_install
35034 host_alias=$host_alias
35038 # The build system.
35039 build_alias=$build_alias
35043 # A BSD- or MS-compatible name lister.
35046 # Whether we need soft or hard links.
35049 # What is the maximum length of a command?
35050 max_cmd_len=$max_cmd_len
35052 # Object file suffix (normally "o").
35055 # Executable file suffix (normally "").
35058 # whether the shell understands "unset".
35061 # turn spaces into newlines.
35064 # turn newlines into spaces.
35067 # How to create reloadable object files.
35068 reload_flag=$lt_reload_flag
35069 reload_cmds=$lt_reload_cmds
35071 # Method to check whether dependent libraries are shared objects.
35072 deplibs_check_method=$lt_deplibs_check_method
35074 # Command to use when deplibs_check_method == "file_magic".
35075 file_magic_cmd=$lt_file_magic_cmd
35079 AR_FLAGS=$lt_AR_FLAGS
35081 # A symbol stripping program.
35084 # Commands used to install an old-style archive.
35086 old_postinstall_cmds=$lt_old_postinstall_cmds
35087 old_postuninstall_cmds=$lt_old_postuninstall_cmds
35092 # LTCC compiler flags.
35093 LTCFLAGS=$lt_CFLAGS
35095 # Take the output of nm and produce a listing of raw symbols and C names.
35096 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35098 # Transform the output of nm in a proper C declaration.
35099 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35101 # Transform the output of nm in a C name address pair.
35102 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35104 # Transform the output of nm in a C name address pair when lib prefix is needed.
35105 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35107 # The name of the directory that contains temporary libtool files.
35110 # Shell to use when invoking shell scripts.
35113 # An echo program that does not interpret backslashes.
35116 # Used to examine libraries when file_magic_cmd begins with "file".
35117 MAGIC_CMD=$MAGIC_CMD
35119 # Must we lock files when doing compilation?
35120 need_locks=$lt_need_locks
35122 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35123 DSYMUTIL=$lt_DSYMUTIL
35125 # Tool to change global to local symbols on Mac OS X.
35128 # Tool to manipulate fat objects and archives on Mac OS X.
35131 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
35134 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35135 OTOOL64=$lt_OTOOL64
35137 # Old archive suffix (normally "a").
35140 # Shared library suffix (normally ".so").
35141 shrext_cmds=$lt_shrext_cmds
35143 # The commands to extract the exported symbol list from a shared archive.
35144 extract_expsyms_cmds=$lt_extract_expsyms_cmds
35146 # Variables whose values should be saved in libtool wrapper scripts and
35147 # restored at link time.
35148 variables_saved_for_relink=$lt_variables_saved_for_relink
35150 # Do we need the "lib" prefix for modules?
35151 need_lib_prefix=$need_lib_prefix
35153 # Do we need a version for libraries?
35154 need_version=$need_version
35156 # Library versioning type.
35157 version_type=$version_type
35159 # Shared library runtime path variable.
35160 runpath_var=$runpath_var
35162 # Shared library path variable.
35163 shlibpath_var=$shlibpath_var
35165 # Is shlibpath searched before the hard-coded library search path?
35166 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35168 # Format of library name prefix.
35169 libname_spec=$lt_libname_spec
35171 # List of archive names. First name is the real one, the rest are links.
35172 # The last name is the one that the linker finds with -lNAME
35173 library_names_spec=$lt_library_names_spec
35175 # The coded name of the library, if different from the real name.
35176 soname_spec=$lt_soname_spec
35178 # Command to use after installation of a shared archive.
35179 postinstall_cmds=$lt_postinstall_cmds
35181 # Command to use after uninstallation of a shared archive.
35182 postuninstall_cmds=$lt_postuninstall_cmds
35184 # Commands used to finish a libtool library installation in a directory.
35185 finish_cmds=$lt_finish_cmds
35187 # As "finish_cmds", except a single script fragment to be evaled but
35189 finish_eval=$lt_finish_eval
35191 # Whether we should hardcode library paths into libraries.
35192 hardcode_into_libs=$hardcode_into_libs
35194 # Compile-time system search path for libraries.
35195 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35197 # Run-time system search path for libraries.
35198 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
35200 # Whether dlopen is supported.
35201 dlopen_support=$enable_dlopen
35203 # Whether dlopen of programs is supported.
35204 dlopen_self=$enable_dlopen_self
35206 # Whether dlopen of statically linked programs is supported.
35207 dlopen_self_static=$enable_dlopen_self_static
35209 # Commands to strip libraries.
35210 old_striplib=$lt_old_striplib
35211 striplib=$lt_striplib
35214 # The linker used to build libraries.
35217 # Commands used to build an old-style archive.
35218 old_archive_cmds=$lt_old_archive_cmds
35220 # A language specific compiler.
35223 # Is the compiler the GNU compiler?
35226 # Compiler flag to turn off builtin functions.
35227 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35229 # How to pass a linker flag through the compiler.
35230 wl=$lt_lt_prog_compiler_wl
35232 # Additional compiler flags for building library objects.
35233 pic_flag=$lt_lt_prog_compiler_pic
35235 # Compiler flag to prevent dynamic linking.
35236 link_static_flag=$lt_lt_prog_compiler_static
35238 # Does compiler simultaneously support -c and -o options?
35239 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35241 # Whether or not to add -lc for building shared libraries.
35242 build_libtool_need_lc=$archive_cmds_need_lc
35244 # Whether or not to disallow shared libs when runtime libs are static.
35245 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35247 # Compiler flag to allow reflexive dlopens.
35248 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35250 # Compiler flag to generate shared objects directly from archives.
35251 whole_archive_flag_spec=$lt_whole_archive_flag_spec
35253 # Whether the compiler copes with passing no objects directly.
35254 compiler_needs_object=$lt_compiler_needs_object
35256 # Create an old-style archive from a shared archive.
35257 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35259 # Create a temporary old-style archive to link instead of a shared archive.
35260 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35262 # Commands used to build a shared archive.
35263 archive_cmds=$lt_archive_cmds
35264 archive_expsym_cmds=$lt_archive_expsym_cmds
35266 # Commands used to build a loadable module if different from building
35267 # a shared archive.
35268 module_cmds=$lt_module_cmds
35269 module_expsym_cmds=$lt_module_expsym_cmds
35271 # Whether we are building with GNU ld or not.
35272 with_gnu_ld=$lt_with_gnu_ld
35274 # Flag that allows shared libraries with undefined symbols to be built.
35275 allow_undefined_flag=$lt_allow_undefined_flag
35277 # Flag that enforces no undefined symbols.
35278 no_undefined_flag=$lt_no_undefined_flag
35280 # Flag to hardcode \$libdir into a binary during linking.
35281 # This must work even if \$libdir does not exist
35282 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35284 # If ld is used when linking, flag to hardcode \$libdir into a binary
35285 # during linking. This must work even if \$libdir does not exist.
35286 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
35288 # Whether we need a single "-rpath" flag with a separated argument.
35289 hardcode_libdir_separator=$lt_hardcode_libdir_separator
35291 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35292 # DIR into the resulting binary.
35293 hardcode_direct=$hardcode_direct
35295 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35296 # DIR into the resulting binary and the resulting library dependency is
35297 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35298 # library is relocated.
35299 hardcode_direct_absolute=$hardcode_direct_absolute
35301 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35302 # into the resulting binary.
35303 hardcode_minus_L=$hardcode_minus_L
35305 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35306 # into the resulting binary.
35307 hardcode_shlibpath_var=$hardcode_shlibpath_var
35309 # Set to "yes" if building a shared library automatically hardcodes DIR
35310 # into the library and all subsequent libraries and executables linked
35312 hardcode_automatic=$hardcode_automatic
35314 # Set to yes if linker adds runtime paths of dependent libraries
35315 # to runtime path list.
35316 inherit_rpath=$inherit_rpath
35318 # Whether libtool must link a program against all its dependency libraries.
35319 link_all_deplibs=$link_all_deplibs
35321 # Fix the shell variable \$srcfile for the compiler.
35322 fix_srcfile_path=$lt_fix_srcfile_path
35324 # Set to "yes" if exported symbols are required.
35325 always_export_symbols=$always_export_symbols
35327 # The commands to list exported symbols.
35328 export_symbols_cmds=$lt_export_symbols_cmds
35330 # Symbols that should not be listed in the preloaded symbols.
35331 exclude_expsyms=$lt_exclude_expsyms
35333 # Symbols that must always be exported.
35334 include_expsyms=$lt_include_expsyms
35336 # Commands necessary for linking programs (against libraries) with templates.
35337 prelink_cmds=$lt_prelink_cmds
35339 # Specify filename containing input files.
35340 file_list_spec=$lt_file_list_spec
35342 # How to hardcode a shared library path into an executable.
35343 hardcode_action=$hardcode_action
35345 # The directories searched by this compiler when creating a shared library.
35346 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
35348 # Dependencies to place before and after the objects being linked to
35349 # create a shared library.
35350 predep_objects=$lt_predep_objects
35351 postdep_objects=$lt_postdep_objects
35352 predeps=$lt_predeps
35353 postdeps=$lt_postdeps
35355 # The library search path used internally by the compiler when linking
35356 # a shared library.
35357 compiler_lib_search_path=$lt_compiler_lib_search_path
35359 # ### END LIBTOOL CONFIG
35365 cat <<\_LT_EOF >> "$cfgfile"
35366 # AIX sometimes has problems with the GCC collect2 program. For some
35367 # reason, if we set the COLLECT_NAMES environment variable, the problems
35368 # vanish in a puff of smoke.
35369 if test "X${COLLECT_NAMES+set}" != Xset; then
35371 export COLLECT_NAMES
35378 ltmain="$ac_aux_dir/ltmain.sh"
35381 # We use sed instead of cat because bash on DJGPP gets confused if
35382 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35383 # text mode, it properly converts lines to CR/LF. This bash problem
35384 # is reportedly fixed, but why not run on old versions too?
35385 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
35386 || (rm -f "$cfgfile"; exit 1)
35390 cat << \_LT_EOF >> "$cfgfile"
35392 # func_dirname file append nondir_replacement
35393 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
35394 # otherwise set result to NONDIR_REPLACEMENT.
35398 */*) func_dirname_result="${1%/*}${2}" ;;
35399 * ) func_dirname_result="${3}" ;;
35403 # func_basename file
35406 func_basename_result="${1##*/}"
35409 # func_dirname_and_basename file append nondir_replacement
35410 # perform func_basename and func_dirname in a single function
35412 # dirname: Compute the dirname of FILE. If nonempty,
35413 # add APPEND to the result, otherwise set result
35414 # to NONDIR_REPLACEMENT.
35415 # value returned in "$func_dirname_result"
35416 # basename: Compute filename of FILE.
35417 # value retuned in "$func_basename_result"
35418 # Implementation must be kept synchronized with func_dirname
35419 # and func_basename. For efficiency, we do not delegate to
35420 # those functions but instead duplicate the functionality here.
35421 func_dirname_and_basename ()
35424 */*) func_dirname_result="${1%/*}${2}" ;;
35425 * ) func_dirname_result="${3}" ;;
35427 func_basename_result="${1##*/}"
35430 # func_stripname prefix suffix name
35431 # strip PREFIX and SUFFIX off of NAME.
35432 # PREFIX and SUFFIX must not contain globbing or regex special
35433 # characters, hashes, percent signs, but SUFFIX may contain a leading
35434 # dot (in which case that matches only a dot).
35437 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
35438 # positional parameters, so assign one to ordinary parameter first.
35439 func_stripname_result=${3}
35440 func_stripname_result=${func_stripname_result#"${1}"}
35441 func_stripname_result=${func_stripname_result%"${2}"}
35447 func_opt_split_opt=${1%%=*}
35448 func_opt_split_arg=${1#*=}
35455 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
35456 *) func_lo2o_result=${1} ;;
35460 # func_xform libobj-or-source
35463 func_xform_result=${1%.*}.lo
35466 # func_arith arithmetic-term...
35469 func_arith_result=$(( $* ))
35473 # STRING may not start with a hyphen.
35476 func_len_result=${#1}
35481 *) # Bourne compatible functions.
35482 cat << \_LT_EOF >> "$cfgfile"
35484 # func_dirname file append nondir_replacement
35485 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
35486 # otherwise set result to NONDIR_REPLACEMENT.
35489 # Extract subdirectory from the argument.
35490 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
35491 if test "X$func_dirname_result" = "X${1}"; then
35492 func_dirname_result="${3}"
35494 func_dirname_result="$func_dirname_result${2}"
35498 # func_basename file
35501 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
35505 # func_stripname prefix suffix name
35506 # strip PREFIX and SUFFIX off of NAME.
35507 # PREFIX and SUFFIX must not contain globbing or regex special
35508 # characters, hashes, percent signs, but SUFFIX may contain a leading
35509 # dot (in which case that matches only a dot).
35510 # func_strip_suffix prefix name
35514 .*) func_stripname_result=`$ECHO "X${3}" \
35515 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
35516 *) func_stripname_result=`$ECHO "X${3}" \
35517 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
35522 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
35523 my_sed_long_arg='1s/^-[^=]*=//'
35528 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
35529 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
35535 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
35538 # func_xform libobj-or-source
35541 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
35544 # func_arith arithmetic-term...
35547 func_arith_result=`expr "$@"`
35551 # STRING may not start with a hyphen.
35554 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
35560 case $lt_shell_append in
35562 cat << \_LT_EOF >> "$cfgfile"
35564 # func_append var value
35565 # Append VALUE to the end of shell variable VAR.
35573 cat << \_LT_EOF >> "$cfgfile"
35575 # func_append var value
35576 # Append VALUE to the end of shell variable VAR.
35587 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
35588 || (rm -f "$cfgfile"; exit 1)
35590 mv -f "$cfgfile" "$ofile" ||
35591 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35595 cat <<_LT_EOF >> "$ofile"
35597 # ### BEGIN LIBTOOL TAG CONFIG: CXX
35599 # The linker used to build libraries.
35602 # Commands used to build an old-style archive.
35603 old_archive_cmds=$lt_old_archive_cmds_CXX
35605 # A language specific compiler.
35606 CC=$lt_compiler_CXX
35608 # Is the compiler the GNU compiler?
35611 # Compiler flag to turn off builtin functions.
35612 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
35614 # How to pass a linker flag through the compiler.
35615 wl=$lt_lt_prog_compiler_wl_CXX
35617 # Additional compiler flags for building library objects.
35618 pic_flag=$lt_lt_prog_compiler_pic_CXX
35620 # Compiler flag to prevent dynamic linking.
35621 link_static_flag=$lt_lt_prog_compiler_static_CXX
35623 # Does compiler simultaneously support -c and -o options?
35624 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
35626 # Whether or not to add -lc for building shared libraries.
35627 build_libtool_need_lc=$archive_cmds_need_lc_CXX
35629 # Whether or not to disallow shared libs when runtime libs are static.
35630 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
35632 # Compiler flag to allow reflexive dlopens.
35633 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
35635 # Compiler flag to generate shared objects directly from archives.
35636 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
35638 # Whether the compiler copes with passing no objects directly.
35639 compiler_needs_object=$lt_compiler_needs_object_CXX
35641 # Create an old-style archive from a shared archive.
35642 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
35644 # Create a temporary old-style archive to link instead of a shared archive.
35645 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
35647 # Commands used to build a shared archive.
35648 archive_cmds=$lt_archive_cmds_CXX
35649 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
35651 # Commands used to build a loadable module if different from building
35652 # a shared archive.
35653 module_cmds=$lt_module_cmds_CXX
35654 module_expsym_cmds=$lt_module_expsym_cmds_CXX
35656 # Whether we are building with GNU ld or not.
35657 with_gnu_ld=$lt_with_gnu_ld_CXX
35659 # Flag that allows shared libraries with undefined symbols to be built.
35660 allow_undefined_flag=$lt_allow_undefined_flag_CXX
35662 # Flag that enforces no undefined symbols.
35663 no_undefined_flag=$lt_no_undefined_flag_CXX
35665 # Flag to hardcode \$libdir into a binary during linking.
35666 # This must work even if \$libdir does not exist
35667 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
35669 # If ld is used when linking, flag to hardcode \$libdir into a binary
35670 # during linking. This must work even if \$libdir does not exist.
35671 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
35673 # Whether we need a single "-rpath" flag with a separated argument.
35674 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
35676 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35677 # DIR into the resulting binary.
35678 hardcode_direct=$hardcode_direct_CXX
35680 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
35681 # DIR into the resulting binary and the resulting library dependency is
35682 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
35683 # library is relocated.
35684 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
35686 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35687 # into the resulting binary.
35688 hardcode_minus_L=$hardcode_minus_L_CXX
35690 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35691 # into the resulting binary.
35692 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
35694 # Set to "yes" if building a shared library automatically hardcodes DIR
35695 # into the library and all subsequent libraries and executables linked
35697 hardcode_automatic=$hardcode_automatic_CXX
35699 # Set to yes if linker adds runtime paths of dependent libraries
35700 # to runtime path list.
35701 inherit_rpath=$inherit_rpath_CXX
35703 # Whether libtool must link a program against all its dependency libraries.
35704 link_all_deplibs=$link_all_deplibs_CXX
35706 # Fix the shell variable \$srcfile for the compiler.
35707 fix_srcfile_path=$lt_fix_srcfile_path_CXX
35709 # Set to "yes" if exported symbols are required.
35710 always_export_symbols=$always_export_symbols_CXX
35712 # The commands to list exported symbols.
35713 export_symbols_cmds=$lt_export_symbols_cmds_CXX
35715 # Symbols that should not be listed in the preloaded symbols.
35716 exclude_expsyms=$lt_exclude_expsyms_CXX
35718 # Symbols that must always be exported.
35719 include_expsyms=$lt_include_expsyms_CXX
35721 # Commands necessary for linking programs (against libraries) with templates.
35722 prelink_cmds=$lt_prelink_cmds_CXX
35724 # Specify filename containing input files.
35725 file_list_spec=$lt_file_list_spec_CXX
35727 # How to hardcode a shared library path into an executable.
35728 hardcode_action=$hardcode_action_CXX
35730 # The directories searched by this compiler when creating a shared library.
35731 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
35733 # Dependencies to place before and after the objects being linked to
35734 # create a shared library.
35735 predep_objects=$lt_predep_objects_CXX
35736 postdep_objects=$lt_postdep_objects_CXX
35737 predeps=$lt_predeps_CXX
35738 postdeps=$lt_postdeps_CXX
35740 # The library search path used internally by the compiler when linking
35741 # a shared library.
35742 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
35744 # ### END LIBTOOL TAG CONFIG: CXX
35748 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
35749 "Magick-config.in":C) chmod +x magick/Magick-config ;;
35750 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
35751 "Wand-config.in":C) chmod +x wand/Wand-config ;;
35752 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
35753 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
35761 ac_clean_files=$ac_clean_files_save
35763 test $ac_write_fail = 0 ||
35764 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
35767 # configure is writing to config.log, and then calls config.status.
35768 # config.status does its own redirection, appending to config.log.
35769 # Unfortunately, on DOS this fails, as config.log is still kept open
35770 # by configure, so config.status won't be able to write to it; its
35771 # output is simply discarded. So we exec the FD to /dev/null,
35772 # effectively closing config.log, so it can be properly (re)opened and
35773 # appended to by config.status. When coming back to configure, we
35774 # need to make the FD available again.
35775 if test "$no_create" != yes; then
35777 ac_config_status_args=
35778 test "$silent" = yes &&
35779 ac_config_status_args="$ac_config_status_args --quiet"
35781 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
35783 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35784 # would make configure fail if this is the last instruction.
35785 $ac_cs_success || as_fn_exit $?
35787 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
35788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35789 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
35793 rm -f magick-version
35795 result_dejavu_font_dir='none'
35796 if test "${dejavu_font_dir}x" != 'x'; then
35797 result_dejavu_font_dir=$dejavu_font_dir
35800 result_ghostscript_font_dir='none'
35801 if test "${ghostscript_font_dir}x" != 'x'; then
35802 result_ghostscript_font_dir=$ghostscript_font_dir
35805 result_windows_font_dir='none'
35806 if test "${windows_font_dir}x" != 'x'; then
35807 result_windows_font_dir=${windows_font_dir}
35810 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
35811 ImageMagick is configured as follows. Please verify that this configuration
35812 matches your expectations.
35814 Host system type: $host
35815 Build system type: $build
35818 -------------------------------------------------------------------------------
35819 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35820 Static libraries --enable-static=$enable_static $libtool_build_static_libs
35821 Module support --with-modules=$with_modules $with_modules
35822 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35823 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35824 High Dynamic Range Imagery
35825 --enable-hdri=$enable_hdri $enable_hdri
35827 Delegate Configuration:
35828 BZLIB --with-bzlib=$with_bzlib $have_bzlib
35829 Autotrace --with-autotrace=$with_autotrace $have_autotrace
35830 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
35831 DJVU --with-djvu=$with_djvu $have_djvu
35832 DPS --with-dps=$with_dps $have_dps
35833 FFTW --with-fftw=$with_fftw $have_fftw
35834 FlashPIX --with-fpx=$with_fpx $have_fpx
35835 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35836 FreeType --with-freetype=$with_freetype $have_freetype
35837 GhostPCL None $PCLDelegate ($PCLVersion)
35838 GhostXPS None $XPSDelegate ($XPSVersion)
35839 Ghostscript None $PSDelegate ($GSVersion)
35840 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35841 Ghostscript lib --with-gslib=$with_gslib $have_gslib
35842 Graphviz --with-gvc=$with_gvc $have_gvc
35843 JBIG --with-jbig=$with_jbig $have_jbig
35844 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35845 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
35846 LCMS v1 --with-lcms=$with_lcms $have_lcms
35847 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
35848 LQR --with-lqr=$with_lqr $have_lqr
35849 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35850 OpenEXR --with-openexr=$with_openexr $have_openexr
35851 PERL --with-perl=$with_perl $have_perl
35852 PNG --with-png=$with_png $have_png
35853 RSVG --with-rsvg=$with_rsvg $have_rsvg
35854 TIFF --with-tiff=$with_tiff $have_tiff
35855 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35856 WMF --with-wmf=$with_wmf $have_wmf
35857 X11 --with-x=$with_x $have_x
35858 XML --with-xml=$with_xml $have_xml
35859 ZLIB --with-zlib=$with_zlib $have_zlib
35862 X_CFLAGS = $X_CFLAGS
35863 X_PRE_LIBS = $X_PRE_LIBS
35865 X_EXTRA_LIBS = $X_EXTRA_LIBS
35867 Options used to compile and link:
35868 PREFIX = $PREFIX_DIR
35869 EXEC-PREFIX = $EXEC_PREFIX_DIR
35870 VERSION = $PACKAGE_VERSION
35873 CPPFLAGS = $MAGICK_CPPFLAGS
35874 PCFLAGS = $MAGICK_PCFLAGS
35877 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35878 LIBS = $MAGICK_LIBS
35880 CXXFLAGS = $CXXFLAGS
35881 FEATURES = $MAGICK_FEATURES
35884 ImageMagick is configured as follows. Please verify that this configuration
35885 matches your expectations.
35887 Host system type: $host
35888 Build system type: $build
35891 -------------------------------------------------------------------------------
35892 Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
35893 Static libraries --enable-static=$enable_static $libtool_build_static_libs
35894 Module support --with-modules=$with_modules $with_modules
35895 GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
35896 Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
35897 High Dynamic Range Imagery
35898 --enable-hdri=$enable_hdri $enable_hdri
35900 Delegate Configuration:
35901 BZLIB --with-bzlib=$with_bzlib $have_bzlib
35902 Autotrace --with-autotrace=$with_autotrace $have_autotrace
35903 Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
35904 DJVU --with-djvu=$with_djvu $have_djvu
35905 DPS --with-dps=$with_dps $have_dps
35906 FFTW --with-fftw=$with_fftw $have_fftw
35907 FlashPIX --with-fpx=$with_fpx $have_fpx
35908 FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
35909 FreeType --with-freetype=$with_freetype $have_freetype
35910 GhostPCL None $PCLDelegate ($PCLVersion)
35911 GhostXPS None $XPSDelegate ($XPSVersion)
35912 Ghostscript None $PSDelegate ($GSVersion)
35913 Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
35914 Ghostscript lib --with-gslib=$with_gslib $have_gslib
35915 Graphviz --with-gvc=$with_gvc $have_gvc
35916 JBIG --with-jbig=$with_jbig $have_jbig
35917 JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
35918 JPEG-2000 --with-jp2=$with_jp2 $have_jp2
35919 LCMS v1 --with-lcms=$with_lcms $have_lcms
35920 LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
35921 LQR --with-lqr=$with_lqr $have_lqr
35922 Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
35923 OpenEXR --with-openexr=$with_openexr $have_openexr
35924 PERL --with-perl=$with_perl $have_perl
35925 PNG --with-png=$with_png $have_png
35926 RSVG --with-rsvg=$with_rsvg $have_rsvg
35927 TIFF --with-tiff=$with_tiff $have_tiff
35928 Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
35929 WMF --with-wmf=$with_wmf $have_wmf
35930 X11 --with-x=$with_x $have_x
35931 XML --with-xml=$with_xml $have_xml
35932 ZLIB --with-zlib=$with_zlib $have_zlib
35935 X_CFLAGS = $X_CFLAGS
35936 X_PRE_LIBS = $X_PRE_LIBS
35938 X_EXTRA_LIBS = $X_EXTRA_LIBS
35940 Options used to compile and link:
35941 PREFIX = $PREFIX_DIR
35942 EXEC-PREFIX = $EXEC_PREFIX_DIR
35943 VERSION = $PACKAGE_VERSION
35946 CPPFLAGS = $MAGICK_CPPFLAGS
35947 PCFLAGS = $MAGICK_PCFLAGS
35950 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
35951 LIBS = $MAGICK_LIBS
35953 CXXFLAGS = $CXXFLAGS
35954 FEATURES = $MAGICK_FEATURES