blob: a04fd5fb89a63157ec778a57cf331ce6fa779893 [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.63 for ImageMagick 6.5.5.
4#
5# Report bugs to <http://www.imagemagick.org>.
6#
7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11## --------------------- ##
12## M4sh Initialization. ##
13## --------------------- ##
14
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27esac
28
29fi
30
31
32
33
34# PATH needs CR
35# Avoid depending upon Character Ranges.
36as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39as_cr_digits='0123456789'
40as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42as_nl='
43'
44export as_nl
45# Printing a long string crashes Solaris 7 /usr/bin/printf.
46as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83# Support unset when possible.
84if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86else
87 as_unset=false
88fi
89
90
91# IFS
92# We need space, tab and new line, in precisely that order. Quoting is
93# there to prevent editors from complaining about space-tab.
94# (If _AS_PATH_WALK were called with IFS unset, it would disable word
95# splitting by setting IFS to empty value.)
96IFS=" "" $as_nl"
97
98# Find who we are. Look in the path if we contain no directory separator.
99case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102for as_dir in $PATH
103do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107done
108IFS=$as_save_IFS
109
110 ;;
111esac
112# We did not find ourselves, most probably we were run as `sh COMMAND'
113# in which case we are not to be found in the path.
114if test "x$as_myself" = x; then
115 as_myself=$0
116fi
117if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120fi
121
122# Work around bugs in pre-3.0 UWIN ksh.
123for as_var in ENV MAIL MAILPATH
124do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
135
136# Required to use basename.
137if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140else
141 as_expr=false
142fi
143
144if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146else
147 as_basename=false
148fi
149
150
151# Name of the executable.
152as_me=`$as_basename -- "$0" ||
153$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156$as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171# CDPATH.
172$as_unset CDPATH
173
174
175if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178else
179 as_have_required=no
180fi
181
182 if test $as_have_required = yes && (eval ":
183(as_func_return () {
184 (exit \$1)
185}
186as_func_success () {
187 as_func_return 0
188}
189as_func_failure () {
190 as_func_return 1
191}
192as_func_ret_success () {
193 return 0
194}
195as_func_ret_failure () {
196 return 1
197}
198
199exitcode=0
200if as_func_success; then
201 :
202else
203 exitcode=1
204 echo as_func_success failed.
205fi
206
207if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210fi
211
212if as_func_ret_success; then
213 :
214else
215 exitcode=1
216 echo as_func_ret_success failed.
217fi
218
219if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222fi
223
224if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226else
227 exitcode=1
228 echo positional parameters were not saved.
229fi
230
231test \$exitcode = 0) || { (exit 1); exit 1; }
232
233(
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238") 2> /dev/null; then
239 :
240else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253done
254IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$as_shell") 2> /dev/null <<\_ASEOF
261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277_ASEOF
278}; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292esac
293
294fi
295
296
297:
298(as_func_return () {
299 (exit $1)
300}
301as_func_success () {
302 as_func_return 0
303}
304as_func_failure () {
305 as_func_return 1
306}
307as_func_ret_success () {
308 return 0
309}
310as_func_ret_failure () {
311 return 1
312}
313
314exitcode=0
315if as_func_success; then
316 :
317else
318 exitcode=1
319 echo as_func_success failed.
320fi
321
322if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325fi
326
327if as_func_ret_success; then
328 :
329else
330 exitcode=1
331 echo as_func_ret_success failed.
332fi
333
334if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337fi
338
339if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341else
342 exitcode=1
343 echo positional parameters were not saved.
344fi
345
346test $exitcode = 0) || { (exit 1); exit 1; }
347
348(
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354_ASEOF
355}; then
356 break
357fi
358
359fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378fi
379
380
381fi
382
383fi
384
385
386
387(eval "as_func_return () {
388 (exit \$1)
389}
390as_func_success () {
391 as_func_return 0
392}
393as_func_failure () {
394 as_func_return 1
395}
396as_func_ret_success () {
397 return 0
398}
399as_func_ret_failure () {
400 return 1
401}
402
403exitcode=0
404if as_func_success; then
405 :
406else
407 exitcode=1
408 echo as_func_success failed.
409fi
410
411if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414fi
415
416if as_func_ret_success; then
417 :
418else
419 exitcode=1
420 echo as_func_ret_success failed.
421fi
422
423if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426fi
427
428if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430else
431 exitcode=1
432 echo positional parameters were not saved.
433fi
434
435test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441}
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485}
486
487
488if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490else
491 as_dirname=false
492fi
493
494ECHO_C= ECHO_N= ECHO_T=
495case `echo -n x` in
496-n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501*)
502 ECHO_N='-n';;
503esac
504if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507else
508 as_expr=false
509fi
510
511rm -f conf$$ conf$$.exe conf$$.file
512if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517fi
518if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532else
533 as_ln_s='cp -p'
534fi
535rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536rmdir conf$$.dir 2>/dev/null
537
538if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543fi
544
545if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565fi
566as_executable_p=$as_test_x
567
568# Sed expression to map a string onto a valid CPP name.
569as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571# Sed expression to map a string onto a valid variable name.
572as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577# Check that we are running under the correct shell.
578SHELL=${CONFIG_SHELL-/bin/sh}
579
580case X$lt_ECHO in
581X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585esac
586
587ECHO=${lt_ECHO-echo}
588if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $ECHO works!
596 :
597else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600fi
601
602if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<_LT_EOF
606$*
607_LT_EOF
608 exit 0
609fi
610
611# The HP-UX ksh and POSIX shell print the target directory to stdout
612# if CDPATH is set.
613(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615if test -z "$lt_ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
621 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
622 then
623 break
624 fi
625 done
626 fi
627
628 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 :
632 else
633 # The Solaris, AIX, and Digital Unix default echo programs unquote
634 # backslashes. This makes it impossible to quote backslashes using
635 # echo "$something" | sed 's/\\/\\\\/g'
636 #
637 # So, first we look for a working echo in the user's PATH.
638
639 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
640 for dir in $PATH /usr/ucb; do
641 IFS="$lt_save_ifs"
642 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
643 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
646 ECHO="$dir/echo"
647 break
648 fi
649 done
650 IFS="$lt_save_ifs"
651
652 if test "X$ECHO" = Xecho; then
653 # We didn't find a better echo, so look for alternatives.
654 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
655 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 # This shell has a builtin print -r that does the trick.
658 ECHO='print -r'
659 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
660 test "X$CONFIG_SHELL" != X/bin/ksh; then
661 # If we have ksh, try running configure again with it.
662 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
663 export ORIGINAL_CONFIG_SHELL
664 CONFIG_SHELL=/bin/ksh
665 export CONFIG_SHELL
666 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
667 else
668 # Try using printf.
669 ECHO='printf %s\n'
670 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
671 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 # Cool, printf works
674 :
675 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
676 test "X$echo_testing_string" = 'X\t' &&
677 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
678 test "X$echo_testing_string" = "X$echo_test_string"; then
679 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
680 export CONFIG_SHELL
681 SHELL="$CONFIG_SHELL"
682 export SHELL
683 ECHO="$CONFIG_SHELL $0 --fallback-echo"
684 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
685 test "X$echo_testing_string" = 'X\t' &&
686 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
687 test "X$echo_testing_string" = "X$echo_test_string"; then
688 ECHO="$CONFIG_SHELL $0 --fallback-echo"
689 else
690 # maybe with a smaller string...
691 prev=:
692
693 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
694 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
695 then
696 break
697 fi
698 prev="$cmd"
699 done
700
701 if test "$prev" != 'sed 50q "$0"'; then
702 echo_test_string=`eval $prev`
703 export echo_test_string
704 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
705 else
706 # Oops. We lost completely, so just stick with echo.
707 ECHO=echo
708 fi
709 fi
710 fi
711 fi
712 fi
713fi
714
715# Copy echo and quote the copy suitably for passing to libtool from
716# the Makefile, instead of quoting the original, which is used later.
717lt_ECHO=$ECHO
718if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
719 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
720fi
721
722
723
724
725lt_ltdl_dir='ltdl'
726
727lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
728
729exec 7<&0 </dev/null 6>&1
730
731# Name of the host.
732# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
733# so uname gets run too.
734ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
735
736#
737# Initializations.
738#
739ac_default_prefix=/usr/local
740ac_clean_files=
741ac_config_libobj_dir=.
742LIBOBJS=
743cross_compiling=no
744subdirs=
745MFLAGS=
746MAKEFLAGS=
747SHELL=${CONFIG_SHELL-/bin/sh}
748
749# Identity of this package.
750PACKAGE_NAME='ImageMagick'
751PACKAGE_TARNAME='ImageMagick'
752PACKAGE_VERSION='6.5.5'
753PACKAGE_STRING='ImageMagick 6.5.5'
754PACKAGE_BUGREPORT='http://www.imagemagick.org'
755
756ac_unique_file="magick/MagickCore.h"
757ac_config_libobj_dir=ltdl
758# Factoring default headers for most tests.
759ac_includes_default="\
760#include <stdio.h>
761#ifdef HAVE_SYS_TYPES_H
762# include <sys/types.h>
763#endif
764#ifdef HAVE_SYS_STAT_H
765# include <sys/stat.h>
766#endif
767#ifdef STDC_HEADERS
768# include <stdlib.h>
769# include <stddef.h>
770#else
771# ifdef HAVE_STDLIB_H
772# include <stdlib.h>
773# endif
774#endif
775#ifdef HAVE_STRING_H
776# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777# include <memory.h>
778# endif
779# include <string.h>
780#endif
781#ifdef HAVE_STRINGS_H
782# include <strings.h>
783#endif
784#ifdef HAVE_INTTYPES_H
785# include <inttypes.h>
786#endif
787#ifdef HAVE_STDINT_H
788# include <stdint.h>
789#endif
790#ifdef HAVE_UNISTD_H
791# include <unistd.h>
792#endif"
793
794ac_subst_vars='ltdl_LTLIBOBJS
795ltdl_LIBOBJS
796am__EXEEXT_FALSE
797am__EXEEXT_TRUE
798LTLIBOBJS
799MAGICK_LIBS
800MAGICK_LDFLAGS
801MAGICK_PCFLAGS
802MAGICK_CPPFLAGS
803MAGICK_CXXFLAGS
804MAGICK_CFLAGS
805MAGICK_DEP_LIBS
806MAGICK_LTDLDEPS
807MAGICK_LIBLTDL
808OSX_GCOV_LDFLAG
809DELEGATES
810MAGICKCORE_PATH
811PERL_SUPPORTS_DESTDIR
812WITH_PERL_DYNAMIC_FALSE
813WITH_PERL_DYNAMIC_TRUE
814WITH_PERL_STATIC_FALSE
815WITH_PERL_STATIC_TRUE
816WITH_PERL_FALSE
817WITH_PERL_TRUE
818GSVersion
819GSPSDevice
820GSPDFDevice
821GSMonoDevice
822GSEPSDevice
823GSColorDevice
824GSCMYKDevice
825GSAlphaDevice
826XPSVersion
827XPSCMYKDevice
828XPSColorDevice
829XPSMonoDevice
830PCLVersion
831PCLCMYKDevice
832PCLColorDevice
833PCLMonoDevice
834ZIP_DELEGATE_FALSE
835ZIP_DELEGATE_TRUE
836ZIP
837P7ZIP_DELEGATE_FALSE
838P7ZIP_DELEGATE_TRUE
839P7ZIP
840RPM_DELEGATE_FALSE
841RPM_DELEGATE_TRUE
842RPM
843PERL
844TAR
845ShowImageDelegate
846type_include_files
847ghostscript_font_dir
848windows_font_dir
849PrintDelegate
850ZipDelegate
851XPSDelegate
852WWWDecodeDelegate
853WMFDecodeDelegate
854TXTDelegate
855SCANDecodeDelegate
856RMDelegate
857RLEEncodeDelegate
858PSDelegate
859POVDelegate
860PGPDecodeDelegate
861PCLDelegate
862MVDelegate
863MPEGEncodeDelegate
864MPEGDecodeDelegate
865MANDelegate
866LaunchDelegate
867LZWEncodeDelegate
868LZWDecodeDelegate
869LPRDelegate
870LPDelegate
871ILBMEncodeDelegate
872ILBMDecodeDelegate
873HTMLDecodeDelegate
874HPGLDecodeDelegate
875HDRDecodeDelegate
876GnuplotDecodeDelegate
877MogrifyDelegate
878DisplayDelegate
879ConvertDelegate
880FIGDecodeDelegate
881EditorDelegate
882EchoDelegate
883DVIDecodeDelegate
884GVCDecodeDelegate
885DNGDecodeDelegate
886CatDelegate
887CGMDecodeDelegate
888BrowseDelegate
889BZIPDelegate
890BlenderDecodeDelegate
891AVIDecodeDelegate
892AutotraceDecodeDelegate
893SHARE_CONFIGURE_PATH
894SHARE_PATH
895DOCUMENTATION_PATH
896FILTER_PATH
897CODER_PATH
898CONFIGURE_PATH
899LIBRARY_PATH
900EXECUTABLE_PATH
901PERLMAINCC
902XML_LIBS
903XML_DELEGATE_FALSE
904XML_DELEGATE_TRUE
905xml2_config
906WMF_LIBS_DEPS
907WMF_LIBS
908WMF_DELEGATE_FALSE
909WMF_DELEGATE_TRUE
910TIFF_LIBS
911TIFF_DELEGATE_FALSE
912TIFF_DELEGATE_TRUE
913CAIRO_DELEGATE_FALSE
914CAIRO_DELEGATE_TRUE
915RSVG_DELEGATE_FALSE
916RSVG_DELEGATE_TRUE
917CAIRO_SVG_LIBS
918CAIRO_SVG_CFLAGS
919RSVG_LIBS
920RSVG_CFLAGS
921PNG_LIBS
922PNG_DELEGATE_FALSE
923PNG_DELEGATE_TRUE
924OPENEXR_DELEGATE_FALSE
925OPENEXR_DELEGATE_TRUE
926OPENEXR_LIBS
927OPENEXR_CFLAGS
928LQR_DELEGATE_FALSE
929LQR_DELEGATE_TRUE
930LQR_LIBS
931LQR_CFLAGS
932LCMS_LIBS
933LCMS_DELEGATE_FALSE
934LCMS_DELEGATE_TRUE
935JP2_LIBS
936JP2_DELEGATE_FALSE
937JP2_DELEGATE_TRUE
938JPEG_LIBS
939JPEG_DELEGATE_FALSE
940JPEG_DELEGATE_TRUE
941JBIG_LIBS
942JBIG_DELEGATE_FALSE
943JBIG_DELEGATE_TRUE
944GVC_DELEGATE_FALSE
945GVC_DELEGATE_TRUE
946GVC_LIBS
947GVC_CFLAGS
948GS_LIBS
949GS_DELEGATE_FALSE
950GS_DELEGATE_TRUE
951FREETYPE_LIBS
952FREETYPE_DELEGATE_FALSE
953FREETYPE_DELEGATE_TRUE
954freetype_config
955FONTCONFIG_DELEGATE_FALSE
956FONTCONFIG_DELEGATE_TRUE
957FONTCONFIG_LIBS
958FONTCONFIG_CFLAGS
959FPX_LIBS
960FPX_DELEGATE_FALSE
961FPX_DELEGATE_TRUE
962FFTW_LIBS
963FFTW_DELEGATE_FALSE
964FFTW_DELEGATE_TRUE
965DJVU_LIBS
966DJVU_DELEGATE_FALSE
967DJVU_DELEGATE_TRUE
968DPS_LIBS
969DPS_DELEGATE_FALSE
970DPS_DELEGATE_TRUE
971AUTOTRACE_DELEGATE_FALSE
972AUTOTRACE_DELEGATE_TRUE
973AUTOTRACE_LIBS
974AUTOTRACE_CFLAGS
975LIB_DL
976ZLIB_LIBS
977ZLIB_DELEGATE_FALSE
978ZLIB_DELEGATE_TRUE
979XEXT_LIBS
980X11_LIBS
981X11_DELEGATE_FALSE
982X11_DELEGATE_TRUE
983X_EXTRA_LIBS
984X_LIBS
985X_PRE_LIBS
986X_CFLAGS
987XMKMF
988BZLIB_LIBS
989BZLIB_DELEGATE_FALSE
990BZLIB_DELEGATE_TRUE
991MATH_LIBS
992CCMALLOCDelegate
993UMEM_LIBS
994HasUMEM_FALSE
995HasUMEM_TRUE
996THREAD_LIBS
997GOMP_LIBS
998WITH_MAGICK_PLUS_PLUS_FALSE
999WITH_MAGICK_PLUS_PLUS_TRUE
1000OPENMP_CXXFLAGS
1001POW_LIB
1002LIBOBJS
1003UINTPTR_T
1004UINTMAX_T
1005UINT64_T
1006INT64_T
1007UINT32_T
1008INT32_T
1009UINT16_T
1010INT16_T
1011UINT8_T
1012INT8_T
1013LIBRARY_EXTRA_CPPFLAGS
1014MODULE_EXTRA_CPPFLAGS
1015LIBSTDCLDFLAGS
1016PERL_MAKE_OPTIONS
1017QUANTUM_DEPTH
1018MAINT
1019MAINTAINER_MODE_FALSE
1020MAINTAINER_MODE_TRUE
1021MAGICK_HDRI
1022DLLDFLAGS
1023WITH_LTDL_FALSE
1024WITH_LTDL_TRUE
1025WITH_MODULES_FALSE
1026WITH_MODULES_TRUE
1027LTCXXLIBOPTS
1028LTDLOPEN
1029LT_CONFIG_H
1030CONVENIENCE_LTDL_FALSE
1031CONVENIENCE_LTDL_TRUE
1032INSTALL_LTDL_FALSE
1033INSTALL_LTDL_TRUE
1034ARGZ_H
1035sys_symbol_underscore
1036LIBADD_DL
1037LT_DLPREOPEN
1038LIBADD_DLD_LINK
1039LIBADD_SHL_LOAD
1040LIBADD_DLOPEN
1041LT_DLLOADERS
1042INCLTDL
1043LTDLINCL
1044LTDLDEPS
1045LIBLTDL
1046LIBTOOL_DEPS
1047CXXCPP
1048OTOOL64
1049OTOOL
1050LIPO
1051NMEDIT
1052DSYMUTIL
1053lt_ECHO
1054AR
1055NM
1056ac_ct_DUMPBIN
1057DUMPBIN
1058LIBTOOL
1059OBJDUMP
1060DLLTOOL
1061AS
1062LFS_CPPFLAGS
1063OPENMP_CFLAGS
1064PTHREAD_CFLAGS
1065PTHREAD_LIBS
1066PTHREAD_CXX
1067PTHREAD_CC
1068acx_pthread_config
1069WinPathScript
1070USING_CL_FALSE
1071USING_CL_TRUE
1072CYGWIN_BUILD_FALSE
1073CYGWIN_BUILD_TRUE
1074WIN32_NATIVE_BUILD_FALSE
1075WIN32_NATIVE_BUILD_TRUE
1076WINGDI32_DELEGATE_FALSE
1077WINGDI32_DELEGATE_TRUE
1078GDI32_LIBS
1079PKG_CONFIG
1080LN_S
1081am__fastdepCXX_FALSE
1082am__fastdepCXX_TRUE
1083CXXDEPMODE
1084ac_ct_CXX
1085CXXFLAGS
1086CXX
1087RANLIB
1088LD
1089FGREP
1090EGREP
1091GREP
1092SED
1093CPP
1094am__fastdepCC_FALSE
1095am__fastdepCC_TRUE
1096CCDEPMODE
1097AMDEPBACKSLASH
1098AMDEP_FALSE
1099AMDEP_TRUE
1100am__quote
1101am__include
1102DEPDIR
1103OBJEXT
1104EXEEXT
1105ac_ct_CC
1106CPPFLAGS
1107LDFLAGS
1108CFLAGS
1109CC
1110DIRSEP
1111MAGICK_FILTER_MODULE_PATH
1112MAGICK_CONFIGURE_BUILD_PATH
1113MAGICK_CONFIGURE_SRC_PATH
1114MAGICK_CODER_MODULE_PATH
1115MAN_DIR
1116INFO_DIR
1117PERSISTINCLUDE_DIR
1118INCLUDE_DIR
1119LIB_DIR
1120LOCALSTATE_DIR
1121SHAREDSTATE_DIR
1122SYSCONF_DIR
1123DATA_DIR
1124LIBEXEC_DIR
1125SBIN_DIR
1126BIN_DIR
1127EXEC_PREFIX_DIR
1128PREFIX_DIR
1129CONFIG_STATUS_DEPENDENCIES
1130MAGICK_LIB_VERSION_NUMBER
1131MAGICK_LIB_VERSION_TEXT
1132MAGICK_LIB_VERSION
1133AM_BACKSLASH
1134AM_DEFAULT_VERBOSITY
1135am__untar
1136am__tar
1137AMTAR
1138am__leading_dot
1139SET_MAKE
1140AWK
1141mkdir_p
1142MKDIR_P
1143INSTALL_STRIP_PROGRAM
1144STRIP
1145install_sh
1146MAKEINFO
1147AUTOHEADER
1148AUTOMAKE
1149AUTOCONF
1150ACLOCAL
1151VERSION
1152PACKAGE
1153CYGPATH_W
1154am__isrc
1155INSTALL_DATA
1156INSTALL_SCRIPT
1157INSTALL_PROGRAM
1158PACKAGE_LIB_SUBVERSION
1159PACKAGE_RELEASE_DATE
1160PACKAGE_LIB_VERSION_NUMBER
1161PACKAGE_LIB_VERSION
1162PACKAGE_CHANGE_DATE
1163PACKAGE_RELEASE
1164MAGICK_LIBRARY_AGE
1165MAGICK_LIBRARY_REVISION
1166MAGICK_LIBRARY_CURRENT
1167target_os
1168target_vendor
1169target_cpu
1170target
1171host_os
1172host_vendor
1173host_cpu
1174host
1175build_os
1176build_vendor
1177build_cpu
1178build
1179CONFIGURE_ARGS
1180DISTCHECK_CONFIG_FLAGS
1181target_alias
1182host_alias
1183build_alias
1184LIBS
1185ECHO_T
1186ECHO_N
1187ECHO_C
1188DEFS
1189mandir
1190localedir
1191libdir
1192psdir
1193pdfdir
1194dvidir
1195htmldir
1196infodir
1197docdir
1198oldincludedir
1199includedir
1200localstatedir
1201sharedstatedir
1202sysconfdir
1203datadir
1204datarootdir
1205libexecdir
1206sbindir
1207bindir
1208program_transform_name
1209prefix
1210exec_prefix
1211PACKAGE_BUGREPORT
1212PACKAGE_STRING
1213PACKAGE_VERSION
1214PACKAGE_TARNAME
1215PACKAGE_NAME
1216PATH_SEPARATOR
1217SHELL'
1218ac_subst_files=''
1219ac_user_opts='
1220enable_option_checking
1221enable_silent_rules
1222enable_dependency_tracking
1223with_gnu_ld
1224with_maximum_compile_warnings
1225with_dmalloc
1226enable_bounds_checking
1227enable_osx_universal_binary
1228with_threads
1229enable_openmp
1230enable_largefile
1231enable_shared
1232enable_static
1233with_pic
1234enable_fast_install
1235enable_libtool_lock
1236with_included_ltdl
1237with_ltdl_include
1238with_ltdl_lib
1239enable_ltdl_install
1240with_modules
1241enable_delegate_build
1242enable_deprecated
1243enable_installed
1244enable_cipher
1245enable_embeddable
1246enable_hdri
1247enable_libtool_verbose
1248enable_assert
1249enable_maintainer_mode
1250enable_ccmalloc
1251enable_efence
1252enable_prof
1253enable_gprof
1254enable_gcov
1255with_method_prefix
1256with_quantum_depth
1257with_cache
1258with_frozenpaths
1259with_magick_plus_plus
1260with_perl
1261with_perl_options
1262with_umem
1263with_libstdc
1264with_bzlib
1265with_x
1266with_zlib
1267with_autotrace
1268with_dps
1269with_djvu
1270with_fftw
1271with_fpx
1272with_fontconfig
1273with_freetype
1274with_gslib
1275with_fontpath
1276with_gs_font_dir
1277with_gvc
1278with_jbig
1279with_jpeg
1280with_jp2
1281with_lcms
1282with_lqr
1283with_openexr
1284with_png
1285with_rsvg
1286with_tiff
1287with_windows_font_dir
1288with_wmf
1289with_xml
1290'
1291 ac_precious_vars='build_alias
1292host_alias
1293target_alias
1294CC
1295CFLAGS
1296LDFLAGS
1297LIBS
1298CPPFLAGS
1299CPP
1300CXX
1301CXXFLAGS
1302CCC
1303PKG_CONFIG
1304CXXCPP
1305XMKMF
1306AUTOTRACE_CFLAGS
1307AUTOTRACE_LIBS
1308FONTCONFIG_CFLAGS
1309FONTCONFIG_LIBS
1310GVC_CFLAGS
1311GVC_LIBS
1312LQR_CFLAGS
1313LQR_LIBS
1314OPENEXR_CFLAGS
1315OPENEXR_LIBS
1316RSVG_CFLAGS
1317RSVG_LIBS
1318CAIRO_SVG_CFLAGS
1319CAIRO_SVG_LIBS'
1320
1321
1322# Initialize some variables set by options.
1323ac_init_help=
1324ac_init_version=false
1325ac_unrecognized_opts=
1326ac_unrecognized_sep=
1327# The variables have the same names as the options, with
1328# dashes changed to underlines.
1329cache_file=/dev/null
1330exec_prefix=NONE
1331no_create=
1332no_recursion=
1333prefix=NONE
1334program_prefix=NONE
1335program_suffix=NONE
1336program_transform_name=s,x,x,
1337silent=
1338site=
1339srcdir=
1340verbose=
1341x_includes=NONE
1342x_libraries=NONE
1343
1344# Installation directory options.
1345# These are left unexpanded so users can "make install exec_prefix=/foo"
1346# and all the variables that are supposed to be based on exec_prefix
1347# by default will actually change.
1348# Use braces instead of parens because sh, perl, etc. also accept them.
1349# (The list follows the same order as the GNU Coding Standards.)
1350bindir='${exec_prefix}/bin'
1351sbindir='${exec_prefix}/sbin'
1352libexecdir='${exec_prefix}/libexec'
1353datarootdir='${prefix}/share'
1354datadir='${datarootdir}'
1355sysconfdir='${prefix}/etc'
1356sharedstatedir='${prefix}/com'
1357localstatedir='${prefix}/var'
1358includedir='${prefix}/include'
1359oldincludedir='/usr/include'
1360docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1361infodir='${datarootdir}/info'
1362htmldir='${docdir}'
1363dvidir='${docdir}'
1364pdfdir='${docdir}'
1365psdir='${docdir}'
1366libdir='${exec_prefix}/lib'
1367localedir='${datarootdir}/locale'
1368mandir='${datarootdir}/man'
1369
1370ac_prev=
1371ac_dashdash=
1372for ac_option
1373do
1374 # If the previous option needs an argument, assign it.
1375 if test -n "$ac_prev"; then
1376 eval $ac_prev=\$ac_option
1377 ac_prev=
1378 continue
1379 fi
1380
1381 case $ac_option in
1382 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1383 *) ac_optarg=yes ;;
1384 esac
1385
1386 # Accept the important Cygnus configure options, so we can diagnose typos.
1387
1388 case $ac_dashdash$ac_option in
1389 --)
1390 ac_dashdash=yes ;;
1391
1392 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1393 ac_prev=bindir ;;
1394 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1395 bindir=$ac_optarg ;;
1396
1397 -build | --build | --buil | --bui | --bu)
1398 ac_prev=build_alias ;;
1399 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1400 build_alias=$ac_optarg ;;
1401
1402 -cache-file | --cache-file | --cache-fil | --cache-fi \
1403 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1404 ac_prev=cache_file ;;
1405 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1406 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1407 cache_file=$ac_optarg ;;
1408
1409 --config-cache | -C)
1410 cache_file=config.cache ;;
1411
1412 -datadir | --datadir | --datadi | --datad)
1413 ac_prev=datadir ;;
1414 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1415 datadir=$ac_optarg ;;
1416
1417 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1418 | --dataroo | --dataro | --datar)
1419 ac_prev=datarootdir ;;
1420 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1421 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1422 datarootdir=$ac_optarg ;;
1423
1424 -disable-* | --disable-*)
1425 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1426 # Reject names that are not valid shell variable names.
1427 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1428 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1429 { (exit 1); exit 1; }; }
1430 ac_useropt_orig=$ac_useropt
1431 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1432 case $ac_user_opts in
1433 *"
1434"enable_$ac_useropt"
1435"*) ;;
1436 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1437 ac_unrecognized_sep=', ';;
1438 esac
1439 eval enable_$ac_useropt=no ;;
1440
1441 -docdir | --docdir | --docdi | --doc | --do)
1442 ac_prev=docdir ;;
1443 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1444 docdir=$ac_optarg ;;
1445
1446 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1447 ac_prev=dvidir ;;
1448 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1449 dvidir=$ac_optarg ;;
1450
1451 -enable-* | --enable-*)
1452 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1453 # Reject names that are not valid shell variable names.
1454 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1455 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1456 { (exit 1); exit 1; }; }
1457 ac_useropt_orig=$ac_useropt
1458 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1459 case $ac_user_opts in
1460 *"
1461"enable_$ac_useropt"
1462"*) ;;
1463 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1464 ac_unrecognized_sep=', ';;
1465 esac
1466 eval enable_$ac_useropt=\$ac_optarg ;;
1467
1468 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1469 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1470 | --exec | --exe | --ex)
1471 ac_prev=exec_prefix ;;
1472 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1473 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1474 | --exec=* | --exe=* | --ex=*)
1475 exec_prefix=$ac_optarg ;;
1476
1477 -gas | --gas | --ga | --g)
1478 # Obsolete; use --with-gas.
1479 with_gas=yes ;;
1480
1481 -help | --help | --hel | --he | -h)
1482 ac_init_help=long ;;
1483 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1484 ac_init_help=recursive ;;
1485 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1486 ac_init_help=short ;;
1487
1488 -host | --host | --hos | --ho)
1489 ac_prev=host_alias ;;
1490 -host=* | --host=* | --hos=* | --ho=*)
1491 host_alias=$ac_optarg ;;
1492
1493 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1494 ac_prev=htmldir ;;
1495 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1496 | --ht=*)
1497 htmldir=$ac_optarg ;;
1498
1499 -includedir | --includedir | --includedi | --included | --include \
1500 | --includ | --inclu | --incl | --inc)
1501 ac_prev=includedir ;;
1502 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1503 | --includ=* | --inclu=* | --incl=* | --inc=*)
1504 includedir=$ac_optarg ;;
1505
1506 -infodir | --infodir | --infodi | --infod | --info | --inf)
1507 ac_prev=infodir ;;
1508 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1509 infodir=$ac_optarg ;;
1510
1511 -libdir | --libdir | --libdi | --libd)
1512 ac_prev=libdir ;;
1513 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1514 libdir=$ac_optarg ;;
1515
1516 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1517 | --libexe | --libex | --libe)
1518 ac_prev=libexecdir ;;
1519 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1520 | --libexe=* | --libex=* | --libe=*)
1521 libexecdir=$ac_optarg ;;
1522
1523 -localedir | --localedir | --localedi | --localed | --locale)
1524 ac_prev=localedir ;;
1525 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1526 localedir=$ac_optarg ;;
1527
1528 -localstatedir | --localstatedir | --localstatedi | --localstated \
1529 | --localstate | --localstat | --localsta | --localst | --locals)
1530 ac_prev=localstatedir ;;
1531 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1532 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1533 localstatedir=$ac_optarg ;;
1534
1535 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1536 ac_prev=mandir ;;
1537 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1538 mandir=$ac_optarg ;;
1539
1540 -nfp | --nfp | --nf)
1541 # Obsolete; use --without-fp.
1542 with_fp=no ;;
1543
1544 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1545 | --no-cr | --no-c | -n)
1546 no_create=yes ;;
1547
1548 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1549 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1550 no_recursion=yes ;;
1551
1552 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1553 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1554 | --oldin | --oldi | --old | --ol | --o)
1555 ac_prev=oldincludedir ;;
1556 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1557 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1558 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1559 oldincludedir=$ac_optarg ;;
1560
1561 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1562 ac_prev=prefix ;;
1563 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1564 prefix=$ac_optarg ;;
1565
1566 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1567 | --program-pre | --program-pr | --program-p)
1568 ac_prev=program_prefix ;;
1569 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1570 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1571 program_prefix=$ac_optarg ;;
1572
1573 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1574 | --program-suf | --program-su | --program-s)
1575 ac_prev=program_suffix ;;
1576 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1577 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1578 program_suffix=$ac_optarg ;;
1579
1580 -program-transform-name | --program-transform-name \
1581 | --program-transform-nam | --program-transform-na \
1582 | --program-transform-n | --program-transform- \
1583 | --program-transform | --program-transfor \
1584 | --program-transfo | --program-transf \
1585 | --program-trans | --program-tran \
1586 | --progr-tra | --program-tr | --program-t)
1587 ac_prev=program_transform_name ;;
1588 -program-transform-name=* | --program-transform-name=* \
1589 | --program-transform-nam=* | --program-transform-na=* \
1590 | --program-transform-n=* | --program-transform-=* \
1591 | --program-transform=* | --program-transfor=* \
1592 | --program-transfo=* | --program-transf=* \
1593 | --program-trans=* | --program-tran=* \
1594 | --progr-tra=* | --program-tr=* | --program-t=*)
1595 program_transform_name=$ac_optarg ;;
1596
1597 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1598 ac_prev=pdfdir ;;
1599 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1600 pdfdir=$ac_optarg ;;
1601
1602 -psdir | --psdir | --psdi | --psd | --ps)
1603 ac_prev=psdir ;;
1604 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1605 psdir=$ac_optarg ;;
1606
1607 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1608 | -silent | --silent | --silen | --sile | --sil)
1609 silent=yes ;;
1610
1611 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1612 ac_prev=sbindir ;;
1613 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1614 | --sbi=* | --sb=*)
1615 sbindir=$ac_optarg ;;
1616
1617 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1618 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1619 | --sharedst | --shareds | --shared | --share | --shar \
1620 | --sha | --sh)
1621 ac_prev=sharedstatedir ;;
1622 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1623 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1624 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1625 | --sha=* | --sh=*)
1626 sharedstatedir=$ac_optarg ;;
1627
1628 -site | --site | --sit)
1629 ac_prev=site ;;
1630 -site=* | --site=* | --sit=*)
1631 site=$ac_optarg ;;
1632
1633 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1634 ac_prev=srcdir ;;
1635 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1636 srcdir=$ac_optarg ;;
1637
1638 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1639 | --syscon | --sysco | --sysc | --sys | --sy)
1640 ac_prev=sysconfdir ;;
1641 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1642 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1643 sysconfdir=$ac_optarg ;;
1644
1645 -target | --target | --targe | --targ | --tar | --ta | --t)
1646 ac_prev=target_alias ;;
1647 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1648 target_alias=$ac_optarg ;;
1649
1650 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1651 verbose=yes ;;
1652
1653 -version | --version | --versio | --versi | --vers | -V)
1654 ac_init_version=: ;;
1655
1656 -with-* | --with-*)
1657 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1658 # Reject names that are not valid shell variable names.
1659 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1660 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1661 { (exit 1); exit 1; }; }
1662 ac_useropt_orig=$ac_useropt
1663 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1664 case $ac_user_opts in
1665 *"
1666"with_$ac_useropt"
1667"*) ;;
1668 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1669 ac_unrecognized_sep=', ';;
1670 esac
1671 eval with_$ac_useropt=\$ac_optarg ;;
1672
1673 -without-* | --without-*)
1674 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1675 # Reject names that are not valid shell variable names.
1676 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1677 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1678 { (exit 1); exit 1; }; }
1679 ac_useropt_orig=$ac_useropt
1680 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1681 case $ac_user_opts in
1682 *"
1683"with_$ac_useropt"
1684"*) ;;
1685 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1686 ac_unrecognized_sep=', ';;
1687 esac
1688 eval with_$ac_useropt=no ;;
1689
1690 --x)
1691 # Obsolete; use --with-x.
1692 with_x=yes ;;
1693
1694 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1695 | --x-incl | --x-inc | --x-in | --x-i)
1696 ac_prev=x_includes ;;
1697 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1698 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1699 x_includes=$ac_optarg ;;
1700
1701 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1702 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1703 ac_prev=x_libraries ;;
1704 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1705 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1706 x_libraries=$ac_optarg ;;
1707
1708 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1709Try \`$0 --help' for more information." >&2
1710 { (exit 1); exit 1; }; }
1711 ;;
1712
1713 *=*)
1714 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1715 # Reject names that are not valid shell variable names.
1716 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1717 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1718 { (exit 1); exit 1; }; }
1719 eval $ac_envvar=\$ac_optarg
1720 export $ac_envvar ;;
1721
1722 *)
1723 # FIXME: should be removed in autoconf 3.0.
1724 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1725 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1726 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1727 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1728 ;;
1729
1730 esac
1731done
1732
1733if test -n "$ac_prev"; then
1734 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1735 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1736 { (exit 1); exit 1; }; }
1737fi
1738
1739if test -n "$ac_unrecognized_opts"; then
1740 case $enable_option_checking in
1741 no) ;;
1742 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1743 { (exit 1); exit 1; }; } ;;
1744 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1745 esac
1746fi
1747
1748# Check all directory arguments for consistency.
1749for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1750 datadir sysconfdir sharedstatedir localstatedir includedir \
1751 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1752 libdir localedir mandir
1753do
1754 eval ac_val=\$$ac_var
1755 # Remove trailing slashes.
1756 case $ac_val in
1757 */ )
1758 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1759 eval $ac_var=\$ac_val;;
1760 esac
1761 # Be sure to have absolute directory names.
1762 case $ac_val in
1763 [\\/$]* | ?:[\\/]* ) continue;;
1764 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1765 esac
1766 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1767 { (exit 1); exit 1; }; }
1768done
1769
1770# There might be people who depend on the old broken behavior: `$host'
1771# used to hold the argument of --host etc.
1772# FIXME: To remove some day.
1773build=$build_alias
1774host=$host_alias
1775target=$target_alias
1776
1777# FIXME: To remove some day.
1778if test "x$host_alias" != x; then
1779 if test "x$build_alias" = x; then
1780 cross_compiling=maybe
1781 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1782 If a cross compiler is detected then cross compile mode will be used." >&2
1783 elif test "x$build_alias" != "x$host_alias"; then
1784 cross_compiling=yes
1785 fi
1786fi
1787
1788ac_tool_prefix=
1789test -n "$host_alias" && ac_tool_prefix=$host_alias-
1790
1791test "$silent" = yes && exec 6>/dev/null
1792
1793
1794ac_pwd=`pwd` && test -n "$ac_pwd" &&
1795ac_ls_di=`ls -di .` &&
1796ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1797 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1798 { (exit 1); exit 1; }; }
1799test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1800 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1801 { (exit 1); exit 1; }; }
1802
1803
1804# Find the source files, if location was not specified.
1805if test -z "$srcdir"; then
1806 ac_srcdir_defaulted=yes
1807 # Try the directory containing this script, then the parent directory.
1808 ac_confdir=`$as_dirname -- "$as_myself" ||
1809$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1810 X"$as_myself" : 'X\(//\)[^/]' \| \
1811 X"$as_myself" : 'X\(//\)$' \| \
1812 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1813$as_echo X"$as_myself" |
1814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1815 s//\1/
1816 q
1817 }
1818 /^X\(\/\/\)[^/].*/{
1819 s//\1/
1820 q
1821 }
1822 /^X\(\/\/\)$/{
1823 s//\1/
1824 q
1825 }
1826 /^X\(\/\).*/{
1827 s//\1/
1828 q
1829 }
1830 s/.*/./; q'`
1831 srcdir=$ac_confdir
1832 if test ! -r "$srcdir/$ac_unique_file"; then
1833 srcdir=..
1834 fi
1835else
1836 ac_srcdir_defaulted=no
1837fi
1838if test ! -r "$srcdir/$ac_unique_file"; then
1839 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1840 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1841 { (exit 1); exit 1; }; }
1842fi
1843ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1844ac_abs_confdir=`(
1845 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1846 { (exit 1); exit 1; }; }
1847 pwd)`
1848# When building in place, set srcdir=.
1849if test "$ac_abs_confdir" = "$ac_pwd"; then
1850 srcdir=.
1851fi
1852# Remove unnecessary trailing slashes from srcdir.
1853# Double slashes in file names in object file debugging info
1854# mess up M-x gdb in Emacs.
1855case $srcdir in
1856*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1857esac
1858for ac_var in $ac_precious_vars; do
1859 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1860 eval ac_env_${ac_var}_value=\$${ac_var}
1861 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1862 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1863done
1864
1865#
1866# Report the --help message.
1867#
1868if test "$ac_init_help" = "long"; then
1869 # Omit some internal or obsolete options to make the list less imposing.
1870 # This message is too long to be a string in the A/UX 3.1 sh.
1871 cat <<_ACEOF
1872\`configure' configures ImageMagick 6.5.5 to adapt to many kinds of systems.
1873
1874Usage: $0 [OPTION]... [VAR=VALUE]...
1875
1876To assign environment variables (e.g., CC, CFLAGS...), specify them as
1877VAR=VALUE. See below for descriptions of some of the useful variables.
1878
1879Defaults for the options are specified in brackets.
1880
1881Configuration:
1882 -h, --help display this help and exit
1883 --help=short display options specific to this package
1884 --help=recursive display the short help of all the included packages
1885 -V, --version display version information and exit
1886 -q, --quiet, --silent do not print \`checking...' messages
1887 --cache-file=FILE cache test results in FILE [disabled]
1888 -C, --config-cache alias for \`--cache-file=config.cache'
1889 -n, --no-create do not create output files
1890 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1891
1892Installation directories:
1893 --prefix=PREFIX install architecture-independent files in PREFIX
1894 [$ac_default_prefix]
1895 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1896 [PREFIX]
1897
1898By default, \`make install' will install all the files in
1899\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1900an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1901for instance \`--prefix=\$HOME'.
1902
1903For better control, use the options below.
1904
1905Fine tuning of the installation directories:
1906 --bindir=DIR user executables [EPREFIX/bin]
1907 --sbindir=DIR system admin executables [EPREFIX/sbin]
1908 --libexecdir=DIR program executables [EPREFIX/libexec]
1909 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1910 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1911 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1912 --libdir=DIR object code libraries [EPREFIX/lib]
1913 --includedir=DIR C header files [PREFIX/include]
1914 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1915 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1916 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1917 --infodir=DIR info documentation [DATAROOTDIR/info]
1918 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1919 --mandir=DIR man documentation [DATAROOTDIR/man]
1920 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
1921 --htmldir=DIR html documentation [DOCDIR]
1922 --dvidir=DIR dvi documentation [DOCDIR]
1923 --pdfdir=DIR pdf documentation [DOCDIR]
1924 --psdir=DIR ps documentation [DOCDIR]
1925_ACEOF
1926
1927 cat <<\_ACEOF
1928
1929Program names:
1930 --program-prefix=PREFIX prepend PREFIX to installed program names
1931 --program-suffix=SUFFIX append SUFFIX to installed program names
1932 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1933
1934X features:
1935 --x-includes=DIR X include files are in DIR
1936 --x-libraries=DIR X library files are in DIR
1937
1938System types:
1939 --build=BUILD configure for building on BUILD [guessed]
1940 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1941 --target=TARGET configure for building compilers for TARGET [HOST]
1942_ACEOF
1943fi
1944
1945if test -n "$ac_init_help"; then
1946 case $ac_init_help in
1947 short | recursive ) echo "Configuration of ImageMagick 6.5.5:";;
1948 esac
1949 cat <<\_ACEOF
1950
1951Optional Features:
1952 --disable-option-checking ignore unrecognized --enable/--with options
1953 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1954 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1955 --enable-silent-rules less verbose build output (undo: `make V=1')
1956 --disable-silent-rules verbose build output (undo: `make V=0')
1957 --disable-dependency-tracking speeds up one-time build
1958 --enable-dependency-tracking do not reject slow dependency extractors
1959 --bounds-checking enable run-time bounds-checking
1960 --enable-osx-universal-binary
1961 build universal binary on OS X [default=no]
1962 --disable-openmp do not use OpenMP
1963 --disable-largefile omit support for large files
1964 --enable-shared[=PKGS] build shared libraries [default=yes]
1965 --enable-static[=PKGS] build static libraries [default=yes]
1966 --enable-fast-install[=PKGS]
1967 optimize for fast installation [default=yes]
1968 --disable-libtool-lock avoid locking (might break parallel builds)
1969 --enable-ltdl-install install libltdl
1970 --enable-delegate-build look for delegate libraries in build directory
1971 --disable-deprecated exclude deprecated methods in MagickCore and
1972 MagickWand API's
1973 --disable-installed Formally install ImageMagick under PREFIX
1974 --disable-cipher disable enciphering and deciphering image pixels
1975 --enable-embeddable enable self-contained, embeddable,
1976 zero-configuration ImageMagick
1977 --enable-hdri accurately represent the wide range of intensity
1978 levels found in real scenes
1979 --enable-libtool-verbose
1980 enable verbose libtool output
1981 --disable-assert disable assert() statements in build
1982 --enable-maintainer-mode enable make rules and dependencies not useful
1983 (and sometimes confusing) to the casual installer
1984 --enable-ccmalloc enable 'ccmalloc' memory debug support
1985 --enable-efence enable 'efence' memory debug support
1986 --enable-prof enable 'prof' profiling support
1987 --enable-gprof enable 'gprof' profiling support
1988 --enable-gcov enable 'gcov' profiling support
1989
1990Optional Packages:
1991 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1992 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1993 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1994 --without-maximum-compile-warnings
1995 Disable maximum warning verbosity
1996 --with-dmalloc use dmalloc, as in
1997 http://www.dmalloc.com/dmalloc.tar.gz
1998 --without-threads disable threads support
1999 --with-pic try to use only PIC/non-PIC objects [default=use
2000 both]
2001 --with-included-ltdl use the GNU ltdl sources included here
2002 --with-ltdl-include=DIR use the ltdl headers installed in DIR
2003 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
2004 --with-modules enable building dynamically loadable modules
2005 --with-method-prefix=PREFIX
2006 prefix MagickCore API methods
2007 --with-quantum-depth=DEPTH
2008 number of bits in a pixel quantum (default 16)
2009 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
2010 memory)
2011 --with-frozenpaths freeze delegate paths
2012 --without-magick-plus-plus
2013 disable build/install of Magick++
2014 --with-perl enable build/install of PerlMagick
2015 --with-perl-options=OPTIONS
2016 options to pass on command-line when generating
2017 PerlMagick's build file
2018 --with-umem enable umem memory allocation library support
2019 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
2020 --without-bzlib disable BZLIB support
2021 --with-x use the X Window System
2022 --without-zlib disable ZLIB support
2023 --with-autotrace enable autotrace support
2024 --without-dps disable Display Postscript support
2025 --without-djvu disable DjVu support
2026 --without-fftw disable FFTW support
2027 --without-fpx disable FlashPIX support
2028 --without-fontconfig disable fontconfig support
2029 --without-freetype disable Freetype support
2030 --without-gslib enable Ghostscript library support
2031 --with-fontpath=DIR prepend to default font search path
2032 --with-gs-font-dir=DIR Ghostscript font directory
2033 --without-gvc disable GVC support
2034 --without-jbig disable JBIG support
2035 --without-jpeg disable JPEG support
2036 --without-jp2 disable JPEG-2000 support
2037 --without-lcms disable LCMS support
2038 --without-lqr disable Liquid Rescale support (experimental)
2039 --without-openexr disable OpenEXR support
2040 --without-png disable PNG support
2041 --without-rsvg disable RSVG support
2042 --without-tiff disable TIFF support
2043 --with-windows-font-dir=DIR
2044 directory containing MS-Windows fonts
2045 --without-wmf disable WMF support
2046 --without-xml disable XML support
2047
2048Some influential environment variables:
2049 CC C compiler command
2050 CFLAGS C compiler flags
2051 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2052 nonstandard directory <lib dir>
2053 LIBS libraries to pass to the linker, e.g. -l<library>
2054 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2055 you have headers in a nonstandard directory <include dir>
2056 CPP C preprocessor
2057 CXX C++ compiler command
2058 CXXFLAGS C++ compiler flags
2059 PKG_CONFIG path to pkg-config utility
2060 CXXCPP C++ preprocessor
2061 XMKMF Path to xmkmf, Makefile generator for X Window System
2062 AUTOTRACE_CFLAGS
2063 C compiler flags for AUTOTRACE, overriding pkg-config
2064 AUTOTRACE_LIBS
2065 linker flags for AUTOTRACE, overriding pkg-config
2066 FONTCONFIG_CFLAGS
2067 C compiler flags for FONTCONFIG, overriding pkg-config
2068 FONTCONFIG_LIBS
2069 linker flags for FONTCONFIG, overriding pkg-config
2070 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
2071 GVC_LIBS linker flags for GVC, overriding pkg-config
2072 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
2073 LQR_LIBS linker flags for LQR, overriding pkg-config
2074 OPENEXR_CFLAGS
2075 C compiler flags for OPENEXR, overriding pkg-config
2076 OPENEXR_LIBS
2077 linker flags for OPENEXR, overriding pkg-config
2078 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
2079 RSVG_LIBS linker flags for RSVG, overriding pkg-config
2080 CAIRO_SVG_CFLAGS
2081 C compiler flags for CAIRO_SVG, overriding pkg-config
2082 CAIRO_SVG_LIBS
2083 linker flags for CAIRO_SVG, overriding pkg-config
2084
2085Use these variables to override the choices made by `configure' or to help
2086it to find libraries and programs with nonstandard names/locations.
2087
2088Report bugs to <http://www.imagemagick.org>.
2089_ACEOF
2090ac_status=$?
2091fi
2092
2093if test "$ac_init_help" = "recursive"; then
2094 # If there are subdirs, report their specific --help.
2095 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2096 test -d "$ac_dir" ||
2097 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2098 continue
2099 ac_builddir=.
2100
2101case "$ac_dir" in
2102.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2103*)
2104 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2105 # A ".." for each directory in $ac_dir_suffix.
2106 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2107 case $ac_top_builddir_sub in
2108 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2109 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2110 esac ;;
2111esac
2112ac_abs_top_builddir=$ac_pwd
2113ac_abs_builddir=$ac_pwd$ac_dir_suffix
2114# for backward compatibility:
2115ac_top_builddir=$ac_top_build_prefix
2116
2117case $srcdir in
2118 .) # We are building in place.
2119 ac_srcdir=.
2120 ac_top_srcdir=$ac_top_builddir_sub
2121 ac_abs_top_srcdir=$ac_pwd ;;
2122 [\\/]* | ?:[\\/]* ) # Absolute name.
2123 ac_srcdir=$srcdir$ac_dir_suffix;
2124 ac_top_srcdir=$srcdir
2125 ac_abs_top_srcdir=$srcdir ;;
2126 *) # Relative name.
2127 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2128 ac_top_srcdir=$ac_top_build_prefix$srcdir
2129 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2130esac
2131ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2132
2133 cd "$ac_dir" || { ac_status=$?; continue; }
2134 # Check for guested configure.
2135 if test -f "$ac_srcdir/configure.gnu"; then
2136 echo &&
2137 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2138 elif test -f "$ac_srcdir/configure"; then
2139 echo &&
2140 $SHELL "$ac_srcdir/configure" --help=recursive
2141 else
2142 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2143 fi || ac_status=$?
2144 cd "$ac_pwd" || { ac_status=$?; break; }
2145 done
2146fi
2147
2148test -n "$ac_init_help" && exit $ac_status
2149if $ac_init_version; then
2150 cat <<\_ACEOF
2151ImageMagick configure 6.5.5
2152generated by GNU Autoconf 2.63
2153
2154Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
21552002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2156This configure script is free software; the Free Software Foundation
2157gives unlimited permission to copy, distribute and modify it.
2158_ACEOF
2159 exit
2160fi
2161cat >config.log <<_ACEOF
2162This file contains any messages produced by compilers while
2163running configure, to aid debugging if configure makes a mistake.
2164
2165It was created by ImageMagick $as_me 6.5.5, which was
2166generated by GNU Autoconf 2.63. Invocation command line was
2167
2168 $ $0 $@
2169
2170_ACEOF
2171exec 5>>config.log
2172{
2173cat <<_ASUNAME
2174## --------- ##
2175## Platform. ##
2176## --------- ##
2177
2178hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2179uname -m = `(uname -m) 2>/dev/null || echo unknown`
2180uname -r = `(uname -r) 2>/dev/null || echo unknown`
2181uname -s = `(uname -s) 2>/dev/null || echo unknown`
2182uname -v = `(uname -v) 2>/dev/null || echo unknown`
2183
2184/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2185/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2186
2187/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2188/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2189/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2190/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2191/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2192/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2193/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2194
2195_ASUNAME
2196
2197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198for as_dir in $PATH
2199do
2200 IFS=$as_save_IFS
2201 test -z "$as_dir" && as_dir=.
2202 $as_echo "PATH: $as_dir"
2203done
2204IFS=$as_save_IFS
2205
2206} >&5
2207
2208cat >&5 <<_ACEOF
2209
2210
2211## ----------- ##
2212## Core tests. ##
2213## ----------- ##
2214
2215_ACEOF
2216
2217
2218# Keep a trace of the command line.
2219# Strip out --no-create and --no-recursion so they do not pile up.
2220# Strip out --silent because we don't want to record it for future runs.
2221# Also quote any args containing shell meta-characters.
2222# Make two passes to allow for proper duplicate-argument suppression.
2223ac_configure_args=
2224ac_configure_args0=
2225ac_configure_args1=
2226ac_must_keep_next=false
2227for ac_pass in 1 2
2228do
2229 for ac_arg
2230 do
2231 case $ac_arg in
2232 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2234 | -silent | --silent | --silen | --sile | --sil)
2235 continue ;;
2236 *\'*)
2237 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2238 esac
2239 case $ac_pass in
2240 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2241 2)
2242 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2243 if test $ac_must_keep_next = true; then
2244 ac_must_keep_next=false # Got value, back to normal.
2245 else
2246 case $ac_arg in
2247 *=* | --config-cache | -C | -disable-* | --disable-* \
2248 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2249 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2250 | -with-* | --with-* | -without-* | --without-* | --x)
2251 case "$ac_configure_args0 " in
2252 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2253 esac
2254 ;;
2255 -* ) ac_must_keep_next=true ;;
2256 esac
2257 fi
2258 ac_configure_args="$ac_configure_args '$ac_arg'"
2259 ;;
2260 esac
2261 done
2262done
2263$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2264$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2265
2266# When interrupted or exit'd, cleanup temporary files, and complete
2267# config.log. We remove comments because anyway the quotes in there
2268# would cause problems or look ugly.
2269# WARNING: Use '\'' to represent an apostrophe within the trap.
2270# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2271trap 'exit_status=$?
2272 # Save into config.log some information that might help in debugging.
2273 {
2274 echo
2275
2276 cat <<\_ASBOX
2277## ---------------- ##
2278## Cache variables. ##
2279## ---------------- ##
2280_ASBOX
2281 echo
2282 # The following way of writing the cache mishandles newlines in values,
2283(
2284 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2285 eval ac_val=\$$ac_var
2286 case $ac_val in #(
2287 *${as_nl}*)
2288 case $ac_var in #(
2289 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2290$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2291 esac
2292 case $ac_var in #(
2293 _ | IFS | as_nl) ;; #(
2294 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2295 *) $as_unset $ac_var ;;
2296 esac ;;
2297 esac
2298 done
2299 (set) 2>&1 |
2300 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2301 *${as_nl}ac_space=\ *)
2302 sed -n \
2303 "s/'\''/'\''\\\\'\'''\''/g;
2304 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2305 ;; #(
2306 *)
2307 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2308 ;;
2309 esac |
2310 sort
2311)
2312 echo
2313
2314 cat <<\_ASBOX
2315## ----------------- ##
2316## Output variables. ##
2317## ----------------- ##
2318_ASBOX
2319 echo
2320 for ac_var in $ac_subst_vars
2321 do
2322 eval ac_val=\$$ac_var
2323 case $ac_val in
2324 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2325 esac
2326 $as_echo "$ac_var='\''$ac_val'\''"
2327 done | sort
2328 echo
2329
2330 if test -n "$ac_subst_files"; then
2331 cat <<\_ASBOX
2332## ------------------- ##
2333## File substitutions. ##
2334## ------------------- ##
2335_ASBOX
2336 echo
2337 for ac_var in $ac_subst_files
2338 do
2339 eval ac_val=\$$ac_var
2340 case $ac_val in
2341 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2342 esac
2343 $as_echo "$ac_var='\''$ac_val'\''"
2344 done | sort
2345 echo
2346 fi
2347
2348 if test -s confdefs.h; then
2349 cat <<\_ASBOX
2350## ----------- ##
2351## confdefs.h. ##
2352## ----------- ##
2353_ASBOX
2354 echo
2355 cat confdefs.h
2356 echo
2357 fi
2358 test "$ac_signal" != 0 &&
2359 $as_echo "$as_me: caught signal $ac_signal"
2360 $as_echo "$as_me: exit $exit_status"
2361 } >&5
2362 rm -f core *.core core.conftest.* &&
2363 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2364 exit $exit_status
2365' 0
2366for ac_signal in 1 2 13 15; do
2367 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2368done
2369ac_signal=0
2370
2371# confdefs.h avoids OS command line length limits that DEFS can exceed.
2372rm -f -r conftest* confdefs.h
2373
2374# Predefined preprocessor variables.
2375
2376cat >>confdefs.h <<_ACEOF
2377#define PACKAGE_NAME "$PACKAGE_NAME"
2378_ACEOF
2379
2380
2381cat >>confdefs.h <<_ACEOF
2382#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2383_ACEOF
2384
2385
2386cat >>confdefs.h <<_ACEOF
2387#define PACKAGE_VERSION "$PACKAGE_VERSION"
2388_ACEOF
2389
2390
2391cat >>confdefs.h <<_ACEOF
2392#define PACKAGE_STRING "$PACKAGE_STRING"
2393_ACEOF
2394
2395
2396cat >>confdefs.h <<_ACEOF
2397#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2398_ACEOF
2399
2400
2401# Let the site file select an alternate cache file if it wants to.
2402# Prefer an explicitly selected file to automatically selected ones.
2403ac_site_file1=NONE
2404ac_site_file2=NONE
2405if test -n "$CONFIG_SITE"; then
2406 ac_site_file1=$CONFIG_SITE
2407elif test "x$prefix" != xNONE; then
2408 ac_site_file1=$prefix/share/config.site
2409 ac_site_file2=$prefix/etc/config.site
2410else
2411 ac_site_file1=$ac_default_prefix/share/config.site
2412 ac_site_file2=$ac_default_prefix/etc/config.site
2413fi
2414for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2415do
2416 test "x$ac_site_file" = xNONE && continue
2417 if test -r "$ac_site_file"; then
2418 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2419$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2420 sed 's/^/| /' "$ac_site_file" >&5
2421 . "$ac_site_file"
2422 fi
2423done
2424
2425if test -r "$cache_file"; then
2426 # Some versions of bash will fail to source /dev/null (special
2427 # files actually), so we avoid doing that.
2428 if test -f "$cache_file"; then
2429 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2430$as_echo "$as_me: loading cache $cache_file" >&6;}
2431 case $cache_file in
2432 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2433 *) . "./$cache_file";;
2434 esac
2435 fi
2436else
2437 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2438$as_echo "$as_me: creating cache $cache_file" >&6;}
2439 >$cache_file
2440fi
2441
2442# Check that the precious variables saved in the cache have kept the same
2443# value.
2444ac_cache_corrupted=false
2445for ac_var in $ac_precious_vars; do
2446 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2447 eval ac_new_set=\$ac_env_${ac_var}_set
2448 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2449 eval ac_new_val=\$ac_env_${ac_var}_value
2450 case $ac_old_set,$ac_new_set in
2451 set,)
2452 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2453$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2454 ac_cache_corrupted=: ;;
2455 ,set)
2456 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2457$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2458 ac_cache_corrupted=: ;;
2459 ,);;
2460 *)
2461 if test "x$ac_old_val" != "x$ac_new_val"; then
2462 # differences in whitespace do not lead to failure.
2463 ac_old_val_w=`echo x $ac_old_val`
2464 ac_new_val_w=`echo x $ac_new_val`
2465 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2466 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2467$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2468 ac_cache_corrupted=:
2469 else
2470 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2471$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2472 eval $ac_var=\$ac_old_val
2473 fi
2474 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2475$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2476 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2477$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2478 fi;;
2479 esac
2480 # Pass precious variables to config.status.
2481 if test "$ac_new_set" = set; then
2482 case $ac_new_val in
2483 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2484 *) ac_arg=$ac_var=$ac_new_val ;;
2485 esac
2486 case " $ac_configure_args " in
2487 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2488 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2489 esac
2490 fi
2491done
2492if $ac_cache_corrupted; then
2493 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2494$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2495 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2496$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2497 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2498$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2499 { (exit 1); exit 1; }; }
2500fi
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526ac_ext=c
2527ac_cpp='$CPP $CPPFLAGS'
2528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531
2532
2533
2534ac_aux_dir=
2535for ac_dir in config "$srcdir"/config; do
2536 if test -f "$ac_dir/install-sh"; then
2537 ac_aux_dir=$ac_dir
2538 ac_install_sh="$ac_aux_dir/install-sh -c"
2539 break
2540 elif test -f "$ac_dir/install.sh"; then
2541 ac_aux_dir=$ac_dir
2542 ac_install_sh="$ac_aux_dir/install.sh -c"
2543 break
2544 elif test -f "$ac_dir/shtool"; then
2545 ac_aux_dir=$ac_dir
2546 ac_install_sh="$ac_aux_dir/shtool install -c"
2547 break
2548 fi
2549done
2550if test -z "$ac_aux_dir"; then
2551 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2552$as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2553 { (exit 1); exit 1; }; }
2554fi
2555
2556# These three variables are undocumented and unsupported,
2557# and are intended to be withdrawn in a future Autoconf release.
2558# They can cause serious problems if a builder's source tree is in a directory
2559# whose full name contains unusual characters.
2560ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2561ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2562ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2563
2564
2565
2566
2567ac_config_headers="$ac_config_headers config/config.h"
2568
2569ac_config_commands="$ac_config_commands magick/magick-config.h"
2570
2571ac_config_files="$ac_config_files config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config magick/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc magick/Magick-config magick/MagickCore-config magick/MagickCore.pc magick/version.h Makefile magick.sh PerlMagick/Magick.pm PerlMagick/Makefile.PL PerlMagick/check.sh utilities/animate.1 utilities/compare.1 utilities/composite.1 utilities/conjure.1 utilities/convert.1 utilities/display.1 utilities/identify.1 utilities/ImageMagick.1 utilities/import.1 utilities/mogrify.1 utilities/montage.1 utilities/stream.1 wand/MagickWand-config wand/MagickWand.pc wand/Wand-config wand/Wand.pc"
2572
2573
2574#
2575# Save initial user-tunable values
2576#
2577USER_LIBS=$LIBS
2578for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
2579 eval isset=\${$var+set}
2580 if test "$isset" = 'set'; then
2581 eval val=$`echo $var`
2582 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
2583 fi
2584done
2585
2586
2587CONFIGURE_ARGS="$0 ${ac_configure_args}"
2588
2589
2590# Source file containing package/library versioning information.
2591. ${srcdir}/version.sh
2592
2593echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
2594# Make sure we can run config.sub.
2595$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2596 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2597$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2598 { (exit 1); exit 1; }; }
2599
2600{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2601$as_echo_n "checking build system type... " >&6; }
2602if test "${ac_cv_build+set}" = set; then
2603 $as_echo_n "(cached) " >&6
2604else
2605 ac_build_alias=$build_alias
2606test "x$ac_build_alias" = x &&
2607 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2608test "x$ac_build_alias" = x &&
2609 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2610$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2611 { (exit 1); exit 1; }; }
2612ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2613 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2614$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2615 { (exit 1); exit 1; }; }
2616
2617fi
2618{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2619$as_echo "$ac_cv_build" >&6; }
2620case $ac_cv_build in
2621*-*-*) ;;
2622*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2623$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2624 { (exit 1); exit 1; }; };;
2625esac
2626build=$ac_cv_build
2627ac_save_IFS=$IFS; IFS='-'
2628set x $ac_cv_build
2629shift
2630build_cpu=$1
2631build_vendor=$2
2632shift; shift
2633# Remember, the first character of IFS is used to create $*,
2634# except with old shells:
2635build_os=$*
2636IFS=$ac_save_IFS
2637case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2638
2639
2640{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2641$as_echo_n "checking host system type... " >&6; }
2642if test "${ac_cv_host+set}" = set; then
2643 $as_echo_n "(cached) " >&6
2644else
2645 if test "x$host_alias" = x; then
2646 ac_cv_host=$ac_cv_build
2647else
2648 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2649 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2650$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2651 { (exit 1); exit 1; }; }
2652fi
2653
2654fi
2655{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2656$as_echo "$ac_cv_host" >&6; }
2657case $ac_cv_host in
2658*-*-*) ;;
2659*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2660$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2661 { (exit 1); exit 1; }; };;
2662esac
2663host=$ac_cv_host
2664ac_save_IFS=$IFS; IFS='-'
2665set x $ac_cv_host
2666shift
2667host_cpu=$1
2668host_vendor=$2
2669shift; shift
2670# Remember, the first character of IFS is used to create $*,
2671# except with old shells:
2672host_os=$*
2673IFS=$ac_save_IFS
2674case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2675
2676
2677{ $as_echo "$as_me:$LINENO: checking target system type" >&5
2678$as_echo_n "checking target system type... " >&6; }
2679if test "${ac_cv_target+set}" = set; then
2680 $as_echo_n "(cached) " >&6
2681else
2682 if test "x$target_alias" = x; then
2683 ac_cv_target=$ac_cv_host
2684else
2685 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2686 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2687$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2688 { (exit 1); exit 1; }; }
2689fi
2690
2691fi
2692{ $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2693$as_echo "$ac_cv_target" >&6; }
2694case $ac_cv_target in
2695*-*-*) ;;
2696*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2697$as_echo "$as_me: error: invalid value of canonical target" >&2;}
2698 { (exit 1); exit 1; }; };;
2699esac
2700target=$ac_cv_target
2701ac_save_IFS=$IFS; IFS='-'
2702set x $ac_cv_target
2703shift
2704target_cpu=$1
2705target_vendor=$2
2706shift; shift
2707# Remember, the first character of IFS is used to create $*,
2708# except with old shells:
2709target_os=$*
2710IFS=$ac_save_IFS
2711case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2712
2713
2714# The aliases save the names the user supplied, while $host etc.
2715# will get canonicalized.
2716test -n "$target_alias" &&
2717 test "$program_prefix$program_suffix$program_transform_name" = \
2718 NONENONEs,x,x, &&
2719 program_prefix=${target_alias}-
2720
2721# Substitute library versioning
2722
2723
2724# Ensure that make can run correctly
2725{ $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2726$as_echo_n "checking whether build environment is sane... " >&6; }
2727# Just in case
2728sleep 1
2729echo timestamp > conftest.file
2730# Reject unsafe characters in $srcdir or the absolute working directory
2731# name. Accept space and tab only in the latter.
2732am_lf='
2733'
2734case `pwd` in
2735 *[\\\"\#\$\&\'\`$am_lf]*)
2736 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2737$as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2738 { (exit 1); exit 1; }; };;
2739esac
2740case $srcdir in
2741 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2742 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2743$as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2744 { (exit 1); exit 1; }; };;
2745esac
2746
2747# Do `set' in a subshell so we don't clobber the current shell's
2748# arguments. Must try -L first in case configure is actually a
2749# symlink; some systems play weird games with the mod time of symlinks
2750# (eg FreeBSD returns the mod time of the symlink's containing
2751# directory).
2752if (
2753 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2754 if test "$*" = "X"; then
2755 # -L didn't work.
2756 set X `ls -t "$srcdir/configure" conftest.file`
2757 fi
2758 rm -f conftest.file
2759 if test "$*" != "X $srcdir/configure conftest.file" \
2760 && test "$*" != "X conftest.file $srcdir/configure"; then
2761
2762 # If neither matched, then we have a broken ls. This can happen
2763 # if, for instance, CONFIG_SHELL is bash and it inherits a
2764 # broken ls alias from the environment. This has actually
2765 # happened. Such a system could not be considered "sane".
2766 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2767alias in your environment" >&5
2768$as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2769alias in your environment" >&2;}
2770 { (exit 1); exit 1; }; }
2771 fi
2772
2773 test "$2" = conftest.file
2774 )
2775then
2776 # Ok.
2777 :
2778else
2779 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2780Check your system clock" >&5
2781$as_echo "$as_me: error: newly created file is older than distributed files!
2782Check your system clock" >&2;}
2783 { (exit 1); exit 1; }; }
2784fi
2785{ $as_echo "$as_me:$LINENO: result: yes" >&5
2786$as_echo "yes" >&6; }
2787
2788am__api_version='1.11'
2789
2790# Find a good install program. We prefer a C program (faster),
2791# so one script is as good as another. But avoid the broken or
2792# incompatible versions:
2793# SysV /etc/install, /usr/sbin/install
2794# SunOS /usr/etc/install
2795# IRIX /sbin/install
2796# AIX /bin/install
2797# AmigaOS /C/install, which installs bootblocks on floppy discs
2798# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2799# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2800# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2801# OS/2's system install, which has a completely different semantic
2802# ./install, which can be erroneously created by make from ./install.sh.
2803# Reject install programs that cannot install multiple files.
2804{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2805$as_echo_n "checking for a BSD-compatible install... " >&6; }
2806if test -z "$INSTALL"; then
2807if test "${ac_cv_path_install+set}" = set; then
2808 $as_echo_n "(cached) " >&6
2809else
2810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811for as_dir in $PATH
2812do
2813 IFS=$as_save_IFS
2814 test -z "$as_dir" && as_dir=.
2815 # Account for people who put trailing slashes in PATH elements.
2816case $as_dir/ in
2817 ./ | .// | /cC/* | \
2818 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2819 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2820 /usr/ucb/* ) ;;
2821 *)
2822 # OSF1 and SCO ODT 3.0 have their own names for install.
2823 # Don't use installbsd from OSF since it installs stuff as root
2824 # by default.
2825 for ac_prog in ginstall scoinst install; do
2826 for ac_exec_ext in '' $ac_executable_extensions; do
2827 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2828 if test $ac_prog = install &&
2829 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2830 # AIX install. It has an incompatible calling convention.
2831 :
2832 elif test $ac_prog = install &&
2833 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2834 # program-specific install script used by HP pwplus--don't use.
2835 :
2836 else
2837 rm -rf conftest.one conftest.two conftest.dir
2838 echo one > conftest.one
2839 echo two > conftest.two
2840 mkdir conftest.dir
2841 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2842 test -s conftest.one && test -s conftest.two &&
2843 test -s conftest.dir/conftest.one &&
2844 test -s conftest.dir/conftest.two
2845 then
2846 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2847 break 3
2848 fi
2849 fi
2850 fi
2851 done
2852 done
2853 ;;
2854esac
2855
2856done
2857IFS=$as_save_IFS
2858
2859rm -rf conftest.one conftest.two conftest.dir
2860
2861fi
2862 if test "${ac_cv_path_install+set}" = set; then
2863 INSTALL=$ac_cv_path_install
2864 else
2865 # As a last resort, use the slow shell script. Don't cache a
2866 # value for INSTALL within a source directory, because that will
2867 # break other packages using the cache if that directory is
2868 # removed, or if the value is a relative name.
2869 INSTALL=$ac_install_sh
2870 fi
2871fi
2872{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2873$as_echo "$INSTALL" >&6; }
2874
2875# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2876# It thinks the first close brace ends the variable substitution.
2877test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2878
2879test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2880
2881test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2882
2883test "$program_prefix" != NONE &&
2884 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2885# Use a double $ so make ignores it.
2886test "$program_suffix" != NONE &&
2887 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2888# Double any \ or $.
2889# By default was `s,x,x', remove it if useless.
2890ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2891program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2892
2893# expand $ac_aux_dir to an absolute path
2894am_aux_dir=`cd $ac_aux_dir && pwd`
2895
2896if test x"${MISSING+set}" != xset; then
2897 case $am_aux_dir in
2898 *\ * | *\ *)
2899 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2900 *)
2901 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2902 esac
2903fi
2904# Use eval to expand $SHELL
2905if eval "$MISSING --run true"; then
2906 am_missing_run="$MISSING --run "
2907else
2908 am_missing_run=
2909 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2910$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2911fi
2912
2913if test x"${install_sh}" != xset; then
2914 case $am_aux_dir in
2915 *\ * | *\ *)
2916 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2917 *)
2918 install_sh="\${SHELL} $am_aux_dir/install-sh"
2919 esac
2920fi
2921
2922# Installed binaries are usually stripped using `strip' when the user
2923# run `make install-strip'. However `strip' might not be the right
2924# tool to use in cross-compilation environments, therefore Automake
2925# will honor the `STRIP' environment variable to overrule this program.
2926if test "$cross_compiling" != no; then
2927 if test -n "$ac_tool_prefix"; then
2928 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2929set dummy ${ac_tool_prefix}strip; ac_word=$2
2930{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2931$as_echo_n "checking for $ac_word... " >&6; }
2932if test "${ac_cv_prog_STRIP+set}" = set; then
2933 $as_echo_n "(cached) " >&6
2934else
2935 if test -n "$STRIP"; then
2936 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2937else
2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939for as_dir in $PATH
2940do
2941 IFS=$as_save_IFS
2942 test -z "$as_dir" && as_dir=.
2943 for ac_exec_ext in '' $ac_executable_extensions; do
2944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2945 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2946 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 break 2
2948 fi
2949done
2950done
2951IFS=$as_save_IFS
2952
2953fi
2954fi
2955STRIP=$ac_cv_prog_STRIP
2956if test -n "$STRIP"; then
2957 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2958$as_echo "$STRIP" >&6; }
2959else
2960 { $as_echo "$as_me:$LINENO: result: no" >&5
2961$as_echo "no" >&6; }
2962fi
2963
2964
2965fi
2966if test -z "$ac_cv_prog_STRIP"; then
2967 ac_ct_STRIP=$STRIP
2968 # Extract the first word of "strip", so it can be a program name with args.
2969set dummy strip; ac_word=$2
2970{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2971$as_echo_n "checking for $ac_word... " >&6; }
2972if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2973 $as_echo_n "(cached) " >&6
2974else
2975 if test -n "$ac_ct_STRIP"; then
2976 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2977else
2978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979for as_dir in $PATH
2980do
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985 ac_cv_prog_ac_ct_STRIP="strip"
2986 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 break 2
2988 fi
2989done
2990done
2991IFS=$as_save_IFS
2992
2993fi
2994fi
2995ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2996if test -n "$ac_ct_STRIP"; then
2997 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2998$as_echo "$ac_ct_STRIP" >&6; }
2999else
3000 { $as_echo "$as_me:$LINENO: result: no" >&5
3001$as_echo "no" >&6; }
3002fi
3003
3004 if test "x$ac_ct_STRIP" = x; then
3005 STRIP=":"
3006 else
3007 case $cross_compiling:$ac_tool_warned in
3008yes:)
3009{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3010$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3011ac_tool_warned=yes ;;
3012esac
3013 STRIP=$ac_ct_STRIP
3014 fi
3015else
3016 STRIP="$ac_cv_prog_STRIP"
3017fi
3018
3019fi
3020INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3021
3022{ $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3023$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3024if test -z "$MKDIR_P"; then
3025 if test "${ac_cv_path_mkdir+set}" = set; then
3026 $as_echo_n "(cached) " >&6
3027else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3030do
3031 IFS=$as_save_IFS
3032 test -z "$as_dir" && as_dir=.
3033 for ac_prog in mkdir gmkdir; do
3034 for ac_exec_ext in '' $ac_executable_extensions; do
3035 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3036 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3037 'mkdir (GNU coreutils) '* | \
3038 'mkdir (coreutils) '* | \
3039 'mkdir (fileutils) '4.1*)
3040 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3041 break 3;;
3042 esac
3043 done
3044 done
3045done
3046IFS=$as_save_IFS
3047
3048fi
3049
3050 if test "${ac_cv_path_mkdir+set}" = set; then
3051 MKDIR_P="$ac_cv_path_mkdir -p"
3052 else
3053 # As a last resort, use the slow shell script. Don't cache a
3054 # value for MKDIR_P within a source directory, because that will
3055 # break other packages using the cache if that directory is
3056 # removed, or if the value is a relative name.
3057 test -d ./--version && rmdir ./--version
3058 MKDIR_P="$ac_install_sh -d"
3059 fi
3060fi
3061{ $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3062$as_echo "$MKDIR_P" >&6; }
3063
3064mkdir_p="$MKDIR_P"
3065case $mkdir_p in
3066 [\\/$]* | ?:[\\/]*) ;;
3067 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3068esac
3069
3070for ac_prog in gawk mawk nawk awk
3071do
3072 # Extract the first word of "$ac_prog", so it can be a program name with args.
3073set dummy $ac_prog; ac_word=$2
3074{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3075$as_echo_n "checking for $ac_word... " >&6; }
3076if test "${ac_cv_prog_AWK+set}" = set; then
3077 $as_echo_n "(cached) " >&6
3078else
3079 if test -n "$AWK"; then
3080 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3081else
3082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3083for as_dir in $PATH
3084do
3085 IFS=$as_save_IFS
3086 test -z "$as_dir" && as_dir=.
3087 for ac_exec_ext in '' $ac_executable_extensions; do
3088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3089 ac_cv_prog_AWK="$ac_prog"
3090 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3091 break 2
3092 fi
3093done
3094done
3095IFS=$as_save_IFS
3096
3097fi
3098fi
3099AWK=$ac_cv_prog_AWK
3100if test -n "$AWK"; then
3101 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3102$as_echo "$AWK" >&6; }
3103else
3104 { $as_echo "$as_me:$LINENO: result: no" >&5
3105$as_echo "no" >&6; }
3106fi
3107
3108
3109 test -n "$AWK" && break
3110done
3111
3112{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3113$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3114set x ${MAKE-make}
3115ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3116if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3117 $as_echo_n "(cached) " >&6
3118else
3119 cat >conftest.make <<\_ACEOF
3120SHELL = /bin/sh
3121all:
3122 @echo '@@@%%%=$(MAKE)=@@@%%%'
3123_ACEOF
3124# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3125case `${MAKE-make} -f conftest.make 2>/dev/null` in
3126 *@@@%%%=?*=@@@%%%*)
3127 eval ac_cv_prog_make_${ac_make}_set=yes;;
3128 *)
3129 eval ac_cv_prog_make_${ac_make}_set=no;;
3130esac
3131rm -f conftest.make
3132fi
3133if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3134 { $as_echo "$as_me:$LINENO: result: yes" >&5
3135$as_echo "yes" >&6; }
3136 SET_MAKE=
3137else
3138 { $as_echo "$as_me:$LINENO: result: no" >&5
3139$as_echo "no" >&6; }
3140 SET_MAKE="MAKE=${MAKE-make}"
3141fi
3142
3143rm -rf .tst 2>/dev/null
3144mkdir .tst 2>/dev/null
3145if test -d .tst; then
3146 am__leading_dot=.
3147else
3148 am__leading_dot=_
3149fi
3150rmdir .tst 2>/dev/null
3151
3152if test "`cd $srcdir && pwd`" != "`pwd`"; then
3153 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3154 # is not polluted with repeated "-I."
3155 am__isrc=' -I$(srcdir)'
3156 # test to see if srcdir already configured
3157 if test -f $srcdir/config.status; then
3158 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3159$as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3160 { (exit 1); exit 1; }; }
3161 fi
3162fi
3163
3164# test whether we have cygpath
3165if test -z "$CYGPATH_W"; then
3166 if (cygpath --version) >/dev/null 2>/dev/null; then
3167 CYGPATH_W='cygpath -w'
3168 else
3169 CYGPATH_W=echo
3170 fi
3171fi
3172
3173
3174# Define the identity of the package.
3175 PACKAGE=$PACKAGE_NAME
3176 VERSION="${PACKAGE_VERSION}${PACKAGE_LIB_SUBVERSION}"
3177
3178
3179# Some tools Automake needs.
3180
3181ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3182
3183
3184AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3185
3186
3187AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3188
3189
3190AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3191
3192
3193MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3194
3195# We need awk for the "check" target. The system "awk" is bad on
3196# some platforms.
3197# Always define AMTAR for backward compatibility.
3198
3199AMTAR=${AMTAR-"${am_missing_run}tar"}
3200
3201am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3202
3203
3204
3205
3206
3207
3208# Enable support for silent build rules
3209# Check whether --enable-silent-rules was given.
3210if test "${enable_silent_rules+set}" = set; then
3211 enableval=$enable_silent_rules;
3212fi
3213
3214case $enable_silent_rules in
3215yes) AM_DEFAULT_VERBOSITY=0;;
3216no) AM_DEFAULT_VERBOSITY=1;;
3217*) AM_DEFAULT_VERBOSITY=0;;
3218esac
3219AM_BACKSLASH='\'
3220
3221
3222MAGICK_LIB_VERSION="0x"
3223if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
3224 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3225fi
3226MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
3227if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
3228 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3229fi
3230MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
3231if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
3232 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
3233fi
3234MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
3235
3236
3237# Definition used to define MagickLibVersionText in version.h
3238MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
3239
3240
3241# Definition used to define MagickLibVersionNumber in version.h
3242MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
3243
3244
3245# Regenerate config.status if ChangeLog or version.sh is updated.
3246CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
3247
3248
3249PERLMAINCC=$CC
3250
3251MAGICK_CFLAGS=''
3252MAGICK_CPPFLAGS=$CPPFLAGS_USER
3253MAGICK_PCFLAGS=$CPPFLAGS_USER
3254MAGICK_LDFLAGS=''
3255MAGICK_LIBS=''
3256
3257#
3258# Evaluate shell variable equivalents to Makefile directory variables
3259#
3260if test "x$prefix" = xNONE; then
3261 prefix=$ac_default_prefix
3262fi
3263# Let make expand exec_prefix.
3264if test "x$exec_prefix" = xNONE; then
3265 exec_prefix='${prefix}'
3266fi
3267
3268#
3269eval "eval PREFIX_DIR=${prefix}"
3270
3271eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
3272
3273eval "eval BIN_DIR=$bindir"
3274
3275eval "eval SBIN_DIR=$sbindir"
3276
3277eval "eval LIBEXEC_DIR=$libexecdir"
3278
3279eval "eval DATA_DIR=$datadir"
3280
3281eval "eval SYSCONF_DIR=$sysconfdir"
3282
3283eval "eval SHAREDSTATE_DIR=$sharedstatedir"
3284
3285eval "eval LOCALSTATE_DIR=$localstatedir"
3286
3287eval "eval LIB_DIR=$libdir"
3288
3289eval "eval INCLUDE_DIR=$includedir"
3290
3291eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
3292
3293eval "eval INFO_DIR=$infodir"
3294
3295eval "eval MAN_DIR=$mandir"
3296
3297
3298# Get full paths to source and build directories
3299srcdirfull="`cd $srcdir && pwd`"
3300builddir="`pwd`"
3301
3302#
3303# Compute variables useful for running uninstalled software.
3304#
3305MAGICK_CODER_MODULE_PATH="${builddir}/coders"
3306MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
3307MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
3308MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
3309DIRSEP=':'
3310case "${build_os}" in
3311 mingw* )
3312 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
3313 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
3314 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
3315 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
3316 DIRSEP=';'
3317 ;;
3318esac
3319case "${host_os}" in
3320 mingw* )
3321 DIRSEP=';'
3322 ;;
3323esac
3324
3325
3326
3327
3328
3329
3330# Check for programs
3331ac_ext=c
3332ac_cpp='$CPP $CPPFLAGS'
3333ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3334ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3335ac_compiler_gnu=$ac_cv_c_compiler_gnu
3336if test -n "$ac_tool_prefix"; then
3337 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3338set dummy ${ac_tool_prefix}gcc; ac_word=$2
3339{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3340$as_echo_n "checking for $ac_word... " >&6; }
3341if test "${ac_cv_prog_CC+set}" = set; then
3342 $as_echo_n "(cached) " >&6
3343else
3344 if test -n "$CC"; then
3345 ac_cv_prog_CC="$CC" # Let the user override the test.
3346else
3347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348for as_dir in $PATH
3349do
3350 IFS=$as_save_IFS
3351 test -z "$as_dir" && as_dir=.
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3354 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3355 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 break 2
3357 fi
3358done
3359done
3360IFS=$as_save_IFS
3361
3362fi
3363fi
3364CC=$ac_cv_prog_CC
3365if test -n "$CC"; then
3366 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3367$as_echo "$CC" >&6; }
3368else
3369 { $as_echo "$as_me:$LINENO: result: no" >&5
3370$as_echo "no" >&6; }
3371fi
3372
3373
3374fi
3375if test -z "$ac_cv_prog_CC"; then
3376 ac_ct_CC=$CC
3377 # Extract the first word of "gcc", so it can be a program name with args.
3378set dummy gcc; ac_word=$2
3379{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3380$as_echo_n "checking for $ac_word... " >&6; }
3381if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3382 $as_echo_n "(cached) " >&6
3383else
3384 if test -n "$ac_ct_CC"; then
3385 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3386else
3387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388for as_dir in $PATH
3389do
3390 IFS=$as_save_IFS
3391 test -z "$as_dir" && as_dir=.
3392 for ac_exec_ext in '' $ac_executable_extensions; do
3393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3394 ac_cv_prog_ac_ct_CC="gcc"
3395 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3396 break 2
3397 fi
3398done
3399done
3400IFS=$as_save_IFS
3401
3402fi
3403fi
3404ac_ct_CC=$ac_cv_prog_ac_ct_CC
3405if test -n "$ac_ct_CC"; then
3406 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3407$as_echo "$ac_ct_CC" >&6; }
3408else
3409 { $as_echo "$as_me:$LINENO: result: no" >&5
3410$as_echo "no" >&6; }
3411fi
3412
3413 if test "x$ac_ct_CC" = x; then
3414 CC=""
3415 else
3416 case $cross_compiling:$ac_tool_warned in
3417yes:)
3418{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3420ac_tool_warned=yes ;;
3421esac
3422 CC=$ac_ct_CC
3423 fi
3424else
3425 CC="$ac_cv_prog_CC"
3426fi
3427
3428if test -z "$CC"; then
3429 if test -n "$ac_tool_prefix"; then
3430 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3431set dummy ${ac_tool_prefix}cc; ac_word=$2
3432{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3433$as_echo_n "checking for $ac_word... " >&6; }
3434if test "${ac_cv_prog_CC+set}" = set; then
3435 $as_echo_n "(cached) " >&6
3436else
3437 if test -n "$CC"; then
3438 ac_cv_prog_CC="$CC" # Let the user override the test.
3439else
3440as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441for as_dir in $PATH
3442do
3443 IFS=$as_save_IFS
3444 test -z "$as_dir" && as_dir=.
3445 for ac_exec_ext in '' $ac_executable_extensions; do
3446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3447 ac_cv_prog_CC="${ac_tool_prefix}cc"
3448 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3449 break 2
3450 fi
3451done
3452done
3453IFS=$as_save_IFS
3454
3455fi
3456fi
3457CC=$ac_cv_prog_CC
3458if test -n "$CC"; then
3459 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3460$as_echo "$CC" >&6; }
3461else
3462 { $as_echo "$as_me:$LINENO: result: no" >&5
3463$as_echo "no" >&6; }
3464fi
3465
3466
3467 fi
3468fi
3469if test -z "$CC"; then
3470 # Extract the first word of "cc", so it can be a program name with args.
3471set dummy cc; ac_word=$2
3472{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3473$as_echo_n "checking for $ac_word... " >&6; }
3474if test "${ac_cv_prog_CC+set}" = set; then
3475 $as_echo_n "(cached) " >&6
3476else
3477 if test -n "$CC"; then
3478 ac_cv_prog_CC="$CC" # Let the user override the test.
3479else
3480 ac_prog_rejected=no
3481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3482for as_dir in $PATH
3483do
3484 IFS=$as_save_IFS
3485 test -z "$as_dir" && as_dir=.
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3488 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3489 ac_prog_rejected=yes
3490 continue
3491 fi
3492 ac_cv_prog_CC="cc"
3493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3494 break 2
3495 fi
3496done
3497done
3498IFS=$as_save_IFS
3499
3500if test $ac_prog_rejected = yes; then
3501 # We found a bogon in the path, so make sure we never use it.
3502 set dummy $ac_cv_prog_CC
3503 shift
3504 if test $# != 0; then
3505 # We chose a different compiler from the bogus one.
3506 # However, it has the same basename, so the bogon will be chosen
3507 # first if we set CC to just the basename; use the full file name.
3508 shift
3509 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3510 fi
3511fi
3512fi
3513fi
3514CC=$ac_cv_prog_CC
3515if test -n "$CC"; then
3516 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3517$as_echo "$CC" >&6; }
3518else
3519 { $as_echo "$as_me:$LINENO: result: no" >&5
3520$as_echo "no" >&6; }
3521fi
3522
3523
3524fi
3525if test -z "$CC"; then
3526 if test -n "$ac_tool_prefix"; then
3527 for ac_prog in cl.exe
3528 do
3529 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3530set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3531{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3532$as_echo_n "checking for $ac_word... " >&6; }
3533if test "${ac_cv_prog_CC+set}" = set; then
3534 $as_echo_n "(cached) " >&6
3535else
3536 if test -n "$CC"; then
3537 ac_cv_prog_CC="$CC" # Let the user override the test.
3538else
3539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3540for as_dir in $PATH
3541do
3542 IFS=$as_save_IFS
3543 test -z "$as_dir" && as_dir=.
3544 for ac_exec_ext in '' $ac_executable_extensions; do
3545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3546 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3547 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3548 break 2
3549 fi
3550done
3551done
3552IFS=$as_save_IFS
3553
3554fi
3555fi
3556CC=$ac_cv_prog_CC
3557if test -n "$CC"; then
3558 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3559$as_echo "$CC" >&6; }
3560else
3561 { $as_echo "$as_me:$LINENO: result: no" >&5
3562$as_echo "no" >&6; }
3563fi
3564
3565
3566 test -n "$CC" && break
3567 done
3568fi
3569if test -z "$CC"; then
3570 ac_ct_CC=$CC
3571 for ac_prog in cl.exe
3572do
3573 # Extract the first word of "$ac_prog", so it can be a program name with args.
3574set dummy $ac_prog; ac_word=$2
3575{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3576$as_echo_n "checking for $ac_word... " >&6; }
3577if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3578 $as_echo_n "(cached) " >&6
3579else
3580 if test -n "$ac_ct_CC"; then
3581 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3582else
3583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584for as_dir in $PATH
3585do
3586 IFS=$as_save_IFS
3587 test -z "$as_dir" && as_dir=.
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3590 ac_cv_prog_ac_ct_CC="$ac_prog"
3591 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3592 break 2
3593 fi
3594done
3595done
3596IFS=$as_save_IFS
3597
3598fi
3599fi
3600ac_ct_CC=$ac_cv_prog_ac_ct_CC
3601if test -n "$ac_ct_CC"; then
3602 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3603$as_echo "$ac_ct_CC" >&6; }
3604else
3605 { $as_echo "$as_me:$LINENO: result: no" >&5
3606$as_echo "no" >&6; }
3607fi
3608
3609
3610 test -n "$ac_ct_CC" && break
3611done
3612
3613 if test "x$ac_ct_CC" = x; then
3614 CC=""
3615 else
3616 case $cross_compiling:$ac_tool_warned in
3617yes:)
3618{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3619$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3620ac_tool_warned=yes ;;
3621esac
3622 CC=$ac_ct_CC
3623 fi
3624fi
3625
3626fi
3627
3628
3629test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3630$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3631{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3632See \`config.log' for more details." >&5
3633$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3634See \`config.log' for more details." >&2;}
3635 { (exit 1); exit 1; }; }; }
3636
3637# Provide some information about the compiler.
3638$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3639set X $ac_compile
3640ac_compiler=$2
3641{ (ac_try="$ac_compiler --version >&5"
3642case "(($ac_try" in
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3645esac
3646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3647$as_echo "$ac_try_echo") >&5
3648 (eval "$ac_compiler --version >&5") 2>&5
3649 ac_status=$?
3650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }
3652{ (ac_try="$ac_compiler -v >&5"
3653case "(($ac_try" in
3654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3655 *) ac_try_echo=$ac_try;;
3656esac
3657eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3658$as_echo "$ac_try_echo") >&5
3659 (eval "$ac_compiler -v >&5") 2>&5
3660 ac_status=$?
3661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }
3663{ (ac_try="$ac_compiler -V >&5"
3664case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3667esac
3668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3669$as_echo "$ac_try_echo") >&5
3670 (eval "$ac_compiler -V >&5") 2>&5
3671 ac_status=$?
3672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }
3674
3675cat >conftest.$ac_ext <<_ACEOF
3676/* confdefs.h. */
3677_ACEOF
3678cat confdefs.h >>conftest.$ac_ext
3679cat >>conftest.$ac_ext <<_ACEOF
3680/* end confdefs.h. */
3681
3682int
3683main ()
3684{
3685
3686 ;
3687 return 0;
3688}
3689_ACEOF
3690ac_clean_files_save=$ac_clean_files
3691ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3692# Try to create an executable without -o first, disregard a.out.
3693# It will help us diagnose broken compilers, and finding out an intuition
3694# of exeext.
3695{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3696$as_echo_n "checking for C compiler default output file name... " >&6; }
3697ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3698
3699# The possible output files:
3700ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3701
3702ac_rmfiles=
3703for ac_file in $ac_files
3704do
3705 case $ac_file in
3706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3707 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3708 esac
3709done
3710rm -f $ac_rmfiles
3711
3712if { (ac_try="$ac_link_default"
3713case "(($ac_try" in
3714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3715 *) ac_try_echo=$ac_try;;
3716esac
3717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3718$as_echo "$ac_try_echo") >&5
3719 (eval "$ac_link_default") 2>&5
3720 ac_status=$?
3721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); }; then
3723 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3724# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3725# in a Makefile. We should not override ac_cv_exeext if it was cached,
3726# so that the user can short-circuit this test for compilers unknown to
3727# Autoconf.
3728for ac_file in $ac_files ''
3729do
3730 test -f "$ac_file" || continue
3731 case $ac_file in
3732 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3733 ;;
3734 [ab].out )
3735 # We found the default executable, but exeext='' is most
3736 # certainly right.
3737 break;;
3738 *.* )
3739 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3740 then :; else
3741 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3742 fi
3743 # We set ac_cv_exeext here because the later test for it is not
3744 # safe: cross compilers may not add the suffix if given an `-o'
3745 # argument, so we may need to know it at that point already.
3746 # Even if this section looks crufty: it has the advantage of
3747 # actually working.
3748 break;;
3749 * )
3750 break;;
3751 esac
3752done
3753test "$ac_cv_exeext" = no && ac_cv_exeext=
3754
3755else
3756 ac_file=''
3757fi
3758
3759{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3760$as_echo "$ac_file" >&6; }
3761if test -z "$ac_file"; then
3762 $as_echo "$as_me: failed program was:" >&5
3763sed 's/^/| /' conftest.$ac_ext >&5
3764
3765{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3766$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3768See \`config.log' for more details." >&5
3769$as_echo "$as_me: error: C compiler cannot create executables
3770See \`config.log' for more details." >&2;}
3771 { (exit 77); exit 77; }; }; }
3772fi
3773
3774ac_exeext=$ac_cv_exeext
3775
3776# Check that the compiler produces executables we can run. If not, either
3777# the compiler is broken, or we cross compile.
3778{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3779$as_echo_n "checking whether the C compiler works... " >&6; }
3780# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3781# If not cross compiling, check that we can run a simple program.
3782if test "$cross_compiling" != yes; then
3783 if { ac_try='./$ac_file'
3784 { (case "(($ac_try" in
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;;
3787esac
3788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3789$as_echo "$ac_try_echo") >&5
3790 (eval "$ac_try") 2>&5
3791 ac_status=$?
3792 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 (exit $ac_status); }; }; then
3794 cross_compiling=no
3795 else
3796 if test "$cross_compiling" = maybe; then
3797 cross_compiling=yes
3798 else
3799 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3800$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3801{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3802If you meant to cross compile, use \`--host'.
3803See \`config.log' for more details." >&5
3804$as_echo "$as_me: error: cannot run C compiled programs.
3805If you meant to cross compile, use \`--host'.
3806See \`config.log' for more details." >&2;}
3807 { (exit 1); exit 1; }; }; }
3808 fi
3809 fi
3810fi
3811{ $as_echo "$as_me:$LINENO: result: yes" >&5
3812$as_echo "yes" >&6; }
3813
3814rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3815ac_clean_files=$ac_clean_files_save
3816# Check that the compiler produces executables we can run. If not, either
3817# the compiler is broken, or we cross compile.
3818{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3819$as_echo_n "checking whether we are cross compiling... " >&6; }
3820{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3821$as_echo "$cross_compiling" >&6; }
3822
3823{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3824$as_echo_n "checking for suffix of executables... " >&6; }
3825if { (ac_try="$ac_link"
3826case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3829esac
3830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3831$as_echo "$ac_try_echo") >&5
3832 (eval "$ac_link") 2>&5
3833 ac_status=$?
3834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3835 (exit $ac_status); }; then
3836 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3837# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3838# work properly (i.e., refer to `conftest.exe'), while it won't with
3839# `rm'.
3840for ac_file in conftest.exe conftest conftest.*; do
3841 test -f "$ac_file" || continue
3842 case $ac_file in
3843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3844 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3845 break;;
3846 * ) break;;
3847 esac
3848done
3849else
3850 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3851$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3852{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3853See \`config.log' for more details." >&5
3854$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3855See \`config.log' for more details." >&2;}
3856 { (exit 1); exit 1; }; }; }
3857fi
3858
3859rm -f conftest$ac_cv_exeext
3860{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3861$as_echo "$ac_cv_exeext" >&6; }
3862
3863rm -f conftest.$ac_ext
3864EXEEXT=$ac_cv_exeext
3865ac_exeext=$EXEEXT
3866{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3867$as_echo_n "checking for suffix of object files... " >&6; }
3868if test "${ac_cv_objext+set}" = set; then
3869 $as_echo_n "(cached) " >&6
3870else
3871 cat >conftest.$ac_ext <<_ACEOF
3872/* confdefs.h. */
3873_ACEOF
3874cat confdefs.h >>conftest.$ac_ext
3875cat >>conftest.$ac_ext <<_ACEOF
3876/* end confdefs.h. */
3877
3878int
3879main ()
3880{
3881
3882 ;
3883 return 0;
3884}
3885_ACEOF
3886rm -f conftest.o conftest.obj
3887if { (ac_try="$ac_compile"
3888case "(($ac_try" in
3889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3890 *) ac_try_echo=$ac_try;;
3891esac
3892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3893$as_echo "$ac_try_echo") >&5
3894 (eval "$ac_compile") 2>&5
3895 ac_status=$?
3896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); }; then
3898 for ac_file in conftest.o conftest.obj conftest.*; do
3899 test -f "$ac_file" || continue;
3900 case $ac_file in
3901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3902 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3903 break;;
3904 esac
3905done
3906else
3907 $as_echo "$as_me: failed program was:" >&5
3908sed 's/^/| /' conftest.$ac_ext >&5
3909
3910{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3911$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3912{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3913See \`config.log' for more details." >&5
3914$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3915See \`config.log' for more details." >&2;}
3916 { (exit 1); exit 1; }; }; }
3917fi
3918
3919rm -f conftest.$ac_cv_objext conftest.$ac_ext
3920fi
3921{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3922$as_echo "$ac_cv_objext" >&6; }
3923OBJEXT=$ac_cv_objext
3924ac_objext=$OBJEXT
3925{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3926$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3927if test "${ac_cv_c_compiler_gnu+set}" = set; then
3928 $as_echo_n "(cached) " >&6
3929else
3930 cat >conftest.$ac_ext <<_ACEOF
3931/* confdefs.h. */
3932_ACEOF
3933cat confdefs.h >>conftest.$ac_ext
3934cat >>conftest.$ac_ext <<_ACEOF
3935/* end confdefs.h. */
3936
3937int
3938main ()
3939{
3940#ifndef __GNUC__
3941 choke me
3942#endif
3943
3944 ;
3945 return 0;
3946}
3947_ACEOF
3948rm -f conftest.$ac_objext
3949if { (ac_try="$ac_compile"
3950case "(($ac_try" in
3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3953esac
3954eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3955$as_echo "$ac_try_echo") >&5
3956 (eval "$ac_compile") 2>conftest.er1
3957 ac_status=$?
3958 grep -v '^ *+' conftest.er1 >conftest.err
3959 rm -f conftest.er1
3960 cat conftest.err >&5
3961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962 (exit $ac_status); } && {
3963 test -z "$ac_c_werror_flag" ||
3964 test ! -s conftest.err
3965 } && test -s conftest.$ac_objext; then
3966 ac_compiler_gnu=yes
3967else
3968 $as_echo "$as_me: failed program was:" >&5
3969sed 's/^/| /' conftest.$ac_ext >&5
3970
3971 ac_compiler_gnu=no
3972fi
3973
3974rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3975ac_cv_c_compiler_gnu=$ac_compiler_gnu
3976
3977fi
3978{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3979$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3980if test $ac_compiler_gnu = yes; then
3981 GCC=yes
3982else
3983 GCC=
3984fi
3985ac_test_CFLAGS=${CFLAGS+set}
3986ac_save_CFLAGS=$CFLAGS
3987{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3988$as_echo_n "checking whether $CC accepts -g... " >&6; }
3989if test "${ac_cv_prog_cc_g+set}" = set; then
3990 $as_echo_n "(cached) " >&6
3991else
3992 ac_save_c_werror_flag=$ac_c_werror_flag
3993 ac_c_werror_flag=yes
3994 ac_cv_prog_cc_g=no
3995 CFLAGS="-g"
3996 cat >conftest.$ac_ext <<_ACEOF
3997/* confdefs.h. */
3998_ACEOF
3999cat confdefs.h >>conftest.$ac_ext
4000cat >>conftest.$ac_ext <<_ACEOF
4001/* end confdefs.h. */
4002
4003int
4004main ()
4005{
4006
4007 ;
4008 return 0;
4009}
4010_ACEOF
4011rm -f conftest.$ac_objext
4012if { (ac_try="$ac_compile"
4013case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016esac
4017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4018$as_echo "$ac_try_echo") >&5
4019 (eval "$ac_compile") 2>conftest.er1
4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } && {
4026 test -z "$ac_c_werror_flag" ||
4027 test ! -s conftest.err
4028 } && test -s conftest.$ac_objext; then
4029 ac_cv_prog_cc_g=yes
4030else
4031 $as_echo "$as_me: failed program was:" >&5
4032sed 's/^/| /' conftest.$ac_ext >&5
4033
4034 CFLAGS=""
4035 cat >conftest.$ac_ext <<_ACEOF
4036/* confdefs.h. */
4037_ACEOF
4038cat confdefs.h >>conftest.$ac_ext
4039cat >>conftest.$ac_ext <<_ACEOF
4040/* end confdefs.h. */
4041
4042int
4043main ()
4044{
4045
4046 ;
4047 return 0;
4048}
4049_ACEOF
4050rm -f conftest.$ac_objext
4051if { (ac_try="$ac_compile"
4052case "(($ac_try" in
4053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054 *) ac_try_echo=$ac_try;;
4055esac
4056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4057$as_echo "$ac_try_echo") >&5
4058 (eval "$ac_compile") 2>conftest.er1
4059 ac_status=$?
4060 grep -v '^ *+' conftest.er1 >conftest.err
4061 rm -f conftest.er1
4062 cat conftest.err >&5
4063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); } && {
4065 test -z "$ac_c_werror_flag" ||
4066 test ! -s conftest.err
4067 } && test -s conftest.$ac_objext; then
4068 :
4069else
4070 $as_echo "$as_me: failed program was:" >&5
4071sed 's/^/| /' conftest.$ac_ext >&5
4072
4073 ac_c_werror_flag=$ac_save_c_werror_flag
4074 CFLAGS="-g"
4075 cat >conftest.$ac_ext <<_ACEOF
4076/* confdefs.h. */
4077_ACEOF
4078cat confdefs.h >>conftest.$ac_ext
4079cat >>conftest.$ac_ext <<_ACEOF
4080/* end confdefs.h. */
4081
4082int
4083main ()
4084{
4085
4086 ;
4087 return 0;
4088}
4089_ACEOF
4090rm -f conftest.$ac_objext
4091if { (ac_try="$ac_compile"
4092case "(($ac_try" in
4093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4094 *) ac_try_echo=$ac_try;;
4095esac
4096eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4097$as_echo "$ac_try_echo") >&5
4098 (eval "$ac_compile") 2>conftest.er1
4099 ac_status=$?
4100 grep -v '^ *+' conftest.er1 >conftest.err
4101 rm -f conftest.er1
4102 cat conftest.err >&5
4103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } && {
4105 test -z "$ac_c_werror_flag" ||
4106 test ! -s conftest.err
4107 } && test -s conftest.$ac_objext; then
4108 ac_cv_prog_cc_g=yes
4109else
4110 $as_echo "$as_me: failed program was:" >&5
4111sed 's/^/| /' conftest.$ac_ext >&5
4112
4113
4114fi
4115
4116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4117fi
4118
4119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120fi
4121
4122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4123 ac_c_werror_flag=$ac_save_c_werror_flag
4124fi
4125{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4126$as_echo "$ac_cv_prog_cc_g" >&6; }
4127if test "$ac_test_CFLAGS" = set; then
4128 CFLAGS=$ac_save_CFLAGS
4129elif test $ac_cv_prog_cc_g = yes; then
4130 if test "$GCC" = yes; then
4131 CFLAGS="-g -O2"
4132 else
4133 CFLAGS="-g"
4134 fi
4135else
4136 if test "$GCC" = yes; then
4137 CFLAGS="-O2"
4138 else
4139 CFLAGS=
4140 fi
4141fi
4142{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4143$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4144if test "${ac_cv_prog_cc_c89+set}" = set; then
4145 $as_echo_n "(cached) " >&6
4146else
4147 ac_cv_prog_cc_c89=no
4148ac_save_CC=$CC
4149cat >conftest.$ac_ext <<_ACEOF
4150/* confdefs.h. */
4151_ACEOF
4152cat confdefs.h >>conftest.$ac_ext
4153cat >>conftest.$ac_ext <<_ACEOF
4154/* end confdefs.h. */
4155#include <stdarg.h>
4156#include <stdio.h>
4157#include <sys/types.h>
4158#include <sys/stat.h>
4159/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4160struct buf { int x; };
4161FILE * (*rcsopen) (struct buf *, struct stat *, int);
4162static char *e (p, i)
4163 char **p;
4164 int i;
4165{
4166 return p[i];
4167}
4168static char *f (char * (*g) (char **, int), char **p, ...)
4169{
4170 char *s;
4171 va_list v;
4172 va_start (v,p);
4173 s = g (p, va_arg (v,int));
4174 va_end (v);
4175 return s;
4176}
4177
4178/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4179 function prototypes and stuff, but not '\xHH' hex character constants.
4180 These don't provoke an error unfortunately, instead are silently treated
4181 as 'x'. The following induces an error, until -std is added to get
4182 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4183 array size at least. It's necessary to write '\x00'==0 to get something
4184 that's true only with -std. */
4185int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4186
4187/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4188 inside strings and character constants. */
4189#define FOO(x) 'x'
4190int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4191
4192int test (int i, double x);
4193struct s1 {int (*f) (int a);};
4194struct s2 {int (*f) (double a);};
4195int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4196int argc;
4197char **argv;
4198int
4199main ()
4200{
4201return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4202 ;
4203 return 0;
4204}
4205_ACEOF
4206for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4207 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4208do
4209 CC="$ac_save_CC $ac_arg"
4210 rm -f conftest.$ac_objext
4211if { (ac_try="$ac_compile"
4212case "(($ac_try" in
4213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4214 *) ac_try_echo=$ac_try;;
4215esac
4216eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4217$as_echo "$ac_try_echo") >&5
4218 (eval "$ac_compile") 2>conftest.er1
4219 ac_status=$?
4220 grep -v '^ *+' conftest.er1 >conftest.err
4221 rm -f conftest.er1
4222 cat conftest.err >&5
4223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); } && {
4225 test -z "$ac_c_werror_flag" ||
4226 test ! -s conftest.err
4227 } && test -s conftest.$ac_objext; then
4228 ac_cv_prog_cc_c89=$ac_arg
4229else
4230 $as_echo "$as_me: failed program was:" >&5
4231sed 's/^/| /' conftest.$ac_ext >&5
4232
4233
4234fi
4235
4236rm -f core conftest.err conftest.$ac_objext
4237 test "x$ac_cv_prog_cc_c89" != "xno" && break
4238done
4239rm -f conftest.$ac_ext
4240CC=$ac_save_CC
4241
4242fi
4243# AC_CACHE_VAL
4244case "x$ac_cv_prog_cc_c89" in
4245 x)
4246 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4247$as_echo "none needed" >&6; } ;;
4248 xno)
4249 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4250$as_echo "unsupported" >&6; } ;;
4251 *)
4252 CC="$CC $ac_cv_prog_cc_c89"
4253 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4254$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4255esac
4256
4257
4258ac_ext=c
4259ac_cpp='$CPP $CPPFLAGS'
4260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4262ac_compiler_gnu=$ac_cv_c_compiler_gnu
4263DEPDIR="${am__leading_dot}deps"
4264
4265ac_config_commands="$ac_config_commands depfiles"
4266
4267
4268am_make=${MAKE-make}
4269cat > confinc << 'END'
4270am__doit:
4271 @echo this is the am__doit target
4272.PHONY: am__doit
4273END
4274# If we don't find an include directive, just comment out the code.
4275{ $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4276$as_echo_n "checking for style of include used by $am_make... " >&6; }
4277am__include="#"
4278am__quote=
4279_am_result=none
4280# First try GNU make style include.
4281echo "include confinc" > confmf
4282# Ignore all kinds of additional output from `make'.
4283case `$am_make -s -f confmf 2> /dev/null` in #(
4284*the\ am__doit\ target*)
4285 am__include=include
4286 am__quote=
4287 _am_result=GNU
4288 ;;
4289esac
4290# Now try BSD make style include.
4291if test "$am__include" = "#"; then
4292 echo '.include "confinc"' > confmf
4293 case `$am_make -s -f confmf 2> /dev/null` in #(
4294 *the\ am__doit\ target*)
4295 am__include=.include
4296 am__quote="\""
4297 _am_result=BSD
4298 ;;
4299 esac
4300fi
4301
4302
4303{ $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4304$as_echo "$_am_result" >&6; }
4305rm -f confinc confmf
4306
4307# Check whether --enable-dependency-tracking was given.
4308if test "${enable_dependency_tracking+set}" = set; then
4309 enableval=$enable_dependency_tracking;
4310fi
4311
4312if test "x$enable_dependency_tracking" != xno; then
4313 am_depcomp="$ac_aux_dir/depcomp"
4314 AMDEPBACKSLASH='\'
4315fi
4316 if test "x$enable_dependency_tracking" != xno; then
4317 AMDEP_TRUE=
4318 AMDEP_FALSE='#'
4319else
4320 AMDEP_TRUE='#'
4321 AMDEP_FALSE=
4322fi
4323
4324
4325
4326depcc="$CC" am_compiler_list=
4327
4328{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4329$as_echo_n "checking dependency style of $depcc... " >&6; }
4330if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4331 $as_echo_n "(cached) " >&6
4332else
4333 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4334 # We make a subdir and do the tests there. Otherwise we can end up
4335 # making bogus files that we don't know about and never remove. For
4336 # instance it was reported that on HP-UX the gcc test will end up
4337 # making a dummy file named `D' -- because `-MD' means `put the output
4338 # in D'.
4339 mkdir conftest.dir
4340 # Copy depcomp to subdir because otherwise we won't find it if we're
4341 # using a relative directory.
4342 cp "$am_depcomp" conftest.dir
4343 cd conftest.dir
4344 # We will build objects and dependencies in a subdirectory because
4345 # it helps to detect inapplicable dependency modes. For instance
4346 # both Tru64's cc and ICC support -MD to output dependencies as a
4347 # side effect of compilation, but ICC will put the dependencies in
4348 # the current directory while Tru64 will put them in the object
4349 # directory.
4350 mkdir sub
4351
4352 am_cv_CC_dependencies_compiler_type=none
4353 if test "$am_compiler_list" = ""; then
4354 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4355 fi
4356 am__universal=false
4357 case " $depcc " in #(
4358 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4359 esac
4360
4361 for depmode in $am_compiler_list; do
4362 # Setup a source with many dependencies, because some compilers
4363 # like to wrap large dependency lists on column 80 (with \), and
4364 # we should not choose a depcomp mode which is confused by this.
4365 #
4366 # We need to recreate these files for each test, as the compiler may
4367 # overwrite some of them when testing with obscure command lines.
4368 # This happens at least with the AIX C compiler.
4369 : > sub/conftest.c
4370 for i in 1 2 3 4 5 6; do
4371 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4372 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4373 # Solaris 8's {/usr,}/bin/sh.
4374 touch sub/conftst$i.h
4375 done
4376 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4377
4378 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4379 # mode. It turns out that the SunPro C++ compiler does not properly
4380 # handle `-M -o', and we need to detect this. Also, some Intel
4381 # versions had trouble with output in subdirs
4382 am__obj=sub/conftest.${OBJEXT-o}
4383 am__minus_obj="-o $am__obj"
4384 case $depmode in
4385 gcc)
4386 # This depmode causes a compiler race in universal mode.
4387 test "$am__universal" = false || continue
4388 ;;
4389 nosideeffect)
4390 # after this tag, mechanisms are not by side-effect, so they'll
4391 # only be used when explicitly requested
4392 if test "x$enable_dependency_tracking" = xyes; then
4393 continue
4394 else
4395 break
4396 fi
4397 ;;
4398 msvisualcpp | msvcmsys)
4399 # This compiler won't grok `-c -o', but also, the minuso test has
4400 # not run yet. These depmodes are late enough in the game, and
4401 # so weak that their functioning should not be impacted.
4402 am__obj=conftest.${OBJEXT-o}
4403 am__minus_obj=
4404 ;;
4405 none) break ;;
4406 esac
4407 if depmode=$depmode \
4408 source=sub/conftest.c object=$am__obj \
4409 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4410 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4411 >/dev/null 2>conftest.err &&
4412 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4413 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4414 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4415 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4416 # icc doesn't choke on unknown options, it will just issue warnings
4417 # or remarks (even with -Werror). So we grep stderr for any message
4418 # that says an option was ignored or not supported.
4419 # When given -MP, icc 7.0 and 7.1 complain thusly:
4420 # icc: Command line warning: ignoring option '-M'; no argument required
4421 # The diagnosis changed in icc 8.0:
4422 # icc: Command line remark: option '-MP' not supported
4423 if (grep 'ignoring option' conftest.err ||
4424 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4425 am_cv_CC_dependencies_compiler_type=$depmode
4426 break
4427 fi
4428 fi
4429 done
4430
4431 cd ..
4432 rm -rf conftest.dir
4433else
4434 am_cv_CC_dependencies_compiler_type=none
4435fi
4436
4437fi
4438{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4439$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4440CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4441
4442 if
4443 test "x$enable_dependency_tracking" != xno \
4444 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4445 am__fastdepCC_TRUE=
4446 am__fastdepCC_FALSE='#'
4447else
4448 am__fastdepCC_TRUE='#'
4449 am__fastdepCC_FALSE=
4450fi
4451
4452
4453 case $ac_cv_prog_cc_stdc in
4454 no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
4455 *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
4456$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4457if test "${ac_cv_prog_cc_c99+set}" = set; then
4458 $as_echo_n "(cached) " >&6
4459else
4460 ac_cv_prog_cc_c99=no
4461ac_save_CC=$CC
4462cat >conftest.$ac_ext <<_ACEOF
4463/* confdefs.h. */
4464_ACEOF
4465cat confdefs.h >>conftest.$ac_ext
4466cat >>conftest.$ac_ext <<_ACEOF
4467/* end confdefs.h. */
4468#include <stdarg.h>
4469#include <stdbool.h>
4470#include <stdlib.h>
4471#include <wchar.h>
4472#include <stdio.h>
4473
4474// Check varargs macros. These examples are taken from C99 6.10.3.5.
4475#define debug(...) fprintf (stderr, __VA_ARGS__)
4476#define showlist(...) puts (#__VA_ARGS__)
4477#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4478static void
4479test_varargs_macros (void)
4480{
4481 int x = 1234;
4482 int y = 5678;
4483 debug ("Flag");
4484 debug ("X = %d\n", x);
4485 showlist (The first, second, and third items.);
4486 report (x>y, "x is %d but y is %d", x, y);
4487}
4488
4489// Check long long types.
4490#define BIG64 18446744073709551615ull
4491#define BIG32 4294967295ul
4492#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4493#if !BIG_OK
4494 your preprocessor is broken;
4495#endif
4496#if BIG_OK
4497#else
4498 your preprocessor is broken;
4499#endif
4500static long long int bignum = -9223372036854775807LL;
4501static unsigned long long int ubignum = BIG64;
4502
4503struct incomplete_array
4504{
4505 int datasize;
4506 double data[];
4507};
4508
4509struct named_init {
4510 int number;
4511 const wchar_t *name;
4512 double average;
4513};
4514
4515typedef const char *ccp;
4516
4517static inline int
4518test_restrict (ccp restrict text)
4519{
4520 // See if C++-style comments work.
4521 // Iterate through items via the restricted pointer.
4522 // Also check for declarations in for loops.
4523 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4524 continue;
4525 return 0;
4526}
4527
4528// Check varargs and va_copy.
4529static void
4530test_varargs (const char *format, ...)
4531{
4532 va_list args;
4533 va_start (args, format);
4534 va_list args_copy;
4535 va_copy (args_copy, args);
4536
4537 const char *str;
4538 int number;
4539 float fnumber;
4540
4541 while (*format)
4542 {
4543 switch (*format++)
4544 {
4545 case 's': // string
4546 str = va_arg (args_copy, const char *);
4547 break;
4548 case 'd': // int
4549 number = va_arg (args_copy, int);
4550 break;
4551 case 'f': // float
4552 fnumber = va_arg (args_copy, double);
4553 break;
4554 default:
4555 break;
4556 }
4557 }
4558 va_end (args_copy);
4559 va_end (args);
4560}
4561
4562int
4563main ()
4564{
4565
4566 // Check bool.
4567 _Bool success = false;
4568
4569 // Check restrict.
4570 if (test_restrict ("String literal") == 0)
4571 success = true;
4572 char *restrict newvar = "Another string";
4573
4574 // Check varargs.
4575 test_varargs ("s, d' f .", "string", 65, 34.234);
4576 test_varargs_macros ();
4577
4578 // Check flexible array members.
4579 struct incomplete_array *ia =
4580 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4581 ia->datasize = 10;
4582 for (int i = 0; i < ia->datasize; ++i)
4583 ia->data[i] = i * 1.234;
4584
4585 // Check named initializers.
4586 struct named_init ni = {
4587 .number = 34,
4588 .name = L"Test wide string",
4589 .average = 543.34343,
4590 };
4591
4592 ni.number = 58;
4593
4594 int dynamic_array[ni.number];
4595 dynamic_array[ni.number - 1] = 543;
4596
4597 // work around unused variable warnings
4598 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4599 || dynamic_array[ni.number - 1] != 543);
4600
4601 ;
4602 return 0;
4603}
4604_ACEOF
4605for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4606do
4607 CC="$ac_save_CC $ac_arg"
4608 rm -f conftest.$ac_objext
4609if { (ac_try="$ac_compile"
4610case "(($ac_try" in
4611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4612 *) ac_try_echo=$ac_try;;
4613esac
4614eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4615$as_echo "$ac_try_echo") >&5
4616 (eval "$ac_compile") 2>conftest.er1
4617 ac_status=$?
4618 grep -v '^ *+' conftest.er1 >conftest.err
4619 rm -f conftest.er1
4620 cat conftest.err >&5
4621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } && {
4623 test -z "$ac_c_werror_flag" ||
4624 test ! -s conftest.err
4625 } && test -s conftest.$ac_objext; then
4626 ac_cv_prog_cc_c99=$ac_arg
4627else
4628 $as_echo "$as_me: failed program was:" >&5
4629sed 's/^/| /' conftest.$ac_ext >&5
4630
4631
4632fi
4633
4634rm -f core conftest.err conftest.$ac_objext
4635 test "x$ac_cv_prog_cc_c99" != "xno" && break
4636done
4637rm -f conftest.$ac_ext
4638CC=$ac_save_CC
4639
4640fi
4641# AC_CACHE_VAL
4642case "x$ac_cv_prog_cc_c99" in
4643 x)
4644 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4645$as_echo "none needed" >&6; } ;;
4646 xno)
4647 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4648$as_echo "unsupported" >&6; } ;;
4649 *)
4650 CC="$CC $ac_cv_prog_cc_c99"
4651 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
4652$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4653esac
4654if test "x$ac_cv_prog_cc_c99" != xno; then
4655 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4656else
4657 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4658$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4659if test "${ac_cv_prog_cc_c89+set}" = set; then
4660 $as_echo_n "(cached) " >&6
4661else
4662 ac_cv_prog_cc_c89=no
4663ac_save_CC=$CC
4664cat >conftest.$ac_ext <<_ACEOF
4665/* confdefs.h. */
4666_ACEOF
4667cat confdefs.h >>conftest.$ac_ext
4668cat >>conftest.$ac_ext <<_ACEOF
4669/* end confdefs.h. */
4670#include <stdarg.h>
4671#include <stdio.h>
4672#include <sys/types.h>
4673#include <sys/stat.h>
4674/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4675struct buf { int x; };
4676FILE * (*rcsopen) (struct buf *, struct stat *, int);
4677static char *e (p, i)
4678 char **p;
4679 int i;
4680{
4681 return p[i];
4682}
4683static char *f (char * (*g) (char **, int), char **p, ...)
4684{
4685 char *s;
4686 va_list v;
4687 va_start (v,p);
4688 s = g (p, va_arg (v,int));
4689 va_end (v);
4690 return s;
4691}
4692
4693/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4694 function prototypes and stuff, but not '\xHH' hex character constants.
4695 These don't provoke an error unfortunately, instead are silently treated
4696 as 'x'. The following induces an error, until -std is added to get
4697 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4698 array size at least. It's necessary to write '\x00'==0 to get something
4699 that's true only with -std. */
4700int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4701
4702/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4703 inside strings and character constants. */
4704#define FOO(x) 'x'
4705int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4706
4707int test (int i, double x);
4708struct s1 {int (*f) (int a);};
4709struct s2 {int (*f) (double a);};
4710int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4711int argc;
4712char **argv;
4713int
4714main ()
4715{
4716return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4717 ;
4718 return 0;
4719}
4720_ACEOF
4721for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4722 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4723do
4724 CC="$ac_save_CC $ac_arg"
4725 rm -f conftest.$ac_objext
4726if { (ac_try="$ac_compile"
4727case "(($ac_try" in
4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4730esac
4731eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4732$as_echo "$ac_try_echo") >&5
4733 (eval "$ac_compile") 2>conftest.er1
4734 ac_status=$?
4735 grep -v '^ *+' conftest.er1 >conftest.err
4736 rm -f conftest.er1
4737 cat conftest.err >&5
4738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); } && {
4740 test -z "$ac_c_werror_flag" ||
4741 test ! -s conftest.err
4742 } && test -s conftest.$ac_objext; then
4743 ac_cv_prog_cc_c89=$ac_arg
4744else
4745 $as_echo "$as_me: failed program was:" >&5
4746sed 's/^/| /' conftest.$ac_ext >&5
4747
4748
4749fi
4750
4751rm -f core conftest.err conftest.$ac_objext
4752 test "x$ac_cv_prog_cc_c89" != "xno" && break
4753done
4754rm -f conftest.$ac_ext
4755CC=$ac_save_CC
4756
4757fi
4758# AC_CACHE_VAL
4759case "x$ac_cv_prog_cc_c89" in
4760 x)
4761 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4762$as_echo "none needed" >&6; } ;;
4763 xno)
4764 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4765$as_echo "unsupported" >&6; } ;;
4766 *)
4767 CC="$CC $ac_cv_prog_cc_c89"
4768 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4769$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4770esac
4771if test "x$ac_cv_prog_cc_c89" != xno; then
4772 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4773else
4774 ac_cv_prog_cc_stdc=no
4775fi
4776
4777
4778fi
4779
4780 ;;
4781esac
4782 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
4783$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
4784 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4785 $as_echo_n "(cached) " >&6
4786fi
4787
4788 case $ac_cv_prog_cc_stdc in
4789 no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4790$as_echo "unsupported" >&6; } ;;
4791 '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
4792$as_echo "none needed" >&6; } ;;
4793 *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4794$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
4795esac
4796
4797
4798ac_ext=c
4799ac_cpp='$CPP $CPPFLAGS'
4800ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802ac_compiler_gnu=$ac_cv_c_compiler_gnu
4803{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4804$as_echo_n "checking how to run the C preprocessor... " >&6; }
4805# On Suns, sometimes $CPP names a directory.
4806if test -n "$CPP" && test -d "$CPP"; then
4807 CPP=
4808fi
4809if test -z "$CPP"; then
4810 if test "${ac_cv_prog_CPP+set}" = set; then
4811 $as_echo_n "(cached) " >&6
4812else
4813 # Double quotes because CPP needs to be expanded
4814 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4815 do
4816 ac_preproc_ok=false
4817for ac_c_preproc_warn_flag in '' yes
4818do
4819 # Use a header file that comes with gcc, so configuring glibc
4820 # with a fresh cross-compiler works.
4821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4822 # <limits.h> exists even on freestanding compilers.
4823 # On the NeXT, cc -E runs the code through the compiler's parser,
4824 # not just through cpp. "Syntax error" is here to catch this case.
4825 cat >conftest.$ac_ext <<_ACEOF
4826/* confdefs.h. */
4827_ACEOF
4828cat confdefs.h >>conftest.$ac_ext
4829cat >>conftest.$ac_ext <<_ACEOF
4830/* end confdefs.h. */
4831#ifdef __STDC__
4832# include <limits.h>
4833#else
4834# include <assert.h>
4835#endif
4836 Syntax error
4837_ACEOF
4838if { (ac_try="$ac_cpp conftest.$ac_ext"
4839case "(($ac_try" in
4840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4841 *) ac_try_echo=$ac_try;;
4842esac
4843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4844$as_echo "$ac_try_echo") >&5
4845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4846 ac_status=$?
4847 grep -v '^ *+' conftest.er1 >conftest.err
4848 rm -f conftest.er1
4849 cat conftest.err >&5
4850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } >/dev/null && {
4852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4853 test ! -s conftest.err
4854 }; then
4855 :
4856else
4857 $as_echo "$as_me: failed program was:" >&5
4858sed 's/^/| /' conftest.$ac_ext >&5
4859
4860 # Broken: fails on valid input.
4861continue
4862fi
4863
4864rm -f conftest.err conftest.$ac_ext
4865
4866 # OK, works on sane cases. Now check whether nonexistent headers
4867 # can be detected and how.
4868 cat >conftest.$ac_ext <<_ACEOF
4869/* confdefs.h. */
4870_ACEOF
4871cat confdefs.h >>conftest.$ac_ext
4872cat >>conftest.$ac_ext <<_ACEOF
4873/* end confdefs.h. */
4874#include <ac_nonexistent.h>
4875_ACEOF
4876if { (ac_try="$ac_cpp conftest.$ac_ext"
4877case "(($ac_try" in
4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879 *) ac_try_echo=$ac_try;;
4880esac
4881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4882$as_echo "$ac_try_echo") >&5
4883 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4884 ac_status=$?
4885 grep -v '^ *+' conftest.er1 >conftest.err
4886 rm -f conftest.er1
4887 cat conftest.err >&5
4888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4889 (exit $ac_status); } >/dev/null && {
4890 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4891 test ! -s conftest.err
4892 }; then
4893 # Broken: success on invalid input.
4894continue
4895else
4896 $as_echo "$as_me: failed program was:" >&5
4897sed 's/^/| /' conftest.$ac_ext >&5
4898
4899 # Passes both tests.
4900ac_preproc_ok=:
4901break
4902fi
4903
4904rm -f conftest.err conftest.$ac_ext
4905
4906done
4907# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4908rm -f conftest.err conftest.$ac_ext
4909if $ac_preproc_ok; then
4910 break
4911fi
4912
4913 done
4914 ac_cv_prog_CPP=$CPP
4915
4916fi
4917 CPP=$ac_cv_prog_CPP
4918else
4919 ac_cv_prog_CPP=$CPP
4920fi
4921{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4922$as_echo "$CPP" >&6; }
4923ac_preproc_ok=false
4924for ac_c_preproc_warn_flag in '' yes
4925do
4926 # Use a header file that comes with gcc, so configuring glibc
4927 # with a fresh cross-compiler works.
4928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4929 # <limits.h> exists even on freestanding compilers.
4930 # On the NeXT, cc -E runs the code through the compiler's parser,
4931 # not just through cpp. "Syntax error" is here to catch this case.
4932 cat >conftest.$ac_ext <<_ACEOF
4933/* confdefs.h. */
4934_ACEOF
4935cat confdefs.h >>conftest.$ac_ext
4936cat >>conftest.$ac_ext <<_ACEOF
4937/* end confdefs.h. */
4938#ifdef __STDC__
4939# include <limits.h>
4940#else
4941# include <assert.h>
4942#endif
4943 Syntax error
4944_ACEOF
4945if { (ac_try="$ac_cpp conftest.$ac_ext"
4946case "(($ac_try" in
4947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4948 *) ac_try_echo=$ac_try;;
4949esac
4950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4951$as_echo "$ac_try_echo") >&5
4952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4953 ac_status=$?
4954 grep -v '^ *+' conftest.er1 >conftest.err
4955 rm -f conftest.er1
4956 cat conftest.err >&5
4957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } >/dev/null && {
4959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4960 test ! -s conftest.err
4961 }; then
4962 :
4963else
4964 $as_echo "$as_me: failed program was:" >&5
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
4967 # Broken: fails on valid input.
4968continue
4969fi
4970
4971rm -f conftest.err conftest.$ac_ext
4972
4973 # OK, works on sane cases. Now check whether nonexistent headers
4974 # can be detected and how.
4975 cat >conftest.$ac_ext <<_ACEOF
4976/* confdefs.h. */
4977_ACEOF
4978cat confdefs.h >>conftest.$ac_ext
4979cat >>conftest.$ac_ext <<_ACEOF
4980/* end confdefs.h. */
4981#include <ac_nonexistent.h>
4982_ACEOF
4983if { (ac_try="$ac_cpp conftest.$ac_ext"
4984case "(($ac_try" in
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4987esac
4988eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4989$as_echo "$ac_try_echo") >&5
4990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4991 ac_status=$?
4992 grep -v '^ *+' conftest.er1 >conftest.err
4993 rm -f conftest.er1
4994 cat conftest.err >&5
4995 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } >/dev/null && {
4997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4998 test ! -s conftest.err
4999 }; then
5000 # Broken: success on invalid input.
5001continue
5002else
5003 $as_echo "$as_me: failed program was:" >&5
5004sed 's/^/| /' conftest.$ac_ext >&5
5005
5006 # Passes both tests.
5007ac_preproc_ok=:
5008break
5009fi
5010
5011rm -f conftest.err conftest.$ac_ext
5012
5013done
5014# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5015rm -f conftest.err conftest.$ac_ext
5016if $ac_preproc_ok; then
5017 :
5018else
5019 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5021{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5022See \`config.log' for more details." >&5
5023$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5024See \`config.log' for more details." >&2;}
5025 { (exit 1); exit 1; }; }; }
5026fi
5027
5028ac_ext=c
5029ac_cpp='$CPP $CPPFLAGS'
5030ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5031ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5032ac_compiler_gnu=$ac_cv_c_compiler_gnu
5033
5034{ $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5035$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5036if test "${ac_cv_path_SED+set}" = set; then
5037 $as_echo_n "(cached) " >&6
5038else
5039 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5040 for ac_i in 1 2 3 4 5 6 7; do
5041 ac_script="$ac_script$as_nl$ac_script"
5042 done
5043 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5044 $as_unset ac_script || ac_script=
5045 if test -z "$SED"; then
5046 ac_path_SED_found=false
5047 # Loop through the user's path and test for each of PROGNAME-LIST
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049for as_dir in $PATH
5050do
5051 IFS=$as_save_IFS
5052 test -z "$as_dir" && as_dir=.
5053 for ac_prog in sed gsed; do
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5056 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5057# Check for GNU ac_path_SED and select it if it is found.
5058 # Check for GNU $ac_path_SED
5059case `"$ac_path_SED" --version 2>&1` in
5060*GNU*)
5061 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5062*)
5063 ac_count=0
5064 $as_echo_n 0123456789 >"conftest.in"
5065 while :
5066 do
5067 cat "conftest.in" "conftest.in" >"conftest.tmp"
5068 mv "conftest.tmp" "conftest.in"
5069 cp "conftest.in" "conftest.nl"
5070 $as_echo '' >> "conftest.nl"
5071 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5072 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5073 ac_count=`expr $ac_count + 1`
5074 if test $ac_count -gt ${ac_path_SED_max-0}; then
5075 # Best one so far, save it but keep looking for a better one
5076 ac_cv_path_SED="$ac_path_SED"
5077 ac_path_SED_max=$ac_count
5078 fi
5079 # 10*(2^10) chars as input seems more than enough
5080 test $ac_count -gt 10 && break
5081 done
5082 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5083esac
5084
5085 $ac_path_SED_found && break 3
5086 done
5087 done
5088done
5089IFS=$as_save_IFS
5090 if test -z "$ac_cv_path_SED"; then
5091 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
5092$as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
5093 { (exit 1); exit 1; }; }
5094 fi
5095else
5096 ac_cv_path_SED=$SED
5097fi
5098
5099fi
5100{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
5101$as_echo "$ac_cv_path_SED" >&6; }
5102 SED="$ac_cv_path_SED"
5103 rm -f conftest.sed
5104
5105test -z "$SED" && SED=sed
5106Xsed="$SED -e 1s/^X//"
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5119$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5120if test "${ac_cv_path_GREP+set}" = set; then
5121 $as_echo_n "(cached) " >&6
5122else
5123 if test -z "$GREP"; then
5124 ac_path_GREP_found=false
5125 # Loop through the user's path and test for each of PROGNAME-LIST
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5128do
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 for ac_prog in grep ggrep; do
5132 for ac_exec_ext in '' $ac_executable_extensions; do
5133 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5134 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5135# Check for GNU ac_path_GREP and select it if it is found.
5136 # Check for GNU $ac_path_GREP
5137case `"$ac_path_GREP" --version 2>&1` in
5138*GNU*)
5139 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5140*)
5141 ac_count=0
5142 $as_echo_n 0123456789 >"conftest.in"
5143 while :
5144 do
5145 cat "conftest.in" "conftest.in" >"conftest.tmp"
5146 mv "conftest.tmp" "conftest.in"
5147 cp "conftest.in" "conftest.nl"
5148 $as_echo 'GREP' >> "conftest.nl"
5149 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5150 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5151 ac_count=`expr $ac_count + 1`
5152 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5153 # Best one so far, save it but keep looking for a better one
5154 ac_cv_path_GREP="$ac_path_GREP"
5155 ac_path_GREP_max=$ac_count
5156 fi
5157 # 10*(2^10) chars as input seems more than enough
5158 test $ac_count -gt 10 && break
5159 done
5160 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5161esac
5162
5163 $ac_path_GREP_found && break 3
5164 done
5165 done
5166done
5167IFS=$as_save_IFS
5168 if test -z "$ac_cv_path_GREP"; then
5169 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5170$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5171 { (exit 1); exit 1; }; }
5172 fi
5173else
5174 ac_cv_path_GREP=$GREP
5175fi
5176
5177fi
5178{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5179$as_echo "$ac_cv_path_GREP" >&6; }
5180 GREP="$ac_cv_path_GREP"
5181
5182
5183{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
5184$as_echo_n "checking for egrep... " >&6; }
5185if test "${ac_cv_path_EGREP+set}" = set; then
5186 $as_echo_n "(cached) " >&6
5187else
5188 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5189 then ac_cv_path_EGREP="$GREP -E"
5190 else
5191 if test -z "$EGREP"; then
5192 ac_path_EGREP_found=false
5193 # Loop through the user's path and test for each of PROGNAME-LIST
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5196do
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_prog in egrep; do
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5202 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5203# Check for GNU ac_path_EGREP and select it if it is found.
5204 # Check for GNU $ac_path_EGREP
5205case `"$ac_path_EGREP" --version 2>&1` in
5206*GNU*)
5207 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5208*)
5209 ac_count=0
5210 $as_echo_n 0123456789 >"conftest.in"
5211 while :
5212 do
5213 cat "conftest.in" "conftest.in" >"conftest.tmp"
5214 mv "conftest.tmp" "conftest.in"
5215 cp "conftest.in" "conftest.nl"
5216 $as_echo 'EGREP' >> "conftest.nl"
5217 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5218 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5219 ac_count=`expr $ac_count + 1`
5220 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5221 # Best one so far, save it but keep looking for a better one
5222 ac_cv_path_EGREP="$ac_path_EGREP"
5223 ac_path_EGREP_max=$ac_count
5224 fi
5225 # 10*(2^10) chars as input seems more than enough
5226 test $ac_count -gt 10 && break
5227 done
5228 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5229esac
5230
5231 $ac_path_EGREP_found && break 3
5232 done
5233 done
5234done
5235IFS=$as_save_IFS
5236 if test -z "$ac_cv_path_EGREP"; then
5237 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5238$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5239 { (exit 1); exit 1; }; }
5240 fi
5241else
5242 ac_cv_path_EGREP=$EGREP
5243fi
5244
5245 fi
5246fi
5247{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5248$as_echo "$ac_cv_path_EGREP" >&6; }
5249 EGREP="$ac_cv_path_EGREP"
5250
5251
5252{ $as_echo "$as_me:$LINENO: checking for fgrep" >&5
5253$as_echo_n "checking for fgrep... " >&6; }
5254if test "${ac_cv_path_FGREP+set}" = set; then
5255 $as_echo_n "(cached) " >&6
5256else
5257 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5258 then ac_cv_path_FGREP="$GREP -F"
5259 else
5260 if test -z "$FGREP"; then
5261 ac_path_FGREP_found=false
5262 # Loop through the user's path and test for each of PROGNAME-LIST
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5265do
5266 IFS=$as_save_IFS
5267 test -z "$as_dir" && as_dir=.
5268 for ac_prog in fgrep; do
5269 for ac_exec_ext in '' $ac_executable_extensions; do
5270 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5271 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5272# Check for GNU ac_path_FGREP and select it if it is found.
5273 # Check for GNU $ac_path_FGREP
5274case `"$ac_path_FGREP" --version 2>&1` in
5275*GNU*)
5276 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5277*)
5278 ac_count=0
5279 $as_echo_n 0123456789 >"conftest.in"
5280 while :
5281 do
5282 cat "conftest.in" "conftest.in" >"conftest.tmp"
5283 mv "conftest.tmp" "conftest.in"
5284 cp "conftest.in" "conftest.nl"
5285 $as_echo 'FGREP' >> "conftest.nl"
5286 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5288 ac_count=`expr $ac_count + 1`
5289 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5290 # Best one so far, save it but keep looking for a better one
5291 ac_cv_path_FGREP="$ac_path_FGREP"
5292 ac_path_FGREP_max=$ac_count
5293 fi
5294 # 10*(2^10) chars as input seems more than enough
5295 test $ac_count -gt 10 && break
5296 done
5297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5298esac
5299
5300 $ac_path_FGREP_found && break 3
5301 done
5302 done
5303done
5304IFS=$as_save_IFS
5305 if test -z "$ac_cv_path_FGREP"; then
5306 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5307$as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5308 { (exit 1); exit 1; }; }
5309 fi
5310else
5311 ac_cv_path_FGREP=$FGREP
5312fi
5313
5314 fi
5315fi
5316{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
5317$as_echo "$ac_cv_path_FGREP" >&6; }
5318 FGREP="$ac_cv_path_FGREP"
5319
5320
5321test -z "$GREP" && GREP=grep
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341# Check whether --with-gnu-ld was given.
5342if test "${with_gnu_ld+set}" = set; then
5343 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5344else
5345 with_gnu_ld=no
5346fi
5347
5348ac_prog=ld
5349if test "$GCC" = yes; then
5350 # Check if gcc -print-prog-name=ld gives a path.
5351 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5352$as_echo_n "checking for ld used by $CC... " >&6; }
5353 case $host in
5354 *-*-mingw*)
5355 # gcc leaves a trailing carriage return which upsets mingw
5356 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5357 *)
5358 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5359 esac
5360 case $ac_prog in
5361 # Accept absolute paths.
5362 [\\/]* | ?:[\\/]*)
5363 re_direlt='/[^/][^/]*/\.\./'
5364 # Canonicalize the pathname of ld
5365 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5366 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5367 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5368 done
5369 test -z "$LD" && LD="$ac_prog"
5370 ;;
5371 "")
5372 # If it fails, then pretend we aren't using GCC.
5373 ac_prog=ld
5374 ;;
5375 *)
5376 # If it is relative, then search for the first ld in PATH.
5377 with_gnu_ld=unknown
5378 ;;
5379 esac
5380elif test "$with_gnu_ld" = yes; then
5381 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
5382$as_echo_n "checking for GNU ld... " >&6; }
5383else
5384 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5385$as_echo_n "checking for non-GNU ld... " >&6; }
5386fi
5387if test "${lt_cv_path_LD+set}" = set; then
5388 $as_echo_n "(cached) " >&6
5389else
5390 if test -z "$LD"; then
5391 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5392 for ac_dir in $PATH; do
5393 IFS="$lt_save_ifs"
5394 test -z "$ac_dir" && ac_dir=.
5395 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5396 lt_cv_path_LD="$ac_dir/$ac_prog"
5397 # Check to see if the program is GNU ld. I'd rather use --version,
5398 # but apparently some variants of GNU ld only accept -v.
5399 # Break only if it was the GNU/non-GNU ld that we prefer.
5400 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5401 *GNU* | *'with BFD'*)
5402 test "$with_gnu_ld" != no && break
5403 ;;
5404 *)
5405 test "$with_gnu_ld" != yes && break
5406 ;;
5407 esac
5408 fi
5409 done
5410 IFS="$lt_save_ifs"
5411else
5412 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5413fi
5414fi
5415
5416LD="$lt_cv_path_LD"
5417if test -n "$LD"; then
5418 { $as_echo "$as_me:$LINENO: result: $LD" >&5
5419$as_echo "$LD" >&6; }
5420else
5421 { $as_echo "$as_me:$LINENO: result: no" >&5
5422$as_echo "no" >&6; }
5423fi
5424test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5425$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5426 { (exit 1); exit 1; }; }
5427{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5428$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5429if test "${lt_cv_prog_gnu_ld+set}" = set; then
5430 $as_echo_n "(cached) " >&6
5431else
5432 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5433case `$LD -v 2>&1 </dev/null` in
5434*GNU* | *'with BFD'*)
5435 lt_cv_prog_gnu_ld=yes
5436 ;;
5437*)
5438 lt_cv_prog_gnu_ld=no
5439 ;;
5440esac
5441fi
5442{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5443$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5444with_gnu_ld=$lt_cv_prog_gnu_ld
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454if test -n "$ac_tool_prefix"; then
5455 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5456set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5457{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5458$as_echo_n "checking for $ac_word... " >&6; }
5459if test "${ac_cv_prog_RANLIB+set}" = set; then
5460 $as_echo_n "(cached) " >&6
5461else
5462 if test -n "$RANLIB"; then
5463 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5464else
5465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466for as_dir in $PATH
5467do
5468 IFS=$as_save_IFS
5469 test -z "$as_dir" && as_dir=.
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5472 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5473 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 break 2
5475 fi
5476done
5477done
5478IFS=$as_save_IFS
5479
5480fi
5481fi
5482RANLIB=$ac_cv_prog_RANLIB
5483if test -n "$RANLIB"; then
5484 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5485$as_echo "$RANLIB" >&6; }
5486else
5487 { $as_echo "$as_me:$LINENO: result: no" >&5
5488$as_echo "no" >&6; }
5489fi
5490
5491
5492fi
5493if test -z "$ac_cv_prog_RANLIB"; then
5494 ac_ct_RANLIB=$RANLIB
5495 # Extract the first word of "ranlib", so it can be a program name with args.
5496set dummy ranlib; ac_word=$2
5497{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5498$as_echo_n "checking for $ac_word... " >&6; }
5499if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5500 $as_echo_n "(cached) " >&6
5501else
5502 if test -n "$ac_ct_RANLIB"; then
5503 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5504else
5505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5506for as_dir in $PATH
5507do
5508 IFS=$as_save_IFS
5509 test -z "$as_dir" && as_dir=.
5510 for ac_exec_ext in '' $ac_executable_extensions; do
5511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5512 ac_cv_prog_ac_ct_RANLIB="ranlib"
5513 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 break 2
5515 fi
5516done
5517done
5518IFS=$as_save_IFS
5519
5520fi
5521fi
5522ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5523if test -n "$ac_ct_RANLIB"; then
5524 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5525$as_echo "$ac_ct_RANLIB" >&6; }
5526else
5527 { $as_echo "$as_me:$LINENO: result: no" >&5
5528$as_echo "no" >&6; }
5529fi
5530
5531 if test "x$ac_ct_RANLIB" = x; then
5532 RANLIB=":"
5533 else
5534 case $cross_compiling:$ac_tool_warned in
5535yes:)
5536{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5538ac_tool_warned=yes ;;
5539esac
5540 RANLIB=$ac_ct_RANLIB
5541 fi
5542else
5543 RANLIB="$ac_cv_prog_RANLIB"
5544fi
5545
5546
5547if test "x$CC" != xcc; then
5548 { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
5549$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5550else
5551 { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
5552$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5553fi
5554set dummy $CC; ac_cc=`$as_echo "$2" |
5555 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5556if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
5557 $as_echo_n "(cached) " >&6
5558else
5559 cat >conftest.$ac_ext <<_ACEOF
5560/* confdefs.h. */
5561_ACEOF
5562cat confdefs.h >>conftest.$ac_ext
5563cat >>conftest.$ac_ext <<_ACEOF
5564/* end confdefs.h. */
5565
5566int
5567main ()
5568{
5569
5570 ;
5571 return 0;
5572}
5573_ACEOF
5574# Make sure it works both with $CC and with simple cc.
5575# We do the test twice because some compilers refuse to overwrite an
5576# existing .o file with -o, though they will create one.
5577ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5578rm -f conftest2.*
5579if { (case "(($ac_try" in
5580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5581 *) ac_try_echo=$ac_try;;
5582esac
5583eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5584$as_echo "$ac_try_echo") >&5
5585 (eval "$ac_try") 2>&5
5586 ac_status=$?
5587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } &&
5589 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591 *) ac_try_echo=$ac_try;;
5592esac
5593eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5594$as_echo "$ac_try_echo") >&5
5595 (eval "$ac_try") 2>&5
5596 ac_status=$?
5597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); };
5599then
5600 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5601 if test "x$CC" != xcc; then
5602 # Test first that cc exists at all.
5603 if { ac_try='cc -c conftest.$ac_ext >&5'
5604 { (case "(($ac_try" in
5605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5607esac
5608eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5609$as_echo "$ac_try_echo") >&5
5610 (eval "$ac_try") 2>&5
5611 ac_status=$?
5612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); }; }; then
5614 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5615 rm -f conftest2.*
5616 if { (case "(($ac_try" in
5617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5619esac
5620eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5621$as_echo "$ac_try_echo") >&5
5622 (eval "$ac_try") 2>&5
5623 ac_status=$?
5624 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5625 (exit $ac_status); } &&
5626 test -f conftest2.$ac_objext && { (case "(($ac_try" in
5627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628 *) ac_try_echo=$ac_try;;
5629esac
5630eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5631$as_echo "$ac_try_echo") >&5
5632 (eval "$ac_try") 2>&5
5633 ac_status=$?
5634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); };
5636 then
5637 # cc works too.
5638 :
5639 else
5640 # cc exists but doesn't like -o.
5641 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5642 fi
5643 fi
5644 fi
5645else
5646 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5647fi
5648rm -f core conftest*
5649
5650fi
5651if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5652 { $as_echo "$as_me:$LINENO: result: yes" >&5
5653$as_echo "yes" >&6; }
5654else
5655 { $as_echo "$as_me:$LINENO: result: no" >&5
5656$as_echo "no" >&6; }
5657
5658cat >>confdefs.h <<\_ACEOF
5659#define NO_MINUS_C_MINUS_O 1
5660_ACEOF
5661
5662fi
5663
5664# FIXME: we rely on the cache variable name because
5665# there is no other way.
5666set dummy $CC
5667am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5668eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5669if test "$am_t" != yes; then
5670 # Losing compiler, so override with the script.
5671 # FIXME: It is wrong to rewrite CC.
5672 # But if we don't then we get into trouble of one sort or another.
5673 # A longer-term fix would be to have automake use am__CC in this case,
5674 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5675 CC="$am_aux_dir/compile $CC"
5676fi
5677
5678
5679# Find a good install program. We prefer a C program (faster),
5680# so one script is as good as another. But avoid the broken or
5681# incompatible versions:
5682# SysV /etc/install, /usr/sbin/install
5683# SunOS /usr/etc/install
5684# IRIX /sbin/install
5685# AIX /bin/install
5686# AmigaOS /C/install, which installs bootblocks on floppy discs
5687# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5688# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5689# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5690# OS/2's system install, which has a completely different semantic
5691# ./install, which can be erroneously created by make from ./install.sh.
5692# Reject install programs that cannot install multiple files.
5693{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5694$as_echo_n "checking for a BSD-compatible install... " >&6; }
5695if test -z "$INSTALL"; then
5696if test "${ac_cv_path_install+set}" = set; then
5697 $as_echo_n "(cached) " >&6
5698else
5699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700for as_dir in $PATH
5701do
5702 IFS=$as_save_IFS
5703 test -z "$as_dir" && as_dir=.
5704 # Account for people who put trailing slashes in PATH elements.
5705case $as_dir/ in
5706 ./ | .// | /cC/* | \
5707 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5708 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5709 /usr/ucb/* ) ;;
5710 *)
5711 # OSF1 and SCO ODT 3.0 have their own names for install.
5712 # Don't use installbsd from OSF since it installs stuff as root
5713 # by default.
5714 for ac_prog in ginstall scoinst install; do
5715 for ac_exec_ext in '' $ac_executable_extensions; do
5716 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5717 if test $ac_prog = install &&
5718 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5719 # AIX install. It has an incompatible calling convention.
5720 :
5721 elif test $ac_prog = install &&
5722 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5723 # program-specific install script used by HP pwplus--don't use.
5724 :
5725 else
5726 rm -rf conftest.one conftest.two conftest.dir
5727 echo one > conftest.one
5728 echo two > conftest.two
5729 mkdir conftest.dir
5730 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5731 test -s conftest.one && test -s conftest.two &&
5732 test -s conftest.dir/conftest.one &&
5733 test -s conftest.dir/conftest.two
5734 then
5735 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5736 break 3
5737 fi
5738 fi
5739 fi
5740 done
5741 done
5742 ;;
5743esac
5744
5745done
5746IFS=$as_save_IFS
5747
5748rm -rf conftest.one conftest.two conftest.dir
5749
5750fi
5751 if test "${ac_cv_path_install+set}" = set; then
5752 INSTALL=$ac_cv_path_install
5753 else
5754 # As a last resort, use the slow shell script. Don't cache a
5755 # value for INSTALL within a source directory, because that will
5756 # break other packages using the cache if that directory is
5757 # removed, or if the value is a relative name.
5758 INSTALL=$ac_install_sh
5759 fi
5760fi
5761{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5762$as_echo "$INSTALL" >&6; }
5763
5764# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5765# It thinks the first close brace ends the variable substitution.
5766test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5767
5768test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5769
5770test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5771
5772{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5773$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5774set x ${MAKE-make}
5775ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5776if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
5777 $as_echo_n "(cached) " >&6
5778else
5779 cat >conftest.make <<\_ACEOF
5780SHELL = /bin/sh
5781all:
5782 @echo '@@@%%%=$(MAKE)=@@@%%%'
5783_ACEOF
5784# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5785case `${MAKE-make} -f conftest.make 2>/dev/null` in
5786 *@@@%%%=?*=@@@%%%*)
5787 eval ac_cv_prog_make_${ac_make}_set=yes;;
5788 *)
5789 eval ac_cv_prog_make_${ac_make}_set=no;;
5790esac
5791rm -f conftest.make
5792fi
5793if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5794 { $as_echo "$as_me:$LINENO: result: yes" >&5
5795$as_echo "yes" >&6; }
5796 SET_MAKE=
5797else
5798 { $as_echo "$as_me:$LINENO: result: no" >&5
5799$as_echo "no" >&6; }
5800 SET_MAKE="MAKE=${MAKE-make}"
5801fi
5802
5803ac_ext=cpp
5804ac_cpp='$CXXCPP $CPPFLAGS'
5805ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5806ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5807ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5808if test -z "$CXX"; then
5809 if test -n "$CCC"; then
5810 CXX=$CCC
5811 else
5812 if test -n "$ac_tool_prefix"; then
5813 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5814 do
5815 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5816set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5817{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5818$as_echo_n "checking for $ac_word... " >&6; }
5819if test "${ac_cv_prog_CXX+set}" = set; then
5820 $as_echo_n "(cached) " >&6
5821else
5822 if test -n "$CXX"; then
5823 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5824else
5825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826for as_dir in $PATH
5827do
5828 IFS=$as_save_IFS
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5832 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5833 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5834 break 2
5835 fi
5836done
5837done
5838IFS=$as_save_IFS
5839
5840fi
5841fi
5842CXX=$ac_cv_prog_CXX
5843if test -n "$CXX"; then
5844 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5845$as_echo "$CXX" >&6; }
5846else
5847 { $as_echo "$as_me:$LINENO: result: no" >&5
5848$as_echo "no" >&6; }
5849fi
5850
5851
5852 test -n "$CXX" && break
5853 done
5854fi
5855if test -z "$CXX"; then
5856 ac_ct_CXX=$CXX
5857 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5858do
5859 # Extract the first word of "$ac_prog", so it can be a program name with args.
5860set dummy $ac_prog; ac_word=$2
5861{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5862$as_echo_n "checking for $ac_word... " >&6; }
5863if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5864 $as_echo_n "(cached) " >&6
5865else
5866 if test -n "$ac_ct_CXX"; then
5867 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5868else
5869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870for as_dir in $PATH
5871do
5872 IFS=$as_save_IFS
5873 test -z "$as_dir" && as_dir=.
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5876 ac_cv_prog_ac_ct_CXX="$ac_prog"
5877 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5878 break 2
5879 fi
5880done
5881done
5882IFS=$as_save_IFS
5883
5884fi
5885fi
5886ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5887if test -n "$ac_ct_CXX"; then
5888 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5889$as_echo "$ac_ct_CXX" >&6; }
5890else
5891 { $as_echo "$as_me:$LINENO: result: no" >&5
5892$as_echo "no" >&6; }
5893fi
5894
5895
5896 test -n "$ac_ct_CXX" && break
5897done
5898
5899 if test "x$ac_ct_CXX" = x; then
5900 CXX="g++"
5901 else
5902 case $cross_compiling:$ac_tool_warned in
5903yes:)
5904{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5905$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5906ac_tool_warned=yes ;;
5907esac
5908 CXX=$ac_ct_CXX
5909 fi
5910fi
5911
5912 fi
5913fi
5914# Provide some information about the compiler.
5915$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5916set X $ac_compile
5917ac_compiler=$2
5918{ (ac_try="$ac_compiler --version >&5"
5919case "(($ac_try" in
5920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5922esac
5923eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5924$as_echo "$ac_try_echo") >&5
5925 (eval "$ac_compiler --version >&5") 2>&5
5926 ac_status=$?
5927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }
5929{ (ac_try="$ac_compiler -v >&5"
5930case "(($ac_try" in
5931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932 *) ac_try_echo=$ac_try;;
5933esac
5934eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5935$as_echo "$ac_try_echo") >&5
5936 (eval "$ac_compiler -v >&5") 2>&5
5937 ac_status=$?
5938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); }
5940{ (ac_try="$ac_compiler -V >&5"
5941case "(($ac_try" in
5942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943 *) ac_try_echo=$ac_try;;
5944esac
5945eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5946$as_echo "$ac_try_echo") >&5
5947 (eval "$ac_compiler -V >&5") 2>&5
5948 ac_status=$?
5949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); }
5951
5952{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5953$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5954if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5955 $as_echo_n "(cached) " >&6
5956else
5957 cat >conftest.$ac_ext <<_ACEOF
5958/* confdefs.h. */
5959_ACEOF
5960cat confdefs.h >>conftest.$ac_ext
5961cat >>conftest.$ac_ext <<_ACEOF
5962/* end confdefs.h. */
5963
5964int
5965main ()
5966{
5967#ifndef __GNUC__
5968 choke me
5969#endif
5970
5971 ;
5972 return 0;
5973}
5974_ACEOF
5975rm -f conftest.$ac_objext
5976if { (ac_try="$ac_compile"
5977case "(($ac_try" in
5978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5979 *) ac_try_echo=$ac_try;;
5980esac
5981eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5982$as_echo "$ac_try_echo") >&5
5983 (eval "$ac_compile") 2>conftest.er1
5984 ac_status=$?
5985 grep -v '^ *+' conftest.er1 >conftest.err
5986 rm -f conftest.er1
5987 cat conftest.err >&5
5988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); } && {
5990 test -z "$ac_cxx_werror_flag" ||
5991 test ! -s conftest.err
5992 } && test -s conftest.$ac_objext; then
5993 ac_compiler_gnu=yes
5994else
5995 $as_echo "$as_me: failed program was:" >&5
5996sed 's/^/| /' conftest.$ac_ext >&5
5997
5998 ac_compiler_gnu=no
5999fi
6000
6001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6002ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6003
6004fi
6005{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6006$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6007if test $ac_compiler_gnu = yes; then
6008 GXX=yes
6009else
6010 GXX=
6011fi
6012ac_test_CXXFLAGS=${CXXFLAGS+set}
6013ac_save_CXXFLAGS=$CXXFLAGS
6014{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6015$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6016if test "${ac_cv_prog_cxx_g+set}" = set; then
6017 $as_echo_n "(cached) " >&6
6018else
6019 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6020 ac_cxx_werror_flag=yes
6021 ac_cv_prog_cxx_g=no
6022 CXXFLAGS="-g"
6023 cat >conftest.$ac_ext <<_ACEOF
6024/* confdefs.h. */
6025_ACEOF
6026cat confdefs.h >>conftest.$ac_ext
6027cat >>conftest.$ac_ext <<_ACEOF
6028/* end confdefs.h. */
6029
6030int
6031main ()
6032{
6033
6034 ;
6035 return 0;
6036}
6037_ACEOF
6038rm -f conftest.$ac_objext
6039if { (ac_try="$ac_compile"
6040case "(($ac_try" in
6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6043esac
6044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6045$as_echo "$ac_try_echo") >&5
6046 (eval "$ac_compile") 2>conftest.er1
6047 ac_status=$?
6048 grep -v '^ *+' conftest.er1 >conftest.err
6049 rm -f conftest.er1
6050 cat conftest.err >&5
6051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } && {
6053 test -z "$ac_cxx_werror_flag" ||
6054 test ! -s conftest.err
6055 } && test -s conftest.$ac_objext; then
6056 ac_cv_prog_cxx_g=yes
6057else
6058 $as_echo "$as_me: failed program was:" >&5
6059sed 's/^/| /' conftest.$ac_ext >&5
6060
6061 CXXFLAGS=""
6062 cat >conftest.$ac_ext <<_ACEOF
6063/* confdefs.h. */
6064_ACEOF
6065cat confdefs.h >>conftest.$ac_ext
6066cat >>conftest.$ac_ext <<_ACEOF
6067/* end confdefs.h. */
6068
6069int
6070main ()
6071{
6072
6073 ;
6074 return 0;
6075}
6076_ACEOF
6077rm -f conftest.$ac_objext
6078if { (ac_try="$ac_compile"
6079case "(($ac_try" in
6080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081 *) ac_try_echo=$ac_try;;
6082esac
6083eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6084$as_echo "$ac_try_echo") >&5
6085 (eval "$ac_compile") 2>conftest.er1
6086 ac_status=$?
6087 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -f conftest.er1
6089 cat conftest.err >&5
6090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } && {
6092 test -z "$ac_cxx_werror_flag" ||
6093 test ! -s conftest.err
6094 } && test -s conftest.$ac_objext; then
6095 :
6096else
6097 $as_echo "$as_me: failed program was:" >&5
6098sed 's/^/| /' conftest.$ac_ext >&5
6099
6100 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6101 CXXFLAGS="-g"
6102 cat >conftest.$ac_ext <<_ACEOF
6103/* confdefs.h. */
6104_ACEOF
6105cat confdefs.h >>conftest.$ac_ext
6106cat >>conftest.$ac_ext <<_ACEOF
6107/* end confdefs.h. */
6108
6109int
6110main ()
6111{
6112
6113 ;
6114 return 0;
6115}
6116_ACEOF
6117rm -f conftest.$ac_objext
6118if { (ac_try="$ac_compile"
6119case "(($ac_try" in
6120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6121 *) ac_try_echo=$ac_try;;
6122esac
6123eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6124$as_echo "$ac_try_echo") >&5
6125 (eval "$ac_compile") 2>conftest.er1
6126 ac_status=$?
6127 grep -v '^ *+' conftest.er1 >conftest.err
6128 rm -f conftest.er1
6129 cat conftest.err >&5
6130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6131 (exit $ac_status); } && {
6132 test -z "$ac_cxx_werror_flag" ||
6133 test ! -s conftest.err
6134 } && test -s conftest.$ac_objext; then
6135 ac_cv_prog_cxx_g=yes
6136else
6137 $as_echo "$as_me: failed program was:" >&5
6138sed 's/^/| /' conftest.$ac_ext >&5
6139
6140
6141fi
6142
6143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144fi
6145
6146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6147fi
6148
6149rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6150 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6151fi
6152{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6153$as_echo "$ac_cv_prog_cxx_g" >&6; }
6154if test "$ac_test_CXXFLAGS" = set; then
6155 CXXFLAGS=$ac_save_CXXFLAGS
6156elif test $ac_cv_prog_cxx_g = yes; then
6157 if test "$GXX" = yes; then
6158 CXXFLAGS="-g -O2"
6159 else
6160 CXXFLAGS="-g"
6161 fi
6162else
6163 if test "$GXX" = yes; then
6164 CXXFLAGS="-O2"
6165 else
6166 CXXFLAGS=
6167 fi
6168fi
6169ac_ext=c
6170ac_cpp='$CPP $CPPFLAGS'
6171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6173ac_compiler_gnu=$ac_cv_c_compiler_gnu
6174
6175depcc="$CXX" am_compiler_list=
6176
6177{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6178$as_echo_n "checking dependency style of $depcc... " >&6; }
6179if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6180 $as_echo_n "(cached) " >&6
6181else
6182 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6183 # We make a subdir and do the tests there. Otherwise we can end up
6184 # making bogus files that we don't know about and never remove. For
6185 # instance it was reported that on HP-UX the gcc test will end up
6186 # making a dummy file named `D' -- because `-MD' means `put the output
6187 # in D'.
6188 mkdir conftest.dir
6189 # Copy depcomp to subdir because otherwise we won't find it if we're
6190 # using a relative directory.
6191 cp "$am_depcomp" conftest.dir
6192 cd conftest.dir
6193 # We will build objects and dependencies in a subdirectory because
6194 # it helps to detect inapplicable dependency modes. For instance
6195 # both Tru64's cc and ICC support -MD to output dependencies as a
6196 # side effect of compilation, but ICC will put the dependencies in
6197 # the current directory while Tru64 will put them in the object
6198 # directory.
6199 mkdir sub
6200
6201 am_cv_CXX_dependencies_compiler_type=none
6202 if test "$am_compiler_list" = ""; then
6203 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6204 fi
6205 am__universal=false
6206 case " $depcc " in #(
6207 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6208 esac
6209
6210 for depmode in $am_compiler_list; do
6211 # Setup a source with many dependencies, because some compilers
6212 # like to wrap large dependency lists on column 80 (with \), and
6213 # we should not choose a depcomp mode which is confused by this.
6214 #
6215 # We need to recreate these files for each test, as the compiler may
6216 # overwrite some of them when testing with obscure command lines.
6217 # This happens at least with the AIX C compiler.
6218 : > sub/conftest.c
6219 for i in 1 2 3 4 5 6; do
6220 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6221 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6222 # Solaris 8's {/usr,}/bin/sh.
6223 touch sub/conftst$i.h
6224 done
6225 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6226
6227 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6228 # mode. It turns out that the SunPro C++ compiler does not properly
6229 # handle `-M -o', and we need to detect this. Also, some Intel
6230 # versions had trouble with output in subdirs
6231 am__obj=sub/conftest.${OBJEXT-o}
6232 am__minus_obj="-o $am__obj"
6233 case $depmode in
6234 gcc)
6235 # This depmode causes a compiler race in universal mode.
6236 test "$am__universal" = false || continue
6237 ;;
6238 nosideeffect)
6239 # after this tag, mechanisms are not by side-effect, so they'll
6240 # only be used when explicitly requested
6241 if test "x$enable_dependency_tracking" = xyes; then
6242 continue
6243 else
6244 break
6245 fi
6246 ;;
6247 msvisualcpp | msvcmsys)
6248 # This compiler won't grok `-c -o', but also, the minuso test has
6249 # not run yet. These depmodes are late enough in the game, and
6250 # so weak that their functioning should not be impacted.
6251 am__obj=conftest.${OBJEXT-o}
6252 am__minus_obj=
6253 ;;
6254 none) break ;;
6255 esac
6256 if depmode=$depmode \
6257 source=sub/conftest.c object=$am__obj \
6258 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6259 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6260 >/dev/null 2>conftest.err &&
6261 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6262 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6263 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6264 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6265 # icc doesn't choke on unknown options, it will just issue warnings
6266 # or remarks (even with -Werror). So we grep stderr for any message
6267 # that says an option was ignored or not supported.
6268 # When given -MP, icc 7.0 and 7.1 complain thusly:
6269 # icc: Command line warning: ignoring option '-M'; no argument required
6270 # The diagnosis changed in icc 8.0:
6271 # icc: Command line remark: option '-MP' not supported
6272 if (grep 'ignoring option' conftest.err ||
6273 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6274 am_cv_CXX_dependencies_compiler_type=$depmode
6275 break
6276 fi
6277 fi
6278 done
6279
6280 cd ..
6281 rm -rf conftest.dir
6282else
6283 am_cv_CXX_dependencies_compiler_type=none
6284fi
6285
6286fi
6287{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6288$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6289CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6290
6291 if
6292 test "x$enable_dependency_tracking" != xno \
6293 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6294 am__fastdepCXX_TRUE=
6295 am__fastdepCXX_FALSE='#'
6296else
6297 am__fastdepCXX_TRUE='#'
6298 am__fastdepCXX_FALSE=
6299fi
6300
6301
6302
6303{ $as_echo "$as_me:$LINENO: checking maximum warning verbosity option" >&5
6304$as_echo_n "checking maximum warning verbosity option... " >&6; }
6305
6306
6307
6308
6309# Check whether --with-maximum-compile-warnings was given.
6310if test "${with_maximum_compile_warnings+set}" = set; then
6311 withval=$with_maximum_compile_warnings; ac_compile_warnings_on="$withval"
6312else
6313 ac_compile_warnings_on=""
6314fi
6315
6316
6317 if test x"$ac_compile_warnings_on" = xno
6318 then
6319 ac_compile_warnings_msg=no
6320 else
6321 if test -n "$CXX"
6322 then
6323 if test "$GXX" = "yes"
6324 then
6325 ac_compile_warnings_opt='-Wall -W'
6326 fi
6327 CXXFLAGS="$CXXFLAGS $ac_compile_warnings_opt"
6328 ac_compile_warnings_msg="$ac_compile_warnings_opt for C++"
6329 fi
6330
6331 if test -n "$CC"
6332 then
6333 if test "$GCC" = "yes"
6334 then
6335 ac_compile_warnings_opt='-Wall -W'
6336 fi
6337 CFLAGS="$CFLAGS $ac_compile_warnings_opt"
6338 ac_compile_warnings_msg="$ac_compile_warnings_msg $ac_compile_warnings_opt for C"
6339 fi
6340 fi
6341 { $as_echo "$as_me:$LINENO: result: $ac_compile_warnings_msg" >&5
6342$as_echo "$ac_compile_warnings_msg" >&6; }
6343 unset ac_compile_warnings_msg
6344 unset ac_compile_warnings_opt
6345
6346{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
6347$as_echo_n "checking whether ln -s works... " >&6; }
6348LN_S=$as_ln_s
6349if test "$LN_S" = "ln -s"; then
6350 { $as_echo "$as_me:$LINENO: result: yes" >&5
6351$as_echo "yes" >&6; }
6352else
6353 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6354$as_echo "no, using $LN_S" >&6; }
6355fi
6356
6357{ $as_echo "$as_me:$LINENO: checking if malloc debugging is wanted" >&5
6358$as_echo_n "checking if malloc debugging is wanted... " >&6; }
6359
6360# Check whether --with-dmalloc was given.
6361if test "${with_dmalloc+set}" = set; then
6362 withval=$with_dmalloc; if test "$withval" = yes; then
6363 { $as_echo "$as_me:$LINENO: result: yes" >&5
6364$as_echo "yes" >&6; }
6365
6366cat >>confdefs.h <<\_ACEOF
6367#define WITH_DMALLOC 1
6368_ACEOF
6369
6370 LIBS="$LIBS -ldmalloc"
6371 LDFLAGS="$LDFLAGS -g"
6372else
6373 { $as_echo "$as_me:$LINENO: result: no" >&5
6374$as_echo "no" >&6; }
6375fi
6376else
6377 { $as_echo "$as_me:$LINENO: result: no" >&5
6378$as_echo "no" >&6; }
6379fi
6380
6381
6382
6383
6384if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6385 if test -n "$ac_tool_prefix"; then
6386 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6387set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6388{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6389$as_echo_n "checking for $ac_word... " >&6; }
6390if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6391 $as_echo_n "(cached) " >&6
6392else
6393 case $PKG_CONFIG in
6394 [\\/]* | ?:[\\/]*)
6395 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6396 ;;
6397 *)
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399for as_dir in $PATH
6400do
6401 IFS=$as_save_IFS
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6405 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6406 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 break 2
6408 fi
6409done
6410done
6411IFS=$as_save_IFS
6412
6413 ;;
6414esac
6415fi
6416PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6417if test -n "$PKG_CONFIG"; then
6418 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6419$as_echo "$PKG_CONFIG" >&6; }
6420else
6421 { $as_echo "$as_me:$LINENO: result: no" >&5
6422$as_echo "no" >&6; }
6423fi
6424
6425
6426fi
6427if test -z "$ac_cv_path_PKG_CONFIG"; then
6428 ac_pt_PKG_CONFIG=$PKG_CONFIG
6429 # Extract the first word of "pkg-config", so it can be a program name with args.
6430set dummy pkg-config; ac_word=$2
6431{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6432$as_echo_n "checking for $ac_word... " >&6; }
6433if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
6434 $as_echo_n "(cached) " >&6
6435else
6436 case $ac_pt_PKG_CONFIG in
6437 [\\/]* | ?:[\\/]*)
6438 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6439 ;;
6440 *)
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442for as_dir in $PATH
6443do
6444 IFS=$as_save_IFS
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6448 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6449 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 break 2
6451 fi
6452done
6453done
6454IFS=$as_save_IFS
6455
6456 ;;
6457esac
6458fi
6459ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6460if test -n "$ac_pt_PKG_CONFIG"; then
6461 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
6462$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6463else
6464 { $as_echo "$as_me:$LINENO: result: no" >&5
6465$as_echo "no" >&6; }
6466fi
6467
6468 if test "x$ac_pt_PKG_CONFIG" = x; then
6469 PKG_CONFIG=""
6470 else
6471 case $cross_compiling:$ac_tool_warned in
6472yes:)
6473{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6475ac_tool_warned=yes ;;
6476esac
6477 PKG_CONFIG=$ac_pt_PKG_CONFIG
6478 fi
6479else
6480 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6481fi
6482
6483fi
6484if test -n "$PKG_CONFIG"; then
6485 _pkg_min_version=0.9.0
6486 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
6487$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6488 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6489 { $as_echo "$as_me:$LINENO: result: yes" >&5
6490$as_echo "yes" >&6; }
6491 else
6492 { $as_echo "$as_me:$LINENO: result: no" >&5
6493$as_echo "no" >&6; }
6494 PKG_CONFIG=""
6495 fi
6496
6497fi
6498
6499#
6500# Enable OS features.
6501#
6502
6503
6504{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6505$as_echo_n "checking for ANSI C header files... " >&6; }
6506if test "${ac_cv_header_stdc+set}" = set; then
6507 $as_echo_n "(cached) " >&6
6508else
6509 cat >conftest.$ac_ext <<_ACEOF
6510/* confdefs.h. */
6511_ACEOF
6512cat confdefs.h >>conftest.$ac_ext
6513cat >>conftest.$ac_ext <<_ACEOF
6514/* end confdefs.h. */
6515#include <stdlib.h>
6516#include <stdarg.h>
6517#include <string.h>
6518#include <float.h>
6519
6520int
6521main ()
6522{
6523
6524 ;
6525 return 0;
6526}
6527_ACEOF
6528rm -f conftest.$ac_objext
6529if { (ac_try="$ac_compile"
6530case "(($ac_try" in
6531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6532 *) ac_try_echo=$ac_try;;
6533esac
6534eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6535$as_echo "$ac_try_echo") >&5
6536 (eval "$ac_compile") 2>conftest.er1
6537 ac_status=$?
6538 grep -v '^ *+' conftest.er1 >conftest.err
6539 rm -f conftest.er1
6540 cat conftest.err >&5
6541 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } && {
6543 test -z "$ac_c_werror_flag" ||
6544 test ! -s conftest.err
6545 } && test -s conftest.$ac_objext; then
6546 ac_cv_header_stdc=yes
6547else
6548 $as_echo "$as_me: failed program was:" >&5
6549sed 's/^/| /' conftest.$ac_ext >&5
6550
6551 ac_cv_header_stdc=no
6552fi
6553
6554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6555
6556if test $ac_cv_header_stdc = yes; then
6557 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6558 cat >conftest.$ac_ext <<_ACEOF
6559/* confdefs.h. */
6560_ACEOF
6561cat confdefs.h >>conftest.$ac_ext
6562cat >>conftest.$ac_ext <<_ACEOF
6563/* end confdefs.h. */
6564#include <string.h>
6565
6566_ACEOF
6567if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6568 $EGREP "memchr" >/dev/null 2>&1; then
6569 :
6570else
6571 ac_cv_header_stdc=no
6572fi
6573rm -f conftest*
6574
6575fi
6576
6577if test $ac_cv_header_stdc = yes; then
6578 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6579 cat >conftest.$ac_ext <<_ACEOF
6580/* confdefs.h. */
6581_ACEOF
6582cat confdefs.h >>conftest.$ac_ext
6583cat >>conftest.$ac_ext <<_ACEOF
6584/* end confdefs.h. */
6585#include <stdlib.h>
6586
6587_ACEOF
6588if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6589 $EGREP "free" >/dev/null 2>&1; then
6590 :
6591else
6592 ac_cv_header_stdc=no
6593fi
6594rm -f conftest*
6595
6596fi
6597
6598if test $ac_cv_header_stdc = yes; then
6599 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6600 if test "$cross_compiling" = yes; then
6601 :
6602else
6603 cat >conftest.$ac_ext <<_ACEOF
6604/* confdefs.h. */
6605_ACEOF
6606cat confdefs.h >>conftest.$ac_ext
6607cat >>conftest.$ac_ext <<_ACEOF
6608/* end confdefs.h. */
6609#include <ctype.h>
6610#include <stdlib.h>
6611#if ((' ' & 0x0FF) == 0x020)
6612# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6613# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6614#else
6615# define ISLOWER(c) \
6616 (('a' <= (c) && (c) <= 'i') \
6617 || ('j' <= (c) && (c) <= 'r') \
6618 || ('s' <= (c) && (c) <= 'z'))
6619# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6620#endif
6621
6622#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6623int
6624main ()
6625{
6626 int i;
6627 for (i = 0; i < 256; i++)
6628 if (XOR (islower (i), ISLOWER (i))
6629 || toupper (i) != TOUPPER (i))
6630 return 2;
6631 return 0;
6632}
6633_ACEOF
6634rm -f conftest$ac_exeext
6635if { (ac_try="$ac_link"
6636case "(($ac_try" in
6637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6638 *) ac_try_echo=$ac_try;;
6639esac
6640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6641$as_echo "$ac_try_echo") >&5
6642 (eval "$ac_link") 2>&5
6643 ac_status=$?
6644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6646 { (case "(($ac_try" in
6647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6648 *) ac_try_echo=$ac_try;;
6649esac
6650eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6651$as_echo "$ac_try_echo") >&5
6652 (eval "$ac_try") 2>&5
6653 ac_status=$?
6654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6655 (exit $ac_status); }; }; then
6656 :
6657else
6658 $as_echo "$as_me: program exited with status $ac_status" >&5
6659$as_echo "$as_me: failed program was:" >&5
6660sed 's/^/| /' conftest.$ac_ext >&5
6661
6662( exit $ac_status )
6663ac_cv_header_stdc=no
6664fi
6665rm -rf conftest.dSYM
6666rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6667fi
6668
6669
6670fi
6671fi
6672{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6673$as_echo "$ac_cv_header_stdc" >&6; }
6674if test $ac_cv_header_stdc = yes; then
6675
6676cat >>confdefs.h <<\_ACEOF
6677#define STDC_HEADERS 1
6678_ACEOF
6679
6680fi
6681
6682# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6693 inttypes.h stdint.h unistd.h
6694do
6695as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6696{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6697$as_echo_n "checking for $ac_header... " >&6; }
6698if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6699 $as_echo_n "(cached) " >&6
6700else
6701 cat >conftest.$ac_ext <<_ACEOF
6702/* confdefs.h. */
6703_ACEOF
6704cat confdefs.h >>conftest.$ac_ext
6705cat >>conftest.$ac_ext <<_ACEOF
6706/* end confdefs.h. */
6707$ac_includes_default
6708
6709#include <$ac_header>
6710_ACEOF
6711rm -f conftest.$ac_objext
6712if { (ac_try="$ac_compile"
6713case "(($ac_try" in
6714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6715 *) ac_try_echo=$ac_try;;
6716esac
6717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6718$as_echo "$ac_try_echo") >&5
6719 (eval "$ac_compile") 2>conftest.er1
6720 ac_status=$?
6721 grep -v '^ *+' conftest.er1 >conftest.err
6722 rm -f conftest.er1
6723 cat conftest.err >&5
6724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6725 (exit $ac_status); } && {
6726 test -z "$ac_c_werror_flag" ||
6727 test ! -s conftest.err
6728 } && test -s conftest.$ac_objext; then
6729 eval "$as_ac_Header=yes"
6730else
6731 $as_echo "$as_me: failed program was:" >&5
6732sed 's/^/| /' conftest.$ac_ext >&5
6733
6734 eval "$as_ac_Header=no"
6735fi
6736
6737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6738fi
6739ac_res=`eval 'as_val=${'$as_ac_Header'}
6740 $as_echo "$as_val"'`
6741 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6742$as_echo "$ac_res" >&6; }
6743as_val=`eval 'as_val=${'$as_ac_Header'}
6744 $as_echo "$as_val"'`
6745 if test "x$as_val" = x""yes; then
6746 cat >>confdefs.h <<_ACEOF
6747#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6748_ACEOF
6749
6750fi
6751
6752done
6753
6754
6755
6756 if test "${ac_cv_header_minix_config_h+set}" = set; then
6757 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6758$as_echo_n "checking for minix/config.h... " >&6; }
6759if test "${ac_cv_header_minix_config_h+set}" = set; then
6760 $as_echo_n "(cached) " >&6
6761fi
6762{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6763$as_echo "$ac_cv_header_minix_config_h" >&6; }
6764else
6765 # Is the header compilable?
6766{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
6767$as_echo_n "checking minix/config.h usability... " >&6; }
6768cat >conftest.$ac_ext <<_ACEOF
6769/* confdefs.h. */
6770_ACEOF
6771cat confdefs.h >>conftest.$ac_ext
6772cat >>conftest.$ac_ext <<_ACEOF
6773/* end confdefs.h. */
6774$ac_includes_default
6775#include <minix/config.h>
6776_ACEOF
6777rm -f conftest.$ac_objext
6778if { (ac_try="$ac_compile"
6779case "(($ac_try" in
6780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6781 *) ac_try_echo=$ac_try;;
6782esac
6783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6784$as_echo "$ac_try_echo") >&5
6785 (eval "$ac_compile") 2>conftest.er1
6786 ac_status=$?
6787 grep -v '^ *+' conftest.er1 >conftest.err
6788 rm -f conftest.er1
6789 cat conftest.err >&5
6790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6791 (exit $ac_status); } && {
6792 test -z "$ac_c_werror_flag" ||
6793 test ! -s conftest.err
6794 } && test -s conftest.$ac_objext; then
6795 ac_header_compiler=yes
6796else
6797 $as_echo "$as_me: failed program was:" >&5
6798sed 's/^/| /' conftest.$ac_ext >&5
6799
6800 ac_header_compiler=no
6801fi
6802
6803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6804{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6805$as_echo "$ac_header_compiler" >&6; }
6806
6807# Is the header present?
6808{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
6809$as_echo_n "checking minix/config.h presence... " >&6; }
6810cat >conftest.$ac_ext <<_ACEOF
6811/* confdefs.h. */
6812_ACEOF
6813cat confdefs.h >>conftest.$ac_ext
6814cat >>conftest.$ac_ext <<_ACEOF
6815/* end confdefs.h. */
6816#include <minix/config.h>
6817_ACEOF
6818if { (ac_try="$ac_cpp conftest.$ac_ext"
6819case "(($ac_try" in
6820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6821 *) ac_try_echo=$ac_try;;
6822esac
6823eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6824$as_echo "$ac_try_echo") >&5
6825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6826 ac_status=$?
6827 grep -v '^ *+' conftest.er1 >conftest.err
6828 rm -f conftest.er1
6829 cat conftest.err >&5
6830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6831 (exit $ac_status); } >/dev/null && {
6832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6833 test ! -s conftest.err
6834 }; then
6835 ac_header_preproc=yes
6836else
6837 $as_echo "$as_me: failed program was:" >&5
6838sed 's/^/| /' conftest.$ac_ext >&5
6839
6840 ac_header_preproc=no
6841fi
6842
6843rm -f conftest.err conftest.$ac_ext
6844{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6845$as_echo "$ac_header_preproc" >&6; }
6846
6847# So? What about this header?
6848case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6849 yes:no: )
6850 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
6851$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
6852 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
6853$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
6854 ac_header_preproc=yes
6855 ;;
6856 no:yes:* )
6857 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
6858$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
6859 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
6860$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
6861 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
6862$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
6863 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
6864$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
6865 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
6866$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
6867 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
6868$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
6869 ( cat <<\_ASBOX
6870## ----------------------------------------- ##
6871## Report this to http://www.imagemagick.org ##
6872## ----------------------------------------- ##
6873_ASBOX
6874 ) | sed "s/^/$as_me: WARNING: /" >&2
6875 ;;
6876esac
6877{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
6878$as_echo_n "checking for minix/config.h... " >&6; }
6879if test "${ac_cv_header_minix_config_h+set}" = set; then
6880 $as_echo_n "(cached) " >&6
6881else
6882 ac_cv_header_minix_config_h=$ac_header_preproc
6883fi
6884{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
6885$as_echo "$ac_cv_header_minix_config_h" >&6; }
6886
6887fi
6888if test "x$ac_cv_header_minix_config_h" = x""yes; then
6889 MINIX=yes
6890else
6891 MINIX=
6892fi
6893
6894
6895 if test "$MINIX" = yes; then
6896
6897cat >>confdefs.h <<\_ACEOF
6898#define _POSIX_SOURCE 1
6899_ACEOF
6900
6901
6902cat >>confdefs.h <<\_ACEOF
6903#define _POSIX_1_SOURCE 2
6904_ACEOF
6905
6906
6907cat >>confdefs.h <<\_ACEOF
6908#define _MINIX 1
6909_ACEOF
6910
6911 fi
6912
6913
6914
6915 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
6916$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6917if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
6918 $as_echo_n "(cached) " >&6
6919else
6920 cat >conftest.$ac_ext <<_ACEOF
6921/* confdefs.h. */
6922_ACEOF
6923cat confdefs.h >>conftest.$ac_ext
6924cat >>conftest.$ac_ext <<_ACEOF
6925/* end confdefs.h. */
6926
6927# define __EXTENSIONS__ 1
6928 $ac_includes_default
6929int
6930main ()
6931{
6932
6933 ;
6934 return 0;
6935}
6936_ACEOF
6937rm -f conftest.$ac_objext
6938if { (ac_try="$ac_compile"
6939case "(($ac_try" in
6940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6941 *) ac_try_echo=$ac_try;;
6942esac
6943eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6944$as_echo "$ac_try_echo") >&5
6945 (eval "$ac_compile") 2>conftest.er1
6946 ac_status=$?
6947 grep -v '^ *+' conftest.er1 >conftest.err
6948 rm -f conftest.er1
6949 cat conftest.err >&5
6950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } && {
6952 test -z "$ac_c_werror_flag" ||
6953 test ! -s conftest.err
6954 } && test -s conftest.$ac_objext; then
6955 ac_cv_safe_to_define___extensions__=yes
6956else
6957 $as_echo "$as_me: failed program was:" >&5
6958sed 's/^/| /' conftest.$ac_ext >&5
6959
6960 ac_cv_safe_to_define___extensions__=no
6961fi
6962
6963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6964fi
6965{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
6966$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
6967 test $ac_cv_safe_to_define___extensions__ = yes &&
6968 cat >>confdefs.h <<\_ACEOF
6969#define __EXTENSIONS__ 1
6970_ACEOF
6971
6972 cat >>confdefs.h <<\_ACEOF
6973#define _ALL_SOURCE 1
6974_ACEOF
6975
6976 cat >>confdefs.h <<\_ACEOF
6977#define _GNU_SOURCE 1
6978_ACEOF
6979
6980 cat >>confdefs.h <<\_ACEOF
6981#define _POSIX_PTHREAD_SEMANTICS 1
6982_ACEOF
6983
6984 cat >>confdefs.h <<\_ACEOF
6985#define _TANDEM_SOURCE 1
6986_ACEOF
6987
6988
6989
6990#
6991# Enable run-time checking.
6992#
6993# Check whether --enable-bounds-checking was given.
6994if test "${enable_bounds_checking+set}" = set; then
6995 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
6996else
6997 enable_bounds_checking='no'
6998fi
6999
7000
7001if test "$enable_bounds_checking" = yes; then
7002
7003cat >>confdefs.h <<\_ACEOF
7004#define _FORTIFY_SOURCE 2
7005_ACEOF
7006
7007fi
7008
7009#
7010# Tests for Windows
7011#
7012
7013
7014
7015GDI32_LIBS=''
7016StaticCplusPlusLibraries='no'
7017native_win32_build='no'
7018cygwin_build='no'
7019case "${host_os}" in
7020 cygwin* )
7021 StaticCplusPlusLibraries='yes'
7022 cygwin_build='yes'
7023 GDI32_LIBS='-lgdi32'
7024 ;;
7025 mingw* )
7026 StaticCplusPlusLibraries='yes'
7027 native_win32_build='yes'
7028 GDI32_LIBS='-lgdi32'
7029 ;;
7030esac
7031if test "${GDI32_LIBS}x" != 'x'; then
7032
7033cat >>confdefs.h <<\_ACEOF
7034#define WINGDI32_DELEGATE 1
7035_ACEOF
7036
7037fi
7038
7039 if test "${GDI32_LIBS}x" != 'x' ; then
7040 WINGDI32_DELEGATE_TRUE=
7041 WINGDI32_DELEGATE_FALSE='#'
7042else
7043 WINGDI32_DELEGATE_TRUE='#'
7044 WINGDI32_DELEGATE_FALSE=
7045fi
7046
7047 if test "${native_win32_build}" = 'yes' ; then
7048 WIN32_NATIVE_BUILD_TRUE=
7049 WIN32_NATIVE_BUILD_FALSE='#'
7050else
7051 WIN32_NATIVE_BUILD_TRUE='#'
7052 WIN32_NATIVE_BUILD_FALSE=
7053fi
7054
7055 if test "${cygwin_build}" = 'yes' ; then
7056 CYGWIN_BUILD_TRUE=
7057 CYGWIN_BUILD_FALSE='#'
7058else
7059 CYGWIN_BUILD_TRUE='#'
7060 CYGWIN_BUILD_FALSE=
7061fi
7062
7063 if test "x${CC}" = 'xcl.exe' ; then
7064 USING_CL_TRUE=
7065 USING_CL_FALSE='#'
7066else
7067 USING_CL_TRUE='#'
7068 USING_CL_FALSE=
7069fi
7070
7071
7072WinPathScript="${srcdirfull}/winpath.sh"
7073
7074
7075#
7076# Compiler flags tweaks
7077#
7078if test "${GCC}" != "yes"; then
7079 case "${host}" in
7080 *-*-hpux* )
7081 # aCC: HP ANSI C++ B3910B A.03.34
7082 CFLAGS="${CFLAGS} -Wp,-H30000"
7083 if test -n "${CXXFLAGS}"; then
7084 CXXFLAGS='-AA'
7085 else
7086 CXXFLAGS="${CXXFLAGS} -AA"
7087 fi
7088 ;;
7089 *-dec-osf5.* )
7090 # Compaq alphaev68-dec-osf5.1 compiler
7091 if test -n "${CXXFLAGS}"; then
7092 CXXFLAGS='-std strict_ansi -noimplicit_include'
7093 else
7094 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
7095 fi
7096 esac
7097fi
7098
7099# Check for lazy-loading.
7100{ $as_echo "$as_me:$LINENO: checking for linker lazyload option" >&5
7101$as_echo_n "checking for linker lazyload option... " >&6; }
7102if test "${im_cv_ld_lazyload+set}" = set; then
7103 $as_echo_n "(cached) " >&6
7104else
7105
7106im_cv_ld_lazyload='none'
7107case "${host}" in
7108 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
7109 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
7110 im_cv_ld_lazyload='-Wl,-zlazyload'
7111 fi
7112 ;;
7113esac
7114
7115fi
7116{ $as_echo "$as_me:$LINENO: result: $im_cv_ld_lazyload" >&5
7117$as_echo "$im_cv_ld_lazyload" >&6; }
7118if test "${im_cv_ld_lazyload}" != 'none' ; then
7119 if test -z "${LDFLAGS}" ; then
7120 LDFLAGS="${im_cv_ld_lazyload}"
7121 else
7122 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
7123 fi
7124fi
7125
7126case "$host" in
7127*darwin* | *-macos10*)
7128 if test -d /opt/local ; then
7129 CPPFLAGS="$CPPFLAGS -I/opt/local/include"
7130 LDFLAGS="$LDFLAGS -L/opt/local/lib"
7131 elif test -d /sw ; then
7132 CPPFLAGS="$CPPFLAGS -I/sw/include"
7133 LDFLAGS="$LDFLAGS -L/sw/lib"
7134 fi
7135 # Check whether --enable-osx-universal-binary was given.
7136if test "${enable_osx_universal_binary+set}" = set; then
7137 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
7138else
7139 build_osxuniversal=no
7140fi
7141
7142
7143 if test "${build_osxuniversal}" != no ; then
7144 if test "$enable_dependency_tracking" != no ; then
7145 { { $as_echo "$as_me:$LINENO: error: --enable-osx-universal-binary requires --disable-dependency-tracking.
7146Please re-run configure with these options:
7147 --disable-dependency-tracking --enable-osx-universal-binary
7148 " >&5
7149$as_echo "$as_me: error: --enable-osx-universal-binary requires --disable-dependency-tracking.
7150Please re-run configure with these options:
7151 --disable-dependency-tracking --enable-osx-universal-binary
7152 " >&2;}
7153 { (exit 1); exit 1; }; }
7154 fi
7155 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7156 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7157 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
7158 fi
7159 ;;
7160esac
7161
7162# Enable support for threads
7163
7164# Check whether --with-threads was given.
7165if test "${with_threads+set}" = set; then
7166 withval=$with_threads; with_threads=$withval
7167else
7168 with_threads='yes'
7169fi
7170
7171
7172have_threads=no
7173if test "$with_threads" != 'no'; then
7174
7175
7176
7177ac_ext=c
7178ac_cpp='$CPP $CPPFLAGS'
7179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7181ac_compiler_gnu=$ac_cv_c_compiler_gnu
7182
7183acx_pthread_ok=no
7184
7185# We used to check for pthread.h first, but this fails if pthread.h
7186# requires special compiler flags (e.g. on True64 or Sequent).
7187# It gets checked for in the link test anyway.
7188
7189# First of all, check if the user has set any of the PTHREAD_LIBS,
7190# etcetera environment variables, and if threads linking works using
7191# them:
7192if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
7193 save_CFLAGS="$CFLAGS"
7194 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7195 save_LIBS="$LIBS"
7196 LIBS="$PTHREAD_LIBS $LIBS"
7197 { $as_echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
7198$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
7199 cat >conftest.$ac_ext <<_ACEOF
7200/* confdefs.h. */
7201_ACEOF
7202cat confdefs.h >>conftest.$ac_ext
7203cat >>conftest.$ac_ext <<_ACEOF
7204/* end confdefs.h. */
7205
7206/* Override any GCC internal prototype to avoid an error.
7207 Use char because int might match the return type of a GCC
7208 builtin and then its argument prototype would still apply. */
7209#ifdef __cplusplus
7210extern "C"
7211#endif
7212char pthread_join ();
7213int
7214main ()
7215{
7216return pthread_join ();
7217 ;
7218 return 0;
7219}
7220_ACEOF
7221rm -f conftest.$ac_objext conftest$ac_exeext
7222if { (ac_try="$ac_link"
7223case "(($ac_try" in
7224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7225 *) ac_try_echo=$ac_try;;
7226esac
7227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7228$as_echo "$ac_try_echo") >&5
7229 (eval "$ac_link") 2>conftest.er1
7230 ac_status=$?
7231 grep -v '^ *+' conftest.er1 >conftest.err
7232 rm -f conftest.er1
7233 cat conftest.err >&5
7234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7235 (exit $ac_status); } && {
7236 test -z "$ac_c_werror_flag" ||
7237 test ! -s conftest.err
7238 } && test -s conftest$ac_exeext && {
7239 test "$cross_compiling" = yes ||
7240 $as_test_x conftest$ac_exeext
7241 }; then
7242 acx_pthread_ok=yes
7243else
7244 $as_echo "$as_me: failed program was:" >&5
7245sed 's/^/| /' conftest.$ac_ext >&5
7246
7247
7248fi
7249
7250rm -rf conftest.dSYM
7251rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7252 conftest$ac_exeext conftest.$ac_ext
7253 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7254$as_echo "$acx_pthread_ok" >&6; }
7255 if test x"$acx_pthread_ok" = xno; then
7256 PTHREAD_LIBS=""
7257 PTHREAD_CFLAGS=""
7258 fi
7259 LIBS="$save_LIBS"
7260 CFLAGS="$save_CFLAGS"
7261fi
7262
7263# We must check for the threads library under a number of different
7264# names; the ordering is very important because some systems
7265# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7266# libraries is broken (non-POSIX).
7267
7268# Create a list of thread flags to try. Items starting with a "-" are
7269# C compiler flags, and other items are library names, except for "none"
7270# which indicates that we try without any flags at all, and "pthread-config"
7271# which is a program returning the flags for the Pth emulation library.
7272
7273acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7274
7275# The ordering *is* (sometimes) important. Some notes on the
7276# individual items follow:
7277
7278# pthreads: AIX (must check this before -lpthread)
7279# none: in case threads are in libc; should be tried before -Kthread and
7280# other compiler flags to prevent continual compiler warnings
7281# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7282# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7283# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7284# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
7285# -pthreads: Solaris/gcc
7286# -mthreads: Mingw32/gcc, Lynx/gcc
7287# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7288# doesn't hurt to check since this sometimes defines pthreads too;
7289# also defines -D_REENTRANT)
7290# ... -mt is also the pthreads flag for HP/aCC
7291# pthread: Linux, etcetera
7292# --thread-safe: KAI C++
7293# pthread-config: use pthread-config program (for GNU Pth library)
7294
7295case "${host_cpu}-${host_os}" in
7296 *solaris*)
7297
7298 # On Solaris (at least, for some versions), libc contains stubbed
7299 # (non-functional) versions of the pthreads routines, so link-based
7300 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
7301 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
7302 # a function called by this macro, so we could check for that, but
7303 # who knows whether they'll stub that too in a future libc.) So,
7304 # we'll just look for -pthreads and -lpthread first:
7305
7306 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
7307 ;;
7308
7309 # The HP-UX compiler just warns about options it does not understand
7310 # but it needs -mt.
7311 *-hpux*)
7312 acx_pthread_flags="-mt $acx_pthread_flags"
7313 ;;
7314esac
7315
7316if test x"$acx_pthread_ok" = xno; then
7317for flag in $acx_pthread_flags; do
7318
7319 case $flag in
7320 none)
7321 { $as_echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
7322$as_echo_n "checking whether pthreads work without any flags... " >&6; }
7323 ;;
7324
7325 -*)
7326 { $as_echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
7327$as_echo_n "checking whether pthreads work with $flag... " >&6; }
7328 PTHREAD_CFLAGS="$flag"
7329 ;;
7330
7331 pthread-config)
7332 # Extract the first word of "pthread-config", so it can be a program name with args.
7333set dummy pthread-config; ac_word=$2
7334{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7335$as_echo_n "checking for $ac_word... " >&6; }
7336if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
7337 $as_echo_n "(cached) " >&6
7338else
7339 if test -n "$acx_pthread_config"; then
7340 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
7341else
7342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7343for as_dir in $PATH
7344do
7345 IFS=$as_save_IFS
7346 test -z "$as_dir" && as_dir=.
7347 for ac_exec_ext in '' $ac_executable_extensions; do
7348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7349 ac_cv_prog_acx_pthread_config="yes"
7350 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7351 break 2
7352 fi
7353done
7354done
7355IFS=$as_save_IFS
7356
7357 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
7358fi
7359fi
7360acx_pthread_config=$ac_cv_prog_acx_pthread_config
7361if test -n "$acx_pthread_config"; then
7362 { $as_echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
7363$as_echo "$acx_pthread_config" >&6; }
7364else
7365 { $as_echo "$as_me:$LINENO: result: no" >&5
7366$as_echo "no" >&6; }
7367fi
7368
7369
7370 if test x"$acx_pthread_config" = xno; then continue; fi
7371 PTHREAD_CFLAGS="`pthread-config --cflags`"
7372 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7373 ;;
7374
7375 *)
7376 { $as_echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
7377$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
7378 PTHREAD_LIBS="-l$flag"
7379 ;;
7380 esac
7381
7382 save_LIBS="$LIBS"
7383 save_CFLAGS="$CFLAGS"
7384 LIBS="$PTHREAD_LIBS $LIBS"
7385 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7386
7387 # Check for various functions. We must include pthread.h,
7388 # since some functions may be macros. (On the Sequent, we
7389 # need a special flag -Kthread to make this header compile.)
7390 # We check for pthread_join because it is in -lpthread on IRIX
7391 # while pthread_create is in libc. We check for pthread_attr_init
7392 # due to DEC craziness with -lpthreads. We check for
7393 # pthread_cleanup_push because it is one of the few pthread
7394 # functions on Solaris that doesn't have a non-functional libc stub.
7395 # We try pthread_create on general principles.
7396 cat >conftest.$ac_ext <<_ACEOF
7397/* confdefs.h. */
7398_ACEOF
7399cat confdefs.h >>conftest.$ac_ext
7400cat >>conftest.$ac_ext <<_ACEOF
7401/* end confdefs.h. */
7402#include <pthread.h>
7403int
7404main ()
7405{
7406pthread_t th; pthread_join(th, 0);
7407 pthread_attr_init(0); pthread_cleanup_push(0, 0);
7408 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
7409 ;
7410 return 0;
7411}
7412_ACEOF
7413rm -f conftest.$ac_objext conftest$ac_exeext
7414if { (ac_try="$ac_link"
7415case "(($ac_try" in
7416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7417 *) ac_try_echo=$ac_try;;
7418esac
7419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7420$as_echo "$ac_try_echo") >&5
7421 (eval "$ac_link") 2>conftest.er1
7422 ac_status=$?
7423 grep -v '^ *+' conftest.er1 >conftest.err
7424 rm -f conftest.er1
7425 cat conftest.err >&5
7426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } && {
7428 test -z "$ac_c_werror_flag" ||
7429 test ! -s conftest.err
7430 } && test -s conftest$ac_exeext && {
7431 test "$cross_compiling" = yes ||
7432 $as_test_x conftest$ac_exeext
7433 }; then
7434 acx_pthread_ok=yes
7435else
7436 $as_echo "$as_me: failed program was:" >&5
7437sed 's/^/| /' conftest.$ac_ext >&5
7438
7439
7440fi
7441
7442rm -rf conftest.dSYM
7443rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7444 conftest$ac_exeext conftest.$ac_ext
7445
7446 LIBS="$save_LIBS"
7447 CFLAGS="$save_CFLAGS"
7448
7449 { $as_echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
7450$as_echo "$acx_pthread_ok" >&6; }
7451 if test "x$acx_pthread_ok" = xyes; then
7452 break;
7453 fi
7454
7455 PTHREAD_LIBS=""
7456 PTHREAD_CFLAGS=""
7457done
7458fi
7459
7460# Various other checks:
7461if test "x$acx_pthread_ok" = xyes; then
7462 save_LIBS="$LIBS"
7463 LIBS="$PTHREAD_LIBS $LIBS"
7464 save_CFLAGS="$CFLAGS"
7465 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7466
7467 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
7468 { $as_echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
7469$as_echo_n "checking for joinable pthread attribute... " >&6; }
7470 attr_name=unknown
7471 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7472 cat >conftest.$ac_ext <<_ACEOF
7473/* confdefs.h. */
7474_ACEOF
7475cat confdefs.h >>conftest.$ac_ext
7476cat >>conftest.$ac_ext <<_ACEOF
7477/* end confdefs.h. */
7478#include <pthread.h>
7479int
7480main ()
7481{
7482int attr=$attr; return attr;
7483 ;
7484 return 0;
7485}
7486_ACEOF
7487rm -f conftest.$ac_objext conftest$ac_exeext
7488if { (ac_try="$ac_link"
7489case "(($ac_try" in
7490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7491 *) ac_try_echo=$ac_try;;
7492esac
7493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7494$as_echo "$ac_try_echo") >&5
7495 (eval "$ac_link") 2>conftest.er1
7496 ac_status=$?
7497 grep -v '^ *+' conftest.er1 >conftest.err
7498 rm -f conftest.er1
7499 cat conftest.err >&5
7500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } && {
7502 test -z "$ac_c_werror_flag" ||
7503 test ! -s conftest.err
7504 } && test -s conftest$ac_exeext && {
7505 test "$cross_compiling" = yes ||
7506 $as_test_x conftest$ac_exeext
7507 }; then
7508 attr_name=$attr; break
7509else
7510 $as_echo "$as_me: failed program was:" >&5
7511sed 's/^/| /' conftest.$ac_ext >&5
7512
7513
7514fi
7515
7516rm -rf conftest.dSYM
7517rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7518 conftest$ac_exeext conftest.$ac_ext
7519 done
7520 { $as_echo "$as_me:$LINENO: result: $attr_name" >&5
7521$as_echo "$attr_name" >&6; }
7522 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
7523
7524cat >>confdefs.h <<_ACEOF
7525#define PTHREAD_CREATE_JOINABLE $attr_name
7526_ACEOF
7527
7528 fi
7529
7530 { $as_echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
7531$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
7532 flag=no
7533 case "${host_cpu}-${host_os}" in
7534 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
7535 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
7536 esac
7537 { $as_echo "$as_me:$LINENO: result: ${flag}" >&5
7538$as_echo "${flag}" >&6; }
7539 if test "x$flag" != xno; then
7540 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
7541 fi
7542
7543 LIBS="$save_LIBS"
7544 CFLAGS="$save_CFLAGS"
7545
7546 # More AIX lossage: must compile with xlc_r or cc_r
7547 case "${host_os}" in
7548 aix* )
7549 if test x"$GCC" != xyes; then
7550 case "$CC" in
7551 *xlc )
7552 # Extract the first word of "xlc_r", so it can be a program name with args.
7553set dummy xlc_r; ac_word=$2
7554{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7555$as_echo_n "checking for $ac_word... " >&6; }
7556if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7557 $as_echo_n "(cached) " >&6
7558else
7559 if test -n "$PTHREAD_CC"; then
7560 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7561else
7562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563for as_dir in $PATH
7564do
7565 IFS=$as_save_IFS
7566 test -z "$as_dir" && as_dir=.
7567 for ac_exec_ext in '' $ac_executable_extensions; do
7568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7569 ac_cv_prog_PTHREAD_CC="xlc_r"
7570 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 break 2
7572 fi
7573done
7574done
7575IFS=$as_save_IFS
7576
7577 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
7578fi
7579fi
7580PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7581if test -n "$PTHREAD_CC"; then
7582 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7583$as_echo "$PTHREAD_CC" >&6; }
7584else
7585 { $as_echo "$as_me:$LINENO: result: no" >&5
7586$as_echo "no" >&6; }
7587fi
7588
7589 ;;
7590 *cc )
7591 # Extract the first word of "cc_r", so it can be a program name with args.
7592set dummy cc_r; ac_word=$2
7593{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7594$as_echo_n "checking for $ac_word... " >&6; }
7595if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
7596 $as_echo_n "(cached) " >&6
7597else
7598 if test -n "$PTHREAD_CC"; then
7599 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7600else
7601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602for as_dir in $PATH
7603do
7604 IFS=$as_save_IFS
7605 test -z "$as_dir" && as_dir=.
7606 for ac_exec_ext in '' $ac_executable_extensions; do
7607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7608 ac_cv_prog_PTHREAD_CC="cc_r"
7609 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 break 2
7611 fi
7612done
7613done
7614IFS=$as_save_IFS
7615
7616 test -z "$ac_cv_prog_PTHREAD_CC" && ac_cv_prog_PTHREAD_CC="${CC}"
7617fi
7618fi
7619PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7620if test -n "$PTHREAD_CC"; then
7621 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
7622$as_echo "$PTHREAD_CC" >&6; }
7623else
7624 { $as_echo "$as_me:$LINENO: result: no" >&5
7625$as_echo "no" >&6; }
7626fi
7627
7628 ;;
7629 esac
7630 fi
7631 case "$CXX" in
7632 *xlC )
7633 # Extract the first word of "xlC_r", so it can be a program name with args.
7634set dummy xlC_r; ac_word=$2
7635{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7636$as_echo_n "checking for $ac_word... " >&6; }
7637if test "${ac_cv_prog_PTHREAD_CXX+set}" = set; then
7638 $as_echo_n "(cached) " >&6
7639else
7640 if test -n "$PTHREAD_CXX"; then
7641 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
7642else
7643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7644for as_dir in $PATH
7645do
7646 IFS=$as_save_IFS
7647 test -z "$as_dir" && as_dir=.
7648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7650 ac_cv_prog_PTHREAD_CXX="xlC_r"
7651 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 break 2
7653 fi
7654done
7655done
7656IFS=$as_save_IFS
7657
7658 test -z "$ac_cv_prog_PTHREAD_CXX" && ac_cv_prog_PTHREAD_CXX="${CXX}"
7659fi
7660fi
7661PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
7662if test -n "$PTHREAD_CXX"; then
7663 { $as_echo "$as_me:$LINENO: result: $PTHREAD_CXX" >&5
7664$as_echo "$PTHREAD_CXX" >&6; }
7665else
7666 { $as_echo "$as_me:$LINENO: result: no" >&5
7667$as_echo "no" >&6; }
7668fi
7669
7670 ;;
7671 esac
7672 ;;
7673 esac
7674fi
7675
7676if test "${PTHREAD_CC}x" = "x"
7677then
7678 PTHREAD_CC="$CC"
7679fi
7680if test "${PTHREAD_CXX}x" = "x"
7681then
7682 PTHREAD_CXX="$CXX"
7683fi
7684
7685
7686
7687
7688
7689
7690# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7691if test x"$acx_pthread_ok" = xyes; then
7692
7693cat >>confdefs.h <<\_ACEOF
7694#define HAVE_PTHREAD 1
7695_ACEOF
7696
7697 :
7698else
7699 acx_pthread_ok=no
7700
7701fi
7702ac_ext=c
7703ac_cpp='$CPP $CPPFLAGS'
7704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7706ac_compiler_gnu=$ac_cv_c_compiler_gnu
7707
7708
7709 if test "$acx_pthread_ok" = yes; then
7710 have_threads=yes
7711 DEF_THREAD="$PTHREAD_CFLAGS"
7712 CFLAGS="$CFLAGS $DEF_THREAD"
7713 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
7714 if test "$CC" != "$PTHREAD_CC"; then
7715 { $as_echo "$as_me:$LINENO: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&5
7716$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
7717 CC="$PTHREAD_CC"
7718 fi
7719 fi
7720fi
7721
7722# Enable support for OpenMP
7723if test "$have_threads" != 'yes'; then
7724 ac_cv_prog_c_openmp=unsupported
7725fi
7726
7727 OPENMP_CFLAGS=
7728 # Check whether --enable-openmp was given.
7729if test "${enable_openmp+set}" = set; then
7730 enableval=$enable_openmp;
7731fi
7732
7733 if test "$enable_openmp" != no; then
7734 { $as_echo "$as_me:$LINENO: checking for $CC option to support OpenMP" >&5
7735$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
7736if test "${ac_cv_prog_c_openmp+set}" = set; then
7737 $as_echo_n "(cached) " >&6
7738else
7739 cat >conftest.$ac_ext <<_ACEOF
7740
7741#ifndef _OPENMP
7742 choke me
7743#endif
7744#include <omp.h>
7745int main () { return omp_get_num_threads (); }
7746
7747_ACEOF
7748rm -f conftest.$ac_objext conftest$ac_exeext
7749if { (ac_try="$ac_link"
7750case "(($ac_try" in
7751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7752 *) ac_try_echo=$ac_try;;
7753esac
7754eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7755$as_echo "$ac_try_echo") >&5
7756 (eval "$ac_link") 2>conftest.er1
7757 ac_status=$?
7758 grep -v '^ *+' conftest.er1 >conftest.err
7759 rm -f conftest.er1
7760 cat conftest.err >&5
7761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7762 (exit $ac_status); } && {
7763 test -z "$ac_c_werror_flag" ||
7764 test ! -s conftest.err
7765 } && test -s conftest$ac_exeext && {
7766 test "$cross_compiling" = yes ||
7767 $as_test_x conftest$ac_exeext
7768 }; then
7769 ac_cv_prog_c_openmp='none needed'
7770else
7771 $as_echo "$as_me: failed program was:" >&5
7772sed 's/^/| /' conftest.$ac_ext >&5
7773
7774 ac_cv_prog_c_openmp='unsupported'
7775 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
7776 ac_save_CFLAGS=$CFLAGS
7777 CFLAGS="$CFLAGS $ac_option"
7778 cat >conftest.$ac_ext <<_ACEOF
7779
7780#ifndef _OPENMP
7781 choke me
7782#endif
7783#include <omp.h>
7784int main () { return omp_get_num_threads (); }
7785
7786_ACEOF
7787rm -f conftest.$ac_objext conftest$ac_exeext
7788if { (ac_try="$ac_link"
7789case "(($ac_try" in
7790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7791 *) ac_try_echo=$ac_try;;
7792esac
7793eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7794$as_echo "$ac_try_echo") >&5
7795 (eval "$ac_link") 2>conftest.er1
7796 ac_status=$?
7797 grep -v '^ *+' conftest.er1 >conftest.err
7798 rm -f conftest.er1
7799 cat conftest.err >&5
7800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } && {
7802 test -z "$ac_c_werror_flag" ||
7803 test ! -s conftest.err
7804 } && test -s conftest$ac_exeext && {
7805 test "$cross_compiling" = yes ||
7806 $as_test_x conftest$ac_exeext
7807 }; then
7808 ac_cv_prog_c_openmp=$ac_option
7809else
7810 $as_echo "$as_me: failed program was:" >&5
7811sed 's/^/| /' conftest.$ac_ext >&5
7812
7813
7814fi
7815
7816rm -rf conftest.dSYM
7817rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7818 conftest$ac_exeext conftest.$ac_ext
7819 CFLAGS=$ac_save_CFLAGS
7820 if test "$ac_cv_prog_c_openmp" != unsupported; then
7821 break
7822 fi
7823 done
7824fi
7825
7826rm -rf conftest.dSYM
7827rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7828 conftest$ac_exeext conftest.$ac_ext
7829fi
7830{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_c_openmp" >&5
7831$as_echo "$ac_cv_prog_c_openmp" >&6; }
7832 case $ac_cv_prog_c_openmp in #(
7833 "none needed" | unsupported)
7834 ;; #(
7835 *)
7836 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
7837 esac
7838 fi
7839
7840
7841CFLAGS="$OPENMP_CFLAGS $CFLAGS"
7842MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
7843
7844
7845########
7846#
7847# Check for large file support
7848#
7849########
7850# Check whether --enable-largefile was given.
7851if test "${enable_largefile+set}" = set; then
7852 enableval=$enable_largefile;
7853fi
7854
7855if test "$enable_largefile" != no; then
7856
7857 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
7858$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7859if test "${ac_cv_sys_largefile_CC+set}" = set; then
7860 $as_echo_n "(cached) " >&6
7861else
7862 ac_cv_sys_largefile_CC=no
7863 if test "$GCC" != yes; then
7864 ac_save_CC=$CC
7865 while :; do
7866 # IRIX 6.2 and later do not support large files by default,
7867 # so use the C compiler's -n32 option if that helps.
7868 cat >conftest.$ac_ext <<_ACEOF
7869/* confdefs.h. */
7870_ACEOF
7871cat confdefs.h >>conftest.$ac_ext
7872cat >>conftest.$ac_ext <<_ACEOF
7873/* end confdefs.h. */
7874#include <sys/types.h>
7875 /* Check that off_t can represent 2**63 - 1 correctly.
7876 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7877 since some C++ compilers masquerading as C compilers
7878 incorrectly reject 9223372036854775807. */
7879#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7880 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7881 && LARGE_OFF_T % 2147483647 == 1)
7882 ? 1 : -1];
7883int
7884main ()
7885{
7886
7887 ;
7888 return 0;
7889}
7890_ACEOF
7891 rm -f conftest.$ac_objext
7892if { (ac_try="$ac_compile"
7893case "(($ac_try" in
7894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7895 *) ac_try_echo=$ac_try;;
7896esac
7897eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7898$as_echo "$ac_try_echo") >&5
7899 (eval "$ac_compile") 2>conftest.er1
7900 ac_status=$?
7901 grep -v '^ *+' conftest.er1 >conftest.err
7902 rm -f conftest.er1
7903 cat conftest.err >&5
7904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); } && {
7906 test -z "$ac_c_werror_flag" ||
7907 test ! -s conftest.err
7908 } && test -s conftest.$ac_objext; then
7909 break
7910else
7911 $as_echo "$as_me: failed program was:" >&5
7912sed 's/^/| /' conftest.$ac_ext >&5
7913
7914
7915fi
7916
7917rm -f core conftest.err conftest.$ac_objext
7918 CC="$CC -n32"
7919 rm -f conftest.$ac_objext
7920if { (ac_try="$ac_compile"
7921case "(($ac_try" in
7922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7923 *) ac_try_echo=$ac_try;;
7924esac
7925eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7926$as_echo "$ac_try_echo") >&5
7927 (eval "$ac_compile") 2>conftest.er1
7928 ac_status=$?
7929 grep -v '^ *+' conftest.er1 >conftest.err
7930 rm -f conftest.er1
7931 cat conftest.err >&5
7932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7933 (exit $ac_status); } && {
7934 test -z "$ac_c_werror_flag" ||
7935 test ! -s conftest.err
7936 } && test -s conftest.$ac_objext; then
7937 ac_cv_sys_largefile_CC=' -n32'; break
7938else
7939 $as_echo "$as_me: failed program was:" >&5
7940sed 's/^/| /' conftest.$ac_ext >&5
7941
7942
7943fi
7944
7945rm -f core conftest.err conftest.$ac_objext
7946 break
7947 done
7948 CC=$ac_save_CC
7949 rm -f conftest.$ac_ext
7950 fi
7951fi
7952{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
7953$as_echo "$ac_cv_sys_largefile_CC" >&6; }
7954 if test "$ac_cv_sys_largefile_CC" != no; then
7955 CC=$CC$ac_cv_sys_largefile_CC
7956 fi
7957
7958 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7959$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7960if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7961 $as_echo_n "(cached) " >&6
7962else
7963 while :; do
7964 cat >conftest.$ac_ext <<_ACEOF
7965/* confdefs.h. */
7966_ACEOF
7967cat confdefs.h >>conftest.$ac_ext
7968cat >>conftest.$ac_ext <<_ACEOF
7969/* end confdefs.h. */
7970#include <sys/types.h>
7971 /* Check that off_t can represent 2**63 - 1 correctly.
7972 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7973 since some C++ compilers masquerading as C compilers
7974 incorrectly reject 9223372036854775807. */
7975#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7976 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7977 && LARGE_OFF_T % 2147483647 == 1)
7978 ? 1 : -1];
7979int
7980main ()
7981{
7982
7983 ;
7984 return 0;
7985}
7986_ACEOF
7987rm -f conftest.$ac_objext
7988if { (ac_try="$ac_compile"
7989case "(($ac_try" in
7990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7991 *) ac_try_echo=$ac_try;;
7992esac
7993eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7994$as_echo "$ac_try_echo") >&5
7995 (eval "$ac_compile") 2>conftest.er1
7996 ac_status=$?
7997 grep -v '^ *+' conftest.er1 >conftest.err
7998 rm -f conftest.er1
7999 cat conftest.err >&5
8000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8001 (exit $ac_status); } && {
8002 test -z "$ac_c_werror_flag" ||
8003 test ! -s conftest.err
8004 } && test -s conftest.$ac_objext; then
8005 ac_cv_sys_file_offset_bits=no; break
8006else
8007 $as_echo "$as_me: failed program was:" >&5
8008sed 's/^/| /' conftest.$ac_ext >&5
8009
8010
8011fi
8012
8013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014 cat >conftest.$ac_ext <<_ACEOF
8015/* confdefs.h. */
8016_ACEOF
8017cat confdefs.h >>conftest.$ac_ext
8018cat >>conftest.$ac_ext <<_ACEOF
8019/* end confdefs.h. */
8020#define _FILE_OFFSET_BITS 64
8021#include <sys/types.h>
8022 /* Check that off_t can represent 2**63 - 1 correctly.
8023 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8024 since some C++ compilers masquerading as C compilers
8025 incorrectly reject 9223372036854775807. */
8026#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8027 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8028 && LARGE_OFF_T % 2147483647 == 1)
8029 ? 1 : -1];
8030int
8031main ()
8032{
8033
8034 ;
8035 return 0;
8036}
8037_ACEOF
8038rm -f conftest.$ac_objext
8039if { (ac_try="$ac_compile"
8040case "(($ac_try" in
8041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042 *) ac_try_echo=$ac_try;;
8043esac
8044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8045$as_echo "$ac_try_echo") >&5
8046 (eval "$ac_compile") 2>conftest.er1
8047 ac_status=$?
8048 grep -v '^ *+' conftest.er1 >conftest.err
8049 rm -f conftest.er1
8050 cat conftest.err >&5
8051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); } && {
8053 test -z "$ac_c_werror_flag" ||
8054 test ! -s conftest.err
8055 } && test -s conftest.$ac_objext; then
8056 ac_cv_sys_file_offset_bits=64; break
8057else
8058 $as_echo "$as_me: failed program was:" >&5
8059sed 's/^/| /' conftest.$ac_ext >&5
8060
8061
8062fi
8063
8064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8065 ac_cv_sys_file_offset_bits=unknown
8066 break
8067done
8068fi
8069{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
8070$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
8071case $ac_cv_sys_file_offset_bits in #(
8072 no | unknown) ;;
8073 *)
8074cat >>confdefs.h <<_ACEOF
8075#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
8076_ACEOF
8077;;
8078esac
8079rm -rf conftest*
8080 if test $ac_cv_sys_file_offset_bits = unknown; then
8081 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
8082$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
8083if test "${ac_cv_sys_large_files+set}" = set; then
8084 $as_echo_n "(cached) " >&6
8085else
8086 while :; do
8087 cat >conftest.$ac_ext <<_ACEOF
8088/* confdefs.h. */
8089_ACEOF
8090cat confdefs.h >>conftest.$ac_ext
8091cat >>conftest.$ac_ext <<_ACEOF
8092/* end confdefs.h. */
8093#include <sys/types.h>
8094 /* Check that off_t can represent 2**63 - 1 correctly.
8095 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8096 since some C++ compilers masquerading as C compilers
8097 incorrectly reject 9223372036854775807. */
8098#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8099 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8100 && LARGE_OFF_T % 2147483647 == 1)
8101 ? 1 : -1];
8102int
8103main ()
8104{
8105
8106 ;
8107 return 0;
8108}
8109_ACEOF
8110rm -f conftest.$ac_objext
8111if { (ac_try="$ac_compile"
8112case "(($ac_try" in
8113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8114 *) ac_try_echo=$ac_try;;
8115esac
8116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8117$as_echo "$ac_try_echo") >&5
8118 (eval "$ac_compile") 2>conftest.er1
8119 ac_status=$?
8120 grep -v '^ *+' conftest.er1 >conftest.err
8121 rm -f conftest.er1
8122 cat conftest.err >&5
8123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124 (exit $ac_status); } && {
8125 test -z "$ac_c_werror_flag" ||
8126 test ! -s conftest.err
8127 } && test -s conftest.$ac_objext; then
8128 ac_cv_sys_large_files=no; break
8129else
8130 $as_echo "$as_me: failed program was:" >&5
8131sed 's/^/| /' conftest.$ac_ext >&5
8132
8133
8134fi
8135
8136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8137 cat >conftest.$ac_ext <<_ACEOF
8138/* confdefs.h. */
8139_ACEOF
8140cat confdefs.h >>conftest.$ac_ext
8141cat >>conftest.$ac_ext <<_ACEOF
8142/* end confdefs.h. */
8143#define _LARGE_FILES 1
8144#include <sys/types.h>
8145 /* Check that off_t can represent 2**63 - 1 correctly.
8146 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8147 since some C++ compilers masquerading as C compilers
8148 incorrectly reject 9223372036854775807. */
8149#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8150 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8151 && LARGE_OFF_T % 2147483647 == 1)
8152 ? 1 : -1];
8153int
8154main ()
8155{
8156
8157 ;
8158 return 0;
8159}
8160_ACEOF
8161rm -f conftest.$ac_objext
8162if { (ac_try="$ac_compile"
8163case "(($ac_try" in
8164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165 *) ac_try_echo=$ac_try;;
8166esac
8167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8168$as_echo "$ac_try_echo") >&5
8169 (eval "$ac_compile") 2>conftest.er1
8170 ac_status=$?
8171 grep -v '^ *+' conftest.er1 >conftest.err
8172 rm -f conftest.er1
8173 cat conftest.err >&5
8174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } && {
8176 test -z "$ac_c_werror_flag" ||
8177 test ! -s conftest.err
8178 } && test -s conftest.$ac_objext; then
8179 ac_cv_sys_large_files=1; break
8180else
8181 $as_echo "$as_me: failed program was:" >&5
8182sed 's/^/| /' conftest.$ac_ext >&5
8183
8184
8185fi
8186
8187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8188 ac_cv_sys_large_files=unknown
8189 break
8190done
8191fi
8192{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8193$as_echo "$ac_cv_sys_large_files" >&6; }
8194case $ac_cv_sys_large_files in #(
8195 no | unknown) ;;
8196 *)
8197cat >>confdefs.h <<_ACEOF
8198#define _LARGE_FILES $ac_cv_sys_large_files
8199_ACEOF
8200;;
8201esac
8202rm -rf conftest*
8203 fi
8204fi
8205
8206{ $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
8207$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
8208if test "${ac_cv_sys_largefile_source+set}" = set; then
8209 $as_echo_n "(cached) " >&6
8210else
8211 while :; do
8212 cat >conftest.$ac_ext <<_ACEOF
8213/* confdefs.h. */
8214_ACEOF
8215cat confdefs.h >>conftest.$ac_ext
8216cat >>conftest.$ac_ext <<_ACEOF
8217/* end confdefs.h. */
8218#include <sys/types.h> /* for off_t */
8219 #include <stdio.h>
8220int
8221main ()
8222{
8223int (*fp) (FILE *, off_t, int) = fseeko;
8224 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8225 ;
8226 return 0;
8227}
8228_ACEOF
8229rm -f conftest.$ac_objext conftest$ac_exeext
8230if { (ac_try="$ac_link"
8231case "(($ac_try" in
8232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8233 *) ac_try_echo=$ac_try;;
8234esac
8235eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8236$as_echo "$ac_try_echo") >&5
8237 (eval "$ac_link") 2>conftest.er1
8238 ac_status=$?
8239 grep -v '^ *+' conftest.er1 >conftest.err
8240 rm -f conftest.er1
8241 cat conftest.err >&5
8242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } && {
8244 test -z "$ac_c_werror_flag" ||
8245 test ! -s conftest.err
8246 } && test -s conftest$ac_exeext && {
8247 test "$cross_compiling" = yes ||
8248 $as_test_x conftest$ac_exeext
8249 }; then
8250 ac_cv_sys_largefile_source=no; break
8251else
8252 $as_echo "$as_me: failed program was:" >&5
8253sed 's/^/| /' conftest.$ac_ext >&5
8254
8255
8256fi
8257
8258rm -rf conftest.dSYM
8259rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8260 conftest$ac_exeext conftest.$ac_ext
8261 cat >conftest.$ac_ext <<_ACEOF
8262/* confdefs.h. */
8263_ACEOF
8264cat confdefs.h >>conftest.$ac_ext
8265cat >>conftest.$ac_ext <<_ACEOF
8266/* end confdefs.h. */
8267#define _LARGEFILE_SOURCE 1
8268#include <sys/types.h> /* for off_t */
8269 #include <stdio.h>
8270int
8271main ()
8272{
8273int (*fp) (FILE *, off_t, int) = fseeko;
8274 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
8275 ;
8276 return 0;
8277}
8278_ACEOF
8279rm -f conftest.$ac_objext conftest$ac_exeext
8280if { (ac_try="$ac_link"
8281case "(($ac_try" in
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8284esac
8285eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8286$as_echo "$ac_try_echo") >&5
8287 (eval "$ac_link") 2>conftest.er1
8288 ac_status=$?
8289 grep -v '^ *+' conftest.er1 >conftest.err
8290 rm -f conftest.er1
8291 cat conftest.err >&5
8292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); } && {
8294 test -z "$ac_c_werror_flag" ||
8295 test ! -s conftest.err
8296 } && test -s conftest$ac_exeext && {
8297 test "$cross_compiling" = yes ||
8298 $as_test_x conftest$ac_exeext
8299 }; then
8300 ac_cv_sys_largefile_source=1; break
8301else
8302 $as_echo "$as_me: failed program was:" >&5
8303sed 's/^/| /' conftest.$ac_ext >&5
8304
8305
8306fi
8307
8308rm -rf conftest.dSYM
8309rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8310 conftest$ac_exeext conftest.$ac_ext
8311 ac_cv_sys_largefile_source=unknown
8312 break
8313done
8314fi
8315{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
8316$as_echo "$ac_cv_sys_largefile_source" >&6; }
8317case $ac_cv_sys_largefile_source in #(
8318 no | unknown) ;;
8319 *)
8320cat >>confdefs.h <<_ACEOF
8321#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
8322_ACEOF
8323;;
8324esac
8325rm -rf conftest*
8326
8327# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
8328# in glibc 2.1.3, but that breaks too many other things.
8329# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
8330if test $ac_cv_sys_largefile_source != unknown; then
8331
8332cat >>confdefs.h <<\_ACEOF
8333#define HAVE_FSEEKO 1
8334_ACEOF
8335
8336fi
8337
8338LFS_CPPFLAGS=''
8339if test "$enable_largefile" != no; then
8340 if test "$ac_cv_sys_file_offset_bits" != 'no'; then
8341 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
8342 else
8343 { $as_echo "$as_me:$LINENO: checking for native large file support" >&5
8344$as_echo_n "checking for native large file support... " >&6; }
8345 if test "$cross_compiling" = yes; then
8346 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
8347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8348{ { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
8349See \`config.log' for more details." >&5
8350$as_echo "$as_me: error: cannot run test program while cross compiling
8351See \`config.log' for more details." >&2;}
8352 { (exit 1); exit 1; }; }; }
8353else
8354 cat >conftest.$ac_ext <<_ACEOF
8355#include <unistd.h>
8356 main () {
8357 exit(!(sizeof(off_t) == 8));
8358 }
8359_ACEOF
8360rm -f conftest$ac_exeext
8361if { (ac_try="$ac_link"
8362case "(($ac_try" in
8363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8364 *) ac_try_echo=$ac_try;;
8365esac
8366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8367$as_echo "$ac_try_echo") >&5
8368 (eval "$ac_link") 2>&5
8369 ac_status=$?
8370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8372 { (case "(($ac_try" in
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8375esac
8376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8377$as_echo "$ac_try_echo") >&5
8378 (eval "$ac_try") 2>&5
8379 ac_status=$?
8380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; }; then
8382 ac_cv_sys_file_offset_bits=64; cat >>confdefs.h <<\_ACEOF
8383#define _FILE_OFFSET_BITS 64
8384_ACEOF
8385
8386 { $as_echo "$as_me:$LINENO: result: yes" >&5
8387$as_echo "yes" >&6; }
8388else
8389 $as_echo "$as_me: program exited with status $ac_status" >&5
8390$as_echo "$as_me: failed program was:" >&5
8391sed 's/^/| /' conftest.$ac_ext >&5
8392
8393( exit $ac_status )
8394{ $as_echo "$as_me:$LINENO: result: no" >&5
8395$as_echo "no" >&6; }
8396fi
8397rm -rf conftest.dSYM
8398rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8399fi
8400
8401
8402 fi
8403 if test "$ac_cv_sys_large_files" != 'no'; then
8404 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
8405 fi
8406 if test "$ac_cv_sys_largefile_source" != 'no'; then
8407 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
8408 fi
8409fi
8410
8411
8412#
8413# Configure libtool & libltdl
8414#
8415# Configure libtool
8416enable_dlopen=yes
8417
8418
8419
8420case `pwd` in
8421 *\ * | *\ *)
8422 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8423$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8424esac
8425
8426
8427
8428macro_version='2.2.6'
8429macro_revision='1.3012'
8430
8431
8432
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443ltmain="$ac_aux_dir/ltmain.sh"
8444
8445{ $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
8446$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8447if test "${lt_cv_path_NM+set}" = set; then
8448 $as_echo_n "(cached) " >&6
8449else
8450 if test -n "$NM"; then
8451 # Let the user override the test.
8452 lt_cv_path_NM="$NM"
8453else
8454 lt_nm_to_check="${ac_tool_prefix}nm"
8455 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8456 lt_nm_to_check="$lt_nm_to_check nm"
8457 fi
8458 for lt_tmp_nm in $lt_nm_to_check; do
8459 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8460 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8461 IFS="$lt_save_ifs"
8462 test -z "$ac_dir" && ac_dir=.
8463 tmp_nm="$ac_dir/$lt_tmp_nm"
8464 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8465 # Check to see if the nm accepts a BSD-compat flag.
8466 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8467 # nm: unknown option "B" ignored
8468 # Tru64's nm complains that /dev/null is an invalid object file
8469 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8470 */dev/null* | *'Invalid file or object type'*)
8471 lt_cv_path_NM="$tmp_nm -B"
8472 break
8473 ;;
8474 *)
8475 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8476 */dev/null*)
8477 lt_cv_path_NM="$tmp_nm -p"
8478 break
8479 ;;
8480 *)
8481 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8482 continue # so that we can try to find one that supports BSD flags
8483 ;;
8484 esac
8485 ;;
8486 esac
8487 fi
8488 done
8489 IFS="$lt_save_ifs"
8490 done
8491 : ${lt_cv_path_NM=no}
8492fi
8493fi
8494{ $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
8495$as_echo "$lt_cv_path_NM" >&6; }
8496if test "$lt_cv_path_NM" != "no"; then
8497 NM="$lt_cv_path_NM"
8498else
8499 # Didn't find any BSD compatible name lister, look for dumpbin.
8500 if test -n "$ac_tool_prefix"; then
8501 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8502 do
8503 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8504set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8505{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8506$as_echo_n "checking for $ac_word... " >&6; }
8507if test "${ac_cv_prog_DUMPBIN+set}" = set; then
8508 $as_echo_n "(cached) " >&6
8509else
8510 if test -n "$DUMPBIN"; then
8511 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8512else
8513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8514for as_dir in $PATH
8515do
8516 IFS=$as_save_IFS
8517 test -z "$as_dir" && as_dir=.
8518 for ac_exec_ext in '' $ac_executable_extensions; do
8519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8520 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8521 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8522 break 2
8523 fi
8524done
8525done
8526IFS=$as_save_IFS
8527
8528fi
8529fi
8530DUMPBIN=$ac_cv_prog_DUMPBIN
8531if test -n "$DUMPBIN"; then
8532 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
8533$as_echo "$DUMPBIN" >&6; }
8534else
8535 { $as_echo "$as_me:$LINENO: result: no" >&5
8536$as_echo "no" >&6; }
8537fi
8538
8539
8540 test -n "$DUMPBIN" && break
8541 done
8542fi
8543if test -z "$DUMPBIN"; then
8544 ac_ct_DUMPBIN=$DUMPBIN
8545 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8546do
8547 # Extract the first word of "$ac_prog", so it can be a program name with args.
8548set dummy $ac_prog; ac_word=$2
8549{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8550$as_echo_n "checking for $ac_word... " >&6; }
8551if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
8552 $as_echo_n "(cached) " >&6
8553else
8554 if test -n "$ac_ct_DUMPBIN"; then
8555 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8556else
8557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8558for as_dir in $PATH
8559do
8560 IFS=$as_save_IFS
8561 test -z "$as_dir" && as_dir=.
8562 for ac_exec_ext in '' $ac_executable_extensions; do
8563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8564 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8565 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8566 break 2
8567 fi
8568done
8569done
8570IFS=$as_save_IFS
8571
8572fi
8573fi
8574ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8575if test -n "$ac_ct_DUMPBIN"; then
8576 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
8577$as_echo "$ac_ct_DUMPBIN" >&6; }
8578else
8579 { $as_echo "$as_me:$LINENO: result: no" >&5
8580$as_echo "no" >&6; }
8581fi
8582
8583
8584 test -n "$ac_ct_DUMPBIN" && break
8585done
8586
8587 if test "x$ac_ct_DUMPBIN" = x; then
8588 DUMPBIN=":"
8589 else
8590 case $cross_compiling:$ac_tool_warned in
8591yes:)
8592{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8593$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8594ac_tool_warned=yes ;;
8595esac
8596 DUMPBIN=$ac_ct_DUMPBIN
8597 fi
8598fi
8599
8600
8601 if test "$DUMPBIN" != ":"; then
8602 NM="$DUMPBIN"
8603 fi
8604fi
8605test -z "$NM" && NM=nm
8606
8607
8608
8609
8610
8611
8612{ $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
8613$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8614if test "${lt_cv_nm_interface+set}" = set; then
8615 $as_echo_n "(cached) " >&6
8616else
8617 lt_cv_nm_interface="BSD nm"
8618 echo "int some_variable = 0;" > conftest.$ac_ext
8619 (eval echo "\"\$as_me:8619: $ac_compile\"" >&5)
8620 (eval "$ac_compile" 2>conftest.err)
8621 cat conftest.err >&5
8622 (eval echo "\"\$as_me:8622: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8623 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8624 cat conftest.err >&5
8625 (eval echo "\"\$as_me:8625: output\"" >&5)
8626 cat conftest.out >&5
8627 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8628 lt_cv_nm_interface="MS dumpbin"
8629 fi
8630 rm -f conftest*
8631fi
8632{ $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
8633$as_echo "$lt_cv_nm_interface" >&6; }
8634
8635# find the maximum length of command line arguments
8636{ $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
8637$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8638if test "${lt_cv_sys_max_cmd_len+set}" = set; then
8639 $as_echo_n "(cached) " >&6
8640else
8641 i=0
8642 teststring="ABCD"
8643
8644 case $build_os in
8645 msdosdjgpp*)
8646 # On DJGPP, this test can blow up pretty badly due to problems in libc
8647 # (any single argument exceeding 2000 bytes causes a buffer overrun
8648 # during glob expansion). Even if it were fixed, the result of this
8649 # check would be larger than it should be.
8650 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8651 ;;
8652
8653 gnu*)
8654 # Under GNU Hurd, this test is not required because there is
8655 # no limit to the length of command line arguments.
8656 # Libtool will interpret -1 as no limit whatsoever
8657 lt_cv_sys_max_cmd_len=-1;
8658 ;;
8659
8660 cygwin* | mingw* | cegcc*)
8661 # On Win9x/ME, this test blows up -- it succeeds, but takes
8662 # about 5 minutes as the teststring grows exponentially.
8663 # Worse, since 9x/ME are not pre-emptively multitasking,
8664 # you end up with a "frozen" computer, even though with patience
8665 # the test eventually succeeds (with a max line length of 256k).
8666 # Instead, let's just punt: use the minimum linelength reported by
8667 # all of the supported platforms: 8192 (on NT/2K/XP).
8668 lt_cv_sys_max_cmd_len=8192;
8669 ;;
8670
8671 amigaos*)
8672 # On AmigaOS with pdksh, this test takes hours, literally.
8673 # So we just punt and use a minimum line length of 8192.
8674 lt_cv_sys_max_cmd_len=8192;
8675 ;;
8676
8677 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8678 # This has been around since 386BSD, at least. Likely further.
8679 if test -x /sbin/sysctl; then
8680 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8681 elif test -x /usr/sbin/sysctl; then
8682 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8683 else
8684 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8685 fi
8686 # And add a safety zone
8687 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8688 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8689 ;;
8690
8691 interix*)
8692 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8693 lt_cv_sys_max_cmd_len=196608
8694 ;;
8695
8696 osf*)
8697 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8698 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8699 # nice to cause kernel panics so lets avoid the loop below.
8700 # First set a reasonable default.
8701 lt_cv_sys_max_cmd_len=16384
8702 #
8703 if test -x /sbin/sysconfig; then
8704 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8705 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8706 esac
8707 fi
8708 ;;
8709 sco3.2v5*)
8710 lt_cv_sys_max_cmd_len=102400
8711 ;;
8712 sysv5* | sco5v6* | sysv4.2uw2*)
8713 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8714 if test -n "$kargmax"; then
8715 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8716 else
8717 lt_cv_sys_max_cmd_len=32768
8718 fi
8719 ;;
8720 *)
8721 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8722 if test -n "$lt_cv_sys_max_cmd_len"; then
8723 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8725 else
8726 # Make teststring a little bigger before we do anything with it.
8727 # a 1K string should be a reasonable start.
8728 for i in 1 2 3 4 5 6 7 8 ; do
8729 teststring=$teststring$teststring
8730 done
8731 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8732 # If test is not a shell built-in, we'll probably end up computing a
8733 # maximum length that is only half of the actual maximum length, but
8734 # we can't tell.
8735 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
8736 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
8737 test $i != 17 # 1/2 MB should be enough
8738 do
8739 i=`expr $i + 1`
8740 teststring=$teststring$teststring
8741 done
8742 # Only check the string length outside the loop.
8743 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8744 teststring=
8745 # Add a significant safety factor because C++ compilers can tack on
8746 # massive amounts of additional arguments before passing them to the
8747 # linker. It appears as though 1/2 is a usable value.
8748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8749 fi
8750 ;;
8751 esac
8752
8753fi
8754
8755if test -n $lt_cv_sys_max_cmd_len ; then
8756 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
8757$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8758else
8759 { $as_echo "$as_me:$LINENO: result: none" >&5
8760$as_echo "none" >&6; }
8761fi
8762max_cmd_len=$lt_cv_sys_max_cmd_len
8763
8764
8765
8766
8767
8768
8769: ${CP="cp -f"}
8770: ${MV="mv -f"}
8771: ${RM="rm -f"}
8772
8773{ $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
8774$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8775# Try some XSI features
8776xsi_shell=no
8777( _lt_dummy="a/b/c"
8778 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8779 = c,a/b,, \
8780 && eval 'test $(( 1 + 1 )) -eq 2 \
8781 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8782 && xsi_shell=yes
8783{ $as_echo "$as_me:$LINENO: result: $xsi_shell" >&5
8784$as_echo "$xsi_shell" >&6; }
8785
8786
8787{ $as_echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
8788$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8789lt_shell_append=no
8790( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8791 >/dev/null 2>&1 \
8792 && lt_shell_append=yes
8793{ $as_echo "$as_me:$LINENO: result: $lt_shell_append" >&5
8794$as_echo "$lt_shell_append" >&6; }
8795
8796
8797if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8798 lt_unset=unset
8799else
8800 lt_unset=false
8801fi
8802
8803
8804
8805
8806
8807# test EBCDIC or ASCII
8808case `echo X|tr X '\101'` in
8809 A) # ASCII based system
8810 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8811 lt_SP2NL='tr \040 \012'
8812 lt_NL2SP='tr \015\012 \040\040'
8813 ;;
8814 *) # EBCDIC based system
8815 lt_SP2NL='tr \100 \n'
8816 lt_NL2SP='tr \r\n \100\100'
8817 ;;
8818esac
8819
8820
8821
8822
8823
8824
8825
8826
8827
8828{ $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
8829$as_echo_n "checking for $LD option to reload object files... " >&6; }
8830if test "${lt_cv_ld_reload_flag+set}" = set; then
8831 $as_echo_n "(cached) " >&6
8832else
8833 lt_cv_ld_reload_flag='-r'
8834fi
8835{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
8836$as_echo "$lt_cv_ld_reload_flag" >&6; }
8837reload_flag=$lt_cv_ld_reload_flag
8838case $reload_flag in
8839"" | " "*) ;;
8840*) reload_flag=" $reload_flag" ;;
8841esac
8842reload_cmds='$LD$reload_flag -o $output$reload_objs'
8843case $host_os in
8844 darwin*)
8845 if test "$GCC" = yes; then
8846 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8847 else
8848 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8849 fi
8850 ;;
8851esac
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861if test -n "$ac_tool_prefix"; then
8862 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8863set dummy ${ac_tool_prefix}objdump; ac_word=$2
8864{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8865$as_echo_n "checking for $ac_word... " >&6; }
8866if test "${ac_cv_prog_OBJDUMP+set}" = set; then
8867 $as_echo_n "(cached) " >&6
8868else
8869 if test -n "$OBJDUMP"; then
8870 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8871else
8872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8873for as_dir in $PATH
8874do
8875 IFS=$as_save_IFS
8876 test -z "$as_dir" && as_dir=.
8877 for ac_exec_ext in '' $ac_executable_extensions; do
8878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8879 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8880 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8881 break 2
8882 fi
8883done
8884done
8885IFS=$as_save_IFS
8886
8887fi
8888fi
8889OBJDUMP=$ac_cv_prog_OBJDUMP
8890if test -n "$OBJDUMP"; then
8891 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
8892$as_echo "$OBJDUMP" >&6; }
8893else
8894 { $as_echo "$as_me:$LINENO: result: no" >&5
8895$as_echo "no" >&6; }
8896fi
8897
8898
8899fi
8900if test -z "$ac_cv_prog_OBJDUMP"; then
8901 ac_ct_OBJDUMP=$OBJDUMP
8902 # Extract the first word of "objdump", so it can be a program name with args.
8903set dummy objdump; ac_word=$2
8904{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8905$as_echo_n "checking for $ac_word... " >&6; }
8906if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
8907 $as_echo_n "(cached) " >&6
8908else
8909 if test -n "$ac_ct_OBJDUMP"; then
8910 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8911else
8912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8913for as_dir in $PATH
8914do
8915 IFS=$as_save_IFS
8916 test -z "$as_dir" && as_dir=.
8917 for ac_exec_ext in '' $ac_executable_extensions; do
8918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8919 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8920 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8921 break 2
8922 fi
8923done
8924done
8925IFS=$as_save_IFS
8926
8927fi
8928fi
8929ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8930if test -n "$ac_ct_OBJDUMP"; then
8931 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
8932$as_echo "$ac_ct_OBJDUMP" >&6; }
8933else
8934 { $as_echo "$as_me:$LINENO: result: no" >&5
8935$as_echo "no" >&6; }
8936fi
8937
8938 if test "x$ac_ct_OBJDUMP" = x; then
8939 OBJDUMP="false"
8940 else
8941 case $cross_compiling:$ac_tool_warned in
8942yes:)
8943{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
8944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8945ac_tool_warned=yes ;;
8946esac
8947 OBJDUMP=$ac_ct_OBJDUMP
8948 fi
8949else
8950 OBJDUMP="$ac_cv_prog_OBJDUMP"
8951fi
8952
8953test -z "$OBJDUMP" && OBJDUMP=objdump
8954
8955
8956
8957
8958
8959
8960{ $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
8961$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8962if test "${lt_cv_deplibs_check_method+set}" = set; then
8963 $as_echo_n "(cached) " >&6
8964else
8965 lt_cv_file_magic_cmd='$MAGIC_CMD'
8966lt_cv_file_magic_test_file=
8967lt_cv_deplibs_check_method='unknown'
8968# Need to set the preceding variable on all platforms that support
8969# interlibrary dependencies.
8970# 'none' -- dependencies not supported.
8971# `unknown' -- same as none, but documents that we really don't know.
8972# 'pass_all' -- all dependencies passed with no checks.
8973# 'test_compile' -- check by making test program.
8974# 'file_magic [[regex]]' -- check by looking for files in library path
8975# which responds to the $file_magic_cmd with a given extended regex.
8976# If you have `file' or equivalent on your system and you're not sure
8977# whether `pass_all' will *always* work, you probably want this one.
8978
8979case $host_os in
8980aix[4-9]*)
8981 lt_cv_deplibs_check_method=pass_all
8982 ;;
8983
8984beos*)
8985 lt_cv_deplibs_check_method=pass_all
8986 ;;
8987
8988bsdi[45]*)
8989 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8990 lt_cv_file_magic_cmd='/usr/bin/file -L'
8991 lt_cv_file_magic_test_file=/shlib/libc.so
8992 ;;
8993
8994cygwin*)
8995 # func_win32_libid is a shell function defined in ltmain.sh
8996 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8997 lt_cv_file_magic_cmd='func_win32_libid'
8998 ;;
8999
9000mingw* | pw32*)
9001 # Base MSYS/MinGW do not provide the 'file' command needed by
9002 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9003 # unless we find 'file', for example because we are cross-compiling.
9004 if ( file / ) >/dev/null 2>&1; then
9005 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9006 lt_cv_file_magic_cmd='func_win32_libid'
9007 else
9008 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9009 lt_cv_file_magic_cmd='$OBJDUMP -f'
9010 fi
9011 ;;
9012
9013cegcc)
9014 # use the weaker test based on 'objdump'. See mingw*.
9015 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9016 lt_cv_file_magic_cmd='$OBJDUMP -f'
9017 ;;
9018
9019darwin* | rhapsody*)
9020 lt_cv_deplibs_check_method=pass_all
9021 ;;
9022
9023freebsd* | dragonfly*)
9024 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9025 case $host_cpu in
9026 i*86 )
9027 # Not sure whether the presence of OpenBSD here was a mistake.
9028 # Let's accept both of them until this is cleared up.
9029 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9030 lt_cv_file_magic_cmd=/usr/bin/file
9031 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9032 ;;
9033 esac
9034 else
9035 lt_cv_deplibs_check_method=pass_all
9036 fi
9037 ;;
9038
9039gnu*)
9040 lt_cv_deplibs_check_method=pass_all
9041 ;;
9042
9043hpux10.20* | hpux11*)
9044 lt_cv_file_magic_cmd=/usr/bin/file
9045 case $host_cpu in
9046 ia64*)
9047 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9048 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9049 ;;
9050 hppa*64*)
9051 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]'
9052 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9053 ;;
9054 *)
9055 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
9056 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9057 ;;
9058 esac
9059 ;;
9060
9061interix[3-9]*)
9062 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9064 ;;
9065
9066irix5* | irix6* | nonstopux*)
9067 case $LD in
9068 *-32|*"-32 ") libmagic=32-bit;;
9069 *-n32|*"-n32 ") libmagic=N32;;
9070 *-64|*"-64 ") libmagic=64-bit;;
9071 *) libmagic=never-match;;
9072 esac
9073 lt_cv_deplibs_check_method=pass_all
9074 ;;
9075
9076# This must be Linux ELF.
9077linux* | k*bsd*-gnu)
9078 lt_cv_deplibs_check_method=pass_all
9079 ;;
9080
9081netbsd*)
9082 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9084 else
9085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9086 fi
9087 ;;
9088
9089newos6*)
9090 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9091 lt_cv_file_magic_cmd=/usr/bin/file
9092 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9093 ;;
9094
9095*nto* | *qnx*)
9096 lt_cv_deplibs_check_method=pass_all
9097 ;;
9098
9099openbsd*)
9100 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9101 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9102 else
9103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9104 fi
9105 ;;
9106
9107osf3* | osf4* | osf5*)
9108 lt_cv_deplibs_check_method=pass_all
9109 ;;
9110
9111rdos*)
9112 lt_cv_deplibs_check_method=pass_all
9113 ;;
9114
9115solaris*)
9116 lt_cv_deplibs_check_method=pass_all
9117 ;;
9118
9119sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9120 lt_cv_deplibs_check_method=pass_all
9121 ;;
9122
9123sysv4 | sysv4.3*)
9124 case $host_vendor in
9125 motorola)
9126 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]'
9127 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9128 ;;
9129 ncr)
9130 lt_cv_deplibs_check_method=pass_all
9131 ;;
9132 sequent)
9133 lt_cv_file_magic_cmd='/bin/file'
9134 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9135 ;;
9136 sni)
9137 lt_cv_file_magic_cmd='/bin/file'
9138 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9139 lt_cv_file_magic_test_file=/lib/libc.so
9140 ;;
9141 siemens)
9142 lt_cv_deplibs_check_method=pass_all
9143 ;;
9144 pc)
9145 lt_cv_deplibs_check_method=pass_all
9146 ;;
9147 esac
9148 ;;
9149
9150tpf*)
9151 lt_cv_deplibs_check_method=pass_all
9152 ;;
9153esac
9154
9155fi
9156{ $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
9157$as_echo "$lt_cv_deplibs_check_method" >&6; }
9158file_magic_cmd=$lt_cv_file_magic_cmd
9159deplibs_check_method=$lt_cv_deplibs_check_method
9160test -z "$deplibs_check_method" && deplibs_check_method=unknown
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172
9173if test -n "$ac_tool_prefix"; then
9174 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9175set dummy ${ac_tool_prefix}ar; ac_word=$2
9176{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9177$as_echo_n "checking for $ac_word... " >&6; }
9178if test "${ac_cv_prog_AR+set}" = set; then
9179 $as_echo_n "(cached) " >&6
9180else
9181 if test -n "$AR"; then
9182 ac_cv_prog_AR="$AR" # Let the user override the test.
9183else
9184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9185for as_dir in $PATH
9186do
9187 IFS=$as_save_IFS
9188 test -z "$as_dir" && as_dir=.
9189 for ac_exec_ext in '' $ac_executable_extensions; do
9190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9191 ac_cv_prog_AR="${ac_tool_prefix}ar"
9192 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9193 break 2
9194 fi
9195done
9196done
9197IFS=$as_save_IFS
9198
9199fi
9200fi
9201AR=$ac_cv_prog_AR
9202if test -n "$AR"; then
9203 { $as_echo "$as_me:$LINENO: result: $AR" >&5
9204$as_echo "$AR" >&6; }
9205else
9206 { $as_echo "$as_me:$LINENO: result: no" >&5
9207$as_echo "no" >&6; }
9208fi
9209
9210
9211fi
9212if test -z "$ac_cv_prog_AR"; then
9213 ac_ct_AR=$AR
9214 # Extract the first word of "ar", so it can be a program name with args.
9215set dummy ar; ac_word=$2
9216{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9217$as_echo_n "checking for $ac_word... " >&6; }
9218if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9219 $as_echo_n "(cached) " >&6
9220else
9221 if test -n "$ac_ct_AR"; then
9222 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9223else
9224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9225for as_dir in $PATH
9226do
9227 IFS=$as_save_IFS
9228 test -z "$as_dir" && as_dir=.
9229 for ac_exec_ext in '' $ac_executable_extensions; do
9230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9231 ac_cv_prog_ac_ct_AR="ar"
9232 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9233 break 2
9234 fi
9235done
9236done
9237IFS=$as_save_IFS
9238
9239fi
9240fi
9241ac_ct_AR=$ac_cv_prog_ac_ct_AR
9242if test -n "$ac_ct_AR"; then
9243 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9244$as_echo "$ac_ct_AR" >&6; }
9245else
9246 { $as_echo "$as_me:$LINENO: result: no" >&5
9247$as_echo "no" >&6; }
9248fi
9249
9250 if test "x$ac_ct_AR" = x; then
9251 AR="false"
9252 else
9253 case $cross_compiling:$ac_tool_warned in
9254yes:)
9255{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9256$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9257ac_tool_warned=yes ;;
9258esac
9259 AR=$ac_ct_AR
9260 fi
9261else
9262 AR="$ac_cv_prog_AR"
9263fi
9264
9265test -z "$AR" && AR=ar
9266test -z "$AR_FLAGS" && AR_FLAGS=cru
9267
9268
9269
9270
9271
9272
9273
9274
9275
9276
9277
9278if test -n "$ac_tool_prefix"; then
9279 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9280set dummy ${ac_tool_prefix}strip; ac_word=$2
9281{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9282$as_echo_n "checking for $ac_word... " >&6; }
9283if test "${ac_cv_prog_STRIP+set}" = set; then
9284 $as_echo_n "(cached) " >&6
9285else
9286 if test -n "$STRIP"; then
9287 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9288else
9289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9290for as_dir in $PATH
9291do
9292 IFS=$as_save_IFS
9293 test -z "$as_dir" && as_dir=.
9294 for ac_exec_ext in '' $ac_executable_extensions; do
9295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9296 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9297 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9298 break 2
9299 fi
9300done
9301done
9302IFS=$as_save_IFS
9303
9304fi
9305fi
9306STRIP=$ac_cv_prog_STRIP
9307if test -n "$STRIP"; then
9308 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
9309$as_echo "$STRIP" >&6; }
9310else
9311 { $as_echo "$as_me:$LINENO: result: no" >&5
9312$as_echo "no" >&6; }
9313fi
9314
9315
9316fi
9317if test -z "$ac_cv_prog_STRIP"; then
9318 ac_ct_STRIP=$STRIP
9319 # Extract the first word of "strip", so it can be a program name with args.
9320set dummy strip; ac_word=$2
9321{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9322$as_echo_n "checking for $ac_word... " >&6; }
9323if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
9324 $as_echo_n "(cached) " >&6
9325else
9326 if test -n "$ac_ct_STRIP"; then
9327 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9328else
9329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9330for as_dir in $PATH
9331do
9332 IFS=$as_save_IFS
9333 test -z "$as_dir" && as_dir=.
9334 for ac_exec_ext in '' $ac_executable_extensions; do
9335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9336 ac_cv_prog_ac_ct_STRIP="strip"
9337 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9338 break 2
9339 fi
9340done
9341done
9342IFS=$as_save_IFS
9343
9344fi
9345fi
9346ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9347if test -n "$ac_ct_STRIP"; then
9348 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
9349$as_echo "$ac_ct_STRIP" >&6; }
9350else
9351 { $as_echo "$as_me:$LINENO: result: no" >&5
9352$as_echo "no" >&6; }
9353fi
9354
9355 if test "x$ac_ct_STRIP" = x; then
9356 STRIP=":"
9357 else
9358 case $cross_compiling:$ac_tool_warned in
9359yes:)
9360{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9361$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9362ac_tool_warned=yes ;;
9363esac
9364 STRIP=$ac_ct_STRIP
9365 fi
9366else
9367 STRIP="$ac_cv_prog_STRIP"
9368fi
9369
9370test -z "$STRIP" && STRIP=:
9371
9372
9373
9374
9375
9376
9377if test -n "$ac_tool_prefix"; then
9378 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9379set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9380{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9381$as_echo_n "checking for $ac_word... " >&6; }
9382if test "${ac_cv_prog_RANLIB+set}" = set; then
9383 $as_echo_n "(cached) " >&6
9384else
9385 if test -n "$RANLIB"; then
9386 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9387else
9388as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9389for as_dir in $PATH
9390do
9391 IFS=$as_save_IFS
9392 test -z "$as_dir" && as_dir=.
9393 for ac_exec_ext in '' $ac_executable_extensions; do
9394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9395 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9396 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9397 break 2
9398 fi
9399done
9400done
9401IFS=$as_save_IFS
9402
9403fi
9404fi
9405RANLIB=$ac_cv_prog_RANLIB
9406if test -n "$RANLIB"; then
9407 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
9408$as_echo "$RANLIB" >&6; }
9409else
9410 { $as_echo "$as_me:$LINENO: result: no" >&5
9411$as_echo "no" >&6; }
9412fi
9413
9414
9415fi
9416if test -z "$ac_cv_prog_RANLIB"; then
9417 ac_ct_RANLIB=$RANLIB
9418 # Extract the first word of "ranlib", so it can be a program name with args.
9419set dummy ranlib; ac_word=$2
9420{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9421$as_echo_n "checking for $ac_word... " >&6; }
9422if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
9423 $as_echo_n "(cached) " >&6
9424else
9425 if test -n "$ac_ct_RANLIB"; then
9426 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9427else
9428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9429for as_dir in $PATH
9430do
9431 IFS=$as_save_IFS
9432 test -z "$as_dir" && as_dir=.
9433 for ac_exec_ext in '' $ac_executable_extensions; do
9434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9435 ac_cv_prog_ac_ct_RANLIB="ranlib"
9436 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9437 break 2
9438 fi
9439done
9440done
9441IFS=$as_save_IFS
9442
9443fi
9444fi
9445ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9446if test -n "$ac_ct_RANLIB"; then
9447 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
9448$as_echo "$ac_ct_RANLIB" >&6; }
9449else
9450 { $as_echo "$as_me:$LINENO: result: no" >&5
9451$as_echo "no" >&6; }
9452fi
9453
9454 if test "x$ac_ct_RANLIB" = x; then
9455 RANLIB=":"
9456 else
9457 case $cross_compiling:$ac_tool_warned in
9458yes:)
9459{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
9460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9461ac_tool_warned=yes ;;
9462esac
9463 RANLIB=$ac_ct_RANLIB
9464 fi
9465else
9466 RANLIB="$ac_cv_prog_RANLIB"
9467fi
9468
9469test -z "$RANLIB" && RANLIB=:
9470
9471
9472
9473
9474
9475
9476# Determine commands to create old-style static archives.
9477old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9478old_postinstall_cmds='chmod 644 $oldlib'
9479old_postuninstall_cmds=
9480
9481if test -n "$RANLIB"; then
9482 case $host_os in
9483 openbsd*)
9484 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9485 ;;
9486 *)
9487 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9488 ;;
9489 esac
9490 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9491fi
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526# If no C compiler was specified, use CC.
9527LTCC=${LTCC-"$CC"}
9528
9529# If no C compiler flags were specified, use CFLAGS.
9530LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9531
9532# Allow CC to be a program name with arguments.
9533compiler=$CC
9534
9535
9536# Check for command to grab the raw symbol name followed by C symbol from nm.
9537{ $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9538$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9539if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9540 $as_echo_n "(cached) " >&6
9541else
9542
9543# These are sane defaults that work on at least a few old systems.
9544# [They come from Ultrix. What could be older than Ultrix?!! ;)]
9545
9546# Character class describing NM global symbol codes.
9547symcode='[BCDEGRST]'
9548
9549# Regexp to match symbols that can be accessed directly from C.
9550sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9551
9552# Define system-specific variables.
9553case $host_os in
9554aix*)
9555 symcode='[BCDT]'
9556 ;;
9557cygwin* | mingw* | pw32* | cegcc*)
9558 symcode='[ABCDGISTW]'
9559 ;;
9560hpux*)
9561 if test "$host_cpu" = ia64; then
9562 symcode='[ABCDEGRST]'
9563 fi
9564 ;;
9565irix* | nonstopux*)
9566 symcode='[BCDEGRST]'
9567 ;;
9568osf*)
9569 symcode='[BCDEGQRST]'
9570 ;;
9571solaris*)
9572 symcode='[BDRT]'
9573 ;;
9574sco3.2v5*)
9575 symcode='[DT]'
9576 ;;
9577sysv4.2uw2*)
9578 symcode='[DT]'
9579 ;;
9580sysv5* | sco5v6* | unixware* | OpenUNIX*)
9581 symcode='[ABDT]'
9582 ;;
9583sysv4)
9584 symcode='[DFNSTU]'
9585 ;;
9586esac
9587
9588# If we're using GNU nm, then use its standard symbol codes.
9589case `$NM -V 2>&1` in
9590*GNU* | *'with BFD'*)
9591 symcode='[ABCDGIRSTW]' ;;
9592esac
9593
9594# Transform an extracted symbol line into a proper C declaration.
9595# Some systems (esp. on ia64) link data and code symbols differently,
9596# so use this general approach.
9597lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9598
9599# Transform an extracted symbol line into symbol name and symbol address
9600lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9601lt_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'"
9602
9603# Handle CRLF in mingw tool chain
9604opt_cr=
9605case $build_os in
9606mingw*)
9607 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9608 ;;
9609esac
9610
9611# Try without a prefix underscore, then with it.
9612for ac_symprfx in "" "_"; do
9613
9614 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9615 symxfrm="\\1 $ac_symprfx\\2 \\2"
9616
9617 # Write the raw and C identifiers.
9618 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9619 # Fake it for dumpbin and say T for any non-static function
9620 # and D for any global variable.
9621 # Also find C++ and __fastcall symbols from MSVC++,
9622 # which start with @ or ?.
9623 lt_cv_sys_global_symbol_pipe="$AWK '"\
9624" {last_section=section; section=\$ 3};"\
9625" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9626" \$ 0!~/External *\|/{next};"\
9627" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9628" {if(hide[section]) next};"\
9629" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9630" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9631" s[1]~/^[@?]/{print s[1], s[1]; next};"\
9632" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9633" ' prfx=^$ac_symprfx"
9634 else
9635 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9636 fi
9637
9638 # Check to see that the pipe works correctly.
9639 pipe_works=no
9640
9641 rm -f conftest*
9642 cat > conftest.$ac_ext <<_LT_EOF
9643#ifdef __cplusplus
9644extern "C" {
9645#endif
9646char nm_test_var;
9647void nm_test_func(void);
9648void nm_test_func(void){}
9649#ifdef __cplusplus
9650}
9651#endif
9652int main(){nm_test_var='a';nm_test_func();return(0);}
9653_LT_EOF
9654
9655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9656 (eval $ac_compile) 2>&5
9657 ac_status=$?
9658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; then
9660 # Now try to grab the symbols.
9661 nlist=conftest.nm
9662 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9663 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9664 ac_status=$?
9665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } && test -s "$nlist"; then
9667 # Try sorting and uniquifying the output.
9668 if sort "$nlist" | uniq > "$nlist"T; then
9669 mv -f "$nlist"T "$nlist"
9670 else
9671 rm -f "$nlist"T
9672 fi
9673
9674 # Make sure that we snagged all the symbols we need.
9675 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9676 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9677 cat <<_LT_EOF > conftest.$ac_ext
9678#ifdef __cplusplus
9679extern "C" {
9680#endif
9681
9682_LT_EOF
9683 # Now generate the symbol file.
9684 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9685
9686 cat <<_LT_EOF >> conftest.$ac_ext
9687
9688/* The mapping between symbol names and symbols. */
9689const struct {
9690 const char *name;
9691 void *address;
9692}
9693lt__PROGRAM__LTX_preloaded_symbols[] =
9694{
9695 { "@PROGRAM@", (void *) 0 },
9696_LT_EOF
9697 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9698 cat <<\_LT_EOF >> conftest.$ac_ext
9699 {0, (void *) 0}
9700};
9701
9702/* This works around a problem in FreeBSD linker */
9703#ifdef FREEBSD_WORKAROUND
9704static const void *lt_preloaded_setup() {
9705 return lt__PROGRAM__LTX_preloaded_symbols;
9706}
9707#endif
9708
9709#ifdef __cplusplus
9710}
9711#endif
9712_LT_EOF
9713 # Now try linking the two files.
9714 mv conftest.$ac_objext conftstm.$ac_objext
9715 lt_save_LIBS="$LIBS"
9716 lt_save_CFLAGS="$CFLAGS"
9717 LIBS="conftstm.$ac_objext"
9718 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9720 (eval $ac_link) 2>&5
9721 ac_status=$?
9722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9724 pipe_works=yes
9725 fi
9726 LIBS="$lt_save_LIBS"
9727 CFLAGS="$lt_save_CFLAGS"
9728 else
9729 echo "cannot find nm_test_func in $nlist" >&5
9730 fi
9731 else
9732 echo "cannot find nm_test_var in $nlist" >&5
9733 fi
9734 else
9735 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9736 fi
9737 else
9738 echo "$progname: failed program was:" >&5
9739 cat conftest.$ac_ext >&5
9740 fi
9741 rm -rf conftest* conftst*
9742
9743 # Do not use the global_symbol_pipe unless it works.
9744 if test "$pipe_works" = yes; then
9745 break
9746 else
9747 lt_cv_sys_global_symbol_pipe=
9748 fi
9749done
9750
9751fi
9752
9753if test -z "$lt_cv_sys_global_symbol_pipe"; then
9754 lt_cv_sys_global_symbol_to_cdecl=
9755fi
9756if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9757 { $as_echo "$as_me:$LINENO: result: failed" >&5
9758$as_echo "failed" >&6; }
9759else
9760 { $as_echo "$as_me:$LINENO: result: ok" >&5
9761$as_echo "ok" >&6; }
9762fi
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785# Check whether --enable-libtool-lock was given.
9786if test "${enable_libtool_lock+set}" = set; then
9787 enableval=$enable_libtool_lock;
9788fi
9789
9790test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9791
9792# Some flags need to be propagated to the compiler or linker for good
9793# libtool support.
9794case $host in
9795ia64-*-hpux*)
9796 # Find out which ABI we are using.
9797 echo 'int i;' > conftest.$ac_ext
9798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9799 (eval $ac_compile) 2>&5
9800 ac_status=$?
9801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9802 (exit $ac_status); }; then
9803 case `/usr/bin/file conftest.$ac_objext` in
9804 *ELF-32*)
9805 HPUX_IA64_MODE="32"
9806 ;;
9807 *ELF-64*)
9808 HPUX_IA64_MODE="64"
9809 ;;
9810 esac
9811 fi
9812 rm -rf conftest*
9813 ;;
9814*-*-irix6*)
9815 # Find out which ABI we are using.
9816 echo '#line 9816 "configure"' > conftest.$ac_ext
9817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9818 (eval $ac_compile) 2>&5
9819 ac_status=$?
9820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); }; then
9822 if test "$lt_cv_prog_gnu_ld" = yes; then
9823 case `/usr/bin/file conftest.$ac_objext` in
9824 *32-bit*)
9825 LD="${LD-ld} -melf32bsmip"
9826 ;;
9827 *N32*)
9828 LD="${LD-ld} -melf32bmipn32"
9829 ;;
9830 *64-bit*)
9831 LD="${LD-ld} -melf64bmip"
9832 ;;
9833 esac
9834 else
9835 case `/usr/bin/file conftest.$ac_objext` in
9836 *32-bit*)
9837 LD="${LD-ld} -32"
9838 ;;
9839 *N32*)
9840 LD="${LD-ld} -n32"
9841 ;;
9842 *64-bit*)
9843 LD="${LD-ld} -64"
9844 ;;
9845 esac
9846 fi
9847 fi
9848 rm -rf conftest*
9849 ;;
9850
9851x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9852s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9853 # Find out which ABI we are using.
9854 echo 'int i;' > conftest.$ac_ext
9855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9856 (eval $ac_compile) 2>&5
9857 ac_status=$?
9858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; then
9860 case `/usr/bin/file conftest.o` in
9861 *32-bit*)
9862 case $host in
9863 x86_64-*kfreebsd*-gnu)
9864 LD="${LD-ld} -m elf_i386_fbsd"
9865 ;;
9866 x86_64-*linux*)
9867 LD="${LD-ld} -m elf_i386"
9868 ;;
9869 ppc64-*linux*|powerpc64-*linux*)
9870 LD="${LD-ld} -m elf32ppclinux"
9871 ;;
9872 s390x-*linux*)
9873 LD="${LD-ld} -m elf_s390"
9874 ;;
9875 sparc64-*linux*)
9876 LD="${LD-ld} -m elf32_sparc"
9877 ;;
9878 esac
9879 ;;
9880 *64-bit*)
9881 case $host in
9882 x86_64-*kfreebsd*-gnu)
9883 LD="${LD-ld} -m elf_x86_64_fbsd"
9884 ;;
9885 x86_64-*linux*)
9886 LD="${LD-ld} -m elf_x86_64"
9887 ;;
9888 ppc*-*linux*|powerpc*-*linux*)
9889 LD="${LD-ld} -m elf64ppc"
9890 ;;
9891 s390*-*linux*|s390*-*tpf*)
9892 LD="${LD-ld} -m elf64_s390"
9893 ;;
9894 sparc*-*linux*)
9895 LD="${LD-ld} -m elf64_sparc"
9896 ;;
9897 esac
9898 ;;
9899 esac
9900 fi
9901 rm -rf conftest*
9902 ;;
9903
9904*-*-sco3.2v5*)
9905 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9906 SAVE_CFLAGS="$CFLAGS"
9907 CFLAGS="$CFLAGS -belf"
9908 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
9909$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9910if test "${lt_cv_cc_needs_belf+set}" = set; then
9911 $as_echo_n "(cached) " >&6
9912else
9913 ac_ext=c
9914ac_cpp='$CPP $CPPFLAGS'
9915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9917ac_compiler_gnu=$ac_cv_c_compiler_gnu
9918
9919 cat >conftest.$ac_ext <<_ACEOF
9920/* confdefs.h. */
9921_ACEOF
9922cat confdefs.h >>conftest.$ac_ext
9923cat >>conftest.$ac_ext <<_ACEOF
9924/* end confdefs.h. */
9925
9926int
9927main ()
9928{
9929
9930 ;
9931 return 0;
9932}
9933_ACEOF
9934rm -f conftest.$ac_objext conftest$ac_exeext
9935if { (ac_try="$ac_link"
9936case "(($ac_try" in
9937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9938 *) ac_try_echo=$ac_try;;
9939esac
9940eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9941$as_echo "$ac_try_echo") >&5
9942 (eval "$ac_link") 2>conftest.er1
9943 ac_status=$?
9944 grep -v '^ *+' conftest.er1 >conftest.err
9945 rm -f conftest.er1
9946 cat conftest.err >&5
9947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9948 (exit $ac_status); } && {
9949 test -z "$ac_c_werror_flag" ||
9950 test ! -s conftest.err
9951 } && test -s conftest$ac_exeext && {
9952 test "$cross_compiling" = yes ||
9953 $as_test_x conftest$ac_exeext
9954 }; then
9955 lt_cv_cc_needs_belf=yes
9956else
9957 $as_echo "$as_me: failed program was:" >&5
9958sed 's/^/| /' conftest.$ac_ext >&5
9959
9960 lt_cv_cc_needs_belf=no
9961fi
9962
9963rm -rf conftest.dSYM
9964rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9965 conftest$ac_exeext conftest.$ac_ext
9966 ac_ext=c
9967ac_cpp='$CPP $CPPFLAGS'
9968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9970ac_compiler_gnu=$ac_cv_c_compiler_gnu
9971
9972fi
9973{ $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
9974$as_echo "$lt_cv_cc_needs_belf" >&6; }
9975 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9976 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9977 CFLAGS="$SAVE_CFLAGS"
9978 fi
9979 ;;
9980sparc*-*solaris*)
9981 # Find out which ABI we are using.
9982 echo 'int i;' > conftest.$ac_ext
9983 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9984 (eval $ac_compile) 2>&5
9985 ac_status=$?
9986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; then
9988 case `/usr/bin/file conftest.o` in
9989 *64-bit*)
9990 case $lt_cv_prog_gnu_ld in
9991 yes*) LD="${LD-ld} -m elf64_sparc" ;;
9992 *)
9993 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9994 LD="${LD-ld} -64"
9995 fi
9996 ;;
9997 esac
9998 ;;
9999 esac
10000 fi
10001 rm -rf conftest*
10002 ;;
10003esac
10004
10005need_locks="$enable_libtool_lock"
10006
10007
10008 case $host_os in
10009 rhapsody* | darwin*)
10010 if test -n "$ac_tool_prefix"; then
10011 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10012set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10013{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10014$as_echo_n "checking for $ac_word... " >&6; }
10015if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
10016 $as_echo_n "(cached) " >&6
10017else
10018 if test -n "$DSYMUTIL"; then
10019 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10020else
10021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10022for as_dir in $PATH
10023do
10024 IFS=$as_save_IFS
10025 test -z "$as_dir" && as_dir=.
10026 for ac_exec_ext in '' $ac_executable_extensions; do
10027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10028 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10029 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10030 break 2
10031 fi
10032done
10033done
10034IFS=$as_save_IFS
10035
10036fi
10037fi
10038DSYMUTIL=$ac_cv_prog_DSYMUTIL
10039if test -n "$DSYMUTIL"; then
10040 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
10041$as_echo "$DSYMUTIL" >&6; }
10042else
10043 { $as_echo "$as_me:$LINENO: result: no" >&5
10044$as_echo "no" >&6; }
10045fi
10046
10047
10048fi
10049if test -z "$ac_cv_prog_DSYMUTIL"; then
10050 ac_ct_DSYMUTIL=$DSYMUTIL
10051 # Extract the first word of "dsymutil", so it can be a program name with args.
10052set dummy dsymutil; ac_word=$2
10053{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10054$as_echo_n "checking for $ac_word... " >&6; }
10055if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
10056 $as_echo_n "(cached) " >&6
10057else
10058 if test -n "$ac_ct_DSYMUTIL"; then
10059 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10060else
10061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10062for as_dir in $PATH
10063do
10064 IFS=$as_save_IFS
10065 test -z "$as_dir" && as_dir=.
10066 for ac_exec_ext in '' $ac_executable_extensions; do
10067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10068 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10069 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10070 break 2
10071 fi
10072done
10073done
10074IFS=$as_save_IFS
10075
10076fi
10077fi
10078ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10079if test -n "$ac_ct_DSYMUTIL"; then
10080 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
10081$as_echo "$ac_ct_DSYMUTIL" >&6; }
10082else
10083 { $as_echo "$as_me:$LINENO: result: no" >&5
10084$as_echo "no" >&6; }
10085fi
10086
10087 if test "x$ac_ct_DSYMUTIL" = x; then
10088 DSYMUTIL=":"
10089 else
10090 case $cross_compiling:$ac_tool_warned in
10091yes:)
10092{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10093$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10094ac_tool_warned=yes ;;
10095esac
10096 DSYMUTIL=$ac_ct_DSYMUTIL
10097 fi
10098else
10099 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10100fi
10101
10102 if test -n "$ac_tool_prefix"; then
10103 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10104set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10105{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10106$as_echo_n "checking for $ac_word... " >&6; }
10107if test "${ac_cv_prog_NMEDIT+set}" = set; then
10108 $as_echo_n "(cached) " >&6
10109else
10110 if test -n "$NMEDIT"; then
10111 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10112else
10113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10114for as_dir in $PATH
10115do
10116 IFS=$as_save_IFS
10117 test -z "$as_dir" && as_dir=.
10118 for ac_exec_ext in '' $ac_executable_extensions; do
10119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10120 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10121 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10122 break 2
10123 fi
10124done
10125done
10126IFS=$as_save_IFS
10127
10128fi
10129fi
10130NMEDIT=$ac_cv_prog_NMEDIT
10131if test -n "$NMEDIT"; then
10132 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
10133$as_echo "$NMEDIT" >&6; }
10134else
10135 { $as_echo "$as_me:$LINENO: result: no" >&5
10136$as_echo "no" >&6; }
10137fi
10138
10139
10140fi
10141if test -z "$ac_cv_prog_NMEDIT"; then
10142 ac_ct_NMEDIT=$NMEDIT
10143 # Extract the first word of "nmedit", so it can be a program name with args.
10144set dummy nmedit; ac_word=$2
10145{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10146$as_echo_n "checking for $ac_word... " >&6; }
10147if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
10148 $as_echo_n "(cached) " >&6
10149else
10150 if test -n "$ac_ct_NMEDIT"; then
10151 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10152else
10153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10154for as_dir in $PATH
10155do
10156 IFS=$as_save_IFS
10157 test -z "$as_dir" && as_dir=.
10158 for ac_exec_ext in '' $ac_executable_extensions; do
10159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10160 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10161 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10162 break 2
10163 fi
10164done
10165done
10166IFS=$as_save_IFS
10167
10168fi
10169fi
10170ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10171if test -n "$ac_ct_NMEDIT"; then
10172 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
10173$as_echo "$ac_ct_NMEDIT" >&6; }
10174else
10175 { $as_echo "$as_me:$LINENO: result: no" >&5
10176$as_echo "no" >&6; }
10177fi
10178
10179 if test "x$ac_ct_NMEDIT" = x; then
10180 NMEDIT=":"
10181 else
10182 case $cross_compiling:$ac_tool_warned in
10183yes:)
10184{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10185$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10186ac_tool_warned=yes ;;
10187esac
10188 NMEDIT=$ac_ct_NMEDIT
10189 fi
10190else
10191 NMEDIT="$ac_cv_prog_NMEDIT"
10192fi
10193
10194 if test -n "$ac_tool_prefix"; then
10195 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10196set dummy ${ac_tool_prefix}lipo; ac_word=$2
10197{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10198$as_echo_n "checking for $ac_word... " >&6; }
10199if test "${ac_cv_prog_LIPO+set}" = set; then
10200 $as_echo_n "(cached) " >&6
10201else
10202 if test -n "$LIPO"; then
10203 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10204else
10205as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10206for as_dir in $PATH
10207do
10208 IFS=$as_save_IFS
10209 test -z "$as_dir" && as_dir=.
10210 for ac_exec_ext in '' $ac_executable_extensions; do
10211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10212 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10213 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10214 break 2
10215 fi
10216done
10217done
10218IFS=$as_save_IFS
10219
10220fi
10221fi
10222LIPO=$ac_cv_prog_LIPO
10223if test -n "$LIPO"; then
10224 { $as_echo "$as_me:$LINENO: result: $LIPO" >&5
10225$as_echo "$LIPO" >&6; }
10226else
10227 { $as_echo "$as_me:$LINENO: result: no" >&5
10228$as_echo "no" >&6; }
10229fi
10230
10231
10232fi
10233if test -z "$ac_cv_prog_LIPO"; then
10234 ac_ct_LIPO=$LIPO
10235 # Extract the first word of "lipo", so it can be a program name with args.
10236set dummy lipo; ac_word=$2
10237{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10238$as_echo_n "checking for $ac_word... " >&6; }
10239if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
10240 $as_echo_n "(cached) " >&6
10241else
10242 if test -n "$ac_ct_LIPO"; then
10243 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10244else
10245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10246for as_dir in $PATH
10247do
10248 IFS=$as_save_IFS
10249 test -z "$as_dir" && as_dir=.
10250 for ac_exec_ext in '' $ac_executable_extensions; do
10251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10252 ac_cv_prog_ac_ct_LIPO="lipo"
10253 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10254 break 2
10255 fi
10256done
10257done
10258IFS=$as_save_IFS
10259
10260fi
10261fi
10262ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10263if test -n "$ac_ct_LIPO"; then
10264 { $as_echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
10265$as_echo "$ac_ct_LIPO" >&6; }
10266else
10267 { $as_echo "$as_me:$LINENO: result: no" >&5
10268$as_echo "no" >&6; }
10269fi
10270
10271 if test "x$ac_ct_LIPO" = x; then
10272 LIPO=":"
10273 else
10274 case $cross_compiling:$ac_tool_warned in
10275yes:)
10276{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10277$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10278ac_tool_warned=yes ;;
10279esac
10280 LIPO=$ac_ct_LIPO
10281 fi
10282else
10283 LIPO="$ac_cv_prog_LIPO"
10284fi
10285
10286 if test -n "$ac_tool_prefix"; then
10287 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10288set dummy ${ac_tool_prefix}otool; ac_word=$2
10289{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10290$as_echo_n "checking for $ac_word... " >&6; }
10291if test "${ac_cv_prog_OTOOL+set}" = set; then
10292 $as_echo_n "(cached) " >&6
10293else
10294 if test -n "$OTOOL"; then
10295 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10296else
10297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10298for as_dir in $PATH
10299do
10300 IFS=$as_save_IFS
10301 test -z "$as_dir" && as_dir=.
10302 for ac_exec_ext in '' $ac_executable_extensions; do
10303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10304 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10305 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10306 break 2
10307 fi
10308done
10309done
10310IFS=$as_save_IFS
10311
10312fi
10313fi
10314OTOOL=$ac_cv_prog_OTOOL
10315if test -n "$OTOOL"; then
10316 { $as_echo "$as_me:$LINENO: result: $OTOOL" >&5
10317$as_echo "$OTOOL" >&6; }
10318else
10319 { $as_echo "$as_me:$LINENO: result: no" >&5
10320$as_echo "no" >&6; }
10321fi
10322
10323
10324fi
10325if test -z "$ac_cv_prog_OTOOL"; then
10326 ac_ct_OTOOL=$OTOOL
10327 # Extract the first word of "otool", so it can be a program name with args.
10328set dummy otool; ac_word=$2
10329{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10330$as_echo_n "checking for $ac_word... " >&6; }
10331if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
10332 $as_echo_n "(cached) " >&6
10333else
10334 if test -n "$ac_ct_OTOOL"; then
10335 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10336else
10337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10338for as_dir in $PATH
10339do
10340 IFS=$as_save_IFS
10341 test -z "$as_dir" && as_dir=.
10342 for ac_exec_ext in '' $ac_executable_extensions; do
10343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10344 ac_cv_prog_ac_ct_OTOOL="otool"
10345 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10346 break 2
10347 fi
10348done
10349done
10350IFS=$as_save_IFS
10351
10352fi
10353fi
10354ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10355if test -n "$ac_ct_OTOOL"; then
10356 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
10357$as_echo "$ac_ct_OTOOL" >&6; }
10358else
10359 { $as_echo "$as_me:$LINENO: result: no" >&5
10360$as_echo "no" >&6; }
10361fi
10362
10363 if test "x$ac_ct_OTOOL" = x; then
10364 OTOOL=":"
10365 else
10366 case $cross_compiling:$ac_tool_warned in
10367yes:)
10368{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10369$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10370ac_tool_warned=yes ;;
10371esac
10372 OTOOL=$ac_ct_OTOOL
10373 fi
10374else
10375 OTOOL="$ac_cv_prog_OTOOL"
10376fi
10377
10378 if test -n "$ac_tool_prefix"; then
10379 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10380set dummy ${ac_tool_prefix}otool64; ac_word=$2
10381{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10382$as_echo_n "checking for $ac_word... " >&6; }
10383if test "${ac_cv_prog_OTOOL64+set}" = set; then
10384 $as_echo_n "(cached) " >&6
10385else
10386 if test -n "$OTOOL64"; then
10387 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10388else
10389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10390for as_dir in $PATH
10391do
10392 IFS=$as_save_IFS
10393 test -z "$as_dir" && as_dir=.
10394 for ac_exec_ext in '' $ac_executable_extensions; do
10395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10396 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10397 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10398 break 2
10399 fi
10400done
10401done
10402IFS=$as_save_IFS
10403
10404fi
10405fi
10406OTOOL64=$ac_cv_prog_OTOOL64
10407if test -n "$OTOOL64"; then
10408 { $as_echo "$as_me:$LINENO: result: $OTOOL64" >&5
10409$as_echo "$OTOOL64" >&6; }
10410else
10411 { $as_echo "$as_me:$LINENO: result: no" >&5
10412$as_echo "no" >&6; }
10413fi
10414
10415
10416fi
10417if test -z "$ac_cv_prog_OTOOL64"; then
10418 ac_ct_OTOOL64=$OTOOL64
10419 # Extract the first word of "otool64", so it can be a program name with args.
10420set dummy otool64; ac_word=$2
10421{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10422$as_echo_n "checking for $ac_word... " >&6; }
10423if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
10424 $as_echo_n "(cached) " >&6
10425else
10426 if test -n "$ac_ct_OTOOL64"; then
10427 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10428else
10429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10430for as_dir in $PATH
10431do
10432 IFS=$as_save_IFS
10433 test -z "$as_dir" && as_dir=.
10434 for ac_exec_ext in '' $ac_executable_extensions; do
10435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10436 ac_cv_prog_ac_ct_OTOOL64="otool64"
10437 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10438 break 2
10439 fi
10440done
10441done
10442IFS=$as_save_IFS
10443
10444fi
10445fi
10446ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10447if test -n "$ac_ct_OTOOL64"; then
10448 { $as_echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
10449$as_echo "$ac_ct_OTOOL64" >&6; }
10450else
10451 { $as_echo "$as_me:$LINENO: result: no" >&5
10452$as_echo "no" >&6; }
10453fi
10454
10455 if test "x$ac_ct_OTOOL64" = x; then
10456 OTOOL64=":"
10457 else
10458 case $cross_compiling:$ac_tool_warned in
10459yes:)
10460{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10461$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10462ac_tool_warned=yes ;;
10463esac
10464 OTOOL64=$ac_ct_OTOOL64
10465 fi
10466else
10467 OTOOL64="$ac_cv_prog_OTOOL64"
10468fi
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487
10488
10489
10490
10491
10492
10493
10494
10495
10496 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
10497$as_echo_n "checking for -single_module linker flag... " >&6; }
10498if test "${lt_cv_apple_cc_single_mod+set}" = set; then
10499 $as_echo_n "(cached) " >&6
10500else
10501 lt_cv_apple_cc_single_mod=no
10502 if test -z "${LT_MULTI_MODULE}"; then
10503 # By default we will add the -single_module flag. You can override
10504 # by either setting the environment variable LT_MULTI_MODULE
10505 # non-empty at configure time, or by adding -multi_module to the
10506 # link flags.
10507 rm -rf libconftest.dylib*
10508 echo "int foo(void){return 1;}" > conftest.c
10509 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10510-dynamiclib -Wl,-single_module conftest.c" >&5
10511 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10512 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10513 _lt_result=$?
10514 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10515 lt_cv_apple_cc_single_mod=yes
10516 else
10517 cat conftest.err >&5
10518 fi
10519 rm -rf libconftest.dylib*
10520 rm -f conftest.*
10521 fi
10522fi
10523{ $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
10524$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10525 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
10526$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10527if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
10528 $as_echo_n "(cached) " >&6
10529else
10530 lt_cv_ld_exported_symbols_list=no
10531 save_LDFLAGS=$LDFLAGS
10532 echo "_main" > conftest.sym
10533 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10534 cat >conftest.$ac_ext <<_ACEOF
10535/* confdefs.h. */
10536_ACEOF
10537cat confdefs.h >>conftest.$ac_ext
10538cat >>conftest.$ac_ext <<_ACEOF
10539/* end confdefs.h. */
10540
10541int
10542main ()
10543{
10544
10545 ;
10546 return 0;
10547}
10548_ACEOF
10549rm -f conftest.$ac_objext conftest$ac_exeext
10550if { (ac_try="$ac_link"
10551case "(($ac_try" in
10552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10553 *) ac_try_echo=$ac_try;;
10554esac
10555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10556$as_echo "$ac_try_echo") >&5
10557 (eval "$ac_link") 2>conftest.er1
10558 ac_status=$?
10559 grep -v '^ *+' conftest.er1 >conftest.err
10560 rm -f conftest.er1
10561 cat conftest.err >&5
10562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } && {
10564 test -z "$ac_c_werror_flag" ||
10565 test ! -s conftest.err
10566 } && test -s conftest$ac_exeext && {
10567 test "$cross_compiling" = yes ||
10568 $as_test_x conftest$ac_exeext
10569 }; then
10570 lt_cv_ld_exported_symbols_list=yes
10571else
10572 $as_echo "$as_me: failed program was:" >&5
10573sed 's/^/| /' conftest.$ac_ext >&5
10574
10575 lt_cv_ld_exported_symbols_list=no
10576fi
10577
10578rm -rf conftest.dSYM
10579rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10580 conftest$ac_exeext conftest.$ac_ext
10581 LDFLAGS="$save_LDFLAGS"
10582
10583fi
10584{ $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
10585$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10586 case $host_os in
10587 rhapsody* | darwin1.[012])
10588 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10589 darwin1.*)
10590 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10591 darwin*) # darwin 5.x on
10592 # if running on 10.5 or later, the deployment target defaults
10593 # to the OS version, if on x86, and 10.4, the deployment
10594 # target defaults to 10.4. Don't you love it?
10595 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10596 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10597 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10598 10.[012]*)
10599 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10600 10.*)
10601 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10602 esac
10603 ;;
10604 esac
10605 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10606 _lt_dar_single_mod='$single_module'
10607 fi
10608 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10609 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10610 else
10611 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10612 fi
10613 if test "$DSYMUTIL" != ":"; then
10614 _lt_dsymutil='~$DSYMUTIL $lib || :'
10615 else
10616 _lt_dsymutil=
10617 fi
10618 ;;
10619 esac
10620
10621
10622for ac_header in dlfcn.h
10623do
10624as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10625{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10626$as_echo_n "checking for $ac_header... " >&6; }
10627if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10628 $as_echo_n "(cached) " >&6
10629else
10630 cat >conftest.$ac_ext <<_ACEOF
10631/* confdefs.h. */
10632_ACEOF
10633cat confdefs.h >>conftest.$ac_ext
10634cat >>conftest.$ac_ext <<_ACEOF
10635/* end confdefs.h. */
10636$ac_includes_default
10637
10638#include <$ac_header>
10639_ACEOF
10640rm -f conftest.$ac_objext
10641if { (ac_try="$ac_compile"
10642case "(($ac_try" in
10643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644 *) ac_try_echo=$ac_try;;
10645esac
10646eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10647$as_echo "$ac_try_echo") >&5
10648 (eval "$ac_compile") 2>conftest.er1
10649 ac_status=$?
10650 grep -v '^ *+' conftest.er1 >conftest.err
10651 rm -f conftest.er1
10652 cat conftest.err >&5
10653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); } && {
10655 test -z "$ac_c_werror_flag" ||
10656 test ! -s conftest.err
10657 } && test -s conftest.$ac_objext; then
10658 eval "$as_ac_Header=yes"
10659else
10660 $as_echo "$as_me: failed program was:" >&5
10661sed 's/^/| /' conftest.$ac_ext >&5
10662
10663 eval "$as_ac_Header=no"
10664fi
10665
10666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10667fi
10668ac_res=`eval 'as_val=${'$as_ac_Header'}
10669 $as_echo "$as_val"'`
10670 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10671$as_echo "$ac_res" >&6; }
10672as_val=`eval 'as_val=${'$as_ac_Header'}
10673 $as_echo "$as_val"'`
10674 if test "x$as_val" = x""yes; then
10675 cat >>confdefs.h <<_ACEOF
10676#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10677_ACEOF
10678
10679fi
10680
10681done
10682
10683
10684
10685ac_ext=cpp
10686ac_cpp='$CXXCPP $CPPFLAGS'
10687ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10688ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10689ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10690if test -z "$CXX"; then
10691 if test -n "$CCC"; then
10692 CXX=$CCC
10693 else
10694 if test -n "$ac_tool_prefix"; then
10695 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10696 do
10697 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10698set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10699{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10700$as_echo_n "checking for $ac_word... " >&6; }
10701if test "${ac_cv_prog_CXX+set}" = set; then
10702 $as_echo_n "(cached) " >&6
10703else
10704 if test -n "$CXX"; then
10705 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10706else
10707as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10708for as_dir in $PATH
10709do
10710 IFS=$as_save_IFS
10711 test -z "$as_dir" && as_dir=.
10712 for ac_exec_ext in '' $ac_executable_extensions; do
10713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10714 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10715 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10716 break 2
10717 fi
10718done
10719done
10720IFS=$as_save_IFS
10721
10722fi
10723fi
10724CXX=$ac_cv_prog_CXX
10725if test -n "$CXX"; then
10726 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
10727$as_echo "$CXX" >&6; }
10728else
10729 { $as_echo "$as_me:$LINENO: result: no" >&5
10730$as_echo "no" >&6; }
10731fi
10732
10733
10734 test -n "$CXX" && break
10735 done
10736fi
10737if test -z "$CXX"; then
10738 ac_ct_CXX=$CXX
10739 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10740do
10741 # Extract the first word of "$ac_prog", so it can be a program name with args.
10742set dummy $ac_prog; ac_word=$2
10743{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10744$as_echo_n "checking for $ac_word... " >&6; }
10745if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
10746 $as_echo_n "(cached) " >&6
10747else
10748 if test -n "$ac_ct_CXX"; then
10749 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10750else
10751as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10752for as_dir in $PATH
10753do
10754 IFS=$as_save_IFS
10755 test -z "$as_dir" && as_dir=.
10756 for ac_exec_ext in '' $ac_executable_extensions; do
10757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10758 ac_cv_prog_ac_ct_CXX="$ac_prog"
10759 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10760 break 2
10761 fi
10762done
10763done
10764IFS=$as_save_IFS
10765
10766fi
10767fi
10768ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10769if test -n "$ac_ct_CXX"; then
10770 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
10771$as_echo "$ac_ct_CXX" >&6; }
10772else
10773 { $as_echo "$as_me:$LINENO: result: no" >&5
10774$as_echo "no" >&6; }
10775fi
10776
10777
10778 test -n "$ac_ct_CXX" && break
10779done
10780
10781 if test "x$ac_ct_CXX" = x; then
10782 CXX="g++"
10783 else
10784 case $cross_compiling:$ac_tool_warned in
10785yes:)
10786{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
10787$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10788ac_tool_warned=yes ;;
10789esac
10790 CXX=$ac_ct_CXX
10791 fi
10792fi
10793
10794 fi
10795fi
10796# Provide some information about the compiler.
10797$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
10798set X $ac_compile
10799ac_compiler=$2
10800{ (ac_try="$ac_compiler --version >&5"
10801case "(($ac_try" in
10802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10803 *) ac_try_echo=$ac_try;;
10804esac
10805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10806$as_echo "$ac_try_echo") >&5
10807 (eval "$ac_compiler --version >&5") 2>&5
10808 ac_status=$?
10809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); }
10811{ (ac_try="$ac_compiler -v >&5"
10812case "(($ac_try" in
10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 *) ac_try_echo=$ac_try;;
10815esac
10816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10817$as_echo "$ac_try_echo") >&5
10818 (eval "$ac_compiler -v >&5") 2>&5
10819 ac_status=$?
10820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10821 (exit $ac_status); }
10822{ (ac_try="$ac_compiler -V >&5"
10823case "(($ac_try" in
10824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10825 *) ac_try_echo=$ac_try;;
10826esac
10827eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10828$as_echo "$ac_try_echo") >&5
10829 (eval "$ac_compiler -V >&5") 2>&5
10830 ac_status=$?
10831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); }
10833
10834{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
10835$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10836if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
10837 $as_echo_n "(cached) " >&6
10838else
10839 cat >conftest.$ac_ext <<_ACEOF
10840/* confdefs.h. */
10841_ACEOF
10842cat confdefs.h >>conftest.$ac_ext
10843cat >>conftest.$ac_ext <<_ACEOF
10844/* end confdefs.h. */
10845
10846int
10847main ()
10848{
10849#ifndef __GNUC__
10850 choke me
10851#endif
10852
10853 ;
10854 return 0;
10855}
10856_ACEOF
10857rm -f conftest.$ac_objext
10858if { (ac_try="$ac_compile"
10859case "(($ac_try" in
10860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861 *) ac_try_echo=$ac_try;;
10862esac
10863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10864$as_echo "$ac_try_echo") >&5
10865 (eval "$ac_compile") 2>conftest.er1
10866 ac_status=$?
10867 grep -v '^ *+' conftest.er1 >conftest.err
10868 rm -f conftest.er1
10869 cat conftest.err >&5
10870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } && {
10872 test -z "$ac_cxx_werror_flag" ||
10873 test ! -s conftest.err
10874 } && test -s conftest.$ac_objext; then
10875 ac_compiler_gnu=yes
10876else
10877 $as_echo "$as_me: failed program was:" >&5
10878sed 's/^/| /' conftest.$ac_ext >&5
10879
10880 ac_compiler_gnu=no
10881fi
10882
10883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10884ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10885
10886fi
10887{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
10888$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10889if test $ac_compiler_gnu = yes; then
10890 GXX=yes
10891else
10892 GXX=
10893fi
10894ac_test_CXXFLAGS=${CXXFLAGS+set}
10895ac_save_CXXFLAGS=$CXXFLAGS
10896{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
10897$as_echo_n "checking whether $CXX accepts -g... " >&6; }
10898if test "${ac_cv_prog_cxx_g+set}" = set; then
10899 $as_echo_n "(cached) " >&6
10900else
10901 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10902 ac_cxx_werror_flag=yes
10903 ac_cv_prog_cxx_g=no
10904 CXXFLAGS="-g"
10905 cat >conftest.$ac_ext <<_ACEOF
10906/* confdefs.h. */
10907_ACEOF
10908cat confdefs.h >>conftest.$ac_ext
10909cat >>conftest.$ac_ext <<_ACEOF
10910/* end confdefs.h. */
10911
10912int
10913main ()
10914{
10915
10916 ;
10917 return 0;
10918}
10919_ACEOF
10920rm -f conftest.$ac_objext
10921if { (ac_try="$ac_compile"
10922case "(($ac_try" in
10923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10925esac
10926eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10927$as_echo "$ac_try_echo") >&5
10928 (eval "$ac_compile") 2>conftest.er1
10929 ac_status=$?
10930 grep -v '^ *+' conftest.er1 >conftest.err
10931 rm -f conftest.er1
10932 cat conftest.err >&5
10933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } && {
10935 test -z "$ac_cxx_werror_flag" ||
10936 test ! -s conftest.err
10937 } && test -s conftest.$ac_objext; then
10938 ac_cv_prog_cxx_g=yes
10939else
10940 $as_echo "$as_me: failed program was:" >&5
10941sed 's/^/| /' conftest.$ac_ext >&5
10942
10943 CXXFLAGS=""
10944 cat >conftest.$ac_ext <<_ACEOF
10945/* confdefs.h. */
10946_ACEOF
10947cat confdefs.h >>conftest.$ac_ext
10948cat >>conftest.$ac_ext <<_ACEOF
10949/* end confdefs.h. */
10950
10951int
10952main ()
10953{
10954
10955 ;
10956 return 0;
10957}
10958_ACEOF
10959rm -f conftest.$ac_objext
10960if { (ac_try="$ac_compile"
10961case "(($ac_try" in
10962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10963 *) ac_try_echo=$ac_try;;
10964esac
10965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10966$as_echo "$ac_try_echo") >&5
10967 (eval "$ac_compile") 2>conftest.er1
10968 ac_status=$?
10969 grep -v '^ *+' conftest.er1 >conftest.err
10970 rm -f conftest.er1
10971 cat conftest.err >&5
10972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10973 (exit $ac_status); } && {
10974 test -z "$ac_cxx_werror_flag" ||
10975 test ! -s conftest.err
10976 } && test -s conftest.$ac_objext; then
10977 :
10978else
10979 $as_echo "$as_me: failed program was:" >&5
10980sed 's/^/| /' conftest.$ac_ext >&5
10981
10982 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10983 CXXFLAGS="-g"
10984 cat >conftest.$ac_ext <<_ACEOF
10985/* confdefs.h. */
10986_ACEOF
10987cat confdefs.h >>conftest.$ac_ext
10988cat >>conftest.$ac_ext <<_ACEOF
10989/* end confdefs.h. */
10990
10991int
10992main ()
10993{
10994
10995 ;
10996 return 0;
10997}
10998_ACEOF
10999rm -f conftest.$ac_objext
11000if { (ac_try="$ac_compile"
11001case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11004esac
11005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11006$as_echo "$ac_try_echo") >&5
11007 (eval "$ac_compile") 2>conftest.er1
11008 ac_status=$?
11009 grep -v '^ *+' conftest.er1 >conftest.err
11010 rm -f conftest.er1
11011 cat conftest.err >&5
11012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11013 (exit $ac_status); } && {
11014 test -z "$ac_cxx_werror_flag" ||
11015 test ! -s conftest.err
11016 } && test -s conftest.$ac_objext; then
11017 ac_cv_prog_cxx_g=yes
11018else
11019 $as_echo "$as_me: failed program was:" >&5
11020sed 's/^/| /' conftest.$ac_ext >&5
11021
11022
11023fi
11024
11025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11026fi
11027
11028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11029fi
11030
11031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11032 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
11033fi
11034{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
11035$as_echo "$ac_cv_prog_cxx_g" >&6; }
11036if test "$ac_test_CXXFLAGS" = set; then
11037 CXXFLAGS=$ac_save_CXXFLAGS
11038elif test $ac_cv_prog_cxx_g = yes; then
11039 if test "$GXX" = yes; then
11040 CXXFLAGS="-g -O2"
11041 else
11042 CXXFLAGS="-g"
11043 fi
11044else
11045 if test "$GXX" = yes; then
11046 CXXFLAGS="-O2"
11047 else
11048 CXXFLAGS=
11049 fi
11050fi
11051ac_ext=c
11052ac_cpp='$CPP $CPPFLAGS'
11053ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11054ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11055ac_compiler_gnu=$ac_cv_c_compiler_gnu
11056
11057depcc="$CXX" am_compiler_list=
11058
11059{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11060$as_echo_n "checking dependency style of $depcc... " >&6; }
11061if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
11062 $as_echo_n "(cached) " >&6
11063else
11064 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11065 # We make a subdir and do the tests there. Otherwise we can end up
11066 # making bogus files that we don't know about and never remove. For
11067 # instance it was reported that on HP-UX the gcc test will end up
11068 # making a dummy file named `D' -- because `-MD' means `put the output
11069 # in D'.
11070 mkdir conftest.dir
11071 # Copy depcomp to subdir because otherwise we won't find it if we're
11072 # using a relative directory.
11073 cp "$am_depcomp" conftest.dir
11074 cd conftest.dir
11075 # We will build objects and dependencies in a subdirectory because
11076 # it helps to detect inapplicable dependency modes. For instance
11077 # both Tru64's cc and ICC support -MD to output dependencies as a
11078 # side effect of compilation, but ICC will put the dependencies in
11079 # the current directory while Tru64 will put them in the object
11080 # directory.
11081 mkdir sub
11082
11083 am_cv_CXX_dependencies_compiler_type=none
11084 if test "$am_compiler_list" = ""; then
11085 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11086 fi
11087 am__universal=false
11088 case " $depcc " in #(
11089 *\ -arch\ *\ -arch\ *) am__universal=true ;;
11090 esac
11091
11092 for depmode in $am_compiler_list; do
11093 # Setup a source with many dependencies, because some compilers
11094 # like to wrap large dependency lists on column 80 (with \), and
11095 # we should not choose a depcomp mode which is confused by this.
11096 #
11097 # We need to recreate these files for each test, as the compiler may
11098 # overwrite some of them when testing with obscure command lines.
11099 # This happens at least with the AIX C compiler.
11100 : > sub/conftest.c
11101 for i in 1 2 3 4 5 6; do
11102 echo '#include "conftst'$i'.h"' >> sub/conftest.c
11103 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11104 # Solaris 8's {/usr,}/bin/sh.
11105 touch sub/conftst$i.h
11106 done
11107 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11108
11109 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11110 # mode. It turns out that the SunPro C++ compiler does not properly
11111 # handle `-M -o', and we need to detect this. Also, some Intel
11112 # versions had trouble with output in subdirs
11113 am__obj=sub/conftest.${OBJEXT-o}
11114 am__minus_obj="-o $am__obj"
11115 case $depmode in
11116 gcc)
11117 # This depmode causes a compiler race in universal mode.
11118 test "$am__universal" = false || continue
11119 ;;
11120 nosideeffect)
11121 # after this tag, mechanisms are not by side-effect, so they'll
11122 # only be used when explicitly requested
11123 if test "x$enable_dependency_tracking" = xyes; then
11124 continue
11125 else
11126 break
11127 fi
11128 ;;
11129 msvisualcpp | msvcmsys)
11130 # This compiler won't grok `-c -o', but also, the minuso test has
11131 # not run yet. These depmodes are late enough in the game, and
11132 # so weak that their functioning should not be impacted.
11133 am__obj=conftest.${OBJEXT-o}
11134 am__minus_obj=
11135 ;;
11136 none) break ;;
11137 esac
11138 if depmode=$depmode \
11139 source=sub/conftest.c object=$am__obj \
11140 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
11141 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
11142 >/dev/null 2>conftest.err &&
11143 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
11144 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
11145 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
11146 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
11147 # icc doesn't choke on unknown options, it will just issue warnings
11148 # or remarks (even with -Werror). So we grep stderr for any message
11149 # that says an option was ignored or not supported.
11150 # When given -MP, icc 7.0 and 7.1 complain thusly:
11151 # icc: Command line warning: ignoring option '-M'; no argument required
11152 # The diagnosis changed in icc 8.0:
11153 # icc: Command line remark: option '-MP' not supported
11154 if (grep 'ignoring option' conftest.err ||
11155 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
11156 am_cv_CXX_dependencies_compiler_type=$depmode
11157 break
11158 fi
11159 fi
11160 done
11161
11162 cd ..
11163 rm -rf conftest.dir
11164else
11165 am_cv_CXX_dependencies_compiler_type=none
11166fi
11167
11168fi
11169{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
11170$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
11171CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
11172
11173 if
11174 test "x$enable_dependency_tracking" != xno \
11175 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
11176 am__fastdepCXX_TRUE=
11177 am__fastdepCXX_FALSE='#'
11178else
11179 am__fastdepCXX_TRUE='#'
11180 am__fastdepCXX_FALSE=
11181fi
11182
11183
11184if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11185 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11186 (test "X$CXX" != "Xg++"))) ; then
11187 ac_ext=cpp
11188ac_cpp='$CXXCPP $CPPFLAGS'
11189ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11190ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11191ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11192{ $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11193$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11194if test -z "$CXXCPP"; then
11195 if test "${ac_cv_prog_CXXCPP+set}" = set; then
11196 $as_echo_n "(cached) " >&6
11197else
11198 # Double quotes because CXXCPP needs to be expanded
11199 for CXXCPP in "$CXX -E" "/lib/cpp"
11200 do
11201 ac_preproc_ok=false
11202for ac_cxx_preproc_warn_flag in '' yes
11203do
11204 # Use a header file that comes with gcc, so configuring glibc
11205 # with a fresh cross-compiler works.
11206 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11207 # <limits.h> exists even on freestanding compilers.
11208 # On the NeXT, cc -E runs the code through the compiler's parser,
11209 # not just through cpp. "Syntax error" is here to catch this case.
11210 cat >conftest.$ac_ext <<_ACEOF
11211/* confdefs.h. */
11212_ACEOF
11213cat confdefs.h >>conftest.$ac_ext
11214cat >>conftest.$ac_ext <<_ACEOF
11215/* end confdefs.h. */
11216#ifdef __STDC__
11217# include <limits.h>
11218#else
11219# include <assert.h>
11220#endif
11221 Syntax error
11222_ACEOF
11223if { (ac_try="$ac_cpp conftest.$ac_ext"
11224case "(($ac_try" in
11225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11226 *) ac_try_echo=$ac_try;;
11227esac
11228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11229$as_echo "$ac_try_echo") >&5
11230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11231 ac_status=$?
11232 grep -v '^ *+' conftest.er1 >conftest.err
11233 rm -f conftest.er1
11234 cat conftest.err >&5
11235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11236 (exit $ac_status); } >/dev/null && {
11237 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11238 test ! -s conftest.err
11239 }; then
11240 :
11241else
11242 $as_echo "$as_me: failed program was:" >&5
11243sed 's/^/| /' conftest.$ac_ext >&5
11244
11245 # Broken: fails on valid input.
11246continue
11247fi
11248
11249rm -f conftest.err conftest.$ac_ext
11250
11251 # OK, works on sane cases. Now check whether nonexistent headers
11252 # can be detected and how.
11253 cat >conftest.$ac_ext <<_ACEOF
11254/* confdefs.h. */
11255_ACEOF
11256cat confdefs.h >>conftest.$ac_ext
11257cat >>conftest.$ac_ext <<_ACEOF
11258/* end confdefs.h. */
11259#include <ac_nonexistent.h>
11260_ACEOF
11261if { (ac_try="$ac_cpp conftest.$ac_ext"
11262case "(($ac_try" in
11263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11264 *) ac_try_echo=$ac_try;;
11265esac
11266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11267$as_echo "$ac_try_echo") >&5
11268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11269 ac_status=$?
11270 grep -v '^ *+' conftest.er1 >conftest.err
11271 rm -f conftest.er1
11272 cat conftest.err >&5
11273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11274 (exit $ac_status); } >/dev/null && {
11275 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11276 test ! -s conftest.err
11277 }; then
11278 # Broken: success on invalid input.
11279continue
11280else
11281 $as_echo "$as_me: failed program was:" >&5
11282sed 's/^/| /' conftest.$ac_ext >&5
11283
11284 # Passes both tests.
11285ac_preproc_ok=:
11286break
11287fi
11288
11289rm -f conftest.err conftest.$ac_ext
11290
11291done
11292# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11293rm -f conftest.err conftest.$ac_ext
11294if $ac_preproc_ok; then
11295 break
11296fi
11297
11298 done
11299 ac_cv_prog_CXXCPP=$CXXCPP
11300
11301fi
11302 CXXCPP=$ac_cv_prog_CXXCPP
11303else
11304 ac_cv_prog_CXXCPP=$CXXCPP
11305fi
11306{ $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
11307$as_echo "$CXXCPP" >&6; }
11308ac_preproc_ok=false
11309for ac_cxx_preproc_warn_flag in '' yes
11310do
11311 # Use a header file that comes with gcc, so configuring glibc
11312 # with a fresh cross-compiler works.
11313 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11314 # <limits.h> exists even on freestanding compilers.
11315 # On the NeXT, cc -E runs the code through the compiler's parser,
11316 # not just through cpp. "Syntax error" is here to catch this case.
11317 cat >conftest.$ac_ext <<_ACEOF
11318/* confdefs.h. */
11319_ACEOF
11320cat confdefs.h >>conftest.$ac_ext
11321cat >>conftest.$ac_ext <<_ACEOF
11322/* end confdefs.h. */
11323#ifdef __STDC__
11324# include <limits.h>
11325#else
11326# include <assert.h>
11327#endif
11328 Syntax error
11329_ACEOF
11330if { (ac_try="$ac_cpp conftest.$ac_ext"
11331case "(($ac_try" in
11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11334esac
11335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11336$as_echo "$ac_try_echo") >&5
11337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11338 ac_status=$?
11339 grep -v '^ *+' conftest.er1 >conftest.err
11340 rm -f conftest.er1
11341 cat conftest.err >&5
11342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } >/dev/null && {
11344 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11345 test ! -s conftest.err
11346 }; then
11347 :
11348else
11349 $as_echo "$as_me: failed program was:" >&5
11350sed 's/^/| /' conftest.$ac_ext >&5
11351
11352 # Broken: fails on valid input.
11353continue
11354fi
11355
11356rm -f conftest.err conftest.$ac_ext
11357
11358 # OK, works on sane cases. Now check whether nonexistent headers
11359 # can be detected and how.
11360 cat >conftest.$ac_ext <<_ACEOF
11361/* confdefs.h. */
11362_ACEOF
11363cat confdefs.h >>conftest.$ac_ext
11364cat >>conftest.$ac_ext <<_ACEOF
11365/* end confdefs.h. */
11366#include <ac_nonexistent.h>
11367_ACEOF
11368if { (ac_try="$ac_cpp conftest.$ac_ext"
11369case "(($ac_try" in
11370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11371 *) ac_try_echo=$ac_try;;
11372esac
11373eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11374$as_echo "$ac_try_echo") >&5
11375 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11376 ac_status=$?
11377 grep -v '^ *+' conftest.er1 >conftest.err
11378 rm -f conftest.er1
11379 cat conftest.err >&5
11380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11381 (exit $ac_status); } >/dev/null && {
11382 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11383 test ! -s conftest.err
11384 }; then
11385 # Broken: success on invalid input.
11386continue
11387else
11388 $as_echo "$as_me: failed program was:" >&5
11389sed 's/^/| /' conftest.$ac_ext >&5
11390
11391 # Passes both tests.
11392ac_preproc_ok=:
11393break
11394fi
11395
11396rm -f conftest.err conftest.$ac_ext
11397
11398done
11399# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11400rm -f conftest.err conftest.$ac_ext
11401if $ac_preproc_ok; then
11402 :
11403else
11404 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
11405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11406_lt_caught_CXX_error=yes; }
11407fi
11408
11409ac_ext=c
11410ac_cpp='$CPP $CPPFLAGS'
11411ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11412ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11413ac_compiler_gnu=$ac_cv_c_compiler_gnu
11414
11415else
11416 _lt_caught_CXX_error=yes
11417fi
11418
11419
11420
11421
11422
11423# Set options
11424enable_win32_dll=yes
11425
11426case $host in
11427*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
11428 if test -n "$ac_tool_prefix"; then
11429 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11430set dummy ${ac_tool_prefix}as; ac_word=$2
11431{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11432$as_echo_n "checking for $ac_word... " >&6; }
11433if test "${ac_cv_prog_AS+set}" = set; then
11434 $as_echo_n "(cached) " >&6
11435else
11436 if test -n "$AS"; then
11437 ac_cv_prog_AS="$AS" # Let the user override the test.
11438else
11439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11440for as_dir in $PATH
11441do
11442 IFS=$as_save_IFS
11443 test -z "$as_dir" && as_dir=.
11444 for ac_exec_ext in '' $ac_executable_extensions; do
11445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11446 ac_cv_prog_AS="${ac_tool_prefix}as"
11447 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11448 break 2
11449 fi
11450done
11451done
11452IFS=$as_save_IFS
11453
11454fi
11455fi
11456AS=$ac_cv_prog_AS
11457if test -n "$AS"; then
11458 { $as_echo "$as_me:$LINENO: result: $AS" >&5
11459$as_echo "$AS" >&6; }
11460else
11461 { $as_echo "$as_me:$LINENO: result: no" >&5
11462$as_echo "no" >&6; }
11463fi
11464
11465
11466fi
11467if test -z "$ac_cv_prog_AS"; then
11468 ac_ct_AS=$AS
11469 # Extract the first word of "as", so it can be a program name with args.
11470set dummy as; ac_word=$2
11471{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11472$as_echo_n "checking for $ac_word... " >&6; }
11473if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
11474 $as_echo_n "(cached) " >&6
11475else
11476 if test -n "$ac_ct_AS"; then
11477 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11478else
11479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11480for as_dir in $PATH
11481do
11482 IFS=$as_save_IFS
11483 test -z "$as_dir" && as_dir=.
11484 for ac_exec_ext in '' $ac_executable_extensions; do
11485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11486 ac_cv_prog_ac_ct_AS="as"
11487 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11488 break 2
11489 fi
11490done
11491done
11492IFS=$as_save_IFS
11493
11494fi
11495fi
11496ac_ct_AS=$ac_cv_prog_ac_ct_AS
11497if test -n "$ac_ct_AS"; then
11498 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
11499$as_echo "$ac_ct_AS" >&6; }
11500else
11501 { $as_echo "$as_me:$LINENO: result: no" >&5
11502$as_echo "no" >&6; }
11503fi
11504
11505 if test "x$ac_ct_AS" = x; then
11506 AS="false"
11507 else
11508 case $cross_compiling:$ac_tool_warned in
11509yes:)
11510{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11512ac_tool_warned=yes ;;
11513esac
11514 AS=$ac_ct_AS
11515 fi
11516else
11517 AS="$ac_cv_prog_AS"
11518fi
11519
11520 if test -n "$ac_tool_prefix"; then
11521 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11522set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11523{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11524$as_echo_n "checking for $ac_word... " >&6; }
11525if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11526 $as_echo_n "(cached) " >&6
11527else
11528 if test -n "$DLLTOOL"; then
11529 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11530else
11531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11532for as_dir in $PATH
11533do
11534 IFS=$as_save_IFS
11535 test -z "$as_dir" && as_dir=.
11536 for ac_exec_ext in '' $ac_executable_extensions; do
11537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11538 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11540 break 2
11541 fi
11542done
11543done
11544IFS=$as_save_IFS
11545
11546fi
11547fi
11548DLLTOOL=$ac_cv_prog_DLLTOOL
11549if test -n "$DLLTOOL"; then
11550 { $as_echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11551$as_echo "$DLLTOOL" >&6; }
11552else
11553 { $as_echo "$as_me:$LINENO: result: no" >&5
11554$as_echo "no" >&6; }
11555fi
11556
11557
11558fi
11559if test -z "$ac_cv_prog_DLLTOOL"; then
11560 ac_ct_DLLTOOL=$DLLTOOL
11561 # Extract the first word of "dlltool", so it can be a program name with args.
11562set dummy dlltool; ac_word=$2
11563{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11564$as_echo_n "checking for $ac_word... " >&6; }
11565if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
11566 $as_echo_n "(cached) " >&6
11567else
11568 if test -n "$ac_ct_DLLTOOL"; then
11569 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11570else
11571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11572for as_dir in $PATH
11573do
11574 IFS=$as_save_IFS
11575 test -z "$as_dir" && as_dir=.
11576 for ac_exec_ext in '' $ac_executable_extensions; do
11577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11578 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11580 break 2
11581 fi
11582done
11583done
11584IFS=$as_save_IFS
11585
11586fi
11587fi
11588ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11589if test -n "$ac_ct_DLLTOOL"; then
11590 { $as_echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
11591$as_echo "$ac_ct_DLLTOOL" >&6; }
11592else
11593 { $as_echo "$as_me:$LINENO: result: no" >&5
11594$as_echo "no" >&6; }
11595fi
11596
11597 if test "x$ac_ct_DLLTOOL" = x; then
11598 DLLTOOL="false"
11599 else
11600 case $cross_compiling:$ac_tool_warned in
11601yes:)
11602{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11604ac_tool_warned=yes ;;
11605esac
11606 DLLTOOL=$ac_ct_DLLTOOL
11607 fi
11608else
11609 DLLTOOL="$ac_cv_prog_DLLTOOL"
11610fi
11611
11612 if test -n "$ac_tool_prefix"; then
11613 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11614set dummy ${ac_tool_prefix}objdump; ac_word=$2
11615{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11616$as_echo_n "checking for $ac_word... " >&6; }
11617if test "${ac_cv_prog_OBJDUMP+set}" = set; then
11618 $as_echo_n "(cached) " >&6
11619else
11620 if test -n "$OBJDUMP"; then
11621 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11622else
11623as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11624for as_dir in $PATH
11625do
11626 IFS=$as_save_IFS
11627 test -z "$as_dir" && as_dir=.
11628 for ac_exec_ext in '' $ac_executable_extensions; do
11629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11630 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11631 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11632 break 2
11633 fi
11634done
11635done
11636IFS=$as_save_IFS
11637
11638fi
11639fi
11640OBJDUMP=$ac_cv_prog_OBJDUMP
11641if test -n "$OBJDUMP"; then
11642 { $as_echo "$as_me:$LINENO: result: $OBJDUMP" >&5
11643$as_echo "$OBJDUMP" >&6; }
11644else
11645 { $as_echo "$as_me:$LINENO: result: no" >&5
11646$as_echo "no" >&6; }
11647fi
11648
11649
11650fi
11651if test -z "$ac_cv_prog_OBJDUMP"; then
11652 ac_ct_OBJDUMP=$OBJDUMP
11653 # Extract the first word of "objdump", so it can be a program name with args.
11654set dummy objdump; ac_word=$2
11655{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
11656$as_echo_n "checking for $ac_word... " >&6; }
11657if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
11658 $as_echo_n "(cached) " >&6
11659else
11660 if test -n "$ac_ct_OBJDUMP"; then
11661 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11662else
11663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664for as_dir in $PATH
11665do
11666 IFS=$as_save_IFS
11667 test -z "$as_dir" && as_dir=.
11668 for ac_exec_ext in '' $ac_executable_extensions; do
11669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11670 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11671 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11672 break 2
11673 fi
11674done
11675done
11676IFS=$as_save_IFS
11677
11678fi
11679fi
11680ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11681if test -n "$ac_ct_OBJDUMP"; then
11682 { $as_echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
11683$as_echo "$ac_ct_OBJDUMP" >&6; }
11684else
11685 { $as_echo "$as_me:$LINENO: result: no" >&5
11686$as_echo "no" >&6; }
11687fi
11688
11689 if test "x$ac_ct_OBJDUMP" = x; then
11690 OBJDUMP="false"
11691 else
11692 case $cross_compiling:$ac_tool_warned in
11693yes:)
11694{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
11695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11696ac_tool_warned=yes ;;
11697esac
11698 OBJDUMP=$ac_ct_OBJDUMP
11699 fi
11700else
11701 OBJDUMP="$ac_cv_prog_OBJDUMP"
11702fi
11703
11704 ;;
11705esac
11706
11707test -z "$AS" && AS=as
11708
11709
11710
11711
11712
11713test -z "$DLLTOOL" && DLLTOOL=dlltool
11714
11715
11716
11717
11718
11719test -z "$OBJDUMP" && OBJDUMP=objdump
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729 # Check whether --enable-shared was given.
11730if test "${enable_shared+set}" = set; then
11731 enableval=$enable_shared; p=${PACKAGE-default}
11732 case $enableval in
11733 yes) enable_shared=yes ;;
11734 no) enable_shared=no ;;
11735 *)
11736 enable_shared=no
11737 # Look at the argument we got. We use all the common list separators.
11738 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11739 for pkg in $enableval; do
11740 IFS="$lt_save_ifs"
11741 if test "X$pkg" = "X$p"; then
11742 enable_shared=yes
11743 fi
11744 done
11745 IFS="$lt_save_ifs"
11746 ;;
11747 esac
11748else
11749 enable_shared=yes
11750fi
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760 # Check whether --enable-static was given.
11761if test "${enable_static+set}" = set; then
11762 enableval=$enable_static; p=${PACKAGE-default}
11763 case $enableval in
11764 yes) enable_static=yes ;;
11765 no) enable_static=no ;;
11766 *)
11767 enable_static=no
11768 # Look at the argument we got. We use all the common list separators.
11769 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11770 for pkg in $enableval; do
11771 IFS="$lt_save_ifs"
11772 if test "X$pkg" = "X$p"; then
11773 enable_static=yes
11774 fi
11775 done
11776 IFS="$lt_save_ifs"
11777 ;;
11778 esac
11779else
11780 enable_static=yes
11781fi
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792# Check whether --with-pic was given.
11793if test "${with_pic+set}" = set; then
11794 withval=$with_pic; pic_mode="$withval"
11795else
11796 pic_mode=default
11797fi
11798
11799
11800test -z "$pic_mode" && pic_mode=default
11801
11802
11803
11804
11805
11806
11807
11808 # Check whether --enable-fast-install was given.
11809if test "${enable_fast_install+set}" = set; then
11810 enableval=$enable_fast_install; p=${PACKAGE-default}
11811 case $enableval in
11812 yes) enable_fast_install=yes ;;
11813 no) enable_fast_install=no ;;
11814 *)
11815 enable_fast_install=no
11816 # Look at the argument we got. We use all the common list separators.
11817 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11818 for pkg in $enableval; do
11819 IFS="$lt_save_ifs"
11820 if test "X$pkg" = "X$p"; then
11821 enable_fast_install=yes
11822 fi
11823 done
11824 IFS="$lt_save_ifs"
11825 ;;
11826 esac
11827else
11828 enable_fast_install=yes
11829fi
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841# This can be used to rebuild libtool when needed
11842LIBTOOL_DEPS="$ltmain"
11843
11844# Always use our own libtool.
11845LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11846
11847
11848
11849
11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871test -z "$LN_S" && LN_S="ln -s"
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886if test -n "${ZSH_VERSION+set}" ; then
11887 setopt NO_GLOB_SUBST
11888fi
11889
11890{ $as_echo "$as_me:$LINENO: checking for objdir" >&5
11891$as_echo_n "checking for objdir... " >&6; }
11892if test "${lt_cv_objdir+set}" = set; then
11893 $as_echo_n "(cached) " >&6
11894else
11895 rm -f .libs 2>/dev/null
11896mkdir .libs 2>/dev/null
11897if test -d .libs; then
11898 lt_cv_objdir=.libs
11899else
11900 # MS-DOS does not allow filenames that begin with a dot.
11901 lt_cv_objdir=_libs
11902fi
11903rmdir .libs 2>/dev/null
11904fi
11905{ $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11906$as_echo "$lt_cv_objdir" >&6; }
11907objdir=$lt_cv_objdir
11908
11909
11910
11911
11912
11913cat >>confdefs.h <<_ACEOF
11914#define LT_OBJDIR "$lt_cv_objdir/"
11915_ACEOF
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933case $host_os in
11934aix3*)
11935 # AIX sometimes has problems with the GCC collect2 program. For some
11936 # reason, if we set the COLLECT_NAMES environment variable, the problems
11937 # vanish in a puff of smoke.
11938 if test "X${COLLECT_NAMES+set}" != Xset; then
11939 COLLECT_NAMES=
11940 export COLLECT_NAMES
11941 fi
11942 ;;
11943esac
11944
11945# Sed substitution that helps us do robust quoting. It backslashifies
11946# metacharacters that are still active within double-quoted strings.
11947sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11948
11949# Same as above, but do not quote variable references.
11950double_quote_subst='s/\(["`\\]\)/\\\1/g'
11951
11952# Sed substitution to delay expansion of an escaped shell variable in a
11953# double_quote_subst'ed string.
11954delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11955
11956# Sed substitution to delay expansion of an escaped single quote.
11957delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11958
11959# Sed substitution to avoid accidental globbing in evaled expressions
11960no_glob_subst='s/\*/\\\*/g'
11961
11962# Global variables:
11963ofile=libtool
11964can_build_shared=yes
11965
11966# All known linkers require a `.a' archive for static linking (except MSVC,
11967# which needs '.lib').
11968libext=a
11969
11970with_gnu_ld="$lt_cv_prog_gnu_ld"
11971
11972old_CC="$CC"
11973old_CFLAGS="$CFLAGS"
11974
11975# Set sane defaults for various variables
11976test -z "$CC" && CC=cc
11977test -z "$LTCC" && LTCC=$CC
11978test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11979test -z "$LD" && LD=ld
11980test -z "$ac_objext" && ac_objext=o
11981
11982for cc_temp in $compiler""; do
11983 case $cc_temp in
11984 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11985 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11986 \-*) ;;
11987 *) break;;
11988 esac
11989done
11990cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11991
11992
11993# Only perform the check for file, if the check method requires it
11994test -z "$MAGIC_CMD" && MAGIC_CMD=file
11995case $deplibs_check_method in
11996file_magic*)
11997 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11998 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11999$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
12000if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12001 $as_echo_n "(cached) " >&6
12002else
12003 case $MAGIC_CMD in
12004[\\/*] | ?:[\\/]*)
12005 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12006 ;;
12007*)
12008 lt_save_MAGIC_CMD="$MAGIC_CMD"
12009 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12010 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12011 for ac_dir in $ac_dummy; do
12012 IFS="$lt_save_ifs"
12013 test -z "$ac_dir" && ac_dir=.
12014 if test -f $ac_dir/${ac_tool_prefix}file; then
12015 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
12016 if test -n "$file_magic_test_file"; then
12017 case $deplibs_check_method in
12018 "file_magic "*)
12019 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12020 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12021 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12022 $EGREP "$file_magic_regex" > /dev/null; then
12023 :
12024 else
12025 cat <<_LT_EOF 1>&2
12026
12027*** Warning: the command libtool uses to detect shared libraries,
12028*** $file_magic_cmd, produces output that libtool cannot recognize.
12029*** The result is that libtool may fail to recognize shared libraries
12030*** as such. This will affect the creation of libtool libraries that
12031*** depend on shared libraries, but programs linked with such libtool
12032*** libraries will work regardless of this problem. Nevertheless, you
12033*** may want to report the problem to your system manager and/or to
12034*** bug-libtool@gnu.org
12035
12036_LT_EOF
12037 fi ;;
12038 esac
12039 fi
12040 break
12041 fi
12042 done
12043 IFS="$lt_save_ifs"
12044 MAGIC_CMD="$lt_save_MAGIC_CMD"
12045 ;;
12046esac
12047fi
12048
12049MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12050if test -n "$MAGIC_CMD"; then
12051 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12052$as_echo "$MAGIC_CMD" >&6; }
12053else
12054 { $as_echo "$as_me:$LINENO: result: no" >&5
12055$as_echo "no" >&6; }
12056fi
12057
12058
12059
12060
12061
12062if test -z "$lt_cv_path_MAGIC_CMD"; then
12063 if test -n "$ac_tool_prefix"; then
12064 { $as_echo "$as_me:$LINENO: checking for file" >&5
12065$as_echo_n "checking for file... " >&6; }
12066if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12067 $as_echo_n "(cached) " >&6
12068else
12069 case $MAGIC_CMD in
12070[\\/*] | ?:[\\/]*)
12071 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
12072 ;;
12073*)
12074 lt_save_MAGIC_CMD="$MAGIC_CMD"
12075 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12076 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12077 for ac_dir in $ac_dummy; do
12078 IFS="$lt_save_ifs"
12079 test -z "$ac_dir" && ac_dir=.
12080 if test -f $ac_dir/file; then
12081 lt_cv_path_MAGIC_CMD="$ac_dir/file"
12082 if test -n "$file_magic_test_file"; then
12083 case $deplibs_check_method in
12084 "file_magic "*)
12085 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12086 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12087 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12088 $EGREP "$file_magic_regex" > /dev/null; then
12089 :
12090 else
12091 cat <<_LT_EOF 1>&2
12092
12093*** Warning: the command libtool uses to detect shared libraries,
12094*** $file_magic_cmd, produces output that libtool cannot recognize.
12095*** The result is that libtool may fail to recognize shared libraries
12096*** as such. This will affect the creation of libtool libraries that
12097*** depend on shared libraries, but programs linked with such libtool
12098*** libraries will work regardless of this problem. Nevertheless, you
12099*** may want to report the problem to your system manager and/or to
12100*** bug-libtool@gnu.org
12101
12102_LT_EOF
12103 fi ;;
12104 esac
12105 fi
12106 break
12107 fi
12108 done
12109 IFS="$lt_save_ifs"
12110 MAGIC_CMD="$lt_save_MAGIC_CMD"
12111 ;;
12112esac
12113fi
12114
12115MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
12116if test -n "$MAGIC_CMD"; then
12117 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12118$as_echo "$MAGIC_CMD" >&6; }
12119else
12120 { $as_echo "$as_me:$LINENO: result: no" >&5
12121$as_echo "no" >&6; }
12122fi
12123
12124
12125 else
12126 MAGIC_CMD=:
12127 fi
12128fi
12129
12130 fi
12131 ;;
12132esac
12133
12134# Use C for the default configuration in the libtool script
12135
12136lt_save_CC="$CC"
12137ac_ext=c
12138ac_cpp='$CPP $CPPFLAGS'
12139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12141ac_compiler_gnu=$ac_cv_c_compiler_gnu
12142
12143
12144# Source file extension for C test sources.
12145ac_ext=c
12146
12147# Object file extension for compiled C test sources.
12148objext=o
12149objext=$objext
12150
12151# Code to be used in simple compile tests
12152lt_simple_compile_test_code="int some_variable = 0;"
12153
12154# Code to be used in simple link tests
12155lt_simple_link_test_code='int main(){return(0);}'
12156
12157
12158
12159
12160
12161
12162
12163# If no C compiler was specified, use CC.
12164LTCC=${LTCC-"$CC"}
12165
12166# If no C compiler flags were specified, use CFLAGS.
12167LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12168
12169# Allow CC to be a program name with arguments.
12170compiler=$CC
12171
12172# Save the default compiler, since it gets overwritten when the other
12173# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12174compiler_DEFAULT=$CC
12175
12176# save warnings/boilerplate of simple test code
12177ac_outfile=conftest.$ac_objext
12178echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12179eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12180_lt_compiler_boilerplate=`cat conftest.err`
12181$RM conftest*
12182
12183ac_outfile=conftest.$ac_objext
12184echo "$lt_simple_link_test_code" >conftest.$ac_ext
12185eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12186_lt_linker_boilerplate=`cat conftest.err`
12187$RM -r conftest*
12188
12189
12190## CAVEAT EMPTOR:
12191## There is no encapsulation within the following macros, do not change
12192## the running order or otherwise move them around unless you know exactly
12193## what you are doing...
12194if test -n "$compiler"; then
12195
12196lt_prog_compiler_no_builtin_flag=
12197
12198if test "$GCC" = yes; then
12199 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
12200
12201 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12202$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12203if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12204 $as_echo_n "(cached) " >&6
12205else
12206 lt_cv_prog_compiler_rtti_exceptions=no
12207 ac_outfile=conftest.$ac_objext
12208 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12209 lt_compiler_flag="-fno-rtti -fno-exceptions"
12210 # Insert the option either (1) after the last *FLAGS variable, or
12211 # (2) before a word containing "conftest.", or (3) at the end.
12212 # Note that $ac_compile itself does not contain backslashes and begins
12213 # with a dollar sign (not a hyphen), so the echo should work correctly.
12214 # The option is referenced via a variable to avoid confusing sed.
12215 lt_compile=`echo "$ac_compile" | $SED \
12216 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12218 -e 's:$: $lt_compiler_flag:'`
12219 (eval echo "\"\$as_me:12219: $lt_compile\"" >&5)
12220 (eval "$lt_compile" 2>conftest.err)
12221 ac_status=$?
12222 cat conftest.err >&5
12223 echo "$as_me:12223: \$? = $ac_status" >&5
12224 if (exit $ac_status) && test -s "$ac_outfile"; then
12225 # The compiler can only warn and ignore the option if not recognized
12226 # So say no if there are warnings other than the usual output.
12227 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12229 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12230 lt_cv_prog_compiler_rtti_exceptions=yes
12231 fi
12232 fi
12233 $RM conftest*
12234
12235fi
12236{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12237$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12238
12239if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
12240 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12241else
12242 :
12243fi
12244
12245fi
12246
12247
12248
12249
12250
12251
12252 lt_prog_compiler_wl=
12253lt_prog_compiler_pic=
12254lt_prog_compiler_static=
12255
12256{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12257$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12258
12259 if test "$GCC" = yes; then
12260 lt_prog_compiler_wl='-Wl,'
12261 lt_prog_compiler_static='-static'
12262
12263 case $host_os in
12264 aix*)
12265 # All AIX code is PIC.
12266 if test "$host_cpu" = ia64; then
12267 # AIX 5 now supports IA64 processor
12268 lt_prog_compiler_static='-Bstatic'
12269 fi
12270 ;;
12271
12272 amigaos*)
12273 case $host_cpu in
12274 powerpc)
12275 # see comment about AmigaOS4 .so support
12276 lt_prog_compiler_pic='-fPIC'
12277 ;;
12278 m68k)
12279 # FIXME: we need at least 68020 code to build shared libraries, but
12280 # adding the `-m68020' flag to GCC prevents building anything better,
12281 # like `-m68040'.
12282 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12283 ;;
12284 esac
12285 ;;
12286
12287 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12288 # PIC is the default for these OSes.
12289 ;;
12290
12291 mingw* | cygwin* | pw32* | os2* | cegcc*)
12292 # This hack is so that the source file can tell whether it is being
12293 # built for inclusion in a dll (and should export symbols for example).
12294 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12295 # (--disable-auto-import) libraries
12296 lt_prog_compiler_pic='-DDLL_EXPORT'
12297 ;;
12298
12299 darwin* | rhapsody*)
12300 # PIC is the default on this platform
12301 # Common symbols not allowed in MH_DYLIB files
12302 lt_prog_compiler_pic='-fno-common'
12303 ;;
12304
12305 hpux*)
12306 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12307 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12308 # sets the default TLS model and affects inlining.
12309 case $host_cpu in
12310 hppa*64*)
12311 # +Z the default
12312 ;;
12313 *)
12314 lt_prog_compiler_pic='-fPIC'
12315 ;;
12316 esac
12317 ;;
12318
12319 interix[3-9]*)
12320 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12321 # Instead, we relocate shared libraries at runtime.
12322 ;;
12323
12324 msdosdjgpp*)
12325 # Just because we use GCC doesn't mean we suddenly get shared libraries
12326 # on systems that don't support them.
12327 lt_prog_compiler_can_build_shared=no
12328 enable_shared=no
12329 ;;
12330
12331 *nto* | *qnx*)
12332 # QNX uses GNU C++, but need to define -shared option too, otherwise
12333 # it will coredump.
12334 lt_prog_compiler_pic='-fPIC -shared'
12335 ;;
12336
12337 sysv4*MP*)
12338 if test -d /usr/nec; then
12339 lt_prog_compiler_pic=-Kconform_pic
12340 fi
12341 ;;
12342
12343 *)
12344 lt_prog_compiler_pic='-fPIC'
12345 ;;
12346 esac
12347 else
12348 # PORTME Check for flag to pass linker flags through the system compiler.
12349 case $host_os in
12350 aix*)
12351 lt_prog_compiler_wl='-Wl,'
12352 if test "$host_cpu" = ia64; then
12353 # AIX 5 now supports IA64 processor
12354 lt_prog_compiler_static='-Bstatic'
12355 else
12356 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12357 fi
12358 ;;
12359
12360 mingw* | cygwin* | pw32* | os2* | cegcc*)
12361 # This hack is so that the source file can tell whether it is being
12362 # built for inclusion in a dll (and should export symbols for example).
12363 lt_prog_compiler_pic='-DDLL_EXPORT'
12364 ;;
12365
12366 hpux9* | hpux10* | hpux11*)
12367 lt_prog_compiler_wl='-Wl,'
12368 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12369 # not for PA HP-UX.
12370 case $host_cpu in
12371 hppa*64*|ia64*)
12372 # +Z the default
12373 ;;
12374 *)
12375 lt_prog_compiler_pic='+Z'
12376 ;;
12377 esac
12378 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12379 lt_prog_compiler_static='${wl}-a ${wl}archive'
12380 ;;
12381
12382 irix5* | irix6* | nonstopux*)
12383 lt_prog_compiler_wl='-Wl,'
12384 # PIC (with -KPIC) is the default.
12385 lt_prog_compiler_static='-non_shared'
12386 ;;
12387
12388 linux* | k*bsd*-gnu)
12389 case $cc_basename in
12390 # old Intel for x86_64 which still supported -KPIC.
12391 ecc*)
12392 lt_prog_compiler_wl='-Wl,'
12393 lt_prog_compiler_pic='-KPIC'
12394 lt_prog_compiler_static='-static'
12395 ;;
12396 # icc used to be incompatible with GCC.
12397 # ICC 10 doesn't accept -KPIC any more.
12398 icc* | ifort*)
12399 lt_prog_compiler_wl='-Wl,'
12400 lt_prog_compiler_pic='-fPIC'
12401 lt_prog_compiler_static='-static'
12402 ;;
12403 # Lahey Fortran 8.1.
12404 lf95*)
12405 lt_prog_compiler_wl='-Wl,'
12406 lt_prog_compiler_pic='--shared'
12407 lt_prog_compiler_static='--static'
12408 ;;
12409 pgcc* | pgf77* | pgf90* | pgf95*)
12410 # Portland Group compilers (*not* the Pentium gcc compiler,
12411 # which looks to be a dead project)
12412 lt_prog_compiler_wl='-Wl,'
12413 lt_prog_compiler_pic='-fpic'
12414 lt_prog_compiler_static='-Bstatic'
12415 ;;
12416 ccc*)
12417 lt_prog_compiler_wl='-Wl,'
12418 # All Alpha code is PIC.
12419 lt_prog_compiler_static='-non_shared'
12420 ;;
12421 xl*)
12422 # IBM XL C 8.0/Fortran 10.1 on PPC
12423 lt_prog_compiler_wl='-Wl,'
12424 lt_prog_compiler_pic='-qpic'
12425 lt_prog_compiler_static='-qstaticlink'
12426 ;;
12427 *)
12428 case `$CC -V 2>&1 | sed 5q` in
12429 *Sun\ C*)
12430 # Sun C 5.9
12431 lt_prog_compiler_pic='-KPIC'
12432 lt_prog_compiler_static='-Bstatic'
12433 lt_prog_compiler_wl='-Wl,'
12434 ;;
12435 *Sun\ F*)
12436 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12437 lt_prog_compiler_pic='-KPIC'
12438 lt_prog_compiler_static='-Bstatic'
12439 lt_prog_compiler_wl=''
12440 ;;
12441 esac
12442 ;;
12443 esac
12444 ;;
12445
12446 newsos6)
12447 lt_prog_compiler_pic='-KPIC'
12448 lt_prog_compiler_static='-Bstatic'
12449 ;;
12450
12451 *nto* | *qnx*)
12452 # QNX uses GNU C++, but need to define -shared option too, otherwise
12453 # it will coredump.
12454 lt_prog_compiler_pic='-fPIC -shared'
12455 ;;
12456
12457 osf3* | osf4* | osf5*)
12458 lt_prog_compiler_wl='-Wl,'
12459 # All OSF/1 code is PIC.
12460 lt_prog_compiler_static='-non_shared'
12461 ;;
12462
12463 rdos*)
12464 lt_prog_compiler_static='-non_shared'
12465 ;;
12466
12467 solaris*)
12468 lt_prog_compiler_pic='-KPIC'
12469 lt_prog_compiler_static='-Bstatic'
12470 case $cc_basename in
12471 f77* | f90* | f95*)
12472 lt_prog_compiler_wl='-Qoption ld ';;
12473 *)
12474 lt_prog_compiler_wl='-Wl,';;
12475 esac
12476 ;;
12477
12478 sunos4*)
12479 lt_prog_compiler_wl='-Qoption ld '
12480 lt_prog_compiler_pic='-PIC'
12481 lt_prog_compiler_static='-Bstatic'
12482 ;;
12483
12484 sysv4 | sysv4.2uw2* | sysv4.3*)
12485 lt_prog_compiler_wl='-Wl,'
12486 lt_prog_compiler_pic='-KPIC'
12487 lt_prog_compiler_static='-Bstatic'
12488 ;;
12489
12490 sysv4*MP*)
12491 if test -d /usr/nec ;then
12492 lt_prog_compiler_pic='-Kconform_pic'
12493 lt_prog_compiler_static='-Bstatic'
12494 fi
12495 ;;
12496
12497 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12498 lt_prog_compiler_wl='-Wl,'
12499 lt_prog_compiler_pic='-KPIC'
12500 lt_prog_compiler_static='-Bstatic'
12501 ;;
12502
12503 unicos*)
12504 lt_prog_compiler_wl='-Wl,'
12505 lt_prog_compiler_can_build_shared=no
12506 ;;
12507
12508 uts4*)
12509 lt_prog_compiler_pic='-pic'
12510 lt_prog_compiler_static='-Bstatic'
12511 ;;
12512
12513 *)
12514 lt_prog_compiler_can_build_shared=no
12515 ;;
12516 esac
12517 fi
12518
12519case $host_os in
12520 # For platforms which do not support PIC, -DPIC is meaningless:
12521 *djgpp*)
12522 lt_prog_compiler_pic=
12523 ;;
12524 *)
12525 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12526 ;;
12527esac
12528{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12529$as_echo "$lt_prog_compiler_pic" >&6; }
12530
12531
12532
12533
12534
12535
12536#
12537# Check to make sure the PIC flag actually works.
12538#
12539if test -n "$lt_prog_compiler_pic"; then
12540 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12541$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12542if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
12543 $as_echo_n "(cached) " >&6
12544else
12545 lt_cv_prog_compiler_pic_works=no
12546 ac_outfile=conftest.$ac_objext
12547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12548 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12549 # Insert the option either (1) after the last *FLAGS variable, or
12550 # (2) before a word containing "conftest.", or (3) at the end.
12551 # Note that $ac_compile itself does not contain backslashes and begins
12552 # with a dollar sign (not a hyphen), so the echo should work correctly.
12553 # The option is referenced via a variable to avoid confusing sed.
12554 lt_compile=`echo "$ac_compile" | $SED \
12555 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12557 -e 's:$: $lt_compiler_flag:'`
12558 (eval echo "\"\$as_me:12558: $lt_compile\"" >&5)
12559 (eval "$lt_compile" 2>conftest.err)
12560 ac_status=$?
12561 cat conftest.err >&5
12562 echo "$as_me:12562: \$? = $ac_status" >&5
12563 if (exit $ac_status) && test -s "$ac_outfile"; then
12564 # The compiler can only warn and ignore the option if not recognized
12565 # So say no if there are warnings other than the usual output.
12566 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12568 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12569 lt_cv_prog_compiler_pic_works=yes
12570 fi
12571 fi
12572 $RM conftest*
12573
12574fi
12575{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
12576$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12577
12578if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12579 case $lt_prog_compiler_pic in
12580 "" | " "*) ;;
12581 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12582 esac
12583else
12584 lt_prog_compiler_pic=
12585 lt_prog_compiler_can_build_shared=no
12586fi
12587
12588fi
12589
12590
12591
12592
12593
12594
12595#
12596# Check to make sure the static flag actually works.
12597#
12598wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12599{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12600$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12601if test "${lt_cv_prog_compiler_static_works+set}" = set; then
12602 $as_echo_n "(cached) " >&6
12603else
12604 lt_cv_prog_compiler_static_works=no
12605 save_LDFLAGS="$LDFLAGS"
12606 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12607 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12608 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12609 # The linker can only warn and ignore the option if not recognized
12610 # So say no if there are warnings
12611 if test -s conftest.err; then
12612 # Append any errors to the config.log.
12613 cat conftest.err 1>&5
12614 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12615 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12616 if diff conftest.exp conftest.er2 >/dev/null; then
12617 lt_cv_prog_compiler_static_works=yes
12618 fi
12619 else
12620 lt_cv_prog_compiler_static_works=yes
12621 fi
12622 fi
12623 $RM -r conftest*
12624 LDFLAGS="$save_LDFLAGS"
12625
12626fi
12627{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
12628$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12629
12630if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12631 :
12632else
12633 lt_prog_compiler_static=
12634fi
12635
12636
12637
12638
12639
12640
12641
12642 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12643$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12644if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12645 $as_echo_n "(cached) " >&6
12646else
12647 lt_cv_prog_compiler_c_o=no
12648 $RM -r conftest 2>/dev/null
12649 mkdir conftest
12650 cd conftest
12651 mkdir out
12652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12653
12654 lt_compiler_flag="-o out/conftest2.$ac_objext"
12655 # Insert the option either (1) after the last *FLAGS variable, or
12656 # (2) before a word containing "conftest.", or (3) at the end.
12657 # Note that $ac_compile itself does not contain backslashes and begins
12658 # with a dollar sign (not a hyphen), so the echo should work correctly.
12659 lt_compile=`echo "$ac_compile" | $SED \
12660 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12661 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12662 -e 's:$: $lt_compiler_flag:'`
12663 (eval echo "\"\$as_me:12663: $lt_compile\"" >&5)
12664 (eval "$lt_compile" 2>out/conftest.err)
12665 ac_status=$?
12666 cat out/conftest.err >&5
12667 echo "$as_me:12667: \$? = $ac_status" >&5
12668 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12669 then
12670 # The compiler can only warn and ignore the option if not recognized
12671 # So say no if there are warnings
12672 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12673 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12674 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12675 lt_cv_prog_compiler_c_o=yes
12676 fi
12677 fi
12678 chmod u+w . 2>&5
12679 $RM conftest*
12680 # SGI C++ compiler will create directory out/ii_files/ for
12681 # template instantiation
12682 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12683 $RM out/* && rmdir out
12684 cd ..
12685 $RM -r conftest
12686 $RM conftest*
12687
12688fi
12689{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12690$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12691
12692
12693
12694
12695
12696
12697 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12698$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12699if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12700 $as_echo_n "(cached) " >&6
12701else
12702 lt_cv_prog_compiler_c_o=no
12703 $RM -r conftest 2>/dev/null
12704 mkdir conftest
12705 cd conftest
12706 mkdir out
12707 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12708
12709 lt_compiler_flag="-o out/conftest2.$ac_objext"
12710 # Insert the option either (1) after the last *FLAGS variable, or
12711 # (2) before a word containing "conftest.", or (3) at the end.
12712 # Note that $ac_compile itself does not contain backslashes and begins
12713 # with a dollar sign (not a hyphen), so the echo should work correctly.
12714 lt_compile=`echo "$ac_compile" | $SED \
12715 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12716 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12717 -e 's:$: $lt_compiler_flag:'`
12718 (eval echo "\"\$as_me:12718: $lt_compile\"" >&5)
12719 (eval "$lt_compile" 2>out/conftest.err)
12720 ac_status=$?
12721 cat out/conftest.err >&5
12722 echo "$as_me:12722: \$? = $ac_status" >&5
12723 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12724 then
12725 # The compiler can only warn and ignore the option if not recognized
12726 # So say no if there are warnings
12727 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12728 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12729 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12730 lt_cv_prog_compiler_c_o=yes
12731 fi
12732 fi
12733 chmod u+w . 2>&5
12734 $RM conftest*
12735 # SGI C++ compiler will create directory out/ii_files/ for
12736 # template instantiation
12737 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12738 $RM out/* && rmdir out
12739 cd ..
12740 $RM -r conftest
12741 $RM conftest*
12742
12743fi
12744{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12745$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12746
12747
12748
12749
12750hard_links="nottested"
12751if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12752 # do not overwrite the value of need_locks provided by the user
12753 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12754$as_echo_n "checking if we can lock with hard links... " >&6; }
12755 hard_links=yes
12756 $RM conftest*
12757 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12758 touch conftest.a
12759 ln conftest.a conftest.b 2>&5 || hard_links=no
12760 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12761 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
12762$as_echo "$hard_links" >&6; }
12763 if test "$hard_links" = no; then
12764 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12765$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12766 need_locks=warn
12767 fi
12768else
12769 need_locks=no
12770fi
12771
12772
12773
12774
12775
12776
12777 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12778$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12779
12780 runpath_var=
12781 allow_undefined_flag=
12782 always_export_symbols=no
12783 archive_cmds=
12784 archive_expsym_cmds=
12785 compiler_needs_object=no
12786 enable_shared_with_static_runtimes=no
12787 export_dynamic_flag_spec=
12788 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12789 hardcode_automatic=no
12790 hardcode_direct=no
12791 hardcode_direct_absolute=no
12792 hardcode_libdir_flag_spec=
12793 hardcode_libdir_flag_spec_ld=
12794 hardcode_libdir_separator=
12795 hardcode_minus_L=no
12796 hardcode_shlibpath_var=unsupported
12797 inherit_rpath=no
12798 link_all_deplibs=unknown
12799 module_cmds=
12800 module_expsym_cmds=
12801 old_archive_from_new_cmds=
12802 old_archive_from_expsyms_cmds=
12803 thread_safe_flag_spec=
12804 whole_archive_flag_spec=
12805 # include_expsyms should be a list of space-separated symbols to be *always*
12806 # included in the symbol list
12807 include_expsyms=
12808 # exclude_expsyms can be an extended regexp of symbols to exclude
12809 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12810 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12811 # as well as any symbol that contains `d'.
12812 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12813 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12814 # platforms (ab)use it in PIC code, but their linkers get confused if
12815 # the symbol is explicitly referenced. Since portable code cannot
12816 # rely on this symbol name, it's probably fine to never include it in
12817 # preloaded symbol tables.
12818 # Exclude shared library initialization/finalization symbols.
12819 extract_expsyms_cmds=
12820
12821 case $host_os in
12822 cygwin* | mingw* | pw32* | cegcc*)
12823 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12824 # When not using gcc, we currently assume that we are using
12825 # Microsoft Visual C++.
12826 if test "$GCC" != yes; then
12827 with_gnu_ld=no
12828 fi
12829 ;;
12830 interix*)
12831 # we just hope/assume this is gcc and not c89 (= MSVC++)
12832 with_gnu_ld=yes
12833 ;;
12834 openbsd*)
12835 with_gnu_ld=no
12836 ;;
12837 esac
12838
12839 ld_shlibs=yes
12840 if test "$with_gnu_ld" = yes; then
12841 # If archive_cmds runs LD, not CC, wlarc should be empty
12842 wlarc='${wl}'
12843
12844 # Set some defaults for GNU ld with shared library support. These
12845 # are reset later if shared libraries are not supported. Putting them
12846 # here allows them to be overridden if necessary.
12847 runpath_var=LD_RUN_PATH
12848 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12849 export_dynamic_flag_spec='${wl}--export-dynamic'
12850 # ancient GNU ld didn't support --whole-archive et. al.
12851 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12852 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12853 else
12854 whole_archive_flag_spec=
12855 fi
12856 supports_anon_versioning=no
12857 case `$LD -v 2>&1` in
12858 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12859 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12860 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12861 *\ 2.11.*) ;; # other 2.11 versions
12862 *) supports_anon_versioning=yes ;;
12863 esac
12864
12865 # See if GNU ld supports shared libraries.
12866 case $host_os in
12867 aix[3-9]*)
12868 # On AIX/PPC, the GNU linker is very broken
12869 if test "$host_cpu" != ia64; then
12870 ld_shlibs=no
12871 cat <<_LT_EOF 1>&2
12872
12873*** Warning: the GNU linker, at least up to release 2.9.1, is reported
12874*** to be unable to reliably create shared libraries on AIX.
12875*** Therefore, libtool is disabling shared libraries support. If you
12876*** really care for shared libraries, you may want to modify your PATH
12877*** so that a non-GNU linker is found, and then restart.
12878
12879_LT_EOF
12880 fi
12881 ;;
12882
12883 amigaos*)
12884 case $host_cpu in
12885 powerpc)
12886 # see comment about AmigaOS4 .so support
12887 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12888 archive_expsym_cmds=''
12889 ;;
12890 m68k)
12891 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)'
12892 hardcode_libdir_flag_spec='-L$libdir'
12893 hardcode_minus_L=yes
12894 ;;
12895 esac
12896 ;;
12897
12898 beos*)
12899 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12900 allow_undefined_flag=unsupported
12901 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12902 # support --undefined. This deserves some investigation. FIXME
12903 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12904 else
12905 ld_shlibs=no
12906 fi
12907 ;;
12908
12909 cygwin* | mingw* | pw32* | cegcc*)
12910 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12911 # as there is no search path for DLLs.
12912 hardcode_libdir_flag_spec='-L$libdir'
12913 allow_undefined_flag=unsupported
12914 always_export_symbols=no
12915 enable_shared_with_static_runtimes=yes
12916 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12917
12918 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12920 # If the export-symbols file already is a .def file (1st line
12921 # is EXPORTS), use it as is; otherwise, prepend...
12922 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12923 cp $export_symbols $output_objdir/$soname.def;
12924 else
12925 echo EXPORTS > $output_objdir/$soname.def;
12926 cat $export_symbols >> $output_objdir/$soname.def;
12927 fi~
12928 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12929 else
12930 ld_shlibs=no
12931 fi
12932 ;;
12933
12934 interix[3-9]*)
12935 hardcode_direct=no
12936 hardcode_shlibpath_var=no
12937 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12938 export_dynamic_flag_spec='${wl}-E'
12939 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12940 # Instead, shared libraries are loaded at an image base (0x10000000 by
12941 # default) and relocated if they conflict, which is a slow very memory
12942 # consuming and fragmenting process. To avoid this, we pick a random,
12943 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12944 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12945 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12946 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'
12947 ;;
12948
12949 gnu* | linux* | tpf* | k*bsd*-gnu)
12950 tmp_diet=no
12951 if test "$host_os" = linux-dietlibc; then
12952 case $cc_basename in
12953 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12954 esac
12955 fi
12956 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12957 && test "$tmp_diet" = no
12958 then
12959 tmp_addflag=
12960 tmp_sharedflag='-shared'
12961 case $cc_basename,$host_cpu in
12962 pgcc*) # Portland Group C compiler
12963 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'
12964 tmp_addflag=' $pic_flag'
12965 ;;
12966 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
12967 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'
12968 tmp_addflag=' $pic_flag -Mnomain' ;;
12969 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12970 tmp_addflag=' -i_dynamic' ;;
12971 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12972 tmp_addflag=' -i_dynamic -nofor_main' ;;
12973 ifc* | ifort*) # Intel Fortran compiler
12974 tmp_addflag=' -nofor_main' ;;
12975 lf95*) # Lahey Fortran 8.1
12976 whole_archive_flag_spec=
12977 tmp_sharedflag='--shared' ;;
12978 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12979 tmp_sharedflag='-qmkshrobj'
12980 tmp_addflag= ;;
12981 esac
12982 case `$CC -V 2>&1 | sed 5q` in
12983 *Sun\ C*) # Sun C 5.9
12984 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'
12985 compiler_needs_object=yes
12986 tmp_sharedflag='-G' ;;
12987 *Sun\ F*) # Sun Fortran 8.3
12988 tmp_sharedflag='-G' ;;
12989 esac
12990 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12991
12992 if test "x$supports_anon_versioning" = xyes; then
12993 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12994 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12995 echo "local: *; };" >> $output_objdir/$libname.ver~
12996 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12997 fi
12998
12999 case $cc_basename in
13000 xlf*)
13001 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13002 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13003 hardcode_libdir_flag_spec=
13004 hardcode_libdir_flag_spec_ld='-rpath $libdir'
13005 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13006 if test "x$supports_anon_versioning" = xyes; then
13007 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13008 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13009 echo "local: *; };" >> $output_objdir/$libname.ver~
13010 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13011 fi
13012 ;;
13013 esac
13014 else
13015 ld_shlibs=no
13016 fi
13017 ;;
13018
13019 netbsd*)
13020 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13021 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13022 wlarc=
13023 else
13024 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13025 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13026 fi
13027 ;;
13028
13029 solaris*)
13030 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13031 ld_shlibs=no
13032 cat <<_LT_EOF 1>&2
13033
13034*** Warning: The releases 2.8.* of the GNU linker cannot reliably
13035*** create shared libraries on Solaris systems. Therefore, libtool
13036*** is disabling shared libraries support. We urge you to upgrade GNU
13037*** binutils to release 2.9.1 or newer. Another option is to modify
13038*** your PATH or compiler configuration so that the native linker is
13039*** used, and then restart.
13040
13041_LT_EOF
13042 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13043 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13044 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13045 else
13046 ld_shlibs=no
13047 fi
13048 ;;
13049
13050 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13051 case `$LD -v 2>&1` in
13052 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13053 ld_shlibs=no
13054 cat <<_LT_EOF 1>&2
13055
13056*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13057*** reliably create shared libraries on SCO systems. Therefore, libtool
13058*** is disabling shared libraries support. We urge you to upgrade GNU
13059*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13060*** your PATH or compiler configuration so that the native linker is
13061*** used, and then restart.
13062
13063_LT_EOF
13064 ;;
13065 *)
13066 # For security reasons, it is highly recommended that you always
13067 # use absolute paths for naming shared libraries, and exclude the
13068 # DT_RUNPATH tag from executables and libraries. But doing so
13069 # requires that you compile everything twice, which is a pain.
13070 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13071 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13072 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13073 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13074 else
13075 ld_shlibs=no
13076 fi
13077 ;;
13078 esac
13079 ;;
13080
13081 sunos4*)
13082 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13083 wlarc=
13084 hardcode_direct=yes
13085 hardcode_shlibpath_var=no
13086 ;;
13087
13088 *)
13089 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13090 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13091 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13092 else
13093 ld_shlibs=no
13094 fi
13095 ;;
13096 esac
13097
13098 if test "$ld_shlibs" = no; then
13099 runpath_var=
13100 hardcode_libdir_flag_spec=
13101 export_dynamic_flag_spec=
13102 whole_archive_flag_spec=
13103 fi
13104 else
13105 # PORTME fill in a description of your system's linker (not GNU ld)
13106 case $host_os in
13107 aix3*)
13108 allow_undefined_flag=unsupported
13109 always_export_symbols=yes
13110 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'
13111 # Note: this linker hardcodes the directories in LIBPATH if there
13112 # are no directories specified by -L.
13113 hardcode_minus_L=yes
13114 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13115 # Neither direct hardcoding nor static linking is supported with a
13116 # broken collect2.
13117 hardcode_direct=unsupported
13118 fi
13119 ;;
13120
13121 aix[4-9]*)
13122 if test "$host_cpu" = ia64; then
13123 # On IA64, the linker does run time linking by default, so we don't
13124 # have to do anything special.
13125 aix_use_runtimelinking=no
13126 exp_sym_flag='-Bexport'
13127 no_entry_flag=""
13128 else
13129 # If we're using GNU nm, then we don't want the "-C" option.
13130 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13131 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13132 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'
13133 else
13134 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'
13135 fi
13136 aix_use_runtimelinking=no
13137
13138 # Test if we are trying to use run time linking or normal
13139 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13140 # need to do runtime linking.
13141 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13142 for ld_flag in $LDFLAGS; do
13143 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13144 aix_use_runtimelinking=yes
13145 break
13146 fi
13147 done
13148 ;;
13149 esac
13150
13151 exp_sym_flag='-bexport'
13152 no_entry_flag='-bnoentry'
13153 fi
13154
13155 # When large executables or shared objects are built, AIX ld can
13156 # have problems creating the table of contents. If linking a library
13157 # or program results in "error TOC overflow" add -mminimal-toc to
13158 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13159 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13160
13161 archive_cmds=''
13162 hardcode_direct=yes
13163 hardcode_direct_absolute=yes
13164 hardcode_libdir_separator=':'
13165 link_all_deplibs=yes
13166 file_list_spec='${wl}-f,'
13167
13168 if test "$GCC" = yes; then
13169 case $host_os in aix4.[012]|aix4.[012].*)
13170 # We only want to do this on AIX 4.2 and lower, the check
13171 # below for broken collect2 doesn't work under 4.3+
13172 collect2name=`${CC} -print-prog-name=collect2`
13173 if test -f "$collect2name" &&
13174 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13175 then
13176 # We have reworked collect2
13177 :
13178 else
13179 # We have old collect2
13180 hardcode_direct=unsupported
13181 # It fails to find uninstalled libraries when the uninstalled
13182 # path is not listed in the libpath. Setting hardcode_minus_L
13183 # to unsupported forces relinking
13184 hardcode_minus_L=yes
13185 hardcode_libdir_flag_spec='-L$libdir'
13186 hardcode_libdir_separator=
13187 fi
13188 ;;
13189 esac
13190 shared_flag='-shared'
13191 if test "$aix_use_runtimelinking" = yes; then
13192 shared_flag="$shared_flag "'${wl}-G'
13193 fi
13194 else
13195 # not using gcc
13196 if test "$host_cpu" = ia64; then
13197 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13198 # chokes on -Wl,-G. The following line is correct:
13199 shared_flag='-G'
13200 else
13201 if test "$aix_use_runtimelinking" = yes; then
13202 shared_flag='${wl}-G'
13203 else
13204 shared_flag='${wl}-bM:SRE'
13205 fi
13206 fi
13207 fi
13208
13209 export_dynamic_flag_spec='${wl}-bexpall'
13210 # It seems that -bexpall does not export symbols beginning with
13211 # underscore (_), so it is better to generate a list of symbols to export.
13212 always_export_symbols=yes
13213 if test "$aix_use_runtimelinking" = yes; then
13214 # Warning - without using the other runtime loading flags (-brtl),
13215 # -berok will link without error, but may produce a broken library.
13216 allow_undefined_flag='-berok'
13217 # Determine the default libpath from the value encoded in an
13218 # empty executable.
13219 cat >conftest.$ac_ext <<_ACEOF
13220/* confdefs.h. */
13221_ACEOF
13222cat confdefs.h >>conftest.$ac_ext
13223cat >>conftest.$ac_ext <<_ACEOF
13224/* end confdefs.h. */
13225
13226int
13227main ()
13228{
13229
13230 ;
13231 return 0;
13232}
13233_ACEOF
13234rm -f conftest.$ac_objext conftest$ac_exeext
13235if { (ac_try="$ac_link"
13236case "(($ac_try" in
13237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238 *) ac_try_echo=$ac_try;;
13239esac
13240eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13241$as_echo "$ac_try_echo") >&5
13242 (eval "$ac_link") 2>conftest.er1
13243 ac_status=$?
13244 grep -v '^ *+' conftest.er1 >conftest.err
13245 rm -f conftest.er1
13246 cat conftest.err >&5
13247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } && {
13249 test -z "$ac_c_werror_flag" ||
13250 test ! -s conftest.err
13251 } && test -s conftest$ac_exeext && {
13252 test "$cross_compiling" = yes ||
13253 $as_test_x conftest$ac_exeext
13254 }; then
13255
13256lt_aix_libpath_sed='
13257 /Import File Strings/,/^$/ {
13258 /^0/ {
13259 s/^0 *\(.*\)$/\1/
13260 p
13261 }
13262 }'
13263aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13264# Check for a 64-bit object if we didn't find anything.
13265if test -z "$aix_libpath"; then
13266 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13267fi
13268else
13269 $as_echo "$as_me: failed program was:" >&5
13270sed 's/^/| /' conftest.$ac_ext >&5
13271
13272
13273fi
13274
13275rm -rf conftest.dSYM
13276rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13277 conftest$ac_exeext conftest.$ac_ext
13278if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13279
13280 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13281 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"
13282 else
13283 if test "$host_cpu" = ia64; then
13284 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
13285 allow_undefined_flag="-z nodefs"
13286 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"
13287 else
13288 # Determine the default libpath from the value encoded in an
13289 # empty executable.
13290 cat >conftest.$ac_ext <<_ACEOF
13291/* confdefs.h. */
13292_ACEOF
13293cat confdefs.h >>conftest.$ac_ext
13294cat >>conftest.$ac_ext <<_ACEOF
13295/* end confdefs.h. */
13296
13297int
13298main ()
13299{
13300
13301 ;
13302 return 0;
13303}
13304_ACEOF
13305rm -f conftest.$ac_objext conftest$ac_exeext
13306if { (ac_try="$ac_link"
13307case "(($ac_try" in
13308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13309 *) ac_try_echo=$ac_try;;
13310esac
13311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13312$as_echo "$ac_try_echo") >&5
13313 (eval "$ac_link") 2>conftest.er1
13314 ac_status=$?
13315 grep -v '^ *+' conftest.er1 >conftest.err
13316 rm -f conftest.er1
13317 cat conftest.err >&5
13318 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); } && {
13320 test -z "$ac_c_werror_flag" ||
13321 test ! -s conftest.err
13322 } && test -s conftest$ac_exeext && {
13323 test "$cross_compiling" = yes ||
13324 $as_test_x conftest$ac_exeext
13325 }; then
13326
13327lt_aix_libpath_sed='
13328 /Import File Strings/,/^$/ {
13329 /^0/ {
13330 s/^0 *\(.*\)$/\1/
13331 p
13332 }
13333 }'
13334aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13335# Check for a 64-bit object if we didn't find anything.
13336if test -z "$aix_libpath"; then
13337 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13338fi
13339else
13340 $as_echo "$as_me: failed program was:" >&5
13341sed 's/^/| /' conftest.$ac_ext >&5
13342
13343
13344fi
13345
13346rm -rf conftest.dSYM
13347rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13348 conftest$ac_exeext conftest.$ac_ext
13349if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13350
13351 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13352 # Warning - without using the other run time loading flags,
13353 # -berok will link without error, but may produce a broken library.
13354 no_undefined_flag=' ${wl}-bernotok'
13355 allow_undefined_flag=' ${wl}-berok'
13356 # Exported symbols can be pulled into shared objects from archives
13357 whole_archive_flag_spec='$convenience'
13358 archive_cmds_need_lc=yes
13359 # This is similar to how AIX traditionally builds its shared libraries.
13360 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'
13361 fi
13362 fi
13363 ;;
13364
13365 amigaos*)
13366 case $host_cpu in
13367 powerpc)
13368 # see comment about AmigaOS4 .so support
13369 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13370 archive_expsym_cmds=''
13371 ;;
13372 m68k)
13373 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)'
13374 hardcode_libdir_flag_spec='-L$libdir'
13375 hardcode_minus_L=yes
13376 ;;
13377 esac
13378 ;;
13379
13380 bsdi[45]*)
13381 export_dynamic_flag_spec=-rdynamic
13382 ;;
13383
13384 cygwin* | mingw* | pw32* | cegcc*)
13385 # When not using gcc, we currently assume that we are using
13386 # Microsoft Visual C++.
13387 # hardcode_libdir_flag_spec is actually meaningless, as there is
13388 # no search path for DLLs.
13389 hardcode_libdir_flag_spec=' '
13390 allow_undefined_flag=unsupported
13391 # Tell ltmain to make .lib files, not .a files.
13392 libext=lib
13393 # Tell ltmain to make .dll files, not .so files.
13394 shrext_cmds=".dll"
13395 # FIXME: Setting linknames here is a bad hack.
13396 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
13397 # The linker will automatically build a .lib file if we build a DLL.
13398 old_archive_from_new_cmds='true'
13399 # FIXME: Should let the user specify the lib program.
13400 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13401 fix_srcfile_path='`cygpath -w "$srcfile"`'
13402 enable_shared_with_static_runtimes=yes
13403 ;;
13404
13405 darwin* | rhapsody*)
13406
13407
13408 archive_cmds_need_lc=no
13409 hardcode_direct=no
13410 hardcode_automatic=yes
13411 hardcode_shlibpath_var=unsupported
13412 whole_archive_flag_spec=''
13413 link_all_deplibs=yes
13414 allow_undefined_flag="$_lt_dar_allow_undefined"
13415 case $cc_basename in
13416 ifort*) _lt_dar_can_shared=yes ;;
13417 *) _lt_dar_can_shared=$GCC ;;
13418 esac
13419 if test "$_lt_dar_can_shared" = "yes"; then
13420 output_verbose_link_cmd=echo
13421 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13422 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13423 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}"
13424 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}"
13425
13426 else
13427 ld_shlibs=no
13428 fi
13429
13430 ;;
13431
13432 dgux*)
13433 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13434 hardcode_libdir_flag_spec='-L$libdir'
13435 hardcode_shlibpath_var=no
13436 ;;
13437
13438 freebsd1*)
13439 ld_shlibs=no
13440 ;;
13441
13442 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13443 # support. Future versions do this automatically, but an explicit c++rt0.o
13444 # does not break anything, and helps significantly (at the cost of a little
13445 # extra space).
13446 freebsd2.2*)
13447 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13448 hardcode_libdir_flag_spec='-R$libdir'
13449 hardcode_direct=yes
13450 hardcode_shlibpath_var=no
13451 ;;
13452
13453 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13454 freebsd2*)
13455 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13456 hardcode_direct=yes
13457 hardcode_minus_L=yes
13458 hardcode_shlibpath_var=no
13459 ;;
13460
13461 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13462 freebsd* | dragonfly*)
13463 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13464 hardcode_libdir_flag_spec='-R$libdir'
13465 hardcode_direct=yes
13466 hardcode_shlibpath_var=no
13467 ;;
13468
13469 hpux9*)
13470 if test "$GCC" = yes; then
13471 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'
13472 else
13473 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'
13474 fi
13475 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13476 hardcode_libdir_separator=:
13477 hardcode_direct=yes
13478
13479 # hardcode_minus_L: Not really in the search PATH,
13480 # but as the default location of the library.
13481 hardcode_minus_L=yes
13482 export_dynamic_flag_spec='${wl}-E'
13483 ;;
13484
13485 hpux10*)
13486 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13487 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13488 else
13489 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13490 fi
13491 if test "$with_gnu_ld" = no; then
13492 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13493 hardcode_libdir_flag_spec_ld='+b $libdir'
13494 hardcode_libdir_separator=:
13495 hardcode_direct=yes
13496 hardcode_direct_absolute=yes
13497 export_dynamic_flag_spec='${wl}-E'
13498 # hardcode_minus_L: Not really in the search PATH,
13499 # but as the default location of the library.
13500 hardcode_minus_L=yes
13501 fi
13502 ;;
13503
13504 hpux11*)
13505 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13506 case $host_cpu in
13507 hppa*64*)
13508 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13509 ;;
13510 ia64*)
13511 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13512 ;;
13513 *)
13514 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13515 ;;
13516 esac
13517 else
13518 case $host_cpu in
13519 hppa*64*)
13520 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13521 ;;
13522 ia64*)
13523 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13524 ;;
13525 *)
13526 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13527 ;;
13528 esac
13529 fi
13530 if test "$with_gnu_ld" = no; then
13531 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13532 hardcode_libdir_separator=:
13533
13534 case $host_cpu in
13535 hppa*64*|ia64*)
13536 hardcode_direct=no
13537 hardcode_shlibpath_var=no
13538 ;;
13539 *)
13540 hardcode_direct=yes
13541 hardcode_direct_absolute=yes
13542 export_dynamic_flag_spec='${wl}-E'
13543
13544 # hardcode_minus_L: Not really in the search PATH,
13545 # but as the default location of the library.
13546 hardcode_minus_L=yes
13547 ;;
13548 esac
13549 fi
13550 ;;
13551
13552 irix5* | irix6* | nonstopux*)
13553 if test "$GCC" = yes; then
13554 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'
13555 # Try to use the -exported_symbol ld option, if it does not
13556 # work, assume that -exports_file does not work either and
13557 # implicitly export all symbols.
13558 save_LDFLAGS="$LDFLAGS"
13559 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13560 cat >conftest.$ac_ext <<_ACEOF
13561int foo(void) {}
13562_ACEOF
13563rm -f conftest.$ac_objext conftest$ac_exeext
13564if { (ac_try="$ac_link"
13565case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13568esac
13569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13570$as_echo "$ac_try_echo") >&5
13571 (eval "$ac_link") 2>conftest.er1
13572 ac_status=$?
13573 grep -v '^ *+' conftest.er1 >conftest.err
13574 rm -f conftest.er1
13575 cat conftest.err >&5
13576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); } && {
13578 test -z "$ac_c_werror_flag" ||
13579 test ! -s conftest.err
13580 } && test -s conftest$ac_exeext && {
13581 test "$cross_compiling" = yes ||
13582 $as_test_x conftest$ac_exeext
13583 }; then
13584 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'
13585
13586else
13587 $as_echo "$as_me: failed program was:" >&5
13588sed 's/^/| /' conftest.$ac_ext >&5
13589
13590
13591fi
13592
13593rm -rf conftest.dSYM
13594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13595 conftest$ac_exeext conftest.$ac_ext
13596 LDFLAGS="$save_LDFLAGS"
13597 else
13598 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'
13599 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'
13600 fi
13601 archive_cmds_need_lc='no'
13602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13603 hardcode_libdir_separator=:
13604 inherit_rpath=yes
13605 link_all_deplibs=yes
13606 ;;
13607
13608 netbsd*)
13609 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13610 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13611 else
13612 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13613 fi
13614 hardcode_libdir_flag_spec='-R$libdir'
13615 hardcode_direct=yes
13616 hardcode_shlibpath_var=no
13617 ;;
13618
13619 newsos6)
13620 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13621 hardcode_direct=yes
13622 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13623 hardcode_libdir_separator=:
13624 hardcode_shlibpath_var=no
13625 ;;
13626
13627 *nto* | *qnx*)
13628 ;;
13629
13630 openbsd*)
13631 if test -f /usr/libexec/ld.so; then
13632 hardcode_direct=yes
13633 hardcode_shlibpath_var=no
13634 hardcode_direct_absolute=yes
13635 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13636 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13637 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13638 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13639 export_dynamic_flag_spec='${wl}-E'
13640 else
13641 case $host_os in
13642 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13643 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13644 hardcode_libdir_flag_spec='-R$libdir'
13645 ;;
13646 *)
13647 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13648 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13649 ;;
13650 esac
13651 fi
13652 else
13653 ld_shlibs=no
13654 fi
13655 ;;
13656
13657 os2*)
13658 hardcode_libdir_flag_spec='-L$libdir'
13659 hardcode_minus_L=yes
13660 allow_undefined_flag=unsupported
13661 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'
13662 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13663 ;;
13664
13665 osf3*)
13666 if test "$GCC" = yes; then
13667 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13668 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'
13669 else
13670 allow_undefined_flag=' -expect_unresolved \*'
13671 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'
13672 fi
13673 archive_cmds_need_lc='no'
13674 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13675 hardcode_libdir_separator=:
13676 ;;
13677
13678 osf4* | osf5*) # as osf3* with the addition of -msym flag
13679 if test "$GCC" = yes; then
13680 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13681 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'
13682 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13683 else
13684 allow_undefined_flag=' -expect_unresolved \*'
13685 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'
13686 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~
13687 $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'
13688
13689 # Both c and cxx compiler support -rpath directly
13690 hardcode_libdir_flag_spec='-rpath $libdir'
13691 fi
13692 archive_cmds_need_lc='no'
13693 hardcode_libdir_separator=:
13694 ;;
13695
13696 solaris*)
13697 no_undefined_flag=' -z defs'
13698 if test "$GCC" = yes; then
13699 wlarc='${wl}'
13700 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13701 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13702 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13703 else
13704 case `$CC -V 2>&1` in
13705 *"Compilers 5.0"*)
13706 wlarc=''
13707 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13708 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13709 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13710 ;;
13711 *)
13712 wlarc='${wl}'
13713 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13714 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13715 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13716 ;;
13717 esac
13718 fi
13719 hardcode_libdir_flag_spec='-R$libdir'
13720 hardcode_shlibpath_var=no
13721 case $host_os in
13722 solaris2.[0-5] | solaris2.[0-5].*) ;;
13723 *)
13724 # The compiler driver will combine and reorder linker options,
13725 # but understands `-z linker_flag'. GCC discards it without `$wl',
13726 # but is careful enough not to reorder.
13727 # Supported since Solaris 2.6 (maybe 2.5.1?)
13728 if test "$GCC" = yes; then
13729 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13730 else
13731 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13732 fi
13733 ;;
13734 esac
13735 link_all_deplibs=yes
13736 ;;
13737
13738 sunos4*)
13739 if test "x$host_vendor" = xsequent; then
13740 # Use $CC to link under sequent, because it throws in some extra .o
13741 # files that make .init and .fini sections work.
13742 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13743 else
13744 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13745 fi
13746 hardcode_libdir_flag_spec='-L$libdir'
13747 hardcode_direct=yes
13748 hardcode_minus_L=yes
13749 hardcode_shlibpath_var=no
13750 ;;
13751
13752 sysv4)
13753 case $host_vendor in
13754 sni)
13755 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13756 hardcode_direct=yes # is this really true???
13757 ;;
13758 siemens)
13759 ## LD is ld it makes a PLAMLIB
13760 ## CC just makes a GrossModule.
13761 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13762 reload_cmds='$CC -r -o $output$reload_objs'
13763 hardcode_direct=no
13764 ;;
13765 motorola)
13766 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13767 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13768 ;;
13769 esac
13770 runpath_var='LD_RUN_PATH'
13771 hardcode_shlibpath_var=no
13772 ;;
13773
13774 sysv4.3*)
13775 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13776 hardcode_shlibpath_var=no
13777 export_dynamic_flag_spec='-Bexport'
13778 ;;
13779
13780 sysv4*MP*)
13781 if test -d /usr/nec; then
13782 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13783 hardcode_shlibpath_var=no
13784 runpath_var=LD_RUN_PATH
13785 hardcode_runpath_var=yes
13786 ld_shlibs=yes
13787 fi
13788 ;;
13789
13790 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13791 no_undefined_flag='${wl}-z,text'
13792 archive_cmds_need_lc=no
13793 hardcode_shlibpath_var=no
13794 runpath_var='LD_RUN_PATH'
13795
13796 if test "$GCC" = yes; then
13797 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13798 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13799 else
13800 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13801 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13802 fi
13803 ;;
13804
13805 sysv5* | sco3.2v5* | sco5v6*)
13806 # Note: We can NOT use -z defs as we might desire, because we do not
13807 # link with -lc, and that would cause any symbols used from libc to
13808 # always be unresolved, which means just about no library would
13809 # ever link correctly. If we're not using GNU ld we use -z text
13810 # though, which does catch some bad symbols but isn't as heavy-handed
13811 # as -z defs.
13812 no_undefined_flag='${wl}-z,text'
13813 allow_undefined_flag='${wl}-z,nodefs'
13814 archive_cmds_need_lc=no
13815 hardcode_shlibpath_var=no
13816 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13817 hardcode_libdir_separator=':'
13818 link_all_deplibs=yes
13819 export_dynamic_flag_spec='${wl}-Bexport'
13820 runpath_var='LD_RUN_PATH'
13821
13822 if test "$GCC" = yes; then
13823 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13824 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13825 else
13826 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13827 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13828 fi
13829 ;;
13830
13831 uts4*)
13832 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13833 hardcode_libdir_flag_spec='-L$libdir'
13834 hardcode_shlibpath_var=no
13835 ;;
13836
13837 *)
13838 ld_shlibs=no
13839 ;;
13840 esac
13841
13842 if test x$host_vendor = xsni; then
13843 case $host in
13844 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13845 export_dynamic_flag_spec='${wl}-Blargedynsym'
13846 ;;
13847 esac
13848 fi
13849 fi
13850
13851{ $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13852$as_echo "$ld_shlibs" >&6; }
13853test "$ld_shlibs" = no && can_build_shared=no
13854
13855with_gnu_ld=$with_gnu_ld
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868
13869
13870
13871#
13872# Do we need to explicitly link libc?
13873#
13874case "x$archive_cmds_need_lc" in
13875x|xyes)
13876 # Assume -lc should be added
13877 archive_cmds_need_lc=yes
13878
13879 if test "$enable_shared" = yes && test "$GCC" = yes; then
13880 case $archive_cmds in
13881 *'~'*)
13882 # FIXME: we may have to deal with multi-command sequences.
13883 ;;
13884 '$CC '*)
13885 # Test whether the compiler implicitly links with -lc since on some
13886 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13887 # to ld, don't add -lc before -lgcc.
13888 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13889$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13890 $RM conftest*
13891 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13892
13893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13894 (eval $ac_compile) 2>&5
13895 ac_status=$?
13896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13897 (exit $ac_status); } 2>conftest.err; then
13898 soname=conftest
13899 lib=conftest
13900 libobjs=conftest.$ac_objext
13901 deplibs=
13902 wl=$lt_prog_compiler_wl
13903 pic_flag=$lt_prog_compiler_pic
13904 compiler_flags=-v
13905 linker_flags=-v
13906 verstring=
13907 output_objdir=.
13908 libname=conftest
13909 lt_save_allow_undefined_flag=$allow_undefined_flag
13910 allow_undefined_flag=
13911 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
13912 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13913 ac_status=$?
13914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); }
13916 then
13917 archive_cmds_need_lc=no
13918 else
13919 archive_cmds_need_lc=yes
13920 fi
13921 allow_undefined_flag=$lt_save_allow_undefined_flag
13922 else
13923 cat conftest.err 1>&5
13924 fi
13925 $RM conftest*
13926 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13927$as_echo "$archive_cmds_need_lc" >&6; }
13928 ;;
13929 esac
13930 fi
13931 ;;
13932esac
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088
14089
14090 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14091$as_echo_n "checking dynamic linker characteristics... " >&6; }
14092
14093if test "$GCC" = yes; then
14094 case $host_os in
14095 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
14096 *) lt_awk_arg="/^libraries:/" ;;
14097 esac
14098 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14099 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
14100 # if the path contains ";" then we assume it to be the separator
14101 # otherwise default to the standard path separator (i.e. ":") - it is
14102 # assumed that no part of a normal pathname contains ";" but that should
14103 # okay in the real world where ";" in dirpaths is itself problematic.
14104 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
14105 else
14106 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14107 fi
14108 # Ok, now we have the path, separated by spaces, we can step through it
14109 # and add multilib dir if necessary.
14110 lt_tmp_lt_search_path_spec=
14111 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14112 for lt_sys_path in $lt_search_path_spec; do
14113 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
14114 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
14115 else
14116 test -d "$lt_sys_path" && \
14117 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14118 fi
14119 done
14120 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
14121BEGIN {RS=" "; FS="/|\n";} {
14122 lt_foo="";
14123 lt_count=0;
14124 for (lt_i = NF; lt_i > 0; lt_i--) {
14125 if ($lt_i != "" && $lt_i != ".") {
14126 if ($lt_i == "..") {
14127 lt_count++;
14128 } else {
14129 if (lt_count == 0) {
14130 lt_foo="/" $lt_i lt_foo;
14131 } else {
14132 lt_count--;
14133 }
14134 }
14135 }
14136 }
14137 if (lt_foo != "") { lt_freq[lt_foo]++; }
14138 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14139}'`
14140 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
14141else
14142 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14143fi
14144library_names_spec=
14145libname_spec='lib$name'
14146soname_spec=
14147shrext_cmds=".so"
14148postinstall_cmds=
14149postuninstall_cmds=
14150finish_cmds=
14151finish_eval=
14152shlibpath_var=
14153shlibpath_overrides_runpath=unknown
14154version_type=none
14155dynamic_linker="$host_os ld.so"
14156sys_lib_dlsearch_path_spec="/lib /usr/lib"
14157need_lib_prefix=unknown
14158hardcode_into_libs=no
14159
14160# when you set need_version to no, make sure it does not cause -set_version
14161# flags to be left without arguments
14162need_version=unknown
14163
14164case $host_os in
14165aix3*)
14166 version_type=linux
14167 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14168 shlibpath_var=LIBPATH
14169
14170 # AIX 3 has no versioning support, so we append a major version to the name.
14171 soname_spec='${libname}${release}${shared_ext}$major'
14172 ;;
14173
14174aix[4-9]*)
14175 version_type=linux
14176 need_lib_prefix=no
14177 need_version=no
14178 hardcode_into_libs=yes
14179 if test "$host_cpu" = ia64; then
14180 # AIX 5 supports IA64
14181 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14182 shlibpath_var=LD_LIBRARY_PATH
14183 else
14184 # With GCC up to 2.95.x, collect2 would create an import file
14185 # for dependence libraries. The import file would start with
14186 # the line `#! .'. This would cause the generated library to
14187 # depend on `.', always an invalid library. This was fixed in
14188 # development snapshots of GCC prior to 3.0.
14189 case $host_os in
14190 aix4 | aix4.[01] | aix4.[01].*)
14191 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14192 echo ' yes '
14193 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14194 :
14195 else
14196 can_build_shared=no
14197 fi
14198 ;;
14199 esac
14200 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14201 # soname into executable. Probably we can add versioning support to
14202 # collect2, so additional links can be useful in future.
14203 if test "$aix_use_runtimelinking" = yes; then
14204 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14205 # instead of lib<name>.a to let people know that these are not
14206 # typical AIX shared libraries.
14207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14208 else
14209 # We preserve .a as extension for shared libraries through AIX4.2
14210 # and later when we are not doing run time linking.
14211 library_names_spec='${libname}${release}.a $libname.a'
14212 soname_spec='${libname}${release}${shared_ext}$major'
14213 fi
14214 shlibpath_var=LIBPATH
14215 fi
14216 ;;
14217
14218amigaos*)
14219 case $host_cpu in
14220 powerpc)
14221 # Since July 2007 AmigaOS4 officially supports .so libraries.
14222 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14224 ;;
14225 m68k)
14226 library_names_spec='$libname.ixlibrary $libname.a'
14227 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14228 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'
14229 ;;
14230 esac
14231 ;;
14232
14233beos*)
14234 library_names_spec='${libname}${shared_ext}'
14235 dynamic_linker="$host_os ld.so"
14236 shlibpath_var=LIBRARY_PATH
14237 ;;
14238
14239bsdi[45]*)
14240 version_type=linux
14241 need_version=no
14242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14243 soname_spec='${libname}${release}${shared_ext}$major'
14244 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14245 shlibpath_var=LD_LIBRARY_PATH
14246 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14247 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14248 # the default ld.so.conf also contains /usr/contrib/lib and
14249 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14250 # libtool to hard-code these into programs
14251 ;;
14252
14253cygwin* | mingw* | pw32* | cegcc*)
14254 version_type=windows
14255 shrext_cmds=".dll"
14256 need_version=no
14257 need_lib_prefix=no
14258
14259 case $GCC,$host_os in
14260 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14261 library_names_spec='$libname.dll.a'
14262 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14263 postinstall_cmds='base_file=`basename \${file}`~
14264 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14265 dldir=$destdir/`dirname \$dlpath`~
14266 test -d \$dldir || mkdir -p \$dldir~
14267 $install_prog $dir/$dlname \$dldir/$dlname~
14268 chmod a+x \$dldir/$dlname~
14269 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14270 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14271 fi'
14272 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14273 dlpath=$dir/\$dldll~
14274 $RM \$dlpath'
14275 shlibpath_overrides_runpath=yes
14276
14277 case $host_os in
14278 cygwin*)
14279 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14280 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14281 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14282 ;;
14283 mingw* | cegcc*)
14284 # MinGW DLLs use traditional 'lib' prefix
14285 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14286 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14287 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14288 # It is most probably a Windows format PATH printed by
14289 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14290 # path with ; separators, and with drive letters. We can handle the
14291 # drive letters (cygwin fileutils understands them), so leave them,
14292 # especially as we might pass files found there to a mingw objdump,
14293 # which wouldn't understand a cygwinified path. Ahh.
14294 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14295 else
14296 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14297 fi
14298 ;;
14299 pw32*)
14300 # pw32 DLLs use 'pw' prefix rather than 'lib'
14301 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14302 ;;
14303 esac
14304 ;;
14305
14306 *)
14307 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14308 ;;
14309 esac
14310 dynamic_linker='Win32 ld.exe'
14311 # FIXME: first we should search . and the directory the executable is in
14312 shlibpath_var=PATH
14313 ;;
14314
14315darwin* | rhapsody*)
14316 dynamic_linker="$host_os dyld"
14317 version_type=darwin
14318 need_lib_prefix=no
14319 need_version=no
14320 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14321 soname_spec='${libname}${release}${major}$shared_ext'
14322 shlibpath_overrides_runpath=yes
14323 shlibpath_var=DYLD_LIBRARY_PATH
14324 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14325
14326 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14327 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14328 ;;
14329
14330dgux*)
14331 version_type=linux
14332 need_lib_prefix=no
14333 need_version=no
14334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14335 soname_spec='${libname}${release}${shared_ext}$major'
14336 shlibpath_var=LD_LIBRARY_PATH
14337 ;;
14338
14339freebsd1*)
14340 dynamic_linker=no
14341 ;;
14342
14343freebsd* | dragonfly*)
14344 # DragonFly does not have aout. When/if they implement a new
14345 # versioning mechanism, adjust this.
14346 if test -x /usr/bin/objformat; then
14347 objformat=`/usr/bin/objformat`
14348 else
14349 case $host_os in
14350 freebsd[123]*) objformat=aout ;;
14351 *) objformat=elf ;;
14352 esac
14353 fi
14354 version_type=freebsd-$objformat
14355 case $version_type in
14356 freebsd-elf*)
14357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14358 need_version=no
14359 need_lib_prefix=no
14360 ;;
14361 freebsd-*)
14362 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14363 need_version=yes
14364 ;;
14365 esac
14366 shlibpath_var=LD_LIBRARY_PATH
14367 case $host_os in
14368 freebsd2*)
14369 shlibpath_overrides_runpath=yes
14370 ;;
14371 freebsd3.[01]* | freebsdelf3.[01]*)
14372 shlibpath_overrides_runpath=yes
14373 hardcode_into_libs=yes
14374 ;;
14375 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14376 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14377 shlibpath_overrides_runpath=no
14378 hardcode_into_libs=yes
14379 ;;
14380 *) # from 4.6 on, and DragonFly
14381 shlibpath_overrides_runpath=yes
14382 hardcode_into_libs=yes
14383 ;;
14384 esac
14385 ;;
14386
14387gnu*)
14388 version_type=linux
14389 need_lib_prefix=no
14390 need_version=no
14391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14392 soname_spec='${libname}${release}${shared_ext}$major'
14393 shlibpath_var=LD_LIBRARY_PATH
14394 hardcode_into_libs=yes
14395 ;;
14396
14397hpux9* | hpux10* | hpux11*)
14398 # Give a soname corresponding to the major version so that dld.sl refuses to
14399 # link against other versions.
14400 version_type=sunos
14401 need_lib_prefix=no
14402 need_version=no
14403 case $host_cpu in
14404 ia64*)
14405 shrext_cmds='.so'
14406 hardcode_into_libs=yes
14407 dynamic_linker="$host_os dld.so"
14408 shlibpath_var=LD_LIBRARY_PATH
14409 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14411 soname_spec='${libname}${release}${shared_ext}$major'
14412 if test "X$HPUX_IA64_MODE" = X32; then
14413 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14414 else
14415 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14416 fi
14417 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14418 ;;
14419 hppa*64*)
14420 shrext_cmds='.sl'
14421 hardcode_into_libs=yes
14422 dynamic_linker="$host_os dld.sl"
14423 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14424 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14426 soname_spec='${libname}${release}${shared_ext}$major'
14427 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14428 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14429 ;;
14430 *)
14431 shrext_cmds='.sl'
14432 dynamic_linker="$host_os dld.sl"
14433 shlibpath_var=SHLIB_PATH
14434 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14436 soname_spec='${libname}${release}${shared_ext}$major'
14437 ;;
14438 esac
14439 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14440 postinstall_cmds='chmod 555 $lib'
14441 ;;
14442
14443interix[3-9]*)
14444 version_type=linux
14445 need_lib_prefix=no
14446 need_version=no
14447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14448 soname_spec='${libname}${release}${shared_ext}$major'
14449 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14450 shlibpath_var=LD_LIBRARY_PATH
14451 shlibpath_overrides_runpath=no
14452 hardcode_into_libs=yes
14453 ;;
14454
14455irix5* | irix6* | nonstopux*)
14456 case $host_os in
14457 nonstopux*) version_type=nonstopux ;;
14458 *)
14459 if test "$lt_cv_prog_gnu_ld" = yes; then
14460 version_type=linux
14461 else
14462 version_type=irix
14463 fi ;;
14464 esac
14465 need_lib_prefix=no
14466 need_version=no
14467 soname_spec='${libname}${release}${shared_ext}$major'
14468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14469 case $host_os in
14470 irix5* | nonstopux*)
14471 libsuff= shlibsuff=
14472 ;;
14473 *)
14474 case $LD in # libtool.m4 will add one of these switches to LD
14475 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14476 libsuff= shlibsuff= libmagic=32-bit;;
14477 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14478 libsuff=32 shlibsuff=N32 libmagic=N32;;
14479 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14480 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14481 *) libsuff= shlibsuff= libmagic=never-match;;
14482 esac
14483 ;;
14484 esac
14485 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14486 shlibpath_overrides_runpath=no
14487 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14488 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14489 hardcode_into_libs=yes
14490 ;;
14491
14492# No shared lib support for Linux oldld, aout, or coff.
14493linux*oldld* | linux*aout* | linux*coff*)
14494 dynamic_linker=no
14495 ;;
14496
14497# This must be Linux ELF.
14498linux* | k*bsd*-gnu)
14499 version_type=linux
14500 need_lib_prefix=no
14501 need_version=no
14502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14503 soname_spec='${libname}${release}${shared_ext}$major'
14504 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14505 shlibpath_var=LD_LIBRARY_PATH
14506 shlibpath_overrides_runpath=no
14507 # Some binutils ld are patched to set DT_RUNPATH
14508 save_LDFLAGS=$LDFLAGS
14509 save_libdir=$libdir
14510 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14511 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14512 cat >conftest.$ac_ext <<_ACEOF
14513/* confdefs.h. */
14514_ACEOF
14515cat confdefs.h >>conftest.$ac_ext
14516cat >>conftest.$ac_ext <<_ACEOF
14517/* end confdefs.h. */
14518
14519int
14520main ()
14521{
14522
14523 ;
14524 return 0;
14525}
14526_ACEOF
14527rm -f conftest.$ac_objext conftest$ac_exeext
14528if { (ac_try="$ac_link"
14529case "(($ac_try" in
14530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531 *) ac_try_echo=$ac_try;;
14532esac
14533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14534$as_echo "$ac_try_echo") >&5
14535 (eval "$ac_link") 2>conftest.er1
14536 ac_status=$?
14537 grep -v '^ *+' conftest.er1 >conftest.err
14538 rm -f conftest.er1
14539 cat conftest.err >&5
14540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14541 (exit $ac_status); } && {
14542 test -z "$ac_c_werror_flag" ||
14543 test ! -s conftest.err
14544 } && test -s conftest$ac_exeext && {
14545 test "$cross_compiling" = yes ||
14546 $as_test_x conftest$ac_exeext
14547 }; then
14548 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
14549 shlibpath_overrides_runpath=yes
14550fi
14551
14552else
14553 $as_echo "$as_me: failed program was:" >&5
14554sed 's/^/| /' conftest.$ac_ext >&5
14555
14556
14557fi
14558
14559rm -rf conftest.dSYM
14560rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14561 conftest$ac_exeext conftest.$ac_ext
14562 LDFLAGS=$save_LDFLAGS
14563 libdir=$save_libdir
14564
14565 # This implies no fast_install, which is unacceptable.
14566 # Some rework will be needed to allow for fast_install
14567 # before this can be enabled.
14568 hardcode_into_libs=yes
14569
14570 # Add ABI-specific directories to the system library path.
14571 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14572
14573 # Append ld.so.conf contents to the search path
14574 if test -f /etc/ld.so.conf; then
14575 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' ' '`
14576 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14577 fi
14578
14579 # We used to test for /lib/ld.so.1 and disable shared libraries on
14580 # powerpc, because MkLinux only supported shared libraries with the
14581 # GNU dynamic linker. Since this was broken with cross compilers,
14582 # most powerpc-linux boxes support dynamic linking these days and
14583 # people can always --disable-shared, the test was removed, and we
14584 # assume the GNU/Linux dynamic linker is in use.
14585 dynamic_linker='GNU/Linux ld.so'
14586 ;;
14587
14588netbsd*)
14589 version_type=sunos
14590 need_lib_prefix=no
14591 need_version=no
14592 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14594 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14595 dynamic_linker='NetBSD (a.out) ld.so'
14596 else
14597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14598 soname_spec='${libname}${release}${shared_ext}$major'
14599 dynamic_linker='NetBSD ld.elf_so'
14600 fi
14601 shlibpath_var=LD_LIBRARY_PATH
14602 shlibpath_overrides_runpath=yes
14603 hardcode_into_libs=yes
14604 ;;
14605
14606newsos6)
14607 version_type=linux
14608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14609 shlibpath_var=LD_LIBRARY_PATH
14610 shlibpath_overrides_runpath=yes
14611 ;;
14612
14613*nto* | *qnx*)
14614 version_type=qnx
14615 need_lib_prefix=no
14616 need_version=no
14617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14618 soname_spec='${libname}${release}${shared_ext}$major'
14619 shlibpath_var=LD_LIBRARY_PATH
14620 shlibpath_overrides_runpath=no
14621 hardcode_into_libs=yes
14622 dynamic_linker='ldqnx.so'
14623 ;;
14624
14625openbsd*)
14626 version_type=sunos
14627 sys_lib_dlsearch_path_spec="/usr/lib"
14628 need_lib_prefix=no
14629 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14630 case $host_os in
14631 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14632 *) need_version=no ;;
14633 esac
14634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14635 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14636 shlibpath_var=LD_LIBRARY_PATH
14637 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14638 case $host_os in
14639 openbsd2.[89] | openbsd2.[89].*)
14640 shlibpath_overrides_runpath=no
14641 ;;
14642 *)
14643 shlibpath_overrides_runpath=yes
14644 ;;
14645 esac
14646 else
14647 shlibpath_overrides_runpath=yes
14648 fi
14649 ;;
14650
14651os2*)
14652 libname_spec='$name'
14653 shrext_cmds=".dll"
14654 need_lib_prefix=no
14655 library_names_spec='$libname${shared_ext} $libname.a'
14656 dynamic_linker='OS/2 ld.exe'
14657 shlibpath_var=LIBPATH
14658 ;;
14659
14660osf3* | osf4* | osf5*)
14661 version_type=osf
14662 need_lib_prefix=no
14663 need_version=no
14664 soname_spec='${libname}${release}${shared_ext}$major'
14665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14666 shlibpath_var=LD_LIBRARY_PATH
14667 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14668 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14669 ;;
14670
14671rdos*)
14672 dynamic_linker=no
14673 ;;
14674
14675solaris*)
14676 version_type=linux
14677 need_lib_prefix=no
14678 need_version=no
14679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14680 soname_spec='${libname}${release}${shared_ext}$major'
14681 shlibpath_var=LD_LIBRARY_PATH
14682 shlibpath_overrides_runpath=yes
14683 hardcode_into_libs=yes
14684 # ldd complains unless libraries are executable
14685 postinstall_cmds='chmod +x $lib'
14686 ;;
14687
14688sunos4*)
14689 version_type=sunos
14690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14691 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14692 shlibpath_var=LD_LIBRARY_PATH
14693 shlibpath_overrides_runpath=yes
14694 if test "$with_gnu_ld" = yes; then
14695 need_lib_prefix=no
14696 fi
14697 need_version=yes
14698 ;;
14699
14700sysv4 | sysv4.3*)
14701 version_type=linux
14702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14703 soname_spec='${libname}${release}${shared_ext}$major'
14704 shlibpath_var=LD_LIBRARY_PATH
14705 case $host_vendor in
14706 sni)
14707 shlibpath_overrides_runpath=no
14708 need_lib_prefix=no
14709 runpath_var=LD_RUN_PATH
14710 ;;
14711 siemens)
14712 need_lib_prefix=no
14713 ;;
14714 motorola)
14715 need_lib_prefix=no
14716 need_version=no
14717 shlibpath_overrides_runpath=no
14718 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14719 ;;
14720 esac
14721 ;;
14722
14723sysv4*MP*)
14724 if test -d /usr/nec ;then
14725 version_type=linux
14726 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14727 soname_spec='$libname${shared_ext}.$major'
14728 shlibpath_var=LD_LIBRARY_PATH
14729 fi
14730 ;;
14731
14732sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14733 version_type=freebsd-elf
14734 need_lib_prefix=no
14735 need_version=no
14736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14737 soname_spec='${libname}${release}${shared_ext}$major'
14738 shlibpath_var=LD_LIBRARY_PATH
14739 shlibpath_overrides_runpath=yes
14740 hardcode_into_libs=yes
14741 if test "$with_gnu_ld" = yes; then
14742 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14743 else
14744 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14745 case $host_os in
14746 sco3.2v5*)
14747 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14748 ;;
14749 esac
14750 fi
14751 sys_lib_dlsearch_path_spec='/usr/lib'
14752 ;;
14753
14754tpf*)
14755 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14756 version_type=linux
14757 need_lib_prefix=no
14758 need_version=no
14759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14760 shlibpath_var=LD_LIBRARY_PATH
14761 shlibpath_overrides_runpath=no
14762 hardcode_into_libs=yes
14763 ;;
14764
14765uts4*)
14766 version_type=linux
14767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14768 soname_spec='${libname}${release}${shared_ext}$major'
14769 shlibpath_var=LD_LIBRARY_PATH
14770 ;;
14771
14772*)
14773 dynamic_linker=no
14774 ;;
14775esac
14776{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14777$as_echo "$dynamic_linker" >&6; }
14778test "$dynamic_linker" = no && can_build_shared=no
14779
14780variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14781if test "$GCC" = yes; then
14782 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14783fi
14784
14785if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14786 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14787fi
14788if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14789 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14790fi
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842
14843
14844
14845
14846
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874
14875
14876
14877
14878 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14879$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14880hardcode_action=
14881if test -n "$hardcode_libdir_flag_spec" ||
14882 test -n "$runpath_var" ||
14883 test "X$hardcode_automatic" = "Xyes" ; then
14884
14885 # We can hardcode non-existent directories.
14886 if test "$hardcode_direct" != no &&
14887 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14888 # have to relink, otherwise we might link with an installed library
14889 # when we should be linking with a yet-to-be-installed one
14890 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14891 test "$hardcode_minus_L" != no; then
14892 # Linking always hardcodes the temporary library directory.
14893 hardcode_action=relink
14894 else
14895 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14896 hardcode_action=immediate
14897 fi
14898else
14899 # We cannot hardcode anything, or else we can only hardcode existing
14900 # directories.
14901 hardcode_action=unsupported
14902fi
14903{ $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
14904$as_echo "$hardcode_action" >&6; }
14905
14906if test "$hardcode_action" = relink ||
14907 test "$inherit_rpath" = yes; then
14908 # Fast installation is not supported
14909 enable_fast_install=no
14910elif test "$shlibpath_overrides_runpath" = yes ||
14911 test "$enable_shared" = no; then
14912 # Fast installation is not necessary
14913 enable_fast_install=needless
14914fi
14915
14916
14917
14918
14919
14920
14921 if test "x$enable_dlopen" != xyes; then
14922 enable_dlopen=unknown
14923 enable_dlopen_self=unknown
14924 enable_dlopen_self_static=unknown
14925else
14926 lt_cv_dlopen=no
14927 lt_cv_dlopen_libs=
14928
14929 case $host_os in
14930 beos*)
14931 lt_cv_dlopen="load_add_on"
14932 lt_cv_dlopen_libs=
14933 lt_cv_dlopen_self=yes
14934 ;;
14935
14936 mingw* | pw32* | cegcc*)
14937 lt_cv_dlopen="LoadLibrary"
14938 lt_cv_dlopen_libs=
14939 ;;
14940
14941 cygwin*)
14942 lt_cv_dlopen="dlopen"
14943 lt_cv_dlopen_libs=
14944 ;;
14945
14946 darwin*)
14947 # if libdl is installed we need to link against it
14948 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14949$as_echo_n "checking for dlopen in -ldl... " >&6; }
14950if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14951 $as_echo_n "(cached) " >&6
14952else
14953 ac_check_lib_save_LIBS=$LIBS
14954LIBS="-ldl $LIBS"
14955cat >conftest.$ac_ext <<_ACEOF
14956/* confdefs.h. */
14957_ACEOF
14958cat confdefs.h >>conftest.$ac_ext
14959cat >>conftest.$ac_ext <<_ACEOF
14960/* end confdefs.h. */
14961
14962/* Override any GCC internal prototype to avoid an error.
14963 Use char because int might match the return type of a GCC
14964 builtin and then its argument prototype would still apply. */
14965#ifdef __cplusplus
14966extern "C"
14967#endif
14968char dlopen ();
14969int
14970main ()
14971{
14972return dlopen ();
14973 ;
14974 return 0;
14975}
14976_ACEOF
14977rm -f conftest.$ac_objext conftest$ac_exeext
14978if { (ac_try="$ac_link"
14979case "(($ac_try" in
14980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14981 *) ac_try_echo=$ac_try;;
14982esac
14983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14984$as_echo "$ac_try_echo") >&5
14985 (eval "$ac_link") 2>conftest.er1
14986 ac_status=$?
14987 grep -v '^ *+' conftest.er1 >conftest.err
14988 rm -f conftest.er1
14989 cat conftest.err >&5
14990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 (exit $ac_status); } && {
14992 test -z "$ac_c_werror_flag" ||
14993 test ! -s conftest.err
14994 } && test -s conftest$ac_exeext && {
14995 test "$cross_compiling" = yes ||
14996 $as_test_x conftest$ac_exeext
14997 }; then
14998 ac_cv_lib_dl_dlopen=yes
14999else
15000 $as_echo "$as_me: failed program was:" >&5
15001sed 's/^/| /' conftest.$ac_ext >&5
15002
15003 ac_cv_lib_dl_dlopen=no
15004fi
15005
15006rm -rf conftest.dSYM
15007rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15008 conftest$ac_exeext conftest.$ac_ext
15009LIBS=$ac_check_lib_save_LIBS
15010fi
15011{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15012$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15013if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
15014 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15015else
15016
15017 lt_cv_dlopen="dyld"
15018 lt_cv_dlopen_libs=
15019 lt_cv_dlopen_self=yes
15020
15021fi
15022
15023 ;;
15024
15025 *)
15026 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
15027$as_echo_n "checking for shl_load... " >&6; }
15028if test "${ac_cv_func_shl_load+set}" = set; then
15029 $as_echo_n "(cached) " >&6
15030else
15031 cat >conftest.$ac_ext <<_ACEOF
15032/* confdefs.h. */
15033_ACEOF
15034cat confdefs.h >>conftest.$ac_ext
15035cat >>conftest.$ac_ext <<_ACEOF
15036/* end confdefs.h. */
15037/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
15038 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15039#define shl_load innocuous_shl_load
15040
15041/* System header to define __stub macros and hopefully few prototypes,
15042 which can conflict with char shl_load (); below.
15043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15044 <limits.h> exists even on freestanding compilers. */
15045
15046#ifdef __STDC__
15047# include <limits.h>
15048#else
15049# include <assert.h>
15050#endif
15051
15052#undef shl_load
15053
15054/* Override any GCC internal prototype to avoid an error.
15055 Use char because int might match the return type of a GCC
15056 builtin and then its argument prototype would still apply. */
15057#ifdef __cplusplus
15058extern "C"
15059#endif
15060char shl_load ();
15061/* The GNU C library defines this for functions which it implements
15062 to always fail with ENOSYS. Some functions are actually named
15063 something starting with __ and the normal name is an alias. */
15064#if defined __stub_shl_load || defined __stub___shl_load
15065choke me
15066#endif
15067
15068int
15069main ()
15070{
15071return shl_load ();
15072 ;
15073 return 0;
15074}
15075_ACEOF
15076rm -f conftest.$ac_objext conftest$ac_exeext
15077if { (ac_try="$ac_link"
15078case "(($ac_try" in
15079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15080 *) ac_try_echo=$ac_try;;
15081esac
15082eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15083$as_echo "$ac_try_echo") >&5
15084 (eval "$ac_link") 2>conftest.er1
15085 ac_status=$?
15086 grep -v '^ *+' conftest.er1 >conftest.err
15087 rm -f conftest.er1
15088 cat conftest.err >&5
15089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 (exit $ac_status); } && {
15091 test -z "$ac_c_werror_flag" ||
15092 test ! -s conftest.err
15093 } && test -s conftest$ac_exeext && {
15094 test "$cross_compiling" = yes ||
15095 $as_test_x conftest$ac_exeext
15096 }; then
15097 ac_cv_func_shl_load=yes
15098else
15099 $as_echo "$as_me: failed program was:" >&5
15100sed 's/^/| /' conftest.$ac_ext >&5
15101
15102 ac_cv_func_shl_load=no
15103fi
15104
15105rm -rf conftest.dSYM
15106rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15107 conftest$ac_exeext conftest.$ac_ext
15108fi
15109{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
15110$as_echo "$ac_cv_func_shl_load" >&6; }
15111if test "x$ac_cv_func_shl_load" = x""yes; then
15112 lt_cv_dlopen="shl_load"
15113else
15114 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
15115$as_echo_n "checking for shl_load in -ldld... " >&6; }
15116if test "${ac_cv_lib_dld_shl_load+set}" = set; then
15117 $as_echo_n "(cached) " >&6
15118else
15119 ac_check_lib_save_LIBS=$LIBS
15120LIBS="-ldld $LIBS"
15121cat >conftest.$ac_ext <<_ACEOF
15122/* confdefs.h. */
15123_ACEOF
15124cat confdefs.h >>conftest.$ac_ext
15125cat >>conftest.$ac_ext <<_ACEOF
15126/* end confdefs.h. */
15127
15128/* Override any GCC internal prototype to avoid an error.
15129 Use char because int might match the return type of a GCC
15130 builtin and then its argument prototype would still apply. */
15131#ifdef __cplusplus
15132extern "C"
15133#endif
15134char shl_load ();
15135int
15136main ()
15137{
15138return shl_load ();
15139 ;
15140 return 0;
15141}
15142_ACEOF
15143rm -f conftest.$ac_objext conftest$ac_exeext
15144if { (ac_try="$ac_link"
15145case "(($ac_try" in
15146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147 *) ac_try_echo=$ac_try;;
15148esac
15149eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15150$as_echo "$ac_try_echo") >&5
15151 (eval "$ac_link") 2>conftest.er1
15152 ac_status=$?
15153 grep -v '^ *+' conftest.er1 >conftest.err
15154 rm -f conftest.er1
15155 cat conftest.err >&5
15156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); } && {
15158 test -z "$ac_c_werror_flag" ||
15159 test ! -s conftest.err
15160 } && test -s conftest$ac_exeext && {
15161 test "$cross_compiling" = yes ||
15162 $as_test_x conftest$ac_exeext
15163 }; then
15164 ac_cv_lib_dld_shl_load=yes
15165else
15166 $as_echo "$as_me: failed program was:" >&5
15167sed 's/^/| /' conftest.$ac_ext >&5
15168
15169 ac_cv_lib_dld_shl_load=no
15170fi
15171
15172rm -rf conftest.dSYM
15173rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15174 conftest$ac_exeext conftest.$ac_ext
15175LIBS=$ac_check_lib_save_LIBS
15176fi
15177{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
15178$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15179if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
15180 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
15181else
15182 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
15183$as_echo_n "checking for dlopen... " >&6; }
15184if test "${ac_cv_func_dlopen+set}" = set; then
15185 $as_echo_n "(cached) " >&6
15186else
15187 cat >conftest.$ac_ext <<_ACEOF
15188/* confdefs.h. */
15189_ACEOF
15190cat confdefs.h >>conftest.$ac_ext
15191cat >>conftest.$ac_ext <<_ACEOF
15192/* end confdefs.h. */
15193/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
15194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15195#define dlopen innocuous_dlopen
15196
15197/* System header to define __stub macros and hopefully few prototypes,
15198 which can conflict with char dlopen (); below.
15199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15200 <limits.h> exists even on freestanding compilers. */
15201
15202#ifdef __STDC__
15203# include <limits.h>
15204#else
15205# include <assert.h>
15206#endif
15207
15208#undef dlopen
15209
15210/* Override any GCC internal prototype to avoid an error.
15211 Use char because int might match the return type of a GCC
15212 builtin and then its argument prototype would still apply. */
15213#ifdef __cplusplus
15214extern "C"
15215#endif
15216char dlopen ();
15217/* The GNU C library defines this for functions which it implements
15218 to always fail with ENOSYS. Some functions are actually named
15219 something starting with __ and the normal name is an alias. */
15220#if defined __stub_dlopen || defined __stub___dlopen
15221choke me
15222#endif
15223
15224int
15225main ()
15226{
15227return dlopen ();
15228 ;
15229 return 0;
15230}
15231_ACEOF
15232rm -f conftest.$ac_objext conftest$ac_exeext
15233if { (ac_try="$ac_link"
15234case "(($ac_try" in
15235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15236 *) ac_try_echo=$ac_try;;
15237esac
15238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15239$as_echo "$ac_try_echo") >&5
15240 (eval "$ac_link") 2>conftest.er1
15241 ac_status=$?
15242 grep -v '^ *+' conftest.er1 >conftest.err
15243 rm -f conftest.er1
15244 cat conftest.err >&5
15245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); } && {
15247 test -z "$ac_c_werror_flag" ||
15248 test ! -s conftest.err
15249 } && test -s conftest$ac_exeext && {
15250 test "$cross_compiling" = yes ||
15251 $as_test_x conftest$ac_exeext
15252 }; then
15253 ac_cv_func_dlopen=yes
15254else
15255 $as_echo "$as_me: failed program was:" >&5
15256sed 's/^/| /' conftest.$ac_ext >&5
15257
15258 ac_cv_func_dlopen=no
15259fi
15260
15261rm -rf conftest.dSYM
15262rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15263 conftest$ac_exeext conftest.$ac_ext
15264fi
15265{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
15266$as_echo "$ac_cv_func_dlopen" >&6; }
15267if test "x$ac_cv_func_dlopen" = x""yes; then
15268 lt_cv_dlopen="dlopen"
15269else
15270 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
15271$as_echo_n "checking for dlopen in -ldl... " >&6; }
15272if test "${ac_cv_lib_dl_dlopen+set}" = set; then
15273 $as_echo_n "(cached) " >&6
15274else
15275 ac_check_lib_save_LIBS=$LIBS
15276LIBS="-ldl $LIBS"
15277cat >conftest.$ac_ext <<_ACEOF
15278/* confdefs.h. */
15279_ACEOF
15280cat confdefs.h >>conftest.$ac_ext
15281cat >>conftest.$ac_ext <<_ACEOF
15282/* end confdefs.h. */
15283
15284/* Override any GCC internal prototype to avoid an error.
15285 Use char because int might match the return type of a GCC
15286 builtin and then its argument prototype would still apply. */
15287#ifdef __cplusplus
15288extern "C"
15289#endif
15290char dlopen ();
15291int
15292main ()
15293{
15294return dlopen ();
15295 ;
15296 return 0;
15297}
15298_ACEOF
15299rm -f conftest.$ac_objext conftest$ac_exeext
15300if { (ac_try="$ac_link"
15301case "(($ac_try" in
15302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15303 *) ac_try_echo=$ac_try;;
15304esac
15305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15306$as_echo "$ac_try_echo") >&5
15307 (eval "$ac_link") 2>conftest.er1
15308 ac_status=$?
15309 grep -v '^ *+' conftest.er1 >conftest.err
15310 rm -f conftest.er1
15311 cat conftest.err >&5
15312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); } && {
15314 test -z "$ac_c_werror_flag" ||
15315 test ! -s conftest.err
15316 } && test -s conftest$ac_exeext && {
15317 test "$cross_compiling" = yes ||
15318 $as_test_x conftest$ac_exeext
15319 }; then
15320 ac_cv_lib_dl_dlopen=yes
15321else
15322 $as_echo "$as_me: failed program was:" >&5
15323sed 's/^/| /' conftest.$ac_ext >&5
15324
15325 ac_cv_lib_dl_dlopen=no
15326fi
15327
15328rm -rf conftest.dSYM
15329rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15330 conftest$ac_exeext conftest.$ac_ext
15331LIBS=$ac_check_lib_save_LIBS
15332fi
15333{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
15334$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15335if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
15336 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
15337else
15338 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
15339$as_echo_n "checking for dlopen in -lsvld... " >&6; }
15340if test "${ac_cv_lib_svld_dlopen+set}" = set; then
15341 $as_echo_n "(cached) " >&6
15342else
15343 ac_check_lib_save_LIBS=$LIBS
15344LIBS="-lsvld $LIBS"
15345cat >conftest.$ac_ext <<_ACEOF
15346/* confdefs.h. */
15347_ACEOF
15348cat confdefs.h >>conftest.$ac_ext
15349cat >>conftest.$ac_ext <<_ACEOF
15350/* end confdefs.h. */
15351
15352/* Override any GCC internal prototype to avoid an error.
15353 Use char because int might match the return type of a GCC
15354 builtin and then its argument prototype would still apply. */
15355#ifdef __cplusplus
15356extern "C"
15357#endif
15358char dlopen ();
15359int
15360main ()
15361{
15362return dlopen ();
15363 ;
15364 return 0;
15365}
15366_ACEOF
15367rm -f conftest.$ac_objext conftest$ac_exeext
15368if { (ac_try="$ac_link"
15369case "(($ac_try" in
15370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15371 *) ac_try_echo=$ac_try;;
15372esac
15373eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15374$as_echo "$ac_try_echo") >&5
15375 (eval "$ac_link") 2>conftest.er1
15376 ac_status=$?
15377 grep -v '^ *+' conftest.er1 >conftest.err
15378 rm -f conftest.er1
15379 cat conftest.err >&5
15380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15381 (exit $ac_status); } && {
15382 test -z "$ac_c_werror_flag" ||
15383 test ! -s conftest.err
15384 } && test -s conftest$ac_exeext && {
15385 test "$cross_compiling" = yes ||
15386 $as_test_x conftest$ac_exeext
15387 }; then
15388 ac_cv_lib_svld_dlopen=yes
15389else
15390 $as_echo "$as_me: failed program was:" >&5
15391sed 's/^/| /' conftest.$ac_ext >&5
15392
15393 ac_cv_lib_svld_dlopen=no
15394fi
15395
15396rm -rf conftest.dSYM
15397rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15398 conftest$ac_exeext conftest.$ac_ext
15399LIBS=$ac_check_lib_save_LIBS
15400fi
15401{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
15402$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15403if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
15404 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
15405else
15406 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
15407$as_echo_n "checking for dld_link in -ldld... " >&6; }
15408if test "${ac_cv_lib_dld_dld_link+set}" = set; then
15409 $as_echo_n "(cached) " >&6
15410else
15411 ac_check_lib_save_LIBS=$LIBS
15412LIBS="-ldld $LIBS"
15413cat >conftest.$ac_ext <<_ACEOF
15414/* confdefs.h. */
15415_ACEOF
15416cat confdefs.h >>conftest.$ac_ext
15417cat >>conftest.$ac_ext <<_ACEOF
15418/* end confdefs.h. */
15419
15420/* Override any GCC internal prototype to avoid an error.
15421 Use char because int might match the return type of a GCC
15422 builtin and then its argument prototype would still apply. */
15423#ifdef __cplusplus
15424extern "C"
15425#endif
15426char dld_link ();
15427int
15428main ()
15429{
15430return dld_link ();
15431 ;
15432 return 0;
15433}
15434_ACEOF
15435rm -f conftest.$ac_objext conftest$ac_exeext
15436if { (ac_try="$ac_link"
15437case "(($ac_try" in
15438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15439 *) ac_try_echo=$ac_try;;
15440esac
15441eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15442$as_echo "$ac_try_echo") >&5
15443 (eval "$ac_link") 2>conftest.er1
15444 ac_status=$?
15445 grep -v '^ *+' conftest.er1 >conftest.err
15446 rm -f conftest.er1
15447 cat conftest.err >&5
15448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); } && {
15450 test -z "$ac_c_werror_flag" ||
15451 test ! -s conftest.err
15452 } && test -s conftest$ac_exeext && {
15453 test "$cross_compiling" = yes ||
15454 $as_test_x conftest$ac_exeext
15455 }; then
15456 ac_cv_lib_dld_dld_link=yes
15457else
15458 $as_echo "$as_me: failed program was:" >&5
15459sed 's/^/| /' conftest.$ac_ext >&5
15460
15461 ac_cv_lib_dld_dld_link=no
15462fi
15463
15464rm -rf conftest.dSYM
15465rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15466 conftest$ac_exeext conftest.$ac_ext
15467LIBS=$ac_check_lib_save_LIBS
15468fi
15469{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
15470$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15471if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
15472 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
15473fi
15474
15475
15476fi
15477
15478
15479fi
15480
15481
15482fi
15483
15484
15485fi
15486
15487
15488fi
15489
15490 ;;
15491 esac
15492
15493 if test "x$lt_cv_dlopen" != xno; then
15494 enable_dlopen=yes
15495 else
15496 enable_dlopen=no
15497 fi
15498
15499 case $lt_cv_dlopen in
15500 dlopen)
15501 save_CPPFLAGS="$CPPFLAGS"
15502 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15503
15504 save_LDFLAGS="$LDFLAGS"
15505 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15506
15507 save_LIBS="$LIBS"
15508 LIBS="$lt_cv_dlopen_libs $LIBS"
15509
15510 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
15511$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15512if test "${lt_cv_dlopen_self+set}" = set; then
15513 $as_echo_n "(cached) " >&6
15514else
15515 if test "$cross_compiling" = yes; then :
15516 lt_cv_dlopen_self=cross
15517else
15518 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15519 lt_status=$lt_dlunknown
15520 cat > conftest.$ac_ext <<_LT_EOF
15521#line 15521 "configure"
15522#include "confdefs.h"
15523
15524#if HAVE_DLFCN_H
15525#include <dlfcn.h>
15526#endif
15527
15528#include <stdio.h>
15529
15530#ifdef RTLD_GLOBAL
15531# define LT_DLGLOBAL RTLD_GLOBAL
15532#else
15533# ifdef DL_GLOBAL
15534# define LT_DLGLOBAL DL_GLOBAL
15535# else
15536# define LT_DLGLOBAL 0
15537# endif
15538#endif
15539
15540/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15541 find out it does not work in some platform. */
15542#ifndef LT_DLLAZY_OR_NOW
15543# ifdef RTLD_LAZY
15544# define LT_DLLAZY_OR_NOW RTLD_LAZY
15545# else
15546# ifdef DL_LAZY
15547# define LT_DLLAZY_OR_NOW DL_LAZY
15548# else
15549# ifdef RTLD_NOW
15550# define LT_DLLAZY_OR_NOW RTLD_NOW
15551# else
15552# ifdef DL_NOW
15553# define LT_DLLAZY_OR_NOW DL_NOW
15554# else
15555# define LT_DLLAZY_OR_NOW 0
15556# endif
15557# endif
15558# endif
15559# endif
15560#endif
15561
15562void fnord() { int i=42;}
15563int main ()
15564{
15565 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15566 int status = $lt_dlunknown;
15567
15568 if (self)
15569 {
15570 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15571 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15572 /* dlclose (self); */
15573 }
15574 else
15575 puts (dlerror ());
15576
15577 return status;
15578}
15579_LT_EOF
15580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15581 (eval $ac_link) 2>&5
15582 ac_status=$?
15583 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15585 (./conftest; exit; ) >&5 2>/dev/null
15586 lt_status=$?
15587 case x$lt_status in
15588 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15589 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15590 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15591 esac
15592 else :
15593 # compilation failed
15594 lt_cv_dlopen_self=no
15595 fi
15596fi
15597rm -fr conftest*
15598
15599
15600fi
15601{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15602$as_echo "$lt_cv_dlopen_self" >&6; }
15603
15604 if test "x$lt_cv_dlopen_self" = xyes; then
15605 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15606 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15607$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15608if test "${lt_cv_dlopen_self_static+set}" = set; then
15609 $as_echo_n "(cached) " >&6
15610else
15611 if test "$cross_compiling" = yes; then :
15612 lt_cv_dlopen_self_static=cross
15613else
15614 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15615 lt_status=$lt_dlunknown
15616 cat > conftest.$ac_ext <<_LT_EOF
15617#line 15617 "configure"
15618#include "confdefs.h"
15619
15620#if HAVE_DLFCN_H
15621#include <dlfcn.h>
15622#endif
15623
15624#include <stdio.h>
15625
15626#ifdef RTLD_GLOBAL
15627# define LT_DLGLOBAL RTLD_GLOBAL
15628#else
15629# ifdef DL_GLOBAL
15630# define LT_DLGLOBAL DL_GLOBAL
15631# else
15632# define LT_DLGLOBAL 0
15633# endif
15634#endif
15635
15636/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15637 find out it does not work in some platform. */
15638#ifndef LT_DLLAZY_OR_NOW
15639# ifdef RTLD_LAZY
15640# define LT_DLLAZY_OR_NOW RTLD_LAZY
15641# else
15642# ifdef DL_LAZY
15643# define LT_DLLAZY_OR_NOW DL_LAZY
15644# else
15645# ifdef RTLD_NOW
15646# define LT_DLLAZY_OR_NOW RTLD_NOW
15647# else
15648# ifdef DL_NOW
15649# define LT_DLLAZY_OR_NOW DL_NOW
15650# else
15651# define LT_DLLAZY_OR_NOW 0
15652# endif
15653# endif
15654# endif
15655# endif
15656#endif
15657
15658void fnord() { int i=42;}
15659int main ()
15660{
15661 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15662 int status = $lt_dlunknown;
15663
15664 if (self)
15665 {
15666 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15667 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15668 /* dlclose (self); */
15669 }
15670 else
15671 puts (dlerror ());
15672
15673 return status;
15674}
15675_LT_EOF
15676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15677 (eval $ac_link) 2>&5
15678 ac_status=$?
15679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
15681 (./conftest; exit; ) >&5 2>/dev/null
15682 lt_status=$?
15683 case x$lt_status in
15684 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15685 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15686 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15687 esac
15688 else :
15689 # compilation failed
15690 lt_cv_dlopen_self_static=no
15691 fi
15692fi
15693rm -fr conftest*
15694
15695
15696fi
15697{ $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15698$as_echo "$lt_cv_dlopen_self_static" >&6; }
15699 fi
15700
15701 CPPFLAGS="$save_CPPFLAGS"
15702 LDFLAGS="$save_LDFLAGS"
15703 LIBS="$save_LIBS"
15704 ;;
15705 esac
15706
15707 case $lt_cv_dlopen_self in
15708 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15709 *) enable_dlopen_self=unknown ;;
15710 esac
15711
15712 case $lt_cv_dlopen_self_static in
15713 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15714 *) enable_dlopen_self_static=unknown ;;
15715 esac
15716fi
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734striplib=
15735old_striplib=
15736{ $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15737$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15738if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15739 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15740 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15741 { $as_echo "$as_me:$LINENO: result: yes" >&5
15742$as_echo "yes" >&6; }
15743else
15744# FIXME - insert some real tests, host_os isn't really good enough
15745 case $host_os in
15746 darwin*)
15747 if test -n "$STRIP" ; then
15748 striplib="$STRIP -x"
15749 old_striplib="$STRIP -S"
15750 { $as_echo "$as_me:$LINENO: result: yes" >&5
15751$as_echo "yes" >&6; }
15752 else
15753 { $as_echo "$as_me:$LINENO: result: no" >&5
15754$as_echo "no" >&6; }
15755 fi
15756 ;;
15757 *)
15758 { $as_echo "$as_me:$LINENO: result: no" >&5
15759$as_echo "no" >&6; }
15760 ;;
15761 esac
15762fi
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775 # Report which library types will actually be built
15776 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15777$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15778 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
15779$as_echo "$can_build_shared" >&6; }
15780
15781 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15782$as_echo_n "checking whether to build shared libraries... " >&6; }
15783 test "$can_build_shared" = "no" && enable_shared=no
15784
15785 # On AIX, shared libraries and static libraries use the same namespace, and
15786 # are all built from PIC.
15787 case $host_os in
15788 aix3*)
15789 test "$enable_shared" = yes && enable_static=no
15790 if test -n "$RANLIB"; then
15791 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15792 postinstall_cmds='$RANLIB $lib'
15793 fi
15794 ;;
15795
15796 aix[4-9]*)
15797 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15798 test "$enable_shared" = yes && enable_static=no
15799 fi
15800 ;;
15801 esac
15802 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
15803$as_echo "$enable_shared" >&6; }
15804
15805 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15806$as_echo_n "checking whether to build static libraries... " >&6; }
15807 # Make sure either enable_shared or enable_static is yes.
15808 test "$enable_shared" = yes || enable_static=yes
15809 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
15810$as_echo "$enable_static" >&6; }
15811
15812
15813
15814
15815fi
15816ac_ext=c
15817ac_cpp='$CPP $CPPFLAGS'
15818ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15819ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15820ac_compiler_gnu=$ac_cv_c_compiler_gnu
15821
15822CC="$lt_save_CC"
15823
15824
15825ac_ext=cpp
15826ac_cpp='$CXXCPP $CPPFLAGS'
15827ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15828ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15829ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15830
15831archive_cmds_need_lc_CXX=no
15832allow_undefined_flag_CXX=
15833always_export_symbols_CXX=no
15834archive_expsym_cmds_CXX=
15835compiler_needs_object_CXX=no
15836export_dynamic_flag_spec_CXX=
15837hardcode_direct_CXX=no
15838hardcode_direct_absolute_CXX=no
15839hardcode_libdir_flag_spec_CXX=
15840hardcode_libdir_flag_spec_ld_CXX=
15841hardcode_libdir_separator_CXX=
15842hardcode_minus_L_CXX=no
15843hardcode_shlibpath_var_CXX=unsupported
15844hardcode_automatic_CXX=no
15845inherit_rpath_CXX=no
15846module_cmds_CXX=
15847module_expsym_cmds_CXX=
15848link_all_deplibs_CXX=unknown
15849old_archive_cmds_CXX=$old_archive_cmds
15850no_undefined_flag_CXX=
15851whole_archive_flag_spec_CXX=
15852enable_shared_with_static_runtimes_CXX=no
15853
15854# Source file extension for C++ test sources.
15855ac_ext=cpp
15856
15857# Object file extension for compiled C++ test sources.
15858objext=o
15859objext_CXX=$objext
15860
15861# No sense in running all these tests if we already determined that
15862# the CXX compiler isn't working. Some variables (like enable_shared)
15863# are currently assumed to apply to all compilers on this platform,
15864# and will be corrupted by setting them based on a non-working compiler.
15865if test "$_lt_caught_CXX_error" != yes; then
15866 # Code to be used in simple compile tests
15867 lt_simple_compile_test_code="int some_variable = 0;"
15868
15869 # Code to be used in simple link tests
15870 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15871
15872 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15873
15874
15875
15876
15877
15878
15879# If no C compiler was specified, use CC.
15880LTCC=${LTCC-"$CC"}
15881
15882# If no C compiler flags were specified, use CFLAGS.
15883LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15884
15885# Allow CC to be a program name with arguments.
15886compiler=$CC
15887
15888
15889 # save warnings/boilerplate of simple test code
15890 ac_outfile=conftest.$ac_objext
15891echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15892eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15893_lt_compiler_boilerplate=`cat conftest.err`
15894$RM conftest*
15895
15896 ac_outfile=conftest.$ac_objext
15897echo "$lt_simple_link_test_code" >conftest.$ac_ext
15898eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15899_lt_linker_boilerplate=`cat conftest.err`
15900$RM -r conftest*
15901
15902
15903 # Allow CC to be a program name with arguments.
15904 lt_save_CC=$CC
15905 lt_save_LD=$LD
15906 lt_save_GCC=$GCC
15907 GCC=$GXX
15908 lt_save_with_gnu_ld=$with_gnu_ld
15909 lt_save_path_LD=$lt_cv_path_LD
15910 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15911 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15912 else
15913 $as_unset lt_cv_prog_gnu_ld
15914 fi
15915 if test -n "${lt_cv_path_LDCXX+set}"; then
15916 lt_cv_path_LD=$lt_cv_path_LDCXX
15917 else
15918 $as_unset lt_cv_path_LD
15919 fi
15920 test -z "${LDCXX+set}" || LD=$LDCXX
15921 CC=${CXX-"c++"}
15922 compiler=$CC
15923 compiler_CXX=$CC
15924 for cc_temp in $compiler""; do
15925 case $cc_temp in
15926 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15927 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15928 \-*) ;;
15929 *) break;;
15930 esac
15931done
15932cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15933
15934
15935 if test -n "$compiler"; then
15936 # We don't want -fno-exception when compiling C++ code, so set the
15937 # no_builtin_flag separately
15938 if test "$GXX" = yes; then
15939 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15940 else
15941 lt_prog_compiler_no_builtin_flag_CXX=
15942 fi
15943
15944 if test "$GXX" = yes; then
15945 # Set up default GNU C++ configuration
15946
15947
15948
15949# Check whether --with-gnu-ld was given.
15950if test "${with_gnu_ld+set}" = set; then
15951 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15952else
15953 with_gnu_ld=no
15954fi
15955
15956ac_prog=ld
15957if test "$GCC" = yes; then
15958 # Check if gcc -print-prog-name=ld gives a path.
15959 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15960$as_echo_n "checking for ld used by $CC... " >&6; }
15961 case $host in
15962 *-*-mingw*)
15963 # gcc leaves a trailing carriage return which upsets mingw
15964 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15965 *)
15966 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15967 esac
15968 case $ac_prog in
15969 # Accept absolute paths.
15970 [\\/]* | ?:[\\/]*)
15971 re_direlt='/[^/][^/]*/\.\./'
15972 # Canonicalize the pathname of ld
15973 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15974 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15975 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15976 done
15977 test -z "$LD" && LD="$ac_prog"
15978 ;;
15979 "")
15980 # If it fails, then pretend we aren't using GCC.
15981 ac_prog=ld
15982 ;;
15983 *)
15984 # If it is relative, then search for the first ld in PATH.
15985 with_gnu_ld=unknown
15986 ;;
15987 esac
15988elif test "$with_gnu_ld" = yes; then
15989 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
15990$as_echo_n "checking for GNU ld... " >&6; }
15991else
15992 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15993$as_echo_n "checking for non-GNU ld... " >&6; }
15994fi
15995if test "${lt_cv_path_LD+set}" = set; then
15996 $as_echo_n "(cached) " >&6
15997else
15998 if test -z "$LD"; then
15999 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16000 for ac_dir in $PATH; do
16001 IFS="$lt_save_ifs"
16002 test -z "$ac_dir" && ac_dir=.
16003 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16004 lt_cv_path_LD="$ac_dir/$ac_prog"
16005 # Check to see if the program is GNU ld. I'd rather use --version,
16006 # but apparently some variants of GNU ld only accept -v.
16007 # Break only if it was the GNU/non-GNU ld that we prefer.
16008 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16009 *GNU* | *'with BFD'*)
16010 test "$with_gnu_ld" != no && break
16011 ;;
16012 *)
16013 test "$with_gnu_ld" != yes && break
16014 ;;
16015 esac
16016 fi
16017 done
16018 IFS="$lt_save_ifs"
16019else
16020 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16021fi
16022fi
16023
16024LD="$lt_cv_path_LD"
16025if test -n "$LD"; then
16026 { $as_echo "$as_me:$LINENO: result: $LD" >&5
16027$as_echo "$LD" >&6; }
16028else
16029 { $as_echo "$as_me:$LINENO: result: no" >&5
16030$as_echo "no" >&6; }
16031fi
16032test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
16033$as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
16034 { (exit 1); exit 1; }; }
16035{ $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
16036$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16037if test "${lt_cv_prog_gnu_ld+set}" = set; then
16038 $as_echo_n "(cached) " >&6
16039else
16040 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16041case `$LD -v 2>&1 </dev/null` in
16042*GNU* | *'with BFD'*)
16043 lt_cv_prog_gnu_ld=yes
16044 ;;
16045*)
16046 lt_cv_prog_gnu_ld=no
16047 ;;
16048esac
16049fi
16050{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
16051$as_echo "$lt_cv_prog_gnu_ld" >&6; }
16052with_gnu_ld=$lt_cv_prog_gnu_ld
16053
16054
16055
16056
16057
16058
16059
16060 # Check if GNU C++ uses GNU ld as the underlying linker, since the
16061 # archiving commands below assume that GNU ld is being used.
16062 if test "$with_gnu_ld" = yes; then
16063 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16064 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'
16065
16066 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16067 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16068
16069 # If archive_cmds runs LD, not CC, wlarc should be empty
16070 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
16071 # investigate it a little bit more. (MM)
16072 wlarc='${wl}'
16073
16074 # ancient GNU ld didn't support --whole-archive et. al.
16075 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
16076 $GREP 'no-whole-archive' > /dev/null; then
16077 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16078 else
16079 whole_archive_flag_spec_CXX=
16080 fi
16081 else
16082 with_gnu_ld=no
16083 wlarc=
16084
16085 # A generic and very simple default shared library creation
16086 # command for GNU C++ for the case where it uses the native
16087 # linker, instead of GNU ld. If possible, this setting should
16088 # overridden to take advantage of the native linker features on
16089 # the platform it is being used on.
16090 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16091 fi
16092
16093 # Commands to make compiler produce verbose output that lists
16094 # what "hidden" libraries, object files and flags are used when
16095 # linking a shared library.
16096 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16097
16098 else
16099 GXX=no
16100 with_gnu_ld=no
16101 wlarc=
16102 fi
16103
16104 # PORTME: fill in a description of your system's C++ link characteristics
16105 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16106$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16107 ld_shlibs_CXX=yes
16108 case $host_os in
16109 aix3*)
16110 # FIXME: insert proper C++ library support
16111 ld_shlibs_CXX=no
16112 ;;
16113 aix[4-9]*)
16114 if test "$host_cpu" = ia64; then
16115 # On IA64, the linker does run time linking by default, so we don't
16116 # have to do anything special.
16117 aix_use_runtimelinking=no
16118 exp_sym_flag='-Bexport'
16119 no_entry_flag=""
16120 else
16121 aix_use_runtimelinking=no
16122
16123 # Test if we are trying to use run time linking or normal
16124 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16125 # need to do runtime linking.
16126 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16127 for ld_flag in $LDFLAGS; do
16128 case $ld_flag in
16129 *-brtl*)
16130 aix_use_runtimelinking=yes
16131 break
16132 ;;
16133 esac
16134 done
16135 ;;
16136 esac
16137
16138 exp_sym_flag='-bexport'
16139 no_entry_flag='-bnoentry'
16140 fi
16141
16142 # When large executables or shared objects are built, AIX ld can
16143 # have problems creating the table of contents. If linking a library
16144 # or program results in "error TOC overflow" add -mminimal-toc to
16145 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16146 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16147
16148 archive_cmds_CXX=''
16149 hardcode_direct_CXX=yes
16150 hardcode_direct_absolute_CXX=yes
16151 hardcode_libdir_separator_CXX=':'
16152 link_all_deplibs_CXX=yes
16153 file_list_spec_CXX='${wl}-f,'
16154
16155 if test "$GXX" = yes; then
16156 case $host_os in aix4.[012]|aix4.[012].*)
16157 # We only want to do this on AIX 4.2 and lower, the check
16158 # below for broken collect2 doesn't work under 4.3+
16159 collect2name=`${CC} -print-prog-name=collect2`
16160 if test -f "$collect2name" &&
16161 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16162 then
16163 # We have reworked collect2
16164 :
16165 else
16166 # We have old collect2
16167 hardcode_direct_CXX=unsupported
16168 # It fails to find uninstalled libraries when the uninstalled
16169 # path is not listed in the libpath. Setting hardcode_minus_L
16170 # to unsupported forces relinking
16171 hardcode_minus_L_CXX=yes
16172 hardcode_libdir_flag_spec_CXX='-L$libdir'
16173 hardcode_libdir_separator_CXX=
16174 fi
16175 esac
16176 shared_flag='-shared'
16177 if test "$aix_use_runtimelinking" = yes; then
16178 shared_flag="$shared_flag "'${wl}-G'
16179 fi
16180 else
16181 # not using gcc
16182 if test "$host_cpu" = ia64; then
16183 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16184 # chokes on -Wl,-G. The following line is correct:
16185 shared_flag='-G'
16186 else
16187 if test "$aix_use_runtimelinking" = yes; then
16188 shared_flag='${wl}-G'
16189 else
16190 shared_flag='${wl}-bM:SRE'
16191 fi
16192 fi
16193 fi
16194
16195 export_dynamic_flag_spec_CXX='${wl}-bexpall'
16196 # It seems that -bexpall does not export symbols beginning with
16197 # underscore (_), so it is better to generate a list of symbols to
16198 # export.
16199 always_export_symbols_CXX=yes
16200 if test "$aix_use_runtimelinking" = yes; then
16201 # Warning - without using the other runtime loading flags (-brtl),
16202 # -berok will link without error, but may produce a broken library.
16203 allow_undefined_flag_CXX='-berok'
16204 # Determine the default libpath from the value encoded in an empty
16205 # executable.
16206 cat >conftest.$ac_ext <<_ACEOF
16207/* confdefs.h. */
16208_ACEOF
16209cat confdefs.h >>conftest.$ac_ext
16210cat >>conftest.$ac_ext <<_ACEOF
16211/* end confdefs.h. */
16212
16213int
16214main ()
16215{
16216
16217 ;
16218 return 0;
16219}
16220_ACEOF
16221rm -f conftest.$ac_objext conftest$ac_exeext
16222if { (ac_try="$ac_link"
16223case "(($ac_try" in
16224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16225 *) ac_try_echo=$ac_try;;
16226esac
16227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16228$as_echo "$ac_try_echo") >&5
16229 (eval "$ac_link") 2>conftest.er1
16230 ac_status=$?
16231 grep -v '^ *+' conftest.er1 >conftest.err
16232 rm -f conftest.er1
16233 cat conftest.err >&5
16234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16235 (exit $ac_status); } && {
16236 test -z "$ac_cxx_werror_flag" ||
16237 test ! -s conftest.err
16238 } && test -s conftest$ac_exeext && {
16239 test "$cross_compiling" = yes ||
16240 $as_test_x conftest$ac_exeext
16241 }; then
16242
16243lt_aix_libpath_sed='
16244 /Import File Strings/,/^$/ {
16245 /^0/ {
16246 s/^0 *\(.*\)$/\1/
16247 p
16248 }
16249 }'
16250aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16251# Check for a 64-bit object if we didn't find anything.
16252if test -z "$aix_libpath"; then
16253 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16254fi
16255else
16256 $as_echo "$as_me: failed program was:" >&5
16257sed 's/^/| /' conftest.$ac_ext >&5
16258
16259
16260fi
16261
16262rm -rf conftest.dSYM
16263rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16264 conftest$ac_exeext conftest.$ac_ext
16265if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16266
16267 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16268
16269 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"
16270 else
16271 if test "$host_cpu" = ia64; then
16272 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
16273 allow_undefined_flag_CXX="-z nodefs"
16274 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"
16275 else
16276 # Determine the default libpath from the value encoded in an
16277 # empty executable.
16278 cat >conftest.$ac_ext <<_ACEOF
16279/* confdefs.h. */
16280_ACEOF
16281cat confdefs.h >>conftest.$ac_ext
16282cat >>conftest.$ac_ext <<_ACEOF
16283/* end confdefs.h. */
16284
16285int
16286main ()
16287{
16288
16289 ;
16290 return 0;
16291}
16292_ACEOF
16293rm -f conftest.$ac_objext conftest$ac_exeext
16294if { (ac_try="$ac_link"
16295case "(($ac_try" in
16296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297 *) ac_try_echo=$ac_try;;
16298esac
16299eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16300$as_echo "$ac_try_echo") >&5
16301 (eval "$ac_link") 2>conftest.er1
16302 ac_status=$?
16303 grep -v '^ *+' conftest.er1 >conftest.err
16304 rm -f conftest.er1
16305 cat conftest.err >&5
16306 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16307 (exit $ac_status); } && {
16308 test -z "$ac_cxx_werror_flag" ||
16309 test ! -s conftest.err
16310 } && test -s conftest$ac_exeext && {
16311 test "$cross_compiling" = yes ||
16312 $as_test_x conftest$ac_exeext
16313 }; then
16314
16315lt_aix_libpath_sed='
16316 /Import File Strings/,/^$/ {
16317 /^0/ {
16318 s/^0 *\(.*\)$/\1/
16319 p
16320 }
16321 }'
16322aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16323# Check for a 64-bit object if we didn't find anything.
16324if test -z "$aix_libpath"; then
16325 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16326fi
16327else
16328 $as_echo "$as_me: failed program was:" >&5
16329sed 's/^/| /' conftest.$ac_ext >&5
16330
16331
16332fi
16333
16334rm -rf conftest.dSYM
16335rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16336 conftest$ac_exeext conftest.$ac_ext
16337if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16338
16339 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
16340 # Warning - without using the other run time loading flags,
16341 # -berok will link without error, but may produce a broken library.
16342 no_undefined_flag_CXX=' ${wl}-bernotok'
16343 allow_undefined_flag_CXX=' ${wl}-berok'
16344 # Exported symbols can be pulled into shared objects from archives
16345 whole_archive_flag_spec_CXX='$convenience'
16346 archive_cmds_need_lc_CXX=yes
16347 # This is similar to how AIX traditionally builds its shared
16348 # libraries.
16349 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'
16350 fi
16351 fi
16352 ;;
16353
16354 beos*)
16355 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16356 allow_undefined_flag_CXX=unsupported
16357 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16358 # support --undefined. This deserves some investigation. FIXME
16359 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16360 else
16361 ld_shlibs_CXX=no
16362 fi
16363 ;;
16364
16365 chorus*)
16366 case $cc_basename in
16367 *)
16368 # FIXME: insert proper C++ library support
16369 ld_shlibs_CXX=no
16370 ;;
16371 esac
16372 ;;
16373
16374 cygwin* | mingw* | pw32* | cegcc*)
16375 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16376 # as there is no search path for DLLs.
16377 hardcode_libdir_flag_spec_CXX='-L$libdir'
16378 allow_undefined_flag_CXX=unsupported
16379 always_export_symbols_CXX=no
16380 enable_shared_with_static_runtimes_CXX=yes
16381
16382 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16383 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'
16384 # If the export-symbols file already is a .def file (1st line
16385 # is EXPORTS), use it as is; otherwise, prepend...
16386 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16387 cp $export_symbols $output_objdir/$soname.def;
16388 else
16389 echo EXPORTS > $output_objdir/$soname.def;
16390 cat $export_symbols >> $output_objdir/$soname.def;
16391 fi~
16392 $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'
16393 else
16394 ld_shlibs_CXX=no
16395 fi
16396 ;;
16397 darwin* | rhapsody*)
16398
16399
16400 archive_cmds_need_lc_CXX=no
16401 hardcode_direct_CXX=no
16402 hardcode_automatic_CXX=yes
16403 hardcode_shlibpath_var_CXX=unsupported
16404 whole_archive_flag_spec_CXX=''
16405 link_all_deplibs_CXX=yes
16406 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
16407 case $cc_basename in
16408 ifort*) _lt_dar_can_shared=yes ;;
16409 *) _lt_dar_can_shared=$GCC ;;
16410 esac
16411 if test "$_lt_dar_can_shared" = "yes"; then
16412 output_verbose_link_cmd=echo
16413 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}"
16414 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16415 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}"
16416 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}"
16417 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
16418 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}"
16419 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}"
16420 fi
16421
16422 else
16423 ld_shlibs_CXX=no
16424 fi
16425
16426 ;;
16427
16428 dgux*)
16429 case $cc_basename in
16430 ec++*)
16431 # FIXME: insert proper C++ library support
16432 ld_shlibs_CXX=no
16433 ;;
16434 ghcx*)
16435 # Green Hills C++ Compiler
16436 # FIXME: insert proper C++ library support
16437 ld_shlibs_CXX=no
16438 ;;
16439 *)
16440 # FIXME: insert proper C++ library support
16441 ld_shlibs_CXX=no
16442 ;;
16443 esac
16444 ;;
16445
16446 freebsd[12]*)
16447 # C++ shared libraries reported to be fairly broken before
16448 # switch to ELF
16449 ld_shlibs_CXX=no
16450 ;;
16451
16452 freebsd-elf*)
16453 archive_cmds_need_lc_CXX=no
16454 ;;
16455
16456 freebsd* | dragonfly*)
16457 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16458 # conventions
16459 ld_shlibs_CXX=yes
16460 ;;
16461
16462 gnu*)
16463 ;;
16464
16465 hpux9*)
16466 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16467 hardcode_libdir_separator_CXX=:
16468 export_dynamic_flag_spec_CXX='${wl}-E'
16469 hardcode_direct_CXX=yes
16470 hardcode_minus_L_CXX=yes # Not in the search PATH,
16471 # but as the default
16472 # location of the library.
16473
16474 case $cc_basename in
16475 CC*)
16476 # FIXME: insert proper C++ library support
16477 ld_shlibs_CXX=no
16478 ;;
16479 aCC*)
16480 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'
16481 # Commands to make compiler produce verbose output that lists
16482 # what "hidden" libraries, object files and flags are used when
16483 # linking a shared library.
16484 #
16485 # There doesn't appear to be a way to prevent this compiler from
16486 # explicitly linking system object files so we need to strip them
16487 # from the output so that they don't get included in the library
16488 # dependencies.
16489 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'
16490 ;;
16491 *)
16492 if test "$GXX" = yes; then
16493 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'
16494 else
16495 # FIXME: insert proper C++ library support
16496 ld_shlibs_CXX=no
16497 fi
16498 ;;
16499 esac
16500 ;;
16501
16502 hpux10*|hpux11*)
16503 if test $with_gnu_ld = no; then
16504 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
16505 hardcode_libdir_separator_CXX=:
16506
16507 case $host_cpu in
16508 hppa*64*|ia64*)
16509 ;;
16510 *)
16511 export_dynamic_flag_spec_CXX='${wl}-E'
16512 ;;
16513 esac
16514 fi
16515 case $host_cpu in
16516 hppa*64*|ia64*)
16517 hardcode_direct_CXX=no
16518 hardcode_shlibpath_var_CXX=no
16519 ;;
16520 *)
16521 hardcode_direct_CXX=yes
16522 hardcode_direct_absolute_CXX=yes
16523 hardcode_minus_L_CXX=yes # Not in the search PATH,
16524 # but as the default
16525 # location of the library.
16526 ;;
16527 esac
16528
16529 case $cc_basename in
16530 CC*)
16531 # FIXME: insert proper C++ library support
16532 ld_shlibs_CXX=no
16533 ;;
16534 aCC*)
16535 case $host_cpu in
16536 hppa*64*)
16537 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16538 ;;
16539 ia64*)
16540 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16541 ;;
16542 *)
16543 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16544 ;;
16545 esac
16546 # Commands to make compiler produce verbose output that lists
16547 # what "hidden" libraries, object files and flags are used when
16548 # linking a shared library.
16549 #
16550 # There doesn't appear to be a way to prevent this compiler from
16551 # explicitly linking system object files so we need to strip them
16552 # from the output so that they don't get included in the library
16553 # dependencies.
16554 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'
16555 ;;
16556 *)
16557 if test "$GXX" = yes; then
16558 if test $with_gnu_ld = no; then
16559 case $host_cpu in
16560 hppa*64*)
16561 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16562 ;;
16563 ia64*)
16564 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16565 ;;
16566 *)
16567 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'
16568 ;;
16569 esac
16570 fi
16571 else
16572 # FIXME: insert proper C++ library support
16573 ld_shlibs_CXX=no
16574 fi
16575 ;;
16576 esac
16577 ;;
16578
16579 interix[3-9]*)
16580 hardcode_direct_CXX=no
16581 hardcode_shlibpath_var_CXX=no
16582 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16583 export_dynamic_flag_spec_CXX='${wl}-E'
16584 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16585 # Instead, shared libraries are loaded at an image base (0x10000000 by
16586 # default) and relocated if they conflict, which is a slow very memory
16587 # consuming and fragmenting process. To avoid this, we pick a random,
16588 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16589 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16590 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'
16591 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'
16592 ;;
16593 irix5* | irix6*)
16594 case $cc_basename in
16595 CC*)
16596 # SGI C++
16597 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'
16598
16599 # Archives containing C++ object files must be created using
16600 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16601 # necessary to make sure instantiated templates are included
16602 # in the archive.
16603 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16604 ;;
16605 *)
16606 if test "$GXX" = yes; then
16607 if test "$with_gnu_ld" = no; then
16608 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'
16609 else
16610 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'
16611 fi
16612 fi
16613 link_all_deplibs_CXX=yes
16614 ;;
16615 esac
16616 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16617 hardcode_libdir_separator_CXX=:
16618 inherit_rpath_CXX=yes
16619 ;;
16620
16621 linux* | k*bsd*-gnu)
16622 case $cc_basename in
16623 KCC*)
16624 # Kuck and Associates, Inc. (KAI) C++ Compiler
16625
16626 # KCC will only create a shared library if the output file
16627 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16628 # to its proper name (with version) after linking.
16629 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'
16630 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'
16631 # Commands to make compiler produce verbose output that lists
16632 # what "hidden" libraries, object files and flags are used when
16633 # linking a shared library.
16634 #
16635 # There doesn't appear to be a way to prevent this compiler from
16636 # explicitly linking system object files so we need to strip them
16637 # from the output so that they don't get included in the library
16638 # dependencies.
16639 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'
16640
16641 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16642 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16643
16644 # Archives containing C++ object files must be created using
16645 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16646 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16647 ;;
16648 icpc* | ecpc* )
16649 # Intel C++
16650 with_gnu_ld=yes
16651 # version 8.0 and above of icpc choke on multiply defined symbols
16652 # if we add $predep_objects and $postdep_objects, however 7.1 and
16653 # earlier do not add the objects themselves.
16654 case `$CC -V 2>&1` in
16655 *"Version 7."*)
16656 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16657 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'
16658 ;;
16659 *) # Version 8.0 or newer
16660 tmp_idyn=
16661 case $host_cpu in
16662 ia64*) tmp_idyn=' -i_dynamic';;
16663 esac
16664 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16665 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'
16666 ;;
16667 esac
16668 archive_cmds_need_lc_CXX=no
16669 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16670 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16671 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16672 ;;
16673 pgCC* | pgcpp*)
16674 # Portland Group C++ compiler
16675 case `$CC -V` in
16676 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
16677 prelink_cmds_CXX='tpldir=Template.dir~
16678 rm -rf $tpldir~
16679 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16680 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
16681 old_archive_cmds_CXX='tpldir=Template.dir~
16682 rm -rf $tpldir~
16683 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16684 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
16685 $RANLIB $oldlib'
16686 archive_cmds_CXX='tpldir=Template.dir~
16687 rm -rf $tpldir~
16688 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16689 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16690 archive_expsym_cmds_CXX='tpldir=Template.dir~
16691 rm -rf $tpldir~
16692 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16693 $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'
16694 ;;
16695 *) # Version 6 will use weak symbols
16696 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16697 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'
16698 ;;
16699 esac
16700
16701 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
16702 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16703 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'
16704 ;;
16705 cxx*)
16706 # Compaq C++
16707 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16708 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'
16709
16710 runpath_var=LD_RUN_PATH
16711 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16712 hardcode_libdir_separator_CXX=:
16713
16714 # Commands to make compiler produce verbose output that lists
16715 # what "hidden" libraries, object files and flags are used when
16716 # linking a shared library.
16717 #
16718 # There doesn't appear to be a way to prevent this compiler from
16719 # explicitly linking system object files so we need to strip them
16720 # from the output so that they don't get included in the library
16721 # dependencies.
16722 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'
16723 ;;
16724 xl*)
16725 # IBM XL 8.0 on PPC, with GNU ld
16726 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16727 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
16728 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16729 if test "x$supports_anon_versioning" = xyes; then
16730 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16731 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16732 echo "local: *; };" >> $output_objdir/$libname.ver~
16733 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16734 fi
16735 ;;
16736 *)
16737 case `$CC -V 2>&1 | sed 5q` in
16738 *Sun\ C*)
16739 # Sun C++ 5.9
16740 no_undefined_flag_CXX=' -zdefs'
16741 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16742 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'
16743 hardcode_libdir_flag_spec_CXX='-R$libdir'
16744 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'
16745 compiler_needs_object_CXX=yes
16746
16747 # Not sure whether something based on
16748 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16749 # would be better.
16750 output_verbose_link_cmd='echo'
16751
16752 # Archives containing C++ object files must be created using
16753 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16754 # necessary to make sure instantiated templates are included
16755 # in the archive.
16756 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16757 ;;
16758 esac
16759 ;;
16760 esac
16761 ;;
16762
16763 lynxos*)
16764 # FIXME: insert proper C++ library support
16765 ld_shlibs_CXX=no
16766 ;;
16767
16768 m88k*)
16769 # FIXME: insert proper C++ library support
16770 ld_shlibs_CXX=no
16771 ;;
16772
16773 mvs*)
16774 case $cc_basename in
16775 cxx*)
16776 # FIXME: insert proper C++ library support
16777 ld_shlibs_CXX=no
16778 ;;
16779 *)
16780 # FIXME: insert proper C++ library support
16781 ld_shlibs_CXX=no
16782 ;;
16783 esac
16784 ;;
16785
16786 netbsd*)
16787 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16788 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16789 wlarc=
16790 hardcode_libdir_flag_spec_CXX='-R$libdir'
16791 hardcode_direct_CXX=yes
16792 hardcode_shlibpath_var_CXX=no
16793 fi
16794 # Workaround some broken pre-1.5 toolchains
16795 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16796 ;;
16797
16798 *nto* | *qnx*)
16799 ld_shlibs_CXX=yes
16800 ;;
16801
16802 openbsd2*)
16803 # C++ shared libraries are fairly broken
16804 ld_shlibs_CXX=no
16805 ;;
16806
16807 openbsd*)
16808 if test -f /usr/libexec/ld.so; then
16809 hardcode_direct_CXX=yes
16810 hardcode_shlibpath_var_CXX=no
16811 hardcode_direct_absolute_CXX=yes
16812 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16813 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16814 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16815 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16816 export_dynamic_flag_spec_CXX='${wl}-E'
16817 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16818 fi
16819 output_verbose_link_cmd=echo
16820 else
16821 ld_shlibs_CXX=no
16822 fi
16823 ;;
16824
16825 osf3* | osf4* | osf5*)
16826 case $cc_basename in
16827 KCC*)
16828 # Kuck and Associates, Inc. (KAI) C++ Compiler
16829
16830 # KCC will only create a shared library if the output file
16831 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16832 # to its proper name (with version) after linking.
16833 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'
16834
16835 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16836 hardcode_libdir_separator_CXX=:
16837
16838 # Archives containing C++ object files must be created using
16839 # the KAI C++ compiler.
16840 case $host in
16841 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16842 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16843 esac
16844 ;;
16845 RCC*)
16846 # Rational C++ 2.4.1
16847 # FIXME: insert proper C++ library support
16848 ld_shlibs_CXX=no
16849 ;;
16850 cxx*)
16851 case $host in
16852 osf3*)
16853 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16854 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'
16855 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16856 ;;
16857 *)
16858 allow_undefined_flag_CXX=' -expect_unresolved \*'
16859 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'
16860 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16861 echo "-hidden">> $lib.exp~
16862 $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~
16863 $RM $lib.exp'
16864 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16865 ;;
16866 esac
16867
16868 hardcode_libdir_separator_CXX=:
16869
16870 # Commands to make compiler produce verbose output that lists
16871 # what "hidden" libraries, object files and flags are used when
16872 # linking a shared library.
16873 #
16874 # There doesn't appear to be a way to prevent this compiler from
16875 # explicitly linking system object files so we need to strip them
16876 # from the output so that they don't get included in the library
16877 # dependencies.
16878 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'
16879 ;;
16880 *)
16881 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16882 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16883 case $host in
16884 osf3*)
16885 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'
16886 ;;
16887 *)
16888 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'
16889 ;;
16890 esac
16891
16892 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16893 hardcode_libdir_separator_CXX=:
16894
16895 # Commands to make compiler produce verbose output that lists
16896 # what "hidden" libraries, object files and flags are used when
16897 # linking a shared library.
16898 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16899
16900 else
16901 # FIXME: insert proper C++ library support
16902 ld_shlibs_CXX=no
16903 fi
16904 ;;
16905 esac
16906 ;;
16907
16908 psos*)
16909 # FIXME: insert proper C++ library support
16910 ld_shlibs_CXX=no
16911 ;;
16912
16913 sunos4*)
16914 case $cc_basename in
16915 CC*)
16916 # Sun C++ 4.x
16917 # FIXME: insert proper C++ library support
16918 ld_shlibs_CXX=no
16919 ;;
16920 lcc*)
16921 # Lucid
16922 # FIXME: insert proper C++ library support
16923 ld_shlibs_CXX=no
16924 ;;
16925 *)
16926 # FIXME: insert proper C++ library support
16927 ld_shlibs_CXX=no
16928 ;;
16929 esac
16930 ;;
16931
16932 solaris*)
16933 case $cc_basename in
16934 CC*)
16935 # Sun C++ 4.2, 5.x and Centerline C++
16936 archive_cmds_need_lc_CXX=yes
16937 no_undefined_flag_CXX=' -zdefs'
16938 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16939 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16940 $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'
16941
16942 hardcode_libdir_flag_spec_CXX='-R$libdir'
16943 hardcode_shlibpath_var_CXX=no
16944 case $host_os in
16945 solaris2.[0-5] | solaris2.[0-5].*) ;;
16946 *)
16947 # The compiler driver will combine and reorder linker options,
16948 # but understands `-z linker_flag'.
16949 # Supported since Solaris 2.6 (maybe 2.5.1?)
16950 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16951 ;;
16952 esac
16953 link_all_deplibs_CXX=yes
16954
16955 output_verbose_link_cmd='echo'
16956
16957 # Archives containing C++ object files must be created using
16958 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16959 # necessary to make sure instantiated templates are included
16960 # in the archive.
16961 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16962 ;;
16963 gcx*)
16964 # Green Hills C++ Compiler
16965 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16966
16967 # The C++ compiler must be used to create the archive.
16968 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16969 ;;
16970 *)
16971 # GNU C++ compiler with Solaris linker
16972 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16973 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16974 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16975 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16976 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16977 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16978
16979 # Commands to make compiler produce verbose output that lists
16980 # what "hidden" libraries, object files and flags are used when
16981 # linking a shared library.
16982 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16983 else
16984 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16985 # platform.
16986 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16987 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16988 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16989
16990 # Commands to make compiler produce verbose output that lists
16991 # what "hidden" libraries, object files and flags are used when
16992 # linking a shared library.
16993 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
16994 fi
16995
16996 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16997 case $host_os in
16998 solaris2.[0-5] | solaris2.[0-5].*) ;;
16999 *)
17000 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17001 ;;
17002 esac
17003 fi
17004 ;;
17005 esac
17006 ;;
17007
17008 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17009 no_undefined_flag_CXX='${wl}-z,text'
17010 archive_cmds_need_lc_CXX=no
17011 hardcode_shlibpath_var_CXX=no
17012 runpath_var='LD_RUN_PATH'
17013
17014 case $cc_basename in
17015 CC*)
17016 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17017 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17018 ;;
17019 *)
17020 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17021 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17022 ;;
17023 esac
17024 ;;
17025
17026 sysv5* | sco3.2v5* | sco5v6*)
17027 # Note: We can NOT use -z defs as we might desire, because we do not
17028 # link with -lc, and that would cause any symbols used from libc to
17029 # always be unresolved, which means just about no library would
17030 # ever link correctly. If we're not using GNU ld we use -z text
17031 # though, which does catch some bad symbols but isn't as heavy-handed
17032 # as -z defs.
17033 no_undefined_flag_CXX='${wl}-z,text'
17034 allow_undefined_flag_CXX='${wl}-z,nodefs'
17035 archive_cmds_need_lc_CXX=no
17036 hardcode_shlibpath_var_CXX=no
17037 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
17038 hardcode_libdir_separator_CXX=':'
17039 link_all_deplibs_CXX=yes
17040 export_dynamic_flag_spec_CXX='${wl}-Bexport'
17041 runpath_var='LD_RUN_PATH'
17042
17043 case $cc_basename in
17044 CC*)
17045 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17046 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17047 ;;
17048 *)
17049 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17050 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17051 ;;
17052 esac
17053 ;;
17054
17055 tandem*)
17056 case $cc_basename in
17057 NCC*)
17058 # NonStop-UX NCC 3.20
17059 # FIXME: insert proper C++ library support
17060 ld_shlibs_CXX=no
17061 ;;
17062 *)
17063 # FIXME: insert proper C++ library support
17064 ld_shlibs_CXX=no
17065 ;;
17066 esac
17067 ;;
17068
17069 vxworks*)
17070 # FIXME: insert proper C++ library support
17071 ld_shlibs_CXX=no
17072 ;;
17073
17074 *)
17075 # FIXME: insert proper C++ library support
17076 ld_shlibs_CXX=no
17077 ;;
17078 esac
17079
17080 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17081$as_echo "$ld_shlibs_CXX" >&6; }
17082 test "$ld_shlibs_CXX" = no && can_build_shared=no
17083
17084 GCC_CXX="$GXX"
17085 LD_CXX="$LD"
17086
17087 ## CAVEAT EMPTOR:
17088 ## There is no encapsulation within the following macros, do not change
17089 ## the running order or otherwise move them around unless you know exactly
17090 ## what you are doing...
17091 # Dependencies to place before and after the object being linked:
17092predep_objects_CXX=
17093postdep_objects_CXX=
17094predeps_CXX=
17095postdeps_CXX=
17096compiler_lib_search_path_CXX=
17097
17098cat > conftest.$ac_ext <<_LT_EOF
17099class Foo
17100{
17101public:
17102 Foo (void) { a = 0; }
17103private:
17104 int a;
17105};
17106_LT_EOF
17107
17108if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17109 (eval $ac_compile) 2>&5
17110 ac_status=$?
17111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17112 (exit $ac_status); }; then
17113 # Parse the compiler output and extract the necessary
17114 # objects, libraries and library flags.
17115
17116 # Sentinel used to keep track of whether or not we are before
17117 # the conftest object file.
17118 pre_test_object_deps_done=no
17119
17120 for p in `eval "$output_verbose_link_cmd"`; do
17121 case $p in
17122
17123 -L* | -R* | -l*)
17124 # Some compilers place space between "-{L,R}" and the path.
17125 # Remove the space.
17126 if test $p = "-L" ||
17127 test $p = "-R"; then
17128 prev=$p
17129 continue
17130 else
17131 prev=
17132 fi
17133
17134 if test "$pre_test_object_deps_done" = no; then
17135 case $p in
17136 -L* | -R*)
17137 # Internal compiler library paths should come after those
17138 # provided the user. The postdeps already come after the
17139 # user supplied libs so there is no need to process them.
17140 if test -z "$compiler_lib_search_path_CXX"; then
17141 compiler_lib_search_path_CXX="${prev}${p}"
17142 else
17143 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
17144 fi
17145 ;;
17146 # The "-l" case would never come before the object being
17147 # linked, so don't bother handling this case.
17148 esac
17149 else
17150 if test -z "$postdeps_CXX"; then
17151 postdeps_CXX="${prev}${p}"
17152 else
17153 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
17154 fi
17155 fi
17156 ;;
17157
17158 *.$objext)
17159 # This assumes that the test object file only shows up
17160 # once in the compiler output.
17161 if test "$p" = "conftest.$objext"; then
17162 pre_test_object_deps_done=yes
17163 continue
17164 fi
17165
17166 if test "$pre_test_object_deps_done" = no; then
17167 if test -z "$predep_objects_CXX"; then
17168 predep_objects_CXX="$p"
17169 else
17170 predep_objects_CXX="$predep_objects_CXX $p"
17171 fi
17172 else
17173 if test -z "$postdep_objects_CXX"; then
17174 postdep_objects_CXX="$p"
17175 else
17176 postdep_objects_CXX="$postdep_objects_CXX $p"
17177 fi
17178 fi
17179 ;;
17180
17181 *) ;; # Ignore the rest.
17182
17183 esac
17184 done
17185
17186 # Clean up.
17187 rm -f a.out a.exe
17188else
17189 echo "libtool.m4: error: problem compiling CXX test program"
17190fi
17191
17192$RM -f confest.$objext
17193
17194# PORTME: override above test on systems where it is broken
17195case $host_os in
17196interix[3-9]*)
17197 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17198 # hack all around it, let's just trust "g++" to DTRT.
17199 predep_objects_CXX=
17200 postdep_objects_CXX=
17201 postdeps_CXX=
17202 ;;
17203
17204linux*)
17205 case `$CC -V 2>&1 | sed 5q` in
17206 *Sun\ C*)
17207 # Sun C++ 5.9
17208
17209 # The more standards-conforming stlport4 library is
17210 # incompatible with the Cstd library. Avoid specifying
17211 # it if it's in CXXFLAGS. Ignore libCrun as
17212 # -library=stlport4 depends on it.
17213 case " $CXX $CXXFLAGS " in
17214 *" -library=stlport4 "*)
17215 solaris_use_stlport4=yes
17216 ;;
17217 esac
17218
17219 if test "$solaris_use_stlport4" != yes; then
17220 postdeps_CXX='-library=Cstd -library=Crun'
17221 fi
17222 ;;
17223 esac
17224 ;;
17225
17226solaris*)
17227 case $cc_basename in
17228 CC*)
17229 # The more standards-conforming stlport4 library is
17230 # incompatible with the Cstd library. Avoid specifying
17231 # it if it's in CXXFLAGS. Ignore libCrun as
17232 # -library=stlport4 depends on it.
17233 case " $CXX $CXXFLAGS " in
17234 *" -library=stlport4 "*)
17235 solaris_use_stlport4=yes
17236 ;;
17237 esac
17238
17239 # Adding this requires a known-good setup of shared libraries for
17240 # Sun compiler versions before 5.6, else PIC objects from an old
17241 # archive will be linked into the output, leading to subtle bugs.
17242 if test "$solaris_use_stlport4" != yes; then
17243 postdeps_CXX='-library=Cstd -library=Crun'
17244 fi
17245 ;;
17246 esac
17247 ;;
17248esac
17249
17250
17251case " $postdeps_CXX " in
17252*" -lc "*) archive_cmds_need_lc_CXX=no ;;
17253esac
17254 compiler_lib_search_dirs_CXX=
17255if test -n "${compiler_lib_search_path_CXX}"; then
17256 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
17257fi
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289 lt_prog_compiler_wl_CXX=
17290lt_prog_compiler_pic_CXX=
17291lt_prog_compiler_static_CXX=
17292
17293{ $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17294$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17295
17296 # C++ specific cases for pic, static, wl, etc.
17297 if test "$GXX" = yes; then
17298 lt_prog_compiler_wl_CXX='-Wl,'
17299 lt_prog_compiler_static_CXX='-static'
17300
17301 case $host_os in
17302 aix*)
17303 # All AIX code is PIC.
17304 if test "$host_cpu" = ia64; then
17305 # AIX 5 now supports IA64 processor
17306 lt_prog_compiler_static_CXX='-Bstatic'
17307 fi
17308 ;;
17309
17310 amigaos*)
17311 case $host_cpu in
17312 powerpc)
17313 # see comment about AmigaOS4 .so support
17314 lt_prog_compiler_pic_CXX='-fPIC'
17315 ;;
17316 m68k)
17317 # FIXME: we need at least 68020 code to build shared libraries, but
17318 # adding the `-m68020' flag to GCC prevents building anything better,
17319 # like `-m68040'.
17320 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17321 ;;
17322 esac
17323 ;;
17324
17325 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17326 # PIC is the default for these OSes.
17327 ;;
17328 mingw* | cygwin* | os2* | pw32* | cegcc*)
17329 # This hack is so that the source file can tell whether it is being
17330 # built for inclusion in a dll (and should export symbols for example).
17331 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17332 # (--disable-auto-import) libraries
17333 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17334 ;;
17335 darwin* | rhapsody*)
17336 # PIC is the default on this platform
17337 # Common symbols not allowed in MH_DYLIB files
17338 lt_prog_compiler_pic_CXX='-fno-common'
17339 ;;
17340 *djgpp*)
17341 # DJGPP does not support shared libraries at all
17342 lt_prog_compiler_pic_CXX=
17343 ;;
17344 interix[3-9]*)
17345 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17346 # Instead, we relocate shared libraries at runtime.
17347 ;;
17348 sysv4*MP*)
17349 if test -d /usr/nec; then
17350 lt_prog_compiler_pic_CXX=-Kconform_pic
17351 fi
17352 ;;
17353 hpux*)
17354 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17355 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17356 # sets the default TLS model and affects inlining.
17357 case $host_cpu in
17358 hppa*64*)
17359 ;;
17360 *)
17361 lt_prog_compiler_pic_CXX='-fPIC'
17362 ;;
17363 esac
17364 ;;
17365 *qnx* | *nto*)
17366 # QNX uses GNU C++, but need to define -shared option too, otherwise
17367 # it will coredump.
17368 lt_prog_compiler_pic_CXX='-fPIC -shared'
17369 ;;
17370 *)
17371 lt_prog_compiler_pic_CXX='-fPIC'
17372 ;;
17373 esac
17374 else
17375 case $host_os in
17376 aix[4-9]*)
17377 # All AIX code is PIC.
17378 if test "$host_cpu" = ia64; then
17379 # AIX 5 now supports IA64 processor
17380 lt_prog_compiler_static_CXX='-Bstatic'
17381 else
17382 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17383 fi
17384 ;;
17385 chorus*)
17386 case $cc_basename in
17387 cxch68*)
17388 # Green Hills C++ Compiler
17389 # _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"
17390 ;;
17391 esac
17392 ;;
17393 dgux*)
17394 case $cc_basename in
17395 ec++*)
17396 lt_prog_compiler_pic_CXX='-KPIC'
17397 ;;
17398 ghcx*)
17399 # Green Hills C++ Compiler
17400 lt_prog_compiler_pic_CXX='-pic'
17401 ;;
17402 *)
17403 ;;
17404 esac
17405 ;;
17406 freebsd* | dragonfly*)
17407 # FreeBSD uses GNU C++
17408 ;;
17409 hpux9* | hpux10* | hpux11*)
17410 case $cc_basename in
17411 CC*)
17412 lt_prog_compiler_wl_CXX='-Wl,'
17413 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17414 if test "$host_cpu" != ia64; then
17415 lt_prog_compiler_pic_CXX='+Z'
17416 fi
17417 ;;
17418 aCC*)
17419 lt_prog_compiler_wl_CXX='-Wl,'
17420 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
17421 case $host_cpu in
17422 hppa*64*|ia64*)
17423 # +Z the default
17424 ;;
17425 *)
17426 lt_prog_compiler_pic_CXX='+Z'
17427 ;;
17428 esac
17429 ;;
17430 *)
17431 ;;
17432 esac
17433 ;;
17434 interix*)
17435 # This is c89, which is MS Visual C++ (no shared libs)
17436 # Anyone wants to do a port?
17437 ;;
17438 irix5* | irix6* | nonstopux*)
17439 case $cc_basename in
17440 CC*)
17441 lt_prog_compiler_wl_CXX='-Wl,'
17442 lt_prog_compiler_static_CXX='-non_shared'
17443 # CC pic flag -KPIC is the default.
17444 ;;
17445 *)
17446 ;;
17447 esac
17448 ;;
17449 linux* | k*bsd*-gnu)
17450 case $cc_basename in
17451 KCC*)
17452 # KAI C++ Compiler
17453 lt_prog_compiler_wl_CXX='--backend -Wl,'
17454 lt_prog_compiler_pic_CXX='-fPIC'
17455 ;;
17456 ecpc* )
17457 # old Intel C++ for x86_64 which still supported -KPIC.
17458 lt_prog_compiler_wl_CXX='-Wl,'
17459 lt_prog_compiler_pic_CXX='-KPIC'
17460 lt_prog_compiler_static_CXX='-static'
17461 ;;
17462 icpc* )
17463 # Intel C++, used to be incompatible with GCC.
17464 # ICC 10 doesn't accept -KPIC any more.
17465 lt_prog_compiler_wl_CXX='-Wl,'
17466 lt_prog_compiler_pic_CXX='-fPIC'
17467 lt_prog_compiler_static_CXX='-static'
17468 ;;
17469 pgCC* | pgcpp*)
17470 # Portland Group C++ compiler
17471 lt_prog_compiler_wl_CXX='-Wl,'
17472 lt_prog_compiler_pic_CXX='-fpic'
17473 lt_prog_compiler_static_CXX='-Bstatic'
17474 ;;
17475 cxx*)
17476 # Compaq C++
17477 # Make sure the PIC flag is empty. It appears that all Alpha
17478 # Linux and Compaq Tru64 Unix objects are PIC.
17479 lt_prog_compiler_pic_CXX=
17480 lt_prog_compiler_static_CXX='-non_shared'
17481 ;;
17482 xlc* | xlC*)
17483 # IBM XL 8.0 on PPC
17484 lt_prog_compiler_wl_CXX='-Wl,'
17485 lt_prog_compiler_pic_CXX='-qpic'
17486 lt_prog_compiler_static_CXX='-qstaticlink'
17487 ;;
17488 *)
17489 case `$CC -V 2>&1 | sed 5q` in
17490 *Sun\ C*)
17491 # Sun C++ 5.9
17492 lt_prog_compiler_pic_CXX='-KPIC'
17493 lt_prog_compiler_static_CXX='-Bstatic'
17494 lt_prog_compiler_wl_CXX='-Qoption ld '
17495 ;;
17496 esac
17497 ;;
17498 esac
17499 ;;
17500 lynxos*)
17501 ;;
17502 m88k*)
17503 ;;
17504 mvs*)
17505 case $cc_basename in
17506 cxx*)
17507 lt_prog_compiler_pic_CXX='-W c,exportall'
17508 ;;
17509 *)
17510 ;;
17511 esac
17512 ;;
17513 netbsd*)
17514 ;;
17515 *qnx* | *nto*)
17516 # QNX uses GNU C++, but need to define -shared option too, otherwise
17517 # it will coredump.
17518 lt_prog_compiler_pic_CXX='-fPIC -shared'
17519 ;;
17520 osf3* | osf4* | osf5*)
17521 case $cc_basename in
17522 KCC*)
17523 lt_prog_compiler_wl_CXX='--backend -Wl,'
17524 ;;
17525 RCC*)
17526 # Rational C++ 2.4.1
17527 lt_prog_compiler_pic_CXX='-pic'
17528 ;;
17529 cxx*)
17530 # Digital/Compaq C++
17531 lt_prog_compiler_wl_CXX='-Wl,'
17532 # Make sure the PIC flag is empty. It appears that all Alpha
17533 # Linux and Compaq Tru64 Unix objects are PIC.
17534 lt_prog_compiler_pic_CXX=
17535 lt_prog_compiler_static_CXX='-non_shared'
17536 ;;
17537 *)
17538 ;;
17539 esac
17540 ;;
17541 psos*)
17542 ;;
17543 solaris*)
17544 case $cc_basename in
17545 CC*)
17546 # Sun C++ 4.2, 5.x and Centerline C++
17547 lt_prog_compiler_pic_CXX='-KPIC'
17548 lt_prog_compiler_static_CXX='-Bstatic'
17549 lt_prog_compiler_wl_CXX='-Qoption ld '
17550 ;;
17551 gcx*)
17552 # Green Hills C++ Compiler
17553 lt_prog_compiler_pic_CXX='-PIC'
17554 ;;
17555 *)
17556 ;;
17557 esac
17558 ;;
17559 sunos4*)
17560 case $cc_basename in
17561 CC*)
17562 # Sun C++ 4.x
17563 lt_prog_compiler_pic_CXX='-pic'
17564 lt_prog_compiler_static_CXX='-Bstatic'
17565 ;;
17566 lcc*)
17567 # Lucid
17568 lt_prog_compiler_pic_CXX='-pic'
17569 ;;
17570 *)
17571 ;;
17572 esac
17573 ;;
17574 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17575 case $cc_basename in
17576 CC*)
17577 lt_prog_compiler_wl_CXX='-Wl,'
17578 lt_prog_compiler_pic_CXX='-KPIC'
17579 lt_prog_compiler_static_CXX='-Bstatic'
17580 ;;
17581 esac
17582 ;;
17583 tandem*)
17584 case $cc_basename in
17585 NCC*)
17586 # NonStop-UX NCC 3.20
17587 lt_prog_compiler_pic_CXX='-KPIC'
17588 ;;
17589 *)
17590 ;;
17591 esac
17592 ;;
17593 vxworks*)
17594 ;;
17595 *)
17596 lt_prog_compiler_can_build_shared_CXX=no
17597 ;;
17598 esac
17599 fi
17600
17601case $host_os in
17602 # For platforms which do not support PIC, -DPIC is meaningless:
17603 *djgpp*)
17604 lt_prog_compiler_pic_CXX=
17605 ;;
17606 *)
17607 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17608 ;;
17609esac
17610{ $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
17611$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
17612
17613
17614
17615#
17616# Check to make sure the PIC flag actually works.
17617#
17618if test -n "$lt_prog_compiler_pic_CXX"; then
17619 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17620$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17621if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
17622 $as_echo_n "(cached) " >&6
17623else
17624 lt_cv_prog_compiler_pic_works_CXX=no
17625 ac_outfile=conftest.$ac_objext
17626 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17627 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
17628 # Insert the option either (1) after the last *FLAGS variable, or
17629 # (2) before a word containing "conftest.", or (3) at the end.
17630 # Note that $ac_compile itself does not contain backslashes and begins
17631 # with a dollar sign (not a hyphen), so the echo should work correctly.
17632 # The option is referenced via a variable to avoid confusing sed.
17633 lt_compile=`echo "$ac_compile" | $SED \
17634 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17635 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17636 -e 's:$: $lt_compiler_flag:'`
17637 (eval echo "\"\$as_me:17637: $lt_compile\"" >&5)
17638 (eval "$lt_compile" 2>conftest.err)
17639 ac_status=$?
17640 cat conftest.err >&5
17641 echo "$as_me:17641: \$? = $ac_status" >&5
17642 if (exit $ac_status) && test -s "$ac_outfile"; then
17643 # The compiler can only warn and ignore the option if not recognized
17644 # So say no if there are warnings other than the usual output.
17645 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17646 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17647 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17648 lt_cv_prog_compiler_pic_works_CXX=yes
17649 fi
17650 fi
17651 $RM conftest*
17652
17653fi
17654{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17655$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17656
17657if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
17658 case $lt_prog_compiler_pic_CXX in
17659 "" | " "*) ;;
17660 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17661 esac
17662else
17663 lt_prog_compiler_pic_CXX=
17664 lt_prog_compiler_can_build_shared_CXX=no
17665fi
17666
17667fi
17668
17669
17670
17671#
17672# Check to make sure the static flag actually works.
17673#
17674wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17675{ $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17676$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17677if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
17678 $as_echo_n "(cached) " >&6
17679else
17680 lt_cv_prog_compiler_static_works_CXX=no
17681 save_LDFLAGS="$LDFLAGS"
17682 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17683 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17684 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17685 # The linker can only warn and ignore the option if not recognized
17686 # So say no if there are warnings
17687 if test -s conftest.err; then
17688 # Append any errors to the config.log.
17689 cat conftest.err 1>&5
17690 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17691 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17692 if diff conftest.exp conftest.er2 >/dev/null; then
17693 lt_cv_prog_compiler_static_works_CXX=yes
17694 fi
17695 else
17696 lt_cv_prog_compiler_static_works_CXX=yes
17697 fi
17698 fi
17699 $RM -r conftest*
17700 LDFLAGS="$save_LDFLAGS"
17701
17702fi
17703{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17704$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17705
17706if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
17707 :
17708else
17709 lt_prog_compiler_static_CXX=
17710fi
17711
17712
17713
17714
17715 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17716$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17717if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
17718 $as_echo_n "(cached) " >&6
17719else
17720 lt_cv_prog_compiler_c_o_CXX=no
17721 $RM -r conftest 2>/dev/null
17722 mkdir conftest
17723 cd conftest
17724 mkdir out
17725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17726
17727 lt_compiler_flag="-o out/conftest2.$ac_objext"
17728 # Insert the option either (1) after the last *FLAGS variable, or
17729 # (2) before a word containing "conftest.", or (3) at the end.
17730 # Note that $ac_compile itself does not contain backslashes and begins
17731 # with a dollar sign (not a hyphen), so the echo should work correctly.
17732 lt_compile=`echo "$ac_compile" | $SED \
17733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17735 -e 's:$: $lt_compiler_flag:'`
17736 (eval echo "\"\$as_me:17736: $lt_compile\"" >&5)
17737 (eval "$lt_compile" 2>out/conftest.err)
17738 ac_status=$?
17739 cat out/conftest.err >&5
17740 echo "$as_me:17740: \$? = $ac_status" >&5
17741 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17742 then
17743 # The compiler can only warn and ignore the option if not recognized
17744 # So say no if there are warnings
17745 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17746 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17747 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17748 lt_cv_prog_compiler_c_o_CXX=yes
17749 fi
17750 fi
17751 chmod u+w . 2>&5
17752 $RM conftest*
17753 # SGI C++ compiler will create directory out/ii_files/ for
17754 # template instantiation
17755 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17756 $RM out/* && rmdir out
17757 cd ..
17758 $RM -r conftest
17759 $RM conftest*
17760
17761fi
17762{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17763$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17764
17765
17766
17767 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17768$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17769if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
17770 $as_echo_n "(cached) " >&6
17771else
17772 lt_cv_prog_compiler_c_o_CXX=no
17773 $RM -r conftest 2>/dev/null
17774 mkdir conftest
17775 cd conftest
17776 mkdir out
17777 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17778
17779 lt_compiler_flag="-o out/conftest2.$ac_objext"
17780 # Insert the option either (1) after the last *FLAGS variable, or
17781 # (2) before a word containing "conftest.", or (3) at the end.
17782 # Note that $ac_compile itself does not contain backslashes and begins
17783 # with a dollar sign (not a hyphen), so the echo should work correctly.
17784 lt_compile=`echo "$ac_compile" | $SED \
17785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17787 -e 's:$: $lt_compiler_flag:'`
17788 (eval echo "\"\$as_me:17788: $lt_compile\"" >&5)
17789 (eval "$lt_compile" 2>out/conftest.err)
17790 ac_status=$?
17791 cat out/conftest.err >&5
17792 echo "$as_me:17792: \$? = $ac_status" >&5
17793 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17794 then
17795 # The compiler can only warn and ignore the option if not recognized
17796 # So say no if there are warnings
17797 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17798 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17799 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17800 lt_cv_prog_compiler_c_o_CXX=yes
17801 fi
17802 fi
17803 chmod u+w . 2>&5
17804 $RM conftest*
17805 # SGI C++ compiler will create directory out/ii_files/ for
17806 # template instantiation
17807 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17808 $RM out/* && rmdir out
17809 cd ..
17810 $RM -r conftest
17811 $RM conftest*
17812
17813fi
17814{ $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17815$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17816
17817
17818
17819
17820hard_links="nottested"
17821if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17822 # do not overwrite the value of need_locks provided by the user
17823 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17824$as_echo_n "checking if we can lock with hard links... " >&6; }
17825 hard_links=yes
17826 $RM conftest*
17827 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17828 touch conftest.a
17829 ln conftest.a conftest.b 2>&5 || hard_links=no
17830 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17831 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17832$as_echo "$hard_links" >&6; }
17833 if test "$hard_links" = no; then
17834 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17835$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17836 need_locks=warn
17837 fi
17838else
17839 need_locks=no
17840fi
17841
17842
17843
17844 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17845$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17846
17847 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17848 case $host_os in
17849 aix[4-9]*)
17850 # If we're using GNU nm, then we don't want the "-C" option.
17851 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17852 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17853 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'
17854 else
17855 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'
17856 fi
17857 ;;
17858 pw32*)
17859 export_symbols_cmds_CXX="$ltdll_cmds"
17860 ;;
17861 cygwin* | mingw* | cegcc*)
17862 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'
17863 ;;
17864 *)
17865 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17866 ;;
17867 esac
17868 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17869
17870{ $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17871$as_echo "$ld_shlibs_CXX" >&6; }
17872test "$ld_shlibs_CXX" = no && can_build_shared=no
17873
17874with_gnu_ld_CXX=$with_gnu_ld
17875
17876
17877
17878
17879
17880
17881#
17882# Do we need to explicitly link libc?
17883#
17884case "x$archive_cmds_need_lc_CXX" in
17885x|xyes)
17886 # Assume -lc should be added
17887 archive_cmds_need_lc_CXX=yes
17888
17889 if test "$enable_shared" = yes && test "$GCC" = yes; then
17890 case $archive_cmds_CXX in
17891 *'~'*)
17892 # FIXME: we may have to deal with multi-command sequences.
17893 ;;
17894 '$CC '*)
17895 # Test whether the compiler implicitly links with -lc since on some
17896 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17897 # to ld, don't add -lc before -lgcc.
17898 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17899$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17900 $RM conftest*
17901 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17902
17903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17904 (eval $ac_compile) 2>&5
17905 ac_status=$?
17906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); } 2>conftest.err; then
17908 soname=conftest
17909 lib=conftest
17910 libobjs=conftest.$ac_objext
17911 deplibs=
17912 wl=$lt_prog_compiler_wl_CXX
17913 pic_flag=$lt_prog_compiler_pic_CXX
17914 compiler_flags=-v
17915 linker_flags=-v
17916 verstring=
17917 output_objdir=.
17918 libname=conftest
17919 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17920 allow_undefined_flag_CXX=
17921 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
17922 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17923 ac_status=$?
17924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17925 (exit $ac_status); }
17926 then
17927 archive_cmds_need_lc_CXX=no
17928 else
17929 archive_cmds_need_lc_CXX=yes
17930 fi
17931 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17932 else
17933 cat conftest.err 1>&5
17934 fi
17935 $RM conftest*
17936 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17937$as_echo "$archive_cmds_need_lc_CXX" >&6; }
17938 ;;
17939 esac
17940 fi
17941 ;;
17942esac
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18008$as_echo_n "checking dynamic linker characteristics... " >&6; }
18009
18010library_names_spec=
18011libname_spec='lib$name'
18012soname_spec=
18013shrext_cmds=".so"
18014postinstall_cmds=
18015postuninstall_cmds=
18016finish_cmds=
18017finish_eval=
18018shlibpath_var=
18019shlibpath_overrides_runpath=unknown
18020version_type=none
18021dynamic_linker="$host_os ld.so"
18022sys_lib_dlsearch_path_spec="/lib /usr/lib"
18023need_lib_prefix=unknown
18024hardcode_into_libs=no
18025
18026# when you set need_version to no, make sure it does not cause -set_version
18027# flags to be left without arguments
18028need_version=unknown
18029
18030case $host_os in
18031aix3*)
18032 version_type=linux
18033 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18034 shlibpath_var=LIBPATH
18035
18036 # AIX 3 has no versioning support, so we append a major version to the name.
18037 soname_spec='${libname}${release}${shared_ext}$major'
18038 ;;
18039
18040aix[4-9]*)
18041 version_type=linux
18042 need_lib_prefix=no
18043 need_version=no
18044 hardcode_into_libs=yes
18045 if test "$host_cpu" = ia64; then
18046 # AIX 5 supports IA64
18047 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18048 shlibpath_var=LD_LIBRARY_PATH
18049 else
18050 # With GCC up to 2.95.x, collect2 would create an import file
18051 # for dependence libraries. The import file would start with
18052 # the line `#! .'. This would cause the generated library to
18053 # depend on `.', always an invalid library. This was fixed in
18054 # development snapshots of GCC prior to 3.0.
18055 case $host_os in
18056 aix4 | aix4.[01] | aix4.[01].*)
18057 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18058 echo ' yes '
18059 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18060 :
18061 else
18062 can_build_shared=no
18063 fi
18064 ;;
18065 esac
18066 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18067 # soname into executable. Probably we can add versioning support to
18068 # collect2, so additional links can be useful in future.
18069 if test "$aix_use_runtimelinking" = yes; then
18070 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18071 # instead of lib<name>.a to let people know that these are not
18072 # typical AIX shared libraries.
18073 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18074 else
18075 # We preserve .a as extension for shared libraries through AIX4.2
18076 # and later when we are not doing run time linking.
18077 library_names_spec='${libname}${release}.a $libname.a'
18078 soname_spec='${libname}${release}${shared_ext}$major'
18079 fi
18080 shlibpath_var=LIBPATH
18081 fi
18082 ;;
18083
18084amigaos*)
18085 case $host_cpu in
18086 powerpc)
18087 # Since July 2007 AmigaOS4 officially supports .so libraries.
18088 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18090 ;;
18091 m68k)
18092 library_names_spec='$libname.ixlibrary $libname.a'
18093 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18094 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'
18095 ;;
18096 esac
18097 ;;
18098
18099beos*)
18100 library_names_spec='${libname}${shared_ext}'
18101 dynamic_linker="$host_os ld.so"
18102 shlibpath_var=LIBRARY_PATH
18103 ;;
18104
18105bsdi[45]*)
18106 version_type=linux
18107 need_version=no
18108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18109 soname_spec='${libname}${release}${shared_ext}$major'
18110 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18111 shlibpath_var=LD_LIBRARY_PATH
18112 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18113 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18114 # the default ld.so.conf also contains /usr/contrib/lib and
18115 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18116 # libtool to hard-code these into programs
18117 ;;
18118
18119cygwin* | mingw* | pw32* | cegcc*)
18120 version_type=windows
18121 shrext_cmds=".dll"
18122 need_version=no
18123 need_lib_prefix=no
18124
18125 case $GCC,$host_os in
18126 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
18127 library_names_spec='$libname.dll.a'
18128 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18129 postinstall_cmds='base_file=`basename \${file}`~
18130 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18131 dldir=$destdir/`dirname \$dlpath`~
18132 test -d \$dldir || mkdir -p \$dldir~
18133 $install_prog $dir/$dlname \$dldir/$dlname~
18134 chmod a+x \$dldir/$dlname~
18135 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18136 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18137 fi'
18138 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18139 dlpath=$dir/\$dldll~
18140 $RM \$dlpath'
18141 shlibpath_overrides_runpath=yes
18142
18143 case $host_os in
18144 cygwin*)
18145 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18146 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18147 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18148 ;;
18149 mingw* | cegcc*)
18150 # MinGW DLLs use traditional 'lib' prefix
18151 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18152 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18153 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18154 # It is most probably a Windows format PATH printed by
18155 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18156 # path with ; separators, and with drive letters. We can handle the
18157 # drive letters (cygwin fileutils understands them), so leave them,
18158 # especially as we might pass files found there to a mingw objdump,
18159 # which wouldn't understand a cygwinified path. Ahh.
18160 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18161 else
18162 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18163 fi
18164 ;;
18165 pw32*)
18166 # pw32 DLLs use 'pw' prefix rather than 'lib'
18167 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18168 ;;
18169 esac
18170 ;;
18171
18172 *)
18173 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18174 ;;
18175 esac
18176 dynamic_linker='Win32 ld.exe'
18177 # FIXME: first we should search . and the directory the executable is in
18178 shlibpath_var=PATH
18179 ;;
18180
18181darwin* | rhapsody*)
18182 dynamic_linker="$host_os dyld"
18183 version_type=darwin
18184 need_lib_prefix=no
18185 need_version=no
18186 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18187 soname_spec='${libname}${release}${major}$shared_ext'
18188 shlibpath_overrides_runpath=yes
18189 shlibpath_var=DYLD_LIBRARY_PATH
18190 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18191
18192 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18193 ;;
18194
18195dgux*)
18196 version_type=linux
18197 need_lib_prefix=no
18198 need_version=no
18199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18200 soname_spec='${libname}${release}${shared_ext}$major'
18201 shlibpath_var=LD_LIBRARY_PATH
18202 ;;
18203
18204freebsd1*)
18205 dynamic_linker=no
18206 ;;
18207
18208freebsd* | dragonfly*)
18209 # DragonFly does not have aout. When/if they implement a new
18210 # versioning mechanism, adjust this.
18211 if test -x /usr/bin/objformat; then
18212 objformat=`/usr/bin/objformat`
18213 else
18214 case $host_os in
18215 freebsd[123]*) objformat=aout ;;
18216 *) objformat=elf ;;
18217 esac
18218 fi
18219 version_type=freebsd-$objformat
18220 case $version_type in
18221 freebsd-elf*)
18222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18223 need_version=no
18224 need_lib_prefix=no
18225 ;;
18226 freebsd-*)
18227 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18228 need_version=yes
18229 ;;
18230 esac
18231 shlibpath_var=LD_LIBRARY_PATH
18232 case $host_os in
18233 freebsd2*)
18234 shlibpath_overrides_runpath=yes
18235 ;;
18236 freebsd3.[01]* | freebsdelf3.[01]*)
18237 shlibpath_overrides_runpath=yes
18238 hardcode_into_libs=yes
18239 ;;
18240 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18241 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18242 shlibpath_overrides_runpath=no
18243 hardcode_into_libs=yes
18244 ;;
18245 *) # from 4.6 on, and DragonFly
18246 shlibpath_overrides_runpath=yes
18247 hardcode_into_libs=yes
18248 ;;
18249 esac
18250 ;;
18251
18252gnu*)
18253 version_type=linux
18254 need_lib_prefix=no
18255 need_version=no
18256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18257 soname_spec='${libname}${release}${shared_ext}$major'
18258 shlibpath_var=LD_LIBRARY_PATH
18259 hardcode_into_libs=yes
18260 ;;
18261
18262hpux9* | hpux10* | hpux11*)
18263 # Give a soname corresponding to the major version so that dld.sl refuses to
18264 # link against other versions.
18265 version_type=sunos
18266 need_lib_prefix=no
18267 need_version=no
18268 case $host_cpu in
18269 ia64*)
18270 shrext_cmds='.so'
18271 hardcode_into_libs=yes
18272 dynamic_linker="$host_os dld.so"
18273 shlibpath_var=LD_LIBRARY_PATH
18274 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18276 soname_spec='${libname}${release}${shared_ext}$major'
18277 if test "X$HPUX_IA64_MODE" = X32; then
18278 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18279 else
18280 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18281 fi
18282 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18283 ;;
18284 hppa*64*)
18285 shrext_cmds='.sl'
18286 hardcode_into_libs=yes
18287 dynamic_linker="$host_os dld.sl"
18288 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18289 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18291 soname_spec='${libname}${release}${shared_ext}$major'
18292 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18293 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18294 ;;
18295 *)
18296 shrext_cmds='.sl'
18297 dynamic_linker="$host_os dld.sl"
18298 shlibpath_var=SHLIB_PATH
18299 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18301 soname_spec='${libname}${release}${shared_ext}$major'
18302 ;;
18303 esac
18304 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18305 postinstall_cmds='chmod 555 $lib'
18306 ;;
18307
18308interix[3-9]*)
18309 version_type=linux
18310 need_lib_prefix=no
18311 need_version=no
18312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18313 soname_spec='${libname}${release}${shared_ext}$major'
18314 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18315 shlibpath_var=LD_LIBRARY_PATH
18316 shlibpath_overrides_runpath=no
18317 hardcode_into_libs=yes
18318 ;;
18319
18320irix5* | irix6* | nonstopux*)
18321 case $host_os in
18322 nonstopux*) version_type=nonstopux ;;
18323 *)
18324 if test "$lt_cv_prog_gnu_ld" = yes; then
18325 version_type=linux
18326 else
18327 version_type=irix
18328 fi ;;
18329 esac
18330 need_lib_prefix=no
18331 need_version=no
18332 soname_spec='${libname}${release}${shared_ext}$major'
18333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18334 case $host_os in
18335 irix5* | nonstopux*)
18336 libsuff= shlibsuff=
18337 ;;
18338 *)
18339 case $LD in # libtool.m4 will add one of these switches to LD
18340 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18341 libsuff= shlibsuff= libmagic=32-bit;;
18342 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18343 libsuff=32 shlibsuff=N32 libmagic=N32;;
18344 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18345 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18346 *) libsuff= shlibsuff= libmagic=never-match;;
18347 esac
18348 ;;
18349 esac
18350 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18351 shlibpath_overrides_runpath=no
18352 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18353 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18354 hardcode_into_libs=yes
18355 ;;
18356
18357# No shared lib support for Linux oldld, aout, or coff.
18358linux*oldld* | linux*aout* | linux*coff*)
18359 dynamic_linker=no
18360 ;;
18361
18362# This must be Linux ELF.
18363linux* | k*bsd*-gnu)
18364 version_type=linux
18365 need_lib_prefix=no
18366 need_version=no
18367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18368 soname_spec='${libname}${release}${shared_ext}$major'
18369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18370 shlibpath_var=LD_LIBRARY_PATH
18371 shlibpath_overrides_runpath=no
18372 # Some binutils ld are patched to set DT_RUNPATH
18373 save_LDFLAGS=$LDFLAGS
18374 save_libdir=$libdir
18375 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18376 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18377 cat >conftest.$ac_ext <<_ACEOF
18378/* confdefs.h. */
18379_ACEOF
18380cat confdefs.h >>conftest.$ac_ext
18381cat >>conftest.$ac_ext <<_ACEOF
18382/* end confdefs.h. */
18383
18384int
18385main ()
18386{
18387
18388 ;
18389 return 0;
18390}
18391_ACEOF
18392rm -f conftest.$ac_objext conftest$ac_exeext
18393if { (ac_try="$ac_link"
18394case "(($ac_try" in
18395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18396 *) ac_try_echo=$ac_try;;
18397esac
18398eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18399$as_echo "$ac_try_echo") >&5
18400 (eval "$ac_link") 2>conftest.er1
18401 ac_status=$?
18402 grep -v '^ *+' conftest.er1 >conftest.err
18403 rm -f conftest.er1
18404 cat conftest.err >&5
18405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); } && {
18407 test -z "$ac_cxx_werror_flag" ||
18408 test ! -s conftest.err
18409 } && test -s conftest$ac_exeext && {
18410 test "$cross_compiling" = yes ||
18411 $as_test_x conftest$ac_exeext
18412 }; then
18413 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
18414 shlibpath_overrides_runpath=yes
18415fi
18416
18417else
18418 $as_echo "$as_me: failed program was:" >&5
18419sed 's/^/| /' conftest.$ac_ext >&5
18420
18421
18422fi
18423
18424rm -rf conftest.dSYM
18425rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18426 conftest$ac_exeext conftest.$ac_ext
18427 LDFLAGS=$save_LDFLAGS
18428 libdir=$save_libdir
18429
18430 # This implies no fast_install, which is unacceptable.
18431 # Some rework will be needed to allow for fast_install
18432 # before this can be enabled.
18433 hardcode_into_libs=yes
18434
18435 # Add ABI-specific directories to the system library path.
18436 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18437
18438 # Append ld.so.conf contents to the search path
18439 if test -f /etc/ld.so.conf; then
18440 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' ' '`
18441 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18442 fi
18443
18444 # We used to test for /lib/ld.so.1 and disable shared libraries on
18445 # powerpc, because MkLinux only supported shared libraries with the
18446 # GNU dynamic linker. Since this was broken with cross compilers,
18447 # most powerpc-linux boxes support dynamic linking these days and
18448 # people can always --disable-shared, the test was removed, and we
18449 # assume the GNU/Linux dynamic linker is in use.
18450 dynamic_linker='GNU/Linux ld.so'
18451 ;;
18452
18453netbsd*)
18454 version_type=sunos
18455 need_lib_prefix=no
18456 need_version=no
18457 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18459 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18460 dynamic_linker='NetBSD (a.out) ld.so'
18461 else
18462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18463 soname_spec='${libname}${release}${shared_ext}$major'
18464 dynamic_linker='NetBSD ld.elf_so'
18465 fi
18466 shlibpath_var=LD_LIBRARY_PATH
18467 shlibpath_overrides_runpath=yes
18468 hardcode_into_libs=yes
18469 ;;
18470
18471newsos6)
18472 version_type=linux
18473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18474 shlibpath_var=LD_LIBRARY_PATH
18475 shlibpath_overrides_runpath=yes
18476 ;;
18477
18478*nto* | *qnx*)
18479 version_type=qnx
18480 need_lib_prefix=no
18481 need_version=no
18482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18483 soname_spec='${libname}${release}${shared_ext}$major'
18484 shlibpath_var=LD_LIBRARY_PATH
18485 shlibpath_overrides_runpath=no
18486 hardcode_into_libs=yes
18487 dynamic_linker='ldqnx.so'
18488 ;;
18489
18490openbsd*)
18491 version_type=sunos
18492 sys_lib_dlsearch_path_spec="/usr/lib"
18493 need_lib_prefix=no
18494 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18495 case $host_os in
18496 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18497 *) need_version=no ;;
18498 esac
18499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18500 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18501 shlibpath_var=LD_LIBRARY_PATH
18502 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18503 case $host_os in
18504 openbsd2.[89] | openbsd2.[89].*)
18505 shlibpath_overrides_runpath=no
18506 ;;
18507 *)
18508 shlibpath_overrides_runpath=yes
18509 ;;
18510 esac
18511 else
18512 shlibpath_overrides_runpath=yes
18513 fi
18514 ;;
18515
18516os2*)
18517 libname_spec='$name'
18518 shrext_cmds=".dll"
18519 need_lib_prefix=no
18520 library_names_spec='$libname${shared_ext} $libname.a'
18521 dynamic_linker='OS/2 ld.exe'
18522 shlibpath_var=LIBPATH
18523 ;;
18524
18525osf3* | osf4* | osf5*)
18526 version_type=osf
18527 need_lib_prefix=no
18528 need_version=no
18529 soname_spec='${libname}${release}${shared_ext}$major'
18530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18531 shlibpath_var=LD_LIBRARY_PATH
18532 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18533 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18534 ;;
18535
18536rdos*)
18537 dynamic_linker=no
18538 ;;
18539
18540solaris*)
18541 version_type=linux
18542 need_lib_prefix=no
18543 need_version=no
18544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18545 soname_spec='${libname}${release}${shared_ext}$major'
18546 shlibpath_var=LD_LIBRARY_PATH
18547 shlibpath_overrides_runpath=yes
18548 hardcode_into_libs=yes
18549 # ldd complains unless libraries are executable
18550 postinstall_cmds='chmod +x $lib'
18551 ;;
18552
18553sunos4*)
18554 version_type=sunos
18555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18556 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18557 shlibpath_var=LD_LIBRARY_PATH
18558 shlibpath_overrides_runpath=yes
18559 if test "$with_gnu_ld" = yes; then
18560 need_lib_prefix=no
18561 fi
18562 need_version=yes
18563 ;;
18564
18565sysv4 | sysv4.3*)
18566 version_type=linux
18567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18568 soname_spec='${libname}${release}${shared_ext}$major'
18569 shlibpath_var=LD_LIBRARY_PATH
18570 case $host_vendor in
18571 sni)
18572 shlibpath_overrides_runpath=no
18573 need_lib_prefix=no
18574 runpath_var=LD_RUN_PATH
18575 ;;
18576 siemens)
18577 need_lib_prefix=no
18578 ;;
18579 motorola)
18580 need_lib_prefix=no
18581 need_version=no
18582 shlibpath_overrides_runpath=no
18583 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18584 ;;
18585 esac
18586 ;;
18587
18588sysv4*MP*)
18589 if test -d /usr/nec ;then
18590 version_type=linux
18591 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18592 soname_spec='$libname${shared_ext}.$major'
18593 shlibpath_var=LD_LIBRARY_PATH
18594 fi
18595 ;;
18596
18597sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18598 version_type=freebsd-elf
18599 need_lib_prefix=no
18600 need_version=no
18601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18602 soname_spec='${libname}${release}${shared_ext}$major'
18603 shlibpath_var=LD_LIBRARY_PATH
18604 shlibpath_overrides_runpath=yes
18605 hardcode_into_libs=yes
18606 if test "$with_gnu_ld" = yes; then
18607 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18608 else
18609 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18610 case $host_os in
18611 sco3.2v5*)
18612 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18613 ;;
18614 esac
18615 fi
18616 sys_lib_dlsearch_path_spec='/usr/lib'
18617 ;;
18618
18619tpf*)
18620 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18621 version_type=linux
18622 need_lib_prefix=no
18623 need_version=no
18624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18625 shlibpath_var=LD_LIBRARY_PATH
18626 shlibpath_overrides_runpath=no
18627 hardcode_into_libs=yes
18628 ;;
18629
18630uts4*)
18631 version_type=linux
18632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18633 soname_spec='${libname}${release}${shared_ext}$major'
18634 shlibpath_var=LD_LIBRARY_PATH
18635 ;;
18636
18637*)
18638 dynamic_linker=no
18639 ;;
18640esac
18641{ $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18642$as_echo "$dynamic_linker" >&6; }
18643test "$dynamic_linker" = no && can_build_shared=no
18644
18645variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18646if test "$GCC" = yes; then
18647 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18648fi
18649
18650if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18651 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18652fi
18653if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18654 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18655fi
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689
18690
18691
18692 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18693$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18694hardcode_action_CXX=
18695if test -n "$hardcode_libdir_flag_spec_CXX" ||
18696 test -n "$runpath_var_CXX" ||
18697 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18698
18699 # We can hardcode non-existent directories.
18700 if test "$hardcode_direct_CXX" != no &&
18701 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18702 # have to relink, otherwise we might link with an installed library
18703 # when we should be linking with a yet-to-be-installed one
18704 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18705 test "$hardcode_minus_L_CXX" != no; then
18706 # Linking always hardcodes the temporary library directory.
18707 hardcode_action_CXX=relink
18708 else
18709 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18710 hardcode_action_CXX=immediate
18711 fi
18712else
18713 # We cannot hardcode anything, or else we can only hardcode existing
18714 # directories.
18715 hardcode_action_CXX=unsupported
18716fi
18717{ $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
18718$as_echo "$hardcode_action_CXX" >&6; }
18719
18720if test "$hardcode_action_CXX" = relink ||
18721 test "$inherit_rpath_CXX" = yes; then
18722 # Fast installation is not supported
18723 enable_fast_install=no
18724elif test "$shlibpath_overrides_runpath" = yes ||
18725 test "$enable_shared" = no; then
18726 # Fast installation is not necessary
18727 enable_fast_install=needless
18728fi
18729
18730
18731
18732
18733
18734
18735
18736 fi # test -n "$compiler"
18737
18738 CC=$lt_save_CC
18739 LDCXX=$LD
18740 LD=$lt_save_LD
18741 GCC=$lt_save_GCC
18742 with_gnu_ld=$lt_save_with_gnu_ld
18743 lt_cv_path_LDCXX=$lt_cv_path_LD
18744 lt_cv_path_LD=$lt_save_path_LD
18745 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18746 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18747fi # test "$_lt_caught_CXX_error" != yes
18748
18749ac_ext=c
18750ac_cpp='$CPP $CPPFLAGS'
18751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18753ac_compiler_gnu=$ac_cv_c_compiler_gnu
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765
18766
18767 ac_config_commands="$ac_config_commands libtool"
18768
18769
18770
18771
18772# Only expand once:
18773
18774
18775
18776
18777
18778# Configure libltdl
18779
18780
18781
18782
18783
18784
18785
18786
18787{ $as_echo "$as_me:$LINENO: checking which extension is used for runtime loadable modules" >&5
18788$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
18789if test "${libltdl_cv_shlibext+set}" = set; then
18790 $as_echo_n "(cached) " >&6
18791else
18792
18793module=yes
18794eval libltdl_cv_shlibext=$shrext_cmds
18795
18796fi
18797{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
18798$as_echo "$libltdl_cv_shlibext" >&6; }
18799if test -n "$libltdl_cv_shlibext"; then
18800
18801cat >>confdefs.h <<_ACEOF
18802#define LT_MODULE_EXT "$libltdl_cv_shlibext"
18803_ACEOF
18804
18805fi
18806
18807{ $as_echo "$as_me:$LINENO: checking which variable specifies run-time module search path" >&5
18808$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
18809if test "${lt_cv_module_path_var+set}" = set; then
18810 $as_echo_n "(cached) " >&6
18811else
18812 lt_cv_module_path_var="$shlibpath_var"
18813fi
18814{ $as_echo "$as_me:$LINENO: result: $lt_cv_module_path_var" >&5
18815$as_echo "$lt_cv_module_path_var" >&6; }
18816if test -n "$lt_cv_module_path_var"; then
18817
18818cat >>confdefs.h <<_ACEOF
18819#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
18820_ACEOF
18821
18822fi
18823
18824{ $as_echo "$as_me:$LINENO: checking for the default library search path" >&5
18825$as_echo_n "checking for the default library search path... " >&6; }
18826if test "${lt_cv_sys_dlsearch_path+set}" = set; then
18827 $as_echo_n "(cached) " >&6
18828else
18829 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
18830fi
18831{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlsearch_path" >&5
18832$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
18833if test -n "$lt_cv_sys_dlsearch_path"; then
18834 sys_dlsearch_path=
18835 for dir in $lt_cv_sys_dlsearch_path; do
18836 if test -z "$sys_dlsearch_path"; then
18837 sys_dlsearch_path="$dir"
18838 else
18839 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
18840 fi
18841 done
18842
18843cat >>confdefs.h <<_ACEOF
18844#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
18845_ACEOF
18846
18847fi
18848
18849
18850LT_DLLOADERS=
18851
18852
18853ac_ext=c
18854ac_cpp='$CPP $CPPFLAGS'
18855ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18856ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18857ac_compiler_gnu=$ac_cv_c_compiler_gnu
18858
18859
18860LIBADD_DLOPEN=
18861{ $as_echo "$as_me:$LINENO: checking for library containing dlopen" >&5
18862$as_echo_n "checking for library containing dlopen... " >&6; }
18863if test "${ac_cv_search_dlopen+set}" = set; then
18864 $as_echo_n "(cached) " >&6
18865else
18866 ac_func_search_save_LIBS=$LIBS
18867cat >conftest.$ac_ext <<_ACEOF
18868/* confdefs.h. */
18869_ACEOF
18870cat confdefs.h >>conftest.$ac_ext
18871cat >>conftest.$ac_ext <<_ACEOF
18872/* end confdefs.h. */
18873
18874/* Override any GCC internal prototype to avoid an error.
18875 Use char because int might match the return type of a GCC
18876 builtin and then its argument prototype would still apply. */
18877#ifdef __cplusplus
18878extern "C"
18879#endif
18880char dlopen ();
18881int
18882main ()
18883{
18884return dlopen ();
18885 ;
18886 return 0;
18887}
18888_ACEOF
18889for ac_lib in '' dl; do
18890 if test -z "$ac_lib"; then
18891 ac_res="none required"
18892 else
18893 ac_res=-l$ac_lib
18894 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18895 fi
18896 rm -f conftest.$ac_objext conftest$ac_exeext
18897if { (ac_try="$ac_link"
18898case "(($ac_try" in
18899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18900 *) ac_try_echo=$ac_try;;
18901esac
18902eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18903$as_echo "$ac_try_echo") >&5
18904 (eval "$ac_link") 2>conftest.er1
18905 ac_status=$?
18906 grep -v '^ *+' conftest.er1 >conftest.err
18907 rm -f conftest.er1
18908 cat conftest.err >&5
18909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18910 (exit $ac_status); } && {
18911 test -z "$ac_c_werror_flag" ||
18912 test ! -s conftest.err
18913 } && test -s conftest$ac_exeext && {
18914 test "$cross_compiling" = yes ||
18915 $as_test_x conftest$ac_exeext
18916 }; then
18917 ac_cv_search_dlopen=$ac_res
18918else
18919 $as_echo "$as_me: failed program was:" >&5
18920sed 's/^/| /' conftest.$ac_ext >&5
18921
18922
18923fi
18924
18925rm -rf conftest.dSYM
18926rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18927 conftest$ac_exeext
18928 if test "${ac_cv_search_dlopen+set}" = set; then
18929 break
18930fi
18931done
18932if test "${ac_cv_search_dlopen+set}" = set; then
18933 :
18934else
18935 ac_cv_search_dlopen=no
18936fi
18937rm conftest.$ac_ext
18938LIBS=$ac_func_search_save_LIBS
18939fi
18940{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
18941$as_echo "$ac_cv_search_dlopen" >&6; }
18942ac_res=$ac_cv_search_dlopen
18943if test "$ac_res" != no; then
18944 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18945
18946cat >>confdefs.h <<\_ACEOF
18947#define HAVE_LIBDL 1
18948_ACEOF
18949
18950 if test "$ac_cv_search_dlopen" != "none required" ; then
18951 LIBADD_DLOPEN="-ldl"
18952 fi
18953 libltdl_cv_lib_dl_dlopen="yes"
18954 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
18955else
18956 cat >conftest.$ac_ext <<_ACEOF
18957/* confdefs.h. */
18958_ACEOF
18959cat confdefs.h >>conftest.$ac_ext
18960cat >>conftest.$ac_ext <<_ACEOF
18961/* end confdefs.h. */
18962#if HAVE_DLFCN_H
18963# include <dlfcn.h>
18964#endif
18965
18966int
18967main ()
18968{
18969dlopen(0, 0);
18970 ;
18971 return 0;
18972}
18973_ACEOF
18974rm -f conftest.$ac_objext conftest$ac_exeext
18975if { (ac_try="$ac_link"
18976case "(($ac_try" in
18977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978 *) ac_try_echo=$ac_try;;
18979esac
18980eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18981$as_echo "$ac_try_echo") >&5
18982 (eval "$ac_link") 2>conftest.er1
18983 ac_status=$?
18984 grep -v '^ *+' conftest.er1 >conftest.err
18985 rm -f conftest.er1
18986 cat conftest.err >&5
18987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988 (exit $ac_status); } && {
18989 test -z "$ac_c_werror_flag" ||
18990 test ! -s conftest.err
18991 } && test -s conftest$ac_exeext && {
18992 test "$cross_compiling" = yes ||
18993 $as_test_x conftest$ac_exeext
18994 }; then
18995
18996cat >>confdefs.h <<\_ACEOF
18997#define HAVE_LIBDL 1
18998_ACEOF
18999
19000 libltdl_cv_func_dlopen="yes"
19001 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19002else
19003 $as_echo "$as_me: failed program was:" >&5
19004sed 's/^/| /' conftest.$ac_ext >&5
19005
19006 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19007$as_echo_n "checking for dlopen in -lsvld... " >&6; }
19008if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19009 $as_echo_n "(cached) " >&6
19010else
19011 ac_check_lib_save_LIBS=$LIBS
19012LIBS="-lsvld $LIBS"
19013cat >conftest.$ac_ext <<_ACEOF
19014/* confdefs.h. */
19015_ACEOF
19016cat confdefs.h >>conftest.$ac_ext
19017cat >>conftest.$ac_ext <<_ACEOF
19018/* end confdefs.h. */
19019
19020/* Override any GCC internal prototype to avoid an error.
19021 Use char because int might match the return type of a GCC
19022 builtin and then its argument prototype would still apply. */
19023#ifdef __cplusplus
19024extern "C"
19025#endif
19026char dlopen ();
19027int
19028main ()
19029{
19030return dlopen ();
19031 ;
19032 return 0;
19033}
19034_ACEOF
19035rm -f conftest.$ac_objext conftest$ac_exeext
19036if { (ac_try="$ac_link"
19037case "(($ac_try" in
19038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19039 *) ac_try_echo=$ac_try;;
19040esac
19041eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19042$as_echo "$ac_try_echo") >&5
19043 (eval "$ac_link") 2>conftest.er1
19044 ac_status=$?
19045 grep -v '^ *+' conftest.er1 >conftest.err
19046 rm -f conftest.er1
19047 cat conftest.err >&5
19048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); } && {
19050 test -z "$ac_c_werror_flag" ||
19051 test ! -s conftest.err
19052 } && test -s conftest$ac_exeext && {
19053 test "$cross_compiling" = yes ||
19054 $as_test_x conftest$ac_exeext
19055 }; then
19056 ac_cv_lib_svld_dlopen=yes
19057else
19058 $as_echo "$as_me: failed program was:" >&5
19059sed 's/^/| /' conftest.$ac_ext >&5
19060
19061 ac_cv_lib_svld_dlopen=no
19062fi
19063
19064rm -rf conftest.dSYM
19065rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19066 conftest$ac_exeext conftest.$ac_ext
19067LIBS=$ac_check_lib_save_LIBS
19068fi
19069{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19070$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
19071if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
19072
19073cat >>confdefs.h <<\_ACEOF
19074#define HAVE_LIBDL 1
19075_ACEOF
19076
19077 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
19078 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
19079fi
19080
19081fi
19082
19083rm -rf conftest.dSYM
19084rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19085 conftest$ac_exeext conftest.$ac_ext
19086fi
19087
19088if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
19089then
19090 lt_save_LIBS="$LIBS"
19091 LIBS="$LIBS $LIBADD_DLOPEN"
19092
19093for ac_func in dlerror
19094do
19095as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19096{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19097$as_echo_n "checking for $ac_func... " >&6; }
19098if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19099 $as_echo_n "(cached) " >&6
19100else
19101 cat >conftest.$ac_ext <<_ACEOF
19102/* confdefs.h. */
19103_ACEOF
19104cat confdefs.h >>conftest.$ac_ext
19105cat >>conftest.$ac_ext <<_ACEOF
19106/* end confdefs.h. */
19107/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19108 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19109#define $ac_func innocuous_$ac_func
19110
19111/* System header to define __stub macros and hopefully few prototypes,
19112 which can conflict with char $ac_func (); below.
19113 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19114 <limits.h> exists even on freestanding compilers. */
19115
19116#ifdef __STDC__
19117# include <limits.h>
19118#else
19119# include <assert.h>
19120#endif
19121
19122#undef $ac_func
19123
19124/* Override any GCC internal prototype to avoid an error.
19125 Use char because int might match the return type of a GCC
19126 builtin and then its argument prototype would still apply. */
19127#ifdef __cplusplus
19128extern "C"
19129#endif
19130char $ac_func ();
19131/* The GNU C library defines this for functions which it implements
19132 to always fail with ENOSYS. Some functions are actually named
19133 something starting with __ and the normal name is an alias. */
19134#if defined __stub_$ac_func || defined __stub___$ac_func
19135choke me
19136#endif
19137
19138int
19139main ()
19140{
19141return $ac_func ();
19142 ;
19143 return 0;
19144}
19145_ACEOF
19146rm -f conftest.$ac_objext conftest$ac_exeext
19147if { (ac_try="$ac_link"
19148case "(($ac_try" in
19149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150 *) ac_try_echo=$ac_try;;
19151esac
19152eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19153$as_echo "$ac_try_echo") >&5
19154 (eval "$ac_link") 2>conftest.er1
19155 ac_status=$?
19156 grep -v '^ *+' conftest.er1 >conftest.err
19157 rm -f conftest.er1
19158 cat conftest.err >&5
19159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19160 (exit $ac_status); } && {
19161 test -z "$ac_c_werror_flag" ||
19162 test ! -s conftest.err
19163 } && test -s conftest$ac_exeext && {
19164 test "$cross_compiling" = yes ||
19165 $as_test_x conftest$ac_exeext
19166 }; then
19167 eval "$as_ac_var=yes"
19168else
19169 $as_echo "$as_me: failed program was:" >&5
19170sed 's/^/| /' conftest.$ac_ext >&5
19171
19172 eval "$as_ac_var=no"
19173fi
19174
19175rm -rf conftest.dSYM
19176rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19177 conftest$ac_exeext conftest.$ac_ext
19178fi
19179ac_res=`eval 'as_val=${'$as_ac_var'}
19180 $as_echo "$as_val"'`
19181 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19182$as_echo "$ac_res" >&6; }
19183as_val=`eval 'as_val=${'$as_ac_var'}
19184 $as_echo "$as_val"'`
19185 if test "x$as_val" = x""yes; then
19186 cat >>confdefs.h <<_ACEOF
19187#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19188_ACEOF
19189
19190fi
19191done
19192
19193 LIBS="$lt_save_LIBS"
19194fi
19195
19196
19197LIBADD_SHL_LOAD=
19198{ $as_echo "$as_me:$LINENO: checking for shl_load" >&5
19199$as_echo_n "checking for shl_load... " >&6; }
19200if test "${ac_cv_func_shl_load+set}" = set; then
19201 $as_echo_n "(cached) " >&6
19202else
19203 cat >conftest.$ac_ext <<_ACEOF
19204/* confdefs.h. */
19205_ACEOF
19206cat confdefs.h >>conftest.$ac_ext
19207cat >>conftest.$ac_ext <<_ACEOF
19208/* end confdefs.h. */
19209/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19210 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19211#define shl_load innocuous_shl_load
19212
19213/* System header to define __stub macros and hopefully few prototypes,
19214 which can conflict with char shl_load (); below.
19215 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19216 <limits.h> exists even on freestanding compilers. */
19217
19218#ifdef __STDC__
19219# include <limits.h>
19220#else
19221# include <assert.h>
19222#endif
19223
19224#undef shl_load
19225
19226/* Override any GCC internal prototype to avoid an error.
19227 Use char because int might match the return type of a GCC
19228 builtin and then its argument prototype would still apply. */
19229#ifdef __cplusplus
19230extern "C"
19231#endif
19232char shl_load ();
19233/* The GNU C library defines this for functions which it implements
19234 to always fail with ENOSYS. Some functions are actually named
19235 something starting with __ and the normal name is an alias. */
19236#if defined __stub_shl_load || defined __stub___shl_load
19237choke me
19238#endif
19239
19240int
19241main ()
19242{
19243return shl_load ();
19244 ;
19245 return 0;
19246}
19247_ACEOF
19248rm -f conftest.$ac_objext conftest$ac_exeext
19249if { (ac_try="$ac_link"
19250case "(($ac_try" in
19251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252 *) ac_try_echo=$ac_try;;
19253esac
19254eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19255$as_echo "$ac_try_echo") >&5
19256 (eval "$ac_link") 2>conftest.er1
19257 ac_status=$?
19258 grep -v '^ *+' conftest.er1 >conftest.err
19259 rm -f conftest.er1
19260 cat conftest.err >&5
19261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); } && {
19263 test -z "$ac_c_werror_flag" ||
19264 test ! -s conftest.err
19265 } && test -s conftest$ac_exeext && {
19266 test "$cross_compiling" = yes ||
19267 $as_test_x conftest$ac_exeext
19268 }; then
19269 ac_cv_func_shl_load=yes
19270else
19271 $as_echo "$as_me: failed program was:" >&5
19272sed 's/^/| /' conftest.$ac_ext >&5
19273
19274 ac_cv_func_shl_load=no
19275fi
19276
19277rm -rf conftest.dSYM
19278rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19279 conftest$ac_exeext conftest.$ac_ext
19280fi
19281{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19282$as_echo "$ac_cv_func_shl_load" >&6; }
19283if test "x$ac_cv_func_shl_load" = x""yes; then
19284
19285cat >>confdefs.h <<\_ACEOF
19286#define HAVE_SHL_LOAD 1
19287_ACEOF
19288
19289 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19290else
19291 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19292$as_echo_n "checking for shl_load in -ldld... " >&6; }
19293if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19294 $as_echo_n "(cached) " >&6
19295else
19296 ac_check_lib_save_LIBS=$LIBS
19297LIBS="-ldld $LIBS"
19298cat >conftest.$ac_ext <<_ACEOF
19299/* confdefs.h. */
19300_ACEOF
19301cat confdefs.h >>conftest.$ac_ext
19302cat >>conftest.$ac_ext <<_ACEOF
19303/* end confdefs.h. */
19304
19305/* Override any GCC internal prototype to avoid an error.
19306 Use char because int might match the return type of a GCC
19307 builtin and then its argument prototype would still apply. */
19308#ifdef __cplusplus
19309extern "C"
19310#endif
19311char shl_load ();
19312int
19313main ()
19314{
19315return shl_load ();
19316 ;
19317 return 0;
19318}
19319_ACEOF
19320rm -f conftest.$ac_objext conftest$ac_exeext
19321if { (ac_try="$ac_link"
19322case "(($ac_try" in
19323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19324 *) ac_try_echo=$ac_try;;
19325esac
19326eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19327$as_echo "$ac_try_echo") >&5
19328 (eval "$ac_link") 2>conftest.er1
19329 ac_status=$?
19330 grep -v '^ *+' conftest.er1 >conftest.err
19331 rm -f conftest.er1
19332 cat conftest.err >&5
19333 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); } && {
19335 test -z "$ac_c_werror_flag" ||
19336 test ! -s conftest.err
19337 } && test -s conftest$ac_exeext && {
19338 test "$cross_compiling" = yes ||
19339 $as_test_x conftest$ac_exeext
19340 }; then
19341 ac_cv_lib_dld_shl_load=yes
19342else
19343 $as_echo "$as_me: failed program was:" >&5
19344sed 's/^/| /' conftest.$ac_ext >&5
19345
19346 ac_cv_lib_dld_shl_load=no
19347fi
19348
19349rm -rf conftest.dSYM
19350rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19351 conftest$ac_exeext conftest.$ac_ext
19352LIBS=$ac_check_lib_save_LIBS
19353fi
19354{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19355$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
19356if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
19357
19358cat >>confdefs.h <<\_ACEOF
19359#define HAVE_SHL_LOAD 1
19360_ACEOF
19361
19362 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
19363 LIBADD_SHL_LOAD="-ldld"
19364fi
19365
19366fi
19367
19368
19369
19370case $host_os in
19371darwin[1567].*)
19372# We only want this for pre-Mac OS X 10.4.
19373 { $as_echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
19374$as_echo_n "checking for _dyld_func_lookup... " >&6; }
19375if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
19376 $as_echo_n "(cached) " >&6
19377else
19378 cat >conftest.$ac_ext <<_ACEOF
19379/* confdefs.h. */
19380_ACEOF
19381cat confdefs.h >>conftest.$ac_ext
19382cat >>conftest.$ac_ext <<_ACEOF
19383/* end confdefs.h. */
19384/* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
19385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19386#define _dyld_func_lookup innocuous__dyld_func_lookup
19387
19388/* System header to define __stub macros and hopefully few prototypes,
19389 which can conflict with char _dyld_func_lookup (); below.
19390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19391 <limits.h> exists even on freestanding compilers. */
19392
19393#ifdef __STDC__
19394# include <limits.h>
19395#else
19396# include <assert.h>
19397#endif
19398
19399#undef _dyld_func_lookup
19400
19401/* Override any GCC internal prototype to avoid an error.
19402 Use char because int might match the return type of a GCC
19403 builtin and then its argument prototype would still apply. */
19404#ifdef __cplusplus
19405extern "C"
19406#endif
19407char _dyld_func_lookup ();
19408/* The GNU C library defines this for functions which it implements
19409 to always fail with ENOSYS. Some functions are actually named
19410 something starting with __ and the normal name is an alias. */
19411#if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
19412choke me
19413#endif
19414
19415int
19416main ()
19417{
19418return _dyld_func_lookup ();
19419 ;
19420 return 0;
19421}
19422_ACEOF
19423rm -f conftest.$ac_objext conftest$ac_exeext
19424if { (ac_try="$ac_link"
19425case "(($ac_try" in
19426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427 *) ac_try_echo=$ac_try;;
19428esac
19429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19430$as_echo "$ac_try_echo") >&5
19431 (eval "$ac_link") 2>conftest.er1
19432 ac_status=$?
19433 grep -v '^ *+' conftest.er1 >conftest.err
19434 rm -f conftest.er1
19435 cat conftest.err >&5
19436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); } && {
19438 test -z "$ac_c_werror_flag" ||
19439 test ! -s conftest.err
19440 } && test -s conftest$ac_exeext && {
19441 test "$cross_compiling" = yes ||
19442 $as_test_x conftest$ac_exeext
19443 }; then
19444 ac_cv_func__dyld_func_lookup=yes
19445else
19446 $as_echo "$as_me: failed program was:" >&5
19447sed 's/^/| /' conftest.$ac_ext >&5
19448
19449 ac_cv_func__dyld_func_lookup=no
19450fi
19451
19452rm -rf conftest.dSYM
19453rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19454 conftest$ac_exeext conftest.$ac_ext
19455fi
19456{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
19457$as_echo "$ac_cv_func__dyld_func_lookup" >&6; }
19458if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then
19459
19460cat >>confdefs.h <<\_ACEOF
19461#define HAVE_DYLD 1
19462_ACEOF
19463
19464 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
19465fi
19466
19467 ;;
19468beos*)
19469 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
19470 ;;
19471cygwin* | mingw* | os2* | pw32*)
19472 { $as_echo "$as_me:$LINENO: checking whether cygwin_conv_path is declared" >&5
19473$as_echo_n "checking whether cygwin_conv_path is declared... " >&6; }
19474if test "${ac_cv_have_decl_cygwin_conv_path+set}" = set; then
19475 $as_echo_n "(cached) " >&6
19476else
19477 cat >conftest.$ac_ext <<_ACEOF
19478/* confdefs.h. */
19479_ACEOF
19480cat confdefs.h >>conftest.$ac_ext
19481cat >>conftest.$ac_ext <<_ACEOF
19482/* end confdefs.h. */
19483#include <sys/cygwin.h>
19484
19485int
19486main ()
19487{
19488#ifndef cygwin_conv_path
19489 (void) cygwin_conv_path;
19490#endif
19491
19492 ;
19493 return 0;
19494}
19495_ACEOF
19496rm -f conftest.$ac_objext
19497if { (ac_try="$ac_compile"
19498case "(($ac_try" in
19499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19500 *) ac_try_echo=$ac_try;;
19501esac
19502eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19503$as_echo "$ac_try_echo") >&5
19504 (eval "$ac_compile") 2>conftest.er1
19505 ac_status=$?
19506 grep -v '^ *+' conftest.er1 >conftest.err
19507 rm -f conftest.er1
19508 cat conftest.err >&5
19509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); } && {
19511 test -z "$ac_c_werror_flag" ||
19512 test ! -s conftest.err
19513 } && test -s conftest.$ac_objext; then
19514 ac_cv_have_decl_cygwin_conv_path=yes
19515else
19516 $as_echo "$as_me: failed program was:" >&5
19517sed 's/^/| /' conftest.$ac_ext >&5
19518
19519 ac_cv_have_decl_cygwin_conv_path=no
19520fi
19521
19522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19523fi
19524{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_cygwin_conv_path" >&5
19525$as_echo "$ac_cv_have_decl_cygwin_conv_path" >&6; }
19526if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then
19527
19528cat >>confdefs.h <<_ACEOF
19529#define HAVE_DECL_CYGWIN_CONV_PATH 1
19530_ACEOF
19531
19532
19533else
19534 cat >>confdefs.h <<_ACEOF
19535#define HAVE_DECL_CYGWIN_CONV_PATH 0
19536_ACEOF
19537
19538
19539fi
19540
19541
19542 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
19543 ;;
19544esac
19545
19546{ $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19547$as_echo_n "checking for dld_link in -ldld... " >&6; }
19548if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19549 $as_echo_n "(cached) " >&6
19550else
19551 ac_check_lib_save_LIBS=$LIBS
19552LIBS="-ldld $LIBS"
19553cat >conftest.$ac_ext <<_ACEOF
19554/* confdefs.h. */
19555_ACEOF
19556cat confdefs.h >>conftest.$ac_ext
19557cat >>conftest.$ac_ext <<_ACEOF
19558/* end confdefs.h. */
19559
19560/* Override any GCC internal prototype to avoid an error.
19561 Use char because int might match the return type of a GCC
19562 builtin and then its argument prototype would still apply. */
19563#ifdef __cplusplus
19564extern "C"
19565#endif
19566char dld_link ();
19567int
19568main ()
19569{
19570return dld_link ();
19571 ;
19572 return 0;
19573}
19574_ACEOF
19575rm -f conftest.$ac_objext conftest$ac_exeext
19576if { (ac_try="$ac_link"
19577case "(($ac_try" in
19578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19579 *) ac_try_echo=$ac_try;;
19580esac
19581eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19582$as_echo "$ac_try_echo") >&5
19583 (eval "$ac_link") 2>conftest.er1
19584 ac_status=$?
19585 grep -v '^ *+' conftest.er1 >conftest.err
19586 rm -f conftest.er1
19587 cat conftest.err >&5
19588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); } && {
19590 test -z "$ac_c_werror_flag" ||
19591 test ! -s conftest.err
19592 } && test -s conftest$ac_exeext && {
19593 test "$cross_compiling" = yes ||
19594 $as_test_x conftest$ac_exeext
19595 }; then
19596 ac_cv_lib_dld_dld_link=yes
19597else
19598 $as_echo "$as_me: failed program was:" >&5
19599sed 's/^/| /' conftest.$ac_ext >&5
19600
19601 ac_cv_lib_dld_dld_link=no
19602fi
19603
19604rm -rf conftest.dSYM
19605rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19606 conftest$ac_exeext conftest.$ac_ext
19607LIBS=$ac_check_lib_save_LIBS
19608fi
19609{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19610$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
19611if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
19612
19613cat >>confdefs.h <<\_ACEOF
19614#define HAVE_DLD 1
19615_ACEOF
19616
19617 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
19618fi
19619
19620
19621
19622
19623LT_DLPREOPEN=
19624if test -n "$LT_DLLOADERS"
19625then
19626 for lt_loader in $LT_DLLOADERS; do
19627 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
19628 done
19629
19630cat >>confdefs.h <<\_ACEOF
19631#define HAVE_LIBDLLOADER 1
19632_ACEOF
19633
19634fi
19635
19636
19637LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
19638
19639
19640ac_ext=c
19641ac_cpp='$CPP $CPPFLAGS'
19642ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19643ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19644ac_compiler_gnu=$ac_cv_c_compiler_gnu
19645
19646
19647{ $as_echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
19648$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
19649if test "${lt_cv_sys_symbol_underscore+set}" = set; then
19650 $as_echo_n "(cached) " >&6
19651else
19652 lt_cv_sys_symbol_underscore=no
19653 cat > conftest.$ac_ext <<_LT_EOF
19654void nm_test_func(){}
19655int main(){nm_test_func;return 0;}
19656_LT_EOF
19657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19658 (eval $ac_compile) 2>&5
19659 ac_status=$?
19660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19661 (exit $ac_status); }; then
19662 # Now try to grab the symbols.
19663 ac_nlist=conftest.nm
19664 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
19665 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
19666 ac_status=$?
19667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); } && test -s "$ac_nlist"; then
19669 # See whether the symbols have a leading underscore.
19670 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
19671 lt_cv_sys_symbol_underscore=yes
19672 else
19673 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
19674 :
19675 else
19676 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
19677 fi
19678 fi
19679 else
19680 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
19681 fi
19682 else
19683 echo "configure: failed program was:" >&5
19684 cat conftest.c >&5
19685 fi
19686 rm -rf conftest*
19687
19688fi
19689{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_symbol_underscore" >&5
19690$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
19691 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
19692
19693
19694if test x"$lt_cv_sys_symbol_underscore" = xyes; then
19695 if test x"$libltdl_cv_func_dlopen" = xyes ||
19696 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
19697 { $as_echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
19698$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
19699if test "${libltdl_cv_need_uscore+set}" = set; then
19700 $as_echo_n "(cached) " >&6
19701else
19702 libltdl_cv_need_uscore=unknown
19703 save_LIBS="$LIBS"
19704 LIBS="$LIBS $LIBADD_DLOPEN"
19705 if test "$cross_compiling" = yes; then :
19706 libltdl_cv_need_uscore=cross
19707else
19708 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19709 lt_status=$lt_dlunknown
19710 cat > conftest.$ac_ext <<_LT_EOF
19711#line 19711 "configure"
19712#include "confdefs.h"
19713
19714#if HAVE_DLFCN_H
19715#include <dlfcn.h>
19716#endif
19717
19718#include <stdio.h>
19719
19720#ifdef RTLD_GLOBAL
19721# define LT_DLGLOBAL RTLD_GLOBAL
19722#else
19723# ifdef DL_GLOBAL
19724# define LT_DLGLOBAL DL_GLOBAL
19725# else
19726# define LT_DLGLOBAL 0
19727# endif
19728#endif
19729
19730/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
19731 find out it does not work in some platform. */
19732#ifndef LT_DLLAZY_OR_NOW
19733# ifdef RTLD_LAZY
19734# define LT_DLLAZY_OR_NOW RTLD_LAZY
19735# else
19736# ifdef DL_LAZY
19737# define LT_DLLAZY_OR_NOW DL_LAZY
19738# else
19739# ifdef RTLD_NOW
19740# define LT_DLLAZY_OR_NOW RTLD_NOW
19741# else
19742# ifdef DL_NOW
19743# define LT_DLLAZY_OR_NOW DL_NOW
19744# else
19745# define LT_DLLAZY_OR_NOW 0
19746# endif
19747# endif
19748# endif
19749# endif
19750#endif
19751
19752void fnord() { int i=42;}
19753int main ()
19754{
19755 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
19756 int status = $lt_dlunknown;
19757
19758 if (self)
19759 {
19760 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
19761 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
19762 /* dlclose (self); */
19763 }
19764 else
19765 puts (dlerror ());
19766
19767 return status;
19768}
19769_LT_EOF
19770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19771 (eval $ac_link) 2>&5
19772 ac_status=$?
19773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
19775 (./conftest; exit; ) >&5 2>/dev/null
19776 lt_status=$?
19777 case x$lt_status in
19778 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
19779 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
19780 x$lt_dlunknown|x*) ;;
19781 esac
19782 else :
19783 # compilation failed
19784
19785 fi
19786fi
19787rm -fr conftest*
19788
19789 LIBS="$save_LIBS"
19790
19791fi
19792{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
19793$as_echo "$libltdl_cv_need_uscore" >&6; }
19794 fi
19795fi
19796
19797if test x"$libltdl_cv_need_uscore" = xyes; then
19798
19799cat >>confdefs.h <<\_ACEOF
19800#define NEED_USCORE 1
19801_ACEOF
19802
19803fi
19804
19805{ $as_echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
19806$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
19807if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then
19808 $as_echo_n "(cached) " >&6
19809else
19810 # PORTME does your system automatically load deplibs for dlopen?
19811 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
19812 # For now, we just catch OSes we know something about -- in the
19813 # future, we'll try test this programmatically.
19814 lt_cv_sys_dlopen_deplibs=unknown
19815 case $host_os in
19816 aix3*|aix4.1.*|aix4.2.*)
19817 # Unknown whether this is true for these versions of AIX, but
19818 # we want this `case' here to explicitly catch those versions.
19819 lt_cv_sys_dlopen_deplibs=unknown
19820 ;;
19821 aix[4-9]*)
19822 lt_cv_sys_dlopen_deplibs=yes
19823 ;;
19824 amigaos*)
19825 case $host_cpu in
19826 powerpc)
19827 lt_cv_sys_dlopen_deplibs=no
19828 ;;
19829 esac
19830 ;;
19831 darwin*)
19832 # Assuming the user has installed a libdl from somewhere, this is true
19833 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
19834 lt_cv_sys_dlopen_deplibs=yes
19835 ;;
19836 freebsd* | dragonfly*)
19837 lt_cv_sys_dlopen_deplibs=yes
19838 ;;
19839 gnu* | linux* | k*bsd*-gnu)
19840 # GNU and its variants, using gnu ld.so (Glibc)
19841 lt_cv_sys_dlopen_deplibs=yes
19842 ;;
19843 hpux10*|hpux11*)
19844 lt_cv_sys_dlopen_deplibs=yes
19845 ;;
19846 interix*)
19847 lt_cv_sys_dlopen_deplibs=yes
19848 ;;
19849 irix[12345]*|irix6.[01]*)
19850 # Catch all versions of IRIX before 6.2, and indicate that we don't
19851 # know how it worked for any of those versions.
19852 lt_cv_sys_dlopen_deplibs=unknown
19853 ;;
19854 irix*)
19855 # The case above catches anything before 6.2, and it's known that
19856 # at 6.2 and later dlopen does load deplibs.
19857 lt_cv_sys_dlopen_deplibs=yes
19858 ;;
19859 netbsd*)
19860 lt_cv_sys_dlopen_deplibs=yes
19861 ;;
19862 openbsd*)
19863 lt_cv_sys_dlopen_deplibs=yes
19864 ;;
19865 osf[1234]*)
19866 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
19867 # it did *not* use an RPATH in a shared library to find objects the
19868 # library depends on, so we explicitly say `no'.
19869 lt_cv_sys_dlopen_deplibs=no
19870 ;;
19871 osf5.0|osf5.0a|osf5.1)
19872 # dlopen *does* load deplibs and with the right loader patch applied
19873 # it even uses RPATH in a shared library to search for shared objects
19874 # that the library depends on, but there's no easy way to know if that
19875 # patch is installed. Since this is the case, all we can really
19876 # say is unknown -- it depends on the patch being installed. If
19877 # it is, this changes to `yes'. Without it, it would be `no'.
19878 lt_cv_sys_dlopen_deplibs=unknown
19879 ;;
19880 osf*)
19881 # the two cases above should catch all versions of osf <= 5.1. Read
19882 # the comments above for what we know about them.
19883 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
19884 # is used to find them so we can finally say `yes'.
19885 lt_cv_sys_dlopen_deplibs=yes
19886 ;;
19887 qnx*)
19888 lt_cv_sys_dlopen_deplibs=yes
19889 ;;
19890 solaris*)
19891 lt_cv_sys_dlopen_deplibs=yes
19892 ;;
19893 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19894 libltdl_cv_sys_dlopen_deplibs=yes
19895 ;;
19896 esac
19897
19898fi
19899{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_dlopen_deplibs" >&5
19900$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
19901if test "$lt_cv_sys_dlopen_deplibs" != yes; then
19902
19903cat >>confdefs.h <<\_ACEOF
19904#define LTDL_DLOPEN_DEPLIBS 1
19905_ACEOF
19906
19907fi
19908
19909:
19910
19911
19912for ac_header in argz.h
19913do
19914as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19915{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19916$as_echo_n "checking for $ac_header... " >&6; }
19917if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19918 $as_echo_n "(cached) " >&6
19919else
19920 cat >conftest.$ac_ext <<_ACEOF
19921/* confdefs.h. */
19922_ACEOF
19923cat confdefs.h >>conftest.$ac_ext
19924cat >>conftest.$ac_ext <<_ACEOF
19925/* end confdefs.h. */
19926$ac_includes_default
19927
19928#include <$ac_header>
19929_ACEOF
19930rm -f conftest.$ac_objext
19931if { (ac_try="$ac_compile"
19932case "(($ac_try" in
19933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934 *) ac_try_echo=$ac_try;;
19935esac
19936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19937$as_echo "$ac_try_echo") >&5
19938 (eval "$ac_compile") 2>conftest.er1
19939 ac_status=$?
19940 grep -v '^ *+' conftest.er1 >conftest.err
19941 rm -f conftest.er1
19942 cat conftest.err >&5
19943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); } && {
19945 test -z "$ac_c_werror_flag" ||
19946 test ! -s conftest.err
19947 } && test -s conftest.$ac_objext; then
19948 eval "$as_ac_Header=yes"
19949else
19950 $as_echo "$as_me: failed program was:" >&5
19951sed 's/^/| /' conftest.$ac_ext >&5
19952
19953 eval "$as_ac_Header=no"
19954fi
19955
19956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19957fi
19958ac_res=`eval 'as_val=${'$as_ac_Header'}
19959 $as_echo "$as_val"'`
19960 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19961$as_echo "$ac_res" >&6; }
19962as_val=`eval 'as_val=${'$as_ac_Header'}
19963 $as_echo "$as_val"'`
19964 if test "x$as_val" = x""yes; then
19965 cat >>confdefs.h <<_ACEOF
19966#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19967_ACEOF
19968
19969fi
19970
19971done
19972
19973
19974{ $as_echo "$as_me:$LINENO: checking for error_t" >&5
19975$as_echo_n "checking for error_t... " >&6; }
19976if test "${ac_cv_type_error_t+set}" = set; then
19977 $as_echo_n "(cached) " >&6
19978else
19979 ac_cv_type_error_t=no
19980cat >conftest.$ac_ext <<_ACEOF
19981/* confdefs.h. */
19982_ACEOF
19983cat confdefs.h >>conftest.$ac_ext
19984cat >>conftest.$ac_ext <<_ACEOF
19985/* end confdefs.h. */
19986#if defined(HAVE_ARGZ_H)
19987# include <argz.h>
19988#endif
19989
19990int
19991main ()
19992{
19993if (sizeof (error_t))
19994 return 0;
19995 ;
19996 return 0;
19997}
19998_ACEOF
19999rm -f conftest.$ac_objext
20000if { (ac_try="$ac_compile"
20001case "(($ac_try" in
20002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20003 *) ac_try_echo=$ac_try;;
20004esac
20005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20006$as_echo "$ac_try_echo") >&5
20007 (eval "$ac_compile") 2>conftest.er1
20008 ac_status=$?
20009 grep -v '^ *+' conftest.er1 >conftest.err
20010 rm -f conftest.er1
20011 cat conftest.err >&5
20012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); } && {
20014 test -z "$ac_c_werror_flag" ||
20015 test ! -s conftest.err
20016 } && test -s conftest.$ac_objext; then
20017 cat >conftest.$ac_ext <<_ACEOF
20018/* confdefs.h. */
20019_ACEOF
20020cat confdefs.h >>conftest.$ac_ext
20021cat >>conftest.$ac_ext <<_ACEOF
20022/* end confdefs.h. */
20023#if defined(HAVE_ARGZ_H)
20024# include <argz.h>
20025#endif
20026
20027int
20028main ()
20029{
20030if (sizeof ((error_t)))
20031 return 0;
20032 ;
20033 return 0;
20034}
20035_ACEOF
20036rm -f conftest.$ac_objext
20037if { (ac_try="$ac_compile"
20038case "(($ac_try" in
20039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040 *) ac_try_echo=$ac_try;;
20041esac
20042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20043$as_echo "$ac_try_echo") >&5
20044 (eval "$ac_compile") 2>conftest.er1
20045 ac_status=$?
20046 grep -v '^ *+' conftest.er1 >conftest.err
20047 rm -f conftest.er1
20048 cat conftest.err >&5
20049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); } && {
20051 test -z "$ac_c_werror_flag" ||
20052 test ! -s conftest.err
20053 } && test -s conftest.$ac_objext; then
20054 :
20055else
20056 $as_echo "$as_me: failed program was:" >&5
20057sed 's/^/| /' conftest.$ac_ext >&5
20058
20059 ac_cv_type_error_t=yes
20060fi
20061
20062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20063else
20064 $as_echo "$as_me: failed program was:" >&5
20065sed 's/^/| /' conftest.$ac_ext >&5
20066
20067
20068fi
20069
20070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20071fi
20072{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
20073$as_echo "$ac_cv_type_error_t" >&6; }
20074if test "x$ac_cv_type_error_t" = x""yes; then
20075
20076cat >>confdefs.h <<_ACEOF
20077#define HAVE_ERROR_T 1
20078_ACEOF
20079
20080
20081else
20082
20083cat >>confdefs.h <<\_ACEOF
20084#define error_t int
20085_ACEOF
20086
20087
20088cat >>confdefs.h <<\_ACEOF
20089#define __error_t_defined 1
20090_ACEOF
20091
20092fi
20093
20094
20095ARGZ_H=
20096
20097
20098
20099
20100
20101
20102
20103for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
20104 argz_next argz_stringify
20105do
20106as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20107{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20108$as_echo_n "checking for $ac_func... " >&6; }
20109if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20110 $as_echo_n "(cached) " >&6
20111else
20112 cat >conftest.$ac_ext <<_ACEOF
20113/* confdefs.h. */
20114_ACEOF
20115cat confdefs.h >>conftest.$ac_ext
20116cat >>conftest.$ac_ext <<_ACEOF
20117/* end confdefs.h. */
20118/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20120#define $ac_func innocuous_$ac_func
20121
20122/* System header to define __stub macros and hopefully few prototypes,
20123 which can conflict with char $ac_func (); below.
20124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20125 <limits.h> exists even on freestanding compilers. */
20126
20127#ifdef __STDC__
20128# include <limits.h>
20129#else
20130# include <assert.h>
20131#endif
20132
20133#undef $ac_func
20134
20135/* Override any GCC internal prototype to avoid an error.
20136 Use char because int might match the return type of a GCC
20137 builtin and then its argument prototype would still apply. */
20138#ifdef __cplusplus
20139extern "C"
20140#endif
20141char $ac_func ();
20142/* The GNU C library defines this for functions which it implements
20143 to always fail with ENOSYS. Some functions are actually named
20144 something starting with __ and the normal name is an alias. */
20145#if defined __stub_$ac_func || defined __stub___$ac_func
20146choke me
20147#endif
20148
20149int
20150main ()
20151{
20152return $ac_func ();
20153 ;
20154 return 0;
20155}
20156_ACEOF
20157rm -f conftest.$ac_objext conftest$ac_exeext
20158if { (ac_try="$ac_link"
20159case "(($ac_try" in
20160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161 *) ac_try_echo=$ac_try;;
20162esac
20163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20164$as_echo "$ac_try_echo") >&5
20165 (eval "$ac_link") 2>conftest.er1
20166 ac_status=$?
20167 grep -v '^ *+' conftest.er1 >conftest.err
20168 rm -f conftest.er1
20169 cat conftest.err >&5
20170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); } && {
20172 test -z "$ac_c_werror_flag" ||
20173 test ! -s conftest.err
20174 } && test -s conftest$ac_exeext && {
20175 test "$cross_compiling" = yes ||
20176 $as_test_x conftest$ac_exeext
20177 }; then
20178 eval "$as_ac_var=yes"
20179else
20180 $as_echo "$as_me: failed program was:" >&5
20181sed 's/^/| /' conftest.$ac_ext >&5
20182
20183 eval "$as_ac_var=no"
20184fi
20185
20186rm -rf conftest.dSYM
20187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20188 conftest$ac_exeext conftest.$ac_ext
20189fi
20190ac_res=`eval 'as_val=${'$as_ac_var'}
20191 $as_echo "$as_val"'`
20192 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20193$as_echo "$ac_res" >&6; }
20194as_val=`eval 'as_val=${'$as_ac_var'}
20195 $as_echo "$as_val"'`
20196 if test "x$as_val" = x""yes; then
20197 cat >>confdefs.h <<_ACEOF
20198#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20199_ACEOF
20200
20201else
20202 ARGZ_H=argz.h;
20203
20204 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20205
20206fi
20207done
20208
20209
20210if test -z "$ARGZ_H"; then
20211 { $as_echo "$as_me:$LINENO: checking if argz actually works" >&5
20212$as_echo_n "checking if argz actually works... " >&6; }
20213if test "${lt_cv_sys_argz_works+set}" = set; then
20214 $as_echo_n "(cached) " >&6
20215else
20216 case $host_os in #(
20217 *cygwin*)
20218 lt_cv_sys_argz_works=no
20219 if test "$cross_compiling" != no; then
20220 lt_cv_sys_argz_works="guessing no"
20221 else
20222 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
20223 save_IFS=$IFS
20224 IFS=-.
20225 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
20226 IFS=$save_IFS
20227 lt_os_major=${2-0}
20228 lt_os_minor=${3-0}
20229 lt_os_micro=${4-0}
20230 if test "$lt_os_major" -gt 1 \
20231 || { test "$lt_os_major" -eq 1 \
20232 && { test "$lt_os_minor" -gt 5 \
20233 || { test "$lt_os_minor" -eq 5 \
20234 && test "$lt_os_micro" -gt 24; }; }; }; then
20235 lt_cv_sys_argz_works=yes
20236 fi
20237 fi
20238 ;; #(
20239 *) lt_cv_sys_argz_works=yes ;;
20240 esac
20241fi
20242{ $as_echo "$as_me:$LINENO: result: $lt_cv_sys_argz_works" >&5
20243$as_echo "$lt_cv_sys_argz_works" >&6; }
20244 if test $lt_cv_sys_argz_works = yes; then
20245
20246cat >>confdefs.h <<\_ACEOF
20247#define HAVE_WORKING_ARGZ 1
20248_ACEOF
20249
20250else
20251 ARGZ_H=argz.h
20252
20253
20254 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
20255
20256fi
20257
20258fi
20259
20260
20261
20262
20263{ $as_echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
20264$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
20265if test "${libltdl_cv_preloaded_symbols+set}" = set; then
20266 $as_echo_n "(cached) " >&6
20267else
20268 if test -n "$lt_cv_sys_global_symbol_pipe"; then
20269 libltdl_cv_preloaded_symbols=yes
20270 else
20271 libltdl_cv_preloaded_symbols=no
20272 fi
20273
20274fi
20275{ $as_echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
20276$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
20277if test x"$libltdl_cv_preloaded_symbols" = xyes; then
20278
20279cat >>confdefs.h <<\_ACEOF
20280#define HAVE_PRELOADED_SYMBOLS 1
20281_ACEOF
20282
20283fi
20284
20285# Set options
20286
20287
20288
20289
20290
20291
20292
20293
20294
20295
20296
20297# Check whether --with-included_ltdl was given.
20298if test "${with_included_ltdl+set}" = set; then
20299 withval=$with_included_ltdl;
20300fi
20301
20302
20303if test "x$with_included_ltdl" != xyes; then
20304 # We are not being forced to use the included libltdl sources, so
20305 # decide whether there is a useful installed version we can use.
20306 { $as_echo "$as_me:$LINENO: checking for ltdl.h" >&5
20307$as_echo_n "checking for ltdl.h... " >&6; }
20308if test "${ac_cv_header_ltdl_h+set}" = set; then
20309 $as_echo_n "(cached) " >&6
20310else
20311 cat >conftest.$ac_ext <<_ACEOF
20312/* confdefs.h. */
20313_ACEOF
20314cat confdefs.h >>conftest.$ac_ext
20315cat >>conftest.$ac_ext <<_ACEOF
20316/* end confdefs.h. */
20317$ac_includes_default
20318
20319
20320#include <ltdl.h>
20321_ACEOF
20322rm -f conftest.$ac_objext
20323if { (ac_try="$ac_compile"
20324case "(($ac_try" in
20325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20326 *) ac_try_echo=$ac_try;;
20327esac
20328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20329$as_echo "$ac_try_echo") >&5
20330 (eval "$ac_compile") 2>conftest.er1
20331 ac_status=$?
20332 grep -v '^ *+' conftest.er1 >conftest.err
20333 rm -f conftest.er1
20334 cat conftest.err >&5
20335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } && {
20337 test -z "$ac_c_werror_flag" ||
20338 test ! -s conftest.err
20339 } && test -s conftest.$ac_objext; then
20340 ac_cv_header_ltdl_h=yes
20341else
20342 $as_echo "$as_me: failed program was:" >&5
20343sed 's/^/| /' conftest.$ac_ext >&5
20344
20345 ac_cv_header_ltdl_h=no
20346fi
20347
20348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20349fi
20350{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ltdl_h" >&5
20351$as_echo "$ac_cv_header_ltdl_h" >&6; }
20352if test "x$ac_cv_header_ltdl_h" = x""yes; then
20353 { $as_echo "$as_me:$LINENO: checking whether lt_dlinterface_register is declared" >&5
20354$as_echo_n "checking whether lt_dlinterface_register is declared... " >&6; }
20355if test "${ac_cv_have_decl_lt_dlinterface_register+set}" = set; then
20356 $as_echo_n "(cached) " >&6
20357else
20358 cat >conftest.$ac_ext <<_ACEOF
20359/* confdefs.h. */
20360_ACEOF
20361cat confdefs.h >>conftest.$ac_ext
20362cat >>conftest.$ac_ext <<_ACEOF
20363/* end confdefs.h. */
20364$ac_includes_default
20365 #include <ltdl.h>
20366
20367int
20368main ()
20369{
20370#ifndef lt_dlinterface_register
20371 (void) lt_dlinterface_register;
20372#endif
20373
20374 ;
20375 return 0;
20376}
20377_ACEOF
20378rm -f conftest.$ac_objext
20379if { (ac_try="$ac_compile"
20380case "(($ac_try" in
20381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20382 *) ac_try_echo=$ac_try;;
20383esac
20384eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20385$as_echo "$ac_try_echo") >&5
20386 (eval "$ac_compile") 2>conftest.er1
20387 ac_status=$?
20388 grep -v '^ *+' conftest.er1 >conftest.err
20389 rm -f conftest.er1
20390 cat conftest.err >&5
20391 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20392 (exit $ac_status); } && {
20393 test -z "$ac_c_werror_flag" ||
20394 test ! -s conftest.err
20395 } && test -s conftest.$ac_objext; then
20396 ac_cv_have_decl_lt_dlinterface_register=yes
20397else
20398 $as_echo "$as_me: failed program was:" >&5
20399sed 's/^/| /' conftest.$ac_ext >&5
20400
20401 ac_cv_have_decl_lt_dlinterface_register=no
20402fi
20403
20404rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20405fi
20406{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_lt_dlinterface_register" >&5
20407$as_echo "$ac_cv_have_decl_lt_dlinterface_register" >&6; }
20408if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then
20409 { $as_echo "$as_me:$LINENO: checking for lt_dladvise_preload in -lltdl" >&5
20410$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
20411if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then
20412 $as_echo_n "(cached) " >&6
20413else
20414 ac_check_lib_save_LIBS=$LIBS
20415LIBS="-lltdl $LIBS"
20416cat >conftest.$ac_ext <<_ACEOF
20417/* confdefs.h. */
20418_ACEOF
20419cat confdefs.h >>conftest.$ac_ext
20420cat >>conftest.$ac_ext <<_ACEOF
20421/* end confdefs.h. */
20422
20423/* Override any GCC internal prototype to avoid an error.
20424 Use char because int might match the return type of a GCC
20425 builtin and then its argument prototype would still apply. */
20426#ifdef __cplusplus
20427extern "C"
20428#endif
20429char lt_dladvise_preload ();
20430int
20431main ()
20432{
20433return lt_dladvise_preload ();
20434 ;
20435 return 0;
20436}
20437_ACEOF
20438rm -f conftest.$ac_objext conftest$ac_exeext
20439if { (ac_try="$ac_link"
20440case "(($ac_try" in
20441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20442 *) ac_try_echo=$ac_try;;
20443esac
20444eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20445$as_echo "$ac_try_echo") >&5
20446 (eval "$ac_link") 2>conftest.er1
20447 ac_status=$?
20448 grep -v '^ *+' conftest.er1 >conftest.err
20449 rm -f conftest.er1
20450 cat conftest.err >&5
20451 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20452 (exit $ac_status); } && {
20453 test -z "$ac_c_werror_flag" ||
20454 test ! -s conftest.err
20455 } && test -s conftest$ac_exeext && {
20456 test "$cross_compiling" = yes ||
20457 $as_test_x conftest$ac_exeext
20458 }; then
20459 ac_cv_lib_ltdl_lt_dladvise_preload=yes
20460else
20461 $as_echo "$as_me: failed program was:" >&5
20462sed 's/^/| /' conftest.$ac_ext >&5
20463
20464 ac_cv_lib_ltdl_lt_dladvise_preload=no
20465fi
20466
20467rm -rf conftest.dSYM
20468rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20469 conftest$ac_exeext conftest.$ac_ext
20470LIBS=$ac_check_lib_save_LIBS
20471fi
20472{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
20473$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
20474if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then
20475 with_included_ltdl=no
20476else
20477 with_included_ltdl=yes
20478fi
20479
20480else
20481 with_included_ltdl=yes
20482fi
20483
20484else
20485 with_included_ltdl=yes
20486fi
20487
20488
20489fi
20490
20491
20492
20493
20494# Check whether --with-ltdl_include was given.
20495if test "${with_ltdl_include+set}" = set; then
20496 withval=$with_ltdl_include;
20497fi
20498
20499
20500if test -n "$with_ltdl_include"; then
20501 if test -f "$with_ltdl_include/ltdl.h"; then :
20502 else
20503 { { $as_echo "$as_me:$LINENO: error: invalid ltdl include directory: \`$with_ltdl_include'" >&5
20504$as_echo "$as_me: error: invalid ltdl include directory: \`$with_ltdl_include'" >&2;}
20505 { (exit 1); exit 1; }; }
20506 fi
20507else
20508 with_ltdl_include=no
20509fi
20510
20511
20512# Check whether --with-ltdl_lib was given.
20513if test "${with_ltdl_lib+set}" = set; then
20514 withval=$with_ltdl_lib;
20515fi
20516
20517
20518if test -n "$with_ltdl_lib"; then
20519 if test -f "$with_ltdl_lib/libltdl.la"; then :
20520 else
20521 { { $as_echo "$as_me:$LINENO: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&5
20522$as_echo "$as_me: error: invalid ltdl library directory: \`$with_ltdl_lib'" >&2;}
20523 { (exit 1); exit 1; }; }
20524 fi
20525else
20526 with_ltdl_lib=no
20527fi
20528
20529case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
20530 ,yes,no,no,)
20531 case $enable_ltdl_convenience in
20532 no) { { $as_echo "$as_me:$LINENO: error: this package needs a convenience libltdl" >&5
20533$as_echo "$as_me: error: this package needs a convenience libltdl" >&2;}
20534 { (exit 1); exit 1; }; } ;;
20535 "") enable_ltdl_convenience=yes
20536 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
20537esac
20538LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
20539LTDLDEPS=$LIBLTDL
20540LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
20541
20542
20543
20544
20545
20546# For backwards non-gettext consistent compatibility...
20547INCLTDL="$LTDLINCL"
20548
20549
20550 ;;
20551 ,no,no,no,)
20552 # If the included ltdl is not to be used, then use the
20553 # preinstalled libltdl we found.
20554
20555cat >>confdefs.h <<\_ACEOF
20556#define HAVE_LTDL 1
20557_ACEOF
20558
20559 LIBLTDL=-lltdl
20560 LTDLDEPS=
20561 LTDLINCL=
20562 ;;
20563 ,no*,no,*)
20564 { { $as_echo "$as_me:$LINENO: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&5
20565$as_echo "$as_me: error: \`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" >&2;}
20566 { (exit 1); exit 1; }; }
20567 ;;
20568 *) with_included_ltdl=no
20569 LIBLTDL="-L$with_ltdl_lib -lltdl"
20570 LTDLDEPS=
20571 LTDLINCL="-I$with_ltdl_include"
20572 ;;
20573esac
20574INCLTDL="$LTDLINCL"
20575
20576# Report our decision...
20577{ $as_echo "$as_me:$LINENO: checking where to find libltdl headers" >&5
20578$as_echo_n "checking where to find libltdl headers... " >&6; }
20579{ $as_echo "$as_me:$LINENO: result: $LTDLINCL" >&5
20580$as_echo "$LTDLINCL" >&6; }
20581{ $as_echo "$as_me:$LINENO: checking where to find libltdl library" >&5
20582$as_echo_n "checking where to find libltdl library... " >&6; }
20583{ $as_echo "$as_me:$LINENO: result: $LIBLTDL" >&5
20584$as_echo "$LIBLTDL" >&6; }
20585
20586
20587
20588# Check whether --enable-ltdl-install was given.
20589if test "${enable_ltdl_install+set}" = set; then
20590 enableval=$enable_ltdl_install;
20591fi
20592
20593
20594case ,${enable_ltdl_install},${enable_ltdl_convenience} in
20595 *yes*) ;;
20596 *) enable_ltdl_convenience=yes ;;
20597esac
20598
20599 if test x"${enable_ltdl_install-no}" != xno; then
20600 INSTALL_LTDL_TRUE=
20601 INSTALL_LTDL_FALSE='#'
20602else
20603 INSTALL_LTDL_TRUE='#'
20604 INSTALL_LTDL_FALSE=
20605fi
20606
20607 if test x"${enable_ltdl_convenience-no}" != xno; then
20608 CONVENIENCE_LTDL_TRUE=
20609 CONVENIENCE_LTDL_FALSE='#'
20610else
20611 CONVENIENCE_LTDL_TRUE='#'
20612 CONVENIENCE_LTDL_FALSE=
20613fi
20614
20615
20616
20617
20618
20619
20620
20621# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
20622# the user used. This is so that ltdl.h can pick up the parent projects
20623# config.h file, The first file in AC_CONFIG_HEADERS must contain the
20624# definitions required by ltdl.c.
20625# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
20626
20627
20628
20629
20630
20631
20632
20633
20634
20635for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
20636do
20637as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20638{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20639$as_echo_n "checking for $ac_header... " >&6; }
20640if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20641 $as_echo_n "(cached) " >&6
20642else
20643 cat >conftest.$ac_ext <<_ACEOF
20644/* confdefs.h. */
20645_ACEOF
20646cat confdefs.h >>conftest.$ac_ext
20647cat >>conftest.$ac_ext <<_ACEOF
20648/* end confdefs.h. */
20649$ac_includes_default
20650
20651#include <$ac_header>
20652_ACEOF
20653rm -f conftest.$ac_objext
20654if { (ac_try="$ac_compile"
20655case "(($ac_try" in
20656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20657 *) ac_try_echo=$ac_try;;
20658esac
20659eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20660$as_echo "$ac_try_echo") >&5
20661 (eval "$ac_compile") 2>conftest.er1
20662 ac_status=$?
20663 grep -v '^ *+' conftest.er1 >conftest.err
20664 rm -f conftest.er1
20665 cat conftest.err >&5
20666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); } && {
20668 test -z "$ac_c_werror_flag" ||
20669 test ! -s conftest.err
20670 } && test -s conftest.$ac_objext; then
20671 eval "$as_ac_Header=yes"
20672else
20673 $as_echo "$as_me: failed program was:" >&5
20674sed 's/^/| /' conftest.$ac_ext >&5
20675
20676 eval "$as_ac_Header=no"
20677fi
20678
20679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20680fi
20681ac_res=`eval 'as_val=${'$as_ac_Header'}
20682 $as_echo "$as_val"'`
20683 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20684$as_echo "$ac_res" >&6; }
20685as_val=`eval 'as_val=${'$as_ac_Header'}
20686 $as_echo "$as_val"'`
20687 if test "x$as_val" = x""yes; then
20688 cat >>confdefs.h <<_ACEOF
20689#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20690_ACEOF
20691
20692fi
20693
20694done
20695
20696
20697
20698
20699
20700for ac_func in closedir opendir readdir
20701do
20702as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20703{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20704$as_echo_n "checking for $ac_func... " >&6; }
20705if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20706 $as_echo_n "(cached) " >&6
20707else
20708 cat >conftest.$ac_ext <<_ACEOF
20709/* confdefs.h. */
20710_ACEOF
20711cat confdefs.h >>conftest.$ac_ext
20712cat >>conftest.$ac_ext <<_ACEOF
20713/* end confdefs.h. */
20714/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20716#define $ac_func innocuous_$ac_func
20717
20718/* System header to define __stub macros and hopefully few prototypes,
20719 which can conflict with char $ac_func (); below.
20720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20721 <limits.h> exists even on freestanding compilers. */
20722
20723#ifdef __STDC__
20724# include <limits.h>
20725#else
20726# include <assert.h>
20727#endif
20728
20729#undef $ac_func
20730
20731/* Override any GCC internal prototype to avoid an error.
20732 Use char because int might match the return type of a GCC
20733 builtin and then its argument prototype would still apply. */
20734#ifdef __cplusplus
20735extern "C"
20736#endif
20737char $ac_func ();
20738/* The GNU C library defines this for functions which it implements
20739 to always fail with ENOSYS. Some functions are actually named
20740 something starting with __ and the normal name is an alias. */
20741#if defined __stub_$ac_func || defined __stub___$ac_func
20742choke me
20743#endif
20744
20745int
20746main ()
20747{
20748return $ac_func ();
20749 ;
20750 return 0;
20751}
20752_ACEOF
20753rm -f conftest.$ac_objext conftest$ac_exeext
20754if { (ac_try="$ac_link"
20755case "(($ac_try" in
20756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20757 *) ac_try_echo=$ac_try;;
20758esac
20759eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20760$as_echo "$ac_try_echo") >&5
20761 (eval "$ac_link") 2>conftest.er1
20762 ac_status=$?
20763 grep -v '^ *+' conftest.er1 >conftest.err
20764 rm -f conftest.er1
20765 cat conftest.err >&5
20766 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); } && {
20768 test -z "$ac_c_werror_flag" ||
20769 test ! -s conftest.err
20770 } && test -s conftest$ac_exeext && {
20771 test "$cross_compiling" = yes ||
20772 $as_test_x conftest$ac_exeext
20773 }; then
20774 eval "$as_ac_var=yes"
20775else
20776 $as_echo "$as_me: failed program was:" >&5
20777sed 's/^/| /' conftest.$ac_ext >&5
20778
20779 eval "$as_ac_var=no"
20780fi
20781
20782rm -rf conftest.dSYM
20783rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20784 conftest$ac_exeext conftest.$ac_ext
20785fi
20786ac_res=`eval 'as_val=${'$as_ac_var'}
20787 $as_echo "$as_val"'`
20788 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20789$as_echo "$ac_res" >&6; }
20790as_val=`eval 'as_val=${'$as_ac_var'}
20791 $as_echo "$as_val"'`
20792 if test "x$as_val" = x""yes; then
20793 cat >>confdefs.h <<_ACEOF
20794#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20795_ACEOF
20796
20797else
20798
20799
20800 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
20801
20802fi
20803done
20804
20805
20806
20807for ac_func in strlcat strlcpy
20808do
20809as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20810{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20811$as_echo_n "checking for $ac_func... " >&6; }
20812if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20813 $as_echo_n "(cached) " >&6
20814else
20815 cat >conftest.$ac_ext <<_ACEOF
20816/* confdefs.h. */
20817_ACEOF
20818cat confdefs.h >>conftest.$ac_ext
20819cat >>conftest.$ac_ext <<_ACEOF
20820/* end confdefs.h. */
20821/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20823#define $ac_func innocuous_$ac_func
20824
20825/* System header to define __stub macros and hopefully few prototypes,
20826 which can conflict with char $ac_func (); below.
20827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20828 <limits.h> exists even on freestanding compilers. */
20829
20830#ifdef __STDC__
20831# include <limits.h>
20832#else
20833# include <assert.h>
20834#endif
20835
20836#undef $ac_func
20837
20838/* Override any GCC internal prototype to avoid an error.
20839 Use char because int might match the return type of a GCC
20840 builtin and then its argument prototype would still apply. */
20841#ifdef __cplusplus
20842extern "C"
20843#endif
20844char $ac_func ();
20845/* The GNU C library defines this for functions which it implements
20846 to always fail with ENOSYS. Some functions are actually named
20847 something starting with __ and the normal name is an alias. */
20848#if defined __stub_$ac_func || defined __stub___$ac_func
20849choke me
20850#endif
20851
20852int
20853main ()
20854{
20855return $ac_func ();
20856 ;
20857 return 0;
20858}
20859_ACEOF
20860rm -f conftest.$ac_objext conftest$ac_exeext
20861if { (ac_try="$ac_link"
20862case "(($ac_try" in
20863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864 *) ac_try_echo=$ac_try;;
20865esac
20866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20867$as_echo "$ac_try_echo") >&5
20868 (eval "$ac_link") 2>conftest.er1
20869 ac_status=$?
20870 grep -v '^ *+' conftest.er1 >conftest.err
20871 rm -f conftest.er1
20872 cat conftest.err >&5
20873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); } && {
20875 test -z "$ac_c_werror_flag" ||
20876 test ! -s conftest.err
20877 } && test -s conftest$ac_exeext && {
20878 test "$cross_compiling" = yes ||
20879 $as_test_x conftest$ac_exeext
20880 }; then
20881 eval "$as_ac_var=yes"
20882else
20883 $as_echo "$as_me: failed program was:" >&5
20884sed 's/^/| /' conftest.$ac_ext >&5
20885
20886 eval "$as_ac_var=no"
20887fi
20888
20889rm -rf conftest.dSYM
20890rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20891 conftest$ac_exeext conftest.$ac_ext
20892fi
20893ac_res=`eval 'as_val=${'$as_ac_var'}
20894 $as_echo "$as_val"'`
20895 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20896$as_echo "$ac_res" >&6; }
20897as_val=`eval 'as_val=${'$as_ac_var'}
20898 $as_echo "$as_val"'`
20899 if test "x$as_val" = x""yes; then
20900 cat >>confdefs.h <<_ACEOF
20901#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20902_ACEOF
20903
20904else
20905
20906
20907 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
20908
20909fi
20910done
20911
20912
20913
20914cat >>confdefs.h <<_ACEOF
20915#define LT_LIBEXT "$libext"
20916_ACEOF
20917
20918
20919name=ltdl
20920LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
20921
20922
20923
20924
20925
20926
20927
20928
20929# Only expand once:
20930
20931
20932
20933# Check to see if building shared libraries
20934libtool_build_shared_libs='no'
20935if test "$enable_shared" = 'yes'; then
20936 libtool_build_shared_libs='yes'
20937fi
20938
20939# Check to see if building static libraries
20940libtool_build_static_libs='no'
20941if test "$enable_static" = 'yes'; then
20942 libtool_build_static_libs='yes'
20943fi
20944
20945# MinGW and Cygwin can't build C++ DLLs which support exceptions.
20946if test "${StaticCplusPlusLibraries}" = 'yes'; then
20947 LTCXXLIBOPTS='--static'
20948
20949fi
20950
20951#
20952# Enable support for building loadable modules
20953#
20954
20955# Check whether --with-modules was given.
20956if test "${with_modules+set}" = set; then
20957 withval=$with_modules; with_modules=$withval
20958else
20959 with_modules=$libtool_build_shared_libs
20960fi
20961
20962
20963# Only allow building loadable modules if we are building shared libraries
20964if test "$with_modules" != 'no' ; then
20965 if test "$libtool_build_shared_libs" = 'no'; then
20966 { $as_echo "$as_me:$LINENO: WARNING: Modules may only be built if building shared libraries is enabled." >&5
20967$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
20968 with_modules='no'
20969 fi
20970fi
20971if test "$with_modules" != 'no'; then
20972
20973cat >>confdefs.h <<\_ACEOF
20974#define BUILD_MODULES 1
20975_ACEOF
20976
20977fi
20978 if test "$with_modules" != 'no'; then
20979 WITH_MODULES_TRUE=
20980 WITH_MODULES_FALSE='#'
20981else
20982 WITH_MODULES_TRUE='#'
20983 WITH_MODULES_FALSE=
20984fi
20985
20986
20987# Enable building/use of libltdl if we are building shared libraries regardless
20988# of whether modules are built or not.
20989with_ltdl='no'
20990if test "$libtool_build_shared_libs" != 'no'; then
20991 with_ltdl='yes'
20992fi
20993
20994 if test "$with_ltdl" != 'no'; then
20995 WITH_LTDL_TRUE=
20996 WITH_LTDL_FALSE='#'
20997else
20998 WITH_LTDL_TRUE='#'
20999 WITH_LTDL_FALSE=
21000fi
21001
21002if test "$with_ltdl" != 'no'; then
21003
21004cat >>confdefs.h <<\_ACEOF
21005#define LTDL_DELEGATE 1
21006_ACEOF
21007
21008
21009 # Set DLLDFLAGS
21010 if test X"$enable_shared" = Xyes; then
21011 DLLDFLAGS=-export-dynamic
21012
21013 fi
21014fi
21015
21016# Enable build using delegate libraries built in subdirectories rather than installed
21017# delegate libraries (bzlib fftw fpx jp2 jbig jpeg lcms png tiff ttf wmf xml zlib)
21018# Check whether --enable-delegate-build was given.
21019if test "${enable_delegate_build+set}" = set; then
21020 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21021else
21022 enable_delegate_build='no'
21023fi
21024
21025
21026# Check whether --enable-deprecated was given.
21027if test "${enable_deprecated+set}" = set; then
21028 enableval=$enable_deprecated; enable_deprecated=$enableval
21029else
21030 enable_deprecated='no'
21031fi
21032
21033
21034if test "$enable_deprecated" = 'yes'; then
21035
21036cat >>confdefs.h <<\_ACEOF
21037#define EXCLUDE_DEPRECATED 1
21038_ACEOF
21039
21040else
21041 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21042fi
21043
21044# Build a version of ImageMagick which operates uninstalled.
21045# Used to build distributions located via MAGICK_HOME / executable path
21046# Check whether --enable-installed was given.
21047if test "${enable_installed+set}" = set; then
21048 enableval=$enable_installed; enable_installed=$enableval
21049else
21050 enable_installed='yes'
21051fi
21052
21053
21054if test "$enable_installed" = 'yes'; then
21055
21056cat >>confdefs.h <<\_ACEOF
21057#define INSTALLED_SUPPORT 1
21058_ACEOF
21059
21060else
21061 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21062fi
21063
21064# Permit enciphering and deciphering image pixels.
21065# Check whether --enable-cipher was given.
21066if test "${enable_cipher+set}" = set; then
21067 enableval=$enable_cipher; enable_cipher=$enableval
21068else
21069 enable_cipher='yes'
21070fi
21071
21072
21073if test "$enable_cipher" = 'yes'; then
21074
21075cat >>confdefs.h <<\_ACEOF
21076#define CIPHER_SUPPORT 1
21077_ACEOF
21078
21079fi
21080
21081# Build an embeddable version of ImageMagick.
21082# Check whether --enable-embeddable was given.
21083if test "${enable_embeddable+set}" = set; then
21084 enableval=$enable_embeddable; enable_embeddable=$enableval
21085else
21086 enable_embeddable='no'
21087fi
21088
21089
21090if test "$enable_embeddable" = 'yes'; then
21091
21092cat >>confdefs.h <<\_ACEOF
21093#define EMBEDDABLE_SUPPORT 1
21094_ACEOF
21095
21096fi
21097
21098# Build a high dynamic range version of ImageMagick.
21099# Check whether --enable-hdri was given.
21100if test "${enable_hdri+set}" = set; then
21101 enableval=$enable_hdri; enable_hdri=$enableval
21102else
21103 enable_hdri='no'
21104fi
21105
21106
21107MAGICK_HDRI=""
21108if test "$enable_hdri" = 'yes'; then
21109 MAGICK_HDRI="HDRI"
21110
21111cat >>confdefs.h <<\_ACEOF
21112#define HDRI_SUPPORT 1
21113_ACEOF
21114
21115fi
21116
21117# Enable verbose output from libtool (enable libtool's default)
21118# Check whether --enable-libtool-verbose was given.
21119if test "${enable_libtool_verbose+set}" = set; then
21120 enableval=$enable_libtool_verbose; enable_libtool_verbose=$enableval
21121else
21122 enable_libtool_verbose='no'
21123fi
21124
21125
21126if test "$enable_libtool_verbose" = 'no'; then
21127 LIBTOOL="$LIBTOOL --silent"
21128fi
21129
21130# Build a version of ImageMagick with assert statements.
21131# Check whether --enable-assert was given.
21132if test "${enable_assert+set}" = set; then
21133 enableval=$enable_assert; enable_assert=$enableval
21134else
21135 enable_assert='yes'
21136fi
21137
21138
21139if test "$enable_assert" = 'no'; then
21140
21141cat >>confdefs.h <<\_ACEOF
21142#define NDEBUG 1
21143_ACEOF
21144
21145fi
21146
21147# Add configure option --enable-maintainer-mode which enables dependency
21148# checking and generation useful to package maintainers. This is made an
21149# option to avoid confusing end users.
21150
21151{ $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
21152$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21153 # Check whether --enable-maintainer-mode was given.
21154if test "${enable_maintainer_mode+set}" = set; then
21155 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21156else
21157 USE_MAINTAINER_MODE=no
21158fi
21159
21160 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
21161$as_echo "$USE_MAINTAINER_MODE" >&6; }
21162 if test $USE_MAINTAINER_MODE = yes; then
21163 MAINTAINER_MODE_TRUE=
21164 MAINTAINER_MODE_FALSE='#'
21165else
21166 MAINTAINER_MODE_TRUE='#'
21167 MAINTAINER_MODE_FALSE=
21168fi
21169
21170 MAINT=$MAINTAINER_MODE_TRUE
21171
21172
21173
21174
21175# Enable ccmalloc memory debugging support
21176# Check whether --enable-ccmalloc was given.
21177if test "${enable_ccmalloc+set}" = set; then
21178 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21179else
21180 enable_ccmalloc='no'
21181fi
21182
21183
21184# Enable Electric Fence memory debugging support
21185# Check whether --enable-efence was given.
21186if test "${enable_efence+set}" = set; then
21187 enableval=$enable_efence; enable_efence=$enableval
21188else
21189 enable_efence='no'
21190fi
21191
21192
21193# Enable prof-based profiling support
21194# Check whether --enable-prof was given.
21195if test "${enable_prof+set}" = set; then
21196 enableval=$enable_prof; enable_prof=$enableval
21197else
21198 enable_prof='no'
21199fi
21200
21201
21202# Enable gprof-based profiling support
21203# Check whether --enable-gprof was given.
21204if test "${enable_gprof+set}" = set; then
21205 enableval=$enable_gprof; enable_gprof=$enableval
21206else
21207 enable_gprof='no'
21208fi
21209
21210
21211# Enable gcov-based profiling support
21212# Check whether --enable-gcov was given.
21213if test "${enable_gcov+set}" = set; then
21214 enableval=$enable_gcov; enable_gcov=$enableval
21215else
21216 enable_gcov='no'
21217fi
21218
21219
21220enable_profiling='no'
21221if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21222 enable_profiling='yes'
21223 if test "$libtool_build_shared_libs" = 'yes'; then
21224 echo "Warning: Can not profile code using shared libraries"
21225 fi
21226fi
21227
21228# Magick API method prefix
21229
21230# Check whether --with-method-prefix was given.
21231if test "${with_method_prefix+set}" = set; then
21232 withval=$with_method_prefix; with_method_prefix=$enableval
21233else
21234 with_method_prefix=''
21235fi
21236
21237
21238if test "$with_method_prefix" != ''; then
21239
21240cat >>confdefs.h <<_ACEOF
21241#define NAMESPACE_PREFIX $with_method_prefix
21242_ACEOF
21243
21244fi
21245
21246# Number of bits in a Quantum
21247
21248# Check whether --with-quantum-depth was given.
21249if test "${with_quantum_depth+set}" = set; then
21250 withval=$with_quantum_depth; with_quantum_depth=$withval
21251else
21252 with_quantum_depth=16
21253fi
21254
21255
21256if test "$with_quantum_depth" != '8'; then
21257 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
21258fi
21259
21260case "${with_quantum_depth}" in
21261 8 ) ;;
21262 16 ) ;;
21263 32 ) ;;
21264 64 ) ;;
21265 * ) { { $as_echo "$as_me:$LINENO: error: \"Pixel quantum depth must have value of 8" >&5
21266$as_echo "$as_me: error: \"Pixel quantum depth must have value of 8" >&2;}
21267 { (exit 16); exit 16; }; } ;;
21268esac
21269QUANTUM_DEPTH="$with_quantum_depth"
21270
21271cat >>confdefs.h <<_ACEOF
21272#define QUANTUM_DEPTH $QUANTUM_DEPTH
21273_ACEOF
21274
21275
21276# Set pixel cache threshold
21277
21278# Check whether --with-cache was given.
21279if test "${with_cache+set}" = set; then
21280 withval=$with_cache; with_cache=$withval
21281else
21282 with_cache=''
21283fi
21284
21285
21286if test "$with_cache" != ''; then
21287
21288cat >>confdefs.h <<_ACEOF
21289#define PixelCacheThreshold $with_cache
21290_ACEOF
21291
21292 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21293fi
21294
21295# Disable/Enable support for full delegate paths
21296
21297# Check whether --with-frozenpaths was given.
21298if test "${with_frozenpaths+set}" = set; then
21299 withval=$with_frozenpaths; with_frozenpaths=$withval
21300else
21301 with_frozenpaths='no'
21302fi
21303
21304
21305# Enable build/install of Magick++
21306
21307# Check whether --with-magick-plus-plus was given.
21308if test "${with_magick_plus_plus+set}" = set; then
21309 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21310else
21311 with_magick_plus_plus='yes'
21312fi
21313
21314
21315# Disable build/install of PerlMagick.
21316
21317# Check whether --with-perl was given.
21318if test "${with_perl+set}" = set; then
21319 withval=$with_perl; with_perl=$withval
21320else
21321 with_perl=$libtool_build_shared_libs
21322fi
21323
21324
21325# Options to pass when configuring PerlMagick
21326
21327# Check whether --with-perl-options was given.
21328if test "${with_perl_options+set}" = set; then
21329 withval=$with_perl_options;
21330fi
21331
21332
21333PERL_MAKE_OPTIONS=$with_perl_options
21334
21335
21336
21337# Enable umem, object-caching memory allocation library.
21338
21339# Check whether --with-umem was given.
21340if test "${with_umem+set}" = set; then
21341 withval=$with_umem; with_umem=$withval
21342else
21343 with_umem='no'
21344fi
21345
21346if test "$with_umem" != 'yes' ; then
21347 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21348fi
21349
21350#
21351# Specify path to shared libstdc++ if not in normal location
21352#
21353
21354# Check whether --with-libstdc was given.
21355if test "${with_libstdc+set}" = set; then
21356 withval=$with_libstdc; with_libstdc=$withval
21357else
21358 with_libstdc=''
21359fi
21360
21361
21362if test "$with_libstdc" != ''; then
21363 if test -d "$with_libstdc"; then
21364 LIBSTDCLDFLAGS="-L$with_libstdc"
21365 fi
21366fi
21367
21368
21369# Does gcc required -traditional?
21370if test $ac_cv_c_compiler_gnu = yes; then
21371 { $as_echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
21372$as_echo_n "checking whether $CC needs -traditional... " >&6; }
21373if test "${ac_cv_prog_gcc_traditional+set}" = set; then
21374 $as_echo_n "(cached) " >&6
21375else
21376 ac_pattern="Autoconf.*'x'"
21377 cat >conftest.$ac_ext <<_ACEOF
21378/* confdefs.h. */
21379_ACEOF
21380cat confdefs.h >>conftest.$ac_ext
21381cat >>conftest.$ac_ext <<_ACEOF
21382/* end confdefs.h. */
21383#include <sgtty.h>
21384Autoconf TIOCGETP
21385_ACEOF
21386if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21387 $EGREP "$ac_pattern" >/dev/null 2>&1; then
21388 ac_cv_prog_gcc_traditional=yes
21389else
21390 ac_cv_prog_gcc_traditional=no
21391fi
21392rm -f conftest*
21393
21394
21395 if test $ac_cv_prog_gcc_traditional = no; then
21396 cat >conftest.$ac_ext <<_ACEOF
21397/* confdefs.h. */
21398_ACEOF
21399cat confdefs.h >>conftest.$ac_ext
21400cat >>conftest.$ac_ext <<_ACEOF
21401/* end confdefs.h. */
21402#include <termio.h>
21403Autoconf TCGETA
21404_ACEOF
21405if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21406 $EGREP "$ac_pattern" >/dev/null 2>&1; then
21407 ac_cv_prog_gcc_traditional=yes
21408fi
21409rm -f conftest*
21410
21411 fi
21412fi
21413{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
21414$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21415 if test $ac_cv_prog_gcc_traditional = yes; then
21416 CC="$CC -traditional"
21417 fi
21418fi
21419
21420
21421########
21422#
21423# Set defines required to build DLLs and modules using MinGW
21424#
21425########
21426# These options are set for multi-thread DLL module build
21427# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21428# module: _DLL
21429# executable/Magick++: _DLL _MAGICKMOD_
21430MODULE_EXTRA_CPPFLAGS=''
21431LIBRARY_EXTRA_CPPFLAGS=''
21432if test "${native_win32_build}" = 'yes'; then
21433 if test "${libtool_build_shared_libs}" = 'yes'; then
21434 CPPFLAGS="$CPPFLAGS -D_DLL"
21435 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21436 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21437 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21438 if test "$with_modules" = 'yes'; then
21439 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21440 else
21441 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21442 fi
21443 else
21444 CPPFLAGS="$CPPFLAGS -D_LIB"
21445 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21446 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21447 fi
21448 if test "$with_threads" = 'yes'; then
21449 CPPFLAGS="$CPPFLAGS -D_MT"
21450 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21451 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21452 fi
21453fi
21454
21455
21456
21457# Check standard headers
21458{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21459$as_echo_n "checking for ANSI C header files... " >&6; }
21460if test "${ac_cv_header_stdc+set}" = set; then
21461 $as_echo_n "(cached) " >&6
21462else
21463 cat >conftest.$ac_ext <<_ACEOF
21464/* confdefs.h. */
21465_ACEOF
21466cat confdefs.h >>conftest.$ac_ext
21467cat >>conftest.$ac_ext <<_ACEOF
21468/* end confdefs.h. */
21469#include <stdlib.h>
21470#include <stdarg.h>
21471#include <string.h>
21472#include <float.h>
21473
21474int
21475main ()
21476{
21477
21478 ;
21479 return 0;
21480}
21481_ACEOF
21482rm -f conftest.$ac_objext
21483if { (ac_try="$ac_compile"
21484case "(($ac_try" in
21485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21486 *) ac_try_echo=$ac_try;;
21487esac
21488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21489$as_echo "$ac_try_echo") >&5
21490 (eval "$ac_compile") 2>conftest.er1
21491 ac_status=$?
21492 grep -v '^ *+' conftest.er1 >conftest.err
21493 rm -f conftest.er1
21494 cat conftest.err >&5
21495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); } && {
21497 test -z "$ac_c_werror_flag" ||
21498 test ! -s conftest.err
21499 } && test -s conftest.$ac_objext; then
21500 ac_cv_header_stdc=yes
21501else
21502 $as_echo "$as_me: failed program was:" >&5
21503sed 's/^/| /' conftest.$ac_ext >&5
21504
21505 ac_cv_header_stdc=no
21506fi
21507
21508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21509
21510if test $ac_cv_header_stdc = yes; then
21511 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21512 cat >conftest.$ac_ext <<_ACEOF
21513/* confdefs.h. */
21514_ACEOF
21515cat confdefs.h >>conftest.$ac_ext
21516cat >>conftest.$ac_ext <<_ACEOF
21517/* end confdefs.h. */
21518#include <string.h>
21519
21520_ACEOF
21521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21522 $EGREP "memchr" >/dev/null 2>&1; then
21523 :
21524else
21525 ac_cv_header_stdc=no
21526fi
21527rm -f conftest*
21528
21529fi
21530
21531if test $ac_cv_header_stdc = yes; then
21532 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21533 cat >conftest.$ac_ext <<_ACEOF
21534/* confdefs.h. */
21535_ACEOF
21536cat confdefs.h >>conftest.$ac_ext
21537cat >>conftest.$ac_ext <<_ACEOF
21538/* end confdefs.h. */
21539#include <stdlib.h>
21540
21541_ACEOF
21542if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21543 $EGREP "free" >/dev/null 2>&1; then
21544 :
21545else
21546 ac_cv_header_stdc=no
21547fi
21548rm -f conftest*
21549
21550fi
21551
21552if test $ac_cv_header_stdc = yes; then
21553 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21554 if test "$cross_compiling" = yes; then
21555 :
21556else
21557 cat >conftest.$ac_ext <<_ACEOF
21558/* confdefs.h. */
21559_ACEOF
21560cat confdefs.h >>conftest.$ac_ext
21561cat >>conftest.$ac_ext <<_ACEOF
21562/* end confdefs.h. */
21563#include <ctype.h>
21564#include <stdlib.h>
21565#if ((' ' & 0x0FF) == 0x020)
21566# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21567# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21568#else
21569# define ISLOWER(c) \
21570 (('a' <= (c) && (c) <= 'i') \
21571 || ('j' <= (c) && (c) <= 'r') \
21572 || ('s' <= (c) && (c) <= 'z'))
21573# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21574#endif
21575
21576#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21577int
21578main ()
21579{
21580 int i;
21581 for (i = 0; i < 256; i++)
21582 if (XOR (islower (i), ISLOWER (i))
21583 || toupper (i) != TOUPPER (i))
21584 return 2;
21585 return 0;
21586}
21587_ACEOF
21588rm -f conftest$ac_exeext
21589if { (ac_try="$ac_link"
21590case "(($ac_try" in
21591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592 *) ac_try_echo=$ac_try;;
21593esac
21594eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21595$as_echo "$ac_try_echo") >&5
21596 (eval "$ac_link") 2>&5
21597 ac_status=$?
21598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21599 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21600 { (case "(($ac_try" in
21601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21602 *) ac_try_echo=$ac_try;;
21603esac
21604eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21605$as_echo "$ac_try_echo") >&5
21606 (eval "$ac_try") 2>&5
21607 ac_status=$?
21608 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21609 (exit $ac_status); }; }; then
21610 :
21611else
21612 $as_echo "$as_me: program exited with status $ac_status" >&5
21613$as_echo "$as_me: failed program was:" >&5
21614sed 's/^/| /' conftest.$ac_ext >&5
21615
21616( exit $ac_status )
21617ac_cv_header_stdc=no
21618fi
21619rm -rf conftest.dSYM
21620rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21621fi
21622
21623
21624fi
21625fi
21626{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21627$as_echo "$ac_cv_header_stdc" >&6; }
21628if test $ac_cv_header_stdc = yes; then
21629
21630cat >>confdefs.h <<\_ACEOF
21631#define STDC_HEADERS 1
21632_ACEOF
21633
21634fi
21635
21636if ! test x"$ac_cv_header_stdc" = x"yes"; then
21637 { $as_echo "$as_me:$LINENO: WARNING: configure has detected that you do not have the ANSI standard C
21638 header files. Compilation cannot proceed. Please install the ANSI C
21639 headers and rerun this script." >&5
21640$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21641 header files. Compilation cannot proceed. Please install the ANSI C
21642 headers and rerun this script." >&2;};
21643fi
21644
21645
21646
21647
21648
21649ac_header_dirent=no
21650for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21651 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
21652{ $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
21653$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
21654if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21655 $as_echo_n "(cached) " >&6
21656else
21657 cat >conftest.$ac_ext <<_ACEOF
21658/* confdefs.h. */
21659_ACEOF
21660cat confdefs.h >>conftest.$ac_ext
21661cat >>conftest.$ac_ext <<_ACEOF
21662/* end confdefs.h. */
21663#include <sys/types.h>
21664#include <$ac_hdr>
21665
21666int
21667main ()
21668{
21669if ((DIR *) 0)
21670return 0;
21671 ;
21672 return 0;
21673}
21674_ACEOF
21675rm -f conftest.$ac_objext
21676if { (ac_try="$ac_compile"
21677case "(($ac_try" in
21678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21679 *) ac_try_echo=$ac_try;;
21680esac
21681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21682$as_echo "$ac_try_echo") >&5
21683 (eval "$ac_compile") 2>conftest.er1
21684 ac_status=$?
21685 grep -v '^ *+' conftest.er1 >conftest.err
21686 rm -f conftest.er1
21687 cat conftest.err >&5
21688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); } && {
21690 test -z "$ac_c_werror_flag" ||
21691 test ! -s conftest.err
21692 } && test -s conftest.$ac_objext; then
21693 eval "$as_ac_Header=yes"
21694else
21695 $as_echo "$as_me: failed program was:" >&5
21696sed 's/^/| /' conftest.$ac_ext >&5
21697
21698 eval "$as_ac_Header=no"
21699fi
21700
21701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21702fi
21703ac_res=`eval 'as_val=${'$as_ac_Header'}
21704 $as_echo "$as_val"'`
21705 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21706$as_echo "$ac_res" >&6; }
21707as_val=`eval 'as_val=${'$as_ac_Header'}
21708 $as_echo "$as_val"'`
21709 if test "x$as_val" = x""yes; then
21710 cat >>confdefs.h <<_ACEOF
21711#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21712_ACEOF
21713
21714ac_header_dirent=$ac_hdr; break
21715fi
21716
21717done
21718# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21719if test $ac_header_dirent = dirent.h; then
21720 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
21721$as_echo_n "checking for library containing opendir... " >&6; }
21722if test "${ac_cv_search_opendir+set}" = set; then
21723 $as_echo_n "(cached) " >&6
21724else
21725 ac_func_search_save_LIBS=$LIBS
21726cat >conftest.$ac_ext <<_ACEOF
21727/* confdefs.h. */
21728_ACEOF
21729cat confdefs.h >>conftest.$ac_ext
21730cat >>conftest.$ac_ext <<_ACEOF
21731/* end confdefs.h. */
21732
21733/* Override any GCC internal prototype to avoid an error.
21734 Use char because int might match the return type of a GCC
21735 builtin and then its argument prototype would still apply. */
21736#ifdef __cplusplus
21737extern "C"
21738#endif
21739char opendir ();
21740int
21741main ()
21742{
21743return opendir ();
21744 ;
21745 return 0;
21746}
21747_ACEOF
21748for ac_lib in '' dir; do
21749 if test -z "$ac_lib"; then
21750 ac_res="none required"
21751 else
21752 ac_res=-l$ac_lib
21753 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21754 fi
21755 rm -f conftest.$ac_objext conftest$ac_exeext
21756if { (ac_try="$ac_link"
21757case "(($ac_try" in
21758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21759 *) ac_try_echo=$ac_try;;
21760esac
21761eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21762$as_echo "$ac_try_echo") >&5
21763 (eval "$ac_link") 2>conftest.er1
21764 ac_status=$?
21765 grep -v '^ *+' conftest.er1 >conftest.err
21766 rm -f conftest.er1
21767 cat conftest.err >&5
21768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); } && {
21770 test -z "$ac_c_werror_flag" ||
21771 test ! -s conftest.err
21772 } && test -s conftest$ac_exeext && {
21773 test "$cross_compiling" = yes ||
21774 $as_test_x conftest$ac_exeext
21775 }; then
21776 ac_cv_search_opendir=$ac_res
21777else
21778 $as_echo "$as_me: failed program was:" >&5
21779sed 's/^/| /' conftest.$ac_ext >&5
21780
21781
21782fi
21783
21784rm -rf conftest.dSYM
21785rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21786 conftest$ac_exeext
21787 if test "${ac_cv_search_opendir+set}" = set; then
21788 break
21789fi
21790done
21791if test "${ac_cv_search_opendir+set}" = set; then
21792 :
21793else
21794 ac_cv_search_opendir=no
21795fi
21796rm conftest.$ac_ext
21797LIBS=$ac_func_search_save_LIBS
21798fi
21799{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21800$as_echo "$ac_cv_search_opendir" >&6; }
21801ac_res=$ac_cv_search_opendir
21802if test "$ac_res" != no; then
21803 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21804
21805fi
21806
21807else
21808 { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
21809$as_echo_n "checking for library containing opendir... " >&6; }
21810if test "${ac_cv_search_opendir+set}" = set; then
21811 $as_echo_n "(cached) " >&6
21812else
21813 ac_func_search_save_LIBS=$LIBS
21814cat >conftest.$ac_ext <<_ACEOF
21815/* confdefs.h. */
21816_ACEOF
21817cat confdefs.h >>conftest.$ac_ext
21818cat >>conftest.$ac_ext <<_ACEOF
21819/* end confdefs.h. */
21820
21821/* Override any GCC internal prototype to avoid an error.
21822 Use char because int might match the return type of a GCC
21823 builtin and then its argument prototype would still apply. */
21824#ifdef __cplusplus
21825extern "C"
21826#endif
21827char opendir ();
21828int
21829main ()
21830{
21831return opendir ();
21832 ;
21833 return 0;
21834}
21835_ACEOF
21836for ac_lib in '' x; do
21837 if test -z "$ac_lib"; then
21838 ac_res="none required"
21839 else
21840 ac_res=-l$ac_lib
21841 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21842 fi
21843 rm -f conftest.$ac_objext conftest$ac_exeext
21844if { (ac_try="$ac_link"
21845case "(($ac_try" in
21846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21847 *) ac_try_echo=$ac_try;;
21848esac
21849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21850$as_echo "$ac_try_echo") >&5
21851 (eval "$ac_link") 2>conftest.er1
21852 ac_status=$?
21853 grep -v '^ *+' conftest.er1 >conftest.err
21854 rm -f conftest.er1
21855 cat conftest.err >&5
21856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857 (exit $ac_status); } && {
21858 test -z "$ac_c_werror_flag" ||
21859 test ! -s conftest.err
21860 } && test -s conftest$ac_exeext && {
21861 test "$cross_compiling" = yes ||
21862 $as_test_x conftest$ac_exeext
21863 }; then
21864 ac_cv_search_opendir=$ac_res
21865else
21866 $as_echo "$as_me: failed program was:" >&5
21867sed 's/^/| /' conftest.$ac_ext >&5
21868
21869
21870fi
21871
21872rm -rf conftest.dSYM
21873rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21874 conftest$ac_exeext
21875 if test "${ac_cv_search_opendir+set}" = set; then
21876 break
21877fi
21878done
21879if test "${ac_cv_search_opendir+set}" = set; then
21880 :
21881else
21882 ac_cv_search_opendir=no
21883fi
21884rm conftest.$ac_ext
21885LIBS=$ac_func_search_save_LIBS
21886fi
21887{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21888$as_echo "$ac_cv_search_opendir" >&6; }
21889ac_res=$ac_cv_search_opendir
21890if test "$ac_res" != no; then
21891 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21892
21893fi
21894
21895fi
21896
21897
21898# Check additional headers
21899
21900
21901
21902
21903
21904
21905
21906
21907
21908
21909
21910
21911
21912
21913
21914
21915
21916
21917
21918
21919
21920
21921
21922
21923
21924for ac_header in arm/limits.h complex.h errno.h fcntl.h inttypes.h limits.h linux/unistd.h locale.h machine/param.h mach-o/dyld.h OS.h stdarg.h stddef.h string.h strings.h sys/ipc.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/types.h sys/wait.h unistd.h wchar.h
21925do
21926as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21927if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21928 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21929$as_echo_n "checking for $ac_header... " >&6; }
21930if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21931 $as_echo_n "(cached) " >&6
21932fi
21933ac_res=`eval 'as_val=${'$as_ac_Header'}
21934 $as_echo "$as_val"'`
21935 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21936$as_echo "$ac_res" >&6; }
21937else
21938 # Is the header compilable?
21939{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21940$as_echo_n "checking $ac_header usability... " >&6; }
21941cat >conftest.$ac_ext <<_ACEOF
21942/* confdefs.h. */
21943_ACEOF
21944cat confdefs.h >>conftest.$ac_ext
21945cat >>conftest.$ac_ext <<_ACEOF
21946/* end confdefs.h. */
21947$ac_includes_default
21948#include <$ac_header>
21949_ACEOF
21950rm -f conftest.$ac_objext
21951if { (ac_try="$ac_compile"
21952case "(($ac_try" in
21953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21954 *) ac_try_echo=$ac_try;;
21955esac
21956eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21957$as_echo "$ac_try_echo") >&5
21958 (eval "$ac_compile") 2>conftest.er1
21959 ac_status=$?
21960 grep -v '^ *+' conftest.er1 >conftest.err
21961 rm -f conftest.er1
21962 cat conftest.err >&5
21963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); } && {
21965 test -z "$ac_c_werror_flag" ||
21966 test ! -s conftest.err
21967 } && test -s conftest.$ac_objext; then
21968 ac_header_compiler=yes
21969else
21970 $as_echo "$as_me: failed program was:" >&5
21971sed 's/^/| /' conftest.$ac_ext >&5
21972
21973 ac_header_compiler=no
21974fi
21975
21976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21977{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21978$as_echo "$ac_header_compiler" >&6; }
21979
21980# Is the header present?
21981{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21982$as_echo_n "checking $ac_header presence... " >&6; }
21983cat >conftest.$ac_ext <<_ACEOF
21984/* confdefs.h. */
21985_ACEOF
21986cat confdefs.h >>conftest.$ac_ext
21987cat >>conftest.$ac_ext <<_ACEOF
21988/* end confdefs.h. */
21989#include <$ac_header>
21990_ACEOF
21991if { (ac_try="$ac_cpp conftest.$ac_ext"
21992case "(($ac_try" in
21993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21994 *) ac_try_echo=$ac_try;;
21995esac
21996eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21997$as_echo "$ac_try_echo") >&5
21998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21999 ac_status=$?
22000 grep -v '^ *+' conftest.er1 >conftest.err
22001 rm -f conftest.er1
22002 cat conftest.err >&5
22003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22004 (exit $ac_status); } >/dev/null && {
22005 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22006 test ! -s conftest.err
22007 }; then
22008 ac_header_preproc=yes
22009else
22010 $as_echo "$as_me: failed program was:" >&5
22011sed 's/^/| /' conftest.$ac_ext >&5
22012
22013 ac_header_preproc=no
22014fi
22015
22016rm -f conftest.err conftest.$ac_ext
22017{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22018$as_echo "$ac_header_preproc" >&6; }
22019
22020# So? What about this header?
22021case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22022 yes:no: )
22023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22024$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22026$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22027 ac_header_preproc=yes
22028 ;;
22029 no:yes:* )
22030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22031$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22033$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22035$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22037$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22039$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22041$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22042 ( cat <<\_ASBOX
22043## ----------------------------------------- ##
22044## Report this to http://www.imagemagick.org ##
22045## ----------------------------------------- ##
22046_ASBOX
22047 ) | sed "s/^/$as_me: WARNING: /" >&2
22048 ;;
22049esac
22050{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22051$as_echo_n "checking for $ac_header... " >&6; }
22052if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22053 $as_echo_n "(cached) " >&6
22054else
22055 eval "$as_ac_Header=\$ac_header_preproc"
22056fi
22057ac_res=`eval 'as_val=${'$as_ac_Header'}
22058 $as_echo "$as_val"'`
22059 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22060$as_echo "$ac_res" >&6; }
22061
22062fi
22063as_val=`eval 'as_val=${'$as_ac_Header'}
22064 $as_echo "$as_val"'`
22065 if test "x$as_val" = x""yes; then
22066 cat >>confdefs.h <<_ACEOF
22067#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22068_ACEOF
22069
22070fi
22071
22072done
22073
22074
22075########
22076#
22077# Checks for typedefs, structures, and compiler characteristics.
22078#
22079########
22080
22081{ $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
22082$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
22083if test "${ac_cv_header_stdbool_h+set}" = set; then
22084 $as_echo_n "(cached) " >&6
22085else
22086 cat >conftest.$ac_ext <<_ACEOF
22087/* confdefs.h. */
22088_ACEOF
22089cat confdefs.h >>conftest.$ac_ext
22090cat >>conftest.$ac_ext <<_ACEOF
22091/* end confdefs.h. */
22092
22093#include <stdbool.h>
22094#ifndef bool
22095 "error: bool is not defined"
22096#endif
22097#ifndef false
22098 "error: false is not defined"
22099#endif
22100#if false
22101 "error: false is not 0"
22102#endif
22103#ifndef true
22104 "error: true is not defined"
22105#endif
22106#if true != 1
22107 "error: true is not 1"
22108#endif
22109#ifndef __bool_true_false_are_defined
22110 "error: __bool_true_false_are_defined is not defined"
22111#endif
22112
22113 struct s { _Bool s: 1; _Bool t; } s;
22114
22115 char a[true == 1 ? 1 : -1];
22116 char b[false == 0 ? 1 : -1];
22117 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22118 char d[(bool) 0.5 == true ? 1 : -1];
22119 bool e = &s;
22120 char f[(_Bool) 0.0 == false ? 1 : -1];
22121 char g[true];
22122 char h[sizeof (_Bool)];
22123 char i[sizeof s.t];
22124 enum { j = false, k = true, l = false * true, m = true * 256 };
22125 /* The following fails for
22126 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22127 _Bool n[m];
22128 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22129 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22130# if defined __xlc__ || defined __GNUC__
22131 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
22132 reported by James Lemley on 2005-10-05; see
22133 http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
22134 This test is not quite right, since xlc is allowed to
22135 reject this program, as the initializer for xlcbug is
22136 not one of the forms that C requires support for.
22137 However, doing the test right would require a runtime
22138 test, and that would make cross-compilation harder.
22139 Let us hope that IBM fixes the xlc bug, and also adds
22140 support for this kind of constant expression. In the
22141 meantime, this test will reject xlc, which is OK, since
22142 our stdbool.h substitute should suffice. We also test
22143 this with GCC, where it should work, to detect more
22144 quickly whether someone messes up the test in the
22145 future. */
22146 char digs[] = "0123456789";
22147 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
22148# endif
22149 /* Catch a bug in an HP-UX C compiler. See
22150 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22151 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22152 */
22153 _Bool q = true;
22154 _Bool *pq = &q;
22155
22156int
22157main ()
22158{
22159
22160 *pq |= q;
22161 *pq |= ! q;
22162 /* Refer to every declared value, to avoid compiler optimizations. */
22163 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22164 + !m + !n + !o + !p + !q + !pq);
22165
22166 ;
22167 return 0;
22168}
22169_ACEOF
22170rm -f conftest.$ac_objext
22171if { (ac_try="$ac_compile"
22172case "(($ac_try" in
22173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22174 *) ac_try_echo=$ac_try;;
22175esac
22176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22177$as_echo "$ac_try_echo") >&5
22178 (eval "$ac_compile") 2>conftest.er1
22179 ac_status=$?
22180 grep -v '^ *+' conftest.er1 >conftest.err
22181 rm -f conftest.er1
22182 cat conftest.err >&5
22183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); } && {
22185 test -z "$ac_c_werror_flag" ||
22186 test ! -s conftest.err
22187 } && test -s conftest.$ac_objext; then
22188 ac_cv_header_stdbool_h=yes
22189else
22190 $as_echo "$as_me: failed program was:" >&5
22191sed 's/^/| /' conftest.$ac_ext >&5
22192
22193 ac_cv_header_stdbool_h=no
22194fi
22195
22196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22197fi
22198{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
22199$as_echo "$ac_cv_header_stdbool_h" >&6; }
22200{ $as_echo "$as_me:$LINENO: checking for _Bool" >&5
22201$as_echo_n "checking for _Bool... " >&6; }
22202if test "${ac_cv_type__Bool+set}" = set; then
22203 $as_echo_n "(cached) " >&6
22204else
22205 ac_cv_type__Bool=no
22206cat >conftest.$ac_ext <<_ACEOF
22207/* confdefs.h. */
22208_ACEOF
22209cat confdefs.h >>conftest.$ac_ext
22210cat >>conftest.$ac_ext <<_ACEOF
22211/* end confdefs.h. */
22212$ac_includes_default
22213int
22214main ()
22215{
22216if (sizeof (_Bool))
22217 return 0;
22218 ;
22219 return 0;
22220}
22221_ACEOF
22222rm -f conftest.$ac_objext
22223if { (ac_try="$ac_compile"
22224case "(($ac_try" in
22225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22226 *) ac_try_echo=$ac_try;;
22227esac
22228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22229$as_echo "$ac_try_echo") >&5
22230 (eval "$ac_compile") 2>conftest.er1
22231 ac_status=$?
22232 grep -v '^ *+' conftest.er1 >conftest.err
22233 rm -f conftest.er1
22234 cat conftest.err >&5
22235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); } && {
22237 test -z "$ac_c_werror_flag" ||
22238 test ! -s conftest.err
22239 } && test -s conftest.$ac_objext; then
22240 cat >conftest.$ac_ext <<_ACEOF
22241/* confdefs.h. */
22242_ACEOF
22243cat confdefs.h >>conftest.$ac_ext
22244cat >>conftest.$ac_ext <<_ACEOF
22245/* end confdefs.h. */
22246$ac_includes_default
22247int
22248main ()
22249{
22250if (sizeof ((_Bool)))
22251 return 0;
22252 ;
22253 return 0;
22254}
22255_ACEOF
22256rm -f conftest.$ac_objext
22257if { (ac_try="$ac_compile"
22258case "(($ac_try" in
22259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22260 *) ac_try_echo=$ac_try;;
22261esac
22262eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22263$as_echo "$ac_try_echo") >&5
22264 (eval "$ac_compile") 2>conftest.er1
22265 ac_status=$?
22266 grep -v '^ *+' conftest.er1 >conftest.err
22267 rm -f conftest.er1
22268 cat conftest.err >&5
22269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); } && {
22271 test -z "$ac_c_werror_flag" ||
22272 test ! -s conftest.err
22273 } && test -s conftest.$ac_objext; then
22274 :
22275else
22276 $as_echo "$as_me: failed program was:" >&5
22277sed 's/^/| /' conftest.$ac_ext >&5
22278
22279 ac_cv_type__Bool=yes
22280fi
22281
22282rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22283else
22284 $as_echo "$as_me: failed program was:" >&5
22285sed 's/^/| /' conftest.$ac_ext >&5
22286
22287
22288fi
22289
22290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22291fi
22292{ $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
22293$as_echo "$ac_cv_type__Bool" >&6; }
22294if test "x$ac_cv_type__Bool" = x""yes; then
22295
22296cat >>confdefs.h <<_ACEOF
22297#define HAVE__BOOL 1
22298_ACEOF
22299
22300
22301fi
22302
22303if test $ac_cv_header_stdbool_h = yes; then
22304
22305cat >>confdefs.h <<\_ACEOF
22306#define HAVE_STDBOOL_H 1
22307_ACEOF
22308
22309fi
22310
22311{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5
22312$as_echo_n "checking for working volatile... " >&6; }
22313if test "${ac_cv_c_volatile+set}" = set; then
22314 $as_echo_n "(cached) " >&6
22315else
22316 cat >conftest.$ac_ext <<_ACEOF
22317/* confdefs.h. */
22318_ACEOF
22319cat confdefs.h >>conftest.$ac_ext
22320cat >>conftest.$ac_ext <<_ACEOF
22321/* end confdefs.h. */
22322
22323int
22324main ()
22325{
22326
22327volatile int x;
22328int * volatile y = (int *) 0;
22329return !x && !y;
22330 ;
22331 return 0;
22332}
22333_ACEOF
22334rm -f conftest.$ac_objext
22335if { (ac_try="$ac_compile"
22336case "(($ac_try" in
22337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22338 *) ac_try_echo=$ac_try;;
22339esac
22340eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22341$as_echo "$ac_try_echo") >&5
22342 (eval "$ac_compile") 2>conftest.er1
22343 ac_status=$?
22344 grep -v '^ *+' conftest.er1 >conftest.err
22345 rm -f conftest.er1
22346 cat conftest.err >&5
22347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22348 (exit $ac_status); } && {
22349 test -z "$ac_c_werror_flag" ||
22350 test ! -s conftest.err
22351 } && test -s conftest.$ac_objext; then
22352 ac_cv_c_volatile=yes
22353else
22354 $as_echo "$as_me: failed program was:" >&5
22355sed 's/^/| /' conftest.$ac_ext >&5
22356
22357 ac_cv_c_volatile=no
22358fi
22359
22360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22361fi
22362{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
22363$as_echo "$ac_cv_c_volatile" >&6; }
22364if test $ac_cv_c_volatile = no; then
22365
22366cat >>confdefs.h <<\_ACEOF
22367#define volatile /**/
22368_ACEOF
22369
22370fi
22371
22372{ $as_echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
22373$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
22374if test "${ac_cv_c_stringize+set}" = set; then
22375 $as_echo_n "(cached) " >&6
22376else
22377 cat >conftest.$ac_ext <<_ACEOF
22378/* confdefs.h. */
22379_ACEOF
22380cat confdefs.h >>conftest.$ac_ext
22381cat >>conftest.$ac_ext <<_ACEOF
22382/* end confdefs.h. */
22383#define x(y) #y
22384
22385char *s = x(teststring);
22386_ACEOF
22387if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22388 $EGREP "#teststring" >/dev/null 2>&1; then
22389 ac_cv_c_stringize=no
22390else
22391 ac_cv_c_stringize=yes
22392fi
22393rm -f conftest*
22394
22395fi
22396{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
22397$as_echo "$ac_cv_c_stringize" >&6; }
22398if test $ac_cv_c_stringize = yes; then
22399
22400cat >>confdefs.h <<\_ACEOF
22401#define HAVE_STRINGIZE 1
22402_ACEOF
22403
22404fi
22405
22406{ $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
22407$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22408if test "${ac_cv_header_stat_broken+set}" = set; then
22409 $as_echo_n "(cached) " >&6
22410else
22411 cat >conftest.$ac_ext <<_ACEOF
22412/* confdefs.h. */
22413_ACEOF
22414cat confdefs.h >>conftest.$ac_ext
22415cat >>conftest.$ac_ext <<_ACEOF
22416/* end confdefs.h. */
22417#include <sys/types.h>
22418#include <sys/stat.h>
22419
22420#if defined S_ISBLK && defined S_IFDIR
22421extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22422#endif
22423
22424#if defined S_ISBLK && defined S_IFCHR
22425extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22426#endif
22427
22428#if defined S_ISLNK && defined S_IFREG
22429extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22430#endif
22431
22432#if defined S_ISSOCK && defined S_IFREG
22433extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22434#endif
22435
22436_ACEOF
22437rm -f conftest.$ac_objext
22438if { (ac_try="$ac_compile"
22439case "(($ac_try" in
22440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22441 *) ac_try_echo=$ac_try;;
22442esac
22443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22444$as_echo "$ac_try_echo") >&5
22445 (eval "$ac_compile") 2>conftest.er1
22446 ac_status=$?
22447 grep -v '^ *+' conftest.er1 >conftest.err
22448 rm -f conftest.er1
22449 cat conftest.err >&5
22450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22451 (exit $ac_status); } && {
22452 test -z "$ac_c_werror_flag" ||
22453 test ! -s conftest.err
22454 } && test -s conftest.$ac_objext; then
22455 ac_cv_header_stat_broken=no
22456else
22457 $as_echo "$as_me: failed program was:" >&5
22458sed 's/^/| /' conftest.$ac_ext >&5
22459
22460 ac_cv_header_stat_broken=yes
22461fi
22462
22463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22464fi
22465{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
22466$as_echo "$ac_cv_header_stat_broken" >&6; }
22467if test $ac_cv_header_stat_broken = yes; then
22468
22469cat >>confdefs.h <<\_ACEOF
22470#define STAT_MACROS_BROKEN 1
22471_ACEOF
22472
22473fi
22474
22475{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
22476$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22477if test "${ac_cv_header_time+set}" = set; then
22478 $as_echo_n "(cached) " >&6
22479else
22480 cat >conftest.$ac_ext <<_ACEOF
22481/* confdefs.h. */
22482_ACEOF
22483cat confdefs.h >>conftest.$ac_ext
22484cat >>conftest.$ac_ext <<_ACEOF
22485/* end confdefs.h. */
22486#include <sys/types.h>
22487#include <sys/time.h>
22488#include <time.h>
22489
22490int
22491main ()
22492{
22493if ((struct tm *) 0)
22494return 0;
22495 ;
22496 return 0;
22497}
22498_ACEOF
22499rm -f conftest.$ac_objext
22500if { (ac_try="$ac_compile"
22501case "(($ac_try" in
22502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22503 *) ac_try_echo=$ac_try;;
22504esac
22505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22506$as_echo "$ac_try_echo") >&5
22507 (eval "$ac_compile") 2>conftest.er1
22508 ac_status=$?
22509 grep -v '^ *+' conftest.er1 >conftest.err
22510 rm -f conftest.er1
22511 cat conftest.err >&5
22512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22513 (exit $ac_status); } && {
22514 test -z "$ac_c_werror_flag" ||
22515 test ! -s conftest.err
22516 } && test -s conftest.$ac_objext; then
22517 ac_cv_header_time=yes
22518else
22519 $as_echo "$as_me: failed program was:" >&5
22520sed 's/^/| /' conftest.$ac_ext >&5
22521
22522 ac_cv_header_time=no
22523fi
22524
22525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22526fi
22527{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
22528$as_echo "$ac_cv_header_time" >&6; }
22529if test $ac_cv_header_time = yes; then
22530
22531cat >>confdefs.h <<\_ACEOF
22532#define TIME_WITH_SYS_TIME 1
22533_ACEOF
22534
22535fi
22536
22537{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22538$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
22539if test "${ac_cv_struct_tm+set}" = set; then
22540 $as_echo_n "(cached) " >&6
22541else
22542 cat >conftest.$ac_ext <<_ACEOF
22543/* confdefs.h. */
22544_ACEOF
22545cat confdefs.h >>conftest.$ac_ext
22546cat >>conftest.$ac_ext <<_ACEOF
22547/* end confdefs.h. */
22548#include <sys/types.h>
22549#include <time.h>
22550
22551int
22552main ()
22553{
22554struct tm tm;
22555 int *p = &tm.tm_sec;
22556 return !p;
22557 ;
22558 return 0;
22559}
22560_ACEOF
22561rm -f conftest.$ac_objext
22562if { (ac_try="$ac_compile"
22563case "(($ac_try" in
22564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22565 *) ac_try_echo=$ac_try;;
22566esac
22567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22568$as_echo "$ac_try_echo") >&5
22569 (eval "$ac_compile") 2>conftest.er1
22570 ac_status=$?
22571 grep -v '^ *+' conftest.er1 >conftest.err
22572 rm -f conftest.er1
22573 cat conftest.err >&5
22574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575 (exit $ac_status); } && {
22576 test -z "$ac_c_werror_flag" ||
22577 test ! -s conftest.err
22578 } && test -s conftest.$ac_objext; then
22579 ac_cv_struct_tm=time.h
22580else
22581 $as_echo "$as_me: failed program was:" >&5
22582sed 's/^/| /' conftest.$ac_ext >&5
22583
22584 ac_cv_struct_tm=sys/time.h
22585fi
22586
22587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22588fi
22589{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22590$as_echo "$ac_cv_struct_tm" >&6; }
22591if test $ac_cv_struct_tm = sys/time.h; then
22592
22593cat >>confdefs.h <<\_ACEOF
22594#define TM_IN_SYS_TIME 1
22595_ACEOF
22596
22597fi
22598
22599{ $as_echo "$as_me:$LINENO: checking whether #! works in shell scripts" >&5
22600$as_echo_n "checking whether #! works in shell scripts... " >&6; }
22601if test "${ac_cv_sys_interpreter+set}" = set; then
22602 $as_echo_n "(cached) " >&6
22603else
22604 echo '#! /bin/cat
22605exit 69
22606' >conftest
22607chmod u+x conftest
22608(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22609if test $? -ne 69; then
22610 ac_cv_sys_interpreter=yes
22611else
22612 ac_cv_sys_interpreter=no
22613fi
22614rm -f conftest
22615fi
22616{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_interpreter" >&5
22617$as_echo "$ac_cv_sys_interpreter" >&6; }
22618interpval=$ac_cv_sys_interpreter
22619
22620
22621# If the C compiler does not fully support the ANSI C qualifier const,
22622# define const to be empty.
22623{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22624$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22625if test "${ac_cv_c_const+set}" = set; then
22626 $as_echo_n "(cached) " >&6
22627else
22628 cat >conftest.$ac_ext <<_ACEOF
22629/* confdefs.h. */
22630_ACEOF
22631cat confdefs.h >>conftest.$ac_ext
22632cat >>conftest.$ac_ext <<_ACEOF
22633/* end confdefs.h. */
22634
22635int
22636main ()
22637{
22638/* FIXME: Include the comments suggested by Paul. */
22639#ifndef __cplusplus
22640 /* Ultrix mips cc rejects this. */
22641 typedef int charset[2];
22642 const charset cs;
22643 /* SunOS 4.1.1 cc rejects this. */
22644 char const *const *pcpcc;
22645 char **ppc;
22646 /* NEC SVR4.0.2 mips cc rejects this. */
22647 struct point {int x, y;};
22648 static struct point const zero = {0,0};
22649 /* AIX XL C 1.02.0.0 rejects this.
22650 It does not let you subtract one const X* pointer from another in
22651 an arm of an if-expression whose if-part is not a constant
22652 expression */
22653 const char *g = "string";
22654 pcpcc = &g + (g ? g-g : 0);
22655 /* HPUX 7.0 cc rejects these. */
22656 ++pcpcc;
22657 ppc = (char**) pcpcc;
22658 pcpcc = (char const *const *) ppc;
22659 { /* SCO 3.2v4 cc rejects this. */
22660 char *t;
22661 char const *s = 0 ? (char *) 0 : (char const *) 0;
22662
22663 *t++ = 0;
22664 if (s) return 0;
22665 }
22666 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22667 int x[] = {25, 17};
22668 const int *foo = &x[0];
22669 ++foo;
22670 }
22671 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22672 typedef const int *iptr;
22673 iptr p = 0;
22674 ++p;
22675 }
22676 { /* AIX XL C 1.02.0.0 rejects this saying
22677 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22678 struct s { int j; const int *ap[3]; };
22679 struct s *b; b->j = 5;
22680 }
22681 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22682 const int foo = 10;
22683 if (!foo) return 0;
22684 }
22685 return !cs[0] && !zero.x;
22686#endif
22687
22688 ;
22689 return 0;
22690}
22691_ACEOF
22692rm -f conftest.$ac_objext
22693if { (ac_try="$ac_compile"
22694case "(($ac_try" in
22695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22696 *) ac_try_echo=$ac_try;;
22697esac
22698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22699$as_echo "$ac_try_echo") >&5
22700 (eval "$ac_compile") 2>conftest.er1
22701 ac_status=$?
22702 grep -v '^ *+' conftest.er1 >conftest.err
22703 rm -f conftest.er1
22704 cat conftest.err >&5
22705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706 (exit $ac_status); } && {
22707 test -z "$ac_c_werror_flag" ||
22708 test ! -s conftest.err
22709 } && test -s conftest.$ac_objext; then
22710 ac_cv_c_const=yes
22711else
22712 $as_echo "$as_me: failed program was:" >&5
22713sed 's/^/| /' conftest.$ac_ext >&5
22714
22715 ac_cv_c_const=no
22716fi
22717
22718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22719fi
22720{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22721$as_echo "$ac_cv_c_const" >&6; }
22722if test $ac_cv_c_const = no; then
22723
22724cat >>confdefs.h <<\_ACEOF
22725#define const /**/
22726_ACEOF
22727
22728fi
22729
22730
22731# If the C compiler supports the keyword inline, do nothing. Otherwise
22732# define inline to __inline__ or __inline if it accepts one of those,
22733# otherwise define inline to be empty.
22734{ $as_echo "$as_me:$LINENO: checking for inline" >&5
22735$as_echo_n "checking for inline... " >&6; }
22736if test "${ac_cv_c_inline+set}" = set; then
22737 $as_echo_n "(cached) " >&6
22738else
22739 ac_cv_c_inline=no
22740for ac_kw in inline __inline__ __inline; do
22741 cat >conftest.$ac_ext <<_ACEOF
22742/* confdefs.h. */
22743_ACEOF
22744cat confdefs.h >>conftest.$ac_ext
22745cat >>conftest.$ac_ext <<_ACEOF
22746/* end confdefs.h. */
22747#ifndef __cplusplus
22748typedef int foo_t;
22749static $ac_kw foo_t static_foo () {return 0; }
22750$ac_kw foo_t foo () {return 0; }
22751#endif
22752
22753_ACEOF
22754rm -f conftest.$ac_objext
22755if { (ac_try="$ac_compile"
22756case "(($ac_try" in
22757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22758 *) ac_try_echo=$ac_try;;
22759esac
22760eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22761$as_echo "$ac_try_echo") >&5
22762 (eval "$ac_compile") 2>conftest.er1
22763 ac_status=$?
22764 grep -v '^ *+' conftest.er1 >conftest.err
22765 rm -f conftest.er1
22766 cat conftest.err >&5
22767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22768 (exit $ac_status); } && {
22769 test -z "$ac_c_werror_flag" ||
22770 test ! -s conftest.err
22771 } && test -s conftest.$ac_objext; then
22772 ac_cv_c_inline=$ac_kw
22773else
22774 $as_echo "$as_me: failed program was:" >&5
22775sed 's/^/| /' conftest.$ac_ext >&5
22776
22777
22778fi
22779
22780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22781 test "$ac_cv_c_inline" != no && break
22782done
22783
22784fi
22785{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22786$as_echo "$ac_cv_c_inline" >&6; }
22787
22788
22789case $ac_cv_c_inline in
22790 inline | yes) ;;
22791 *)
22792 case $ac_cv_c_inline in
22793 no) ac_val=;;
22794 *) ac_val=$ac_cv_c_inline;;
22795 esac
22796 cat >>confdefs.h <<_ACEOF
22797#ifndef __cplusplus
22798#define inline $ac_val
22799#endif
22800_ACEOF
22801 ;;
22802esac
22803
22804
22805# If the C compiler supports the keyword restrict, do nothing. Otherwise
22806# define restrict to __restrict__ or __restrict if it accepts one of those,
22807# otherwise define restrict to be empty.
22808{ $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
22809$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
22810if test "${ac_cv_c_restrict+set}" = set; then
22811 $as_echo_n "(cached) " >&6
22812else
22813 ac_cv_c_restrict=no
22814 # The order here caters to the fact that C++ does not require restrict.
22815 for ac_kw in __restrict __restrict__ _Restrict restrict; do
22816 cat >conftest.$ac_ext <<_ACEOF
22817/* confdefs.h. */
22818_ACEOF
22819cat confdefs.h >>conftest.$ac_ext
22820cat >>conftest.$ac_ext <<_ACEOF
22821/* end confdefs.h. */
22822typedef int * int_ptr;
22823 int foo (int_ptr $ac_kw ip) {
22824 return ip[0];
22825 }
22826int
22827main ()
22828{
22829int s[1];
22830 int * $ac_kw t = s;
22831 t[0] = 0;
22832 return foo(t)
22833 ;
22834 return 0;
22835}
22836_ACEOF
22837rm -f conftest.$ac_objext
22838if { (ac_try="$ac_compile"
22839case "(($ac_try" in
22840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22841 *) ac_try_echo=$ac_try;;
22842esac
22843eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22844$as_echo "$ac_try_echo") >&5
22845 (eval "$ac_compile") 2>conftest.er1
22846 ac_status=$?
22847 grep -v '^ *+' conftest.er1 >conftest.err
22848 rm -f conftest.er1
22849 cat conftest.err >&5
22850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22851 (exit $ac_status); } && {
22852 test -z "$ac_c_werror_flag" ||
22853 test ! -s conftest.err
22854 } && test -s conftest.$ac_objext; then
22855 ac_cv_c_restrict=$ac_kw
22856else
22857 $as_echo "$as_me: failed program was:" >&5
22858sed 's/^/| /' conftest.$ac_ext >&5
22859
22860
22861fi
22862
22863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22864 test "$ac_cv_c_restrict" != no && break
22865 done
22866
22867fi
22868{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
22869$as_echo "$ac_cv_c_restrict" >&6; }
22870
22871
22872 case $ac_cv_c_restrict in
22873 restrict) ;;
22874 no) cat >>confdefs.h <<\_ACEOF
22875#define restrict /**/
22876_ACEOF
22877 ;;
22878 *) cat >>confdefs.h <<_ACEOF
22879#define restrict $ac_cv_c_restrict
22880_ACEOF
22881 ;;
22882 esac
22883
22884
22885# If words are stored with the most significant byte first (like
22886# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
22887
22888 { $as_echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
22889$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22890if test "${ac_cv_c_bigendian+set}" = set; then
22891 $as_echo_n "(cached) " >&6
22892else
22893 ac_cv_c_bigendian=unknown
22894 # See if we're dealing with a universal compiler.
22895 cat >conftest.$ac_ext <<_ACEOF
22896/* confdefs.h. */
22897_ACEOF
22898cat confdefs.h >>conftest.$ac_ext
22899cat >>conftest.$ac_ext <<_ACEOF
22900/* end confdefs.h. */
22901#ifndef __APPLE_CC__
22902 not a universal capable compiler
22903 #endif
22904 typedef int dummy;
22905
22906_ACEOF
22907rm -f conftest.$ac_objext
22908if { (ac_try="$ac_compile"
22909case "(($ac_try" in
22910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22911 *) ac_try_echo=$ac_try;;
22912esac
22913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22914$as_echo "$ac_try_echo") >&5
22915 (eval "$ac_compile") 2>conftest.er1
22916 ac_status=$?
22917 grep -v '^ *+' conftest.er1 >conftest.err
22918 rm -f conftest.er1
22919 cat conftest.err >&5
22920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921 (exit $ac_status); } && {
22922 test -z "$ac_c_werror_flag" ||
22923 test ! -s conftest.err
22924 } && test -s conftest.$ac_objext; then
22925
22926 # Check for potential -arch flags. It is not universal unless
22927 # there are some -arch flags. Note that *ppc* also matches
22928 # ppc64. This check is also rather less than ideal.
22929 case "${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" in #(
22930 *-arch*ppc*|*-arch*i386*|*-arch*x86_64*) ac_cv_c_bigendian=universal;;
22931 esac
22932else
22933 $as_echo "$as_me: failed program was:" >&5
22934sed 's/^/| /' conftest.$ac_ext >&5
22935
22936
22937fi
22938
22939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22940 if test $ac_cv_c_bigendian = unknown; then
22941 # See if sys/param.h defines the BYTE_ORDER macro.
22942 cat >conftest.$ac_ext <<_ACEOF
22943/* confdefs.h. */
22944_ACEOF
22945cat confdefs.h >>conftest.$ac_ext
22946cat >>conftest.$ac_ext <<_ACEOF
22947/* end confdefs.h. */
22948#include <sys/types.h>
22949 #include <sys/param.h>
22950
22951int
22952main ()
22953{
22954#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22955 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22956 && LITTLE_ENDIAN)
22957 bogus endian macros
22958 #endif
22959
22960 ;
22961 return 0;
22962}
22963_ACEOF
22964rm -f conftest.$ac_objext
22965if { (ac_try="$ac_compile"
22966case "(($ac_try" in
22967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22968 *) ac_try_echo=$ac_try;;
22969esac
22970eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22971$as_echo "$ac_try_echo") >&5
22972 (eval "$ac_compile") 2>conftest.er1
22973 ac_status=$?
22974 grep -v '^ *+' conftest.er1 >conftest.err
22975 rm -f conftest.er1
22976 cat conftest.err >&5
22977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978 (exit $ac_status); } && {
22979 test -z "$ac_c_werror_flag" ||
22980 test ! -s conftest.err
22981 } && test -s conftest.$ac_objext; then
22982 # It does; now see whether it defined to BIG_ENDIAN or not.
22983 cat >conftest.$ac_ext <<_ACEOF
22984/* confdefs.h. */
22985_ACEOF
22986cat confdefs.h >>conftest.$ac_ext
22987cat >>conftest.$ac_ext <<_ACEOF
22988/* end confdefs.h. */
22989#include <sys/types.h>
22990 #include <sys/param.h>
22991
22992int
22993main ()
22994{
22995#if BYTE_ORDER != BIG_ENDIAN
22996 not big endian
22997 #endif
22998
22999 ;
23000 return 0;
23001}
23002_ACEOF
23003rm -f conftest.$ac_objext
23004if { (ac_try="$ac_compile"
23005case "(($ac_try" in
23006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23007 *) ac_try_echo=$ac_try;;
23008esac
23009eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23010$as_echo "$ac_try_echo") >&5
23011 (eval "$ac_compile") 2>conftest.er1
23012 ac_status=$?
23013 grep -v '^ *+' conftest.er1 >conftest.err
23014 rm -f conftest.er1
23015 cat conftest.err >&5
23016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); } && {
23018 test -z "$ac_c_werror_flag" ||
23019 test ! -s conftest.err
23020 } && test -s conftest.$ac_objext; then
23021 ac_cv_c_bigendian=yes
23022else
23023 $as_echo "$as_me: failed program was:" >&5
23024sed 's/^/| /' conftest.$ac_ext >&5
23025
23026 ac_cv_c_bigendian=no
23027fi
23028
23029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23030else
23031 $as_echo "$as_me: failed program was:" >&5
23032sed 's/^/| /' conftest.$ac_ext >&5
23033
23034
23035fi
23036
23037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23038 fi
23039 if test $ac_cv_c_bigendian = unknown; then
23040 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23041 cat >conftest.$ac_ext <<_ACEOF
23042/* confdefs.h. */
23043_ACEOF
23044cat confdefs.h >>conftest.$ac_ext
23045cat >>conftest.$ac_ext <<_ACEOF
23046/* end confdefs.h. */
23047#include <limits.h>
23048
23049int
23050main ()
23051{
23052#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23053 bogus endian macros
23054 #endif
23055
23056 ;
23057 return 0;
23058}
23059_ACEOF
23060rm -f conftest.$ac_objext
23061if { (ac_try="$ac_compile"
23062case "(($ac_try" in
23063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23064 *) ac_try_echo=$ac_try;;
23065esac
23066eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23067$as_echo "$ac_try_echo") >&5
23068 (eval "$ac_compile") 2>conftest.er1
23069 ac_status=$?
23070 grep -v '^ *+' conftest.er1 >conftest.err
23071 rm -f conftest.er1
23072 cat conftest.err >&5
23073 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); } && {
23075 test -z "$ac_c_werror_flag" ||
23076 test ! -s conftest.err
23077 } && test -s conftest.$ac_objext; then
23078 # It does; now see whether it defined to _BIG_ENDIAN or not.
23079 cat >conftest.$ac_ext <<_ACEOF
23080/* confdefs.h. */
23081_ACEOF
23082cat confdefs.h >>conftest.$ac_ext
23083cat >>conftest.$ac_ext <<_ACEOF
23084/* end confdefs.h. */
23085#include <limits.h>
23086
23087int
23088main ()
23089{
23090#ifndef _BIG_ENDIAN
23091 not big endian
23092 #endif
23093
23094 ;
23095 return 0;
23096}
23097_ACEOF
23098rm -f conftest.$ac_objext
23099if { (ac_try="$ac_compile"
23100case "(($ac_try" in
23101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23102 *) ac_try_echo=$ac_try;;
23103esac
23104eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23105$as_echo "$ac_try_echo") >&5
23106 (eval "$ac_compile") 2>conftest.er1
23107 ac_status=$?
23108 grep -v '^ *+' conftest.er1 >conftest.err
23109 rm -f conftest.er1
23110 cat conftest.err >&5
23111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23112 (exit $ac_status); } && {
23113 test -z "$ac_c_werror_flag" ||
23114 test ! -s conftest.err
23115 } && test -s conftest.$ac_objext; then
23116 ac_cv_c_bigendian=yes
23117else
23118 $as_echo "$as_me: failed program was:" >&5
23119sed 's/^/| /' conftest.$ac_ext >&5
23120
23121 ac_cv_c_bigendian=no
23122fi
23123
23124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23125else
23126 $as_echo "$as_me: failed program was:" >&5
23127sed 's/^/| /' conftest.$ac_ext >&5
23128
23129
23130fi
23131
23132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23133 fi
23134 if test $ac_cv_c_bigendian = unknown; then
23135 # Compile a test program.
23136 if test "$cross_compiling" = yes; then
23137 # Try to guess by grepping values from an object file.
23138 cat >conftest.$ac_ext <<_ACEOF
23139/* confdefs.h. */
23140_ACEOF
23141cat confdefs.h >>conftest.$ac_ext
23142cat >>conftest.$ac_ext <<_ACEOF
23143/* end confdefs.h. */
23144short int ascii_mm[] =
23145 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23146 short int ascii_ii[] =
23147 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23148 int use_ascii (int i) {
23149 return ascii_mm[i] + ascii_ii[i];
23150 }
23151 short int ebcdic_ii[] =
23152 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23153 short int ebcdic_mm[] =
23154 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23155 int use_ebcdic (int i) {
23156 return ebcdic_mm[i] + ebcdic_ii[i];
23157 }
23158 extern int foo;
23159
23160int
23161main ()
23162{
23163return use_ascii (foo) == use_ebcdic (foo);
23164 ;
23165 return 0;
23166}
23167_ACEOF
23168rm -f conftest.$ac_objext
23169if { (ac_try="$ac_compile"
23170case "(($ac_try" in
23171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23172 *) ac_try_echo=$ac_try;;
23173esac
23174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23175$as_echo "$ac_try_echo") >&5
23176 (eval "$ac_compile") 2>conftest.er1
23177 ac_status=$?
23178 grep -v '^ *+' conftest.er1 >conftest.err
23179 rm -f conftest.er1
23180 cat conftest.err >&5
23181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182 (exit $ac_status); } && {
23183 test -z "$ac_c_werror_flag" ||
23184 test ! -s conftest.err
23185 } && test -s conftest.$ac_objext; then
23186 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23187 ac_cv_c_bigendian=yes
23188 fi
23189 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23190 if test "$ac_cv_c_bigendian" = unknown; then
23191 ac_cv_c_bigendian=no
23192 else
23193 # finding both strings is unlikely to happen, but who knows?
23194 ac_cv_c_bigendian=unknown
23195 fi
23196 fi
23197else
23198 $as_echo "$as_me: failed program was:" >&5
23199sed 's/^/| /' conftest.$ac_ext >&5
23200
23201
23202fi
23203
23204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23205else
23206 cat >conftest.$ac_ext <<_ACEOF
23207/* confdefs.h. */
23208_ACEOF
23209cat confdefs.h >>conftest.$ac_ext
23210cat >>conftest.$ac_ext <<_ACEOF
23211/* end confdefs.h. */
23212$ac_includes_default
23213int
23214main ()
23215{
23216
23217 /* Are we little or big endian? From Harbison&Steele. */
23218 union
23219 {
23220 long int l;
23221 char c[sizeof (long int)];
23222 } u;
23223 u.l = 1;
23224 return u.c[sizeof (long int) - 1] == 1;
23225
23226 ;
23227 return 0;
23228}
23229_ACEOF
23230rm -f conftest$ac_exeext
23231if { (ac_try="$ac_link"
23232case "(($ac_try" in
23233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23234 *) ac_try_echo=$ac_try;;
23235esac
23236eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23237$as_echo "$ac_try_echo") >&5
23238 (eval "$ac_link") 2>&5
23239 ac_status=$?
23240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23242 { (case "(($ac_try" in
23243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23244 *) ac_try_echo=$ac_try;;
23245esac
23246eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23247$as_echo "$ac_try_echo") >&5
23248 (eval "$ac_try") 2>&5
23249 ac_status=$?
23250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251 (exit $ac_status); }; }; then
23252 ac_cv_c_bigendian=no
23253else
23254 $as_echo "$as_me: program exited with status $ac_status" >&5
23255$as_echo "$as_me: failed program was:" >&5
23256sed 's/^/| /' conftest.$ac_ext >&5
23257
23258( exit $ac_status )
23259ac_cv_c_bigendian=yes
23260fi
23261rm -rf conftest.dSYM
23262rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23263fi
23264
23265
23266 fi
23267fi
23268{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
23269$as_echo "$ac_cv_c_bigendian" >&6; }
23270 case $ac_cv_c_bigendian in #(
23271 yes)
23272 cat >>confdefs.h <<\_ACEOF
23273#define WORDS_BIGENDIAN 1
23274_ACEOF
23275;; #(
23276 no)
23277 ;; #(
23278 universal)
23279
23280cat >>confdefs.h <<\_ACEOF
23281#define AC_APPLE_UNIVERSAL_BUILD 1
23282_ACEOF
23283
23284 ;; #(
23285 *)
23286 { { $as_echo "$as_me:$LINENO: error: unknown endianness
23287 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
23288$as_echo "$as_me: error: unknown endianness
23289 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
23290 { (exit 1); exit 1; }; } ;;
23291 esac
23292
23293
23294# Define mode_t to a suitable type, if standard headers do not define it.
23295{ $as_echo "$as_me:$LINENO: checking for mode_t" >&5
23296$as_echo_n "checking for mode_t... " >&6; }
23297if test "${ac_cv_type_mode_t+set}" = set; then
23298 $as_echo_n "(cached) " >&6
23299else
23300 ac_cv_type_mode_t=no
23301cat >conftest.$ac_ext <<_ACEOF
23302/* confdefs.h. */
23303_ACEOF
23304cat confdefs.h >>conftest.$ac_ext
23305cat >>conftest.$ac_ext <<_ACEOF
23306/* end confdefs.h. */
23307$ac_includes_default
23308int
23309main ()
23310{
23311if (sizeof (mode_t))
23312 return 0;
23313 ;
23314 return 0;
23315}
23316_ACEOF
23317rm -f conftest.$ac_objext
23318if { (ac_try="$ac_compile"
23319case "(($ac_try" in
23320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23321 *) ac_try_echo=$ac_try;;
23322esac
23323eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23324$as_echo "$ac_try_echo") >&5
23325 (eval "$ac_compile") 2>conftest.er1
23326 ac_status=$?
23327 grep -v '^ *+' conftest.er1 >conftest.err
23328 rm -f conftest.er1
23329 cat conftest.err >&5
23330 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23331 (exit $ac_status); } && {
23332 test -z "$ac_c_werror_flag" ||
23333 test ! -s conftest.err
23334 } && test -s conftest.$ac_objext; then
23335 cat >conftest.$ac_ext <<_ACEOF
23336/* confdefs.h. */
23337_ACEOF
23338cat confdefs.h >>conftest.$ac_ext
23339cat >>conftest.$ac_ext <<_ACEOF
23340/* end confdefs.h. */
23341$ac_includes_default
23342int
23343main ()
23344{
23345if (sizeof ((mode_t)))
23346 return 0;
23347 ;
23348 return 0;
23349}
23350_ACEOF
23351rm -f conftest.$ac_objext
23352if { (ac_try="$ac_compile"
23353case "(($ac_try" in
23354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355 *) ac_try_echo=$ac_try;;
23356esac
23357eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23358$as_echo "$ac_try_echo") >&5
23359 (eval "$ac_compile") 2>conftest.er1
23360 ac_status=$?
23361 grep -v '^ *+' conftest.er1 >conftest.err
23362 rm -f conftest.er1
23363 cat conftest.err >&5
23364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365 (exit $ac_status); } && {
23366 test -z "$ac_c_werror_flag" ||
23367 test ! -s conftest.err
23368 } && test -s conftest.$ac_objext; then
23369 :
23370else
23371 $as_echo "$as_me: failed program was:" >&5
23372sed 's/^/| /' conftest.$ac_ext >&5
23373
23374 ac_cv_type_mode_t=yes
23375fi
23376
23377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23378else
23379 $as_echo "$as_me: failed program was:" >&5
23380sed 's/^/| /' conftest.$ac_ext >&5
23381
23382
23383fi
23384
23385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23386fi
23387{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
23388$as_echo "$ac_cv_type_mode_t" >&6; }
23389if test "x$ac_cv_type_mode_t" = x""yes; then
23390 :
23391else
23392
23393cat >>confdefs.h <<_ACEOF
23394#define mode_t int
23395_ACEOF
23396
23397fi
23398
23399
23400# Define off_t to a suitable type, if standard headers do not define it.
23401{ $as_echo "$as_me:$LINENO: checking for off_t" >&5
23402$as_echo_n "checking for off_t... " >&6; }
23403if test "${ac_cv_type_off_t+set}" = set; then
23404 $as_echo_n "(cached) " >&6
23405else
23406 ac_cv_type_off_t=no
23407cat >conftest.$ac_ext <<_ACEOF
23408/* confdefs.h. */
23409_ACEOF
23410cat confdefs.h >>conftest.$ac_ext
23411cat >>conftest.$ac_ext <<_ACEOF
23412/* end confdefs.h. */
23413$ac_includes_default
23414int
23415main ()
23416{
23417if (sizeof (off_t))
23418 return 0;
23419 ;
23420 return 0;
23421}
23422_ACEOF
23423rm -f conftest.$ac_objext
23424if { (ac_try="$ac_compile"
23425case "(($ac_try" in
23426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23427 *) ac_try_echo=$ac_try;;
23428esac
23429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23430$as_echo "$ac_try_echo") >&5
23431 (eval "$ac_compile") 2>conftest.er1
23432 ac_status=$?
23433 grep -v '^ *+' conftest.er1 >conftest.err
23434 rm -f conftest.er1
23435 cat conftest.err >&5
23436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437 (exit $ac_status); } && {
23438 test -z "$ac_c_werror_flag" ||
23439 test ! -s conftest.err
23440 } && test -s conftest.$ac_objext; then
23441 cat >conftest.$ac_ext <<_ACEOF
23442/* confdefs.h. */
23443_ACEOF
23444cat confdefs.h >>conftest.$ac_ext
23445cat >>conftest.$ac_ext <<_ACEOF
23446/* end confdefs.h. */
23447$ac_includes_default
23448int
23449main ()
23450{
23451if (sizeof ((off_t)))
23452 return 0;
23453 ;
23454 return 0;
23455}
23456_ACEOF
23457rm -f conftest.$ac_objext
23458if { (ac_try="$ac_compile"
23459case "(($ac_try" in
23460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23461 *) ac_try_echo=$ac_try;;
23462esac
23463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23464$as_echo "$ac_try_echo") >&5
23465 (eval "$ac_compile") 2>conftest.er1
23466 ac_status=$?
23467 grep -v '^ *+' conftest.er1 >conftest.err
23468 rm -f conftest.er1
23469 cat conftest.err >&5
23470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471 (exit $ac_status); } && {
23472 test -z "$ac_c_werror_flag" ||
23473 test ! -s conftest.err
23474 } && test -s conftest.$ac_objext; then
23475 :
23476else
23477 $as_echo "$as_me: failed program was:" >&5
23478sed 's/^/| /' conftest.$ac_ext >&5
23479
23480 ac_cv_type_off_t=yes
23481fi
23482
23483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23484else
23485 $as_echo "$as_me: failed program was:" >&5
23486sed 's/^/| /' conftest.$ac_ext >&5
23487
23488
23489fi
23490
23491rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23492fi
23493{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
23494$as_echo "$ac_cv_type_off_t" >&6; }
23495if test "x$ac_cv_type_off_t" = x""yes; then
23496 :
23497else
23498
23499cat >>confdefs.h <<_ACEOF
23500#define off_t long int
23501_ACEOF
23502
23503fi
23504
23505
23506# Define pid_t to a suitable type, if standard headers do not define it.
23507{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
23508$as_echo_n "checking for pid_t... " >&6; }
23509if test "${ac_cv_type_pid_t+set}" = set; then
23510 $as_echo_n "(cached) " >&6
23511else
23512 ac_cv_type_pid_t=no
23513cat >conftest.$ac_ext <<_ACEOF
23514/* confdefs.h. */
23515_ACEOF
23516cat confdefs.h >>conftest.$ac_ext
23517cat >>conftest.$ac_ext <<_ACEOF
23518/* end confdefs.h. */
23519$ac_includes_default
23520int
23521main ()
23522{
23523if (sizeof (pid_t))
23524 return 0;
23525 ;
23526 return 0;
23527}
23528_ACEOF
23529rm -f conftest.$ac_objext
23530if { (ac_try="$ac_compile"
23531case "(($ac_try" in
23532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23533 *) ac_try_echo=$ac_try;;
23534esac
23535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23536$as_echo "$ac_try_echo") >&5
23537 (eval "$ac_compile") 2>conftest.er1
23538 ac_status=$?
23539 grep -v '^ *+' conftest.er1 >conftest.err
23540 rm -f conftest.er1
23541 cat conftest.err >&5
23542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23543 (exit $ac_status); } && {
23544 test -z "$ac_c_werror_flag" ||
23545 test ! -s conftest.err
23546 } && test -s conftest.$ac_objext; then
23547 cat >conftest.$ac_ext <<_ACEOF
23548/* confdefs.h. */
23549_ACEOF
23550cat confdefs.h >>conftest.$ac_ext
23551cat >>conftest.$ac_ext <<_ACEOF
23552/* end confdefs.h. */
23553$ac_includes_default
23554int
23555main ()
23556{
23557if (sizeof ((pid_t)))
23558 return 0;
23559 ;
23560 return 0;
23561}
23562_ACEOF
23563rm -f conftest.$ac_objext
23564if { (ac_try="$ac_compile"
23565case "(($ac_try" in
23566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23567 *) ac_try_echo=$ac_try;;
23568esac
23569eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23570$as_echo "$ac_try_echo") >&5
23571 (eval "$ac_compile") 2>conftest.er1
23572 ac_status=$?
23573 grep -v '^ *+' conftest.er1 >conftest.err
23574 rm -f conftest.er1
23575 cat conftest.err >&5
23576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577 (exit $ac_status); } && {
23578 test -z "$ac_c_werror_flag" ||
23579 test ! -s conftest.err
23580 } && test -s conftest.$ac_objext; then
23581 :
23582else
23583 $as_echo "$as_me: failed program was:" >&5
23584sed 's/^/| /' conftest.$ac_ext >&5
23585
23586 ac_cv_type_pid_t=yes
23587fi
23588
23589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23590else
23591 $as_echo "$as_me: failed program was:" >&5
23592sed 's/^/| /' conftest.$ac_ext >&5
23593
23594
23595fi
23596
23597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23598fi
23599{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23600$as_echo "$ac_cv_type_pid_t" >&6; }
23601if test "x$ac_cv_type_pid_t" = x""yes; then
23602 :
23603else
23604
23605cat >>confdefs.h <<_ACEOF
23606#define pid_t int
23607_ACEOF
23608
23609fi
23610
23611
23612# Define size_t to a suitable type, if standard headers do not define it.
23613{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
23614$as_echo_n "checking for size_t... " >&6; }
23615if test "${ac_cv_type_size_t+set}" = set; then
23616 $as_echo_n "(cached) " >&6
23617else
23618 ac_cv_type_size_t=no
23619cat >conftest.$ac_ext <<_ACEOF
23620/* confdefs.h. */
23621_ACEOF
23622cat confdefs.h >>conftest.$ac_ext
23623cat >>conftest.$ac_ext <<_ACEOF
23624/* end confdefs.h. */
23625$ac_includes_default
23626int
23627main ()
23628{
23629if (sizeof (size_t))
23630 return 0;
23631 ;
23632 return 0;
23633}
23634_ACEOF
23635rm -f conftest.$ac_objext
23636if { (ac_try="$ac_compile"
23637case "(($ac_try" in
23638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23639 *) ac_try_echo=$ac_try;;
23640esac
23641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23642$as_echo "$ac_try_echo") >&5
23643 (eval "$ac_compile") 2>conftest.er1
23644 ac_status=$?
23645 grep -v '^ *+' conftest.er1 >conftest.err
23646 rm -f conftest.er1
23647 cat conftest.err >&5
23648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); } && {
23650 test -z "$ac_c_werror_flag" ||
23651 test ! -s conftest.err
23652 } && test -s conftest.$ac_objext; then
23653 cat >conftest.$ac_ext <<_ACEOF
23654/* confdefs.h. */
23655_ACEOF
23656cat confdefs.h >>conftest.$ac_ext
23657cat >>conftest.$ac_ext <<_ACEOF
23658/* end confdefs.h. */
23659$ac_includes_default
23660int
23661main ()
23662{
23663if (sizeof ((size_t)))
23664 return 0;
23665 ;
23666 return 0;
23667}
23668_ACEOF
23669rm -f conftest.$ac_objext
23670if { (ac_try="$ac_compile"
23671case "(($ac_try" in
23672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23673 *) ac_try_echo=$ac_try;;
23674esac
23675eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23676$as_echo "$ac_try_echo") >&5
23677 (eval "$ac_compile") 2>conftest.er1
23678 ac_status=$?
23679 grep -v '^ *+' conftest.er1 >conftest.err
23680 rm -f conftest.er1
23681 cat conftest.err >&5
23682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683 (exit $ac_status); } && {
23684 test -z "$ac_c_werror_flag" ||
23685 test ! -s conftest.err
23686 } && test -s conftest.$ac_objext; then
23687 :
23688else
23689 $as_echo "$as_me: failed program was:" >&5
23690sed 's/^/| /' conftest.$ac_ext >&5
23691
23692 ac_cv_type_size_t=yes
23693fi
23694
23695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23696else
23697 $as_echo "$as_me: failed program was:" >&5
23698sed 's/^/| /' conftest.$ac_ext >&5
23699
23700
23701fi
23702
23703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23704fi
23705{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23706$as_echo "$ac_cv_type_size_t" >&6; }
23707if test "x$ac_cv_type_size_t" = x""yes; then
23708 :
23709else
23710
23711cat >>confdefs.h <<_ACEOF
23712#define size_t unsigned int
23713_ACEOF
23714
23715fi
23716
23717
23718# Define ssize_t to a suitable type, if standard headers do not define it.
23719{ $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
23720$as_echo_n "checking for ssize_t... " >&6; }
23721if test "${ac_cv_type_ssize_t+set}" = set; then
23722 $as_echo_n "(cached) " >&6
23723else
23724 ac_cv_type_ssize_t=no
23725cat >conftest.$ac_ext <<_ACEOF
23726/* confdefs.h. */
23727_ACEOF
23728cat confdefs.h >>conftest.$ac_ext
23729cat >>conftest.$ac_ext <<_ACEOF
23730/* end confdefs.h. */
23731$ac_includes_default
23732int
23733main ()
23734{
23735if (sizeof (ssize_t))
23736 return 0;
23737 ;
23738 return 0;
23739}
23740_ACEOF
23741rm -f conftest.$ac_objext
23742if { (ac_try="$ac_compile"
23743case "(($ac_try" in
23744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23745 *) ac_try_echo=$ac_try;;
23746esac
23747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23748$as_echo "$ac_try_echo") >&5
23749 (eval "$ac_compile") 2>conftest.er1
23750 ac_status=$?
23751 grep -v '^ *+' conftest.er1 >conftest.err
23752 rm -f conftest.er1
23753 cat conftest.err >&5
23754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23755 (exit $ac_status); } && {
23756 test -z "$ac_c_werror_flag" ||
23757 test ! -s conftest.err
23758 } && test -s conftest.$ac_objext; then
23759 cat >conftest.$ac_ext <<_ACEOF
23760/* confdefs.h. */
23761_ACEOF
23762cat confdefs.h >>conftest.$ac_ext
23763cat >>conftest.$ac_ext <<_ACEOF
23764/* end confdefs.h. */
23765$ac_includes_default
23766int
23767main ()
23768{
23769if (sizeof ((ssize_t)))
23770 return 0;
23771 ;
23772 return 0;
23773}
23774_ACEOF
23775rm -f conftest.$ac_objext
23776if { (ac_try="$ac_compile"
23777case "(($ac_try" in
23778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23779 *) ac_try_echo=$ac_try;;
23780esac
23781eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23782$as_echo "$ac_try_echo") >&5
23783 (eval "$ac_compile") 2>conftest.er1
23784 ac_status=$?
23785 grep -v '^ *+' conftest.er1 >conftest.err
23786 rm -f conftest.er1
23787 cat conftest.err >&5
23788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789 (exit $ac_status); } && {
23790 test -z "$ac_c_werror_flag" ||
23791 test ! -s conftest.err
23792 } && test -s conftest.$ac_objext; then
23793 :
23794else
23795 $as_echo "$as_me: failed program was:" >&5
23796sed 's/^/| /' conftest.$ac_ext >&5
23797
23798 ac_cv_type_ssize_t=yes
23799fi
23800
23801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23802else
23803 $as_echo "$as_me: failed program was:" >&5
23804sed 's/^/| /' conftest.$ac_ext >&5
23805
23806
23807fi
23808
23809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23810fi
23811{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
23812$as_echo "$ac_cv_type_ssize_t" >&6; }
23813if test "x$ac_cv_type_ssize_t" = x""yes; then
23814 :
23815else
23816
23817cat >>confdefs.h <<_ACEOF
23818#define ssize_t int
23819_ACEOF
23820
23821fi
23822
23823
23824# If the C compiler supports a working long double type with more range
23825# or precision than the double type, define HAVE_LONG_DOUBLE.
23826
23827 { $as_echo "$as_me:$LINENO: checking for long double with more range or precision than double" >&5
23828$as_echo_n "checking for long double with more range or precision than double... " >&6; }
23829if test "${ac_cv_type_long_double_wider+set}" = set; then
23830 $as_echo_n "(cached) " >&6
23831else
23832 cat >conftest.$ac_ext <<_ACEOF
23833/* confdefs.h. */
23834_ACEOF
23835cat confdefs.h >>conftest.$ac_ext
23836cat >>conftest.$ac_ext <<_ACEOF
23837/* end confdefs.h. */
23838#include <float.h>
23839 long double const a[] =
23840 {
23841 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23842 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23843 };
23844 long double
23845 f (long double x)
23846 {
23847 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23848 + (x ? f (x) : 'c'));
23849 }
23850
23851int
23852main ()
23853{
23854static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23855 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23856 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23857 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23858 && (int) LDBL_EPSILON == 0
23859 )];
23860test_array [0] = 0
23861
23862 ;
23863 return 0;
23864}
23865_ACEOF
23866rm -f conftest.$ac_objext
23867if { (ac_try="$ac_compile"
23868case "(($ac_try" in
23869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23870 *) ac_try_echo=$ac_try;;
23871esac
23872eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23873$as_echo "$ac_try_echo") >&5
23874 (eval "$ac_compile") 2>conftest.er1
23875 ac_status=$?
23876 grep -v '^ *+' conftest.er1 >conftest.err
23877 rm -f conftest.er1
23878 cat conftest.err >&5
23879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23880 (exit $ac_status); } && {
23881 test -z "$ac_c_werror_flag" ||
23882 test ! -s conftest.err
23883 } && test -s conftest.$ac_objext; then
23884 ac_cv_type_long_double_wider=yes
23885else
23886 $as_echo "$as_me: failed program was:" >&5
23887sed 's/^/| /' conftest.$ac_ext >&5
23888
23889 ac_cv_type_long_double_wider=no
23890fi
23891
23892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23893fi
23894{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_double_wider" >&5
23895$as_echo "$ac_cv_type_long_double_wider" >&6; }
23896 if test $ac_cv_type_long_double_wider = yes; then
23897
23898cat >>confdefs.h <<\_ACEOF
23899#define HAVE_LONG_DOUBLE_WIDER 1
23900_ACEOF
23901
23902 fi
23903
23904
23905# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23906# C compiler predefines it.
23907
23908{ $as_echo "$as_me:$LINENO: checking whether char is unsigned" >&5
23909$as_echo_n "checking whether char is unsigned... " >&6; }
23910if test "${ac_cv_c_char_unsigned+set}" = set; then
23911 $as_echo_n "(cached) " >&6
23912else
23913 cat >conftest.$ac_ext <<_ACEOF
23914/* confdefs.h. */
23915_ACEOF
23916cat confdefs.h >>conftest.$ac_ext
23917cat >>conftest.$ac_ext <<_ACEOF
23918/* end confdefs.h. */
23919$ac_includes_default
23920int
23921main ()
23922{
23923static int test_array [1 - 2 * !(((char) -1) < 0)];
23924test_array [0] = 0
23925
23926 ;
23927 return 0;
23928}
23929_ACEOF
23930rm -f conftest.$ac_objext
23931if { (ac_try="$ac_compile"
23932case "(($ac_try" in
23933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23934 *) ac_try_echo=$ac_try;;
23935esac
23936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23937$as_echo "$ac_try_echo") >&5
23938 (eval "$ac_compile") 2>conftest.er1
23939 ac_status=$?
23940 grep -v '^ *+' conftest.er1 >conftest.err
23941 rm -f conftest.er1
23942 cat conftest.err >&5
23943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23944 (exit $ac_status); } && {
23945 test -z "$ac_c_werror_flag" ||
23946 test ! -s conftest.err
23947 } && test -s conftest.$ac_objext; then
23948 ac_cv_c_char_unsigned=no
23949else
23950 $as_echo "$as_me: failed program was:" >&5
23951sed 's/^/| /' conftest.$ac_ext >&5
23952
23953 ac_cv_c_char_unsigned=yes
23954fi
23955
23956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23957fi
23958{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_char_unsigned" >&5
23959$as_echo "$ac_cv_c_char_unsigned" >&6; }
23960if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
23961 cat >>confdefs.h <<\_ACEOF
23962#define __CHAR_UNSIGNED__ 1
23963_ACEOF
23964
23965fi
23966
23967
23968# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23969# The cast to long int works around a bug in the HP C Compiler
23970# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23971# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23972# This bug is HP SR number 8606223364.
23973{ $as_echo "$as_me:$LINENO: checking size of signed short" >&5
23974$as_echo_n "checking size of signed short... " >&6; }
23975if test "${ac_cv_sizeof_signed_short+set}" = set; then
23976 $as_echo_n "(cached) " >&6
23977else
23978 if test "$cross_compiling" = yes; then
23979 # Depending upon the size, compute the lo and hi bounds.
23980cat >conftest.$ac_ext <<_ACEOF
23981/* confdefs.h. */
23982_ACEOF
23983cat confdefs.h >>conftest.$ac_ext
23984cat >>conftest.$ac_ext <<_ACEOF
23985/* end confdefs.h. */
23986$ac_includes_default
23987int
23988main ()
23989{
23990static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= 0)];
23991test_array [0] = 0
23992
23993 ;
23994 return 0;
23995}
23996_ACEOF
23997rm -f conftest.$ac_objext
23998if { (ac_try="$ac_compile"
23999case "(($ac_try" in
24000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24001 *) ac_try_echo=$ac_try;;
24002esac
24003eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24004$as_echo "$ac_try_echo") >&5
24005 (eval "$ac_compile") 2>conftest.er1
24006 ac_status=$?
24007 grep -v '^ *+' conftest.er1 >conftest.err
24008 rm -f conftest.er1
24009 cat conftest.err >&5
24010 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24011 (exit $ac_status); } && {
24012 test -z "$ac_c_werror_flag" ||
24013 test ! -s conftest.err
24014 } && test -s conftest.$ac_objext; then
24015 ac_lo=0 ac_mid=0
24016 while :; do
24017 cat >conftest.$ac_ext <<_ACEOF
24018/* confdefs.h. */
24019_ACEOF
24020cat confdefs.h >>conftest.$ac_ext
24021cat >>conftest.$ac_ext <<_ACEOF
24022/* end confdefs.h. */
24023$ac_includes_default
24024int
24025main ()
24026{
24027static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
24028test_array [0] = 0
24029
24030 ;
24031 return 0;
24032}
24033_ACEOF
24034rm -f conftest.$ac_objext
24035if { (ac_try="$ac_compile"
24036case "(($ac_try" in
24037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24038 *) ac_try_echo=$ac_try;;
24039esac
24040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24041$as_echo "$ac_try_echo") >&5
24042 (eval "$ac_compile") 2>conftest.er1
24043 ac_status=$?
24044 grep -v '^ *+' conftest.er1 >conftest.err
24045 rm -f conftest.er1
24046 cat conftest.err >&5
24047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24048 (exit $ac_status); } && {
24049 test -z "$ac_c_werror_flag" ||
24050 test ! -s conftest.err
24051 } && test -s conftest.$ac_objext; then
24052 ac_hi=$ac_mid; break
24053else
24054 $as_echo "$as_me: failed program was:" >&5
24055sed 's/^/| /' conftest.$ac_ext >&5
24056
24057 ac_lo=`expr $ac_mid + 1`
24058 if test $ac_lo -le $ac_mid; then
24059 ac_lo= ac_hi=
24060 break
24061 fi
24062 ac_mid=`expr 2 '*' $ac_mid + 1`
24063fi
24064
24065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24066 done
24067else
24068 $as_echo "$as_me: failed program was:" >&5
24069sed 's/^/| /' conftest.$ac_ext >&5
24070
24071 cat >conftest.$ac_ext <<_ACEOF
24072/* confdefs.h. */
24073_ACEOF
24074cat confdefs.h >>conftest.$ac_ext
24075cat >>conftest.$ac_ext <<_ACEOF
24076/* end confdefs.h. */
24077$ac_includes_default
24078int
24079main ()
24080{
24081static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) < 0)];
24082test_array [0] = 0
24083
24084 ;
24085 return 0;
24086}
24087_ACEOF
24088rm -f conftest.$ac_objext
24089if { (ac_try="$ac_compile"
24090case "(($ac_try" in
24091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24092 *) ac_try_echo=$ac_try;;
24093esac
24094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24095$as_echo "$ac_try_echo") >&5
24096 (eval "$ac_compile") 2>conftest.er1
24097 ac_status=$?
24098 grep -v '^ *+' conftest.er1 >conftest.err
24099 rm -f conftest.er1
24100 cat conftest.err >&5
24101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24102 (exit $ac_status); } && {
24103 test -z "$ac_c_werror_flag" ||
24104 test ! -s conftest.err
24105 } && test -s conftest.$ac_objext; then
24106 ac_hi=-1 ac_mid=-1
24107 while :; do
24108 cat >conftest.$ac_ext <<_ACEOF
24109/* confdefs.h. */
24110_ACEOF
24111cat confdefs.h >>conftest.$ac_ext
24112cat >>conftest.$ac_ext <<_ACEOF
24113/* end confdefs.h. */
24114$ac_includes_default
24115int
24116main ()
24117{
24118static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) >= $ac_mid)];
24119test_array [0] = 0
24120
24121 ;
24122 return 0;
24123}
24124_ACEOF
24125rm -f conftest.$ac_objext
24126if { (ac_try="$ac_compile"
24127case "(($ac_try" in
24128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24129 *) ac_try_echo=$ac_try;;
24130esac
24131eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24132$as_echo "$ac_try_echo") >&5
24133 (eval "$ac_compile") 2>conftest.er1
24134 ac_status=$?
24135 grep -v '^ *+' conftest.er1 >conftest.err
24136 rm -f conftest.er1
24137 cat conftest.err >&5
24138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139 (exit $ac_status); } && {
24140 test -z "$ac_c_werror_flag" ||
24141 test ! -s conftest.err
24142 } && test -s conftest.$ac_objext; then
24143 ac_lo=$ac_mid; break
24144else
24145 $as_echo "$as_me: failed program was:" >&5
24146sed 's/^/| /' conftest.$ac_ext >&5
24147
24148 ac_hi=`expr '(' $ac_mid ')' - 1`
24149 if test $ac_mid -le $ac_hi; then
24150 ac_lo= ac_hi=
24151 break
24152 fi
24153 ac_mid=`expr 2 '*' $ac_mid`
24154fi
24155
24156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24157 done
24158else
24159 $as_echo "$as_me: failed program was:" >&5
24160sed 's/^/| /' conftest.$ac_ext >&5
24161
24162 ac_lo= ac_hi=
24163fi
24164
24165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24166fi
24167
24168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24169# Binary search between lo and hi bounds.
24170while test "x$ac_lo" != "x$ac_hi"; do
24171 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24172 cat >conftest.$ac_ext <<_ACEOF
24173/* confdefs.h. */
24174_ACEOF
24175cat confdefs.h >>conftest.$ac_ext
24176cat >>conftest.$ac_ext <<_ACEOF
24177/* end confdefs.h. */
24178$ac_includes_default
24179int
24180main ()
24181{
24182static int test_array [1 - 2 * !(((long int) (sizeof (signed short))) <= $ac_mid)];
24183test_array [0] = 0
24184
24185 ;
24186 return 0;
24187}
24188_ACEOF
24189rm -f conftest.$ac_objext
24190if { (ac_try="$ac_compile"
24191case "(($ac_try" in
24192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24193 *) ac_try_echo=$ac_try;;
24194esac
24195eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24196$as_echo "$ac_try_echo") >&5
24197 (eval "$ac_compile") 2>conftest.er1
24198 ac_status=$?
24199 grep -v '^ *+' conftest.er1 >conftest.err
24200 rm -f conftest.er1
24201 cat conftest.err >&5
24202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203 (exit $ac_status); } && {
24204 test -z "$ac_c_werror_flag" ||
24205 test ! -s conftest.err
24206 } && test -s conftest.$ac_objext; then
24207 ac_hi=$ac_mid
24208else
24209 $as_echo "$as_me: failed program was:" >&5
24210sed 's/^/| /' conftest.$ac_ext >&5
24211
24212 ac_lo=`expr '(' $ac_mid ')' + 1`
24213fi
24214
24215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24216done
24217case $ac_lo in
24218?*) ac_cv_sizeof_signed_short=$ac_lo;;
24219'') if test "$ac_cv_type_signed_short" = yes; then
24220 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24221$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24222{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
24223See \`config.log' for more details." >&5
24224$as_echo "$as_me: error: cannot compute sizeof (signed short)
24225See \`config.log' for more details." >&2;}
24226 { (exit 77); exit 77; }; }; }
24227 else
24228 ac_cv_sizeof_signed_short=0
24229 fi ;;
24230esac
24231else
24232 cat >conftest.$ac_ext <<_ACEOF
24233/* confdefs.h. */
24234_ACEOF
24235cat confdefs.h >>conftest.$ac_ext
24236cat >>conftest.$ac_ext <<_ACEOF
24237/* end confdefs.h. */
24238$ac_includes_default
24239static long int longval () { return (long int) (sizeof (signed short)); }
24240static unsigned long int ulongval () { return (long int) (sizeof (signed short)); }
24241#include <stdio.h>
24242#include <stdlib.h>
24243int
24244main ()
24245{
24246
24247 FILE *f = fopen ("conftest.val", "w");
24248 if (! f)
24249 return 1;
24250 if (((long int) (sizeof (signed short))) < 0)
24251 {
24252 long int i = longval ();
24253 if (i != ((long int) (sizeof (signed short))))
24254 return 1;
24255 fprintf (f, "%ld", i);
24256 }
24257 else
24258 {
24259 unsigned long int i = ulongval ();
24260 if (i != ((long int) (sizeof (signed short))))
24261 return 1;
24262 fprintf (f, "%lu", i);
24263 }
24264 /* Do not output a trailing newline, as this causes \r\n confusion
24265 on some platforms. */
24266 return ferror (f) || fclose (f) != 0;
24267
24268 ;
24269 return 0;
24270}
24271_ACEOF
24272rm -f conftest$ac_exeext
24273if { (ac_try="$ac_link"
24274case "(($ac_try" in
24275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24276 *) ac_try_echo=$ac_try;;
24277esac
24278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24279$as_echo "$ac_try_echo") >&5
24280 (eval "$ac_link") 2>&5
24281 ac_status=$?
24282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24283 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24284 { (case "(($ac_try" in
24285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24286 *) ac_try_echo=$ac_try;;
24287esac
24288eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24289$as_echo "$ac_try_echo") >&5
24290 (eval "$ac_try") 2>&5
24291 ac_status=$?
24292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24293 (exit $ac_status); }; }; then
24294 ac_cv_sizeof_signed_short=`cat conftest.val`
24295else
24296 $as_echo "$as_me: program exited with status $ac_status" >&5
24297$as_echo "$as_me: failed program was:" >&5
24298sed 's/^/| /' conftest.$ac_ext >&5
24299
24300( exit $ac_status )
24301if test "$ac_cv_type_signed_short" = yes; then
24302 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24304{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed short)
24305See \`config.log' for more details." >&5
24306$as_echo "$as_me: error: cannot compute sizeof (signed short)
24307See \`config.log' for more details." >&2;}
24308 { (exit 77); exit 77; }; }; }
24309 else
24310 ac_cv_sizeof_signed_short=0
24311 fi
24312fi
24313rm -rf conftest.dSYM
24314rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24315fi
24316rm -f conftest.val
24317fi
24318{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_short" >&5
24319$as_echo "$ac_cv_sizeof_signed_short" >&6; }
24320
24321
24322
24323cat >>confdefs.h <<_ACEOF
24324#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
24325_ACEOF
24326
24327
24328
24329# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
24330# The cast to long int works around a bug in the HP C Compiler
24331# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24332# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24333# This bug is HP SR number 8606223364.
24334{ $as_echo "$as_me:$LINENO: checking size of unsigned short" >&5
24335$as_echo_n "checking size of unsigned short... " >&6; }
24336if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
24337 $as_echo_n "(cached) " >&6
24338else
24339 if test "$cross_compiling" = yes; then
24340 # Depending upon the size, compute the lo and hi bounds.
24341cat >conftest.$ac_ext <<_ACEOF
24342/* confdefs.h. */
24343_ACEOF
24344cat confdefs.h >>conftest.$ac_ext
24345cat >>conftest.$ac_ext <<_ACEOF
24346/* end confdefs.h. */
24347$ac_includes_default
24348int
24349main ()
24350{
24351static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= 0)];
24352test_array [0] = 0
24353
24354 ;
24355 return 0;
24356}
24357_ACEOF
24358rm -f conftest.$ac_objext
24359if { (ac_try="$ac_compile"
24360case "(($ac_try" in
24361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24362 *) ac_try_echo=$ac_try;;
24363esac
24364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24365$as_echo "$ac_try_echo") >&5
24366 (eval "$ac_compile") 2>conftest.er1
24367 ac_status=$?
24368 grep -v '^ *+' conftest.er1 >conftest.err
24369 rm -f conftest.er1
24370 cat conftest.err >&5
24371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24372 (exit $ac_status); } && {
24373 test -z "$ac_c_werror_flag" ||
24374 test ! -s conftest.err
24375 } && test -s conftest.$ac_objext; then
24376 ac_lo=0 ac_mid=0
24377 while :; do
24378 cat >conftest.$ac_ext <<_ACEOF
24379/* confdefs.h. */
24380_ACEOF
24381cat confdefs.h >>conftest.$ac_ext
24382cat >>conftest.$ac_ext <<_ACEOF
24383/* end confdefs.h. */
24384$ac_includes_default
24385int
24386main ()
24387{
24388static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
24389test_array [0] = 0
24390
24391 ;
24392 return 0;
24393}
24394_ACEOF
24395rm -f conftest.$ac_objext
24396if { (ac_try="$ac_compile"
24397case "(($ac_try" in
24398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24399 *) ac_try_echo=$ac_try;;
24400esac
24401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24402$as_echo "$ac_try_echo") >&5
24403 (eval "$ac_compile") 2>conftest.er1
24404 ac_status=$?
24405 grep -v '^ *+' conftest.er1 >conftest.err
24406 rm -f conftest.er1
24407 cat conftest.err >&5
24408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24409 (exit $ac_status); } && {
24410 test -z "$ac_c_werror_flag" ||
24411 test ! -s conftest.err
24412 } && test -s conftest.$ac_objext; then
24413 ac_hi=$ac_mid; break
24414else
24415 $as_echo "$as_me: failed program was:" >&5
24416sed 's/^/| /' conftest.$ac_ext >&5
24417
24418 ac_lo=`expr $ac_mid + 1`
24419 if test $ac_lo -le $ac_mid; then
24420 ac_lo= ac_hi=
24421 break
24422 fi
24423 ac_mid=`expr 2 '*' $ac_mid + 1`
24424fi
24425
24426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24427 done
24428else
24429 $as_echo "$as_me: failed program was:" >&5
24430sed 's/^/| /' conftest.$ac_ext >&5
24431
24432 cat >conftest.$ac_ext <<_ACEOF
24433/* confdefs.h. */
24434_ACEOF
24435cat confdefs.h >>conftest.$ac_ext
24436cat >>conftest.$ac_ext <<_ACEOF
24437/* end confdefs.h. */
24438$ac_includes_default
24439int
24440main ()
24441{
24442static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) < 0)];
24443test_array [0] = 0
24444
24445 ;
24446 return 0;
24447}
24448_ACEOF
24449rm -f conftest.$ac_objext
24450if { (ac_try="$ac_compile"
24451case "(($ac_try" in
24452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24453 *) ac_try_echo=$ac_try;;
24454esac
24455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24456$as_echo "$ac_try_echo") >&5
24457 (eval "$ac_compile") 2>conftest.er1
24458 ac_status=$?
24459 grep -v '^ *+' conftest.er1 >conftest.err
24460 rm -f conftest.er1
24461 cat conftest.err >&5
24462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24463 (exit $ac_status); } && {
24464 test -z "$ac_c_werror_flag" ||
24465 test ! -s conftest.err
24466 } && test -s conftest.$ac_objext; then
24467 ac_hi=-1 ac_mid=-1
24468 while :; do
24469 cat >conftest.$ac_ext <<_ACEOF
24470/* confdefs.h. */
24471_ACEOF
24472cat confdefs.h >>conftest.$ac_ext
24473cat >>conftest.$ac_ext <<_ACEOF
24474/* end confdefs.h. */
24475$ac_includes_default
24476int
24477main ()
24478{
24479static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) >= $ac_mid)];
24480test_array [0] = 0
24481
24482 ;
24483 return 0;
24484}
24485_ACEOF
24486rm -f conftest.$ac_objext
24487if { (ac_try="$ac_compile"
24488case "(($ac_try" in
24489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24490 *) ac_try_echo=$ac_try;;
24491esac
24492eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24493$as_echo "$ac_try_echo") >&5
24494 (eval "$ac_compile") 2>conftest.er1
24495 ac_status=$?
24496 grep -v '^ *+' conftest.er1 >conftest.err
24497 rm -f conftest.er1
24498 cat conftest.err >&5
24499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24500 (exit $ac_status); } && {
24501 test -z "$ac_c_werror_flag" ||
24502 test ! -s conftest.err
24503 } && test -s conftest.$ac_objext; then
24504 ac_lo=$ac_mid; break
24505else
24506 $as_echo "$as_me: failed program was:" >&5
24507sed 's/^/| /' conftest.$ac_ext >&5
24508
24509 ac_hi=`expr '(' $ac_mid ')' - 1`
24510 if test $ac_mid -le $ac_hi; then
24511 ac_lo= ac_hi=
24512 break
24513 fi
24514 ac_mid=`expr 2 '*' $ac_mid`
24515fi
24516
24517rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24518 done
24519else
24520 $as_echo "$as_me: failed program was:" >&5
24521sed 's/^/| /' conftest.$ac_ext >&5
24522
24523 ac_lo= ac_hi=
24524fi
24525
24526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24527fi
24528
24529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24530# Binary search between lo and hi bounds.
24531while test "x$ac_lo" != "x$ac_hi"; do
24532 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24533 cat >conftest.$ac_ext <<_ACEOF
24534/* confdefs.h. */
24535_ACEOF
24536cat confdefs.h >>conftest.$ac_ext
24537cat >>conftest.$ac_ext <<_ACEOF
24538/* end confdefs.h. */
24539$ac_includes_default
24540int
24541main ()
24542{
24543static int test_array [1 - 2 * !(((long int) (sizeof (unsigned short))) <= $ac_mid)];
24544test_array [0] = 0
24545
24546 ;
24547 return 0;
24548}
24549_ACEOF
24550rm -f conftest.$ac_objext
24551if { (ac_try="$ac_compile"
24552case "(($ac_try" in
24553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24554 *) ac_try_echo=$ac_try;;
24555esac
24556eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24557$as_echo "$ac_try_echo") >&5
24558 (eval "$ac_compile") 2>conftest.er1
24559 ac_status=$?
24560 grep -v '^ *+' conftest.er1 >conftest.err
24561 rm -f conftest.er1
24562 cat conftest.err >&5
24563 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24564 (exit $ac_status); } && {
24565 test -z "$ac_c_werror_flag" ||
24566 test ! -s conftest.err
24567 } && test -s conftest.$ac_objext; then
24568 ac_hi=$ac_mid
24569else
24570 $as_echo "$as_me: failed program was:" >&5
24571sed 's/^/| /' conftest.$ac_ext >&5
24572
24573 ac_lo=`expr '(' $ac_mid ')' + 1`
24574fi
24575
24576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24577done
24578case $ac_lo in
24579?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
24580'') if test "$ac_cv_type_unsigned_short" = yes; then
24581 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24583{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
24584See \`config.log' for more details." >&5
24585$as_echo "$as_me: error: cannot compute sizeof (unsigned short)
24586See \`config.log' for more details." >&2;}
24587 { (exit 77); exit 77; }; }; }
24588 else
24589 ac_cv_sizeof_unsigned_short=0
24590 fi ;;
24591esac
24592else
24593 cat >conftest.$ac_ext <<_ACEOF
24594/* confdefs.h. */
24595_ACEOF
24596cat confdefs.h >>conftest.$ac_ext
24597cat >>conftest.$ac_ext <<_ACEOF
24598/* end confdefs.h. */
24599$ac_includes_default
24600static long int longval () { return (long int) (sizeof (unsigned short)); }
24601static unsigned long int ulongval () { return (long int) (sizeof (unsigned short)); }
24602#include <stdio.h>
24603#include <stdlib.h>
24604int
24605main ()
24606{
24607
24608 FILE *f = fopen ("conftest.val", "w");
24609 if (! f)
24610 return 1;
24611 if (((long int) (sizeof (unsigned short))) < 0)
24612 {
24613 long int i = longval ();
24614 if (i != ((long int) (sizeof (unsigned short))))
24615 return 1;
24616 fprintf (f, "%ld", i);
24617 }
24618 else
24619 {
24620 unsigned long int i = ulongval ();
24621 if (i != ((long int) (sizeof (unsigned short))))
24622 return 1;
24623 fprintf (f, "%lu", i);
24624 }
24625 /* Do not output a trailing newline, as this causes \r\n confusion
24626 on some platforms. */
24627 return ferror (f) || fclose (f) != 0;
24628
24629 ;
24630 return 0;
24631}
24632_ACEOF
24633rm -f conftest$ac_exeext
24634if { (ac_try="$ac_link"
24635case "(($ac_try" in
24636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24637 *) ac_try_echo=$ac_try;;
24638esac
24639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24640$as_echo "$ac_try_echo") >&5
24641 (eval "$ac_link") 2>&5
24642 ac_status=$?
24643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24645 { (case "(($ac_try" in
24646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24647 *) ac_try_echo=$ac_try;;
24648esac
24649eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24650$as_echo "$ac_try_echo") >&5
24651 (eval "$ac_try") 2>&5
24652 ac_status=$?
24653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24654 (exit $ac_status); }; }; then
24655 ac_cv_sizeof_unsigned_short=`cat conftest.val`
24656else
24657 $as_echo "$as_me: program exited with status $ac_status" >&5
24658$as_echo "$as_me: failed program was:" >&5
24659sed 's/^/| /' conftest.$ac_ext >&5
24660
24661( exit $ac_status )
24662if test "$ac_cv_type_unsigned_short" = yes; then
24663 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24665{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short)
24666See \`config.log' for more details." >&5
24667$as_echo "$as_me: error: cannot compute sizeof (unsigned short)
24668See \`config.log' for more details." >&2;}
24669 { (exit 77); exit 77; }; }; }
24670 else
24671 ac_cv_sizeof_unsigned_short=0
24672 fi
24673fi
24674rm -rf conftest.dSYM
24675rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24676fi
24677rm -f conftest.val
24678fi
24679{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
24680$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
24681
24682
24683
24684cat >>confdefs.h <<_ACEOF
24685#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24686_ACEOF
24687
24688
24689
24690# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
24691# The cast to long int works around a bug in the HP C Compiler
24692# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24693# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24694# This bug is HP SR number 8606223364.
24695{ $as_echo "$as_me:$LINENO: checking size of signed int" >&5
24696$as_echo_n "checking size of signed int... " >&6; }
24697if test "${ac_cv_sizeof_signed_int+set}" = set; then
24698 $as_echo_n "(cached) " >&6
24699else
24700 if test "$cross_compiling" = yes; then
24701 # Depending upon the size, compute the lo and hi bounds.
24702cat >conftest.$ac_ext <<_ACEOF
24703/* confdefs.h. */
24704_ACEOF
24705cat confdefs.h >>conftest.$ac_ext
24706cat >>conftest.$ac_ext <<_ACEOF
24707/* end confdefs.h. */
24708$ac_includes_default
24709int
24710main ()
24711{
24712static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) >= 0)];
24713test_array [0] = 0
24714
24715 ;
24716 return 0;
24717}
24718_ACEOF
24719rm -f conftest.$ac_objext
24720if { (ac_try="$ac_compile"
24721case "(($ac_try" in
24722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24723 *) ac_try_echo=$ac_try;;
24724esac
24725eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24726$as_echo "$ac_try_echo") >&5
24727 (eval "$ac_compile") 2>conftest.er1
24728 ac_status=$?
24729 grep -v '^ *+' conftest.er1 >conftest.err
24730 rm -f conftest.er1
24731 cat conftest.err >&5
24732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733 (exit $ac_status); } && {
24734 test -z "$ac_c_werror_flag" ||
24735 test ! -s conftest.err
24736 } && test -s conftest.$ac_objext; then
24737 ac_lo=0 ac_mid=0
24738 while :; do
24739 cat >conftest.$ac_ext <<_ACEOF
24740/* confdefs.h. */
24741_ACEOF
24742cat confdefs.h >>conftest.$ac_ext
24743cat >>conftest.$ac_ext <<_ACEOF
24744/* end confdefs.h. */
24745$ac_includes_default
24746int
24747main ()
24748{
24749static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) <= $ac_mid)];
24750test_array [0] = 0
24751
24752 ;
24753 return 0;
24754}
24755_ACEOF
24756rm -f conftest.$ac_objext
24757if { (ac_try="$ac_compile"
24758case "(($ac_try" in
24759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24760 *) ac_try_echo=$ac_try;;
24761esac
24762eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24763$as_echo "$ac_try_echo") >&5
24764 (eval "$ac_compile") 2>conftest.er1
24765 ac_status=$?
24766 grep -v '^ *+' conftest.er1 >conftest.err
24767 rm -f conftest.er1
24768 cat conftest.err >&5
24769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770 (exit $ac_status); } && {
24771 test -z "$ac_c_werror_flag" ||
24772 test ! -s conftest.err
24773 } && test -s conftest.$ac_objext; then
24774 ac_hi=$ac_mid; break
24775else
24776 $as_echo "$as_me: failed program was:" >&5
24777sed 's/^/| /' conftest.$ac_ext >&5
24778
24779 ac_lo=`expr $ac_mid + 1`
24780 if test $ac_lo -le $ac_mid; then
24781 ac_lo= ac_hi=
24782 break
24783 fi
24784 ac_mid=`expr 2 '*' $ac_mid + 1`
24785fi
24786
24787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24788 done
24789else
24790 $as_echo "$as_me: failed program was:" >&5
24791sed 's/^/| /' conftest.$ac_ext >&5
24792
24793 cat >conftest.$ac_ext <<_ACEOF
24794/* confdefs.h. */
24795_ACEOF
24796cat confdefs.h >>conftest.$ac_ext
24797cat >>conftest.$ac_ext <<_ACEOF
24798/* end confdefs.h. */
24799$ac_includes_default
24800int
24801main ()
24802{
24803static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) < 0)];
24804test_array [0] = 0
24805
24806 ;
24807 return 0;
24808}
24809_ACEOF
24810rm -f conftest.$ac_objext
24811if { (ac_try="$ac_compile"
24812case "(($ac_try" in
24813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24814 *) ac_try_echo=$ac_try;;
24815esac
24816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24817$as_echo "$ac_try_echo") >&5
24818 (eval "$ac_compile") 2>conftest.er1
24819 ac_status=$?
24820 grep -v '^ *+' conftest.er1 >conftest.err
24821 rm -f conftest.er1
24822 cat conftest.err >&5
24823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824 (exit $ac_status); } && {
24825 test -z "$ac_c_werror_flag" ||
24826 test ! -s conftest.err
24827 } && test -s conftest.$ac_objext; then
24828 ac_hi=-1 ac_mid=-1
24829 while :; do
24830 cat >conftest.$ac_ext <<_ACEOF
24831/* confdefs.h. */
24832_ACEOF
24833cat confdefs.h >>conftest.$ac_ext
24834cat >>conftest.$ac_ext <<_ACEOF
24835/* end confdefs.h. */
24836$ac_includes_default
24837int
24838main ()
24839{
24840static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) >= $ac_mid)];
24841test_array [0] = 0
24842
24843 ;
24844 return 0;
24845}
24846_ACEOF
24847rm -f conftest.$ac_objext
24848if { (ac_try="$ac_compile"
24849case "(($ac_try" in
24850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24851 *) ac_try_echo=$ac_try;;
24852esac
24853eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24854$as_echo "$ac_try_echo") >&5
24855 (eval "$ac_compile") 2>conftest.er1
24856 ac_status=$?
24857 grep -v '^ *+' conftest.er1 >conftest.err
24858 rm -f conftest.er1
24859 cat conftest.err >&5
24860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24861 (exit $ac_status); } && {
24862 test -z "$ac_c_werror_flag" ||
24863 test ! -s conftest.err
24864 } && test -s conftest.$ac_objext; then
24865 ac_lo=$ac_mid; break
24866else
24867 $as_echo "$as_me: failed program was:" >&5
24868sed 's/^/| /' conftest.$ac_ext >&5
24869
24870 ac_hi=`expr '(' $ac_mid ')' - 1`
24871 if test $ac_mid -le $ac_hi; then
24872 ac_lo= ac_hi=
24873 break
24874 fi
24875 ac_mid=`expr 2 '*' $ac_mid`
24876fi
24877
24878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24879 done
24880else
24881 $as_echo "$as_me: failed program was:" >&5
24882sed 's/^/| /' conftest.$ac_ext >&5
24883
24884 ac_lo= ac_hi=
24885fi
24886
24887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24888fi
24889
24890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24891# Binary search between lo and hi bounds.
24892while test "x$ac_lo" != "x$ac_hi"; do
24893 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24894 cat >conftest.$ac_ext <<_ACEOF
24895/* confdefs.h. */
24896_ACEOF
24897cat confdefs.h >>conftest.$ac_ext
24898cat >>conftest.$ac_ext <<_ACEOF
24899/* end confdefs.h. */
24900$ac_includes_default
24901int
24902main ()
24903{
24904static int test_array [1 - 2 * !(((long int) (sizeof (signed int))) <= $ac_mid)];
24905test_array [0] = 0
24906
24907 ;
24908 return 0;
24909}
24910_ACEOF
24911rm -f conftest.$ac_objext
24912if { (ac_try="$ac_compile"
24913case "(($ac_try" in
24914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24915 *) ac_try_echo=$ac_try;;
24916esac
24917eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24918$as_echo "$ac_try_echo") >&5
24919 (eval "$ac_compile") 2>conftest.er1
24920 ac_status=$?
24921 grep -v '^ *+' conftest.er1 >conftest.err
24922 rm -f conftest.er1
24923 cat conftest.err >&5
24924 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925 (exit $ac_status); } && {
24926 test -z "$ac_c_werror_flag" ||
24927 test ! -s conftest.err
24928 } && test -s conftest.$ac_objext; then
24929 ac_hi=$ac_mid
24930else
24931 $as_echo "$as_me: failed program was:" >&5
24932sed 's/^/| /' conftest.$ac_ext >&5
24933
24934 ac_lo=`expr '(' $ac_mid ')' + 1`
24935fi
24936
24937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24938done
24939case $ac_lo in
24940?*) ac_cv_sizeof_signed_int=$ac_lo;;
24941'') if test "$ac_cv_type_signed_int" = yes; then
24942 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
24943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24944{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed int)
24945See \`config.log' for more details." >&5
24946$as_echo "$as_me: error: cannot compute sizeof (signed int)
24947See \`config.log' for more details." >&2;}
24948 { (exit 77); exit 77; }; }; }
24949 else
24950 ac_cv_sizeof_signed_int=0
24951 fi ;;
24952esac
24953else
24954 cat >conftest.$ac_ext <<_ACEOF
24955/* confdefs.h. */
24956_ACEOF
24957cat confdefs.h >>conftest.$ac_ext
24958cat >>conftest.$ac_ext <<_ACEOF
24959/* end confdefs.h. */
24960$ac_includes_default
24961static long int longval () { return (long int) (sizeof (signed int)); }
24962static unsigned long int ulongval () { return (long int) (sizeof (signed int)); }
24963#include <stdio.h>
24964#include <stdlib.h>
24965int
24966main ()
24967{
24968
24969 FILE *f = fopen ("conftest.val", "w");
24970 if (! f)
24971 return 1;
24972 if (((long int) (sizeof (signed int))) < 0)
24973 {
24974 long int i = longval ();
24975 if (i != ((long int) (sizeof (signed int))))
24976 return 1;
24977 fprintf (f, "%ld", i);
24978 }
24979 else
24980 {
24981 unsigned long int i = ulongval ();
24982 if (i != ((long int) (sizeof (signed int))))
24983 return 1;
24984 fprintf (f, "%lu", i);
24985 }
24986 /* Do not output a trailing newline, as this causes \r\n confusion
24987 on some platforms. */
24988 return ferror (f) || fclose (f) != 0;
24989
24990 ;
24991 return 0;
24992}
24993_ACEOF
24994rm -f conftest$ac_exeext
24995if { (ac_try="$ac_link"
24996case "(($ac_try" in
24997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24998 *) ac_try_echo=$ac_try;;
24999esac
25000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25001$as_echo "$ac_try_echo") >&5
25002 (eval "$ac_link") 2>&5
25003 ac_status=$?
25004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25005 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25006 { (case "(($ac_try" in
25007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25008 *) ac_try_echo=$ac_try;;
25009esac
25010eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25011$as_echo "$ac_try_echo") >&5
25012 (eval "$ac_try") 2>&5
25013 ac_status=$?
25014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015 (exit $ac_status); }; }; then
25016 ac_cv_sizeof_signed_int=`cat conftest.val`
25017else
25018 $as_echo "$as_me: program exited with status $ac_status" >&5
25019$as_echo "$as_me: failed program was:" >&5
25020sed 's/^/| /' conftest.$ac_ext >&5
25021
25022( exit $ac_status )
25023if test "$ac_cv_type_signed_int" = yes; then
25024 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25025$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25026{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed int)
25027See \`config.log' for more details." >&5
25028$as_echo "$as_me: error: cannot compute sizeof (signed int)
25029See \`config.log' for more details." >&2;}
25030 { (exit 77); exit 77; }; }; }
25031 else
25032 ac_cv_sizeof_signed_int=0
25033 fi
25034fi
25035rm -rf conftest.dSYM
25036rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25037fi
25038rm -f conftest.val
25039fi
25040{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_int" >&5
25041$as_echo "$ac_cv_sizeof_signed_int" >&6; }
25042
25043
25044
25045cat >>confdefs.h <<_ACEOF
25046#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
25047_ACEOF
25048
25049
25050
25051# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
25052# The cast to long int works around a bug in the HP C Compiler
25053# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25054# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25055# This bug is HP SR number 8606223364.
25056{ $as_echo "$as_me:$LINENO: checking size of unsigned int" >&5
25057$as_echo_n "checking size of unsigned int... " >&6; }
25058if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
25059 $as_echo_n "(cached) " >&6
25060else
25061 if test "$cross_compiling" = yes; then
25062 # Depending upon the size, compute the lo and hi bounds.
25063cat >conftest.$ac_ext <<_ACEOF
25064/* confdefs.h. */
25065_ACEOF
25066cat confdefs.h >>conftest.$ac_ext
25067cat >>conftest.$ac_ext <<_ACEOF
25068/* end confdefs.h. */
25069$ac_includes_default
25070int
25071main ()
25072{
25073static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= 0)];
25074test_array [0] = 0
25075
25076 ;
25077 return 0;
25078}
25079_ACEOF
25080rm -f conftest.$ac_objext
25081if { (ac_try="$ac_compile"
25082case "(($ac_try" in
25083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25084 *) ac_try_echo=$ac_try;;
25085esac
25086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25087$as_echo "$ac_try_echo") >&5
25088 (eval "$ac_compile") 2>conftest.er1
25089 ac_status=$?
25090 grep -v '^ *+' conftest.er1 >conftest.err
25091 rm -f conftest.er1
25092 cat conftest.err >&5
25093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25094 (exit $ac_status); } && {
25095 test -z "$ac_c_werror_flag" ||
25096 test ! -s conftest.err
25097 } && test -s conftest.$ac_objext; then
25098 ac_lo=0 ac_mid=0
25099 while :; do
25100 cat >conftest.$ac_ext <<_ACEOF
25101/* confdefs.h. */
25102_ACEOF
25103cat confdefs.h >>conftest.$ac_ext
25104cat >>conftest.$ac_ext <<_ACEOF
25105/* end confdefs.h. */
25106$ac_includes_default
25107int
25108main ()
25109{
25110static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
25111test_array [0] = 0
25112
25113 ;
25114 return 0;
25115}
25116_ACEOF
25117rm -f conftest.$ac_objext
25118if { (ac_try="$ac_compile"
25119case "(($ac_try" in
25120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25121 *) ac_try_echo=$ac_try;;
25122esac
25123eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25124$as_echo "$ac_try_echo") >&5
25125 (eval "$ac_compile") 2>conftest.er1
25126 ac_status=$?
25127 grep -v '^ *+' conftest.er1 >conftest.err
25128 rm -f conftest.er1
25129 cat conftest.err >&5
25130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); } && {
25132 test -z "$ac_c_werror_flag" ||
25133 test ! -s conftest.err
25134 } && test -s conftest.$ac_objext; then
25135 ac_hi=$ac_mid; break
25136else
25137 $as_echo "$as_me: failed program was:" >&5
25138sed 's/^/| /' conftest.$ac_ext >&5
25139
25140 ac_lo=`expr $ac_mid + 1`
25141 if test $ac_lo -le $ac_mid; then
25142 ac_lo= ac_hi=
25143 break
25144 fi
25145 ac_mid=`expr 2 '*' $ac_mid + 1`
25146fi
25147
25148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25149 done
25150else
25151 $as_echo "$as_me: failed program was:" >&5
25152sed 's/^/| /' conftest.$ac_ext >&5
25153
25154 cat >conftest.$ac_ext <<_ACEOF
25155/* confdefs.h. */
25156_ACEOF
25157cat confdefs.h >>conftest.$ac_ext
25158cat >>conftest.$ac_ext <<_ACEOF
25159/* end confdefs.h. */
25160$ac_includes_default
25161int
25162main ()
25163{
25164static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) < 0)];
25165test_array [0] = 0
25166
25167 ;
25168 return 0;
25169}
25170_ACEOF
25171rm -f conftest.$ac_objext
25172if { (ac_try="$ac_compile"
25173case "(($ac_try" in
25174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25175 *) ac_try_echo=$ac_try;;
25176esac
25177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25178$as_echo "$ac_try_echo") >&5
25179 (eval "$ac_compile") 2>conftest.er1
25180 ac_status=$?
25181 grep -v '^ *+' conftest.er1 >conftest.err
25182 rm -f conftest.er1
25183 cat conftest.err >&5
25184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25185 (exit $ac_status); } && {
25186 test -z "$ac_c_werror_flag" ||
25187 test ! -s conftest.err
25188 } && test -s conftest.$ac_objext; then
25189 ac_hi=-1 ac_mid=-1
25190 while :; do
25191 cat >conftest.$ac_ext <<_ACEOF
25192/* confdefs.h. */
25193_ACEOF
25194cat confdefs.h >>conftest.$ac_ext
25195cat >>conftest.$ac_ext <<_ACEOF
25196/* end confdefs.h. */
25197$ac_includes_default
25198int
25199main ()
25200{
25201static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) >= $ac_mid)];
25202test_array [0] = 0
25203
25204 ;
25205 return 0;
25206}
25207_ACEOF
25208rm -f conftest.$ac_objext
25209if { (ac_try="$ac_compile"
25210case "(($ac_try" in
25211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25212 *) ac_try_echo=$ac_try;;
25213esac
25214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25215$as_echo "$ac_try_echo") >&5
25216 (eval "$ac_compile") 2>conftest.er1
25217 ac_status=$?
25218 grep -v '^ *+' conftest.er1 >conftest.err
25219 rm -f conftest.er1
25220 cat conftest.err >&5
25221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25222 (exit $ac_status); } && {
25223 test -z "$ac_c_werror_flag" ||
25224 test ! -s conftest.err
25225 } && test -s conftest.$ac_objext; then
25226 ac_lo=$ac_mid; break
25227else
25228 $as_echo "$as_me: failed program was:" >&5
25229sed 's/^/| /' conftest.$ac_ext >&5
25230
25231 ac_hi=`expr '(' $ac_mid ')' - 1`
25232 if test $ac_mid -le $ac_hi; then
25233 ac_lo= ac_hi=
25234 break
25235 fi
25236 ac_mid=`expr 2 '*' $ac_mid`
25237fi
25238
25239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25240 done
25241else
25242 $as_echo "$as_me: failed program was:" >&5
25243sed 's/^/| /' conftest.$ac_ext >&5
25244
25245 ac_lo= ac_hi=
25246fi
25247
25248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25249fi
25250
25251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25252# Binary search between lo and hi bounds.
25253while test "x$ac_lo" != "x$ac_hi"; do
25254 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25255 cat >conftest.$ac_ext <<_ACEOF
25256/* confdefs.h. */
25257_ACEOF
25258cat confdefs.h >>conftest.$ac_ext
25259cat >>conftest.$ac_ext <<_ACEOF
25260/* end confdefs.h. */
25261$ac_includes_default
25262int
25263main ()
25264{
25265static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int))) <= $ac_mid)];
25266test_array [0] = 0
25267
25268 ;
25269 return 0;
25270}
25271_ACEOF
25272rm -f conftest.$ac_objext
25273if { (ac_try="$ac_compile"
25274case "(($ac_try" in
25275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25276 *) ac_try_echo=$ac_try;;
25277esac
25278eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25279$as_echo "$ac_try_echo") >&5
25280 (eval "$ac_compile") 2>conftest.er1
25281 ac_status=$?
25282 grep -v '^ *+' conftest.er1 >conftest.err
25283 rm -f conftest.er1
25284 cat conftest.err >&5
25285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25286 (exit $ac_status); } && {
25287 test -z "$ac_c_werror_flag" ||
25288 test ! -s conftest.err
25289 } && test -s conftest.$ac_objext; then
25290 ac_hi=$ac_mid
25291else
25292 $as_echo "$as_me: failed program was:" >&5
25293sed 's/^/| /' conftest.$ac_ext >&5
25294
25295 ac_lo=`expr '(' $ac_mid ')' + 1`
25296fi
25297
25298rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25299done
25300case $ac_lo in
25301?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
25302'') if test "$ac_cv_type_unsigned_int" = yes; then
25303 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25305{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
25306See \`config.log' for more details." >&5
25307$as_echo "$as_me: error: cannot compute sizeof (unsigned int)
25308See \`config.log' for more details." >&2;}
25309 { (exit 77); exit 77; }; }; }
25310 else
25311 ac_cv_sizeof_unsigned_int=0
25312 fi ;;
25313esac
25314else
25315 cat >conftest.$ac_ext <<_ACEOF
25316/* confdefs.h. */
25317_ACEOF
25318cat confdefs.h >>conftest.$ac_ext
25319cat >>conftest.$ac_ext <<_ACEOF
25320/* end confdefs.h. */
25321$ac_includes_default
25322static long int longval () { return (long int) (sizeof (unsigned int)); }
25323static unsigned long int ulongval () { return (long int) (sizeof (unsigned int)); }
25324#include <stdio.h>
25325#include <stdlib.h>
25326int
25327main ()
25328{
25329
25330 FILE *f = fopen ("conftest.val", "w");
25331 if (! f)
25332 return 1;
25333 if (((long int) (sizeof (unsigned int))) < 0)
25334 {
25335 long int i = longval ();
25336 if (i != ((long int) (sizeof (unsigned int))))
25337 return 1;
25338 fprintf (f, "%ld", i);
25339 }
25340 else
25341 {
25342 unsigned long int i = ulongval ();
25343 if (i != ((long int) (sizeof (unsigned int))))
25344 return 1;
25345 fprintf (f, "%lu", i);
25346 }
25347 /* Do not output a trailing newline, as this causes \r\n confusion
25348 on some platforms. */
25349 return ferror (f) || fclose (f) != 0;
25350
25351 ;
25352 return 0;
25353}
25354_ACEOF
25355rm -f conftest$ac_exeext
25356if { (ac_try="$ac_link"
25357case "(($ac_try" in
25358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25359 *) ac_try_echo=$ac_try;;
25360esac
25361eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25362$as_echo "$ac_try_echo") >&5
25363 (eval "$ac_link") 2>&5
25364 ac_status=$?
25365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25367 { (case "(($ac_try" in
25368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25369 *) ac_try_echo=$ac_try;;
25370esac
25371eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25372$as_echo "$ac_try_echo") >&5
25373 (eval "$ac_try") 2>&5
25374 ac_status=$?
25375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25376 (exit $ac_status); }; }; then
25377 ac_cv_sizeof_unsigned_int=`cat conftest.val`
25378else
25379 $as_echo "$as_me: program exited with status $ac_status" >&5
25380$as_echo "$as_me: failed program was:" >&5
25381sed 's/^/| /' conftest.$ac_ext >&5
25382
25383( exit $ac_status )
25384if test "$ac_cv_type_unsigned_int" = yes; then
25385 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25387{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int)
25388See \`config.log' for more details." >&5
25389$as_echo "$as_me: error: cannot compute sizeof (unsigned int)
25390See \`config.log' for more details." >&2;}
25391 { (exit 77); exit 77; }; }; }
25392 else
25393 ac_cv_sizeof_unsigned_int=0
25394 fi
25395fi
25396rm -rf conftest.dSYM
25397rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25398fi
25399rm -f conftest.val
25400fi
25401{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
25402$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
25403
25404
25405
25406cat >>confdefs.h <<_ACEOF
25407#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
25408_ACEOF
25409
25410
25411
25412# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
25413# The cast to long int works around a bug in the HP C Compiler
25414# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25415# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25416# This bug is HP SR number 8606223364.
25417{ $as_echo "$as_me:$LINENO: checking size of signed long" >&5
25418$as_echo_n "checking size of signed long... " >&6; }
25419if test "${ac_cv_sizeof_signed_long+set}" = set; then
25420 $as_echo_n "(cached) " >&6
25421else
25422 if test "$cross_compiling" = yes; then
25423 # Depending upon the size, compute the lo and hi bounds.
25424cat >conftest.$ac_ext <<_ACEOF
25425/* confdefs.h. */
25426_ACEOF
25427cat confdefs.h >>conftest.$ac_ext
25428cat >>conftest.$ac_ext <<_ACEOF
25429/* end confdefs.h. */
25430$ac_includes_default
25431int
25432main ()
25433{
25434static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) >= 0)];
25435test_array [0] = 0
25436
25437 ;
25438 return 0;
25439}
25440_ACEOF
25441rm -f conftest.$ac_objext
25442if { (ac_try="$ac_compile"
25443case "(($ac_try" in
25444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25445 *) ac_try_echo=$ac_try;;
25446esac
25447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25448$as_echo "$ac_try_echo") >&5
25449 (eval "$ac_compile") 2>conftest.er1
25450 ac_status=$?
25451 grep -v '^ *+' conftest.er1 >conftest.err
25452 rm -f conftest.er1
25453 cat conftest.err >&5
25454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25455 (exit $ac_status); } && {
25456 test -z "$ac_c_werror_flag" ||
25457 test ! -s conftest.err
25458 } && test -s conftest.$ac_objext; then
25459 ac_lo=0 ac_mid=0
25460 while :; do
25461 cat >conftest.$ac_ext <<_ACEOF
25462/* confdefs.h. */
25463_ACEOF
25464cat confdefs.h >>conftest.$ac_ext
25465cat >>conftest.$ac_ext <<_ACEOF
25466/* end confdefs.h. */
25467$ac_includes_default
25468int
25469main ()
25470{
25471static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) <= $ac_mid)];
25472test_array [0] = 0
25473
25474 ;
25475 return 0;
25476}
25477_ACEOF
25478rm -f conftest.$ac_objext
25479if { (ac_try="$ac_compile"
25480case "(($ac_try" in
25481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25482 *) ac_try_echo=$ac_try;;
25483esac
25484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25485$as_echo "$ac_try_echo") >&5
25486 (eval "$ac_compile") 2>conftest.er1
25487 ac_status=$?
25488 grep -v '^ *+' conftest.er1 >conftest.err
25489 rm -f conftest.er1
25490 cat conftest.err >&5
25491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492 (exit $ac_status); } && {
25493 test -z "$ac_c_werror_flag" ||
25494 test ! -s conftest.err
25495 } && test -s conftest.$ac_objext; then
25496 ac_hi=$ac_mid; break
25497else
25498 $as_echo "$as_me: failed program was:" >&5
25499sed 's/^/| /' conftest.$ac_ext >&5
25500
25501 ac_lo=`expr $ac_mid + 1`
25502 if test $ac_lo -le $ac_mid; then
25503 ac_lo= ac_hi=
25504 break
25505 fi
25506 ac_mid=`expr 2 '*' $ac_mid + 1`
25507fi
25508
25509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25510 done
25511else
25512 $as_echo "$as_me: failed program was:" >&5
25513sed 's/^/| /' conftest.$ac_ext >&5
25514
25515 cat >conftest.$ac_ext <<_ACEOF
25516/* confdefs.h. */
25517_ACEOF
25518cat confdefs.h >>conftest.$ac_ext
25519cat >>conftest.$ac_ext <<_ACEOF
25520/* end confdefs.h. */
25521$ac_includes_default
25522int
25523main ()
25524{
25525static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) < 0)];
25526test_array [0] = 0
25527
25528 ;
25529 return 0;
25530}
25531_ACEOF
25532rm -f conftest.$ac_objext
25533if { (ac_try="$ac_compile"
25534case "(($ac_try" in
25535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25536 *) ac_try_echo=$ac_try;;
25537esac
25538eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25539$as_echo "$ac_try_echo") >&5
25540 (eval "$ac_compile") 2>conftest.er1
25541 ac_status=$?
25542 grep -v '^ *+' conftest.er1 >conftest.err
25543 rm -f conftest.er1
25544 cat conftest.err >&5
25545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25546 (exit $ac_status); } && {
25547 test -z "$ac_c_werror_flag" ||
25548 test ! -s conftest.err
25549 } && test -s conftest.$ac_objext; then
25550 ac_hi=-1 ac_mid=-1
25551 while :; do
25552 cat >conftest.$ac_ext <<_ACEOF
25553/* confdefs.h. */
25554_ACEOF
25555cat confdefs.h >>conftest.$ac_ext
25556cat >>conftest.$ac_ext <<_ACEOF
25557/* end confdefs.h. */
25558$ac_includes_default
25559int
25560main ()
25561{
25562static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) >= $ac_mid)];
25563test_array [0] = 0
25564
25565 ;
25566 return 0;
25567}
25568_ACEOF
25569rm -f conftest.$ac_objext
25570if { (ac_try="$ac_compile"
25571case "(($ac_try" in
25572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25573 *) ac_try_echo=$ac_try;;
25574esac
25575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25576$as_echo "$ac_try_echo") >&5
25577 (eval "$ac_compile") 2>conftest.er1
25578 ac_status=$?
25579 grep -v '^ *+' conftest.er1 >conftest.err
25580 rm -f conftest.er1
25581 cat conftest.err >&5
25582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25583 (exit $ac_status); } && {
25584 test -z "$ac_c_werror_flag" ||
25585 test ! -s conftest.err
25586 } && test -s conftest.$ac_objext; then
25587 ac_lo=$ac_mid; break
25588else
25589 $as_echo "$as_me: failed program was:" >&5
25590sed 's/^/| /' conftest.$ac_ext >&5
25591
25592 ac_hi=`expr '(' $ac_mid ')' - 1`
25593 if test $ac_mid -le $ac_hi; then
25594 ac_lo= ac_hi=
25595 break
25596 fi
25597 ac_mid=`expr 2 '*' $ac_mid`
25598fi
25599
25600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25601 done
25602else
25603 $as_echo "$as_me: failed program was:" >&5
25604sed 's/^/| /' conftest.$ac_ext >&5
25605
25606 ac_lo= ac_hi=
25607fi
25608
25609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25610fi
25611
25612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25613# Binary search between lo and hi bounds.
25614while test "x$ac_lo" != "x$ac_hi"; do
25615 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25616 cat >conftest.$ac_ext <<_ACEOF
25617/* confdefs.h. */
25618_ACEOF
25619cat confdefs.h >>conftest.$ac_ext
25620cat >>conftest.$ac_ext <<_ACEOF
25621/* end confdefs.h. */
25622$ac_includes_default
25623int
25624main ()
25625{
25626static int test_array [1 - 2 * !(((long int) (sizeof (signed long))) <= $ac_mid)];
25627test_array [0] = 0
25628
25629 ;
25630 return 0;
25631}
25632_ACEOF
25633rm -f conftest.$ac_objext
25634if { (ac_try="$ac_compile"
25635case "(($ac_try" in
25636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25637 *) ac_try_echo=$ac_try;;
25638esac
25639eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25640$as_echo "$ac_try_echo") >&5
25641 (eval "$ac_compile") 2>conftest.er1
25642 ac_status=$?
25643 grep -v '^ *+' conftest.er1 >conftest.err
25644 rm -f conftest.er1
25645 cat conftest.err >&5
25646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647 (exit $ac_status); } && {
25648 test -z "$ac_c_werror_flag" ||
25649 test ! -s conftest.err
25650 } && test -s conftest.$ac_objext; then
25651 ac_hi=$ac_mid
25652else
25653 $as_echo "$as_me: failed program was:" >&5
25654sed 's/^/| /' conftest.$ac_ext >&5
25655
25656 ac_lo=`expr '(' $ac_mid ')' + 1`
25657fi
25658
25659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25660done
25661case $ac_lo in
25662?*) ac_cv_sizeof_signed_long=$ac_lo;;
25663'') if test "$ac_cv_type_signed_long" = yes; then
25664 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25665$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25666{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
25667See \`config.log' for more details." >&5
25668$as_echo "$as_me: error: cannot compute sizeof (signed long)
25669See \`config.log' for more details." >&2;}
25670 { (exit 77); exit 77; }; }; }
25671 else
25672 ac_cv_sizeof_signed_long=0
25673 fi ;;
25674esac
25675else
25676 cat >conftest.$ac_ext <<_ACEOF
25677/* confdefs.h. */
25678_ACEOF
25679cat confdefs.h >>conftest.$ac_ext
25680cat >>conftest.$ac_ext <<_ACEOF
25681/* end confdefs.h. */
25682$ac_includes_default
25683static long int longval () { return (long int) (sizeof (signed long)); }
25684static unsigned long int ulongval () { return (long int) (sizeof (signed long)); }
25685#include <stdio.h>
25686#include <stdlib.h>
25687int
25688main ()
25689{
25690
25691 FILE *f = fopen ("conftest.val", "w");
25692 if (! f)
25693 return 1;
25694 if (((long int) (sizeof (signed long))) < 0)
25695 {
25696 long int i = longval ();
25697 if (i != ((long int) (sizeof (signed long))))
25698 return 1;
25699 fprintf (f, "%ld", i);
25700 }
25701 else
25702 {
25703 unsigned long int i = ulongval ();
25704 if (i != ((long int) (sizeof (signed long))))
25705 return 1;
25706 fprintf (f, "%lu", i);
25707 }
25708 /* Do not output a trailing newline, as this causes \r\n confusion
25709 on some platforms. */
25710 return ferror (f) || fclose (f) != 0;
25711
25712 ;
25713 return 0;
25714}
25715_ACEOF
25716rm -f conftest$ac_exeext
25717if { (ac_try="$ac_link"
25718case "(($ac_try" in
25719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25720 *) ac_try_echo=$ac_try;;
25721esac
25722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25723$as_echo "$ac_try_echo") >&5
25724 (eval "$ac_link") 2>&5
25725 ac_status=$?
25726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25728 { (case "(($ac_try" in
25729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25730 *) ac_try_echo=$ac_try;;
25731esac
25732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25733$as_echo "$ac_try_echo") >&5
25734 (eval "$ac_try") 2>&5
25735 ac_status=$?
25736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25737 (exit $ac_status); }; }; then
25738 ac_cv_sizeof_signed_long=`cat conftest.val`
25739else
25740 $as_echo "$as_me: program exited with status $ac_status" >&5
25741$as_echo "$as_me: failed program was:" >&5
25742sed 's/^/| /' conftest.$ac_ext >&5
25743
25744( exit $ac_status )
25745if test "$ac_cv_type_signed_long" = yes; then
25746 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25747$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25748{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long)
25749See \`config.log' for more details." >&5
25750$as_echo "$as_me: error: cannot compute sizeof (signed long)
25751See \`config.log' for more details." >&2;}
25752 { (exit 77); exit 77; }; }; }
25753 else
25754 ac_cv_sizeof_signed_long=0
25755 fi
25756fi
25757rm -rf conftest.dSYM
25758rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25759fi
25760rm -f conftest.val
25761fi
25762{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long" >&5
25763$as_echo "$ac_cv_sizeof_signed_long" >&6; }
25764
25765
25766
25767cat >>confdefs.h <<_ACEOF
25768#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
25769_ACEOF
25770
25771
25772
25773# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
25774# The cast to long int works around a bug in the HP C Compiler
25775# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25776# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25777# This bug is HP SR number 8606223364.
25778{ $as_echo "$as_me:$LINENO: checking size of unsigned long" >&5
25779$as_echo_n "checking size of unsigned long... " >&6; }
25780if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
25781 $as_echo_n "(cached) " >&6
25782else
25783 if test "$cross_compiling" = yes; then
25784 # Depending upon the size, compute the lo and hi bounds.
25785cat >conftest.$ac_ext <<_ACEOF
25786/* confdefs.h. */
25787_ACEOF
25788cat confdefs.h >>conftest.$ac_ext
25789cat >>conftest.$ac_ext <<_ACEOF
25790/* end confdefs.h. */
25791$ac_includes_default
25792int
25793main ()
25794{
25795static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= 0)];
25796test_array [0] = 0
25797
25798 ;
25799 return 0;
25800}
25801_ACEOF
25802rm -f conftest.$ac_objext
25803if { (ac_try="$ac_compile"
25804case "(($ac_try" in
25805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25806 *) ac_try_echo=$ac_try;;
25807esac
25808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25809$as_echo "$ac_try_echo") >&5
25810 (eval "$ac_compile") 2>conftest.er1
25811 ac_status=$?
25812 grep -v '^ *+' conftest.er1 >conftest.err
25813 rm -f conftest.er1
25814 cat conftest.err >&5
25815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25816 (exit $ac_status); } && {
25817 test -z "$ac_c_werror_flag" ||
25818 test ! -s conftest.err
25819 } && test -s conftest.$ac_objext; then
25820 ac_lo=0 ac_mid=0
25821 while :; do
25822 cat >conftest.$ac_ext <<_ACEOF
25823/* confdefs.h. */
25824_ACEOF
25825cat confdefs.h >>conftest.$ac_ext
25826cat >>conftest.$ac_ext <<_ACEOF
25827/* end confdefs.h. */
25828$ac_includes_default
25829int
25830main ()
25831{
25832static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
25833test_array [0] = 0
25834
25835 ;
25836 return 0;
25837}
25838_ACEOF
25839rm -f conftest.$ac_objext
25840if { (ac_try="$ac_compile"
25841case "(($ac_try" in
25842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25843 *) ac_try_echo=$ac_try;;
25844esac
25845eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25846$as_echo "$ac_try_echo") >&5
25847 (eval "$ac_compile") 2>conftest.er1
25848 ac_status=$?
25849 grep -v '^ *+' conftest.er1 >conftest.err
25850 rm -f conftest.er1
25851 cat conftest.err >&5
25852 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25853 (exit $ac_status); } && {
25854 test -z "$ac_c_werror_flag" ||
25855 test ! -s conftest.err
25856 } && test -s conftest.$ac_objext; then
25857 ac_hi=$ac_mid; break
25858else
25859 $as_echo "$as_me: failed program was:" >&5
25860sed 's/^/| /' conftest.$ac_ext >&5
25861
25862 ac_lo=`expr $ac_mid + 1`
25863 if test $ac_lo -le $ac_mid; then
25864 ac_lo= ac_hi=
25865 break
25866 fi
25867 ac_mid=`expr 2 '*' $ac_mid + 1`
25868fi
25869
25870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25871 done
25872else
25873 $as_echo "$as_me: failed program was:" >&5
25874sed 's/^/| /' conftest.$ac_ext >&5
25875
25876 cat >conftest.$ac_ext <<_ACEOF
25877/* confdefs.h. */
25878_ACEOF
25879cat confdefs.h >>conftest.$ac_ext
25880cat >>conftest.$ac_ext <<_ACEOF
25881/* end confdefs.h. */
25882$ac_includes_default
25883int
25884main ()
25885{
25886static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) < 0)];
25887test_array [0] = 0
25888
25889 ;
25890 return 0;
25891}
25892_ACEOF
25893rm -f conftest.$ac_objext
25894if { (ac_try="$ac_compile"
25895case "(($ac_try" in
25896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25897 *) ac_try_echo=$ac_try;;
25898esac
25899eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25900$as_echo "$ac_try_echo") >&5
25901 (eval "$ac_compile") 2>conftest.er1
25902 ac_status=$?
25903 grep -v '^ *+' conftest.er1 >conftest.err
25904 rm -f conftest.er1
25905 cat conftest.err >&5
25906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25907 (exit $ac_status); } && {
25908 test -z "$ac_c_werror_flag" ||
25909 test ! -s conftest.err
25910 } && test -s conftest.$ac_objext; then
25911 ac_hi=-1 ac_mid=-1
25912 while :; do
25913 cat >conftest.$ac_ext <<_ACEOF
25914/* confdefs.h. */
25915_ACEOF
25916cat confdefs.h >>conftest.$ac_ext
25917cat >>conftest.$ac_ext <<_ACEOF
25918/* end confdefs.h. */
25919$ac_includes_default
25920int
25921main ()
25922{
25923static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) >= $ac_mid)];
25924test_array [0] = 0
25925
25926 ;
25927 return 0;
25928}
25929_ACEOF
25930rm -f conftest.$ac_objext
25931if { (ac_try="$ac_compile"
25932case "(($ac_try" in
25933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25934 *) ac_try_echo=$ac_try;;
25935esac
25936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25937$as_echo "$ac_try_echo") >&5
25938 (eval "$ac_compile") 2>conftest.er1
25939 ac_status=$?
25940 grep -v '^ *+' conftest.er1 >conftest.err
25941 rm -f conftest.er1
25942 cat conftest.err >&5
25943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944 (exit $ac_status); } && {
25945 test -z "$ac_c_werror_flag" ||
25946 test ! -s conftest.err
25947 } && test -s conftest.$ac_objext; then
25948 ac_lo=$ac_mid; break
25949else
25950 $as_echo "$as_me: failed program was:" >&5
25951sed 's/^/| /' conftest.$ac_ext >&5
25952
25953 ac_hi=`expr '(' $ac_mid ')' - 1`
25954 if test $ac_mid -le $ac_hi; then
25955 ac_lo= ac_hi=
25956 break
25957 fi
25958 ac_mid=`expr 2 '*' $ac_mid`
25959fi
25960
25961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25962 done
25963else
25964 $as_echo "$as_me: failed program was:" >&5
25965sed 's/^/| /' conftest.$ac_ext >&5
25966
25967 ac_lo= ac_hi=
25968fi
25969
25970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25971fi
25972
25973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25974# Binary search between lo and hi bounds.
25975while test "x$ac_lo" != "x$ac_hi"; do
25976 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25977 cat >conftest.$ac_ext <<_ACEOF
25978/* confdefs.h. */
25979_ACEOF
25980cat confdefs.h >>conftest.$ac_ext
25981cat >>conftest.$ac_ext <<_ACEOF
25982/* end confdefs.h. */
25983$ac_includes_default
25984int
25985main ()
25986{
25987static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long))) <= $ac_mid)];
25988test_array [0] = 0
25989
25990 ;
25991 return 0;
25992}
25993_ACEOF
25994rm -f conftest.$ac_objext
25995if { (ac_try="$ac_compile"
25996case "(($ac_try" in
25997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25998 *) ac_try_echo=$ac_try;;
25999esac
26000eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26001$as_echo "$ac_try_echo") >&5
26002 (eval "$ac_compile") 2>conftest.er1
26003 ac_status=$?
26004 grep -v '^ *+' conftest.er1 >conftest.err
26005 rm -f conftest.er1
26006 cat conftest.err >&5
26007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26008 (exit $ac_status); } && {
26009 test -z "$ac_c_werror_flag" ||
26010 test ! -s conftest.err
26011 } && test -s conftest.$ac_objext; then
26012 ac_hi=$ac_mid
26013else
26014 $as_echo "$as_me: failed program was:" >&5
26015sed 's/^/| /' conftest.$ac_ext >&5
26016
26017 ac_lo=`expr '(' $ac_mid ')' + 1`
26018fi
26019
26020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26021done
26022case $ac_lo in
26023?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
26024'') if test "$ac_cv_type_unsigned_long" = yes; then
26025 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26026$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26027{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
26028See \`config.log' for more details." >&5
26029$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
26030See \`config.log' for more details." >&2;}
26031 { (exit 77); exit 77; }; }; }
26032 else
26033 ac_cv_sizeof_unsigned_long=0
26034 fi ;;
26035esac
26036else
26037 cat >conftest.$ac_ext <<_ACEOF
26038/* confdefs.h. */
26039_ACEOF
26040cat confdefs.h >>conftest.$ac_ext
26041cat >>conftest.$ac_ext <<_ACEOF
26042/* end confdefs.h. */
26043$ac_includes_default
26044static long int longval () { return (long int) (sizeof (unsigned long)); }
26045static unsigned long int ulongval () { return (long int) (sizeof (unsigned long)); }
26046#include <stdio.h>
26047#include <stdlib.h>
26048int
26049main ()
26050{
26051
26052 FILE *f = fopen ("conftest.val", "w");
26053 if (! f)
26054 return 1;
26055 if (((long int) (sizeof (unsigned long))) < 0)
26056 {
26057 long int i = longval ();
26058 if (i != ((long int) (sizeof (unsigned long))))
26059 return 1;
26060 fprintf (f, "%ld", i);
26061 }
26062 else
26063 {
26064 unsigned long int i = ulongval ();
26065 if (i != ((long int) (sizeof (unsigned long))))
26066 return 1;
26067 fprintf (f, "%lu", i);
26068 }
26069 /* Do not output a trailing newline, as this causes \r\n confusion
26070 on some platforms. */
26071 return ferror (f) || fclose (f) != 0;
26072
26073 ;
26074 return 0;
26075}
26076_ACEOF
26077rm -f conftest$ac_exeext
26078if { (ac_try="$ac_link"
26079case "(($ac_try" in
26080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26081 *) ac_try_echo=$ac_try;;
26082esac
26083eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26084$as_echo "$ac_try_echo") >&5
26085 (eval "$ac_link") 2>&5
26086 ac_status=$?
26087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26088 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26089 { (case "(($ac_try" in
26090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26091 *) ac_try_echo=$ac_try;;
26092esac
26093eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26094$as_echo "$ac_try_echo") >&5
26095 (eval "$ac_try") 2>&5
26096 ac_status=$?
26097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26098 (exit $ac_status); }; }; then
26099 ac_cv_sizeof_unsigned_long=`cat conftest.val`
26100else
26101 $as_echo "$as_me: program exited with status $ac_status" >&5
26102$as_echo "$as_me: failed program was:" >&5
26103sed 's/^/| /' conftest.$ac_ext >&5
26104
26105( exit $ac_status )
26106if test "$ac_cv_type_unsigned_long" = yes; then
26107 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26109{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long)
26110See \`config.log' for more details." >&5
26111$as_echo "$as_me: error: cannot compute sizeof (unsigned long)
26112See \`config.log' for more details." >&2;}
26113 { (exit 77); exit 77; }; }; }
26114 else
26115 ac_cv_sizeof_unsigned_long=0
26116 fi
26117fi
26118rm -rf conftest.dSYM
26119rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26120fi
26121rm -f conftest.val
26122fi
26123{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
26124$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
26125
26126
26127
26128cat >>confdefs.h <<_ACEOF
26129#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
26130_ACEOF
26131
26132
26133
26134# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
26135# 'signed long long' is not supported then the value defined is zero.
26136# The cast to long int works around a bug in the HP C Compiler
26137# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26138# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26139# This bug is HP SR number 8606223364.
26140{ $as_echo "$as_me:$LINENO: checking size of signed long long" >&5
26141$as_echo_n "checking size of signed long long... " >&6; }
26142if test "${ac_cv_sizeof_signed_long_long+set}" = set; then
26143 $as_echo_n "(cached) " >&6
26144else
26145 if test "$cross_compiling" = yes; then
26146 # Depending upon the size, compute the lo and hi bounds.
26147cat >conftest.$ac_ext <<_ACEOF
26148/* confdefs.h. */
26149_ACEOF
26150cat confdefs.h >>conftest.$ac_ext
26151cat >>conftest.$ac_ext <<_ACEOF
26152/* end confdefs.h. */
26153$ac_includes_default
26154int
26155main ()
26156{
26157static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= 0)];
26158test_array [0] = 0
26159
26160 ;
26161 return 0;
26162}
26163_ACEOF
26164rm -f conftest.$ac_objext
26165if { (ac_try="$ac_compile"
26166case "(($ac_try" in
26167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26168 *) ac_try_echo=$ac_try;;
26169esac
26170eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26171$as_echo "$ac_try_echo") >&5
26172 (eval "$ac_compile") 2>conftest.er1
26173 ac_status=$?
26174 grep -v '^ *+' conftest.er1 >conftest.err
26175 rm -f conftest.er1
26176 cat conftest.err >&5
26177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26178 (exit $ac_status); } && {
26179 test -z "$ac_c_werror_flag" ||
26180 test ! -s conftest.err
26181 } && test -s conftest.$ac_objext; then
26182 ac_lo=0 ac_mid=0
26183 while :; do
26184 cat >conftest.$ac_ext <<_ACEOF
26185/* confdefs.h. */
26186_ACEOF
26187cat confdefs.h >>conftest.$ac_ext
26188cat >>conftest.$ac_ext <<_ACEOF
26189/* end confdefs.h. */
26190$ac_includes_default
26191int
26192main ()
26193{
26194static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
26195test_array [0] = 0
26196
26197 ;
26198 return 0;
26199}
26200_ACEOF
26201rm -f conftest.$ac_objext
26202if { (ac_try="$ac_compile"
26203case "(($ac_try" in
26204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26205 *) ac_try_echo=$ac_try;;
26206esac
26207eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26208$as_echo "$ac_try_echo") >&5
26209 (eval "$ac_compile") 2>conftest.er1
26210 ac_status=$?
26211 grep -v '^ *+' conftest.er1 >conftest.err
26212 rm -f conftest.er1
26213 cat conftest.err >&5
26214 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26215 (exit $ac_status); } && {
26216 test -z "$ac_c_werror_flag" ||
26217 test ! -s conftest.err
26218 } && test -s conftest.$ac_objext; then
26219 ac_hi=$ac_mid; break
26220else
26221 $as_echo "$as_me: failed program was:" >&5
26222sed 's/^/| /' conftest.$ac_ext >&5
26223
26224 ac_lo=`expr $ac_mid + 1`
26225 if test $ac_lo -le $ac_mid; then
26226 ac_lo= ac_hi=
26227 break
26228 fi
26229 ac_mid=`expr 2 '*' $ac_mid + 1`
26230fi
26231
26232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26233 done
26234else
26235 $as_echo "$as_me: failed program was:" >&5
26236sed 's/^/| /' conftest.$ac_ext >&5
26237
26238 cat >conftest.$ac_ext <<_ACEOF
26239/* confdefs.h. */
26240_ACEOF
26241cat confdefs.h >>conftest.$ac_ext
26242cat >>conftest.$ac_ext <<_ACEOF
26243/* end confdefs.h. */
26244$ac_includes_default
26245int
26246main ()
26247{
26248static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) < 0)];
26249test_array [0] = 0
26250
26251 ;
26252 return 0;
26253}
26254_ACEOF
26255rm -f conftest.$ac_objext
26256if { (ac_try="$ac_compile"
26257case "(($ac_try" in
26258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26259 *) ac_try_echo=$ac_try;;
26260esac
26261eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26262$as_echo "$ac_try_echo") >&5
26263 (eval "$ac_compile") 2>conftest.er1
26264 ac_status=$?
26265 grep -v '^ *+' conftest.er1 >conftest.err
26266 rm -f conftest.er1
26267 cat conftest.err >&5
26268 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26269 (exit $ac_status); } && {
26270 test -z "$ac_c_werror_flag" ||
26271 test ! -s conftest.err
26272 } && test -s conftest.$ac_objext; then
26273 ac_hi=-1 ac_mid=-1
26274 while :; do
26275 cat >conftest.$ac_ext <<_ACEOF
26276/* confdefs.h. */
26277_ACEOF
26278cat confdefs.h >>conftest.$ac_ext
26279cat >>conftest.$ac_ext <<_ACEOF
26280/* end confdefs.h. */
26281$ac_includes_default
26282int
26283main ()
26284{
26285static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) >= $ac_mid)];
26286test_array [0] = 0
26287
26288 ;
26289 return 0;
26290}
26291_ACEOF
26292rm -f conftest.$ac_objext
26293if { (ac_try="$ac_compile"
26294case "(($ac_try" in
26295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26296 *) ac_try_echo=$ac_try;;
26297esac
26298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26299$as_echo "$ac_try_echo") >&5
26300 (eval "$ac_compile") 2>conftest.er1
26301 ac_status=$?
26302 grep -v '^ *+' conftest.er1 >conftest.err
26303 rm -f conftest.er1
26304 cat conftest.err >&5
26305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26306 (exit $ac_status); } && {
26307 test -z "$ac_c_werror_flag" ||
26308 test ! -s conftest.err
26309 } && test -s conftest.$ac_objext; then
26310 ac_lo=$ac_mid; break
26311else
26312 $as_echo "$as_me: failed program was:" >&5
26313sed 's/^/| /' conftest.$ac_ext >&5
26314
26315 ac_hi=`expr '(' $ac_mid ')' - 1`
26316 if test $ac_mid -le $ac_hi; then
26317 ac_lo= ac_hi=
26318 break
26319 fi
26320 ac_mid=`expr 2 '*' $ac_mid`
26321fi
26322
26323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26324 done
26325else
26326 $as_echo "$as_me: failed program was:" >&5
26327sed 's/^/| /' conftest.$ac_ext >&5
26328
26329 ac_lo= ac_hi=
26330fi
26331
26332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26333fi
26334
26335rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26336# Binary search between lo and hi bounds.
26337while test "x$ac_lo" != "x$ac_hi"; do
26338 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26339 cat >conftest.$ac_ext <<_ACEOF
26340/* confdefs.h. */
26341_ACEOF
26342cat confdefs.h >>conftest.$ac_ext
26343cat >>conftest.$ac_ext <<_ACEOF
26344/* end confdefs.h. */
26345$ac_includes_default
26346int
26347main ()
26348{
26349static int test_array [1 - 2 * !(((long int) (sizeof (signed long long))) <= $ac_mid)];
26350test_array [0] = 0
26351
26352 ;
26353 return 0;
26354}
26355_ACEOF
26356rm -f conftest.$ac_objext
26357if { (ac_try="$ac_compile"
26358case "(($ac_try" in
26359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26360 *) ac_try_echo=$ac_try;;
26361esac
26362eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26363$as_echo "$ac_try_echo") >&5
26364 (eval "$ac_compile") 2>conftest.er1
26365 ac_status=$?
26366 grep -v '^ *+' conftest.er1 >conftest.err
26367 rm -f conftest.er1
26368 cat conftest.err >&5
26369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26370 (exit $ac_status); } && {
26371 test -z "$ac_c_werror_flag" ||
26372 test ! -s conftest.err
26373 } && test -s conftest.$ac_objext; then
26374 ac_hi=$ac_mid
26375else
26376 $as_echo "$as_me: failed program was:" >&5
26377sed 's/^/| /' conftest.$ac_ext >&5
26378
26379 ac_lo=`expr '(' $ac_mid ')' + 1`
26380fi
26381
26382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26383done
26384case $ac_lo in
26385?*) ac_cv_sizeof_signed_long_long=$ac_lo;;
26386'') if test "$ac_cv_type_signed_long_long" = yes; then
26387 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26389{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
26390See \`config.log' for more details." >&5
26391$as_echo "$as_me: error: cannot compute sizeof (signed long long)
26392See \`config.log' for more details." >&2;}
26393 { (exit 77); exit 77; }; }; }
26394 else
26395 ac_cv_sizeof_signed_long_long=0
26396 fi ;;
26397esac
26398else
26399 cat >conftest.$ac_ext <<_ACEOF
26400/* confdefs.h. */
26401_ACEOF
26402cat confdefs.h >>conftest.$ac_ext
26403cat >>conftest.$ac_ext <<_ACEOF
26404/* end confdefs.h. */
26405$ac_includes_default
26406static long int longval () { return (long int) (sizeof (signed long long)); }
26407static unsigned long int ulongval () { return (long int) (sizeof (signed long long)); }
26408#include <stdio.h>
26409#include <stdlib.h>
26410int
26411main ()
26412{
26413
26414 FILE *f = fopen ("conftest.val", "w");
26415 if (! f)
26416 return 1;
26417 if (((long int) (sizeof (signed long long))) < 0)
26418 {
26419 long int i = longval ();
26420 if (i != ((long int) (sizeof (signed long long))))
26421 return 1;
26422 fprintf (f, "%ld", i);
26423 }
26424 else
26425 {
26426 unsigned long int i = ulongval ();
26427 if (i != ((long int) (sizeof (signed long long))))
26428 return 1;
26429 fprintf (f, "%lu", i);
26430 }
26431 /* Do not output a trailing newline, as this causes \r\n confusion
26432 on some platforms. */
26433 return ferror (f) || fclose (f) != 0;
26434
26435 ;
26436 return 0;
26437}
26438_ACEOF
26439rm -f conftest$ac_exeext
26440if { (ac_try="$ac_link"
26441case "(($ac_try" in
26442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26443 *) ac_try_echo=$ac_try;;
26444esac
26445eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26446$as_echo "$ac_try_echo") >&5
26447 (eval "$ac_link") 2>&5
26448 ac_status=$?
26449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26450 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26451 { (case "(($ac_try" in
26452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26453 *) ac_try_echo=$ac_try;;
26454esac
26455eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26456$as_echo "$ac_try_echo") >&5
26457 (eval "$ac_try") 2>&5
26458 ac_status=$?
26459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26460 (exit $ac_status); }; }; then
26461 ac_cv_sizeof_signed_long_long=`cat conftest.val`
26462else
26463 $as_echo "$as_me: program exited with status $ac_status" >&5
26464$as_echo "$as_me: failed program was:" >&5
26465sed 's/^/| /' conftest.$ac_ext >&5
26466
26467( exit $ac_status )
26468if test "$ac_cv_type_signed_long_long" = yes; then
26469 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26471{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (signed long long)
26472See \`config.log' for more details." >&5
26473$as_echo "$as_me: error: cannot compute sizeof (signed long long)
26474See \`config.log' for more details." >&2;}
26475 { (exit 77); exit 77; }; }; }
26476 else
26477 ac_cv_sizeof_signed_long_long=0
26478 fi
26479fi
26480rm -rf conftest.dSYM
26481rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26482fi
26483rm -f conftest.val
26484fi
26485{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_signed_long_long" >&5
26486$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
26487
26488
26489
26490cat >>confdefs.h <<_ACEOF
26491#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
26492_ACEOF
26493
26494
26495
26496# Obtain size of a 'unsigned long long' and define as
26497# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
26498# supported then the value defined is zero.
26499# The cast to long int works around a bug in the HP C Compiler
26500# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26501# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26502# This bug is HP SR number 8606223364.
26503{ $as_echo "$as_me:$LINENO: checking size of unsigned long long" >&5
26504$as_echo_n "checking size of unsigned long long... " >&6; }
26505if test "${ac_cv_sizeof_unsigned_long_long+set}" = set; then
26506 $as_echo_n "(cached) " >&6
26507else
26508 if test "$cross_compiling" = yes; then
26509 # Depending upon the size, compute the lo and hi bounds.
26510cat >conftest.$ac_ext <<_ACEOF
26511/* confdefs.h. */
26512_ACEOF
26513cat confdefs.h >>conftest.$ac_ext
26514cat >>conftest.$ac_ext <<_ACEOF
26515/* end confdefs.h. */
26516$ac_includes_default
26517int
26518main ()
26519{
26520static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= 0)];
26521test_array [0] = 0
26522
26523 ;
26524 return 0;
26525}
26526_ACEOF
26527rm -f conftest.$ac_objext
26528if { (ac_try="$ac_compile"
26529case "(($ac_try" in
26530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26531 *) ac_try_echo=$ac_try;;
26532esac
26533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26534$as_echo "$ac_try_echo") >&5
26535 (eval "$ac_compile") 2>conftest.er1
26536 ac_status=$?
26537 grep -v '^ *+' conftest.er1 >conftest.err
26538 rm -f conftest.er1
26539 cat conftest.err >&5
26540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26541 (exit $ac_status); } && {
26542 test -z "$ac_c_werror_flag" ||
26543 test ! -s conftest.err
26544 } && test -s conftest.$ac_objext; then
26545 ac_lo=0 ac_mid=0
26546 while :; do
26547 cat >conftest.$ac_ext <<_ACEOF
26548/* confdefs.h. */
26549_ACEOF
26550cat confdefs.h >>conftest.$ac_ext
26551cat >>conftest.$ac_ext <<_ACEOF
26552/* end confdefs.h. */
26553$ac_includes_default
26554int
26555main ()
26556{
26557static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
26558test_array [0] = 0
26559
26560 ;
26561 return 0;
26562}
26563_ACEOF
26564rm -f conftest.$ac_objext
26565if { (ac_try="$ac_compile"
26566case "(($ac_try" in
26567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26568 *) ac_try_echo=$ac_try;;
26569esac
26570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26571$as_echo "$ac_try_echo") >&5
26572 (eval "$ac_compile") 2>conftest.er1
26573 ac_status=$?
26574 grep -v '^ *+' conftest.er1 >conftest.err
26575 rm -f conftest.er1
26576 cat conftest.err >&5
26577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26578 (exit $ac_status); } && {
26579 test -z "$ac_c_werror_flag" ||
26580 test ! -s conftest.err
26581 } && test -s conftest.$ac_objext; then
26582 ac_hi=$ac_mid; break
26583else
26584 $as_echo "$as_me: failed program was:" >&5
26585sed 's/^/| /' conftest.$ac_ext >&5
26586
26587 ac_lo=`expr $ac_mid + 1`
26588 if test $ac_lo -le $ac_mid; then
26589 ac_lo= ac_hi=
26590 break
26591 fi
26592 ac_mid=`expr 2 '*' $ac_mid + 1`
26593fi
26594
26595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26596 done
26597else
26598 $as_echo "$as_me: failed program was:" >&5
26599sed 's/^/| /' conftest.$ac_ext >&5
26600
26601 cat >conftest.$ac_ext <<_ACEOF
26602/* confdefs.h. */
26603_ACEOF
26604cat confdefs.h >>conftest.$ac_ext
26605cat >>conftest.$ac_ext <<_ACEOF
26606/* end confdefs.h. */
26607$ac_includes_default
26608int
26609main ()
26610{
26611static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) < 0)];
26612test_array [0] = 0
26613
26614 ;
26615 return 0;
26616}
26617_ACEOF
26618rm -f conftest.$ac_objext
26619if { (ac_try="$ac_compile"
26620case "(($ac_try" in
26621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26622 *) ac_try_echo=$ac_try;;
26623esac
26624eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26625$as_echo "$ac_try_echo") >&5
26626 (eval "$ac_compile") 2>conftest.er1
26627 ac_status=$?
26628 grep -v '^ *+' conftest.er1 >conftest.err
26629 rm -f conftest.er1
26630 cat conftest.err >&5
26631 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26632 (exit $ac_status); } && {
26633 test -z "$ac_c_werror_flag" ||
26634 test ! -s conftest.err
26635 } && test -s conftest.$ac_objext; then
26636 ac_hi=-1 ac_mid=-1
26637 while :; do
26638 cat >conftest.$ac_ext <<_ACEOF
26639/* confdefs.h. */
26640_ACEOF
26641cat confdefs.h >>conftest.$ac_ext
26642cat >>conftest.$ac_ext <<_ACEOF
26643/* end confdefs.h. */
26644$ac_includes_default
26645int
26646main ()
26647{
26648static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) >= $ac_mid)];
26649test_array [0] = 0
26650
26651 ;
26652 return 0;
26653}
26654_ACEOF
26655rm -f conftest.$ac_objext
26656if { (ac_try="$ac_compile"
26657case "(($ac_try" in
26658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26659 *) ac_try_echo=$ac_try;;
26660esac
26661eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26662$as_echo "$ac_try_echo") >&5
26663 (eval "$ac_compile") 2>conftest.er1
26664 ac_status=$?
26665 grep -v '^ *+' conftest.er1 >conftest.err
26666 rm -f conftest.er1
26667 cat conftest.err >&5
26668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26669 (exit $ac_status); } && {
26670 test -z "$ac_c_werror_flag" ||
26671 test ! -s conftest.err
26672 } && test -s conftest.$ac_objext; then
26673 ac_lo=$ac_mid; break
26674else
26675 $as_echo "$as_me: failed program was:" >&5
26676sed 's/^/| /' conftest.$ac_ext >&5
26677
26678 ac_hi=`expr '(' $ac_mid ')' - 1`
26679 if test $ac_mid -le $ac_hi; then
26680 ac_lo= ac_hi=
26681 break
26682 fi
26683 ac_mid=`expr 2 '*' $ac_mid`
26684fi
26685
26686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26687 done
26688else
26689 $as_echo "$as_me: failed program was:" >&5
26690sed 's/^/| /' conftest.$ac_ext >&5
26691
26692 ac_lo= ac_hi=
26693fi
26694
26695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26696fi
26697
26698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26699# Binary search between lo and hi bounds.
26700while test "x$ac_lo" != "x$ac_hi"; do
26701 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
26702 cat >conftest.$ac_ext <<_ACEOF
26703/* confdefs.h. */
26704_ACEOF
26705cat confdefs.h >>conftest.$ac_ext
26706cat >>conftest.$ac_ext <<_ACEOF
26707/* end confdefs.h. */
26708$ac_includes_default
26709int
26710main ()
26711{
26712static int test_array [1 - 2 * !(((long int) (sizeof (unsigned long long))) <= $ac_mid)];
26713test_array [0] = 0
26714
26715 ;
26716 return 0;
26717}
26718_ACEOF
26719rm -f conftest.$ac_objext
26720if { (ac_try="$ac_compile"
26721case "(($ac_try" in
26722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26723 *) ac_try_echo=$ac_try;;
26724esac
26725eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26726$as_echo "$ac_try_echo") >&5
26727 (eval "$ac_compile") 2>conftest.er1
26728 ac_status=$?
26729 grep -v '^ *+' conftest.er1 >conftest.err
26730 rm -f conftest.er1
26731 cat conftest.err >&5
26732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26733 (exit $ac_status); } && {
26734 test -z "$ac_c_werror_flag" ||
26735 test ! -s conftest.err
26736 } && test -s conftest.$ac_objext; then
26737 ac_hi=$ac_mid
26738else
26739 $as_echo "$as_me: failed program was:" >&5
26740sed 's/^/| /' conftest.$ac_ext >&5
26741
26742 ac_lo=`expr '(' $ac_mid ')' + 1`
26743fi
26744
26745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26746done
26747case $ac_lo in
26748?*) ac_cv_sizeof_unsigned_long_long=$ac_lo;;
26749'') if test "$ac_cv_type_unsigned_long_long" = yes; then
26750 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26751$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26752{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
26753See \`config.log' for more details." >&5
26754$as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
26755See \`config.log' for more details." >&2;}
26756 { (exit 77); exit 77; }; }; }
26757 else
26758 ac_cv_sizeof_unsigned_long_long=0
26759 fi ;;
26760esac
26761else
26762 cat >conftest.$ac_ext <<_ACEOF
26763/* confdefs.h. */
26764_ACEOF
26765cat confdefs.h >>conftest.$ac_ext
26766cat >>conftest.$ac_ext <<_ACEOF
26767/* end confdefs.h. */
26768$ac_includes_default
26769static long int longval () { return (long int) (sizeof (unsigned long long)); }
26770static unsigned long int ulongval () { return (long int) (sizeof (unsigned long long)); }
26771#include <stdio.h>
26772#include <stdlib.h>
26773int
26774main ()
26775{
26776
26777 FILE *f = fopen ("conftest.val", "w");
26778 if (! f)
26779 return 1;
26780 if (((long int) (sizeof (unsigned long long))) < 0)
26781 {
26782 long int i = longval ();
26783 if (i != ((long int) (sizeof (unsigned long long))))
26784 return 1;
26785 fprintf (f, "%ld", i);
26786 }
26787 else
26788 {
26789 unsigned long int i = ulongval ();
26790 if (i != ((long int) (sizeof (unsigned long long))))
26791 return 1;
26792 fprintf (f, "%lu", i);
26793 }
26794 /* Do not output a trailing newline, as this causes \r\n confusion
26795 on some platforms. */
26796 return ferror (f) || fclose (f) != 0;
26797
26798 ;
26799 return 0;
26800}
26801_ACEOF
26802rm -f conftest$ac_exeext
26803if { (ac_try="$ac_link"
26804case "(($ac_try" in
26805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26806 *) ac_try_echo=$ac_try;;
26807esac
26808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26809$as_echo "$ac_try_echo") >&5
26810 (eval "$ac_link") 2>&5
26811 ac_status=$?
26812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26813 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26814 { (case "(($ac_try" in
26815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26816 *) ac_try_echo=$ac_try;;
26817esac
26818eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26819$as_echo "$ac_try_echo") >&5
26820 (eval "$ac_try") 2>&5
26821 ac_status=$?
26822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26823 (exit $ac_status); }; }; then
26824 ac_cv_sizeof_unsigned_long_long=`cat conftest.val`
26825else
26826 $as_echo "$as_me: program exited with status $ac_status" >&5
26827$as_echo "$as_me: failed program was:" >&5
26828sed 's/^/| /' conftest.$ac_ext >&5
26829
26830( exit $ac_status )
26831if test "$ac_cv_type_unsigned_long_long" = yes; then
26832 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26833$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26834{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long long)
26835See \`config.log' for more details." >&5
26836$as_echo "$as_me: error: cannot compute sizeof (unsigned long long)
26837See \`config.log' for more details." >&2;}
26838 { (exit 77); exit 77; }; }; }
26839 else
26840 ac_cv_sizeof_unsigned_long_long=0
26841 fi
26842fi
26843rm -rf conftest.dSYM
26844rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26845fi
26846rm -f conftest.val
26847fi
26848{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long" >&5
26849$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
26850
26851
26852
26853cat >>confdefs.h <<_ACEOF
26854#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
26855_ACEOF
26856
26857
26858
26859# Obtain size of off_t and define as SIZEOF_OFF_T
26860# The cast to long int works around a bug in the HP C Compiler
26861# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26862# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26863# This bug is HP SR number 8606223364.
26864{ $as_echo "$as_me:$LINENO: checking size of off_t" >&5
26865$as_echo_n "checking size of off_t... " >&6; }
26866if test "${ac_cv_sizeof_off_t+set}" = set; then
26867 $as_echo_n "(cached) " >&6
26868else
26869 if test "$cross_compiling" = yes; then
26870 # Depending upon the size, compute the lo and hi bounds.
26871cat >conftest.$ac_ext <<_ACEOF
26872/* confdefs.h. */
26873_ACEOF
26874cat confdefs.h >>conftest.$ac_ext
26875cat >>conftest.$ac_ext <<_ACEOF
26876/* end confdefs.h. */
26877$ac_includes_default
26878int
26879main ()
26880{
26881static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= 0)];
26882test_array [0] = 0
26883
26884 ;
26885 return 0;
26886}
26887_ACEOF
26888rm -f conftest.$ac_objext
26889if { (ac_try="$ac_compile"
26890case "(($ac_try" in
26891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26892 *) ac_try_echo=$ac_try;;
26893esac
26894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26895$as_echo "$ac_try_echo") >&5
26896 (eval "$ac_compile") 2>conftest.er1
26897 ac_status=$?
26898 grep -v '^ *+' conftest.er1 >conftest.err
26899 rm -f conftest.er1
26900 cat conftest.err >&5
26901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26902 (exit $ac_status); } && {
26903 test -z "$ac_c_werror_flag" ||
26904 test ! -s conftest.err
26905 } && test -s conftest.$ac_objext; then
26906 ac_lo=0 ac_mid=0
26907 while :; do
26908 cat >conftest.$ac_ext <<_ACEOF
26909/* confdefs.h. */
26910_ACEOF
26911cat confdefs.h >>conftest.$ac_ext
26912cat >>conftest.$ac_ext <<_ACEOF
26913/* end confdefs.h. */
26914$ac_includes_default
26915int
26916main ()
26917{
26918static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
26919test_array [0] = 0
26920
26921 ;
26922 return 0;
26923}
26924_ACEOF
26925rm -f conftest.$ac_objext
26926if { (ac_try="$ac_compile"
26927case "(($ac_try" in
26928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26929 *) ac_try_echo=$ac_try;;
26930esac
26931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26932$as_echo "$ac_try_echo") >&5
26933 (eval "$ac_compile") 2>conftest.er1
26934 ac_status=$?
26935 grep -v '^ *+' conftest.er1 >conftest.err
26936 rm -f conftest.er1
26937 cat conftest.err >&5
26938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26939 (exit $ac_status); } && {
26940 test -z "$ac_c_werror_flag" ||
26941 test ! -s conftest.err
26942 } && test -s conftest.$ac_objext; then
26943 ac_hi=$ac_mid; break
26944else
26945 $as_echo "$as_me: failed program was:" >&5
26946sed 's/^/| /' conftest.$ac_ext >&5
26947
26948 ac_lo=`expr $ac_mid + 1`
26949 if test $ac_lo -le $ac_mid; then
26950 ac_lo= ac_hi=
26951 break
26952 fi
26953 ac_mid=`expr 2 '*' $ac_mid + 1`
26954fi
26955
26956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26957 done
26958else
26959 $as_echo "$as_me: failed program was:" >&5
26960sed 's/^/| /' conftest.$ac_ext >&5
26961
26962 cat >conftest.$ac_ext <<_ACEOF
26963/* confdefs.h. */
26964_ACEOF
26965cat confdefs.h >>conftest.$ac_ext
26966cat >>conftest.$ac_ext <<_ACEOF
26967/* end confdefs.h. */
26968$ac_includes_default
26969int
26970main ()
26971{
26972static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) < 0)];
26973test_array [0] = 0
26974
26975 ;
26976 return 0;
26977}
26978_ACEOF
26979rm -f conftest.$ac_objext
26980if { (ac_try="$ac_compile"
26981case "(($ac_try" in
26982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26983 *) ac_try_echo=$ac_try;;
26984esac
26985eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26986$as_echo "$ac_try_echo") >&5
26987 (eval "$ac_compile") 2>conftest.er1
26988 ac_status=$?
26989 grep -v '^ *+' conftest.er1 >conftest.err
26990 rm -f conftest.er1
26991 cat conftest.err >&5
26992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26993 (exit $ac_status); } && {
26994 test -z "$ac_c_werror_flag" ||
26995 test ! -s conftest.err
26996 } && test -s conftest.$ac_objext; then
26997 ac_hi=-1 ac_mid=-1
26998 while :; do
26999 cat >conftest.$ac_ext <<_ACEOF
27000/* confdefs.h. */
27001_ACEOF
27002cat confdefs.h >>conftest.$ac_ext
27003cat >>conftest.$ac_ext <<_ACEOF
27004/* end confdefs.h. */
27005$ac_includes_default
27006int
27007main ()
27008{
27009static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) >= $ac_mid)];
27010test_array [0] = 0
27011
27012 ;
27013 return 0;
27014}
27015_ACEOF
27016rm -f conftest.$ac_objext
27017if { (ac_try="$ac_compile"
27018case "(($ac_try" in
27019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27020 *) ac_try_echo=$ac_try;;
27021esac
27022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27023$as_echo "$ac_try_echo") >&5
27024 (eval "$ac_compile") 2>conftest.er1
27025 ac_status=$?
27026 grep -v '^ *+' conftest.er1 >conftest.err
27027 rm -f conftest.er1
27028 cat conftest.err >&5
27029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27030 (exit $ac_status); } && {
27031 test -z "$ac_c_werror_flag" ||
27032 test ! -s conftest.err
27033 } && test -s conftest.$ac_objext; then
27034 ac_lo=$ac_mid; break
27035else
27036 $as_echo "$as_me: failed program was:" >&5
27037sed 's/^/| /' conftest.$ac_ext >&5
27038
27039 ac_hi=`expr '(' $ac_mid ')' - 1`
27040 if test $ac_mid -le $ac_hi; then
27041 ac_lo= ac_hi=
27042 break
27043 fi
27044 ac_mid=`expr 2 '*' $ac_mid`
27045fi
27046
27047rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27048 done
27049else
27050 $as_echo "$as_me: failed program was:" >&5
27051sed 's/^/| /' conftest.$ac_ext >&5
27052
27053 ac_lo= ac_hi=
27054fi
27055
27056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27057fi
27058
27059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27060# Binary search between lo and hi bounds.
27061while test "x$ac_lo" != "x$ac_hi"; do
27062 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27063 cat >conftest.$ac_ext <<_ACEOF
27064/* confdefs.h. */
27065_ACEOF
27066cat confdefs.h >>conftest.$ac_ext
27067cat >>conftest.$ac_ext <<_ACEOF
27068/* end confdefs.h. */
27069$ac_includes_default
27070int
27071main ()
27072{
27073static int test_array [1 - 2 * !(((long int) (sizeof (off_t))) <= $ac_mid)];
27074test_array [0] = 0
27075
27076 ;
27077 return 0;
27078}
27079_ACEOF
27080rm -f conftest.$ac_objext
27081if { (ac_try="$ac_compile"
27082case "(($ac_try" in
27083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27084 *) ac_try_echo=$ac_try;;
27085esac
27086eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27087$as_echo "$ac_try_echo") >&5
27088 (eval "$ac_compile") 2>conftest.er1
27089 ac_status=$?
27090 grep -v '^ *+' conftest.er1 >conftest.err
27091 rm -f conftest.er1
27092 cat conftest.err >&5
27093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27094 (exit $ac_status); } && {
27095 test -z "$ac_c_werror_flag" ||
27096 test ! -s conftest.err
27097 } && test -s conftest.$ac_objext; then
27098 ac_hi=$ac_mid
27099else
27100 $as_echo "$as_me: failed program was:" >&5
27101sed 's/^/| /' conftest.$ac_ext >&5
27102
27103 ac_lo=`expr '(' $ac_mid ')' + 1`
27104fi
27105
27106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27107done
27108case $ac_lo in
27109?*) ac_cv_sizeof_off_t=$ac_lo;;
27110'') if test "$ac_cv_type_off_t" = yes; then
27111 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27112$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27113{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
27114See \`config.log' for more details." >&5
27115$as_echo "$as_me: error: cannot compute sizeof (off_t)
27116See \`config.log' for more details." >&2;}
27117 { (exit 77); exit 77; }; }; }
27118 else
27119 ac_cv_sizeof_off_t=0
27120 fi ;;
27121esac
27122else
27123 cat >conftest.$ac_ext <<_ACEOF
27124/* confdefs.h. */
27125_ACEOF
27126cat confdefs.h >>conftest.$ac_ext
27127cat >>conftest.$ac_ext <<_ACEOF
27128/* end confdefs.h. */
27129$ac_includes_default
27130static long int longval () { return (long int) (sizeof (off_t)); }
27131static unsigned long int ulongval () { return (long int) (sizeof (off_t)); }
27132#include <stdio.h>
27133#include <stdlib.h>
27134int
27135main ()
27136{
27137
27138 FILE *f = fopen ("conftest.val", "w");
27139 if (! f)
27140 return 1;
27141 if (((long int) (sizeof (off_t))) < 0)
27142 {
27143 long int i = longval ();
27144 if (i != ((long int) (sizeof (off_t))))
27145 return 1;
27146 fprintf (f, "%ld", i);
27147 }
27148 else
27149 {
27150 unsigned long int i = ulongval ();
27151 if (i != ((long int) (sizeof (off_t))))
27152 return 1;
27153 fprintf (f, "%lu", i);
27154 }
27155 /* Do not output a trailing newline, as this causes \r\n confusion
27156 on some platforms. */
27157 return ferror (f) || fclose (f) != 0;
27158
27159 ;
27160 return 0;
27161}
27162_ACEOF
27163rm -f conftest$ac_exeext
27164if { (ac_try="$ac_link"
27165case "(($ac_try" in
27166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27167 *) ac_try_echo=$ac_try;;
27168esac
27169eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27170$as_echo "$ac_try_echo") >&5
27171 (eval "$ac_link") 2>&5
27172 ac_status=$?
27173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27174 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27175 { (case "(($ac_try" in
27176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27177 *) ac_try_echo=$ac_try;;
27178esac
27179eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27180$as_echo "$ac_try_echo") >&5
27181 (eval "$ac_try") 2>&5
27182 ac_status=$?
27183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184 (exit $ac_status); }; }; then
27185 ac_cv_sizeof_off_t=`cat conftest.val`
27186else
27187 $as_echo "$as_me: program exited with status $ac_status" >&5
27188$as_echo "$as_me: failed program was:" >&5
27189sed 's/^/| /' conftest.$ac_ext >&5
27190
27191( exit $ac_status )
27192if test "$ac_cv_type_off_t" = yes; then
27193 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27194$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27195{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (off_t)
27196See \`config.log' for more details." >&5
27197$as_echo "$as_me: error: cannot compute sizeof (off_t)
27198See \`config.log' for more details." >&2;}
27199 { (exit 77); exit 77; }; }; }
27200 else
27201 ac_cv_sizeof_off_t=0
27202 fi
27203fi
27204rm -rf conftest.dSYM
27205rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27206fi
27207rm -f conftest.val
27208fi
27209{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5
27210$as_echo "$ac_cv_sizeof_off_t" >&6; }
27211
27212
27213
27214cat >>confdefs.h <<_ACEOF
27215#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
27216_ACEOF
27217
27218
27219
27220# Obtain size of size_t and define as SIZEOF_SIZE_T
27221# The cast to long int works around a bug in the HP C Compiler
27222# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27223# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27224# This bug is HP SR number 8606223364.
27225{ $as_echo "$as_me:$LINENO: checking size of size_t" >&5
27226$as_echo_n "checking size of size_t... " >&6; }
27227if test "${ac_cv_sizeof_size_t+set}" = set; then
27228 $as_echo_n "(cached) " >&6
27229else
27230 if test "$cross_compiling" = yes; then
27231 # Depending upon the size, compute the lo and hi bounds.
27232cat >conftest.$ac_ext <<_ACEOF
27233/* confdefs.h. */
27234_ACEOF
27235cat confdefs.h >>conftest.$ac_ext
27236cat >>conftest.$ac_ext <<_ACEOF
27237/* end confdefs.h. */
27238$ac_includes_default
27239int
27240main ()
27241{
27242static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= 0)];
27243test_array [0] = 0
27244
27245 ;
27246 return 0;
27247}
27248_ACEOF
27249rm -f conftest.$ac_objext
27250if { (ac_try="$ac_compile"
27251case "(($ac_try" in
27252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27253 *) ac_try_echo=$ac_try;;
27254esac
27255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27256$as_echo "$ac_try_echo") >&5
27257 (eval "$ac_compile") 2>conftest.er1
27258 ac_status=$?
27259 grep -v '^ *+' conftest.er1 >conftest.err
27260 rm -f conftest.er1
27261 cat conftest.err >&5
27262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27263 (exit $ac_status); } && {
27264 test -z "$ac_c_werror_flag" ||
27265 test ! -s conftest.err
27266 } && test -s conftest.$ac_objext; then
27267 ac_lo=0 ac_mid=0
27268 while :; do
27269 cat >conftest.$ac_ext <<_ACEOF
27270/* confdefs.h. */
27271_ACEOF
27272cat confdefs.h >>conftest.$ac_ext
27273cat >>conftest.$ac_ext <<_ACEOF
27274/* end confdefs.h. */
27275$ac_includes_default
27276int
27277main ()
27278{
27279static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
27280test_array [0] = 0
27281
27282 ;
27283 return 0;
27284}
27285_ACEOF
27286rm -f conftest.$ac_objext
27287if { (ac_try="$ac_compile"
27288case "(($ac_try" in
27289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27290 *) ac_try_echo=$ac_try;;
27291esac
27292eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27293$as_echo "$ac_try_echo") >&5
27294 (eval "$ac_compile") 2>conftest.er1
27295 ac_status=$?
27296 grep -v '^ *+' conftest.er1 >conftest.err
27297 rm -f conftest.er1
27298 cat conftest.err >&5
27299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27300 (exit $ac_status); } && {
27301 test -z "$ac_c_werror_flag" ||
27302 test ! -s conftest.err
27303 } && test -s conftest.$ac_objext; then
27304 ac_hi=$ac_mid; break
27305else
27306 $as_echo "$as_me: failed program was:" >&5
27307sed 's/^/| /' conftest.$ac_ext >&5
27308
27309 ac_lo=`expr $ac_mid + 1`
27310 if test $ac_lo -le $ac_mid; then
27311 ac_lo= ac_hi=
27312 break
27313 fi
27314 ac_mid=`expr 2 '*' $ac_mid + 1`
27315fi
27316
27317rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27318 done
27319else
27320 $as_echo "$as_me: failed program was:" >&5
27321sed 's/^/| /' conftest.$ac_ext >&5
27322
27323 cat >conftest.$ac_ext <<_ACEOF
27324/* confdefs.h. */
27325_ACEOF
27326cat confdefs.h >>conftest.$ac_ext
27327cat >>conftest.$ac_ext <<_ACEOF
27328/* end confdefs.h. */
27329$ac_includes_default
27330int
27331main ()
27332{
27333static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) < 0)];
27334test_array [0] = 0
27335
27336 ;
27337 return 0;
27338}
27339_ACEOF
27340rm -f conftest.$ac_objext
27341if { (ac_try="$ac_compile"
27342case "(($ac_try" in
27343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27344 *) ac_try_echo=$ac_try;;
27345esac
27346eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27347$as_echo "$ac_try_echo") >&5
27348 (eval "$ac_compile") 2>conftest.er1
27349 ac_status=$?
27350 grep -v '^ *+' conftest.er1 >conftest.err
27351 rm -f conftest.er1
27352 cat conftest.err >&5
27353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354 (exit $ac_status); } && {
27355 test -z "$ac_c_werror_flag" ||
27356 test ! -s conftest.err
27357 } && test -s conftest.$ac_objext; then
27358 ac_hi=-1 ac_mid=-1
27359 while :; do
27360 cat >conftest.$ac_ext <<_ACEOF
27361/* confdefs.h. */
27362_ACEOF
27363cat confdefs.h >>conftest.$ac_ext
27364cat >>conftest.$ac_ext <<_ACEOF
27365/* end confdefs.h. */
27366$ac_includes_default
27367int
27368main ()
27369{
27370static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) >= $ac_mid)];
27371test_array [0] = 0
27372
27373 ;
27374 return 0;
27375}
27376_ACEOF
27377rm -f conftest.$ac_objext
27378if { (ac_try="$ac_compile"
27379case "(($ac_try" in
27380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27381 *) ac_try_echo=$ac_try;;
27382esac
27383eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27384$as_echo "$ac_try_echo") >&5
27385 (eval "$ac_compile") 2>conftest.er1
27386 ac_status=$?
27387 grep -v '^ *+' conftest.er1 >conftest.err
27388 rm -f conftest.er1
27389 cat conftest.err >&5
27390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27391 (exit $ac_status); } && {
27392 test -z "$ac_c_werror_flag" ||
27393 test ! -s conftest.err
27394 } && test -s conftest.$ac_objext; then
27395 ac_lo=$ac_mid; break
27396else
27397 $as_echo "$as_me: failed program was:" >&5
27398sed 's/^/| /' conftest.$ac_ext >&5
27399
27400 ac_hi=`expr '(' $ac_mid ')' - 1`
27401 if test $ac_mid -le $ac_hi; then
27402 ac_lo= ac_hi=
27403 break
27404 fi
27405 ac_mid=`expr 2 '*' $ac_mid`
27406fi
27407
27408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27409 done
27410else
27411 $as_echo "$as_me: failed program was:" >&5
27412sed 's/^/| /' conftest.$ac_ext >&5
27413
27414 ac_lo= ac_hi=
27415fi
27416
27417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27418fi
27419
27420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27421# Binary search between lo and hi bounds.
27422while test "x$ac_lo" != "x$ac_hi"; do
27423 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27424 cat >conftest.$ac_ext <<_ACEOF
27425/* confdefs.h. */
27426_ACEOF
27427cat confdefs.h >>conftest.$ac_ext
27428cat >>conftest.$ac_ext <<_ACEOF
27429/* end confdefs.h. */
27430$ac_includes_default
27431int
27432main ()
27433{
27434static int test_array [1 - 2 * !(((long int) (sizeof (size_t))) <= $ac_mid)];
27435test_array [0] = 0
27436
27437 ;
27438 return 0;
27439}
27440_ACEOF
27441rm -f conftest.$ac_objext
27442if { (ac_try="$ac_compile"
27443case "(($ac_try" in
27444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27445 *) ac_try_echo=$ac_try;;
27446esac
27447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27448$as_echo "$ac_try_echo") >&5
27449 (eval "$ac_compile") 2>conftest.er1
27450 ac_status=$?
27451 grep -v '^ *+' conftest.er1 >conftest.err
27452 rm -f conftest.er1
27453 cat conftest.err >&5
27454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455 (exit $ac_status); } && {
27456 test -z "$ac_c_werror_flag" ||
27457 test ! -s conftest.err
27458 } && test -s conftest.$ac_objext; then
27459 ac_hi=$ac_mid
27460else
27461 $as_echo "$as_me: failed program was:" >&5
27462sed 's/^/| /' conftest.$ac_ext >&5
27463
27464 ac_lo=`expr '(' $ac_mid ')' + 1`
27465fi
27466
27467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27468done
27469case $ac_lo in
27470?*) ac_cv_sizeof_size_t=$ac_lo;;
27471'') if test "$ac_cv_type_size_t" = yes; then
27472 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27474{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
27475See \`config.log' for more details." >&5
27476$as_echo "$as_me: error: cannot compute sizeof (size_t)
27477See \`config.log' for more details." >&2;}
27478 { (exit 77); exit 77; }; }; }
27479 else
27480 ac_cv_sizeof_size_t=0
27481 fi ;;
27482esac
27483else
27484 cat >conftest.$ac_ext <<_ACEOF
27485/* confdefs.h. */
27486_ACEOF
27487cat confdefs.h >>conftest.$ac_ext
27488cat >>conftest.$ac_ext <<_ACEOF
27489/* end confdefs.h. */
27490$ac_includes_default
27491static long int longval () { return (long int) (sizeof (size_t)); }
27492static unsigned long int ulongval () { return (long int) (sizeof (size_t)); }
27493#include <stdio.h>
27494#include <stdlib.h>
27495int
27496main ()
27497{
27498
27499 FILE *f = fopen ("conftest.val", "w");
27500 if (! f)
27501 return 1;
27502 if (((long int) (sizeof (size_t))) < 0)
27503 {
27504 long int i = longval ();
27505 if (i != ((long int) (sizeof (size_t))))
27506 return 1;
27507 fprintf (f, "%ld", i);
27508 }
27509 else
27510 {
27511 unsigned long int i = ulongval ();
27512 if (i != ((long int) (sizeof (size_t))))
27513 return 1;
27514 fprintf (f, "%lu", i);
27515 }
27516 /* Do not output a trailing newline, as this causes \r\n confusion
27517 on some platforms. */
27518 return ferror (f) || fclose (f) != 0;
27519
27520 ;
27521 return 0;
27522}
27523_ACEOF
27524rm -f conftest$ac_exeext
27525if { (ac_try="$ac_link"
27526case "(($ac_try" in
27527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27528 *) ac_try_echo=$ac_try;;
27529esac
27530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27531$as_echo "$ac_try_echo") >&5
27532 (eval "$ac_link") 2>&5
27533 ac_status=$?
27534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27535 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27536 { (case "(($ac_try" in
27537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27538 *) ac_try_echo=$ac_try;;
27539esac
27540eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27541$as_echo "$ac_try_echo") >&5
27542 (eval "$ac_try") 2>&5
27543 ac_status=$?
27544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27545 (exit $ac_status); }; }; then
27546 ac_cv_sizeof_size_t=`cat conftest.val`
27547else
27548 $as_echo "$as_me: program exited with status $ac_status" >&5
27549$as_echo "$as_me: failed program was:" >&5
27550sed 's/^/| /' conftest.$ac_ext >&5
27551
27552( exit $ac_status )
27553if test "$ac_cv_type_size_t" = yes; then
27554 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27555$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27556{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
27557See \`config.log' for more details." >&5
27558$as_echo "$as_me: error: cannot compute sizeof (size_t)
27559See \`config.log' for more details." >&2;}
27560 { (exit 77); exit 77; }; }; }
27561 else
27562 ac_cv_sizeof_size_t=0
27563 fi
27564fi
27565rm -rf conftest.dSYM
27566rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27567fi
27568rm -f conftest.val
27569fi
27570{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
27571$as_echo "$ac_cv_sizeof_size_t" >&6; }
27572
27573
27574
27575cat >>confdefs.h <<_ACEOF
27576#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
27577_ACEOF
27578
27579
27580
27581# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
27582# The cast to long int works around a bug in the HP C Compiler
27583# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27584# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27585# This bug is HP SR number 8606223364.
27586{ $as_echo "$as_me:$LINENO: checking size of unsigned int*" >&5
27587$as_echo_n "checking size of unsigned int*... " >&6; }
27588if test "${ac_cv_sizeof_unsigned_intp+set}" = set; then
27589 $as_echo_n "(cached) " >&6
27590else
27591 if test "$cross_compiling" = yes; then
27592 # Depending upon the size, compute the lo and hi bounds.
27593cat >conftest.$ac_ext <<_ACEOF
27594/* confdefs.h. */
27595_ACEOF
27596cat confdefs.h >>conftest.$ac_ext
27597cat >>conftest.$ac_ext <<_ACEOF
27598/* end confdefs.h. */
27599$ac_includes_default
27600int
27601main ()
27602{
27603static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) >= 0)];
27604test_array [0] = 0
27605
27606 ;
27607 return 0;
27608}
27609_ACEOF
27610rm -f conftest.$ac_objext
27611if { (ac_try="$ac_compile"
27612case "(($ac_try" in
27613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27614 *) ac_try_echo=$ac_try;;
27615esac
27616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27617$as_echo "$ac_try_echo") >&5
27618 (eval "$ac_compile") 2>conftest.er1
27619 ac_status=$?
27620 grep -v '^ *+' conftest.er1 >conftest.err
27621 rm -f conftest.er1
27622 cat conftest.err >&5
27623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27624 (exit $ac_status); } && {
27625 test -z "$ac_c_werror_flag" ||
27626 test ! -s conftest.err
27627 } && test -s conftest.$ac_objext; then
27628 ac_lo=0 ac_mid=0
27629 while :; do
27630 cat >conftest.$ac_ext <<_ACEOF
27631/* confdefs.h. */
27632_ACEOF
27633cat confdefs.h >>conftest.$ac_ext
27634cat >>conftest.$ac_ext <<_ACEOF
27635/* end confdefs.h. */
27636$ac_includes_default
27637int
27638main ()
27639{
27640static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) <= $ac_mid)];
27641test_array [0] = 0
27642
27643 ;
27644 return 0;
27645}
27646_ACEOF
27647rm -f conftest.$ac_objext
27648if { (ac_try="$ac_compile"
27649case "(($ac_try" in
27650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27651 *) ac_try_echo=$ac_try;;
27652esac
27653eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27654$as_echo "$ac_try_echo") >&5
27655 (eval "$ac_compile") 2>conftest.er1
27656 ac_status=$?
27657 grep -v '^ *+' conftest.er1 >conftest.err
27658 rm -f conftest.er1
27659 cat conftest.err >&5
27660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27661 (exit $ac_status); } && {
27662 test -z "$ac_c_werror_flag" ||
27663 test ! -s conftest.err
27664 } && test -s conftest.$ac_objext; then
27665 ac_hi=$ac_mid; break
27666else
27667 $as_echo "$as_me: failed program was:" >&5
27668sed 's/^/| /' conftest.$ac_ext >&5
27669
27670 ac_lo=`expr $ac_mid + 1`
27671 if test $ac_lo -le $ac_mid; then
27672 ac_lo= ac_hi=
27673 break
27674 fi
27675 ac_mid=`expr 2 '*' $ac_mid + 1`
27676fi
27677
27678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27679 done
27680else
27681 $as_echo "$as_me: failed program was:" >&5
27682sed 's/^/| /' conftest.$ac_ext >&5
27683
27684 cat >conftest.$ac_ext <<_ACEOF
27685/* confdefs.h. */
27686_ACEOF
27687cat confdefs.h >>conftest.$ac_ext
27688cat >>conftest.$ac_ext <<_ACEOF
27689/* end confdefs.h. */
27690$ac_includes_default
27691int
27692main ()
27693{
27694static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) < 0)];
27695test_array [0] = 0
27696
27697 ;
27698 return 0;
27699}
27700_ACEOF
27701rm -f conftest.$ac_objext
27702if { (ac_try="$ac_compile"
27703case "(($ac_try" in
27704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27705 *) ac_try_echo=$ac_try;;
27706esac
27707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27708$as_echo "$ac_try_echo") >&5
27709 (eval "$ac_compile") 2>conftest.er1
27710 ac_status=$?
27711 grep -v '^ *+' conftest.er1 >conftest.err
27712 rm -f conftest.er1
27713 cat conftest.err >&5
27714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715 (exit $ac_status); } && {
27716 test -z "$ac_c_werror_flag" ||
27717 test ! -s conftest.err
27718 } && test -s conftest.$ac_objext; then
27719 ac_hi=-1 ac_mid=-1
27720 while :; do
27721 cat >conftest.$ac_ext <<_ACEOF
27722/* confdefs.h. */
27723_ACEOF
27724cat confdefs.h >>conftest.$ac_ext
27725cat >>conftest.$ac_ext <<_ACEOF
27726/* end confdefs.h. */
27727$ac_includes_default
27728int
27729main ()
27730{
27731static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) >= $ac_mid)];
27732test_array [0] = 0
27733
27734 ;
27735 return 0;
27736}
27737_ACEOF
27738rm -f conftest.$ac_objext
27739if { (ac_try="$ac_compile"
27740case "(($ac_try" in
27741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27742 *) ac_try_echo=$ac_try;;
27743esac
27744eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27745$as_echo "$ac_try_echo") >&5
27746 (eval "$ac_compile") 2>conftest.er1
27747 ac_status=$?
27748 grep -v '^ *+' conftest.er1 >conftest.err
27749 rm -f conftest.er1
27750 cat conftest.err >&5
27751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27752 (exit $ac_status); } && {
27753 test -z "$ac_c_werror_flag" ||
27754 test ! -s conftest.err
27755 } && test -s conftest.$ac_objext; then
27756 ac_lo=$ac_mid; break
27757else
27758 $as_echo "$as_me: failed program was:" >&5
27759sed 's/^/| /' conftest.$ac_ext >&5
27760
27761 ac_hi=`expr '(' $ac_mid ')' - 1`
27762 if test $ac_mid -le $ac_hi; then
27763 ac_lo= ac_hi=
27764 break
27765 fi
27766 ac_mid=`expr 2 '*' $ac_mid`
27767fi
27768
27769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27770 done
27771else
27772 $as_echo "$as_me: failed program was:" >&5
27773sed 's/^/| /' conftest.$ac_ext >&5
27774
27775 ac_lo= ac_hi=
27776fi
27777
27778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27779fi
27780
27781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27782# Binary search between lo and hi bounds.
27783while test "x$ac_lo" != "x$ac_hi"; do
27784 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
27785 cat >conftest.$ac_ext <<_ACEOF
27786/* confdefs.h. */
27787_ACEOF
27788cat confdefs.h >>conftest.$ac_ext
27789cat >>conftest.$ac_ext <<_ACEOF
27790/* end confdefs.h. */
27791$ac_includes_default
27792int
27793main ()
27794{
27795static int test_array [1 - 2 * !(((long int) (sizeof (unsigned int*))) <= $ac_mid)];
27796test_array [0] = 0
27797
27798 ;
27799 return 0;
27800}
27801_ACEOF
27802rm -f conftest.$ac_objext
27803if { (ac_try="$ac_compile"
27804case "(($ac_try" in
27805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27806 *) ac_try_echo=$ac_try;;
27807esac
27808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27809$as_echo "$ac_try_echo") >&5
27810 (eval "$ac_compile") 2>conftest.er1
27811 ac_status=$?
27812 grep -v '^ *+' conftest.er1 >conftest.err
27813 rm -f conftest.er1
27814 cat conftest.err >&5
27815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27816 (exit $ac_status); } && {
27817 test -z "$ac_c_werror_flag" ||
27818 test ! -s conftest.err
27819 } && test -s conftest.$ac_objext; then
27820 ac_hi=$ac_mid
27821else
27822 $as_echo "$as_me: failed program was:" >&5
27823sed 's/^/| /' conftest.$ac_ext >&5
27824
27825 ac_lo=`expr '(' $ac_mid ')' + 1`
27826fi
27827
27828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27829done
27830case $ac_lo in
27831?*) ac_cv_sizeof_unsigned_intp=$ac_lo;;
27832'') if test "$ac_cv_type_unsigned_intp" = yes; then
27833 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27834$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27835{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int*)
27836See \`config.log' for more details." >&5
27837$as_echo "$as_me: error: cannot compute sizeof (unsigned int*)
27838See \`config.log' for more details." >&2;}
27839 { (exit 77); exit 77; }; }; }
27840 else
27841 ac_cv_sizeof_unsigned_intp=0
27842 fi ;;
27843esac
27844else
27845 cat >conftest.$ac_ext <<_ACEOF
27846/* confdefs.h. */
27847_ACEOF
27848cat confdefs.h >>conftest.$ac_ext
27849cat >>conftest.$ac_ext <<_ACEOF
27850/* end confdefs.h. */
27851$ac_includes_default
27852static long int longval () { return (long int) (sizeof (unsigned int*)); }
27853static unsigned long int ulongval () { return (long int) (sizeof (unsigned int*)); }
27854#include <stdio.h>
27855#include <stdlib.h>
27856int
27857main ()
27858{
27859
27860 FILE *f = fopen ("conftest.val", "w");
27861 if (! f)
27862 return 1;
27863 if (((long int) (sizeof (unsigned int*))) < 0)
27864 {
27865 long int i = longval ();
27866 if (i != ((long int) (sizeof (unsigned int*))))
27867 return 1;
27868 fprintf (f, "%ld", i);
27869 }
27870 else
27871 {
27872 unsigned long int i = ulongval ();
27873 if (i != ((long int) (sizeof (unsigned int*))))
27874 return 1;
27875 fprintf (f, "%lu", i);
27876 }
27877 /* Do not output a trailing newline, as this causes \r\n confusion
27878 on some platforms. */
27879 return ferror (f) || fclose (f) != 0;
27880
27881 ;
27882 return 0;
27883}
27884_ACEOF
27885rm -f conftest$ac_exeext
27886if { (ac_try="$ac_link"
27887case "(($ac_try" in
27888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27889 *) ac_try_echo=$ac_try;;
27890esac
27891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27892$as_echo "$ac_try_echo") >&5
27893 (eval "$ac_link") 2>&5
27894 ac_status=$?
27895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27897 { (case "(($ac_try" in
27898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27899 *) ac_try_echo=$ac_try;;
27900esac
27901eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27902$as_echo "$ac_try_echo") >&5
27903 (eval "$ac_try") 2>&5
27904 ac_status=$?
27905 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27906 (exit $ac_status); }; }; then
27907 ac_cv_sizeof_unsigned_intp=`cat conftest.val`
27908else
27909 $as_echo "$as_me: program exited with status $ac_status" >&5
27910$as_echo "$as_me: failed program was:" >&5
27911sed 's/^/| /' conftest.$ac_ext >&5
27912
27913( exit $ac_status )
27914if test "$ac_cv_type_unsigned_intp" = yes; then
27915 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27916$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27917{ { $as_echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int*)
27918See \`config.log' for more details." >&5
27919$as_echo "$as_me: error: cannot compute sizeof (unsigned int*)
27920See \`config.log' for more details." >&2;}
27921 { (exit 77); exit 77; }; }; }
27922 else
27923 ac_cv_sizeof_unsigned_intp=0
27924 fi
27925fi
27926rm -rf conftest.dSYM
27927rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27928fi
27929rm -f conftest.val
27930fi
27931{ $as_echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_intp" >&5
27932$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
27933
27934
27935
27936cat >>confdefs.h <<_ACEOF
27937#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
27938_ACEOF
27939
27940
27941
27942#
27943# Compute sized types for current CPU and compiler options.
27944#
27945
27946{ $as_echo "$as_me:$LINENO: checking for signed 8-bit type" >&5
27947$as_echo_n "checking for signed 8-bit type... " >&6; }
27948INT8_T='signed char'
27949{ $as_echo "$as_me:$LINENO: result: $INT8_T" >&5
27950$as_echo "$INT8_T" >&6; }
27951
27952
27953{ $as_echo "$as_me:$LINENO: checking for unsigned 8-bit type" >&5
27954$as_echo_n "checking for unsigned 8-bit type... " >&6; }
27955UINT8_T='unsigned char'
27956{ $as_echo "$as_me:$LINENO: result: $UINT8_T" >&5
27957$as_echo "$UINT8_T" >&6; }
27958
27959
27960{ $as_echo "$as_me:$LINENO: checking for signed 16-bit type" >&5
27961$as_echo_n "checking for signed 16-bit type... " >&6; }
27962INT16_T='signed short'
27963{ $as_echo "$as_me:$LINENO: result: $INT16_T" >&5
27964$as_echo "$INT16_T" >&6; }
27965
27966
27967{ $as_echo "$as_me:$LINENO: checking for unsigned 16-bit type" >&5
27968$as_echo_n "checking for unsigned 16-bit type... " >&6; }
27969UINT16_T='unsigned short'
27970{ $as_echo "$as_me:$LINENO: result: $UINT16_T" >&5
27971$as_echo "$UINT16_T" >&6; }
27972
27973
27974{ $as_echo "$as_me:$LINENO: checking for signed 32-bit type" >&5
27975$as_echo_n "checking for signed 32-bit type... " >&6; }
27976INT32_T='none'
27977if test $ac_cv_sizeof_signed_int -eq 4; then
27978 INT32_T='signed int'
27979elif test $ac_cv_sizeof_signed_long -eq 4; then
27980 INT32_T='signed long'
27981fi
27982{ $as_echo "$as_me:$LINENO: result: $INT32_T" >&5
27983$as_echo "$INT32_T" >&6; }
27984
27985
27986{ $as_echo "$as_me:$LINENO: checking for unsigned 32-bit type" >&5
27987$as_echo_n "checking for unsigned 32-bit type... " >&6; }
27988UINT32_T='none'
27989if test $ac_cv_sizeof_unsigned_int -eq 4; then
27990 UINT32_T='unsigned int'
27991elif test $ac_cv_sizeof_unsigned_long -eq 4; then
27992 UINT32_T='unsigned long'
27993fi
27994{ $as_echo "$as_me:$LINENO: result: $UINT32_T" >&5
27995$as_echo "$UINT32_T" >&6; }
27996
27997
27998{ $as_echo "$as_me:$LINENO: checking for signed 64-bit type" >&5
27999$as_echo_n "checking for signed 64-bit type... " >&6; }
28000INT64_T='none'
28001if test $ac_cv_sizeof_signed_long -eq 8; then
28002 INT64_T='signed long'
28003elif test $ac_cv_sizeof_signed_long_long -eq 8; then
28004 INT64_T='signed long long'
28005fi
28006{ $as_echo "$as_me:$LINENO: result: $INT64_T" >&5
28007$as_echo "$INT64_T" >&6; }
28008
28009
28010{ $as_echo "$as_me:$LINENO: checking for unsigned 64-bit type" >&5
28011$as_echo_n "checking for unsigned 64-bit type... " >&6; }
28012UINT64_T='none'
28013if test $ac_cv_sizeof_unsigned_long -eq 8; then
28014 UINT64_T='unsigned long'
28015elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
28016 UINT64_T='unsigned long long'
28017fi
28018{ $as_echo "$as_me:$LINENO: result: $UINT64_T" >&5
28019$as_echo "$UINT64_T" >&6; }
28020
28021
28022{ $as_echo "$as_me:$LINENO: checking for unsigned maximum type" >&5
28023$as_echo_n "checking for unsigned maximum type... " >&6; }
28024UINTMAX_T='none'
28025if test "$UINT64_T" != 'none'; then
28026 UINTMAX_T=$UINT64_T
28027elif test "$UINT32_T" != 'none'; then
28028 UINTMAX_T=$UINT32_T
28029fi
28030{ $as_echo "$as_me:$LINENO: result: $UINTMAX_T" >&5
28031$as_echo "$UINTMAX_T" >&6; }
28032
28033
28034{ $as_echo "$as_me:$LINENO: checking for pointer difference type" >&5
28035$as_echo_n "checking for pointer difference type... " >&6; }
28036UINTPTR_T='none'
28037if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
28038 UINTPTR_T='unsigned long'
28039elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
28040 UINTPTR_T='unsigned long long'
28041fi
28042{ $as_echo "$as_me:$LINENO: result: $UINTPTR_T" >&5
28043$as_echo "$UINTPTR_T" >&6; }
28044
28045
28046{ $as_echo "$as_me:$LINENO: checking whether our compiler supports __func__" >&5
28047$as_echo_n "checking whether our compiler supports __func__... " >&6; }
28048cat >conftest.$ac_ext <<_ACEOF
28049/* confdefs.h. */
28050_ACEOF
28051cat confdefs.h >>conftest.$ac_ext
28052cat >>conftest.$ac_ext <<_ACEOF
28053/* end confdefs.h. */
28054
28055int
28056main ()
28057{
28058{ const char *func = __func__; return(func != 0 ? 0 : 1); }
28059 ;
28060 return 0;
28061}
28062_ACEOF
28063rm -f conftest.$ac_objext
28064if { (ac_try="$ac_compile"
28065case "(($ac_try" in
28066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28067 *) ac_try_echo=$ac_try;;
28068esac
28069eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28070$as_echo "$ac_try_echo") >&5
28071 (eval "$ac_compile") 2>conftest.er1
28072 ac_status=$?
28073 grep -v '^ *+' conftest.er1 >conftest.err
28074 rm -f conftest.er1
28075 cat conftest.err >&5
28076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28077 (exit $ac_status); } && {
28078 test -z "$ac_c_werror_flag" ||
28079 test ! -s conftest.err
28080 } && test -s conftest.$ac_objext; then
28081 { $as_echo "$as_me:$LINENO: result: yes" >&5
28082$as_echo "yes" >&6; }
28083else
28084 $as_echo "$as_me: failed program was:" >&5
28085sed 's/^/| /' conftest.$ac_ext >&5
28086
28087 { $as_echo "$as_me:$LINENO: result: no" >&5
28088$as_echo "no" >&6; }
28089 { $as_echo "$as_me:$LINENO: checking whether our compiler supports __FUNCTION__" >&5
28090$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
28091 cat >conftest.$ac_ext <<_ACEOF
28092/* confdefs.h. */
28093_ACEOF
28094cat confdefs.h >>conftest.$ac_ext
28095cat >>conftest.$ac_ext <<_ACEOF
28096/* end confdefs.h. */
28097
28098int
28099main ()
28100{
28101{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
28102 ;
28103 return 0;
28104}
28105_ACEOF
28106rm -f conftest.$ac_objext
28107if { (ac_try="$ac_compile"
28108case "(($ac_try" in
28109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28110 *) ac_try_echo=$ac_try;;
28111esac
28112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28113$as_echo "$ac_try_echo") >&5
28114 (eval "$ac_compile") 2>conftest.er1
28115 ac_status=$?
28116 grep -v '^ *+' conftest.er1 >conftest.err
28117 rm -f conftest.er1
28118 cat conftest.err >&5
28119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28120 (exit $ac_status); } && {
28121 test -z "$ac_c_werror_flag" ||
28122 test ! -s conftest.err
28123 } && test -s conftest.$ac_objext; then
28124 { $as_echo "$as_me:$LINENO: result: yes" >&5
28125$as_echo "yes" >&6; }
28126
28127cat >>confdefs.h <<\_ACEOF
28128#define __func__ __FUNCTION__
28129_ACEOF
28130
28131else
28132 $as_echo "$as_me: failed program was:" >&5
28133sed 's/^/| /' conftest.$ac_ext >&5
28134
28135 { $as_echo "$as_me:$LINENO: result: no" >&5
28136$as_echo "no" >&6; }
28137
28138cat >>confdefs.h <<\_ACEOF
28139#define __func__ __FILE__
28140_ACEOF
28141
28142fi
28143
28144rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28145fi
28146
28147rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28148
28149########
28150#
28151# Check for functions
28152#
28153########
28154
28155
28156for ac_header in stdlib.h unistd.h
28157do
28158as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28159if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28160 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28161$as_echo_n "checking for $ac_header... " >&6; }
28162if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28163 $as_echo_n "(cached) " >&6
28164fi
28165ac_res=`eval 'as_val=${'$as_ac_Header'}
28166 $as_echo "$as_val"'`
28167 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28168$as_echo "$ac_res" >&6; }
28169else
28170 # Is the header compilable?
28171{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28172$as_echo_n "checking $ac_header usability... " >&6; }
28173cat >conftest.$ac_ext <<_ACEOF
28174/* confdefs.h. */
28175_ACEOF
28176cat confdefs.h >>conftest.$ac_ext
28177cat >>conftest.$ac_ext <<_ACEOF
28178/* end confdefs.h. */
28179$ac_includes_default
28180#include <$ac_header>
28181_ACEOF
28182rm -f conftest.$ac_objext
28183if { (ac_try="$ac_compile"
28184case "(($ac_try" in
28185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28186 *) ac_try_echo=$ac_try;;
28187esac
28188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28189$as_echo "$ac_try_echo") >&5
28190 (eval "$ac_compile") 2>conftest.er1
28191 ac_status=$?
28192 grep -v '^ *+' conftest.er1 >conftest.err
28193 rm -f conftest.er1
28194 cat conftest.err >&5
28195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28196 (exit $ac_status); } && {
28197 test -z "$ac_c_werror_flag" ||
28198 test ! -s conftest.err
28199 } && test -s conftest.$ac_objext; then
28200 ac_header_compiler=yes
28201else
28202 $as_echo "$as_me: failed program was:" >&5
28203sed 's/^/| /' conftest.$ac_ext >&5
28204
28205 ac_header_compiler=no
28206fi
28207
28208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28209{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28210$as_echo "$ac_header_compiler" >&6; }
28211
28212# Is the header present?
28213{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28214$as_echo_n "checking $ac_header presence... " >&6; }
28215cat >conftest.$ac_ext <<_ACEOF
28216/* confdefs.h. */
28217_ACEOF
28218cat confdefs.h >>conftest.$ac_ext
28219cat >>conftest.$ac_ext <<_ACEOF
28220/* end confdefs.h. */
28221#include <$ac_header>
28222_ACEOF
28223if { (ac_try="$ac_cpp conftest.$ac_ext"
28224case "(($ac_try" in
28225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28226 *) ac_try_echo=$ac_try;;
28227esac
28228eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28229$as_echo "$ac_try_echo") >&5
28230 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28231 ac_status=$?
28232 grep -v '^ *+' conftest.er1 >conftest.err
28233 rm -f conftest.er1
28234 cat conftest.err >&5
28235 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28236 (exit $ac_status); } >/dev/null && {
28237 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28238 test ! -s conftest.err
28239 }; then
28240 ac_header_preproc=yes
28241else
28242 $as_echo "$as_me: failed program was:" >&5
28243sed 's/^/| /' conftest.$ac_ext >&5
28244
28245 ac_header_preproc=no
28246fi
28247
28248rm -f conftest.err conftest.$ac_ext
28249{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28250$as_echo "$ac_header_preproc" >&6; }
28251
28252# So? What about this header?
28253case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28254 yes:no: )
28255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28256$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28258$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28259 ac_header_preproc=yes
28260 ;;
28261 no:yes:* )
28262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28263$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28265$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28267$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28269$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28271$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28272 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28273$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28274 ( cat <<\_ASBOX
28275## ----------------------------------------- ##
28276## Report this to http://www.imagemagick.org ##
28277## ----------------------------------------- ##
28278_ASBOX
28279 ) | sed "s/^/$as_me: WARNING: /" >&2
28280 ;;
28281esac
28282{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28283$as_echo_n "checking for $ac_header... " >&6; }
28284if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28285 $as_echo_n "(cached) " >&6
28286else
28287 eval "$as_ac_Header=\$ac_header_preproc"
28288fi
28289ac_res=`eval 'as_val=${'$as_ac_Header'}
28290 $as_echo "$as_val"'`
28291 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28292$as_echo "$ac_res" >&6; }
28293
28294fi
28295as_val=`eval 'as_val=${'$as_ac_Header'}
28296 $as_echo "$as_val"'`
28297 if test "x$as_val" = x""yes; then
28298 cat >>confdefs.h <<_ACEOF
28299#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28300_ACEOF
28301
28302fi
28303
28304done
28305
28306
28307for ac_func in getpagesize
28308do
28309as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28310{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28311$as_echo_n "checking for $ac_func... " >&6; }
28312if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28313 $as_echo_n "(cached) " >&6
28314else
28315 cat >conftest.$ac_ext <<_ACEOF
28316/* confdefs.h. */
28317_ACEOF
28318cat confdefs.h >>conftest.$ac_ext
28319cat >>conftest.$ac_ext <<_ACEOF
28320/* end confdefs.h. */
28321/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28323#define $ac_func innocuous_$ac_func
28324
28325/* System header to define __stub macros and hopefully few prototypes,
28326 which can conflict with char $ac_func (); below.
28327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28328 <limits.h> exists even on freestanding compilers. */
28329
28330#ifdef __STDC__
28331# include <limits.h>
28332#else
28333# include <assert.h>
28334#endif
28335
28336#undef $ac_func
28337
28338/* Override any GCC internal prototype to avoid an error.
28339 Use char because int might match the return type of a GCC
28340 builtin and then its argument prototype would still apply. */
28341#ifdef __cplusplus
28342extern "C"
28343#endif
28344char $ac_func ();
28345/* The GNU C library defines this for functions which it implements
28346 to always fail with ENOSYS. Some functions are actually named
28347 something starting with __ and the normal name is an alias. */
28348#if defined __stub_$ac_func || defined __stub___$ac_func
28349choke me
28350#endif
28351
28352int
28353main ()
28354{
28355return $ac_func ();
28356 ;
28357 return 0;
28358}
28359_ACEOF
28360rm -f conftest.$ac_objext conftest$ac_exeext
28361if { (ac_try="$ac_link"
28362case "(($ac_try" in
28363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28364 *) ac_try_echo=$ac_try;;
28365esac
28366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28367$as_echo "$ac_try_echo") >&5
28368 (eval "$ac_link") 2>conftest.er1
28369 ac_status=$?
28370 grep -v '^ *+' conftest.er1 >conftest.err
28371 rm -f conftest.er1
28372 cat conftest.err >&5
28373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28374 (exit $ac_status); } && {
28375 test -z "$ac_c_werror_flag" ||
28376 test ! -s conftest.err
28377 } && test -s conftest$ac_exeext && {
28378 test "$cross_compiling" = yes ||
28379 $as_test_x conftest$ac_exeext
28380 }; then
28381 eval "$as_ac_var=yes"
28382else
28383 $as_echo "$as_me: failed program was:" >&5
28384sed 's/^/| /' conftest.$ac_ext >&5
28385
28386 eval "$as_ac_var=no"
28387fi
28388
28389rm -rf conftest.dSYM
28390rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28391 conftest$ac_exeext conftest.$ac_ext
28392fi
28393ac_res=`eval 'as_val=${'$as_ac_var'}
28394 $as_echo "$as_val"'`
28395 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28396$as_echo "$ac_res" >&6; }
28397as_val=`eval 'as_val=${'$as_ac_var'}
28398 $as_echo "$as_val"'`
28399 if test "x$as_val" = x""yes; then
28400 cat >>confdefs.h <<_ACEOF
28401#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28402_ACEOF
28403
28404fi
28405done
28406
28407{ $as_echo "$as_me:$LINENO: checking for working mmap file i/o" >&5
28408$as_echo_n "checking for working mmap file i/o... " >&6; }
28409if test "${magick_cv_func_mmap_fileio+set}" = set; then
28410 $as_echo_n "(cached) " >&6
28411else
28412 if test "$cross_compiling" = yes; then
28413 magick_cv_func_mmap_fileio=no
28414else
28415 cat >conftest.$ac_ext <<_ACEOF
28416/* confdefs.h. */
28417_ACEOF
28418cat confdefs.h >>conftest.$ac_ext
28419cat >>conftest.$ac_ext <<_ACEOF
28420/* end confdefs.h. */
28421$ac_includes_default
28422/* malloc might have been renamed as rpl_malloc. */
28423#undef malloc
28424
28425/*
28426 This test is derived from GNU Autoconf's similar macro.
28427 The purpose of this test is to verify that files may be memory
28428 mapped, and that memory mapping and file I/O are coherent.
28429
28430 The test creates a test file, memory maps the file, updates
28431 the file using the memory map, and then reads the file using
28432 file I/O to verify that the file contains the updates.
28433*/
28434
28435#include <fcntl.h>
28436#include <sys/mman.h>
28437
28438#if !STDC_HEADERS && !HAVE_STDLIB_H
28439char *malloc ();
28440#endif
28441
28442/* This mess was copied from the GNU getpagesize.h. */
28443#if !HAVE_GETPAGESIZE
28444/* Assume that all systems that can run configure have sys/param.h. */
28445# if !HAVE_SYS_PARAM_H
28446# define HAVE_SYS_PARAM_H 1
28447# endif
28448
28449# ifdef _SC_PAGESIZE
28450# define getpagesize() sysconf(_SC_PAGESIZE)
28451# else /* no _SC_PAGESIZE */
28452# if HAVE_SYS_PARAM_H
28453# include <sys/param.h>
28454# ifdef EXEC_PAGESIZE
28455# define getpagesize() EXEC_PAGESIZE
28456# else /* no EXEC_PAGESIZE */
28457# ifdef NBPG
28458# define getpagesize() NBPG * CLSIZE
28459# ifndef CLSIZE
28460# define CLSIZE 1
28461# endif /* no CLSIZE */
28462# else /* no NBPG */
28463# ifdef NBPC
28464# define getpagesize() NBPC
28465# else /* no NBPC */
28466# ifdef PAGESIZE
28467# define getpagesize() PAGESIZE
28468# endif /* PAGESIZE */
28469# endif /* no NBPC */
28470# endif /* no NBPG */
28471# endif /* no EXEC_PAGESIZE */
28472# else /* no HAVE_SYS_PARAM_H */
28473# define getpagesize() 8192 /* punt totally */
28474# endif /* no HAVE_SYS_PARAM_H */
28475# endif /* no _SC_PAGESIZE */
28476
28477#endif /* no HAVE_GETPAGESIZE */
28478
28479int
28480main ()
28481{
28482 char *data, *data2, *data3;
28483 int i, pagesize;
28484 int fd;
28485
28486 pagesize = getpagesize ();
28487
28488 /* First, make a file with some known garbage in it. */
28489 data = (char *) malloc (pagesize);
28490 if (!data)
28491 exit (1);
28492 for (i = 0; i < pagesize; ++i)
28493 *(data + i) = rand ();
28494 umask (0);
28495 fd = creat ("conftest.mmap", 0600);
28496 if (fd < 0)
28497 exit (1);
28498 if (write (fd, data, pagesize) != pagesize)
28499 exit (1);
28500 close (fd);
28501
28502 /* Mmap the file as read/write/shared and verify that we see the
28503 same garbage. */
28504 fd = open ("conftest.mmap", O_RDWR);
28505 if (fd < 0)
28506 exit (1);
28507 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
28508 if (data2 == 0)
28509 exit (1);
28510 for (i = 0; i < pagesize; ++i)
28511 if (*(data + i) != *(data2 + i))
28512 exit (1);
28513
28514 /* Finally, make sure that changes to the mapped area
28515 percolate back to the file as seen by read(). */
28516 for (i = 0; i < pagesize; ++i)
28517 *(data2 + i) = *(data2 + i) + 1;
28518 data3 = (char *) malloc (pagesize);
28519 if (!data3)
28520 exit (1);
28521 if (read (fd, data3, pagesize) != pagesize)
28522 exit (1);
28523 for (i = 0; i < pagesize; ++i)
28524 if (*(data2 + i) != *(data3 + i))
28525 exit (1);
28526 close (fd);
28527 exit (0);
28528}
28529_ACEOF
28530rm -f conftest$ac_exeext
28531if { (ac_try="$ac_link"
28532case "(($ac_try" in
28533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28534 *) ac_try_echo=$ac_try;;
28535esac
28536eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28537$as_echo "$ac_try_echo") >&5
28538 (eval "$ac_link") 2>&5
28539 ac_status=$?
28540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28541 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28542 { (case "(($ac_try" in
28543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28544 *) ac_try_echo=$ac_try;;
28545esac
28546eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28547$as_echo "$ac_try_echo") >&5
28548 (eval "$ac_try") 2>&5
28549 ac_status=$?
28550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28551 (exit $ac_status); }; }; then
28552 magick_cv_func_mmap_fileio=yes
28553else
28554 $as_echo "$as_me: program exited with status $ac_status" >&5
28555$as_echo "$as_me: failed program was:" >&5
28556sed 's/^/| /' conftest.$ac_ext >&5
28557
28558( exit $ac_status )
28559magick_cv_func_mmap_fileio=no
28560fi
28561rm -rf conftest.dSYM
28562rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28563fi
28564
28565
28566fi
28567{ $as_echo "$as_me:$LINENO: result: $magick_cv_func_mmap_fileio" >&5
28568$as_echo "$magick_cv_func_mmap_fileio" >&6; }
28569if test $magick_cv_func_mmap_fileio = yes; then
28570
28571cat >>confdefs.h <<\_ACEOF
28572#define HAVE_MMAP_FILEIO 1
28573_ACEOF
28574
28575fi
28576rm -f conftest.mmap
28577
28578{ $as_echo "$as_me:$LINENO: checking whether closedir returns void" >&5
28579$as_echo_n "checking whether closedir returns void... " >&6; }
28580if test "${ac_cv_func_closedir_void+set}" = set; then
28581 $as_echo_n "(cached) " >&6
28582else
28583 if test "$cross_compiling" = yes; then
28584 ac_cv_func_closedir_void=yes
28585else
28586 cat >conftest.$ac_ext <<_ACEOF
28587/* confdefs.h. */
28588_ACEOF
28589cat confdefs.h >>conftest.$ac_ext
28590cat >>conftest.$ac_ext <<_ACEOF
28591/* end confdefs.h. */
28592$ac_includes_default
28593#include <$ac_header_dirent>
28594#ifndef __cplusplus
28595int closedir ();
28596#endif
28597
28598int
28599main ()
28600{
28601return closedir (opendir (".")) != 0;
28602 ;
28603 return 0;
28604}
28605_ACEOF
28606rm -f conftest$ac_exeext
28607if { (ac_try="$ac_link"
28608case "(($ac_try" in
28609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28610 *) ac_try_echo=$ac_try;;
28611esac
28612eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28613$as_echo "$ac_try_echo") >&5
28614 (eval "$ac_link") 2>&5
28615 ac_status=$?
28616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28618 { (case "(($ac_try" in
28619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28620 *) ac_try_echo=$ac_try;;
28621esac
28622eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28623$as_echo "$ac_try_echo") >&5
28624 (eval "$ac_try") 2>&5
28625 ac_status=$?
28626 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28627 (exit $ac_status); }; }; then
28628 ac_cv_func_closedir_void=no
28629else
28630 $as_echo "$as_me: program exited with status $ac_status" >&5
28631$as_echo "$as_me: failed program was:" >&5
28632sed 's/^/| /' conftest.$ac_ext >&5
28633
28634( exit $ac_status )
28635ac_cv_func_closedir_void=yes
28636fi
28637rm -rf conftest.dSYM
28638rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28639fi
28640
28641
28642fi
28643{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
28644$as_echo "$ac_cv_func_closedir_void" >&6; }
28645if test $ac_cv_func_closedir_void = yes; then
28646
28647cat >>confdefs.h <<\_ACEOF
28648#define CLOSEDIR_VOID 1
28649_ACEOF
28650
28651fi
28652
28653
28654
28655for ac_header in stdlib.h unistd.h
28656do
28657as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28658if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28659 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28660$as_echo_n "checking for $ac_header... " >&6; }
28661if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28662 $as_echo_n "(cached) " >&6
28663fi
28664ac_res=`eval 'as_val=${'$as_ac_Header'}
28665 $as_echo "$as_val"'`
28666 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28667$as_echo "$ac_res" >&6; }
28668else
28669 # Is the header compilable?
28670{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28671$as_echo_n "checking $ac_header usability... " >&6; }
28672cat >conftest.$ac_ext <<_ACEOF
28673/* confdefs.h. */
28674_ACEOF
28675cat confdefs.h >>conftest.$ac_ext
28676cat >>conftest.$ac_ext <<_ACEOF
28677/* end confdefs.h. */
28678$ac_includes_default
28679#include <$ac_header>
28680_ACEOF
28681rm -f conftest.$ac_objext
28682if { (ac_try="$ac_compile"
28683case "(($ac_try" in
28684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28685 *) ac_try_echo=$ac_try;;
28686esac
28687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28688$as_echo "$ac_try_echo") >&5
28689 (eval "$ac_compile") 2>conftest.er1
28690 ac_status=$?
28691 grep -v '^ *+' conftest.er1 >conftest.err
28692 rm -f conftest.er1
28693 cat conftest.err >&5
28694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28695 (exit $ac_status); } && {
28696 test -z "$ac_c_werror_flag" ||
28697 test ! -s conftest.err
28698 } && test -s conftest.$ac_objext; then
28699 ac_header_compiler=yes
28700else
28701 $as_echo "$as_me: failed program was:" >&5
28702sed 's/^/| /' conftest.$ac_ext >&5
28703
28704 ac_header_compiler=no
28705fi
28706
28707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28708{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28709$as_echo "$ac_header_compiler" >&6; }
28710
28711# Is the header present?
28712{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28713$as_echo_n "checking $ac_header presence... " >&6; }
28714cat >conftest.$ac_ext <<_ACEOF
28715/* confdefs.h. */
28716_ACEOF
28717cat confdefs.h >>conftest.$ac_ext
28718cat >>conftest.$ac_ext <<_ACEOF
28719/* end confdefs.h. */
28720#include <$ac_header>
28721_ACEOF
28722if { (ac_try="$ac_cpp conftest.$ac_ext"
28723case "(($ac_try" in
28724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28725 *) ac_try_echo=$ac_try;;
28726esac
28727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28728$as_echo "$ac_try_echo") >&5
28729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28730 ac_status=$?
28731 grep -v '^ *+' conftest.er1 >conftest.err
28732 rm -f conftest.er1
28733 cat conftest.err >&5
28734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28735 (exit $ac_status); } >/dev/null && {
28736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28737 test ! -s conftest.err
28738 }; then
28739 ac_header_preproc=yes
28740else
28741 $as_echo "$as_me: failed program was:" >&5
28742sed 's/^/| /' conftest.$ac_ext >&5
28743
28744 ac_header_preproc=no
28745fi
28746
28747rm -f conftest.err conftest.$ac_ext
28748{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28749$as_echo "$ac_header_preproc" >&6; }
28750
28751# So? What about this header?
28752case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28753 yes:no: )
28754 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28755$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28756 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28757$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28758 ac_header_preproc=yes
28759 ;;
28760 no:yes:* )
28761 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28762$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28764$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28766$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28768$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28770$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28772$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28773 ( cat <<\_ASBOX
28774## ----------------------------------------- ##
28775## Report this to http://www.imagemagick.org ##
28776## ----------------------------------------- ##
28777_ASBOX
28778 ) | sed "s/^/$as_me: WARNING: /" >&2
28779 ;;
28780esac
28781{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28782$as_echo_n "checking for $ac_header... " >&6; }
28783if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28784 $as_echo_n "(cached) " >&6
28785else
28786 eval "$as_ac_Header=\$ac_header_preproc"
28787fi
28788ac_res=`eval 'as_val=${'$as_ac_Header'}
28789 $as_echo "$as_val"'`
28790 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28791$as_echo "$ac_res" >&6; }
28792
28793fi
28794as_val=`eval 'as_val=${'$as_ac_Header'}
28795 $as_echo "$as_val"'`
28796 if test "x$as_val" = x""yes; then
28797 cat >>confdefs.h <<_ACEOF
28798#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28799_ACEOF
28800
28801fi
28802
28803done
28804
28805
28806for ac_func in getpagesize
28807do
28808as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28809{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28810$as_echo_n "checking for $ac_func... " >&6; }
28811if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28812 $as_echo_n "(cached) " >&6
28813else
28814 cat >conftest.$ac_ext <<_ACEOF
28815/* confdefs.h. */
28816_ACEOF
28817cat confdefs.h >>conftest.$ac_ext
28818cat >>conftest.$ac_ext <<_ACEOF
28819/* end confdefs.h. */
28820/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
28822#define $ac_func innocuous_$ac_func
28823
28824/* System header to define __stub macros and hopefully few prototypes,
28825 which can conflict with char $ac_func (); below.
28826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28827 <limits.h> exists even on freestanding compilers. */
28828
28829#ifdef __STDC__
28830# include <limits.h>
28831#else
28832# include <assert.h>
28833#endif
28834
28835#undef $ac_func
28836
28837/* Override any GCC internal prototype to avoid an error.
28838 Use char because int might match the return type of a GCC
28839 builtin and then its argument prototype would still apply. */
28840#ifdef __cplusplus
28841extern "C"
28842#endif
28843char $ac_func ();
28844/* The GNU C library defines this for functions which it implements
28845 to always fail with ENOSYS. Some functions are actually named
28846 something starting with __ and the normal name is an alias. */
28847#if defined __stub_$ac_func || defined __stub___$ac_func
28848choke me
28849#endif
28850
28851int
28852main ()
28853{
28854return $ac_func ();
28855 ;
28856 return 0;
28857}
28858_ACEOF
28859rm -f conftest.$ac_objext conftest$ac_exeext
28860if { (ac_try="$ac_link"
28861case "(($ac_try" in
28862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28863 *) ac_try_echo=$ac_try;;
28864esac
28865eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28866$as_echo "$ac_try_echo") >&5
28867 (eval "$ac_link") 2>conftest.er1
28868 ac_status=$?
28869 grep -v '^ *+' conftest.er1 >conftest.err
28870 rm -f conftest.er1
28871 cat conftest.err >&5
28872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28873 (exit $ac_status); } && {
28874 test -z "$ac_c_werror_flag" ||
28875 test ! -s conftest.err
28876 } && test -s conftest$ac_exeext && {
28877 test "$cross_compiling" = yes ||
28878 $as_test_x conftest$ac_exeext
28879 }; then
28880 eval "$as_ac_var=yes"
28881else
28882 $as_echo "$as_me: failed program was:" >&5
28883sed 's/^/| /' conftest.$ac_ext >&5
28884
28885 eval "$as_ac_var=no"
28886fi
28887
28888rm -rf conftest.dSYM
28889rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28890 conftest$ac_exeext conftest.$ac_ext
28891fi
28892ac_res=`eval 'as_val=${'$as_ac_var'}
28893 $as_echo "$as_val"'`
28894 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28895$as_echo "$ac_res" >&6; }
28896as_val=`eval 'as_val=${'$as_ac_var'}
28897 $as_echo "$as_val"'`
28898 if test "x$as_val" = x""yes; then
28899 cat >>confdefs.h <<_ACEOF
28900#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28901_ACEOF
28902
28903fi
28904done
28905
28906{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
28907$as_echo_n "checking for working mmap... " >&6; }
28908if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
28909 $as_echo_n "(cached) " >&6
28910else
28911 if test "$cross_compiling" = yes; then
28912 ac_cv_func_mmap_fixed_mapped=no
28913else
28914 cat >conftest.$ac_ext <<_ACEOF
28915/* confdefs.h. */
28916_ACEOF
28917cat confdefs.h >>conftest.$ac_ext
28918cat >>conftest.$ac_ext <<_ACEOF
28919/* end confdefs.h. */
28920$ac_includes_default
28921/* malloc might have been renamed as rpl_malloc. */
28922#undef malloc
28923
28924/* Thanks to Mike Haertel and Jim Avera for this test.
28925 Here is a matrix of mmap possibilities:
28926 mmap private not fixed
28927 mmap private fixed at somewhere currently unmapped
28928 mmap private fixed at somewhere already mapped
28929 mmap shared not fixed
28930 mmap shared fixed at somewhere currently unmapped
28931 mmap shared fixed at somewhere already mapped
28932 For private mappings, we should verify that changes cannot be read()
28933 back from the file, nor mmap's back from the file at a different
28934 address. (There have been systems where private was not correctly
28935 implemented like the infamous i386 svr4.0, and systems where the
28936 VM page cache was not coherent with the file system buffer cache
28937 like early versions of FreeBSD and possibly contemporary NetBSD.)
28938 For shared mappings, we should conversely verify that changes get
28939 propagated back to all the places they're supposed to be.
28940
28941 Grep wants private fixed already mapped.
28942 The main things grep needs to know about mmap are:
28943 * does it exist and is it safe to write into the mmap'd area
28944 * how to use it (BSD variants) */
28945
28946#include <fcntl.h>
28947#include <sys/mman.h>
28948
28949#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
28950char *malloc ();
28951#endif
28952
28953/* This mess was copied from the GNU getpagesize.h. */
28954#ifndef HAVE_GETPAGESIZE
28955/* Assume that all systems that can run configure have sys/param.h. */
28956# ifndef HAVE_SYS_PARAM_H
28957# define HAVE_SYS_PARAM_H 1
28958# endif
28959
28960# ifdef _SC_PAGESIZE
28961# define getpagesize() sysconf(_SC_PAGESIZE)
28962# else /* no _SC_PAGESIZE */
28963# ifdef HAVE_SYS_PARAM_H
28964# include <sys/param.h>
28965# ifdef EXEC_PAGESIZE
28966# define getpagesize() EXEC_PAGESIZE
28967# else /* no EXEC_PAGESIZE */
28968# ifdef NBPG
28969# define getpagesize() NBPG * CLSIZE
28970# ifndef CLSIZE
28971# define CLSIZE 1
28972# endif /* no CLSIZE */
28973# else /* no NBPG */
28974# ifdef NBPC
28975# define getpagesize() NBPC
28976# else /* no NBPC */
28977# ifdef PAGESIZE
28978# define getpagesize() PAGESIZE
28979# endif /* PAGESIZE */
28980# endif /* no NBPC */
28981# endif /* no NBPG */
28982# endif /* no EXEC_PAGESIZE */
28983# else /* no HAVE_SYS_PARAM_H */
28984# define getpagesize() 8192 /* punt totally */
28985# endif /* no HAVE_SYS_PARAM_H */
28986# endif /* no _SC_PAGESIZE */
28987
28988#endif /* no HAVE_GETPAGESIZE */
28989
28990int
28991main ()
28992{
28993 char *data, *data2, *data3;
28994 int i, pagesize;
28995 int fd;
28996
28997 pagesize = getpagesize ();
28998
28999 /* First, make a file with some known garbage in it. */
29000 data = (char *) malloc (pagesize);
29001 if (!data)
29002 return 1;
29003 for (i = 0; i < pagesize; ++i)
29004 *(data + i) = rand ();
29005 umask (0);
29006 fd = creat ("conftest.mmap", 0600);
29007 if (fd < 0)
29008 return 1;
29009 if (write (fd, data, pagesize) != pagesize)
29010 return 1;
29011 close (fd);
29012
29013 /* Next, try to mmap the file at a fixed address which already has
29014 something else allocated at it. If we can, also make sure that
29015 we see the same garbage. */
29016 fd = open ("conftest.mmap", O_RDWR);
29017 if (fd < 0)
29018 return 1;
29019 data2 = (char *) malloc (2 * pagesize);
29020 if (!data2)
29021 return 1;
29022 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
29023 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
29024 MAP_PRIVATE | MAP_FIXED, fd, 0L))
29025 return 1;
29026 for (i = 0; i < pagesize; ++i)
29027 if (*(data + i) != *(data2 + i))
29028 return 1;
29029
29030 /* Finally, make sure that changes to the mapped area do not
29031 percolate back to the file as seen by read(). (This is a bug on
29032 some variants of i386 svr4.0.) */
29033 for (i = 0; i < pagesize; ++i)
29034 *(data2 + i) = *(data2 + i) + 1;
29035 data3 = (char *) malloc (pagesize);
29036 if (!data3)
29037 return 1;
29038 if (read (fd, data3, pagesize) != pagesize)
29039 return 1;
29040 for (i = 0; i < pagesize; ++i)
29041 if (*(data + i) != *(data3 + i))
29042 return 1;
29043 close (fd);
29044 return 0;
29045}
29046_ACEOF
29047rm -f conftest$ac_exeext
29048if { (ac_try="$ac_link"
29049case "(($ac_try" in
29050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29051 *) ac_try_echo=$ac_try;;
29052esac
29053eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29054$as_echo "$ac_try_echo") >&5
29055 (eval "$ac_link") 2>&5
29056 ac_status=$?
29057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29058 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29059 { (case "(($ac_try" in
29060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29061 *) ac_try_echo=$ac_try;;
29062esac
29063eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29064$as_echo "$ac_try_echo") >&5
29065 (eval "$ac_try") 2>&5
29066 ac_status=$?
29067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29068 (exit $ac_status); }; }; then
29069 ac_cv_func_mmap_fixed_mapped=yes
29070else
29071 $as_echo "$as_me: program exited with status $ac_status" >&5
29072$as_echo "$as_me: failed program was:" >&5
29073sed 's/^/| /' conftest.$ac_ext >&5
29074
29075( exit $ac_status )
29076ac_cv_func_mmap_fixed_mapped=no
29077fi
29078rm -rf conftest.dSYM
29079rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29080fi
29081
29082
29083fi
29084{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
29085$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
29086if test $ac_cv_func_mmap_fixed_mapped = yes; then
29087
29088cat >>confdefs.h <<\_ACEOF
29089#define HAVE_MMAP 1
29090_ACEOF
29091
29092fi
29093rm -f conftest.mmap
29094
29095
29096for ac_header in vfork.h
29097do
29098as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29099if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29100 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29101$as_echo_n "checking for $ac_header... " >&6; }
29102if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29103 $as_echo_n "(cached) " >&6
29104fi
29105ac_res=`eval 'as_val=${'$as_ac_Header'}
29106 $as_echo "$as_val"'`
29107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29108$as_echo "$ac_res" >&6; }
29109else
29110 # Is the header compilable?
29111{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29112$as_echo_n "checking $ac_header usability... " >&6; }
29113cat >conftest.$ac_ext <<_ACEOF
29114/* confdefs.h. */
29115_ACEOF
29116cat confdefs.h >>conftest.$ac_ext
29117cat >>conftest.$ac_ext <<_ACEOF
29118/* end confdefs.h. */
29119$ac_includes_default
29120#include <$ac_header>
29121_ACEOF
29122rm -f conftest.$ac_objext
29123if { (ac_try="$ac_compile"
29124case "(($ac_try" in
29125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29126 *) ac_try_echo=$ac_try;;
29127esac
29128eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29129$as_echo "$ac_try_echo") >&5
29130 (eval "$ac_compile") 2>conftest.er1
29131 ac_status=$?
29132 grep -v '^ *+' conftest.er1 >conftest.err
29133 rm -f conftest.er1
29134 cat conftest.err >&5
29135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29136 (exit $ac_status); } && {
29137 test -z "$ac_c_werror_flag" ||
29138 test ! -s conftest.err
29139 } && test -s conftest.$ac_objext; then
29140 ac_header_compiler=yes
29141else
29142 $as_echo "$as_me: failed program was:" >&5
29143sed 's/^/| /' conftest.$ac_ext >&5
29144
29145 ac_header_compiler=no
29146fi
29147
29148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29149{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29150$as_echo "$ac_header_compiler" >&6; }
29151
29152# Is the header present?
29153{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29154$as_echo_n "checking $ac_header presence... " >&6; }
29155cat >conftest.$ac_ext <<_ACEOF
29156/* confdefs.h. */
29157_ACEOF
29158cat confdefs.h >>conftest.$ac_ext
29159cat >>conftest.$ac_ext <<_ACEOF
29160/* end confdefs.h. */
29161#include <$ac_header>
29162_ACEOF
29163if { (ac_try="$ac_cpp conftest.$ac_ext"
29164case "(($ac_try" in
29165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29166 *) ac_try_echo=$ac_try;;
29167esac
29168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29169$as_echo "$ac_try_echo") >&5
29170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29171 ac_status=$?
29172 grep -v '^ *+' conftest.er1 >conftest.err
29173 rm -f conftest.er1
29174 cat conftest.err >&5
29175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29176 (exit $ac_status); } >/dev/null && {
29177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29178 test ! -s conftest.err
29179 }; then
29180 ac_header_preproc=yes
29181else
29182 $as_echo "$as_me: failed program was:" >&5
29183sed 's/^/| /' conftest.$ac_ext >&5
29184
29185 ac_header_preproc=no
29186fi
29187
29188rm -f conftest.err conftest.$ac_ext
29189{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29190$as_echo "$ac_header_preproc" >&6; }
29191
29192# So? What about this header?
29193case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29194 yes:no: )
29195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29196$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29198$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29199 ac_header_preproc=yes
29200 ;;
29201 no:yes:* )
29202 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29203$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29204 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29205$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29206 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29207$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29208 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29209$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29210 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29211$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29212 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29213$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29214 ( cat <<\_ASBOX
29215## ----------------------------------------- ##
29216## Report this to http://www.imagemagick.org ##
29217## ----------------------------------------- ##
29218_ASBOX
29219 ) | sed "s/^/$as_me: WARNING: /" >&2
29220 ;;
29221esac
29222{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29223$as_echo_n "checking for $ac_header... " >&6; }
29224if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29225 $as_echo_n "(cached) " >&6
29226else
29227 eval "$as_ac_Header=\$ac_header_preproc"
29228fi
29229ac_res=`eval 'as_val=${'$as_ac_Header'}
29230 $as_echo "$as_val"'`
29231 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29232$as_echo "$ac_res" >&6; }
29233
29234fi
29235as_val=`eval 'as_val=${'$as_ac_Header'}
29236 $as_echo "$as_val"'`
29237 if test "x$as_val" = x""yes; then
29238 cat >>confdefs.h <<_ACEOF
29239#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29240_ACEOF
29241
29242fi
29243
29244done
29245
29246
29247
29248for ac_func in fork vfork
29249do
29250as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29251{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29252$as_echo_n "checking for $ac_func... " >&6; }
29253if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29254 $as_echo_n "(cached) " >&6
29255else
29256 cat >conftest.$ac_ext <<_ACEOF
29257/* confdefs.h. */
29258_ACEOF
29259cat confdefs.h >>conftest.$ac_ext
29260cat >>conftest.$ac_ext <<_ACEOF
29261/* end confdefs.h. */
29262/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
29264#define $ac_func innocuous_$ac_func
29265
29266/* System header to define __stub macros and hopefully few prototypes,
29267 which can conflict with char $ac_func (); below.
29268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29269 <limits.h> exists even on freestanding compilers. */
29270
29271#ifdef __STDC__
29272# include <limits.h>
29273#else
29274# include <assert.h>
29275#endif
29276
29277#undef $ac_func
29278
29279/* Override any GCC internal prototype to avoid an error.
29280 Use char because int might match the return type of a GCC
29281 builtin and then its argument prototype would still apply. */
29282#ifdef __cplusplus
29283extern "C"
29284#endif
29285char $ac_func ();
29286/* The GNU C library defines this for functions which it implements
29287 to always fail with ENOSYS. Some functions are actually named
29288 something starting with __ and the normal name is an alias. */
29289#if defined __stub_$ac_func || defined __stub___$ac_func
29290choke me
29291#endif
29292
29293int
29294main ()
29295{
29296return $ac_func ();
29297 ;
29298 return 0;
29299}
29300_ACEOF
29301rm -f conftest.$ac_objext conftest$ac_exeext
29302if { (ac_try="$ac_link"
29303case "(($ac_try" in
29304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29305 *) ac_try_echo=$ac_try;;
29306esac
29307eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29308$as_echo "$ac_try_echo") >&5
29309 (eval "$ac_link") 2>conftest.er1
29310 ac_status=$?
29311 grep -v '^ *+' conftest.er1 >conftest.err
29312 rm -f conftest.er1
29313 cat conftest.err >&5
29314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29315 (exit $ac_status); } && {
29316 test -z "$ac_c_werror_flag" ||
29317 test ! -s conftest.err
29318 } && test -s conftest$ac_exeext && {
29319 test "$cross_compiling" = yes ||
29320 $as_test_x conftest$ac_exeext
29321 }; then
29322 eval "$as_ac_var=yes"
29323else
29324 $as_echo "$as_me: failed program was:" >&5
29325sed 's/^/| /' conftest.$ac_ext >&5
29326
29327 eval "$as_ac_var=no"
29328fi
29329
29330rm -rf conftest.dSYM
29331rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29332 conftest$ac_exeext conftest.$ac_ext
29333fi
29334ac_res=`eval 'as_val=${'$as_ac_var'}
29335 $as_echo "$as_val"'`
29336 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29337$as_echo "$ac_res" >&6; }
29338as_val=`eval 'as_val=${'$as_ac_var'}
29339 $as_echo "$as_val"'`
29340 if test "x$as_val" = x""yes; then
29341 cat >>confdefs.h <<_ACEOF
29342#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29343_ACEOF
29344
29345fi
29346done
29347
29348if test "x$ac_cv_func_fork" = xyes; then
29349 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
29350$as_echo_n "checking for working fork... " >&6; }
29351if test "${ac_cv_func_fork_works+set}" = set; then
29352 $as_echo_n "(cached) " >&6
29353else
29354 if test "$cross_compiling" = yes; then
29355 ac_cv_func_fork_works=cross
29356else
29357 cat >conftest.$ac_ext <<_ACEOF
29358/* confdefs.h. */
29359_ACEOF
29360cat confdefs.h >>conftest.$ac_ext
29361cat >>conftest.$ac_ext <<_ACEOF
29362/* end confdefs.h. */
29363$ac_includes_default
29364int
29365main ()
29366{
29367
29368 /* By Ruediger Kuhlmann. */
29369 return fork () < 0;
29370
29371 ;
29372 return 0;
29373}
29374_ACEOF
29375rm -f conftest$ac_exeext
29376if { (ac_try="$ac_link"
29377case "(($ac_try" in
29378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29379 *) ac_try_echo=$ac_try;;
29380esac
29381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29382$as_echo "$ac_try_echo") >&5
29383 (eval "$ac_link") 2>&5
29384 ac_status=$?
29385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29387 { (case "(($ac_try" in
29388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29389 *) ac_try_echo=$ac_try;;
29390esac
29391eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29392$as_echo "$ac_try_echo") >&5
29393 (eval "$ac_try") 2>&5
29394 ac_status=$?
29395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29396 (exit $ac_status); }; }; then
29397 ac_cv_func_fork_works=yes
29398else
29399 $as_echo "$as_me: program exited with status $ac_status" >&5
29400$as_echo "$as_me: failed program was:" >&5
29401sed 's/^/| /' conftest.$ac_ext >&5
29402
29403( exit $ac_status )
29404ac_cv_func_fork_works=no
29405fi
29406rm -rf conftest.dSYM
29407rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29408fi
29409
29410
29411fi
29412{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
29413$as_echo "$ac_cv_func_fork_works" >&6; }
29414
29415else
29416 ac_cv_func_fork_works=$ac_cv_func_fork
29417fi
29418if test "x$ac_cv_func_fork_works" = xcross; then
29419 case $host in
29420 *-*-amigaos* | *-*-msdosdjgpp*)
29421 # Override, as these systems have only a dummy fork() stub
29422 ac_cv_func_fork_works=no
29423 ;;
29424 *)
29425 ac_cv_func_fork_works=yes
29426 ;;
29427 esac
29428 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
29429$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
29430fi
29431ac_cv_func_vfork_works=$ac_cv_func_vfork
29432if test "x$ac_cv_func_vfork" = xyes; then
29433 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
29434$as_echo_n "checking for working vfork... " >&6; }
29435if test "${ac_cv_func_vfork_works+set}" = set; then
29436 $as_echo_n "(cached) " >&6
29437else
29438 if test "$cross_compiling" = yes; then
29439 ac_cv_func_vfork_works=cross
29440else
29441 cat >conftest.$ac_ext <<_ACEOF
29442/* confdefs.h. */
29443_ACEOF
29444cat confdefs.h >>conftest.$ac_ext
29445cat >>conftest.$ac_ext <<_ACEOF
29446/* end confdefs.h. */
29447/* Thanks to Paul Eggert for this test. */
29448$ac_includes_default
29449#include <sys/wait.h>
29450#ifdef HAVE_VFORK_H
29451# include <vfork.h>
29452#endif
29453/* On some sparc systems, changes by the child to local and incoming
29454 argument registers are propagated back to the parent. The compiler
29455 is told about this with #include <vfork.h>, but some compilers
29456 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
29457 static variable whose address is put into a register that is
29458 clobbered by the vfork. */
29459static void
29460#ifdef __cplusplus
29461sparc_address_test (int arg)
29462# else
29463sparc_address_test (arg) int arg;
29464#endif
29465{
29466 static pid_t child;
29467 if (!child) {
29468 child = vfork ();
29469 if (child < 0) {
29470 perror ("vfork");
29471 _exit(2);
29472 }
29473 if (!child) {
29474 arg = getpid();
29475 write(-1, "", 0);
29476 _exit (arg);
29477 }
29478 }
29479}
29480
29481int
29482main ()
29483{
29484 pid_t parent = getpid ();
29485 pid_t child;
29486
29487 sparc_address_test (0);
29488
29489 child = vfork ();
29490
29491 if (child == 0) {
29492 /* Here is another test for sparc vfork register problems. This
29493 test uses lots of local variables, at least as many local
29494 variables as main has allocated so far including compiler
29495 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
29496 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
29497 reuse the register of parent for one of the local variables,
29498 since it will think that parent can't possibly be used any more
29499 in this routine. Assigning to the local variable will thus
29500 munge parent in the parent process. */
29501 pid_t
29502 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
29503 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
29504 /* Convince the compiler that p..p7 are live; otherwise, it might
29505 use the same hardware register for all 8 local variables. */
29506 if (p != p1 || p != p2 || p != p3 || p != p4
29507 || p != p5 || p != p6 || p != p7)
29508 _exit(1);
29509
29510 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
29511 from child file descriptors. If the child closes a descriptor
29512 before it execs or exits, this munges the parent's descriptor
29513 as well. Test for this by closing stdout in the child. */
29514 _exit(close(fileno(stdout)) != 0);
29515 } else {
29516 int status;
29517 struct stat st;
29518
29519 while (wait(&status) != child)
29520 ;
29521 return (
29522 /* Was there some problem with vforking? */
29523 child < 0
29524
29525 /* Did the child fail? (This shouldn't happen.) */
29526 || status
29527
29528 /* Did the vfork/compiler bug occur? */
29529 || parent != getpid()
29530
29531 /* Did the file descriptor bug occur? */
29532 || fstat(fileno(stdout), &st) != 0
29533 );
29534 }
29535}
29536_ACEOF
29537rm -f conftest$ac_exeext
29538if { (ac_try="$ac_link"
29539case "(($ac_try" in
29540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29541 *) ac_try_echo=$ac_try;;
29542esac
29543eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29544$as_echo "$ac_try_echo") >&5
29545 (eval "$ac_link") 2>&5
29546 ac_status=$?
29547 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29548 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29549 { (case "(($ac_try" in
29550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29551 *) ac_try_echo=$ac_try;;
29552esac
29553eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29554$as_echo "$ac_try_echo") >&5
29555 (eval "$ac_try") 2>&5
29556 ac_status=$?
29557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29558 (exit $ac_status); }; }; then
29559 ac_cv_func_vfork_works=yes
29560else
29561 $as_echo "$as_me: program exited with status $ac_status" >&5
29562$as_echo "$as_me: failed program was:" >&5
29563sed 's/^/| /' conftest.$ac_ext >&5
29564
29565( exit $ac_status )
29566ac_cv_func_vfork_works=no
29567fi
29568rm -rf conftest.dSYM
29569rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29570fi
29571
29572
29573fi
29574{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
29575$as_echo "$ac_cv_func_vfork_works" >&6; }
29576
29577fi;
29578if test "x$ac_cv_func_fork_works" = xcross; then
29579 ac_cv_func_vfork_works=$ac_cv_func_vfork
29580 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
29581$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
29582fi
29583
29584if test "x$ac_cv_func_vfork_works" = xyes; then
29585
29586cat >>confdefs.h <<\_ACEOF
29587#define HAVE_WORKING_VFORK 1
29588_ACEOF
29589
29590else
29591
29592cat >>confdefs.h <<\_ACEOF
29593#define vfork fork
29594_ACEOF
29595
29596fi
29597if test "x$ac_cv_func_fork_works" = xyes; then
29598
29599cat >>confdefs.h <<\_ACEOF
29600#define HAVE_WORKING_FORK 1
29601_ACEOF
29602
29603fi
29604
29605{ $as_echo "$as_me:$LINENO: checking for working memcmp" >&5
29606$as_echo_n "checking for working memcmp... " >&6; }
29607if test "${ac_cv_func_memcmp_working+set}" = set; then
29608 $as_echo_n "(cached) " >&6
29609else
29610 if test "$cross_compiling" = yes; then
29611 ac_cv_func_memcmp_working=no
29612else
29613 cat >conftest.$ac_ext <<_ACEOF
29614/* confdefs.h. */
29615_ACEOF
29616cat confdefs.h >>conftest.$ac_ext
29617cat >>conftest.$ac_ext <<_ACEOF
29618/* end confdefs.h. */
29619$ac_includes_default
29620int
29621main ()
29622{
29623
29624 /* Some versions of memcmp are not 8-bit clean. */
29625 char c0 = '\100', c1 = '\200', c2 = '\201';
29626 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
29627 return 1;
29628
29629 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
29630 or more and with at least one buffer not starting on a 4-byte boundary.
29631 William Lewis provided this test program. */
29632 {
29633 char foo[21];
29634 char bar[21];
29635 int i;
29636 for (i = 0; i < 4; i++)
29637 {
29638 char *a = foo + i;
29639 char *b = bar + i;
29640 strcpy (a, "--------01111111");
29641 strcpy (b, "--------10000000");
29642 if (memcmp (a, b, 16) >= 0)
29643 return 1;
29644 }
29645 return 0;
29646 }
29647
29648 ;
29649 return 0;
29650}
29651_ACEOF
29652rm -f conftest$ac_exeext
29653if { (ac_try="$ac_link"
29654case "(($ac_try" in
29655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29656 *) ac_try_echo=$ac_try;;
29657esac
29658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29659$as_echo "$ac_try_echo") >&5
29660 (eval "$ac_link") 2>&5
29661 ac_status=$?
29662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29663 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29664 { (case "(($ac_try" in
29665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29666 *) ac_try_echo=$ac_try;;
29667esac
29668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29669$as_echo "$ac_try_echo") >&5
29670 (eval "$ac_try") 2>&5
29671 ac_status=$?
29672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29673 (exit $ac_status); }; }; then
29674 ac_cv_func_memcmp_working=yes
29675else
29676 $as_echo "$as_me: program exited with status $ac_status" >&5
29677$as_echo "$as_me: failed program was:" >&5
29678sed 's/^/| /' conftest.$ac_ext >&5
29679
29680( exit $ac_status )
29681ac_cv_func_memcmp_working=no
29682fi
29683rm -rf conftest.dSYM
29684rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29685fi
29686
29687
29688fi
29689{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
29690$as_echo "$ac_cv_func_memcmp_working" >&6; }
29691test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
29692 *" memcmp.$ac_objext "* ) ;;
29693 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
29694 ;;
29695esac
29696
29697
29698
29699
29700for ac_header in sys/select.h sys/socket.h
29701do
29702as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29703if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29704 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29705$as_echo_n "checking for $ac_header... " >&6; }
29706if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29707 $as_echo_n "(cached) " >&6
29708fi
29709ac_res=`eval 'as_val=${'$as_ac_Header'}
29710 $as_echo "$as_val"'`
29711 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29712$as_echo "$ac_res" >&6; }
29713else
29714 # Is the header compilable?
29715{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29716$as_echo_n "checking $ac_header usability... " >&6; }
29717cat >conftest.$ac_ext <<_ACEOF
29718/* confdefs.h. */
29719_ACEOF
29720cat confdefs.h >>conftest.$ac_ext
29721cat >>conftest.$ac_ext <<_ACEOF
29722/* end confdefs.h. */
29723$ac_includes_default
29724#include <$ac_header>
29725_ACEOF
29726rm -f conftest.$ac_objext
29727if { (ac_try="$ac_compile"
29728case "(($ac_try" in
29729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29730 *) ac_try_echo=$ac_try;;
29731esac
29732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29733$as_echo "$ac_try_echo") >&5
29734 (eval "$ac_compile") 2>conftest.er1
29735 ac_status=$?
29736 grep -v '^ *+' conftest.er1 >conftest.err
29737 rm -f conftest.er1
29738 cat conftest.err >&5
29739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29740 (exit $ac_status); } && {
29741 test -z "$ac_c_werror_flag" ||
29742 test ! -s conftest.err
29743 } && test -s conftest.$ac_objext; then
29744 ac_header_compiler=yes
29745else
29746 $as_echo "$as_me: failed program was:" >&5
29747sed 's/^/| /' conftest.$ac_ext >&5
29748
29749 ac_header_compiler=no
29750fi
29751
29752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29753{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29754$as_echo "$ac_header_compiler" >&6; }
29755
29756# Is the header present?
29757{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29758$as_echo_n "checking $ac_header presence... " >&6; }
29759cat >conftest.$ac_ext <<_ACEOF
29760/* confdefs.h. */
29761_ACEOF
29762cat confdefs.h >>conftest.$ac_ext
29763cat >>conftest.$ac_ext <<_ACEOF
29764/* end confdefs.h. */
29765#include <$ac_header>
29766_ACEOF
29767if { (ac_try="$ac_cpp conftest.$ac_ext"
29768case "(($ac_try" in
29769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29770 *) ac_try_echo=$ac_try;;
29771esac
29772eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29773$as_echo "$ac_try_echo") >&5
29774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29775 ac_status=$?
29776 grep -v '^ *+' conftest.er1 >conftest.err
29777 rm -f conftest.er1
29778 cat conftest.err >&5
29779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29780 (exit $ac_status); } >/dev/null && {
29781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29782 test ! -s conftest.err
29783 }; then
29784 ac_header_preproc=yes
29785else
29786 $as_echo "$as_me: failed program was:" >&5
29787sed 's/^/| /' conftest.$ac_ext >&5
29788
29789 ac_header_preproc=no
29790fi
29791
29792rm -f conftest.err conftest.$ac_ext
29793{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29794$as_echo "$ac_header_preproc" >&6; }
29795
29796# So? What about this header?
29797case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29798 yes:no: )
29799 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29800$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29801 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29802$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29803 ac_header_preproc=yes
29804 ;;
29805 no:yes:* )
29806 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29807$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29808 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
29809$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
29810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29811$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
29813$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
29814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29815$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29817$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29818 ( cat <<\_ASBOX
29819## ----------------------------------------- ##
29820## Report this to http://www.imagemagick.org ##
29821## ----------------------------------------- ##
29822_ASBOX
29823 ) | sed "s/^/$as_me: WARNING: /" >&2
29824 ;;
29825esac
29826{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29827$as_echo_n "checking for $ac_header... " >&6; }
29828if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29829 $as_echo_n "(cached) " >&6
29830else
29831 eval "$as_ac_Header=\$ac_header_preproc"
29832fi
29833ac_res=`eval 'as_val=${'$as_ac_Header'}
29834 $as_echo "$as_val"'`
29835 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29836$as_echo "$ac_res" >&6; }
29837
29838fi
29839as_val=`eval 'as_val=${'$as_ac_Header'}
29840 $as_echo "$as_val"'`
29841 if test "x$as_val" = x""yes; then
29842 cat >>confdefs.h <<_ACEOF
29843#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29844_ACEOF
29845
29846fi
29847
29848done
29849
29850{ $as_echo "$as_me:$LINENO: checking types of arguments for select" >&5
29851$as_echo_n "checking types of arguments for select... " >&6; }
29852if test "${ac_cv_func_select_args+set}" = set; then
29853 $as_echo_n "(cached) " >&6
29854else
29855 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
29856 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
29857 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
29858 cat >conftest.$ac_ext <<_ACEOF
29859/* confdefs.h. */
29860_ACEOF
29861cat confdefs.h >>conftest.$ac_ext
29862cat >>conftest.$ac_ext <<_ACEOF
29863/* end confdefs.h. */
29864$ac_includes_default
29865#ifdef HAVE_SYS_SELECT_H
29866# include <sys/select.h>
29867#endif
29868#ifdef HAVE_SYS_SOCKET_H
29869# include <sys/socket.h>
29870#endif
29871
29872int
29873main ()
29874{
29875extern int select ($ac_arg1,
29876 $ac_arg234, $ac_arg234, $ac_arg234,
29877 $ac_arg5);
29878 ;
29879 return 0;
29880}
29881_ACEOF
29882rm -f conftest.$ac_objext
29883if { (ac_try="$ac_compile"
29884case "(($ac_try" in
29885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29886 *) ac_try_echo=$ac_try;;
29887esac
29888eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29889$as_echo "$ac_try_echo") >&5
29890 (eval "$ac_compile") 2>conftest.er1
29891 ac_status=$?
29892 grep -v '^ *+' conftest.er1 >conftest.err
29893 rm -f conftest.er1
29894 cat conftest.err >&5
29895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896 (exit $ac_status); } && {
29897 test -z "$ac_c_werror_flag" ||
29898 test ! -s conftest.err
29899 } && test -s conftest.$ac_objext; then
29900 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
29901else
29902 $as_echo "$as_me: failed program was:" >&5
29903sed 's/^/| /' conftest.$ac_ext >&5
29904
29905
29906fi
29907
29908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29909 done
29910 done
29911done
29912# Provide a safe default value.
29913: ${ac_cv_func_select_args='int,int *,struct timeval *'}
29914
29915fi
29916{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
29917$as_echo "$ac_cv_func_select_args" >&6; }
29918ac_save_IFS=$IFS; IFS=','
29919set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
29920IFS=$ac_save_IFS
29921shift
29922
29923cat >>confdefs.h <<_ACEOF
29924#define SELECT_TYPE_ARG1 $1
29925_ACEOF
29926
29927
29928cat >>confdefs.h <<_ACEOF
29929#define SELECT_TYPE_ARG234 ($2)
29930_ACEOF
29931
29932
29933cat >>confdefs.h <<_ACEOF
29934#define SELECT_TYPE_ARG5 ($3)
29935_ACEOF
29936
29937rm -f conftest*
29938
29939if test "${ac_cv_func_setvbuf_reversed+set}" = set; then
29940 $as_echo_n "(cached) " >&6
29941else
29942 ac_cv_func_setvbuf_reversed=no
29943fi
29944
29945
29946{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
29947$as_echo_n "checking return type of signal handlers... " >&6; }
29948if test "${ac_cv_type_signal+set}" = set; then
29949 $as_echo_n "(cached) " >&6
29950else
29951 cat >conftest.$ac_ext <<_ACEOF
29952/* confdefs.h. */
29953_ACEOF
29954cat confdefs.h >>conftest.$ac_ext
29955cat >>conftest.$ac_ext <<_ACEOF
29956/* end confdefs.h. */
29957#include <sys/types.h>
29958#include <signal.h>
29959
29960int
29961main ()
29962{
29963return *(signal (0, 0)) (0) == 1;
29964 ;
29965 return 0;
29966}
29967_ACEOF
29968rm -f conftest.$ac_objext
29969if { (ac_try="$ac_compile"
29970case "(($ac_try" in
29971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29972 *) ac_try_echo=$ac_try;;
29973esac
29974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29975$as_echo "$ac_try_echo") >&5
29976 (eval "$ac_compile") 2>conftest.er1
29977 ac_status=$?
29978 grep -v '^ *+' conftest.er1 >conftest.err
29979 rm -f conftest.er1
29980 cat conftest.err >&5
29981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29982 (exit $ac_status); } && {
29983 test -z "$ac_c_werror_flag" ||
29984 test ! -s conftest.err
29985 } && test -s conftest.$ac_objext; then
29986 ac_cv_type_signal=int
29987else
29988 $as_echo "$as_me: failed program was:" >&5
29989sed 's/^/| /' conftest.$ac_ext >&5
29990
29991 ac_cv_type_signal=void
29992fi
29993
29994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29995fi
29996{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
29997$as_echo "$ac_cv_type_signal" >&6; }
29998
29999cat >>confdefs.h <<_ACEOF
30000#define RETSIGTYPE $ac_cv_type_signal
30001_ACEOF
30002
30003
30004{ $as_echo "$as_me:$LINENO: checking for working strtod" >&5
30005$as_echo_n "checking for working strtod... " >&6; }
30006if test "${ac_cv_func_strtod+set}" = set; then
30007 $as_echo_n "(cached) " >&6
30008else
30009 if test "$cross_compiling" = yes; then
30010 ac_cv_func_strtod=no
30011else
30012 cat >conftest.$ac_ext <<_ACEOF
30013/* confdefs.h. */
30014_ACEOF
30015cat confdefs.h >>conftest.$ac_ext
30016cat >>conftest.$ac_ext <<_ACEOF
30017/* end confdefs.h. */
30018
30019$ac_includes_default
30020#ifndef strtod
30021double strtod ();
30022#endif
30023int
30024main()
30025{
30026 {
30027 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
30028 char *string = " +69";
30029 char *term;
30030 double value;
30031 value = strtod (string, &term);
30032 if (value != 69 || term != (string + 4))
30033 return 1;
30034 }
30035
30036 {
30037 /* Under Solaris 2.4, strtod returns the wrong value for the
30038 terminating character under some conditions. */
30039 char *string = "NaN";
30040 char *term;
30041 strtod (string, &term);
30042 if (term != string && *(term - 1) == 0)
30043 return 1;
30044 }
30045 return 0;
30046}
30047
30048_ACEOF
30049rm -f conftest$ac_exeext
30050if { (ac_try="$ac_link"
30051case "(($ac_try" in
30052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30053 *) ac_try_echo=$ac_try;;
30054esac
30055eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30056$as_echo "$ac_try_echo") >&5
30057 (eval "$ac_link") 2>&5
30058 ac_status=$?
30059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30060 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30061 { (case "(($ac_try" in
30062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30063 *) ac_try_echo=$ac_try;;
30064esac
30065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30066$as_echo "$ac_try_echo") >&5
30067 (eval "$ac_try") 2>&5
30068 ac_status=$?
30069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30070 (exit $ac_status); }; }; then
30071 ac_cv_func_strtod=yes
30072else
30073 $as_echo "$as_me: program exited with status $ac_status" >&5
30074$as_echo "$as_me: failed program was:" >&5
30075sed 's/^/| /' conftest.$ac_ext >&5
30076
30077( exit $ac_status )
30078ac_cv_func_strtod=no
30079fi
30080rm -rf conftest.dSYM
30081rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30082fi
30083
30084
30085fi
30086{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_strtod" >&5
30087$as_echo "$ac_cv_func_strtod" >&6; }
30088if test $ac_cv_func_strtod = no; then
30089 case " $LIBOBJS " in
30090 *" strtod.$ac_objext "* ) ;;
30091 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
30092 ;;
30093esac
30094
30095{ $as_echo "$as_me:$LINENO: checking for pow" >&5
30096$as_echo_n "checking for pow... " >&6; }
30097if test "${ac_cv_func_pow+set}" = set; then
30098 $as_echo_n "(cached) " >&6
30099else
30100 cat >conftest.$ac_ext <<_ACEOF
30101/* confdefs.h. */
30102_ACEOF
30103cat confdefs.h >>conftest.$ac_ext
30104cat >>conftest.$ac_ext <<_ACEOF
30105/* end confdefs.h. */
30106/* Define pow to an innocuous variant, in case <limits.h> declares pow.
30107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30108#define pow innocuous_pow
30109
30110/* System header to define __stub macros and hopefully few prototypes,
30111 which can conflict with char pow (); below.
30112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30113 <limits.h> exists even on freestanding compilers. */
30114
30115#ifdef __STDC__
30116# include <limits.h>
30117#else
30118# include <assert.h>
30119#endif
30120
30121#undef pow
30122
30123/* Override any GCC internal prototype to avoid an error.
30124 Use char because int might match the return type of a GCC
30125 builtin and then its argument prototype would still apply. */
30126#ifdef __cplusplus
30127extern "C"
30128#endif
30129char pow ();
30130/* The GNU C library defines this for functions which it implements
30131 to always fail with ENOSYS. Some functions are actually named
30132 something starting with __ and the normal name is an alias. */
30133#if defined __stub_pow || defined __stub___pow
30134choke me
30135#endif
30136
30137int
30138main ()
30139{
30140return pow ();
30141 ;
30142 return 0;
30143}
30144_ACEOF
30145rm -f conftest.$ac_objext conftest$ac_exeext
30146if { (ac_try="$ac_link"
30147case "(($ac_try" in
30148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30149 *) ac_try_echo=$ac_try;;
30150esac
30151eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30152$as_echo "$ac_try_echo") >&5
30153 (eval "$ac_link") 2>conftest.er1
30154 ac_status=$?
30155 grep -v '^ *+' conftest.er1 >conftest.err
30156 rm -f conftest.er1
30157 cat conftest.err >&5
30158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30159 (exit $ac_status); } && {
30160 test -z "$ac_c_werror_flag" ||
30161 test ! -s conftest.err
30162 } && test -s conftest$ac_exeext && {
30163 test "$cross_compiling" = yes ||
30164 $as_test_x conftest$ac_exeext
30165 }; then
30166 ac_cv_func_pow=yes
30167else
30168 $as_echo "$as_me: failed program was:" >&5
30169sed 's/^/| /' conftest.$ac_ext >&5
30170
30171 ac_cv_func_pow=no
30172fi
30173
30174rm -rf conftest.dSYM
30175rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30176 conftest$ac_exeext conftest.$ac_ext
30177fi
30178{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_pow" >&5
30179$as_echo "$ac_cv_func_pow" >&6; }
30180
30181if test $ac_cv_func_pow = no; then
30182 { $as_echo "$as_me:$LINENO: checking for pow in -lm" >&5
30183$as_echo_n "checking for pow in -lm... " >&6; }
30184if test "${ac_cv_lib_m_pow+set}" = set; then
30185 $as_echo_n "(cached) " >&6
30186else
30187 ac_check_lib_save_LIBS=$LIBS
30188LIBS="-lm $LIBS"
30189cat >conftest.$ac_ext <<_ACEOF
30190/* confdefs.h. */
30191_ACEOF
30192cat confdefs.h >>conftest.$ac_ext
30193cat >>conftest.$ac_ext <<_ACEOF
30194/* end confdefs.h. */
30195
30196/* Override any GCC internal prototype to avoid an error.
30197 Use char because int might match the return type of a GCC
30198 builtin and then its argument prototype would still apply. */
30199#ifdef __cplusplus
30200extern "C"
30201#endif
30202char pow ();
30203int
30204main ()
30205{
30206return pow ();
30207 ;
30208 return 0;
30209}
30210_ACEOF
30211rm -f conftest.$ac_objext conftest$ac_exeext
30212if { (ac_try="$ac_link"
30213case "(($ac_try" in
30214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30215 *) ac_try_echo=$ac_try;;
30216esac
30217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30218$as_echo "$ac_try_echo") >&5
30219 (eval "$ac_link") 2>conftest.er1
30220 ac_status=$?
30221 grep -v '^ *+' conftest.er1 >conftest.err
30222 rm -f conftest.er1
30223 cat conftest.err >&5
30224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225 (exit $ac_status); } && {
30226 test -z "$ac_c_werror_flag" ||
30227 test ! -s conftest.err
30228 } && test -s conftest$ac_exeext && {
30229 test "$cross_compiling" = yes ||
30230 $as_test_x conftest$ac_exeext
30231 }; then
30232 ac_cv_lib_m_pow=yes
30233else
30234 $as_echo "$as_me: failed program was:" >&5
30235sed 's/^/| /' conftest.$ac_ext >&5
30236
30237 ac_cv_lib_m_pow=no
30238fi
30239
30240rm -rf conftest.dSYM
30241rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30242 conftest$ac_exeext conftest.$ac_ext
30243LIBS=$ac_check_lib_save_LIBS
30244fi
30245{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_pow" >&5
30246$as_echo "$ac_cv_lib_m_pow" >&6; }
30247if test "x$ac_cv_lib_m_pow" = x""yes; then
30248 POW_LIB=-lm
30249else
30250 { $as_echo "$as_me:$LINENO: WARNING: cannot find library containing definition of pow" >&5
30251$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
30252fi
30253
30254fi
30255
30256fi
30257
30258
30259for ac_func in vprintf
30260do
30261as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30262{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30263$as_echo_n "checking for $ac_func... " >&6; }
30264if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30265 $as_echo_n "(cached) " >&6
30266else
30267 cat >conftest.$ac_ext <<_ACEOF
30268/* confdefs.h. */
30269_ACEOF
30270cat confdefs.h >>conftest.$ac_ext
30271cat >>conftest.$ac_ext <<_ACEOF
30272/* end confdefs.h. */
30273/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30274 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30275#define $ac_func innocuous_$ac_func
30276
30277/* System header to define __stub macros and hopefully few prototypes,
30278 which can conflict with char $ac_func (); below.
30279 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30280 <limits.h> exists even on freestanding compilers. */
30281
30282#ifdef __STDC__
30283# include <limits.h>
30284#else
30285# include <assert.h>
30286#endif
30287
30288#undef $ac_func
30289
30290/* Override any GCC internal prototype to avoid an error.
30291 Use char because int might match the return type of a GCC
30292 builtin and then its argument prototype would still apply. */
30293#ifdef __cplusplus
30294extern "C"
30295#endif
30296char $ac_func ();
30297/* The GNU C library defines this for functions which it implements
30298 to always fail with ENOSYS. Some functions are actually named
30299 something starting with __ and the normal name is an alias. */
30300#if defined __stub_$ac_func || defined __stub___$ac_func
30301choke me
30302#endif
30303
30304int
30305main ()
30306{
30307return $ac_func ();
30308 ;
30309 return 0;
30310}
30311_ACEOF
30312rm -f conftest.$ac_objext conftest$ac_exeext
30313if { (ac_try="$ac_link"
30314case "(($ac_try" in
30315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30316 *) ac_try_echo=$ac_try;;
30317esac
30318eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30319$as_echo "$ac_try_echo") >&5
30320 (eval "$ac_link") 2>conftest.er1
30321 ac_status=$?
30322 grep -v '^ *+' conftest.er1 >conftest.err
30323 rm -f conftest.er1
30324 cat conftest.err >&5
30325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30326 (exit $ac_status); } && {
30327 test -z "$ac_c_werror_flag" ||
30328 test ! -s conftest.err
30329 } && test -s conftest$ac_exeext && {
30330 test "$cross_compiling" = yes ||
30331 $as_test_x conftest$ac_exeext
30332 }; then
30333 eval "$as_ac_var=yes"
30334else
30335 $as_echo "$as_me: failed program was:" >&5
30336sed 's/^/| /' conftest.$ac_ext >&5
30337
30338 eval "$as_ac_var=no"
30339fi
30340
30341rm -rf conftest.dSYM
30342rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30343 conftest$ac_exeext conftest.$ac_ext
30344fi
30345ac_res=`eval 'as_val=${'$as_ac_var'}
30346 $as_echo "$as_val"'`
30347 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30348$as_echo "$ac_res" >&6; }
30349as_val=`eval 'as_val=${'$as_ac_var'}
30350 $as_echo "$as_val"'`
30351 if test "x$as_val" = x""yes; then
30352 cat >>confdefs.h <<_ACEOF
30353#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30354_ACEOF
30355
30356{ $as_echo "$as_me:$LINENO: checking for _doprnt" >&5
30357$as_echo_n "checking for _doprnt... " >&6; }
30358if test "${ac_cv_func__doprnt+set}" = set; then
30359 $as_echo_n "(cached) " >&6
30360else
30361 cat >conftest.$ac_ext <<_ACEOF
30362/* confdefs.h. */
30363_ACEOF
30364cat confdefs.h >>conftest.$ac_ext
30365cat >>conftest.$ac_ext <<_ACEOF
30366/* end confdefs.h. */
30367/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
30368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30369#define _doprnt innocuous__doprnt
30370
30371/* System header to define __stub macros and hopefully few prototypes,
30372 which can conflict with char _doprnt (); below.
30373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30374 <limits.h> exists even on freestanding compilers. */
30375
30376#ifdef __STDC__
30377# include <limits.h>
30378#else
30379# include <assert.h>
30380#endif
30381
30382#undef _doprnt
30383
30384/* Override any GCC internal prototype to avoid an error.
30385 Use char because int might match the return type of a GCC
30386 builtin and then its argument prototype would still apply. */
30387#ifdef __cplusplus
30388extern "C"
30389#endif
30390char _doprnt ();
30391/* The GNU C library defines this for functions which it implements
30392 to always fail with ENOSYS. Some functions are actually named
30393 something starting with __ and the normal name is an alias. */
30394#if defined __stub__doprnt || defined __stub____doprnt
30395choke me
30396#endif
30397
30398int
30399main ()
30400{
30401return _doprnt ();
30402 ;
30403 return 0;
30404}
30405_ACEOF
30406rm -f conftest.$ac_objext conftest$ac_exeext
30407if { (ac_try="$ac_link"
30408case "(($ac_try" in
30409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30410 *) ac_try_echo=$ac_try;;
30411esac
30412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30413$as_echo "$ac_try_echo") >&5
30414 (eval "$ac_link") 2>conftest.er1
30415 ac_status=$?
30416 grep -v '^ *+' conftest.er1 >conftest.err
30417 rm -f conftest.er1
30418 cat conftest.err >&5
30419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30420 (exit $ac_status); } && {
30421 test -z "$ac_c_werror_flag" ||
30422 test ! -s conftest.err
30423 } && test -s conftest$ac_exeext && {
30424 test "$cross_compiling" = yes ||
30425 $as_test_x conftest$ac_exeext
30426 }; then
30427 ac_cv_func__doprnt=yes
30428else
30429 $as_echo "$as_me: failed program was:" >&5
30430sed 's/^/| /' conftest.$ac_ext >&5
30431
30432 ac_cv_func__doprnt=no
30433fi
30434
30435rm -rf conftest.dSYM
30436rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30437 conftest$ac_exeext conftest.$ac_ext
30438fi
30439{ $as_echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
30440$as_echo "$ac_cv_func__doprnt" >&6; }
30441if test "x$ac_cv_func__doprnt" = x""yes; then
30442
30443cat >>confdefs.h <<\_ACEOF
30444#define HAVE_DOPRNT 1
30445_ACEOF
30446
30447fi
30448
30449fi
30450done
30451
30452
30453
30454
30455
30456
30457
30458
30459
30460
30461
30462
30463
30464
30465
30466
30467
30468
30469
30470
30471
30472
30473
30474
30475
30476
30477
30478
30479
30480
30481
30482
30483
30484
30485
30486
30487
30488
30489
30490
30491
30492
30493
30494
30495
30496
30497
30498
30499
30500
30501
30502
30503
30504
30505
30506
30507
30508
30509
30510
30511
30512
30513
30514
30515
30516
30517
30518
30519
30520
30521
30522
30523
30524
30525
30526
30527
30528
30529for ac_func in _exit atexit clock clock_gettime directio execvp floor fork ftime ftruncate getcwd getpid getexecname getdtablesize getpagesize getrusage gettimeofday gmtime_r localtime_r lstat memmove memset mkstemp munmap _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign pow pread pwrite raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strerror_r strrchr strcspn strdup strpbrk strspn strstr strtol symlink sysconf sigemptyset sigaction strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times usleep vsprintf vsnprintf waitpid _wfopen _wstat
30530do
30531as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30532{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30533$as_echo_n "checking for $ac_func... " >&6; }
30534if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30535 $as_echo_n "(cached) " >&6
30536else
30537 cat >conftest.$ac_ext <<_ACEOF
30538/* confdefs.h. */
30539_ACEOF
30540cat confdefs.h >>conftest.$ac_ext
30541cat >>conftest.$ac_ext <<_ACEOF
30542/* end confdefs.h. */
30543/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30544 For example, HP-UX 11i <limits.h> declares gettimeofday. */
30545#define $ac_func innocuous_$ac_func
30546
30547/* System header to define __stub macros and hopefully few prototypes,
30548 which can conflict with char $ac_func (); below.
30549 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30550 <limits.h> exists even on freestanding compilers. */
30551
30552#ifdef __STDC__
30553# include <limits.h>
30554#else
30555# include <assert.h>
30556#endif
30557
30558#undef $ac_func
30559
30560/* Override any GCC internal prototype to avoid an error.
30561 Use char because int might match the return type of a GCC
30562 builtin and then its argument prototype would still apply. */
30563#ifdef __cplusplus
30564extern "C"
30565#endif
30566char $ac_func ();
30567/* The GNU C library defines this for functions which it implements
30568 to always fail with ENOSYS. Some functions are actually named
30569 something starting with __ and the normal name is an alias. */
30570#if defined __stub_$ac_func || defined __stub___$ac_func
30571choke me
30572#endif
30573
30574int
30575main ()
30576{
30577return $ac_func ();
30578 ;
30579 return 0;
30580}
30581_ACEOF
30582rm -f conftest.$ac_objext conftest$ac_exeext
30583if { (ac_try="$ac_link"
30584case "(($ac_try" in
30585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30586 *) ac_try_echo=$ac_try;;
30587esac
30588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30589$as_echo "$ac_try_echo") >&5
30590 (eval "$ac_link") 2>conftest.er1
30591 ac_status=$?
30592 grep -v '^ *+' conftest.er1 >conftest.err
30593 rm -f conftest.er1
30594 cat conftest.err >&5
30595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30596 (exit $ac_status); } && {
30597 test -z "$ac_c_werror_flag" ||
30598 test ! -s conftest.err
30599 } && test -s conftest$ac_exeext && {
30600 test "$cross_compiling" = yes ||
30601 $as_test_x conftest$ac_exeext
30602 }; then
30603 eval "$as_ac_var=yes"
30604else
30605 $as_echo "$as_me: failed program was:" >&5
30606sed 's/^/| /' conftest.$ac_ext >&5
30607
30608 eval "$as_ac_var=no"
30609fi
30610
30611rm -rf conftest.dSYM
30612rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30613 conftest$ac_exeext conftest.$ac_ext
30614fi
30615ac_res=`eval 'as_val=${'$as_ac_var'}
30616 $as_echo "$as_val"'`
30617 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30618$as_echo "$ac_res" >&6; }
30619as_val=`eval 'as_val=${'$as_ac_var'}
30620 $as_echo "$as_val"'`
30621 if test "x$as_val" = x""yes; then
30622 cat >>confdefs.h <<_ACEOF
30623#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30624_ACEOF
30625
30626fi
30627done
30628
30629
30630########
30631#
30632# Check for function prototypes
30633#
30634########
30635
30636{ $as_echo "$as_me:$LINENO: checking whether pread is declared" >&5
30637$as_echo_n "checking whether pread is declared... " >&6; }
30638if test "${ac_cv_have_decl_pread+set}" = set; then
30639 $as_echo_n "(cached) " >&6
30640else
30641 cat >conftest.$ac_ext <<_ACEOF
30642/* confdefs.h. */
30643_ACEOF
30644cat confdefs.h >>conftest.$ac_ext
30645cat >>conftest.$ac_ext <<_ACEOF
30646/* end confdefs.h. */
30647
30648#include <unistd.h>
30649
30650int
30651main ()
30652{
30653#ifndef pread
30654 (void) pread;
30655#endif
30656
30657 ;
30658 return 0;
30659}
30660_ACEOF
30661rm -f conftest.$ac_objext
30662if { (ac_try="$ac_compile"
30663case "(($ac_try" in
30664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30665 *) ac_try_echo=$ac_try;;
30666esac
30667eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30668$as_echo "$ac_try_echo") >&5
30669 (eval "$ac_compile") 2>conftest.er1
30670 ac_status=$?
30671 grep -v '^ *+' conftest.er1 >conftest.err
30672 rm -f conftest.er1
30673 cat conftest.err >&5
30674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675 (exit $ac_status); } && {
30676 test -z "$ac_c_werror_flag" ||
30677 test ! -s conftest.err
30678 } && test -s conftest.$ac_objext; then
30679 ac_cv_have_decl_pread=yes
30680else
30681 $as_echo "$as_me: failed program was:" >&5
30682sed 's/^/| /' conftest.$ac_ext >&5
30683
30684 ac_cv_have_decl_pread=no
30685fi
30686
30687rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30688fi
30689{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_pread" >&5
30690$as_echo "$ac_cv_have_decl_pread" >&6; }
30691if test "x$ac_cv_have_decl_pread" = x""yes; then
30692
30693cat >>confdefs.h <<_ACEOF
30694#define HAVE_DECL_PREAD 1
30695_ACEOF
30696
30697
30698else
30699 cat >>confdefs.h <<_ACEOF
30700#define HAVE_DECL_PREAD 0
30701_ACEOF
30702
30703
30704fi
30705{ $as_echo "$as_me:$LINENO: checking whether pwrite is declared" >&5
30706$as_echo_n "checking whether pwrite is declared... " >&6; }
30707if test "${ac_cv_have_decl_pwrite+set}" = set; then
30708 $as_echo_n "(cached) " >&6
30709else
30710 cat >conftest.$ac_ext <<_ACEOF
30711/* confdefs.h. */
30712_ACEOF
30713cat confdefs.h >>conftest.$ac_ext
30714cat >>conftest.$ac_ext <<_ACEOF
30715/* end confdefs.h. */
30716
30717#include <unistd.h>
30718
30719int
30720main ()
30721{
30722#ifndef pwrite
30723 (void) pwrite;
30724#endif
30725
30726 ;
30727 return 0;
30728}
30729_ACEOF
30730rm -f conftest.$ac_objext
30731if { (ac_try="$ac_compile"
30732case "(($ac_try" in
30733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30734 *) ac_try_echo=$ac_try;;
30735esac
30736eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30737$as_echo "$ac_try_echo") >&5
30738 (eval "$ac_compile") 2>conftest.er1
30739 ac_status=$?
30740 grep -v '^ *+' conftest.er1 >conftest.err
30741 rm -f conftest.er1
30742 cat conftest.err >&5
30743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30744 (exit $ac_status); } && {
30745 test -z "$ac_c_werror_flag" ||
30746 test ! -s conftest.err
30747 } && test -s conftest.$ac_objext; then
30748 ac_cv_have_decl_pwrite=yes
30749else
30750 $as_echo "$as_me: failed program was:" >&5
30751sed 's/^/| /' conftest.$ac_ext >&5
30752
30753 ac_cv_have_decl_pwrite=no
30754fi
30755
30756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30757fi
30758{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_pwrite" >&5
30759$as_echo "$ac_cv_have_decl_pwrite" >&6; }
30760if test "x$ac_cv_have_decl_pwrite" = x""yes; then
30761
30762cat >>confdefs.h <<_ACEOF
30763#define HAVE_DECL_PWRITE 1
30764_ACEOF
30765
30766
30767else
30768 cat >>confdefs.h <<_ACEOF
30769#define HAVE_DECL_PWRITE 0
30770_ACEOF
30771
30772
30773fi
30774
30775
30776
30777{ $as_echo "$as_me:$LINENO: checking whether strlcpy is declared" >&5
30778$as_echo_n "checking whether strlcpy is declared... " >&6; }
30779if test "${ac_cv_have_decl_strlcpy+set}" = set; then
30780 $as_echo_n "(cached) " >&6
30781else
30782 cat >conftest.$ac_ext <<_ACEOF
30783/* confdefs.h. */
30784_ACEOF
30785cat confdefs.h >>conftest.$ac_ext
30786cat >>conftest.$ac_ext <<_ACEOF
30787/* end confdefs.h. */
30788
30789#include <strings.h>
30790
30791int
30792main ()
30793{
30794#ifndef strlcpy
30795 (void) strlcpy;
30796#endif
30797
30798 ;
30799 return 0;
30800}
30801_ACEOF
30802rm -f conftest.$ac_objext
30803if { (ac_try="$ac_compile"
30804case "(($ac_try" in
30805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30806 *) ac_try_echo=$ac_try;;
30807esac
30808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30809$as_echo "$ac_try_echo") >&5
30810 (eval "$ac_compile") 2>conftest.er1
30811 ac_status=$?
30812 grep -v '^ *+' conftest.er1 >conftest.err
30813 rm -f conftest.er1
30814 cat conftest.err >&5
30815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30816 (exit $ac_status); } && {
30817 test -z "$ac_c_werror_flag" ||
30818 test ! -s conftest.err
30819 } && test -s conftest.$ac_objext; then
30820 ac_cv_have_decl_strlcpy=yes
30821else
30822 $as_echo "$as_me: failed program was:" >&5
30823sed 's/^/| /' conftest.$ac_ext >&5
30824
30825 ac_cv_have_decl_strlcpy=no
30826fi
30827
30828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30829fi
30830{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strlcpy" >&5
30831$as_echo "$ac_cv_have_decl_strlcpy" >&6; }
30832if test "x$ac_cv_have_decl_strlcpy" = x""yes; then
30833
30834cat >>confdefs.h <<_ACEOF
30835#define HAVE_DECL_STRLCPY 1
30836_ACEOF
30837
30838
30839else
30840 cat >>confdefs.h <<_ACEOF
30841#define HAVE_DECL_STRLCPY 0
30842_ACEOF
30843
30844
30845fi
30846
30847
30848
30849{ $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
30850$as_echo_n "checking whether vsnprintf is declared... " >&6; }
30851if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
30852 $as_echo_n "(cached) " >&6
30853else
30854 cat >conftest.$ac_ext <<_ACEOF
30855/* confdefs.h. */
30856_ACEOF
30857cat confdefs.h >>conftest.$ac_ext
30858cat >>conftest.$ac_ext <<_ACEOF
30859/* end confdefs.h. */
30860
30861#include <stdio.h>
30862#include <stdarg.h>
30863
30864int
30865main ()
30866{
30867#ifndef vsnprintf
30868 (void) vsnprintf;
30869#endif
30870
30871 ;
30872 return 0;
30873}
30874_ACEOF
30875rm -f conftest.$ac_objext
30876if { (ac_try="$ac_compile"
30877case "(($ac_try" in
30878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30879 *) ac_try_echo=$ac_try;;
30880esac
30881eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30882$as_echo "$ac_try_echo") >&5
30883 (eval "$ac_compile") 2>conftest.er1
30884 ac_status=$?
30885 grep -v '^ *+' conftest.er1 >conftest.err
30886 rm -f conftest.er1
30887 cat conftest.err >&5
30888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30889 (exit $ac_status); } && {
30890 test -z "$ac_c_werror_flag" ||
30891 test ! -s conftest.err
30892 } && test -s conftest.$ac_objext; then
30893 ac_cv_have_decl_vsnprintf=yes
30894else
30895 $as_echo "$as_me: failed program was:" >&5
30896sed 's/^/| /' conftest.$ac_ext >&5
30897
30898 ac_cv_have_decl_vsnprintf=no
30899fi
30900
30901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30902fi
30903{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
30904$as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
30905if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
30906
30907cat >>confdefs.h <<_ACEOF
30908#define HAVE_DECL_VSNPRINTF 1
30909_ACEOF
30910
30911
30912else
30913 cat >>confdefs.h <<_ACEOF
30914#define HAVE_DECL_VSNPRINTF 0
30915_ACEOF
30916
30917
30918fi
30919
30920
30921
30922########
30923#
30924# C++ Support Tests (For Magick++)
30925#
30926########
30927have_magick_plus_plus='no'
30928if test "$with_magick_plus_plus" = 'yes'; then
30929 OLIBS="$LIBS"
30930 LIBS=''
30931 ac_ext=cpp
30932ac_cpp='$CXXCPP $CPPFLAGS'
30933ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30934ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30935ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30936
30937
30938 # Full set of headers used...
30939 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
30940 # functional iomanip iosfwd iostream iterator list string strstream utility
30941 ac_ext=cpp
30942ac_cpp='$CXXCPP $CPPFLAGS'
30943ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30944ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30945ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30946
30947 ac_ext=cpp
30948ac_cpp='$CXXCPP $CPPFLAGS'
30949ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30950ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30951ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30952if test -z "$CXX"; then
30953 if test -n "$CCC"; then
30954 CXX=$CCC
30955 else
30956 if test -n "$ac_tool_prefix"; then
30957 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
30958 do
30959 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
30960set dummy $ac_tool_prefix$ac_prog; ac_word=$2
30961{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
30962$as_echo_n "checking for $ac_word... " >&6; }
30963if test "${ac_cv_prog_CXX+set}" = set; then
30964 $as_echo_n "(cached) " >&6
30965else
30966 if test -n "$CXX"; then
30967 ac_cv_prog_CXX="$CXX" # Let the user override the test.
30968else
30969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30970for as_dir in $PATH
30971do
30972 IFS=$as_save_IFS
30973 test -z "$as_dir" && as_dir=.
30974 for ac_exec_ext in '' $ac_executable_extensions; do
30975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30976 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
30977 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30978 break 2
30979 fi
30980done
30981done
30982IFS=$as_save_IFS
30983
30984fi
30985fi
30986CXX=$ac_cv_prog_CXX
30987if test -n "$CXX"; then
30988 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
30989$as_echo "$CXX" >&6; }
30990else
30991 { $as_echo "$as_me:$LINENO: result: no" >&5
30992$as_echo "no" >&6; }
30993fi
30994
30995
30996 test -n "$CXX" && break
30997 done
30998fi
30999if test -z "$CXX"; then
31000 ac_ct_CXX=$CXX
31001 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
31002do
31003 # Extract the first word of "$ac_prog", so it can be a program name with args.
31004set dummy $ac_prog; ac_word=$2
31005{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
31006$as_echo_n "checking for $ac_word... " >&6; }
31007if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
31008 $as_echo_n "(cached) " >&6
31009else
31010 if test -n "$ac_ct_CXX"; then
31011 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
31012else
31013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31014for as_dir in $PATH
31015do
31016 IFS=$as_save_IFS
31017 test -z "$as_dir" && as_dir=.
31018 for ac_exec_ext in '' $ac_executable_extensions; do
31019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31020 ac_cv_prog_ac_ct_CXX="$ac_prog"
31021 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31022 break 2
31023 fi
31024done
31025done
31026IFS=$as_save_IFS
31027
31028fi
31029fi
31030ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
31031if test -n "$ac_ct_CXX"; then
31032 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
31033$as_echo "$ac_ct_CXX" >&6; }
31034else
31035 { $as_echo "$as_me:$LINENO: result: no" >&5
31036$as_echo "no" >&6; }
31037fi
31038
31039
31040 test -n "$ac_ct_CXX" && break
31041done
31042
31043 if test "x$ac_ct_CXX" = x; then
31044 CXX="g++"
31045 else
31046 case $cross_compiling:$ac_tool_warned in
31047yes:)
31048{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
31049$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31050ac_tool_warned=yes ;;
31051esac
31052 CXX=$ac_ct_CXX
31053 fi
31054fi
31055
31056 fi
31057fi
31058# Provide some information about the compiler.
31059$as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
31060set X $ac_compile
31061ac_compiler=$2
31062{ (ac_try="$ac_compiler --version >&5"
31063case "(($ac_try" in
31064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31065 *) ac_try_echo=$ac_try;;
31066esac
31067eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31068$as_echo "$ac_try_echo") >&5
31069 (eval "$ac_compiler --version >&5") 2>&5
31070 ac_status=$?
31071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31072 (exit $ac_status); }
31073{ (ac_try="$ac_compiler -v >&5"
31074case "(($ac_try" in
31075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31076 *) ac_try_echo=$ac_try;;
31077esac
31078eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31079$as_echo "$ac_try_echo") >&5
31080 (eval "$ac_compiler -v >&5") 2>&5
31081 ac_status=$?
31082 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31083 (exit $ac_status); }
31084{ (ac_try="$ac_compiler -V >&5"
31085case "(($ac_try" in
31086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31087 *) ac_try_echo=$ac_try;;
31088esac
31089eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31090$as_echo "$ac_try_echo") >&5
31091 (eval "$ac_compiler -V >&5") 2>&5
31092 ac_status=$?
31093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31094 (exit $ac_status); }
31095
31096{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
31097$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
31098if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
31099 $as_echo_n "(cached) " >&6
31100else
31101 cat >conftest.$ac_ext <<_ACEOF
31102/* confdefs.h. */
31103_ACEOF
31104cat confdefs.h >>conftest.$ac_ext
31105cat >>conftest.$ac_ext <<_ACEOF
31106/* end confdefs.h. */
31107
31108int
31109main ()
31110{
31111#ifndef __GNUC__
31112 choke me
31113#endif
31114
31115 ;
31116 return 0;
31117}
31118_ACEOF
31119rm -f conftest.$ac_objext
31120if { (ac_try="$ac_compile"
31121case "(($ac_try" in
31122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31123 *) ac_try_echo=$ac_try;;
31124esac
31125eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31126$as_echo "$ac_try_echo") >&5
31127 (eval "$ac_compile") 2>conftest.er1
31128 ac_status=$?
31129 grep -v '^ *+' conftest.er1 >conftest.err
31130 rm -f conftest.er1
31131 cat conftest.err >&5
31132 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31133 (exit $ac_status); } && {
31134 test -z "$ac_cxx_werror_flag" ||
31135 test ! -s conftest.err
31136 } && test -s conftest.$ac_objext; then
31137 ac_compiler_gnu=yes
31138else
31139 $as_echo "$as_me: failed program was:" >&5
31140sed 's/^/| /' conftest.$ac_ext >&5
31141
31142 ac_compiler_gnu=no
31143fi
31144
31145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31146ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
31147
31148fi
31149{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
31150$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
31151if test $ac_compiler_gnu = yes; then
31152 GXX=yes
31153else
31154 GXX=
31155fi
31156ac_test_CXXFLAGS=${CXXFLAGS+set}
31157ac_save_CXXFLAGS=$CXXFLAGS
31158{ $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
31159$as_echo_n "checking whether $CXX accepts -g... " >&6; }
31160if test "${ac_cv_prog_cxx_g+set}" = set; then
31161 $as_echo_n "(cached) " >&6
31162else
31163 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
31164 ac_cxx_werror_flag=yes
31165 ac_cv_prog_cxx_g=no
31166 CXXFLAGS="-g"
31167 cat >conftest.$ac_ext <<_ACEOF
31168/* confdefs.h. */
31169_ACEOF
31170cat confdefs.h >>conftest.$ac_ext
31171cat >>conftest.$ac_ext <<_ACEOF
31172/* end confdefs.h. */
31173
31174int
31175main ()
31176{
31177
31178 ;
31179 return 0;
31180}
31181_ACEOF
31182rm -f conftest.$ac_objext
31183if { (ac_try="$ac_compile"
31184case "(($ac_try" in
31185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31186 *) ac_try_echo=$ac_try;;
31187esac
31188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31189$as_echo "$ac_try_echo") >&5
31190 (eval "$ac_compile") 2>conftest.er1
31191 ac_status=$?
31192 grep -v '^ *+' conftest.er1 >conftest.err
31193 rm -f conftest.er1
31194 cat conftest.err >&5
31195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31196 (exit $ac_status); } && {
31197 test -z "$ac_cxx_werror_flag" ||
31198 test ! -s conftest.err
31199 } && test -s conftest.$ac_objext; then
31200 ac_cv_prog_cxx_g=yes
31201else
31202 $as_echo "$as_me: failed program was:" >&5
31203sed 's/^/| /' conftest.$ac_ext >&5
31204
31205 CXXFLAGS=""
31206 cat >conftest.$ac_ext <<_ACEOF
31207/* confdefs.h. */
31208_ACEOF
31209cat confdefs.h >>conftest.$ac_ext
31210cat >>conftest.$ac_ext <<_ACEOF
31211/* end confdefs.h. */
31212
31213int
31214main ()
31215{
31216
31217 ;
31218 return 0;
31219}
31220_ACEOF
31221rm -f conftest.$ac_objext
31222if { (ac_try="$ac_compile"
31223case "(($ac_try" in
31224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31225 *) ac_try_echo=$ac_try;;
31226esac
31227eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31228$as_echo "$ac_try_echo") >&5
31229 (eval "$ac_compile") 2>conftest.er1
31230 ac_status=$?
31231 grep -v '^ *+' conftest.er1 >conftest.err
31232 rm -f conftest.er1
31233 cat conftest.err >&5
31234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31235 (exit $ac_status); } && {
31236 test -z "$ac_cxx_werror_flag" ||
31237 test ! -s conftest.err
31238 } && test -s conftest.$ac_objext; then
31239 :
31240else
31241 $as_echo "$as_me: failed program was:" >&5
31242sed 's/^/| /' conftest.$ac_ext >&5
31243
31244 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
31245 CXXFLAGS="-g"
31246 cat >conftest.$ac_ext <<_ACEOF
31247/* confdefs.h. */
31248_ACEOF
31249cat confdefs.h >>conftest.$ac_ext
31250cat >>conftest.$ac_ext <<_ACEOF
31251/* end confdefs.h. */
31252
31253int
31254main ()
31255{
31256
31257 ;
31258 return 0;
31259}
31260_ACEOF
31261rm -f conftest.$ac_objext
31262if { (ac_try="$ac_compile"
31263case "(($ac_try" in
31264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31265 *) ac_try_echo=$ac_try;;
31266esac
31267eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31268$as_echo "$ac_try_echo") >&5
31269 (eval "$ac_compile") 2>conftest.er1
31270 ac_status=$?
31271 grep -v '^ *+' conftest.er1 >conftest.err
31272 rm -f conftest.er1
31273 cat conftest.err >&5
31274 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31275 (exit $ac_status); } && {
31276 test -z "$ac_cxx_werror_flag" ||
31277 test ! -s conftest.err
31278 } && test -s conftest.$ac_objext; then
31279 ac_cv_prog_cxx_g=yes
31280else
31281 $as_echo "$as_me: failed program was:" >&5
31282sed 's/^/| /' conftest.$ac_ext >&5
31283
31284
31285fi
31286
31287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31288fi
31289
31290rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31291fi
31292
31293rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31294 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
31295fi
31296{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
31297$as_echo "$ac_cv_prog_cxx_g" >&6; }
31298if test "$ac_test_CXXFLAGS" = set; then
31299 CXXFLAGS=$ac_save_CXXFLAGS
31300elif test $ac_cv_prog_cxx_g = yes; then
31301 if test "$GXX" = yes; then
31302 CXXFLAGS="-g -O2"
31303 else
31304 CXXFLAGS="-g"
31305 fi
31306else
31307 if test "$GXX" = yes; then
31308 CXXFLAGS="-O2"
31309 else
31310 CXXFLAGS=
31311 fi
31312fi
31313ac_ext=cpp
31314ac_cpp='$CXXCPP $CPPFLAGS'
31315ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31316ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31317ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31318
31319depcc="$CXX" am_compiler_list=
31320
31321{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
31322$as_echo_n "checking dependency style of $depcc... " >&6; }
31323if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
31324 $as_echo_n "(cached) " >&6
31325else
31326 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
31327 # We make a subdir and do the tests there. Otherwise we can end up
31328 # making bogus files that we don't know about and never remove. For
31329 # instance it was reported that on HP-UX the gcc test will end up
31330 # making a dummy file named `D' -- because `-MD' means `put the output
31331 # in D'.
31332 mkdir conftest.dir
31333 # Copy depcomp to subdir because otherwise we won't find it if we're
31334 # using a relative directory.
31335 cp "$am_depcomp" conftest.dir
31336 cd conftest.dir
31337 # We will build objects and dependencies in a subdirectory because
31338 # it helps to detect inapplicable dependency modes. For instance
31339 # both Tru64's cc and ICC support -MD to output dependencies as a
31340 # side effect of compilation, but ICC will put the dependencies in
31341 # the current directory while Tru64 will put them in the object
31342 # directory.
31343 mkdir sub
31344
31345 am_cv_CXX_dependencies_compiler_type=none
31346 if test "$am_compiler_list" = ""; then
31347 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
31348 fi
31349 am__universal=false
31350 case " $depcc " in #(
31351 *\ -arch\ *\ -arch\ *) am__universal=true ;;
31352 esac
31353
31354 for depmode in $am_compiler_list; do
31355 # Setup a source with many dependencies, because some compilers
31356 # like to wrap large dependency lists on column 80 (with \), and
31357 # we should not choose a depcomp mode which is confused by this.
31358 #
31359 # We need to recreate these files for each test, as the compiler may
31360 # overwrite some of them when testing with obscure command lines.
31361 # This happens at least with the AIX C compiler.
31362 : > sub/conftest.c
31363 for i in 1 2 3 4 5 6; do
31364 echo '#include "conftst'$i'.h"' >> sub/conftest.c
31365 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
31366 # Solaris 8's {/usr,}/bin/sh.
31367 touch sub/conftst$i.h
31368 done
31369 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
31370
31371 # We check with `-c' and `-o' for the sake of the "dashmstdout"
31372 # mode. It turns out that the SunPro C++ compiler does not properly
31373 # handle `-M -o', and we need to detect this. Also, some Intel
31374 # versions had trouble with output in subdirs
31375 am__obj=sub/conftest.${OBJEXT-o}
31376 am__minus_obj="-o $am__obj"
31377 case $depmode in
31378 gcc)
31379 # This depmode causes a compiler race in universal mode.
31380 test "$am__universal" = false || continue
31381 ;;
31382 nosideeffect)
31383 # after this tag, mechanisms are not by side-effect, so they'll
31384 # only be used when explicitly requested
31385 if test "x$enable_dependency_tracking" = xyes; then
31386 continue
31387 else
31388 break
31389 fi
31390 ;;
31391 msvisualcpp | msvcmsys)
31392 # This compiler won't grok `-c -o', but also, the minuso test has
31393 # not run yet. These depmodes are late enough in the game, and
31394 # so weak that their functioning should not be impacted.
31395 am__obj=conftest.${OBJEXT-o}
31396 am__minus_obj=
31397 ;;
31398 none) break ;;
31399 esac
31400 if depmode=$depmode \
31401 source=sub/conftest.c object=$am__obj \
31402 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
31403 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
31404 >/dev/null 2>conftest.err &&
31405 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
31406 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
31407 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
31408 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
31409 # icc doesn't choke on unknown options, it will just issue warnings
31410 # or remarks (even with -Werror). So we grep stderr for any message
31411 # that says an option was ignored or not supported.
31412 # When given -MP, icc 7.0 and 7.1 complain thusly:
31413 # icc: Command line warning: ignoring option '-M'; no argument required
31414 # The diagnosis changed in icc 8.0:
31415 # icc: Command line remark: option '-MP' not supported
31416 if (grep 'ignoring option' conftest.err ||
31417 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
31418 am_cv_CXX_dependencies_compiler_type=$depmode
31419 break
31420 fi
31421 fi
31422 done
31423
31424 cd ..
31425 rm -rf conftest.dir
31426else
31427 am_cv_CXX_dependencies_compiler_type=none
31428fi
31429
31430fi
31431{ $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
31432$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
31433CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
31434
31435 if
31436 test "x$enable_dependency_tracking" != xno \
31437 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
31438 am__fastdepCXX_TRUE=
31439 am__fastdepCXX_FALSE='#'
31440else
31441 am__fastdepCXX_TRUE='#'
31442 am__fastdepCXX_FALSE=
31443fi
31444
31445
31446 { $as_echo "$as_me:$LINENO: checking whether the compiler recognizes bool as a built-in type" >&5
31447$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
31448if test "${ac_cv_cxx_have_bool+set}" = set; then
31449 $as_echo_n "(cached) " >&6
31450else
31451
31452 ac_ext=cpp
31453ac_cpp='$CXXCPP $CPPFLAGS'
31454ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31455ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31456ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31457
31458 cat >conftest.$ac_ext <<_ACEOF
31459/* confdefs.h. */
31460_ACEOF
31461cat confdefs.h >>conftest.$ac_ext
31462cat >>conftest.$ac_ext <<_ACEOF
31463/* end confdefs.h. */
31464
31465int f(int x){return 1;}
31466int f(char x){return 1;}
31467int f(bool x){return 1;}
31468
31469int
31470main ()
31471{
31472bool b = true; return f(b);
31473 ;
31474 return 0;
31475}
31476_ACEOF
31477rm -f conftest.$ac_objext
31478if { (ac_try="$ac_compile"
31479case "(($ac_try" in
31480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31481 *) ac_try_echo=$ac_try;;
31482esac
31483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31484$as_echo "$ac_try_echo") >&5
31485 (eval "$ac_compile") 2>conftest.er1
31486 ac_status=$?
31487 grep -v '^ *+' conftest.er1 >conftest.err
31488 rm -f conftest.er1
31489 cat conftest.err >&5
31490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31491 (exit $ac_status); } && {
31492 test -z "$ac_cxx_werror_flag" ||
31493 test ! -s conftest.err
31494 } && test -s conftest.$ac_objext; then
31495 ac_cv_cxx_have_bool=yes
31496else
31497 $as_echo "$as_me: failed program was:" >&5
31498sed 's/^/| /' conftest.$ac_ext >&5
31499
31500 ac_cv_cxx_have_bool=no
31501fi
31502
31503rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31504 ac_ext=cpp
31505ac_cpp='$CXXCPP $CPPFLAGS'
31506ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31507ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31508ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31509
31510
31511fi
31512{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_bool" >&5
31513$as_echo "$ac_cv_cxx_have_bool" >&6; }
31514if test "$ac_cv_cxx_have_bool" = yes; then
31515
31516cat >>confdefs.h <<\_ACEOF
31517#define HAVE_BOOL /**/
31518_ACEOF
31519
31520fi
31521
31522 { $as_echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
31523$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
31524if test "${ac_cv_cxx_have_namespaces+set}" = set; then
31525 $as_echo_n "(cached) " >&6
31526else
31527
31528 ac_ext=cpp
31529ac_cpp='$CXXCPP $CPPFLAGS'
31530ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31531ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31532ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31533
31534 cat >conftest.$ac_ext <<_ACEOF
31535/* confdefs.h. */
31536_ACEOF
31537cat confdefs.h >>conftest.$ac_ext
31538cat >>conftest.$ac_ext <<_ACEOF
31539/* end confdefs.h. */
31540namespace Outer { namespace Inner { int i = 0; }}
31541int
31542main ()
31543{
31544using namespace Outer::Inner; return i;
31545 ;
31546 return 0;
31547}
31548_ACEOF
31549rm -f conftest.$ac_objext
31550if { (ac_try="$ac_compile"
31551case "(($ac_try" in
31552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31553 *) ac_try_echo=$ac_try;;
31554esac
31555eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31556$as_echo "$ac_try_echo") >&5
31557 (eval "$ac_compile") 2>conftest.er1
31558 ac_status=$?
31559 grep -v '^ *+' conftest.er1 >conftest.err
31560 rm -f conftest.er1
31561 cat conftest.err >&5
31562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31563 (exit $ac_status); } && {
31564 test -z "$ac_cxx_werror_flag" ||
31565 test ! -s conftest.err
31566 } && test -s conftest.$ac_objext; then
31567 ac_cv_cxx_have_namespaces=yes
31568else
31569 $as_echo "$as_me: failed program was:" >&5
31570sed 's/^/| /' conftest.$ac_ext >&5
31571
31572 ac_cv_cxx_have_namespaces=no
31573fi
31574
31575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31576 ac_ext=cpp
31577ac_cpp='$CXXCPP $CPPFLAGS'
31578ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31579ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31580ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31581
31582
31583fi
31584{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_namespaces" >&5
31585$as_echo "$ac_cv_cxx_have_namespaces" >&6; }
31586if test "$ac_cv_cxx_have_namespaces" = yes; then
31587
31588cat >>confdefs.h <<\_ACEOF
31589#define HAVE_NAMESPACES /**/
31590_ACEOF
31591
31592fi
31593
31594 { $as_echo "$as_me:$LINENO: checking whether the compiler supports the std namespace" >&5
31595$as_echo_n "checking whether the compiler supports the std namespace... " >&6; }
31596if test "${ac_cv_cxx_have_std_namespace+set}" = set; then
31597 $as_echo_n "(cached) " >&6
31598else
31599
31600 ac_ext=cpp
31601ac_cpp='$CXXCPP $CPPFLAGS'
31602ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31603ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31604ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31605
31606 cat >conftest.$ac_ext <<_ACEOF
31607/* confdefs.h. */
31608_ACEOF
31609cat confdefs.h >>conftest.$ac_ext
31610cat >>conftest.$ac_ext <<_ACEOF
31611/* end confdefs.h. */
31612#include <iostream>
31613 std::istream& is = std::cin;
31614
31615int
31616main ()
31617{
31618return 0;
31619 ;
31620 return 0;
31621}
31622_ACEOF
31623rm -f conftest.$ac_objext
31624if { (ac_try="$ac_compile"
31625case "(($ac_try" in
31626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31627 *) ac_try_echo=$ac_try;;
31628esac
31629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31630$as_echo "$ac_try_echo") >&5
31631 (eval "$ac_compile") 2>conftest.er1
31632 ac_status=$?
31633 grep -v '^ *+' conftest.er1 >conftest.err
31634 rm -f conftest.er1
31635 cat conftest.err >&5
31636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31637 (exit $ac_status); } && {
31638 test -z "$ac_cxx_werror_flag" ||
31639 test ! -s conftest.err
31640 } && test -s conftest.$ac_objext; then
31641 ac_cv_cxx_have_std_namespace=yes
31642else
31643 $as_echo "$as_me: failed program was:" >&5
31644sed 's/^/| /' conftest.$ac_ext >&5
31645
31646 ac_cv_cxx_have_std_namespace=no
31647fi
31648
31649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31650 ac_ext=cpp
31651ac_cpp='$CXXCPP $CPPFLAGS'
31652ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31653ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31654ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31655
31656
31657fi
31658{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_namespace" >&5
31659$as_echo "$ac_cv_cxx_have_std_namespace" >&6; }
31660if test "$ac_cv_cxx_have_std_namespace" = yes; then
31661
31662cat >>confdefs.h <<\_ACEOF
31663#define HAVE_STD_NAMESPACE /**/
31664_ACEOF
31665
31666fi
31667
31668 { $as_echo "$as_me:$LINENO: checking whether the compiler supports ISO C++ standard library" >&5
31669$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
31670if test "${ac_cv_cxx_have_std_libs+set}" = set; then
31671 $as_echo_n "(cached) " >&6
31672else
31673
31674
31675 ac_ext=cpp
31676ac_cpp='$CXXCPP $CPPFLAGS'
31677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31680
31681 cat >conftest.$ac_ext <<_ACEOF
31682/* confdefs.h. */
31683_ACEOF
31684cat confdefs.h >>conftest.$ac_ext
31685cat >>conftest.$ac_ext <<_ACEOF
31686/* end confdefs.h. */
31687#include <iostream>
31688#include <map>
31689#include <iomanip>
31690#include <cmath>
31691#ifdef HAVE_NAMESPACES
31692using namespace std;
31693#endif
31694int
31695main ()
31696{
31697return 0;
31698 ;
31699 return 0;
31700}
31701_ACEOF
31702rm -f conftest.$ac_objext
31703if { (ac_try="$ac_compile"
31704case "(($ac_try" in
31705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31706 *) ac_try_echo=$ac_try;;
31707esac
31708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31709$as_echo "$ac_try_echo") >&5
31710 (eval "$ac_compile") 2>conftest.er1
31711 ac_status=$?
31712 grep -v '^ *+' conftest.er1 >conftest.err
31713 rm -f conftest.er1
31714 cat conftest.err >&5
31715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31716 (exit $ac_status); } && {
31717 test -z "$ac_cxx_werror_flag" ||
31718 test ! -s conftest.err
31719 } && test -s conftest.$ac_objext; then
31720 ac_cv_cxx_have_std_libs=yes
31721else
31722 $as_echo "$as_me: failed program was:" >&5
31723sed 's/^/| /' conftest.$ac_ext >&5
31724
31725 ac_cv_cxx_have_std_libs=no
31726fi
31727
31728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31729 ac_ext=cpp
31730ac_cpp='$CXXCPP $CPPFLAGS'
31731ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31732ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31733ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31734
31735
31736fi
31737{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_std_libs" >&5
31738$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
31739if test "$ac_cv_cxx_have_std_libs" = yes; then
31740
31741cat >>confdefs.h <<\_ACEOF
31742#define HAVE_STD_LIBS /**/
31743_ACEOF
31744
31745fi
31746
31747 { $as_echo "$as_me:$LINENO: checking whether the compiler implements L\"widestring\"" >&5
31748$as_echo_n "checking whether the compiler implements L\"widestring\"... " >&6; }
31749if test "${ac_cv_cxx_have_lstring+set}" = set; then
31750 $as_echo_n "(cached) " >&6
31751else
31752
31753 ac_ext=cpp
31754ac_cpp='$CXXCPP $CPPFLAGS'
31755ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31756ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31757ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31758
31759 cat >conftest.$ac_ext <<_ACEOF
31760/* confdefs.h. */
31761_ACEOF
31762cat confdefs.h >>conftest.$ac_ext
31763cat >>conftest.$ac_ext <<_ACEOF
31764/* end confdefs.h. */
31765const wchar_t* s=L"wide string";
31766_ACEOF
31767rm -f conftest.$ac_objext
31768if { (ac_try="$ac_compile"
31769case "(($ac_try" in
31770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31771 *) ac_try_echo=$ac_try;;
31772esac
31773eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31774$as_echo "$ac_try_echo") >&5
31775 (eval "$ac_compile") 2>conftest.er1
31776 ac_status=$?
31777 grep -v '^ *+' conftest.er1 >conftest.err
31778 rm -f conftest.er1
31779 cat conftest.err >&5
31780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31781 (exit $ac_status); } && {
31782 test -z "$ac_cxx_werror_flag" ||
31783 test ! -s conftest.err
31784 } && test -s conftest.$ac_objext; then
31785 ac_cv_cxx_have_lstring=yes
31786else
31787 $as_echo "$as_me: failed program was:" >&5
31788sed 's/^/| /' conftest.$ac_ext >&5
31789
31790 ac_cv_cxx_have_lstring=no
31791fi
31792
31793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31794 ac_ext=cpp
31795ac_cpp='$CXXCPP $CPPFLAGS'
31796ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31797ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31798ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
31799
31800
31801fi
31802{ $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_have_lstring" >&5
31803$as_echo "$ac_cv_cxx_have_lstring" >&6; }
31804if test "$ac_cv_cxx_have_lstring" = yes; then
31805
31806cat >>confdefs.h <<\_ACEOF
31807#define HAVE_LSTRING /**/
31808_ACEOF
31809
31810fi
31811
31812
31813 OPENMP_CXXFLAGS=
31814 # Check whether --enable-openmp was given.
31815if test "${enable_openmp+set}" = set; then
31816 enableval=$enable_openmp;
31817fi
31818
31819 if test "$enable_openmp" != no; then
31820 { $as_echo "$as_me:$LINENO: checking for $CC option to support OpenMP" >&5
31821$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
31822if test "${ac_cv_prog_cxx_openmp+set}" = set; then
31823 $as_echo_n "(cached) " >&6
31824else
31825 cat >conftest.$ac_ext <<_ACEOF
31826
31827#ifndef _OPENMP
31828 choke me
31829#endif
31830#include <omp.h>
31831int main () { return omp_get_num_threads (); }
31832
31833_ACEOF
31834rm -f conftest.$ac_objext conftest$ac_exeext
31835if { (ac_try="$ac_link"
31836case "(($ac_try" in
31837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31838 *) ac_try_echo=$ac_try;;
31839esac
31840eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31841$as_echo "$ac_try_echo") >&5
31842 (eval "$ac_link") 2>conftest.er1
31843 ac_status=$?
31844 grep -v '^ *+' conftest.er1 >conftest.err
31845 rm -f conftest.er1
31846 cat conftest.err >&5
31847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31848 (exit $ac_status); } && {
31849 test -z "$ac_cxx_werror_flag" ||
31850 test ! -s conftest.err
31851 } && test -s conftest$ac_exeext && {
31852 test "$cross_compiling" = yes ||
31853 $as_test_x conftest$ac_exeext
31854 }; then
31855 ac_cv_prog_cxx_openmp='none needed'
31856else
31857 $as_echo "$as_me: failed program was:" >&5
31858sed 's/^/| /' conftest.$ac_ext >&5
31859
31860 ac_cv_prog_cxx_openmp='unsupported'
31861 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp; do
31862 ac_save_CXXFLAGS=$CXXFLAGS
31863 CXXFLAGS="$CXXFLAGS $ac_option"
31864 cat >conftest.$ac_ext <<_ACEOF
31865
31866#ifndef _OPENMP
31867 choke me
31868#endif
31869#include <omp.h>
31870int main () { return omp_get_num_threads (); }
31871
31872_ACEOF
31873rm -f conftest.$ac_objext conftest$ac_exeext
31874if { (ac_try="$ac_link"
31875case "(($ac_try" in
31876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31877 *) ac_try_echo=$ac_try;;
31878esac
31879eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31880$as_echo "$ac_try_echo") >&5
31881 (eval "$ac_link") 2>conftest.er1
31882 ac_status=$?
31883 grep -v '^ *+' conftest.er1 >conftest.err
31884 rm -f conftest.er1
31885 cat conftest.err >&5
31886 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31887 (exit $ac_status); } && {
31888 test -z "$ac_cxx_werror_flag" ||
31889 test ! -s conftest.err
31890 } && test -s conftest$ac_exeext && {
31891 test "$cross_compiling" = yes ||
31892 $as_test_x conftest$ac_exeext
31893 }; then
31894 ac_cv_prog_cxx_openmp=$ac_option
31895else
31896 $as_echo "$as_me: failed program was:" >&5
31897sed 's/^/| /' conftest.$ac_ext >&5
31898
31899
31900fi
31901
31902rm -rf conftest.dSYM
31903rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31904 conftest$ac_exeext conftest.$ac_ext
31905 CXXFLAGS=$ac_save_CXXFLAGS
31906 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
31907 break
31908 fi
31909 done
31910fi
31911
31912rm -rf conftest.dSYM
31913rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31914 conftest$ac_exeext conftest.$ac_ext
31915fi
31916{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_openmp" >&5
31917$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
31918 case $ac_cv_prog_cxx_openmp in #(
31919 "none needed" | unsupported)
31920 ;; #(
31921 *)
31922 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
31923 esac
31924 fi
31925
31926
31927 ac_ext=c
31928ac_cpp='$CPP $CPPFLAGS'
31929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
31930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
31931ac_compiler_gnu=$ac_cv_c_compiler_gnu
31932
31933
31934 { $as_echo "$as_me:$LINENO: checking whether C++ compiler is sufficient for Magick++" >&5
31935$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
31936 if \
31937 test $ac_cv_cxx_have_bool = 'yes' && \
31938 test $ac_cv_cxx_have_lstring = 'yes' && \
31939 test $ac_cv_cxx_have_namespaces = 'yes' && \
31940 test $ac_cv_cxx_have_std_libs = 'yes' && \
31941 test $ac_cv_cxx_have_std_namespace = 'yes'; then
31942 have_magick_plus_plus='yes'
31943 else
31944 have_magick_plus_plus='no (failed tests)'
31945 fi
31946 { $as_echo "$as_me:$LINENO: result: $have_magick_plus_plus" >&5
31947$as_echo "$have_magick_plus_plus" >&6; }
31948 LIBS="$OLIBS"
31949fi
31950 if test "$have_magick_plus_plus" = 'yes'; then
31951 WITH_MAGICK_PLUS_PLUS_TRUE=
31952 WITH_MAGICK_PLUS_PLUS_FALSE='#'
31953else
31954 WITH_MAGICK_PLUS_PLUS_TRUE='#'
31955 WITH_MAGICK_PLUS_PLUS_FALSE=
31956fi
31957
31958
31959# Only check for delegate libraries in subdirectories if requested.
31960if test "$enable_delegate_build" != 'no'; then
31961 # Check for delegate sub-directories and add -I & -L options as required.
31962 # This presumes that delegates are installed as detailed in the ImageMagick
31963 # README. If delegates are installed in a standard location where the
31964 # compiler will automatically find them then these options should not be
31965 # required.
31966
31967 #
31968 # Most delegates have includes in the same directory as the library, but not all...
31969 #
31970 # Includes
31971 for dir in bzlib fftw fpx jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include magick png tiff/libtiff ttf/include wand wmf/include xml/include zlib; do
31972 if test -d "$builddir/$dir"; then
31973 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
31974 else
31975 if test -d "$srcdirfull/$dir"; then
31976 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
31977 fi
31978 fi
31979 done
31980
31981 # Libraries
31982 for dir in bzlib fftw fpx jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src magick png tiff/libtiff ttf/objs wand wmf/src xml zlib; do
31983 if test -d "$builddir/$dir/.libs"; then
31984 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
31985 else
31986 if test -d "$srcdirfull/$dir/.libs"; then
31987 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
31988 fi
31989 fi
31990 if test -d "$builddir/$dir"; then
31991 LDFLAGS="$LDFLAGS -L$builddir/$dir"
31992 else
31993 if test -d "$srcdirfull/$dir"; then
31994 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
31995 fi
31996 fi
31997 done
31998fi
31999
32000# Assume that delegate headers reside under same directory as ImageMagick
32001# installation prefix.
32002MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
32003
32004#
32005# Find the X11 RGB database
32006#
32007{ $as_echo "$as_me:$LINENO: checking for X11 configure files" >&5
32008$as_echo_n "checking for X11 configure files... " >&6; }
32009if test "${im_cv_x_configure+set}" = set; then
32010 $as_echo_n "(cached) " >&6
32011else
32012 # Look for the header file in a standard set of common directories.
32013# Check X11 before X11Rn because it is often a symlink to the current release.
32014 for ac_dir in \
32015 /lib/usr/lib/X11 \
32016 /usr/X11/lib \
32017 /usr/X11R4/lib \
32018 /usr/X11R5/lib \
32019 /usr/X11R6/lib \
32020 /usr/X11R7/lib \
32021 /usr/X386/lib \
32022 /usr/XFree86/lib/X11 \
32023 /usr/athena/lib \
32024 /usr/lib \
32025 /usr/lib/X11 \
32026 /usr/lib/X11R4 \
32027 /usr/lib/X11R5 \
32028 /usr/lib/X11R6 \
32029 /usr/lib/X11R7 \
32030 /usr/local/X11/lib \
32031 /usr/local/X11R4/lib \
32032 /usr/local/X11R5/lib \
32033 /usr/local/X11R6/lib \
32034 /usr/local/lib \
32035 /usr/local/lib/X11 \
32036 /usr/local/lib/X11R4 \
32037 /usr/local/lib/X11R5 \
32038 /usr/local/lib/X11R6 \
32039 /usr/local/lib/X11R7 \
32040 /usr/local/x11r5/lib \
32041 /usr/lpp/Xamples/lib \
32042 /usr/openwin/lib \
32043 /usr/openwin/share/lib \
32044 /usr/unsupported/lib \
32045 /usr/x386/lib \
32046 ; do
32047 if test -f "$ac_dir/X11/rgb.txt"; then
32048 im_cv_x_configure="$ac_dir/X11/"
32049 break
32050 elif test -f "$ac_dir/rgb.txt"; then
32051 im_cv_x_configure="$ac_dir/"
32052 break
32053 fi
32054
32055 done
32056fi
32057{ $as_echo "$as_me:$LINENO: result: $im_cv_x_configure" >&5
32058$as_echo "$im_cv_x_configure" >&6; }
32059X11_CONFIGURE_PATH="$im_cv_x_configure"
32060case "${build_os}" in
32061 mingw* )
32062 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
32063 ;;
32064esac
32065
32066cat >>confdefs.h <<_ACEOF
32067#define X11_CONFIGURE_PATH "$X11ConfigurePath"
32068_ACEOF
32069
32070
32071#
32072# Find OpenMP library
32073#
32074GOMP_LIBS=''
32075if test "$enable_openmp" != 'no'; then
32076 if test "${GCC}" = "yes"; then
32077 { $as_echo "$as_me:$LINENO: checking for GOMP_parallel_start in -lgomp" >&5
32078$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
32079if test "${ac_cv_lib_gomp_GOMP_parallel_start+set}" = set; then
32080 $as_echo_n "(cached) " >&6
32081else
32082 ac_check_lib_save_LIBS=$LIBS
32083LIBS="-lgomp $LIBS"
32084cat >conftest.$ac_ext <<_ACEOF
32085/* confdefs.h. */
32086_ACEOF
32087cat confdefs.h >>conftest.$ac_ext
32088cat >>conftest.$ac_ext <<_ACEOF
32089/* end confdefs.h. */
32090
32091/* Override any GCC internal prototype to avoid an error.
32092 Use char because int might match the return type of a GCC
32093 builtin and then its argument prototype would still apply. */
32094#ifdef __cplusplus
32095extern "C"
32096#endif
32097char GOMP_parallel_start ();
32098int
32099main ()
32100{
32101return GOMP_parallel_start ();
32102 ;
32103 return 0;
32104}
32105_ACEOF
32106rm -f conftest.$ac_objext conftest$ac_exeext
32107if { (ac_try="$ac_link"
32108case "(($ac_try" in
32109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32110 *) ac_try_echo=$ac_try;;
32111esac
32112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32113$as_echo "$ac_try_echo") >&5
32114 (eval "$ac_link") 2>conftest.er1
32115 ac_status=$?
32116 grep -v '^ *+' conftest.er1 >conftest.err
32117 rm -f conftest.er1
32118 cat conftest.err >&5
32119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32120 (exit $ac_status); } && {
32121 test -z "$ac_c_werror_flag" ||
32122 test ! -s conftest.err
32123 } && test -s conftest$ac_exeext && {
32124 test "$cross_compiling" = yes ||
32125 $as_test_x conftest$ac_exeext
32126 }; then
32127 ac_cv_lib_gomp_GOMP_parallel_start=yes
32128else
32129 $as_echo "$as_me: failed program was:" >&5
32130sed 's/^/| /' conftest.$ac_ext >&5
32131
32132 ac_cv_lib_gomp_GOMP_parallel_start=no
32133fi
32134
32135rm -rf conftest.dSYM
32136rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32137 conftest$ac_exeext conftest.$ac_ext
32138LIBS=$ac_check_lib_save_LIBS
32139fi
32140{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
32141$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
32142if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = x""yes; then
32143 GOMP_LIBS="-lgomp"
32144fi
32145 # gcc
32146 else
32147 { $as_echo "$as_me:$LINENO: checking for sunw_mp_register_warn in -lmtsk" >&5
32148$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
32149if test "${ac_cv_lib_mtsk_sunw_mp_register_warn+set}" = set; then
32150 $as_echo_n "(cached) " >&6
32151else
32152 ac_check_lib_save_LIBS=$LIBS
32153LIBS="-lmtsk $LIBS"
32154cat >conftest.$ac_ext <<_ACEOF
32155/* confdefs.h. */
32156_ACEOF
32157cat confdefs.h >>conftest.$ac_ext
32158cat >>conftest.$ac_ext <<_ACEOF
32159/* end confdefs.h. */
32160
32161/* Override any GCC internal prototype to avoid an error.
32162 Use char because int might match the return type of a GCC
32163 builtin and then its argument prototype would still apply. */
32164#ifdef __cplusplus
32165extern "C"
32166#endif
32167char sunw_mp_register_warn ();
32168int
32169main ()
32170{
32171return sunw_mp_register_warn ();
32172 ;
32173 return 0;
32174}
32175_ACEOF
32176rm -f conftest.$ac_objext conftest$ac_exeext
32177if { (ac_try="$ac_link"
32178case "(($ac_try" in
32179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32180 *) ac_try_echo=$ac_try;;
32181esac
32182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32183$as_echo "$ac_try_echo") >&5
32184 (eval "$ac_link") 2>conftest.er1
32185 ac_status=$?
32186 grep -v '^ *+' conftest.er1 >conftest.err
32187 rm -f conftest.er1
32188 cat conftest.err >&5
32189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32190 (exit $ac_status); } && {
32191 test -z "$ac_c_werror_flag" ||
32192 test ! -s conftest.err
32193 } && test -s conftest$ac_exeext && {
32194 test "$cross_compiling" = yes ||
32195 $as_test_x conftest$ac_exeext
32196 }; then
32197 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
32198else
32199 $as_echo "$as_me: failed program was:" >&5
32200sed 's/^/| /' conftest.$ac_ext >&5
32201
32202 ac_cv_lib_mtsk_sunw_mp_register_warn=no
32203fi
32204
32205rm -rf conftest.dSYM
32206rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32207 conftest$ac_exeext conftest.$ac_ext
32208LIBS=$ac_check_lib_save_LIBS
32209fi
32210{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
32211$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
32212if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = x""yes; then
32213 GOMP_LIBS="-lmtsk"
32214fi
32215 # solaris cc
32216 { $as_echo "$as_me:$LINENO: checking for _xlsmpFlush in -lxlsmp" >&5
32217$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
32218if test "${ac_cv_lib_xlsmp__xlsmpFlush+set}" = set; then
32219 $as_echo_n "(cached) " >&6
32220else
32221 ac_check_lib_save_LIBS=$LIBS
32222LIBS="-lxlsmp $LIBS"
32223cat >conftest.$ac_ext <<_ACEOF
32224/* confdefs.h. */
32225_ACEOF
32226cat confdefs.h >>conftest.$ac_ext
32227cat >>conftest.$ac_ext <<_ACEOF
32228/* end confdefs.h. */
32229
32230/* Override any GCC internal prototype to avoid an error.
32231 Use char because int might match the return type of a GCC
32232 builtin and then its argument prototype would still apply. */
32233#ifdef __cplusplus
32234extern "C"
32235#endif
32236char _xlsmpFlush ();
32237int
32238main ()
32239{
32240return _xlsmpFlush ();
32241 ;
32242 return 0;
32243}
32244_ACEOF
32245rm -f conftest.$ac_objext conftest$ac_exeext
32246if { (ac_try="$ac_link"
32247case "(($ac_try" in
32248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32249 *) ac_try_echo=$ac_try;;
32250esac
32251eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32252$as_echo "$ac_try_echo") >&5
32253 (eval "$ac_link") 2>conftest.er1
32254 ac_status=$?
32255 grep -v '^ *+' conftest.er1 >conftest.err
32256 rm -f conftest.er1
32257 cat conftest.err >&5
32258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32259 (exit $ac_status); } && {
32260 test -z "$ac_c_werror_flag" ||
32261 test ! -s conftest.err
32262 } && test -s conftest$ac_exeext && {
32263 test "$cross_compiling" = yes ||
32264 $as_test_x conftest$ac_exeext
32265 }; then
32266 ac_cv_lib_xlsmp__xlsmpFlush=yes
32267else
32268 $as_echo "$as_me: failed program was:" >&5
32269sed 's/^/| /' conftest.$ac_ext >&5
32270
32271 ac_cv_lib_xlsmp__xlsmpFlush=no
32272fi
32273
32274rm -rf conftest.dSYM
32275rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32276 conftest$ac_exeext conftest.$ac_ext
32277LIBS=$ac_check_lib_save_LIBS
32278fi
32279{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
32280$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
32281if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = x""yes; then
32282 GOMP_LIBS="-lxlsmp"
32283fi
32284 # AIX xlc
32285 { $as_echo "$as_me:$LINENO: checking for mp_destroy in -lmp" >&5
32286$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
32287if test "${ac_cv_lib_mp_mp_destroy+set}" = set; then
32288 $as_echo_n "(cached) " >&6
32289else
32290 ac_check_lib_save_LIBS=$LIBS
32291LIBS="-lmp $LIBS"
32292cat >conftest.$ac_ext <<_ACEOF
32293/* confdefs.h. */
32294_ACEOF
32295cat confdefs.h >>conftest.$ac_ext
32296cat >>conftest.$ac_ext <<_ACEOF
32297/* end confdefs.h. */
32298
32299/* Override any GCC internal prototype to avoid an error.
32300 Use char because int might match the return type of a GCC
32301 builtin and then its argument prototype would still apply. */
32302#ifdef __cplusplus
32303extern "C"
32304#endif
32305char mp_destroy ();
32306int
32307main ()
32308{
32309return mp_destroy ();
32310 ;
32311 return 0;
32312}
32313_ACEOF
32314rm -f conftest.$ac_objext conftest$ac_exeext
32315if { (ac_try="$ac_link"
32316case "(($ac_try" in
32317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32318 *) ac_try_echo=$ac_try;;
32319esac
32320eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32321$as_echo "$ac_try_echo") >&5
32322 (eval "$ac_link") 2>conftest.er1
32323 ac_status=$?
32324 grep -v '^ *+' conftest.er1 >conftest.err
32325 rm -f conftest.er1
32326 cat conftest.err >&5
32327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32328 (exit $ac_status); } && {
32329 test -z "$ac_c_werror_flag" ||
32330 test ! -s conftest.err
32331 } && test -s conftest$ac_exeext && {
32332 test "$cross_compiling" = yes ||
32333 $as_test_x conftest$ac_exeext
32334 }; then
32335 ac_cv_lib_mp_mp_destroy=yes
32336else
32337 $as_echo "$as_me: failed program was:" >&5
32338sed 's/^/| /' conftest.$ac_ext >&5
32339
32340 ac_cv_lib_mp_mp_destroy=no
32341fi
32342
32343rm -rf conftest.dSYM
32344rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32345 conftest$ac_exeext conftest.$ac_ext
32346LIBS=$ac_check_lib_save_LIBS
32347fi
32348{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mp_mp_destroy" >&5
32349$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
32350if test "x$ac_cv_lib_mp_mp_destroy" = x""yes; then
32351 GOMP_LIBS="-lmp"
32352fi
32353 # SGI IRIX 6.5 MIPSpro C/C++
32354 fi
32355 LIBS="$GOMP_LIBS $LIBS"
32356fi
32357
32358
32359#
32360# Find Posix threads library
32361#
32362THREAD_LIBS=''
32363if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
32364
32365 if test "x$PTHREAD_LIBS" = "x"; then
32366 case "${host_cpu}-${host_os}" in
32367 *-freebsd*)
32368
32369
32370
32371ac_ext=c
32372ac_cpp='$CPP $CPPFLAGS'
32373ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32374ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32375ac_compiler_gnu=$ac_cv_c_compiler_gnu
32376
32377magick_pthread_lib_ok=no
32378
32379LIB=-lc_r
32380save_LIBS="$LIBS"
32381LIBS="$LIBS $LIB"
32382
32383{ $as_echo "$as_me:$LINENO: checking for the pthreads library $LIB" >&5
32384$as_echo_n "checking for the pthreads library $LIB... " >&6; }
32385cat >conftest.$ac_ext <<_ACEOF
32386/* confdefs.h. */
32387_ACEOF
32388cat confdefs.h >>conftest.$ac_ext
32389cat >>conftest.$ac_ext <<_ACEOF
32390/* end confdefs.h. */
32391#include <pthread.h>
32392int
32393main ()
32394{
32395 pthread_t th;
32396 pthread_join(th, 0);
32397 pthread_attr_init(0);
32398 pthread_cleanup_push(0, 0);
32399 pthread_create(0,0,0,0);
32400 pthread_cleanup_pop(0);
32401 ;
32402 return 0;
32403}
32404_ACEOF
32405rm -f conftest.$ac_objext conftest$ac_exeext
32406if { (ac_try="$ac_link"
32407case "(($ac_try" in
32408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32409 *) ac_try_echo=$ac_try;;
32410esac
32411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32412$as_echo "$ac_try_echo") >&5
32413 (eval "$ac_link") 2>conftest.er1
32414 ac_status=$?
32415 grep -v '^ *+' conftest.er1 >conftest.err
32416 rm -f conftest.er1
32417 cat conftest.err >&5
32418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32419 (exit $ac_status); } && {
32420 test -z "$ac_c_werror_flag" ||
32421 test ! -s conftest.err
32422 } && test -s conftest$ac_exeext && {
32423 test "$cross_compiling" = yes ||
32424 $as_test_x conftest$ac_exeext
32425 }; then
32426 magick_pthread_lib_ok=yes
32427else
32428 $as_echo "$as_me: failed program was:" >&5
32429sed 's/^/| /' conftest.$ac_ext >&5
32430
32431
32432fi
32433
32434rm -rf conftest.dSYM
32435rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32436 conftest$ac_exeext conftest.$ac_ext
32437
32438{ $as_echo "$as_me:$LINENO: result: ${magick_pthread_lib_ok}" >&5
32439$as_echo "${magick_pthread_lib_ok}" >&6; }
32440if test "$magick_pthread_lib_ok" = yes
32441then
32442 PTHREAD_LIBS=-lc_r
32443 :
32444else
32445
32446 :
32447fi
32448
32449LIBS="$save_LIBS"
32450
32451ac_ext=c
32452ac_cpp='$CPP $CPPFLAGS'
32453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32455ac_compiler_gnu=$ac_cv_c_compiler_gnu
32456
32457 ;;
32458 esac
32459 fi
32460
32461 for lib in pthread pthreads; do
32462 if test "x$PTHREAD_LIBS" = "x"; then
32463
32464
32465
32466ac_ext=c
32467ac_cpp='$CPP $CPPFLAGS'
32468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32470ac_compiler_gnu=$ac_cv_c_compiler_gnu
32471
32472magick_pthread_lib_ok=no
32473
32474LIB=-l$lib
32475save_LIBS="$LIBS"
32476LIBS="$LIBS $LIB"
32477
32478{ $as_echo "$as_me:$LINENO: checking for the pthreads library $LIB" >&5
32479$as_echo_n "checking for the pthreads library $LIB... " >&6; }
32480cat >conftest.$ac_ext <<_ACEOF
32481/* confdefs.h. */
32482_ACEOF
32483cat confdefs.h >>conftest.$ac_ext
32484cat >>conftest.$ac_ext <<_ACEOF
32485/* end confdefs.h. */
32486#include <pthread.h>
32487int
32488main ()
32489{
32490 pthread_t th;
32491 pthread_join(th, 0);
32492 pthread_attr_init(0);
32493 pthread_cleanup_push(0, 0);
32494 pthread_create(0,0,0,0);
32495 pthread_cleanup_pop(0);
32496 ;
32497 return 0;
32498}
32499_ACEOF
32500rm -f conftest.$ac_objext conftest$ac_exeext
32501if { (ac_try="$ac_link"
32502case "(($ac_try" in
32503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32504 *) ac_try_echo=$ac_try;;
32505esac
32506eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32507$as_echo "$ac_try_echo") >&5
32508 (eval "$ac_link") 2>conftest.er1
32509 ac_status=$?
32510 grep -v '^ *+' conftest.er1 >conftest.err
32511 rm -f conftest.er1
32512 cat conftest.err >&5
32513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514 (exit $ac_status); } && {
32515 test -z "$ac_c_werror_flag" ||
32516 test ! -s conftest.err
32517 } && test -s conftest$ac_exeext && {
32518 test "$cross_compiling" = yes ||
32519 $as_test_x conftest$ac_exeext
32520 }; then
32521 magick_pthread_lib_ok=yes
32522else
32523 $as_echo "$as_me: failed program was:" >&5
32524sed 's/^/| /' conftest.$ac_ext >&5
32525
32526
32527fi
32528
32529rm -rf conftest.dSYM
32530rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32531 conftest$ac_exeext conftest.$ac_ext
32532
32533{ $as_echo "$as_me:$LINENO: result: ${magick_pthread_lib_ok}" >&5
32534$as_echo "${magick_pthread_lib_ok}" >&6; }
32535if test "$magick_pthread_lib_ok" = yes
32536then
32537 PTHREAD_LIBS=-l$lib
32538 :
32539else
32540
32541 :
32542fi
32543
32544LIBS="$save_LIBS"
32545
32546ac_ext=c
32547ac_cpp='$CPP $CPPFLAGS'
32548ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
32549ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
32550ac_compiler_gnu=$ac_cv_c_compiler_gnu
32551
32552
32553 fi
32554 done
32555
32556 THREAD_LIBS="$PTHREAD_LIBS"
32557 LIBS="$LIBS $THREAD_LIBS"
32558fi
32559
32560
32561#
32562# Check for umem.
32563#
32564have_umem='no'
32565UMEM_LIBS=''
32566if test "$with_umem" != 'no'; then
32567 { $as_echo "$as_me:$LINENO: checking for UMEM support " >&5
32568$as_echo_n "checking for UMEM support ... " >&6; }
32569 { $as_echo "$as_me:$LINENO: result: " >&5
32570$as_echo "" >&6; }
32571 failed=0
32572 passed=0
32573 if test "${ac_cv_header_umem_h+set}" = set; then
32574 { $as_echo "$as_me:$LINENO: checking for umem.h" >&5
32575$as_echo_n "checking for umem.h... " >&6; }
32576if test "${ac_cv_header_umem_h+set}" = set; then
32577 $as_echo_n "(cached) " >&6
32578fi
32579{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_umem_h" >&5
32580$as_echo "$ac_cv_header_umem_h" >&6; }
32581else
32582 # Is the header compilable?
32583{ $as_echo "$as_me:$LINENO: checking umem.h usability" >&5
32584$as_echo_n "checking umem.h usability... " >&6; }
32585cat >conftest.$ac_ext <<_ACEOF
32586/* confdefs.h. */
32587_ACEOF
32588cat confdefs.h >>conftest.$ac_ext
32589cat >>conftest.$ac_ext <<_ACEOF
32590/* end confdefs.h. */
32591$ac_includes_default
32592#include <umem.h>
32593_ACEOF
32594rm -f conftest.$ac_objext
32595if { (ac_try="$ac_compile"
32596case "(($ac_try" in
32597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32598 *) ac_try_echo=$ac_try;;
32599esac
32600eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32601$as_echo "$ac_try_echo") >&5
32602 (eval "$ac_compile") 2>conftest.er1
32603 ac_status=$?
32604 grep -v '^ *+' conftest.er1 >conftest.err
32605 rm -f conftest.er1
32606 cat conftest.err >&5
32607 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32608 (exit $ac_status); } && {
32609 test -z "$ac_c_werror_flag" ||
32610 test ! -s conftest.err
32611 } && test -s conftest.$ac_objext; then
32612 ac_header_compiler=yes
32613else
32614 $as_echo "$as_me: failed program was:" >&5
32615sed 's/^/| /' conftest.$ac_ext >&5
32616
32617 ac_header_compiler=no
32618fi
32619
32620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32621{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32622$as_echo "$ac_header_compiler" >&6; }
32623
32624# Is the header present?
32625{ $as_echo "$as_me:$LINENO: checking umem.h presence" >&5
32626$as_echo_n "checking umem.h presence... " >&6; }
32627cat >conftest.$ac_ext <<_ACEOF
32628/* confdefs.h. */
32629_ACEOF
32630cat confdefs.h >>conftest.$ac_ext
32631cat >>conftest.$ac_ext <<_ACEOF
32632/* end confdefs.h. */
32633#include <umem.h>
32634_ACEOF
32635if { (ac_try="$ac_cpp conftest.$ac_ext"
32636case "(($ac_try" in
32637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32638 *) ac_try_echo=$ac_try;;
32639esac
32640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32641$as_echo "$ac_try_echo") >&5
32642 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32643 ac_status=$?
32644 grep -v '^ *+' conftest.er1 >conftest.err
32645 rm -f conftest.er1
32646 cat conftest.err >&5
32647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32648 (exit $ac_status); } >/dev/null && {
32649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32650 test ! -s conftest.err
32651 }; then
32652 ac_header_preproc=yes
32653else
32654 $as_echo "$as_me: failed program was:" >&5
32655sed 's/^/| /' conftest.$ac_ext >&5
32656
32657 ac_header_preproc=no
32658fi
32659
32660rm -f conftest.err conftest.$ac_ext
32661{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32662$as_echo "$ac_header_preproc" >&6; }
32663
32664# So? What about this header?
32665case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32666 yes:no: )
32667 { $as_echo "$as_me:$LINENO: WARNING: umem.h: accepted by the compiler, rejected by the preprocessor!" >&5
32668$as_echo "$as_me: WARNING: umem.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32669 { $as_echo "$as_me:$LINENO: WARNING: umem.h: proceeding with the compiler's result" >&5
32670$as_echo "$as_me: WARNING: umem.h: proceeding with the compiler's result" >&2;}
32671 ac_header_preproc=yes
32672 ;;
32673 no:yes:* )
32674 { $as_echo "$as_me:$LINENO: WARNING: umem.h: present but cannot be compiled" >&5
32675$as_echo "$as_me: WARNING: umem.h: present but cannot be compiled" >&2;}
32676 { $as_echo "$as_me:$LINENO: WARNING: umem.h: check for missing prerequisite headers?" >&5
32677$as_echo "$as_me: WARNING: umem.h: check for missing prerequisite headers?" >&2;}
32678 { $as_echo "$as_me:$LINENO: WARNING: umem.h: see the Autoconf documentation" >&5
32679$as_echo "$as_me: WARNING: umem.h: see the Autoconf documentation" >&2;}
32680 { $as_echo "$as_me:$LINENO: WARNING: umem.h: section \"Present But Cannot Be Compiled\"" >&5
32681$as_echo "$as_me: WARNING: umem.h: section \"Present But Cannot Be Compiled\"" >&2;}
32682 { $as_echo "$as_me:$LINENO: WARNING: umem.h: proceeding with the preprocessor's result" >&5
32683$as_echo "$as_me: WARNING: umem.h: proceeding with the preprocessor's result" >&2;}
32684 { $as_echo "$as_me:$LINENO: WARNING: umem.h: in the future, the compiler will take precedence" >&5
32685$as_echo "$as_me: WARNING: umem.h: in the future, the compiler will take precedence" >&2;}
32686 ( cat <<\_ASBOX
32687## ----------------------------------------- ##
32688## Report this to http://www.imagemagick.org ##
32689## ----------------------------------------- ##
32690_ASBOX
32691 ) | sed "s/^/$as_me: WARNING: /" >&2
32692 ;;
32693esac
32694{ $as_echo "$as_me:$LINENO: checking for umem.h" >&5
32695$as_echo_n "checking for umem.h... " >&6; }
32696if test "${ac_cv_header_umem_h+set}" = set; then
32697 $as_echo_n "(cached) " >&6
32698else
32699 ac_cv_header_umem_h=$ac_header_preproc
32700fi
32701{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_umem_h" >&5
32702$as_echo "$ac_cv_header_umem_h" >&6; }
32703
32704fi
32705if test "x$ac_cv_header_umem_h" = x""yes; then
32706 passed=`expr $passed + 1`
32707else
32708 failed=`expr $failed + 1`
32709fi
32710
32711
32712 { $as_echo "$as_me:$LINENO: checking for umem_alloc in -lumem" >&5
32713$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
32714if test "${ac_cv_lib_umem_umem_alloc+set}" = set; then
32715 $as_echo_n "(cached) " >&6
32716else
32717 ac_check_lib_save_LIBS=$LIBS
32718LIBS="-lumem $LIBS"
32719cat >conftest.$ac_ext <<_ACEOF
32720/* confdefs.h. */
32721_ACEOF
32722cat confdefs.h >>conftest.$ac_ext
32723cat >>conftest.$ac_ext <<_ACEOF
32724/* end confdefs.h. */
32725
32726/* Override any GCC internal prototype to avoid an error.
32727 Use char because int might match the return type of a GCC
32728 builtin and then its argument prototype would still apply. */
32729#ifdef __cplusplus
32730extern "C"
32731#endif
32732char umem_alloc ();
32733int
32734main ()
32735{
32736return umem_alloc ();
32737 ;
32738 return 0;
32739}
32740_ACEOF
32741rm -f conftest.$ac_objext conftest$ac_exeext
32742if { (ac_try="$ac_link"
32743case "(($ac_try" in
32744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32745 *) ac_try_echo=$ac_try;;
32746esac
32747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32748$as_echo "$ac_try_echo") >&5
32749 (eval "$ac_link") 2>conftest.er1
32750 ac_status=$?
32751 grep -v '^ *+' conftest.er1 >conftest.err
32752 rm -f conftest.er1
32753 cat conftest.err >&5
32754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32755 (exit $ac_status); } && {
32756 test -z "$ac_c_werror_flag" ||
32757 test ! -s conftest.err
32758 } && test -s conftest$ac_exeext && {
32759 test "$cross_compiling" = yes ||
32760 $as_test_x conftest$ac_exeext
32761 }; then
32762 ac_cv_lib_umem_umem_alloc=yes
32763else
32764 $as_echo "$as_me: failed program was:" >&5
32765sed 's/^/| /' conftest.$ac_ext >&5
32766
32767 ac_cv_lib_umem_umem_alloc=no
32768fi
32769
32770rm -rf conftest.dSYM
32771rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32772 conftest$ac_exeext conftest.$ac_ext
32773LIBS=$ac_check_lib_save_LIBS
32774fi
32775{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_umem_umem_alloc" >&5
32776$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
32777if test "x$ac_cv_lib_umem_umem_alloc" = x""yes; then
32778 passed=`expr $passed + 1`
32779else
32780 failed=`expr $failed + 1`
32781fi
32782
32783 { $as_echo "$as_me:$LINENO: checking for umem_free in -lumem" >&5
32784$as_echo_n "checking for umem_free in -lumem... " >&6; }
32785if test "${ac_cv_lib_umem_umem_free+set}" = set; then
32786 $as_echo_n "(cached) " >&6
32787else
32788 ac_check_lib_save_LIBS=$LIBS
32789LIBS="-lumem $LIBS"
32790cat >conftest.$ac_ext <<_ACEOF
32791/* confdefs.h. */
32792_ACEOF
32793cat confdefs.h >>conftest.$ac_ext
32794cat >>conftest.$ac_ext <<_ACEOF
32795/* end confdefs.h. */
32796
32797/* Override any GCC internal prototype to avoid an error.
32798 Use char because int might match the return type of a GCC
32799 builtin and then its argument prototype would still apply. */
32800#ifdef __cplusplus
32801extern "C"
32802#endif
32803char umem_free ();
32804int
32805main ()
32806{
32807return umem_free ();
32808 ;
32809 return 0;
32810}
32811_ACEOF
32812rm -f conftest.$ac_objext conftest$ac_exeext
32813if { (ac_try="$ac_link"
32814case "(($ac_try" in
32815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32816 *) ac_try_echo=$ac_try;;
32817esac
32818eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32819$as_echo "$ac_try_echo") >&5
32820 (eval "$ac_link") 2>conftest.er1
32821 ac_status=$?
32822 grep -v '^ *+' conftest.er1 >conftest.err
32823 rm -f conftest.er1
32824 cat conftest.err >&5
32825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32826 (exit $ac_status); } && {
32827 test -z "$ac_c_werror_flag" ||
32828 test ! -s conftest.err
32829 } && test -s conftest$ac_exeext && {
32830 test "$cross_compiling" = yes ||
32831 $as_test_x conftest$ac_exeext
32832 }; then
32833 ac_cv_lib_umem_umem_free=yes
32834else
32835 $as_echo "$as_me: failed program was:" >&5
32836sed 's/^/| /' conftest.$ac_ext >&5
32837
32838 ac_cv_lib_umem_umem_free=no
32839fi
32840
32841rm -rf conftest.dSYM
32842rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32843 conftest$ac_exeext conftest.$ac_ext
32844LIBS=$ac_check_lib_save_LIBS
32845fi
32846{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_umem_umem_free" >&5
32847$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
32848if test "x$ac_cv_lib_umem_umem_free" = x""yes; then
32849 passed=`expr $passed + 1`
32850else
32851 failed=`expr $failed + 1`
32852fi
32853
32854 { $as_echo "$as_me:$LINENO: checking if umem memory allocation library is complete" >&5
32855$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
32856 if test $passed -gt 0; then
32857 if test $failed -gt 0; then
32858 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
32859$as_echo "no -- some components failed test" >&6; }
32860 have_umem='no (failed tests)'
32861 else
32862 UMEM_LIBS='-lumem'
32863 LIBS="$UMEM_LIBS $LIBS"
32864
32865cat >>confdefs.h <<\_ACEOF
32866#define HasUMEM 1
32867_ACEOF
32868
32869 { $as_echo "$as_me:$LINENO: result: yes" >&5
32870$as_echo "yes" >&6; }
32871 have_umem='yes'
32872 fi
32873 else
32874 { $as_echo "$as_me:$LINENO: result: no" >&5
32875$as_echo "no" >&6; }
32876 fi
32877fi
32878 if test "$have_umem" = 'yes'; then
32879 HasUMEM_TRUE=
32880 HasUMEM_FALSE='#'
32881else
32882 HasUMEM_TRUE='#'
32883 HasUMEM_FALSE=
32884fi
32885
32886
32887
32888#
32889# Add support for ccmalloc memory debugging library if requested
32890#
32891have_ccmalloc='no'
32892CCMALLOC_LIBS=''
32893if test "$enable_ccmalloc" = 'yes'; then
32894 # Extract the first word of "ccmalloc", so it can be a program name with args.
32895set dummy ccmalloc; ac_word=$2
32896{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
32897$as_echo_n "checking for $ac_word... " >&6; }
32898if test "${ac_cv_path_CCMALLOCDelegate+set}" = set; then
32899 $as_echo_n "(cached) " >&6
32900else
32901 case $CCMALLOCDelegate in
32902 [\\/]* | ?:[\\/]*)
32903 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
32904 ;;
32905 *)
32906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32907for as_dir in $PATH
32908do
32909 IFS=$as_save_IFS
32910 test -z "$as_dir" && as_dir=.
32911 for ac_exec_ext in '' $ac_executable_extensions; do
32912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32913 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
32914 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32915 break 2
32916 fi
32917done
32918done
32919IFS=$as_save_IFS
32920
32921 ;;
32922esac
32923fi
32924CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
32925if test -n "$CCMALLOCDelegate"; then
32926 { $as_echo "$as_me:$LINENO: result: $CCMALLOCDelegate" >&5
32927$as_echo "$CCMALLOCDelegate" >&6; }
32928else
32929 { $as_echo "$as_me:$LINENO: result: no" >&5
32930$as_echo "no" >&6; }
32931fi
32932
32933
32934 if test -n "$CCMALLOCDelegate"; then
32935 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
32936 OLIBS="$LIBS"
32937 # Assume that gcc is used with ccmalloc.
32938 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
32939 { $as_echo "$as_me:$LINENO: checking for ccmalloc_malloc in -lccmalloc" >&5
32940$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
32941if test "${ac_cv_lib_ccmalloc_ccmalloc_malloc+set}" = set; then
32942 $as_echo_n "(cached) " >&6
32943else
32944 ac_check_lib_save_LIBS=$LIBS
32945LIBS="-lccmalloc -ldl $LIBS"
32946cat >conftest.$ac_ext <<_ACEOF
32947/* confdefs.h. */
32948_ACEOF
32949cat confdefs.h >>conftest.$ac_ext
32950cat >>conftest.$ac_ext <<_ACEOF
32951/* end confdefs.h. */
32952
32953/* Override any GCC internal prototype to avoid an error.
32954 Use char because int might match the return type of a GCC
32955 builtin and then its argument prototype would still apply. */
32956#ifdef __cplusplus
32957extern "C"
32958#endif
32959char ccmalloc_malloc ();
32960int
32961main ()
32962{
32963return ccmalloc_malloc ();
32964 ;
32965 return 0;
32966}
32967_ACEOF
32968rm -f conftest.$ac_objext conftest$ac_exeext
32969if { (ac_try="$ac_link"
32970case "(($ac_try" in
32971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32972 *) ac_try_echo=$ac_try;;
32973esac
32974eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32975$as_echo "$ac_try_echo") >&5
32976 (eval "$ac_link") 2>conftest.er1
32977 ac_status=$?
32978 grep -v '^ *+' conftest.er1 >conftest.err
32979 rm -f conftest.er1
32980 cat conftest.err >&5
32981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32982 (exit $ac_status); } && {
32983 test -z "$ac_c_werror_flag" ||
32984 test ! -s conftest.err
32985 } && test -s conftest$ac_exeext && {
32986 test "$cross_compiling" = yes ||
32987 $as_test_x conftest$ac_exeext
32988 }; then
32989 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
32990else
32991 $as_echo "$as_me: failed program was:" >&5
32992sed 's/^/| /' conftest.$ac_ext >&5
32993
32994 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
32995fi
32996
32997rm -rf conftest.dSYM
32998rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32999 conftest$ac_exeext conftest.$ac_ext
33000LIBS=$ac_check_lib_save_LIBS
33001fi
33002{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
33003$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
33004if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = x""yes; then
33005 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
33006fi
33007
33008 if test -n "$CCMALLOC_LIBS"; then
33009 LIBS="$OLIBS"
33010 LIBS="$LIBS $CCMALLOC_LIBS"
33011 have_ccmalloc='yes'
33012 else
33013 LIBS="$OLIBS"
33014 fi
33015 fi
33016fi
33017
33018#
33019# Add support for efence memory debugging library if requested
33020#
33021if test "$enable_efence" = 'yes'; then
33022 EFENCE_LIBS='-lefence'
33023 LIBS="$EFENCE_LIBS $LIBS"
33024fi
33025
33026#
33027# Find math library
33028#
33029MATH_LIBS=''
33030{ $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
33031$as_echo_n "checking for sqrt in -lm... " >&6; }
33032if test "${ac_cv_lib_m_sqrt+set}" = set; then
33033 $as_echo_n "(cached) " >&6
33034else
33035 ac_check_lib_save_LIBS=$LIBS
33036LIBS="-lm $LIBS"
33037cat >conftest.$ac_ext <<_ACEOF
33038/* confdefs.h. */
33039_ACEOF
33040cat confdefs.h >>conftest.$ac_ext
33041cat >>conftest.$ac_ext <<_ACEOF
33042/* end confdefs.h. */
33043
33044/* Override any GCC internal prototype to avoid an error.
33045 Use char because int might match the return type of a GCC
33046 builtin and then its argument prototype would still apply. */
33047#ifdef __cplusplus
33048extern "C"
33049#endif
33050char sqrt ();
33051int
33052main ()
33053{
33054return sqrt ();
33055 ;
33056 return 0;
33057}
33058_ACEOF
33059rm -f conftest.$ac_objext conftest$ac_exeext
33060if { (ac_try="$ac_link"
33061case "(($ac_try" in
33062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33063 *) ac_try_echo=$ac_try;;
33064esac
33065eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33066$as_echo "$ac_try_echo") >&5
33067 (eval "$ac_link") 2>conftest.er1
33068 ac_status=$?
33069 grep -v '^ *+' conftest.er1 >conftest.err
33070 rm -f conftest.er1
33071 cat conftest.err >&5
33072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33073 (exit $ac_status); } && {
33074 test -z "$ac_c_werror_flag" ||
33075 test ! -s conftest.err
33076 } && test -s conftest$ac_exeext && {
33077 test "$cross_compiling" = yes ||
33078 $as_test_x conftest$ac_exeext
33079 }; then
33080 ac_cv_lib_m_sqrt=yes
33081else
33082 $as_echo "$as_me: failed program was:" >&5
33083sed 's/^/| /' conftest.$ac_ext >&5
33084
33085 ac_cv_lib_m_sqrt=no
33086fi
33087
33088rm -rf conftest.dSYM
33089rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33090 conftest$ac_exeext conftest.$ac_ext
33091LIBS=$ac_check_lib_save_LIBS
33092fi
33093{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
33094$as_echo "$ac_cv_lib_m_sqrt" >&6; }
33095if test "x$ac_cv_lib_m_sqrt" = x""yes; then
33096 MATH_LIBS="-lm"
33097fi
33098
33099LIBS="$MATH_LIBS $LIBS"
33100
33101
33102
33103#
33104# Check for BZLIB
33105#
33106
33107
33108# Check whether --with-bzlib was given.
33109if test "${with_bzlib+set}" = set; then
33110 withval=$with_bzlib; with_bzlib=$withval
33111else
33112 with_bzlib='yes'
33113fi
33114
33115
33116if test "$with_bzlib" != 'yes'; then
33117 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
33118fi
33119
33120have_bzlib='no'
33121if test "$with_bzlib" != 'no'; then
33122 BZLIB_LIBS=''
33123 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
33124$as_echo "-------------------------------------------------------------" >&6; }
33125 { $as_echo "$as_me:$LINENO: checking for BZLIB" >&5
33126$as_echo_n "checking for BZLIB... " >&6; }
33127 { $as_echo "$as_me:$LINENO: result: " >&5
33128$as_echo "" >&6; }
33129 failed=0
33130 passed=0
33131 found_libbz=0
33132 if test "${ac_cv_header_bzlib_h+set}" = set; then
33133 { $as_echo "$as_me:$LINENO: checking for bzlib.h" >&5
33134$as_echo_n "checking for bzlib.h... " >&6; }
33135if test "${ac_cv_header_bzlib_h+set}" = set; then
33136 $as_echo_n "(cached) " >&6
33137fi
33138{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
33139$as_echo "$ac_cv_header_bzlib_h" >&6; }
33140else
33141 # Is the header compilable?
33142{ $as_echo "$as_me:$LINENO: checking bzlib.h usability" >&5
33143$as_echo_n "checking bzlib.h usability... " >&6; }
33144cat >conftest.$ac_ext <<_ACEOF
33145/* confdefs.h. */
33146_ACEOF
33147cat confdefs.h >>conftest.$ac_ext
33148cat >>conftest.$ac_ext <<_ACEOF
33149/* end confdefs.h. */
33150$ac_includes_default
33151#include <bzlib.h>
33152_ACEOF
33153rm -f conftest.$ac_objext
33154if { (ac_try="$ac_compile"
33155case "(($ac_try" in
33156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33157 *) ac_try_echo=$ac_try;;
33158esac
33159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33160$as_echo "$ac_try_echo") >&5
33161 (eval "$ac_compile") 2>conftest.er1
33162 ac_status=$?
33163 grep -v '^ *+' conftest.er1 >conftest.err
33164 rm -f conftest.er1
33165 cat conftest.err >&5
33166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33167 (exit $ac_status); } && {
33168 test -z "$ac_c_werror_flag" ||
33169 test ! -s conftest.err
33170 } && test -s conftest.$ac_objext; then
33171 ac_header_compiler=yes
33172else
33173 $as_echo "$as_me: failed program was:" >&5
33174sed 's/^/| /' conftest.$ac_ext >&5
33175
33176 ac_header_compiler=no
33177fi
33178
33179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33180{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
33181$as_echo "$ac_header_compiler" >&6; }
33182
33183# Is the header present?
33184{ $as_echo "$as_me:$LINENO: checking bzlib.h presence" >&5
33185$as_echo_n "checking bzlib.h presence... " >&6; }
33186cat >conftest.$ac_ext <<_ACEOF
33187/* confdefs.h. */
33188_ACEOF
33189cat confdefs.h >>conftest.$ac_ext
33190cat >>conftest.$ac_ext <<_ACEOF
33191/* end confdefs.h. */
33192#include <bzlib.h>
33193_ACEOF
33194if { (ac_try="$ac_cpp conftest.$ac_ext"
33195case "(($ac_try" in
33196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33197 *) ac_try_echo=$ac_try;;
33198esac
33199eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33200$as_echo "$ac_try_echo") >&5
33201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33202 ac_status=$?
33203 grep -v '^ *+' conftest.er1 >conftest.err
33204 rm -f conftest.er1
33205 cat conftest.err >&5
33206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33207 (exit $ac_status); } >/dev/null && {
33208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33209 test ! -s conftest.err
33210 }; then
33211 ac_header_preproc=yes
33212else
33213 $as_echo "$as_me: failed program was:" >&5
33214sed 's/^/| /' conftest.$ac_ext >&5
33215
33216 ac_header_preproc=no
33217fi
33218
33219rm -f conftest.err conftest.$ac_ext
33220{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
33221$as_echo "$ac_header_preproc" >&6; }
33222
33223# So? What about this header?
33224case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
33225 yes:no: )
33226 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
33227$as_echo "$as_me: WARNING: bzlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
33228 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the compiler's result" >&5
33229$as_echo "$as_me: WARNING: bzlib.h: proceeding with the compiler's result" >&2;}
33230 ac_header_preproc=yes
33231 ;;
33232 no:yes:* )
33233 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: present but cannot be compiled" >&5
33234$as_echo "$as_me: WARNING: bzlib.h: present but cannot be compiled" >&2;}
33235 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: check for missing prerequisite headers?" >&5
33236$as_echo "$as_me: WARNING: bzlib.h: check for missing prerequisite headers?" >&2;}
33237 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: see the Autoconf documentation" >&5
33238$as_echo "$as_me: WARNING: bzlib.h: see the Autoconf documentation" >&2;}
33239 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&5
33240$as_echo "$as_me: WARNING: bzlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
33241 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: proceeding with the preprocessor's result" >&5
33242$as_echo "$as_me: WARNING: bzlib.h: proceeding with the preprocessor's result" >&2;}
33243 { $as_echo "$as_me:$LINENO: WARNING: bzlib.h: in the future, the compiler will take precedence" >&5
33244$as_echo "$as_me: WARNING: bzlib.h: in the future, the compiler will take precedence" >&2;}
33245 ( cat <<\_ASBOX
33246## ----------------------------------------- ##
33247## Report this to http://www.imagemagick.org ##
33248## ----------------------------------------- ##
33249_ASBOX
33250 ) | sed "s/^/$as_me: WARNING: /" >&2
33251 ;;
33252esac
33253{ $as_echo "$as_me:$LINENO: checking for bzlib.h" >&5
33254$as_echo_n "checking for bzlib.h... " >&6; }
33255if test "${ac_cv_header_bzlib_h+set}" = set; then
33256 $as_echo_n "(cached) " >&6
33257else
33258 ac_cv_header_bzlib_h=$ac_header_preproc
33259fi
33260{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_bzlib_h" >&5
33261$as_echo "$ac_cv_header_bzlib_h" >&6; }
33262
33263fi
33264if test "x$ac_cv_header_bzlib_h" = x""yes; then
33265 passed=`expr $passed + 1`
33266else
33267 failed=`expr $failed + 1`
33268fi
33269
33270
33271 { $as_echo "$as_me:$LINENO: checking for BZ2_bzDecompress in -lbz2" >&5
33272$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
33273if test "${ac_cv_lib_bz2_BZ2_bzDecompress+set}" = set; then
33274 $as_echo_n "(cached) " >&6
33275else
33276 ac_check_lib_save_LIBS=$LIBS
33277LIBS="-lbz2 $LIBS"
33278cat >conftest.$ac_ext <<_ACEOF
33279/* confdefs.h. */
33280_ACEOF
33281cat confdefs.h >>conftest.$ac_ext
33282cat >>conftest.$ac_ext <<_ACEOF
33283/* end confdefs.h. */
33284
33285/* Override any GCC internal prototype to avoid an error.
33286 Use char because int might match the return type of a GCC
33287 builtin and then its argument prototype would still apply. */
33288#ifdef __cplusplus
33289extern "C"
33290#endif
33291char BZ2_bzDecompress ();
33292int
33293main ()
33294{
33295return BZ2_bzDecompress ();
33296 ;
33297 return 0;
33298}
33299_ACEOF
33300rm -f conftest.$ac_objext conftest$ac_exeext
33301if { (ac_try="$ac_link"
33302case "(($ac_try" in
33303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33304 *) ac_try_echo=$ac_try;;
33305esac
33306eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33307$as_echo "$ac_try_echo") >&5
33308 (eval "$ac_link") 2>conftest.er1
33309 ac_status=$?
33310 grep -v '^ *+' conftest.er1 >conftest.err
33311 rm -f conftest.er1
33312 cat conftest.err >&5
33313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33314 (exit $ac_status); } && {
33315 test -z "$ac_c_werror_flag" ||
33316 test ! -s conftest.err
33317 } && test -s conftest$ac_exeext && {
33318 test "$cross_compiling" = yes ||
33319 $as_test_x conftest$ac_exeext
33320 }; then
33321 ac_cv_lib_bz2_BZ2_bzDecompress=yes
33322else
33323 $as_echo "$as_me: failed program was:" >&5
33324sed 's/^/| /' conftest.$ac_ext >&5
33325
33326 ac_cv_lib_bz2_BZ2_bzDecompress=no
33327fi
33328
33329rm -rf conftest.dSYM
33330rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33331 conftest$ac_exeext conftest.$ac_ext
33332LIBS=$ac_check_lib_save_LIBS
33333fi
33334{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
33335$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
33336if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = x""yes; then
33337 found_libbz=`expr $found_libbz + 1`
33338fi
33339
33340 if test "$native_win32_build" = 'yes'; then
33341 { $as_echo "$as_me:$LINENO: checking for _imp__BZ2_decompress in -lbz2" >&5
33342$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
33343if test "${ac_cv_lib_bz2__imp__BZ2_decompress+set}" = set; then
33344 $as_echo_n "(cached) " >&6
33345else
33346 ac_check_lib_save_LIBS=$LIBS
33347LIBS="-lbz2 $LIBS"
33348cat >conftest.$ac_ext <<_ACEOF
33349/* confdefs.h. */
33350_ACEOF
33351cat confdefs.h >>conftest.$ac_ext
33352cat >>conftest.$ac_ext <<_ACEOF
33353/* end confdefs.h. */
33354
33355/* Override any GCC internal prototype to avoid an error.
33356 Use char because int might match the return type of a GCC
33357 builtin and then its argument prototype would still apply. */
33358#ifdef __cplusplus
33359extern "C"
33360#endif
33361char _imp__BZ2_decompress ();
33362int
33363main ()
33364{
33365return _imp__BZ2_decompress ();
33366 ;
33367 return 0;
33368}
33369_ACEOF
33370rm -f conftest.$ac_objext conftest$ac_exeext
33371if { (ac_try="$ac_link"
33372case "(($ac_try" in
33373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33374 *) ac_try_echo=$ac_try;;
33375esac
33376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33377$as_echo "$ac_try_echo") >&5
33378 (eval "$ac_link") 2>conftest.er1
33379 ac_status=$?
33380 grep -v '^ *+' conftest.er1 >conftest.err
33381 rm -f conftest.er1
33382 cat conftest.err >&5
33383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33384 (exit $ac_status); } && {
33385 test -z "$ac_c_werror_flag" ||
33386 test ! -s conftest.err
33387 } && test -s conftest$ac_exeext && {
33388 test "$cross_compiling" = yes ||
33389 $as_test_x conftest$ac_exeext
33390 }; then
33391 ac_cv_lib_bz2__imp__BZ2_decompress=yes
33392else
33393 $as_echo "$as_me: failed program was:" >&5
33394sed 's/^/| /' conftest.$ac_ext >&5
33395
33396 ac_cv_lib_bz2__imp__BZ2_decompress=no
33397fi
33398
33399rm -rf conftest.dSYM
33400rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33401 conftest$ac_exeext conftest.$ac_ext
33402LIBS=$ac_check_lib_save_LIBS
33403fi
33404{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
33405$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
33406if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = x""yes; then
33407 found_libbz=`expr $found_libbz + 1`
33408fi
33409
33410 fi
33411 if test $found_libbz -gt 0; then
33412 passed=`expr $passed + 1`
33413 else
33414 failed=`expr $failed + 1`
33415 fi
33416 { $as_echo "$as_me:$LINENO: checking if BZLIB package is complete" >&5
33417$as_echo_n "checking if BZLIB package is complete... " >&6; }
33418 if test $passed -gt 0; then
33419 if test $failed -gt 0; then
33420 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
33421$as_echo "no -- some components failed test" >&6; }
33422 have_bzlib='no (failed tests)'
33423 else
33424 BZLIB_LIBS='-lbz2'
33425 LIBS="$BZLIB_LIBS $LIBS"
33426
33427cat >>confdefs.h <<\_ACEOF
33428#define BZLIB_DELEGATE 1
33429_ACEOF
33430
33431 { $as_echo "$as_me:$LINENO: result: yes" >&5
33432$as_echo "yes" >&6; }
33433 have_bzlib='yes'
33434 fi
33435 else
33436 { $as_echo "$as_me:$LINENO: result: no" >&5
33437$as_echo "no" >&6; }
33438 fi
33439fi
33440 if test "$have_bzlib" = 'yes'; then
33441 BZLIB_DELEGATE_TRUE=
33442 BZLIB_DELEGATE_FALSE='#'
33443else
33444 BZLIB_DELEGATE_TRUE='#'
33445 BZLIB_DELEGATE_FALSE=
33446fi
33447
33448
33449
33450#
33451# Find the X11 include and library directories.
33452#
33453IPC_LIBS=''
33454X11_LIBS=''
33455XEXT_LIBS=''
33456XT_LIBS=''
33457{ $as_echo "$as_me:$LINENO: checking for X" >&5
33458$as_echo_n "checking for X... " >&6; }
33459
33460
33461# Check whether --with-x was given.
33462if test "${with_x+set}" = set; then
33463 withval=$with_x;
33464fi
33465
33466# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
33467if test "x$with_x" = xno; then
33468 # The user explicitly disabled X.
33469 have_x=disabled
33470else
33471 case $x_includes,$x_libraries in #(
33472 *\'*) { { $as_echo "$as_me:$LINENO: error: cannot use X directory names containing '" >&5
33473$as_echo "$as_me: error: cannot use X directory names containing '" >&2;}
33474 { (exit 1); exit 1; }; };; #(
33475 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
33476 $as_echo_n "(cached) " >&6
33477else
33478 # One or both of the vars are not set, and there is no cached value.
33479ac_x_includes=no ac_x_libraries=no
33480rm -f -r conftest.dir
33481if mkdir conftest.dir; then
33482 cd conftest.dir
33483 cat >Imakefile <<'_ACEOF'
33484incroot:
33485 @echo incroot='${INCROOT}'
33486usrlibdir:
33487 @echo usrlibdir='${USRLIBDIR}'
33488libdir:
33489 @echo libdir='${LIBDIR}'
33490_ACEOF
33491 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
33492 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
33493 for ac_var in incroot usrlibdir libdir; do
33494 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
33495 done
33496 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
33497 for ac_extension in a so sl dylib la dll; do
33498 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
33499 test -f "$ac_im_libdir/libX11.$ac_extension"; then
33500 ac_im_usrlibdir=$ac_im_libdir; break
33501 fi
33502 done
33503 # Screen out bogus values from the imake configuration. They are
33504 # bogus both because they are the default anyway, and because
33505 # using them would break gcc on systems where it needs fixed includes.
33506 case $ac_im_incroot in
33507 /usr/include) ac_x_includes= ;;
33508 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
33509 esac
33510 case $ac_im_usrlibdir in
33511 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
33512 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
33513 esac
33514 fi
33515 cd ..
33516 rm -f -r conftest.dir
33517fi
33518
33519# Standard set of common directories for X headers.
33520# Check X11 before X11Rn because it is often a symlink to the current release.
33521ac_x_header_dirs='
33522/usr/X11/include
33523/usr/X11R6/include
33524/usr/X11R5/include
33525/usr/X11R4/include
33526
33527/usr/include/X11
33528/usr/include/X11R6
33529/usr/include/X11R5
33530/usr/include/X11R4
33531
33532/usr/local/X11/include
33533/usr/local/X11R6/include
33534/usr/local/X11R5/include
33535/usr/local/X11R4/include
33536
33537/usr/local/include/X11
33538/usr/local/include/X11R6
33539/usr/local/include/X11R5
33540/usr/local/include/X11R4
33541
33542/usr/X386/include
33543/usr/x386/include
33544/usr/XFree86/include/X11
33545
33546/usr/include
33547/usr/local/include
33548/usr/unsupported/include
33549/usr/athena/include
33550/usr/local/x11r5/include
33551/usr/lpp/Xamples/include
33552
33553/usr/openwin/include
33554/usr/openwin/share/include'
33555
33556if test "$ac_x_includes" = no; then
33557 # Guess where to find include files, by looking for Xlib.h.
33558 # First, try using that file with no special directory specified.
33559 cat >conftest.$ac_ext <<_ACEOF
33560/* confdefs.h. */
33561_ACEOF
33562cat confdefs.h >>conftest.$ac_ext
33563cat >>conftest.$ac_ext <<_ACEOF
33564/* end confdefs.h. */
33565#include <X11/Xlib.h>
33566_ACEOF
33567if { (ac_try="$ac_cpp conftest.$ac_ext"
33568case "(($ac_try" in
33569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33570 *) ac_try_echo=$ac_try;;
33571esac
33572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33573$as_echo "$ac_try_echo") >&5
33574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
33575 ac_status=$?
33576 grep -v '^ *+' conftest.er1 >conftest.err
33577 rm -f conftest.er1
33578 cat conftest.err >&5
33579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33580 (exit $ac_status); } >/dev/null && {
33581 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
33582 test ! -s conftest.err
33583 }; then
33584 # We can compile using X headers with no special include directory.
33585ac_x_includes=
33586else
33587 $as_echo "$as_me: failed program was:" >&5
33588sed 's/^/| /' conftest.$ac_ext >&5
33589
33590 for ac_dir in $ac_x_header_dirs; do
33591 if test -r "$ac_dir/X11/Xlib.h"; then
33592 ac_x_includes=$ac_dir
33593 break
33594 fi
33595done
33596fi
33597
33598rm -f conftest.err conftest.$ac_ext
33599fi # $ac_x_includes = no
33600
33601if test "$ac_x_libraries" = no; then
33602 # Check for the libraries.
33603 # See if we find them without any special options.
33604 # Don't add to $LIBS permanently.
33605 ac_save_LIBS=$LIBS
33606 LIBS="-lX11 $LIBS"
33607 cat >conftest.$ac_ext <<_ACEOF
33608/* confdefs.h. */
33609_ACEOF
33610cat confdefs.h >>conftest.$ac_ext
33611cat >>conftest.$ac_ext <<_ACEOF
33612/* end confdefs.h. */
33613#include <X11/Xlib.h>
33614int
33615main ()
33616{
33617XrmInitialize ()
33618 ;
33619 return 0;
33620}
33621_ACEOF
33622rm -f conftest.$ac_objext conftest$ac_exeext
33623if { (ac_try="$ac_link"
33624case "(($ac_try" in
33625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33626 *) ac_try_echo=$ac_try;;
33627esac
33628eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33629$as_echo "$ac_try_echo") >&5
33630 (eval "$ac_link") 2>conftest.er1
33631 ac_status=$?
33632 grep -v '^ *+' conftest.er1 >conftest.err
33633 rm -f conftest.er1
33634 cat conftest.err >&5
33635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33636 (exit $ac_status); } && {
33637 test -z "$ac_c_werror_flag" ||
33638 test ! -s conftest.err
33639 } && test -s conftest$ac_exeext && {
33640 test "$cross_compiling" = yes ||
33641 $as_test_x conftest$ac_exeext
33642 }; then
33643 LIBS=$ac_save_LIBS
33644# We can link X programs with no special library path.
33645ac_x_libraries=
33646else
33647 $as_echo "$as_me: failed program was:" >&5
33648sed 's/^/| /' conftest.$ac_ext >&5
33649
33650 LIBS=$ac_save_LIBS
33651for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
33652do
33653 # Don't even attempt the hair of trying to link an X program!
33654 for ac_extension in a so sl dylib la dll; do
33655 if test -r "$ac_dir/libX11.$ac_extension"; then
33656 ac_x_libraries=$ac_dir
33657 break 2
33658 fi
33659 done
33660done
33661fi
33662
33663rm -rf conftest.dSYM
33664rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33665 conftest$ac_exeext conftest.$ac_ext
33666fi # $ac_x_libraries = no
33667
33668case $ac_x_includes,$ac_x_libraries in #(
33669 no,* | *,no | *\'*)
33670 # Didn't find X, or a directory has "'" in its name.
33671 ac_cv_have_x="have_x=no";; #(
33672 *)
33673 # Record where we found X for the cache.
33674 ac_cv_have_x="have_x=yes\
33675 ac_x_includes='$ac_x_includes'\
33676 ac_x_libraries='$ac_x_libraries'"
33677esac
33678fi
33679;; #(
33680 *) have_x=yes;;
33681 esac
33682 eval "$ac_cv_have_x"
33683fi # $with_x != no
33684
33685if test "$have_x" != yes; then
33686 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
33687$as_echo "$have_x" >&6; }
33688 no_x=yes
33689else
33690 # If each of the values was on the command line, it overrides each guess.
33691 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
33692 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
33693 # Update the cache value to reflect the command line values.
33694 ac_cv_have_x="have_x=yes\
33695 ac_x_includes='$x_includes'\
33696 ac_x_libraries='$x_libraries'"
33697 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
33698$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
33699fi
33700
33701if test "$no_x" = yes; then
33702 # Not all programs may use this symbol, but it does not hurt to define it.
33703
33704cat >>confdefs.h <<\_ACEOF
33705#define X_DISPLAY_MISSING 1
33706_ACEOF
33707
33708 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
33709else
33710 if test -n "$x_includes"; then
33711 X_CFLAGS="$X_CFLAGS -I$x_includes"
33712 fi
33713
33714 # It would also be nice to do this for all -L options, not just this one.
33715 if test -n "$x_libraries"; then
33716 X_LIBS="$X_LIBS -L$x_libraries"
33717 # For Solaris; some versions of Sun CC require a space after -R and
33718 # others require no space. Words are not sufficient . . . .
33719 { $as_echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
33720$as_echo_n "checking whether -R must be followed by a space... " >&6; }
33721 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
33722 ac_xsave_c_werror_flag=$ac_c_werror_flag
33723 ac_c_werror_flag=yes
33724 cat >conftest.$ac_ext <<_ACEOF
33725/* confdefs.h. */
33726_ACEOF
33727cat confdefs.h >>conftest.$ac_ext
33728cat >>conftest.$ac_ext <<_ACEOF
33729/* end confdefs.h. */
33730
33731int
33732main ()
33733{
33734
33735 ;
33736 return 0;
33737}
33738_ACEOF
33739rm -f conftest.$ac_objext conftest$ac_exeext
33740if { (ac_try="$ac_link"
33741case "(($ac_try" in
33742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33743 *) ac_try_echo=$ac_try;;
33744esac
33745eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33746$as_echo "$ac_try_echo") >&5
33747 (eval "$ac_link") 2>conftest.er1
33748 ac_status=$?
33749 grep -v '^ *+' conftest.er1 >conftest.err
33750 rm -f conftest.er1
33751 cat conftest.err >&5
33752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33753 (exit $ac_status); } && {
33754 test -z "$ac_c_werror_flag" ||
33755 test ! -s conftest.err
33756 } && test -s conftest$ac_exeext && {
33757 test "$cross_compiling" = yes ||
33758 $as_test_x conftest$ac_exeext
33759 }; then
33760 { $as_echo "$as_me:$LINENO: result: no" >&5
33761$as_echo "no" >&6; }
33762 X_LIBS="$X_LIBS -R$x_libraries"
33763else
33764 $as_echo "$as_me: failed program was:" >&5
33765sed 's/^/| /' conftest.$ac_ext >&5
33766
33767 LIBS="$ac_xsave_LIBS -R $x_libraries"
33768 cat >conftest.$ac_ext <<_ACEOF
33769/* confdefs.h. */
33770_ACEOF
33771cat confdefs.h >>conftest.$ac_ext
33772cat >>conftest.$ac_ext <<_ACEOF
33773/* end confdefs.h. */
33774
33775int
33776main ()
33777{
33778
33779 ;
33780 return 0;
33781}
33782_ACEOF
33783rm -f conftest.$ac_objext conftest$ac_exeext
33784if { (ac_try="$ac_link"
33785case "(($ac_try" in
33786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33787 *) ac_try_echo=$ac_try;;
33788esac
33789eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33790$as_echo "$ac_try_echo") >&5
33791 (eval "$ac_link") 2>conftest.er1
33792 ac_status=$?
33793 grep -v '^ *+' conftest.er1 >conftest.err
33794 rm -f conftest.er1
33795 cat conftest.err >&5
33796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33797 (exit $ac_status); } && {
33798 test -z "$ac_c_werror_flag" ||
33799 test ! -s conftest.err
33800 } && test -s conftest$ac_exeext && {
33801 test "$cross_compiling" = yes ||
33802 $as_test_x conftest$ac_exeext
33803 }; then
33804 { $as_echo "$as_me:$LINENO: result: yes" >&5
33805$as_echo "yes" >&6; }
33806 X_LIBS="$X_LIBS -R $x_libraries"
33807else
33808 $as_echo "$as_me: failed program was:" >&5
33809sed 's/^/| /' conftest.$ac_ext >&5
33810
33811 { $as_echo "$as_me:$LINENO: result: neither works" >&5
33812$as_echo "neither works" >&6; }
33813fi
33814
33815rm -rf conftest.dSYM
33816rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33817 conftest$ac_exeext conftest.$ac_ext
33818fi
33819
33820rm -rf conftest.dSYM
33821rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33822 conftest$ac_exeext conftest.$ac_ext
33823 ac_c_werror_flag=$ac_xsave_c_werror_flag
33824 LIBS=$ac_xsave_LIBS
33825 fi
33826
33827 # Check for system-dependent libraries X programs must link with.
33828 # Do this before checking for the system-independent R6 libraries
33829 # (-lICE), since we may need -lsocket or whatever for X linking.
33830
33831 if test "$ISC" = yes; then
33832 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
33833 else
33834 # Martyn Johnson says this is needed for Ultrix, if the X
33835 # libraries were built with DECnet support. And Karl Berry says
33836 # the Alpha needs dnet_stub (dnet does not exist).
33837 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
33838 cat >conftest.$ac_ext <<_ACEOF
33839/* confdefs.h. */
33840_ACEOF
33841cat confdefs.h >>conftest.$ac_ext
33842cat >>conftest.$ac_ext <<_ACEOF
33843/* end confdefs.h. */
33844
33845/* Override any GCC internal prototype to avoid an error.
33846 Use char because int might match the return type of a GCC
33847 builtin and then its argument prototype would still apply. */
33848#ifdef __cplusplus
33849extern "C"
33850#endif
33851char XOpenDisplay ();
33852int
33853main ()
33854{
33855return XOpenDisplay ();
33856 ;
33857 return 0;
33858}
33859_ACEOF
33860rm -f conftest.$ac_objext conftest$ac_exeext
33861if { (ac_try="$ac_link"
33862case "(($ac_try" in
33863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33864 *) ac_try_echo=$ac_try;;
33865esac
33866eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33867$as_echo "$ac_try_echo") >&5
33868 (eval "$ac_link") 2>conftest.er1
33869 ac_status=$?
33870 grep -v '^ *+' conftest.er1 >conftest.err
33871 rm -f conftest.er1
33872 cat conftest.err >&5
33873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33874 (exit $ac_status); } && {
33875 test -z "$ac_c_werror_flag" ||
33876 test ! -s conftest.err
33877 } && test -s conftest$ac_exeext && {
33878 test "$cross_compiling" = yes ||
33879 $as_test_x conftest$ac_exeext
33880 }; then
33881 :
33882else
33883 $as_echo "$as_me: failed program was:" >&5
33884sed 's/^/| /' conftest.$ac_ext >&5
33885
33886 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
33887$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
33888if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
33889 $as_echo_n "(cached) " >&6
33890else
33891 ac_check_lib_save_LIBS=$LIBS
33892LIBS="-ldnet $LIBS"
33893cat >conftest.$ac_ext <<_ACEOF
33894/* confdefs.h. */
33895_ACEOF
33896cat confdefs.h >>conftest.$ac_ext
33897cat >>conftest.$ac_ext <<_ACEOF
33898/* end confdefs.h. */
33899
33900/* Override any GCC internal prototype to avoid an error.
33901 Use char because int might match the return type of a GCC
33902 builtin and then its argument prototype would still apply. */
33903#ifdef __cplusplus
33904extern "C"
33905#endif
33906char dnet_ntoa ();
33907int
33908main ()
33909{
33910return dnet_ntoa ();
33911 ;
33912 return 0;
33913}
33914_ACEOF
33915rm -f conftest.$ac_objext conftest$ac_exeext
33916if { (ac_try="$ac_link"
33917case "(($ac_try" in
33918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33919 *) ac_try_echo=$ac_try;;
33920esac
33921eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33922$as_echo "$ac_try_echo") >&5
33923 (eval "$ac_link") 2>conftest.er1
33924 ac_status=$?
33925 grep -v '^ *+' conftest.er1 >conftest.err
33926 rm -f conftest.er1
33927 cat conftest.err >&5
33928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33929 (exit $ac_status); } && {
33930 test -z "$ac_c_werror_flag" ||
33931 test ! -s conftest.err
33932 } && test -s conftest$ac_exeext && {
33933 test "$cross_compiling" = yes ||
33934 $as_test_x conftest$ac_exeext
33935 }; then
33936 ac_cv_lib_dnet_dnet_ntoa=yes
33937else
33938 $as_echo "$as_me: failed program was:" >&5
33939sed 's/^/| /' conftest.$ac_ext >&5
33940
33941 ac_cv_lib_dnet_dnet_ntoa=no
33942fi
33943
33944rm -rf conftest.dSYM
33945rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33946 conftest$ac_exeext conftest.$ac_ext
33947LIBS=$ac_check_lib_save_LIBS
33948fi
33949{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
33950$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
33951if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then
33952 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
33953fi
33954
33955 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
33956 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
33957$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
33958if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
33959 $as_echo_n "(cached) " >&6
33960else
33961 ac_check_lib_save_LIBS=$LIBS
33962LIBS="-ldnet_stub $LIBS"
33963cat >conftest.$ac_ext <<_ACEOF
33964/* confdefs.h. */
33965_ACEOF
33966cat confdefs.h >>conftest.$ac_ext
33967cat >>conftest.$ac_ext <<_ACEOF
33968/* end confdefs.h. */
33969
33970/* Override any GCC internal prototype to avoid an error.
33971 Use char because int might match the return type of a GCC
33972 builtin and then its argument prototype would still apply. */
33973#ifdef __cplusplus
33974extern "C"
33975#endif
33976char dnet_ntoa ();
33977int
33978main ()
33979{
33980return dnet_ntoa ();
33981 ;
33982 return 0;
33983}
33984_ACEOF
33985rm -f conftest.$ac_objext conftest$ac_exeext
33986if { (ac_try="$ac_link"
33987case "(($ac_try" in
33988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33989 *) ac_try_echo=$ac_try;;
33990esac
33991eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33992$as_echo "$ac_try_echo") >&5
33993 (eval "$ac_link") 2>conftest.er1
33994 ac_status=$?
33995 grep -v '^ *+' conftest.er1 >conftest.err
33996 rm -f conftest.er1
33997 cat conftest.err >&5
33998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33999 (exit $ac_status); } && {
34000 test -z "$ac_c_werror_flag" ||
34001 test ! -s conftest.err
34002 } && test -s conftest$ac_exeext && {
34003 test "$cross_compiling" = yes ||
34004 $as_test_x conftest$ac_exeext
34005 }; then
34006 ac_cv_lib_dnet_stub_dnet_ntoa=yes
34007else
34008 $as_echo "$as_me: failed program was:" >&5
34009sed 's/^/| /' conftest.$ac_ext >&5
34010
34011 ac_cv_lib_dnet_stub_dnet_ntoa=no
34012fi
34013
34014rm -rf conftest.dSYM
34015rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34016 conftest$ac_exeext conftest.$ac_ext
34017LIBS=$ac_check_lib_save_LIBS
34018fi
34019{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
34020$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
34021if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then
34022 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
34023fi
34024
34025 fi
34026fi
34027
34028rm -rf conftest.dSYM
34029rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34030 conftest$ac_exeext conftest.$ac_ext
34031 LIBS="$ac_xsave_LIBS"
34032
34033 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
34034 # to get the SysV transport functions.
34035 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
34036 # needs -lnsl.
34037 # The nsl library prevents programs from opening the X display
34038 # on Irix 5.2, according to T.E. Dickey.
34039 # The functions gethostbyname, getservbyname, and inet_addr are
34040 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
34041 { $as_echo "$as_me:$LINENO: checking for gethostbyname" >&5
34042$as_echo_n "checking for gethostbyname... " >&6; }
34043if test "${ac_cv_func_gethostbyname+set}" = set; then
34044 $as_echo_n "(cached) " >&6
34045else
34046 cat >conftest.$ac_ext <<_ACEOF
34047/* confdefs.h. */
34048_ACEOF
34049cat confdefs.h >>conftest.$ac_ext
34050cat >>conftest.$ac_ext <<_ACEOF
34051/* end confdefs.h. */
34052/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
34053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34054#define gethostbyname innocuous_gethostbyname
34055
34056/* System header to define __stub macros and hopefully few prototypes,
34057 which can conflict with char gethostbyname (); below.
34058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34059 <limits.h> exists even on freestanding compilers. */
34060
34061#ifdef __STDC__
34062# include <limits.h>
34063#else
34064# include <assert.h>
34065#endif
34066
34067#undef gethostbyname
34068
34069/* Override any GCC internal prototype to avoid an error.
34070 Use char because int might match the return type of a GCC
34071 builtin and then its argument prototype would still apply. */
34072#ifdef __cplusplus
34073extern "C"
34074#endif
34075char gethostbyname ();
34076/* The GNU C library defines this for functions which it implements
34077 to always fail with ENOSYS. Some functions are actually named
34078 something starting with __ and the normal name is an alias. */
34079#if defined __stub_gethostbyname || defined __stub___gethostbyname
34080choke me
34081#endif
34082
34083int
34084main ()
34085{
34086return gethostbyname ();
34087 ;
34088 return 0;
34089}
34090_ACEOF
34091rm -f conftest.$ac_objext conftest$ac_exeext
34092if { (ac_try="$ac_link"
34093case "(($ac_try" in
34094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34095 *) ac_try_echo=$ac_try;;
34096esac
34097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34098$as_echo "$ac_try_echo") >&5
34099 (eval "$ac_link") 2>conftest.er1
34100 ac_status=$?
34101 grep -v '^ *+' conftest.er1 >conftest.err
34102 rm -f conftest.er1
34103 cat conftest.err >&5
34104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34105 (exit $ac_status); } && {
34106 test -z "$ac_c_werror_flag" ||
34107 test ! -s conftest.err
34108 } && test -s conftest$ac_exeext && {
34109 test "$cross_compiling" = yes ||
34110 $as_test_x conftest$ac_exeext
34111 }; then
34112 ac_cv_func_gethostbyname=yes
34113else
34114 $as_echo "$as_me: failed program was:" >&5
34115sed 's/^/| /' conftest.$ac_ext >&5
34116
34117 ac_cv_func_gethostbyname=no
34118fi
34119
34120rm -rf conftest.dSYM
34121rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34122 conftest$ac_exeext conftest.$ac_ext
34123fi
34124{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
34125$as_echo "$ac_cv_func_gethostbyname" >&6; }
34126
34127 if test $ac_cv_func_gethostbyname = no; then
34128 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
34129$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
34130if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
34131 $as_echo_n "(cached) " >&6
34132else
34133 ac_check_lib_save_LIBS=$LIBS
34134LIBS="-lnsl $LIBS"
34135cat >conftest.$ac_ext <<_ACEOF
34136/* confdefs.h. */
34137_ACEOF
34138cat confdefs.h >>conftest.$ac_ext
34139cat >>conftest.$ac_ext <<_ACEOF
34140/* end confdefs.h. */
34141
34142/* Override any GCC internal prototype to avoid an error.
34143 Use char because int might match the return type of a GCC
34144 builtin and then its argument prototype would still apply. */
34145#ifdef __cplusplus
34146extern "C"
34147#endif
34148char gethostbyname ();
34149int
34150main ()
34151{
34152return gethostbyname ();
34153 ;
34154 return 0;
34155}
34156_ACEOF
34157rm -f conftest.$ac_objext conftest$ac_exeext
34158if { (ac_try="$ac_link"
34159case "(($ac_try" in
34160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34161 *) ac_try_echo=$ac_try;;
34162esac
34163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34164$as_echo "$ac_try_echo") >&5
34165 (eval "$ac_link") 2>conftest.er1
34166 ac_status=$?
34167 grep -v '^ *+' conftest.er1 >conftest.err
34168 rm -f conftest.er1
34169 cat conftest.err >&5
34170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34171 (exit $ac_status); } && {
34172 test -z "$ac_c_werror_flag" ||
34173 test ! -s conftest.err
34174 } && test -s conftest$ac_exeext && {
34175 test "$cross_compiling" = yes ||
34176 $as_test_x conftest$ac_exeext
34177 }; then
34178 ac_cv_lib_nsl_gethostbyname=yes
34179else
34180 $as_echo "$as_me: failed program was:" >&5
34181sed 's/^/| /' conftest.$ac_ext >&5
34182
34183 ac_cv_lib_nsl_gethostbyname=no
34184fi
34185
34186rm -rf conftest.dSYM
34187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34188 conftest$ac_exeext conftest.$ac_ext
34189LIBS=$ac_check_lib_save_LIBS
34190fi
34191{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
34192$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
34193if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then
34194 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
34195fi
34196
34197 if test $ac_cv_lib_nsl_gethostbyname = no; then
34198 { $as_echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
34199$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
34200if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
34201 $as_echo_n "(cached) " >&6
34202else
34203 ac_check_lib_save_LIBS=$LIBS
34204LIBS="-lbsd $LIBS"
34205cat >conftest.$ac_ext <<_ACEOF
34206/* confdefs.h. */
34207_ACEOF
34208cat confdefs.h >>conftest.$ac_ext
34209cat >>conftest.$ac_ext <<_ACEOF
34210/* end confdefs.h. */
34211
34212/* Override any GCC internal prototype to avoid an error.
34213 Use char because int might match the return type of a GCC
34214 builtin and then its argument prototype would still apply. */
34215#ifdef __cplusplus
34216extern "C"
34217#endif
34218char gethostbyname ();
34219int
34220main ()
34221{
34222return gethostbyname ();
34223 ;
34224 return 0;
34225}
34226_ACEOF
34227rm -f conftest.$ac_objext conftest$ac_exeext
34228if { (ac_try="$ac_link"
34229case "(($ac_try" in
34230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34231 *) ac_try_echo=$ac_try;;
34232esac
34233eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34234$as_echo "$ac_try_echo") >&5
34235 (eval "$ac_link") 2>conftest.er1
34236 ac_status=$?
34237 grep -v '^ *+' conftest.er1 >conftest.err
34238 rm -f conftest.er1
34239 cat conftest.err >&5
34240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34241 (exit $ac_status); } && {
34242 test -z "$ac_c_werror_flag" ||
34243 test ! -s conftest.err
34244 } && test -s conftest$ac_exeext && {
34245 test "$cross_compiling" = yes ||
34246 $as_test_x conftest$ac_exeext
34247 }; then
34248 ac_cv_lib_bsd_gethostbyname=yes
34249else
34250 $as_echo "$as_me: failed program was:" >&5
34251sed 's/^/| /' conftest.$ac_ext >&5
34252
34253 ac_cv_lib_bsd_gethostbyname=no
34254fi
34255
34256rm -rf conftest.dSYM
34257rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34258 conftest$ac_exeext conftest.$ac_ext
34259LIBS=$ac_check_lib_save_LIBS
34260fi
34261{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
34262$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
34263if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then
34264 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
34265fi
34266
34267 fi
34268 fi
34269
34270 # lieder@skyler.mavd.honeywell.com says without -lsocket,
34271 # socket/setsockopt and other routines are undefined under SCO ODT
34272 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
34273 # on later versions), says Simon Leinen: it contains gethostby*
34274 # variants that don't use the name server (or something). -lsocket
34275 # must be given before -lnsl if both are needed. We assume that
34276 # if connect needs -lnsl, so does gethostbyname.
34277 { $as_echo "$as_me:$LINENO: checking for connect" >&5
34278$as_echo_n "checking for connect... " >&6; }
34279if test "${ac_cv_func_connect+set}" = set; then
34280 $as_echo_n "(cached) " >&6
34281else
34282 cat >conftest.$ac_ext <<_ACEOF
34283/* confdefs.h. */
34284_ACEOF
34285cat confdefs.h >>conftest.$ac_ext
34286cat >>conftest.$ac_ext <<_ACEOF
34287/* end confdefs.h. */
34288/* Define connect to an innocuous variant, in case <limits.h> declares connect.
34289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34290#define connect innocuous_connect
34291
34292/* System header to define __stub macros and hopefully few prototypes,
34293 which can conflict with char connect (); below.
34294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34295 <limits.h> exists even on freestanding compilers. */
34296
34297#ifdef __STDC__
34298# include <limits.h>
34299#else
34300# include <assert.h>
34301#endif
34302
34303#undef connect
34304
34305/* Override any GCC internal prototype to avoid an error.
34306 Use char because int might match the return type of a GCC
34307 builtin and then its argument prototype would still apply. */
34308#ifdef __cplusplus
34309extern "C"
34310#endif
34311char connect ();
34312/* The GNU C library defines this for functions which it implements
34313 to always fail with ENOSYS. Some functions are actually named
34314 something starting with __ and the normal name is an alias. */
34315#if defined __stub_connect || defined __stub___connect
34316choke me
34317#endif
34318
34319int
34320main ()
34321{
34322return connect ();
34323 ;
34324 return 0;
34325}
34326_ACEOF
34327rm -f conftest.$ac_objext conftest$ac_exeext
34328if { (ac_try="$ac_link"
34329case "(($ac_try" in
34330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34331 *) ac_try_echo=$ac_try;;
34332esac
34333eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34334$as_echo "$ac_try_echo") >&5
34335 (eval "$ac_link") 2>conftest.er1
34336 ac_status=$?
34337 grep -v '^ *+' conftest.er1 >conftest.err
34338 rm -f conftest.er1
34339 cat conftest.err >&5
34340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34341 (exit $ac_status); } && {
34342 test -z "$ac_c_werror_flag" ||
34343 test ! -s conftest.err
34344 } && test -s conftest$ac_exeext && {
34345 test "$cross_compiling" = yes ||
34346 $as_test_x conftest$ac_exeext
34347 }; then
34348 ac_cv_func_connect=yes
34349else
34350 $as_echo "$as_me: failed program was:" >&5
34351sed 's/^/| /' conftest.$ac_ext >&5
34352
34353 ac_cv_func_connect=no
34354fi
34355
34356rm -rf conftest.dSYM
34357rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34358 conftest$ac_exeext conftest.$ac_ext
34359fi
34360{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
34361$as_echo "$ac_cv_func_connect" >&6; }
34362
34363 if test $ac_cv_func_connect = no; then
34364 { $as_echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
34365$as_echo_n "checking for connect in -lsocket... " >&6; }
34366if test "${ac_cv_lib_socket_connect+set}" = set; then
34367 $as_echo_n "(cached) " >&6
34368else
34369 ac_check_lib_save_LIBS=$LIBS
34370LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
34371cat >conftest.$ac_ext <<_ACEOF
34372/* confdefs.h. */
34373_ACEOF
34374cat confdefs.h >>conftest.$ac_ext
34375cat >>conftest.$ac_ext <<_ACEOF
34376/* end confdefs.h. */
34377
34378/* Override any GCC internal prototype to avoid an error.
34379 Use char because int might match the return type of a GCC
34380 builtin and then its argument prototype would still apply. */
34381#ifdef __cplusplus
34382extern "C"
34383#endif
34384char connect ();
34385int
34386main ()
34387{
34388return connect ();
34389 ;
34390 return 0;
34391}
34392_ACEOF
34393rm -f conftest.$ac_objext conftest$ac_exeext
34394if { (ac_try="$ac_link"
34395case "(($ac_try" in
34396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34397 *) ac_try_echo=$ac_try;;
34398esac
34399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34400$as_echo "$ac_try_echo") >&5
34401 (eval "$ac_link") 2>conftest.er1
34402 ac_status=$?
34403 grep -v '^ *+' conftest.er1 >conftest.err
34404 rm -f conftest.er1
34405 cat conftest.err >&5
34406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34407 (exit $ac_status); } && {
34408 test -z "$ac_c_werror_flag" ||
34409 test ! -s conftest.err
34410 } && test -s conftest$ac_exeext && {
34411 test "$cross_compiling" = yes ||
34412 $as_test_x conftest$ac_exeext
34413 }; then
34414 ac_cv_lib_socket_connect=yes
34415else
34416 $as_echo "$as_me: failed program was:" >&5
34417sed 's/^/| /' conftest.$ac_ext >&5
34418
34419 ac_cv_lib_socket_connect=no
34420fi
34421
34422rm -rf conftest.dSYM
34423rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34424 conftest$ac_exeext conftest.$ac_ext
34425LIBS=$ac_check_lib_save_LIBS
34426fi
34427{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
34428$as_echo "$ac_cv_lib_socket_connect" >&6; }
34429if test "x$ac_cv_lib_socket_connect" = x""yes; then
34430 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
34431fi
34432
34433 fi
34434
34435 # Guillermo Gomez says -lposix is necessary on A/UX.
34436 { $as_echo "$as_me:$LINENO: checking for remove" >&5
34437$as_echo_n "checking for remove... " >&6; }
34438if test "${ac_cv_func_remove+set}" = set; then
34439 $as_echo_n "(cached) " >&6
34440else
34441 cat >conftest.$ac_ext <<_ACEOF
34442/* confdefs.h. */
34443_ACEOF
34444cat confdefs.h >>conftest.$ac_ext
34445cat >>conftest.$ac_ext <<_ACEOF
34446/* end confdefs.h. */
34447/* Define remove to an innocuous variant, in case <limits.h> declares remove.
34448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34449#define remove innocuous_remove
34450
34451/* System header to define __stub macros and hopefully few prototypes,
34452 which can conflict with char remove (); below.
34453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34454 <limits.h> exists even on freestanding compilers. */
34455
34456#ifdef __STDC__
34457# include <limits.h>
34458#else
34459# include <assert.h>
34460#endif
34461
34462#undef remove
34463
34464/* Override any GCC internal prototype to avoid an error.
34465 Use char because int might match the return type of a GCC
34466 builtin and then its argument prototype would still apply. */
34467#ifdef __cplusplus
34468extern "C"
34469#endif
34470char remove ();
34471/* The GNU C library defines this for functions which it implements
34472 to always fail with ENOSYS. Some functions are actually named
34473 something starting with __ and the normal name is an alias. */
34474#if defined __stub_remove || defined __stub___remove
34475choke me
34476#endif
34477
34478int
34479main ()
34480{
34481return remove ();
34482 ;
34483 return 0;
34484}
34485_ACEOF
34486rm -f conftest.$ac_objext conftest$ac_exeext
34487if { (ac_try="$ac_link"
34488case "(($ac_try" in
34489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34490 *) ac_try_echo=$ac_try;;
34491esac
34492eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34493$as_echo "$ac_try_echo") >&5
34494 (eval "$ac_link") 2>conftest.er1
34495 ac_status=$?
34496 grep -v '^ *+' conftest.er1 >conftest.err
34497 rm -f conftest.er1
34498 cat conftest.err >&5
34499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34500 (exit $ac_status); } && {
34501 test -z "$ac_c_werror_flag" ||
34502 test ! -s conftest.err
34503 } && test -s conftest$ac_exeext && {
34504 test "$cross_compiling" = yes ||
34505 $as_test_x conftest$ac_exeext
34506 }; then
34507 ac_cv_func_remove=yes
34508else
34509 $as_echo "$as_me: failed program was:" >&5
34510sed 's/^/| /' conftest.$ac_ext >&5
34511
34512 ac_cv_func_remove=no
34513fi
34514
34515rm -rf conftest.dSYM
34516rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34517 conftest$ac_exeext conftest.$ac_ext
34518fi
34519{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
34520$as_echo "$ac_cv_func_remove" >&6; }
34521
34522 if test $ac_cv_func_remove = no; then
34523 { $as_echo "$as_me:$LINENO: checking for remove in -lposix" >&5
34524$as_echo_n "checking for remove in -lposix... " >&6; }
34525if test "${ac_cv_lib_posix_remove+set}" = set; then
34526 $as_echo_n "(cached) " >&6
34527else
34528 ac_check_lib_save_LIBS=$LIBS
34529LIBS="-lposix $LIBS"
34530cat >conftest.$ac_ext <<_ACEOF
34531/* confdefs.h. */
34532_ACEOF
34533cat confdefs.h >>conftest.$ac_ext
34534cat >>conftest.$ac_ext <<_ACEOF
34535/* end confdefs.h. */
34536
34537/* Override any GCC internal prototype to avoid an error.
34538 Use char because int might match the return type of a GCC
34539 builtin and then its argument prototype would still apply. */
34540#ifdef __cplusplus
34541extern "C"
34542#endif
34543char remove ();
34544int
34545main ()
34546{
34547return remove ();
34548 ;
34549 return 0;
34550}
34551_ACEOF
34552rm -f conftest.$ac_objext conftest$ac_exeext
34553if { (ac_try="$ac_link"
34554case "(($ac_try" in
34555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34556 *) ac_try_echo=$ac_try;;
34557esac
34558eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34559$as_echo "$ac_try_echo") >&5
34560 (eval "$ac_link") 2>conftest.er1
34561 ac_status=$?
34562 grep -v '^ *+' conftest.er1 >conftest.err
34563 rm -f conftest.er1
34564 cat conftest.err >&5
34565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34566 (exit $ac_status); } && {
34567 test -z "$ac_c_werror_flag" ||
34568 test ! -s conftest.err
34569 } && test -s conftest$ac_exeext && {
34570 test "$cross_compiling" = yes ||
34571 $as_test_x conftest$ac_exeext
34572 }; then
34573 ac_cv_lib_posix_remove=yes
34574else
34575 $as_echo "$as_me: failed program was:" >&5
34576sed 's/^/| /' conftest.$ac_ext >&5
34577
34578 ac_cv_lib_posix_remove=no
34579fi
34580
34581rm -rf conftest.dSYM
34582rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34583 conftest$ac_exeext conftest.$ac_ext
34584LIBS=$ac_check_lib_save_LIBS
34585fi
34586{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
34587$as_echo "$ac_cv_lib_posix_remove" >&6; }
34588if test "x$ac_cv_lib_posix_remove" = x""yes; then
34589 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
34590fi
34591
34592 fi
34593
34594 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
34595 { $as_echo "$as_me:$LINENO: checking for shmat" >&5
34596$as_echo_n "checking for shmat... " >&6; }
34597if test "${ac_cv_func_shmat+set}" = set; then
34598 $as_echo_n "(cached) " >&6
34599else
34600 cat >conftest.$ac_ext <<_ACEOF
34601/* confdefs.h. */
34602_ACEOF
34603cat confdefs.h >>conftest.$ac_ext
34604cat >>conftest.$ac_ext <<_ACEOF
34605/* end confdefs.h. */
34606/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
34607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34608#define shmat innocuous_shmat
34609
34610/* System header to define __stub macros and hopefully few prototypes,
34611 which can conflict with char shmat (); below.
34612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34613 <limits.h> exists even on freestanding compilers. */
34614
34615#ifdef __STDC__
34616# include <limits.h>
34617#else
34618# include <assert.h>
34619#endif
34620
34621#undef shmat
34622
34623/* Override any GCC internal prototype to avoid an error.
34624 Use char because int might match the return type of a GCC
34625 builtin and then its argument prototype would still apply. */
34626#ifdef __cplusplus
34627extern "C"
34628#endif
34629char shmat ();
34630/* The GNU C library defines this for functions which it implements
34631 to always fail with ENOSYS. Some functions are actually named
34632 something starting with __ and the normal name is an alias. */
34633#if defined __stub_shmat || defined __stub___shmat
34634choke me
34635#endif
34636
34637int
34638main ()
34639{
34640return shmat ();
34641 ;
34642 return 0;
34643}
34644_ACEOF
34645rm -f conftest.$ac_objext conftest$ac_exeext
34646if { (ac_try="$ac_link"
34647case "(($ac_try" in
34648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34649 *) ac_try_echo=$ac_try;;
34650esac
34651eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34652$as_echo "$ac_try_echo") >&5
34653 (eval "$ac_link") 2>conftest.er1
34654 ac_status=$?
34655 grep -v '^ *+' conftest.er1 >conftest.err
34656 rm -f conftest.er1
34657 cat conftest.err >&5
34658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34659 (exit $ac_status); } && {
34660 test -z "$ac_c_werror_flag" ||
34661 test ! -s conftest.err
34662 } && test -s conftest$ac_exeext && {
34663 test "$cross_compiling" = yes ||
34664 $as_test_x conftest$ac_exeext
34665 }; then
34666 ac_cv_func_shmat=yes
34667else
34668 $as_echo "$as_me: failed program was:" >&5
34669sed 's/^/| /' conftest.$ac_ext >&5
34670
34671 ac_cv_func_shmat=no
34672fi
34673
34674rm -rf conftest.dSYM
34675rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34676 conftest$ac_exeext conftest.$ac_ext
34677fi
34678{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
34679$as_echo "$ac_cv_func_shmat" >&6; }
34680
34681 if test $ac_cv_func_shmat = no; then
34682 { $as_echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
34683$as_echo_n "checking for shmat in -lipc... " >&6; }
34684if test "${ac_cv_lib_ipc_shmat+set}" = set; then
34685 $as_echo_n "(cached) " >&6
34686else
34687 ac_check_lib_save_LIBS=$LIBS
34688LIBS="-lipc $LIBS"
34689cat >conftest.$ac_ext <<_ACEOF
34690/* confdefs.h. */
34691_ACEOF
34692cat confdefs.h >>conftest.$ac_ext
34693cat >>conftest.$ac_ext <<_ACEOF
34694/* end confdefs.h. */
34695
34696/* Override any GCC internal prototype to avoid an error.
34697 Use char because int might match the return type of a GCC
34698 builtin and then its argument prototype would still apply. */
34699#ifdef __cplusplus
34700extern "C"
34701#endif
34702char shmat ();
34703int
34704main ()
34705{
34706return shmat ();
34707 ;
34708 return 0;
34709}
34710_ACEOF
34711rm -f conftest.$ac_objext conftest$ac_exeext
34712if { (ac_try="$ac_link"
34713case "(($ac_try" in
34714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34715 *) ac_try_echo=$ac_try;;
34716esac
34717eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34718$as_echo "$ac_try_echo") >&5
34719 (eval "$ac_link") 2>conftest.er1
34720 ac_status=$?
34721 grep -v '^ *+' conftest.er1 >conftest.err
34722 rm -f conftest.er1
34723 cat conftest.err >&5
34724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34725 (exit $ac_status); } && {
34726 test -z "$ac_c_werror_flag" ||
34727 test ! -s conftest.err
34728 } && test -s conftest$ac_exeext && {
34729 test "$cross_compiling" = yes ||
34730 $as_test_x conftest$ac_exeext
34731 }; then
34732 ac_cv_lib_ipc_shmat=yes
34733else
34734 $as_echo "$as_me: failed program was:" >&5
34735sed 's/^/| /' conftest.$ac_ext >&5
34736
34737 ac_cv_lib_ipc_shmat=no
34738fi
34739
34740rm -rf conftest.dSYM
34741rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34742 conftest$ac_exeext conftest.$ac_ext
34743LIBS=$ac_check_lib_save_LIBS
34744fi
34745{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
34746$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
34747if test "x$ac_cv_lib_ipc_shmat" = x""yes; then
34748 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
34749fi
34750
34751 fi
34752 fi
34753
34754 # Check for libraries that X11R6 Xt/Xaw programs need.
34755 ac_save_LDFLAGS=$LDFLAGS
34756 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
34757 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
34758 # check for ICE first), but we must link in the order -lSM -lICE or
34759 # we get undefined symbols. So assume we have SM if we have ICE.
34760 # These have to be linked with before -lX11, unlike the other
34761 # libraries we check for below, so use a different variable.
34762 # John Interrante, Karl Berry
34763 { $as_echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
34764$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
34765if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
34766 $as_echo_n "(cached) " >&6
34767else
34768 ac_check_lib_save_LIBS=$LIBS
34769LIBS="-lICE $X_EXTRA_LIBS $LIBS"
34770cat >conftest.$ac_ext <<_ACEOF
34771/* confdefs.h. */
34772_ACEOF
34773cat confdefs.h >>conftest.$ac_ext
34774cat >>conftest.$ac_ext <<_ACEOF
34775/* end confdefs.h. */
34776
34777/* Override any GCC internal prototype to avoid an error.
34778 Use char because int might match the return type of a GCC
34779 builtin and then its argument prototype would still apply. */
34780#ifdef __cplusplus
34781extern "C"
34782#endif
34783char IceConnectionNumber ();
34784int
34785main ()
34786{
34787return IceConnectionNumber ();
34788 ;
34789 return 0;
34790}
34791_ACEOF
34792rm -f conftest.$ac_objext conftest$ac_exeext
34793if { (ac_try="$ac_link"
34794case "(($ac_try" in
34795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34796 *) ac_try_echo=$ac_try;;
34797esac
34798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34799$as_echo "$ac_try_echo") >&5
34800 (eval "$ac_link") 2>conftest.er1
34801 ac_status=$?
34802 grep -v '^ *+' conftest.er1 >conftest.err
34803 rm -f conftest.er1
34804 cat conftest.err >&5
34805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34806 (exit $ac_status); } && {
34807 test -z "$ac_c_werror_flag" ||
34808 test ! -s conftest.err
34809 } && test -s conftest$ac_exeext && {
34810 test "$cross_compiling" = yes ||
34811 $as_test_x conftest$ac_exeext
34812 }; then
34813 ac_cv_lib_ICE_IceConnectionNumber=yes
34814else
34815 $as_echo "$as_me: failed program was:" >&5
34816sed 's/^/| /' conftest.$ac_ext >&5
34817
34818 ac_cv_lib_ICE_IceConnectionNumber=no
34819fi
34820
34821rm -rf conftest.dSYM
34822rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34823 conftest$ac_exeext conftest.$ac_ext
34824LIBS=$ac_check_lib_save_LIBS
34825fi
34826{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
34827$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
34828if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then
34829 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
34830fi
34831
34832 LDFLAGS=$ac_save_LDFLAGS
34833
34834fi
34835
34836if test "$no_x" != 'yes'; then
34837 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
34838$as_echo "-------------------------------------------------------------" >&6; }
34839 { $as_echo "$as_me:$LINENO: checking for X11" >&5
34840$as_echo_n "checking for X11... " >&6; }
34841 { $as_echo "$as_me:$LINENO: result: " >&5
34842$as_echo "" >&6; }
34843 LDFLAGS="$LDFLAGS $X_LIBS"
34844 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
34845 LIBS="$X11_LIBS $LIBS"
34846 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
34847
34848
34849cat >>confdefs.h <<\_ACEOF
34850#define X11_DELEGATE 1
34851_ACEOF
34852
34853 #
34854 # Check for X11 shared memory extension
34855 #
34856 # shmctl is required to support the shared memory extension
34857 { $as_echo "$as_me:$LINENO: checking for shmctl" >&5
34858$as_echo_n "checking for shmctl... " >&6; }
34859if test "${ac_cv_func_shmctl+set}" = set; then
34860 $as_echo_n "(cached) " >&6
34861else
34862 cat >conftest.$ac_ext <<_ACEOF
34863/* confdefs.h. */
34864_ACEOF
34865cat confdefs.h >>conftest.$ac_ext
34866cat >>conftest.$ac_ext <<_ACEOF
34867/* end confdefs.h. */
34868/* Define shmctl to an innocuous variant, in case <limits.h> declares shmctl.
34869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
34870#define shmctl innocuous_shmctl
34871
34872/* System header to define __stub macros and hopefully few prototypes,
34873 which can conflict with char shmctl (); below.
34874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34875 <limits.h> exists even on freestanding compilers. */
34876
34877#ifdef __STDC__
34878# include <limits.h>
34879#else
34880# include <assert.h>
34881#endif
34882
34883#undef shmctl
34884
34885/* Override any GCC internal prototype to avoid an error.
34886 Use char because int might match the return type of a GCC
34887 builtin and then its argument prototype would still apply. */
34888#ifdef __cplusplus
34889extern "C"
34890#endif
34891char shmctl ();
34892/* The GNU C library defines this for functions which it implements
34893 to always fail with ENOSYS. Some functions are actually named
34894 something starting with __ and the normal name is an alias. */
34895#if defined __stub_shmctl || defined __stub___shmctl
34896choke me
34897#endif
34898
34899int
34900main ()
34901{
34902return shmctl ();
34903 ;
34904 return 0;
34905}
34906_ACEOF
34907rm -f conftest.$ac_objext conftest$ac_exeext
34908if { (ac_try="$ac_link"
34909case "(($ac_try" in
34910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34911 *) ac_try_echo=$ac_try;;
34912esac
34913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34914$as_echo "$ac_try_echo") >&5
34915 (eval "$ac_link") 2>conftest.er1
34916 ac_status=$?
34917 grep -v '^ *+' conftest.er1 >conftest.err
34918 rm -f conftest.er1
34919 cat conftest.err >&5
34920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34921 (exit $ac_status); } && {
34922 test -z "$ac_c_werror_flag" ||
34923 test ! -s conftest.err
34924 } && test -s conftest$ac_exeext && {
34925 test "$cross_compiling" = yes ||
34926 $as_test_x conftest$ac_exeext
34927 }; then
34928 ac_cv_func_shmctl=yes
34929else
34930 $as_echo "$as_me: failed program was:" >&5
34931sed 's/^/| /' conftest.$ac_ext >&5
34932
34933 ac_cv_func_shmctl=no
34934fi
34935
34936rm -rf conftest.dSYM
34937rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34938 conftest$ac_exeext conftest.$ac_ext
34939fi
34940{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_shmctl" >&5
34941$as_echo "$ac_cv_func_shmctl" >&6; }
34942if test "x$ac_cv_func_shmctl" = x""yes; then
34943 have_shmctl='yes'
34944fi
34945
34946 if test "$have_shmctl" != 'yes'; then
34947 PERSIST_LIBS=$LIBS
34948 LIBS="$LIBS -lcygipc"
34949 cat >conftest.$ac_ext <<_ACEOF
34950/* confdefs.h. */
34951_ACEOF
34952cat confdefs.h >>conftest.$ac_ext
34953cat >>conftest.$ac_ext <<_ACEOF
34954/* end confdefs.h. */
34955
34956/* Override any GCC internal prototype to avoid an error.
34957 Use char because int might match the return type of a GCC
34958 builtin and then its argument prototype would still apply. */
34959#ifdef __cplusplus
34960extern "C"
34961#endif
34962char shmctl ();
34963int
34964main ()
34965{
34966return shmctl ();
34967 ;
34968 return 0;
34969}
34970_ACEOF
34971rm -f conftest.$ac_objext conftest$ac_exeext
34972if { (ac_try="$ac_link"
34973case "(($ac_try" in
34974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34975 *) ac_try_echo=$ac_try;;
34976esac
34977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34978$as_echo "$ac_try_echo") >&5
34979 (eval "$ac_link") 2>conftest.er1
34980 ac_status=$?
34981 grep -v '^ *+' conftest.er1 >conftest.err
34982 rm -f conftest.er1
34983 cat conftest.err >&5
34984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34985 (exit $ac_status); } && {
34986 test -z "$ac_c_werror_flag" ||
34987 test ! -s conftest.err
34988 } && test -s conftest$ac_exeext && {
34989 test "$cross_compiling" = yes ||
34990 $as_test_x conftest$ac_exeext
34991 }; then
34992 have_shmctl='yes'; IPC_LIBS='-lcygipc'
34993else
34994 $as_echo "$as_me: failed program was:" >&5
34995sed 's/^/| /' conftest.$ac_ext >&5
34996
34997
34998fi
34999
35000rm -rf conftest.dSYM
35001rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35002 conftest$ac_exeext conftest.$ac_ext
35003 LIBS=$PERSIST_LIBS
35004 fi
35005
35006 if test "$have_shmctl" = 'yes'; then
35007 { $as_echo "$as_me:$LINENO: checking for XShmAttach in -lXext" >&5
35008$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
35009if test "${ac_cv_lib_Xext_XShmAttach+set}" = set; then
35010 $as_echo_n "(cached) " >&6
35011else
35012 ac_check_lib_save_LIBS=$LIBS
35013LIBS="-lXext $LIBS"
35014cat >conftest.$ac_ext <<_ACEOF
35015/* confdefs.h. */
35016_ACEOF
35017cat confdefs.h >>conftest.$ac_ext
35018cat >>conftest.$ac_ext <<_ACEOF
35019/* end confdefs.h. */
35020
35021/* Override any GCC internal prototype to avoid an error.
35022 Use char because int might match the return type of a GCC
35023 builtin and then its argument prototype would still apply. */
35024#ifdef __cplusplus
35025extern "C"
35026#endif
35027char XShmAttach ();
35028int
35029main ()
35030{
35031return XShmAttach ();
35032 ;
35033 return 0;
35034}
35035_ACEOF
35036rm -f conftest.$ac_objext conftest$ac_exeext
35037if { (ac_try="$ac_link"
35038case "(($ac_try" in
35039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35040 *) ac_try_echo=$ac_try;;
35041esac
35042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35043$as_echo "$ac_try_echo") >&5
35044 (eval "$ac_link") 2>conftest.er1
35045 ac_status=$?
35046 grep -v '^ *+' conftest.er1 >conftest.err
35047 rm -f conftest.er1
35048 cat conftest.err >&5
35049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35050 (exit $ac_status); } && {
35051 test -z "$ac_c_werror_flag" ||
35052 test ! -s conftest.err
35053 } && test -s conftest$ac_exeext && {
35054 test "$cross_compiling" = yes ||
35055 $as_test_x conftest$ac_exeext
35056 }; then
35057 ac_cv_lib_Xext_XShmAttach=yes
35058else
35059 $as_echo "$as_me: failed program was:" >&5
35060sed 's/^/| /' conftest.$ac_ext >&5
35061
35062 ac_cv_lib_Xext_XShmAttach=no
35063fi
35064
35065rm -rf conftest.dSYM
35066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35067 conftest$ac_exeext conftest.$ac_ext
35068LIBS=$ac_check_lib_save_LIBS
35069fi
35070{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmAttach" >&5
35071$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
35072if test "x$ac_cv_lib_Xext_XShmAttach" = x""yes; then
35073 XEXT_LIBS='-lXext' ;
35074cat >>confdefs.h <<\_ACEOF
35075#define HAVE_SHARED_MEMORY 1
35076_ACEOF
35077
35078fi
35079
35080 fi
35081
35082 #
35083 # Check for X11 shape extension
35084 #
35085 { $as_echo "$as_me:$LINENO: checking for XShapeCombineMask in -lXext" >&5
35086$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
35087if test "${ac_cv_lib_Xext_XShapeCombineMask+set}" = set; then
35088 $as_echo_n "(cached) " >&6
35089else
35090 ac_check_lib_save_LIBS=$LIBS
35091LIBS="-lXext $LIBS"
35092cat >conftest.$ac_ext <<_ACEOF
35093/* confdefs.h. */
35094_ACEOF
35095cat confdefs.h >>conftest.$ac_ext
35096cat >>conftest.$ac_ext <<_ACEOF
35097/* end confdefs.h. */
35098
35099/* Override any GCC internal prototype to avoid an error.
35100 Use char because int might match the return type of a GCC
35101 builtin and then its argument prototype would still apply. */
35102#ifdef __cplusplus
35103extern "C"
35104#endif
35105char XShapeCombineMask ();
35106int
35107main ()
35108{
35109return XShapeCombineMask ();
35110 ;
35111 return 0;
35112}
35113_ACEOF
35114rm -f conftest.$ac_objext conftest$ac_exeext
35115if { (ac_try="$ac_link"
35116case "(($ac_try" in
35117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35118 *) ac_try_echo=$ac_try;;
35119esac
35120eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35121$as_echo "$ac_try_echo") >&5
35122 (eval "$ac_link") 2>conftest.er1
35123 ac_status=$?
35124 grep -v '^ *+' conftest.er1 >conftest.err
35125 rm -f conftest.er1
35126 cat conftest.err >&5
35127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35128 (exit $ac_status); } && {
35129 test -z "$ac_c_werror_flag" ||
35130 test ! -s conftest.err
35131 } && test -s conftest$ac_exeext && {
35132 test "$cross_compiling" = yes ||
35133 $as_test_x conftest$ac_exeext
35134 }; then
35135 ac_cv_lib_Xext_XShapeCombineMask=yes
35136else
35137 $as_echo "$as_me: failed program was:" >&5
35138sed 's/^/| /' conftest.$ac_ext >&5
35139
35140 ac_cv_lib_Xext_XShapeCombineMask=no
35141fi
35142
35143rm -rf conftest.dSYM
35144rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35145 conftest$ac_exeext conftest.$ac_ext
35146LIBS=$ac_check_lib_save_LIBS
35147fi
35148{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
35149$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
35150if test "x$ac_cv_lib_Xext_XShapeCombineMask" = x""yes; then
35151 XEXT_LIBS='-lXext' ;
35152cat >>confdefs.h <<\_ACEOF
35153#define HAVE_SHAPE 1
35154_ACEOF
35155
35156fi
35157
35158 { $as_echo "$as_me:$LINENO: checking for XtSetEventDispatcher in -lXt" >&5
35159$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
35160if test "${ac_cv_lib_Xt_XtSetEventDispatcher+set}" = set; then
35161 $as_echo_n "(cached) " >&6
35162else
35163 ac_check_lib_save_LIBS=$LIBS
35164LIBS="-lXt $LIBS"
35165cat >conftest.$ac_ext <<_ACEOF
35166/* confdefs.h. */
35167_ACEOF
35168cat confdefs.h >>conftest.$ac_ext
35169cat >>conftest.$ac_ext <<_ACEOF
35170/* end confdefs.h. */
35171
35172/* Override any GCC internal prototype to avoid an error.
35173 Use char because int might match the return type of a GCC
35174 builtin and then its argument prototype would still apply. */
35175#ifdef __cplusplus
35176extern "C"
35177#endif
35178char XtSetEventDispatcher ();
35179int
35180main ()
35181{
35182return XtSetEventDispatcher ();
35183 ;
35184 return 0;
35185}
35186_ACEOF
35187rm -f conftest.$ac_objext conftest$ac_exeext
35188if { (ac_try="$ac_link"
35189case "(($ac_try" in
35190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35191 *) ac_try_echo=$ac_try;;
35192esac
35193eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35194$as_echo "$ac_try_echo") >&5
35195 (eval "$ac_link") 2>conftest.er1
35196 ac_status=$?
35197 grep -v '^ *+' conftest.er1 >conftest.err
35198 rm -f conftest.er1
35199 cat conftest.err >&5
35200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35201 (exit $ac_status); } && {
35202 test -z "$ac_c_werror_flag" ||
35203 test ! -s conftest.err
35204 } && test -s conftest$ac_exeext && {
35205 test "$cross_compiling" = yes ||
35206 $as_test_x conftest$ac_exeext
35207 }; then
35208 ac_cv_lib_Xt_XtSetEventDispatcher=yes
35209else
35210 $as_echo "$as_me: failed program was:" >&5
35211sed 's/^/| /' conftest.$ac_ext >&5
35212
35213 ac_cv_lib_Xt_XtSetEventDispatcher=no
35214fi
35215
35216rm -rf conftest.dSYM
35217rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35218 conftest$ac_exeext conftest.$ac_ext
35219LIBS=$ac_check_lib_save_LIBS
35220fi
35221{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
35222$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
35223if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = x""yes; then
35224 XT_LIBS='-lXt'
35225fi
35226
35227 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
35228fi
35229if test "$no_x" != 'yes'; then
35230 have_x='yes'
35231else
35232 have_x='no'
35233fi
35234 if test "$have_x" = 'yes'; then
35235 X11_DELEGATE_TRUE=
35236 X11_DELEGATE_FALSE='#'
35237else
35238 X11_DELEGATE_TRUE='#'
35239 X11_DELEGATE_FALSE=
35240fi
35241
35242
35243
35244
35245
35246#
35247# Check for ZLIB
35248#
35249
35250# Check whether --with-zlib was given.
35251if test "${with_zlib+set}" = set; then
35252 withval=$with_zlib; with_zlib=$withval
35253else
35254 with_zlib='yes'
35255fi
35256
35257
35258if test "$with_zlib" != 'yes'; then
35259 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
35260fi
35261
35262have_zlib='no'
35263ZLIB_LIBS=''
35264if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
35265 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
35266$as_echo "-------------------------------------------------------------" >&6; }
35267 { $as_echo "$as_me:$LINENO: checking for ZLIB" >&5
35268$as_echo_n "checking for ZLIB... " >&6; }
35269 { $as_echo "$as_me:$LINENO: result: " >&5
35270$as_echo "" >&6; }
35271 ZLIB_LIBS=''
35272 failed=0
35273 passed=0
35274 if test "${ac_cv_header_zconf_h+set}" = set; then
35275 { $as_echo "$as_me:$LINENO: checking for zconf.h" >&5
35276$as_echo_n "checking for zconf.h... " >&6; }
35277if test "${ac_cv_header_zconf_h+set}" = set; then
35278 $as_echo_n "(cached) " >&6
35279fi
35280{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zconf_h" >&5
35281$as_echo "$ac_cv_header_zconf_h" >&6; }
35282else
35283 # Is the header compilable?
35284{ $as_echo "$as_me:$LINENO: checking zconf.h usability" >&5
35285$as_echo_n "checking zconf.h usability... " >&6; }
35286cat >conftest.$ac_ext <<_ACEOF
35287/* confdefs.h. */
35288_ACEOF
35289cat confdefs.h >>conftest.$ac_ext
35290cat >>conftest.$ac_ext <<_ACEOF
35291/* end confdefs.h. */
35292$ac_includes_default
35293#include <zconf.h>
35294_ACEOF
35295rm -f conftest.$ac_objext
35296if { (ac_try="$ac_compile"
35297case "(($ac_try" in
35298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35299 *) ac_try_echo=$ac_try;;
35300esac
35301eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35302$as_echo "$ac_try_echo") >&5
35303 (eval "$ac_compile") 2>conftest.er1
35304 ac_status=$?
35305 grep -v '^ *+' conftest.er1 >conftest.err
35306 rm -f conftest.er1
35307 cat conftest.err >&5
35308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35309 (exit $ac_status); } && {
35310 test -z "$ac_c_werror_flag" ||
35311 test ! -s conftest.err
35312 } && test -s conftest.$ac_objext; then
35313 ac_header_compiler=yes
35314else
35315 $as_echo "$as_me: failed program was:" >&5
35316sed 's/^/| /' conftest.$ac_ext >&5
35317
35318 ac_header_compiler=no
35319fi
35320
35321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35322{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35323$as_echo "$ac_header_compiler" >&6; }
35324
35325# Is the header present?
35326{ $as_echo "$as_me:$LINENO: checking zconf.h presence" >&5
35327$as_echo_n "checking zconf.h presence... " >&6; }
35328cat >conftest.$ac_ext <<_ACEOF
35329/* confdefs.h. */
35330_ACEOF
35331cat confdefs.h >>conftest.$ac_ext
35332cat >>conftest.$ac_ext <<_ACEOF
35333/* end confdefs.h. */
35334#include <zconf.h>
35335_ACEOF
35336if { (ac_try="$ac_cpp conftest.$ac_ext"
35337case "(($ac_try" in
35338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35339 *) ac_try_echo=$ac_try;;
35340esac
35341eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35342$as_echo "$ac_try_echo") >&5
35343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35344 ac_status=$?
35345 grep -v '^ *+' conftest.er1 >conftest.err
35346 rm -f conftest.er1
35347 cat conftest.err >&5
35348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35349 (exit $ac_status); } >/dev/null && {
35350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35351 test ! -s conftest.err
35352 }; then
35353 ac_header_preproc=yes
35354else
35355 $as_echo "$as_me: failed program was:" >&5
35356sed 's/^/| /' conftest.$ac_ext >&5
35357
35358 ac_header_preproc=no
35359fi
35360
35361rm -f conftest.err conftest.$ac_ext
35362{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35363$as_echo "$ac_header_preproc" >&6; }
35364
35365# So? What about this header?
35366case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35367 yes:no: )
35368 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: accepted by the compiler, rejected by the preprocessor!" >&5
35369$as_echo "$as_me: WARNING: zconf.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35370 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: proceeding with the compiler's result" >&5
35371$as_echo "$as_me: WARNING: zconf.h: proceeding with the compiler's result" >&2;}
35372 ac_header_preproc=yes
35373 ;;
35374 no:yes:* )
35375 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: present but cannot be compiled" >&5
35376$as_echo "$as_me: WARNING: zconf.h: present but cannot be compiled" >&2;}
35377 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: check for missing prerequisite headers?" >&5
35378$as_echo "$as_me: WARNING: zconf.h: check for missing prerequisite headers?" >&2;}
35379 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: see the Autoconf documentation" >&5
35380$as_echo "$as_me: WARNING: zconf.h: see the Autoconf documentation" >&2;}
35381 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: section \"Present But Cannot Be Compiled\"" >&5
35382$as_echo "$as_me: WARNING: zconf.h: section \"Present But Cannot Be Compiled\"" >&2;}
35383 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: proceeding with the preprocessor's result" >&5
35384$as_echo "$as_me: WARNING: zconf.h: proceeding with the preprocessor's result" >&2;}
35385 { $as_echo "$as_me:$LINENO: WARNING: zconf.h: in the future, the compiler will take precedence" >&5
35386$as_echo "$as_me: WARNING: zconf.h: in the future, the compiler will take precedence" >&2;}
35387 ( cat <<\_ASBOX
35388## ----------------------------------------- ##
35389## Report this to http://www.imagemagick.org ##
35390## ----------------------------------------- ##
35391_ASBOX
35392 ) | sed "s/^/$as_me: WARNING: /" >&2
35393 ;;
35394esac
35395{ $as_echo "$as_me:$LINENO: checking for zconf.h" >&5
35396$as_echo_n "checking for zconf.h... " >&6; }
35397if test "${ac_cv_header_zconf_h+set}" = set; then
35398 $as_echo_n "(cached) " >&6
35399else
35400 ac_cv_header_zconf_h=$ac_header_preproc
35401fi
35402{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zconf_h" >&5
35403$as_echo "$ac_cv_header_zconf_h" >&6; }
35404
35405fi
35406if test "x$ac_cv_header_zconf_h" = x""yes; then
35407 passed=`expr $passed + 1`
35408else
35409 failed=`expr $failed + 1`
35410fi
35411
35412
35413 if test "${ac_cv_header_zlib_h+set}" = set; then
35414 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
35415$as_echo_n "checking for zlib.h... " >&6; }
35416if test "${ac_cv_header_zlib_h+set}" = set; then
35417 $as_echo_n "(cached) " >&6
35418fi
35419{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
35420$as_echo "$ac_cv_header_zlib_h" >&6; }
35421else
35422 # Is the header compilable?
35423{ $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
35424$as_echo_n "checking zlib.h usability... " >&6; }
35425cat >conftest.$ac_ext <<_ACEOF
35426/* confdefs.h. */
35427_ACEOF
35428cat confdefs.h >>conftest.$ac_ext
35429cat >>conftest.$ac_ext <<_ACEOF
35430/* end confdefs.h. */
35431$ac_includes_default
35432#include <zlib.h>
35433_ACEOF
35434rm -f conftest.$ac_objext
35435if { (ac_try="$ac_compile"
35436case "(($ac_try" in
35437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35438 *) ac_try_echo=$ac_try;;
35439esac
35440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35441$as_echo "$ac_try_echo") >&5
35442 (eval "$ac_compile") 2>conftest.er1
35443 ac_status=$?
35444 grep -v '^ *+' conftest.er1 >conftest.err
35445 rm -f conftest.er1
35446 cat conftest.err >&5
35447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35448 (exit $ac_status); } && {
35449 test -z "$ac_c_werror_flag" ||
35450 test ! -s conftest.err
35451 } && test -s conftest.$ac_objext; then
35452 ac_header_compiler=yes
35453else
35454 $as_echo "$as_me: failed program was:" >&5
35455sed 's/^/| /' conftest.$ac_ext >&5
35456
35457 ac_header_compiler=no
35458fi
35459
35460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35461{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35462$as_echo "$ac_header_compiler" >&6; }
35463
35464# Is the header present?
35465{ $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
35466$as_echo_n "checking zlib.h presence... " >&6; }
35467cat >conftest.$ac_ext <<_ACEOF
35468/* confdefs.h. */
35469_ACEOF
35470cat confdefs.h >>conftest.$ac_ext
35471cat >>conftest.$ac_ext <<_ACEOF
35472/* end confdefs.h. */
35473#include <zlib.h>
35474_ACEOF
35475if { (ac_try="$ac_cpp conftest.$ac_ext"
35476case "(($ac_try" in
35477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35478 *) ac_try_echo=$ac_try;;
35479esac
35480eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35481$as_echo "$ac_try_echo") >&5
35482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35483 ac_status=$?
35484 grep -v '^ *+' conftest.er1 >conftest.err
35485 rm -f conftest.er1
35486 cat conftest.err >&5
35487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35488 (exit $ac_status); } >/dev/null && {
35489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35490 test ! -s conftest.err
35491 }; then
35492 ac_header_preproc=yes
35493else
35494 $as_echo "$as_me: failed program was:" >&5
35495sed 's/^/| /' conftest.$ac_ext >&5
35496
35497 ac_header_preproc=no
35498fi
35499
35500rm -f conftest.err conftest.$ac_ext
35501{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35502$as_echo "$ac_header_preproc" >&6; }
35503
35504# So? What about this header?
35505case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35506 yes:no: )
35507 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
35508$as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
35509 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
35510$as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
35511 ac_header_preproc=yes
35512 ;;
35513 no:yes:* )
35514 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
35515$as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
35516 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
35517$as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
35518 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
35519$as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
35520 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
35521$as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
35522 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
35523$as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
35524 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
35525$as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
35526 ( cat <<\_ASBOX
35527## ----------------------------------------- ##
35528## Report this to http://www.imagemagick.org ##
35529## ----------------------------------------- ##
35530_ASBOX
35531 ) | sed "s/^/$as_me: WARNING: /" >&2
35532 ;;
35533esac
35534{ $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
35535$as_echo_n "checking for zlib.h... " >&6; }
35536if test "${ac_cv_header_zlib_h+set}" = set; then
35537 $as_echo_n "(cached) " >&6
35538else
35539 ac_cv_header_zlib_h=$ac_header_preproc
35540fi
35541{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
35542$as_echo "$ac_cv_header_zlib_h" >&6; }
35543
35544fi
35545if test "x$ac_cv_header_zlib_h" = x""yes; then
35546 passed=`expr $passed + 1`
35547else
35548 failed=`expr $failed + 1`
35549fi
35550
35551
35552 { $as_echo "$as_me:$LINENO: checking for compress in -lz" >&5
35553$as_echo_n "checking for compress in -lz... " >&6; }
35554if test "${ac_cv_lib_z_compress+set}" = set; then
35555 $as_echo_n "(cached) " >&6
35556else
35557 ac_check_lib_save_LIBS=$LIBS
35558LIBS="-lz $LIBS"
35559cat >conftest.$ac_ext <<_ACEOF
35560/* confdefs.h. */
35561_ACEOF
35562cat confdefs.h >>conftest.$ac_ext
35563cat >>conftest.$ac_ext <<_ACEOF
35564/* end confdefs.h. */
35565
35566/* Override any GCC internal prototype to avoid an error.
35567 Use char because int might match the return type of a GCC
35568 builtin and then its argument prototype would still apply. */
35569#ifdef __cplusplus
35570extern "C"
35571#endif
35572char compress ();
35573int
35574main ()
35575{
35576return compress ();
35577 ;
35578 return 0;
35579}
35580_ACEOF
35581rm -f conftest.$ac_objext conftest$ac_exeext
35582if { (ac_try="$ac_link"
35583case "(($ac_try" in
35584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35585 *) ac_try_echo=$ac_try;;
35586esac
35587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35588$as_echo "$ac_try_echo") >&5
35589 (eval "$ac_link") 2>conftest.er1
35590 ac_status=$?
35591 grep -v '^ *+' conftest.er1 >conftest.err
35592 rm -f conftest.er1
35593 cat conftest.err >&5
35594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35595 (exit $ac_status); } && {
35596 test -z "$ac_c_werror_flag" ||
35597 test ! -s conftest.err
35598 } && test -s conftest$ac_exeext && {
35599 test "$cross_compiling" = yes ||
35600 $as_test_x conftest$ac_exeext
35601 }; then
35602 ac_cv_lib_z_compress=yes
35603else
35604 $as_echo "$as_me: failed program was:" >&5
35605sed 's/^/| /' conftest.$ac_ext >&5
35606
35607 ac_cv_lib_z_compress=no
35608fi
35609
35610rm -rf conftest.dSYM
35611rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35612 conftest$ac_exeext conftest.$ac_ext
35613LIBS=$ac_check_lib_save_LIBS
35614fi
35615{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress" >&5
35616$as_echo "$ac_cv_lib_z_compress" >&6; }
35617if test "x$ac_cv_lib_z_compress" = x""yes; then
35618 passed=`expr $passed + 1`
35619else
35620 failed=`expr $failed + 1`
35621fi
35622
35623 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
35624$as_echo_n "checking for uncompress in -lz... " >&6; }
35625if test "${ac_cv_lib_z_uncompress+set}" = set; then
35626 $as_echo_n "(cached) " >&6
35627else
35628 ac_check_lib_save_LIBS=$LIBS
35629LIBS="-lz $LIBS"
35630cat >conftest.$ac_ext <<_ACEOF
35631/* confdefs.h. */
35632_ACEOF
35633cat confdefs.h >>conftest.$ac_ext
35634cat >>conftest.$ac_ext <<_ACEOF
35635/* end confdefs.h. */
35636
35637/* Override any GCC internal prototype to avoid an error.
35638 Use char because int might match the return type of a GCC
35639 builtin and then its argument prototype would still apply. */
35640#ifdef __cplusplus
35641extern "C"
35642#endif
35643char uncompress ();
35644int
35645main ()
35646{
35647return uncompress ();
35648 ;
35649 return 0;
35650}
35651_ACEOF
35652rm -f conftest.$ac_objext conftest$ac_exeext
35653if { (ac_try="$ac_link"
35654case "(($ac_try" in
35655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35656 *) ac_try_echo=$ac_try;;
35657esac
35658eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35659$as_echo "$ac_try_echo") >&5
35660 (eval "$ac_link") 2>conftest.er1
35661 ac_status=$?
35662 grep -v '^ *+' conftest.er1 >conftest.err
35663 rm -f conftest.er1
35664 cat conftest.err >&5
35665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35666 (exit $ac_status); } && {
35667 test -z "$ac_c_werror_flag" ||
35668 test ! -s conftest.err
35669 } && test -s conftest$ac_exeext && {
35670 test "$cross_compiling" = yes ||
35671 $as_test_x conftest$ac_exeext
35672 }; then
35673 ac_cv_lib_z_uncompress=yes
35674else
35675 $as_echo "$as_me: failed program was:" >&5
35676sed 's/^/| /' conftest.$ac_ext >&5
35677
35678 ac_cv_lib_z_uncompress=no
35679fi
35680
35681rm -rf conftest.dSYM
35682rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35683 conftest$ac_exeext conftest.$ac_ext
35684LIBS=$ac_check_lib_save_LIBS
35685fi
35686{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
35687$as_echo "$ac_cv_lib_z_uncompress" >&6; }
35688if test "x$ac_cv_lib_z_uncompress" = x""yes; then
35689 passed=`expr $passed + 1`
35690else
35691 failed=`expr $failed + 1`
35692fi
35693
35694 { $as_echo "$as_me:$LINENO: checking for deflate in -lz" >&5
35695$as_echo_n "checking for deflate in -lz... " >&6; }
35696if test "${ac_cv_lib_z_deflate+set}" = set; then
35697 $as_echo_n "(cached) " >&6
35698else
35699 ac_check_lib_save_LIBS=$LIBS
35700LIBS="-lz $LIBS"
35701cat >conftest.$ac_ext <<_ACEOF
35702/* confdefs.h. */
35703_ACEOF
35704cat confdefs.h >>conftest.$ac_ext
35705cat >>conftest.$ac_ext <<_ACEOF
35706/* end confdefs.h. */
35707
35708/* Override any GCC internal prototype to avoid an error.
35709 Use char because int might match the return type of a GCC
35710 builtin and then its argument prototype would still apply. */
35711#ifdef __cplusplus
35712extern "C"
35713#endif
35714char deflate ();
35715int
35716main ()
35717{
35718return deflate ();
35719 ;
35720 return 0;
35721}
35722_ACEOF
35723rm -f conftest.$ac_objext conftest$ac_exeext
35724if { (ac_try="$ac_link"
35725case "(($ac_try" in
35726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35727 *) ac_try_echo=$ac_try;;
35728esac
35729eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35730$as_echo "$ac_try_echo") >&5
35731 (eval "$ac_link") 2>conftest.er1
35732 ac_status=$?
35733 grep -v '^ *+' conftest.er1 >conftest.err
35734 rm -f conftest.er1
35735 cat conftest.err >&5
35736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35737 (exit $ac_status); } && {
35738 test -z "$ac_c_werror_flag" ||
35739 test ! -s conftest.err
35740 } && test -s conftest$ac_exeext && {
35741 test "$cross_compiling" = yes ||
35742 $as_test_x conftest$ac_exeext
35743 }; then
35744 ac_cv_lib_z_deflate=yes
35745else
35746 $as_echo "$as_me: failed program was:" >&5
35747sed 's/^/| /' conftest.$ac_ext >&5
35748
35749 ac_cv_lib_z_deflate=no
35750fi
35751
35752rm -rf conftest.dSYM
35753rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35754 conftest$ac_exeext conftest.$ac_ext
35755LIBS=$ac_check_lib_save_LIBS
35756fi
35757{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
35758$as_echo "$ac_cv_lib_z_deflate" >&6; }
35759if test "x$ac_cv_lib_z_deflate" = x""yes; then
35760 passed=`expr $passed + 1`
35761else
35762 failed=`expr $failed + 1`
35763fi
35764
35765 { $as_echo "$as_me:$LINENO: checking for inflate in -lz" >&5
35766$as_echo_n "checking for inflate in -lz... " >&6; }
35767if test "${ac_cv_lib_z_inflate+set}" = set; then
35768 $as_echo_n "(cached) " >&6
35769else
35770 ac_check_lib_save_LIBS=$LIBS
35771LIBS="-lz $LIBS"
35772cat >conftest.$ac_ext <<_ACEOF
35773/* confdefs.h. */
35774_ACEOF
35775cat confdefs.h >>conftest.$ac_ext
35776cat >>conftest.$ac_ext <<_ACEOF
35777/* end confdefs.h. */
35778
35779/* Override any GCC internal prototype to avoid an error.
35780 Use char because int might match the return type of a GCC
35781 builtin and then its argument prototype would still apply. */
35782#ifdef __cplusplus
35783extern "C"
35784#endif
35785char inflate ();
35786int
35787main ()
35788{
35789return inflate ();
35790 ;
35791 return 0;
35792}
35793_ACEOF
35794rm -f conftest.$ac_objext conftest$ac_exeext
35795if { (ac_try="$ac_link"
35796case "(($ac_try" in
35797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35798 *) ac_try_echo=$ac_try;;
35799esac
35800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35801$as_echo "$ac_try_echo") >&5
35802 (eval "$ac_link") 2>conftest.er1
35803 ac_status=$?
35804 grep -v '^ *+' conftest.er1 >conftest.err
35805 rm -f conftest.er1
35806 cat conftest.err >&5
35807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35808 (exit $ac_status); } && {
35809 test -z "$ac_c_werror_flag" ||
35810 test ! -s conftest.err
35811 } && test -s conftest$ac_exeext && {
35812 test "$cross_compiling" = yes ||
35813 $as_test_x conftest$ac_exeext
35814 }; then
35815 ac_cv_lib_z_inflate=yes
35816else
35817 $as_echo "$as_me: failed program was:" >&5
35818sed 's/^/| /' conftest.$ac_ext >&5
35819
35820 ac_cv_lib_z_inflate=no
35821fi
35822
35823rm -rf conftest.dSYM
35824rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35825 conftest$ac_exeext conftest.$ac_ext
35826LIBS=$ac_check_lib_save_LIBS
35827fi
35828{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_inflate" >&5
35829$as_echo "$ac_cv_lib_z_inflate" >&6; }
35830if test "x$ac_cv_lib_z_inflate" = x""yes; then
35831 passed=`expr $passed + 1`
35832else
35833 failed=`expr $failed + 1`
35834fi
35835
35836 { $as_echo "$as_me:$LINENO: checking for gzseek in -lz" >&5
35837$as_echo_n "checking for gzseek in -lz... " >&6; }
35838if test "${ac_cv_lib_z_gzseek+set}" = set; then
35839 $as_echo_n "(cached) " >&6
35840else
35841 ac_check_lib_save_LIBS=$LIBS
35842LIBS="-lz $LIBS"
35843cat >conftest.$ac_ext <<_ACEOF
35844/* confdefs.h. */
35845_ACEOF
35846cat confdefs.h >>conftest.$ac_ext
35847cat >>conftest.$ac_ext <<_ACEOF
35848/* end confdefs.h. */
35849
35850/* Override any GCC internal prototype to avoid an error.
35851 Use char because int might match the return type of a GCC
35852 builtin and then its argument prototype would still apply. */
35853#ifdef __cplusplus
35854extern "C"
35855#endif
35856char gzseek ();
35857int
35858main ()
35859{
35860return gzseek ();
35861 ;
35862 return 0;
35863}
35864_ACEOF
35865rm -f conftest.$ac_objext conftest$ac_exeext
35866if { (ac_try="$ac_link"
35867case "(($ac_try" in
35868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35869 *) ac_try_echo=$ac_try;;
35870esac
35871eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35872$as_echo "$ac_try_echo") >&5
35873 (eval "$ac_link") 2>conftest.er1
35874 ac_status=$?
35875 grep -v '^ *+' conftest.er1 >conftest.err
35876 rm -f conftest.er1
35877 cat conftest.err >&5
35878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35879 (exit $ac_status); } && {
35880 test -z "$ac_c_werror_flag" ||
35881 test ! -s conftest.err
35882 } && test -s conftest$ac_exeext && {
35883 test "$cross_compiling" = yes ||
35884 $as_test_x conftest$ac_exeext
35885 }; then
35886 ac_cv_lib_z_gzseek=yes
35887else
35888 $as_echo "$as_me: failed program was:" >&5
35889sed 's/^/| /' conftest.$ac_ext >&5
35890
35891 ac_cv_lib_z_gzseek=no
35892fi
35893
35894rm -rf conftest.dSYM
35895rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35896 conftest$ac_exeext conftest.$ac_ext
35897LIBS=$ac_check_lib_save_LIBS
35898fi
35899{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzseek" >&5
35900$as_echo "$ac_cv_lib_z_gzseek" >&6; }
35901if test "x$ac_cv_lib_z_gzseek" = x""yes; then
35902 passed=`expr $passed + 1`
35903else
35904 failed=`expr $failed + 1`
35905fi
35906
35907 { $as_echo "$as_me:$LINENO: checking for gztell in -lz" >&5
35908$as_echo_n "checking for gztell in -lz... " >&6; }
35909if test "${ac_cv_lib_z_gztell+set}" = set; then
35910 $as_echo_n "(cached) " >&6
35911else
35912 ac_check_lib_save_LIBS=$LIBS
35913LIBS="-lz $LIBS"
35914cat >conftest.$ac_ext <<_ACEOF
35915/* confdefs.h. */
35916_ACEOF
35917cat confdefs.h >>conftest.$ac_ext
35918cat >>conftest.$ac_ext <<_ACEOF
35919/* end confdefs.h. */
35920
35921/* Override any GCC internal prototype to avoid an error.
35922 Use char because int might match the return type of a GCC
35923 builtin and then its argument prototype would still apply. */
35924#ifdef __cplusplus
35925extern "C"
35926#endif
35927char gztell ();
35928int
35929main ()
35930{
35931return gztell ();
35932 ;
35933 return 0;
35934}
35935_ACEOF
35936rm -f conftest.$ac_objext conftest$ac_exeext
35937if { (ac_try="$ac_link"
35938case "(($ac_try" in
35939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35940 *) ac_try_echo=$ac_try;;
35941esac
35942eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35943$as_echo "$ac_try_echo") >&5
35944 (eval "$ac_link") 2>conftest.er1
35945 ac_status=$?
35946 grep -v '^ *+' conftest.er1 >conftest.err
35947 rm -f conftest.er1
35948 cat conftest.err >&5
35949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35950 (exit $ac_status); } && {
35951 test -z "$ac_c_werror_flag" ||
35952 test ! -s conftest.err
35953 } && test -s conftest$ac_exeext && {
35954 test "$cross_compiling" = yes ||
35955 $as_test_x conftest$ac_exeext
35956 }; then
35957 ac_cv_lib_z_gztell=yes
35958else
35959 $as_echo "$as_me: failed program was:" >&5
35960sed 's/^/| /' conftest.$ac_ext >&5
35961
35962 ac_cv_lib_z_gztell=no
35963fi
35964
35965rm -rf conftest.dSYM
35966rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35967 conftest$ac_exeext conftest.$ac_ext
35968LIBS=$ac_check_lib_save_LIBS
35969fi
35970{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_gztell" >&5
35971$as_echo "$ac_cv_lib_z_gztell" >&6; }
35972if test "x$ac_cv_lib_z_gztell" = x""yes; then
35973 passed=`expr $passed + 1`
35974else
35975 failed=`expr $failed + 1`
35976fi
35977
35978 { $as_echo "$as_me:$LINENO: checking if ZLIB package is complete" >&5
35979$as_echo_n "checking if ZLIB package is complete... " >&6; }
35980 if test $passed -gt 0; then
35981 if test $failed -gt 0; then
35982 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
35983$as_echo "no -- some components failed test" >&6; }
35984 have_zlib='no (failed tests)'
35985 else
35986 ZLIB_LIBS='-lz'
35987 LIBS="$ZLIB_LIBS $LIBS"
35988
35989cat >>confdefs.h <<\_ACEOF
35990#define ZLIB_DELEGATE 1
35991_ACEOF
35992
35993 { $as_echo "$as_me:$LINENO: result: yes" >&5
35994$as_echo "yes" >&6; }
35995 have_zlib='yes'
35996 fi
35997 else
35998 { $as_echo "$as_me:$LINENO: result: no" >&5
35999$as_echo "no" >&6; }
36000 fi
36001fi
36002 if test "$have_zlib" = 'yes'; then
36003 ZLIB_DELEGATE_TRUE=
36004 ZLIB_DELEGATE_FALSE='#'
36005else
36006 ZLIB_DELEGATE_TRUE='#'
36007 ZLIB_DELEGATE_FALSE=
36008fi
36009
36010
36011
36012#
36013# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
36014#
36015LIB_DL=''
36016if test "$enable_profiling" = 'yes'; then
36017 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
36018$as_echo_n "checking for dlopen in -ldl... " >&6; }
36019if test "${ac_cv_lib_dl_dlopen+set}" = set; then
36020 $as_echo_n "(cached) " >&6
36021else
36022 ac_check_lib_save_LIBS=$LIBS
36023LIBS="-ldl $LIBS"
36024cat >conftest.$ac_ext <<_ACEOF
36025/* confdefs.h. */
36026_ACEOF
36027cat confdefs.h >>conftest.$ac_ext
36028cat >>conftest.$ac_ext <<_ACEOF
36029/* end confdefs.h. */
36030
36031/* Override any GCC internal prototype to avoid an error.
36032 Use char because int might match the return type of a GCC
36033 builtin and then its argument prototype would still apply. */
36034#ifdef __cplusplus
36035extern "C"
36036#endif
36037char dlopen ();
36038int
36039main ()
36040{
36041return dlopen ();
36042 ;
36043 return 0;
36044}
36045_ACEOF
36046rm -f conftest.$ac_objext conftest$ac_exeext
36047if { (ac_try="$ac_link"
36048case "(($ac_try" in
36049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36050 *) ac_try_echo=$ac_try;;
36051esac
36052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36053$as_echo "$ac_try_echo") >&5
36054 (eval "$ac_link") 2>conftest.er1
36055 ac_status=$?
36056 grep -v '^ *+' conftest.er1 >conftest.err
36057 rm -f conftest.er1
36058 cat conftest.err >&5
36059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36060 (exit $ac_status); } && {
36061 test -z "$ac_c_werror_flag" ||
36062 test ! -s conftest.err
36063 } && test -s conftest$ac_exeext && {
36064 test "$cross_compiling" = yes ||
36065 $as_test_x conftest$ac_exeext
36066 }; then
36067 ac_cv_lib_dl_dlopen=yes
36068else
36069 $as_echo "$as_me: failed program was:" >&5
36070sed 's/^/| /' conftest.$ac_ext >&5
36071
36072 ac_cv_lib_dl_dlopen=no
36073fi
36074
36075rm -rf conftest.dSYM
36076rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36077 conftest$ac_exeext conftest.$ac_ext
36078LIBS=$ac_check_lib_save_LIBS
36079fi
36080{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
36081$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
36082if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
36083 LIB_DL='-ldl'
36084fi
36085
36086 LIBS="$LIB_DL $LIBS"
36087fi
36088
36089
36090
36091#
36092# Check for Autotrace delegate library.
36093#
36094
36095# Check whether --with-autotrace was given.
36096if test "${with_autotrace+set}" = set; then
36097 withval=$with_autotrace; with_autotrace=$withval
36098else
36099 with_autotrace='no'
36100fi
36101
36102
36103if test "$with_autotrace" != 'yes'; then
36104 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
36105fi
36106
36107have_autotrace='no'
36108AUTOTRACE_CFLAGS=""
36109AUTOTRACE_LIBS=""
36110AUTOTRACE_PKG=""
36111if test "x$with_autotrace" = "xyes"; then
36112 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
36113$as_echo "-------------------------------------------------------------" >&6; }
36114
36115pkg_failed=no
36116{ $as_echo "$as_me:$LINENO: checking for AUTOTRACE" >&5
36117$as_echo_n "checking for AUTOTRACE... " >&6; }
36118
36119if test -n "$AUTOTRACE_CFLAGS"; then
36120 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
36121 elif test -n "$PKG_CONFIG"; then
36122 if test -n "$PKG_CONFIG" && \
36123 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\"") >&5
36124 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
36125 ac_status=$?
36126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36127 (exit $ac_status); }; then
36128 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
36129else
36130 pkg_failed=yes
36131fi
36132 else
36133 pkg_failed=untried
36134fi
36135if test -n "$AUTOTRACE_LIBS"; then
36136 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
36137 elif test -n "$PKG_CONFIG"; then
36138 if test -n "$PKG_CONFIG" && \
36139 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\"") >&5
36140 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
36141 ac_status=$?
36142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36143 (exit $ac_status); }; then
36144 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
36145else
36146 pkg_failed=yes
36147fi
36148 else
36149 pkg_failed=untried
36150fi
36151
36152
36153
36154if test $pkg_failed = yes; then
36155
36156if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
36157 _pkg_short_errors_supported=yes
36158else
36159 _pkg_short_errors_supported=no
36160fi
36161 if test $_pkg_short_errors_supported = yes; then
36162 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
36163 else
36164 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
36165 fi
36166 # Put the nasty error message in config.log where it belongs
36167 echo "$AUTOTRACE_PKG_ERRORS" >&5
36168
36169 { $as_echo "$as_me:$LINENO: result: no" >&5
36170$as_echo "no" >&6; }
36171 have_autotrace=no
36172elif test $pkg_failed = untried; then
36173 have_autotrace=no
36174else
36175 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
36176 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
36177 { $as_echo "$as_me:$LINENO: result: yes" >&5
36178$as_echo "yes" >&6; }
36179 have_autotrace=yes
36180fi
36181 { $as_echo "$as_me:$LINENO: result: " >&5
36182$as_echo "" >&6; }
36183fi
36184
36185if test "$have_autotrace" = 'yes'; then
36186 failed=0
36187
36188cat >>confdefs.h <<\_ACEOF
36189#define AUTOTRACE_DELEGATE 1
36190_ACEOF
36191
36192 if test "$with_modules" = 'no'; then
36193 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
36194 fi
36195fi
36196
36197 if test "$have_autotrace" = 'yes'; then
36198 AUTOTRACE_DELEGATE_TRUE=
36199 AUTOTRACE_DELEGATE_FALSE='#'
36200else
36201 AUTOTRACE_DELEGATE_TRUE='#'
36202 AUTOTRACE_DELEGATE_FALSE=
36203fi
36204
36205
36206
36207
36208
36209#
36210# Check for Display Postscript delegate library.
36211#
36212
36213# Check whether --with-dps was given.
36214if test "${with_dps+set}" = set; then
36215 withval=$with_dps; with_dps=$withval
36216else
36217 with_dps='yes'
36218fi
36219
36220
36221if test "$with_dps" != 'yes'; then
36222 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
36223fi
36224
36225have_dps='no'
36226DPS_LIBS=''
36227if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
36228 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
36229$as_echo "-------------------------------------------------------------" >&6; }
36230 { $as_echo "$as_me:$LINENO: checking for DPS" >&5
36231$as_echo_n "checking for DPS... " >&6; }
36232 { $as_echo "$as_me:$LINENO: result: " >&5
36233$as_echo "" >&6; }
36234 failed=0
36235 passed=0
36236 PERSIST_CPPFLAGS="$CPPFLAGS"
36237 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
36238 if test "${ac_cv_header_DPS_dpsXclient_h+set}" = set; then
36239 { $as_echo "$as_me:$LINENO: checking for DPS/dpsXclient.h" >&5
36240$as_echo_n "checking for DPS/dpsXclient.h... " >&6; }
36241if test "${ac_cv_header_DPS_dpsXclient_h+set}" = set; then
36242 $as_echo_n "(cached) " >&6
36243fi
36244{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_DPS_dpsXclient_h" >&5
36245$as_echo "$ac_cv_header_DPS_dpsXclient_h" >&6; }
36246else
36247 # Is the header compilable?
36248{ $as_echo "$as_me:$LINENO: checking DPS/dpsXclient.h usability" >&5
36249$as_echo_n "checking DPS/dpsXclient.h usability... " >&6; }
36250cat >conftest.$ac_ext <<_ACEOF
36251/* confdefs.h. */
36252_ACEOF
36253cat confdefs.h >>conftest.$ac_ext
36254cat >>conftest.$ac_ext <<_ACEOF
36255/* end confdefs.h. */
36256$ac_includes_default
36257#include <DPS/dpsXclient.h>
36258_ACEOF
36259rm -f conftest.$ac_objext
36260if { (ac_try="$ac_compile"
36261case "(($ac_try" in
36262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36263 *) ac_try_echo=$ac_try;;
36264esac
36265eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36266$as_echo "$ac_try_echo") >&5
36267 (eval "$ac_compile") 2>conftest.er1
36268 ac_status=$?
36269 grep -v '^ *+' conftest.er1 >conftest.err
36270 rm -f conftest.er1
36271 cat conftest.err >&5
36272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36273 (exit $ac_status); } && {
36274 test -z "$ac_c_werror_flag" ||
36275 test ! -s conftest.err
36276 } && test -s conftest.$ac_objext; then
36277 ac_header_compiler=yes
36278else
36279 $as_echo "$as_me: failed program was:" >&5
36280sed 's/^/| /' conftest.$ac_ext >&5
36281
36282 ac_header_compiler=no
36283fi
36284
36285rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36286{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36287$as_echo "$ac_header_compiler" >&6; }
36288
36289# Is the header present?
36290{ $as_echo "$as_me:$LINENO: checking DPS/dpsXclient.h presence" >&5
36291$as_echo_n "checking DPS/dpsXclient.h presence... " >&6; }
36292cat >conftest.$ac_ext <<_ACEOF
36293/* confdefs.h. */
36294_ACEOF
36295cat confdefs.h >>conftest.$ac_ext
36296cat >>conftest.$ac_ext <<_ACEOF
36297/* end confdefs.h. */
36298#include <DPS/dpsXclient.h>
36299_ACEOF
36300if { (ac_try="$ac_cpp conftest.$ac_ext"
36301case "(($ac_try" in
36302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36303 *) ac_try_echo=$ac_try;;
36304esac
36305eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36306$as_echo "$ac_try_echo") >&5
36307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36308 ac_status=$?
36309 grep -v '^ *+' conftest.er1 >conftest.err
36310 rm -f conftest.er1
36311 cat conftest.err >&5
36312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36313 (exit $ac_status); } >/dev/null && {
36314 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36315 test ! -s conftest.err
36316 }; then
36317 ac_header_preproc=yes
36318else
36319 $as_echo "$as_me: failed program was:" >&5
36320sed 's/^/| /' conftest.$ac_ext >&5
36321
36322 ac_header_preproc=no
36323fi
36324
36325rm -f conftest.err conftest.$ac_ext
36326{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36327$as_echo "$ac_header_preproc" >&6; }
36328
36329# So? What about this header?
36330case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36331 yes:no: )
36332 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: accepted by the compiler, rejected by the preprocessor!" >&5
36333$as_echo "$as_me: WARNING: DPS/dpsXclient.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36334 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: proceeding with the compiler's result" >&5
36335$as_echo "$as_me: WARNING: DPS/dpsXclient.h: proceeding with the compiler's result" >&2;}
36336 ac_header_preproc=yes
36337 ;;
36338 no:yes:* )
36339 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: present but cannot be compiled" >&5
36340$as_echo "$as_me: WARNING: DPS/dpsXclient.h: present but cannot be compiled" >&2;}
36341 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: check for missing prerequisite headers?" >&5
36342$as_echo "$as_me: WARNING: DPS/dpsXclient.h: check for missing prerequisite headers?" >&2;}
36343 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: see the Autoconf documentation" >&5
36344$as_echo "$as_me: WARNING: DPS/dpsXclient.h: see the Autoconf documentation" >&2;}
36345 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: section \"Present But Cannot Be Compiled\"" >&5
36346$as_echo "$as_me: WARNING: DPS/dpsXclient.h: section \"Present But Cannot Be Compiled\"" >&2;}
36347 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: proceeding with the preprocessor's result" >&5
36348$as_echo "$as_me: WARNING: DPS/dpsXclient.h: proceeding with the preprocessor's result" >&2;}
36349 { $as_echo "$as_me:$LINENO: WARNING: DPS/dpsXclient.h: in the future, the compiler will take precedence" >&5
36350$as_echo "$as_me: WARNING: DPS/dpsXclient.h: in the future, the compiler will take precedence" >&2;}
36351 ( cat <<\_ASBOX
36352## ----------------------------------------- ##
36353## Report this to http://www.imagemagick.org ##
36354## ----------------------------------------- ##
36355_ASBOX
36356 ) | sed "s/^/$as_me: WARNING: /" >&2
36357 ;;
36358esac
36359{ $as_echo "$as_me:$LINENO: checking for DPS/dpsXclient.h" >&5
36360$as_echo_n "checking for DPS/dpsXclient.h... " >&6; }
36361if test "${ac_cv_header_DPS_dpsXclient_h+set}" = set; then
36362 $as_echo_n "(cached) " >&6
36363else
36364 ac_cv_header_DPS_dpsXclient_h=$ac_header_preproc
36365fi
36366{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_DPS_dpsXclient_h" >&5
36367$as_echo "$ac_cv_header_DPS_dpsXclient_h" >&6; }
36368
36369fi
36370if test "x$ac_cv_header_DPS_dpsXclient_h" = x""yes; then
36371 passed=`expr $passed + 1`
36372else
36373 failed=`expr $failed + 1`
36374fi
36375
36376
36377 # DPS issues:
36378 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
36379 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
36380 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
36381 # ImageMagick itself doesn't use -lXt.
36382 have_libdps='no'
36383 LIBDPS_XT=''
36384 { $as_echo "$as_me:$LINENO: checking for DPSInitialize in -ldps" >&5
36385$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
36386if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then
36387 $as_echo_n "(cached) " >&6
36388else
36389 ac_check_lib_save_LIBS=$LIBS
36390LIBS="-ldps $LIBS"
36391cat >conftest.$ac_ext <<_ACEOF
36392/* confdefs.h. */
36393_ACEOF
36394cat confdefs.h >>conftest.$ac_ext
36395cat >>conftest.$ac_ext <<_ACEOF
36396/* end confdefs.h. */
36397
36398/* Override any GCC internal prototype to avoid an error.
36399 Use char because int might match the return type of a GCC
36400 builtin and then its argument prototype would still apply. */
36401#ifdef __cplusplus
36402extern "C"
36403#endif
36404char DPSInitialize ();
36405int
36406main ()
36407{
36408return DPSInitialize ();
36409 ;
36410 return 0;
36411}
36412_ACEOF
36413rm -f conftest.$ac_objext conftest$ac_exeext
36414if { (ac_try="$ac_link"
36415case "(($ac_try" in
36416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36417 *) ac_try_echo=$ac_try;;
36418esac
36419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36420$as_echo "$ac_try_echo") >&5
36421 (eval "$ac_link") 2>conftest.er1
36422 ac_status=$?
36423 grep -v '^ *+' conftest.er1 >conftest.err
36424 rm -f conftest.er1
36425 cat conftest.err >&5
36426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36427 (exit $ac_status); } && {
36428 test -z "$ac_c_werror_flag" ||
36429 test ! -s conftest.err
36430 } && test -s conftest$ac_exeext && {
36431 test "$cross_compiling" = yes ||
36432 $as_test_x conftest$ac_exeext
36433 }; then
36434 ac_cv_lib_dps_DPSInitialize=yes
36435else
36436 $as_echo "$as_me: failed program was:" >&5
36437sed 's/^/| /' conftest.$ac_ext >&5
36438
36439 ac_cv_lib_dps_DPSInitialize=no
36440fi
36441
36442rm -rf conftest.dSYM
36443rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36444 conftest$ac_exeext conftest.$ac_ext
36445LIBS=$ac_check_lib_save_LIBS
36446fi
36447{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dps_DPSInitialize" >&5
36448$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
36449if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then
36450 have_libdps='yes'
36451else
36452 have_libdps='no'
36453fi
36454
36455 if test "$have_libdps" != 'yes'; then
36456 # Unset cache variable so we can try again.
36457 unset ac_cv_lib_dps_DPSInitialize
36458 { $as_echo "$as_me:$LINENO: checking for DPSInitialize in -ldps" >&5
36459$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
36460if test "${ac_cv_lib_dps_DPSInitialize+set}" = set; then
36461 $as_echo_n "(cached) " >&6
36462else
36463 ac_check_lib_save_LIBS=$LIBS
36464LIBS="-ldps -lXt $LIBS"
36465cat >conftest.$ac_ext <<_ACEOF
36466/* confdefs.h. */
36467_ACEOF
36468cat confdefs.h >>conftest.$ac_ext
36469cat >>conftest.$ac_ext <<_ACEOF
36470/* end confdefs.h. */
36471
36472/* Override any GCC internal prototype to avoid an error.
36473 Use char because int might match the return type of a GCC
36474 builtin and then its argument prototype would still apply. */
36475#ifdef __cplusplus
36476extern "C"
36477#endif
36478char DPSInitialize ();
36479int
36480main ()
36481{
36482return DPSInitialize ();
36483 ;
36484 return 0;
36485}
36486_ACEOF
36487rm -f conftest.$ac_objext conftest$ac_exeext
36488if { (ac_try="$ac_link"
36489case "(($ac_try" in
36490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36491 *) ac_try_echo=$ac_try;;
36492esac
36493eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36494$as_echo "$ac_try_echo") >&5
36495 (eval "$ac_link") 2>conftest.er1
36496 ac_status=$?
36497 grep -v '^ *+' conftest.er1 >conftest.err
36498 rm -f conftest.er1
36499 cat conftest.err >&5
36500 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36501 (exit $ac_status); } && {
36502 test -z "$ac_c_werror_flag" ||
36503 test ! -s conftest.err
36504 } && test -s conftest$ac_exeext && {
36505 test "$cross_compiling" = yes ||
36506 $as_test_x conftest$ac_exeext
36507 }; then
36508 ac_cv_lib_dps_DPSInitialize=yes
36509else
36510 $as_echo "$as_me: failed program was:" >&5
36511sed 's/^/| /' conftest.$ac_ext >&5
36512
36513 ac_cv_lib_dps_DPSInitialize=no
36514fi
36515
36516rm -rf conftest.dSYM
36517rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36518 conftest$ac_exeext conftest.$ac_ext
36519LIBS=$ac_check_lib_save_LIBS
36520fi
36521{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dps_DPSInitialize" >&5
36522$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
36523if test "x$ac_cv_lib_dps_DPSInitialize" = x""yes; then
36524 have_libdps='yes'
36525else
36526 have_libdps='no'
36527fi
36528
36529 if test "$have_libdps" = 'yes'; then
36530 LIBDPS_XT='-lXt'
36531 fi
36532 fi
36533 if test "$have_libdps" = 'yes'; then
36534 passed=`expr $passed + 1`
36535 else
36536 failed=`expr $failed + 1`
36537 fi
36538 { $as_echo "$as_me:$LINENO: checking for XDPSPixelsPerPoint in -ldpstk" >&5
36539$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
36540if test "${ac_cv_lib_dpstk_XDPSPixelsPerPoint+set}" = set; then
36541 $as_echo_n "(cached) " >&6
36542else
36543 ac_check_lib_save_LIBS=$LIBS
36544LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
36545cat >conftest.$ac_ext <<_ACEOF
36546/* confdefs.h. */
36547_ACEOF
36548cat confdefs.h >>conftest.$ac_ext
36549cat >>conftest.$ac_ext <<_ACEOF
36550/* end confdefs.h. */
36551
36552/* Override any GCC internal prototype to avoid an error.
36553 Use char because int might match the return type of a GCC
36554 builtin and then its argument prototype would still apply. */
36555#ifdef __cplusplus
36556extern "C"
36557#endif
36558char XDPSPixelsPerPoint ();
36559int
36560main ()
36561{
36562return XDPSPixelsPerPoint ();
36563 ;
36564 return 0;
36565}
36566_ACEOF
36567rm -f conftest.$ac_objext conftest$ac_exeext
36568if { (ac_try="$ac_link"
36569case "(($ac_try" in
36570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36571 *) ac_try_echo=$ac_try;;
36572esac
36573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36574$as_echo "$ac_try_echo") >&5
36575 (eval "$ac_link") 2>conftest.er1
36576 ac_status=$?
36577 grep -v '^ *+' conftest.er1 >conftest.err
36578 rm -f conftest.er1
36579 cat conftest.err >&5
36580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36581 (exit $ac_status); } && {
36582 test -z "$ac_c_werror_flag" ||
36583 test ! -s conftest.err
36584 } && test -s conftest$ac_exeext && {
36585 test "$cross_compiling" = yes ||
36586 $as_test_x conftest$ac_exeext
36587 }; then
36588 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
36589else
36590 $as_echo "$as_me: failed program was:" >&5
36591sed 's/^/| /' conftest.$ac_ext >&5
36592
36593 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
36594fi
36595
36596rm -rf conftest.dSYM
36597rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36598 conftest$ac_exeext conftest.$ac_ext
36599LIBS=$ac_check_lib_save_LIBS
36600fi
36601{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
36602$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
36603if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = x""yes; then
36604 passed=`expr $passed + 1`
36605else
36606 failed=`expr $failed + 1`
36607fi
36608
36609 { $as_echo "$as_me:$LINENO: checking if DPS package is complete" >&5
36610$as_echo_n "checking if DPS package is complete... " >&6; }
36611 if test $passed -gt 0; then
36612 if test $failed -gt 0; then
36613 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
36614$as_echo "no -- some components failed test" >&6; }
36615 have_dps='no (failed tests)'
36616 CPPFLAGS="$PERSIST_CPPFLAGS"
36617 else
36618 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
36619 LIBS="$DPS_LIBS $LIBS"
36620
36621cat >>confdefs.h <<\_ACEOF
36622#define DPS_DELEGATE 1
36623_ACEOF
36624
36625 { $as_echo "$as_me:$LINENO: result: yes" >&5
36626$as_echo "yes" >&6; }
36627 have_dps='yes'
36628 fi
36629 else
36630 { $as_echo "$as_me:$LINENO: result: no" >&5
36631$as_echo "no" >&6; }
36632 CPPFLAGS=$PERSIST_CPPFLAGS
36633 fi
36634fi
36635 if test "$have_dps" = 'yes'; then
36636 DPS_DELEGATE_TRUE=
36637 DPS_DELEGATE_FALSE='#'
36638else
36639 DPS_DELEGATE_TRUE='#'
36640 DPS_DELEGATE_FALSE=
36641fi
36642
36643
36644
36645
36646#
36647# Check for DJVU delegate library.
36648#
36649
36650# Check whether --with-djvu was given.
36651if test "${with_djvu+set}" = set; then
36652 withval=$with_djvu; with_djvu=$withval
36653else
36654 with_djvu='yes'
36655fi
36656
36657
36658if test "$with_djvu" != 'yes'; then
36659 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
36660fi
36661
36662have_djvu='no'
36663DJVU_LIBS=''
36664if test "$with_djvu" != 'no'; then
36665 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
36666$as_echo "-------------------------------------------------------------" >&6; }
36667 { $as_echo "$as_me:$LINENO: checking for DJVU" >&5
36668$as_echo_n "checking for DJVU... " >&6; }
36669 { $as_echo "$as_me:$LINENO: result: " >&5
36670$as_echo "" >&6; }
36671 failed=0
36672 passed=0
36673 if test "${ac_cv_header_libdjvu_ddjvuapi_h+set}" = set; then
36674 { $as_echo "$as_me:$LINENO: checking for libdjvu/ddjvuapi.h" >&5
36675$as_echo_n "checking for libdjvu/ddjvuapi.h... " >&6; }
36676if test "${ac_cv_header_libdjvu_ddjvuapi_h+set}" = set; then
36677 $as_echo_n "(cached) " >&6
36678fi
36679{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libdjvu_ddjvuapi_h" >&5
36680$as_echo "$ac_cv_header_libdjvu_ddjvuapi_h" >&6; }
36681else
36682 # Is the header compilable?
36683{ $as_echo "$as_me:$LINENO: checking libdjvu/ddjvuapi.h usability" >&5
36684$as_echo_n "checking libdjvu/ddjvuapi.h usability... " >&6; }
36685cat >conftest.$ac_ext <<_ACEOF
36686/* confdefs.h. */
36687_ACEOF
36688cat confdefs.h >>conftest.$ac_ext
36689cat >>conftest.$ac_ext <<_ACEOF
36690/* end confdefs.h. */
36691$ac_includes_default
36692#include <libdjvu/ddjvuapi.h>
36693_ACEOF
36694rm -f conftest.$ac_objext
36695if { (ac_try="$ac_compile"
36696case "(($ac_try" in
36697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36698 *) ac_try_echo=$ac_try;;
36699esac
36700eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36701$as_echo "$ac_try_echo") >&5
36702 (eval "$ac_compile") 2>conftest.er1
36703 ac_status=$?
36704 grep -v '^ *+' conftest.er1 >conftest.err
36705 rm -f conftest.er1
36706 cat conftest.err >&5
36707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36708 (exit $ac_status); } && {
36709 test -z "$ac_c_werror_flag" ||
36710 test ! -s conftest.err
36711 } && test -s conftest.$ac_objext; then
36712 ac_header_compiler=yes
36713else
36714 $as_echo "$as_me: failed program was:" >&5
36715sed 's/^/| /' conftest.$ac_ext >&5
36716
36717 ac_header_compiler=no
36718fi
36719
36720rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36721{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36722$as_echo "$ac_header_compiler" >&6; }
36723
36724# Is the header present?
36725{ $as_echo "$as_me:$LINENO: checking libdjvu/ddjvuapi.h presence" >&5
36726$as_echo_n "checking libdjvu/ddjvuapi.h presence... " >&6; }
36727cat >conftest.$ac_ext <<_ACEOF
36728/* confdefs.h. */
36729_ACEOF
36730cat confdefs.h >>conftest.$ac_ext
36731cat >>conftest.$ac_ext <<_ACEOF
36732/* end confdefs.h. */
36733#include <libdjvu/ddjvuapi.h>
36734_ACEOF
36735if { (ac_try="$ac_cpp conftest.$ac_ext"
36736case "(($ac_try" in
36737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36738 *) ac_try_echo=$ac_try;;
36739esac
36740eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36741$as_echo "$ac_try_echo") >&5
36742 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36743 ac_status=$?
36744 grep -v '^ *+' conftest.er1 >conftest.err
36745 rm -f conftest.er1
36746 cat conftest.err >&5
36747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36748 (exit $ac_status); } >/dev/null && {
36749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36750 test ! -s conftest.err
36751 }; then
36752 ac_header_preproc=yes
36753else
36754 $as_echo "$as_me: failed program was:" >&5
36755sed 's/^/| /' conftest.$ac_ext >&5
36756
36757 ac_header_preproc=no
36758fi
36759
36760rm -f conftest.err conftest.$ac_ext
36761{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36762$as_echo "$ac_header_preproc" >&6; }
36763
36764# So? What about this header?
36765case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36766 yes:no: )
36767 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
36768$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36769 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: proceeding with the compiler's result" >&5
36770$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: proceeding with the compiler's result" >&2;}
36771 ac_header_preproc=yes
36772 ;;
36773 no:yes:* )
36774 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: present but cannot be compiled" >&5
36775$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: present but cannot be compiled" >&2;}
36776 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: check for missing prerequisite headers?" >&5
36777$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: check for missing prerequisite headers?" >&2;}
36778 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: see the Autoconf documentation" >&5
36779$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: see the Autoconf documentation" >&2;}
36780 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: section \"Present But Cannot Be Compiled\"" >&5
36781$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
36782 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: proceeding with the preprocessor's result" >&5
36783$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: proceeding with the preprocessor's result" >&2;}
36784 { $as_echo "$as_me:$LINENO: WARNING: libdjvu/ddjvuapi.h: in the future, the compiler will take precedence" >&5
36785$as_echo "$as_me: WARNING: libdjvu/ddjvuapi.h: in the future, the compiler will take precedence" >&2;}
36786 ( cat <<\_ASBOX
36787## ----------------------------------------- ##
36788## Report this to http://www.imagemagick.org ##
36789## ----------------------------------------- ##
36790_ASBOX
36791 ) | sed "s/^/$as_me: WARNING: /" >&2
36792 ;;
36793esac
36794{ $as_echo "$as_me:$LINENO: checking for libdjvu/ddjvuapi.h" >&5
36795$as_echo_n "checking for libdjvu/ddjvuapi.h... " >&6; }
36796if test "${ac_cv_header_libdjvu_ddjvuapi_h+set}" = set; then
36797 $as_echo_n "(cached) " >&6
36798else
36799 ac_cv_header_libdjvu_ddjvuapi_h=$ac_header_preproc
36800fi
36801{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libdjvu_ddjvuapi_h" >&5
36802$as_echo "$ac_cv_header_libdjvu_ddjvuapi_h" >&6; }
36803
36804fi
36805if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = x""yes; then
36806 passed=`expr $passed + 1`
36807else
36808 failed=`expr $failed + 1`
36809fi
36810
36811
36812 { $as_echo "$as_me:$LINENO: checking for ddjvu_context_create in -ldjvulibre" >&5
36813$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
36814if test "${ac_cv_lib_djvulibre_ddjvu_context_create+set}" = set; then
36815 $as_echo_n "(cached) " >&6
36816else
36817 ac_check_lib_save_LIBS=$LIBS
36818LIBS="-ldjvulibre $LIBS"
36819cat >conftest.$ac_ext <<_ACEOF
36820/* confdefs.h. */
36821_ACEOF
36822cat confdefs.h >>conftest.$ac_ext
36823cat >>conftest.$ac_ext <<_ACEOF
36824/* end confdefs.h. */
36825
36826/* Override any GCC internal prototype to avoid an error.
36827 Use char because int might match the return type of a GCC
36828 builtin and then its argument prototype would still apply. */
36829#ifdef __cplusplus
36830extern "C"
36831#endif
36832char ddjvu_context_create ();
36833int
36834main ()
36835{
36836return ddjvu_context_create ();
36837 ;
36838 return 0;
36839}
36840_ACEOF
36841rm -f conftest.$ac_objext conftest$ac_exeext
36842if { (ac_try="$ac_link"
36843case "(($ac_try" in
36844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36845 *) ac_try_echo=$ac_try;;
36846esac
36847eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36848$as_echo "$ac_try_echo") >&5
36849 (eval "$ac_link") 2>conftest.er1
36850 ac_status=$?
36851 grep -v '^ *+' conftest.er1 >conftest.err
36852 rm -f conftest.er1
36853 cat conftest.err >&5
36854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36855 (exit $ac_status); } && {
36856 test -z "$ac_c_werror_flag" ||
36857 test ! -s conftest.err
36858 } && test -s conftest$ac_exeext && {
36859 test "$cross_compiling" = yes ||
36860 $as_test_x conftest$ac_exeext
36861 }; then
36862 ac_cv_lib_djvulibre_ddjvu_context_create=yes
36863else
36864 $as_echo "$as_me: failed program was:" >&5
36865sed 's/^/| /' conftest.$ac_ext >&5
36866
36867 ac_cv_lib_djvulibre_ddjvu_context_create=no
36868fi
36869
36870rm -rf conftest.dSYM
36871rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36872 conftest$ac_exeext conftest.$ac_ext
36873LIBS=$ac_check_lib_save_LIBS
36874fi
36875{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
36876$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
36877if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = x""yes; then
36878 passed=`expr $passed + 1`
36879else
36880 failed=`expr $failed + 1`
36881fi
36882
36883 { $as_echo "$as_me:$LINENO: checking if DJVU package is complete" >&5
36884$as_echo_n "checking if DJVU package is complete... " >&6; }
36885 if test $passed -gt 0; then
36886 if test $failed -gt 0; then
36887 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
36888$as_echo "no -- some components failed test" >&6; }
36889 have_djvu='no (failed tests)'
36890 else
36891 DJVU_LIBS='-ldjvulibre'
36892 LIBS="$DJVU_LIBS $LIBS"
36893
36894cat >>confdefs.h <<\_ACEOF
36895#define DJVU_DELEGATE 1
36896_ACEOF
36897
36898 { $as_echo "$as_me:$LINENO: result: yes" >&5
36899$as_echo "yes" >&6; }
36900 have_djvu='yes'
36901 fi
36902 else
36903 { $as_echo "$as_me:$LINENO: result: no" >&5
36904$as_echo "no" >&6; }
36905 fi
36906fi
36907 if test "$have_djvu" = 'yes'; then
36908 DJVU_DELEGATE_TRUE=
36909 DJVU_DELEGATE_FALSE='#'
36910else
36911 DJVU_DELEGATE_TRUE='#'
36912 DJVU_DELEGATE_FALSE=
36913fi
36914
36915
36916
36917
36918#
36919# Check for FFTW delegate library.
36920#
36921
36922# Check whether --with-fftw was given.
36923if test "${with_fftw+set}" = set; then
36924 withval=$with_fftw; with_fftw=$withval
36925else
36926 with_fftw='yes'
36927fi
36928
36929
36930if test "$with_fftw" != 'yes'; then
36931 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
36932fi
36933
36934have_fftw='no'
36935FFTW_LIBS=''
36936if test "$with_fftw" != 'no'; then
36937 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
36938$as_echo "-------------------------------------------------------------" >&6; }
36939 { $as_echo "$as_me:$LINENO: checking for FFTW" >&5
36940$as_echo_n "checking for FFTW... " >&6; }
36941 { $as_echo "$as_me:$LINENO: result: " >&5
36942$as_echo "" >&6; }
36943 failed=0
36944 passed=0
36945 if test "${ac_cv_header_fftw3_h+set}" = set; then
36946 { $as_echo "$as_me:$LINENO: checking for fftw3.h" >&5
36947$as_echo_n "checking for fftw3.h... " >&6; }
36948if test "${ac_cv_header_fftw3_h+set}" = set; then
36949 $as_echo_n "(cached) " >&6
36950fi
36951{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
36952$as_echo "$ac_cv_header_fftw3_h" >&6; }
36953else
36954 # Is the header compilable?
36955{ $as_echo "$as_me:$LINENO: checking fftw3.h usability" >&5
36956$as_echo_n "checking fftw3.h usability... " >&6; }
36957cat >conftest.$ac_ext <<_ACEOF
36958/* confdefs.h. */
36959_ACEOF
36960cat confdefs.h >>conftest.$ac_ext
36961cat >>conftest.$ac_ext <<_ACEOF
36962/* end confdefs.h. */
36963$ac_includes_default
36964#include <fftw3.h>
36965_ACEOF
36966rm -f conftest.$ac_objext
36967if { (ac_try="$ac_compile"
36968case "(($ac_try" in
36969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36970 *) ac_try_echo=$ac_try;;
36971esac
36972eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36973$as_echo "$ac_try_echo") >&5
36974 (eval "$ac_compile") 2>conftest.er1
36975 ac_status=$?
36976 grep -v '^ *+' conftest.er1 >conftest.err
36977 rm -f conftest.er1
36978 cat conftest.err >&5
36979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36980 (exit $ac_status); } && {
36981 test -z "$ac_c_werror_flag" ||
36982 test ! -s conftest.err
36983 } && test -s conftest.$ac_objext; then
36984 ac_header_compiler=yes
36985else
36986 $as_echo "$as_me: failed program was:" >&5
36987sed 's/^/| /' conftest.$ac_ext >&5
36988
36989 ac_header_compiler=no
36990fi
36991
36992rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36993{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36994$as_echo "$ac_header_compiler" >&6; }
36995
36996# Is the header present?
36997{ $as_echo "$as_me:$LINENO: checking fftw3.h presence" >&5
36998$as_echo_n "checking fftw3.h presence... " >&6; }
36999cat >conftest.$ac_ext <<_ACEOF
37000/* confdefs.h. */
37001_ACEOF
37002cat confdefs.h >>conftest.$ac_ext
37003cat >>conftest.$ac_ext <<_ACEOF
37004/* end confdefs.h. */
37005#include <fftw3.h>
37006_ACEOF
37007if { (ac_try="$ac_cpp conftest.$ac_ext"
37008case "(($ac_try" in
37009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37010 *) ac_try_echo=$ac_try;;
37011esac
37012eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37013$as_echo "$ac_try_echo") >&5
37014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37015 ac_status=$?
37016 grep -v '^ *+' conftest.er1 >conftest.err
37017 rm -f conftest.er1
37018 cat conftest.err >&5
37019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37020 (exit $ac_status); } >/dev/null && {
37021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37022 test ! -s conftest.err
37023 }; then
37024 ac_header_preproc=yes
37025else
37026 $as_echo "$as_me: failed program was:" >&5
37027sed 's/^/| /' conftest.$ac_ext >&5
37028
37029 ac_header_preproc=no
37030fi
37031
37032rm -f conftest.err conftest.$ac_ext
37033{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37034$as_echo "$ac_header_preproc" >&6; }
37035
37036# So? What about this header?
37037case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37038 yes:no: )
37039 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&5
37040$as_echo "$as_me: WARNING: fftw3.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37041 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the compiler's result" >&5
37042$as_echo "$as_me: WARNING: fftw3.h: proceeding with the compiler's result" >&2;}
37043 ac_header_preproc=yes
37044 ;;
37045 no:yes:* )
37046 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: present but cannot be compiled" >&5
37047$as_echo "$as_me: WARNING: fftw3.h: present but cannot be compiled" >&2;}
37048 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: check for missing prerequisite headers?" >&5
37049$as_echo "$as_me: WARNING: fftw3.h: check for missing prerequisite headers?" >&2;}
37050 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: see the Autoconf documentation" >&5
37051$as_echo "$as_me: WARNING: fftw3.h: see the Autoconf documentation" >&2;}
37052 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&5
37053$as_echo "$as_me: WARNING: fftw3.h: section \"Present But Cannot Be Compiled\"" >&2;}
37054 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: proceeding with the preprocessor's result" >&5
37055$as_echo "$as_me: WARNING: fftw3.h: proceeding with the preprocessor's result" >&2;}
37056 { $as_echo "$as_me:$LINENO: WARNING: fftw3.h: in the future, the compiler will take precedence" >&5
37057$as_echo "$as_me: WARNING: fftw3.h: in the future, the compiler will take precedence" >&2;}
37058 ( cat <<\_ASBOX
37059## ----------------------------------------- ##
37060## Report this to http://www.imagemagick.org ##
37061## ----------------------------------------- ##
37062_ASBOX
37063 ) | sed "s/^/$as_me: WARNING: /" >&2
37064 ;;
37065esac
37066{ $as_echo "$as_me:$LINENO: checking for fftw3.h" >&5
37067$as_echo_n "checking for fftw3.h... " >&6; }
37068if test "${ac_cv_header_fftw3_h+set}" = set; then
37069 $as_echo_n "(cached) " >&6
37070else
37071 ac_cv_header_fftw3_h=$ac_header_preproc
37072fi
37073{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fftw3_h" >&5
37074$as_echo "$ac_cv_header_fftw3_h" >&6; }
37075
37076fi
37077if test "x$ac_cv_header_fftw3_h" = x""yes; then
37078 passed=`expr $passed + 1`
37079else
37080 failed=`expr $failed + 1`
37081fi
37082
37083
37084 { $as_echo "$as_me:$LINENO: checking for fftw_execute in -lfftw3" >&5
37085$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
37086if test "${ac_cv_lib_fftw3_fftw_execute+set}" = set; then
37087 $as_echo_n "(cached) " >&6
37088else
37089 ac_check_lib_save_LIBS=$LIBS
37090LIBS="-lfftw3 $LIBS"
37091cat >conftest.$ac_ext <<_ACEOF
37092/* confdefs.h. */
37093_ACEOF
37094cat confdefs.h >>conftest.$ac_ext
37095cat >>conftest.$ac_ext <<_ACEOF
37096/* end confdefs.h. */
37097
37098/* Override any GCC internal prototype to avoid an error.
37099 Use char because int might match the return type of a GCC
37100 builtin and then its argument prototype would still apply. */
37101#ifdef __cplusplus
37102extern "C"
37103#endif
37104char fftw_execute ();
37105int
37106main ()
37107{
37108return fftw_execute ();
37109 ;
37110 return 0;
37111}
37112_ACEOF
37113rm -f conftest.$ac_objext conftest$ac_exeext
37114if { (ac_try="$ac_link"
37115case "(($ac_try" in
37116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37117 *) ac_try_echo=$ac_try;;
37118esac
37119eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37120$as_echo "$ac_try_echo") >&5
37121 (eval "$ac_link") 2>conftest.er1
37122 ac_status=$?
37123 grep -v '^ *+' conftest.er1 >conftest.err
37124 rm -f conftest.er1
37125 cat conftest.err >&5
37126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37127 (exit $ac_status); } && {
37128 test -z "$ac_c_werror_flag" ||
37129 test ! -s conftest.err
37130 } && test -s conftest$ac_exeext && {
37131 test "$cross_compiling" = yes ||
37132 $as_test_x conftest$ac_exeext
37133 }; then
37134 ac_cv_lib_fftw3_fftw_execute=yes
37135else
37136 $as_echo "$as_me: failed program was:" >&5
37137sed 's/^/| /' conftest.$ac_ext >&5
37138
37139 ac_cv_lib_fftw3_fftw_execute=no
37140fi
37141
37142rm -rf conftest.dSYM
37143rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37144 conftest$ac_exeext conftest.$ac_ext
37145LIBS=$ac_check_lib_save_LIBS
37146fi
37147{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_execute" >&5
37148$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
37149if test "x$ac_cv_lib_fftw3_fftw_execute" = x""yes; then
37150 passed=`expr $passed + 1`
37151else
37152 failed=`expr $failed + 1`
37153fi
37154
37155 { $as_echo "$as_me:$LINENO: checking if FFTW package is complete" >&5
37156$as_echo_n "checking if FFTW package is complete... " >&6; }
37157 if test $passed -gt 0; then
37158 if test $failed -gt 0; then
37159 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
37160$as_echo "no -- some components failed test" >&6; }
37161 have_fftw='no (failed tests)'
37162 else
37163 FFTW_LIBS='-lfftw3'
37164 LIBS="$FFTW_LIBS $LIBS"
37165
37166cat >>confdefs.h <<\_ACEOF
37167#define FFTW_DELEGATE 1
37168_ACEOF
37169
37170 { $as_echo "$as_me:$LINENO: result: yes" >&5
37171$as_echo "yes" >&6; }
37172 have_fftw='yes'
37173 fi
37174 else
37175 { $as_echo "$as_me:$LINENO: result: no" >&5
37176$as_echo "no" >&6; }
37177 fi
37178fi
37179 if test "$have_fftw" = 'yes'; then
37180 FFTW_DELEGATE_TRUE=
37181 FFTW_DELEGATE_FALSE='#'
37182else
37183 FFTW_DELEGATE_TRUE='#'
37184 FFTW_DELEGATE_FALSE=
37185fi
37186
37187
37188
37189
37190#
37191# Check for FlashPIX delegate library.
37192#
37193
37194# Check whether --with-fpx was given.
37195if test "${with_fpx+set}" = set; then
37196 withval=$with_fpx; with_fpx=$withval
37197else
37198 with_fpx='yes'
37199fi
37200
37201
37202if test "$with_fpx" != 'yes'; then
37203 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
37204fi
37205
37206have_fpx='no'
37207FPX_LIBS=''
37208if test "$with_fpx" != 'no'; then
37209 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
37210$as_echo "-------------------------------------------------------------" >&6; }
37211 { $as_echo "$as_me:$LINENO: checking for FlashPIX" >&5
37212$as_echo_n "checking for FlashPIX... " >&6; }
37213 { $as_echo "$as_me:$LINENO: result: " >&5
37214$as_echo "" >&6; }
37215 failed=0
37216 passed=0
37217 ac_ext=cpp
37218ac_cpp='$CXXCPP $CPPFLAGS'
37219ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37220ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37221ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37222
37223
37224if test "${ac_cv_header_fpxlib_h+set}" = set; then
37225 { $as_echo "$as_me:$LINENO: checking for fpxlib.h" >&5
37226$as_echo_n "checking for fpxlib.h... " >&6; }
37227if test "${ac_cv_header_fpxlib_h+set}" = set; then
37228 $as_echo_n "(cached) " >&6
37229fi
37230{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fpxlib_h" >&5
37231$as_echo "$ac_cv_header_fpxlib_h" >&6; }
37232else
37233 # Is the header compilable?
37234{ $as_echo "$as_me:$LINENO: checking fpxlib.h usability" >&5
37235$as_echo_n "checking fpxlib.h usability... " >&6; }
37236cat >conftest.$ac_ext <<_ACEOF
37237/* confdefs.h. */
37238_ACEOF
37239cat confdefs.h >>conftest.$ac_ext
37240cat >>conftest.$ac_ext <<_ACEOF
37241/* end confdefs.h. */
37242$ac_includes_default
37243#include <fpxlib.h>
37244_ACEOF
37245rm -f conftest.$ac_objext
37246if { (ac_try="$ac_compile"
37247case "(($ac_try" in
37248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37249 *) ac_try_echo=$ac_try;;
37250esac
37251eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37252$as_echo "$ac_try_echo") >&5
37253 (eval "$ac_compile") 2>conftest.er1
37254 ac_status=$?
37255 grep -v '^ *+' conftest.er1 >conftest.err
37256 rm -f conftest.er1
37257 cat conftest.err >&5
37258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37259 (exit $ac_status); } && {
37260 test -z "$ac_cxx_werror_flag" ||
37261 test ! -s conftest.err
37262 } && test -s conftest.$ac_objext; then
37263 ac_header_compiler=yes
37264else
37265 $as_echo "$as_me: failed program was:" >&5
37266sed 's/^/| /' conftest.$ac_ext >&5
37267
37268 ac_header_compiler=no
37269fi
37270
37271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37272{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37273$as_echo "$ac_header_compiler" >&6; }
37274
37275# Is the header present?
37276{ $as_echo "$as_me:$LINENO: checking fpxlib.h presence" >&5
37277$as_echo_n "checking fpxlib.h presence... " >&6; }
37278cat >conftest.$ac_ext <<_ACEOF
37279/* confdefs.h. */
37280_ACEOF
37281cat confdefs.h >>conftest.$ac_ext
37282cat >>conftest.$ac_ext <<_ACEOF
37283/* end confdefs.h. */
37284#include <fpxlib.h>
37285_ACEOF
37286if { (ac_try="$ac_cpp conftest.$ac_ext"
37287case "(($ac_try" in
37288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37289 *) ac_try_echo=$ac_try;;
37290esac
37291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37292$as_echo "$ac_try_echo") >&5
37293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37294 ac_status=$?
37295 grep -v '^ *+' conftest.er1 >conftest.err
37296 rm -f conftest.er1
37297 cat conftest.err >&5
37298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37299 (exit $ac_status); } >/dev/null && {
37300 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
37301 test ! -s conftest.err
37302 }; then
37303 ac_header_preproc=yes
37304else
37305 $as_echo "$as_me: failed program was:" >&5
37306sed 's/^/| /' conftest.$ac_ext >&5
37307
37308 ac_header_preproc=no
37309fi
37310
37311rm -f conftest.err conftest.$ac_ext
37312{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37313$as_echo "$ac_header_preproc" >&6; }
37314
37315# So? What about this header?
37316case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
37317 yes:no: )
37318 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
37319$as_echo "$as_me: WARNING: fpxlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37320 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: proceeding with the compiler's result" >&5
37321$as_echo "$as_me: WARNING: fpxlib.h: proceeding with the compiler's result" >&2;}
37322 ac_header_preproc=yes
37323 ;;
37324 no:yes:* )
37325 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: present but cannot be compiled" >&5
37326$as_echo "$as_me: WARNING: fpxlib.h: present but cannot be compiled" >&2;}
37327 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: check for missing prerequisite headers?" >&5
37328$as_echo "$as_me: WARNING: fpxlib.h: check for missing prerequisite headers?" >&2;}
37329 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: see the Autoconf documentation" >&5
37330$as_echo "$as_me: WARNING: fpxlib.h: see the Autoconf documentation" >&2;}
37331 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: section \"Present But Cannot Be Compiled\"" >&5
37332$as_echo "$as_me: WARNING: fpxlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
37333 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: proceeding with the preprocessor's result" >&5
37334$as_echo "$as_me: WARNING: fpxlib.h: proceeding with the preprocessor's result" >&2;}
37335 { $as_echo "$as_me:$LINENO: WARNING: fpxlib.h: in the future, the compiler will take precedence" >&5
37336$as_echo "$as_me: WARNING: fpxlib.h: in the future, the compiler will take precedence" >&2;}
37337 ( cat <<\_ASBOX
37338## ----------------------------------------- ##
37339## Report this to http://www.imagemagick.org ##
37340## ----------------------------------------- ##
37341_ASBOX
37342 ) | sed "s/^/$as_me: WARNING: /" >&2
37343 ;;
37344esac
37345{ $as_echo "$as_me:$LINENO: checking for fpxlib.h" >&5
37346$as_echo_n "checking for fpxlib.h... " >&6; }
37347if test "${ac_cv_header_fpxlib_h+set}" = set; then
37348 $as_echo_n "(cached) " >&6
37349else
37350 ac_cv_header_fpxlib_h=$ac_header_preproc
37351fi
37352{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_fpxlib_h" >&5
37353$as_echo "$ac_cv_header_fpxlib_h" >&6; }
37354
37355fi
37356if test "x$ac_cv_header_fpxlib_h" = x""yes; then
37357 passed=`expr $passed + 1`
37358else
37359 failed=`expr $failed + 1`
37360fi
37361
37362
37363 { $as_echo "$as_me:$LINENO: checking for FPX_OpenImageByFilename in -lfpx" >&5
37364$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
37365if test "${ac_cv_lib_fpx_FPX_OpenImageByFilename+set}" = set; then
37366 $as_echo_n "(cached) " >&6
37367else
37368 ac_check_lib_save_LIBS=$LIBS
37369LIBS="-lfpx $LIBS"
37370cat >conftest.$ac_ext <<_ACEOF
37371/* confdefs.h. */
37372_ACEOF
37373cat confdefs.h >>conftest.$ac_ext
37374cat >>conftest.$ac_ext <<_ACEOF
37375/* end confdefs.h. */
37376
37377/* Override any GCC internal prototype to avoid an error.
37378 Use char because int might match the return type of a GCC
37379 builtin and then its argument prototype would still apply. */
37380#ifdef __cplusplus
37381extern "C"
37382#endif
37383char FPX_OpenImageByFilename ();
37384int
37385main ()
37386{
37387return FPX_OpenImageByFilename ();
37388 ;
37389 return 0;
37390}
37391_ACEOF
37392rm -f conftest.$ac_objext conftest$ac_exeext
37393if { (ac_try="$ac_link"
37394case "(($ac_try" in
37395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37396 *) ac_try_echo=$ac_try;;
37397esac
37398eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37399$as_echo "$ac_try_echo") >&5
37400 (eval "$ac_link") 2>conftest.er1
37401 ac_status=$?
37402 grep -v '^ *+' conftest.er1 >conftest.err
37403 rm -f conftest.er1
37404 cat conftest.err >&5
37405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37406 (exit $ac_status); } && {
37407 test -z "$ac_cxx_werror_flag" ||
37408 test ! -s conftest.err
37409 } && test -s conftest$ac_exeext && {
37410 test "$cross_compiling" = yes ||
37411 $as_test_x conftest$ac_exeext
37412 }; then
37413 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
37414else
37415 $as_echo "$as_me: failed program was:" >&5
37416sed 's/^/| /' conftest.$ac_ext >&5
37417
37418 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
37419fi
37420
37421rm -rf conftest.dSYM
37422rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37423 conftest$ac_exeext conftest.$ac_ext
37424LIBS=$ac_check_lib_save_LIBS
37425fi
37426{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
37427$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
37428if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = x""yes; then
37429 passed=`expr $passed + 1`
37430else
37431 failed=`expr $failed + 1`
37432fi
37433
37434 ac_ext=c
37435ac_cpp='$CPP $CPPFLAGS'
37436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37438ac_compiler_gnu=$ac_cv_c_compiler_gnu
37439
37440 { $as_echo "$as_me:$LINENO: checking if FlashPIX package is complete" >&5
37441$as_echo_n "checking if FlashPIX package is complete... " >&6; }
37442 if test $passed -gt 0; then
37443 if test $failed -gt 0; then
37444 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
37445$as_echo "no -- some components failed test" >&6; }
37446 have_fpx='no (failed tests)'
37447 else
37448 FPX_LIBS='-lfpx'
37449
37450cat >>confdefs.h <<\_ACEOF
37451#define FPX_DELEGATE 1
37452_ACEOF
37453
37454 { $as_echo "$as_me:$LINENO: result: yes" >&5
37455$as_echo "yes" >&6; }
37456 have_fpx='yes'
37457 PERLMAINCC="$CXX"
37458 fi
37459 else
37460 { $as_echo "$as_me:$LINENO: result: no" >&5
37461$as_echo "no" >&6; }
37462 fi
37463fi
37464 if test "$have_fpx" = 'yes'; then
37465 FPX_DELEGATE_TRUE=
37466 FPX_DELEGATE_FALSE='#'
37467else
37468 FPX_DELEGATE_TRUE='#'
37469 FPX_DELEGATE_FALSE=
37470fi
37471
37472
37473
37474
37475#
37476# Check for fontconfig delegate library.
37477#
37478
37479# Check whether --with-fontconfig was given.
37480if test "${with_fontconfig+set}" = set; then
37481 withval=$with_fontconfig; with_fontconfig=$withval
37482else
37483 with_fontconfig=$have_x
37484fi
37485
37486
37487if test "$with_fontconfig" != 'yes'; then
37488 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
37489fi
37490
37491have_fontconfig='no'
37492FONTCONFIG_CFLAGS=""
37493FONTCONFIG_LIBS=""
37494FONTCONFIG_PKG=""
37495if test "x$with_fontconfig" = "xyes"; then
37496 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
37497$as_echo "-------------------------------------------------------------" >&6; }
37498
37499pkg_failed=no
37500{ $as_echo "$as_me:$LINENO: checking for FONTCONFIG" >&5
37501$as_echo_n "checking for FONTCONFIG... " >&6; }
37502
37503if test -n "$FONTCONFIG_CFLAGS"; then
37504 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
37505 elif test -n "$PKG_CONFIG"; then
37506 if test -n "$PKG_CONFIG" && \
37507 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\"") >&5
37508 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
37509 ac_status=$?
37510 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37511 (exit $ac_status); }; then
37512 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
37513else
37514 pkg_failed=yes
37515fi
37516 else
37517 pkg_failed=untried
37518fi
37519if test -n "$FONTCONFIG_LIBS"; then
37520 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
37521 elif test -n "$PKG_CONFIG"; then
37522 if test -n "$PKG_CONFIG" && \
37523 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\"") >&5
37524 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
37525 ac_status=$?
37526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37527 (exit $ac_status); }; then
37528 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
37529else
37530 pkg_failed=yes
37531fi
37532 else
37533 pkg_failed=untried
37534fi
37535
37536
37537
37538if test $pkg_failed = yes; then
37539
37540if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
37541 _pkg_short_errors_supported=yes
37542else
37543 _pkg_short_errors_supported=no
37544fi
37545 if test $_pkg_short_errors_supported = yes; then
37546 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
37547 else
37548 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
37549 fi
37550 # Put the nasty error message in config.log where it belongs
37551 echo "$FONTCONFIG_PKG_ERRORS" >&5
37552
37553 { $as_echo "$as_me:$LINENO: result: no" >&5
37554$as_echo "no" >&6; }
37555 have_fontconfig=no
37556elif test $pkg_failed = untried; then
37557 have_fontconfig=no
37558else
37559 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
37560 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
37561 { $as_echo "$as_me:$LINENO: result: yes" >&5
37562$as_echo "yes" >&6; }
37563 have_fontconfig=yes
37564fi
37565 { $as_echo "$as_me:$LINENO: result: " >&5
37566$as_echo "" >&6; }
37567fi
37568
37569if test "$have_fontconfig" = 'yes'; then
37570
37571cat >>confdefs.h <<\_ACEOF
37572#define FONTCONFIG_DELEGATE 1
37573_ACEOF
37574
37575 if test "$with_modules" = 'no'; then
37576 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
37577 fi
37578fi
37579
37580 if test "$have_fontconfig" = 'yes'; then
37581 FONTCONFIG_DELEGATE_TRUE=
37582 FONTCONFIG_DELEGATE_FALSE='#'
37583else
37584 FONTCONFIG_DELEGATE_TRUE='#'
37585 FONTCONFIG_DELEGATE_FALSE=
37586fi
37587
37588
37589
37590
37591
37592#
37593# Check for freetype delegate library.
37594#
37595
37596# Check whether --with-freetype was given.
37597if test "${with_freetype+set}" = set; then
37598 withval=$with_freetype; with_freetype=$withval
37599else
37600 with_freetype='yes'
37601fi
37602
37603
37604
37605if test "$with_freetype" != 'yes'; then
37606 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
37607fi
37608
37609have_freetype='no'
37610FREETYPE_LIBS=''
37611if test "$with_freetype" != 'no'; then
37612 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
37613$as_echo "-------------------------------------------------------------" >&6; }
37614 { $as_echo "$as_me:$LINENO: checking for FreeType 2.0" >&5
37615$as_echo_n "checking for FreeType 2.0... " >&6; }
37616 { $as_echo "$as_me:$LINENO: result: " >&5
37617$as_echo "" >&6; }
37618 failed=0
37619 passed=0
37620 PERSIST_LDFLAGS="$LDFLAGS"
37621 PERSIST_CPPFLAGS="$CPPFLAGS"
37622 if test "$enable_delegate_build" != 'no' && test -d "$builddir/freetype/include"; then
37623 :
37624 else
37625 freetype_config=''
37626 for ac_prog in freetype-config
37627do
37628 # Extract the first word of "$ac_prog", so it can be a program name with args.
37629set dummy $ac_prog; ac_word=$2
37630{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
37631$as_echo_n "checking for $ac_word... " >&6; }
37632if test "${ac_cv_prog_freetype_config+set}" = set; then
37633 $as_echo_n "(cached) " >&6
37634else
37635 if test -n "$freetype_config"; then
37636 ac_cv_prog_freetype_config="$freetype_config" # Let the user override the test.
37637else
37638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37639for as_dir in $PATH
37640do
37641 IFS=$as_save_IFS
37642 test -z "$as_dir" && as_dir=.
37643 for ac_exec_ext in '' $ac_executable_extensions; do
37644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37645 ac_cv_prog_freetype_config="$ac_prog"
37646 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37647 break 2
37648 fi
37649done
37650done
37651IFS=$as_save_IFS
37652
37653fi
37654fi
37655freetype_config=$ac_cv_prog_freetype_config
37656if test -n "$freetype_config"; then
37657 { $as_echo "$as_me:$LINENO: result: $freetype_config" >&5
37658$as_echo "$freetype_config" >&6; }
37659else
37660 { $as_echo "$as_me:$LINENO: result: no" >&5
37661$as_echo "no" >&6; }
37662fi
37663
37664
37665 test -n "$freetype_config" && break
37666done
37667 if test -n "$freetype_config"; then
37668 freetype_cflags=`$freetype_config --cflags`
37669 freetype_libs=`$freetype_config --libs`
37670 LDFLAGS="$LDFLAGS $freetype_libs"
37671 CPPFLAGS="$freetype_cflags $CPPFLAGS"
37672 fi
37673 fi
37674
37675 if test "$FREETYPE_LIBS" = ''; then
37676 { $as_echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
37677$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
37678if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
37679 $as_echo_n "(cached) " >&6
37680else
37681 ac_check_lib_save_LIBS=$LIBS
37682LIBS="-lfreetype $LIBS"
37683cat >conftest.$ac_ext <<_ACEOF
37684/* confdefs.h. */
37685_ACEOF
37686cat confdefs.h >>conftest.$ac_ext
37687cat >>conftest.$ac_ext <<_ACEOF
37688/* end confdefs.h. */
37689
37690/* Override any GCC internal prototype to avoid an error.
37691 Use char because int might match the return type of a GCC
37692 builtin and then its argument prototype would still apply. */
37693#ifdef __cplusplus
37694extern "C"
37695#endif
37696char FT_Init_FreeType ();
37697int
37698main ()
37699{
37700return FT_Init_FreeType ();
37701 ;
37702 return 0;
37703}
37704_ACEOF
37705rm -f conftest.$ac_objext conftest$ac_exeext
37706if { (ac_try="$ac_link"
37707case "(($ac_try" in
37708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37709 *) ac_try_echo=$ac_try;;
37710esac
37711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37712$as_echo "$ac_try_echo") >&5
37713 (eval "$ac_link") 2>conftest.er1
37714 ac_status=$?
37715 grep -v '^ *+' conftest.er1 >conftest.err
37716 rm -f conftest.er1
37717 cat conftest.err >&5
37718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37719 (exit $ac_status); } && {
37720 test -z "$ac_c_werror_flag" ||
37721 test ! -s conftest.err
37722 } && test -s conftest$ac_exeext && {
37723 test "$cross_compiling" = yes ||
37724 $as_test_x conftest$ac_exeext
37725 }; then
37726 ac_cv_lib_freetype_FT_Init_FreeType=yes
37727else
37728 $as_echo "$as_me: failed program was:" >&5
37729sed 's/^/| /' conftest.$ac_ext >&5
37730
37731 ac_cv_lib_freetype_FT_Init_FreeType=no
37732fi
37733
37734rm -rf conftest.dSYM
37735rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37736 conftest$ac_exeext conftest.$ac_ext
37737LIBS=$ac_check_lib_save_LIBS
37738fi
37739{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
37740$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
37741if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = x""yes; then
37742 FREETYPE_LIBS='-lfreetype'
37743fi
37744
37745 if test "$FREETYPE_LIBS" != ''; then
37746 passed=`expr $passed + 1`
37747 else
37748 failed=`expr $failed + 1`
37749 LDFLAGS="$PERSIST_LDFLAGS"
37750 fi
37751 fi
37752
37753 if test "${ac_cv_header_ft2build_h+set}" = set; then
37754 { $as_echo "$as_me:$LINENO: checking for ft2build.h" >&5
37755$as_echo_n "checking for ft2build.h... " >&6; }
37756if test "${ac_cv_header_ft2build_h+set}" = set; then
37757 $as_echo_n "(cached) " >&6
37758fi
37759{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
37760$as_echo "$ac_cv_header_ft2build_h" >&6; }
37761else
37762 # Is the header compilable?
37763{ $as_echo "$as_me:$LINENO: checking ft2build.h usability" >&5
37764$as_echo_n "checking ft2build.h usability... " >&6; }
37765cat >conftest.$ac_ext <<_ACEOF
37766/* confdefs.h. */
37767_ACEOF
37768cat confdefs.h >>conftest.$ac_ext
37769cat >>conftest.$ac_ext <<_ACEOF
37770/* end confdefs.h. */
37771$ac_includes_default
37772#include <ft2build.h>
37773_ACEOF
37774rm -f conftest.$ac_objext
37775if { (ac_try="$ac_compile"
37776case "(($ac_try" in
37777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37778 *) ac_try_echo=$ac_try;;
37779esac
37780eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37781$as_echo "$ac_try_echo") >&5
37782 (eval "$ac_compile") 2>conftest.er1
37783 ac_status=$?
37784 grep -v '^ *+' conftest.er1 >conftest.err
37785 rm -f conftest.er1
37786 cat conftest.err >&5
37787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37788 (exit $ac_status); } && {
37789 test -z "$ac_c_werror_flag" ||
37790 test ! -s conftest.err
37791 } && test -s conftest.$ac_objext; then
37792 ac_header_compiler=yes
37793else
37794 $as_echo "$as_me: failed program was:" >&5
37795sed 's/^/| /' conftest.$ac_ext >&5
37796
37797 ac_header_compiler=no
37798fi
37799
37800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37801{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
37802$as_echo "$ac_header_compiler" >&6; }
37803
37804# Is the header present?
37805{ $as_echo "$as_me:$LINENO: checking ft2build.h presence" >&5
37806$as_echo_n "checking ft2build.h presence... " >&6; }
37807cat >conftest.$ac_ext <<_ACEOF
37808/* confdefs.h. */
37809_ACEOF
37810cat confdefs.h >>conftest.$ac_ext
37811cat >>conftest.$ac_ext <<_ACEOF
37812/* end confdefs.h. */
37813#include <ft2build.h>
37814_ACEOF
37815if { (ac_try="$ac_cpp conftest.$ac_ext"
37816case "(($ac_try" in
37817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37818 *) ac_try_echo=$ac_try;;
37819esac
37820eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37821$as_echo "$ac_try_echo") >&5
37822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
37823 ac_status=$?
37824 grep -v '^ *+' conftest.er1 >conftest.err
37825 rm -f conftest.er1
37826 cat conftest.err >&5
37827 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37828 (exit $ac_status); } >/dev/null && {
37829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
37830 test ! -s conftest.err
37831 }; then
37832 ac_header_preproc=yes
37833else
37834 $as_echo "$as_me: failed program was:" >&5
37835sed 's/^/| /' conftest.$ac_ext >&5
37836
37837 ac_header_preproc=no
37838fi
37839
37840rm -f conftest.err conftest.$ac_ext
37841{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
37842$as_echo "$ac_header_preproc" >&6; }
37843
37844# So? What about this header?
37845case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
37846 yes:no: )
37847 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&5
37848$as_echo "$as_me: WARNING: ft2build.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
37849 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the compiler's result" >&5
37850$as_echo "$as_me: WARNING: ft2build.h: proceeding with the compiler's result" >&2;}
37851 ac_header_preproc=yes
37852 ;;
37853 no:yes:* )
37854 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: present but cannot be compiled" >&5
37855$as_echo "$as_me: WARNING: ft2build.h: present but cannot be compiled" >&2;}
37856 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: check for missing prerequisite headers?" >&5
37857$as_echo "$as_me: WARNING: ft2build.h: check for missing prerequisite headers?" >&2;}
37858 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: see the Autoconf documentation" >&5
37859$as_echo "$as_me: WARNING: ft2build.h: see the Autoconf documentation" >&2;}
37860 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&5
37861$as_echo "$as_me: WARNING: ft2build.h: section \"Present But Cannot Be Compiled\"" >&2;}
37862 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: proceeding with the preprocessor's result" >&5
37863$as_echo "$as_me: WARNING: ft2build.h: proceeding with the preprocessor's result" >&2;}
37864 { $as_echo "$as_me:$LINENO: WARNING: ft2build.h: in the future, the compiler will take precedence" >&5
37865$as_echo "$as_me: WARNING: ft2build.h: in the future, the compiler will take precedence" >&2;}
37866 ( cat <<\_ASBOX
37867## ----------------------------------------- ##
37868## Report this to http://www.imagemagick.org ##
37869## ----------------------------------------- ##
37870_ASBOX
37871 ) | sed "s/^/$as_me: WARNING: /" >&2
37872 ;;
37873esac
37874{ $as_echo "$as_me:$LINENO: checking for ft2build.h" >&5
37875$as_echo_n "checking for ft2build.h... " >&6; }
37876if test "${ac_cv_header_ft2build_h+set}" = set; then
37877 $as_echo_n "(cached) " >&6
37878else
37879 ac_cv_header_ft2build_h=$ac_header_preproc
37880fi
37881{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ft2build_h" >&5
37882$as_echo "$ac_cv_header_ft2build_h" >&6; }
37883
37884fi
37885if test "x$ac_cv_header_ft2build_h" = x""yes; then
37886 FT2BUILD_H='#include <ft2build.h>'
37887else
37888 ft2build=''
37889fi
37890
37891
37892 { $as_echo "$as_me:$LINENO: checking for freetype/freetype.h" >&5
37893$as_echo_n "checking for freetype/freetype.h... " >&6; }
37894if test "${ac_cv_header_freetype_freetype_h+set}" = set; then
37895 $as_echo_n "(cached) " >&6
37896else
37897 cat >conftest.$ac_ext <<_ACEOF
37898/* confdefs.h. */
37899_ACEOF
37900cat confdefs.h >>conftest.$ac_ext
37901cat >>conftest.$ac_ext <<_ACEOF
37902/* end confdefs.h. */
37903$FT2BUILD_H
37904
37905#include <freetype/freetype.h>
37906_ACEOF
37907rm -f conftest.$ac_objext
37908if { (ac_try="$ac_compile"
37909case "(($ac_try" in
37910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37911 *) ac_try_echo=$ac_try;;
37912esac
37913eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37914$as_echo "$ac_try_echo") >&5
37915 (eval "$ac_compile") 2>conftest.er1
37916 ac_status=$?
37917 grep -v '^ *+' conftest.er1 >conftest.err
37918 rm -f conftest.er1
37919 cat conftest.err >&5
37920 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37921 (exit $ac_status); } && {
37922 test -z "$ac_c_werror_flag" ||
37923 test ! -s conftest.err
37924 } && test -s conftest.$ac_objext; then
37925 ac_cv_header_freetype_freetype_h=yes
37926else
37927 $as_echo "$as_me: failed program was:" >&5
37928sed 's/^/| /' conftest.$ac_ext >&5
37929
37930 ac_cv_header_freetype_freetype_h=no
37931fi
37932
37933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37934fi
37935{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_freetype_freetype_h" >&5
37936$as_echo "$ac_cv_header_freetype_freetype_h" >&6; }
37937if test "x$ac_cv_header_freetype_freetype_h" = x""yes; then
37938 have_freetype_h='yes'
37939else
37940 have_freetype_h='no'
37941fi
37942
37943
37944 if test "$ac_cv_header_ft2build_h" = 'yes' || test "$have_freetype_h" = 'yes'; then
37945 passed=`expr $passed + 1`
37946 else
37947 failed=`expr $failed + 1`
37948 CPPFLAGS="$PERSIST_CPPFLAGS"
37949 fi
37950
37951 { $as_echo "$as_me:$LINENO: checking if FreeType package is complete" >&5
37952$as_echo_n "checking if FreeType package is complete... " >&6; }
37953 if test $passed -gt 0; then
37954 if test $failed -gt 0; then
37955 FREETYPE_LIBS=''
37956 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
37957$as_echo "no -- some components failed test" >&6; }
37958 have_freetype='no (failed tests)'
37959 else
37960 LIBS="$FREETYPE_LIBS $LIBS"
37961
37962cat >>confdefs.h <<\_ACEOF
37963#define FREETYPE_DELEGATE 1
37964_ACEOF
37965
37966 if test "$ac_cv_header_ft2build_h" = 'yes'; then
37967
37968cat >>confdefs.h <<\_ACEOF
37969#define HAVE_FT2BUILD_H 1
37970_ACEOF
37971
37972 fi
37973 { $as_echo "$as_me:$LINENO: result: yes" >&5
37974$as_echo "yes" >&6; }
37975 have_freetype='yes'
37976 fi
37977 else
37978 { $as_echo "$as_me:$LINENO: result: no" >&5
37979$as_echo "no" >&6; }
37980 fi
37981fi
37982 if test "$have_freetype" = 'yes'; then
37983 FREETYPE_DELEGATE_TRUE=
37984 FREETYPE_DELEGATE_FALSE='#'
37985else
37986 FREETYPE_DELEGATE_TRUE='#'
37987 FREETYPE_DELEGATE_FALSE=
37988fi
37989
37990
37991
37992
37993
37994#
37995# Check for Ghostscript library or framework.
37996#
37997# Test for iapi.h & test for gsapi_new_instance in -lgs
37998# or -framework Ghostscript
37999
38000
38001# Check whether --with-gslib was given.
38002if test "${with_gslib+set}" = set; then
38003 withval=$with_gslib; with_gslib=$withval
38004else
38005 with_gslib='no'
38006fi
38007
38008
38009if test "$with_gslib" != 'yes'; then
38010 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
38011fi
38012
38013have_gslib='no'
38014GS_LIBS=''
38015if test "$with_gslib" != 'no'; then
38016 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38017$as_echo "-------------------------------------------------------------" >&6; }
38018 { $as_echo "$as_me:$LINENO: checking for Ghostscript" >&5
38019$as_echo_n "checking for Ghostscript... " >&6; }
38020 { $as_echo "$as_me:$LINENO: result: " >&5
38021$as_echo "" >&6; }
38022 framework=0;
38023 failed=0
38024 passed=0
38025 if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then
38026 { $as_echo "$as_me:$LINENO: checking for ghostscript/iapi.h" >&5
38027$as_echo_n "checking for ghostscript/iapi.h... " >&6; }
38028if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then
38029 $as_echo_n "(cached) " >&6
38030fi
38031{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_iapi_h" >&5
38032$as_echo "$ac_cv_header_ghostscript_iapi_h" >&6; }
38033else
38034 # Is the header compilable?
38035{ $as_echo "$as_me:$LINENO: checking ghostscript/iapi.h usability" >&5
38036$as_echo_n "checking ghostscript/iapi.h usability... " >&6; }
38037cat >conftest.$ac_ext <<_ACEOF
38038/* confdefs.h. */
38039_ACEOF
38040cat confdefs.h >>conftest.$ac_ext
38041cat >>conftest.$ac_ext <<_ACEOF
38042/* end confdefs.h. */
38043$ac_includes_default
38044#include <ghostscript/iapi.h>
38045_ACEOF
38046rm -f conftest.$ac_objext
38047if { (ac_try="$ac_compile"
38048case "(($ac_try" in
38049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38050 *) ac_try_echo=$ac_try;;
38051esac
38052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38053$as_echo "$ac_try_echo") >&5
38054 (eval "$ac_compile") 2>conftest.er1
38055 ac_status=$?
38056 grep -v '^ *+' conftest.er1 >conftest.err
38057 rm -f conftest.er1
38058 cat conftest.err >&5
38059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38060 (exit $ac_status); } && {
38061 test -z "$ac_c_werror_flag" ||
38062 test ! -s conftest.err
38063 } && test -s conftest.$ac_objext; then
38064 ac_header_compiler=yes
38065else
38066 $as_echo "$as_me: failed program was:" >&5
38067sed 's/^/| /' conftest.$ac_ext >&5
38068
38069 ac_header_compiler=no
38070fi
38071
38072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38073{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38074$as_echo "$ac_header_compiler" >&6; }
38075
38076# Is the header present?
38077{ $as_echo "$as_me:$LINENO: checking ghostscript/iapi.h presence" >&5
38078$as_echo_n "checking ghostscript/iapi.h presence... " >&6; }
38079cat >conftest.$ac_ext <<_ACEOF
38080/* confdefs.h. */
38081_ACEOF
38082cat confdefs.h >>conftest.$ac_ext
38083cat >>conftest.$ac_ext <<_ACEOF
38084/* end confdefs.h. */
38085#include <ghostscript/iapi.h>
38086_ACEOF
38087if { (ac_try="$ac_cpp conftest.$ac_ext"
38088case "(($ac_try" in
38089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38090 *) ac_try_echo=$ac_try;;
38091esac
38092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38093$as_echo "$ac_try_echo") >&5
38094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38095 ac_status=$?
38096 grep -v '^ *+' conftest.er1 >conftest.err
38097 rm -f conftest.er1
38098 cat conftest.err >&5
38099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38100 (exit $ac_status); } >/dev/null && {
38101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38102 test ! -s conftest.err
38103 }; then
38104 ac_header_preproc=yes
38105else
38106 $as_echo "$as_me: failed program was:" >&5
38107sed 's/^/| /' conftest.$ac_ext >&5
38108
38109 ac_header_preproc=no
38110fi
38111
38112rm -f conftest.err conftest.$ac_ext
38113{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38114$as_echo "$ac_header_preproc" >&6; }
38115
38116# So? What about this header?
38117case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38118 yes:no: )
38119 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: accepted by the compiler, rejected by the preprocessor!" >&5
38120$as_echo "$as_me: WARNING: ghostscript/iapi.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38121 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: proceeding with the compiler's result" >&5
38122$as_echo "$as_me: WARNING: ghostscript/iapi.h: proceeding with the compiler's result" >&2;}
38123 ac_header_preproc=yes
38124 ;;
38125 no:yes:* )
38126 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: present but cannot be compiled" >&5
38127$as_echo "$as_me: WARNING: ghostscript/iapi.h: present but cannot be compiled" >&2;}
38128 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: check for missing prerequisite headers?" >&5
38129$as_echo "$as_me: WARNING: ghostscript/iapi.h: check for missing prerequisite headers?" >&2;}
38130 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: see the Autoconf documentation" >&5
38131$as_echo "$as_me: WARNING: ghostscript/iapi.h: see the Autoconf documentation" >&2;}
38132 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: section \"Present But Cannot Be Compiled\"" >&5
38133$as_echo "$as_me: WARNING: ghostscript/iapi.h: section \"Present But Cannot Be Compiled\"" >&2;}
38134 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: proceeding with the preprocessor's result" >&5
38135$as_echo "$as_me: WARNING: ghostscript/iapi.h: proceeding with the preprocessor's result" >&2;}
38136 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/iapi.h: in the future, the compiler will take precedence" >&5
38137$as_echo "$as_me: WARNING: ghostscript/iapi.h: in the future, the compiler will take precedence" >&2;}
38138 ( cat <<\_ASBOX
38139## ----------------------------------------- ##
38140## Report this to http://www.imagemagick.org ##
38141## ----------------------------------------- ##
38142_ASBOX
38143 ) | sed "s/^/$as_me: WARNING: /" >&2
38144 ;;
38145esac
38146{ $as_echo "$as_me:$LINENO: checking for ghostscript/iapi.h" >&5
38147$as_echo_n "checking for ghostscript/iapi.h... " >&6; }
38148if test "${ac_cv_header_ghostscript_iapi_h+set}" = set; then
38149 $as_echo_n "(cached) " >&6
38150else
38151 ac_cv_header_ghostscript_iapi_h=$ac_header_preproc
38152fi
38153{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_iapi_h" >&5
38154$as_echo "$ac_cv_header_ghostscript_iapi_h" >&6; }
38155
38156fi
38157if test "x$ac_cv_header_ghostscript_iapi_h" = x""yes; then
38158 passed=`expr $passed + 1`
38159else
38160 failed=`expr $failed + 1`
38161fi
38162
38163
38164 if test "${ac_cv_header_ghostscript_ierrors_h+set}" = set; then
38165 { $as_echo "$as_me:$LINENO: checking for ghostscript/ierrors.h" >&5
38166$as_echo_n "checking for ghostscript/ierrors.h... " >&6; }
38167if test "${ac_cv_header_ghostscript_ierrors_h+set}" = set; then
38168 $as_echo_n "(cached) " >&6
38169fi
38170{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_ierrors_h" >&5
38171$as_echo "$ac_cv_header_ghostscript_ierrors_h" >&6; }
38172else
38173 # Is the header compilable?
38174{ $as_echo "$as_me:$LINENO: checking ghostscript/ierrors.h usability" >&5
38175$as_echo_n "checking ghostscript/ierrors.h usability... " >&6; }
38176cat >conftest.$ac_ext <<_ACEOF
38177/* confdefs.h. */
38178_ACEOF
38179cat confdefs.h >>conftest.$ac_ext
38180cat >>conftest.$ac_ext <<_ACEOF
38181/* end confdefs.h. */
38182$ac_includes_default
38183#include <ghostscript/ierrors.h>
38184_ACEOF
38185rm -f conftest.$ac_objext
38186if { (ac_try="$ac_compile"
38187case "(($ac_try" in
38188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38189 *) ac_try_echo=$ac_try;;
38190esac
38191eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38192$as_echo "$ac_try_echo") >&5
38193 (eval "$ac_compile") 2>conftest.er1
38194 ac_status=$?
38195 grep -v '^ *+' conftest.er1 >conftest.err
38196 rm -f conftest.er1
38197 cat conftest.err >&5
38198 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38199 (exit $ac_status); } && {
38200 test -z "$ac_c_werror_flag" ||
38201 test ! -s conftest.err
38202 } && test -s conftest.$ac_objext; then
38203 ac_header_compiler=yes
38204else
38205 $as_echo "$as_me: failed program was:" >&5
38206sed 's/^/| /' conftest.$ac_ext >&5
38207
38208 ac_header_compiler=no
38209fi
38210
38211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38212{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38213$as_echo "$ac_header_compiler" >&6; }
38214
38215# Is the header present?
38216{ $as_echo "$as_me:$LINENO: checking ghostscript/ierrors.h presence" >&5
38217$as_echo_n "checking ghostscript/ierrors.h presence... " >&6; }
38218cat >conftest.$ac_ext <<_ACEOF
38219/* confdefs.h. */
38220_ACEOF
38221cat confdefs.h >>conftest.$ac_ext
38222cat >>conftest.$ac_ext <<_ACEOF
38223/* end confdefs.h. */
38224#include <ghostscript/ierrors.h>
38225_ACEOF
38226if { (ac_try="$ac_cpp conftest.$ac_ext"
38227case "(($ac_try" in
38228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38229 *) ac_try_echo=$ac_try;;
38230esac
38231eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38232$as_echo "$ac_try_echo") >&5
38233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38234 ac_status=$?
38235 grep -v '^ *+' conftest.er1 >conftest.err
38236 rm -f conftest.er1
38237 cat conftest.err >&5
38238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38239 (exit $ac_status); } >/dev/null && {
38240 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38241 test ! -s conftest.err
38242 }; then
38243 ac_header_preproc=yes
38244else
38245 $as_echo "$as_me: failed program was:" >&5
38246sed 's/^/| /' conftest.$ac_ext >&5
38247
38248 ac_header_preproc=no
38249fi
38250
38251rm -f conftest.err conftest.$ac_ext
38252{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38253$as_echo "$ac_header_preproc" >&6; }
38254
38255# So? What about this header?
38256case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38257 yes:no: )
38258 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: accepted by the compiler, rejected by the preprocessor!" >&5
38259$as_echo "$as_me: WARNING: ghostscript/ierrors.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38260 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: proceeding with the compiler's result" >&5
38261$as_echo "$as_me: WARNING: ghostscript/ierrors.h: proceeding with the compiler's result" >&2;}
38262 ac_header_preproc=yes
38263 ;;
38264 no:yes:* )
38265 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: present but cannot be compiled" >&5
38266$as_echo "$as_me: WARNING: ghostscript/ierrors.h: present but cannot be compiled" >&2;}
38267 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: check for missing prerequisite headers?" >&5
38268$as_echo "$as_me: WARNING: ghostscript/ierrors.h: check for missing prerequisite headers?" >&2;}
38269 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: see the Autoconf documentation" >&5
38270$as_echo "$as_me: WARNING: ghostscript/ierrors.h: see the Autoconf documentation" >&2;}
38271 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: section \"Present But Cannot Be Compiled\"" >&5
38272$as_echo "$as_me: WARNING: ghostscript/ierrors.h: section \"Present But Cannot Be Compiled\"" >&2;}
38273 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: proceeding with the preprocessor's result" >&5
38274$as_echo "$as_me: WARNING: ghostscript/ierrors.h: proceeding with the preprocessor's result" >&2;}
38275 { $as_echo "$as_me:$LINENO: WARNING: ghostscript/ierrors.h: in the future, the compiler will take precedence" >&5
38276$as_echo "$as_me: WARNING: ghostscript/ierrors.h: in the future, the compiler will take precedence" >&2;}
38277 ( cat <<\_ASBOX
38278## ----------------------------------------- ##
38279## Report this to http://www.imagemagick.org ##
38280## ----------------------------------------- ##
38281_ASBOX
38282 ) | sed "s/^/$as_me: WARNING: /" >&2
38283 ;;
38284esac
38285{ $as_echo "$as_me:$LINENO: checking for ghostscript/ierrors.h" >&5
38286$as_echo_n "checking for ghostscript/ierrors.h... " >&6; }
38287if test "${ac_cv_header_ghostscript_ierrors_h+set}" = set; then
38288 $as_echo_n "(cached) " >&6
38289else
38290 ac_cv_header_ghostscript_ierrors_h=$ac_header_preproc
38291fi
38292{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_ghostscript_ierrors_h" >&5
38293$as_echo "$ac_cv_header_ghostscript_ierrors_h" >&6; }
38294
38295fi
38296if test "x$ac_cv_header_ghostscript_ierrors_h" = x""yes; then
38297 passed=`expr $passed + 1`
38298else
38299 failed=`expr $failed + 1`
38300fi
38301
38302
38303 { $as_echo "$as_me:$LINENO: checking for gsapi_new_instance in Ghostscript framework" >&5
38304$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
38305if test "${ac_cv_framework_Ghostscript_gsapi_new_instance+set}" = set; then
38306 $as_echo_n "(cached) " >&6
38307else
38308 ac_check_framework_save_LIBS=$LIBS
38309LIBS="-framework Ghostscript $LIBS"
38310cat >conftest.$ac_ext <<_ACEOF
38311/* confdefs.h. */
38312_ACEOF
38313cat confdefs.h >>conftest.$ac_ext
38314cat >>conftest.$ac_ext <<_ACEOF
38315/* end confdefs.h. */
38316
38317/* Override any GCC internal prototype to avoid an error.
38318 Use char because int might match the return type of a GCC
38319 builtin and then its argument prototype would still apply. */
38320#ifdef __cplusplus
38321extern "C"
38322#endif
38323char gsapi_new_instance ();
38324int
38325main ()
38326{
38327return gsapi_new_instance ();
38328 ;
38329 return 0;
38330}
38331_ACEOF
38332rm -f conftest.$ac_objext conftest$ac_exeext
38333if { (ac_try="$ac_link"
38334case "(($ac_try" in
38335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38336 *) ac_try_echo=$ac_try;;
38337esac
38338eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38339$as_echo "$ac_try_echo") >&5
38340 (eval "$ac_link") 2>conftest.er1
38341 ac_status=$?
38342 grep -v '^ *+' conftest.er1 >conftest.err
38343 rm -f conftest.er1
38344 cat conftest.err >&5
38345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38346 (exit $ac_status); } && {
38347 test -z "$ac_c_werror_flag" ||
38348 test ! -s conftest.err
38349 } && test -s conftest$ac_exeext && {
38350 test "$cross_compiling" = yes ||
38351 $as_test_x conftest$ac_exeext
38352 }; then
38353 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
38354else
38355 $as_echo "$as_me: failed program was:" >&5
38356sed 's/^/| /' conftest.$ac_ext >&5
38357
38358 ac_cv_framework_Ghostscript_gsapi_new_instance=no
38359fi
38360
38361rm -rf conftest.dSYM
38362rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38363 conftest$ac_exeext conftest.$ac_ext
38364LIBS=$ac_check_framework_save_LIBS
38365fi
38366{ $as_echo "$as_me:$LINENO: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
38367$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
38368if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then
38369 framework=`expr $framework + 1`
38370else
38371 { $as_echo "$as_me:$LINENO: checking for gsapi_new_instance in -lgs" >&5
38372$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
38373if test "${ac_cv_lib_gs_gsapi_new_instance+set}" = set; then
38374 $as_echo_n "(cached) " >&6
38375else
38376 ac_check_lib_save_LIBS=$LIBS
38377LIBS="-lgs $LIBS"
38378cat >conftest.$ac_ext <<_ACEOF
38379/* confdefs.h. */
38380_ACEOF
38381cat confdefs.h >>conftest.$ac_ext
38382cat >>conftest.$ac_ext <<_ACEOF
38383/* end confdefs.h. */
38384
38385/* Override any GCC internal prototype to avoid an error.
38386 Use char because int might match the return type of a GCC
38387 builtin and then its argument prototype would still apply. */
38388#ifdef __cplusplus
38389extern "C"
38390#endif
38391char gsapi_new_instance ();
38392int
38393main ()
38394{
38395return gsapi_new_instance ();
38396 ;
38397 return 0;
38398}
38399_ACEOF
38400rm -f conftest.$ac_objext conftest$ac_exeext
38401if { (ac_try="$ac_link"
38402case "(($ac_try" in
38403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38404 *) ac_try_echo=$ac_try;;
38405esac
38406eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38407$as_echo "$ac_try_echo") >&5
38408 (eval "$ac_link") 2>conftest.er1
38409 ac_status=$?
38410 grep -v '^ *+' conftest.er1 >conftest.err
38411 rm -f conftest.er1
38412 cat conftest.err >&5
38413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38414 (exit $ac_status); } && {
38415 test -z "$ac_c_werror_flag" ||
38416 test ! -s conftest.err
38417 } && test -s conftest$ac_exeext && {
38418 test "$cross_compiling" = yes ||
38419 $as_test_x conftest$ac_exeext
38420 }; then
38421 ac_cv_lib_gs_gsapi_new_instance=yes
38422else
38423 $as_echo "$as_me: failed program was:" >&5
38424sed 's/^/| /' conftest.$ac_ext >&5
38425
38426 ac_cv_lib_gs_gsapi_new_instance=no
38427fi
38428
38429rm -rf conftest.dSYM
38430rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38431 conftest$ac_exeext conftest.$ac_ext
38432LIBS=$ac_check_lib_save_LIBS
38433fi
38434{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
38435$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
38436if test "x$ac_cv_lib_gs_gsapi_new_instance" = x""yes; then
38437 passed=`expr $passed + 1`
38438else
38439 failed=`expr $failed + 1`
38440fi
38441
38442fi
38443
38444 { $as_echo "$as_me:$LINENO: checking if Ghostscript package is complete" >&5
38445$as_echo_n "checking if Ghostscript package is complete... " >&6; }
38446 if test $passed -gt 0; then
38447 if test $failed -gt 0; then
38448 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
38449$as_echo "no -- some components failed test" >&6; }
38450 have_gslib='no (failed tests)'
38451 else
38452 if test $framework -gt 0; then
38453 GS_LIBS='-framework Ghostscript'
38454 { $as_echo "$as_me:$LINENO: result: yes, using framework." >&5
38455$as_echo "yes, using framework." >&6; }
38456 else
38457 { $as_echo "$as_me:$LINENO: result: yes, using library." >&5
38458$as_echo "yes, using library." >&6; }
38459 GS_LIBS='-lgs'
38460 fi
38461 LIBS="$GS_LIBS $LIBS"
38462
38463cat >>confdefs.h <<\_ACEOF
38464#define GS_DELEGATE 1
38465_ACEOF
38466
38467 have_gslib='yes'
38468 fi
38469 else
38470 { $as_echo "$as_me:$LINENO: result: no" >&5
38471$as_echo "no" >&6; }
38472 fi
38473fi
38474 if test "$have_gslib" = 'yes'; then
38475 GS_DELEGATE_TRUE=
38476 GS_DELEGATE_FALSE='#'
38477else
38478 GS_DELEGATE_TRUE='#'
38479 GS_DELEGATE_FALSE=
38480fi
38481
38482
38483
38484# Set default font search path
38485
38486# Check whether --with-fontpath was given.
38487if test "${with_fontpath+set}" = set; then
38488 withval=$with_fontpath; with_fontpath=$withval
38489else
38490 with_fontpath=''
38491fi
38492
38493
38494if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
38495 with_fontpath=''
38496else
38497
38498cat >>confdefs.h <<_ACEOF
38499#define MAGICK_FONT_PATH "$with_fontpath"
38500_ACEOF
38501
38502fi
38503if test "$with_fontpath=" != ''; then
38504 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
38505fi
38506
38507# Set Ghostscript font directory
38508
38509# Check whether --with-gs-font-dir was given.
38510if test "${with_gs_font_dir+set}" = set; then
38511 withval=$with_gs_font_dir; with_gs_font_dir=$withval
38512else
38513 with_gs_font_dir='default'
38514fi
38515
38516
38517if test "$with_gs_font_dir" != 'default'; then
38518 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
38519fi
38520
38521
38522#
38523# Check for GVC delegate library.
38524#
38525
38526# Check whether --with-gvc was given.
38527if test "${with_gvc+set}" = set; then
38528 withval=$with_gvc; with_gvc=$withval
38529else
38530 with_gvc='yes'
38531fi
38532
38533
38534if test "$with_gvc" != 'yes'; then
38535 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
38536fi
38537
38538GVC_PKG=""
38539if test "x$with_gvc" = "xyes"; then
38540 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38541$as_echo "-------------------------------------------------------------" >&6; }
38542
38543pkg_failed=no
38544{ $as_echo "$as_me:$LINENO: checking for GVC" >&5
38545$as_echo_n "checking for GVC... " >&6; }
38546
38547if test -n "$GVC_CFLAGS"; then
38548 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
38549 elif test -n "$PKG_CONFIG"; then
38550 if test -n "$PKG_CONFIG" && \
38551 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\"") >&5
38552 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
38553 ac_status=$?
38554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38555 (exit $ac_status); }; then
38556 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
38557else
38558 pkg_failed=yes
38559fi
38560 else
38561 pkg_failed=untried
38562fi
38563if test -n "$GVC_LIBS"; then
38564 pkg_cv_GVC_LIBS="$GVC_LIBS"
38565 elif test -n "$PKG_CONFIG"; then
38566 if test -n "$PKG_CONFIG" && \
38567 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\"") >&5
38568 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
38569 ac_status=$?
38570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38571 (exit $ac_status); }; then
38572 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
38573else
38574 pkg_failed=yes
38575fi
38576 else
38577 pkg_failed=untried
38578fi
38579
38580
38581
38582if test $pkg_failed = yes; then
38583
38584if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
38585 _pkg_short_errors_supported=yes
38586else
38587 _pkg_short_errors_supported=no
38588fi
38589 if test $_pkg_short_errors_supported = yes; then
38590 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
38591 else
38592 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
38593 fi
38594 # Put the nasty error message in config.log where it belongs
38595 echo "$GVC_PKG_ERRORS" >&5
38596
38597 { $as_echo "$as_me:$LINENO: result: no" >&5
38598$as_echo "no" >&6; }
38599 have_gvc=no
38600elif test $pkg_failed = untried; then
38601 have_gvc=no
38602else
38603 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
38604 GVC_LIBS=$pkg_cv_GVC_LIBS
38605 { $as_echo "$as_me:$LINENO: result: yes" >&5
38606$as_echo "yes" >&6; }
38607 have_gvc=yes
38608fi
38609 { $as_echo "$as_me:$LINENO: result: " >&5
38610$as_echo "" >&6; }
38611fi
38612
38613if test "$have_gvc" = 'yes'; then
38614
38615cat >>confdefs.h <<\_ACEOF
38616#define GVC_DELEGATE 1
38617_ACEOF
38618
38619 if test "$with_modules" = 'no'; then
38620 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
38621 fi
38622fi
38623
38624 if test "$have_gvc" = 'yes'; then
38625 GVC_DELEGATE_TRUE=
38626 GVC_DELEGATE_FALSE='#'
38627else
38628 GVC_DELEGATE_TRUE='#'
38629 GVC_DELEGATE_FALSE=
38630fi
38631
38632
38633
38634
38635
38636#
38637# Check for JBIG delegate library.
38638#
38639
38640
38641# Check whether --with-jbig was given.
38642if test "${with_jbig+set}" = set; then
38643 withval=$with_jbig; with_jbig=$withval
38644else
38645 with_jbig='yes'
38646fi
38647
38648
38649have_jbig='no'
38650JBIG_LIBS=''
38651if test "$with_jbig" != 'no'; then
38652 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38653$as_echo "-------------------------------------------------------------" >&6; }
38654 { $as_echo "$as_me:$LINENO: checking for JBIG" >&5
38655$as_echo_n "checking for JBIG... " >&6; }
38656 { $as_echo "$as_me:$LINENO: result: " >&5
38657$as_echo "" >&6; }
38658 failed=0
38659 passed=0
38660 if test "${ac_cv_header_jbig_h+set}" = set; then
38661 { $as_echo "$as_me:$LINENO: checking for jbig.h" >&5
38662$as_echo_n "checking for jbig.h... " >&6; }
38663if test "${ac_cv_header_jbig_h+set}" = set; then
38664 $as_echo_n "(cached) " >&6
38665fi
38666{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jbig_h" >&5
38667$as_echo "$ac_cv_header_jbig_h" >&6; }
38668else
38669 # Is the header compilable?
38670{ $as_echo "$as_me:$LINENO: checking jbig.h usability" >&5
38671$as_echo_n "checking jbig.h usability... " >&6; }
38672cat >conftest.$ac_ext <<_ACEOF
38673/* confdefs.h. */
38674_ACEOF
38675cat confdefs.h >>conftest.$ac_ext
38676cat >>conftest.$ac_ext <<_ACEOF
38677/* end confdefs.h. */
38678$ac_includes_default
38679#include <jbig.h>
38680_ACEOF
38681rm -f conftest.$ac_objext
38682if { (ac_try="$ac_compile"
38683case "(($ac_try" in
38684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38685 *) ac_try_echo=$ac_try;;
38686esac
38687eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38688$as_echo "$ac_try_echo") >&5
38689 (eval "$ac_compile") 2>conftest.er1
38690 ac_status=$?
38691 grep -v '^ *+' conftest.er1 >conftest.err
38692 rm -f conftest.er1
38693 cat conftest.err >&5
38694 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38695 (exit $ac_status); } && {
38696 test -z "$ac_c_werror_flag" ||
38697 test ! -s conftest.err
38698 } && test -s conftest.$ac_objext; then
38699 ac_header_compiler=yes
38700else
38701 $as_echo "$as_me: failed program was:" >&5
38702sed 's/^/| /' conftest.$ac_ext >&5
38703
38704 ac_header_compiler=no
38705fi
38706
38707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38708{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38709$as_echo "$ac_header_compiler" >&6; }
38710
38711# Is the header present?
38712{ $as_echo "$as_me:$LINENO: checking jbig.h presence" >&5
38713$as_echo_n "checking jbig.h presence... " >&6; }
38714cat >conftest.$ac_ext <<_ACEOF
38715/* confdefs.h. */
38716_ACEOF
38717cat confdefs.h >>conftest.$ac_ext
38718cat >>conftest.$ac_ext <<_ACEOF
38719/* end confdefs.h. */
38720#include <jbig.h>
38721_ACEOF
38722if { (ac_try="$ac_cpp conftest.$ac_ext"
38723case "(($ac_try" in
38724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38725 *) ac_try_echo=$ac_try;;
38726esac
38727eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38728$as_echo "$ac_try_echo") >&5
38729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38730 ac_status=$?
38731 grep -v '^ *+' conftest.er1 >conftest.err
38732 rm -f conftest.er1
38733 cat conftest.err >&5
38734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38735 (exit $ac_status); } >/dev/null && {
38736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38737 test ! -s conftest.err
38738 }; then
38739 ac_header_preproc=yes
38740else
38741 $as_echo "$as_me: failed program was:" >&5
38742sed 's/^/| /' conftest.$ac_ext >&5
38743
38744 ac_header_preproc=no
38745fi
38746
38747rm -f conftest.err conftest.$ac_ext
38748{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38749$as_echo "$ac_header_preproc" >&6; }
38750
38751# So? What about this header?
38752case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38753 yes:no: )
38754 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: accepted by the compiler, rejected by the preprocessor!" >&5
38755$as_echo "$as_me: WARNING: jbig.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
38756 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: proceeding with the compiler's result" >&5
38757$as_echo "$as_me: WARNING: jbig.h: proceeding with the compiler's result" >&2;}
38758 ac_header_preproc=yes
38759 ;;
38760 no:yes:* )
38761 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: present but cannot be compiled" >&5
38762$as_echo "$as_me: WARNING: jbig.h: present but cannot be compiled" >&2;}
38763 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: check for missing prerequisite headers?" >&5
38764$as_echo "$as_me: WARNING: jbig.h: check for missing prerequisite headers?" >&2;}
38765 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: see the Autoconf documentation" >&5
38766$as_echo "$as_me: WARNING: jbig.h: see the Autoconf documentation" >&2;}
38767 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: section \"Present But Cannot Be Compiled\"" >&5
38768$as_echo "$as_me: WARNING: jbig.h: section \"Present But Cannot Be Compiled\"" >&2;}
38769 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: proceeding with the preprocessor's result" >&5
38770$as_echo "$as_me: WARNING: jbig.h: proceeding with the preprocessor's result" >&2;}
38771 { $as_echo "$as_me:$LINENO: WARNING: jbig.h: in the future, the compiler will take precedence" >&5
38772$as_echo "$as_me: WARNING: jbig.h: in the future, the compiler will take precedence" >&2;}
38773 ( cat <<\_ASBOX
38774## ----------------------------------------- ##
38775## Report this to http://www.imagemagick.org ##
38776## ----------------------------------------- ##
38777_ASBOX
38778 ) | sed "s/^/$as_me: WARNING: /" >&2
38779 ;;
38780esac
38781{ $as_echo "$as_me:$LINENO: checking for jbig.h" >&5
38782$as_echo_n "checking for jbig.h... " >&6; }
38783if test "${ac_cv_header_jbig_h+set}" = set; then
38784 $as_echo_n "(cached) " >&6
38785else
38786 ac_cv_header_jbig_h=$ac_header_preproc
38787fi
38788{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jbig_h" >&5
38789$as_echo "$ac_cv_header_jbig_h" >&6; }
38790
38791fi
38792if test "x$ac_cv_header_jbig_h" = x""yes; then
38793 passed=`expr $passed + 1`
38794else
38795 failed=`expr $failed + 1`
38796fi
38797
38798
38799 { $as_echo "$as_me:$LINENO: checking for jbg_dec_init in -ljbig" >&5
38800$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
38801if test "${ac_cv_lib_jbig_jbg_dec_init+set}" = set; then
38802 $as_echo_n "(cached) " >&6
38803else
38804 ac_check_lib_save_LIBS=$LIBS
38805LIBS="-ljbig $LIBS"
38806cat >conftest.$ac_ext <<_ACEOF
38807/* confdefs.h. */
38808_ACEOF
38809cat confdefs.h >>conftest.$ac_ext
38810cat >>conftest.$ac_ext <<_ACEOF
38811/* end confdefs.h. */
38812
38813/* Override any GCC internal prototype to avoid an error.
38814 Use char because int might match the return type of a GCC
38815 builtin and then its argument prototype would still apply. */
38816#ifdef __cplusplus
38817extern "C"
38818#endif
38819char jbg_dec_init ();
38820int
38821main ()
38822{
38823return jbg_dec_init ();
38824 ;
38825 return 0;
38826}
38827_ACEOF
38828rm -f conftest.$ac_objext conftest$ac_exeext
38829if { (ac_try="$ac_link"
38830case "(($ac_try" in
38831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38832 *) ac_try_echo=$ac_try;;
38833esac
38834eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38835$as_echo "$ac_try_echo") >&5
38836 (eval "$ac_link") 2>conftest.er1
38837 ac_status=$?
38838 grep -v '^ *+' conftest.er1 >conftest.err
38839 rm -f conftest.er1
38840 cat conftest.err >&5
38841 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38842 (exit $ac_status); } && {
38843 test -z "$ac_c_werror_flag" ||
38844 test ! -s conftest.err
38845 } && test -s conftest$ac_exeext && {
38846 test "$cross_compiling" = yes ||
38847 $as_test_x conftest$ac_exeext
38848 }; then
38849 ac_cv_lib_jbig_jbg_dec_init=yes
38850else
38851 $as_echo "$as_me: failed program was:" >&5
38852sed 's/^/| /' conftest.$ac_ext >&5
38853
38854 ac_cv_lib_jbig_jbg_dec_init=no
38855fi
38856
38857rm -rf conftest.dSYM
38858rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38859 conftest$ac_exeext conftest.$ac_ext
38860LIBS=$ac_check_lib_save_LIBS
38861fi
38862{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
38863$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
38864if test "x$ac_cv_lib_jbig_jbg_dec_init" = x""yes; then
38865 passed=`expr $passed + 1`
38866else
38867 failed=`expr $failed + 1`
38868fi
38869
38870 { $as_echo "$as_me:$LINENO: checking if JBIG package is complete" >&5
38871$as_echo_n "checking if JBIG package is complete... " >&6; }
38872 if test $passed -gt 0; then
38873 if test $failed -gt 0; then
38874 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
38875$as_echo "no -- some components failed test" >&6; }
38876 have_jbig='no (failed tests)'
38877 else
38878 JBIG_LIBS='-ljbig'
38879 LIBS="$JBIG_LIBS $LIBS"
38880
38881cat >>confdefs.h <<\_ACEOF
38882#define JBIG_DELEGATE 1
38883_ACEOF
38884
38885 { $as_echo "$as_me:$LINENO: result: yes" >&5
38886$as_echo "yes" >&6; }
38887 have_jbig='yes'
38888 fi
38889 else
38890 { $as_echo "$as_me:$LINENO: result: no" >&5
38891$as_echo "no" >&6; }
38892 fi
38893fi
38894 if test "$have_jbig" = 'yes'; then
38895 JBIG_DELEGATE_TRUE=
38896 JBIG_DELEGATE_FALSE='#'
38897else
38898 JBIG_DELEGATE_TRUE='#'
38899 JBIG_DELEGATE_FALSE=
38900fi
38901
38902
38903
38904
38905#
38906# Check for JPEG delegate library.
38907#
38908
38909# Check whether --with-jpeg was given.
38910if test "${with_jpeg+set}" = set; then
38911 withval=$with_jpeg; with_jpeg=$withval
38912else
38913 with_jpeg='yes'
38914fi
38915
38916
38917if test "$with_jpeg" != 'yes'; then
38918 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
38919fi
38920
38921have_jpeg='no'
38922JPEG_LIBS=''
38923if test "$with_jpeg" != 'no'; then
38924 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
38925$as_echo "-------------------------------------------------------------" >&6; }
38926 { $as_echo "$as_me:$LINENO: checking for JPEG" >&5
38927$as_echo_n "checking for JPEG... " >&6; }
38928 { $as_echo "$as_me:$LINENO: result: " >&5
38929$as_echo "" >&6; }
38930 failed=0
38931 passed=0
38932 if test "${ac_cv_header_jconfig_h+set}" = set; then
38933 { $as_echo "$as_me:$LINENO: checking for jconfig.h" >&5
38934$as_echo_n "checking for jconfig.h... " >&6; }
38935if test "${ac_cv_header_jconfig_h+set}" = set; then
38936 $as_echo_n "(cached) " >&6
38937fi
38938{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jconfig_h" >&5
38939$as_echo "$ac_cv_header_jconfig_h" >&6; }
38940else
38941 # Is the header compilable?
38942{ $as_echo "$as_me:$LINENO: checking jconfig.h usability" >&5
38943$as_echo_n "checking jconfig.h usability... " >&6; }
38944cat >conftest.$ac_ext <<_ACEOF
38945/* confdefs.h. */
38946_ACEOF
38947cat confdefs.h >>conftest.$ac_ext
38948cat >>conftest.$ac_ext <<_ACEOF
38949/* end confdefs.h. */
38950$ac_includes_default
38951#include <jconfig.h>
38952_ACEOF
38953rm -f conftest.$ac_objext
38954if { (ac_try="$ac_compile"
38955case "(($ac_try" in
38956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38957 *) ac_try_echo=$ac_try;;
38958esac
38959eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38960$as_echo "$ac_try_echo") >&5
38961 (eval "$ac_compile") 2>conftest.er1
38962 ac_status=$?
38963 grep -v '^ *+' conftest.er1 >conftest.err
38964 rm -f conftest.er1
38965 cat conftest.err >&5
38966 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38967 (exit $ac_status); } && {
38968 test -z "$ac_c_werror_flag" ||
38969 test ! -s conftest.err
38970 } && test -s conftest.$ac_objext; then
38971 ac_header_compiler=yes
38972else
38973 $as_echo "$as_me: failed program was:" >&5
38974sed 's/^/| /' conftest.$ac_ext >&5
38975
38976 ac_header_compiler=no
38977fi
38978
38979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38980{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38981$as_echo "$ac_header_compiler" >&6; }
38982
38983# Is the header present?
38984{ $as_echo "$as_me:$LINENO: checking jconfig.h presence" >&5
38985$as_echo_n "checking jconfig.h presence... " >&6; }
38986cat >conftest.$ac_ext <<_ACEOF
38987/* confdefs.h. */
38988_ACEOF
38989cat confdefs.h >>conftest.$ac_ext
38990cat >>conftest.$ac_ext <<_ACEOF
38991/* end confdefs.h. */
38992#include <jconfig.h>
38993_ACEOF
38994if { (ac_try="$ac_cpp conftest.$ac_ext"
38995case "(($ac_try" in
38996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38997 *) ac_try_echo=$ac_try;;
38998esac
38999eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39000$as_echo "$ac_try_echo") >&5
39001 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39002 ac_status=$?
39003 grep -v '^ *+' conftest.er1 >conftest.err
39004 rm -f conftest.er1
39005 cat conftest.err >&5
39006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39007 (exit $ac_status); } >/dev/null && {
39008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39009 test ! -s conftest.err
39010 }; then
39011 ac_header_preproc=yes
39012else
39013 $as_echo "$as_me: failed program was:" >&5
39014sed 's/^/| /' conftest.$ac_ext >&5
39015
39016 ac_header_preproc=no
39017fi
39018
39019rm -f conftest.err conftest.$ac_ext
39020{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39021$as_echo "$ac_header_preproc" >&6; }
39022
39023# So? What about this header?
39024case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39025 yes:no: )
39026 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5
39027$as_echo "$as_me: WARNING: jconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39028 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: proceeding with the compiler's result" >&5
39029$as_echo "$as_me: WARNING: jconfig.h: proceeding with the compiler's result" >&2;}
39030 ac_header_preproc=yes
39031 ;;
39032 no:yes:* )
39033 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: present but cannot be compiled" >&5
39034$as_echo "$as_me: WARNING: jconfig.h: present but cannot be compiled" >&2;}
39035 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: check for missing prerequisite headers?" >&5
39036$as_echo "$as_me: WARNING: jconfig.h: check for missing prerequisite headers?" >&2;}
39037 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: see the Autoconf documentation" >&5
39038$as_echo "$as_me: WARNING: jconfig.h: see the Autoconf documentation" >&2;}
39039 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: section \"Present But Cannot Be Compiled\"" >&5
39040$as_echo "$as_me: WARNING: jconfig.h: section \"Present But Cannot Be Compiled\"" >&2;}
39041 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: proceeding with the preprocessor's result" >&5
39042$as_echo "$as_me: WARNING: jconfig.h: proceeding with the preprocessor's result" >&2;}
39043 { $as_echo "$as_me:$LINENO: WARNING: jconfig.h: in the future, the compiler will take precedence" >&5
39044$as_echo "$as_me: WARNING: jconfig.h: in the future, the compiler will take precedence" >&2;}
39045 ( cat <<\_ASBOX
39046## ----------------------------------------- ##
39047## Report this to http://www.imagemagick.org ##
39048## ----------------------------------------- ##
39049_ASBOX
39050 ) | sed "s/^/$as_me: WARNING: /" >&2
39051 ;;
39052esac
39053{ $as_echo "$as_me:$LINENO: checking for jconfig.h" >&5
39054$as_echo_n "checking for jconfig.h... " >&6; }
39055if test "${ac_cv_header_jconfig_h+set}" = set; then
39056 $as_echo_n "(cached) " >&6
39057else
39058 ac_cv_header_jconfig_h=$ac_header_preproc
39059fi
39060{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jconfig_h" >&5
39061$as_echo "$ac_cv_header_jconfig_h" >&6; }
39062
39063fi
39064if test "x$ac_cv_header_jconfig_h" = x""yes; then
39065 passed=`expr $passed + 1`
39066else
39067 failed=`expr $failed + 1`
39068fi
39069
39070
39071 if test "${ac_cv_header_jerror_h+set}" = set; then
39072 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
39073$as_echo_n "checking for jerror.h... " >&6; }
39074if test "${ac_cv_header_jerror_h+set}" = set; then
39075 $as_echo_n "(cached) " >&6
39076fi
39077{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
39078$as_echo "$ac_cv_header_jerror_h" >&6; }
39079else
39080 # Is the header compilable?
39081{ $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
39082$as_echo_n "checking jerror.h usability... " >&6; }
39083cat >conftest.$ac_ext <<_ACEOF
39084/* confdefs.h. */
39085_ACEOF
39086cat confdefs.h >>conftest.$ac_ext
39087cat >>conftest.$ac_ext <<_ACEOF
39088/* end confdefs.h. */
39089$ac_includes_default
39090#include <jerror.h>
39091_ACEOF
39092rm -f conftest.$ac_objext
39093if { (ac_try="$ac_compile"
39094case "(($ac_try" in
39095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39096 *) ac_try_echo=$ac_try;;
39097esac
39098eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39099$as_echo "$ac_try_echo") >&5
39100 (eval "$ac_compile") 2>conftest.er1
39101 ac_status=$?
39102 grep -v '^ *+' conftest.er1 >conftest.err
39103 rm -f conftest.er1
39104 cat conftest.err >&5
39105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39106 (exit $ac_status); } && {
39107 test -z "$ac_c_werror_flag" ||
39108 test ! -s conftest.err
39109 } && test -s conftest.$ac_objext; then
39110 ac_header_compiler=yes
39111else
39112 $as_echo "$as_me: failed program was:" >&5
39113sed 's/^/| /' conftest.$ac_ext >&5
39114
39115 ac_header_compiler=no
39116fi
39117
39118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39119{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39120$as_echo "$ac_header_compiler" >&6; }
39121
39122# Is the header present?
39123{ $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
39124$as_echo_n "checking jerror.h presence... " >&6; }
39125cat >conftest.$ac_ext <<_ACEOF
39126/* confdefs.h. */
39127_ACEOF
39128cat confdefs.h >>conftest.$ac_ext
39129cat >>conftest.$ac_ext <<_ACEOF
39130/* end confdefs.h. */
39131#include <jerror.h>
39132_ACEOF
39133if { (ac_try="$ac_cpp conftest.$ac_ext"
39134case "(($ac_try" in
39135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39136 *) ac_try_echo=$ac_try;;
39137esac
39138eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39139$as_echo "$ac_try_echo") >&5
39140 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39141 ac_status=$?
39142 grep -v '^ *+' conftest.er1 >conftest.err
39143 rm -f conftest.er1
39144 cat conftest.err >&5
39145 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39146 (exit $ac_status); } >/dev/null && {
39147 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39148 test ! -s conftest.err
39149 }; then
39150 ac_header_preproc=yes
39151else
39152 $as_echo "$as_me: failed program was:" >&5
39153sed 's/^/| /' conftest.$ac_ext >&5
39154
39155 ac_header_preproc=no
39156fi
39157
39158rm -f conftest.err conftest.$ac_ext
39159{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39160$as_echo "$ac_header_preproc" >&6; }
39161
39162# So? What about this header?
39163case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39164 yes:no: )
39165 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
39166$as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39167 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
39168$as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
39169 ac_header_preproc=yes
39170 ;;
39171 no:yes:* )
39172 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
39173$as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
39174 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
39175$as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
39176 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
39177$as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
39178 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
39179$as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
39180 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
39181$as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
39182 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
39183$as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
39184 ( cat <<\_ASBOX
39185## ----------------------------------------- ##
39186## Report this to http://www.imagemagick.org ##
39187## ----------------------------------------- ##
39188_ASBOX
39189 ) | sed "s/^/$as_me: WARNING: /" >&2
39190 ;;
39191esac
39192{ $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
39193$as_echo_n "checking for jerror.h... " >&6; }
39194if test "${ac_cv_header_jerror_h+set}" = set; then
39195 $as_echo_n "(cached) " >&6
39196else
39197 ac_cv_header_jerror_h=$ac_header_preproc
39198fi
39199{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
39200$as_echo "$ac_cv_header_jerror_h" >&6; }
39201
39202fi
39203if test "x$ac_cv_header_jerror_h" = x""yes; then
39204 passed=`expr $passed + 1`
39205else
39206 failed=`expr $failed + 1`
39207fi
39208
39209
39210 if test "${ac_cv_header_jmorecfg_h+set}" = set; then
39211 { $as_echo "$as_me:$LINENO: checking for jmorecfg.h" >&5
39212$as_echo_n "checking for jmorecfg.h... " >&6; }
39213if test "${ac_cv_header_jmorecfg_h+set}" = set; then
39214 $as_echo_n "(cached) " >&6
39215fi
39216{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jmorecfg_h" >&5
39217$as_echo "$ac_cv_header_jmorecfg_h" >&6; }
39218else
39219 # Is the header compilable?
39220{ $as_echo "$as_me:$LINENO: checking jmorecfg.h usability" >&5
39221$as_echo_n "checking jmorecfg.h usability... " >&6; }
39222cat >conftest.$ac_ext <<_ACEOF
39223/* confdefs.h. */
39224_ACEOF
39225cat confdefs.h >>conftest.$ac_ext
39226cat >>conftest.$ac_ext <<_ACEOF
39227/* end confdefs.h. */
39228$ac_includes_default
39229#include <jmorecfg.h>
39230_ACEOF
39231rm -f conftest.$ac_objext
39232if { (ac_try="$ac_compile"
39233case "(($ac_try" in
39234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39235 *) ac_try_echo=$ac_try;;
39236esac
39237eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39238$as_echo "$ac_try_echo") >&5
39239 (eval "$ac_compile") 2>conftest.er1
39240 ac_status=$?
39241 grep -v '^ *+' conftest.er1 >conftest.err
39242 rm -f conftest.er1
39243 cat conftest.err >&5
39244 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39245 (exit $ac_status); } && {
39246 test -z "$ac_c_werror_flag" ||
39247 test ! -s conftest.err
39248 } && test -s conftest.$ac_objext; then
39249 ac_header_compiler=yes
39250else
39251 $as_echo "$as_me: failed program was:" >&5
39252sed 's/^/| /' conftest.$ac_ext >&5
39253
39254 ac_header_compiler=no
39255fi
39256
39257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39258{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39259$as_echo "$ac_header_compiler" >&6; }
39260
39261# Is the header present?
39262{ $as_echo "$as_me:$LINENO: checking jmorecfg.h presence" >&5
39263$as_echo_n "checking jmorecfg.h presence... " >&6; }
39264cat >conftest.$ac_ext <<_ACEOF
39265/* confdefs.h. */
39266_ACEOF
39267cat confdefs.h >>conftest.$ac_ext
39268cat >>conftest.$ac_ext <<_ACEOF
39269/* end confdefs.h. */
39270#include <jmorecfg.h>
39271_ACEOF
39272if { (ac_try="$ac_cpp conftest.$ac_ext"
39273case "(($ac_try" in
39274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39275 *) ac_try_echo=$ac_try;;
39276esac
39277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39278$as_echo "$ac_try_echo") >&5
39279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39280 ac_status=$?
39281 grep -v '^ *+' conftest.er1 >conftest.err
39282 rm -f conftest.er1
39283 cat conftest.err >&5
39284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39285 (exit $ac_status); } >/dev/null && {
39286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39287 test ! -s conftest.err
39288 }; then
39289 ac_header_preproc=yes
39290else
39291 $as_echo "$as_me: failed program was:" >&5
39292sed 's/^/| /' conftest.$ac_ext >&5
39293
39294 ac_header_preproc=no
39295fi
39296
39297rm -f conftest.err conftest.$ac_ext
39298{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39299$as_echo "$ac_header_preproc" >&6; }
39300
39301# So? What about this header?
39302case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39303 yes:no: )
39304 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: accepted by the compiler, rejected by the preprocessor!" >&5
39305$as_echo "$as_me: WARNING: jmorecfg.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39306 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: proceeding with the compiler's result" >&5
39307$as_echo "$as_me: WARNING: jmorecfg.h: proceeding with the compiler's result" >&2;}
39308 ac_header_preproc=yes
39309 ;;
39310 no:yes:* )
39311 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: present but cannot be compiled" >&5
39312$as_echo "$as_me: WARNING: jmorecfg.h: present but cannot be compiled" >&2;}
39313 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: check for missing prerequisite headers?" >&5
39314$as_echo "$as_me: WARNING: jmorecfg.h: check for missing prerequisite headers?" >&2;}
39315 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: see the Autoconf documentation" >&5
39316$as_echo "$as_me: WARNING: jmorecfg.h: see the Autoconf documentation" >&2;}
39317 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: section \"Present But Cannot Be Compiled\"" >&5
39318$as_echo "$as_me: WARNING: jmorecfg.h: section \"Present But Cannot Be Compiled\"" >&2;}
39319 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: proceeding with the preprocessor's result" >&5
39320$as_echo "$as_me: WARNING: jmorecfg.h: proceeding with the preprocessor's result" >&2;}
39321 { $as_echo "$as_me:$LINENO: WARNING: jmorecfg.h: in the future, the compiler will take precedence" >&5
39322$as_echo "$as_me: WARNING: jmorecfg.h: in the future, the compiler will take precedence" >&2;}
39323 ( cat <<\_ASBOX
39324## ----------------------------------------- ##
39325## Report this to http://www.imagemagick.org ##
39326## ----------------------------------------- ##
39327_ASBOX
39328 ) | sed "s/^/$as_me: WARNING: /" >&2
39329 ;;
39330esac
39331{ $as_echo "$as_me:$LINENO: checking for jmorecfg.h" >&5
39332$as_echo_n "checking for jmorecfg.h... " >&6; }
39333if test "${ac_cv_header_jmorecfg_h+set}" = set; then
39334 $as_echo_n "(cached) " >&6
39335else
39336 ac_cv_header_jmorecfg_h=$ac_header_preproc
39337fi
39338{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jmorecfg_h" >&5
39339$as_echo "$ac_cv_header_jmorecfg_h" >&6; }
39340
39341fi
39342if test "x$ac_cv_header_jmorecfg_h" = x""yes; then
39343 passed=`expr $passed + 1`
39344else
39345 failed=`expr $failed + 1`
39346fi
39347
39348
39349 if test "${ac_cv_header_jpeglib_h+set}" = set; then
39350 { $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
39351$as_echo_n "checking for jpeglib.h... " >&6; }
39352if test "${ac_cv_header_jpeglib_h+set}" = set; then
39353 $as_echo_n "(cached) " >&6
39354fi
39355{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
39356$as_echo "$ac_cv_header_jpeglib_h" >&6; }
39357else
39358 # Is the header compilable?
39359{ $as_echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
39360$as_echo_n "checking jpeglib.h usability... " >&6; }
39361cat >conftest.$ac_ext <<_ACEOF
39362/* confdefs.h. */
39363_ACEOF
39364cat confdefs.h >>conftest.$ac_ext
39365cat >>conftest.$ac_ext <<_ACEOF
39366/* end confdefs.h. */
39367$ac_includes_default
39368#include <jpeglib.h>
39369_ACEOF
39370rm -f conftest.$ac_objext
39371if { (ac_try="$ac_compile"
39372case "(($ac_try" in
39373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39374 *) ac_try_echo=$ac_try;;
39375esac
39376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39377$as_echo "$ac_try_echo") >&5
39378 (eval "$ac_compile") 2>conftest.er1
39379 ac_status=$?
39380 grep -v '^ *+' conftest.er1 >conftest.err
39381 rm -f conftest.er1
39382 cat conftest.err >&5
39383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39384 (exit $ac_status); } && {
39385 test -z "$ac_c_werror_flag" ||
39386 test ! -s conftest.err
39387 } && test -s conftest.$ac_objext; then
39388 ac_header_compiler=yes
39389else
39390 $as_echo "$as_me: failed program was:" >&5
39391sed 's/^/| /' conftest.$ac_ext >&5
39392
39393 ac_header_compiler=no
39394fi
39395
39396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39397{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39398$as_echo "$ac_header_compiler" >&6; }
39399
39400# Is the header present?
39401{ $as_echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
39402$as_echo_n "checking jpeglib.h presence... " >&6; }
39403cat >conftest.$ac_ext <<_ACEOF
39404/* confdefs.h. */
39405_ACEOF
39406cat confdefs.h >>conftest.$ac_ext
39407cat >>conftest.$ac_ext <<_ACEOF
39408/* end confdefs.h. */
39409#include <jpeglib.h>
39410_ACEOF
39411if { (ac_try="$ac_cpp conftest.$ac_ext"
39412case "(($ac_try" in
39413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39414 *) ac_try_echo=$ac_try;;
39415esac
39416eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39417$as_echo "$ac_try_echo") >&5
39418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39419 ac_status=$?
39420 grep -v '^ *+' conftest.er1 >conftest.err
39421 rm -f conftest.er1
39422 cat conftest.err >&5
39423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39424 (exit $ac_status); } >/dev/null && {
39425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39426 test ! -s conftest.err
39427 }; then
39428 ac_header_preproc=yes
39429else
39430 $as_echo "$as_me: failed program was:" >&5
39431sed 's/^/| /' conftest.$ac_ext >&5
39432
39433 ac_header_preproc=no
39434fi
39435
39436rm -f conftest.err conftest.$ac_ext
39437{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39438$as_echo "$ac_header_preproc" >&6; }
39439
39440# So? What about this header?
39441case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39442 yes:no: )
39443 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
39444$as_echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39445 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
39446$as_echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
39447 ac_header_preproc=yes
39448 ;;
39449 no:yes:* )
39450 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
39451$as_echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
39452 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
39453$as_echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
39454 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
39455$as_echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
39456 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
39457$as_echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
39458 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
39459$as_echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
39460 { $as_echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
39461$as_echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
39462 ( cat <<\_ASBOX
39463## ----------------------------------------- ##
39464## Report this to http://www.imagemagick.org ##
39465## ----------------------------------------- ##
39466_ASBOX
39467 ) | sed "s/^/$as_me: WARNING: /" >&2
39468 ;;
39469esac
39470{ $as_echo "$as_me:$LINENO: checking for jpeglib.h" >&5
39471$as_echo_n "checking for jpeglib.h... " >&6; }
39472if test "${ac_cv_header_jpeglib_h+set}" = set; then
39473 $as_echo_n "(cached) " >&6
39474else
39475 ac_cv_header_jpeglib_h=$ac_header_preproc
39476fi
39477{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
39478$as_echo "$ac_cv_header_jpeglib_h" >&6; }
39479
39480fi
39481if test "x$ac_cv_header_jpeglib_h" = x""yes; then
39482 passed=`expr $passed + 1`
39483else
39484 failed=`expr $failed + 1`
39485fi
39486
39487
39488 { $as_echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
39489$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
39490if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
39491 $as_echo_n "(cached) " >&6
39492else
39493 ac_check_lib_save_LIBS=$LIBS
39494LIBS="-ljpeg $LIBS"
39495cat >conftest.$ac_ext <<_ACEOF
39496/* confdefs.h. */
39497_ACEOF
39498cat confdefs.h >>conftest.$ac_ext
39499cat >>conftest.$ac_ext <<_ACEOF
39500/* end confdefs.h. */
39501
39502/* Override any GCC internal prototype to avoid an error.
39503 Use char because int might match the return type of a GCC
39504 builtin and then its argument prototype would still apply. */
39505#ifdef __cplusplus
39506extern "C"
39507#endif
39508char jpeg_read_header ();
39509int
39510main ()
39511{
39512return jpeg_read_header ();
39513 ;
39514 return 0;
39515}
39516_ACEOF
39517rm -f conftest.$ac_objext conftest$ac_exeext
39518if { (ac_try="$ac_link"
39519case "(($ac_try" in
39520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39521 *) ac_try_echo=$ac_try;;
39522esac
39523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39524$as_echo "$ac_try_echo") >&5
39525 (eval "$ac_link") 2>conftest.er1
39526 ac_status=$?
39527 grep -v '^ *+' conftest.er1 >conftest.err
39528 rm -f conftest.er1
39529 cat conftest.err >&5
39530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39531 (exit $ac_status); } && {
39532 test -z "$ac_c_werror_flag" ||
39533 test ! -s conftest.err
39534 } && test -s conftest$ac_exeext && {
39535 test "$cross_compiling" = yes ||
39536 $as_test_x conftest$ac_exeext
39537 }; then
39538 ac_cv_lib_jpeg_jpeg_read_header=yes
39539else
39540 $as_echo "$as_me: failed program was:" >&5
39541sed 's/^/| /' conftest.$ac_ext >&5
39542
39543 ac_cv_lib_jpeg_jpeg_read_header=no
39544fi
39545
39546rm -rf conftest.dSYM
39547rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39548 conftest$ac_exeext conftest.$ac_ext
39549LIBS=$ac_check_lib_save_LIBS
39550fi
39551{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
39552$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
39553if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; then
39554 passed=`expr $passed + 1`
39555else
39556 failed=`expr $failed + 1`
39557fi
39558
39559
39560# Test for compatible JPEG library
39561if test "$ac_cv_jpeg_version_ok" != 'yes'; then
39562{ $as_echo "$as_me:$LINENO: checking for JPEG library is version 6b or later" >&5
39563$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
39564if test "${ac_cv_jpeg_version_ok+set}" = set; then
39565 $as_echo_n "(cached) " >&6
39566else
39567 cat >conftest.$ac_ext <<_ACEOF
39568/* confdefs.h. */
39569_ACEOF
39570cat confdefs.h >>conftest.$ac_ext
39571cat >>conftest.$ac_ext <<_ACEOF
39572/* end confdefs.h. */
39573#include <stdio.h>
39574#include <stdlib.h>
39575#include <jpeglib.h>
39576
39577int
39578main ()
39579{
39580
39581#if JPEG_LIB_VERSION < 62
39582#error IJG JPEG library must be version 6b or newer!
39583#endif
39584return 0;
39585
39586 ;
39587 return 0;
39588}
39589_ACEOF
39590rm -f conftest.$ac_objext
39591if { (ac_try="$ac_compile"
39592case "(($ac_try" in
39593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39594 *) ac_try_echo=$ac_try;;
39595esac
39596eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39597$as_echo "$ac_try_echo") >&5
39598 (eval "$ac_compile") 2>conftest.er1
39599 ac_status=$?
39600 grep -v '^ *+' conftest.er1 >conftest.err
39601 rm -f conftest.er1
39602 cat conftest.err >&5
39603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39604 (exit $ac_status); } && {
39605 test -z "$ac_c_werror_flag" ||
39606 test ! -s conftest.err
39607 } && test -s conftest.$ac_objext; then
39608 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
39609else
39610 $as_echo "$as_me: failed program was:" >&5
39611sed 's/^/| /' conftest.$ac_ext >&5
39612
39613 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
39614fi
39615
39616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39617fi
39618{ $as_echo "$as_me:$LINENO: result: $ac_cv_jpeg_version_ok" >&5
39619$as_echo "$ac_cv_jpeg_version_ok" >&6; }
39620fi
39621 { $as_echo "$as_me:$LINENO: checking if JPEG package is complete" >&5
39622$as_echo_n "checking if JPEG package is complete... " >&6; }
39623 if test $passed -gt 0; then
39624 if test $failed -gt 0; then
39625 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
39626$as_echo "no -- some components failed test" >&6; }
39627 have_jpeg='no (failed tests)'
39628 else
39629 JPEG_LIBS='-ljpeg'
39630 LIBS="$JPEG_LIBS $LIBS"
39631
39632cat >>confdefs.h <<\_ACEOF
39633#define JPEG_DELEGATE 1
39634_ACEOF
39635
39636 { $as_echo "$as_me:$LINENO: result: yes" >&5
39637$as_echo "yes" >&6; }
39638 have_jpeg='yes'
39639 fi
39640 else
39641 { $as_echo "$as_me:$LINENO: result: no" >&5
39642$as_echo "no" >&6; }
39643 fi
39644fi
39645 if test "$have_jpeg" = 'yes'; then
39646 JPEG_DELEGATE_TRUE=
39647 JPEG_DELEGATE_FALSE='#'
39648else
39649 JPEG_DELEGATE_TRUE='#'
39650 JPEG_DELEGATE_FALSE=
39651fi
39652
39653
39654
39655
39656#
39657# Check for JPEG Version 2 delegate library.
39658#
39659
39660# Check whether --with-jp2 was given.
39661if test "${with_jp2+set}" = set; then
39662 withval=$with_jp2; with_jp2=$withval
39663else
39664 with_jp2='yes'
39665fi
39666
39667
39668if test "$with_jp2" != 'yes'; then
39669 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
39670fi
39671
39672have_jp2='no'
39673JP2_LIBS=''
39674if test "$with_jp2" != 'no'; then
39675 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
39676$as_echo "-------------------------------------------------------------" >&6; }
39677 { $as_echo "$as_me:$LINENO: checking for JPEG Version 2" >&5
39678$as_echo_n "checking for JPEG Version 2... " >&6; }
39679 { $as_echo "$as_me:$LINENO: result: " >&5
39680$as_echo "" >&6; }
39681 failed=0
39682 passed=0
39683 if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
39684 { $as_echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
39685$as_echo_n "checking for jasper/jasper.h... " >&6; }
39686if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
39687 $as_echo_n "(cached) " >&6
39688fi
39689{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
39690$as_echo "$ac_cv_header_jasper_jasper_h" >&6; }
39691else
39692 # Is the header compilable?
39693{ $as_echo "$as_me:$LINENO: checking jasper/jasper.h usability" >&5
39694$as_echo_n "checking jasper/jasper.h usability... " >&6; }
39695cat >conftest.$ac_ext <<_ACEOF
39696/* confdefs.h. */
39697_ACEOF
39698cat confdefs.h >>conftest.$ac_ext
39699cat >>conftest.$ac_ext <<_ACEOF
39700/* end confdefs.h. */
39701$ac_includes_default
39702#include <jasper/jasper.h>
39703_ACEOF
39704rm -f conftest.$ac_objext
39705if { (ac_try="$ac_compile"
39706case "(($ac_try" in
39707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39708 *) ac_try_echo=$ac_try;;
39709esac
39710eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39711$as_echo "$ac_try_echo") >&5
39712 (eval "$ac_compile") 2>conftest.er1
39713 ac_status=$?
39714 grep -v '^ *+' conftest.er1 >conftest.err
39715 rm -f conftest.er1
39716 cat conftest.err >&5
39717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39718 (exit $ac_status); } && {
39719 test -z "$ac_c_werror_flag" ||
39720 test ! -s conftest.err
39721 } && test -s conftest.$ac_objext; then
39722 ac_header_compiler=yes
39723else
39724 $as_echo "$as_me: failed program was:" >&5
39725sed 's/^/| /' conftest.$ac_ext >&5
39726
39727 ac_header_compiler=no
39728fi
39729
39730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39731{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39732$as_echo "$ac_header_compiler" >&6; }
39733
39734# Is the header present?
39735{ $as_echo "$as_me:$LINENO: checking jasper/jasper.h presence" >&5
39736$as_echo_n "checking jasper/jasper.h presence... " >&6; }
39737cat >conftest.$ac_ext <<_ACEOF
39738/* confdefs.h. */
39739_ACEOF
39740cat confdefs.h >>conftest.$ac_ext
39741cat >>conftest.$ac_ext <<_ACEOF
39742/* end confdefs.h. */
39743#include <jasper/jasper.h>
39744_ACEOF
39745if { (ac_try="$ac_cpp conftest.$ac_ext"
39746case "(($ac_try" in
39747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39748 *) ac_try_echo=$ac_try;;
39749esac
39750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39751$as_echo "$ac_try_echo") >&5
39752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39753 ac_status=$?
39754 grep -v '^ *+' conftest.er1 >conftest.err
39755 rm -f conftest.er1
39756 cat conftest.err >&5
39757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39758 (exit $ac_status); } >/dev/null && {
39759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39760 test ! -s conftest.err
39761 }; then
39762 ac_header_preproc=yes
39763else
39764 $as_echo "$as_me: failed program was:" >&5
39765sed 's/^/| /' conftest.$ac_ext >&5
39766
39767 ac_header_preproc=no
39768fi
39769
39770rm -f conftest.err conftest.$ac_ext
39771{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39772$as_echo "$ac_header_preproc" >&6; }
39773
39774# So? What about this header?
39775case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39776 yes:no: )
39777 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&5
39778$as_echo "$as_me: WARNING: jasper/jasper.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39779 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&5
39780$as_echo "$as_me: WARNING: jasper/jasper.h: proceeding with the compiler's result" >&2;}
39781 ac_header_preproc=yes
39782 ;;
39783 no:yes:* )
39784 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: present but cannot be compiled" >&5
39785$as_echo "$as_me: WARNING: jasper/jasper.h: present but cannot be compiled" >&2;}
39786 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: check for missing prerequisite headers?" >&5
39787$as_echo "$as_me: WARNING: jasper/jasper.h: check for missing prerequisite headers?" >&2;}
39788 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: see the Autoconf documentation" >&5
39789$as_echo "$as_me: WARNING: jasper/jasper.h: see the Autoconf documentation" >&2;}
39790 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: section \"Present But Cannot Be Compiled\"" >&5
39791$as_echo "$as_me: WARNING: jasper/jasper.h: section \"Present But Cannot Be Compiled\"" >&2;}
39792 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&5
39793$as_echo "$as_me: WARNING: jasper/jasper.h: proceeding with the preprocessor's result" >&2;}
39794 { $as_echo "$as_me:$LINENO: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&5
39795$as_echo "$as_me: WARNING: jasper/jasper.h: in the future, the compiler will take precedence" >&2;}
39796 ( cat <<\_ASBOX
39797## ----------------------------------------- ##
39798## Report this to http://www.imagemagick.org ##
39799## ----------------------------------------- ##
39800_ASBOX
39801 ) | sed "s/^/$as_me: WARNING: /" >&2
39802 ;;
39803esac
39804{ $as_echo "$as_me:$LINENO: checking for jasper/jasper.h" >&5
39805$as_echo_n "checking for jasper/jasper.h... " >&6; }
39806if test "${ac_cv_header_jasper_jasper_h+set}" = set; then
39807 $as_echo_n "(cached) " >&6
39808else
39809 ac_cv_header_jasper_jasper_h=$ac_header_preproc
39810fi
39811{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jasper_jasper_h" >&5
39812$as_echo "$ac_cv_header_jasper_jasper_h" >&6; }
39813
39814fi
39815if test "x$ac_cv_header_jasper_jasper_h" = x""yes; then
39816 passed=`expr $passed + 1`
39817else
39818 failed=`expr $failed + 1`
39819fi
39820
39821
39822 { $as_echo "$as_me:$LINENO: checking for jas_stream_fopen in -ljasper" >&5
39823$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
39824if test "${ac_cv_lib_jasper_jas_stream_fopen+set}" = set; then
39825 $as_echo_n "(cached) " >&6
39826else
39827 ac_check_lib_save_LIBS=$LIBS
39828LIBS="-ljasper $LIBS"
39829cat >conftest.$ac_ext <<_ACEOF
39830/* confdefs.h. */
39831_ACEOF
39832cat confdefs.h >>conftest.$ac_ext
39833cat >>conftest.$ac_ext <<_ACEOF
39834/* end confdefs.h. */
39835
39836/* Override any GCC internal prototype to avoid an error.
39837 Use char because int might match the return type of a GCC
39838 builtin and then its argument prototype would still apply. */
39839#ifdef __cplusplus
39840extern "C"
39841#endif
39842char jas_stream_fopen ();
39843int
39844main ()
39845{
39846return jas_stream_fopen ();
39847 ;
39848 return 0;
39849}
39850_ACEOF
39851rm -f conftest.$ac_objext conftest$ac_exeext
39852if { (ac_try="$ac_link"
39853case "(($ac_try" in
39854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39855 *) ac_try_echo=$ac_try;;
39856esac
39857eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39858$as_echo "$ac_try_echo") >&5
39859 (eval "$ac_link") 2>conftest.er1
39860 ac_status=$?
39861 grep -v '^ *+' conftest.er1 >conftest.err
39862 rm -f conftest.er1
39863 cat conftest.err >&5
39864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39865 (exit $ac_status); } && {
39866 test -z "$ac_c_werror_flag" ||
39867 test ! -s conftest.err
39868 } && test -s conftest$ac_exeext && {
39869 test "$cross_compiling" = yes ||
39870 $as_test_x conftest$ac_exeext
39871 }; then
39872 ac_cv_lib_jasper_jas_stream_fopen=yes
39873else
39874 $as_echo "$as_me: failed program was:" >&5
39875sed 's/^/| /' conftest.$ac_ext >&5
39876
39877 ac_cv_lib_jasper_jas_stream_fopen=no
39878fi
39879
39880rm -rf conftest.dSYM
39881rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39882 conftest$ac_exeext conftest.$ac_ext
39883LIBS=$ac_check_lib_save_LIBS
39884fi
39885{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
39886$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
39887if test "x$ac_cv_lib_jasper_jas_stream_fopen" = x""yes; then
39888 passed=`expr $passed + 1`
39889else
39890 failed=`expr $failed + 1`
39891fi
39892
39893 { $as_echo "$as_me:$LINENO: checking if JPEG version 2 support package is complete" >&5
39894$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
39895 if test $passed -gt 0; then
39896 if test $failed -gt 0; then
39897 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
39898$as_echo "no -- some components failed test" >&6; }
39899 have_jp2='no (failed tests)'
39900 else
39901 JP2_LIBS='-ljasper'
39902 LIBS="$JP2_LIBS $LIBS"
39903
39904cat >>confdefs.h <<\_ACEOF
39905#define JP2_DELEGATE 1
39906_ACEOF
39907
39908 { $as_echo "$as_me:$LINENO: result: yes" >&5
39909$as_echo "yes" >&6; }
39910 have_jp2='yes'
39911 fi
39912 else
39913 { $as_echo "$as_me:$LINENO: result: no" >&5
39914$as_echo "no" >&6; }
39915 fi
39916fi
39917 if test "$have_jp2" = 'yes'; then
39918 JP2_DELEGATE_TRUE=
39919 JP2_DELEGATE_FALSE='#'
39920else
39921 JP2_DELEGATE_TRUE='#'
39922 JP2_DELEGATE_FALSE=
39923fi
39924
39925
39926
39927
39928#
39929# Check for LCMS delegate library.
39930#
39931
39932# Check whether --with-lcms was given.
39933if test "${with_lcms+set}" = set; then
39934 withval=$with_lcms; with_lcms=$withval
39935else
39936 with_lcms='yes'
39937fi
39938
39939
39940if test "$with_lcms" != 'yes'; then
39941 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
39942fi
39943
39944have_lcms='no'
39945LCMS_LIBS=''
39946if test "$with_lcms" != 'no'; then
39947 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
39948$as_echo "-------------------------------------------------------------" >&6; }
39949 { $as_echo "$as_me:$LINENO: checking for LCMS" >&5
39950$as_echo_n "checking for LCMS... " >&6; }
39951 { $as_echo "$as_me:$LINENO: result: " >&5
39952$as_echo "" >&6; }
39953 failed=0
39954 passed=0
39955 have_lcms_header='no'
39956 if test "${ac_cv_header_lcms_h+set}" = set; then
39957 { $as_echo "$as_me:$LINENO: checking for lcms.h" >&5
39958$as_echo_n "checking for lcms.h... " >&6; }
39959if test "${ac_cv_header_lcms_h+set}" = set; then
39960 $as_echo_n "(cached) " >&6
39961fi
39962{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_h" >&5
39963$as_echo "$ac_cv_header_lcms_h" >&6; }
39964else
39965 # Is the header compilable?
39966{ $as_echo "$as_me:$LINENO: checking lcms.h usability" >&5
39967$as_echo_n "checking lcms.h usability... " >&6; }
39968cat >conftest.$ac_ext <<_ACEOF
39969/* confdefs.h. */
39970_ACEOF
39971cat confdefs.h >>conftest.$ac_ext
39972cat >>conftest.$ac_ext <<_ACEOF
39973/* end confdefs.h. */
39974$ac_includes_default
39975#include <lcms.h>
39976_ACEOF
39977rm -f conftest.$ac_objext
39978if { (ac_try="$ac_compile"
39979case "(($ac_try" in
39980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39981 *) ac_try_echo=$ac_try;;
39982esac
39983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39984$as_echo "$ac_try_echo") >&5
39985 (eval "$ac_compile") 2>conftest.er1
39986 ac_status=$?
39987 grep -v '^ *+' conftest.er1 >conftest.err
39988 rm -f conftest.er1
39989 cat conftest.err >&5
39990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39991 (exit $ac_status); } && {
39992 test -z "$ac_c_werror_flag" ||
39993 test ! -s conftest.err
39994 } && test -s conftest.$ac_objext; then
39995 ac_header_compiler=yes
39996else
39997 $as_echo "$as_me: failed program was:" >&5
39998sed 's/^/| /' conftest.$ac_ext >&5
39999
40000 ac_header_compiler=no
40001fi
40002
40003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40004{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40005$as_echo "$ac_header_compiler" >&6; }
40006
40007# Is the header present?
40008{ $as_echo "$as_me:$LINENO: checking lcms.h presence" >&5
40009$as_echo_n "checking lcms.h presence... " >&6; }
40010cat >conftest.$ac_ext <<_ACEOF
40011/* confdefs.h. */
40012_ACEOF
40013cat confdefs.h >>conftest.$ac_ext
40014cat >>conftest.$ac_ext <<_ACEOF
40015/* end confdefs.h. */
40016#include <lcms.h>
40017_ACEOF
40018if { (ac_try="$ac_cpp conftest.$ac_ext"
40019case "(($ac_try" in
40020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40021 *) ac_try_echo=$ac_try;;
40022esac
40023eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40024$as_echo "$ac_try_echo") >&5
40025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40026 ac_status=$?
40027 grep -v '^ *+' conftest.er1 >conftest.err
40028 rm -f conftest.er1
40029 cat conftest.err >&5
40030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40031 (exit $ac_status); } >/dev/null && {
40032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40033 test ! -s conftest.err
40034 }; then
40035 ac_header_preproc=yes
40036else
40037 $as_echo "$as_me: failed program was:" >&5
40038sed 's/^/| /' conftest.$ac_ext >&5
40039
40040 ac_header_preproc=no
40041fi
40042
40043rm -f conftest.err conftest.$ac_ext
40044{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40045$as_echo "$ac_header_preproc" >&6; }
40046
40047# So? What about this header?
40048case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40049 yes:no: )
40050 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: accepted by the compiler, rejected by the preprocessor!" >&5
40051$as_echo "$as_me: WARNING: lcms.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40052 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: proceeding with the compiler's result" >&5
40053$as_echo "$as_me: WARNING: lcms.h: proceeding with the compiler's result" >&2;}
40054 ac_header_preproc=yes
40055 ;;
40056 no:yes:* )
40057 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: present but cannot be compiled" >&5
40058$as_echo "$as_me: WARNING: lcms.h: present but cannot be compiled" >&2;}
40059 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: check for missing prerequisite headers?" >&5
40060$as_echo "$as_me: WARNING: lcms.h: check for missing prerequisite headers?" >&2;}
40061 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: see the Autoconf documentation" >&5
40062$as_echo "$as_me: WARNING: lcms.h: see the Autoconf documentation" >&2;}
40063 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: section \"Present But Cannot Be Compiled\"" >&5
40064$as_echo "$as_me: WARNING: lcms.h: section \"Present But Cannot Be Compiled\"" >&2;}
40065 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: proceeding with the preprocessor's result" >&5
40066$as_echo "$as_me: WARNING: lcms.h: proceeding with the preprocessor's result" >&2;}
40067 { $as_echo "$as_me:$LINENO: WARNING: lcms.h: in the future, the compiler will take precedence" >&5
40068$as_echo "$as_me: WARNING: lcms.h: in the future, the compiler will take precedence" >&2;}
40069 ( cat <<\_ASBOX
40070## ----------------------------------------- ##
40071## Report this to http://www.imagemagick.org ##
40072## ----------------------------------------- ##
40073_ASBOX
40074 ) | sed "s/^/$as_me: WARNING: /" >&2
40075 ;;
40076esac
40077{ $as_echo "$as_me:$LINENO: checking for lcms.h" >&5
40078$as_echo_n "checking for lcms.h... " >&6; }
40079if test "${ac_cv_header_lcms_h+set}" = set; then
40080 $as_echo_n "(cached) " >&6
40081else
40082 ac_cv_header_lcms_h=$ac_header_preproc
40083fi
40084{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_h" >&5
40085$as_echo "$ac_cv_header_lcms_h" >&6; }
40086
40087fi
40088if test "x$ac_cv_header_lcms_h" = x""yes; then
40089 have_lcms_header='yes'
40090fi
40091
40092
40093 if test "$have_lcms_header" = 'yes'; then
40094 passed=`expr $passed + 1`
40095
40096cat >>confdefs.h <<\_ACEOF
40097#define HAVE_LCMS_H 1
40098_ACEOF
40099
40100 else
40101 if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
40102 { $as_echo "$as_me:$LINENO: checking for lcms/lcms.h" >&5
40103$as_echo_n "checking for lcms/lcms.h... " >&6; }
40104if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
40105 $as_echo_n "(cached) " >&6
40106fi
40107{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_lcms_h" >&5
40108$as_echo "$ac_cv_header_lcms_lcms_h" >&6; }
40109else
40110 # Is the header compilable?
40111{ $as_echo "$as_me:$LINENO: checking lcms/lcms.h usability" >&5
40112$as_echo_n "checking lcms/lcms.h usability... " >&6; }
40113cat >conftest.$ac_ext <<_ACEOF
40114/* confdefs.h. */
40115_ACEOF
40116cat confdefs.h >>conftest.$ac_ext
40117cat >>conftest.$ac_ext <<_ACEOF
40118/* end confdefs.h. */
40119$ac_includes_default
40120#include <lcms/lcms.h>
40121_ACEOF
40122rm -f conftest.$ac_objext
40123if { (ac_try="$ac_compile"
40124case "(($ac_try" in
40125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40126 *) ac_try_echo=$ac_try;;
40127esac
40128eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40129$as_echo "$ac_try_echo") >&5
40130 (eval "$ac_compile") 2>conftest.er1
40131 ac_status=$?
40132 grep -v '^ *+' conftest.er1 >conftest.err
40133 rm -f conftest.er1
40134 cat conftest.err >&5
40135 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40136 (exit $ac_status); } && {
40137 test -z "$ac_c_werror_flag" ||
40138 test ! -s conftest.err
40139 } && test -s conftest.$ac_objext; then
40140 ac_header_compiler=yes
40141else
40142 $as_echo "$as_me: failed program was:" >&5
40143sed 's/^/| /' conftest.$ac_ext >&5
40144
40145 ac_header_compiler=no
40146fi
40147
40148rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40149{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40150$as_echo "$ac_header_compiler" >&6; }
40151
40152# Is the header present?
40153{ $as_echo "$as_me:$LINENO: checking lcms/lcms.h presence" >&5
40154$as_echo_n "checking lcms/lcms.h presence... " >&6; }
40155cat >conftest.$ac_ext <<_ACEOF
40156/* confdefs.h. */
40157_ACEOF
40158cat confdefs.h >>conftest.$ac_ext
40159cat >>conftest.$ac_ext <<_ACEOF
40160/* end confdefs.h. */
40161#include <lcms/lcms.h>
40162_ACEOF
40163if { (ac_try="$ac_cpp conftest.$ac_ext"
40164case "(($ac_try" in
40165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40166 *) ac_try_echo=$ac_try;;
40167esac
40168eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40169$as_echo "$ac_try_echo") >&5
40170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40171 ac_status=$?
40172 grep -v '^ *+' conftest.er1 >conftest.err
40173 rm -f conftest.er1
40174 cat conftest.err >&5
40175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40176 (exit $ac_status); } >/dev/null && {
40177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40178 test ! -s conftest.err
40179 }; then
40180 ac_header_preproc=yes
40181else
40182 $as_echo "$as_me: failed program was:" >&5
40183sed 's/^/| /' conftest.$ac_ext >&5
40184
40185 ac_header_preproc=no
40186fi
40187
40188rm -f conftest.err conftest.$ac_ext
40189{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40190$as_echo "$ac_header_preproc" >&6; }
40191
40192# So? What about this header?
40193case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40194 yes:no: )
40195 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: accepted by the compiler, rejected by the preprocessor!" >&5
40196$as_echo "$as_me: WARNING: lcms/lcms.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40197 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: proceeding with the compiler's result" >&5
40198$as_echo "$as_me: WARNING: lcms/lcms.h: proceeding with the compiler's result" >&2;}
40199 ac_header_preproc=yes
40200 ;;
40201 no:yes:* )
40202 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: present but cannot be compiled" >&5
40203$as_echo "$as_me: WARNING: lcms/lcms.h: present but cannot be compiled" >&2;}
40204 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: check for missing prerequisite headers?" >&5
40205$as_echo "$as_me: WARNING: lcms/lcms.h: check for missing prerequisite headers?" >&2;}
40206 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: see the Autoconf documentation" >&5
40207$as_echo "$as_me: WARNING: lcms/lcms.h: see the Autoconf documentation" >&2;}
40208 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: section \"Present But Cannot Be Compiled\"" >&5
40209$as_echo "$as_me: WARNING: lcms/lcms.h: section \"Present But Cannot Be Compiled\"" >&2;}
40210 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: proceeding with the preprocessor's result" >&5
40211$as_echo "$as_me: WARNING: lcms/lcms.h: proceeding with the preprocessor's result" >&2;}
40212 { $as_echo "$as_me:$LINENO: WARNING: lcms/lcms.h: in the future, the compiler will take precedence" >&5
40213$as_echo "$as_me: WARNING: lcms/lcms.h: in the future, the compiler will take precedence" >&2;}
40214 ( cat <<\_ASBOX
40215## ----------------------------------------- ##
40216## Report this to http://www.imagemagick.org ##
40217## ----------------------------------------- ##
40218_ASBOX
40219 ) | sed "s/^/$as_me: WARNING: /" >&2
40220 ;;
40221esac
40222{ $as_echo "$as_me:$LINENO: checking for lcms/lcms.h" >&5
40223$as_echo_n "checking for lcms/lcms.h... " >&6; }
40224if test "${ac_cv_header_lcms_lcms_h+set}" = set; then
40225 $as_echo_n "(cached) " >&6
40226else
40227 ac_cv_header_lcms_lcms_h=$ac_header_preproc
40228fi
40229{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_lcms_lcms_h" >&5
40230$as_echo "$ac_cv_header_lcms_lcms_h" >&6; }
40231
40232fi
40233if test "x$ac_cv_header_lcms_lcms_h" = x""yes; then
40234 have_lcms_header='yes'
40235fi
40236
40237
40238 if test "$have_lcms_header" = 'yes'; then
40239 passed=`expr $passed + 1`
40240
40241cat >>confdefs.h <<\_ACEOF
40242#define HAVE_LCMS_LCMS_H 1
40243_ACEOF
40244
40245 else
40246 failed=`expr $failed + 1`
40247 fi
40248 fi
40249 { $as_echo "$as_me:$LINENO: checking for cmsOpenProfileFromMem in -llcms" >&5
40250$as_echo_n "checking for cmsOpenProfileFromMem in -llcms... " >&6; }
40251if test "${ac_cv_lib_lcms_cmsOpenProfileFromMem+set}" = set; then
40252 $as_echo_n "(cached) " >&6
40253else
40254 ac_check_lib_save_LIBS=$LIBS
40255LIBS="-llcms $LIBS"
40256cat >conftest.$ac_ext <<_ACEOF
40257/* confdefs.h. */
40258_ACEOF
40259cat confdefs.h >>conftest.$ac_ext
40260cat >>conftest.$ac_ext <<_ACEOF
40261/* end confdefs.h. */
40262
40263/* Override any GCC internal prototype to avoid an error.
40264 Use char because int might match the return type of a GCC
40265 builtin and then its argument prototype would still apply. */
40266#ifdef __cplusplus
40267extern "C"
40268#endif
40269char cmsOpenProfileFromMem ();
40270int
40271main ()
40272{
40273return cmsOpenProfileFromMem ();
40274 ;
40275 return 0;
40276}
40277_ACEOF
40278rm -f conftest.$ac_objext conftest$ac_exeext
40279if { (ac_try="$ac_link"
40280case "(($ac_try" in
40281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40282 *) ac_try_echo=$ac_try;;
40283esac
40284eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40285$as_echo "$ac_try_echo") >&5
40286 (eval "$ac_link") 2>conftest.er1
40287 ac_status=$?
40288 grep -v '^ *+' conftest.er1 >conftest.err
40289 rm -f conftest.er1
40290 cat conftest.err >&5
40291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40292 (exit $ac_status); } && {
40293 test -z "$ac_c_werror_flag" ||
40294 test ! -s conftest.err
40295 } && test -s conftest$ac_exeext && {
40296 test "$cross_compiling" = yes ||
40297 $as_test_x conftest$ac_exeext
40298 }; then
40299 ac_cv_lib_lcms_cmsOpenProfileFromMem=yes
40300else
40301 $as_echo "$as_me: failed program was:" >&5
40302sed 's/^/| /' conftest.$ac_ext >&5
40303
40304 ac_cv_lib_lcms_cmsOpenProfileFromMem=no
40305fi
40306
40307rm -rf conftest.dSYM
40308rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40309 conftest$ac_exeext conftest.$ac_ext
40310LIBS=$ac_check_lib_save_LIBS
40311fi
40312{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromMem" >&5
40313$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromMem" >&6; }
40314if test "x$ac_cv_lib_lcms_cmsOpenProfileFromMem" = x""yes; then
40315 passed=`expr $passed + 1`
40316else
40317 failed=`expr $failed + 1`
40318fi
40319
40320 { $as_echo "$as_me:$LINENO: checking if LCMS package is complete" >&5
40321$as_echo_n "checking if LCMS package is complete... " >&6; }
40322 if test $passed -gt 0; then
40323 if test $failed -gt 0; then
40324 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
40325$as_echo "no -- some components failed test" >&6; }
40326 have_lcms='no (failed tests)'
40327 else
40328 LCMS_LIBS='-llcms'
40329 LIBS="$LCMS_LIBS $LIBS"
40330
40331cat >>confdefs.h <<\_ACEOF
40332#define LCMS_DELEGATE 1
40333_ACEOF
40334
40335 { $as_echo "$as_me:$LINENO: result: yes" >&5
40336$as_echo "yes" >&6; }
40337 have_lcms='yes'
40338 fi
40339 else
40340 { $as_echo "$as_me:$LINENO: result: no" >&5
40341$as_echo "no" >&6; }
40342 fi
40343fi
40344 if test "$have_lcms" = 'yes'; then
40345 LCMS_DELEGATE_TRUE=
40346 LCMS_DELEGATE_FALSE='#'
40347else
40348 LCMS_DELEGATE_TRUE='#'
40349 LCMS_DELEGATE_FALSE=
40350fi
40351
40352
40353
40354
40355#
40356# Check for the LQR (Liquid Rescale) delegate library.
40357#
40358
40359# Check whether --with-lqr was given.
40360if test "${with_lqr+set}" = set; then
40361 withval=$with_lqr; with_lqr=$withval
40362else
40363 with_lqr='yes'
40364fi
40365
40366
40367if test "$with_lqr" != 'yes'; then
40368 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
40369fi
40370
40371have_lqr='no'
40372LQR_CFLAGS=""
40373LQR_LIBS=""
40374LQR_PKG=""
40375if test "x$with_lqr" = "xyes"; then
40376 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
40377$as_echo "-------------------------------------------------------------" >&6; }
40378
40379pkg_failed=no
40380{ $as_echo "$as_me:$LINENO: checking for LQR" >&5
40381$as_echo_n "checking for LQR... " >&6; }
40382
40383if test -n "$LQR_CFLAGS"; then
40384 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
40385 elif test -n "$PKG_CONFIG"; then
40386 if test -n "$PKG_CONFIG" && \
40387 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\"") >&5
40388 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
40389 ac_status=$?
40390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40391 (exit $ac_status); }; then
40392 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
40393else
40394 pkg_failed=yes
40395fi
40396 else
40397 pkg_failed=untried
40398fi
40399if test -n "$LQR_LIBS"; then
40400 pkg_cv_LQR_LIBS="$LQR_LIBS"
40401 elif test -n "$PKG_CONFIG"; then
40402 if test -n "$PKG_CONFIG" && \
40403 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\"") >&5
40404 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
40405 ac_status=$?
40406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40407 (exit $ac_status); }; then
40408 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
40409else
40410 pkg_failed=yes
40411fi
40412 else
40413 pkg_failed=untried
40414fi
40415
40416
40417
40418if test $pkg_failed = yes; then
40419
40420if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40421 _pkg_short_errors_supported=yes
40422else
40423 _pkg_short_errors_supported=no
40424fi
40425 if test $_pkg_short_errors_supported = yes; then
40426 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
40427 else
40428 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
40429 fi
40430 # Put the nasty error message in config.log where it belongs
40431 echo "$LQR_PKG_ERRORS" >&5
40432
40433 { $as_echo "$as_me:$LINENO: result: no" >&5
40434$as_echo "no" >&6; }
40435 have_lqr=no
40436elif test $pkg_failed = untried; then
40437 have_lqr=no
40438else
40439 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
40440 LQR_LIBS=$pkg_cv_LQR_LIBS
40441 { $as_echo "$as_me:$LINENO: result: yes" >&5
40442$as_echo "yes" >&6; }
40443 have_lqr=yes
40444fi
40445 { $as_echo "$as_me:$LINENO: result: " >&5
40446$as_echo "" >&6; }
40447fi
40448
40449if test "$have_lqr" = 'yes'; then
40450
40451cat >>confdefs.h <<\_ACEOF
40452#define LQR_DELEGATE 1
40453_ACEOF
40454
40455 CFLAGS="$LQR_CFLAGS $CFLAGS"
40456fi
40457
40458 if test "$have_lqr" = 'yes'; then
40459 LQR_DELEGATE_TRUE=
40460 LQR_DELEGATE_FALSE='#'
40461else
40462 LQR_DELEGATE_TRUE='#'
40463 LQR_DELEGATE_FALSE=
40464fi
40465
40466
40467
40468
40469
40470#
40471# Check for the OpenEXR delegate library.
40472#
40473
40474# Check whether --with-openexr was given.
40475if test "${with_openexr+set}" = set; then
40476 withval=$with_openexr; with_openexr=$withval
40477else
40478 with_openexr='yes'
40479fi
40480
40481
40482if test "$with_openexr" != 'yes'; then
40483 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
40484fi
40485
40486have_openexr='no'
40487OPENEXR_CFLAGS=""
40488OPENEXR_LIBS=""
40489OPENEXR_PKG=""
40490if test "x$with_openexr" = "xyes"; then
40491 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
40492$as_echo "-------------------------------------------------------------" >&6; }
40493
40494pkg_failed=no
40495{ $as_echo "$as_me:$LINENO: checking for OPENEXR" >&5
40496$as_echo_n "checking for OPENEXR... " >&6; }
40497
40498if test -n "$OPENEXR_CFLAGS"; then
40499 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
40500 elif test -n "$PKG_CONFIG"; then
40501 if test -n "$PKG_CONFIG" && \
40502 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\"") >&5
40503 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
40504 ac_status=$?
40505 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40506 (exit $ac_status); }; then
40507 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
40508else
40509 pkg_failed=yes
40510fi
40511 else
40512 pkg_failed=untried
40513fi
40514if test -n "$OPENEXR_LIBS"; then
40515 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
40516 elif test -n "$PKG_CONFIG"; then
40517 if test -n "$PKG_CONFIG" && \
40518 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\"") >&5
40519 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
40520 ac_status=$?
40521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40522 (exit $ac_status); }; then
40523 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
40524else
40525 pkg_failed=yes
40526fi
40527 else
40528 pkg_failed=untried
40529fi
40530
40531
40532
40533if test $pkg_failed = yes; then
40534
40535if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40536 _pkg_short_errors_supported=yes
40537else
40538 _pkg_short_errors_supported=no
40539fi
40540 if test $_pkg_short_errors_supported = yes; then
40541 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
40542 else
40543 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
40544 fi
40545 # Put the nasty error message in config.log where it belongs
40546 echo "$OPENEXR_PKG_ERRORS" >&5
40547
40548 { $as_echo "$as_me:$LINENO: result: no" >&5
40549$as_echo "no" >&6; }
40550 have_openexr=no
40551elif test $pkg_failed = untried; then
40552 have_openexr=no
40553else
40554 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
40555 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
40556 { $as_echo "$as_me:$LINENO: result: yes" >&5
40557$as_echo "yes" >&6; }
40558 have_openexr=yes
40559fi
40560 { $as_echo "$as_me:$LINENO: result: " >&5
40561$as_echo "" >&6; }
40562fi
40563
40564if test "$have_openexr" = 'yes'; then
40565
40566cat >>confdefs.h <<\_ACEOF
40567#define OPENEXR_DELEGATE 1
40568_ACEOF
40569
40570 if test "$with_modules" = 'no'; then
40571 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
40572 fi
40573fi
40574
40575 if test "$have_openexr" = 'yes'; then
40576 OPENEXR_DELEGATE_TRUE=
40577 OPENEXR_DELEGATE_FALSE='#'
40578else
40579 OPENEXR_DELEGATE_TRUE='#'
40580 OPENEXR_DELEGATE_FALSE=
40581fi
40582
40583
40584
40585
40586
40587#
40588# Check for PNG delegate library.
40589#
40590
40591# Check whether --with-png was given.
40592if test "${with_png+set}" = set; then
40593 withval=$with_png; with_png=$withval
40594else
40595 with_png='yes'
40596fi
40597
40598
40599if test "$with_png" != 'yes'; then
40600 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
40601fi
40602
40603have_png='no'
40604PNG_LIBS=''
40605if test "$with_png" != 'no'; then
40606 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
40607$as_echo "-------------------------------------------------------------" >&6; }
40608 { $as_echo "$as_me:$LINENO: checking for PNG" >&5
40609$as_echo_n "checking for PNG... " >&6; }
40610 { $as_echo "$as_me:$LINENO: result: " >&5
40611$as_echo "" >&6; }
40612 failed=0
40613 passed=0
40614 if test "${ac_cv_header_png_h+set}" = set; then
40615 { $as_echo "$as_me:$LINENO: checking for png.h" >&5
40616$as_echo_n "checking for png.h... " >&6; }
40617if test "${ac_cv_header_png_h+set}" = set; then
40618 $as_echo_n "(cached) " >&6
40619fi
40620{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
40621$as_echo "$ac_cv_header_png_h" >&6; }
40622else
40623 # Is the header compilable?
40624{ $as_echo "$as_me:$LINENO: checking png.h usability" >&5
40625$as_echo_n "checking png.h usability... " >&6; }
40626cat >conftest.$ac_ext <<_ACEOF
40627/* confdefs.h. */
40628_ACEOF
40629cat confdefs.h >>conftest.$ac_ext
40630cat >>conftest.$ac_ext <<_ACEOF
40631/* end confdefs.h. */
40632$ac_includes_default
40633#include <png.h>
40634_ACEOF
40635rm -f conftest.$ac_objext
40636if { (ac_try="$ac_compile"
40637case "(($ac_try" in
40638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40639 *) ac_try_echo=$ac_try;;
40640esac
40641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40642$as_echo "$ac_try_echo") >&5
40643 (eval "$ac_compile") 2>conftest.er1
40644 ac_status=$?
40645 grep -v '^ *+' conftest.er1 >conftest.err
40646 rm -f conftest.er1
40647 cat conftest.err >&5
40648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40649 (exit $ac_status); } && {
40650 test -z "$ac_c_werror_flag" ||
40651 test ! -s conftest.err
40652 } && test -s conftest.$ac_objext; then
40653 ac_header_compiler=yes
40654else
40655 $as_echo "$as_me: failed program was:" >&5
40656sed 's/^/| /' conftest.$ac_ext >&5
40657
40658 ac_header_compiler=no
40659fi
40660
40661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40662{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40663$as_echo "$ac_header_compiler" >&6; }
40664
40665# Is the header present?
40666{ $as_echo "$as_me:$LINENO: checking png.h presence" >&5
40667$as_echo_n "checking png.h presence... " >&6; }
40668cat >conftest.$ac_ext <<_ACEOF
40669/* confdefs.h. */
40670_ACEOF
40671cat confdefs.h >>conftest.$ac_ext
40672cat >>conftest.$ac_ext <<_ACEOF
40673/* end confdefs.h. */
40674#include <png.h>
40675_ACEOF
40676if { (ac_try="$ac_cpp conftest.$ac_ext"
40677case "(($ac_try" in
40678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40679 *) ac_try_echo=$ac_try;;
40680esac
40681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40682$as_echo "$ac_try_echo") >&5
40683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40684 ac_status=$?
40685 grep -v '^ *+' conftest.er1 >conftest.err
40686 rm -f conftest.er1
40687 cat conftest.err >&5
40688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40689 (exit $ac_status); } >/dev/null && {
40690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40691 test ! -s conftest.err
40692 }; then
40693 ac_header_preproc=yes
40694else
40695 $as_echo "$as_me: failed program was:" >&5
40696sed 's/^/| /' conftest.$ac_ext >&5
40697
40698 ac_header_preproc=no
40699fi
40700
40701rm -f conftest.err conftest.$ac_ext
40702{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40703$as_echo "$ac_header_preproc" >&6; }
40704
40705# So? What about this header?
40706case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40707 yes:no: )
40708 { $as_echo "$as_me:$LINENO: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&5
40709$as_echo "$as_me: WARNING: png.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40710 { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the compiler's result" >&5
40711$as_echo "$as_me: WARNING: png.h: proceeding with the compiler's result" >&2;}
40712 ac_header_preproc=yes
40713 ;;
40714 no:yes:* )
40715 { $as_echo "$as_me:$LINENO: WARNING: png.h: present but cannot be compiled" >&5
40716$as_echo "$as_me: WARNING: png.h: present but cannot be compiled" >&2;}
40717 { $as_echo "$as_me:$LINENO: WARNING: png.h: check for missing prerequisite headers?" >&5
40718$as_echo "$as_me: WARNING: png.h: check for missing prerequisite headers?" >&2;}
40719 { $as_echo "$as_me:$LINENO: WARNING: png.h: see the Autoconf documentation" >&5
40720$as_echo "$as_me: WARNING: png.h: see the Autoconf documentation" >&2;}
40721 { $as_echo "$as_me:$LINENO: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&5
40722$as_echo "$as_me: WARNING: png.h: section \"Present But Cannot Be Compiled\"" >&2;}
40723 { $as_echo "$as_me:$LINENO: WARNING: png.h: proceeding with the preprocessor's result" >&5
40724$as_echo "$as_me: WARNING: png.h: proceeding with the preprocessor's result" >&2;}
40725 { $as_echo "$as_me:$LINENO: WARNING: png.h: in the future, the compiler will take precedence" >&5
40726$as_echo "$as_me: WARNING: png.h: in the future, the compiler will take precedence" >&2;}
40727 ( cat <<\_ASBOX
40728## ----------------------------------------- ##
40729## Report this to http://www.imagemagick.org ##
40730## ----------------------------------------- ##
40731_ASBOX
40732 ) | sed "s/^/$as_me: WARNING: /" >&2
40733 ;;
40734esac
40735{ $as_echo "$as_me:$LINENO: checking for png.h" >&5
40736$as_echo_n "checking for png.h... " >&6; }
40737if test "${ac_cv_header_png_h+set}" = set; then
40738 $as_echo_n "(cached) " >&6
40739else
40740 ac_cv_header_png_h=$ac_header_preproc
40741fi
40742{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
40743$as_echo "$ac_cv_header_png_h" >&6; }
40744
40745fi
40746if test "x$ac_cv_header_png_h" = x""yes; then
40747 passed=`expr $passed + 1`
40748else
40749 failed=`expr $failed + 1`
40750fi
40751
40752
40753 { $as_echo "$as_me:$LINENO: checking for png_get_io_ptr in -lpng" >&5
40754$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
40755if test "${ac_cv_lib_png_png_get_io_ptr+set}" = set; then
40756 $as_echo_n "(cached) " >&6
40757else
40758 ac_check_lib_save_LIBS=$LIBS
40759LIBS="-lpng $LIBS"
40760cat >conftest.$ac_ext <<_ACEOF
40761/* confdefs.h. */
40762_ACEOF
40763cat confdefs.h >>conftest.$ac_ext
40764cat >>conftest.$ac_ext <<_ACEOF
40765/* end confdefs.h. */
40766
40767/* Override any GCC internal prototype to avoid an error.
40768 Use char because int might match the return type of a GCC
40769 builtin and then its argument prototype would still apply. */
40770#ifdef __cplusplus
40771extern "C"
40772#endif
40773char png_get_io_ptr ();
40774int
40775main ()
40776{
40777return png_get_io_ptr ();
40778 ;
40779 return 0;
40780}
40781_ACEOF
40782rm -f conftest.$ac_objext conftest$ac_exeext
40783if { (ac_try="$ac_link"
40784case "(($ac_try" in
40785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40786 *) ac_try_echo=$ac_try;;
40787esac
40788eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40789$as_echo "$ac_try_echo") >&5
40790 (eval "$ac_link") 2>conftest.er1
40791 ac_status=$?
40792 grep -v '^ *+' conftest.er1 >conftest.err
40793 rm -f conftest.er1
40794 cat conftest.err >&5
40795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40796 (exit $ac_status); } && {
40797 test -z "$ac_c_werror_flag" ||
40798 test ! -s conftest.err
40799 } && test -s conftest$ac_exeext && {
40800 test "$cross_compiling" = yes ||
40801 $as_test_x conftest$ac_exeext
40802 }; then
40803 ac_cv_lib_png_png_get_io_ptr=yes
40804else
40805 $as_echo "$as_me: failed program was:" >&5
40806sed 's/^/| /' conftest.$ac_ext >&5
40807
40808 ac_cv_lib_png_png_get_io_ptr=no
40809fi
40810
40811rm -rf conftest.dSYM
40812rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40813 conftest$ac_exeext conftest.$ac_ext
40814LIBS=$ac_check_lib_save_LIBS
40815fi
40816{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_io_ptr" >&5
40817$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
40818if test "x$ac_cv_lib_png_png_get_io_ptr" = x""yes; then
40819 passed=`expr $passed + 1`
40820else
40821 failed=`expr $failed + 1`
40822fi
40823
40824 { $as_echo "$as_me:$LINENO: checking if PNG package is complete" >&5
40825$as_echo_n "checking if PNG package is complete... " >&6; }
40826 if test $passed -gt 0; then
40827 if test $failed -gt 0; then
40828 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
40829$as_echo "no -- some components failed test" >&6; }
40830 have_png='no (failed tests)'
40831 else
40832 PNG_LIBS='-lpng'
40833 LIBS="$PNG_LIBS $LIBS"
40834
40835cat >>confdefs.h <<\_ACEOF
40836#define PNG_DELEGATE 1
40837_ACEOF
40838
40839 { $as_echo "$as_me:$LINENO: result: yes" >&5
40840$as_echo "yes" >&6; }
40841 have_png='yes'
40842 fi
40843 else
40844 { $as_echo "$as_me:$LINENO: result: no" >&5
40845$as_echo "no" >&6; }
40846 fi
40847fi
40848 if test "$have_png" = 'yes'; then
40849 PNG_DELEGATE_TRUE=
40850 PNG_DELEGATE_FALSE='#'
40851else
40852 PNG_DELEGATE_TRUE='#'
40853 PNG_DELEGATE_FALSE=
40854fi
40855
40856
40857
40858
40859#
40860# Check for RSVG delegate library.
40861#
40862
40863# Check whether --with-rsvg was given.
40864if test "${with_rsvg+set}" = set; then
40865 withval=$with_rsvg; with_rsvg=$withval
40866else
40867 with_rsvg=$have_x
40868fi
40869
40870
40871if test "$with_rsvg" != 'yes'; then
40872 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
40873fi
40874
40875have_rsvg='no'
40876have_cairo='no'
40877RSVG_CFLAGS=""
40878RSVG_LIBS=""
40879RSVG_PKG=""
40880if test "x$with_rsvg" = "xyes"; then
40881 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
40882$as_echo "-------------------------------------------------------------" >&6; }
40883
40884pkg_failed=no
40885{ $as_echo "$as_me:$LINENO: checking for RSVG" >&5
40886$as_echo_n "checking for RSVG... " >&6; }
40887
40888if test -n "$RSVG_CFLAGS"; then
40889 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
40890 elif test -n "$PKG_CONFIG"; then
40891 if test -n "$PKG_CONFIG" && \
40892 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\"") >&5
40893 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
40894 ac_status=$?
40895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40896 (exit $ac_status); }; then
40897 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
40898else
40899 pkg_failed=yes
40900fi
40901 else
40902 pkg_failed=untried
40903fi
40904if test -n "$RSVG_LIBS"; then
40905 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
40906 elif test -n "$PKG_CONFIG"; then
40907 if test -n "$PKG_CONFIG" && \
40908 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\"") >&5
40909 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
40910 ac_status=$?
40911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40912 (exit $ac_status); }; then
40913 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
40914else
40915 pkg_failed=yes
40916fi
40917 else
40918 pkg_failed=untried
40919fi
40920
40921
40922
40923if test $pkg_failed = yes; then
40924
40925if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40926 _pkg_short_errors_supported=yes
40927else
40928 _pkg_short_errors_supported=no
40929fi
40930 if test $_pkg_short_errors_supported = yes; then
40931 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
40932 else
40933 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
40934 fi
40935 # Put the nasty error message in config.log where it belongs
40936 echo "$RSVG_PKG_ERRORS" >&5
40937
40938 { $as_echo "$as_me:$LINENO: result: no" >&5
40939$as_echo "no" >&6; }
40940 have_rsvg=no
40941elif test $pkg_failed = untried; then
40942 have_rsvg=no
40943else
40944 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
40945 RSVG_LIBS=$pkg_cv_RSVG_LIBS
40946 { $as_echo "$as_me:$LINENO: result: yes" >&5
40947$as_echo "yes" >&6; }
40948 have_rsvg=yes
40949fi
40950 { $as_echo "$as_me:$LINENO: result: " >&5
40951$as_echo "" >&6; }
40952
40953pkg_failed=no
40954{ $as_echo "$as_me:$LINENO: checking for CAIRO_SVG" >&5
40955$as_echo_n "checking for CAIRO_SVG... " >&6; }
40956
40957if test -n "$CAIRO_SVG_CFLAGS"; then
40958 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
40959 elif test -n "$PKG_CONFIG"; then
40960 if test -n "$PKG_CONFIG" && \
40961 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo-svg\"") >&5
40962 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
40963 ac_status=$?
40964 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40965 (exit $ac_status); }; then
40966 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
40967else
40968 pkg_failed=yes
40969fi
40970 else
40971 pkg_failed=untried
40972fi
40973if test -n "$CAIRO_SVG_LIBS"; then
40974 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
40975 elif test -n "$PKG_CONFIG"; then
40976 if test -n "$PKG_CONFIG" && \
40977 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo-svg\"") >&5
40978 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
40979 ac_status=$?
40980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40981 (exit $ac_status); }; then
40982 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
40983else
40984 pkg_failed=yes
40985fi
40986 else
40987 pkg_failed=untried
40988fi
40989
40990
40991
40992if test $pkg_failed = yes; then
40993
40994if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
40995 _pkg_short_errors_supported=yes
40996else
40997 _pkg_short_errors_supported=no
40998fi
40999 if test $_pkg_short_errors_supported = yes; then
41000 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
41001 else
41002 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
41003 fi
41004 # Put the nasty error message in config.log where it belongs
41005 echo "$CAIRO_SVG_PKG_ERRORS" >&5
41006
41007 { $as_echo "$as_me:$LINENO: result: no" >&5
41008$as_echo "no" >&6; }
41009 have_cairo=no
41010elif test $pkg_failed = untried; then
41011 have_cairo=no
41012else
41013 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
41014 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
41015 { $as_echo "$as_me:$LINENO: result: yes" >&5
41016$as_echo "yes" >&6; }
41017 have_cairo=yes
41018fi
41019 { $as_echo "$as_me:$LINENO: result: " >&5
41020$as_echo "" >&6; }
41021fi
41022
41023if test "$have_rsvg" = 'yes'; then
41024
41025cat >>confdefs.h <<\_ACEOF
41026#define RSVG_DELEGATE 1
41027_ACEOF
41028
41029 if test "$with_modules" = 'no'; then
41030 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
41031 fi
41032fi
41033
41034if test "$have_cairo" = 'yes'; then
41035
41036cat >>confdefs.h <<\_ACEOF
41037#define CAIRO_DELEGATE 1
41038_ACEOF
41039
41040 if test "$with_modules" = 'no'; then
41041 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
41042 fi
41043fi
41044
41045 if test "$have_rsvg" = 'yes'; then
41046 RSVG_DELEGATE_TRUE=
41047 RSVG_DELEGATE_FALSE='#'
41048else
41049 RSVG_DELEGATE_TRUE='#'
41050 RSVG_DELEGATE_FALSE=
41051fi
41052
41053 if test "$have_cairo" = 'yes'; then
41054 CAIRO_DELEGATE_TRUE=
41055 CAIRO_DELEGATE_FALSE='#'
41056else
41057 CAIRO_DELEGATE_TRUE='#'
41058 CAIRO_DELEGATE_FALSE=
41059fi
41060
41061
41062
41063
41064
41065#
41066# Check for TIFF delegate library.
41067#
41068
41069# Check whether --with-tiff was given.
41070if test "${with_tiff+set}" = set; then
41071 withval=$with_tiff; with_tiff=$withval
41072else
41073 with_tiff='yes'
41074fi
41075
41076
41077if test "$with_tiff" != 'yes'; then
41078 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
41079fi
41080
41081have_tiff='no'
41082TIFF_LIBS=''
41083if test "$with_tiff" != 'no'; then
41084 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
41085$as_echo "-------------------------------------------------------------" >&6; }
41086 { $as_echo "$as_me:$LINENO: checking for TIFF" >&5
41087$as_echo_n "checking for TIFF... " >&6; }
41088 { $as_echo "$as_me:$LINENO: result: " >&5
41089$as_echo "" >&6; }
41090 failed=0
41091 passed=0
41092 if test "${ac_cv_header_tiff_h+set}" = set; then
41093 { $as_echo "$as_me:$LINENO: checking for tiff.h" >&5
41094$as_echo_n "checking for tiff.h... " >&6; }
41095if test "${ac_cv_header_tiff_h+set}" = set; then
41096 $as_echo_n "(cached) " >&6
41097fi
41098{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5
41099$as_echo "$ac_cv_header_tiff_h" >&6; }
41100else
41101 # Is the header compilable?
41102{ $as_echo "$as_me:$LINENO: checking tiff.h usability" >&5
41103$as_echo_n "checking tiff.h usability... " >&6; }
41104cat >conftest.$ac_ext <<_ACEOF
41105/* confdefs.h. */
41106_ACEOF
41107cat confdefs.h >>conftest.$ac_ext
41108cat >>conftest.$ac_ext <<_ACEOF
41109/* end confdefs.h. */
41110$ac_includes_default
41111#include <tiff.h>
41112_ACEOF
41113rm -f conftest.$ac_objext
41114if { (ac_try="$ac_compile"
41115case "(($ac_try" in
41116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41117 *) ac_try_echo=$ac_try;;
41118esac
41119eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41120$as_echo "$ac_try_echo") >&5
41121 (eval "$ac_compile") 2>conftest.er1
41122 ac_status=$?
41123 grep -v '^ *+' conftest.er1 >conftest.err
41124 rm -f conftest.er1
41125 cat conftest.err >&5
41126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41127 (exit $ac_status); } && {
41128 test -z "$ac_c_werror_flag" ||
41129 test ! -s conftest.err
41130 } && test -s conftest.$ac_objext; then
41131 ac_header_compiler=yes
41132else
41133 $as_echo "$as_me: failed program was:" >&5
41134sed 's/^/| /' conftest.$ac_ext >&5
41135
41136 ac_header_compiler=no
41137fi
41138
41139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41140{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41141$as_echo "$ac_header_compiler" >&6; }
41142
41143# Is the header present?
41144{ $as_echo "$as_me:$LINENO: checking tiff.h presence" >&5
41145$as_echo_n "checking tiff.h presence... " >&6; }
41146cat >conftest.$ac_ext <<_ACEOF
41147/* confdefs.h. */
41148_ACEOF
41149cat confdefs.h >>conftest.$ac_ext
41150cat >>conftest.$ac_ext <<_ACEOF
41151/* end confdefs.h. */
41152#include <tiff.h>
41153_ACEOF
41154if { (ac_try="$ac_cpp conftest.$ac_ext"
41155case "(($ac_try" in
41156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41157 *) ac_try_echo=$ac_try;;
41158esac
41159eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41160$as_echo "$ac_try_echo") >&5
41161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41162 ac_status=$?
41163 grep -v '^ *+' conftest.er1 >conftest.err
41164 rm -f conftest.er1
41165 cat conftest.err >&5
41166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41167 (exit $ac_status); } >/dev/null && {
41168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41169 test ! -s conftest.err
41170 }; then
41171 ac_header_preproc=yes
41172else
41173 $as_echo "$as_me: failed program was:" >&5
41174sed 's/^/| /' conftest.$ac_ext >&5
41175
41176 ac_header_preproc=no
41177fi
41178
41179rm -f conftest.err conftest.$ac_ext
41180{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41181$as_echo "$ac_header_preproc" >&6; }
41182
41183# So? What about this header?
41184case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41185 yes:no: )
41186 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&5
41187$as_echo "$as_me: WARNING: tiff.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41188 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the compiler's result" >&5
41189$as_echo "$as_me: WARNING: tiff.h: proceeding with the compiler's result" >&2;}
41190 ac_header_preproc=yes
41191 ;;
41192 no:yes:* )
41193 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: present but cannot be compiled" >&5
41194$as_echo "$as_me: WARNING: tiff.h: present but cannot be compiled" >&2;}
41195 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: check for missing prerequisite headers?" >&5
41196$as_echo "$as_me: WARNING: tiff.h: check for missing prerequisite headers?" >&2;}
41197 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: see the Autoconf documentation" >&5
41198$as_echo "$as_me: WARNING: tiff.h: see the Autoconf documentation" >&2;}
41199 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: section \"Present But Cannot Be Compiled\"" >&5
41200$as_echo "$as_me: WARNING: tiff.h: section \"Present But Cannot Be Compiled\"" >&2;}
41201 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: proceeding with the preprocessor's result" >&5
41202$as_echo "$as_me: WARNING: tiff.h: proceeding with the preprocessor's result" >&2;}
41203 { $as_echo "$as_me:$LINENO: WARNING: tiff.h: in the future, the compiler will take precedence" >&5
41204$as_echo "$as_me: WARNING: tiff.h: in the future, the compiler will take precedence" >&2;}
41205 ( cat <<\_ASBOX
41206## ----------------------------------------- ##
41207## Report this to http://www.imagemagick.org ##
41208## ----------------------------------------- ##
41209_ASBOX
41210 ) | sed "s/^/$as_me: WARNING: /" >&2
41211 ;;
41212esac
41213{ $as_echo "$as_me:$LINENO: checking for tiff.h" >&5
41214$as_echo_n "checking for tiff.h... " >&6; }
41215if test "${ac_cv_header_tiff_h+set}" = set; then
41216 $as_echo_n "(cached) " >&6
41217else
41218 ac_cv_header_tiff_h=$ac_header_preproc
41219fi
41220{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiff_h" >&5
41221$as_echo "$ac_cv_header_tiff_h" >&6; }
41222
41223fi
41224if test "x$ac_cv_header_tiff_h" = x""yes; then
41225 passed=`expr $passed + 1`
41226else
41227 failed=`expr $failed + 1`
41228fi
41229
41230
41231 if test "${ac_cv_header_tiffio_h+set}" = set; then
41232 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
41233$as_echo_n "checking for tiffio.h... " >&6; }
41234if test "${ac_cv_header_tiffio_h+set}" = set; then
41235 $as_echo_n "(cached) " >&6
41236fi
41237{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
41238$as_echo "$ac_cv_header_tiffio_h" >&6; }
41239else
41240 # Is the header compilable?
41241{ $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
41242$as_echo_n "checking tiffio.h usability... " >&6; }
41243cat >conftest.$ac_ext <<_ACEOF
41244/* confdefs.h. */
41245_ACEOF
41246cat confdefs.h >>conftest.$ac_ext
41247cat >>conftest.$ac_ext <<_ACEOF
41248/* end confdefs.h. */
41249$ac_includes_default
41250#include <tiffio.h>
41251_ACEOF
41252rm -f conftest.$ac_objext
41253if { (ac_try="$ac_compile"
41254case "(($ac_try" in
41255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41256 *) ac_try_echo=$ac_try;;
41257esac
41258eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41259$as_echo "$ac_try_echo") >&5
41260 (eval "$ac_compile") 2>conftest.er1
41261 ac_status=$?
41262 grep -v '^ *+' conftest.er1 >conftest.err
41263 rm -f conftest.er1
41264 cat conftest.err >&5
41265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41266 (exit $ac_status); } && {
41267 test -z "$ac_c_werror_flag" ||
41268 test ! -s conftest.err
41269 } && test -s conftest.$ac_objext; then
41270 ac_header_compiler=yes
41271else
41272 $as_echo "$as_me: failed program was:" >&5
41273sed 's/^/| /' conftest.$ac_ext >&5
41274
41275 ac_header_compiler=no
41276fi
41277
41278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41279{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41280$as_echo "$ac_header_compiler" >&6; }
41281
41282# Is the header present?
41283{ $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
41284$as_echo_n "checking tiffio.h presence... " >&6; }
41285cat >conftest.$ac_ext <<_ACEOF
41286/* confdefs.h. */
41287_ACEOF
41288cat confdefs.h >>conftest.$ac_ext
41289cat >>conftest.$ac_ext <<_ACEOF
41290/* end confdefs.h. */
41291#include <tiffio.h>
41292_ACEOF
41293if { (ac_try="$ac_cpp conftest.$ac_ext"
41294case "(($ac_try" in
41295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41296 *) ac_try_echo=$ac_try;;
41297esac
41298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41299$as_echo "$ac_try_echo") >&5
41300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41301 ac_status=$?
41302 grep -v '^ *+' conftest.er1 >conftest.err
41303 rm -f conftest.er1
41304 cat conftest.err >&5
41305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41306 (exit $ac_status); } >/dev/null && {
41307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41308 test ! -s conftest.err
41309 }; then
41310 ac_header_preproc=yes
41311else
41312 $as_echo "$as_me: failed program was:" >&5
41313sed 's/^/| /' conftest.$ac_ext >&5
41314
41315 ac_header_preproc=no
41316fi
41317
41318rm -f conftest.err conftest.$ac_ext
41319{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41320$as_echo "$ac_header_preproc" >&6; }
41321
41322# So? What about this header?
41323case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41324 yes:no: )
41325 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
41326$as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
41327 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
41328$as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
41329 ac_header_preproc=yes
41330 ;;
41331 no:yes:* )
41332 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
41333$as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
41334 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
41335$as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
41336 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
41337$as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
41338 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
41339$as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
41340 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
41341$as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
41342 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
41343$as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
41344 ( cat <<\_ASBOX
41345## ----------------------------------------- ##
41346## Report this to http://www.imagemagick.org ##
41347## ----------------------------------------- ##
41348_ASBOX
41349 ) | sed "s/^/$as_me: WARNING: /" >&2
41350 ;;
41351esac
41352{ $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
41353$as_echo_n "checking for tiffio.h... " >&6; }
41354if test "${ac_cv_header_tiffio_h+set}" = set; then
41355 $as_echo_n "(cached) " >&6
41356else
41357 ac_cv_header_tiffio_h=$ac_header_preproc
41358fi
41359{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
41360$as_echo "$ac_cv_header_tiffio_h" >&6; }
41361
41362fi
41363if test "x$ac_cv_header_tiffio_h" = x""yes; then
41364 passed=`expr $passed + 1`
41365else
41366 failed=`expr $failed + 1`
41367fi
41368
41369
41370 { $as_echo "$as_me:$LINENO: checking for TIFFOpen in -ltiff" >&5
41371$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
41372if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then
41373 $as_echo_n "(cached) " >&6
41374else
41375 ac_check_lib_save_LIBS=$LIBS
41376LIBS="-ltiff $LIBS"
41377cat >conftest.$ac_ext <<_ACEOF
41378/* confdefs.h. */
41379_ACEOF
41380cat confdefs.h >>conftest.$ac_ext
41381cat >>conftest.$ac_ext <<_ACEOF
41382/* end confdefs.h. */
41383
41384/* Override any GCC internal prototype to avoid an error.
41385 Use char because int might match the return type of a GCC
41386 builtin and then its argument prototype would still apply. */
41387#ifdef __cplusplus
41388extern "C"
41389#endif
41390char TIFFOpen ();
41391int
41392main ()
41393{
41394return TIFFOpen ();
41395 ;
41396 return 0;
41397}
41398_ACEOF
41399rm -f conftest.$ac_objext conftest$ac_exeext
41400if { (ac_try="$ac_link"
41401case "(($ac_try" in
41402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41403 *) ac_try_echo=$ac_try;;
41404esac
41405eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41406$as_echo "$ac_try_echo") >&5
41407 (eval "$ac_link") 2>conftest.er1
41408 ac_status=$?
41409 grep -v '^ *+' conftest.er1 >conftest.err
41410 rm -f conftest.er1
41411 cat conftest.err >&5
41412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41413 (exit $ac_status); } && {
41414 test -z "$ac_c_werror_flag" ||
41415 test ! -s conftest.err
41416 } && test -s conftest$ac_exeext && {
41417 test "$cross_compiling" = yes ||
41418 $as_test_x conftest$ac_exeext
41419 }; then
41420 ac_cv_lib_tiff_TIFFOpen=yes
41421else
41422 $as_echo "$as_me: failed program was:" >&5
41423sed 's/^/| /' conftest.$ac_ext >&5
41424
41425 ac_cv_lib_tiff_TIFFOpen=no
41426fi
41427
41428rm -rf conftest.dSYM
41429rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41430 conftest$ac_exeext conftest.$ac_ext
41431LIBS=$ac_check_lib_save_LIBS
41432fi
41433{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFOpen" >&5
41434$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
41435if test "x$ac_cv_lib_tiff_TIFFOpen" = x""yes; then
41436 passed=`expr $passed + 1`
41437else
41438 failed=`expr $failed + 1`
41439fi
41440
41441 { $as_echo "$as_me:$LINENO: checking for TIFFClientOpen in -ltiff" >&5
41442$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
41443if test "${ac_cv_lib_tiff_TIFFClientOpen+set}" = set; then
41444 $as_echo_n "(cached) " >&6
41445else
41446 ac_check_lib_save_LIBS=$LIBS
41447LIBS="-ltiff $LIBS"
41448cat >conftest.$ac_ext <<_ACEOF
41449/* confdefs.h. */
41450_ACEOF
41451cat confdefs.h >>conftest.$ac_ext
41452cat >>conftest.$ac_ext <<_ACEOF
41453/* end confdefs.h. */
41454
41455/* Override any GCC internal prototype to avoid an error.
41456 Use char because int might match the return type of a GCC
41457 builtin and then its argument prototype would still apply. */
41458#ifdef __cplusplus
41459extern "C"
41460#endif
41461char TIFFClientOpen ();
41462int
41463main ()
41464{
41465return TIFFClientOpen ();
41466 ;
41467 return 0;
41468}
41469_ACEOF
41470rm -f conftest.$ac_objext conftest$ac_exeext
41471if { (ac_try="$ac_link"
41472case "(($ac_try" in
41473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41474 *) ac_try_echo=$ac_try;;
41475esac
41476eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41477$as_echo "$ac_try_echo") >&5
41478 (eval "$ac_link") 2>conftest.er1
41479 ac_status=$?
41480 grep -v '^ *+' conftest.er1 >conftest.err
41481 rm -f conftest.er1
41482 cat conftest.err >&5
41483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41484 (exit $ac_status); } && {
41485 test -z "$ac_c_werror_flag" ||
41486 test ! -s conftest.err
41487 } && test -s conftest$ac_exeext && {
41488 test "$cross_compiling" = yes ||
41489 $as_test_x conftest$ac_exeext
41490 }; then
41491 ac_cv_lib_tiff_TIFFClientOpen=yes
41492else
41493 $as_echo "$as_me: failed program was:" >&5
41494sed 's/^/| /' conftest.$ac_ext >&5
41495
41496 ac_cv_lib_tiff_TIFFClientOpen=no
41497fi
41498
41499rm -rf conftest.dSYM
41500rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41501 conftest$ac_exeext conftest.$ac_ext
41502LIBS=$ac_check_lib_save_LIBS
41503fi
41504{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
41505$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
41506if test "x$ac_cv_lib_tiff_TIFFClientOpen" = x""yes; then
41507 passed=`expr $passed + 1`
41508else
41509 failed=`expr $failed + 1`
41510fi
41511
41512 { $as_echo "$as_me:$LINENO: checking for TIFFIsByteSwapped in -ltiff" >&5
41513$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
41514if test "${ac_cv_lib_tiff_TIFFIsByteSwapped+set}" = set; then
41515 $as_echo_n "(cached) " >&6
41516else
41517 ac_check_lib_save_LIBS=$LIBS
41518LIBS="-ltiff $LIBS"
41519cat >conftest.$ac_ext <<_ACEOF
41520/* confdefs.h. */
41521_ACEOF
41522cat confdefs.h >>conftest.$ac_ext
41523cat >>conftest.$ac_ext <<_ACEOF
41524/* end confdefs.h. */
41525
41526/* Override any GCC internal prototype to avoid an error.
41527 Use char because int might match the return type of a GCC
41528 builtin and then its argument prototype would still apply. */
41529#ifdef __cplusplus
41530extern "C"
41531#endif
41532char TIFFIsByteSwapped ();
41533int
41534main ()
41535{
41536return TIFFIsByteSwapped ();
41537 ;
41538 return 0;
41539}
41540_ACEOF
41541rm -f conftest.$ac_objext conftest$ac_exeext
41542if { (ac_try="$ac_link"
41543case "(($ac_try" in
41544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41545 *) ac_try_echo=$ac_try;;
41546esac
41547eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41548$as_echo "$ac_try_echo") >&5
41549 (eval "$ac_link") 2>conftest.er1
41550 ac_status=$?
41551 grep -v '^ *+' conftest.er1 >conftest.err
41552 rm -f conftest.er1
41553 cat conftest.err >&5
41554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41555 (exit $ac_status); } && {
41556 test -z "$ac_c_werror_flag" ||
41557 test ! -s conftest.err
41558 } && test -s conftest$ac_exeext && {
41559 test "$cross_compiling" = yes ||
41560 $as_test_x conftest$ac_exeext
41561 }; then
41562 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
41563else
41564 $as_echo "$as_me: failed program was:" >&5
41565sed 's/^/| /' conftest.$ac_ext >&5
41566
41567 ac_cv_lib_tiff_TIFFIsByteSwapped=no
41568fi
41569
41570rm -rf conftest.dSYM
41571rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41572 conftest$ac_exeext conftest.$ac_ext
41573LIBS=$ac_check_lib_save_LIBS
41574fi
41575{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
41576$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
41577if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = x""yes; then
41578 passed=`expr $passed + 1`
41579else
41580 failed=`expr $failed + 1`
41581fi
41582
41583 { $as_echo "$as_me:$LINENO: checking for TIFFReadRGBATile in -ltiff" >&5
41584$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
41585if test "${ac_cv_lib_tiff_TIFFReadRGBATile+set}" = set; then
41586 $as_echo_n "(cached) " >&6
41587else
41588 ac_check_lib_save_LIBS=$LIBS
41589LIBS="-ltiff $LIBS"
41590cat >conftest.$ac_ext <<_ACEOF
41591/* confdefs.h. */
41592_ACEOF
41593cat confdefs.h >>conftest.$ac_ext
41594cat >>conftest.$ac_ext <<_ACEOF
41595/* end confdefs.h. */
41596
41597/* Override any GCC internal prototype to avoid an error.
41598 Use char because int might match the return type of a GCC
41599 builtin and then its argument prototype would still apply. */
41600#ifdef __cplusplus
41601extern "C"
41602#endif
41603char TIFFReadRGBATile ();
41604int
41605main ()
41606{
41607return TIFFReadRGBATile ();
41608 ;
41609 return 0;
41610}
41611_ACEOF
41612rm -f conftest.$ac_objext conftest$ac_exeext
41613if { (ac_try="$ac_link"
41614case "(($ac_try" in
41615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41616 *) ac_try_echo=$ac_try;;
41617esac
41618eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41619$as_echo "$ac_try_echo") >&5
41620 (eval "$ac_link") 2>conftest.er1
41621 ac_status=$?
41622 grep -v '^ *+' conftest.er1 >conftest.err
41623 rm -f conftest.er1
41624 cat conftest.err >&5
41625 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41626 (exit $ac_status); } && {
41627 test -z "$ac_c_werror_flag" ||
41628 test ! -s conftest.err
41629 } && test -s conftest$ac_exeext && {
41630 test "$cross_compiling" = yes ||
41631 $as_test_x conftest$ac_exeext
41632 }; then
41633 ac_cv_lib_tiff_TIFFReadRGBATile=yes
41634else
41635 $as_echo "$as_me: failed program was:" >&5
41636sed 's/^/| /' conftest.$ac_ext >&5
41637
41638 ac_cv_lib_tiff_TIFFReadRGBATile=no
41639fi
41640
41641rm -rf conftest.dSYM
41642rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41643 conftest$ac_exeext conftest.$ac_ext
41644LIBS=$ac_check_lib_save_LIBS
41645fi
41646{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
41647$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
41648if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = x""yes; then
41649 passed=`expr $passed + 1`
41650else
41651 failed=`expr $failed + 1`
41652fi
41653
41654 { $as_echo "$as_me:$LINENO: checking for TIFFReadRGBAStrip in -ltiff" >&5
41655$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
41656if test "${ac_cv_lib_tiff_TIFFReadRGBAStrip+set}" = set; then
41657 $as_echo_n "(cached) " >&6
41658else
41659 ac_check_lib_save_LIBS=$LIBS
41660LIBS="-ltiff $LIBS"
41661cat >conftest.$ac_ext <<_ACEOF
41662/* confdefs.h. */
41663_ACEOF
41664cat confdefs.h >>conftest.$ac_ext
41665cat >>conftest.$ac_ext <<_ACEOF
41666/* end confdefs.h. */
41667
41668/* Override any GCC internal prototype to avoid an error.
41669 Use char because int might match the return type of a GCC
41670 builtin and then its argument prototype would still apply. */
41671#ifdef __cplusplus
41672extern "C"
41673#endif
41674char TIFFReadRGBAStrip ();
41675int
41676main ()
41677{
41678return TIFFReadRGBAStrip ();
41679 ;
41680 return 0;
41681}
41682_ACEOF
41683rm -f conftest.$ac_objext conftest$ac_exeext
41684if { (ac_try="$ac_link"
41685case "(($ac_try" in
41686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41687 *) ac_try_echo=$ac_try;;
41688esac
41689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41690$as_echo "$ac_try_echo") >&5
41691 (eval "$ac_link") 2>conftest.er1
41692 ac_status=$?
41693 grep -v '^ *+' conftest.er1 >conftest.err
41694 rm -f conftest.er1
41695 cat conftest.err >&5
41696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41697 (exit $ac_status); } && {
41698 test -z "$ac_c_werror_flag" ||
41699 test ! -s conftest.err
41700 } && test -s conftest$ac_exeext && {
41701 test "$cross_compiling" = yes ||
41702 $as_test_x conftest$ac_exeext
41703 }; then
41704 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
41705else
41706 $as_echo "$as_me: failed program was:" >&5
41707sed 's/^/| /' conftest.$ac_ext >&5
41708
41709 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
41710fi
41711
41712rm -rf conftest.dSYM
41713rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41714 conftest$ac_exeext conftest.$ac_ext
41715LIBS=$ac_check_lib_save_LIBS
41716fi
41717{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
41718$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
41719if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = x""yes; then
41720 passed=`expr $passed + 1`
41721else
41722 failed=`expr $failed + 1`
41723fi
41724
41725 { $as_echo "$as_me:$LINENO: checking if TIFF package is complete" >&5
41726$as_echo_n "checking if TIFF package is complete... " >&6; }
41727 if test $passed -gt 0; then
41728 if test $failed -gt 0; then
41729 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
41730$as_echo "no -- some components failed test" >&6; }
41731 have_tiff='no (failed tests)'
41732 else
41733 TIFF_LIBS='-ltiff'
41734 LIBS="$TIFF_LIBS $LIBS"
41735
41736cat >>confdefs.h <<\_ACEOF
41737#define TIFF_DELEGATE 1
41738_ACEOF
41739
41740 { $as_echo "$as_me:$LINENO: result: yes" >&5
41741$as_echo "yes" >&6; }
41742 have_tiff='yes'
41743
41744for ac_header in tiffconf.h
41745do
41746as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
41747if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41748 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
41749$as_echo_n "checking for $ac_header... " >&6; }
41750if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41751 $as_echo_n "(cached) " >&6
41752fi
41753ac_res=`eval 'as_val=${'$as_ac_Header'}
41754 $as_echo "$as_val"'`
41755 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41756$as_echo "$ac_res" >&6; }
41757else
41758 # Is the header compilable?
41759{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
41760$as_echo_n "checking $ac_header usability... " >&6; }
41761cat >conftest.$ac_ext <<_ACEOF
41762/* confdefs.h. */
41763_ACEOF
41764cat confdefs.h >>conftest.$ac_ext
41765cat >>conftest.$ac_ext <<_ACEOF
41766/* end confdefs.h. */
41767$ac_includes_default
41768#include <$ac_header>
41769_ACEOF
41770rm -f conftest.$ac_objext
41771if { (ac_try="$ac_compile"
41772case "(($ac_try" in
41773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41774 *) ac_try_echo=$ac_try;;
41775esac
41776eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41777$as_echo "$ac_try_echo") >&5
41778 (eval "$ac_compile") 2>conftest.er1
41779 ac_status=$?
41780 grep -v '^ *+' conftest.er1 >conftest.err
41781 rm -f conftest.er1
41782 cat conftest.err >&5
41783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41784 (exit $ac_status); } && {
41785 test -z "$ac_c_werror_flag" ||
41786 test ! -s conftest.err
41787 } && test -s conftest.$ac_objext; then
41788 ac_header_compiler=yes
41789else
41790 $as_echo "$as_me: failed program was:" >&5
41791sed 's/^/| /' conftest.$ac_ext >&5
41792
41793 ac_header_compiler=no
41794fi
41795
41796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41797{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
41798$as_echo "$ac_header_compiler" >&6; }
41799
41800# Is the header present?
41801{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
41802$as_echo_n "checking $ac_header presence... " >&6; }
41803cat >conftest.$ac_ext <<_ACEOF
41804/* confdefs.h. */
41805_ACEOF
41806cat confdefs.h >>conftest.$ac_ext
41807cat >>conftest.$ac_ext <<_ACEOF
41808/* end confdefs.h. */
41809#include <$ac_header>
41810_ACEOF
41811if { (ac_try="$ac_cpp conftest.$ac_ext"
41812case "(($ac_try" in
41813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41814 *) ac_try_echo=$ac_try;;
41815esac
41816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41817$as_echo "$ac_try_echo") >&5
41818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
41819 ac_status=$?
41820 grep -v '^ *+' conftest.er1 >conftest.err
41821 rm -f conftest.er1
41822 cat conftest.err >&5
41823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41824 (exit $ac_status); } >/dev/null && {
41825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
41826 test ! -s conftest.err
41827 }; then
41828 ac_header_preproc=yes
41829else
41830 $as_echo "$as_me: failed program was:" >&5
41831sed 's/^/| /' conftest.$ac_ext >&5
41832
41833 ac_header_preproc=no
41834fi
41835
41836rm -f conftest.err conftest.$ac_ext
41837{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
41838$as_echo "$ac_header_preproc" >&6; }
41839
41840# So? What about this header?
41841case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
41842 yes:no: )
41843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
41844$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
41845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
41846$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
41847 ac_header_preproc=yes
41848 ;;
41849 no:yes:* )
41850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
41851$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
41852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
41853$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
41854 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
41855$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
41856 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
41857$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
41858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
41859$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
41860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
41861$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
41862 ( cat <<\_ASBOX
41863## ----------------------------------------- ##
41864## Report this to http://www.imagemagick.org ##
41865## ----------------------------------------- ##
41866_ASBOX
41867 ) | sed "s/^/$as_me: WARNING: /" >&2
41868 ;;
41869esac
41870{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
41871$as_echo_n "checking for $ac_header... " >&6; }
41872if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41873 $as_echo_n "(cached) " >&6
41874else
41875 eval "$as_ac_Header=\$ac_header_preproc"
41876fi
41877ac_res=`eval 'as_val=${'$as_ac_Header'}
41878 $as_echo "$as_val"'`
41879 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41880$as_echo "$ac_res" >&6; }
41881
41882fi
41883as_val=`eval 'as_val=${'$as_ac_Header'}
41884 $as_echo "$as_val"'`
41885 if test "x$as_val" = x""yes; then
41886 cat >>confdefs.h <<_ACEOF
41887#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41888_ACEOF
41889
41890fi
41891
41892done
41893
41894
41895
41896
41897
41898
41899
41900
41901for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
41902 TIFFReadEXIFDirectory TIFFSetErrorHandlerExt TIFFSetTagExtender \
41903 TIFFSetWarningHandlerExt TIFFSwabArrayOfTriples
41904do
41905as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41906{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41907$as_echo_n "checking for $ac_func... " >&6; }
41908if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41909 $as_echo_n "(cached) " >&6
41910else
41911 cat >conftest.$ac_ext <<_ACEOF
41912/* confdefs.h. */
41913_ACEOF
41914cat confdefs.h >>conftest.$ac_ext
41915cat >>conftest.$ac_ext <<_ACEOF
41916/* end confdefs.h. */
41917/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
41919#define $ac_func innocuous_$ac_func
41920
41921/* System header to define __stub macros and hopefully few prototypes,
41922 which can conflict with char $ac_func (); below.
41923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41924 <limits.h> exists even on freestanding compilers. */
41925
41926#ifdef __STDC__
41927# include <limits.h>
41928#else
41929# include <assert.h>
41930#endif
41931
41932#undef $ac_func
41933
41934/* Override any GCC internal prototype to avoid an error.
41935 Use char because int might match the return type of a GCC
41936 builtin and then its argument prototype would still apply. */
41937#ifdef __cplusplus
41938extern "C"
41939#endif
41940char $ac_func ();
41941/* The GNU C library defines this for functions which it implements
41942 to always fail with ENOSYS. Some functions are actually named
41943 something starting with __ and the normal name is an alias. */
41944#if defined __stub_$ac_func || defined __stub___$ac_func
41945choke me
41946#endif
41947
41948int
41949main ()
41950{
41951return $ac_func ();
41952 ;
41953 return 0;
41954}
41955_ACEOF
41956rm -f conftest.$ac_objext conftest$ac_exeext
41957if { (ac_try="$ac_link"
41958case "(($ac_try" in
41959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41960 *) ac_try_echo=$ac_try;;
41961esac
41962eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41963$as_echo "$ac_try_echo") >&5
41964 (eval "$ac_link") 2>conftest.er1
41965 ac_status=$?
41966 grep -v '^ *+' conftest.er1 >conftest.err
41967 rm -f conftest.er1
41968 cat conftest.err >&5
41969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41970 (exit $ac_status); } && {
41971 test -z "$ac_c_werror_flag" ||
41972 test ! -s conftest.err
41973 } && test -s conftest$ac_exeext && {
41974 test "$cross_compiling" = yes ||
41975 $as_test_x conftest$ac_exeext
41976 }; then
41977 eval "$as_ac_var=yes"
41978else
41979 $as_echo "$as_me: failed program was:" >&5
41980sed 's/^/| /' conftest.$ac_ext >&5
41981
41982 eval "$as_ac_var=no"
41983fi
41984
41985rm -rf conftest.dSYM
41986rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41987 conftest$ac_exeext conftest.$ac_ext
41988fi
41989ac_res=`eval 'as_val=${'$as_ac_var'}
41990 $as_echo "$as_val"'`
41991 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41992$as_echo "$ac_res" >&6; }
41993as_val=`eval 'as_val=${'$as_ac_var'}
41994 $as_echo "$as_val"'`
41995 if test "x$as_val" = x""yes; then
41996 cat >>confdefs.h <<_ACEOF
41997#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41998_ACEOF
41999
42000fi
42001done
42002
42003 fi
42004 else
42005 { $as_echo "$as_me:$LINENO: result: no" >&5
42006$as_echo "no" >&6; }
42007 fi
42008fi
42009 if test "$have_tiff" = 'yes'; then
42010 TIFF_DELEGATE_TRUE=
42011 TIFF_DELEGATE_FALSE='#'
42012else
42013 TIFF_DELEGATE_TRUE='#'
42014 TIFF_DELEGATE_FALSE=
42015fi
42016
42017
42018
42019
42020#
42021# Set Windows font directory.
42022#
42023
42024# Check whether --with-windows-font-dir was given.
42025if test "${with_windows_font_dir+set}" = set; then
42026 withval=$with_windows_font_dir; with_windows_font_dir=$withval
42027else
42028 with_windows_font_dir=''
42029fi
42030
42031if test "$with_windows_font_dir" != '' ; then
42032 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
42033fi
42034
42035
42036#
42037# Check for WMF delegate library.
42038#
42039
42040# Check whether --with-wmf was given.
42041if test "${with_wmf+set}" = set; then
42042 withval=$with_wmf; with_wmf=$withval
42043else
42044 with_wmf=$with_modules
42045fi
42046
42047
42048if test "$with_wmf" != 'yes'; then
42049 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
42050fi
42051
42052have_wmf='no'
42053WMF_LIBS=''
42054WMF_LIBS_DEPS=''
42055OLIBS="$LIBS"
42056if test "$with_wmf" != 'no'; then
42057 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
42058$as_echo "-------------------------------------------------------------" >&6; }
42059 { $as_echo "$as_me:$LINENO: checking for WMF" >&5
42060$as_echo_n "checking for WMF... " >&6; }
42061 { $as_echo "$as_me:$LINENO: result: " >&5
42062$as_echo "" >&6; }
42063 have_libwmf='no'
42064 have_libwmflite='no'
42065 have_libwmf_ipa_h='no'
42066
42067 { $as_echo "$as_me:$LINENO: checking for libwmf/ipa.h" >&5
42068$as_echo_n "checking for libwmf/ipa.h... " >&6; }
42069if test "${ac_cv_header_libwmf_ipa_h+set}" = set; then
42070 $as_echo_n "(cached) " >&6
42071else
42072 cat >conftest.$ac_ext <<_ACEOF
42073/* confdefs.h. */
42074_ACEOF
42075cat confdefs.h >>conftest.$ac_ext
42076cat >>conftest.$ac_ext <<_ACEOF
42077/* end confdefs.h. */
42078$FT2BUILD_H
42079
42080#include <libwmf/ipa.h>
42081_ACEOF
42082rm -f conftest.$ac_objext
42083if { (ac_try="$ac_compile"
42084case "(($ac_try" in
42085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42086 *) ac_try_echo=$ac_try;;
42087esac
42088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42089$as_echo "$ac_try_echo") >&5
42090 (eval "$ac_compile") 2>conftest.er1
42091 ac_status=$?
42092 grep -v '^ *+' conftest.er1 >conftest.err
42093 rm -f conftest.er1
42094 cat conftest.err >&5
42095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42096 (exit $ac_status); } && {
42097 test -z "$ac_c_werror_flag" ||
42098 test ! -s conftest.err
42099 } && test -s conftest.$ac_objext; then
42100 ac_cv_header_libwmf_ipa_h=yes
42101else
42102 $as_echo "$as_me: failed program was:" >&5
42103sed 's/^/| /' conftest.$ac_ext >&5
42104
42105 ac_cv_header_libwmf_ipa_h=no
42106fi
42107
42108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42109fi
42110{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libwmf_ipa_h" >&5
42111$as_echo "$ac_cv_header_libwmf_ipa_h" >&6; }
42112if test "x$ac_cv_header_libwmf_ipa_h" = x""yes; then
42113 have_libwmf_ipa_h='yes'
42114fi
42115
42116
42117 if test "$have_libwmf_ipa_h" = 'yes'; then
42118 { $as_echo "$as_me:$LINENO: checking for wmf_lite_create in -lwmflite" >&5
42119$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
42120if test "${ac_cv_lib_wmflite_wmf_lite_create+set}" = set; then
42121 $as_echo_n "(cached) " >&6
42122else
42123 ac_check_lib_save_LIBS=$LIBS
42124LIBS="-lwmflite $LIBS"
42125cat >conftest.$ac_ext <<_ACEOF
42126/* confdefs.h. */
42127_ACEOF
42128cat confdefs.h >>conftest.$ac_ext
42129cat >>conftest.$ac_ext <<_ACEOF
42130/* end confdefs.h. */
42131
42132/* Override any GCC internal prototype to avoid an error.
42133 Use char because int might match the return type of a GCC
42134 builtin and then its argument prototype would still apply. */
42135#ifdef __cplusplus
42136extern "C"
42137#endif
42138char wmf_lite_create ();
42139int
42140main ()
42141{
42142return wmf_lite_create ();
42143 ;
42144 return 0;
42145}
42146_ACEOF
42147rm -f conftest.$ac_objext conftest$ac_exeext
42148if { (ac_try="$ac_link"
42149case "(($ac_try" in
42150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42151 *) ac_try_echo=$ac_try;;
42152esac
42153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42154$as_echo "$ac_try_echo") >&5
42155 (eval "$ac_link") 2>conftest.er1
42156 ac_status=$?
42157 grep -v '^ *+' conftest.er1 >conftest.err
42158 rm -f conftest.er1
42159 cat conftest.err >&5
42160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42161 (exit $ac_status); } && {
42162 test -z "$ac_c_werror_flag" ||
42163 test ! -s conftest.err
42164 } && test -s conftest$ac_exeext && {
42165 test "$cross_compiling" = yes ||
42166 $as_test_x conftest$ac_exeext
42167 }; then
42168 ac_cv_lib_wmflite_wmf_lite_create=yes
42169else
42170 $as_echo "$as_me: failed program was:" >&5
42171sed 's/^/| /' conftest.$ac_ext >&5
42172
42173 ac_cv_lib_wmflite_wmf_lite_create=no
42174fi
42175
42176rm -rf conftest.dSYM
42177rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42178 conftest$ac_exeext conftest.$ac_ext
42179LIBS=$ac_check_lib_save_LIBS
42180fi
42181{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
42182$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
42183if test "x$ac_cv_lib_wmflite_wmf_lite_create" = x""yes; then
42184 have_libwmflite='yes'
42185fi
42186
42187 if test "$have_libwmflite" = 'yes'; then
42188
42189cat >>confdefs.h <<\_ACEOF
42190#define WMFLITE_DELEGATE 1
42191_ACEOF
42192
42193 WMF_LIBS='-lwmflite'
42194 LIBS="$WMF_LIBS $LIBS"
42195 have_wmf='yes'
42196 else
42197 WMF_LIBS_DEPS=''
42198 WMF_CONFIG_LIBS=`libwmf-config --libs`
42199 for lib in xml2 expat freetype jpeg png z; do
42200 testlib="-l${lib}"
42201 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
42202 done
42203 { $as_echo "$as_me:$LINENO: checking for wmf_api_create in -lwmf" >&5
42204$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
42205if test "${ac_cv_lib_wmf_wmf_api_create+set}" = set; then
42206 $as_echo_n "(cached) " >&6
42207else
42208 ac_check_lib_save_LIBS=$LIBS
42209LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
42210cat >conftest.$ac_ext <<_ACEOF
42211/* confdefs.h. */
42212_ACEOF
42213cat confdefs.h >>conftest.$ac_ext
42214cat >>conftest.$ac_ext <<_ACEOF
42215/* end confdefs.h. */
42216
42217/* Override any GCC internal prototype to avoid an error.
42218 Use char because int might match the return type of a GCC
42219 builtin and then its argument prototype would still apply. */
42220#ifdef __cplusplus
42221extern "C"
42222#endif
42223char wmf_api_create ();
42224int
42225main ()
42226{
42227return wmf_api_create ();
42228 ;
42229 return 0;
42230}
42231_ACEOF
42232rm -f conftest.$ac_objext conftest$ac_exeext
42233if { (ac_try="$ac_link"
42234case "(($ac_try" in
42235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42236 *) ac_try_echo=$ac_try;;
42237esac
42238eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42239$as_echo "$ac_try_echo") >&5
42240 (eval "$ac_link") 2>conftest.er1
42241 ac_status=$?
42242 grep -v '^ *+' conftest.er1 >conftest.err
42243 rm -f conftest.er1
42244 cat conftest.err >&5
42245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42246 (exit $ac_status); } && {
42247 test -z "$ac_c_werror_flag" ||
42248 test ! -s conftest.err
42249 } && test -s conftest$ac_exeext && {
42250 test "$cross_compiling" = yes ||
42251 $as_test_x conftest$ac_exeext
42252 }; then
42253 ac_cv_lib_wmf_wmf_api_create=yes
42254else
42255 $as_echo "$as_me: failed program was:" >&5
42256sed 's/^/| /' conftest.$ac_ext >&5
42257
42258 ac_cv_lib_wmf_wmf_api_create=no
42259fi
42260
42261rm -rf conftest.dSYM
42262rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42263 conftest$ac_exeext conftest.$ac_ext
42264LIBS=$ac_check_lib_save_LIBS
42265fi
42266{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_wmf_wmf_api_create" >&5
42267$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
42268if test "x$ac_cv_lib_wmf_wmf_api_create" = x""yes; then
42269 have_libwmf='yes'
42270fi
42271
42272 if test "$have_libwmf" = 'yes'; then
42273
42274cat >>confdefs.h <<\_ACEOF
42275#define WMF_DELEGATE 1
42276_ACEOF
42277
42278 WMF_LIBS='-lwmf'
42279 LIBS="$WMF_LIBS $LIBS"
42280 have_wmf='yes'
42281 else
42282 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
42283$as_echo "no -- some components failed test" >&6; }
42284 have_wmf='no (failed tests)'
42285 have_wmflite='no (failed tests)'
42286 LIBS="$OLIBS"
42287 WMF_LIBS=''
42288 fi
42289 fi
42290 fi
42291 { $as_echo "$as_me:$LINENO: checking if WMF package is complete" >&5
42292$as_echo_n "checking if WMF package is complete... " >&6; }
42293 if test "$have_wmf" = 'yes'; then
42294 { $as_echo "$as_me:$LINENO: result: yes" >&5
42295$as_echo "yes" >&6; }
42296 else
42297 { $as_echo "$as_me:$LINENO: result: no" >&5
42298$as_echo "no" >&6; }
42299 fi
42300fi
42301 if test "$have_wmf" = 'yes'; then
42302 WMF_DELEGATE_TRUE=
42303 WMF_DELEGATE_FALSE='#'
42304else
42305 WMF_DELEGATE_TRUE='#'
42306 WMF_DELEGATE_FALSE=
42307fi
42308
42309
42310
42311
42312
42313#
42314# Check for XML delegate library.
42315#
42316
42317# Check whether --with-xml was given.
42318if test "${with_xml+set}" = set; then
42319 withval=$with_xml; with_xml=$withval
42320else
42321 with_xml=$have_x
42322fi
42323
42324
42325if test "$with_xml" != 'yes' ; then
42326 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
42327fi
42328
42329have_xml='no'
42330XML_LIBS=''
42331if test "$with_xml" != 'no'; then
42332 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
42333$as_echo "-------------------------------------------------------------" >&6; }
42334 { $as_echo "$as_me:$LINENO: checking for XML" >&5
42335$as_echo_n "checking for XML... " >&6; }
42336 { $as_echo "$as_me:$LINENO: result: " >&5
42337$as_echo "" >&6; }
42338 PERSIST_LDFLAGS=$LDFLAGS
42339 PERSIST_CPPFLAGS=$CPPFLAGS
42340 xml2_config=''
42341 for ac_prog in xml2-config
42342do
42343 # Extract the first word of "$ac_prog", so it can be a program name with args.
42344set dummy $ac_prog; ac_word=$2
42345{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42346$as_echo_n "checking for $ac_word... " >&6; }
42347if test "${ac_cv_prog_xml2_config+set}" = set; then
42348 $as_echo_n "(cached) " >&6
42349else
42350 if test -n "$xml2_config"; then
42351 ac_cv_prog_xml2_config="$xml2_config" # Let the user override the test.
42352else
42353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42354for as_dir in $PATH
42355do
42356 IFS=$as_save_IFS
42357 test -z "$as_dir" && as_dir=.
42358 for ac_exec_ext in '' $ac_executable_extensions; do
42359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42360 ac_cv_prog_xml2_config="$ac_prog"
42361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42362 break 2
42363 fi
42364done
42365done
42366IFS=$as_save_IFS
42367
42368fi
42369fi
42370xml2_config=$ac_cv_prog_xml2_config
42371if test -n "$xml2_config"; then
42372 { $as_echo "$as_me:$LINENO: result: $xml2_config" >&5
42373$as_echo "$xml2_config" >&6; }
42374else
42375 { $as_echo "$as_me:$LINENO: result: no" >&5
42376$as_echo "no" >&6; }
42377fi
42378
42379
42380 test -n "$xml2_config" && break
42381done
42382 if test -n "$xml2_config"; then
42383 # Debian installs libxml headers under /usr/include/libxml2/libxml with
42384 # the shared library installed under /usr/lib, whereas the package
42385 # installs itself under $prefix/libxml and $prefix/lib.
42386 xml2_prefix=`xml2-config --prefix`
42387 if test -d "${xml2_prefix}/include/libxml2"; then
42388 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
42389 fi
42390 if test "${xml2_prefix}" != '/usr'; then
42391 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
42392 fi
42393 fi
42394 failed=0
42395 passed=0
42396 if test "${ac_cv_header_libxml_parser_h+set}" = set; then
42397 { $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
42398$as_echo_n "checking for libxml/parser.h... " >&6; }
42399if test "${ac_cv_header_libxml_parser_h+set}" = set; then
42400 $as_echo_n "(cached) " >&6
42401fi
42402{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
42403$as_echo "$ac_cv_header_libxml_parser_h" >&6; }
42404else
42405 # Is the header compilable?
42406{ $as_echo "$as_me:$LINENO: checking libxml/parser.h usability" >&5
42407$as_echo_n "checking libxml/parser.h usability... " >&6; }
42408cat >conftest.$ac_ext <<_ACEOF
42409/* confdefs.h. */
42410_ACEOF
42411cat confdefs.h >>conftest.$ac_ext
42412cat >>conftest.$ac_ext <<_ACEOF
42413/* end confdefs.h. */
42414$ac_includes_default
42415#include <libxml/parser.h>
42416_ACEOF
42417rm -f conftest.$ac_objext
42418if { (ac_try="$ac_compile"
42419case "(($ac_try" in
42420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42421 *) ac_try_echo=$ac_try;;
42422esac
42423eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42424$as_echo "$ac_try_echo") >&5
42425 (eval "$ac_compile") 2>conftest.er1
42426 ac_status=$?
42427 grep -v '^ *+' conftest.er1 >conftest.err
42428 rm -f conftest.er1
42429 cat conftest.err >&5
42430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42431 (exit $ac_status); } && {
42432 test -z "$ac_c_werror_flag" ||
42433 test ! -s conftest.err
42434 } && test -s conftest.$ac_objext; then
42435 ac_header_compiler=yes
42436else
42437 $as_echo "$as_me: failed program was:" >&5
42438sed 's/^/| /' conftest.$ac_ext >&5
42439
42440 ac_header_compiler=no
42441fi
42442
42443rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42444{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
42445$as_echo "$ac_header_compiler" >&6; }
42446
42447# Is the header present?
42448{ $as_echo "$as_me:$LINENO: checking libxml/parser.h presence" >&5
42449$as_echo_n "checking libxml/parser.h presence... " >&6; }
42450cat >conftest.$ac_ext <<_ACEOF
42451/* confdefs.h. */
42452_ACEOF
42453cat confdefs.h >>conftest.$ac_ext
42454cat >>conftest.$ac_ext <<_ACEOF
42455/* end confdefs.h. */
42456#include <libxml/parser.h>
42457_ACEOF
42458if { (ac_try="$ac_cpp conftest.$ac_ext"
42459case "(($ac_try" in
42460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42461 *) ac_try_echo=$ac_try;;
42462esac
42463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42464$as_echo "$ac_try_echo") >&5
42465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
42466 ac_status=$?
42467 grep -v '^ *+' conftest.er1 >conftest.err
42468 rm -f conftest.er1
42469 cat conftest.err >&5
42470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42471 (exit $ac_status); } >/dev/null && {
42472 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
42473 test ! -s conftest.err
42474 }; then
42475 ac_header_preproc=yes
42476else
42477 $as_echo "$as_me: failed program was:" >&5
42478sed 's/^/| /' conftest.$ac_ext >&5
42479
42480 ac_header_preproc=no
42481fi
42482
42483rm -f conftest.err conftest.$ac_ext
42484{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
42485$as_echo "$ac_header_preproc" >&6; }
42486
42487# So? What about this header?
42488case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
42489 yes:no: )
42490 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&5
42491$as_echo "$as_me: WARNING: libxml/parser.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
42492 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the compiler's result" >&5
42493$as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the compiler's result" >&2;}
42494 ac_header_preproc=yes
42495 ;;
42496 no:yes:* )
42497 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: present but cannot be compiled" >&5
42498$as_echo "$as_me: WARNING: libxml/parser.h: present but cannot be compiled" >&2;}
42499 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&5
42500$as_echo "$as_me: WARNING: libxml/parser.h: check for missing prerequisite headers?" >&2;}
42501 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: see the Autoconf documentation" >&5
42502$as_echo "$as_me: WARNING: libxml/parser.h: see the Autoconf documentation" >&2;}
42503 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&5
42504$as_echo "$as_me: WARNING: libxml/parser.h: section \"Present But Cannot Be Compiled\"" >&2;}
42505 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&5
42506$as_echo "$as_me: WARNING: libxml/parser.h: proceeding with the preprocessor's result" >&2;}
42507 { $as_echo "$as_me:$LINENO: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&5
42508$as_echo "$as_me: WARNING: libxml/parser.h: in the future, the compiler will take precedence" >&2;}
42509 ( cat <<\_ASBOX
42510## ----------------------------------------- ##
42511## Report this to http://www.imagemagick.org ##
42512## ----------------------------------------- ##
42513_ASBOX
42514 ) | sed "s/^/$as_me: WARNING: /" >&2
42515 ;;
42516esac
42517{ $as_echo "$as_me:$LINENO: checking for libxml/parser.h" >&5
42518$as_echo_n "checking for libxml/parser.h... " >&6; }
42519if test "${ac_cv_header_libxml_parser_h+set}" = set; then
42520 $as_echo_n "(cached) " >&6
42521else
42522 ac_cv_header_libxml_parser_h=$ac_header_preproc
42523fi
42524{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_libxml_parser_h" >&5
42525$as_echo "$ac_cv_header_libxml_parser_h" >&6; }
42526
42527fi
42528if test "x$ac_cv_header_libxml_parser_h" = x""yes; then
42529 passed=`expr $passed + 1`
42530else
42531 failed=`expr $failed + 1`
42532fi
42533
42534
42535 { $as_echo "$as_me:$LINENO: checking for xmlParseExternalEntity in -lxml2" >&5
42536$as_echo_n "checking for xmlParseExternalEntity in -lxml2... " >&6; }
42537if test "${ac_cv_lib_xml2_xmlParseExternalEntity+set}" = set; then
42538 $as_echo_n "(cached) " >&6
42539else
42540 ac_check_lib_save_LIBS=$LIBS
42541LIBS="-lxml2 $LIBS"
42542cat >conftest.$ac_ext <<_ACEOF
42543/* confdefs.h. */
42544_ACEOF
42545cat confdefs.h >>conftest.$ac_ext
42546cat >>conftest.$ac_ext <<_ACEOF
42547/* end confdefs.h. */
42548
42549/* Override any GCC internal prototype to avoid an error.
42550 Use char because int might match the return type of a GCC
42551 builtin and then its argument prototype would still apply. */
42552#ifdef __cplusplus
42553extern "C"
42554#endif
42555char xmlParseExternalEntity ();
42556int
42557main ()
42558{
42559return xmlParseExternalEntity ();
42560 ;
42561 return 0;
42562}
42563_ACEOF
42564rm -f conftest.$ac_objext conftest$ac_exeext
42565if { (ac_try="$ac_link"
42566case "(($ac_try" in
42567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42568 *) ac_try_echo=$ac_try;;
42569esac
42570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42571$as_echo "$ac_try_echo") >&5
42572 (eval "$ac_link") 2>conftest.er1
42573 ac_status=$?
42574 grep -v '^ *+' conftest.er1 >conftest.err
42575 rm -f conftest.er1
42576 cat conftest.err >&5
42577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42578 (exit $ac_status); } && {
42579 test -z "$ac_c_werror_flag" ||
42580 test ! -s conftest.err
42581 } && test -s conftest$ac_exeext && {
42582 test "$cross_compiling" = yes ||
42583 $as_test_x conftest$ac_exeext
42584 }; then
42585 ac_cv_lib_xml2_xmlParseExternalEntity=yes
42586else
42587 $as_echo "$as_me: failed program was:" >&5
42588sed 's/^/| /' conftest.$ac_ext >&5
42589
42590 ac_cv_lib_xml2_xmlParseExternalEntity=no
42591fi
42592
42593rm -rf conftest.dSYM
42594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42595 conftest$ac_exeext conftest.$ac_ext
42596LIBS=$ac_check_lib_save_LIBS
42597fi
42598{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseExternalEntity" >&5
42599$as_echo "$ac_cv_lib_xml2_xmlParseExternalEntity" >&6; }
42600if test "x$ac_cv_lib_xml2_xmlParseExternalEntity" = x""yes; then
42601 passed=`expr $passed + 1`
42602else
42603 failed=`expr $failed + 1`
42604fi
42605
42606 { $as_echo "$as_me:$LINENO: checking if XML package is complete" >&5
42607$as_echo_n "checking if XML package is complete... " >&6; }
42608 if test $passed -gt 0; then
42609 if test $failed -gt 0; then
42610 { $as_echo "$as_me:$LINENO: result: no -- some components failed test" >&5
42611$as_echo "no -- some components failed test" >&6; }
42612 have_xml='no (failed tests)'
42613 LDFLAGS="$PERSIST_LDFLAGS"
42614 CPPFLAGS="$PERSIST_CPPFLAGS"
42615 else
42616 XML_LIBS='-lxml2'
42617 LIBS="$XML_LIBS $LIBS"
42618
42619cat >>confdefs.h <<\_ACEOF
42620#define XML_DELEGATE 1
42621_ACEOF
42622
42623 { $as_echo "$as_me:$LINENO: result: yes" >&5
42624$as_echo "yes" >&6; }
42625 have_xml='yes'
42626 fi
42627 else
42628 { $as_echo "$as_me:$LINENO: result: no" >&5
42629$as_echo "no" >&6; }
42630 fi
42631fi
42632 if test "$have_xml" = 'yes'; then
42633 XML_DELEGATE_TRUE=
42634 XML_DELEGATE_FALSE='#'
42635else
42636 XML_DELEGATE_TRUE='#'
42637 XML_DELEGATE_FALSE=
42638fi
42639
42640
42641
42642
42643# Substitute compiler name to build/link PerlMagick
42644#
42645
42646
42647#
42648# Configure install Paths
42649#
42650
42651# Subdirectory under lib to place ImageMagick lib files
42652LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
42653
42654cat >>confdefs.h <<_ACEOF
42655#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
42656_ACEOF
42657
42658
42659# Path to ImageMagick bin directory
42660EXECUTABLE_PATH="${BIN_DIR}"
42661DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
42662case "${build_os}" in
42663 mingw* )
42664 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
42665 ;;
42666esac
42667
42668cat >>confdefs.h <<_ACEOF
42669#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
42670_ACEOF
42671
42672
42673
42674# Path to ImageMagick lib
42675LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
42676DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
42677case "${build_os}" in
42678 mingw* )
42679 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
42680 ;;
42681esac
42682
42683cat >>confdefs.h <<_ACEOF
42684#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
42685_ACEOF
42686
42687
42688
42689# Subdirectory under lib to place ImageMagick configuration files
42690CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
42691
42692cat >>confdefs.h <<_ACEOF
42693#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
42694_ACEOF
42695
42696CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
42697DEFINE_CONFIGURE_PATH="${LIB_DIR}/${CONFIGURE_RELATIVE_PATH}/"
42698case "${build_os}" in
42699 mingw* )
42700 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
42701 ;;
42702esac
42703
42704cat >>confdefs.h <<_ACEOF
42705#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
42706_ACEOF
42707
42708
42709
42710#
42711# Subdirectory under lib to place ImageMagick coder module files
42712CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
42713
42714cat >>confdefs.h <<_ACEOF
42715#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
42716_ACEOF
42717
42718CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
42719DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
42720case "${build_os}" in
42721 mingw* )
42722 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
42723 ;;
42724esac
42725
42726cat >>confdefs.h <<_ACEOF
42727#define CODER_PATH "$DEFINE_CODER_PATH"
42728_ACEOF
42729
42730
42731
42732#
42733# Subdirectory under lib to place ImageMagick filter module files
42734FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
42735
42736cat >>confdefs.h <<_ACEOF
42737#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
42738_ACEOF
42739
42740FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
42741DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
42742case "${build_os}" in
42743 mingw* )
42744 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
42745 ;;
42746esac
42747
42748cat >>confdefs.h <<_ACEOF
42749#define FILTER_PATH "$DEFINE_FILTER_PATH"
42750_ACEOF
42751
42752
42753
42754#
42755# Path to ImageMagick documentation files
42756DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
42757DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}"
42758DEFINE_DOCUMENTATION_PATH="${DATA_DIR}/doc/${DOCUMENTATION_RELATIVE_PATH}/"
42759case "${build_os}" in
42760 mingw* )
42761 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
42762 ;;
42763esac
42764
42765cat >>confdefs.h <<_ACEOF
42766#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
42767_ACEOF
42768
42769
42770
42771#
42772# Path to ImageMagick share files
42773SHARE_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
42774SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
42775DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
42776case "${build_os}" in
42777 mingw* )
42778 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
42779 ;;
42780esac
42781
42782cat >>confdefs.h <<_ACEOF
42783#define SHARE_PATH "$DEFINE_SHARE_PATH"
42784_ACEOF
42785
42786
42787
42788# Subdirectory under share to place ImageMagick configuration files
42789SHARE_CONFIGURE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
42790
42791cat >>confdefs.h <<_ACEOF
42792#define SHARE_CONFIGURE_RELATIVE_PATH "$SHARE_CONFIGURE_RELATIVE_PATH"
42793_ACEOF
42794
42795SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}"
42796DEFINE_SHARE_CONFIGURE_PATH="${DATA_DIR}/${SHARE_CONFIGURE_RELATIVE_PATH}/"
42797case "${build_os}" in
42798 mingw* )
42799 DEFINE_SHARE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_SHARE_CONFIGURE_PATH" 1`
42800 ;;
42801esac
42802
42803cat >>confdefs.h <<_ACEOF
42804#define SHARE_CONFIGURE_PATH "$DEFINE_SHARE_CONFIGURE_PATH"
42805_ACEOF
42806
42807
42808
42809#
42810# program_transform_name is formed for use in a Makefile, so create a
42811# modified version for use in a shell script.
42812configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
42813
42814# Default delegate definitions
42815{ $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
42816$as_echo "-------------------------------------------------------------" >&6; }
42817{ $as_echo "$as_me:$LINENO: checking for ImageMagick delegate programs" >&5
42818$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
42819{ $as_echo "$as_me:$LINENO: result: " >&5
42820$as_echo "" >&6; }
42821AutotraceDecodeDelegateDefault='autotrace'
42822AVIDecodeDelegateDefault='mplayer'
42823BlenderDelegateDefault='blender'
42824BZIPDelegateDefault='bzip2'
42825BrowseDelegateDefault='xdg-open'
42826CGMDecodeDelegateDefault='ralcgm'
42827CatDelegateDefault='cat'
42828DNGDecodeDelegateDefault='ufraw-batch'
42829GVCDecodeDelegateDefault='dot'
42830DVIDecodeDelegateDefault='dvips'
42831EchoDelegateDefault='echo'
42832EditorDelegateDefault='xterm'
42833FIGDecodeDelegateDefault='fig2dev'
42834ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
42835DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
42836MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
42837GnuplotDecodeDelegateDefault='gnuplot'
42838HDRDecodeDelegateDefault='ra_pfm'
42839HPGLDecodeDelegateDefault='hp2xx'
42840HTMLDecodeDelegateDefault='html2ps'
42841ILBMDecodeDelegateDefault='ilbmtoppm'
42842ILBMEncodeDelegateDefault='ppmtoilbm'
42843LPDelegateDefault='lp'
42844LPRDelegateDefault='lpr'
42845LZWDecodeDelegateDefault='uncompress'
42846LZWEncodeDelegateDefault='compress'
42847LaunchDelegateDefault='gimp'
42848MANDelegateDefault='groff'
42849MPEGDecodeDelegateDefault='ffmpeg'
42850MPEGEncodeDelegateDefault='ffmpeg'
42851MVDelegateDefault='mv'
42852PCLDelegateDefault='pcl6'
42853PGPDecodeDelegateDefault='pgpv'
42854POVDelegateDefault='povray'
42855if test "$native_win32_build" = 'yes'; then
42856 PSDelegateDefault='gswin32c'
42857elif test $framework -gt 0; then
42858 PSDelegateDefault='gsc'
42859else
42860 PSDelegateDefault='gs'
42861fi
42862RLEEncodeDelegateDefault='rawtorle'
42863RMDelegateDefault='rm'
42864SCANDecodeDelegateDefault='scanimage'
42865TXTDelegateDefault='enscript'
42866WMFDecodeDelegateDefault='wmf2eps'
42867WWWDecodeDelegateDefault='curl'
42868XPSDelegateDefault='gxps'
42869ZipDelegateDefault='gzip'
42870
42871# Search for delegates
42872# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
42873set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
42874{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42875$as_echo_n "checking for $ac_word... " >&6; }
42876if test "${ac_cv_path_AutotraceDecodeDelegate+set}" = set; then
42877 $as_echo_n "(cached) " >&6
42878else
42879 case $AutotraceDecodeDelegate in
42880 [\\/]* | ?:[\\/]*)
42881 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
42882 ;;
42883 *)
42884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42885for as_dir in $PATH
42886do
42887 IFS=$as_save_IFS
42888 test -z "$as_dir" && as_dir=.
42889 for ac_exec_ext in '' $ac_executable_extensions; do
42890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42891 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
42892 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42893 break 2
42894 fi
42895done
42896done
42897IFS=$as_save_IFS
42898
42899 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
42900 ;;
42901esac
42902fi
42903AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
42904if test -n "$AutotraceDecodeDelegate"; then
42905 { $as_echo "$as_me:$LINENO: result: $AutotraceDecodeDelegate" >&5
42906$as_echo "$AutotraceDecodeDelegate" >&6; }
42907else
42908 { $as_echo "$as_me:$LINENO: result: no" >&5
42909$as_echo "no" >&6; }
42910fi
42911
42912
42913# Extract the first word of ""$AVIDecodeDelegateDefault"", so it can be a program name with args.
42914set dummy "$AVIDecodeDelegateDefault"; ac_word=$2
42915{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42916$as_echo_n "checking for $ac_word... " >&6; }
42917if test "${ac_cv_path_AVIDecodeDelegate+set}" = set; then
42918 $as_echo_n "(cached) " >&6
42919else
42920 case $AVIDecodeDelegate in
42921 [\\/]* | ?:[\\/]*)
42922 ac_cv_path_AVIDecodeDelegate="$AVIDecodeDelegate" # Let the user override the test with a path.
42923 ;;
42924 *)
42925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42926for as_dir in $PATH
42927do
42928 IFS=$as_save_IFS
42929 test -z "$as_dir" && as_dir=.
42930 for ac_exec_ext in '' $ac_executable_extensions; do
42931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42932 ac_cv_path_AVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
42933 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42934 break 2
42935 fi
42936done
42937done
42938IFS=$as_save_IFS
42939
42940 test -z "$ac_cv_path_AVIDecodeDelegate" && ac_cv_path_AVIDecodeDelegate=""$AVIDecodeDelegateDefault""
42941 ;;
42942esac
42943fi
42944AVIDecodeDelegate=$ac_cv_path_AVIDecodeDelegate
42945if test -n "$AVIDecodeDelegate"; then
42946 { $as_echo "$as_me:$LINENO: result: $AVIDecodeDelegate" >&5
42947$as_echo "$AVIDecodeDelegate" >&6; }
42948else
42949 { $as_echo "$as_me:$LINENO: result: no" >&5
42950$as_echo "no" >&6; }
42951fi
42952
42953
42954# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
42955set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
42956{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42957$as_echo_n "checking for $ac_word... " >&6; }
42958if test "${ac_cv_path_BlenderDecodeDelegate+set}" = set; then
42959 $as_echo_n "(cached) " >&6
42960else
42961 case $BlenderDecodeDelegate in
42962 [\\/]* | ?:[\\/]*)
42963 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
42964 ;;
42965 *)
42966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
42967for as_dir in $PATH
42968do
42969 IFS=$as_save_IFS
42970 test -z "$as_dir" && as_dir=.
42971 for ac_exec_ext in '' $ac_executable_extensions; do
42972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
42973 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
42974 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
42975 break 2
42976 fi
42977done
42978done
42979IFS=$as_save_IFS
42980
42981 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
42982 ;;
42983esac
42984fi
42985BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
42986if test -n "$BlenderDecodeDelegate"; then
42987 { $as_echo "$as_me:$LINENO: result: $BlenderDecodeDelegate" >&5
42988$as_echo "$BlenderDecodeDelegate" >&6; }
42989else
42990 { $as_echo "$as_me:$LINENO: result: no" >&5
42991$as_echo "no" >&6; }
42992fi
42993
42994
42995# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
42996set dummy "$BZIPDelegateDefault"; ac_word=$2
42997{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
42998$as_echo_n "checking for $ac_word... " >&6; }
42999if test "${ac_cv_path_BZIPDelegate+set}" = set; then
43000 $as_echo_n "(cached) " >&6
43001else
43002 case $BZIPDelegate in
43003 [\\/]* | ?:[\\/]*)
43004 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
43005 ;;
43006 *)
43007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43008for as_dir in $PATH
43009do
43010 IFS=$as_save_IFS
43011 test -z "$as_dir" && as_dir=.
43012 for ac_exec_ext in '' $ac_executable_extensions; do
43013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43014 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
43015 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43016 break 2
43017 fi
43018done
43019done
43020IFS=$as_save_IFS
43021
43022 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
43023 ;;
43024esac
43025fi
43026BZIPDelegate=$ac_cv_path_BZIPDelegate
43027if test -n "$BZIPDelegate"; then
43028 { $as_echo "$as_me:$LINENO: result: $BZIPDelegate" >&5
43029$as_echo "$BZIPDelegate" >&6; }
43030else
43031 { $as_echo "$as_me:$LINENO: result: no" >&5
43032$as_echo "no" >&6; }
43033fi
43034
43035
43036# Extract the first word of ""$BrowseDelegateDefault" mozilla firefox netscape", so it can be a program name with args.
43037set dummy "$BrowseDelegateDefault" mozilla firefox netscape; ac_word=$2
43038{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43039$as_echo_n "checking for $ac_word... " >&6; }
43040if test "${ac_cv_path_BrowseDelegate+set}" = set; then
43041 $as_echo_n "(cached) " >&6
43042else
43043 case $BrowseDelegate in
43044 [\\/]* | ?:[\\/]*)
43045 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
43046 ;;
43047 *)
43048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43049for as_dir in $PATH
43050do
43051 IFS=$as_save_IFS
43052 test -z "$as_dir" && as_dir=.
43053 for ac_exec_ext in '' $ac_executable_extensions; do
43054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43055 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
43056 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43057 break 2
43058 fi
43059done
43060done
43061IFS=$as_save_IFS
43062
43063 test -z "$ac_cv_path_BrowseDelegate" && ac_cv_path_BrowseDelegate=""$BrowseDelegateDefault""
43064 ;;
43065esac
43066fi
43067BrowseDelegate=$ac_cv_path_BrowseDelegate
43068if test -n "$BrowseDelegate"; then
43069 { $as_echo "$as_me:$LINENO: result: $BrowseDelegate" >&5
43070$as_echo "$BrowseDelegate" >&6; }
43071else
43072 { $as_echo "$as_me:$LINENO: result: no" >&5
43073$as_echo "no" >&6; }
43074fi
43075
43076
43077# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
43078set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
43079{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43080$as_echo_n "checking for $ac_word... " >&6; }
43081if test "${ac_cv_path_CGMDecodeDelegate+set}" = set; then
43082 $as_echo_n "(cached) " >&6
43083else
43084 case $CGMDecodeDelegate in
43085 [\\/]* | ?:[\\/]*)
43086 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
43087 ;;
43088 *)
43089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43090for as_dir in $PATH
43091do
43092 IFS=$as_save_IFS
43093 test -z "$as_dir" && as_dir=.
43094 for ac_exec_ext in '' $ac_executable_extensions; do
43095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43096 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43097 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43098 break 2
43099 fi
43100done
43101done
43102IFS=$as_save_IFS
43103
43104 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
43105 ;;
43106esac
43107fi
43108CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
43109if test -n "$CGMDecodeDelegate"; then
43110 { $as_echo "$as_me:$LINENO: result: $CGMDecodeDelegate" >&5
43111$as_echo "$CGMDecodeDelegate" >&6; }
43112else
43113 { $as_echo "$as_me:$LINENO: result: no" >&5
43114$as_echo "no" >&6; }
43115fi
43116
43117
43118# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
43119set dummy "$CatDelegateDefault"; ac_word=$2
43120{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43121$as_echo_n "checking for $ac_word... " >&6; }
43122if test "${ac_cv_path_CatDelegate+set}" = set; then
43123 $as_echo_n "(cached) " >&6
43124else
43125 case $CatDelegate in
43126 [\\/]* | ?:[\\/]*)
43127 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
43128 ;;
43129 *)
43130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43131for as_dir in $PATH
43132do
43133 IFS=$as_save_IFS
43134 test -z "$as_dir" && as_dir=.
43135 for ac_exec_ext in '' $ac_executable_extensions; do
43136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43137 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
43138 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43139 break 2
43140 fi
43141done
43142done
43143IFS=$as_save_IFS
43144
43145 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
43146 ;;
43147esac
43148fi
43149CatDelegate=$ac_cv_path_CatDelegate
43150if test -n "$CatDelegate"; then
43151 { $as_echo "$as_me:$LINENO: result: $CatDelegate" >&5
43152$as_echo "$CatDelegate" >&6; }
43153else
43154 { $as_echo "$as_me:$LINENO: result: no" >&5
43155$as_echo "no" >&6; }
43156fi
43157
43158
43159# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
43160set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
43161{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43162$as_echo_n "checking for $ac_word... " >&6; }
43163if test "${ac_cv_path_DNGDecodeDelegate+set}" = set; then
43164 $as_echo_n "(cached) " >&6
43165else
43166 case $DNGDecodeDelegate in
43167 [\\/]* | ?:[\\/]*)
43168 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
43169 ;;
43170 *)
43171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43172for as_dir in $PATH
43173do
43174 IFS=$as_save_IFS
43175 test -z "$as_dir" && as_dir=.
43176 for ac_exec_ext in '' $ac_executable_extensions; do
43177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43178 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43179 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43180 break 2
43181 fi
43182done
43183done
43184IFS=$as_save_IFS
43185
43186 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
43187 ;;
43188esac
43189fi
43190DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
43191if test -n "$DNGDecodeDelegate"; then
43192 { $as_echo "$as_me:$LINENO: result: $DNGDecodeDelegate" >&5
43193$as_echo "$DNGDecodeDelegate" >&6; }
43194else
43195 { $as_echo "$as_me:$LINENO: result: no" >&5
43196$as_echo "no" >&6; }
43197fi
43198
43199
43200# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
43201set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
43202{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43203$as_echo_n "checking for $ac_word... " >&6; }
43204if test "${ac_cv_path_GVCDecodeDelegate+set}" = set; then
43205 $as_echo_n "(cached) " >&6
43206else
43207 case $GVCDecodeDelegate in
43208 [\\/]* | ?:[\\/]*)
43209 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
43210 ;;
43211 *)
43212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43213for as_dir in $PATH
43214do
43215 IFS=$as_save_IFS
43216 test -z "$as_dir" && as_dir=.
43217 for ac_exec_ext in '' $ac_executable_extensions; do
43218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43219 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43220 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43221 break 2
43222 fi
43223done
43224done
43225IFS=$as_save_IFS
43226
43227 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
43228 ;;
43229esac
43230fi
43231GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
43232if test -n "$GVCDecodeDelegate"; then
43233 { $as_echo "$as_me:$LINENO: result: $GVCDecodeDelegate" >&5
43234$as_echo "$GVCDecodeDelegate" >&6; }
43235else
43236 { $as_echo "$as_me:$LINENO: result: no" >&5
43237$as_echo "no" >&6; }
43238fi
43239
43240
43241# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
43242set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
43243{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43244$as_echo_n "checking for $ac_word... " >&6; }
43245if test "${ac_cv_path_DVIDecodeDelegate+set}" = set; then
43246 $as_echo_n "(cached) " >&6
43247else
43248 case $DVIDecodeDelegate in
43249 [\\/]* | ?:[\\/]*)
43250 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
43251 ;;
43252 *)
43253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43254for as_dir in $PATH
43255do
43256 IFS=$as_save_IFS
43257 test -z "$as_dir" && as_dir=.
43258 for ac_exec_ext in '' $ac_executable_extensions; do
43259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43260 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43261 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43262 break 2
43263 fi
43264done
43265done
43266IFS=$as_save_IFS
43267
43268 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
43269 ;;
43270esac
43271fi
43272DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
43273if test -n "$DVIDecodeDelegate"; then
43274 { $as_echo "$as_me:$LINENO: result: $DVIDecodeDelegate" >&5
43275$as_echo "$DVIDecodeDelegate" >&6; }
43276else
43277 { $as_echo "$as_me:$LINENO: result: no" >&5
43278$as_echo "no" >&6; }
43279fi
43280
43281
43282# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
43283set dummy "$EchoDelegateDefault"; ac_word=$2
43284{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43285$as_echo_n "checking for $ac_word... " >&6; }
43286if test "${ac_cv_path_EchoDelegate+set}" = set; then
43287 $as_echo_n "(cached) " >&6
43288else
43289 case $EchoDelegate in
43290 [\\/]* | ?:[\\/]*)
43291 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
43292 ;;
43293 *)
43294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43295for as_dir in $PATH
43296do
43297 IFS=$as_save_IFS
43298 test -z "$as_dir" && as_dir=.
43299 for ac_exec_ext in '' $ac_executable_extensions; do
43300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43301 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
43302 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43303 break 2
43304 fi
43305done
43306done
43307IFS=$as_save_IFS
43308
43309 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
43310 ;;
43311esac
43312fi
43313EchoDelegate=$ac_cv_path_EchoDelegate
43314if test -n "$EchoDelegate"; then
43315 { $as_echo "$as_me:$LINENO: result: $EchoDelegate" >&5
43316$as_echo "$EchoDelegate" >&6; }
43317else
43318 { $as_echo "$as_me:$LINENO: result: no" >&5
43319$as_echo "no" >&6; }
43320fi
43321
43322
43323# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
43324set dummy "$EditorDelegateDefault"; ac_word=$2
43325{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43326$as_echo_n "checking for $ac_word... " >&6; }
43327if test "${ac_cv_path_EditorDelegate+set}" = set; then
43328 $as_echo_n "(cached) " >&6
43329else
43330 case $EditorDelegate in
43331 [\\/]* | ?:[\\/]*)
43332 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
43333 ;;
43334 *)
43335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43336for as_dir in $PATH
43337do
43338 IFS=$as_save_IFS
43339 test -z "$as_dir" && as_dir=.
43340 for ac_exec_ext in '' $ac_executable_extensions; do
43341 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43342 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
43343 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43344 break 2
43345 fi
43346done
43347done
43348IFS=$as_save_IFS
43349
43350 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
43351 ;;
43352esac
43353fi
43354EditorDelegate=$ac_cv_path_EditorDelegate
43355if test -n "$EditorDelegate"; then
43356 { $as_echo "$as_me:$LINENO: result: $EditorDelegate" >&5
43357$as_echo "$EditorDelegate" >&6; }
43358else
43359 { $as_echo "$as_me:$LINENO: result: no" >&5
43360$as_echo "no" >&6; }
43361fi
43362
43363
43364# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
43365set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
43366{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43367$as_echo_n "checking for $ac_word... " >&6; }
43368if test "${ac_cv_path_FIGDecodeDelegate+set}" = set; then
43369 $as_echo_n "(cached) " >&6
43370else
43371 case $FIGDecodeDelegate in
43372 [\\/]* | ?:[\\/]*)
43373 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
43374 ;;
43375 *)
43376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43377for as_dir in $PATH
43378do
43379 IFS=$as_save_IFS
43380 test -z "$as_dir" && as_dir=.
43381 for ac_exec_ext in '' $ac_executable_extensions; do
43382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43383 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43384 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43385 break 2
43386 fi
43387done
43388done
43389IFS=$as_save_IFS
43390
43391 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
43392 ;;
43393esac
43394fi
43395FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
43396if test -n "$FIGDecodeDelegate"; then
43397 { $as_echo "$as_me:$LINENO: result: $FIGDecodeDelegate" >&5
43398$as_echo "$FIGDecodeDelegate" >&6; }
43399else
43400 { $as_echo "$as_me:$LINENO: result: no" >&5
43401$as_echo "no" >&6; }
43402fi
43403
43404
43405# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
43406set dummy "$ConvertDelegateDefault"; ac_word=$2
43407{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43408$as_echo_n "checking for $ac_word... " >&6; }
43409if test "${ac_cv_path_ConvertDelegate+set}" = set; then
43410 $as_echo_n "(cached) " >&6
43411else
43412 case $ConvertDelegate in
43413 [\\/]* | ?:[\\/]*)
43414 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
43415 ;;
43416 *)
43417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43418for as_dir in $PATH
43419do
43420 IFS=$as_save_IFS
43421 test -z "$as_dir" && as_dir=.
43422 for ac_exec_ext in '' $ac_executable_extensions; do
43423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43424 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
43425 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43426 break 2
43427 fi
43428done
43429done
43430IFS=$as_save_IFS
43431
43432 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
43433 ;;
43434esac
43435fi
43436ConvertDelegate=$ac_cv_path_ConvertDelegate
43437if test -n "$ConvertDelegate"; then
43438 { $as_echo "$as_me:$LINENO: result: $ConvertDelegate" >&5
43439$as_echo "$ConvertDelegate" >&6; }
43440else
43441 { $as_echo "$as_me:$LINENO: result: no" >&5
43442$as_echo "no" >&6; }
43443fi
43444
43445
43446# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
43447set dummy "$DisplayDelegateDefault"; ac_word=$2
43448{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43449$as_echo_n "checking for $ac_word... " >&6; }
43450if test "${ac_cv_path_DisplayDelegate+set}" = set; then
43451 $as_echo_n "(cached) " >&6
43452else
43453 case $DisplayDelegate in
43454 [\\/]* | ?:[\\/]*)
43455 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
43456 ;;
43457 *)
43458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43459for as_dir in $PATH
43460do
43461 IFS=$as_save_IFS
43462 test -z "$as_dir" && as_dir=.
43463 for ac_exec_ext in '' $ac_executable_extensions; do
43464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43465 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
43466 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43467 break 2
43468 fi
43469done
43470done
43471IFS=$as_save_IFS
43472
43473 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
43474 ;;
43475esac
43476fi
43477DisplayDelegate=$ac_cv_path_DisplayDelegate
43478if test -n "$DisplayDelegate"; then
43479 { $as_echo "$as_me:$LINENO: result: $DisplayDelegate" >&5
43480$as_echo "$DisplayDelegate" >&6; }
43481else
43482 { $as_echo "$as_me:$LINENO: result: no" >&5
43483$as_echo "no" >&6; }
43484fi
43485
43486
43487# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
43488set dummy "$MogrifyDelegateDefault"; ac_word=$2
43489{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43490$as_echo_n "checking for $ac_word... " >&6; }
43491if test "${ac_cv_path_MogrifyDelegate+set}" = set; then
43492 $as_echo_n "(cached) " >&6
43493else
43494 case $MogrifyDelegate in
43495 [\\/]* | ?:[\\/]*)
43496 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
43497 ;;
43498 *)
43499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43500for as_dir in $PATH
43501do
43502 IFS=$as_save_IFS
43503 test -z "$as_dir" && as_dir=.
43504 for ac_exec_ext in '' $ac_executable_extensions; do
43505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43506 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
43507 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43508 break 2
43509 fi
43510done
43511done
43512IFS=$as_save_IFS
43513
43514 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
43515 ;;
43516esac
43517fi
43518MogrifyDelegate=$ac_cv_path_MogrifyDelegate
43519if test -n "$MogrifyDelegate"; then
43520 { $as_echo "$as_me:$LINENO: result: $MogrifyDelegate" >&5
43521$as_echo "$MogrifyDelegate" >&6; }
43522else
43523 { $as_echo "$as_me:$LINENO: result: no" >&5
43524$as_echo "no" >&6; }
43525fi
43526
43527
43528# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
43529set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
43530{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43531$as_echo_n "checking for $ac_word... " >&6; }
43532if test "${ac_cv_path_GnuplotDecodeDelegate+set}" = set; then
43533 $as_echo_n "(cached) " >&6
43534else
43535 case $GnuplotDecodeDelegate in
43536 [\\/]* | ?:[\\/]*)
43537 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
43538 ;;
43539 *)
43540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43541for as_dir in $PATH
43542do
43543 IFS=$as_save_IFS
43544 test -z "$as_dir" && as_dir=.
43545 for ac_exec_ext in '' $ac_executable_extensions; do
43546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43547 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43548 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43549 break 2
43550 fi
43551done
43552done
43553IFS=$as_save_IFS
43554
43555 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
43556 ;;
43557esac
43558fi
43559GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
43560if test -n "$GnuplotDecodeDelegate"; then
43561 { $as_echo "$as_me:$LINENO: result: $GnuplotDecodeDelegate" >&5
43562$as_echo "$GnuplotDecodeDelegate" >&6; }
43563else
43564 { $as_echo "$as_me:$LINENO: result: no" >&5
43565$as_echo "no" >&6; }
43566fi
43567
43568
43569# Extract the first word of ""$HDRDecodeDelegateDefault"", so it can be a program name with args.
43570set dummy "$HDRDecodeDelegateDefault"; ac_word=$2
43571{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43572$as_echo_n "checking for $ac_word... " >&6; }
43573if test "${ac_cv_path_HDRDecodeDelegate+set}" = set; then
43574 $as_echo_n "(cached) " >&6
43575else
43576 case $HDRDecodeDelegate in
43577 [\\/]* | ?:[\\/]*)
43578 ac_cv_path_HDRDecodeDelegate="$HDRDecodeDelegate" # Let the user override the test with a path.
43579 ;;
43580 *)
43581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43582for as_dir in $PATH
43583do
43584 IFS=$as_save_IFS
43585 test -z "$as_dir" && as_dir=.
43586 for ac_exec_ext in '' $ac_executable_extensions; do
43587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43588 ac_cv_path_HDRDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43589 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43590 break 2
43591 fi
43592done
43593done
43594IFS=$as_save_IFS
43595
43596 test -z "$ac_cv_path_HDRDecodeDelegate" && ac_cv_path_HDRDecodeDelegate=""$HDRDecodeDelegateDefault""
43597 ;;
43598esac
43599fi
43600HDRDecodeDelegate=$ac_cv_path_HDRDecodeDelegate
43601if test -n "$HDRDecodeDelegate"; then
43602 { $as_echo "$as_me:$LINENO: result: $HDRDecodeDelegate" >&5
43603$as_echo "$HDRDecodeDelegate" >&6; }
43604else
43605 { $as_echo "$as_me:$LINENO: result: no" >&5
43606$as_echo "no" >&6; }
43607fi
43608
43609
43610# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
43611set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
43612{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43613$as_echo_n "checking for $ac_word... " >&6; }
43614if test "${ac_cv_path_HPGLDecodeDelegate+set}" = set; then
43615 $as_echo_n "(cached) " >&6
43616else
43617 case $HPGLDecodeDelegate in
43618 [\\/]* | ?:[\\/]*)
43619 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
43620 ;;
43621 *)
43622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43623for as_dir in $PATH
43624do
43625 IFS=$as_save_IFS
43626 test -z "$as_dir" && as_dir=.
43627 for ac_exec_ext in '' $ac_executable_extensions; do
43628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43629 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43630 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43631 break 2
43632 fi
43633done
43634done
43635IFS=$as_save_IFS
43636
43637 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
43638 ;;
43639esac
43640fi
43641HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
43642if test -n "$HPGLDecodeDelegate"; then
43643 { $as_echo "$as_me:$LINENO: result: $HPGLDecodeDelegate" >&5
43644$as_echo "$HPGLDecodeDelegate" >&6; }
43645else
43646 { $as_echo "$as_me:$LINENO: result: no" >&5
43647$as_echo "no" >&6; }
43648fi
43649
43650
43651# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
43652set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
43653{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43654$as_echo_n "checking for $ac_word... " >&6; }
43655if test "${ac_cv_path_HTMLDecodeDelegate+set}" = set; then
43656 $as_echo_n "(cached) " >&6
43657else
43658 case $HTMLDecodeDelegate in
43659 [\\/]* | ?:[\\/]*)
43660 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
43661 ;;
43662 *)
43663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43664for as_dir in $PATH
43665do
43666 IFS=$as_save_IFS
43667 test -z "$as_dir" && as_dir=.
43668 for ac_exec_ext in '' $ac_executable_extensions; do
43669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43670 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43671 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43672 break 2
43673 fi
43674done
43675done
43676IFS=$as_save_IFS
43677
43678 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
43679 ;;
43680esac
43681fi
43682HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
43683if test -n "$HTMLDecodeDelegate"; then
43684 { $as_echo "$as_me:$LINENO: result: $HTMLDecodeDelegate" >&5
43685$as_echo "$HTMLDecodeDelegate" >&6; }
43686else
43687 { $as_echo "$as_me:$LINENO: result: no" >&5
43688$as_echo "no" >&6; }
43689fi
43690
43691
43692# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
43693set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
43694{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43695$as_echo_n "checking for $ac_word... " >&6; }
43696if test "${ac_cv_path_ILBMDecodeDelegate+set}" = set; then
43697 $as_echo_n "(cached) " >&6
43698else
43699 case $ILBMDecodeDelegate in
43700 [\\/]* | ?:[\\/]*)
43701 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
43702 ;;
43703 *)
43704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43705for as_dir in $PATH
43706do
43707 IFS=$as_save_IFS
43708 test -z "$as_dir" && as_dir=.
43709 for ac_exec_ext in '' $ac_executable_extensions; do
43710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43711 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43712 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43713 break 2
43714 fi
43715done
43716done
43717IFS=$as_save_IFS
43718
43719 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
43720 ;;
43721esac
43722fi
43723ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
43724if test -n "$ILBMDecodeDelegate"; then
43725 { $as_echo "$as_me:$LINENO: result: $ILBMDecodeDelegate" >&5
43726$as_echo "$ILBMDecodeDelegate" >&6; }
43727else
43728 { $as_echo "$as_me:$LINENO: result: no" >&5
43729$as_echo "no" >&6; }
43730fi
43731
43732
43733# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
43734set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
43735{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43736$as_echo_n "checking for $ac_word... " >&6; }
43737if test "${ac_cv_path_ILBMEncodeDelegate+set}" = set; then
43738 $as_echo_n "(cached) " >&6
43739else
43740 case $ILBMEncodeDelegate in
43741 [\\/]* | ?:[\\/]*)
43742 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
43743 ;;
43744 *)
43745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43746for as_dir in $PATH
43747do
43748 IFS=$as_save_IFS
43749 test -z "$as_dir" && as_dir=.
43750 for ac_exec_ext in '' $ac_executable_extensions; do
43751 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43752 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43753 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43754 break 2
43755 fi
43756done
43757done
43758IFS=$as_save_IFS
43759
43760 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
43761 ;;
43762esac
43763fi
43764ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
43765if test -n "$ILBMEncodeDelegate"; then
43766 { $as_echo "$as_me:$LINENO: result: $ILBMEncodeDelegate" >&5
43767$as_echo "$ILBMEncodeDelegate" >&6; }
43768else
43769 { $as_echo "$as_me:$LINENO: result: no" >&5
43770$as_echo "no" >&6; }
43771fi
43772
43773
43774# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
43775set dummy "$LPDelegateDefault"; ac_word=$2
43776{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43777$as_echo_n "checking for $ac_word... " >&6; }
43778if test "${ac_cv_path_LPDelegate+set}" = set; then
43779 $as_echo_n "(cached) " >&6
43780else
43781 case $LPDelegate in
43782 [\\/]* | ?:[\\/]*)
43783 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
43784 ;;
43785 *)
43786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43787for as_dir in $PATH
43788do
43789 IFS=$as_save_IFS
43790 test -z "$as_dir" && as_dir=.
43791 for ac_exec_ext in '' $ac_executable_extensions; do
43792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43793 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
43794 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43795 break 2
43796 fi
43797done
43798done
43799IFS=$as_save_IFS
43800
43801 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
43802 ;;
43803esac
43804fi
43805LPDelegate=$ac_cv_path_LPDelegate
43806if test -n "$LPDelegate"; then
43807 { $as_echo "$as_me:$LINENO: result: $LPDelegate" >&5
43808$as_echo "$LPDelegate" >&6; }
43809else
43810 { $as_echo "$as_me:$LINENO: result: no" >&5
43811$as_echo "no" >&6; }
43812fi
43813
43814
43815# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
43816set dummy "$LPRDelegateDefault"; ac_word=$2
43817{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43818$as_echo_n "checking for $ac_word... " >&6; }
43819if test "${ac_cv_path_LPRDelegate+set}" = set; then
43820 $as_echo_n "(cached) " >&6
43821else
43822 case $LPRDelegate in
43823 [\\/]* | ?:[\\/]*)
43824 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
43825 ;;
43826 *)
43827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43828for as_dir in $PATH
43829do
43830 IFS=$as_save_IFS
43831 test -z "$as_dir" && as_dir=.
43832 for ac_exec_ext in '' $ac_executable_extensions; do
43833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43834 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
43835 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43836 break 2
43837 fi
43838done
43839done
43840IFS=$as_save_IFS
43841
43842 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
43843 ;;
43844esac
43845fi
43846LPRDelegate=$ac_cv_path_LPRDelegate
43847if test -n "$LPRDelegate"; then
43848 { $as_echo "$as_me:$LINENO: result: $LPRDelegate" >&5
43849$as_echo "$LPRDelegate" >&6; }
43850else
43851 { $as_echo "$as_me:$LINENO: result: no" >&5
43852$as_echo "no" >&6; }
43853fi
43854
43855
43856# Extract the first word of ""$LZWDecodeDelegateDefault"", so it can be a program name with args.
43857set dummy "$LZWDecodeDelegateDefault"; ac_word=$2
43858{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43859$as_echo_n "checking for $ac_word... " >&6; }
43860if test "${ac_cv_path_LZWDecodeDelegate+set}" = set; then
43861 $as_echo_n "(cached) " >&6
43862else
43863 case $LZWDecodeDelegate in
43864 [\\/]* | ?:[\\/]*)
43865 ac_cv_path_LZWDecodeDelegate="$LZWDecodeDelegate" # Let the user override the test with a path.
43866 ;;
43867 *)
43868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43869for as_dir in $PATH
43870do
43871 IFS=$as_save_IFS
43872 test -z "$as_dir" && as_dir=.
43873 for ac_exec_ext in '' $ac_executable_extensions; do
43874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43875 ac_cv_path_LZWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43876 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43877 break 2
43878 fi
43879done
43880done
43881IFS=$as_save_IFS
43882
43883 test -z "$ac_cv_path_LZWDecodeDelegate" && ac_cv_path_LZWDecodeDelegate=""$LZWDecodeDelegateDefault""
43884 ;;
43885esac
43886fi
43887LZWDecodeDelegate=$ac_cv_path_LZWDecodeDelegate
43888if test -n "$LZWDecodeDelegate"; then
43889 { $as_echo "$as_me:$LINENO: result: $LZWDecodeDelegate" >&5
43890$as_echo "$LZWDecodeDelegate" >&6; }
43891else
43892 { $as_echo "$as_me:$LINENO: result: no" >&5
43893$as_echo "no" >&6; }
43894fi
43895
43896
43897# Extract the first word of ""$LZWEncodeDelegateDefault"", so it can be a program name with args.
43898set dummy "$LZWEncodeDelegateDefault"; ac_word=$2
43899{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43900$as_echo_n "checking for $ac_word... " >&6; }
43901if test "${ac_cv_path_LZWEncodeDelegate+set}" = set; then
43902 $as_echo_n "(cached) " >&6
43903else
43904 case $LZWEncodeDelegate in
43905 [\\/]* | ?:[\\/]*)
43906 ac_cv_path_LZWEncodeDelegate="$LZWEncodeDelegate" # Let the user override the test with a path.
43907 ;;
43908 *)
43909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43910for as_dir in $PATH
43911do
43912 IFS=$as_save_IFS
43913 test -z "$as_dir" && as_dir=.
43914 for ac_exec_ext in '' $ac_executable_extensions; do
43915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43916 ac_cv_path_LZWEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
43917 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43918 break 2
43919 fi
43920done
43921done
43922IFS=$as_save_IFS
43923
43924 test -z "$ac_cv_path_LZWEncodeDelegate" && ac_cv_path_LZWEncodeDelegate=""$LZWEncodeDelegateDefault""
43925 ;;
43926esac
43927fi
43928LZWEncodeDelegate=$ac_cv_path_LZWEncodeDelegate
43929if test -n "$LZWEncodeDelegate"; then
43930 { $as_echo "$as_me:$LINENO: result: $LZWEncodeDelegate" >&5
43931$as_echo "$LZWEncodeDelegate" >&6; }
43932else
43933 { $as_echo "$as_me:$LINENO: result: no" >&5
43934$as_echo "no" >&6; }
43935fi
43936
43937
43938# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
43939set dummy "$LaunchDelegateDefault"; ac_word=$2
43940{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43941$as_echo_n "checking for $ac_word... " >&6; }
43942if test "${ac_cv_path_LaunchDelegate+set}" = set; then
43943 $as_echo_n "(cached) " >&6
43944else
43945 case $LaunchDelegate in
43946 [\\/]* | ?:[\\/]*)
43947 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
43948 ;;
43949 *)
43950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43951for as_dir in $PATH
43952do
43953 IFS=$as_save_IFS
43954 test -z "$as_dir" && as_dir=.
43955 for ac_exec_ext in '' $ac_executable_extensions; do
43956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43957 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
43958 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
43959 break 2
43960 fi
43961done
43962done
43963IFS=$as_save_IFS
43964
43965 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
43966 ;;
43967esac
43968fi
43969LaunchDelegate=$ac_cv_path_LaunchDelegate
43970if test -n "$LaunchDelegate"; then
43971 { $as_echo "$as_me:$LINENO: result: $LaunchDelegate" >&5
43972$as_echo "$LaunchDelegate" >&6; }
43973else
43974 { $as_echo "$as_me:$LINENO: result: no" >&5
43975$as_echo "no" >&6; }
43976fi
43977
43978
43979# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
43980set dummy "$MANDelegateDefault"; ac_word=$2
43981{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
43982$as_echo_n "checking for $ac_word... " >&6; }
43983if test "${ac_cv_path_MANDelegate+set}" = set; then
43984 $as_echo_n "(cached) " >&6
43985else
43986 case $MANDelegate in
43987 [\\/]* | ?:[\\/]*)
43988 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
43989 ;;
43990 *)
43991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43992for as_dir in $PATH
43993do
43994 IFS=$as_save_IFS
43995 test -z "$as_dir" && as_dir=.
43996 for ac_exec_ext in '' $ac_executable_extensions; do
43997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
43998 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
43999 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44000 break 2
44001 fi
44002done
44003done
44004IFS=$as_save_IFS
44005
44006 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
44007 ;;
44008esac
44009fi
44010MANDelegate=$ac_cv_path_MANDelegate
44011if test -n "$MANDelegate"; then
44012 { $as_echo "$as_me:$LINENO: result: $MANDelegate" >&5
44013$as_echo "$MANDelegate" >&6; }
44014else
44015 { $as_echo "$as_me:$LINENO: result: no" >&5
44016$as_echo "no" >&6; }
44017fi
44018
44019
44020# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
44021set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
44022{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44023$as_echo_n "checking for $ac_word... " >&6; }
44024if test "${ac_cv_path_MPEGDecodeDelegate+set}" = set; then
44025 $as_echo_n "(cached) " >&6
44026else
44027 case $MPEGDecodeDelegate in
44028 [\\/]* | ?:[\\/]*)
44029 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
44030 ;;
44031 *)
44032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44033for as_dir in $PATH
44034do
44035 IFS=$as_save_IFS
44036 test -z "$as_dir" && as_dir=.
44037 for ac_exec_ext in '' $ac_executable_extensions; do
44038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44039 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44040 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44041 break 2
44042 fi
44043done
44044done
44045IFS=$as_save_IFS
44046
44047 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
44048 ;;
44049esac
44050fi
44051MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
44052if test -n "$MPEGDecodeDelegate"; then
44053 { $as_echo "$as_me:$LINENO: result: $MPEGDecodeDelegate" >&5
44054$as_echo "$MPEGDecodeDelegate" >&6; }
44055else
44056 { $as_echo "$as_me:$LINENO: result: no" >&5
44057$as_echo "no" >&6; }
44058fi
44059
44060
44061# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
44062set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
44063{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44064$as_echo_n "checking for $ac_word... " >&6; }
44065if test "${ac_cv_path_MPEGEncodeDelegate+set}" = set; then
44066 $as_echo_n "(cached) " >&6
44067else
44068 case $MPEGEncodeDelegate in
44069 [\\/]* | ?:[\\/]*)
44070 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
44071 ;;
44072 *)
44073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44074for as_dir in $PATH
44075do
44076 IFS=$as_save_IFS
44077 test -z "$as_dir" && as_dir=.
44078 for ac_exec_ext in '' $ac_executable_extensions; do
44079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44080 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44081 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44082 break 2
44083 fi
44084done
44085done
44086IFS=$as_save_IFS
44087
44088 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
44089 ;;
44090esac
44091fi
44092MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
44093if test -n "$MPEGEncodeDelegate"; then
44094 { $as_echo "$as_me:$LINENO: result: $MPEGEncodeDelegate" >&5
44095$as_echo "$MPEGEncodeDelegate" >&6; }
44096else
44097 { $as_echo "$as_me:$LINENO: result: no" >&5
44098$as_echo "no" >&6; }
44099fi
44100
44101
44102# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
44103set dummy "$MVDelegateDefault"; ac_word=$2
44104{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44105$as_echo_n "checking for $ac_word... " >&6; }
44106if test "${ac_cv_path_MVDelegate+set}" = set; then
44107 $as_echo_n "(cached) " >&6
44108else
44109 case $MVDelegate in
44110 [\\/]* | ?:[\\/]*)
44111 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
44112 ;;
44113 *)
44114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44115for as_dir in $PATH
44116do
44117 IFS=$as_save_IFS
44118 test -z "$as_dir" && as_dir=.
44119 for ac_exec_ext in '' $ac_executable_extensions; do
44120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44121 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
44122 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44123 break 2
44124 fi
44125done
44126done
44127IFS=$as_save_IFS
44128
44129 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
44130 ;;
44131esac
44132fi
44133MVDelegate=$ac_cv_path_MVDelegate
44134if test -n "$MVDelegate"; then
44135 { $as_echo "$as_me:$LINENO: result: $MVDelegate" >&5
44136$as_echo "$MVDelegate" >&6; }
44137else
44138 { $as_echo "$as_me:$LINENO: result: no" >&5
44139$as_echo "no" >&6; }
44140fi
44141
44142
44143# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
44144set dummy "$PCLDelegateDefault"; ac_word=$2
44145{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44146$as_echo_n "checking for $ac_word... " >&6; }
44147if test "${ac_cv_path_PCLDelegate+set}" = set; then
44148 $as_echo_n "(cached) " >&6
44149else
44150 case $PCLDelegate in
44151 [\\/]* | ?:[\\/]*)
44152 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
44153 ;;
44154 *)
44155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44156for as_dir in $PATH
44157do
44158 IFS=$as_save_IFS
44159 test -z "$as_dir" && as_dir=.
44160 for ac_exec_ext in '' $ac_executable_extensions; do
44161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44162 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
44163 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44164 break 2
44165 fi
44166done
44167done
44168IFS=$as_save_IFS
44169
44170 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
44171 ;;
44172esac
44173fi
44174PCLDelegate=$ac_cv_path_PCLDelegate
44175if test -n "$PCLDelegate"; then
44176 { $as_echo "$as_me:$LINENO: result: $PCLDelegate" >&5
44177$as_echo "$PCLDelegate" >&6; }
44178else
44179 { $as_echo "$as_me:$LINENO: result: no" >&5
44180$as_echo "no" >&6; }
44181fi
44182
44183
44184# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
44185set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
44186{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44187$as_echo_n "checking for $ac_word... " >&6; }
44188if test "${ac_cv_path_PGPDecodeDelegate+set}" = set; then
44189 $as_echo_n "(cached) " >&6
44190else
44191 case $PGPDecodeDelegate in
44192 [\\/]* | ?:[\\/]*)
44193 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
44194 ;;
44195 *)
44196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44197for as_dir in $PATH
44198do
44199 IFS=$as_save_IFS
44200 test -z "$as_dir" && as_dir=.
44201 for ac_exec_ext in '' $ac_executable_extensions; do
44202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44203 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44204 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44205 break 2
44206 fi
44207done
44208done
44209IFS=$as_save_IFS
44210
44211 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
44212 ;;
44213esac
44214fi
44215PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
44216if test -n "$PGPDecodeDelegate"; then
44217 { $as_echo "$as_me:$LINENO: result: $PGPDecodeDelegate" >&5
44218$as_echo "$PGPDecodeDelegate" >&6; }
44219else
44220 { $as_echo "$as_me:$LINENO: result: no" >&5
44221$as_echo "no" >&6; }
44222fi
44223
44224
44225# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
44226set dummy "$POVDelegateDefault"; ac_word=$2
44227{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44228$as_echo_n "checking for $ac_word... " >&6; }
44229if test "${ac_cv_path_POVDelegate+set}" = set; then
44230 $as_echo_n "(cached) " >&6
44231else
44232 case $POVDelegate in
44233 [\\/]* | ?:[\\/]*)
44234 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
44235 ;;
44236 *)
44237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44238for as_dir in $PATH
44239do
44240 IFS=$as_save_IFS
44241 test -z "$as_dir" && as_dir=.
44242 for ac_exec_ext in '' $ac_executable_extensions; do
44243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44244 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
44245 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44246 break 2
44247 fi
44248done
44249done
44250IFS=$as_save_IFS
44251
44252 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
44253 ;;
44254esac
44255fi
44256POVDelegate=$ac_cv_path_POVDelegate
44257if test -n "$POVDelegate"; then
44258 { $as_echo "$as_me:$LINENO: result: $POVDelegate" >&5
44259$as_echo "$POVDelegate" >&6; }
44260else
44261 { $as_echo "$as_me:$LINENO: result: no" >&5
44262$as_echo "no" >&6; }
44263fi
44264
44265
44266for ac_prog in gsx gsc "$PSDelegateDefault"
44267do
44268 # Extract the first word of "$ac_prog", so it can be a program name with args.
44269set dummy $ac_prog; ac_word=$2
44270{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44271$as_echo_n "checking for $ac_word... " >&6; }
44272if test "${ac_cv_path_PSDelegate+set}" = set; then
44273 $as_echo_n "(cached) " >&6
44274else
44275 case $PSDelegate in
44276 [\\/]* | ?:[\\/]*)
44277 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
44278 ;;
44279 *)
44280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44281for as_dir in $PATH
44282do
44283 IFS=$as_save_IFS
44284 test -z "$as_dir" && as_dir=.
44285 for ac_exec_ext in '' $ac_executable_extensions; do
44286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44287 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
44288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44289 break 2
44290 fi
44291done
44292done
44293IFS=$as_save_IFS
44294
44295 ;;
44296esac
44297fi
44298PSDelegate=$ac_cv_path_PSDelegate
44299if test -n "$PSDelegate"; then
44300 { $as_echo "$as_me:$LINENO: result: $PSDelegate" >&5
44301$as_echo "$PSDelegate" >&6; }
44302else
44303 { $as_echo "$as_me:$LINENO: result: no" >&5
44304$as_echo "no" >&6; }
44305fi
44306
44307
44308 test -n "$PSDelegate" && break
44309done
44310test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
44311
44312# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
44313set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
44314{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44315$as_echo_n "checking for $ac_word... " >&6; }
44316if test "${ac_cv_path_RLEEncodeDelegate+set}" = set; then
44317 $as_echo_n "(cached) " >&6
44318else
44319 case $RLEEncodeDelegate in
44320 [\\/]* | ?:[\\/]*)
44321 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
44322 ;;
44323 *)
44324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44325for as_dir in $PATH
44326do
44327 IFS=$as_save_IFS
44328 test -z "$as_dir" && as_dir=.
44329 for ac_exec_ext in '' $ac_executable_extensions; do
44330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44331 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44332 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44333 break 2
44334 fi
44335done
44336done
44337IFS=$as_save_IFS
44338
44339 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
44340 ;;
44341esac
44342fi
44343RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
44344if test -n "$RLEEncodeDelegate"; then
44345 { $as_echo "$as_me:$LINENO: result: $RLEEncodeDelegate" >&5
44346$as_echo "$RLEEncodeDelegate" >&6; }
44347else
44348 { $as_echo "$as_me:$LINENO: result: no" >&5
44349$as_echo "no" >&6; }
44350fi
44351
44352
44353# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
44354set dummy "$RMDelegateDefault"; ac_word=$2
44355{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44356$as_echo_n "checking for $ac_word... " >&6; }
44357if test "${ac_cv_path_RMDelegate+set}" = set; then
44358 $as_echo_n "(cached) " >&6
44359else
44360 case $RMDelegate in
44361 [\\/]* | ?:[\\/]*)
44362 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
44363 ;;
44364 *)
44365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44366for as_dir in $PATH
44367do
44368 IFS=$as_save_IFS
44369 test -z "$as_dir" && as_dir=.
44370 for ac_exec_ext in '' $ac_executable_extensions; do
44371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44372 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
44373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44374 break 2
44375 fi
44376done
44377done
44378IFS=$as_save_IFS
44379
44380 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
44381 ;;
44382esac
44383fi
44384RMDelegate=$ac_cv_path_RMDelegate
44385if test -n "$RMDelegate"; then
44386 { $as_echo "$as_me:$LINENO: result: $RMDelegate" >&5
44387$as_echo "$RMDelegate" >&6; }
44388else
44389 { $as_echo "$as_me:$LINENO: result: no" >&5
44390$as_echo "no" >&6; }
44391fi
44392
44393
44394# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
44395set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
44396{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44397$as_echo_n "checking for $ac_word... " >&6; }
44398if test "${ac_cv_path_SCANDecodeDelegate+set}" = set; then
44399 $as_echo_n "(cached) " >&6
44400else
44401 case $SCANDecodeDelegate in
44402 [\\/]* | ?:[\\/]*)
44403 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
44404 ;;
44405 *)
44406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44407for as_dir in $PATH
44408do
44409 IFS=$as_save_IFS
44410 test -z "$as_dir" && as_dir=.
44411 for ac_exec_ext in '' $ac_executable_extensions; do
44412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44413 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44414 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44415 break 2
44416 fi
44417done
44418done
44419IFS=$as_save_IFS
44420
44421 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
44422 ;;
44423esac
44424fi
44425SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
44426if test -n "$SCANDecodeDelegate"; then
44427 { $as_echo "$as_me:$LINENO: result: $SCANDecodeDelegate" >&5
44428$as_echo "$SCANDecodeDelegate" >&6; }
44429else
44430 { $as_echo "$as_me:$LINENO: result: no" >&5
44431$as_echo "no" >&6; }
44432fi
44433
44434
44435# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
44436set dummy "$TXTDelegateDefault"; ac_word=$2
44437{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44438$as_echo_n "checking for $ac_word... " >&6; }
44439if test "${ac_cv_path_TXTDelegate+set}" = set; then
44440 $as_echo_n "(cached) " >&6
44441else
44442 case $TXTDelegate in
44443 [\\/]* | ?:[\\/]*)
44444 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
44445 ;;
44446 *)
44447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44448for as_dir in $PATH
44449do
44450 IFS=$as_save_IFS
44451 test -z "$as_dir" && as_dir=.
44452 for ac_exec_ext in '' $ac_executable_extensions; do
44453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44454 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
44455 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44456 break 2
44457 fi
44458done
44459done
44460IFS=$as_save_IFS
44461
44462 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
44463 ;;
44464esac
44465fi
44466TXTDelegate=$ac_cv_path_TXTDelegate
44467if test -n "$TXTDelegate"; then
44468 { $as_echo "$as_me:$LINENO: result: $TXTDelegate" >&5
44469$as_echo "$TXTDelegate" >&6; }
44470else
44471 { $as_echo "$as_me:$LINENO: result: no" >&5
44472$as_echo "no" >&6; }
44473fi
44474
44475
44476# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
44477set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
44478{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44479$as_echo_n "checking for $ac_word... " >&6; }
44480if test "${ac_cv_path_WMFDecodeDelegate+set}" = set; then
44481 $as_echo_n "(cached) " >&6
44482else
44483 case $WMFDecodeDelegate in
44484 [\\/]* | ?:[\\/]*)
44485 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
44486 ;;
44487 *)
44488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44489for as_dir in $PATH
44490do
44491 IFS=$as_save_IFS
44492 test -z "$as_dir" && as_dir=.
44493 for ac_exec_ext in '' $ac_executable_extensions; do
44494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44495 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44496 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44497 break 2
44498 fi
44499done
44500done
44501IFS=$as_save_IFS
44502
44503 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
44504 ;;
44505esac
44506fi
44507WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
44508if test -n "$WMFDecodeDelegate"; then
44509 { $as_echo "$as_me:$LINENO: result: $WMFDecodeDelegate" >&5
44510$as_echo "$WMFDecodeDelegate" >&6; }
44511else
44512 { $as_echo "$as_me:$LINENO: result: no" >&5
44513$as_echo "no" >&6; }
44514fi
44515
44516
44517# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
44518set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
44519{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44520$as_echo_n "checking for $ac_word... " >&6; }
44521if test "${ac_cv_path_WWWDecodeDelegate+set}" = set; then
44522 $as_echo_n "(cached) " >&6
44523else
44524 case $WWWDecodeDelegate in
44525 [\\/]* | ?:[\\/]*)
44526 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
44527 ;;
44528 *)
44529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44530for as_dir in $PATH
44531do
44532 IFS=$as_save_IFS
44533 test -z "$as_dir" && as_dir=.
44534 for ac_exec_ext in '' $ac_executable_extensions; do
44535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44536 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
44537 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44538 break 2
44539 fi
44540done
44541done
44542IFS=$as_save_IFS
44543
44544 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
44545 ;;
44546esac
44547fi
44548WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
44549if test -n "$WWWDecodeDelegate"; then
44550 { $as_echo "$as_me:$LINENO: result: $WWWDecodeDelegate" >&5
44551$as_echo "$WWWDecodeDelegate" >&6; }
44552else
44553 { $as_echo "$as_me:$LINENO: result: no" >&5
44554$as_echo "no" >&6; }
44555fi
44556
44557
44558# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
44559set dummy "$XPSDelegateDefault"; ac_word=$2
44560{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44561$as_echo_n "checking for $ac_word... " >&6; }
44562if test "${ac_cv_path_XPSDelegate+set}" = set; then
44563 $as_echo_n "(cached) " >&6
44564else
44565 case $XPSDelegate in
44566 [\\/]* | ?:[\\/]*)
44567 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
44568 ;;
44569 *)
44570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44571for as_dir in $PATH
44572do
44573 IFS=$as_save_IFS
44574 test -z "$as_dir" && as_dir=.
44575 for ac_exec_ext in '' $ac_executable_extensions; do
44576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44577 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
44578 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44579 break 2
44580 fi
44581done
44582done
44583IFS=$as_save_IFS
44584
44585 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
44586 ;;
44587esac
44588fi
44589XPSDelegate=$ac_cv_path_XPSDelegate
44590if test -n "$XPSDelegate"; then
44591 { $as_echo "$as_me:$LINENO: result: $XPSDelegate" >&5
44592$as_echo "$XPSDelegate" >&6; }
44593else
44594 { $as_echo "$as_me:$LINENO: result: no" >&5
44595$as_echo "no" >&6; }
44596fi
44597
44598
44599# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
44600set dummy "$ZipDelegateDefault"; ac_word=$2
44601{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44602$as_echo_n "checking for $ac_word... " >&6; }
44603if test "${ac_cv_path_ZipDelegate+set}" = set; then
44604 $as_echo_n "(cached) " >&6
44605else
44606 case $ZipDelegate in
44607 [\\/]* | ?:[\\/]*)
44608 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
44609 ;;
44610 *)
44611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44612for as_dir in $PATH
44613do
44614 IFS=$as_save_IFS
44615 test -z "$as_dir" && as_dir=.
44616 for ac_exec_ext in '' $ac_executable_extensions; do
44617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44618 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
44619 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44620 break 2
44621 fi
44622done
44623done
44624IFS=$as_save_IFS
44625
44626 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
44627 ;;
44628esac
44629fi
44630ZipDelegate=$ac_cv_path_ZipDelegate
44631if test -n "$ZipDelegate"; then
44632 { $as_echo "$as_me:$LINENO: result: $ZipDelegate" >&5
44633$as_echo "$ZipDelegate" >&6; }
44634else
44635 { $as_echo "$as_me:$LINENO: result: no" >&5
44636$as_echo "no" >&6; }
44637fi
44638
44639
44640
44641# Prefer lpr to lp; lp needs options tacked on.
44642if test "$LPRDelegate" != no; then
44643 PrintDelegate="$LPRDelegate"
44644else
44645 PrintDelegate="$LPDelegate -c -s"
44646fi
44647
44648
44649# Installed ImageMagick utiltity paths
44650ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
44651DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
44652MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
44653
44654# Set delegate booleans
44655have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
44656have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
44657have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
44658have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
44659have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
44660have_mplayer='no'; if test "$AVIDecodeDelegate" != "$AVIDecodeDelegateDefault" ; then have_mplayer='yes'; fi
44661have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
44662have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
44663have_ra_pfm='no' ; if test "$HDRDecodeDelegate" != "$HDRDecodeDelegateDefault" ; then have_ra_pfm='yes'; fi
44664have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
44665have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
44666
44667#
44668# Test for font directories
44669#
44670type_include_files=''
44671
44672# Windows
44673windows_font_dir=''
44674if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
44675 windows_font_dir="${with_windows_font_dir}/"
44676fi
44677if test -n "$windows_font_dir"; then
44678 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
44679 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
44680 fi
44681 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
44682 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
44683 fi
44684 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
44685 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
44686 fi
44687fi
44688if test -n "$windows_font_dir"; then
44689 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
44690fi
44691
44692
44693# Ghostscript
44694{ $as_echo "$as_me:$LINENO: checking for Ghostscript fonts directory" >&5
44695$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
44696ghostscript_font_dir=''
44697if test "${with_gs_font_dir}" != 'default'; then
44698 ghostscript_font_dir="${with_gs_font_dir}/"
44699else
44700 if test "${native_win32_build}" = 'yes'; then
44701 # Native Windows Build
44702 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
44703 if test -f "${font_dir}a010013l.pfb"; then
44704 ghostscript_font_dir="$font_dir"
44705 break 1
44706 fi
44707 done
44708 if test "${PSDelegate}" != 'gswin32c'; then
44709 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
44710 fi
44711 else
44712 # Linux / Mac OS X / Unix Build
44713 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
44714 if test -f "${font_dir}a010013l.pfb"; then
44715 ghostscript_font_dir="${font_dir}"
44716 break 1
44717 fi
44718 done
44719 if test "${ghostscript_font_dir}x" = 'x'; then
44720 if test "$PSDelegate" != 'gs'; then
44721 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
44722 fi
44723 fi
44724 fi
44725fi
44726if test "${ghostscript_font_dir}x" != 'x'; then
44727 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
44728 { $as_echo "$as_me:$LINENO: result: $ghostscript_font_dir" >&5
44729$as_echo "$ghostscript_font_dir" >&6; }
44730else
44731 { $as_echo "$as_me:$LINENO: result: not found!" >&5
44732$as_echo "not found!" >&6; };
44733fi
44734
44735case "${build_os}" in
44736 mingw* )
44737 PSDelegate=`$WinPathScript "$PSDelegate" 1`
44738 ;;
44739esac
44740
44741
44742
44743#
44744# Handle case where user doesn't want frozen paths
44745#
44746if test "$with_frozenpaths" != 'yes'; then
44747 # Re-set delegate definitions to default (no paths)
44748 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
44749 AVIDecodeDelegate="$AVIDecodeDelegateDefault"
44750 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
44751 BZIPDelegate="$BZIPDelegateDefault"
44752 BrowseDelegate="$BrowseDelegateDefault"
44753 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
44754 CatDelegate="$CatDelegateDefault"
44755 ConvertDelegate="$ConvertDelegateDefault"
44756 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
44757 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
44758 EchoDelegate="$EchoDelegateDefault"
44759 EditorDelegate="$EditorDelegateDefault"
44760 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
44761 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
44762 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
44763 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
44764 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
44765 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
44766 LPDelegate="$LPDelegateDefault"
44767 LZWDecodeDelegate="$LZWDecodeDelegateDefault"
44768 LZWEncodeDelegate="$LZWEncodeDelegateDefault"
44769 LaunchDelegate="$LaunchDelegateDefault"
44770 MANDelegate="$MANDelegateDefault"
44771 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
44772 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
44773 MVDelegate="$MVDelegateDefault"
44774 MogrifyDelegate="$MogrifyDelegateDefault"
44775 PCLDelegate="$PCLDelegateDefault"
44776 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
44777 POVDelegate="$POVDelegateDefault"
44778 PSDelegate="$PSDelegateDefault"
44779 HDRDecodeDelegate="$HDRDecodeDelegateDefault"
44780 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
44781 RMDelegate="$RMDelegateDefault"
44782 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
44783 ShowImageDelegate="$ShowImageDelegateDefault"
44784 TXTDelegate="$TXTDelegateDefault"
44785 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
44786 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
44787 XPSDelegate="$XPSDelegateDefault"
44788 ZipDelegate="$ZipDelegateDefault"
44789fi
44790
44791# Delegate substitutions
44792
44793
44794
44795
44796
44797
44798
44799
44800
44801
44802
44803
44804
44805
44806
44807
44808
44809
44810
44811
44812
44813
44814
44815
44816
44817
44818
44819
44820
44821
44822
44823
44824
44825
44826
44827
44828
44829
44830
44831
44832
44833
44834#
44835# RPM support.
44836#
44837RPM=''
44838for ac_prog in gnutar gtar tar
44839do
44840 # Extract the first word of "$ac_prog", so it can be a program name with args.
44841set dummy $ac_prog; ac_word=$2
44842{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44843$as_echo_n "checking for $ac_word... " >&6; }
44844if test "${ac_cv_prog_TAR+set}" = set; then
44845 $as_echo_n "(cached) " >&6
44846else
44847 if test -n "$TAR"; then
44848 ac_cv_prog_TAR="$TAR" # Let the user override the test.
44849else
44850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44851for as_dir in $PATH
44852do
44853 IFS=$as_save_IFS
44854 test -z "$as_dir" && as_dir=.
44855 for ac_exec_ext in '' $ac_executable_extensions; do
44856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44857 ac_cv_prog_TAR="$ac_prog"
44858 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44859 break 2
44860 fi
44861done
44862done
44863IFS=$as_save_IFS
44864
44865fi
44866fi
44867TAR=$ac_cv_prog_TAR
44868if test -n "$TAR"; then
44869 { $as_echo "$as_me:$LINENO: result: $TAR" >&5
44870$as_echo "$TAR" >&6; }
44871else
44872 { $as_echo "$as_me:$LINENO: result: no" >&5
44873$as_echo "no" >&6; }
44874fi
44875
44876
44877 test -n "$TAR" && break
44878done
44879
44880for ac_prog in perl
44881do
44882 # Extract the first word of "$ac_prog", so it can be a program name with args.
44883set dummy $ac_prog; ac_word=$2
44884{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44885$as_echo_n "checking for $ac_word... " >&6; }
44886if test "${ac_cv_prog_PERL+set}" = set; then
44887 $as_echo_n "(cached) " >&6
44888else
44889 if test -n "$PERL"; then
44890 ac_cv_prog_PERL="$PERL" # Let the user override the test.
44891else
44892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44893for as_dir in $PATH
44894do
44895 IFS=$as_save_IFS
44896 test -z "$as_dir" && as_dir=.
44897 for ac_exec_ext in '' $ac_executable_extensions; do
44898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44899 ac_cv_prog_PERL="$ac_prog"
44900 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44901 break 2
44902 fi
44903done
44904done
44905IFS=$as_save_IFS
44906
44907fi
44908fi
44909PERL=$ac_cv_prog_PERL
44910if test -n "$PERL"; then
44911 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
44912$as_echo "$PERL" >&6; }
44913else
44914 { $as_echo "$as_me:$LINENO: result: no" >&5
44915$as_echo "no" >&6; }
44916fi
44917
44918
44919 test -n "$PERL" && break
44920done
44921
44922for ac_prog in rpmbuild rpm
44923do
44924 # Extract the first word of "$ac_prog", so it can be a program name with args.
44925set dummy $ac_prog; ac_word=$2
44926{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44927$as_echo_n "checking for $ac_word... " >&6; }
44928if test "${ac_cv_prog_RPM+set}" = set; then
44929 $as_echo_n "(cached) " >&6
44930else
44931 if test -n "$RPM"; then
44932 ac_cv_prog_RPM="$RPM" # Let the user override the test.
44933else
44934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44935for as_dir in $PATH
44936do
44937 IFS=$as_save_IFS
44938 test -z "$as_dir" && as_dir=.
44939 for ac_exec_ext in '' $ac_executable_extensions; do
44940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44941 ac_cv_prog_RPM="$ac_prog"
44942 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44943 break 2
44944 fi
44945done
44946done
44947IFS=$as_save_IFS
44948
44949fi
44950fi
44951RPM=$ac_cv_prog_RPM
44952if test -n "$RPM"; then
44953 { $as_echo "$as_me:$LINENO: result: $RPM" >&5
44954$as_echo "$RPM" >&6; }
44955else
44956 { $as_echo "$as_me:$LINENO: result: no" >&5
44957$as_echo "no" >&6; }
44958fi
44959
44960
44961 test -n "$RPM" && break
44962done
44963
44964
44965ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
44966
44967
44968AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
44969
44970
44971AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
44972
44973
44974AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
44975
44976
44977 if test "x$RPM" != "x" ; then
44978 RPM_DELEGATE_TRUE=
44979 RPM_DELEGATE_FALSE='#'
44980else
44981 RPM_DELEGATE_TRUE='#'
44982 RPM_DELEGATE_FALSE=
44983fi
44984
44985
44986#
44987# 7ZIP support (http://p7zip.sourceforge.net/)
44988#
44989P7ZIP=''
44990for ac_prog in 7za
44991do
44992 # Extract the first word of "$ac_prog", so it can be a program name with args.
44993set dummy $ac_prog; ac_word=$2
44994{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
44995$as_echo_n "checking for $ac_word... " >&6; }
44996if test "${ac_cv_prog_P7ZIP+set}" = set; then
44997 $as_echo_n "(cached) " >&6
44998else
44999 if test -n "$P7ZIP"; then
45000 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
45001else
45002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45003for as_dir in $PATH
45004do
45005 IFS=$as_save_IFS
45006 test -z "$as_dir" && as_dir=.
45007 for ac_exec_ext in '' $ac_executable_extensions; do
45008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45009 ac_cv_prog_P7ZIP="$ac_prog"
45010 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45011 break 2
45012 fi
45013done
45014done
45015IFS=$as_save_IFS
45016
45017fi
45018fi
45019P7ZIP=$ac_cv_prog_P7ZIP
45020if test -n "$P7ZIP"; then
45021 { $as_echo "$as_me:$LINENO: result: $P7ZIP" >&5
45022$as_echo "$P7ZIP" >&6; }
45023else
45024 { $as_echo "$as_me:$LINENO: result: no" >&5
45025$as_echo "no" >&6; }
45026fi
45027
45028
45029 test -n "$P7ZIP" && break
45030done
45031
45032
45033 if test "x$P7ZIP" != "x" ; then
45034 P7ZIP_DELEGATE_TRUE=
45035 P7ZIP_DELEGATE_FALSE='#'
45036else
45037 P7ZIP_DELEGATE_TRUE='#'
45038 P7ZIP_DELEGATE_FALSE=
45039fi
45040
45041
45042#
45043# ZIP support (http://www.info-zip.org/Zip.html)
45044#
45045ZIP=''
45046for ac_prog in zip
45047do
45048 # Extract the first word of "$ac_prog", so it can be a program name with args.
45049set dummy $ac_prog; ac_word=$2
45050{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45051$as_echo_n "checking for $ac_word... " >&6; }
45052if test "${ac_cv_prog_ZIP+set}" = set; then
45053 $as_echo_n "(cached) " >&6
45054else
45055 if test -n "$ZIP"; then
45056 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
45057else
45058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45059for as_dir in $PATH
45060do
45061 IFS=$as_save_IFS
45062 test -z "$as_dir" && as_dir=.
45063 for ac_exec_ext in '' $ac_executable_extensions; do
45064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45065 ac_cv_prog_ZIP="$ac_prog"
45066 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45067 break 2
45068 fi
45069done
45070done
45071IFS=$as_save_IFS
45072
45073fi
45074fi
45075ZIP=$ac_cv_prog_ZIP
45076if test -n "$ZIP"; then
45077 { $as_echo "$as_me:$LINENO: result: $ZIP" >&5
45078$as_echo "$ZIP" >&6; }
45079else
45080 { $as_echo "$as_me:$LINENO: result: no" >&5
45081$as_echo "no" >&6; }
45082fi
45083
45084
45085 test -n "$ZIP" && break
45086done
45087
45088
45089 if test "x$ZIP" != "x" ; then
45090 ZIP_DELEGATE_TRUE=
45091 ZIP_DELEGATE_FALSE='#'
45092else
45093 ZIP_DELEGATE_TRUE='#'
45094 ZIP_DELEGATE_FALSE=
45095fi
45096
45097
45098#
45099# GhostPCL related configuration.
45100#
45101PCLColorDevice=ppmraw
45102PCLCMYKDevice=bmpsep8
45103PCLMonoDevice=pbmraw
45104if test -z "$PCLVersion"; then
45105 PCLVersion='unknown'
45106fi
45107if test $have_pcl = 'yes'; then
45108 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
45109$as_echo "-------------------------------------------------------------" >&6; }
45110 { $as_echo "$as_me:$LINENO: checking for PCL" >&5
45111$as_echo_n "checking for PCL... " >&6; }
45112 { $as_echo "$as_me:$LINENO: result: " >&5
45113$as_echo "" >&6; }
45114 # PCLColorDevice
45115 { $as_echo "$as_me:$LINENO: checking for pcl color device" >&5
45116$as_echo_n "checking for pcl color device... " >&6; }
45117 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45118 :
45119 else
45120 PCLColorDevice=ppmraw
45121 fi
45122 { $as_echo "$as_me:$LINENO: result: $PCLColorDevice" >&5
45123$as_echo "$PCLColorDevice" >&6; }
45124
45125 # PCLCMYKDevice
45126 { $as_echo "$as_me:$LINENO: checking for pcl CMYK device" >&5
45127$as_echo_n "checking for pcl CMYK device... " >&6; }
45128 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45129 :
45130 else
45131 PCLCMYKDevice=$PCLColorDevice
45132 fi
45133 { $as_echo "$as_me:$LINENO: result: $PCLCMYKDevice" >&5
45134$as_echo "$PCLCMYKDevice" >&6; }
45135
45136 # PCLMonoDevice
45137 { $as_echo "$as_me:$LINENO: checking for pcl mono device" >&5
45138$as_echo_n "checking for pcl mono device... " >&6; }
45139 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45140 :
45141 else
45142 PCLMonoDevice=$PCLColorDevice
45143 fi
45144 { $as_echo "$as_me:$LINENO: result: $PCLMonoDevice" >&5
45145$as_echo "$PCLMonoDevice" >&6; }
45146fi
45147
45148
45149
45150
45151
45152
45153#
45154# GhostXPS related configuration.
45155#
45156XPSColorDevice=ppmraw
45157XPSCMYKDevice=bmpsep8
45158XPSMonoDevice=pbmraw
45159if test -z "$XPSVersion"; then
45160 XPSVersion='unknown'
45161fi
45162if test $have_xps = 'yes'; then
45163 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
45164$as_echo "-------------------------------------------------------------" >&6; }
45165 { $as_echo "$as_me:$LINENO: checking for XPS" >&5
45166$as_echo_n "checking for XPS... " >&6; }
45167 { $as_echo "$as_me:$LINENO: result: " >&5
45168$as_echo "" >&6; }
45169 # XPSColorDevice
45170 { $as_echo "$as_me:$LINENO: checking for xps color device" >&5
45171$as_echo_n "checking for xps color device... " >&6; }
45172 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45173 :
45174 else
45175 XPSColorDevice=ppmraw
45176 fi
45177 { $as_echo "$as_me:$LINENO: result: $XPSColorDevice" >&5
45178$as_echo "$XPSColorDevice" >&6; }
45179
45180 # XPSCMYKDevice
45181 { $as_echo "$as_me:$LINENO: checking for xps CMYK device" >&5
45182$as_echo_n "checking for xps CMYK device... " >&6; }
45183 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45184 :
45185 else
45186 XPSCMYKDevice=$XPSColorDevice
45187 fi
45188 { $as_echo "$as_me:$LINENO: result: $XPSCMYKDevice" >&5
45189$as_echo "$XPSCMYKDevice" >&6; }
45190
45191 # XPSMonoDevice
45192 { $as_echo "$as_me:$LINENO: checking for xps mono device" >&5
45193$as_echo_n "checking for xps mono device... " >&6; }
45194 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45195 :
45196 else
45197 XPSMonoDevice=$XPSColorDevice
45198 fi
45199 { $as_echo "$as_me:$LINENO: result: $XPSMonoDevice" >&5
45200$as_echo "$XPSMonoDevice" >&6; }
45201fi
45202
45203
45204
45205
45206
45207
45208#
45209# Ghostscript related configuration.
45210#
45211if test "$have_png" = 'yes'; then
45212 GSAlphaDevice=pngalpha
45213else
45214 GSAlphaDevice=pnmraw
45215fi
45216GSColorDevice=pnmraw
45217GSCMYKDevice=pam
45218GSMonoDevice=pbmraw
45219GSPDFDevice=pdfwrite
45220GSPSDevice=pswrite
45221GSEPSDevice=epswrite
45222GSVersion='unknown'
45223if test $have_gs = 'yes'; then
45224 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
45225$as_echo "-------------------------------------------------------------" >&6; }
45226 { $as_echo "$as_me:$LINENO: checking for Ghostscript" >&5
45227$as_echo_n "checking for Ghostscript... " >&6; }
45228 { $as_echo "$as_me:$LINENO: result: " >&5
45229$as_echo "" >&6; }
45230 { $as_echo "$as_me:$LINENO: checking for Ghostscript version" >&5
45231$as_echo_n "checking for Ghostscript version... " >&6; }
45232 if GSVersion=`$PSDelegate --version`; then
45233 :
45234 else
45235 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
45236 fi
45237 { $as_echo "$as_me:$LINENO: result: $GSVersion" >&5
45238$as_echo "$GSVersion" >&6; }
45239
45240 # GSAlphaDevice
45241 { $as_echo "$as_me:$LINENO: checking for gs alpha device" >&5
45242$as_echo_n "checking for gs alpha device... " >&6; }
45243 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45244 :
45245 else
45246 GSAlphaDevice=pnmraw
45247 fi
45248 { $as_echo "$as_me:$LINENO: result: $GSAlphaDevice" >&5
45249$as_echo "$GSAlphaDevice" >&6; }
45250
45251 # GSColorDevice
45252 { $as_echo "$as_me:$LINENO: checking for gs color device" >&5
45253$as_echo_n "checking for gs color device... " >&6; }
45254 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45255 :
45256 else
45257 GSColorDevice=pnmraw
45258 fi
45259 { $as_echo "$as_me:$LINENO: result: $GSColorDevice" >&5
45260$as_echo "$GSColorDevice" >&6; }
45261
45262 # GSCMYKDevice
45263 { $as_echo "$as_me:$LINENO: checking for gs CMYK device" >&5
45264$as_echo_n "checking for gs CMYK device... " >&6; }
45265 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45266 :
45267 else
45268 GSCMYKDevice=bmpsep8
45269 fi
45270 { $as_echo "$as_me:$LINENO: result: $GSCMYKDevice" >&5
45271$as_echo "$GSCMYKDevice" >&6; }
45272
45273 # GSMonoDevice
45274 { $as_echo "$as_me:$LINENO: checking for gs mono device" >&5
45275$as_echo_n "checking for gs mono device... " >&6; }
45276 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45277 :
45278 else
45279 GSMonoDevice=$GSColorDevice
45280 fi
45281 { $as_echo "$as_me:$LINENO: result: $GSMonoDevice" >&5
45282$as_echo "$GSMonoDevice" >&6; }
45283
45284 # GSPDFDevice
45285 { $as_echo "$as_me:$LINENO: checking for gs PDF writing device" >&5
45286$as_echo_n "checking for gs PDF writing device... " >&6; }
45287 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45288 :
45289 else
45290 GSPDFDevice=nodevice
45291 fi
45292 { $as_echo "$as_me:$LINENO: result: $GSPDFDevice" >&5
45293$as_echo "$GSPDFDevice" >&6; }
45294
45295 # GSPSDevice
45296 { $as_echo "$as_me:$LINENO: checking for gs PS writing device" >&5
45297$as_echo_n "checking for gs PS writing device... " >&6; }
45298 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45299 :
45300 else
45301 GSPSDevice=nodevice
45302 fi
45303 { $as_echo "$as_me:$LINENO: result: $GSPSDevice" >&5
45304$as_echo "$GSPSDevice" >&6; }
45305
45306 # GSEPSDevice
45307 { $as_echo "$as_me:$LINENO: checking for gs EPS writing device" >&5
45308$as_echo_n "checking for gs EPS writing device... " >&6; }
45309 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
45310 :
45311 else
45312 GSEPSDevice=nodevice
45313 fi
45314 { $as_echo "$as_me:$LINENO: result: $GSEPSDevice" >&5
45315$as_echo "$GSEPSDevice" >&6; }
45316fi
45317
45318
45319
45320
45321
45322
45323
45324
45325
45326
45327#
45328# PerlMagick-related configuration
45329#
45330
45331# Look for PERL if PerlMagick requested
45332# If name/path of desired PERL interpreter is specified, look for that one first
45333have_perl='no'
45334if test "$with_perl" != 'no'; then
45335 { $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
45336$as_echo "-------------------------------------------------------------" >&6; }
45337 { $as_echo "$as_me:$LINENO: checking for Perl" >&5
45338$as_echo_n "checking for Perl... " >&6; }
45339 { $as_echo "$as_me:$LINENO: result: " >&5
45340$as_echo "" >&6; }
45341 if test "$with_perl" != 'yes'; then
45342 { $as_echo "$as_me:$LINENO: checking for perl" >&5
45343$as_echo_n "checking for perl... " >&6; }
45344if test "${ac_cv_path_PERL+set}" = set; then
45345 $as_echo_n "(cached) " >&6
45346else
45347 ac_cv_path_PERL="$with_perl"
45348fi
45349{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_PERL" >&5
45350$as_echo "$ac_cv_path_PERL" >&6; };
45351 PERL=$ac_cv_path_PERL
45352 have_perl="$ac_cv_path_PERL"
45353 else
45354 for ac_prog in perl perl5
45355do
45356 # Extract the first word of "$ac_prog", so it can be a program name with args.
45357set dummy $ac_prog; ac_word=$2
45358{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45359$as_echo_n "checking for $ac_word... " >&6; }
45360if test "${ac_cv_path_PERL+set}" = set; then
45361 $as_echo_n "(cached) " >&6
45362else
45363 case $PERL in
45364 [\\/]* | ?:[\\/]*)
45365 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
45366 ;;
45367 *)
45368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45369for as_dir in $PATH
45370do
45371 IFS=$as_save_IFS
45372 test -z "$as_dir" && as_dir=.
45373 for ac_exec_ext in '' $ac_executable_extensions; do
45374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45375 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
45376 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45377 break 2
45378 fi
45379done
45380done
45381IFS=$as_save_IFS
45382
45383 ;;
45384esac
45385fi
45386PERL=$ac_cv_path_PERL
45387if test -n "$PERL"; then
45388 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
45389$as_echo "$PERL" >&6; }
45390else
45391 { $as_echo "$as_me:$LINENO: result: no" >&5
45392$as_echo "no" >&6; }
45393fi
45394
45395
45396 test -n "$PERL" && break
45397done
45398 if test "$ac_cv_path_PERL"; then
45399 have_perl="$ac_cv_path_PERL"
45400 fi
45401 fi
45402fi
45403
45404with_perl_static='no'
45405with_perl_dynamic='no'
45406if test "$have_perl" != 'no'; then
45407 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
45408 with_perl_static='yes'
45409 fi
45410 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
45411 with_perl_dynamic='yes'
45412 fi
45413 # Is PERL's MakeMaker new enough to support DESTDIR?
45414 # Make sure we have perl
45415if test -z "$PERL"; then
45416# Extract the first word of "perl", so it can be a program name with args.
45417set dummy perl; ac_word=$2
45418{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
45419$as_echo_n "checking for $ac_word... " >&6; }
45420if test "${ac_cv_prog_PERL+set}" = set; then
45421 $as_echo_n "(cached) " >&6
45422else
45423 if test -n "$PERL"; then
45424 ac_cv_prog_PERL="$PERL" # Let the user override the test.
45425else
45426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45427for as_dir in $PATH
45428do
45429 IFS=$as_save_IFS
45430 test -z "$as_dir" && as_dir=.
45431 for ac_exec_ext in '' $ac_executable_extensions; do
45432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45433 ac_cv_prog_PERL="perl"
45434 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45435 break 2
45436 fi
45437done
45438done
45439IFS=$as_save_IFS
45440
45441fi
45442fi
45443PERL=$ac_cv_prog_PERL
45444if test -n "$PERL"; then
45445 { $as_echo "$as_me:$LINENO: result: $PERL" >&5
45446$as_echo "$PERL" >&6; }
45447else
45448 { $as_echo "$as_me:$LINENO: result: no" >&5
45449$as_echo "no" >&6; }
45450fi
45451
45452
45453fi
45454
45455# Check if version of Perl is sufficient
45456ac_perl_version="5.8.1"
45457
45458if test "x$PERL" != "x"; then
45459 { $as_echo "$as_me:$LINENO: checking for perl version greater than or equal to $ac_perl_version" >&5
45460$as_echo_n "checking for perl version greater than or equal to $ac_perl_version... " >&6; }
45461 # NB: It would be nice to log the error if there is one, but we cannot rely
45462 # on autoconf internals
45463 $PERL -e "use $ac_perl_version;" > /dev/null 2>&1
45464 if test $? -ne 0; then
45465 { $as_echo "$as_me:$LINENO: result: no" >&5
45466$as_echo "no" >&6; };
45467 PERL_SUPPORTS_DESTDIR='no'
45468 else
45469 { $as_echo "$as_me:$LINENO: result: ok" >&5
45470$as_echo "ok" >&6; };
45471 PERL_SUPPORTS_DESTDIR='yes'
45472 fi
45473else
45474 { $as_echo "$as_me:$LINENO: WARNING: could not find perl" >&5
45475$as_echo "$as_me: WARNING: could not find perl" >&2;}
45476fi
45477
45478fi
45479 if test "$have_perl" != 'no'; then
45480 WITH_PERL_TRUE=
45481 WITH_PERL_FALSE='#'
45482else
45483 WITH_PERL_TRUE='#'
45484 WITH_PERL_FALSE=
45485fi
45486
45487 if test $with_perl_static = 'yes'; then
45488 WITH_PERL_STATIC_TRUE=
45489 WITH_PERL_STATIC_FALSE='#'
45490else
45491 WITH_PERL_STATIC_TRUE='#'
45492 WITH_PERL_STATIC_FALSE=
45493fi
45494
45495 if test $with_perl_dynamic = 'yes'; then
45496 WITH_PERL_DYNAMIC_TRUE=
45497 WITH_PERL_DYNAMIC_FALSE='#'
45498else
45499 WITH_PERL_DYNAMIC_TRUE='#'
45500 WITH_PERL_DYNAMIC_FALSE=
45501fi
45502
45503
45504
45505# Determine path to pick up MagickCore library from for use with building PerlMagick
45506MAGICKCORE_PATH="${LIB_DIR}"
45507if test $with_perl_static = 'yes'; then
45508 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
45509 libtool_objdir=$objdir
45510
45511 # Linker search path to library, followed by -lMagickCore
45512 MAGICKCORE_PATH="${builddir}/magick/${libtool_objdir}"
45513fi
45514
45515
45516# Create a simple string containing format names for all delegate libraries
45517DELEGATES=''
45518if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
45519if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
45520if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
45521if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
45522if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
45523if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
45524if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
45525if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
45526if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
45527if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
45528if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
45529if test "$have_jpeg" = 'yes'; then
45530 DELEGATES="$DELEGATES jpeg";
45531 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
45532fi
45533if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
45534if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
45535if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
45536if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
45537if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
45538if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
45539if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
45540if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
45541if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
45542if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
45543if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
45544if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
45545
45546
45547
45548#
45549# Handle special compiler flags
45550#
45551
45552# Add '-p' if prof source profiling support enabled
45553if test "$enable_prof" = 'yes'; then
45554 CFLAGS="-p $CFLAGS"
45555 CXXFLAGS="-p $CXXFLAGS"
45556 LDFLAGS="-p $LDFLAGS"
45557fi
45558
45559# Add '-pg' if gprof source profiling support enabled
45560if test "$enable_gprof" = 'yes'; then
45561 CFLAGS="-pg $CFLAGS"
45562 CXXFLAGS="-pg $CXXFLAGS"
45563 LDFLAGS="-pg $LDFLAGS"
45564fi
45565
45566# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
45567# This is a gcc-specific feature
45568if test "$enable_gcov" = 'yes'; then
45569
45570{ $as_echo "$as_me:$LINENO: checking for _gcov_init in -lgcov" >&5
45571$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
45572if test "${ac_cv_lib_gcov__gcov_init+set}" = set; then
45573 $as_echo_n "(cached) " >&6
45574else
45575 ac_check_lib_save_LIBS=$LIBS
45576LIBS="-lgcov $LIBS"
45577cat >conftest.$ac_ext <<_ACEOF
45578/* confdefs.h. */
45579_ACEOF
45580cat confdefs.h >>conftest.$ac_ext
45581cat >>conftest.$ac_ext <<_ACEOF
45582/* end confdefs.h. */
45583
45584/* Override any GCC internal prototype to avoid an error.
45585 Use char because int might match the return type of a GCC
45586 builtin and then its argument prototype would still apply. */
45587#ifdef __cplusplus
45588extern "C"
45589#endif
45590char _gcov_init ();
45591int
45592main ()
45593{
45594return _gcov_init ();
45595 ;
45596 return 0;
45597}
45598_ACEOF
45599rm -f conftest.$ac_objext conftest$ac_exeext
45600if { (ac_try="$ac_link"
45601case "(($ac_try" in
45602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45603 *) ac_try_echo=$ac_try;;
45604esac
45605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45606$as_echo "$ac_try_echo") >&5
45607 (eval "$ac_link") 2>conftest.er1
45608 ac_status=$?
45609 grep -v '^ *+' conftest.er1 >conftest.err
45610 rm -f conftest.er1
45611 cat conftest.err >&5
45612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45613 (exit $ac_status); } && {
45614 test -z "$ac_c_werror_flag" ||
45615 test ! -s conftest.err
45616 } && test -s conftest$ac_exeext && {
45617 test "$cross_compiling" = yes ||
45618 $as_test_x conftest$ac_exeext
45619 }; then
45620 ac_cv_lib_gcov__gcov_init=yes
45621else
45622 $as_echo "$as_me: failed program was:" >&5
45623sed 's/^/| /' conftest.$ac_ext >&5
45624
45625 ac_cv_lib_gcov__gcov_init=no
45626fi
45627
45628rm -rf conftest.dSYM
45629rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45630 conftest$ac_exeext conftest.$ac_ext
45631LIBS=$ac_check_lib_save_LIBS
45632fi
45633{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gcov__gcov_init" >&5
45634$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
45635if test "x$ac_cv_lib_gcov__gcov_init" = x""yes; then
45636 cat >>confdefs.h <<_ACEOF
45637#define HAVE_LIBGCOV 1
45638_ACEOF
45639
45640 LIBS="-lgcov $LIBS"
45641
45642fi
45643
45644
45645{ $as_echo "$as_me:$LINENO: checking for __gcov_init in -lgcov" >&5
45646$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
45647if test "${ac_cv_lib_gcov___gcov_init+set}" = set; then
45648 $as_echo_n "(cached) " >&6
45649else
45650 ac_check_lib_save_LIBS=$LIBS
45651LIBS="-lgcov $LIBS"
45652cat >conftest.$ac_ext <<_ACEOF
45653/* confdefs.h. */
45654_ACEOF
45655cat confdefs.h >>conftest.$ac_ext
45656cat >>conftest.$ac_ext <<_ACEOF
45657/* end confdefs.h. */
45658
45659/* Override any GCC internal prototype to avoid an error.
45660 Use char because int might match the return type of a GCC
45661 builtin and then its argument prototype would still apply. */
45662#ifdef __cplusplus
45663extern "C"
45664#endif
45665char __gcov_init ();
45666int
45667main ()
45668{
45669return __gcov_init ();
45670 ;
45671 return 0;
45672}
45673_ACEOF
45674rm -f conftest.$ac_objext conftest$ac_exeext
45675if { (ac_try="$ac_link"
45676case "(($ac_try" in
45677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45678 *) ac_try_echo=$ac_try;;
45679esac
45680eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45681$as_echo "$ac_try_echo") >&5
45682 (eval "$ac_link") 2>conftest.er1
45683 ac_status=$?
45684 grep -v '^ *+' conftest.er1 >conftest.err
45685 rm -f conftest.er1
45686 cat conftest.err >&5
45687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45688 (exit $ac_status); } && {
45689 test -z "$ac_c_werror_flag" ||
45690 test ! -s conftest.err
45691 } && test -s conftest$ac_exeext && {
45692 test "$cross_compiling" = yes ||
45693 $as_test_x conftest$ac_exeext
45694 }; then
45695 ac_cv_lib_gcov___gcov_init=yes
45696else
45697 $as_echo "$as_me: failed program was:" >&5
45698sed 's/^/| /' conftest.$ac_ext >&5
45699
45700 ac_cv_lib_gcov___gcov_init=no
45701fi
45702
45703rm -rf conftest.dSYM
45704rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45705 conftest$ac_exeext conftest.$ac_ext
45706LIBS=$ac_check_lib_save_LIBS
45707fi
45708{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gcov___gcov_init" >&5
45709$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
45710if test "x$ac_cv_lib_gcov___gcov_init" = x""yes; then
45711 cat >>confdefs.h <<_ACEOF
45712#define HAVE_LIBGCOV 1
45713_ACEOF
45714
45715 LIBS="-lgcov $LIBS"
45716
45717fi
45718
45719 case "$target_os" in
45720 darwin*)
45721 OSX_GCOV_LDFLAG="-Wl,-single_module"
45722 ;;
45723 *)
45724 OSX_GCOV_LDFLAG=""
45725 ;;
45726 esac
45727
45728 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
45729 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
45730 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
45731fi
45732
45733#
45734# Build library dependency list for libMagickCore
45735#
45736
45737MAGICK_LIBLTDL='' # Libltdl for build
45738MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
45739MAGICK_LTDLDEPS='' # extra libltdl dependencies
45740if test "$with_ltdl" != 'no'
45741then
45742 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
45743 MAGICK_API_LIBLTDL='-lltdl'
45744 fi
45745 MAGICK_LIBLTDL=${LIBLTDL}
45746 MAGICK_LTDLDEPS=${LTDLDEPS}
45747fi
45748
45749
45750
45751if test "$with_modules" != 'no'; then
45752 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 $THREAD_LIBS"
45753else
45754 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 $THREAD_LIBS"
45755fi
45756
45757
45758#
45759# Remove extraneous spaces from output variables (asthetic)
45760#
45761X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
45762X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
45763X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
45764X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
45765
45766CC=`echo $CC | sed -e 's/ */ /g'`
45767CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
45768CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
45769CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
45770DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
45771DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
45772LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
45773TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
45774MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
45775#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
45776
45777# Pass only user-provided LIBS as "global" libraries
45778LIBS=$USER_LIBS
45779
45780#AC_SUBST(CPPFLAGS)
45781
45782#AC_SUBST(LDFLAGS)
45783#AC_SUBST(X_PRE_LIBS)
45784#AC_SUBST(X_LIBS)
45785#AC_SUBST(X_EXTRA_LIBS)
45786
45787MAGICK_CFLAGS=$CFLAGS
45788MAGICK_CXXFLAGS="$CXXFLAGS"
45789MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
45790MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
45791MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
45792MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
45793
45794
45795
45796
45797
45798
45799
45800
45801# Set configured scripts to executable.
45802ac_config_commands="$ac_config_commands default"
45803
45804ac_config_commands="$ac_config_commands MagickCore-config.in"
45805
45806ac_config_commands="$ac_config_commands Magick-config.in"
45807
45808ac_config_commands="$ac_config_commands MagickWand-config.in"
45809
45810ac_config_commands="$ac_config_commands Wand-config.in"
45811
45812ac_config_commands="$ac_config_commands Magick++-config.in"
45813
45814ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
45815
45816
45817{ $as_echo "$as_me:$LINENO: result: -------------------------------------------------------------" >&5
45818$as_echo "-------------------------------------------------------------" >&6; }
45819{ $as_echo "$as_me:$LINENO: result: Update ImageMagick configuration" >&5
45820$as_echo "Update ImageMagick configuration" >&6; }
45821cat >confcache <<\_ACEOF
45822# This file is a shell script that caches the results of configure
45823# tests run on this system so they can be shared between configure
45824# scripts and configure runs, see configure's option --config-cache.
45825# It is not useful on other systems. If it contains results you don't
45826# want to keep, you may remove or edit it.
45827#
45828# config.status only pays attention to the cache file if you give it
45829# the --recheck option to rerun configure.
45830#
45831# `ac_cv_env_foo' variables (set or unset) will be overridden when
45832# loading this file, other *unset* `ac_cv_foo' will be assigned the
45833# following values.
45834
45835_ACEOF
45836
45837# The following way of writing the cache mishandles newlines in values,
45838# but we know of no workaround that is simple, portable, and efficient.
45839# So, we kill variables containing newlines.
45840# Ultrix sh set writes to stderr and can't be redirected directly,
45841# and sets the high bit in the cache file unless we assign to the vars.
45842(
45843 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
45844 eval ac_val=\$$ac_var
45845 case $ac_val in #(
45846 *${as_nl}*)
45847 case $ac_var in #(
45848 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
45849$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
45850 esac
45851 case $ac_var in #(
45852 _ | IFS | as_nl) ;; #(
45853 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
45854 *) $as_unset $ac_var ;;
45855 esac ;;
45856 esac
45857 done
45858
45859 (set) 2>&1 |
45860 case $as_nl`(ac_space=' '; set) 2>&1` in #(
45861 *${as_nl}ac_space=\ *)
45862 # `set' does not quote correctly, so add quotes (double-quote
45863 # substitution turns \\\\ into \\, and sed turns \\ into \).
45864 sed -n \
45865 "s/'/'\\\\''/g;
45866 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
45867 ;; #(
45868 *)
45869 # `set' quotes correctly as required by POSIX, so do not add quotes.
45870 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
45871 ;;
45872 esac |
45873 sort
45874) |
45875 sed '
45876 /^ac_cv_env_/b end
45877 t clear
45878 :clear
45879 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
45880 t end
45881 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45882 :end' >>confcache
45883if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
45884 if test -w "$cache_file"; then
45885 test "x$cache_file" != "x/dev/null" &&
45886 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
45887$as_echo "$as_me: updating cache $cache_file" >&6;}
45888 cat confcache >$cache_file
45889 else
45890 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
45891$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
45892 fi
45893fi
45894rm -f confcache
45895
45896test "x$prefix" = xNONE && prefix=$ac_default_prefix
45897# Let make expand exec_prefix.
45898test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45899
45900DEFS=-DHAVE_CONFIG_H
45901
45902ac_libobjs=
45903ac_ltlibobjs=
45904for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45905 # 1. Remove the extension, and $U if already installed.
45906 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
45907 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
45908 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
45909 # will be set to the directory where LIBOBJS objects are built.
45910 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
45911 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
45912done
45913LIBOBJS=$ac_libobjs
45914
45915LTLIBOBJS=$ac_ltlibobjs
45916
45917
45918 if test -n "$EXEEXT"; then
45919 am__EXEEXT_TRUE=
45920 am__EXEEXT_FALSE='#'
45921else
45922 am__EXEEXT_TRUE='#'
45923 am__EXEEXT_FALSE=
45924fi
45925
45926if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
45927 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
45928Usually this means the macro was only invoked conditionally." >&5
45929$as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
45930Usually this means the macro was only invoked conditionally." >&2;}
45931 { (exit 1); exit 1; }; }
45932fi
45933if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45934 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
45935Usually this means the macro was only invoked conditionally." >&5
45936$as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
45937Usually this means the macro was only invoked conditionally." >&2;}
45938 { (exit 1); exit 1; }; }
45939fi
45940if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
45941 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
45942Usually this means the macro was only invoked conditionally." >&5
45943$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
45944Usually this means the macro was only invoked conditionally." >&2;}
45945 { (exit 1); exit 1; }; }
45946fi
45947if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
45948 { { $as_echo "$as_me:$LINENO: error: conditional \"WINGDI32_DELEGATE\" was never defined.
45949Usually this means the macro was only invoked conditionally." >&5
45950$as_echo "$as_me: error: conditional \"WINGDI32_DELEGATE\" was never defined.
45951Usually this means the macro was only invoked conditionally." >&2;}
45952 { (exit 1); exit 1; }; }
45953fi
45954if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
45955 { { $as_echo "$as_me:$LINENO: error: conditional \"WIN32_NATIVE_BUILD\" was never defined.
45956Usually this means the macro was only invoked conditionally." >&5
45957$as_echo "$as_me: error: conditional \"WIN32_NATIVE_BUILD\" was never defined.
45958Usually this means the macro was only invoked conditionally." >&2;}
45959 { (exit 1); exit 1; }; }
45960fi
45961if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
45962 { { $as_echo "$as_me:$LINENO: error: conditional \"CYGWIN_BUILD\" was never defined.
45963Usually this means the macro was only invoked conditionally." >&5
45964$as_echo "$as_me: error: conditional \"CYGWIN_BUILD\" was never defined.
45965Usually this means the macro was only invoked conditionally." >&2;}
45966 { (exit 1); exit 1; }; }
45967fi
45968if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
45969 { { $as_echo "$as_me:$LINENO: error: conditional \"USING_CL\" was never defined.
45970Usually this means the macro was only invoked conditionally." >&5
45971$as_echo "$as_me: error: conditional \"USING_CL\" was never defined.
45972Usually this means the macro was only invoked conditionally." >&2;}
45973 { (exit 1); exit 1; }; }
45974fi
45975if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
45976 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
45977Usually this means the macro was only invoked conditionally." >&5
45978$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
45979Usually this means the macro was only invoked conditionally." >&2;}
45980 { (exit 1); exit 1; }; }
45981fi
45982if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
45983 { { $as_echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
45984Usually this means the macro was only invoked conditionally." >&5
45985$as_echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
45986Usually this means the macro was only invoked conditionally." >&2;}
45987 { (exit 1); exit 1; }; }
45988fi
45989if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
45990 { { $as_echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
45991Usually this means the macro was only invoked conditionally." >&5
45992$as_echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
45993Usually this means the macro was only invoked conditionally." >&2;}
45994 { (exit 1); exit 1; }; }
45995fi
45996LT_CONFIG_H=config/config.h
45997
45998 _ltdl_libobjs=
45999 _ltdl_ltlibobjs=
46000 if test -n "$_LT_LIBOBJS"; then
46001 # Remove the extension.
46002 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
46003 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
46004 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
46005 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
46006 done
46007 fi
46008 ltdl_LIBOBJS=$_ltdl_libobjs
46009
46010 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
46011
46012
46013if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
46014 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_MODULES\" was never defined.
46015Usually this means the macro was only invoked conditionally." >&5
46016$as_echo "$as_me: error: conditional \"WITH_MODULES\" was never defined.
46017Usually this means the macro was only invoked conditionally." >&2;}
46018 { (exit 1); exit 1; }; }
46019fi
46020if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
46021 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_LTDL\" was never defined.
46022Usually this means the macro was only invoked conditionally." >&5
46023$as_echo "$as_me: error: conditional \"WITH_LTDL\" was never defined.
46024Usually this means the macro was only invoked conditionally." >&2;}
46025 { (exit 1); exit 1; }; }
46026fi
46027if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
46028 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
46029Usually this means the macro was only invoked conditionally." >&5
46030$as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
46031Usually this means the macro was only invoked conditionally." >&2;}
46032 { (exit 1); exit 1; }; }
46033fi
46034
46035if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
46036 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
46037Usually this means the macro was only invoked conditionally." >&5
46038$as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
46039Usually this means the macro was only invoked conditionally." >&2;}
46040 { (exit 1); exit 1; }; }
46041fi
46042if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
46043 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
46044Usually this means the macro was only invoked conditionally." >&5
46045$as_echo "$as_me: error: conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
46046Usually this means the macro was only invoked conditionally." >&2;}
46047 { (exit 1); exit 1; }; }
46048fi
46049if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
46050 { { $as_echo "$as_me:$LINENO: error: conditional \"HasUMEM\" was never defined.
46051Usually this means the macro was only invoked conditionally." >&5
46052$as_echo "$as_me: error: conditional \"HasUMEM\" was never defined.
46053Usually this means the macro was only invoked conditionally." >&2;}
46054 { (exit 1); exit 1; }; }
46055fi
46056if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
46057 { { $as_echo "$as_me:$LINENO: error: conditional \"BZLIB_DELEGATE\" was never defined.
46058Usually this means the macro was only invoked conditionally." >&5
46059$as_echo "$as_me: error: conditional \"BZLIB_DELEGATE\" was never defined.
46060Usually this means the macro was only invoked conditionally." >&2;}
46061 { (exit 1); exit 1; }; }
46062fi
46063if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
46064 { { $as_echo "$as_me:$LINENO: error: conditional \"X11_DELEGATE\" was never defined.
46065Usually this means the macro was only invoked conditionally." >&5
46066$as_echo "$as_me: error: conditional \"X11_DELEGATE\" was never defined.
46067Usually this means the macro was only invoked conditionally." >&2;}
46068 { (exit 1); exit 1; }; }
46069fi
46070if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
46071 { { $as_echo "$as_me:$LINENO: error: conditional \"ZLIB_DELEGATE\" was never defined.
46072Usually this means the macro was only invoked conditionally." >&5
46073$as_echo "$as_me: error: conditional \"ZLIB_DELEGATE\" was never defined.
46074Usually this means the macro was only invoked conditionally." >&2;}
46075 { (exit 1); exit 1; }; }
46076fi
46077if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
46078 { { $as_echo "$as_me:$LINENO: error: conditional \"AUTOTRACE_DELEGATE\" was never defined.
46079Usually this means the macro was only invoked conditionally." >&5
46080$as_echo "$as_me: error: conditional \"AUTOTRACE_DELEGATE\" was never defined.
46081Usually this means the macro was only invoked conditionally." >&2;}
46082 { (exit 1); exit 1; }; }
46083fi
46084if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
46085 { { $as_echo "$as_me:$LINENO: error: conditional \"DPS_DELEGATE\" was never defined.
46086Usually this means the macro was only invoked conditionally." >&5
46087$as_echo "$as_me: error: conditional \"DPS_DELEGATE\" was never defined.
46088Usually this means the macro was only invoked conditionally." >&2;}
46089 { (exit 1); exit 1; }; }
46090fi
46091if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
46092 { { $as_echo "$as_me:$LINENO: error: conditional \"DJVU_DELEGATE\" was never defined.
46093Usually this means the macro was only invoked conditionally." >&5
46094$as_echo "$as_me: error: conditional \"DJVU_DELEGATE\" was never defined.
46095Usually this means the macro was only invoked conditionally." >&2;}
46096 { (exit 1); exit 1; }; }
46097fi
46098if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
46099 { { $as_echo "$as_me:$LINENO: error: conditional \"FFTW_DELEGATE\" was never defined.
46100Usually this means the macro was only invoked conditionally." >&5
46101$as_echo "$as_me: error: conditional \"FFTW_DELEGATE\" was never defined.
46102Usually this means the macro was only invoked conditionally." >&2;}
46103 { (exit 1); exit 1; }; }
46104fi
46105if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
46106 { { $as_echo "$as_me:$LINENO: error: conditional \"FPX_DELEGATE\" was never defined.
46107Usually this means the macro was only invoked conditionally." >&5
46108$as_echo "$as_me: error: conditional \"FPX_DELEGATE\" was never defined.
46109Usually this means the macro was only invoked conditionally." >&2;}
46110 { (exit 1); exit 1; }; }
46111fi
46112if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
46113 { { $as_echo "$as_me:$LINENO: error: conditional \"FONTCONFIG_DELEGATE\" was never defined.
46114Usually this means the macro was only invoked conditionally." >&5
46115$as_echo "$as_me: error: conditional \"FONTCONFIG_DELEGATE\" was never defined.
46116Usually this means the macro was only invoked conditionally." >&2;}
46117 { (exit 1); exit 1; }; }
46118fi
46119if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
46120 { { $as_echo "$as_me:$LINENO: error: conditional \"FREETYPE_DELEGATE\" was never defined.
46121Usually this means the macro was only invoked conditionally." >&5
46122$as_echo "$as_me: error: conditional \"FREETYPE_DELEGATE\" was never defined.
46123Usually this means the macro was only invoked conditionally." >&2;}
46124 { (exit 1); exit 1; }; }
46125fi
46126if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
46127 { { $as_echo "$as_me:$LINENO: error: conditional \"GS_DELEGATE\" was never defined.
46128Usually this means the macro was only invoked conditionally." >&5
46129$as_echo "$as_me: error: conditional \"GS_DELEGATE\" was never defined.
46130Usually this means the macro was only invoked conditionally." >&2;}
46131 { (exit 1); exit 1; }; }
46132fi
46133if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
46134 { { $as_echo "$as_me:$LINENO: error: conditional \"GVC_DELEGATE\" was never defined.
46135Usually this means the macro was only invoked conditionally." >&5
46136$as_echo "$as_me: error: conditional \"GVC_DELEGATE\" was never defined.
46137Usually this means the macro was only invoked conditionally." >&2;}
46138 { (exit 1); exit 1; }; }
46139fi
46140if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
46141 { { $as_echo "$as_me:$LINENO: error: conditional \"JBIG_DELEGATE\" was never defined.
46142Usually this means the macro was only invoked conditionally." >&5
46143$as_echo "$as_me: error: conditional \"JBIG_DELEGATE\" was never defined.
46144Usually this means the macro was only invoked conditionally." >&2;}
46145 { (exit 1); exit 1; }; }
46146fi
46147if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
46148 { { $as_echo "$as_me:$LINENO: error: conditional \"JPEG_DELEGATE\" was never defined.
46149Usually this means the macro was only invoked conditionally." >&5
46150$as_echo "$as_me: error: conditional \"JPEG_DELEGATE\" was never defined.
46151Usually this means the macro was only invoked conditionally." >&2;}
46152 { (exit 1); exit 1; }; }
46153fi
46154if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
46155 { { $as_echo "$as_me:$LINENO: error: conditional \"JP2_DELEGATE\" was never defined.
46156Usually this means the macro was only invoked conditionally." >&5
46157$as_echo "$as_me: error: conditional \"JP2_DELEGATE\" was never defined.
46158Usually this means the macro was only invoked conditionally." >&2;}
46159 { (exit 1); exit 1; }; }
46160fi
46161if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
46162 { { $as_echo "$as_me:$LINENO: error: conditional \"LCMS_DELEGATE\" was never defined.
46163Usually this means the macro was only invoked conditionally." >&5
46164$as_echo "$as_me: error: conditional \"LCMS_DELEGATE\" was never defined.
46165Usually this means the macro was only invoked conditionally." >&2;}
46166 { (exit 1); exit 1; }; }
46167fi
46168if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
46169 { { $as_echo "$as_me:$LINENO: error: conditional \"LQR_DELEGATE\" was never defined.
46170Usually this means the macro was only invoked conditionally." >&5
46171$as_echo "$as_me: error: conditional \"LQR_DELEGATE\" was never defined.
46172Usually this means the macro was only invoked conditionally." >&2;}
46173 { (exit 1); exit 1; }; }
46174fi
46175if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
46176 { { $as_echo "$as_me:$LINENO: error: conditional \"OPENEXR_DELEGATE\" was never defined.
46177Usually this means the macro was only invoked conditionally." >&5
46178$as_echo "$as_me: error: conditional \"OPENEXR_DELEGATE\" was never defined.
46179Usually this means the macro was only invoked conditionally." >&2;}
46180 { (exit 1); exit 1; }; }
46181fi
46182if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
46183 { { $as_echo "$as_me:$LINENO: error: conditional \"PNG_DELEGATE\" was never defined.
46184Usually this means the macro was only invoked conditionally." >&5
46185$as_echo "$as_me: error: conditional \"PNG_DELEGATE\" was never defined.
46186Usually this means the macro was only invoked conditionally." >&2;}
46187 { (exit 1); exit 1; }; }
46188fi
46189if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
46190 { { $as_echo "$as_me:$LINENO: error: conditional \"RSVG_DELEGATE\" was never defined.
46191Usually this means the macro was only invoked conditionally." >&5
46192$as_echo "$as_me: error: conditional \"RSVG_DELEGATE\" was never defined.
46193Usually this means the macro was only invoked conditionally." >&2;}
46194 { (exit 1); exit 1; }; }
46195fi
46196if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
46197 { { $as_echo "$as_me:$LINENO: error: conditional \"CAIRO_DELEGATE\" was never defined.
46198Usually this means the macro was only invoked conditionally." >&5
46199$as_echo "$as_me: error: conditional \"CAIRO_DELEGATE\" was never defined.
46200Usually this means the macro was only invoked conditionally." >&2;}
46201 { (exit 1); exit 1; }; }
46202fi
46203if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
46204 { { $as_echo "$as_me:$LINENO: error: conditional \"TIFF_DELEGATE\" was never defined.
46205Usually this means the macro was only invoked conditionally." >&5
46206$as_echo "$as_me: error: conditional \"TIFF_DELEGATE\" was never defined.
46207Usually this means the macro was only invoked conditionally." >&2;}
46208 { (exit 1); exit 1; }; }
46209fi
46210if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
46211 { { $as_echo "$as_me:$LINENO: error: conditional \"WMF_DELEGATE\" was never defined.
46212Usually this means the macro was only invoked conditionally." >&5
46213$as_echo "$as_me: error: conditional \"WMF_DELEGATE\" was never defined.
46214Usually this means the macro was only invoked conditionally." >&2;}
46215 { (exit 1); exit 1; }; }
46216fi
46217if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
46218 { { $as_echo "$as_me:$LINENO: error: conditional \"XML_DELEGATE\" was never defined.
46219Usually this means the macro was only invoked conditionally." >&5
46220$as_echo "$as_me: error: conditional \"XML_DELEGATE\" was never defined.
46221Usually this means the macro was only invoked conditionally." >&2;}
46222 { (exit 1); exit 1; }; }
46223fi
46224if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
46225 { { $as_echo "$as_me:$LINENO: error: conditional \"RPM_DELEGATE\" was never defined.
46226Usually this means the macro was only invoked conditionally." >&5
46227$as_echo "$as_me: error: conditional \"RPM_DELEGATE\" was never defined.
46228Usually this means the macro was only invoked conditionally." >&2;}
46229 { (exit 1); exit 1; }; }
46230fi
46231if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
46232 { { $as_echo "$as_me:$LINENO: error: conditional \"P7ZIP_DELEGATE\" was never defined.
46233Usually this means the macro was only invoked conditionally." >&5
46234$as_echo "$as_me: error: conditional \"P7ZIP_DELEGATE\" was never defined.
46235Usually this means the macro was only invoked conditionally." >&2;}
46236 { (exit 1); exit 1; }; }
46237fi
46238if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
46239 { { $as_echo "$as_me:$LINENO: error: conditional \"ZIP_DELEGATE\" was never defined.
46240Usually this means the macro was only invoked conditionally." >&5
46241$as_echo "$as_me: error: conditional \"ZIP_DELEGATE\" was never defined.
46242Usually this means the macro was only invoked conditionally." >&2;}
46243 { (exit 1); exit 1; }; }
46244fi
46245if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
46246 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL\" was never defined.
46247Usually this means the macro was only invoked conditionally." >&5
46248$as_echo "$as_me: error: conditional \"WITH_PERL\" was never defined.
46249Usually this means the macro was only invoked conditionally." >&2;}
46250 { (exit 1); exit 1; }; }
46251fi
46252if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
46253 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL_STATIC\" was never defined.
46254Usually this means the macro was only invoked conditionally." >&5
46255$as_echo "$as_me: error: conditional \"WITH_PERL_STATIC\" was never defined.
46256Usually this means the macro was only invoked conditionally." >&2;}
46257 { (exit 1); exit 1; }; }
46258fi
46259if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
46260 { { $as_echo "$as_me:$LINENO: error: conditional \"WITH_PERL_DYNAMIC\" was never defined.
46261Usually this means the macro was only invoked conditionally." >&5
46262$as_echo "$as_me: error: conditional \"WITH_PERL_DYNAMIC\" was never defined.
46263Usually this means the macro was only invoked conditionally." >&2;}
46264 { (exit 1); exit 1; }; }
46265fi
46266
46267: ${CONFIG_STATUS=./config.status}
46268ac_write_fail=0
46269ac_clean_files_save=$ac_clean_files
46270ac_clean_files="$ac_clean_files $CONFIG_STATUS"
46271{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
46272$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
46273cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46274#! $SHELL
46275# Generated by $as_me.
46276# Run this file to recreate the current configuration.
46277# Compiler output produced by configure, useful for debugging
46278# configure, is in config.log if it exists.
46279
46280debug=false
46281ac_cs_recheck=false
46282ac_cs_silent=false
46283SHELL=\${CONFIG_SHELL-$SHELL}
46284_ACEOF
46285
46286cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46287## --------------------- ##
46288## M4sh Initialization. ##
46289## --------------------- ##
46290
46291# Be more Bourne compatible
46292DUALCASE=1; export DUALCASE # for MKS sh
46293if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
46294 emulate sh
46295 NULLCMD=:
46296 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
46297 # is contrary to our usage. Disable this feature.
46298 alias -g '${1+"$@"}'='"$@"'
46299 setopt NO_GLOB_SUBST
46300else
46301 case `(set -o) 2>/dev/null` in
46302 *posix*) set -o posix ;;
46303esac
46304
46305fi
46306
46307
46308
46309
46310# PATH needs CR
46311# Avoid depending upon Character Ranges.
46312as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46313as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46314as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46315as_cr_digits='0123456789'
46316as_cr_alnum=$as_cr_Letters$as_cr_digits
46317
46318as_nl='
46319'
46320export as_nl
46321# Printing a long string crashes Solaris 7 /usr/bin/printf.
46322as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
46323as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46324as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46325if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
46326 as_echo='printf %s\n'
46327 as_echo_n='printf %s'
46328else
46329 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
46330 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
46331 as_echo_n='/usr/ucb/echo -n'
46332 else
46333 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
46334 as_echo_n_body='eval
46335 arg=$1;
46336 case $arg in
46337 *"$as_nl"*)
46338 expr "X$arg" : "X\\(.*\\)$as_nl";
46339 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
46340 esac;
46341 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
46342 '
46343 export as_echo_n_body
46344 as_echo_n='sh -c $as_echo_n_body as_echo'
46345 fi
46346 export as_echo_body
46347 as_echo='sh -c $as_echo_body as_echo'
46348fi
46349
46350# The user is always right.
46351if test "${PATH_SEPARATOR+set}" != set; then
46352 PATH_SEPARATOR=:
46353 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
46354 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
46355 PATH_SEPARATOR=';'
46356 }
46357fi
46358
46359# Support unset when possible.
46360if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
46361 as_unset=unset
46362else
46363 as_unset=false
46364fi
46365
46366
46367# IFS
46368# We need space, tab and new line, in precisely that order. Quoting is
46369# there to prevent editors from complaining about space-tab.
46370# (If _AS_PATH_WALK were called with IFS unset, it would disable word
46371# splitting by setting IFS to empty value.)
46372IFS=" "" $as_nl"
46373
46374# Find who we are. Look in the path if we contain no directory separator.
46375case $0 in
46376 *[\\/]* ) as_myself=$0 ;;
46377 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46378for as_dir in $PATH
46379do
46380 IFS=$as_save_IFS
46381 test -z "$as_dir" && as_dir=.
46382 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
46383done
46384IFS=$as_save_IFS
46385
46386 ;;
46387esac
46388# We did not find ourselves, most probably we were run as `sh COMMAND'
46389# in which case we are not to be found in the path.
46390if test "x$as_myself" = x; then
46391 as_myself=$0
46392fi
46393if test ! -f "$as_myself"; then
46394 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
46395 { (exit 1); exit 1; }
46396fi
46397
46398# Work around bugs in pre-3.0 UWIN ksh.
46399for as_var in ENV MAIL MAILPATH
46400do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
46401done
46402PS1='$ '
46403PS2='> '
46404PS4='+ '
46405
46406# NLS nuisances.
46407LC_ALL=C
46408export LC_ALL
46409LANGUAGE=C
46410export LANGUAGE
46411
46412# Required to use basename.
46413if expr a : '\(a\)' >/dev/null 2>&1 &&
46414 test "X`expr 00001 : '.*\(...\)'`" = X001; then
46415 as_expr=expr
46416else
46417 as_expr=false
46418fi
46419
46420if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
46421 as_basename=basename
46422else
46423 as_basename=false
46424fi
46425
46426
46427# Name of the executable.
46428as_me=`$as_basename -- "$0" ||
46429$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46430 X"$0" : 'X\(//\)$' \| \
46431 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
46432$as_echo X/"$0" |
46433 sed '/^.*\/\([^/][^/]*\)\/*$/{
46434 s//\1/
46435 q
46436 }
46437 /^X\/\(\/\/\)$/{
46438 s//\1/
46439 q
46440 }
46441 /^X\/\(\/\).*/{
46442 s//\1/
46443 q
46444 }
46445 s/.*/./; q'`
46446
46447# CDPATH.
46448$as_unset CDPATH
46449
46450
46451
46452 as_lineno_1=$LINENO
46453 as_lineno_2=$LINENO
46454 test "x$as_lineno_1" != "x$as_lineno_2" &&
46455 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
46456
46457 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
46458 # uniformly replaced by the line number. The first 'sed' inserts a
46459 # line-number line after each line using $LINENO; the second 'sed'
46460 # does the real work. The second script uses 'N' to pair each
46461 # line-number line with the line containing $LINENO, and appends
46462 # trailing '-' during substitution so that $LINENO is not a special
46463 # case at line end.
46464 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
46465 # scripts with optimization help from Paolo Bonzini. Blame Lee
46466 # E. McMahon (1931-1989) for sed's syntax. :-)
46467 sed -n '
46468 p
46469 /[$]LINENO/=
46470 ' <$as_myself |
46471 sed '
46472 s/[$]LINENO.*/&-/
46473 t lineno
46474 b
46475 :lineno
46476 N
46477 :loop
46478 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
46479 t loop
46480 s/-\n.*//
46481 ' >$as_me.lineno &&
46482 chmod +x "$as_me.lineno" ||
46483 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
46484 { (exit 1); exit 1; }; }
46485
46486 # Don't try to exec as it changes $[0], causing all sort of problems
46487 # (the dirname of $[0] is not the place where we might find the
46488 # original and so on. Autoconf is especially sensitive to this).
46489 . "./$as_me.lineno"
46490 # Exit status is that of the last command.
46491 exit
46492}
46493
46494
46495if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
46496 as_dirname=dirname
46497else
46498 as_dirname=false
46499fi
46500
46501ECHO_C= ECHO_N= ECHO_T=
46502case `echo -n x` in
46503-n*)
46504 case `echo 'x\c'` in
46505 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
46506 *) ECHO_C='\c';;
46507 esac;;
46508*)
46509 ECHO_N='-n';;
46510esac
46511if expr a : '\(a\)' >/dev/null 2>&1 &&
46512 test "X`expr 00001 : '.*\(...\)'`" = X001; then
46513 as_expr=expr
46514else
46515 as_expr=false
46516fi
46517
46518rm -f conf$$ conf$$.exe conf$$.file
46519if test -d conf$$.dir; then
46520 rm -f conf$$.dir/conf$$.file
46521else
46522 rm -f conf$$.dir
46523 mkdir conf$$.dir 2>/dev/null
46524fi
46525if (echo >conf$$.file) 2>/dev/null; then
46526 if ln -s conf$$.file conf$$ 2>/dev/null; then
46527 as_ln_s='ln -s'
46528 # ... but there are two gotchas:
46529 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
46530 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
46531 # In both cases, we have to default to `cp -p'.
46532 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
46533 as_ln_s='cp -p'
46534 elif ln conf$$.file conf$$ 2>/dev/null; then
46535 as_ln_s=ln
46536 else
46537 as_ln_s='cp -p'
46538 fi
46539else
46540 as_ln_s='cp -p'
46541fi
46542rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
46543rmdir conf$$.dir 2>/dev/null
46544
46545if mkdir -p . 2>/dev/null; then
46546 as_mkdir_p=:
46547else
46548 test -d ./-p && rmdir ./-p
46549 as_mkdir_p=false
46550fi
46551
46552if test -x / >/dev/null 2>&1; then
46553 as_test_x='test -x'
46554else
46555 if ls -dL / >/dev/null 2>&1; then
46556 as_ls_L_option=L
46557 else
46558 as_ls_L_option=
46559 fi
46560 as_test_x='
46561 eval sh -c '\''
46562 if test -d "$1"; then
46563 test -d "$1/.";
46564 else
46565 case $1 in
46566 -*)set "./$1";;
46567 esac;
46568 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
46569 ???[sx]*):;;*)false;;esac;fi
46570 '\'' sh
46571 '
46572fi
46573as_executable_p=$as_test_x
46574
46575# Sed expression to map a string onto a valid CPP name.
46576as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
46577
46578# Sed expression to map a string onto a valid variable name.
46579as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
46580
46581
46582exec 6>&1
46583
46584# Save the log message, to keep $[0] and so on meaningful, and to
46585# report actual input values of CONFIG_FILES etc. instead of their
46586# values after options handling.
46587ac_log="
46588This file was extended by ImageMagick $as_me 6.5.5, which was
46589generated by GNU Autoconf 2.63. Invocation command line was
46590
46591 CONFIG_FILES = $CONFIG_FILES
46592 CONFIG_HEADERS = $CONFIG_HEADERS
46593 CONFIG_LINKS = $CONFIG_LINKS
46594 CONFIG_COMMANDS = $CONFIG_COMMANDS
46595 $ $0 $@
46596
46597on `(hostname || uname -n) 2>/dev/null | sed 1q`
46598"
46599
46600_ACEOF
46601
46602case $ac_config_files in *"
46603"*) set x $ac_config_files; shift; ac_config_files=$*;;
46604esac
46605
46606case $ac_config_headers in *"
46607"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
46608esac
46609
46610
46611cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46612# Files that config.status was made for.
46613config_files="$ac_config_files"
46614config_headers="$ac_config_headers"
46615config_commands="$ac_config_commands"
46616
46617_ACEOF
46618
46619cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46620ac_cs_usage="\
46621\`$as_me' instantiates files from templates according to the
46622current configuration.
46623
46624Usage: $0 [OPTION]... [FILE]...
46625
46626 -h, --help print this help, then exit
46627 -V, --version print version number and configuration settings, then exit
46628 -q, --quiet, --silent
46629 do not print progress messages
46630 -d, --debug don't remove temporary files
46631 --recheck update $as_me by reconfiguring in the same conditions
46632 --file=FILE[:TEMPLATE]
46633 instantiate the configuration file FILE
46634 --header=FILE[:TEMPLATE]
46635 instantiate the configuration header FILE
46636
46637Configuration files:
46638$config_files
46639
46640Configuration headers:
46641$config_headers
46642
46643Configuration commands:
46644$config_commands
46645
46646Report bugs to <bug-autoconf@gnu.org>."
46647
46648_ACEOF
46649cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46650ac_cs_version="\\
46651ImageMagick config.status 6.5.5
46652configured by $0, generated by GNU Autoconf 2.63,
46653 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
46654
46655Copyright (C) 2008 Free Software Foundation, Inc.
46656This config.status script is free software; the Free Software Foundation
46657gives unlimited permission to copy, distribute and modify it."
46658
46659ac_pwd='$ac_pwd'
46660srcdir='$srcdir'
46661INSTALL='$INSTALL'
46662MKDIR_P='$MKDIR_P'
46663AWK='$AWK'
46664test -n "\$AWK" || AWK=awk
46665_ACEOF
46666
46667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46668# The default lists apply if the user does not specify any file.
46669ac_need_defaults=:
46670while test $# != 0
46671do
46672 case $1 in
46673 --*=*)
46674 ac_option=`expr "X$1" : 'X\([^=]*\)='`
46675 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
46676 ac_shift=:
46677 ;;
46678 *)
46679 ac_option=$1
46680 ac_optarg=$2
46681 ac_shift=shift
46682 ;;
46683 esac
46684
46685 case $ac_option in
46686 # Handling of the options.
46687 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
46688 ac_cs_recheck=: ;;
46689 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
46690 $as_echo "$ac_cs_version"; exit ;;
46691 --debug | --debu | --deb | --de | --d | -d )
46692 debug=: ;;
46693 --file | --fil | --fi | --f )
46694 $ac_shift
46695 case $ac_optarg in
46696 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46697 esac
46698 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
46699 ac_need_defaults=false;;
46700 --header | --heade | --head | --hea )
46701 $ac_shift
46702 case $ac_optarg in
46703 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46704 esac
46705 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
46706 ac_need_defaults=false;;
46707 --he | --h)
46708 # Conflict between --help and --header
46709 { $as_echo "$as_me: error: ambiguous option: $1
46710Try \`$0 --help' for more information." >&2
46711 { (exit 1); exit 1; }; };;
46712 --help | --hel | -h )
46713 $as_echo "$ac_cs_usage"; exit ;;
46714 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46715 | -silent | --silent | --silen | --sile | --sil | --si | --s)
46716 ac_cs_silent=: ;;
46717
46718 # This is an error.
46719 -*) { $as_echo "$as_me: error: unrecognized option: $1
46720Try \`$0 --help' for more information." >&2
46721 { (exit 1); exit 1; }; } ;;
46722
46723 *) ac_config_targets="$ac_config_targets $1"
46724 ac_need_defaults=false ;;
46725
46726 esac
46727 shift
46728done
46729
46730ac_configure_extra_args=
46731
46732if $ac_cs_silent; then
46733 exec 6>/dev/null
46734 ac_configure_extra_args="$ac_configure_extra_args --silent"
46735fi
46736
46737_ACEOF
46738cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46739if \$ac_cs_recheck; then
46740 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46741 shift
46742 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
46743 CONFIG_SHELL='$SHELL'
46744 export CONFIG_SHELL
46745 exec "\$@"
46746fi
46747
46748_ACEOF
46749cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46750exec 5>>config.log
46751{
46752 echo
46753 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46754## Running $as_me. ##
46755_ASBOX
46756 $as_echo "$ac_log"
46757} >&5
46758
46759_ACEOF
46760cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46761#
46762# INIT-COMMANDS
46763#
46764PACKAGE="$PACKAGE"
46765AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
46766
46767
46768# The HP-UX ksh and POSIX shell print the target directory to stdout
46769# if CDPATH is set.
46770(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
46771
46772sed_quote_subst='$sed_quote_subst'
46773double_quote_subst='$double_quote_subst'
46774delay_variable_subst='$delay_variable_subst'
46775SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
46776Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
46777GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
46778EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
46779FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
46780LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
46781macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
46782macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
46783AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
46784DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
46785OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
46786enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
46787enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
46788pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
46789enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
46790host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
46791host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
46792host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
46793build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
46794build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
46795build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
46796NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
46797LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
46798max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
46799ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
46800exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
46801lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
46802lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
46803lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
46804reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
46805reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46806deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
46807file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
46808AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
46809AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
46810STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
46811RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
46812old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46813old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46814old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46815CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
46816CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
46817compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
46818GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
46819lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
46820lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
46821lt_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"`'
46822lt_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"`'
46823objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
46824SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
46825ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
46826MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
46827lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
46828lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
46829lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
46830lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
46831lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
46832need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
46833DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
46834NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
46835LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
46836OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
46837OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
46838libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
46839shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46840extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46841archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
46842enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
46843export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46844whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46845compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
46846old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46847old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46848archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46849archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46850module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46851module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46852with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
46853allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
46854no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
46855hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
46856hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
46857hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
46858hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
46859hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
46860hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
46861hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46862hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
46863inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
46864link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
46865fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
46866always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
46867export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46868exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
46869include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
46870prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46871file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
46872variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
46873need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
46874need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
46875version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
46876runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46877shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
46878shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
46879libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
46880library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
46881soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
46882postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46883postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46884finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
46885finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
46886hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
46887sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
46888sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
46889hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
46890enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
46891enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
46892enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
46893old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
46894striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
46895compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
46896predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
46897postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
46898predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
46899postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
46900compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
46901LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46902old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46903compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46904GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46905lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46906lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46907lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46908lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46909lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46910archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46911enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46912export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46913whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46914compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46915old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46916old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46917archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46918archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46919module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46920module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46921with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46922allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46923no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46924hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46925hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46926hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46927hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46928hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46929hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46930hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46931hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46932inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46933link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46934fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46935always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46936export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46937exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46938include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46939prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46940file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46941hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46942compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46943predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46944postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46945predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46946postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46947compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
46948
46949LTCC='$LTCC'
46950LTCFLAGS='$LTCFLAGS'
46951compiler='$compiler_DEFAULT'
46952
46953# Quote evaled strings.
46954for var in SED \
46955GREP \
46956EGREP \
46957FGREP \
46958LD \
46959NM \
46960LN_S \
46961lt_SP2NL \
46962lt_NL2SP \
46963reload_flag \
46964deplibs_check_method \
46965file_magic_cmd \
46966AR \
46967AR_FLAGS \
46968STRIP \
46969RANLIB \
46970CC \
46971CFLAGS \
46972compiler \
46973lt_cv_sys_global_symbol_pipe \
46974lt_cv_sys_global_symbol_to_cdecl \
46975lt_cv_sys_global_symbol_to_c_name_address \
46976lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
46977SHELL \
46978ECHO \
46979lt_prog_compiler_no_builtin_flag \
46980lt_prog_compiler_wl \
46981lt_prog_compiler_pic \
46982lt_prog_compiler_static \
46983lt_cv_prog_compiler_c_o \
46984need_locks \
46985DSYMUTIL \
46986NMEDIT \
46987LIPO \
46988OTOOL \
46989OTOOL64 \
46990shrext_cmds \
46991export_dynamic_flag_spec \
46992whole_archive_flag_spec \
46993compiler_needs_object \
46994with_gnu_ld \
46995allow_undefined_flag \
46996no_undefined_flag \
46997hardcode_libdir_flag_spec \
46998hardcode_libdir_flag_spec_ld \
46999hardcode_libdir_separator \
47000fix_srcfile_path \
47001exclude_expsyms \
47002include_expsyms \
47003file_list_spec \
47004variables_saved_for_relink \
47005libname_spec \
47006library_names_spec \
47007soname_spec \
47008finish_eval \
47009old_striplib \
47010striplib \
47011compiler_lib_search_dirs \
47012predep_objects \
47013postdep_objects \
47014predeps \
47015postdeps \
47016compiler_lib_search_path \
47017LD_CXX \
47018compiler_CXX \
47019lt_prog_compiler_no_builtin_flag_CXX \
47020lt_prog_compiler_wl_CXX \
47021lt_prog_compiler_pic_CXX \
47022lt_prog_compiler_static_CXX \
47023lt_cv_prog_compiler_c_o_CXX \
47024export_dynamic_flag_spec_CXX \
47025whole_archive_flag_spec_CXX \
47026compiler_needs_object_CXX \
47027with_gnu_ld_CXX \
47028allow_undefined_flag_CXX \
47029no_undefined_flag_CXX \
47030hardcode_libdir_flag_spec_CXX \
47031hardcode_libdir_flag_spec_ld_CXX \
47032hardcode_libdir_separator_CXX \
47033fix_srcfile_path_CXX \
47034exclude_expsyms_CXX \
47035include_expsyms_CXX \
47036file_list_spec_CXX \
47037compiler_lib_search_dirs_CXX \
47038predep_objects_CXX \
47039postdep_objects_CXX \
47040predeps_CXX \
47041postdeps_CXX \
47042compiler_lib_search_path_CXX; do
47043 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
47044 *[\\\\\\\`\\"\\\$]*)
47045 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
47046 ;;
47047 *)
47048 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47049 ;;
47050 esac
47051done
47052
47053# Double-quote double-evaled strings.
47054for var in reload_cmds \
47055old_postinstall_cmds \
47056old_postuninstall_cmds \
47057old_archive_cmds \
47058extract_expsyms_cmds \
47059old_archive_from_new_cmds \
47060old_archive_from_expsyms_cmds \
47061archive_cmds \
47062archive_expsym_cmds \
47063module_cmds \
47064module_expsym_cmds \
47065export_symbols_cmds \
47066prelink_cmds \
47067postinstall_cmds \
47068postuninstall_cmds \
47069finish_cmds \
47070sys_lib_search_path_spec \
47071sys_lib_dlsearch_path_spec \
47072old_archive_cmds_CXX \
47073old_archive_from_new_cmds_CXX \
47074old_archive_from_expsyms_cmds_CXX \
47075archive_cmds_CXX \
47076archive_expsym_cmds_CXX \
47077module_cmds_CXX \
47078module_expsym_cmds_CXX \
47079export_symbols_cmds_CXX \
47080prelink_cmds_CXX; do
47081 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
47082 *[\\\\\\\`\\"\\\$]*)
47083 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
47084 ;;
47085 *)
47086 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47087 ;;
47088 esac
47089done
47090
47091# Fix-up fallback echo if it was mangled by the above quoting rules.
47092case \$lt_ECHO in
47093*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
47094 ;;
47095esac
47096
47097ac_aux_dir='$ac_aux_dir'
47098xsi_shell='$xsi_shell'
47099lt_shell_append='$lt_shell_append'
47100
47101# See if we are running on zsh, and set the options which allow our
47102# commands through without removal of \ escapes INIT.
47103if test -n "\${ZSH_VERSION+set}" ; then
47104 setopt NO_GLOB_SUBST
47105fi
47106
47107
47108 PACKAGE='$PACKAGE'
47109 VERSION='$VERSION'
47110 TIMESTAMP='$TIMESTAMP'
47111 RM='$RM'
47112 ofile='$ofile'
47113
47114
47115
47116
47117
47118
47119_ACEOF
47120
47121cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47122
47123# Handling of arguments.
47124for ac_config_target in $ac_config_targets
47125do
47126 case $ac_config_target in
47127 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
47128 "magick/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS magick/magick-config.h" ;;
47129 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
47130 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
47131 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
47132 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
47133 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
47134 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
47135 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
47136 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
47137 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
47138 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
47139 "magick/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES magick/ImageMagick.pc" ;;
47140 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
47141 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
47142 "magick/Magick-config") CONFIG_FILES="$CONFIG_FILES magick/Magick-config" ;;
47143 "magick/MagickCore-config") CONFIG_FILES="$CONFIG_FILES magick/MagickCore-config" ;;
47144 "magick/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES magick/MagickCore.pc" ;;
47145 "magick/version.h") CONFIG_FILES="$CONFIG_FILES magick/version.h" ;;
47146 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
47147 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
47148 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
47149 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
47150 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
47151 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
47152 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
47153 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
47154 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
47155 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
47156 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
47157 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
47158 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
47159 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
47160 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
47161 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
47162 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
47163 "wand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES wand/MagickWand-config" ;;
47164 "wand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES wand/MagickWand.pc" ;;
47165 "wand/Wand-config") CONFIG_FILES="$CONFIG_FILES wand/Wand-config" ;;
47166 "wand/Wand.pc") CONFIG_FILES="$CONFIG_FILES wand/Wand.pc" ;;
47167 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
47168 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
47169 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
47170 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
47171 "Magick-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick-config.in" ;;
47172 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
47173 "Wand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Wand-config.in" ;;
47174 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
47175 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
47176
47177 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
47178$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
47179 { (exit 1); exit 1; }; };;
47180 esac
47181done
47182
47183
47184# If the user did not use the arguments to specify the items to instantiate,
47185# then the envvar interface is used. Set only those that are not.
47186# We use the long form for the default assignment because of an extremely
47187# bizarre bug on SunOS 4.1.3.
47188if $ac_need_defaults; then
47189 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
47190 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
47191 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
47192fi
47193
47194# Have a temporary directory for convenience. Make it in the build tree
47195# simply because there is no reason against having it here, and in addition,
47196# creating and moving files from /tmp can sometimes cause problems.
47197# Hook for its removal unless debugging.
47198# Note that there is a small window in which the directory will not be cleaned:
47199# after its creation but before its name has been assigned to `$tmp'.
47200$debug ||
47201{
47202 tmp=
47203 trap 'exit_status=$?
47204 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
47205' 0
47206 trap '{ (exit 1); exit 1; }' 1 2 13 15
47207}
47208# Create a (secure) tmp directory for tmp files.
47209
47210{
47211 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
47212 test -n "$tmp" && test -d "$tmp"
47213} ||
47214{
47215 tmp=./conf$$-$RANDOM
47216 (umask 077 && mkdir "$tmp")
47217} ||
47218{
47219 $as_echo "$as_me: cannot create a temporary directory in ." >&2
47220 { (exit 1); exit 1; }
47221}
47222
47223# Set up the scripts for CONFIG_FILES section.
47224# No need to generate them if there are no CONFIG_FILES.
47225# This happens for instance with `./config.status config.h'.
47226if test -n "$CONFIG_FILES"; then
47227
47228
47229ac_cr=' '
47230ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
47231if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
47232 ac_cs_awk_cr='\\r'
47233else
47234 ac_cs_awk_cr=$ac_cr
47235fi
47236
47237echo 'BEGIN {' >"$tmp/subs1.awk" &&
47238_ACEOF
47239
47240
47241{
47242 echo "cat >conf$$subs.awk <<_ACEOF" &&
47243 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
47244 echo "_ACEOF"
47245} >conf$$subs.sh ||
47246 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
47247$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
47248 { (exit 1); exit 1; }; }
47249ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
47250ac_delim='%!_!# '
47251for ac_last_try in false false false false false :; do
47252 . ./conf$$subs.sh ||
47253 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
47254$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
47255 { (exit 1); exit 1; }; }
47256
47257 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
47258 if test $ac_delim_n = $ac_delim_num; then
47259 break
47260 elif $ac_last_try; then
47261 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
47262$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
47263 { (exit 1); exit 1; }; }
47264 else
47265 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47266 fi
47267done
47268rm -f conf$$subs.sh
47269
47270cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47271cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
47272_ACEOF
47273sed -n '
47274h
47275s/^/S["/; s/!.*/"]=/
47276p
47277g
47278s/^[^!]*!//
47279:repl
47280t repl
47281s/'"$ac_delim"'$//
47282t delim
47283:nl
47284h
47285s/\(.\{148\}\).*/\1/
47286t more1
47287s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
47288p
47289n
47290b repl
47291:more1
47292s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47293p
47294g
47295s/.\{148\}//
47296t nl
47297:delim
47298h
47299s/\(.\{148\}\).*/\1/
47300t more2
47301s/["\\]/\\&/g; s/^/"/; s/$/"/
47302p
47303b
47304:more2
47305s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47306p
47307g
47308s/.\{148\}//
47309t delim
47310' <conf$$subs.awk | sed '
47311/^[^""]/{
47312 N
47313 s/\n//
47314}
47315' >>$CONFIG_STATUS || ac_write_fail=1
47316rm -f conf$$subs.awk
47317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47318_ACAWK
47319cat >>"\$tmp/subs1.awk" <<_ACAWK &&
47320 for (key in S) S_is_set[key] = 1
47321 FS = ""
47322
47323}
47324{
47325 line = $ 0
47326 nfields = split(line, field, "@")
47327 substed = 0
47328 len = length(field[1])
47329 for (i = 2; i < nfields; i++) {
47330 key = field[i]
47331 keylen = length(key)
47332 if (S_is_set[key]) {
47333 value = S[key]
47334 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
47335 len += length(value) + length(field[++i])
47336 substed = 1
47337 } else
47338 len += 1 + keylen
47339 }
47340
47341 print line
47342}
47343
47344_ACAWK
47345_ACEOF
47346cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47347if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
47348 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
47349else
47350 cat
47351fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
47352 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
47353$as_echo "$as_me: error: could not setup config files machinery" >&2;}
47354 { (exit 1); exit 1; }; }
47355_ACEOF
47356
47357# VPATH may cause trouble with some makes, so we remove $(srcdir),
47358# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
47359# trailing colons and then remove the whole line if VPATH becomes empty
47360# (actually we leave an empty line to preserve line numbers).
47361if test "x$srcdir" = x.; then
47362 ac_vpsub='/^[ ]*VPATH[ ]*=/{
47363s/:*\$(srcdir):*/:/
47364s/:*\${srcdir}:*/:/
47365s/:*@srcdir@:*/:/
47366s/^\([^=]*=[ ]*\):*/\1/
47367s/:*$//
47368s/^[^=]*=[ ]*$//
47369}'
47370fi
47371
47372cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47373fi # test -n "$CONFIG_FILES"
47374
47375# Set up the scripts for CONFIG_HEADERS section.
47376# No need to generate them if there are no CONFIG_HEADERS.
47377# This happens for instance with `./config.status Makefile'.
47378if test -n "$CONFIG_HEADERS"; then
47379cat >"$tmp/defines.awk" <<\_ACAWK ||
47380BEGIN {
47381_ACEOF
47382
47383# Transform confdefs.h into an awk script `defines.awk', embedded as
47384# here-document in config.status, that substitutes the proper values into
47385# config.h.in to produce config.h.
47386
47387# Create a delimiter string that does not exist in confdefs.h, to ease
47388# handling of long lines.
47389ac_delim='%!_!# '
47390for ac_last_try in false false :; do
47391 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
47392 if test -z "$ac_t"; then
47393 break
47394 elif $ac_last_try; then
47395 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
47396$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
47397 { (exit 1); exit 1; }; }
47398 else
47399 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47400 fi
47401done
47402
47403# For the awk script, D is an array of macro values keyed by name,
47404# likewise P contains macro parameters if any. Preserve backslash
47405# newline sequences.
47406
47407ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
47408sed -n '
47409s/.\{148\}/&'"$ac_delim"'/g
47410t rset
47411:rset
47412s/^[ ]*#[ ]*define[ ][ ]*/ /
47413t def
47414d
47415:def
47416s/\\$//
47417t bsnl
47418s/["\\]/\\&/g
47419s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
47420D["\1"]=" \3"/p
47421s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
47422d
47423:bsnl
47424s/["\\]/\\&/g
47425s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
47426D["\1"]=" \3\\\\\\n"\\/p
47427t cont
47428s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
47429t cont
47430d
47431:cont
47432n
47433s/.\{148\}/&'"$ac_delim"'/g
47434t clear
47435:clear
47436s/\\$//
47437t bsnlc
47438s/["\\]/\\&/g; s/^/"/; s/$/"/p
47439d
47440:bsnlc
47441s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
47442b cont
47443' <confdefs.h | sed '
47444s/'"$ac_delim"'/"\\\
47445"/g' >>$CONFIG_STATUS || ac_write_fail=1
47446
47447cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47448 for (key in D) D_is_set[key] = 1
47449 FS = ""
47450}
47451/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
47452 line = \$ 0
47453 split(line, arg, " ")
47454 if (arg[1] == "#") {
47455 defundef = arg[2]
47456 mac1 = arg[3]
47457 } else {
47458 defundef = substr(arg[1], 2)
47459 mac1 = arg[2]
47460 }
47461 split(mac1, mac2, "(") #)
47462 macro = mac2[1]
47463 prefix = substr(line, 1, index(line, defundef) - 1)
47464 if (D_is_set[macro]) {
47465 # Preserve the white space surrounding the "#".
47466 print prefix "define", macro P[macro] D[macro]
47467 next
47468 } else {
47469 # Replace #undef with comments. This is necessary, for example,
47470 # in the case of _POSIX_SOURCE, which is predefined and required
47471 # on some systems where configure will not decide to define it.
47472 if (defundef == "undef") {
47473 print "/*", prefix defundef, macro, "*/"
47474 next
47475 }
47476 }
47477}
47478{ print }
47479_ACAWK
47480_ACEOF
47481cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47482 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
47483$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
47484 { (exit 1); exit 1; }; }
47485fi # test -n "$CONFIG_HEADERS"
47486
47487
47488eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
47489shift
47490for ac_tag
47491do
47492 case $ac_tag in
47493 :[FHLC]) ac_mode=$ac_tag; continue;;
47494 esac
47495 case $ac_mode$ac_tag in
47496 :[FHL]*:*);;
47497 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
47498$as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
47499 { (exit 1); exit 1; }; };;
47500 :[FH]-) ac_tag=-:-;;
47501 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
47502 esac
47503 ac_save_IFS=$IFS
47504 IFS=:
47505 set x $ac_tag
47506 IFS=$ac_save_IFS
47507 shift
47508 ac_file=$1
47509 shift
47510
47511 case $ac_mode in
47512 :L) ac_source=$1;;
47513 :[FH])
47514 ac_file_inputs=
47515 for ac_f
47516 do
47517 case $ac_f in
47518 -) ac_f="$tmp/stdin";;
47519 *) # Look for the file first in the build tree, then in the source tree
47520 # (if the path is not absolute). The absolute path cannot be DOS-style,
47521 # because $ac_f cannot contain `:'.
47522 test -f "$ac_f" ||
47523 case $ac_f in
47524 [\\/$]*) false;;
47525 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
47526 esac ||
47527 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
47528$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
47529 { (exit 1); exit 1; }; };;
47530 esac
47531 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
47532 ac_file_inputs="$ac_file_inputs '$ac_f'"
47533 done
47534
47535 # Let's still pretend it is `configure' which instantiates (i.e., don't
47536 # use $as_me), people would be surprised to read:
47537 # /* config.h. Generated by config.status. */
47538 configure_input='Generated from '`
47539 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
47540 `' by configure.'
47541 if test x"$ac_file" != x-; then
47542 configure_input="$ac_file. $configure_input"
47543 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
47544$as_echo "$as_me: creating $ac_file" >&6;}
47545 fi
47546 # Neutralize special characters interpreted by sed in replacement strings.
47547 case $configure_input in #(
47548 *\&* | *\|* | *\\* )
47549 ac_sed_conf_input=`$as_echo "$configure_input" |
47550 sed 's/[\\\\&|]/\\\\&/g'`;; #(
47551 *) ac_sed_conf_input=$configure_input;;
47552 esac
47553
47554 case $ac_tag in
47555 *:-:* | *:-) cat >"$tmp/stdin" \
47556 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47557$as_echo "$as_me: error: could not create $ac_file" >&2;}
47558 { (exit 1); exit 1; }; } ;;
47559 esac
47560 ;;
47561 esac
47562
47563 ac_dir=`$as_dirname -- "$ac_file" ||
47564$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47565 X"$ac_file" : 'X\(//\)[^/]' \| \
47566 X"$ac_file" : 'X\(//\)$' \| \
47567 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
47568$as_echo X"$ac_file" |
47569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47570 s//\1/
47571 q
47572 }
47573 /^X\(\/\/\)[^/].*/{
47574 s//\1/
47575 q
47576 }
47577 /^X\(\/\/\)$/{
47578 s//\1/
47579 q
47580 }
47581 /^X\(\/\).*/{
47582 s//\1/
47583 q
47584 }
47585 s/.*/./; q'`
47586 { as_dir="$ac_dir"
47587 case $as_dir in #(
47588 -*) as_dir=./$as_dir;;
47589 esac
47590 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
47591 as_dirs=
47592 while :; do
47593 case $as_dir in #(
47594 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
47595 *) as_qdir=$as_dir;;
47596 esac
47597 as_dirs="'$as_qdir' $as_dirs"
47598 as_dir=`$as_dirname -- "$as_dir" ||
47599$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47600 X"$as_dir" : 'X\(//\)[^/]' \| \
47601 X"$as_dir" : 'X\(//\)$' \| \
47602 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
47603$as_echo X"$as_dir" |
47604 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47605 s//\1/
47606 q
47607 }
47608 /^X\(\/\/\)[^/].*/{
47609 s//\1/
47610 q
47611 }
47612 /^X\(\/\/\)$/{
47613 s//\1/
47614 q
47615 }
47616 /^X\(\/\).*/{
47617 s//\1/
47618 q
47619 }
47620 s/.*/./; q'`
47621 test -d "$as_dir" && break
47622 done
47623 test -z "$as_dirs" || eval "mkdir $as_dirs"
47624 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
47625$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
47626 { (exit 1); exit 1; }; }; }
47627 ac_builddir=.
47628
47629case "$ac_dir" in
47630.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
47631*)
47632 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
47633 # A ".." for each directory in $ac_dir_suffix.
47634 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
47635 case $ac_top_builddir_sub in
47636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
47637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
47638 esac ;;
47639esac
47640ac_abs_top_builddir=$ac_pwd
47641ac_abs_builddir=$ac_pwd$ac_dir_suffix
47642# for backward compatibility:
47643ac_top_builddir=$ac_top_build_prefix
47644
47645case $srcdir in
47646 .) # We are building in place.
47647 ac_srcdir=.
47648 ac_top_srcdir=$ac_top_builddir_sub
47649 ac_abs_top_srcdir=$ac_pwd ;;
47650 [\\/]* | ?:[\\/]* ) # Absolute name.
47651 ac_srcdir=$srcdir$ac_dir_suffix;
47652 ac_top_srcdir=$srcdir
47653 ac_abs_top_srcdir=$srcdir ;;
47654 *) # Relative name.
47655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
47656 ac_top_srcdir=$ac_top_build_prefix$srcdir
47657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
47658esac
47659ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
47660
47661
47662 case $ac_mode in
47663 :F)
47664 #
47665 # CONFIG_FILE
47666 #
47667
47668 case $INSTALL in
47669 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
47670 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
47671 esac
47672 ac_MKDIR_P=$MKDIR_P
47673 case $MKDIR_P in
47674 [\\/$]* | ?:[\\/]* ) ;;
47675 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
47676 esac
47677_ACEOF
47678
47679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47680# If the template does not know about datarootdir, expand it.
47681# FIXME: This hack should be removed a few years after 2.60.
47682ac_datarootdir_hack=; ac_datarootdir_seen=
47683
47684ac_sed_dataroot='
47685/datarootdir/ {
47686 p
47687 q
47688}
47689/@datadir@/p
47690/@docdir@/p
47691/@infodir@/p
47692/@localedir@/p
47693/@mandir@/p
47694'
47695case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
47696*datarootdir*) ac_datarootdir_seen=yes;;
47697*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
47698 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
47699$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
47700_ACEOF
47701cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47702 ac_datarootdir_hack='
47703 s&@datadir@&$datadir&g
47704 s&@docdir@&$docdir&g
47705 s&@infodir@&$infodir&g
47706 s&@localedir@&$localedir&g
47707 s&@mandir@&$mandir&g
47708 s&\\\${datarootdir}&$datarootdir&g' ;;
47709esac
47710_ACEOF
47711
47712# Neutralize VPATH when `$srcdir' = `.'.
47713# Shell code in configure.ac might set extrasub.
47714# FIXME: do we really want to maintain this feature?
47715cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47716ac_sed_extra="$ac_vpsub
47717$extrasub
47718_ACEOF
47719cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47720:t
47721/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47722s|@configure_input@|$ac_sed_conf_input|;t t
47723s&@top_builddir@&$ac_top_builddir_sub&;t t
47724s&@top_build_prefix@&$ac_top_build_prefix&;t t
47725s&@srcdir@&$ac_srcdir&;t t
47726s&@abs_srcdir@&$ac_abs_srcdir&;t t
47727s&@top_srcdir@&$ac_top_srcdir&;t t
47728s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
47729s&@builddir@&$ac_builddir&;t t
47730s&@abs_builddir@&$ac_abs_builddir&;t t
47731s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
47732s&@INSTALL@&$ac_INSTALL&;t t
47733s&@MKDIR_P@&$ac_MKDIR_P&;t t
47734$ac_datarootdir_hack
47735"
47736eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
47737 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47738$as_echo "$as_me: error: could not create $ac_file" >&2;}
47739 { (exit 1); exit 1; }; }
47740
47741test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
47742 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
47743 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
47744 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47745which seems to be undefined. Please make sure it is defined." >&5
47746$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47747which seems to be undefined. Please make sure it is defined." >&2;}
47748
47749 rm -f "$tmp/stdin"
47750 case $ac_file in
47751 -) cat "$tmp/out" && rm -f "$tmp/out";;
47752 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
47753 esac \
47754 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47755$as_echo "$as_me: error: could not create $ac_file" >&2;}
47756 { (exit 1); exit 1; }; }
47757 ;;
47758 :H)
47759 #
47760 # CONFIG_HEADER
47761 #
47762 if test x"$ac_file" != x-; then
47763 {
47764 $as_echo "/* $configure_input */" \
47765 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
47766 } >"$tmp/config.h" \
47767 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47768$as_echo "$as_me: error: could not create $ac_file" >&2;}
47769 { (exit 1); exit 1; }; }
47770 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
47771 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
47772$as_echo "$as_me: $ac_file is unchanged" >&6;}
47773 else
47774 rm -f "$ac_file"
47775 mv "$tmp/config.h" "$ac_file" \
47776 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
47777$as_echo "$as_me: error: could not create $ac_file" >&2;}
47778 { (exit 1); exit 1; }; }
47779 fi
47780 else
47781 $as_echo "/* $configure_input */" \
47782 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
47783 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
47784$as_echo "$as_me: error: could not create -" >&2;}
47785 { (exit 1); exit 1; }; }
47786 fi
47787# Compute "$ac_file"'s index in $config_headers.
47788_am_arg="$ac_file"
47789_am_stamp_count=1
47790for _am_header in $config_headers :; do
47791 case $_am_header in
47792 $_am_arg | $_am_arg:* )
47793 break ;;
47794 * )
47795 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
47796 esac
47797done
47798echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
47799$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47800 X"$_am_arg" : 'X\(//\)[^/]' \| \
47801 X"$_am_arg" : 'X\(//\)$' \| \
47802 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
47803$as_echo X"$_am_arg" |
47804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47805 s//\1/
47806 q
47807 }
47808 /^X\(\/\/\)[^/].*/{
47809 s//\1/
47810 q
47811 }
47812 /^X\(\/\/\)$/{
47813 s//\1/
47814 q
47815 }
47816 /^X\(\/\).*/{
47817 s//\1/
47818 q
47819 }
47820 s/.*/./; q'`/stamp-h$_am_stamp_count
47821 ;;
47822
47823 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
47824$as_echo "$as_me: executing $ac_file commands" >&6;}
47825 ;;
47826 esac
47827
47828
47829 case $ac_file$ac_mode in
47830 "magick/magick-config.h":C) ac_prefix_conf_OUT=`echo magick/magick-config.h`
47831ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
47832ac_prefix_conf_PKG=`echo MagickCore`
47833ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
47834ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
47835ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
47836if test ".$ac_prefix_conf_INP" = "."; then
47837 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
47838 case "$ac_file" in
47839 *.h) ac_prefix_conf_INP=$ac_file ;;
47840 *)
47841 esac
47842 test ".$ac_prefix_conf_INP" != "." && break
47843 done
47844fi
47845if test ".$ac_prefix_conf_INP" = "."; then
47846 case "$ac_prefix_conf_OUT" in
47847 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
47848 ;;
47849 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
47850 ;;
47851 *) ac_prefix_conf_INP=config.h
47852 ;;
47853 esac
47854fi
47855if test -z "$ac_prefix_conf_PKG" ; then
47856 { { $as_echo "$as_me:$LINENO: error: no prefix for _PREFIX_PKG_CONFIG_H" >&5
47857$as_echo "$as_me: error: no prefix for _PREFIX_PKG_CONFIG_H" >&2;}
47858 { (exit 1); exit 1; }; }
47859else
47860 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
47861 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
47862 fi fi
47863 { $as_echo "$as_me:$LINENO: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
47864$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
47865 if test -f $ac_prefix_conf_INP ; then
47866 echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
47867 echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
47868 echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
47869 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
47870 echo "#endif/" >>conftest.prefix
47871 echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1 \\" >> conftest.prefix
47872 echo "#define $ac_prefix_conf_LOW""_\\1 \\2 \\" >> conftest.prefix
47873 echo "#endif/" >> conftest.prefix
47874 # now executing _script on _DEF input to create _OUT output file
47875 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
47876 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
47877 echo ' ' >>$tmp/pconfig.h
47878 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
47879
47880 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
47881 echo ' ' >>$tmp/pconfig.h
47882 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
47883 echo "#endif" >>$tmp/pconfig.h
47884 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
47885 { $as_echo "$as_me:$LINENO: $ac_prefix_conf_OUT is unchanged" >&5
47886$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
47887 else
47888 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
47889$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47890 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
47891 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
47892 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
47893$as_echo X"$ac_prefix_conf_OUT" |
47894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47895 s//\1/
47896 q
47897 }
47898 /^X\(\/\/\)[^/].*/{
47899 s//\1/
47900 q
47901 }
47902 /^X\(\/\/\)$/{
47903 s//\1/
47904 q
47905 }
47906 /^X\(\/\).*/{
47907 s//\1/
47908 q
47909 }
47910 s/.*/./; q'`
47911 { as_dir="$ac_dir"
47912 case $as_dir in #(
47913 -*) as_dir=./$as_dir;;
47914 esac
47915 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
47916 as_dirs=
47917 while :; do
47918 case $as_dir in #(
47919 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
47920 *) as_qdir=$as_dir;;
47921 esac
47922 as_dirs="'$as_qdir' $as_dirs"
47923 as_dir=`$as_dirname -- "$as_dir" ||
47924$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47925 X"$as_dir" : 'X\(//\)[^/]' \| \
47926 X"$as_dir" : 'X\(//\)$' \| \
47927 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
47928$as_echo X"$as_dir" |
47929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47930 s//\1/
47931 q
47932 }
47933 /^X\(\/\/\)[^/].*/{
47934 s//\1/
47935 q
47936 }
47937 /^X\(\/\/\)$/{
47938 s//\1/
47939 q
47940 }
47941 /^X\(\/\).*/{
47942 s//\1/
47943 q
47944 }
47945 s/.*/./; q'`
47946 test -d "$as_dir" && break
47947 done
47948 test -z "$as_dirs" || eval "mkdir $as_dirs"
47949 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
47950$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
47951 { (exit 1); exit 1; }; }; }
47952 rm -f "$ac_prefix_conf_OUT"
47953 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
47954 fi
47955 cp conftest.prefix _configs.sed
47956 else
47957 { { $as_echo "$as_me:$LINENO: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&5
47958$as_echo "$as_me: error: input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" >&2;}
47959 { (exit 1); exit 1; }; }
47960 fi
47961 rm -f conftest.*
47962fi
47963 ;;
47964 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
47965 # Autoconf 2.62 quotes --file arguments for eval, but not when files
47966 # are listed without --file. Let's play safe and only enable the eval
47967 # if we detect the quoting.
47968 case $CONFIG_FILES in
47969 *\'*) eval set x "$CONFIG_FILES" ;;
47970 *) set x $CONFIG_FILES ;;
47971 esac
47972 shift
47973 for mf
47974 do
47975 # Strip MF so we end up with the name of the file.
47976 mf=`echo "$mf" | sed -e 's/:.*$//'`
47977 # Check whether this is an Automake generated Makefile or not.
47978 # We used to match only the files named `Makefile.in', but
47979 # some people rename them; so instead we look at the file content.
47980 # Grep'ing the first line is not enough: some people post-process
47981 # each Makefile.in and add a new line on top of each file to say so.
47982 # Grep'ing the whole file is not good either: AIX grep has a line
47983 # limit of 2048, but all sed's we know have understand at least 4000.
47984 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
47985 dirpart=`$as_dirname -- "$mf" ||
47986$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47987 X"$mf" : 'X\(//\)[^/]' \| \
47988 X"$mf" : 'X\(//\)$' \| \
47989 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
47990$as_echo X"$mf" |
47991 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47992 s//\1/
47993 q
47994 }
47995 /^X\(\/\/\)[^/].*/{
47996 s//\1/
47997 q
47998 }
47999 /^X\(\/\/\)$/{
48000 s//\1/
48001 q
48002 }
48003 /^X\(\/\).*/{
48004 s//\1/
48005 q
48006 }
48007 s/.*/./; q'`
48008 else
48009 continue
48010 fi
48011 # Extract the definition of DEPDIR, am__include, and am__quote
48012 # from the Makefile without running `make'.
48013 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
48014 test -z "$DEPDIR" && continue
48015 am__include=`sed -n 's/^am__include = //p' < "$mf"`
48016 test -z "am__include" && continue
48017 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
48018 # When using ansi2knr, U may be empty or an underscore; expand it
48019 U=`sed -n 's/^U = //p' < "$mf"`
48020 # Find all dependency output files, they are included files with
48021 # $(DEPDIR) in their names. We invoke sed twice because it is the
48022 # simplest approach to changing $(DEPDIR) to its actual value in the
48023 # expansion.
48024 for file in `sed -n "
48025 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
48026 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
48027 # Make sure the directory exists.
48028 test -f "$dirpart/$file" && continue
48029 fdir=`$as_dirname -- "$file" ||
48030$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48031 X"$file" : 'X\(//\)[^/]' \| \
48032 X"$file" : 'X\(//\)$' \| \
48033 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
48034$as_echo X"$file" |
48035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48036 s//\1/
48037 q
48038 }
48039 /^X\(\/\/\)[^/].*/{
48040 s//\1/
48041 q
48042 }
48043 /^X\(\/\/\)$/{
48044 s//\1/
48045 q
48046 }
48047 /^X\(\/\).*/{
48048 s//\1/
48049 q
48050 }
48051 s/.*/./; q'`
48052 { as_dir=$dirpart/$fdir
48053 case $as_dir in #(
48054 -*) as_dir=./$as_dir;;
48055 esac
48056 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
48057 as_dirs=
48058 while :; do
48059 case $as_dir in #(
48060 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
48061 *) as_qdir=$as_dir;;
48062 esac
48063 as_dirs="'$as_qdir' $as_dirs"
48064 as_dir=`$as_dirname -- "$as_dir" ||
48065$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48066 X"$as_dir" : 'X\(//\)[^/]' \| \
48067 X"$as_dir" : 'X\(//\)$' \| \
48068 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
48069$as_echo X"$as_dir" |
48070 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48071 s//\1/
48072 q
48073 }
48074 /^X\(\/\/\)[^/].*/{
48075 s//\1/
48076 q
48077 }
48078 /^X\(\/\/\)$/{
48079 s//\1/
48080 q
48081 }
48082 /^X\(\/\).*/{
48083 s//\1/
48084 q
48085 }
48086 s/.*/./; q'`
48087 test -d "$as_dir" && break
48088 done
48089 test -z "$as_dirs" || eval "mkdir $as_dirs"
48090 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
48091$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
48092 { (exit 1); exit 1; }; }; }
48093 # echo "creating $dirpart/$file"
48094 echo '# dummy' > "$dirpart/$file"
48095 done
48096 done
48097}
48098 ;;
48099 "libtool":C)
48100
48101 # See if we are running on zsh, and set the options which allow our
48102 # commands through without removal of \ escapes.
48103 if test -n "${ZSH_VERSION+set}" ; then
48104 setopt NO_GLOB_SUBST
48105 fi
48106
48107 cfgfile="${ofile}T"
48108 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
48109 $RM "$cfgfile"
48110
48111 cat <<_LT_EOF >> "$cfgfile"
48112#! $SHELL
48113
48114# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
48115# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
48116# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
48117# NOTE: Changes made to this file will be lost: look at ltmain.sh.
48118#
48119# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
48120# 2006, 2007, 2008 Free Software Foundation, Inc.
48121# Written by Gordon Matzigkeit, 1996
48122#
48123# This file is part of GNU Libtool.
48124#
48125# GNU Libtool is free software; you can redistribute it and/or
48126# modify it under the terms of the GNU General Public License as
48127# published by the Free Software Foundation; either version 2 of
48128# the License, or (at your option) any later version.
48129#
48130# As a special exception to the GNU General Public License,
48131# if you distribute this file as part of a program or library that
48132# is built using GNU Libtool, you may include this file under the
48133# same distribution terms that you use for the rest of that program.
48134#
48135# GNU Libtool is distributed in the hope that it will be useful,
48136# but WITHOUT ANY WARRANTY; without even the implied warranty of
48137# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48138# GNU General Public License for more details.
48139#
48140# You should have received a copy of the GNU General Public License
48141# along with GNU Libtool; see the file COPYING. If not, a copy
48142# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
48143# obtained by writing to the Free Software Foundation, Inc.,
48144# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
48145
48146
48147# The names of the tagged configurations supported by this script.
48148available_tags="CXX "
48149
48150# ### BEGIN LIBTOOL CONFIG
48151
48152# A sed program that does not truncate output.
48153SED=$lt_SED
48154
48155# Sed that helps us avoid accidentally triggering echo(1) options like -n.
48156Xsed="\$SED -e 1s/^X//"
48157
48158# A grep program that handles long lines.
48159GREP=$lt_GREP
48160
48161# An ERE matcher.
48162EGREP=$lt_EGREP
48163
48164# A literal string matcher.
48165FGREP=$lt_FGREP
48166
48167# Which release of libtool.m4 was used?
48168macro_version=$macro_version
48169macro_revision=$macro_revision
48170
48171# Assembler program.
48172AS=$AS
48173
48174# DLL creation program.
48175DLLTOOL=$DLLTOOL
48176
48177# Object dumper program.
48178OBJDUMP=$OBJDUMP
48179
48180# Whether or not to build shared libraries.
48181build_libtool_libs=$enable_shared
48182
48183# Whether or not to build static libraries.
48184build_old_libs=$enable_static
48185
48186# What type of objects to build.
48187pic_mode=$pic_mode
48188
48189# Whether or not to optimize for fast installation.
48190fast_install=$enable_fast_install
48191
48192# The host system.
48193host_alias=$host_alias
48194host=$host
48195host_os=$host_os
48196
48197# The build system.
48198build_alias=$build_alias
48199build=$build
48200build_os=$build_os
48201
48202# A BSD- or MS-compatible name lister.
48203NM=$lt_NM
48204
48205# Whether we need soft or hard links.
48206LN_S=$lt_LN_S
48207
48208# What is the maximum length of a command?
48209max_cmd_len=$max_cmd_len
48210
48211# Object file suffix (normally "o").
48212objext=$ac_objext
48213
48214# Executable file suffix (normally "").
48215exeext=$exeext
48216
48217# whether the shell understands "unset".
48218lt_unset=$lt_unset
48219
48220# turn spaces into newlines.
48221SP2NL=$lt_lt_SP2NL
48222
48223# turn newlines into spaces.
48224NL2SP=$lt_lt_NL2SP
48225
48226# How to create reloadable object files.
48227reload_flag=$lt_reload_flag
48228reload_cmds=$lt_reload_cmds
48229
48230# Method to check whether dependent libraries are shared objects.
48231deplibs_check_method=$lt_deplibs_check_method
48232
48233# Command to use when deplibs_check_method == "file_magic".
48234file_magic_cmd=$lt_file_magic_cmd
48235
48236# The archiver.
48237AR=$lt_AR
48238AR_FLAGS=$lt_AR_FLAGS
48239
48240# A symbol stripping program.
48241STRIP=$lt_STRIP
48242
48243# Commands used to install an old-style archive.
48244RANLIB=$lt_RANLIB
48245old_postinstall_cmds=$lt_old_postinstall_cmds
48246old_postuninstall_cmds=$lt_old_postuninstall_cmds
48247
48248# A C compiler.
48249LTCC=$lt_CC
48250
48251# LTCC compiler flags.
48252LTCFLAGS=$lt_CFLAGS
48253
48254# Take the output of nm and produce a listing of raw symbols and C names.
48255global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
48256
48257# Transform the output of nm in a proper C declaration.
48258global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
48259
48260# Transform the output of nm in a C name address pair.
48261global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
48262
48263# Transform the output of nm in a C name address pair when lib prefix is needed.
48264global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
48265
48266# The name of the directory that contains temporary libtool files.
48267objdir=$objdir
48268
48269# Shell to use when invoking shell scripts.
48270SHELL=$lt_SHELL
48271
48272# An echo program that does not interpret backslashes.
48273ECHO=$lt_ECHO
48274
48275# Used to examine libraries when file_magic_cmd begins with "file".
48276MAGIC_CMD=$MAGIC_CMD
48277
48278# Must we lock files when doing compilation?
48279need_locks=$lt_need_locks
48280
48281# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
48282DSYMUTIL=$lt_DSYMUTIL
48283
48284# Tool to change global to local symbols on Mac OS X.
48285NMEDIT=$lt_NMEDIT
48286
48287# Tool to manipulate fat objects and archives on Mac OS X.
48288LIPO=$lt_LIPO
48289
48290# ldd/readelf like tool for Mach-O binaries on Mac OS X.
48291OTOOL=$lt_OTOOL
48292
48293# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
48294OTOOL64=$lt_OTOOL64
48295
48296# Old archive suffix (normally "a").
48297libext=$libext
48298
48299# Shared library suffix (normally ".so").
48300shrext_cmds=$lt_shrext_cmds
48301
48302# The commands to extract the exported symbol list from a shared archive.
48303extract_expsyms_cmds=$lt_extract_expsyms_cmds
48304
48305# Variables whose values should be saved in libtool wrapper scripts and
48306# restored at link time.
48307variables_saved_for_relink=$lt_variables_saved_for_relink
48308
48309# Do we need the "lib" prefix for modules?
48310need_lib_prefix=$need_lib_prefix
48311
48312# Do we need a version for libraries?
48313need_version=$need_version
48314
48315# Library versioning type.
48316version_type=$version_type
48317
48318# Shared library runtime path variable.
48319runpath_var=$runpath_var
48320
48321# Shared library path variable.
48322shlibpath_var=$shlibpath_var
48323
48324# Is shlibpath searched before the hard-coded library search path?
48325shlibpath_overrides_runpath=$shlibpath_overrides_runpath
48326
48327# Format of library name prefix.
48328libname_spec=$lt_libname_spec
48329
48330# List of archive names. First name is the real one, the rest are links.
48331# The last name is the one that the linker finds with -lNAME
48332library_names_spec=$lt_library_names_spec
48333
48334# The coded name of the library, if different from the real name.
48335soname_spec=$lt_soname_spec
48336
48337# Command to use after installation of a shared archive.
48338postinstall_cmds=$lt_postinstall_cmds
48339
48340# Command to use after uninstallation of a shared archive.
48341postuninstall_cmds=$lt_postuninstall_cmds
48342
48343# Commands used to finish a libtool library installation in a directory.
48344finish_cmds=$lt_finish_cmds
48345
48346# As "finish_cmds", except a single script fragment to be evaled but
48347# not shown.
48348finish_eval=$lt_finish_eval
48349
48350# Whether we should hardcode library paths into libraries.
48351hardcode_into_libs=$hardcode_into_libs
48352
48353# Compile-time system search path for libraries.
48354sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
48355
48356# Run-time system search path for libraries.
48357sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
48358
48359# Whether dlopen is supported.
48360dlopen_support=$enable_dlopen
48361
48362# Whether dlopen of programs is supported.
48363dlopen_self=$enable_dlopen_self
48364
48365# Whether dlopen of statically linked programs is supported.
48366dlopen_self_static=$enable_dlopen_self_static
48367
48368# Commands to strip libraries.
48369old_striplib=$lt_old_striplib
48370striplib=$lt_striplib
48371
48372
48373# The linker used to build libraries.
48374LD=$lt_LD
48375
48376# Commands used to build an old-style archive.
48377old_archive_cmds=$lt_old_archive_cmds
48378
48379# A language specific compiler.
48380CC=$lt_compiler
48381
48382# Is the compiler the GNU compiler?
48383with_gcc=$GCC
48384
48385# Compiler flag to turn off builtin functions.
48386no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
48387
48388# How to pass a linker flag through the compiler.
48389wl=$lt_lt_prog_compiler_wl
48390
48391# Additional compiler flags for building library objects.
48392pic_flag=$lt_lt_prog_compiler_pic
48393
48394# Compiler flag to prevent dynamic linking.
48395link_static_flag=$lt_lt_prog_compiler_static
48396
48397# Does compiler simultaneously support -c and -o options?
48398compiler_c_o=$lt_lt_cv_prog_compiler_c_o
48399
48400# Whether or not to add -lc for building shared libraries.
48401build_libtool_need_lc=$archive_cmds_need_lc
48402
48403# Whether or not to disallow shared libs when runtime libs are static.
48404allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
48405
48406# Compiler flag to allow reflexive dlopens.
48407export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
48408
48409# Compiler flag to generate shared objects directly from archives.
48410whole_archive_flag_spec=$lt_whole_archive_flag_spec
48411
48412# Whether the compiler copes with passing no objects directly.
48413compiler_needs_object=$lt_compiler_needs_object
48414
48415# Create an old-style archive from a shared archive.
48416old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
48417
48418# Create a temporary old-style archive to link instead of a shared archive.
48419old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
48420
48421# Commands used to build a shared archive.
48422archive_cmds=$lt_archive_cmds
48423archive_expsym_cmds=$lt_archive_expsym_cmds
48424
48425# Commands used to build a loadable module if different from building
48426# a shared archive.
48427module_cmds=$lt_module_cmds
48428module_expsym_cmds=$lt_module_expsym_cmds
48429
48430# Whether we are building with GNU ld or not.
48431with_gnu_ld=$lt_with_gnu_ld
48432
48433# Flag that allows shared libraries with undefined symbols to be built.
48434allow_undefined_flag=$lt_allow_undefined_flag
48435
48436# Flag that enforces no undefined symbols.
48437no_undefined_flag=$lt_no_undefined_flag
48438
48439# Flag to hardcode \$libdir into a binary during linking.
48440# This must work even if \$libdir does not exist
48441hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
48442
48443# If ld is used when linking, flag to hardcode \$libdir into a binary
48444# during linking. This must work even if \$libdir does not exist.
48445hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
48446
48447# Whether we need a single "-rpath" flag with a separated argument.
48448hardcode_libdir_separator=$lt_hardcode_libdir_separator
48449
48450# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48451# DIR into the resulting binary.
48452hardcode_direct=$hardcode_direct
48453
48454# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48455# DIR into the resulting binary and the resulting library dependency is
48456# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
48457# library is relocated.
48458hardcode_direct_absolute=$hardcode_direct_absolute
48459
48460# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48461# into the resulting binary.
48462hardcode_minus_L=$hardcode_minus_L
48463
48464# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48465# into the resulting binary.
48466hardcode_shlibpath_var=$hardcode_shlibpath_var
48467
48468# Set to "yes" if building a shared library automatically hardcodes DIR
48469# into the library and all subsequent libraries and executables linked
48470# against it.
48471hardcode_automatic=$hardcode_automatic
48472
48473# Set to yes if linker adds runtime paths of dependent libraries
48474# to runtime path list.
48475inherit_rpath=$inherit_rpath
48476
48477# Whether libtool must link a program against all its dependency libraries.
48478link_all_deplibs=$link_all_deplibs
48479
48480# Fix the shell variable \$srcfile for the compiler.
48481fix_srcfile_path=$lt_fix_srcfile_path
48482
48483# Set to "yes" if exported symbols are required.
48484always_export_symbols=$always_export_symbols
48485
48486# The commands to list exported symbols.
48487export_symbols_cmds=$lt_export_symbols_cmds
48488
48489# Symbols that should not be listed in the preloaded symbols.
48490exclude_expsyms=$lt_exclude_expsyms
48491
48492# Symbols that must always be exported.
48493include_expsyms=$lt_include_expsyms
48494
48495# Commands necessary for linking programs (against libraries) with templates.
48496prelink_cmds=$lt_prelink_cmds
48497
48498# Specify filename containing input files.
48499file_list_spec=$lt_file_list_spec
48500
48501# How to hardcode a shared library path into an executable.
48502hardcode_action=$hardcode_action
48503
48504# The directories searched by this compiler when creating a shared library.
48505compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
48506
48507# Dependencies to place before and after the objects being linked to
48508# create a shared library.
48509predep_objects=$lt_predep_objects
48510postdep_objects=$lt_postdep_objects
48511predeps=$lt_predeps
48512postdeps=$lt_postdeps
48513
48514# The library search path used internally by the compiler when linking
48515# a shared library.
48516compiler_lib_search_path=$lt_compiler_lib_search_path
48517
48518# ### END LIBTOOL CONFIG
48519
48520_LT_EOF
48521
48522 case $host_os in
48523 aix3*)
48524 cat <<\_LT_EOF >> "$cfgfile"
48525# AIX sometimes has problems with the GCC collect2 program. For some
48526# reason, if we set the COLLECT_NAMES environment variable, the problems
48527# vanish in a puff of smoke.
48528if test "X${COLLECT_NAMES+set}" != Xset; then
48529 COLLECT_NAMES=
48530 export COLLECT_NAMES
48531fi
48532_LT_EOF
48533 ;;
48534 esac
48535
48536
48537ltmain="$ac_aux_dir/ltmain.sh"
48538
48539
48540 # We use sed instead of cat because bash on DJGPP gets confused if
48541 # if finds mixed CR/LF and LF-only lines. Since sed operates in
48542 # text mode, it properly converts lines to CR/LF. This bash problem
48543 # is reportedly fixed, but why not run on old versions too?
48544 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
48545 || (rm -f "$cfgfile"; exit 1)
48546
48547 case $xsi_shell in
48548 yes)
48549 cat << \_LT_EOF >> "$cfgfile"
48550
48551# func_dirname file append nondir_replacement
48552# Compute the dirname of FILE. If nonempty, add APPEND to the result,
48553# otherwise set result to NONDIR_REPLACEMENT.
48554func_dirname ()
48555{
48556 case ${1} in
48557 */*) func_dirname_result="${1%/*}${2}" ;;
48558 * ) func_dirname_result="${3}" ;;
48559 esac
48560}
48561
48562# func_basename file
48563func_basename ()
48564{
48565 func_basename_result="${1##*/}"
48566}
48567
48568# func_dirname_and_basename file append nondir_replacement
48569# perform func_basename and func_dirname in a single function
48570# call:
48571# dirname: Compute the dirname of FILE. If nonempty,
48572# add APPEND to the result, otherwise set result
48573# to NONDIR_REPLACEMENT.
48574# value returned in "$func_dirname_result"
48575# basename: Compute filename of FILE.
48576# value retuned in "$func_basename_result"
48577# Implementation must be kept synchronized with func_dirname
48578# and func_basename. For efficiency, we do not delegate to
48579# those functions but instead duplicate the functionality here.
48580func_dirname_and_basename ()
48581{
48582 case ${1} in
48583 */*) func_dirname_result="${1%/*}${2}" ;;
48584 * ) func_dirname_result="${3}" ;;
48585 esac
48586 func_basename_result="${1##*/}"
48587}
48588
48589# func_stripname prefix suffix name
48590# strip PREFIX and SUFFIX off of NAME.
48591# PREFIX and SUFFIX must not contain globbing or regex special
48592# characters, hashes, percent signs, but SUFFIX may contain a leading
48593# dot (in which case that matches only a dot).
48594func_stripname ()
48595{
48596 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
48597 # positional parameters, so assign one to ordinary parameter first.
48598 func_stripname_result=${3}
48599 func_stripname_result=${func_stripname_result#"${1}"}
48600 func_stripname_result=${func_stripname_result%"${2}"}
48601}
48602
48603# func_opt_split
48604func_opt_split ()
48605{
48606 func_opt_split_opt=${1%%=*}
48607 func_opt_split_arg=${1#*=}
48608}
48609
48610# func_lo2o object
48611func_lo2o ()
48612{
48613 case ${1} in
48614 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
48615 *) func_lo2o_result=${1} ;;
48616 esac
48617}
48618
48619# func_xform libobj-or-source
48620func_xform ()
48621{
48622 func_xform_result=${1%.*}.lo
48623}
48624
48625# func_arith arithmetic-term...
48626func_arith ()
48627{
48628 func_arith_result=$(( $* ))
48629}
48630
48631# func_len string
48632# STRING may not start with a hyphen.
48633func_len ()
48634{
48635 func_len_result=${#1}
48636}
48637
48638_LT_EOF
48639 ;;
48640 *) # Bourne compatible functions.
48641 cat << \_LT_EOF >> "$cfgfile"
48642
48643# func_dirname file append nondir_replacement
48644# Compute the dirname of FILE. If nonempty, add APPEND to the result,
48645# otherwise set result to NONDIR_REPLACEMENT.
48646func_dirname ()
48647{
48648 # Extract subdirectory from the argument.
48649 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
48650 if test "X$func_dirname_result" = "X${1}"; then
48651 func_dirname_result="${3}"
48652 else
48653 func_dirname_result="$func_dirname_result${2}"
48654 fi
48655}
48656
48657# func_basename file
48658func_basename ()
48659{
48660 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
48661}
48662
48663
48664# func_stripname prefix suffix name
48665# strip PREFIX and SUFFIX off of NAME.
48666# PREFIX and SUFFIX must not contain globbing or regex special
48667# characters, hashes, percent signs, but SUFFIX may contain a leading
48668# dot (in which case that matches only a dot).
48669# func_strip_suffix prefix name
48670func_stripname ()
48671{
48672 case ${2} in
48673 .*) func_stripname_result=`$ECHO "X${3}" \
48674 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
48675 *) func_stripname_result=`$ECHO "X${3}" \
48676 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
48677 esac
48678}
48679
48680# sed scripts:
48681my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
48682my_sed_long_arg='1s/^-[^=]*=//'
48683
48684# func_opt_split
48685func_opt_split ()
48686{
48687 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
48688 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
48689}
48690
48691# func_lo2o object
48692func_lo2o ()
48693{
48694 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
48695}
48696
48697# func_xform libobj-or-source
48698func_xform ()
48699{
48700 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
48701}
48702
48703# func_arith arithmetic-term...
48704func_arith ()
48705{
48706 func_arith_result=`expr "$@"`
48707}
48708
48709# func_len string
48710# STRING may not start with a hyphen.
48711func_len ()
48712{
48713 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
48714}
48715
48716_LT_EOF
48717esac
48718
48719case $lt_shell_append in
48720 yes)
48721 cat << \_LT_EOF >> "$cfgfile"
48722
48723# func_append var value
48724# Append VALUE to the end of shell variable VAR.
48725func_append ()
48726{
48727 eval "$1+=\$2"
48728}
48729_LT_EOF
48730 ;;
48731 *)
48732 cat << \_LT_EOF >> "$cfgfile"
48733
48734# func_append var value
48735# Append VALUE to the end of shell variable VAR.
48736func_append ()
48737{
48738 eval "$1=\$$1\$2"
48739}
48740
48741_LT_EOF
48742 ;;
48743 esac
48744
48745
48746 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
48747 || (rm -f "$cfgfile"; exit 1)
48748
48749 mv -f "$cfgfile" "$ofile" ||
48750 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
48751 chmod +x "$ofile"
48752
48753
48754 cat <<_LT_EOF >> "$ofile"
48755
48756# ### BEGIN LIBTOOL TAG CONFIG: CXX
48757
48758# The linker used to build libraries.
48759LD=$lt_LD_CXX
48760
48761# Commands used to build an old-style archive.
48762old_archive_cmds=$lt_old_archive_cmds_CXX
48763
48764# A language specific compiler.
48765CC=$lt_compiler_CXX
48766
48767# Is the compiler the GNU compiler?
48768with_gcc=$GCC_CXX
48769
48770# Compiler flag to turn off builtin functions.
48771no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
48772
48773# How to pass a linker flag through the compiler.
48774wl=$lt_lt_prog_compiler_wl_CXX
48775
48776# Additional compiler flags for building library objects.
48777pic_flag=$lt_lt_prog_compiler_pic_CXX
48778
48779# Compiler flag to prevent dynamic linking.
48780link_static_flag=$lt_lt_prog_compiler_static_CXX
48781
48782# Does compiler simultaneously support -c and -o options?
48783compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
48784
48785# Whether or not to add -lc for building shared libraries.
48786build_libtool_need_lc=$archive_cmds_need_lc_CXX
48787
48788# Whether or not to disallow shared libs when runtime libs are static.
48789allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
48790
48791# Compiler flag to allow reflexive dlopens.
48792export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
48793
48794# Compiler flag to generate shared objects directly from archives.
48795whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
48796
48797# Whether the compiler copes with passing no objects directly.
48798compiler_needs_object=$lt_compiler_needs_object_CXX
48799
48800# Create an old-style archive from a shared archive.
48801old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
48802
48803# Create a temporary old-style archive to link instead of a shared archive.
48804old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
48805
48806# Commands used to build a shared archive.
48807archive_cmds=$lt_archive_cmds_CXX
48808archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
48809
48810# Commands used to build a loadable module if different from building
48811# a shared archive.
48812module_cmds=$lt_module_cmds_CXX
48813module_expsym_cmds=$lt_module_expsym_cmds_CXX
48814
48815# Whether we are building with GNU ld or not.
48816with_gnu_ld=$lt_with_gnu_ld_CXX
48817
48818# Flag that allows shared libraries with undefined symbols to be built.
48819allow_undefined_flag=$lt_allow_undefined_flag_CXX
48820
48821# Flag that enforces no undefined symbols.
48822no_undefined_flag=$lt_no_undefined_flag_CXX
48823
48824# Flag to hardcode \$libdir into a binary during linking.
48825# This must work even if \$libdir does not exist
48826hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
48827
48828# If ld is used when linking, flag to hardcode \$libdir into a binary
48829# during linking. This must work even if \$libdir does not exist.
48830hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
48831
48832# Whether we need a single "-rpath" flag with a separated argument.
48833hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
48834
48835# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48836# DIR into the resulting binary.
48837hardcode_direct=$hardcode_direct_CXX
48838
48839# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
48840# DIR into the resulting binary and the resulting library dependency is
48841# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
48842# library is relocated.
48843hardcode_direct_absolute=$hardcode_direct_absolute_CXX
48844
48845# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48846# into the resulting binary.
48847hardcode_minus_L=$hardcode_minus_L_CXX
48848
48849# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48850# into the resulting binary.
48851hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
48852
48853# Set to "yes" if building a shared library automatically hardcodes DIR
48854# into the library and all subsequent libraries and executables linked
48855# against it.
48856hardcode_automatic=$hardcode_automatic_CXX
48857
48858# Set to yes if linker adds runtime paths of dependent libraries
48859# to runtime path list.
48860inherit_rpath=$inherit_rpath_CXX
48861
48862# Whether libtool must link a program against all its dependency libraries.
48863link_all_deplibs=$link_all_deplibs_CXX
48864
48865# Fix the shell variable \$srcfile for the compiler.
48866fix_srcfile_path=$lt_fix_srcfile_path_CXX
48867
48868# Set to "yes" if exported symbols are required.
48869always_export_symbols=$always_export_symbols_CXX
48870
48871# The commands to list exported symbols.
48872export_symbols_cmds=$lt_export_symbols_cmds_CXX
48873
48874# Symbols that should not be listed in the preloaded symbols.
48875exclude_expsyms=$lt_exclude_expsyms_CXX
48876
48877# Symbols that must always be exported.
48878include_expsyms=$lt_include_expsyms_CXX
48879
48880# Commands necessary for linking programs (against libraries) with templates.
48881prelink_cmds=$lt_prelink_cmds_CXX
48882
48883# Specify filename containing input files.
48884file_list_spec=$lt_file_list_spec_CXX
48885
48886# How to hardcode a shared library path into an executable.
48887hardcode_action=$hardcode_action_CXX
48888
48889# The directories searched by this compiler when creating a shared library.
48890compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
48891
48892# Dependencies to place before and after the objects being linked to
48893# create a shared library.
48894predep_objects=$lt_predep_objects_CXX
48895postdep_objects=$lt_postdep_objects_CXX
48896predeps=$lt_predeps_CXX
48897postdeps=$lt_postdeps_CXX
48898
48899# The library search path used internally by the compiler when linking
48900# a shared library.
48901compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
48902
48903# ### END LIBTOOL TAG CONFIG: CXX
48904_LT_EOF
48905
48906 ;;
48907 "MagickCore-config.in":C) chmod +x magick/MagickCore-config ;;
48908 "Magick-config.in":C) chmod +x magick/Magick-config ;;
48909 "MagickWand-config.in":C) chmod +x wand/MagickWand-config ;;
48910 "Wand-config.in":C) chmod +x wand/Wand-config ;;
48911 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
48912 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
48913
48914 esac
48915done # for ac_tag
48916
48917
48918{ (exit 0); exit 0; }
48919_ACEOF
48920chmod +x $CONFIG_STATUS
48921ac_clean_files=$ac_clean_files_save
48922
48923test $ac_write_fail = 0 ||
48924 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
48925$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
48926 { (exit 1); exit 1; }; }
48927
48928
48929# configure is writing to config.log, and then calls config.status.
48930# config.status does its own redirection, appending to config.log.
48931# Unfortunately, on DOS this fails, as config.log is still kept open
48932# by configure, so config.status won't be able to write to it; its
48933# output is simply discarded. So we exec the FD to /dev/null,
48934# effectively closing config.log, so it can be properly (re)opened and
48935# appended to by config.status. When coming back to configure, we
48936# need to make the FD available again.
48937if test "$no_create" != yes; then
48938 ac_cs_success=:
48939 ac_config_status_args=
48940 test "$silent" = yes &&
48941 ac_config_status_args="$ac_config_status_args --quiet"
48942 exec 5>/dev/null
48943 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48944 exec 5>>config.log
48945 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48946 # would make configure fail if this is the last instruction.
48947 $ac_cs_success || { (exit 1); exit 1; }
48948fi
48949if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
48950 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
48951$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
48952fi
48953
48954
48955rm -f magick-version
48956
48957result_ghostscript_font_dir='none'
48958if test "${ghostscript_font_dir}x" != 'x'; then
48959 result_ghostscript_font_dir=$ghostscript_font_dir
48960fi
48961
48962result_windows_font_dir='none'
48963if test "${windows_font_dir}x" != 'x'; then
48964 result_windows_font_dir=${windows_font_dir}
48965fi
48966
48967{ $as_echo "$as_me:$LINENO: result:
48968ImageMagick is configured as follows. Please verify that this configuration
48969matches your expectations.
48970
48971Host system type: $host
48972Build system type: $build
48973
48974 Option Value
48975-------------------------------------------------------------------------------
48976Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
48977Static libraries --enable-static=$enable_static $libtool_build_static_libs
48978Module support --with-modules=$with_modules $with_modules
48979GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
48980Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
48981High Dynamic Range Imagery
48982 --enable-hdri=$enable_hdri $enable_hdri
48983
48984Delegate Configuration:
48985BZLIB --with-bzlib=$with_bzlib $have_bzlib
48986Autotrace --with-autotrace=$with_autotrace $have_autotrace
48987DJVU --with-djvu=$with_djvu $have_djvu
48988DPS --with-dps=$with_dps $have_dps
48989FFTW --with-fftw=$with_fftw $have_fftw
48990FlashPIX --with-fpx=$with_fpx $have_fpx
48991FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
48992FreeType --with-freetype=$with_freetype $have_freetype
48993GhostPCL None $PCLDelegate ($PCLVersion)
48994GhostXPS None $XPSDelegate ($XPSVersion)
48995Ghostscript None $PSDelegate ($GSVersion)
48996Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
48997Ghostscript lib --with-gslib=$with_gslib $have_gslib
48998Graphviz --with-gvc=$with_gvc $have_gvc
48999JBIG --with-jbig=$with_jbig $have_jbig
49000JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
49001JPEG-2000 --with-jp2=$with_jp2 $have_jp2
49002LCMS --with-lcms=$with_lcms $have_lcms
49003LQR --with-lqr=$with_lqr $have_lqr
49004Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
49005OpenEXR --with-openexr=$with_openexr $have_openexr
49006PERL --with-perl=$with_perl $have_perl
49007PNG --with-png=$with_png $have_png
49008RSVG --with-rsvg=$with_rsvg $have_rsvg
49009TIFF --with-tiff=$with_tiff $have_tiff
49010Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
49011WMF --with-wmf=$with_wmf $have_wmf
49012X11 --with-x=$with_x $have_x
49013XML --with-xml=$with_xml $have_xml
49014ZLIB --with-zlib=$with_zlib $have_zlib
49015
49016X11 Configuration:
49017 X_CFLAGS = $X_CFLAGS
49018 X_PRE_LIBS = $X_PRE_LIBS
49019 X_LIBS = $X_LIBS
49020 X_EXTRA_LIBS = $X_EXTRA_LIBS
49021
49022Options used to compile and link:
49023 PREFIX = $PREFIX_DIR
49024 EXEC-PREFIX = $EXEC_PREFIX_DIR
49025 VERSION = $PACKAGE_VERSION
49026 CC = $CC
49027 CFLAGS = $CFLAGS
49028 MAGICK_CFLAGS = $MAGICK_CFLAGS
49029 CPPFLAGS = $MAGICK_CPPFLAGS
49030 PCFLAGS = $MAGICK_PCFLAGS
49031 DEFS = $DEFS
49032 LDFLAGS = $LDFLAGS
49033 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
49034 LIBS = $MAGICK_LIBS
49035 CXX = $CXX
49036 CXXFLAGS = $CXXFLAGS
49037" >&5
49038$as_echo "
49039ImageMagick is configured as follows. Please verify that this configuration
49040matches your expectations.
49041
49042Host system type: $host
49043Build system type: $build
49044
49045 Option Value
49046-------------------------------------------------------------------------------
49047Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
49048Static libraries --enable-static=$enable_static $libtool_build_static_libs
49049Module support --with-modules=$with_modules $with_modules
49050GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
49051Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
49052High Dynamic Range Imagery
49053 --enable-hdri=$enable_hdri $enable_hdri
49054
49055Delegate Configuration:
49056BZLIB --with-bzlib=$with_bzlib $have_bzlib
49057Autotrace --with-autotrace=$with_autotrace $have_autotrace
49058DJVU --with-djvu=$with_djvu $have_djvu
49059DPS --with-dps=$with_dps $have_dps
49060FFTW --with-fftw=$with_fftw $have_fftw
49061FlashPIX --with-fpx=$with_fpx $have_fpx
49062FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
49063FreeType --with-freetype=$with_freetype $have_freetype
49064GhostPCL None $PCLDelegate ($PCLVersion)
49065GhostXPS None $XPSDelegate ($XPSVersion)
49066Ghostscript None $PSDelegate ($GSVersion)
49067Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
49068Ghostscript lib --with-gslib=$with_gslib $have_gslib
49069Graphviz --with-gvc=$with_gvc $have_gvc
49070JBIG --with-jbig=$with_jbig $have_jbig
49071JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
49072JPEG-2000 --with-jp2=$with_jp2 $have_jp2
49073LCMS --with-lcms=$with_lcms $have_lcms
49074LQR --with-lqr=$with_lqr $have_lqr
49075Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
49076OpenEXR --with-openexr=$with_openexr $have_openexr
49077PERL --with-perl=$with_perl $have_perl
49078PNG --with-png=$with_png $have_png
49079RSVG --with-rsvg=$with_rsvg $have_rsvg
49080TIFF --with-tiff=$with_tiff $have_tiff
49081Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
49082WMF --with-wmf=$with_wmf $have_wmf
49083X11 --with-x=$with_x $have_x
49084XML --with-xml=$with_xml $have_xml
49085ZLIB --with-zlib=$with_zlib $have_zlib
49086
49087X11 Configuration:
49088 X_CFLAGS = $X_CFLAGS
49089 X_PRE_LIBS = $X_PRE_LIBS
49090 X_LIBS = $X_LIBS
49091 X_EXTRA_LIBS = $X_EXTRA_LIBS
49092
49093Options used to compile and link:
49094 PREFIX = $PREFIX_DIR
49095 EXEC-PREFIX = $EXEC_PREFIX_DIR
49096 VERSION = $PACKAGE_VERSION
49097 CC = $CC
49098 CFLAGS = $CFLAGS
49099 MAGICK_CFLAGS = $MAGICK_CFLAGS
49100 CPPFLAGS = $MAGICK_CPPFLAGS
49101 PCFLAGS = $MAGICK_PCFLAGS
49102 DEFS = $DEFS
49103 LDFLAGS = $LDFLAGS
49104 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
49105 LIBS = $MAGICK_LIBS
49106 CXX = $CXX
49107 CXXFLAGS = $CXXFLAGS
49108" >&6; }